@webstudio-is/sdk-components-react 0.218.0 → 0.219.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 (59) hide show
  1. package/lib/__generated__/blockquote.props.js +2 -178
  2. package/lib/__generated__/body.props.js +2 -172
  3. package/lib/__generated__/bold.props.js +2 -172
  4. package/lib/__generated__/box.props.js +3 -172
  5. package/lib/__generated__/button.props.js +2 -234
  6. package/lib/__generated__/checkbox.props.js +1 -328
  7. package/lib/__generated__/code-text.props.js +1 -170
  8. package/lib/__generated__/form.props.js +2 -220
  9. package/lib/__generated__/head-link.props.js +2 -284
  10. package/lib/__generated__/head-meta.props.js +2 -196
  11. package/lib/__generated__/head-title.props.js +2 -172
  12. package/lib/__generated__/heading.props.js +3 -172
  13. package/lib/__generated__/html-embed.props.js +6 -1
  14. package/lib/__generated__/image.props.js +1 -247
  15. package/lib/__generated__/input.props.js +2 -360
  16. package/lib/__generated__/italic.props.js +2 -172
  17. package/lib/__generated__/label.props.js +2 -184
  18. package/lib/__generated__/link.props.js +4 -221
  19. package/lib/__generated__/list-item.props.js +2 -178
  20. package/lib/__generated__/list.props.js +1 -189
  21. package/lib/__generated__/markdown-embed.props.js +6 -1
  22. package/lib/__generated__/option.props.js +2 -196
  23. package/lib/__generated__/paragraph.props.js +2 -172
  24. package/lib/__generated__/radio-button.props.js +1 -328
  25. package/lib/__generated__/select.props.js +2 -220
  26. package/lib/__generated__/separator.props.js +2 -172
  27. package/lib/__generated__/span.props.js +2 -172
  28. package/lib/__generated__/subscript.props.js +2 -172
  29. package/lib/__generated__/superscript.props.js +2 -172
  30. package/lib/__generated__/text.props.js +3 -172
  31. package/lib/__generated__/textarea.props.js +2 -251
  32. package/lib/__generated__/time.props.js +3 -3
  33. package/lib/__generated__/video.props.js +2 -251
  34. package/lib/__generated__/vimeo-play-button.props.js +2 -233
  35. package/lib/__generated__/vimeo-preview-image.props.js +1 -246
  36. package/lib/__generated__/vimeo-spinner.props.js +2 -172
  37. package/lib/__generated__/vimeo.props.js +118 -365
  38. package/lib/__generated__/webhook-form.props.js +1 -223
  39. package/lib/__generated__/xml-node.props.js +8 -3
  40. package/lib/__generated__/xml-time.props.js +4 -3
  41. package/lib/__generated__/youtube.props.js +1 -164
  42. package/lib/box.ws.js +11 -11
  43. package/lib/head-slot.js +4 -5
  44. package/lib/heading.ws.js +7 -7
  45. package/lib/list.ws.js +3 -3
  46. package/lib/markdown-embed.js +3 -3
  47. package/lib/shared/video.js +13 -0
  48. package/lib/types/link.d.ts +1 -1
  49. package/lib/types/shared/video.d.ts +7 -0
  50. package/lib/types/vimeo.d.ts +0 -7
  51. package/lib/video.js +19 -23
  52. package/lib/vimeo-play-button.js +4 -4
  53. package/lib/vimeo-preview-image.js +5 -5
  54. package/lib/vimeo-spinner.js +1 -1
  55. package/lib/vimeo.js +113 -121
  56. package/lib/webhook-form.template.js +12 -12
  57. package/lib/xml-node.js +4 -4
  58. package/lib/youtube.js +1 -1
  59. package/package.json +8 -8
