@wix/editor 1.1005.0 → 1.1007.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 +17 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +17 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/statics/docs-ts-model.json +149 -149
- package/dist/statics/index.js +17 -1
- package/dist/statics/index.js.map +1 -1
- package/dist/types/index.d.ts +8 -1
- package/package.json +5 -5
package/dist/cjs/index.js
CHANGED
|
@@ -1546,10 +1546,26 @@ class ProvidersPublicSDKShape extends BaseSDKShape {
|
|
|
1546
1546
|
);
|
|
1547
1547
|
return result;
|
|
1548
1548
|
}
|
|
1549
|
+
/**
|
|
1550
|
+
* The provider a provider was created from. A template provider resolves to
|
|
1551
|
+
* the provider (or nested template) it directly points to; pass
|
|
1552
|
+
* `resolveToRootSourceProvider: true` to follow nested templates down to the
|
|
1553
|
+
* root provider. Any other provider is its own source.
|
|
1554
|
+
*/
|
|
1555
|
+
async getSourceProvider(options) {
|
|
1556
|
+
const privateAPI = await this.getPlatformPrivateAPI();
|
|
1557
|
+
const manifestContextId = await this.getRequiredManifestContextId();
|
|
1558
|
+
const result = await privateAPI.providers.getSourceProvider(
|
|
1559
|
+
manifestContextId,
|
|
1560
|
+
this.childPath,
|
|
1561
|
+
options
|
|
1562
|
+
);
|
|
1563
|
+
return result;
|
|
1564
|
+
}
|
|
1549
1565
|
}
|
|
1550
1566
|
const providersPublicSDKShape = new PlatformSDKShape(
|
|
1551
1567
|
ProvidersPublicSDKShape
|
|
1552
|
-
).withPublicMethod("attach").withPublicMethod("detach").withPublicMethod("list").build();
|
|
1568
|
+
).withPublicMethod("attach").withPublicMethod("detach").withPublicMethod("list").withPublicMethod("getSourceProvider").build();
|
|
1553
1569
|
|
|
1554
1570
|
class BindingsPublicSDKShape extends BaseSDKShape {
|
|
1555
1571
|
constructor(overriddenApplicationContext = null, childPath = []) {
|