@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
|
@@ -1,95 +1,8 @@
|
|
|
1
1
|
import type { PropMeta } from "@webstudio-is/generate-arg-types";
|
|
2
2
|
|
|
3
3
|
export const props: Record<string, PropMeta> = {
|
|
4
|
-
slot: { required: false, control: "text", type: "string" },
|
|
5
|
-
style: { required: false, control: "text", type: "string" },
|
|
6
|
-
title: { required: false, control: "text", type: "string" },
|
|
7
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
8
|
-
defaultValue: { required: false, control: "text", type: "string" },
|
|
9
|
-
suppressContentEditableWarning: {
|
|
10
|
-
required: false,
|
|
11
|
-
control: "boolean",
|
|
12
|
-
type: "boolean",
|
|
13
|
-
},
|
|
14
|
-
suppressHydrationWarning: {
|
|
15
|
-
required: false,
|
|
16
|
-
control: "boolean",
|
|
17
|
-
type: "boolean",
|
|
18
|
-
},
|
|
19
|
-
accessKey: { required: false, control: "text", type: "string" },
|
|
20
|
-
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
21
|
-
className: { required: false, control: "text", type: "string" },
|
|
22
|
-
contentEditable: { required: false, control: "text", type: "string" },
|
|
23
|
-
contextMenu: { required: false, control: "text", type: "string" },
|
|
24
|
-
dir: { required: false, control: "text", type: "string" },
|
|
25
|
-
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
26
|
-
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
27
|
-
id: { required: false, control: "text", type: "string" },
|
|
28
|
-
lang: { required: false, control: "text", type: "string" },
|
|
29
|
-
nonce: { required: false, control: "text", type: "string" },
|
|
30
|
-
placeholder: { required: false, control: "text", type: "string" },
|
|
31
|
-
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
32
|
-
tabIndex: { required: false, control: "number", type: "number" },
|
|
33
|
-
translate: {
|
|
34
|
-
required: false,
|
|
35
|
-
control: "radio",
|
|
36
|
-
type: "string",
|
|
37
|
-
options: ["yes", "no"],
|
|
38
|
-
},
|
|
39
|
-
radioGroup: { required: false, control: "text", type: "string" },
|
|
40
|
-
role: { required: false, control: "text", type: "string" },
|
|
41
4
|
about: { required: false, control: "text", type: "string" },
|
|
42
|
-
|
|
43
|
-
datatype: { required: false, control: "text", type: "string" },
|
|
44
|
-
inlist: { required: false, control: "text", type: "string" },
|
|
45
|
-
prefix: { required: false, control: "text", type: "string" },
|
|
46
|
-
property: { required: false, control: "text", type: "string" },
|
|
47
|
-
rel: { required: false, control: "text", type: "string" },
|
|
48
|
-
resource: { required: false, control: "text", type: "string" },
|
|
49
|
-
rev: { required: false, control: "text", type: "string" },
|
|
50
|
-
typeof: { required: false, control: "text", type: "string" },
|
|
51
|
-
vocab: { required: false, control: "text", type: "string" },
|
|
52
|
-
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
53
|
-
autoCorrect: { required: false, control: "text", type: "string" },
|
|
54
|
-
autoSave: { required: false, control: "text", type: "string" },
|
|
55
|
-
color: { required: false, control: "color", type: "string" },
|
|
56
|
-
itemProp: { required: false, control: "text", type: "string" },
|
|
57
|
-
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
58
|
-
itemType: { required: false, control: "text", type: "string" },
|
|
59
|
-
itemID: { required: false, control: "text", type: "string" },
|
|
60
|
-
itemRef: { required: false, control: "text", type: "string" },
|
|
61
|
-
results: { required: false, control: "number", type: "number" },
|
|
62
|
-
security: { required: false, control: "text", type: "string" },
|
|
63
|
-
unselectable: {
|
|
64
|
-
required: false,
|
|
65
|
-
control: "radio",
|
|
66
|
-
type: "string",
|
|
67
|
-
options: ["on", "off"],
|
|
68
|
-
},
|
|
69
|
-
inputMode: {
|
|
70
|
-
description:
|
|
71
|
-
"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",
|
|
72
|
-
required: false,
|
|
73
|
-
control: "select",
|
|
74
|
-
type: "string",
|
|
75
|
-
options: [
|
|
76
|
-
"text",
|
|
77
|
-
"url",
|
|
78
|
-
"none",
|
|
79
|
-
"search",
|
|
80
|
-
"tel",
|
|
81
|
-
"email",
|
|
82
|
-
"numeric",
|
|
83
|
-
"decimal",
|
|
84
|
-
],
|
|
85
|
-
},
|
|
86
|
-
is: {
|
|
87
|
-
description:
|
|
88
|
-
"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",
|
|
89
|
-
required: false,
|
|
90
|
-
control: "text",
|
|
91
|
-
type: "string",
|
|
92
|
-
},
|
|
5
|
+
accessKey: { required: false, control: "text", type: "string" },
|
|
93
6
|
"aria-activedescendant": {
|
|
94
7
|
description:
|
|
95
8
|
"Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
@@ -440,13 +353,9 @@ export const props: Record<string, PropMeta> = {
|
|
|
440
353
|
control: "text",
|
|
441
354
|
type: "string",
|
|
442
355
|
},
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
required: false,
|
|
447
|
-
control: "text",
|
|
448
|
-
type: "string",
|
|
449
|
-
},
|
|
356
|
+
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
357
|
+
autoCorrect: { required: false, control: "text", type: "string" },
|
|
358
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
450
359
|
autopause: {
|
|
451
360
|
description:
|
|
452
361
|
"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.",
|
|
@@ -470,6 +379,76 @@ export const props: Record<string, PropMeta> = {
|
|
|
470
379
|
type: "boolean",
|
|
471
380
|
defaultValue: false,
|
|
472
381
|
},
|
|
382
|
+
autoSave: { required: false, control: "text", type: "string" },
|
|
383
|
+
backgroundMode: {
|
|
384
|
+
description:
|
|
385
|
+
"Whether the player is in background mode, which hides the playback controls, enables autoplay, and loops the video.",
|
|
386
|
+
required: false,
|
|
387
|
+
control: "boolean",
|
|
388
|
+
type: "boolean",
|
|
389
|
+
defaultValue: false,
|
|
390
|
+
},
|
|
391
|
+
className: { required: false, control: "text", type: "string" },
|
|
392
|
+
color: { required: false, control: "color", type: "string" },
|
|
393
|
+
content: { required: false, control: "text", type: "string" },
|
|
394
|
+
contextMenu: { required: false, control: "text", type: "string" },
|
|
395
|
+
controlsColor: {
|
|
396
|
+
description:
|
|
397
|
+
"A color value of the playback controls, which is normally #00ADEF. The embed settings of the video might override this value.",
|
|
398
|
+
required: false,
|
|
399
|
+
control: "color",
|
|
400
|
+
type: "string",
|
|
401
|
+
},
|
|
402
|
+
datatype: { required: false, control: "text", type: "string" },
|
|
403
|
+
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
404
|
+
dir: { required: false, control: "text", type: "string" },
|
|
405
|
+
doNotTrack: {
|
|
406
|
+
description:
|
|
407
|
+
"Whether to prevent the player from tracking session data, including cookies. Keep in mind that setting this argument to true also blocks video stats.",
|
|
408
|
+
required: false,
|
|
409
|
+
control: "boolean",
|
|
410
|
+
type: "boolean",
|
|
411
|
+
defaultValue: false,
|
|
412
|
+
},
|
|
413
|
+
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
414
|
+
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
415
|
+
id: { required: false, control: "text", type: "string" },
|
|
416
|
+
inputMode: {
|
|
417
|
+
description:
|
|
418
|
+
"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",
|
|
419
|
+
required: false,
|
|
420
|
+
control: "select",
|
|
421
|
+
type: "string",
|
|
422
|
+
options: [
|
|
423
|
+
"text",
|
|
424
|
+
"url",
|
|
425
|
+
"none",
|
|
426
|
+
"search",
|
|
427
|
+
"tel",
|
|
428
|
+
"email",
|
|
429
|
+
"numeric",
|
|
430
|
+
"decimal",
|
|
431
|
+
],
|
|
432
|
+
},
|
|
433
|
+
interactiveParams: {
|
|
434
|
+
description:
|
|
435
|
+
"Key-value pairs representing dynamic parameters that are utilized on interactive videos with live elements, such as title=my-video,subtitle=interactive.",
|
|
436
|
+
required: false,
|
|
437
|
+
control: "text",
|
|
438
|
+
type: "string",
|
|
439
|
+
},
|
|
440
|
+
is: {
|
|
441
|
+
description:
|
|
442
|
+
"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",
|
|
443
|
+
required: false,
|
|
444
|
+
control: "text",
|
|
445
|
+
type: "string",
|
|
446
|
+
},
|
|
447
|
+
itemID: { required: false, control: "text", type: "string" },
|
|
448
|
+
itemProp: { required: false, control: "text", type: "string" },
|
|
449
|
+
itemRef: { required: false, control: "text", type: "string" },
|
|
450
|
+
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
451
|
+
itemType: { required: false, control: "text", type: "string" },
|
|
473
452
|
keyboard: {
|
|
474
453
|
description:
|
|
475
454
|
"Whether to enable keyboard input to trigger player events. This setting doesn't affect tab control.",
|
|
@@ -478,6 +457,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
478
457
|
type: "boolean",
|
|
479
458
|
defaultValue: true,
|
|
480
459
|
},
|
|
460
|
+
lang: { required: false, control: "text", type: "string" },
|
|
481
461
|
loop: {
|
|
482
462
|
description:
|
|
483
463
|
"Whether to restart the video automatically after reaching the end.",
|
|
@@ -494,6 +474,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
494
474
|
type: "boolean",
|
|
495
475
|
defaultValue: false,
|
|
496
476
|
},
|
|
477
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
497
478
|
pip: {
|
|
498
479
|
description:
|
|
499
480
|
"Whether to include the picture-in-picture button among the player controls and enable the picture-in-picture API.",
|
|
@@ -502,6 +483,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
502
483
|
type: "boolean",
|
|
503
484
|
defaultValue: false,
|
|
504
485
|
},
|
|
486
|
+
placeholder: { required: false, control: "text", type: "string" },
|
|
505
487
|
playsinline: {
|
|
506
488
|
description:
|
|
507
489
|
"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.",
|
|
@@ -510,6 +492,8 @@ export const props: Record<string, PropMeta> = {
|
|
|
510
492
|
type: "boolean",
|
|
511
493
|
defaultValue: true,
|
|
512
494
|
},
|
|
495
|
+
prefix: { required: false, control: "text", type: "string" },
|
|
496
|
+
property: { required: false, control: "text", type: "string" },
|
|
513
497
|
quality: {
|
|
514
498
|
description:
|
|
515
499
|
"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.",
|
|
@@ -519,6 +503,9 @@ export const props: Record<string, PropMeta> = {
|
|
|
519
503
|
defaultValue: "auto",
|
|
520
504
|
options: ["auto", "360p", "540p", "720p", "1080p", "2k", "4k"],
|
|
521
505
|
},
|
|
506
|
+
radioGroup: { required: false, control: "text", type: "string" },
|
|
507
|
+
rel: { required: false, control: "text", type: "string" },
|
|
508
|
+
resource: { required: false, control: "text", type: "string" },
|
|
522
509
|
responsive: {
|
|
523
510
|
description:
|
|
524
511
|
"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.",
|
|
@@ -527,24 +514,28 @@ export const props: Record<string, PropMeta> = {
|
|
|
527
514
|
type: "boolean",
|
|
528
515
|
defaultValue: true,
|
|
529
516
|
},
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
517
|
+
results: { required: false, control: "number", type: "number" },
|
|
518
|
+
rev: { required: false, control: "text", type: "string" },
|
|
519
|
+
role: { required: false, control: "text", type: "string" },
|
|
520
|
+
security: { required: false, control: "text", type: "string" },
|
|
521
|
+
showByline: {
|
|
522
|
+
description: "Whether to display the video owner's name.",
|
|
533
523
|
required: false,
|
|
534
524
|
control: "boolean",
|
|
535
525
|
type: "boolean",
|
|
536
526
|
defaultValue: false,
|
|
537
527
|
},
|
|
538
|
-
|
|
528
|
+
showControls: {
|
|
539
529
|
description:
|
|
540
|
-
"
|
|
530
|
+
"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.",
|
|
541
531
|
required: false,
|
|
542
|
-
control: "
|
|
543
|
-
type: "
|
|
532
|
+
control: "boolean",
|
|
533
|
+
type: "boolean",
|
|
534
|
+
defaultValue: true,
|
|
544
535
|
},
|
|
545
|
-
|
|
536
|
+
showPortrait: {
|
|
546
537
|
description:
|
|
547
|
-
"Whether the
|
|
538
|
+
"Whether to display the video owner's portrait. Only works if either title or byline are also enabled",
|
|
548
539
|
required: false,
|
|
549
540
|
control: "boolean",
|
|
550
541
|
type: "boolean",
|
|
@@ -558,64 +549,69 @@ export const props: Record<string, PropMeta> = {
|
|
|
558
549
|
type: "boolean",
|
|
559
550
|
defaultValue: false,
|
|
560
551
|
},
|
|
561
|
-
|
|
562
|
-
description:
|
|
563
|
-
"Whether to prevent the player from tracking session data, including cookies. Keep in mind that setting this argument to true also blocks video stats.",
|
|
552
|
+
showTitle: {
|
|
553
|
+
description: "Whether the player displays the title overlay.",
|
|
564
554
|
required: false,
|
|
565
555
|
control: "boolean",
|
|
566
556
|
type: "boolean",
|
|
567
557
|
defaultValue: false,
|
|
568
558
|
},
|
|
569
|
-
|
|
559
|
+
slot: { required: false, control: "text", type: "string" },
|
|
560
|
+
speed: {
|
|
570
561
|
description:
|
|
571
|
-
"
|
|
562
|
+
"Whether the player displays speed controls in the preferences menu and enables the playback rate API.",
|
|
572
563
|
required: false,
|
|
573
|
-
control: "
|
|
574
|
-
type: "
|
|
564
|
+
control: "boolean",
|
|
565
|
+
type: "boolean",
|
|
566
|
+
defaultValue: false,
|
|
575
567
|
},
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
"Whether the player is in background mode, which hides the playback controls, enables autoplay, and loops the video.",
|
|
568
|
+
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
569
|
+
suppressContentEditableWarning: {
|
|
579
570
|
required: false,
|
|
580
571
|
control: "boolean",
|
|
581
572
|
type: "boolean",
|
|
582
|
-
defaultValue: false,
|
|
583
573
|
},
|
|
584
|
-
|
|
585
|
-
description:
|
|
586
|
-
"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.",
|
|
574
|
+
suppressHydrationWarning: {
|
|
587
575
|
required: false,
|
|
588
576
|
control: "boolean",
|
|
589
577
|
type: "boolean",
|
|
590
|
-
defaultValue: true,
|
|
591
578
|
},
|
|
592
|
-
|
|
579
|
+
tabIndex: { required: false, control: "number", type: "number" },
|
|
580
|
+
texttrack: {
|
|
593
581
|
description:
|
|
594
|
-
"
|
|
582
|
+
"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.",
|
|
595
583
|
required: false,
|
|
596
|
-
control: "
|
|
584
|
+
control: "text",
|
|
597
585
|
type: "string",
|
|
598
586
|
},
|
|
599
|
-
|
|
600
|
-
|
|
587
|
+
title: { required: false, control: "text", type: "string" },
|
|
588
|
+
translate: {
|
|
601
589
|
required: false,
|
|
602
|
-
control: "
|
|
603
|
-
type: "
|
|
604
|
-
|
|
590
|
+
control: "radio",
|
|
591
|
+
type: "string",
|
|
592
|
+
options: ["yes", "no"],
|
|
605
593
|
},
|
|
606
|
-
|
|
607
|
-
description:
|
|
594
|
+
transparent: {
|
|
595
|
+
description:
|
|
596
|
+
"Whether the responsive player and transparent background are enabled.",
|
|
608
597
|
required: false,
|
|
609
598
|
control: "boolean",
|
|
610
599
|
type: "boolean",
|
|
611
|
-
defaultValue:
|
|
600
|
+
defaultValue: true,
|
|
612
601
|
},
|
|
613
|
-
|
|
602
|
+
typeof: { required: false, control: "text", type: "string" },
|
|
603
|
+
unselectable: {
|
|
604
|
+
required: false,
|
|
605
|
+
control: "radio",
|
|
606
|
+
type: "string",
|
|
607
|
+
options: ["on", "off"],
|
|
608
|
+
},
|
|
609
|
+
url: {
|
|
614
610
|
description:
|
|
615
|
-
"
|
|
611
|
+
"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.",
|
|
616
612
|
required: false,
|
|
617
|
-
control: "
|
|
618
|
-
type: "
|
|
619
|
-
defaultValue: true,
|
|
613
|
+
control: "text",
|
|
614
|
+
type: "string",
|
|
620
615
|
},
|
|
616
|
+
vocab: { required: false, control: "text", type: "string" },
|
|
621
617
|
};
|
package/src/blockquote.ws.tsx
CHANGED
|
@@ -5,58 +5,12 @@ import {
|
|
|
5
5
|
type WsComponentMeta,
|
|
6
6
|
type WsComponentPropsMeta,
|
|
7
7
|
} from "@webstudio-is/react-sdk";
|
|
8
|
+
import { blockquote } from "@webstudio-is/react-sdk/css-normalize";
|
|
8
9
|
import type { defaultTag } from "./blockquote";
|
|
9
10
|
import { props } from "./__generated__/blockquote.props";
|
|
10
11
|
|
|
11
12
|
const presetStyle = {
|
|
12
|
-
blockquote
|
|
13
|
-
{
|
|
14
|
-
property: "marginTop",
|
|
15
|
-
value: { type: "unit", value: 0, unit: "number" },
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
property: "marginRight",
|
|
19
|
-
value: { type: "unit", value: 0, unit: "number" },
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
property: "marginBottom",
|
|
23
|
-
value: { type: "unit", value: 10, unit: "px" },
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
property: "marginLeft",
|
|
27
|
-
value: { type: "unit", value: 0, unit: "number" },
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
property: "paddingTop",
|
|
32
|
-
value: { type: "unit", value: 10, unit: "px" },
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
property: "paddingBottom",
|
|
36
|
-
value: { type: "unit", value: 10, unit: "px" },
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
property: "paddingLeft",
|
|
40
|
-
value: { type: "unit", value: 20, unit: "px" },
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
property: "paddingRight",
|
|
44
|
-
value: { type: "unit", value: 20, unit: "px" },
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
{
|
|
48
|
-
property: "borderLeftWidth",
|
|
49
|
-
value: { type: "unit", value: 5, unit: "px" },
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
property: "borderLeftStyle",
|
|
53
|
-
value: { type: "keyword", value: "solid" },
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
property: "borderLeftColor",
|
|
57
|
-
value: { type: "rgb", r: 226, g: 226, b: 226, alpha: 1 },
|
|
58
|
-
},
|
|
59
|
-
],
|
|
13
|
+
blockquote,
|
|
60
14
|
} satisfies PresetStyle<typeof defaultTag>;
|
|
61
15
|
|
|
62
16
|
export const meta: WsComponentMeta = {
|
package/src/body.ws.tsx
CHANGED
|
@@ -10,27 +10,7 @@ import { props } from "./__generated__/body.props";
|
|
|
10
10
|
import type { defaultTag } from "./body";
|
|
11
11
|
|
|
12
12
|
const presetStyle = {
|
|
13
|
-
body
|
|
14
|
-
...body,
|
|
15
|
-
{
|
|
16
|
-
property: "fontFamily",
|
|
17
|
-
value: { type: "keyword", value: "Arial" },
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
property: "fontSize",
|
|
21
|
-
value: { type: "unit", unit: "px", value: 14 },
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
property: "lineHeight",
|
|
25
|
-
value: { type: "unit", unit: "number", value: 1.5 },
|
|
26
|
-
},
|
|
27
|
-
// temporary set root color
|
|
28
|
-
// until builder start to fallback "inherit" to black
|
|
29
|
-
{
|
|
30
|
-
property: "color",
|
|
31
|
-
value: { type: "keyword", value: "black" },
|
|
32
|
-
},
|
|
33
|
-
],
|
|
13
|
+
body,
|
|
34
14
|
} satisfies PresetStyle<typeof defaultTag>;
|
|
35
15
|
|
|
36
16
|
export const meta: WsComponentMeta = {
|
package/src/code-text.tsx
CHANGED
|
@@ -8,10 +8,10 @@ import { cssVars } from "@webstudio-is/css-vars";
|
|
|
8
8
|
|
|
9
9
|
export const defaultTag = "code";
|
|
10
10
|
|
|
11
|
-
export const displayVarNamespace = cssVars.
|
|
11
|
+
export const displayVarNamespace = cssVars.define("code-display");
|
|
12
12
|
|
|
13
13
|
const blockStyle = {
|
|
14
|
-
[cssVars.define(displayVarNamespace
|
|
14
|
+
[cssVars.define(displayVarNamespace)]: "block",
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
type Props = Omit<ComponentProps<typeof defaultTag>, "inline"> & {
|
package/src/components.ts
CHANGED
|
@@ -23,8 +23,6 @@ export { ListItem } from "./list-item";
|
|
|
23
23
|
export { Separator } from "./separator";
|
|
24
24
|
export { CodeText } from "./code-text";
|
|
25
25
|
export { Label } from "./label";
|
|
26
|
-
export { SuccessMessage } from "./success-message";
|
|
27
|
-
export { ErrorMessage } from "./error-message";
|
|
28
26
|
export { Textarea } from "./textarea";
|
|
29
27
|
export { RadioButton } from "./radio-button";
|
|
30
28
|
export { Checkbox } from "./checkbox";
|
package/src/form.ws.tsx
CHANGED
package/src/link.tsx
CHANGED
|
@@ -19,12 +19,17 @@ export const Link = forwardRef<HTMLAnchorElement, Props>((props, ref) => {
|
|
|
19
19
|
let url = "#";
|
|
20
20
|
|
|
21
21
|
switch (href?.type) {
|
|
22
|
-
case "page":
|
|
22
|
+
case "page": {
|
|
23
23
|
url = href.page.path === "" ? "/" : href.page.path;
|
|
24
|
+
const urlTo = new URL(url, "https://any-valid.url");
|
|
25
|
+
url = urlTo.pathname;
|
|
26
|
+
|
|
24
27
|
if (href.hash !== undefined) {
|
|
25
|
-
|
|
28
|
+
urlTo.hash = encodeURIComponent(href.hash);
|
|
29
|
+
url = `${urlTo.pathname}${urlTo.hash}`;
|
|
26
30
|
}
|
|
27
31
|
break;
|
|
32
|
+
}
|
|
28
33
|
case "asset":
|
|
29
34
|
url = `${assetBaseUrl}${href.asset.name}`;
|
|
30
35
|
break;
|
package/src/list.ws.tsx
CHANGED
package/src/metas.ts
CHANGED
|
@@ -23,8 +23,6 @@ export { meta as ListItem } from "./list-item.ws";
|
|
|
23
23
|
export { meta as Separator } from "./separator.ws";
|
|
24
24
|
export { meta as CodeText } from "./code-text.ws";
|
|
25
25
|
export { meta as Label } from "./label.ws";
|
|
26
|
-
export { meta as SuccessMessage } from "./success-message.ws";
|
|
27
|
-
export { meta as ErrorMessage } from "./error-message.ws";
|
|
28
26
|
export { meta as Textarea } from "./textarea.ws";
|
|
29
27
|
export { meta as RadioButton } from "./radio-button.ws";
|
|
30
28
|
export { meta as Checkbox } from "./checkbox.ws";
|
package/src/props.ts
CHANGED
|
@@ -23,8 +23,6 @@ export { propsMeta as ListItem } from "./list-item.ws";
|
|
|
23
23
|
export { propsMeta as Separator } from "./separator.ws";
|
|
24
24
|
export { propsMeta as CodeText } from "./code-text.ws";
|
|
25
25
|
export { propsMeta as Label } from "./label.ws";
|
|
26
|
-
export { propsMeta as SuccessMessage } from "./success-message.ws";
|
|
27
|
-
export { propsMeta as ErrorMessage } from "./error-message.ws";
|
|
28
26
|
export { propsMeta as Textarea } from "./textarea.ws";
|
|
29
27
|
export { propsMeta as RadioButton } from "./radio-button.ws";
|
|
30
28
|
export { propsMeta as Checkbox } from "./checkbox.ws";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
2
|
-
import {
|
|
2
|
+
import { Subscript as SubscriptPrimitive } from "./subscript";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
title: "Components/
|
|
6
|
-
component:
|
|
7
|
-
} as ComponentMeta<typeof
|
|
5
|
+
title: "Components/Subscript",
|
|
6
|
+
component: SubscriptPrimitive,
|
|
7
|
+
} as ComponentMeta<typeof SubscriptPrimitive>;
|
|
8
8
|
|
|
9
|
-
const Template: ComponentStory<typeof
|
|
10
|
-
<
|
|
9
|
+
const Template: ComponentStory<typeof SubscriptPrimitive> = (args) => (
|
|
10
|
+
<SubscriptPrimitive {...args} />
|
|
11
11
|
);
|
|
12
12
|
|
|
13
|
-
export const
|
|
14
|
-
|
|
15
|
-
children: "some
|
|
13
|
+
export const Subscript = Template.bind({});
|
|
14
|
+
Subscript.args = {
|
|
15
|
+
children: "some subscript text",
|
|
16
16
|
};
|