@wix/public-editor-platform-interfaces 1.37.0 → 1.38.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.
- package/dist/generated/dm-types.d.ts +334 -242
- package/dist/generated/dm-types.js +162 -94
- package/dist/sdk/data.d.ts +40 -30
- package/package.json +2 -2
|
@@ -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:
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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["
|
|
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["
|
|
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
|
-
|
|
137
|
-
LinkType["
|
|
138
|
-
|
|
139
|
-
LinkType["
|
|
140
|
-
|
|
141
|
-
LinkType["
|
|
142
|
-
|
|
143
|
-
LinkType["
|
|
144
|
-
|
|
145
|
-
LinkType["
|
|
146
|
-
|
|
147
|
-
LinkType["
|
|
148
|
-
|
|
149
|
-
LinkType["
|
|
150
|
-
|
|
151
|
-
LinkType["
|
|
152
|
-
/**
|
|
153
|
-
LinkType["
|
|
154
|
-
|
|
155
|
-
LinkType["
|
|
156
|
-
|
|
157
|
-
LinkType["
|
|
158
|
-
|
|
159
|
-
LinkType["
|
|
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
|
-
|
|
164
|
-
|
|
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
|
-
/**
|
|
234
|
+
/** Shows a login-only dialog without a signup option. This is the default value. */
|
|
167
235
|
LoginDialog["LOGIN"] = "LOGIN";
|
|
168
|
-
/**
|
|
169
|
-
LoginDialog["
|
|
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["
|
|
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["
|
|
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["
|
|
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["
|
|
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["
|
|
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["
|
|
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["
|
|
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. */
|
package/dist/sdk/data.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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.
|
|
123
|
-
[DataType.
|
|
124
|
-
[DataType.
|
|
125
|
-
[DataType.
|
|
126
|
-
[DataType.
|
|
127
|
-
[DataType.
|
|
128
|
-
[DataType.
|
|
129
|
-
[DataType.
|
|
130
|
-
[DataType.
|
|
131
|
-
[DataType.
|
|
132
|
-
[DataType.
|
|
133
|
-
[DataType.
|
|
134
|
-
[DataType.
|
|
135
|
-
[DataType.
|
|
136
|
-
[DataType.
|
|
137
|
-
[DataType.
|
|
138
|
-
[DataType.
|
|
139
|
-
[DataType.
|
|
140
|
-
[DataType.
|
|
141
|
-
[DataType.
|
|
142
|
-
[DataType.
|
|
143
|
-
[DataType.
|
|
144
|
-
[DataType.
|
|
145
|
-
[DataType.
|
|
146
|
-
[DataType.
|
|
147
|
-
[DataType.
|
|
148
|
-
[DataType.
|
|
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.
|
|
3
|
+
"version": "1.38.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
"falconPackageHash": "
|
|
54
|
+
"falconPackageHash": "4844f880d36f8a57c20c081b07a678a6a6f957e5344d551778a412de"
|
|
55
55
|
}
|