@@ -1,413 +1,166 @@
1
1
  const e = {
2
- accessKey: {
3
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey)",
4
- required: !0,
5
- control: "text",
6
- type: "string"
7
- },
8
- accessKeyLabel: {
9
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel)",
10
- required: !0,
11
- control: "text",
12
- type: "string"
13
- },
14
- align: {
15
- description: "Sets or retrieves how the object is aligned with adjacent text.",
16
- required: !0,
17
- control: "text",
18
- type: "string"
19
- },
20
- allow: {
21
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allow)",
22
- required: !0,
23
- control: "text",
24
- type: "string"
25
- },
26
- allowFullscreen: {
27
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allowFullscreen)",
28
- required: !0,
2
+ autopause: {
3
+ description: "Whether to pause the current video when another Vimeo video on the same page starts to play. Set this value to false to permit simultaneous playback of all the videos on the page. This option has no effect if you've disabled cookies in your browser, either through browser settings or with an extension or plugin.",
4
+ required: !1,
29
5
  control: "boolean",
30
- type: "boolean"
6
+ type: "boolean",
7
+ defaultValue: !0
31
8
  },
32
- autocapitalize: {
33
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize)",
34
- required: !0,
35
- control: "text",
36
- type: "string"
37
- },
38
- autofocus: {
39
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus)",
40
- required: !0,
9
+ autopip: {
10
+ description: "Whether to enable the browser to enter picture-in-picture mode automatically when switching tabs or windows, where supported.",
11
+ required: !1,
41
12
  control: "boolean",
42
13
  type: "boolean"
43
14
  },
44
- baseURI: {
45
- description: `Returns node's node document's document base URL.
46
-
47
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI)`,
48
- required: !0,
49
- control: "text",
50
- type: "string"
51
- },
52
- childElementCount: {
53
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/childElementCount)",
54
- required: !0,
55
- control: "number",
56
- type: "number"
57
- },
58
- className: {
59
- description: `Returns the value of element's class content attribute. Can be set to change it.
60
-
61
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className)`,
62
- required: !0,
63
- control: "text",
64
- type: "string"
65
- },
66
- clientHeight: {
67
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight)",
68
- required: !0,
69
- control: "number",
70
- type: "number"
71
- },
72
- clientLeft: {
73
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft)",
74
- required: !0,
75
- control: "number",
76
- type: "number"
77
- },
78
- clientTop: {
79
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop)",
80
- required: !0,
81
- control: "number",
82
- type: "number"
83
- },
84
- clientWidth: {
85
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth)",
86
- required: !0,
87
- control: "number",
88
- type: "number"
89
- },
90
- contentEditable: {
91
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable)",
92
- required: !0,
93
- control: "text",
94
- type: "string"
95
- },
96
- currentCSSZoom: {
97
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)",
98
- required: !0,
99
- control: "number",
100
- type: "number"
101
- },
102
- dir: {
103
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir)",
104
- required: !0,
105
- control: "text",
106
- type: "string"
107
- },
108
- draggable: {
109
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable)",
110
- required: !0,
15
+ autoplay: {
16
+ description: "Whether to start playback of the video automatically. This feature might not work on all devices.\nSome browsers require the `muted` parameter to be set to `true` for autoplay to work.",
17
+ required: !1,
111
18
  control: "boolean",
112
- type: "boolean"
113
- },
114
- enterKeyHint: {
115
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint)",
116
- required: !0,
117
- control: "text",
118
- type: "string"
119
- },
120
- frameBorder: {
121
- description: "Sets or retrieves whether to display a border for the frame.",
122
- required: !0,
123
- control: "text",
124
- type: "string"
125
- },
126
- height: {
127
- description: `Sets or retrieves the height of the object.
128
-
129
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)`,
130
- required: !0,
131
- control: "text",
132
- type: "string"
19
+ type: "boolean",
20
+ defaultValue: !1
133
21
  },
134
- hidden: {
135
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden)",
136
- required: !0,
22
+ backgroundMode: {
23
+ description: "Whether the player is in background mode, which hides the playback controls, enables autoplay, and loops the video.",
24
+ required: !1,
137
25
  control: "boolean",
138
26
  type: "boolean"
139
27
  },
