@wix/editor 1.553.0 → 1.555.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -205,6 +205,10 @@ class InfoSDKShape extends BaseSDKShape {
205
205
  const privateAPI = await this.getPlatformPrivateAPI();
206
206
  return privateAPI.info.getLanguageCode();
207
207
  }
208
+ async getLocales() {
209
+ const privateAPI = await this.getPlatformPrivateAPI();
210
+ return privateAPI.info.getLocales();
211
+ }
208
212
  async getSiteDirection() {
209
213
  const privateAPI = await this.getPlatformPrivateAPI();
210
214
  return privateAPI.info.getSiteDirection();
@@ -230,7 +234,7 @@ class InfoSDKShape extends BaseSDKShape {
230
234
  return privateAPI.info.getMetaSiteId();
231
235
  }
232
236
  }
233
- var index$c = new PlatformSDKShape(InfoSDKShape).withPublicMethod("getViewMode").withPublicMethod("getLanguageCode").withPublicMethod("getSiteDirection").withPublicMethod("siteHasCustomClasses").withPublicMethod("getThemeCustomProperties").withPublicMethod("getSiteFonts").withPublicMethod("getFontFamilyDisplayName").withPublicMethod("getMetaSiteId").build();
237
+ var index$c = new PlatformSDKShape(InfoSDKShape).withPublicMethod("getViewMode").withPublicMethod("getLanguageCode").withPublicMethod("getLocales").withPublicMethod("getSiteDirection").withPublicMethod("siteHasCustomClasses").withPublicMethod("getThemeCustomProperties").withPublicMethod("getSiteFonts").withPublicMethod("getFontFamilyDisplayName").withPublicMethod("getMetaSiteId").build();
234
238
 
235
239
  var WidgetShapeErrorCode = /* @__PURE__ */ ((WidgetShapeErrorCode2) => {
236
240
  WidgetShapeErrorCode2["UndefinedCompRef"] = "UndefinedCompRef";
@@ -1710,13 +1714,13 @@ class PagesSDKShape extends BaseSDKShape {
1710
1714
  const privateAPI = await this.getPlatformPrivateAPI();
1711
1715
  return privateAPI.pages.list();
1712
1716
  }
1713
- async addTemplate(templateId) {
1717
+ async addTemplate(templateId, options) {
1714
1718
  const privateAPI = await this.getPlatformPrivateAPI();
1715
- return privateAPI.pages.addTemplate(templateId);
1719
+ return privateAPI.pages.addTemplate(templateId, options);
1716
1720
  }
1717
- async addExtension(extensionId) {
1721
+ async addExtension(extensionId, options) {
1718
1722
  const privateAPI = await this.getPlatformPrivateAPI();
1719
- return privateAPI.pages.addExtension(extensionId);
1723
+ return privateAPI.pages.addExtension(extensionId, options);
1720
1724
  }
1721
1725
  }
1722
1726
  var index = new PlatformSDKShape(PagesSDKShape).withPublicMethod("list").withPublicMethod("addTemplate").withPublicMethod("addExtension").build();