@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.
Files changed (171) hide show
  1. package/lib/__generated__/blockquote.props.js +84 -88
  2. package/lib/__generated__/body.props.js +83 -87
  3. package/lib/__generated__/bold.props.js +83 -87
  4. package/lib/__generated__/box.props.js +83 -87
  5. package/lib/__generated__/button.props.js +98 -103
  6. package/lib/__generated__/checkbox.props.js +120 -127
  7. package/lib/__generated__/code-text.props.js +84 -88
  8. package/lib/__generated__/form.props.js +90 -94
  9. package/lib/__generated__/heading.props.js +83 -87
  10. package/lib/__generated__/image.props.js +124 -128
  11. package/lib/__generated__/input.props.js +126 -133
  12. package/lib/__generated__/italic.props.js +83 -87
  13. package/lib/__generated__/label.props.js +85 -89
  14. package/lib/__generated__/link.props.js +110 -115
  15. package/lib/__generated__/list-item.props.js +83 -88
  16. package/lib/__generated__/list.props.js +87 -91
  17. package/lib/__generated__/paragraph.props.js +83 -87
  18. package/lib/__generated__/radio-button.props.js +120 -127
  19. package/lib/__generated__/rich-text-link.props.js +110 -115
  20. package/lib/__generated__/separator.props.js +83 -87
  21. package/lib/__generated__/span.props.js +83 -87
  22. package/lib/__generated__/subscript.props.js +83 -87
  23. package/lib/__generated__/superscript.props.js +83 -87
  24. package/lib/__generated__/text.props.js +83 -87
  25. package/lib/__generated__/textarea.props.js +95 -101
  26. package/lib/__generated__/vimeo-play-button.props.js +97 -102
  27. package/lib/__generated__/vimeo-preview-image.props.js +124 -128
  28. package/lib/__generated__/vimeo-spinner.props.js +83 -87
  29. package/lib/__generated__/vimeo.props.js +127 -131
  30. package/lib/blockquote.ws.js +2 -46
  31. package/lib/body.ws.js +1 -21
  32. package/lib/cjs/__generated__/blockquote.props.js +84 -88
  33. package/lib/cjs/__generated__/body.props.js +83 -87
  34. package/lib/cjs/__generated__/bold.props.js +83 -87
  35. package/lib/cjs/__generated__/box.props.js +83 -87
  36. package/lib/cjs/__generated__/button.props.js +98 -103
  37. package/lib/cjs/__generated__/checkbox.props.js +120 -127
  38. package/lib/cjs/__generated__/code-text.props.js +84 -88
  39. package/lib/cjs/__generated__/form.props.js +90 -94
  40. package/lib/cjs/__generated__/heading.props.js +83 -87
  41. package/lib/cjs/__generated__/image.props.js +124 -128
  42. package/lib/cjs/__generated__/input.props.js +126 -133
  43. package/lib/cjs/__generated__/italic.props.js +83 -87
  44. package/lib/cjs/__generated__/label.props.js +85 -89
  45. package/lib/cjs/__generated__/link.props.js +110 -115
  46. package/lib/cjs/__generated__/list-item.props.js +83 -88
  47. package/lib/cjs/__generated__/list.props.js +87 -91
  48. package/lib/cjs/__generated__/paragraph.props.js +83 -87
  49. package/lib/cjs/__generated__/radio-button.props.js +120 -127
  50. package/lib/cjs/__generated__/rich-text-link.props.js +110 -115
  51. package/lib/cjs/__generated__/separator.props.js +83 -87
  52. package/lib/cjs/__generated__/span.props.js +83 -87
  53. package/lib/cjs/__generated__/subscript.props.js +83 -87
  54. package/lib/cjs/__generated__/superscript.props.js +83 -87
  55. package/lib/cjs/__generated__/text.props.js +83 -87
  56. package/lib/cjs/__generated__/textarea.props.js +95 -101
  57. package/lib/cjs/__generated__/vimeo-play-button.props.js +97 -102
  58. package/lib/cjs/__generated__/vimeo-preview-image.props.js +124 -128
  59. package/lib/cjs/__generated__/vimeo-spinner.props.js +83 -87
  60. package/lib/cjs/__generated__/vimeo.props.js +127 -131
  61. package/lib/cjs/blockquote.ws.js +2 -46
  62. package/lib/cjs/body.ws.js +1 -21
  63. package/lib/cjs/code-text.js +2 -2
  64. package/lib/cjs/components.js +0 -4
  65. package/lib/cjs/form.ws.js +1 -0
  66. package/lib/cjs/link.js +6 -2
  67. package/lib/cjs/list.ws.js +1 -1
  68. package/lib/cjs/metas.js +0 -4
  69. package/lib/cjs/props.js +0 -4
  70. package/lib/code-text.js +2 -2
  71. package/lib/components.js +0 -4
  72. package/lib/form.ws.js +1 -0
  73. package/lib/link.js +6 -2
  74. package/lib/list.ws.js +1 -1
  75. package/lib/metas.js +14 -18
  76. package/lib/props.js +14 -18
  77. package/lib/types/code-text.d.ts +1 -1
  78. package/lib/types/components.d.ts +0 -2
  79. package/lib/types/metas.d.ts +0 -2
  80. package/lib/types/props.d.ts +0 -2
  81. package/package.json +10 -11
  82. package/src/__generated__/blockquote.props.ts +85 -89
  83. package/src/__generated__/body.props.ts +84 -88
  84. package/src/__generated__/bold.props.ts +84 -88
  85. package/src/__generated__/box.props.ts +84 -88
  86. package/src/__generated__/button.props.ts +99 -104
  87. package/src/__generated__/checkbox.props.ts +121 -128
  88. package/src/__generated__/code-text.props.ts +85 -89
  89. package/src/__generated__/form.props.ts +91 -95
  90. package/src/__generated__/heading.props.ts +84 -88
  91. package/src/__generated__/image.props.ts +126 -130
  92. package/src/__generated__/input.props.ts +127 -134
  93. package/src/__generated__/italic.props.ts +84 -88
  94. package/src/__generated__/label.props.ts +86 -90
  95. package/src/__generated__/link.props.ts +111 -116
  96. package/src/__generated__/list-item.props.ts +84 -89
  97. package/src/__generated__/list.props.ts +88 -92
  98. package/src/__generated__/paragraph.props.ts +84 -88
  99. package/src/__generated__/radio-button.props.ts +121 -128
  100. package/src/__generated__/rich-text-link.props.ts +111 -116
  101. package/src/__generated__/separator.props.ts +84 -88
  102. package/src/__generated__/span.props.ts +84 -88
  103. package/src/__generated__/subscript.props.ts +84 -88
  104. package/src/__generated__/superscript.props.ts +84 -88
  105. package/src/__generated__/text.props.ts +84 -88
  106. package/src/__generated__/textarea.props.ts +96 -102
  107. package/src/__generated__/vimeo-play-button.props.ts +98 -103
  108. package/src/__generated__/vimeo-preview-image.props.ts +126 -130
  109. package/src/__generated__/vimeo-spinner.props.ts +84 -88
  110. package/src/__generated__/vimeo.props.ts +131 -135
  111. package/src/blockquote.ws.tsx +2 -48
  112. package/src/body.ws.tsx +1 -21
  113. package/src/code-text.tsx +2 -2
  114. package/src/components.ts +0 -2
  115. package/src/form.ws.tsx +1 -0
  116. package/src/link.tsx +7 -2
  117. package/src/list.ws.tsx +1 -1
  118. package/src/metas.ts +0 -2
  119. package/src/props.ts +0 -2
  120. package/src/subscript.stories.tsx +9 -9
  121. package/lib/__generated__/error-message.props.js +0 -398
  122. package/lib/__generated__/success-message.props.js +0 -398
  123. package/lib/cjs/__generated__/error-message.props.js +0 -418
  124. package/lib/cjs/__generated__/success-message.props.js +0 -418
  125. package/lib/cjs/error-message.js +0 -29
  126. package/lib/cjs/error-message.ws.js +0 -40
  127. package/lib/cjs/success-message.js +0 -29
  128. package/lib/cjs/success-message.ws.js +0 -40
  129. package/lib/error-message.js +0 -9
  130. package/lib/error-message.ws.js +0 -20
  131. package/lib/success-message.js +0 -9
  132. package/lib/success-message.ws.js +0 -20
  133. package/lib/types/__generated__/error-message.props.d.ts +0 -2
  134. package/lib/types/__generated__/success-message.props.d.ts +0 -2
  135. package/lib/types/blockquote.stories.d.ts +0 -5
  136. package/lib/types/body.stories.d.ts +0 -6
  137. package/lib/types/bold.stories.d.ts +0 -5
  138. package/lib/types/box.stories.d.ts +0 -9
  139. package/lib/types/button.stories.d.ts +0 -5
  140. package/lib/types/code-text.stories.d.ts +0 -11
  141. package/lib/types/error-message.d.ts +0 -3
  142. package/lib/types/error-message.ws.d.ts +0 -3
  143. package/lib/types/form.stories.d.ts +0 -5
  144. package/lib/types/heading.stories.d.ts +0 -9
  145. package/lib/types/html-embed.stories.d.ts +0 -11
  146. package/lib/types/image.stories.d.ts +0 -562
  147. package/lib/types/input.stories.d.ts +0 -9
  148. package/lib/types/italic.stories.d.ts +0 -5
  149. package/lib/types/link.stories.d.ts +0 -9
  150. package/lib/types/list-item.stories.d.ts +0 -5
  151. package/lib/types/list.stories.d.ts +0 -9
  152. package/lib/types/paragraph.stories.d.ts +0 -5
  153. package/lib/types/rich-text-link.stories.d.ts +0 -9
  154. package/lib/types/separator.stories.d.ts +0 -5
  155. package/lib/types/slot.stories.d.ts +0 -9
  156. package/lib/types/span.stories.d.ts +0 -5
  157. package/lib/types/subscript.stories.d.ts +0 -5
  158. package/lib/types/success-message.d.ts +0 -3
  159. package/lib/types/success-message.ws.d.ts +0 -3
  160. package/lib/types/superscript.stories.d.ts +0 -5
  161. package/lib/types/text.stories.d.ts +0 -9
  162. package/lib/types/vimeo-play-button.stories.d.ts +0 -5
  163. package/lib/types/vimeo-preview-image.stories.d.ts +0 -562
  164. package/lib/types/vimeo-spinner.stories.d.ts +0 -5
  165. package/lib/types/vimeo.stories.d.ts +0 -71
  166. package/src/__generated__/error-message.props.ts +0 -443
  167. package/src/__generated__/success-message.props.ts +0 -443
  168. package/src/error-message.tsx +0 -10
  169. package/src/error-message.ws.tsx +0 -24
  170. package/src/success-message.tsx +0 -10
  171. 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