140
- id: {
141
- description: `Returns the value of element's id content attribute. Can be set to change it.
142
-
143
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)`,
144
- required: !0,
145
- control: "text",
28
+ controlsColor: {
29
+ description: "A color value of the playback controls, which is normally #00ADEF. The embed settings of the video might override this value.",
30
+ required: !1,
31
+ control: "color",
146
32
  type: "string"
147
33
  },
148
- inert: {
149
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert)",
150
- required: !0,
34
+ doNotTrack: {
35
+ description: "Whether to prevent the player from tracking session data, including cookies. Keep in mind that setting this argument to true also blocks video stats.",
36
+ required: !1,
151
37
  control: "boolean",
152
- type: "boolean"
38
+ type: "boolean",
39
+ defaultValue: !1
153
40
  },
154
- innerHTML: {
155
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML)",
156
- required: !0,
157
- control: "text",
158
- type: "string"
159
- },
160
- innerText: {
161
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText)",
162
- required: !0,
163
- control: "text",
164
- type: "string"
165
- },
166
- inputMode: {
167
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode)",
168
- required: !0,
41
+ interactiveParams: {
42
+ description: "Key-value pairs representing dynamic parameters that are utilized on interactive videos with live elements, such as title=my-video,subtitle=interactive.",
43
+ required: !1,
169
44
  control: "text",
170
45
  type: "string"
171
46
  },
172
- isConnected: {
173
- description: `Returns true if node is connected and false otherwise.
174
-
175
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected)`,
176
- required: !0,
47
+ keyboard: {
48
+ description: "Whether to enable keyboard input to trigger player events. This setting doesn't affect tab control.",
49
+ required: !1,
177
50
  control: "boolean",
178
- type: "boolean"
179
- },
180
- isContentEditable: {
181
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable)",
182
- required: !0,
183
- control: "boolean",
184
- type: "boolean"
185
- },
186
- lang: {
187
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang)",
188
- required: !0,
189
- control: "text",
190
- type: "string"
51
+ type: "boolean",
52
+ defaultValue: !0
191
53
  },
192
54
  loading: {
193
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading)",
55
+ description: "Not a Vimeo attribute: Loading attribute for the iframe allows to eager or lazy load the source",
194
56
  required: !1,
195
- control: "text",
57
+ control: "radio",
196
58
  type: "string",
197
- defaultValue: "lazy"
198
- },
199
- localName: {
200
- description: `Returns the local name.
201
-
202
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName)`,
203
- required: !0,
204
- control: "text",
205
- type: "string"
59
+ defaultValue: "lazy",
60
+ options: ["eager", "lazy"]
206
61
  },
207
- longDesc: {
208
- description: "Sets or retrieves a URI to a long description of the object.",
209
- required: !0,
210
- control: "text",
211
- type: "string"
212
- },
213
- marginHeight: {
214
- description: "Sets or retrieves the top and bottom margin heights before displaying the text in a frame.",
215
- required: !0,
216
- control: "text",
217
- type: "string"
218
- },
219
- marginWidth: {
220
- description: "Sets or retrieves the left and right margin widths before displaying the text in a frame.",
221
- required: !0,
222
- control: "text",
223
- type: "string"
224
- },
225
- name: {
226
- description: `Sets or retrieves the frame name.
227
-
228
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/name)`,
229
- required: !0,
230
- control: "text",
231
- type: "string"
232
- },
233
- nodeName: {
234
- description: `Returns a string appropriate for the type of node.
235
-
236
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName)`,
237
- required: !0,
238
- control: "text",
239
- type: "string"
240
- },
241
- nodeType: {
242
- description: `Returns the type of node.
243
-
244
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType)`,
245
- required: !0,
246
- control: "number",
247
- type: "number"
248
- },
249
- nonce: {
250
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce)",
62
+ loop: {
63
+ description: "Whether to restart the video automatically after reaching the end.",
251
64
  required: !1,
252
- control: "text",
253
- type: "string"
254
- },
255
- offsetHeight: {
256
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight)",
257
- required: !0,
258
- control: "number",
259
- type: "number"
260
- },
261
- offsetLeft: {
262
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft)",
263
- required: !0,
264
- control: "number",
265
- type: "number"
266
- },
267
- offsetTop: {
268
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop)",
269
- required: !0,
270
- control: "number",
271
- type: "number"
65
+ control: "boolean",
66
+ type: "boolean",
67
+ defaultValue: !1
272
68
  },
