@webstudio-is/sdk-components-react 0.75.0 → 0.77.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/lib/__generated__/blockquote.props.js +84 -88
- package/lib/__generated__/body.props.js +83 -87
- package/lib/__generated__/bold.props.js +83 -87
- package/lib/__generated__/box.props.js +83 -87
- package/lib/__generated__/button.props.js +98 -103
- package/lib/__generated__/checkbox.props.js +120 -127
- package/lib/__generated__/code-text.props.js +84 -88
- package/lib/__generated__/form.props.js +90 -94
- package/lib/__generated__/heading.props.js +83 -87
- package/lib/__generated__/image.props.js +124 -128
- package/lib/__generated__/input.props.js +126 -133
- package/lib/__generated__/italic.props.js +83 -87
- package/lib/__generated__/label.props.js +85 -89
- package/lib/__generated__/link.props.js +110 -115
- package/lib/__generated__/list-item.props.js +83 -88
- package/lib/__generated__/list.props.js +87 -91
- package/lib/__generated__/paragraph.props.js +83 -87
- package/lib/__generated__/radio-button.props.js +120 -127
- package/lib/__generated__/rich-text-link.props.js +110 -115
- package/lib/__generated__/separator.props.js +83 -87
- package/lib/__generated__/span.props.js +83 -87
- package/lib/__generated__/subscript.props.js +83 -87
- package/lib/__generated__/superscript.props.js +83 -87
- package/lib/__generated__/text.props.js +83 -87
- package/lib/__generated__/textarea.props.js +95 -101
- package/lib/__generated__/vimeo-play-button.props.js +97 -102
- package/lib/__generated__/vimeo-preview-image.props.js +124 -128
- package/lib/__generated__/vimeo-spinner.props.js +83 -87
- package/lib/__generated__/vimeo.props.js +127 -131
- package/lib/blockquote.ws.js +2 -46
- package/lib/body.ws.js +1 -21
- package/lib/cjs/__generated__/blockquote.props.js +84 -88
- package/lib/cjs/__generated__/body.props.js +83 -87
- package/lib/cjs/__generated__/bold.props.js +83 -87
- package/lib/cjs/__generated__/box.props.js +83 -87
- package/lib/cjs/__generated__/button.props.js +98 -103
- package/lib/cjs/__generated__/checkbox.props.js +120 -127
- package/lib/cjs/__generated__/code-text.props.js +84 -88
- package/lib/cjs/__generated__/form.props.js +90 -94
- package/lib/cjs/__generated__/heading.props.js +83 -87
- package/lib/cjs/__generated__/image.props.js +124 -128
- package/lib/cjs/__generated__/input.props.js +126 -133
- package/lib/cjs/__generated__/italic.props.js +83 -87
- package/lib/cjs/__generated__/label.props.js +85 -89
- package/lib/cjs/__generated__/link.props.js +110 -115
- package/lib/cjs/__generated__/list-item.props.js +83 -88
- package/lib/cjs/__generated__/list.props.js +87 -91
- package/lib/cjs/__generated__/paragraph.props.js +83 -87
- package/lib/cjs/__generated__/radio-button.props.js +120 -127
- package/lib/cjs/__generated__/rich-text-link.props.js +110 -115
- package/lib/cjs/__generated__/separator.props.js +83 -87
- package/lib/cjs/__generated__/span.props.js +83 -87
- package/lib/cjs/__generated__/subscript.props.js +83 -87
- package/lib/cjs/__generated__/superscript.props.js +83 -87
- package/lib/cjs/__generated__/text.props.js +83 -87
- package/lib/cjs/__generated__/textarea.props.js +95 -101
- package/lib/cjs/__generated__/vimeo-play-button.props.js +97 -102
- package/lib/cjs/__generated__/vimeo-preview-image.props.js +124 -128
- package/lib/cjs/__generated__/vimeo-spinner.props.js +83 -87
- package/lib/cjs/__generated__/vimeo.props.js +127 -131
- package/lib/cjs/blockquote.ws.js +2 -46
- package/lib/cjs/body.ws.js +1 -21
- package/lib/cjs/code-text.js +2 -2
- package/lib/cjs/components.js +0 -4
- package/lib/cjs/form.ws.js +1 -0
- package/lib/cjs/link.js +6 -2
- package/lib/cjs/list.ws.js +1 -1
- package/lib/cjs/metas.js +0 -4
- package/lib/cjs/props.js +0 -4
- package/lib/code-text.js +2 -2
- package/lib/components.js +0 -4
- package/lib/form.ws.js +1 -0
- package/lib/link.js +6 -2
- package/lib/list.ws.js +1 -1
- package/lib/metas.js +14 -18
- package/lib/props.js +14 -18
- package/lib/types/code-text.d.ts +1 -1
- package/lib/types/components.d.ts +0 -2
- package/lib/types/metas.d.ts +0 -2
- package/lib/types/props.d.ts +0 -2
- package/package.json +10 -11
- package/src/__generated__/blockquote.props.ts +85 -89
- package/src/__generated__/body.props.ts +84 -88
- package/src/__generated__/bold.props.ts +84 -88
- package/src/__generated__/box.props.ts +84 -88
- package/src/__generated__/button.props.ts +99 -104
- package/src/__generated__/checkbox.props.ts +121 -128
- package/src/__generated__/code-text.props.ts +85 -89
- package/src/__generated__/form.props.ts +91 -95
- package/src/__generated__/heading.props.ts +84 -88
- package/src/__generated__/image.props.ts +126 -130
- package/src/__generated__/input.props.ts +127 -134
- package/src/__generated__/italic.props.ts +84 -88
- package/src/__generated__/label.props.ts +86 -90
- package/src/__generated__/link.props.ts +111 -116
- package/src/__generated__/list-item.props.ts +84 -89
- package/src/__generated__/list.props.ts +88 -92
- package/src/__generated__/paragraph.props.ts +84 -88
- package/src/__generated__/radio-button.props.ts +121 -128
- package/src/__generated__/rich-text-link.props.ts +111 -116
- package/src/__generated__/separator.props.ts +84 -88
- package/src/__generated__/span.props.ts +84 -88
- package/src/__generated__/subscript.props.ts +84 -88
- package/src/__generated__/superscript.props.ts +84 -88
- package/src/__generated__/text.props.ts +84 -88
- package/src/__generated__/textarea.props.ts +96 -102
- package/src/__generated__/vimeo-play-button.props.ts +98 -103
- package/src/__generated__/vimeo-preview-image.props.ts +126 -130
- package/src/__generated__/vimeo-spinner.props.ts +84 -88
- package/src/__generated__/vimeo.props.ts +131 -135
- package/src/blockquote.ws.tsx +2 -48
- package/src/body.ws.tsx +1 -21
- package/src/code-text.tsx +2 -2
- package/src/components.ts +0 -2
- package/src/form.ws.tsx +1 -0
- package/src/link.tsx +7 -2
- package/src/list.ws.tsx +1 -1
- package/src/metas.ts +0 -2
- package/src/props.ts +0 -2
- package/src/subscript.stories.tsx +9 -9
- package/lib/__generated__/error-message.props.js +0 -398
- package/lib/__generated__/success-message.props.js +0 -398
- package/lib/cjs/__generated__/error-message.props.js +0 -418
- package/lib/cjs/__generated__/success-message.props.js +0 -418
- package/lib/cjs/error-message.js +0 -29
- package/lib/cjs/error-message.ws.js +0 -40
- package/lib/cjs/success-message.js +0 -29
- package/lib/cjs/success-message.ws.js +0 -40
- package/lib/error-message.js +0 -9
- package/lib/error-message.ws.js +0 -20
- package/lib/success-message.js +0 -9
- package/lib/success-message.ws.js +0 -20
- package/lib/types/__generated__/error-message.props.d.ts +0 -2
- package/lib/types/__generated__/success-message.props.d.ts +0 -2
- package/lib/types/blockquote.stories.d.ts +0 -5
- package/lib/types/body.stories.d.ts +0 -6
- package/lib/types/bold.stories.d.ts +0 -5
- package/lib/types/box.stories.d.ts +0 -9
- package/lib/types/button.stories.d.ts +0 -5
- package/lib/types/code-text.stories.d.ts +0 -11
- package/lib/types/error-message.d.ts +0 -3
- package/lib/types/error-message.ws.d.ts +0 -3
- package/lib/types/form.stories.d.ts +0 -5
- package/lib/types/heading.stories.d.ts +0 -9
- package/lib/types/html-embed.stories.d.ts +0 -11
- package/lib/types/image.stories.d.ts +0 -562
- package/lib/types/input.stories.d.ts +0 -9
- package/lib/types/italic.stories.d.ts +0 -5
- package/lib/types/link.stories.d.ts +0 -9
- package/lib/types/list-item.stories.d.ts +0 -5
- package/lib/types/list.stories.d.ts +0 -9
- package/lib/types/paragraph.stories.d.ts +0 -5
- package/lib/types/rich-text-link.stories.d.ts +0 -9
- package/lib/types/separator.stories.d.ts +0 -5
- package/lib/types/slot.stories.d.ts +0 -9
- package/lib/types/span.stories.d.ts +0 -5
- package/lib/types/subscript.stories.d.ts +0 -5
- package/lib/types/success-message.d.ts +0 -3
- package/lib/types/success-message.ws.d.ts +0 -3
- package/lib/types/superscript.stories.d.ts +0 -5
- package/lib/types/text.stories.d.ts +0 -9
- package/lib/types/vimeo-play-button.stories.d.ts +0 -5
- package/lib/types/vimeo-preview-image.stories.d.ts +0 -562
- package/lib/types/vimeo-spinner.stories.d.ts +0 -5
- package/lib/types/vimeo.stories.d.ts +0 -71
- package/src/__generated__/error-message.props.ts +0 -443
- package/src/__generated__/success-message.props.ts +0 -443
- package/src/error-message.tsx +0 -10
- package/src/error-message.ws.tsx +0 -24
- package/src/success-message.tsx +0 -10
- package/src/success-message.ws.tsx +0 -24
|
@@ -22,93 +22,8 @@ __export(vimeo_props_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(vimeo_props_exports);
|
|
24
24
|
const props = {
|
|
25
|
-
slot: { required: false, control: "text", type: "string" },
|
|
26
|
-
style: { required: false, control: "text", type: "string" },
|
|
27
|
-
title: { required: false, control: "text", type: "string" },
|
|
28
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
29
|
-
defaultValue: { required: false, control: "text", type: "string" },
|
|
30
|
-
suppressContentEditableWarning: {
|
|
31
|
-
required: false,
|
|
32
|
-
control: "boolean",
|
|
33
|
-
type: "boolean"
|
|
34
|
-
},
|
|
35
|
-
suppressHydrationWarning: {
|
|
36
|
-
required: false,
|
|
37
|
-
control: "boolean",
|
|
38
|
-
type: "boolean"
|
|
39
|
-
},
|
|
40
|
-
accessKey: { required: false, control: "text", type: "string" },
|
|
41
|
-
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
42
|
-
className: { required: false, control: "text", type: "string" },
|
|
43
|
-
contentEditable: { required: false, control: "text", type: "string" },
|
|
44
|
-
contextMenu: { required: false, control: "text", type: "string" },
|
|
45
|
-
dir: { required: false, control: "text", type: "string" },
|
|
46
|
-
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
47
|
-
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
48
|
-
id: { required: false, control: "text", type: "string" },
|
|
49
|
-
lang: { required: false, control: "text", type: "string" },
|
|
50
|
-
nonce: { required: false, control: "text", type: "string" },
|
|
51
|
-
placeholder: { required: false, control: "text", type: "string" },
|
|
52
|
-
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
53
|
-
tabIndex: { required: false, control: "number", type: "number" },
|
|
54
|
-
translate: {
|
|
55
|
-
required: false,
|
|
56
|
-
control: "radio",
|
|
57
|
-
type: "string",
|
|
58
|
-
options: ["yes", "no"]
|
|
59
|
-
},
|
|
60
|
-
radioGroup: { required: false, control: "text", type: "string" },
|
|
61
|
-
role: { required: false, control: "text", type: "string" },
|
|
62
25
|
about: { required: false, control: "text", type: "string" },
|
|
63
|
-
|
|
64
|
-
datatype: { required: false, control: "text", type: "string" },
|
|
65
|
-
inlist: { required: false, control: "text", type: "string" },
|
|
66
|
-
prefix: { required: false, control: "text", type: "string" },
|
|
67
|
-
property: { required: false, control: "text", type: "string" },
|
|
68
|
-
rel: { required: false, control: "text", type: "string" },
|
|
69
|
-
resource: { required: false, control: "text", type: "string" },
|
|
70
|
-
rev: { required: false, control: "text", type: "string" },
|
|
71
|
-
typeof: { required: false, control: "text", type: "string" },
|
|
72
|
-
vocab: { required: false, control: "text", type: "string" },
|
|
73
|
-
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
74
|
-
autoCorrect: { required: false, control: "text", type: "string" },
|
|
75
|
-
autoSave: { required: false, control: "text", type: "string" },
|
|
76
|
-
color: { required: false, control: "color", type: "string" },
|
|
77
|
-
itemProp: { required: false, control: "text", type: "string" },
|
|
78
|
-
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
79
|
-
itemType: { required: false, control: "text", type: "string" },
|
|
80
|
-
itemID: { required: false, control: "text", type: "string" },
|
|
81
|
-
itemRef: { required: false, control: "text", type: "string" },
|
|
82
|
-
results: { required: false, control: "number", type: "number" },
|
|
83
|
-
security: { required: false, control: "text", type: "string" },
|
|
84
|
-
unselectable: {
|
|
85
|
-
required: false,
|
|
86
|
-
control: "radio",
|
|
87
|
-
type: "string",
|
|
88
|
-
options: ["on", "off"]
|
|
89
|
-
},
|
|
90
|
-
inputMode: {
|
|
91
|
-
description: "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
|
|
92
|
-
required: false,
|
|
93
|
-
control: "select",
|
|
94
|
-
type: "string",
|
|
95
|
-
options: [
|
|
96
|
-
"text",
|
|
97
|
-
"url",
|
|
98
|
-
"none",
|
|
99
|
-
"search",
|
|
100
|
-
"tel",
|
|
101
|
-
"email",
|
|
102
|
-
"numeric",
|
|
103
|
-
"decimal"
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
is: {
|
|
107
|
-
description: "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
|
|
108
|
-
required: false,
|
|
109
|
-
control: "text",
|
|
110
|
-
type: "string"
|
|
111
|
-
},
|
|
26
|
+
accessKey: { required: false, control: "text", type: "string" },
|
|
112
27
|
"aria-activedescendant": {
|
|
113
28
|
description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
114
29
|
required: false,
|
|
@@ -415,12 +330,9 @@ const props = {
|
|
|
415
330
|
control: "text",
|
|
416
331
|
type: "string"
|
|
417
332
|
},
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
control: "text",
|
|
422
|
-
type: "string"
|
|
423
|
-
},
|
|
333
|
+
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
334
|
+
autoCorrect: { required: false, control: "text", type: "string" },
|
|
335
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
424
336
|
autopause: {
|
|
425
337
|
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.",
|
|
426
338
|
required: false,
|
|
@@ -441,6 +353,70 @@ const props = {
|
|
|
441
353
|
type: "boolean",
|
|
442
354
|
defaultValue: false
|
|
443
355
|
},
|
|
356
|
+
autoSave: { required: false, control: "text", type: "string" },
|
|
357
|
+
backgroundMode: {
|
|
358
|
+
description: "Whether the player is in background mode, which hides the playback controls, enables autoplay, and loops the video.",
|
|
359
|
+
required: false,
|
|
360
|
+
control: "boolean",
|
|
361
|
+
type: "boolean",
|
|
362
|
+
defaultValue: false
|
|
363
|
+
},
|
|
364
|
+
className: { required: false, control: "text", type: "string" },
|
|
365
|
+
color: { required: false, control: "color", type: "string" },
|
|
366
|
+
content: { required: false, control: "text", type: "string" },
|
|
367
|
+
contextMenu: { required: false, control: "text", type: "string" },
|
|
368
|
+
controlsColor: {
|
|
369
|
+
description: "A color value of the playback controls, which is normally #00ADEF. The embed settings of the video might override this value.",
|
|
370
|
+
required: false,
|
|
371
|
+
control: "color",
|
|
372
|
+
type: "string"
|
|
373
|
+
},
|
|
374
|
+
datatype: { required: false, control: "text", type: "string" },
|
|
375
|
+
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
376
|
+
dir: { required: false, control: "text", type: "string" },
|
|
377
|
+
doNotTrack: {
|
|
378
|
+
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.",
|
|
379
|
+
required: false,
|
|
380
|
+
control: "boolean",
|
|
381
|
+
type: "boolean",
|
|
382
|
+
defaultValue: false
|
|
383
|
+
},
|
|
384
|
+
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
385
|
+
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
386
|
+
id: { required: false, control: "text", type: "string" },
|
|
387
|
+
inputMode: {
|
|
388
|
+
description: "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
|
|
389
|
+
required: false,
|
|
390
|
+
control: "select",
|
|
391
|
+
type: "string",
|
|
392
|
+
options: [
|
|
393
|
+
"text",
|
|
394
|
+
"url",
|
|
395
|
+
"none",
|
|
396
|
+
"search",
|
|
397
|
+
"tel",
|
|
398
|
+
"email",
|
|
399
|
+
"numeric",
|
|
400
|
+
"decimal"
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
interactiveParams: {
|
|
404
|
+
description: "Key-value pairs representing dynamic parameters that are utilized on interactive videos with live elements, such as title=my-video,subtitle=interactive.",
|
|
405
|
+
required: false,
|
|
406
|
+
control: "text",
|
|
407
|
+
type: "string"
|
|
408
|
+
},
|
|
409
|
+
is: {
|
|
410
|
+
description: "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
|
|
411
|
+
required: false,
|
|
412
|
+
control: "text",
|
|
413
|
+
type: "string"
|
|
414
|
+
},
|
|
415
|
+
itemID: { required: false, control: "text", type: "string" },
|
|
416
|
+
itemProp: { required: false, control: "text", type: "string" },
|
|
417
|
+
itemRef: { required: false, control: "text", type: "string" },
|
|
418
|
+
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
419
|
+
itemType: { required: false, control: "text", type: "string" },
|
|
444
420
|
keyboard: {
|
|
445
421
|
description: "Whether to enable keyboard input to trigger player events. This setting doesn't affect tab control.",
|
|
446
422
|
required: false,
|
|
@@ -448,6 +424,7 @@ const props = {
|
|
|
448
424
|
type: "boolean",
|
|
449
425
|
defaultValue: true
|
|
450
426
|
},
|
|
427
|
+
lang: { required: false, control: "text", type: "string" },
|
|
451
428
|
loop: {
|
|
452
429
|
description: "Whether to restart the video automatically after reaching the end.",
|
|
453
430
|
required: false,
|
|
@@ -462,6 +439,7 @@ const props = {
|
|
|
462
439
|
type: "boolean",
|
|
463
440
|
defaultValue: false
|
|
464
441
|
},
|
|
442
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
465
443
|
pip: {
|
|
466
444
|
description: "Whether to include the picture-in-picture button among the player controls and enable the picture-in-picture API.",
|
|
467
445
|
required: false,
|
|
@@ -469,6 +447,7 @@ const props = {
|
|
|
469
447
|
type: "boolean",
|
|
470
448
|
defaultValue: false
|
|
471
449
|
},
|
|
450
|
+
placeholder: { required: false, control: "text", type: "string" },
|
|
472
451
|
playsinline: {
|
|
473
452
|
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.",
|
|
474
453
|
required: false,
|
|
@@ -476,6 +455,8 @@ const props = {
|
|
|
476
455
|
type: "boolean",
|
|
477
456
|
defaultValue: true
|
|
478
457
|
},
|
|
458
|
+
prefix: { required: false, control: "text", type: "string" },
|
|
459
|
+
property: { required: false, control: "text", type: "string" },
|
|
479
460
|
quality: {
|
|
480
461
|
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.",
|
|
481
462
|
required: false,
|
|
@@ -484,6 +465,9 @@ const props = {
|
|
|
484
465
|
defaultValue: "auto",
|
|
485
466
|
options: ["auto", "360p", "540p", "720p", "1080p", "2k", "4k"]
|
|
486
467
|
},
|
|
468
|
+
radioGroup: { required: false, control: "text", type: "string" },
|
|
469
|
+
rel: { required: false, control: "text", type: "string" },
|
|
470
|
+
resource: { required: false, control: "text", type: "string" },
|
|
487
471
|
responsive: {
|
|
488
472
|
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.",
|
|
489
473
|
required: false,
|
|
@@ -491,21 +475,26 @@ const props = {
|
|
|
491
475
|
type: "boolean",
|
|
492
476
|
defaultValue: true
|
|
493
477
|
},
|
|
494
|
-
|
|
495
|
-
|
|
478
|
+
results: { required: false, control: "number", type: "number" },
|
|
479
|
+
rev: { required: false, control: "text", type: "string" },
|
|
480
|
+
role: { required: false, control: "text", type: "string" },
|
|
481
|
+
security: { required: false, control: "text", type: "string" },
|
|
482
|
+
showByline: {
|
|
483
|
+
description: "Whether to display the video owner's name.",
|
|
496
484
|
required: false,
|
|
497
485
|
control: "boolean",
|
|
498
486
|
type: "boolean",
|
|
499
487
|
defaultValue: false
|
|
500
488
|
},
|
|
501
|
-
|
|
502
|
-
description: "
|
|
489
|
+
showControls: {
|
|
490
|
+
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.",
|
|
503
491
|
required: false,
|
|
504
|
-
control: "
|
|
505
|
-
type: "
|
|
492
|
+
control: "boolean",
|
|
493
|
+
type: "boolean",
|
|
494
|
+
defaultValue: true
|
|
506
495
|
},
|
|
507
|
-
|
|
508
|
-
description: "Whether the
|
|
496
|
+
showPortrait: {
|
|
497
|
+
description: "Whether to display the video owner's portrait. Only works if either title or byline are also enabled",
|
|
509
498
|
required: false,
|
|
510
499
|
control: "boolean",
|
|
511
500
|
type: "boolean",
|
|
@@ -518,58 +507,65 @@ const props = {
|
|
|
518
507
|
type: "boolean",
|
|
519
508
|
defaultValue: false
|
|
520
509
|
},
|
|
521
|
-
|
|
522
|
-
description: "Whether
|
|
510
|
+
showTitle: {
|
|
511
|
+
description: "Whether the player displays the title overlay.",
|
|
523
512
|
required: false,
|
|
524
513
|
control: "boolean",
|
|
525
514
|
type: "boolean",
|
|
526
515
|
defaultValue: false
|
|
527
516
|
},
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
control: "text",
|
|
532
|
-
type: "string"
|
|
533
|
-
},
|
|
534
|
-
backgroundMode: {
|
|
535
|
-
description: "Whether the player is in background mode, which hides the playback controls, enables autoplay, and loops the video.",
|
|
517
|
+
slot: { required: false, control: "text", type: "string" },
|
|
518
|
+
speed: {
|
|
519
|
+
description: "Whether the player displays speed controls in the preferences menu and enables the playback rate API.",
|
|
536
520
|
required: false,
|
|
537
521
|
control: "boolean",
|
|
538
522
|
type: "boolean",
|
|
539
523
|
defaultValue: false
|
|
540
524
|
},
|
|
541
|
-
|
|
542
|
-
|
|
525
|
+
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
526
|
+
suppressContentEditableWarning: {
|
|
543
527
|
required: false,
|
|
544
528
|
control: "boolean",
|
|
545
|
-
type: "boolean"
|
|
546
|
-
defaultValue: true
|
|
529
|
+
type: "boolean"
|
|
547
530
|
},
|
|
548
|
-
|
|
549
|
-
description: "A color value of the playback controls, which is normally #00ADEF. The embed settings of the video might override this value.",
|
|
531
|
+
suppressHydrationWarning: {
|
|
550
532
|
required: false,
|
|
551
|
-
control: "
|
|
552
|
-
type: "
|
|
533
|
+
control: "boolean",
|
|
534
|
+
type: "boolean"
|
|
553
535
|
},
|
|
554
|
-
|
|
555
|
-
|
|
536
|
+
tabIndex: { required: false, control: "number", type: "number" },
|
|
537
|
+
texttrack: {
|
|
538
|
+
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.\nTo 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.",
|
|
556
539
|
required: false,
|
|
557
|
-
control: "
|
|
558
|
-
type: "
|
|
559
|
-
defaultValue: false
|
|
540
|
+
control: "text",
|
|
541
|
+
type: "string"
|
|
560
542
|
},
|
|
561
|
-
|
|
562
|
-
|
|
543
|
+
title: { required: false, control: "text", type: "string" },
|
|
544
|
+
translate: {
|
|
563
545
|
required: false,
|
|
564
|
-
control: "
|
|
565
|
-
type: "
|
|
566
|
-
|
|
546
|
+
control: "radio",
|
|
547
|
+
type: "string",
|
|
548
|
+
options: ["yes", "no"]
|
|
567
549
|
},
|
|
568
|
-
|
|
569
|
-
description: "Whether
|
|
550
|
+
transparent: {
|
|
551
|
+
description: "Whether the responsive player and transparent background are enabled.",
|
|
570
552
|
required: false,
|
|
571
553
|
control: "boolean",
|
|
572
554
|
type: "boolean",
|
|
573
555
|
defaultValue: true
|
|
574
|
-
}
|
|
556
|
+
},
|
|
557
|
+
typeof: { required: false, control: "text", type: "string" },
|
|
558
|
+
unselectable: {
|
|
559
|
+
required: false,
|
|
560
|
+
control: "radio",
|
|
561
|
+
type: "string",
|
|
562
|
+
options: ["on", "off"]
|
|
563
|
+
},
|
|
564
|
+
url: {
|
|
565
|
+
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 our introductory guide.",
|
|
566
|
+
required: false,
|
|
567
|
+
control: "text",
|
|
568
|
+
type: "string"
|
|
569
|
+
},
|
|
570
|
+
vocab: { required: false, control: "text", type: "string" }
|
|
575
571
|
};
|
package/lib/cjs/blockquote.ws.js
CHANGED
|
@@ -24,54 +24,10 @@ __export(blockquote_ws_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(blockquote_ws_exports);
|
|
25
25
|
var import_svg = require("@webstudio-is/icons/svg");
|
|
26
26
|
var import_react_sdk = require("@webstudio-is/react-sdk");
|
|
27
|
+
var import_css_normalize = require("@webstudio-is/react-sdk/css-normalize");
|
|
27
28
|
var import_blockquote = require("./__generated__/blockquote.props");
|
|
28
29
|
const presetStyle = {
|
|
29
|
-
blockquote:
|
|
30
|
-
{
|
|
31
|
-
property: "marginTop",
|
|
32
|
-
value: { type: "unit", value: 0, unit: "number" }
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
property: "marginRight",
|
|
36
|
-
value: { type: "unit", value: 0, unit: "number" }
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
property: "marginBottom",
|
|
40
|
-
value: { type: "unit", value: 10, unit: "px" }
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
property: "marginLeft",
|
|
44
|
-
value: { type: "unit", value: 0, unit: "number" }
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
property: "paddingTop",
|
|
48
|
-
value: { type: "unit", value: 10, unit: "px" }
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
property: "paddingBottom",
|
|
52
|
-
value: { type: "unit", value: 10, unit: "px" }
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
property: "paddingLeft",
|
|
56
|
-
value: { type: "unit", value: 20, unit: "px" }
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
property: "paddingRight",
|
|
60
|
-
value: { type: "unit", value: 20, unit: "px" }
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
property: "borderLeftWidth",
|
|
64
|
-
value: { type: "unit", value: 5, unit: "px" }
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
property: "borderLeftStyle",
|
|
68
|
-
value: { type: "keyword", value: "solid" }
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
property: "borderLeftColor",
|
|
72
|
-
value: { type: "rgb", r: 226, g: 226, b: 226, alpha: 1 }
|
|
73
|
-
}
|
|
74
|
-
]
|
|
30
|
+
blockquote: import_css_normalize.blockquote
|
|
75
31
|
};
|
|
76
32
|
const meta = {
|
|
77
33
|
category: "text",
|
package/lib/cjs/body.ws.js
CHANGED
|
@@ -27,27 +27,7 @@ var import_react_sdk = require("@webstudio-is/react-sdk");
|
|
|
27
27
|
var import_css_normalize = require("@webstudio-is/react-sdk/css-normalize");
|
|
28
28
|
var import_body = require("./__generated__/body.props");
|
|
29
29
|
const presetStyle = {
|
|
30
|
-
body:
|
|
31
|
-
...import_css_normalize.body,
|
|
32
|
-
{
|
|
33
|
-
property: "fontFamily",
|
|
34
|
-
value: { type: "keyword", value: "Arial" }
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
property: "fontSize",
|
|
38
|
-
value: { type: "unit", unit: "px", value: 14 }
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
property: "lineHeight",
|
|
42
|
-
value: { type: "unit", unit: "number", value: 1.5 }
|
|
43
|
-
},
|
|
44
|
-
// temporary set root color
|
|
45
|
-
// until builder start to fallback "inherit" to black
|
|
46
|
-
{
|
|
47
|
-
property: "color",
|
|
48
|
-
value: { type: "keyword", value: "black" }
|
|
49
|
-
}
|
|
50
|
-
]
|
|
30
|
+
body: import_css_normalize.body
|
|
51
31
|
};
|
|
52
32
|
const meta = {
|
|
53
33
|
type: "container",
|
package/lib/cjs/code-text.js
CHANGED
|
@@ -26,9 +26,9 @@ module.exports = __toCommonJS(code_text_exports);
|
|
|
26
26
|
var import_react = require("react");
|
|
27
27
|
var import_css_vars = require("@webstudio-is/css-vars");
|
|
28
28
|
const defaultTag = "code";
|
|
29
|
-
const displayVarNamespace = import_css_vars.cssVars.
|
|
29
|
+
const displayVarNamespace = import_css_vars.cssVars.define("code-display");
|
|
30
30
|
const blockStyle = {
|
|
31
|
-
[import_css_vars.cssVars.define(displayVarNamespace
|
|
31
|
+
[import_css_vars.cssVars.define(displayVarNamespace)]: "block"
|
|
32
32
|
};
|
|
33
33
|
const CodeText = (0, import_react.forwardRef)(
|
|
34
34
|
({ inline = false, ...props }, ref) => {
|
package/lib/cjs/components.js
CHANGED
|
@@ -25,7 +25,6 @@ __export(components_exports, {
|
|
|
25
25
|
Button: () => import_button.Button,
|
|
26
26
|
Checkbox: () => import_checkbox.Checkbox,
|
|
27
27
|
CodeText: () => import_code_text.CodeText,
|
|
28
|
-
ErrorMessage: () => import_error_message.ErrorMessage,
|
|
29
28
|
Form: () => import_form.Form,
|
|
30
29
|
Fragment: () => import_fragment.Fragment,
|
|
31
30
|
Heading: () => import_heading.Heading,
|
|
@@ -44,7 +43,6 @@ __export(components_exports, {
|
|
|
44
43
|
Slot: () => import_slot.Slot,
|
|
45
44
|
Span: () => import_span.Span,
|
|
46
45
|
Subscript: () => import_subscript.Subscript,
|
|
47
|
-
SuccessMessage: () => import_success_message.SuccessMessage,
|
|
48
46
|
Superscript: () => import_superscript.Superscript,
|
|
49
47
|
Text: () => import_text.Text,
|
|
50
48
|
Textarea: () => import_textarea.Textarea,
|
|
@@ -79,8 +77,6 @@ var import_list_item = require("./list-item");
|
|
|
79
77
|
var import_separator = require("./separator");
|
|
80
78
|
var import_code_text = require("./code-text");
|
|
81
79
|
var import_label = require("./label");
|
|
82
|
-
var import_success_message = require("./success-message");
|
|
83
|
-
var import_error_message = require("./error-message");
|
|
84
80
|
var import_textarea = require("./textarea");
|
|
85
81
|
var import_radio_button = require("./radio-button");
|
|
86
82
|
var import_checkbox = require("./checkbox");
|
package/lib/cjs/form.ws.js
CHANGED
package/lib/cjs/link.js
CHANGED
|
@@ -31,12 +31,16 @@ const Link = (0, import_react.forwardRef)((props, ref) => {
|
|
|
31
31
|
const href = (0, import_react_sdk.usePropUrl)((0, import_react_sdk.getInstanceIdFromComponentProps)(props), "href");
|
|
32
32
|
let url = "#";
|
|
33
33
|
switch (href?.type) {
|
|
34
|
-
case "page":
|
|
34
|
+
case "page": {
|
|
35
35
|
url = href.page.path === "" ? "/" : href.page.path;
|
|
36
|
+
const urlTo = new URL(url, "https://any-valid.url");
|
|
37
|
+
url = urlTo.pathname;
|
|
36
38
|
if (href.hash !== void 0) {
|
|
37
|
-
|
|
39
|
+
urlTo.hash = encodeURIComponent(href.hash);
|
|
40
|
+
url = `${urlTo.pathname}${urlTo.hash}`;
|
|
38
41
|
}
|
|
39
42
|
break;
|
|
43
|
+
}
|
|
40
44
|
case "asset":
|
|
41
45
|
url = `${assetBaseUrl}${href.asset.name}`;
|
|
42
46
|
break;
|
package/lib/cjs/list.ws.js
CHANGED
package/lib/cjs/metas.js
CHANGED
|
@@ -25,7 +25,6 @@ __export(metas_exports, {
|
|
|
25
25
|
Button: () => import_button.meta,
|
|
26
26
|
Checkbox: () => import_checkbox.meta,
|
|
27
27
|
CodeText: () => import_code_text.meta,
|
|
28
|
-
ErrorMessage: () => import_error_message.meta,
|
|
29
28
|
Form: () => import_form.meta,
|
|
30
29
|
Fragment: () => import_fragment.meta,
|
|
31
30
|
Heading: () => import_heading.meta,
|
|
@@ -44,7 +43,6 @@ __export(metas_exports, {
|
|
|
44
43
|
Slot: () => import_slot.meta,
|
|
45
44
|
Span: () => import_span.meta,
|
|
46
45
|
Subscript: () => import_subscript.meta,
|
|
47
|
-
SuccessMessage: () => import_success_message.meta,
|
|
48
46
|
Superscript: () => import_superscript.meta,
|
|
49
47
|
Text: () => import_text.meta,
|
|
50
48
|
Textarea: () => import_textarea.meta,
|
|
@@ -79,8 +77,6 @@ var import_list_item = require("./list-item.ws");
|
|
|
79
77
|
var import_separator = require("./separator.ws");
|
|
80
78
|
var import_code_text = require("./code-text.ws");
|
|
81
79
|
var import_label = require("./label.ws");
|
|
82
|
-
var import_success_message = require("./success-message.ws");
|
|
83
|
-
var import_error_message = require("./error-message.ws");
|
|
84
80
|
var import_textarea = require("./textarea.ws");
|
|
85
81
|
var import_radio_button = require("./radio-button.ws");
|
|
86
82
|
var import_checkbox = require("./checkbox.ws");
|
package/lib/cjs/props.js
CHANGED
|
@@ -25,7 +25,6 @@ __export(props_exports, {
|
|
|
25
25
|
Button: () => import_button.propsMeta,
|
|
26
26
|
Checkbox: () => import_checkbox.propsMeta,
|
|
27
27
|
CodeText: () => import_code_text.propsMeta,
|
|
28
|
-
ErrorMessage: () => import_error_message.propsMeta,
|
|
29
28
|
Form: () => import_form.propsMeta,
|
|
30
29
|
Fragment: () => import_fragment.propsMeta,
|
|
31
30
|
Heading: () => import_heading.propsMeta,
|
|
@@ -44,7 +43,6 @@ __export(props_exports, {
|
|
|
44
43
|
Slot: () => import_slot.propsMeta,
|
|
45
44
|
Span: () => import_span.propsMeta,
|
|
46
45
|
Subscript: () => import_subscript.propsMeta,
|
|
47
|
-
SuccessMessage: () => import_success_message.propsMeta,
|
|
48
46
|
Superscript: () => import_superscript.propsMeta,
|
|
49
47
|
Text: () => import_text.propsMeta,
|
|
50
48
|
Textarea: () => import_textarea.propsMeta,
|
|
@@ -79,8 +77,6 @@ var import_list_item = require("./list-item.ws");
|
|
|
79
77
|
var import_separator = require("./separator.ws");
|
|
80
78
|
var import_code_text = require("./code-text.ws");
|
|
81
79
|
var import_label = require("./label.ws");
|
|
82
|
-
var import_success_message = require("./success-message.ws");
|
|
83
|
-
var import_error_message = require("./error-message.ws");
|
|
84
80
|
var import_textarea = require("./textarea.ws");
|
|
85
81
|
var import_radio_button = require("./radio-button.ws");
|
|
86
82
|
var import_checkbox = require("./checkbox.ws");
|
package/lib/code-text.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
} from "react";
|
|
5
5
|
import { cssVars } from "@webstudio-is/css-vars";
|
|
6
6
|
const defaultTag = "code";
|
|
7
|
-
const displayVarNamespace = cssVars.
|
|
7
|
+
const displayVarNamespace = cssVars.define("code-display");
|
|
8
8
|
const blockStyle = {
|
|
9
|
-
[cssVars.define(displayVarNamespace
|
|
9
|
+
[cssVars.define(displayVarNamespace)]: "block"
|
|
10
10
|
};
|
|
11
11
|
const CodeText = forwardRef(
|
|
12
12
|
({ inline = false, ...props }, ref) => {
|
package/lib/components.js
CHANGED
|
@@ -23,8 +23,6 @@ import { ListItem } from "./list-item";
|
|
|
23
23
|
import { Separator } from "./separator";
|
|
24
24
|
import { CodeText } from "./code-text";
|
|
25
25
|
import { Label } from "./label";
|
|
26
|
-
import { SuccessMessage } from "./success-message";
|
|
27
|
-
import { ErrorMessage } from "./error-message";
|
|
28
26
|
import { Textarea } from "./textarea";
|
|
29
27
|
import { RadioButton } from "./radio-button";
|
|
30
28
|
import { Checkbox } from "./checkbox";
|
|
@@ -40,7 +38,6 @@ export {
|
|
|
40
38
|
Button,
|
|
41
39
|
Checkbox,
|
|
42
40
|
CodeText,
|
|
43
|
-
ErrorMessage,
|
|
44
41
|
Form,
|
|
45
42
|
Fragment,
|
|
46
43
|
Heading,
|
|
@@ -59,7 +56,6 @@ export {
|
|
|
59
56
|
Slot,
|
|
60
57
|
Span,
|
|
61
58
|
Subscript,
|
|
62
|
-
SuccessMessage,
|
|
63
59
|
Superscript,
|
|
64
60
|
Text,
|
|
65
61
|
Textarea,
|
package/lib/form.ws.js
CHANGED
package/lib/link.js
CHANGED
|
@@ -11,12 +11,16 @@ const Link = forwardRef((props, ref) => {
|
|
|
11
11
|
const href = usePropUrl(getInstanceIdFromComponentProps(props), "href");
|
|
12
12
|
let url = "#";
|
|
13
13
|
switch (href?.type) {
|
|
14
|
-
case "page":
|
|
14
|
+
case "page": {
|
|
15
15
|
url = href.page.path === "" ? "/" : href.page.path;
|
|
16
|
+
const urlTo = new URL(url, "https://any-valid.url");
|
|
17
|
+
url = urlTo.pathname;
|
|
16
18
|
if (href.hash !== void 0) {
|
|
17
|
-
|
|
19
|
+
urlTo.hash = encodeURIComponent(href.hash);
|
|
20
|
+
url = `${urlTo.pathname}${urlTo.hash}`;
|
|
18
21
|
}
|
|
19
22
|
break;
|
|
23
|
+
}
|
|
20
24
|
case "asset":
|
|
21
25
|
url = `${assetBaseUrl}${href.asset.name}`;
|
|
22
26
|
break;
|