- content: { required: false, control: "text", type: "string" },
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
- url: {
444
- description:
445
- "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.",
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
- speed: {
531
- description:
532
- "Whether the player displays speed controls in the preferences menu and enables the playback rate API.",
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
- texttrack: {
528
+ showControls: {
539
529
  description:
540
- "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.",
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: "text",
543
- type: "string",
532
+ control: "boolean",
533
+ type: "boolean",
534
+ defaultValue: true,
544
535
  },
545
- transparent: {
536
+ showPortrait: {
546
537
  description:
547
- "Whether the responsive player and transparent background are enabled.",
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
- doNotTrack: {
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
- interactiveParams: {
559
+ slot: { required: false, control: "text", type: "string" },
560
+ speed: {
570
561
  description:
571
- "Key-value pairs representing dynamic parameters that are utilized on interactive videos with live elements, such as title=my-video,subtitle=interactive.",
562
+ "Whether the player displays speed controls in the preferences menu and enables the playback rate API.",
572
563
  required: false,
573
- control: "text",
574
- type: "string",
564
+ control: "boolean",
565
+ type: "boolean",
566
+ defaultValue: false,
575
567
  },
576
- backgroundMode: {
577
- description:
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
- showControls: {
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
- controlsColor: {
579
+ tabIndex: { required: false, control: "number", type: "number" },
580
+ texttrack: {
593
581
  description:
594
- "A color value of the playback controls, which is normally #00ADEF. The embed settings of the video might override this value.",
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: "color",
584
+ control: "text",
597
585
  type: "string",
598
586
  },
599
- showByline: {
600
- description: "Whether to display the video owner's name.",
587
+ title: { required: false, control: "text", type: "string" },
588
+ translate: {
601
589
  required: false,
602
- control: "boolean",
603
- type: "boolean",
604
- defaultValue: false,
590
+ control: "radio",
591
+ type: "string",
592
+ options: ["yes", "no"],
605
593
  },
606
- showTitle: {
607
- description: "Whether the player displays the title overlay.",
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: false,
600
+ defaultValue: true,
612
601
  },
613
- showPortrait: {
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
- "Whether to display the video owner's portrait. Only works if either title or byline are also enabled",
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: "boolean",
618
- type: "boolean",
619
- defaultValue: true,
613
+ control: "text",
614
+ type: "string",
620
615
  },
616
+ vocab: { required: false, control: "text", type: "string" },
621
617
  };
@@ -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.unique("code-display");
11
+ export const displayVarNamespace = cssVars.define("code-display");
12
12
 
13
13
  const blockStyle = {
14
- [cssVars.define(displayVarNamespace, true)]: "block",
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
@@ -19,6 +19,7 @@ const presetStyle = {
19
19
  export const meta: WsComponentMeta = {
20
20
  category: "forms",
21
21
  type: "container",
22
+ invalidAncestors: ["Form"],
22
23
  label: "Form",
23
24
  icon: FormIcon,
24
25
  states: defaultStates,
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
- url += `#${href.hash}`;
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
@@ -54,5 +54,5 @@ export const meta: WsComponentMeta = {
54
54
 
55
55
  export const propsMeta: WsComponentPropsMeta = {
56
56
  props,
57
- initialProps: ["ordered", "type", "starts", "reversed"],
57
+ initialProps: ["ordered", "type", "start", "reversed"],
58
58
  };
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 { Bold as BoldPrimitive } from "./bold";
2
+ import { Subscript as SubscriptPrimitive } from "./subscript";
3
3
 
4
4
  export default {
5
- title: "Components/Bold",
6
- component: BoldPrimitive,
7
- } as ComponentMeta<typeof BoldPrimitive>;
5
+ title: "Components/Subscript",
6
+ component: SubscriptPrimitive,
7
+ } as ComponentMeta<typeof SubscriptPrimitive>;
8
8
 
9
- const Template: ComponentStory<typeof BoldPrimitive> = (args) => (
10
- <BoldPrimitive {...args} />
9
+ const Template: ComponentStory<typeof SubscriptPrimitive> = (args) => (
10
+ <SubscriptPrimitive {...args} />
11
11
  );
12
12
 
13
- export const Bold = Template.bind({});
14
- Bold.args = {
15
- children: "some bold text",
13
+ export const Subscript = Template.bind({});
14
+ Subscript.args = {
15
+ children: "some subscript text",
16
16
  };