273
- offsetWidth: {
274
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth)",
275
- required: !0,
276
- control: "number",
277
- type: "number"
69
+ muted: {
70
+ description: "Whether the video is muted upon loading. The true value is required for the autoplay behavior in some browsers.",
71
+ required: !1,
72
+ control: "boolean",
73
+ type: "boolean",
74
+ defaultValue: !1
278
75
  },
279
- outerHTML: {
280
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML)",
281
- required: !0,
282
- control: "text",
283
- type: "string"
76
+ pip: {
77
+ description: "Whether to include the picture-in-picture button among the player controls and enable the picture-in-picture API.",
78
+ required: !1,
79
+ control: "boolean",
80
+ type: "boolean",
81
+ defaultValue: !1
284
82
  },
285
- outerText: {
286
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText)",
287
- required: !0,
288
- control: "text",
289
- type: "string"
83
+ playsinline: {
84
+ description: "Whether the video plays inline on supported mobile devices. To force the device to play the video in fullscreen mode instead, set this value to false.",
85
+ required: !1,
86
+ control: "boolean",
87
+ type: "boolean",
88
+ defaultValue: !1
290
89
  },
291
- referrerPolicy: {
292
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy)",
293
- required: !0,
90
+ quality: {
91
+ description: "For videos on a Vimeo Plus account or higher: the playback quality of the video. Use auto for the best possible quality given available bandwidth and other factors. You can also specify 360p, 540p, 720p, 1080p, 2k, and 4k.",
92
+ required: !1,
294
93
  control: "select",
295
94
  type: "string",
296
- options: [
297
- "",
298
- "no-referrer",
299
- "no-referrer-when-downgrade",
300
- "origin",
301
- "origin-when-cross-origin",
302
- "same-origin",
303
- "strict-origin",
304
- "strict-origin-when-cross-origin",
305
- "unsafe-url"
306
- ]
307
- },
308
- role: {
309
- required: !0,
310
- control: "text",
311
- type: "string",
312
- description: "Defines an explicit role for an element for use by assistive technologies."
95
+ defaultValue: "auto",
96
+ options: ["auto", "360p", "540p", "720p", "1080p", "2k", "4k"]
313
97
  },
314
- scrollHeight: {
315
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight)",
316
- required: !0,
317
- control: "number",
318
- type: "number"
319
- },
320
- scrolling: {
321
- description: "Sets or retrieves whether the frame can be scrolled.",
322
- required: !0,
323
- control: "text",
324
- type: "string"
325
- },
326
- scrollLeft: {
327
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft)",
328
- required: !0,
329
- control: "number",
330
- type: "number"
331
- },
332
- scrollTop: {
333
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop)",
334
- required: !0,
335
- control: "number",
336
- type: "number"
337
- },
338
- scrollWidth: {
339
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth)",
340
- required: !0,
341
- control: "number",
342
- type: "number"
98
+ responsive: {
99
+ description: "Whether to return a responsive embed code, or one that provides intelligent adjustments based on viewing conditions. We recommend this option for mobile-optimized sites.",
100
+ required: !1,
101
+ control: "boolean",
102
+ type: "boolean",
103
+ defaultValue: !0
343
104
  },
