@wix/editor 1.538.0 → 1.540.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 +36 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +36 -12
- package/dist/esm/index.js.map +1 -1
- package/dist/statics/docs-ts-model.json +181 -181
- package/dist/statics/index.js +36 -12
- package/dist/statics/index.js.map +1 -1
- package/dist/types/index.d.ts +6 -3
- package/package.json +6 -6
package/dist/esm/index.js
CHANGED
|
@@ -1556,13 +1556,14 @@ class BindingsPublicSDKShape extends BaseSDKShape {
|
|
|
1556
1556
|
);
|
|
1557
1557
|
return result;
|
|
1558
1558
|
}
|
|
1559
|
-
async findBindingCandidates(bindingTargetDetails) {
|
|
1559
|
+
async findBindingCandidates(bindingTargetDetails, options) {
|
|
1560
1560
|
const privateAPI = await this.getPlatformPrivateAPI();
|
|
1561
1561
|
const manifestContextId = await this.getRequiredManifestContextId();
|
|
1562
1562
|
return privateAPI.bindings.findBindingCandidates(
|
|
1563
1563
|
manifestContextId,
|
|
1564
1564
|
this.childPath,
|
|
1565
|
-
bindingTargetDetails
|
|
1565
|
+
bindingTargetDetails,
|
|
1566
|
+
options
|
|
1566
1567
|
);
|
|
1567
1568
|
}
|
|
1568
1569
|
async selectBinding(options) {
|
|
@@ -1586,8 +1587,25 @@ class Workspace {
|
|
|
1586
1587
|
async workspaceAPI() {
|
|
1587
1588
|
const context = await this.applicationContext;
|
|
1588
1589
|
const privateAPI = context.getPrivateAPI();
|
|
1589
|
-
|
|
1590
|
-
|
|
1590
|
+
return await privateAPI.workspace;
|
|
1591
|
+
}
|
|
1592
|
+
async appsAPI() {
|
|
1593
|
+
const workspace = await this.workspaceAPI();
|
|
1594
|
+
if (!workspace.apps) {
|
|
1595
|
+
throw new Error(
|
|
1596
|
+
"apps namespace is not available \u2014 host has not implemented it"
|
|
1597
|
+
);
|
|
1598
|
+
}
|
|
1599
|
+
return workspace.apps;
|
|
1600
|
+
}
|
|
1601
|
+
async toolsAPI() {
|
|
1602
|
+
const workspace = await this.workspaceAPI();
|
|
1603
|
+
if (!workspace.tools) {
|
|
1604
|
+
throw new Error(
|
|
1605
|
+
"tools namespace is not available \u2014 host has not implemented it"
|
|
1606
|
+
);
|
|
1607
|
+
}
|
|
1608
|
+
return workspace.tools;
|
|
1591
1609
|
}
|
|
1592
1610
|
getContextIds = () => {
|
|
1593
1611
|
throw new Error("Not implemented yet");
|
|
@@ -1597,20 +1615,26 @@ class Workspace {
|
|
|
1597
1615
|
};
|
|
1598
1616
|
apps = {
|
|
1599
1617
|
startInstallFlow: async (args) => {
|
|
1600
|
-
const
|
|
1601
|
-
return
|
|
1618
|
+
const apps = await this.appsAPI();
|
|
1619
|
+
return apps.startInstallFlow(args);
|
|
1602
1620
|
},
|
|
1603
1621
|
startPurchasePlanFlow: async (args) => {
|
|
1604
|
-
const
|
|
1605
|
-
return
|
|
1622
|
+
const apps = await this.appsAPI();
|
|
1623
|
+
return apps.startPurchasePlanFlow(args);
|
|
1606
1624
|
},
|
|
1607
1625
|
startUpdateFlow: async (args) => {
|
|
1608
|
-
const
|
|
1609
|
-
return
|
|
1626
|
+
const apps = await this.appsAPI();
|
|
1627
|
+
return apps.startUpdateFlow(args);
|
|
1610
1628
|
},
|
|
1611
1629
|
openContactSupport: async (args) => {
|
|
1612
|
-
const
|
|
1613
|
-
return
|
|
1630
|
+
const apps = await this.appsAPI();
|
|
1631
|
+
return apps.openContactSupport(args);
|
|
1632
|
+
}
|
|
1633
|
+
};
|
|
1634
|
+
tools = {
|
|
1635
|
+
editWithWixel: async (args) => {
|
|
1636
|
+
const tools = await this.toolsAPI();
|
|
1637
|
+
return tools.editWithWixel(args);
|
|
1614
1638
|
}
|
|
1615
1639
|
};
|
|
1616
1640
|
}
|