@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/esm/index.js CHANGED
@@ -203,6 +203,10 @@ class InfoSDKShape extends BaseSDKShape {
203
203
  const privateAPI = await this.getPlatformPrivateAPI();
204
204
  return privateAPI.info.getLanguageCode();
205
205
  }
206
+ async getLocales() {
207
+ const privateAPI = await this.getPlatformPrivateAPI();
208
+ return privateAPI.info.getLocales();
209
+ }
206
210
  async getSiteDirection() {
207
211
  const privateAPI = await this.getPlatformPrivateAPI();
208
212
  return privateAPI.info.getSiteDirection();
@@ -228,7 +232,7 @@ class InfoSDKShape extends BaseSDKShape {
228
232
  return privateAPI.info.getMetaSiteId();
229
233
  }
230
234
  }
231
- var index$c = new PlatformSDKShape(InfoSDKShape).withPublicMethod("getViewMode").withPublicMethod("getLanguageCode").withPublicMethod("getSiteDirection").withPublicMethod("siteHasCustomClasses").withPublicMethod("getThemeCustomProperties").withPublicMethod("getSiteFonts").withPublicMethod("getFontFamilyDisplayName").withPublicMethod("getMetaSiteId").build();
235
+ 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();
232
236
 
233
237
  var WidgetShapeErrorCode = /* @__PURE__ */ ((WidgetShapeErrorCode2) => {
234
238
  WidgetShapeErrorCode2["UndefinedCompRef"] = "UndefinedCompRef";
@@ -1708,13 +1712,13 @@ class PagesSDKShape extends BaseSDKShape {
1708
1712
  const privateAPI = await this.getPlatformPrivateAPI();
1709
1713
  return privateAPI.pages.list();
1710
1714
  }
1711
- async addTemplate(templateId) {
1715
+ async addTemplate(templateId, options) {
1712
1716
  const privateAPI = await this.getPlatformPrivateAPI();
1713
- return privateAPI.pages.addTemplate(templateId);
1717
+ return privateAPI.pages.addTemplate(templateId, options);
1714
1718
  }
1715
- async addExtension(extensionId) {
1719
+ async addExtension(extensionId, options) {
1716
1720
  const privateAPI = await this.getPlatformPrivateAPI();
1717
- return privateAPI.pages.addExtension(extensionId);
1721
+ return privateAPI.pages.addExtension(extensionId, options);
1718
1722
  }
1719
1723
  }
1720
1724
  var index = new PlatformSDKShape(PagesSDKShape).withPublicMethod("list").withPublicMethod("addTemplate").withPublicMethod("addExtension").build();