@wix/public-editor-platform-interfaces 1.37.0 → 1.39.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,64 +1,75 @@
1
1
  "use strict";
2
2
  // Auto-generated from @wix/ambassador-document-v3-component
3
- // Do not edit manually - run 'yarn generate:sdk-types' to regenerate
3
+ // Do not edit manually - run 'yarn generate:public-types' to regenerate
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.AriaInvalid = exports.AriaCurrent = exports.AriaLive = exports.AriaRole = exports.AriaRelevant = exports.AriaHaspopup = exports.AriaPressed = exports.LoginDialog = exports.LinkType = exports.LinkRelEnumLinkRel = exports.LinkTarget = exports.PropertySource = exports.AdaptiveFormat = exports.VideoFormat = exports.VideoQuality = exports.DirectionValue = exports.DataType = void 0;
5
+ exports.AriaInvalid = exports.AriaCurrent = exports.AriaLive = exports.AriaRole = exports.AriaRelevant = exports.AriaHaspopup = exports.AriaPressed = exports.LoginDialog = exports.TextLinkType = exports.LinkType = exports.LinkRelEnumLinkRel = exports.LinkTarget = exports.PropertySource = exports.StyleType = exports.AdaptiveFormat = exports.VideoFormat = exports.VideoQuality = exports.DirectionValue = exports.DataType = void 0;
6
6
  var DataType;
