@wix/editor 1.484.0 → 1.485.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
@@ -1628,21 +1628,28 @@ class BindingsPublicSDKShape extends BaseSDKShape {
1628
1628
  );
1629
1629
  return result;
1630
1630
  }
1631
- // TODO: [EP-8188] Connect the findBindingCandidates implementation when it Available
1632
- // finds the available binding options for the target prop of the provided component
1633
- // async findBindingCandidates(propPath: string): Promise<BindingCandidate[]> {
1634
- // const privateAPI = await this.getPlatformPrivateAPI();
1635
- // const manifestContextId = await this.getRequiredManifestContextId();
1636
- // return privateAPI.bindings.findBindingCandidates(
1637
- // manifestContextId,
1638
- // this.childPath,
1639
- // propPath,
1640
- // );
1641
- // }
1631
+ async findBindingCandidates(bindingTargetDetails) {
1632
+ const privateAPI = await this.getPlatformPrivateAPI();
1633
+ const manifestContextId = await this.getRequiredManifestContextId();
1634
+ return privateAPI.bindings.findBindingCandidates(
1635
+ manifestContextId,
1636
+ this.childPath,
1637
+ bindingTargetDetails
1638
+ );
1639
+ }
1640
+ async selectBinding(options) {
1641
+ const privateAPI = await this.getPlatformPrivateAPI();
1642
+ const manifestContextId = await this.getRequiredManifestContextId();
1643
+ await privateAPI.bindings.selectBinding(
1644
+ manifestContextId,
1645
+ this.childPath,
1646
+ options
1647
+ );
1648
+ }
1642
1649
  }
1643
1650
  const bindingsPublicSDKShape = new PlatformSDKShape(
1644
1651
  BindingsPublicSDKShape
1645
- ).withPublicMethod("bind").withPublicMethod("unbind").withPublicMethod("listBindings").build();
1652
+ ).withPublicMethod("bind").withPublicMethod("unbind").withPublicMethod("listBindings").withPublicMethod("findBindingCandidates").withPublicMethod("selectBinding").build();
1646
1653
 
1647
1654
  class Workspace {
1648
1655
  constructor(applicationContext) {