@wix/public-editor-platform-interfaces 1.35.0 → 1.37.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.
@@ -46,9 +46,12 @@ export declare enum ArgumentType {
46
46
  FunctionBinding = "FunctionBindingItem",
47
47
  Static = "StaticArgItem"
48
48
  }
49
- export interface FunctionBindingConfig {
50
- functionBindingItem: FunctionBinding;
51
- propertyName: string;
49
+ export interface FunctionBindingsMap {
50
+ [key: string]: FunctionPropertyBinding;
51
+ }
52
+ export interface FunctionPropertyBinding {
53
+ callOptions: CallOptions;
54
+ function: string;
52
55
  }
53
56
  export interface BoundPropertiesPerProvider {
54
57
  [key: string]: BoundProperties;
@@ -64,7 +67,7 @@ export interface ContextProviderBindings {
64
67
  displayName?: string;
65
68
  }
66
69
  export interface FunctionLibraryBinding {
67
- binding: FunctionBindingConfig;
70
+ bindingsMap: FunctionBindingsMap;
68
71
  bindingType: BindingType.FunctionLibrary;
69
72
  }
70
73
  export type Binding = {
@@ -1,4 +1,3 @@
1
- import { DataType, EditorFunction } from '@wix/ambassador-devcenter-appsruntimereader-v1-app-runtime-data/types';
2
1
  export type Provider = {
3
2
  attachState?: AttachState;
4
3
  contextDependencies?: string[];
@@ -13,20 +12,16 @@ type ProviderItemBase = {
13
12
  };
14
13
  export type ProviderArrayItem = ProviderItemBase & {
15
14
  arrayItem: ProviderItem;
16
- dataType: DataType.arrayItems;
15
+ dataType: String;
17
16
  };
18
17
  export type ProviderObjectItem = ProviderItemBase & {
19
- dataType: DataType.data;
18
+ dataType: String;
20
19
  objectItem: Record<string, ProviderItem>;
21
20
  };
22
- export type ProviderFunctionItem = ProviderItemBase & {
23
- dataType: DataType.function;
24
- function?: EditorFunction;
25
- };
26
21
  export type ProviderSimpleItem = ProviderItemBase & {
27
- dataType: Exclude<DataType, DataType.arrayItems | DataType.data | DataType.function>;
22
+ dataType: String;
28
23
  };
29
- export type ProviderItem = ProviderArrayItem | ProviderFunctionItem | ProviderObjectItem | ProviderSimpleItem;
24
+ export type ProviderItem = ProviderArrayItem | ProviderObjectItem | ProviderSimpleItem;
30
25
  export type AttachState = 'above' | 'none' | 'self';
31
26
  export interface AttachedProvider extends Provider {
32
27
  attachState: AttachState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/public-editor-platform-interfaces",
3
- "version": "1.35.0",
3
+ "version": "1.37.0",
4
4
  "license": "UNLICENSED",
5
5
  "contributors": [
6
6
  {
@@ -23,7 +23,6 @@
23
23
  "*.{js,ts}": "yarn lint"
24
24
  },
25
25
  "dependencies": {
26
- "@wix/ambassador-devcenter-appsruntimereader-v1-app-runtime-data": "^1.0.548",
27
26
  "@wix/sdk-types": "^1.14.0"
28
27
  },
29
28
  "devDependencies": {
@@ -52,5 +51,5 @@
52
51
  ]
53
52
  }
54
53
  },
55
- "falconPackageHash": "23b7ef8d655146c5ba43b3fbcebe36766b3e08319fd3414d8971fed5"
54
+ "falconPackageHash": "adcd710dc56392f711e081e4fe73f915c058ccf6a4b570467e3b6b72"
56
55
  }