7
7
  (function (DataType) {
8
- /** Unknown or unspecified data type. */
9
- DataType["UNKNOWN_DATA_TYPE"] = "UNKNOWN_DATA_TYPE";
10
- /** Plain text string. */
11
- DataType["TEXT"] = "TEXT";
12
- /** Text value from a predefined set of options. */
13
- DataType["TEXT_ENUM"] = "TEXT_ENUM";
14
- /** Numeric value (integer or decimal). */
15
- DataType["NUMBER"] = "NUMBER";
16
- /** Boolean true/false value. */
17
- DataType["BOOLEAN_VALUE"] = "BOOLEAN_VALUE";
18
- /** Accessibility-related data. */
19
- DataType["A11Y"] = "A11Y";
20
- /** Hyperlink reference. */
21
- DataType["LINK"] = "LINK";
22
- /** Image reference with metadata. */
23
- DataType["IMAGE"] = "IMAGE";
24
- /** Video reference with metadata. */
25
- DataType["VIDEO"] = "VIDEO";
26
- /** Vector art/SVG reference. */
27
- DataType["VECTOR_ART"] = "VECTOR_ART";
28
- /** Audio file reference. */
29
- DataType["AUDIO"] = "AUDIO";
30
- /** Schema definition (deprecated). */
31
- DataType["SCHEMA"] = "SCHEMA";
32
- /** Date without time component (YYYY-MM-DD). */
33
- DataType["LOCAL_DATE"] = "LOCAL_DATE";
34
- /** Time without date component (HH:MM:SS). */
35
- DataType["LOCAL_TIME"] = "LOCAL_TIME";
36
- /** Combined date and time. */
37
- DataType["LOCAL_DATE_TIME"] = "LOCAL_DATE_TIME";
38
- /** Web URL reference. */
39
- DataType["WEB_URL"] = "WEB_URL";
40
- /** Email address. */
41
- DataType["EMAIL"] = "EMAIL";
42
- /** Phone number. */
43
- DataType["PHONE"] = "PHONE";
44
- /** Hostname/domain name. */
45
- DataType["HOSTNAME"] = "HOSTNAME";
46
- /** Regular expression pattern. */
47
- DataType["REGEX"] = "REGEX";
48
- /** Globally unique identifier. */
49
- DataType["GUID"] = "GUID";
50
- /** Rich text with formatting. */
51
- DataType["RICH_TEXT"] = "RICH_TEXT";
52
- /** Container for nested components. */
53
- DataType["CONTAINER"] = "CONTAINER";
54
- /** Array of items. */
55
- DataType["ARRAY_ITEMS"] = "ARRAY_ITEMS";
56
- /** Text direction (LTR/RTL). */
57
- DataType["DIRECTION"] = "DIRECTION";
58
- /** Menu items collection. */
59
- DataType["MENU_ITEMS"] = "MENU_ITEMS";
60
- /** Nested data structure containing typed values. */
61
- DataType["DATA"] = "DATA";
8
+ DataType["UNKNOWN_DataType"] = "UNKNOWN_DataType";
9
+ /** A simple text value */
10
+ DataType["text"] = "text";
11
+ /** A list of predefined textual values to choose from */
12
+ DataType["textEnum"] = "textEnum";
13
+ /** Any number */
14
+ DataType["number"] = "number";
15
+ /** true / false value */
16
+ DataType["booleanValue"] = "booleanValue";
17
+ /** An object containing the selected A11Y fields chosen */
18
+ DataType["a11y"] = "a11y";
19
+ /** A Wix Link object type */
20
+ DataType["link"] = "link";
21
+ /** A Wix Image object type */
22
+ DataType["image"] = "image";
23
+ /** A Wix Video object type */
24
+ DataType["video"] = "video";
25
+ /** A Wix Sanitized Vector Art object */
26
+ DataType["vectorArt"] = "vectorArt";
27
+ /** A Wix Audio object */
28
+ DataType["audio"] = "audio";
29
+ /** DEPRECATED - use the `data` dataType instead. A [JSON Schema definition](https://json-schema.org/specification) the developer understands in his code (useful for complex props). Some limitation may apply. */
30
+ DataType["schema"] = "schema";
31
+ /** Local date output ISO-8601 extended local date format (YYYY-MM-DD) */
32
+ DataType["localDate"] = "localDate";
33
+ /** Local time output ISO-8601 extended local time format (hh:mm[:ss][.sss]) */
34
+ DataType["localTime"] = "localTime";
35
+ /** Local Date Time output ISO-8601 extended local date-time format (YYYY-MM-DDThh:mm[:ss][.sss]) */
36
+ DataType["localDateTime"] = "localDateTime";
37
+ /** a URL with scheme http or https */
38
+ DataType["webUrl"] = "webUrl";
39
+ /** standard email address according to [RFC 5321, section 4.1.2](https://datatracker.ietf.org/doc/html/rfc5321#section-4.1.2) */
40
+ DataType["email"] = "email";
41
+ /** a validation format designed to match phone numbers with a variety of common characters, including digits (0-9), spaces, parentheses, plus sign, hyphens, and periods */
42
+ DataType["phone"] = "phone";
43
+ /** hostname according to IANA */
44
+ DataType["hostname"] = "hostname";
45
+ /** A valid `regex` pattern supplied by the User */
46
+ DataType["regex"] = "regex";
47
+ /** A unique identifier */
48
+ DataType["guid"] = "guid";
49
+ /** a HTML text with css inline styling */
50
+ DataType["richText"] = "richText";
51
+ /** A container place in the component that will be passed in as {children} or a function prop, depending on the case */
52
+ DataType["container"] = "container";
53
+ /** An array type of data */
54
+ DataType["arrayItems"] = "arrayItems";
55
+ /** selected `direction` for the component according to (HTML `dir` attribute)[https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir] */
56
+ DataType["direction"] = "direction";
57
+ /** A list of menu-items */
58
+ DataType["menuItems"] = "menuItems";
59
+ /** A complex data type that can be used to define a data structure, such as an object or a map */
60
+ DataType["data"] = "data";
61
+ /** A custom function that can be used to call a function from a custom library */
62
+ DataType["function"] = "function";
63
+ /** Standard [onClick handler](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event), can also handle: `()=>void` */
64
+ DataType["onClick"] = "onClick";
65
+ /** Standard input event [onChange](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event) for text inputs, can also handle: `(value: string) => void` */
66
+ DataType["onChange"] = "onChange";
67
+ /** Standard [onKeyPress handler](https://developer.mozilla.org/en-US/docs/Web/API/Element/keypress_event), can also handle: `(event: KeyboardEvent) => void` */
68
+ DataType["onKeyPress"] = "onKeyPress";
69
+ /** Standard [onKeyUp handler](https://developer.mozilla.org/en-US/docs/Web/API/Element/keyup_event), can also handle: `(event: KeyboardEvent) => void` */
70
+ DataType["onKeyUp"] = "onKeyUp";
71
+ /** Standard [onSubmit handler](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit_event), can also handle: `() => void` */
72
+ DataType["onSubmit"] = "onSubmit";
62
73
  })(DataType || (exports.DataType = DataType = {}));
63
74
  var DirectionValue;
