@wix/public-editor-platform-interfaces 1.124.0 → 1.126.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.
@@ -1,5 +1,5 @@
1
1
  import { DataType, FunctionParameter } from '@wix/app-extensions/trusted';
2
- import { ElementDataDefinition } from './sdk';
2
+ import { ElementAudio, ElementDataDefinition, ElementDirection, ElementImage, ElementLink, ElementMenuItem, ElementMenuItems, ElementRichText, ElementVectorArt, ElementVideo } from './sdk';
3
3
  import { AttachState, ProviderArrayItem, ProviderFunctionItem, ProviderObjectItem, ProviderSimpleItem, ProviderTextEnumItem, ProviderType } from './Providers';
4
4
  export declare const UNBIND_ALL: "ALL";
5
5
  export type UnbindAll = typeof UNBIND_ALL;
@@ -49,11 +49,38 @@ export interface ProviderItemBindingArgument {
49
49
  providerType: ProviderType;
50
50
  type: ArgumentType.ProviderBinding;
51
51
  }
52
- export interface StaticArgument {
53
- dataType: string;
54
- type: ArgumentType.Static;
55
- value: string;
56
- }
52
+ /**
53
+ * Public static argument contract, intentionally independent of Document Management types.
54
+ * Data Binding Service adapts the whole argument between this shape and the DM one.
55
+ */
56
+ type StaticArgumentValues = {
57
+ [DataType.audio]: ElementAudio;
58
+ [DataType.booleanValue]: boolean;
59
+ [DataType.direction]: ElementDirection;
60
+ [DataType.email]: string;
61
+ [DataType.guid]: string;
62
+ [DataType.hostname]: string;
63
+ [DataType.image]: ElementImage;
64
+ [DataType.link]: ElementLink;
65
+ menuItem: ElementMenuItem;
66
+ [DataType.menuItems]: ElementMenuItems;
67
+ [DataType.number]: number;
68
+ [DataType.phone]: string;
69
+ [DataType.regex]: string;
70
+ [DataType.richText]: ElementRichText;
71
+ [DataType.text]: string;
72
+ [DataType.textEnum]: string;
73
+ [DataType.vectorArt]: ElementVectorArt;
74
+ [DataType.video]: ElementVideo;
75
+ [DataType.webUrl]: string;
76
+ };
77
+ export type StaticArgument = {
78
+ [Key in keyof StaticArgumentValues]: {
79
+ dataType: `${Key}`;
80
+ type: ArgumentType.Static;
81
+ value: StaticArgumentValues[Key];
82
+ };
83
+ }[keyof StaticArgumentValues];
57
84
  export interface ListBindingsOptions {
58
85
  includeDisplayNames?: boolean;
59
86
  providerIdentifiers?: string[];
@@ -118,3 +145,4 @@ export type findBindingCandidatesOptions = {
118
145
  includeCandidatesWithConverters?: boolean;
119
146
  };
120
147
  export type OverriddenSelectBindingOptions = SelectBindingOptions | ((options: SelectBindingOptions) => SelectBindingOptions);
148
+ export {};
package/dist/Bindings.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ArgumentType = exports.BindingItemType = exports.UNBIND_ALL = void 0;
4
+ const trusted_1 = require("@wix/app-extensions/trusted");
4
5
  exports.UNBIND_ALL = 'ALL';
5
6
  var BindingItemType;
6
7
  (function (BindingItemType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/public-editor-platform-interfaces",
3
- "version": "1.124.0",
3
+ "version": "1.126.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.180",
26
+ "@wix/app-extensions": "^1.0.182",
27
27
  "@wix/sdk-types": "^1.17.12"
28
28
  },
29
29
  "devDependencies": {
@@ -52,5 +52,5 @@
52
52
  ]
53
53
  }
54
54
  },
55
- "falconPackageHash": "7ddbf81a7e71a8697c00e037ef8954709ec7255fd5235251038cb38c"
55
+ "falconPackageHash": "44248691d38aaded658588667c603a230b3f33c1113246f66a178a67"
56
56
  }