@wix/public-editor-platform-interfaces 1.81.0 → 1.83.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/sdk/data.d.ts +14 -2
  2. package/package.json +3 -3
@@ -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.81.0",
3
+ "version": "1.83.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.75",
26
+ "@wix/app-extensions": "^1.0.77",
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": "f4bfbb2c8bfffb653ce6b7b4d6ee9f42458c6d4a5852d2e85f8c8a68"
55
+ "falconPackageHash": "005aade54b8410bc07cc0291e0bfcd745e678886e03a8c0623313876"
56
56
  }