64
75
  (function (DirectionValue) {
@@ -102,6 +113,17 @@ var AdaptiveFormat;
102
113
  /** Dynamic Adaptive Streaming over HTTP. */
103
114
  AdaptiveFormat["DASH"] = "DASH";
104
115
  })(AdaptiveFormat || (exports.AdaptiveFormat = AdaptiveFormat = {}));
116
+ var StyleType;
117
+ (function (StyleType) {
118
+ /** Unknown style type. */
119
+ StyleType["UNKNOWN_STYLE_TYPE"] = "UNKNOWN_STYLE_TYPE";
120
+ /** CSS-based styling. */
121
+ StyleType["CSS"] = "CSS";
122
+ /** Legacy styling for classic and Studio site components. */
123
+ StyleType["LEGACY"] = "LEGACY";
124
+ /** Reference to a theme style. */
125
+ StyleType["THEME"] = "THEME";
126
+ })(StyleType || (exports.StyleType = StyleType = {}));
105
127
  var PropertySource;
106
128
  (function (PropertySource) {
107
129
  /** Unknown property source. */
@@ -113,7 +135,7 @@ var PropertySource;
113
135
  })(PropertySource || (exports.PropertySource = PropertySource = {}));
114
136
  var LinkTarget;
115
137
  (function (LinkTarget) {
116
- LinkTarget["UNSPECIFIED"] = "UNSPECIFIED";
138
+ LinkTarget["UNKNOWN_LINK_TARGET"] = "UNKNOWN_LINK_TARGET";
117
139
  /** Opens the linked document in the same frame as it was clicked (default). */
118
140
  LinkTarget["SELF"] = "SELF";
119
141
  /** Opens the linked document in a new window or tab. */
@@ -121,7 +143,7 @@ var LinkTarget;
121
143
  })(LinkTarget || (exports.LinkTarget = LinkTarget = {}));
122
144
  var LinkRelEnumLinkRel;
123
145
  (function (LinkRelEnumLinkRel) {
124
- LinkRelEnumLinkRel["UNSPECIFIED"] = "UNSPECIFIED";
146
+ LinkRelEnumLinkRel["UNKNOWN_LINK_REL"] = "UNKNOWN_LINK_REL";
125
147
  /** Instructs search engines not to follow the link. */
126
148
  LinkRelEnumLinkRel["NOFOLLOW"] = "NOFOLLOW";
127
149
  /** Prevents the new page from being able to access the window.opener property. */
@@ -133,44 +155,90 @@ var LinkRelEnumLinkRel;
133
155
  })(LinkRelEnumLinkRel || (exports.LinkRelEnumLinkRel = LinkRelEnumLinkRel = {}));
134
156
  var LinkType;
