@wix/public-editor-platform-interfaces 1.82.0 → 1.84.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.
@@ -74,6 +74,7 @@ export type TextEnumCandidate = ProviderTextEnumItem & BaseCandidate;
74
74
  export type ArrayCandidate = ProviderArrayItem & BaseCandidate;
75
75
  export type FunctionCandidate = ProviderFunctionItem & BaseCandidate & {
76
76
  asCallback: boolean;
77
+ validPreBoundCounts?: number[];
77
78
  };
78
79
  export type ObjectCandidate = ProviderObjectItem & BaseCandidate;
79
80
  export type ItemCandidate = ArrayCandidate | FunctionCandidate | ObjectCandidate | SimpleCandidate | TextEnumCandidate;
@@ -1,18 +1,25 @@
1
1
  import { ContextImplementor, DataType, EditorFunction, TextEnum } from '@wix/app-extensions/trusted';
2
2
  export declare enum ProviderType {
3
3
  Context = "Context",
4
+ ErcInlineContext = "ErcInlineContext",
4
5
  FunctionLibrary = "FunctionLibrary",
5
6
  Template = "Template"
6
7
  }
7
8
  export type Provider = {
8
9
  displayName: string;
9
10
  items?: Record<string, ProviderItem>;
11
+ isAttachable: boolean;
12
+ isConfigurable: boolean;
13
+ isDetachable: boolean;
10
14
  providerIdentifier: string;
11
15
  appDefinitionId?: string;
12
16
  } & ({
13
17
  attachState?: AttachState.Above | AttachState.None | AttachState.Self;
14
18
  contextDependencies?: string[];
15
19
  providerType: ProviderType.Context;
20
+ } | {
21
+ attachState?: AttachState.Above | AttachState.Self;
22
+ providerType: ProviderType.ErcInlineContext;
16
23
  } | {
17
24
  attachState?: AttachState.Above | AttachState.Self;
18
25
  providerType: ProviderType.Template;
package/dist/Providers.js CHANGED
@@ -4,6 +4,7 @@ exports.AttachState = exports.ProviderType = void 0;
4
4
  var ProviderType;
5
5
  (function (ProviderType) {
6
6
  ProviderType["Context"] = "Context";
7
+ ProviderType["ErcInlineContext"] = "ErcInlineContext";
7
8
  ProviderType["FunctionLibrary"] = "FunctionLibrary";
8
9
  ProviderType["Template"] = "Template";
9
10
  })(ProviderType || (exports.ProviderType = ProviderType = {}));
@@ -118,8 +118,20 @@ export type ElementRichText = Omit<DmTypes.RichText, 'linkList'> & {
118
118
  linkList?: ElementLink[];
119
119
  };
120
120
  export type ElementFunctionDefinition = DmTypes._Function;
121
- export type ElementFilter = DmTypes.Filter;
122
- export type ElementSort = DmTypes.Sort;
121
+ type ElementFilterPrimitive = boolean | number | string;
122
+ type ElementFilterValue = ElementFilterPrimitive | boolean[] | number[] | string[];
123
+ type ElementFilterFieldConditions = Partial<Record<`$${string}`, ElementFilterValue>>;
124
+ type ElementFilterLogicalClauses = {
125
+ $and?: ElementFilter[];
126
+ $not?: ElementFilter[];
127
+ $or?: ElementFilter[];
128
+ };
129
+ export type ElementFilter = Record<string, ElementFilterFieldConditions> | ElementFilterLogicalClauses;
130
+ type ElementSortOrder = Exclude<DmTypes.SortOrderEnumSortOrder, DmTypes.SortOrderEnumSortOrder.UNKNOWN_SORT_ORDER>;
131
+ export type ElementSort = {
132
+ fieldName: string;
133
+ order: ElementSortOrder;
134
+ }[];
123
135
  export type ElementDataValue = string | number | boolean | ElementLink | ElementImage | ElementVideo | ElementAudio | ElementVectorArt | ElementMenuItems | ElementA11y | ElementRichText | ElementFunctionDefinition | ElementDirection | ElementFilter | ElementSort | ElementDataObject | ElementDataValue[] | null | undefined;
124
136
  export type ElementDataObject = {
125
137
  [key: string]: ElementDataValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/public-editor-platform-interfaces",
3
- "version": "1.82.0",
3
+ "version": "1.84.0",
4
4
  "license": "UNLICENSED",
5
5
  "contributors": [
6
6
  {
@@ -23,7 +23,7 @@
23
23
  "*.{js,ts}": "yarn lint"
24
24
  },
25
25
  "dependencies": {
26
- "@wix/app-extensions": "^1.0.77",
26
+ "@wix/app-extensions": "^1.0.78",
27
27
  "@wix/sdk-types": "^1.17.9"
28
28
  },
29
29
  "devDependencies": {
@@ -52,5 +52,5 @@
52
52
  ]
53
53
  }
54
54
  },
55
- "falconPackageHash": "f65d9dd9b5a009aee8b9cacdf4193f1a918fd94174b4f85b0ed896e3"
55
+ "falconPackageHash": "2b1d84d1eea2ae79ce708cf2053723566143e66c2f2d57e241599a73"
56
56
  }