@wix/editor 1.521.0 → 1.523.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 +53 -31
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +36 -16
- package/dist/esm/index.js.map +1 -1
- package/dist/statics/docs-ts-model.json +181 -181
- package/dist/statics/index.js +53 -31
- package/dist/statics/index.js.map +1 -1
- package/dist/types/index.d.ts +26 -17
- package/package.json +2 -2
package/dist/statics/index.js
CHANGED
|
@@ -166,14 +166,14 @@
|
|
|
166
166
|
return privateAPI.info.getAppInstance(await this.getAppDefinitionId());
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
var index$
|
|
169
|
+
var index$f = new PlatformSDKShape(ApplicationSDKShape).withPublicMethod("getPrivateAPI").withPublicMethod("getPublicAPI").withPublicMethod("getAppInstance").build();
|
|
170
170
|
|
|
171
171
|
class EventsSDKShape extends BaseSDKShape {
|
|
172
172
|
async addEventListener(name, cb) {
|
|
173
173
|
return (await this.getApplicationContext()).getEvents().addEventListener(name, cb);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
var index$
|
|
176
|
+
var index$e = new PlatformSDKShape(EventsSDKShape).withPublicMethod("addEventListener").build();
|
|
177
177
|
|
|
178
178
|
class ElementsSDKShape extends BaseSDKShape {
|
|
179
179
|
async getSelection() {
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var index$
|
|
195
|
+
var index$d = new PlatformSDKShape(ElementsSDKShape).withPublicMethod("onSelectionChange").withPublicMethod("getSelection").build();
|
|
196
196
|
|
|
197
197
|
class InfoSDKShape extends BaseSDKShape {
|
|
198
198
|
async getViewMode() {
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
return privateAPI.info.getMetaSiteId();
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
var index$
|
|
231
|
+
var index$c = new PlatformSDKShape(InfoSDKShape).withPublicMethod("getViewMode").withPublicMethod("getLanguageCode").withPublicMethod("getSiteDirection").withPublicMethod("siteHasCustomClasses").withPublicMethod("getThemeCustomProperties").withPublicMethod("getSiteFonts").withPublicMethod("getFontFamilyDisplayName").withPublicMethod("getMetaSiteId").build();
|
|
232
232
|
|
|
233
233
|
var WidgetShapeErrorCode = /* @__PURE__ */ ((WidgetShapeErrorCode2) => {
|
|
234
234
|
WidgetShapeErrorCode2["UndefinedCompRef"] = "UndefinedCompRef";
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
const widgetShape = new PlatformSDKShape(WidgetSDKShape).withPublicMethod("getNestedWidget").withPublicMethod("setDesignPreset").withPublicMethod("getDesignPreset").withPublicMethod("setProp").withPublicMethod("getProp").withPublicMethod("setPreloadFonts");
|
|
407
|
-
var index$
|
|
407
|
+
var index$b = widgetShape.build();
|
|
408
408
|
|
|
409
409
|
function fontValueToCSS(fontValue) {
|
|
410
410
|
return `${fontValue.cssVariableName ? `var(${fontValue.cssVariableName}, ` : ""}${fontValue.italic ? "italic " : ""}${fontValue.bold ? "bold " : ""}${fontValue.size || 16}px ${// wrap each font family with quotes
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
return _value;
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
var index$
|
|
507
|
+
var index$a = new PlatformSDKShape(InputsSDKShape).withPublicMethod("selectColor").withPublicMethod("selectFont").build();
|
|
508
508
|
|
|
509
509
|
class PanelsSDKShape extends BaseSDKShape {
|
|
510
510
|
async openLanguageSupportPanel() {
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
return privateAPI.panels.openFontsUploadPanel();
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
var index$
|
|
519
|
+
var index$9 = new PlatformSDKShape(PanelsSDKShape).withPublicMethod("openLanguageSupportPanel").withPublicMethod("openFontsUploadPanel").build();
|
|
520
520
|
|
|
521
521
|
class ModalsSDKShape extends BaseSDKShape {
|
|
522
522
|
async openDashboardModal(options) {
|
|
@@ -527,7 +527,7 @@
|
|
|
527
527
|
);
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
var index$
|
|
530
|
+
var index$8 = new PlatformSDKShape(ModalsSDKShape).withPublicMethod("openDashboardModal").build();
|
|
531
531
|
|
|
532
532
|
class ElementSDKShape extends BaseSDKShape {
|
|
533
533
|
constructor(overriddenApplicationContext = null, childPath = []) {
|
|
@@ -1277,7 +1277,7 @@
|
|
|
1277
1277
|
);
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
var index$
|
|
1280
|
+
var index$7 = new PlatformSDKShape(ElementSDKShape).withPublicMethod("getDataDefinitions").withPublicMethod("getData").withPublicMethod("getResolvedData").withPublicMethod("setData").withPublicMethod("getStyleDefinitions").withPublicMethod("getStyles").withPublicMethod("setStyles").withPublicMethod("removeStyles").withPublicMethod("getPresetDefinitions").withPublicMethod("getAppliedPreset").withPublicMethod("applyPreset").withPublicMethod("getDisplayGroupDefinitions").withPublicMethod("getDisplayName").withPublicMethod("getState").withPublicMethod("setState").withPublicMethod("onChange").withPublicMethod("getStateDefinitions").withPublicMethod("selectFont").withPublicMethod("selectFontFamily").withPublicMethod("selectMedia").withPublicMethod("selectLink").withPublicMethod("selectColor").withPublicMethod("selectBackground").withPublicMethod("selectFontWeight").withPublicMethod("selectTextTheme").withPublicMethod("getArrayItemsSelectedIndex").withPublicMethod("setArrayItemsSelectedIndex").withPublicMethod("resetArrayItemsSelectedIndex").withPublicMethod("getBiToken").build();
|
|
1281
1281
|
|
|
1282
1282
|
class PreferencesSDKShape extends BaseSDKShape {
|
|
1283
1283
|
async get(keys) {
|
|
@@ -1295,7 +1295,7 @@
|
|
|
1295
1295
|
);
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
|
-
var index$
|
|
1298
|
+
var index$6 = new PlatformSDKShape(PreferencesSDKShape).withPublicMethod("set").withPublicMethod("get").build();
|
|
1299
1299
|
|
|
1300
1300
|
class ExternalPanelsSDKShape extends BaseSDKShape {
|
|
1301
1301
|
async getData() {
|
|
@@ -1337,7 +1337,7 @@
|
|
|
1337
1337
|
return privateAPI.externalPanels.translate(key, values);
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
|
-
var index$
|
|
1340
|
+
var index$5 = new PlatformSDKShape(ExternalPanelsSDKShape).withPublicMethod("getTheme").withPublicMethod("getData").withPublicMethod("getStyle").withPublicMethod("selectColor").withPublicMethod("selectLink").withPublicMethod("selectMedia").withPublicMethod("setData").withPublicMethod("setStyle").withPublicMethod("translate").build();
|
|
1341
1341
|
|
|
1342
1342
|
var ControllersErrorCode = /* @__PURE__ */ ((ControllersErrorCode2) => {
|
|
1343
1343
|
ControllersErrorCode2["UndefinedCompRef"] = "UndefinedCompRef";
|
|
@@ -1368,7 +1368,7 @@
|
|
|
1368
1368
|
);
|
|
1369
1369
|
}
|
|
1370
1370
|
}
|
|
1371
|
-
var index$
|
|
1371
|
+
var index$4 = new PlatformSDKShape(ControllersSDKShape).withPublicMethod("get").build();
|
|
1372
1372
|
|
|
1373
1373
|
class CmsBindingConnectionItem {
|
|
1374
1374
|
constructor(privateAPI, pointer, bindingTarget, config) {
|
|
@@ -1413,7 +1413,7 @@
|
|
|
1413
1413
|
);
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
|
-
var index$
|
|
1416
|
+
var index$3 = new PlatformSDKShape(CmsBindingsSDKShape).withPublicMethod("get").build();
|
|
1417
1417
|
|
|
1418
1418
|
class BindingsProvider {
|
|
1419
1419
|
constructor(privateAPI, editorPointer, controllerRef, dataItemTarget, name) {
|
|
@@ -1470,7 +1470,7 @@
|
|
|
1470
1470
|
);
|
|
1471
1471
|
}
|
|
1472
1472
|
}
|
|
1473
|
-
var index$
|
|
1473
|
+
var index$2 = new PlatformSDKShape(BindingsProvidersSDKShape).withPublicMethod("list").build();
|
|
1474
1474
|
|
|
1475
1475
|
class ProvidersPublicSDKShape extends BaseSDKShape {
|
|
1476
1476
|
constructor(overriddenApplicationContext = null, childPath = []) {
|
|
@@ -1642,7 +1642,27 @@
|
|
|
1642
1642
|
return privateAPI.routers.add(extensionId);
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
|
-
var index = new PlatformSDKShape(RoutersSDKShape).withPublicMethod("isValidPrefix").withPublicMethod("list").withPublicMethod("add").build();
|
|
1645
|
+
var index$1 = new PlatformSDKShape(RoutersSDKShape).withPublicMethod("isValidPrefix").withPublicMethod("list").withPublicMethod("add").build();
|
|
1646
|
+
|
|
1647
|
+
class PagesSDKShape extends BaseSDKShape {
|
|
1648
|
+
constructor(overriddenApplicationContext = null) {
|
|
1649
|
+
super(overriddenApplicationContext);
|
|
1650
|
+
this.overriddenApplicationContext = overriddenApplicationContext;
|
|
1651
|
+
}
|
|
1652
|
+
async list() {
|
|
1653
|
+
const privateAPI = await this.getPlatformPrivateAPI();
|
|
1654
|
+
return privateAPI.pages.list();
|
|
1655
|
+
}
|
|
1656
|
+
async addTemplate(templateId) {
|
|
1657
|
+
const privateAPI = await this.getPlatformPrivateAPI();
|
|
1658
|
+
return privateAPI.pages.addTemplate(templateId);
|
|
1659
|
+
}
|
|
1660
|
+
async addExtension(extensionId) {
|
|
1661
|
+
const privateAPI = await this.getPlatformPrivateAPI();
|
|
1662
|
+
return privateAPI.pages.addExtension(extensionId);
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
var index = new PlatformSDKShape(PagesSDKShape).withPublicMethod("list").withPublicMethod("addTemplate").withPublicMethod("addExtension").build();
|
|
1646
1666
|
|
|
1647
1667
|
const frame = () => {
|
|
1648
1668
|
const queryParams = new URLSearchParams(window.location.search);
|
|
@@ -1700,30 +1720,32 @@
|
|
|
1700
1720
|
|
|
1701
1721
|
exports.BaseSDKShape = BaseSDKShape;
|
|
1702
1722
|
exports.ElementSDKShape = ElementSDKShape;
|
|
1723
|
+
exports.PagesSDKShape = PagesSDKShape;
|
|
1703
1724
|
exports.PlatformSDKShape = PlatformSDKShape;
|
|
1704
1725
|
exports.ReactElementsSDKShape = ElementSDKShape;
|
|
1705
1726
|
exports.RoutersSDKShape = RoutersSDKShape;
|
|
1706
1727
|
exports.Workspace = Workspace;
|
|
1707
1728
|
exports.WorkspaceHost = WorkspaceHost;
|
|
1708
|
-
exports.application = index$
|
|
1729
|
+
exports.application = index$f;
|
|
1709
1730
|
exports.bindings = bindingsPublicSDKShape;
|
|
1710
|
-
exports.bindingsProviders = index$
|
|
1711
|
-
exports.cmsBindings = index$
|
|
1712
|
-
exports.controllers = index$
|
|
1731
|
+
exports.bindingsProviders = index$2;
|
|
1732
|
+
exports.cmsBindings = index$3;
|
|
1733
|
+
exports.controllers = index$4;
|
|
1713
1734
|
exports.editor = editor;
|
|
1714
|
-
exports.element = index$
|
|
1715
|
-
exports.elements = index$
|
|
1716
|
-
exports.events = index$
|
|
1717
|
-
exports.externalPanels = index$
|
|
1718
|
-
exports.info = index$
|
|
1719
|
-
exports.inputs = index$
|
|
1720
|
-
exports.modals = index$
|
|
1721
|
-
exports.
|
|
1722
|
-
exports.
|
|
1735
|
+
exports.element = index$7;
|
|
1736
|
+
exports.elements = index$d;
|
|
1737
|
+
exports.events = index$e;
|
|
1738
|
+
exports.externalPanels = index$5;
|
|
1739
|
+
exports.info = index$c;
|
|
1740
|
+
exports.inputs = index$a;
|
|
1741
|
+
exports.modals = index$8;
|
|
1742
|
+
exports.pages = index;
|
|
1743
|
+
exports.panels = index$9;
|
|
1744
|
+
exports.preferences = index$6;
|
|
1723
1745
|
exports.providers = providersPublicSDKShape;
|
|
1724
|
-
exports.reactElements = index$
|
|
1725
|
-
exports.routers = index;
|
|
1726
|
-
exports.widget = index$
|
|
1746
|
+
exports.reactElements = index$7;
|
|
1747
|
+
exports.routers = index$1;
|
|
1748
|
+
exports.widget = index$b;
|
|
1727
1749
|
|
|
1728
1750
|
}));
|
|
1729
1751
|
//# sourceMappingURL=index.js.map
|