135
157
  (function (LinkType) {
136
- LinkType["UNSPECIFIED"] = "UNSPECIFIED";
137
- LinkType["SMS"] = "SMS";
138
- LinkType["CALL"] = "CALL";
139
- LinkType["SKYPE"] = "SKYPE";
140
- LinkType["MAP"] = "MAP";
141
- LinkType["EMAIL"] = "EMAIL";
142
- LinkType["FACEBOOK"] = "FACEBOOK";
143
- LinkType["FLICKR"] = "FLICKR";
144
- LinkType["BLOGGER"] = "BLOGGER";
145
- LinkType["MYSPACE"] = "MYSPACE";
146
- LinkType["LINKEDIN"] = "LINKEDIN";
147
- LinkType["TWITTER"] = "TWITTER";
148
- LinkType["TUMBLR"] = "TUMBLR";
149
- LinkType["YOUTUBE"] = "YOUTUBE";
150
- LinkType["VIMEO"] = "VIMEO";
151
- LinkType["PAGE"] = "PAGE";
152
- /** Default value. */
153
- LinkType["FREE_LINK"] = "FREE_LINK";
154
- LinkType["TEXT"] = "TEXT";
155
- LinkType["DELICIOUS"] = "DELICIOUS";
156
- LinkType["WEBSITE"] = "WEBSITE";
157
- LinkType["DOCUMENT"] = "DOCUMENT";
158
- LinkType["ADMIN_LOGIN"] = "ADMIN_LOGIN";
159
- LinkType["LOGIN"] = "LOGIN";
158
+ /** Unknown link type. */
159
+ LinkType["UNKNOWN_LINK_TYPE"] = "UNKNOWN_LINK_TYPE";
160
+ /** Link to a page on the same site. */
161
+ LinkType["PAGE_LINK"] = "PAGE_LINK";
162
+ /** Link to an external URL. */
163
+ LinkType["EXTERNAL_LINK"] = "EXTERNAL_LINK";
164
+ /** Link that opens an email client. */
165
+ LinkType["EMAIL_LINK"] = "EMAIL_LINK";
166
+ /** Link to an anchor on a page. */
167
+ LinkType["ANCHOR_LINK"] = "ANCHOR_LINK";
168
+ /** Link to a downloadable document. */
169
+ LinkType["DOCUMENT_LINK"] = "DOCUMENT_LINK";
170
+ /** Link that initiates a phone call. */
171
+ LinkType["PHONE_LINK"] = "PHONE_LINK";
172
+ /** Link to a dynamic page route. */
173
+ LinkType["DYNAMIC_PAGE_LINK"] = "DYNAMIC_PAGE_LINK";
174
+ /** Text-based link. */
175
+ LinkType["TEXT_LINK"] = "TEXT_LINK";
176
+ /** Link that opens a login or signup dialog. */
177
+ LinkType["LOGIN_TO_WIX_LINK"] = "LOGIN_TO_WIX_LINK";
178
+ /** Link that opens WhatsApp. */
179
+ LinkType["WHATS_APP_LINK"] = "WHATS_APP_LINK";
180
+ /** Link to a physical address on a map. */
181
+ LinkType["ADDRESS_LINK"] = "ADDRESS_LINK";
182
+ /** Link to an app page. */
183
+ LinkType["APP_PAGE_LINK"] = "APP_PAGE_LINK";
160
184
  })(LinkType || (exports.LinkType = LinkType = {}));
185
+ var TextLinkType;
186
+ (function (TextLinkType) {
187
+ /** Unknown text link type. */
188
+ TextLinkType["UNKNOWN_TEXT_LINK_TYPE"] = "UNKNOWN_TEXT_LINK_TYPE";
189
+ /** SMS message link. */
190
+ TextLinkType["SMS"] = "SMS";
191
+ /** Phone call link. */
192
+ TextLinkType["CALL"] = "CALL";
193
+ /** Skype link. */
194
+ TextLinkType["SKYPE"] = "SKYPE";
195
+ /** Map link. */
196
+ TextLinkType["MAP"] = "MAP";
197
+ /** Email link. */
198
+ TextLinkType["EMAIL"] = "EMAIL";
199
+ /** Facebook link. */
200
+ TextLinkType["FACEBOOK"] = "FACEBOOK";
201
+ /** Flickr link. */
202
+ TextLinkType["FLICKR"] = "FLICKR";
203
+ /** LinkedIn link. */
204
+ TextLinkType["LINKEDIN"] = "LINKEDIN";
205
+ /** Twitter link. */
206
+ TextLinkType["TWITTER"] = "TWITTER";
207
+ /** Tumblr link. */
208
+ TextLinkType["TUMBLR"] = "TUMBLR";
209
+ /** YouTube link. */
210
+ TextLinkType["YOUTUBE"] = "YOUTUBE";
211
+ /** Vimeo link. */
212
+ TextLinkType["VIMEO"] = "VIMEO";
213
+ /** Internal page link. */
214
+ TextLinkType["PAGE"] = "PAGE";
215
+ /** Custom URL link. */
216
+ TextLinkType["FREE_LINK"] = "FREE_LINK";
217
+ /** Text link. */
218
+ TextLinkType["TEXT"] = "TEXT";
219
+ /** External website link. */
220
+ TextLinkType["WEBSITE"] = "WEBSITE";
221
+ /** Document link. */
222
+ TextLinkType["DOCUMENT"] = "DOCUMENT";
223
+ /** Admin login link. */
224
+ TextLinkType["ADMIN_LOGIN"] = "ADMIN_LOGIN";
225
+ /** Login link. */
226
+ TextLinkType["LOGIN"] = "LOGIN";
227
+ })(TextLinkType || (exports.TextLinkType = TextLinkType = {}));
161
228
  var LoginDialog;