344
- slot: {
345
- description: `Returns the value of element's slot content attribute. Can be set to change it.
346
-
347
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot)`,
348
- required: !0,
349
- control: "text",
350
- type: "string"
105
+ showByline: {
106
+ description: "Whether to display the video owner's name.",
107
+ required: !1,
108
+ control: "boolean",
109
+ type: "boolean",
110
+ defaultValue: !1
351
111
  },
352
- spellcheck: {
353
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck)",
354
- required: !0,
112
+ showControls: {
113
+ description: "Whether to display the player's interactive elements, including the play bar and sharing buttons. Set this option to false for a chromeless experience. To control playback when the play/pause button is hidden, set autoplay to true, use keyboard controls (which remain active), or implement our player SDK.",
114
+ required: !1,
355
115
  control: "boolean",
356
- type: "boolean"
116
+ type: "boolean",
117
+ defaultValue: !0
357
118
  },
358
- src: {
359
- description: `Sets or retrieves a URL to be loaded by the object.
360
-
361
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/src)`,
362
- required: !0,
363
- control: "text",
364
- type: "string"
119
+ showPortrait: {
120
+ description: "Whether to display the video owner's portrait. Only works if either title or byline are also enabled",
121
+ required: !1,
122
+ control: "boolean",
123
+ type: "boolean",
124
+ defaultValue: !0
365
125
  },
366
- srcdoc: {
367
- description: `Sets or retrives the content of the page that is to contain.
368
-
369
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/srcdoc)`,
370
- required: !0,
371
- control: "text",
372
- type: "string"
126
+ showPreview: {
127
+ description: "Not a Vimeo attribute: Whether the preview image should be loaded from Vimeo API. Ideally don't use it, because it will show up with some delay and will make your project feel slower.",
128
+ required: !1,
129
+ control: "boolean",
130
+ type: "boolean",
131
+ defaultValue: !1
373
132
  },
374
- tabIndex: {
375
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex)",
376
- required: !0,
377
- control: "number",
378
- type: "number"
133
+ showTitle: {
134
+ description: "Whether the player displays the title overlay.",
135
+ required: !1,
136
+ control: "boolean",
137
+ type: "boolean",
138
+ defaultValue: !1
379
139
  },
380
- tagName: {
381
- description: `Returns the HTML-uppercased qualified name.
382
-
383
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName)`,
384
- required: !0,
385
- control: "text",
386
- type: "string"
140
+ speed: {
141
+ description: "Whether the player displays speed controls in the preferences menu and enables the playback rate API.",
142
+ required: !1,
143
+ control: "boolean",
144
+ type: "boolean",
145
+ defaultValue: !1
387
146
  },
388
- title: {
389
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title)",
390
- required: !0,
147
+ texttrack: {
148
+ description: `The text track to display with the video. Specify the text track by its language code (en), the language code and locale (en-US), or the language code and kind (en.captions). For this argument to work, the video must already have a text track of the given type; see our Help Center or Working with Text Track Uploads for more information.
149
+ To enable automatically generated closed captions instead, provide the value en-x-autogen. Please note that, at the present time, automatic captions are always in English.`,
150
+ required: !1,
391
151
  control: "text",
392
152
  type: "string"
393
153
  },
394
- translate: {
395
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate)",
396
- required: !0,
154
+ transparent: {
155
+ description: "Whether the responsive player and transparent background are enabled.",
156
+ required: !1,
397
157
  control: "boolean",
398
- type: "boolean"
158
+ type: "boolean",
159
+ defaultValue: !0
399
160
  },
400
- width: {
401
- description: `Sets or retrieves the width of the object.
402
-
403
- [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width)`,
404
- required: !0,
405
- control: "text",
406
- type: "string"
407
- },
408
- writingSuggestions: {
409
- description: "[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/writingSuggestions)",
410
- required: !0,
161
+ url: {
162
+ description: "The ID or the URL of the video on Vimeo. You must supply one of these values to identify the video. When the video's privacy setting is Private, you must use the URL, and the URL must include the h parameter. For more information, see Vimeo’s introductory guide.",
163
+ required: !1,
411
164
  control: "text",
412
165
  type: "string"
413
166
  }