@wix/public-editor-platform-interfaces 1.40.0 → 1.41.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.
Files changed (2) hide show
  1. package/dist/Bindings.d.ts +31 -1
  2. package/package.json +2 -2
@@ -1,4 +1,6 @@
1
- import { ProviderType } from './Providers';
1
+ import { FunctionParameter } from '@wix/app-extensions/trusted';
2
+ import { ElementDataDefinition } from './sdk';
3
+ import { ProviderArrayItem, ProviderFunctionItem, ProviderObjectItem, ProviderSimpleItem, ProviderTextEnumItem, ProviderType } from './Providers';
2
4
  export declare const UNBIND_ALL: "ALL";
3
5
  export type UnbindAll = typeof UNBIND_ALL;
4
6
  export interface BindingProperties {
@@ -50,3 +52,31 @@ export interface ListBindingsOptions {
50
52
  providerIdentifiers?: string[];
51
53
  providerTypes?: ProviderType[];
52
54
  }
55
+ export type BaseCandidate = {
56
+ itemPath: string;
57
+ };
58
+ export type SimpleCandidate = ProviderSimpleItem & BaseCandidate;
59
+ export type TextEnumCandidate = ProviderTextEnumItem & BaseCandidate;
60
+ export type ArrayCandidate = ProviderArrayItem & BaseCandidate;
61
+ export type FunctionCandidate = ProviderFunctionItem & BaseCandidate & {
62
+ asCallback: boolean;
63
+ };
64
+ export type ObjectCandidate = ProviderObjectItem & BaseCandidate;
65
+ export type ItemCandidate = ArrayCandidate | FunctionCandidate | ObjectCandidate | SimpleCandidate | TextEnumCandidate;
66
+ export type BindingCandidate = {
67
+ displayName: string;
68
+ itemCandidates: ItemCandidate[];
69
+ providerIdentifier: string;
70
+ providerType: ProviderType;
71
+ };
72
+ export type BindingTargetDetails = ElementDataDefinition | FunctionParameter;
73
+ export type BindingDetails = {
74
+ providerType: ProviderType;
75
+ providerIdentifier: string;
76
+ providerItem: PropertyBinding;
77
+ };
78
+ export type SelectBindingOptions = {
79
+ bindingTargetDetails: BindingTargetDetails;
80
+ initialState?: BindingDetails;
81
+ onApply?: (bindingDetails: BindingDetails) => Promise<void>;
82
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/public-editor-platform-interfaces",
3
- "version": "1.40.0",
3
+ "version": "1.41.0",
4
4
  "license": "UNLICENSED",
5
5
  "contributors": [
6
6
  {
@@ -52,5 +52,5 @@
52
52
  ]
53
53
  }
54
54
  },
55
- "falconPackageHash": "a8c951ca90455f089a3982bab36d21f4e7525ffa07a5eb1201a8378e"
55
+ "falconPackageHash": "e31d99f732aef55192de4e5616af165bea4ea9ef8012460b56023aee"
56
56
  }