162
229
  (function (LoginDialog) {
163
- LoginDialog["UNSPECIFIED"] = "UNSPECIFIED";
164
- /** Show create user dialog. */
230
+ /** Unknown login dialog type. */
231
+ LoginDialog["UNKNOWN_LOGIN_DIALOG"] = "UNKNOWN_LOGIN_DIALOG";
232
+ /** Shows the signup registration form directly. */
165
233
  LoginDialog["CREATE_USER"] = "CREATE_USER";
166
- /** Show login dialog (default). */
234
+ /** Shows a login-only dialog without a signup option. This is the default value. */
167
235
  LoginDialog["LOGIN"] = "LOGIN";
168
- /** Show login dialog. */
169
- LoginDialog["SHOW_LOGIN"] = "SHOW_LOGIN";
236
+ /** Shows a login dialog that also includes an option to switch to signup. */
237
+ LoginDialog["LOGIN_WITH_SIGNUP"] = "LOGIN_WITH_SIGNUP";
170
238
  })(LoginDialog || (exports.LoginDialog = LoginDialog = {}));
171
239
  var AriaPressed;
172
240
  (function (AriaPressed) {
173
- AriaPressed["UNSPECIFIED"] = "UNSPECIFIED";
241
+ AriaPressed["UNKNOWN_ARIA_PRESSED"] = "UNKNOWN_ARIA_PRESSED";
174
242
  /** The element is not pressed. */
175
243
  AriaPressed["FALSE"] = "FALSE";
176
244
  /** The element is pressed. */
@@ -180,7 +248,7 @@ var AriaPressed;
180
248
  })(AriaPressed || (exports.AriaPressed = AriaPressed = {}));
181
249
  var AriaHaspopup;
182
250
  (function (AriaHaspopup) {
183
- AriaHaspopup["UNSPECIFIED"] = "UNSPECIFIED";
251
+ AriaHaspopup["UNKNOWN_ARIA_HASPOPUP"] = "UNKNOWN_ARIA_HASPOPUP";
184
252
  /** The element has a popup. */
185
253
  AriaHaspopup["TRUE"] = "TRUE";
186
254
  /** The element does not have a popup. */
@@ -192,7 +260,7 @@ var AriaHaspopup;
192
260
  })(AriaHaspopup || (exports.AriaHaspopup = AriaHaspopup = {}));
193
261
  var AriaRelevant;
194
262
  (function (AriaRelevant) {
195
- AriaRelevant["UNSPECIFIED"] = "UNSPECIFIED";
263
+ AriaRelevant["UNKNOWN_ARIA_RELEVANT"] = "UNKNOWN_ARIA_RELEVANT";
196
264
  /** Element nodes added to the accessibility tree. */
197
265
  AriaRelevant["ADDITIONS"] = "ADDITIONS";
198
266
  /** Both additions and text changes. */
@@ -206,7 +274,7 @@ var AriaRelevant;
206
274
  })(AriaRelevant || (exports.AriaRelevant = AriaRelevant = {}));
207
275
  var AriaRole;
208
276
  (function (AriaRole) {
209
- AriaRole["UNSPECIFIED"] = "UNSPECIFIED";
277
+ AriaRole["UNKNOWN_ARIA_ROLE"] = "UNKNOWN_ARIA_ROLE";
210
278
  AriaRole["REGION"] = "REGION";
211
279
  AriaRole["GROUP"] = "GROUP";
212
280
  AriaRole["TABLIST"] = "TABLIST";
@@ -227,7 +295,7 @@ var AriaRole;
227
295
  })(AriaRole || (exports.AriaRole = AriaRole = {}));
228
296
  var AriaLive;
229
297
  (function (AriaLive) {
230
- AriaLive["UNSPECIFIED"] = "UNSPECIFIED";
298
+ AriaLive["UNKNOWN_ARIA_LIVE"] = "UNKNOWN_ARIA_LIVE";
231
299
  /** Updates are announced when the user is idle. */
232
300
  AriaLive["POLITE"] = "POLITE";
233
301
  /** Updates are announced immediately. */
@@ -235,7 +303,7 @@ var AriaLive;
235
303
  })(AriaLive || (exports.AriaLive = AriaLive = {}));
236
304
  var AriaCurrent;
