code: function indexWidgets() {
    const { widgets = {} } = getComponentsSettings();
  
    return index({
      file: 'widgets.js',
      config: {
        type: TYPE_WIDGETS,
        config: widgets,
      },
      ...getIndexLogTranslations(TYPE_WIDGETS),
    });
  }
docs: Indexes the widgets.
  @return {Promise}