237
305
  (function (AriaCurrent) {
238
- AriaCurrent["UNSPECIFIED"] = "UNSPECIFIED";
306
+ AriaCurrent["UNKNOWN_ARIA_CURRENT"] = "UNKNOWN_ARIA_CURRENT";
239
307
  /** Represents the current page within a set of pages. */
240
308
  AriaCurrent["PAGE"] = "PAGE";
241
309
  /** Represents the current step within a process. */
@@ -253,7 +321,7 @@ var AriaCurrent;
253
321
  })(AriaCurrent || (exports.AriaCurrent = AriaCurrent = {}));
254
322
  var AriaInvalid;
255
323
  (function (AriaInvalid) {
256
- AriaInvalid["UNSPECIFIED"] = "UNSPECIFIED";
324
+ AriaInvalid["UNKNOWN_ARIA_INVALID"] = "UNKNOWN_ARIA_INVALID";
257
325
  /** A grammatical error was detected. */
258
326
  AriaInvalid["GRAMMAR"] = "GRAMMAR";
259
327
  /** A spelling error was detected. */
@@ -39,7 +39,10 @@ export type ElementDocumentLink = DmTypes.DocumentLink & ElementLinkExtension &
39
39
  export type ElementDynamicPageLink = DmTypes.DynamicPageLink & ElementLinkExtension & {
40
40
  type: 'DynamicPageLink';
41
41
  };
42
- export type ElementTpaPageLink = DmTypes.TpaPageLink & ElementLinkExtension & {
42
+ export type ElementAppPageLink = DmTypes.AppPageLink & ElementLinkExtension & {
43
+ type: 'AppPageLink';
44
+ };
45
+ export type ElementTpaPageLink = DmTypes.AppPageLink & ElementLinkExtension & {
43
46
  type: 'TpaPageLink';
44
47
  };
45
48
  export type ElementLoginToWixLink = DmTypes.LoginToWixLink & ElementLinkExtension & {
@@ -48,7 +51,7 @@ export type ElementLoginToWixLink = DmTypes.LoginToWixLink & ElementLinkExtensio
48
51
  export type ElementTextLink = DmTypes.TextLink & ElementLinkExtension & {
49
52
  type: 'TextLink';
50
53
  };
51
- export type ElementLink = ElementPageLink | ElementExternalLink | ElementEmailLink | ElementPhoneLink | ElementWhatsAppLink | ElementAddressLink | ElementAnchorLink | ElementDocumentLink | ElementDynamicPageLink | ElementTpaPageLink | ElementLoginToWixLink | ElementTextLink;
54
+ export type ElementLink = ElementPageLink | ElementExternalLink | ElementEmailLink | ElementPhoneLink | ElementWhatsAppLink | ElementAddressLink | ElementAnchorLink | ElementDocumentLink | ElementDynamicPageLink | ElementTpaPageLink | ElementAppPageLink | ElementLoginToWixLink | ElementTextLink;
52
55
  export type ElementImage = DmTypes.Image;
53
56
  export interface ElementVideo {
54
57
  /**
@@ -112,39 +115,46 @@ export type ElementMenuItems = Omit<DmTypes.MenuItems, 'items'> & {
112
115
  export type ElementRichText = Omit<DmTypes.RichText, 'linkList'> & {
113
116
  linkList?: ElementLink[];
114
117
  };
115
- export type ElementDataValue = string | number | boolean | ElementLink | ElementImage | ElementVideo | ElementAudio | ElementVectorArt | ElementMenuItems | ElementA11y | ElementRichText | ElementDirection | ElementDataObject | ElementDataValue[] | null | undefined;
118
+ export type ElementFunctionDefinition = DmTypes._Function;
119
+ export type ElementDataValue = string | number | boolean | ElementLink | ElementImage | ElementVideo | ElementAudio | ElementVectorArt | ElementMenuItems | ElementA11y | ElementRichText | ElementFunctionDefinition | ElementDirection | ElementDataObject | ElementDataValue[] | null | undefined;
116
120
  export type ElementDataObject = {
117
121
  [key: string]: ElementDataValue;
118
122
  };
119
123
  export type ElementData<T extends ElementDataObject = ElementDataObject> = T;
120
124
  export type ElementDataInput<T extends ElementDataObject = ElementDataObject> = Partial<T>;
121
125
  export type ElementDataTypeMap = {
122
- [DataType.TEXT]: string;
123
- [DataType.TEXT_ENUM]: string;
124
- [DataType.NUMBER]: number;
125
- [DataType.BOOLEAN_VALUE]: boolean;
126
- [DataType.A11Y]: ElementA11y;
127
- [DataType.LINK]: ElementLink;
128
- [DataType.IMAGE]: ElementImage;
129
- [DataType.VIDEO]: ElementVideo;
130
- [DataType.VECTOR_ART]: ElementVectorArt;
131
- [DataType.AUDIO]: ElementAudio;
132
- [DataType.LOCAL_DATE]: string;
133
- [DataType.LOCAL_TIME]: string;
134
- [DataType.LOCAL_DATE_TIME]: string;
135
- [DataType.WEB_URL]: string;
136
- [DataType.EMAIL]: string;
137
- [DataType.PHONE]: string;
138
- [DataType.HOSTNAME]: string;
139
- [DataType.REGEX]: string;
140
- [DataType.GUID]: string;
141
- [DataType.RICH_TEXT]: ElementRichText;
142
- [DataType.CONTAINER]: ElementDataObject | string;
143
- [DataType.ARRAY_ITEMS]: ElementDataValue[];
144
- [DataType.DIRECTION]: ElementDirection;
145
- [DataType.MENU_ITEMS]: ElementMenuItems;
146
- [DataType.DATA]: ElementDataObject;
147
- [DataType.SCHEMA]: ElementDataValue;
148
- [DataType.UNKNOWN_DATA_TYPE]: ElementDataValue;
126
+ [DataType.text]: string;
127
+ [DataType.textEnum]: string;
128
+ [DataType.number]: number;
129
+ [DataType.booleanValue]: boolean;
130
+ [DataType.a11y]: ElementA11y;
131
+ [DataType.link]: ElementLink;
132
+ [DataType.image]: ElementImage;
133
+ [DataType.video]: ElementVideo;
134
+ [DataType.vectorArt]: ElementVectorArt;
135
+ [DataType.audio]: ElementAudio;
136
+ [DataType.localDate]: string;
137
+ [DataType.localTime]: string;
138
+ [DataType.localDateTime]: string;
139
+ [DataType.webUrl]: string;
140
+ [DataType.email]: string;
141
+ [DataType.phone]: string;
142
+ [DataType.hostname]: string;
143
+ [DataType.regex]: string;
144
+ [DataType.guid]: string;
145
+ [DataType.richText]: ElementRichText;
146
+ [DataType.container]: ElementDataObject | string;
147
+ [DataType.arrayItems]: ElementDataValue[];
148
+ [DataType.direction]: ElementDirection;
149
+ [DataType.menuItems]: ElementMenuItems;
150
+ [DataType.data]: ElementDataObject;
151
+ [DataType.onClick]: ElementFunctionDefinition;
152
+ [DataType.onChange]: ElementFunctionDefinition;
153
+ [DataType.onKeyPress]: ElementFunctionDefinition;
154
+ [DataType.onKeyUp]: ElementFunctionDefinition;
155
+ [DataType.onSubmit]: ElementFunctionDefinition;
156
+ [DataType.schema]: ElementDataValue;
157
+ [DataType.UNKNOWN_DataType]: ElementDataValue;
158
+ ['function']: ElementFunctionDefinition;
149
159
  };
150
160
  export type ElementDefaultValueFor<TypeKey extends keyof ElementDataTypeMap> = ElementDataTypeMap[TypeKey];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/public-editor-platform-interfaces",
3
- "version": "1.37.0",
3
+ "version": "1.39.0",
4
4
  "license": "UNLICENSED",
5
5
  "contributors": [
6
6
  {
@@ -23,6 +23,7 @@
23
23
  "*.{js,ts}": "yarn lint"
24
24
  },
25
25
  "dependencies": {
26
+ "@wix/app-extensions": "^1.0.29",
26
27
  "@wix/sdk-types": "^1.14.0"
27
28
  },
28
29
  "devDependencies": {
@@ -51,5 +52,5 @@
51
52
  ]
52
53
  }
53
54
  },
54
- "falconPackageHash": "adcd710dc56392f711e081e4fe73f915c058ccf6a4b570467e3b6b72"
55
+ "falconPackageHash": "6a0c2dacdb4c4cc2087fbf379ac967c7319e0edc5c17a06ca4298b57"
55
56
  }