@webstudio-is/sdk-components-react 0.0.0-017f1bd

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 (297) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +3 -0
  3. package/lib/__generated__/blockquote.props.js +4 -0
  4. package/lib/__generated__/body.props.js +4 -0
  5. package/lib/__generated__/bold.props.js +4 -0
  6. package/lib/__generated__/box.props.js +6 -0
  7. package/lib/__generated__/button.props.js +4 -0
  8. package/lib/__generated__/checkbox.props.js +11 -0
  9. package/lib/__generated__/code-text.props.js +6 -0
  10. package/lib/__generated__/form.props.js +4 -0
  11. package/lib/__generated__/head-link.props.js +4 -0
  12. package/lib/__generated__/head-meta.props.js +4 -0
  13. package/lib/__generated__/head-slot.props.js +4 -0
  14. package/lib/__generated__/head-title.props.js +4 -0
  15. package/lib/__generated__/heading.props.js +6 -0
  16. package/lib/__generated__/html-embed.props.js +18 -0
  17. package/lib/__generated__/image.props.js +13 -0
  18. package/lib/__generated__/input.props.js +4 -0
  19. package/lib/__generated__/italic.props.js +4 -0
  20. package/lib/__generated__/label.props.js +4 -0
  21. package/lib/__generated__/link.props.js +27 -0
  22. package/lib/__generated__/list-item.props.js +4 -0
  23. package/lib/__generated__/list.props.js +12 -0
  24. package/lib/__generated__/markdown-embed.props.js +6 -0
  25. package/lib/__generated__/option.props.js +4 -0
  26. package/lib/__generated__/paragraph.props.js +4 -0
  27. package/lib/__generated__/radio-button.props.js +11 -0
  28. package/lib/__generated__/select.props.js +4 -0
  29. package/lib/__generated__/separator.props.js +4 -0
  30. package/lib/__generated__/span.props.js +4 -0
  31. package/lib/__generated__/subscript.props.js +4 -0
  32. package/lib/__generated__/superscript.props.js +4 -0
  33. package/lib/__generated__/text.props.js +6 -0
  34. package/lib/__generated__/textarea.props.js +4 -0
  35. package/lib/__generated__/time.props.js +305 -0
  36. package/lib/__generated__/video.props.js +4 -0
  37. package/lib/__generated__/vimeo-play-button.props.js +4 -0
  38. package/lib/__generated__/vimeo-preview-image.props.js +12 -0
  39. package/lib/__generated__/vimeo-spinner.props.js +4 -0
  40. package/lib/__generated__/vimeo.props.js +170 -0
  41. package/lib/__generated__/webhook-form.props.js +13 -0
  42. package/lib/__generated__/xml-node.props.js +26 -0
  43. package/lib/__generated__/xml-time.props.js +19 -0
  44. package/lib/__generated__/youtube.props.js +168 -0
  45. package/lib/blockquote.js +9 -0
  46. package/lib/blockquote.ws.js +56 -0
  47. package/lib/body.js +7 -0
  48. package/lib/body.ws.js +10 -0
  49. package/lib/bold.js +7 -0
  50. package/lib/bold.ws.js +11 -0
  51. package/lib/box.js +12 -0
  52. package/lib/box.ws.js +41 -0
  53. package/lib/button.js +9 -0
  54. package/lib/button.ws.js +10 -0
  55. package/lib/checkbox.js +15 -0
  56. package/lib/checkbox.ws.js +20 -0
  57. package/lib/code-text.js +10 -0
  58. package/lib/code-text.ws.js +51 -0
  59. package/lib/components.js +91 -0
  60. package/lib/content-embed.template.js +83 -0
  61. package/lib/form.js +7 -0
  62. package/lib/form.ws.js +16 -0
  63. package/lib/fragment.js +7 -0
  64. package/lib/fragment.ws.js +4 -0
  65. package/lib/head-link.js +23 -0
  66. package/lib/head-link.ws.js +14 -0
  67. package/lib/head-meta.js +23 -0
  68. package/lib/head-meta.ws.js +14 -0
  69. package/lib/head-slot.js +53 -0
  70. package/lib/head-slot.template.js +15 -0
  71. package/lib/head-slot.ws.js +14 -0
  72. package/lib/head-title.js +23 -0
  73. package/lib/head-title.ws.js +13 -0
  74. package/lib/heading.js +12 -0
  75. package/lib/heading.ws.js +25 -0
  76. package/lib/home_wsKvRSqvkajPPBeycZ-C8.svg +3 -0
  77. package/lib/hooks.js +6 -0
  78. package/lib/html-embed-patchers.js +29 -0
  79. package/lib/html-embed.js +112 -0
  80. package/lib/html-embed.ws.js +48 -0
  81. package/lib/image.js +38 -0
  82. package/lib/image.ws.js +53 -0
  83. package/lib/input.js +21 -0
  84. package/lib/input.ws.js +28 -0
  85. package/lib/italic.js +7 -0
  86. package/lib/italic.ws.js +11 -0
  87. package/lib/label.js +7 -0
  88. package/lib/label.ws.js +16 -0
  89. package/lib/link.js +15 -0
  90. package/lib/link.ws.js +26 -0
  91. package/lib/list-item.js +9 -0
  92. package/lib/list-item.ws.js +10 -0
  93. package/lib/list.js +6 -0
  94. package/lib/list.ws.js +41 -0
  95. package/lib/markdown-embed.js +19 -0
  96. package/lib/markdown-embed.template.js +75 -0
  97. package/lib/markdown-embed.ws.js +35 -0
  98. package/lib/metas.js +92 -0
  99. package/lib/option.js +9 -0
  100. package/lib/option.ws.js +35 -0
  101. package/lib/paragraph.js +7 -0
  102. package/lib/paragraph.ws.js +10 -0
  103. package/lib/radio-button.js +15 -0
  104. package/lib/radio-button.ws.js +21 -0
  105. package/lib/rich-text-link.ws.js +5 -0
  106. package/lib/select.js +32 -0
  107. package/lib/select.ws.js +26 -0
  108. package/lib/separator.js +9 -0
  109. package/lib/separator.ws.js +38 -0
  110. package/lib/shared/video.js +13 -0
  111. package/lib/slot.js +14 -0
  112. package/lib/slot.ws.js +10 -0
  113. package/lib/span.js +7 -0
  114. package/lib/span.ws.js +13 -0
  115. package/lib/subscript.js +7 -0
  116. package/lib/subscript.ws.js +11 -0
  117. package/lib/superscript.js +7 -0
  118. package/lib/superscript.ws.js +11 -0
  119. package/lib/templates.js +14 -0
  120. package/lib/text.js +12 -0
  121. package/lib/text.ws.js +28 -0
  122. package/lib/textarea.js +18 -0
  123. package/lib/textarea.ws.js +33 -0
  124. package/lib/time.js +320 -0
  125. package/lib/time.ws.js +18 -0
  126. package/lib/types/__generated__/blockquote.props.d.ts +2 -0
  127. package/lib/types/__generated__/body.props.d.ts +2 -0
  128. package/lib/types/__generated__/bold.props.d.ts +2 -0
  129. package/lib/types/__generated__/box.props.d.ts +2 -0
  130. package/lib/types/__generated__/button.props.d.ts +2 -0
  131. package/lib/types/__generated__/checkbox.props.d.ts +2 -0
  132. package/lib/types/__generated__/code-text.props.d.ts +2 -0
  133. package/lib/types/__generated__/form.props.d.ts +2 -0
  134. package/lib/types/__generated__/fragment.props.d.ts +2 -0
  135. package/lib/types/__generated__/head-link.props.d.ts +2 -0
  136. package/lib/types/__generated__/head-meta.props.d.ts +2 -0
  137. package/lib/types/__generated__/head-slot.props.d.ts +2 -0
  138. package/lib/types/__generated__/head-title.props.d.ts +2 -0
  139. package/lib/types/__generated__/heading.props.d.ts +2 -0
  140. package/lib/types/__generated__/html-embed.props.d.ts +2 -0
  141. package/lib/types/__generated__/image.props.d.ts +2 -0
  142. package/lib/types/__generated__/input.props.d.ts +2 -0
  143. package/lib/types/__generated__/italic.props.d.ts +2 -0
  144. package/lib/types/__generated__/label.props.d.ts +2 -0
  145. package/lib/types/__generated__/link.props.d.ts +2 -0
  146. package/lib/types/__generated__/list-item.props.d.ts +2 -0
  147. package/lib/types/__generated__/list.props.d.ts +2 -0
  148. package/lib/types/__generated__/markdown-embed.props.d.ts +2 -0
  149. package/lib/types/__generated__/option.props.d.ts +2 -0
  150. package/lib/types/__generated__/paragraph.props.d.ts +2 -0
  151. package/lib/types/__generated__/radio-button.props.d.ts +2 -0
  152. package/lib/types/__generated__/rich-text-link.props.d.ts +2 -0
  153. package/lib/types/__generated__/select.props.d.ts +2 -0
  154. package/lib/types/__generated__/separator.props.d.ts +2 -0
  155. package/lib/types/__generated__/slot.props.d.ts +2 -0
  156. package/lib/types/__generated__/span.props.d.ts +2 -0
  157. package/lib/types/__generated__/subscript.props.d.ts +2 -0
  158. package/lib/types/__generated__/superscript.props.d.ts +2 -0
  159. package/lib/types/__generated__/text.props.d.ts +2 -0
  160. package/lib/types/__generated__/textarea.props.d.ts +2 -0
  161. package/lib/types/__generated__/time.props.d.ts +2 -0
  162. package/lib/types/__generated__/video.props.d.ts +2 -0
  163. package/lib/types/__generated__/vimeo-play-button.props.d.ts +2 -0
  164. package/lib/types/__generated__/vimeo-preview-image.props.d.ts +2 -0
  165. package/lib/types/__generated__/vimeo-spinner.props.d.ts +2 -0
  166. package/lib/types/__generated__/vimeo.props.d.ts +2 -0
  167. package/lib/types/__generated__/webhook-form.props.d.ts +2 -0
  168. package/lib/types/__generated__/xml-node.props.d.ts +2 -0
  169. package/lib/types/__generated__/xml-time.props.d.ts +2 -0
  170. package/lib/types/__generated__/youtube.props.d.ts +2 -0
  171. package/lib/types/blockquote.d.ts +2 -0
  172. package/lib/types/blockquote.ws.d.ts +2 -0
  173. package/lib/types/body.d.ts +2 -0
  174. package/lib/types/body.ws.d.ts +2 -0
  175. package/lib/types/bold.d.ts +2 -0
  176. package/lib/types/bold.ws.d.ts +2 -0
  177. package/lib/types/box.d.ts +7 -0
  178. package/lib/types/box.ws.d.ts +2 -0
  179. package/lib/types/button.d.ts +2 -0
  180. package/lib/types/button.ws.d.ts +2 -0
  181. package/lib/types/checkbox.d.ts +4 -0
  182. package/lib/types/checkbox.ws.d.ts +2 -0
  183. package/lib/types/code-text.d.ts +4 -0
  184. package/lib/types/code-text.ws.d.ts +2 -0
  185. package/lib/types/components.d.ts +45 -0
  186. package/lib/types/content-embed.template.d.ts +2 -0
  187. package/lib/types/form.d.ts +2 -0
  188. package/lib/types/form.ws.d.ts +2 -0
  189. package/lib/types/fragment.d.ts +6 -0
  190. package/lib/types/fragment.ws.d.ts +2 -0
  191. package/lib/types/head-link.d.ts +8 -0
  192. package/lib/types/head-link.ws.d.ts +2 -0
  193. package/lib/types/head-meta.d.ts +2 -0
  194. package/lib/types/head-meta.ws.d.ts +2 -0
  195. package/lib/types/head-slot.d.ts +9 -0
  196. package/lib/types/head-slot.template.d.ts +2 -0
  197. package/lib/types/head-slot.ws.d.ts +2 -0
  198. package/lib/types/head-title.d.ts +2 -0
  199. package/lib/types/head-title.ws.d.ts +2 -0
  200. package/lib/types/heading.d.ts +7 -0
  201. package/lib/types/heading.ws.d.ts +2 -0
  202. package/lib/types/hooks.d.ts +2 -0
  203. package/lib/types/html-embed-patchers.d.ts +2 -0
  204. package/lib/types/html-embed.d.ts +12 -0
  205. package/lib/types/html-embed.test.d.ts +1 -0
  206. package/lib/types/html-embed.ws.d.ts +2 -0
  207. package/lib/types/image.d.ts +8 -0
  208. package/lib/types/image.ws.d.ts +2 -0
  209. package/lib/types/input.d.ts +1 -0
  210. package/lib/types/input.ws.d.ts +2 -0
  211. package/lib/types/italic.d.ts +2 -0
  212. package/lib/types/italic.ws.d.ts +2 -0
  213. package/lib/types/label.d.ts +2 -0
  214. package/lib/types/label.ws.d.ts +2 -0
  215. package/lib/types/link.d.ts +11 -0
  216. package/lib/types/link.ws.d.ts +2 -0
  217. package/lib/types/list-item.d.ts +2 -0
  218. package/lib/types/list-item.ws.d.ts +2 -0
  219. package/lib/types/list.d.ts +10 -0
  220. package/lib/types/list.ws.d.ts +2 -0
  221. package/lib/types/markdown-embed.d.ts +7 -0
  222. package/lib/types/markdown-embed.template.d.ts +2 -0
  223. package/lib/types/markdown-embed.ws.d.ts +2 -0
  224. package/lib/types/metas.d.ts +45 -0
  225. package/lib/types/option.d.ts +1 -0
  226. package/lib/types/option.ws.d.ts +2 -0
  227. package/lib/types/paragraph.d.ts +2 -0
  228. package/lib/types/paragraph.ws.d.ts +2 -0
  229. package/lib/types/radio-button.d.ts +4 -0
  230. package/lib/types/radio-button.ws.d.ts +2 -0
  231. package/lib/types/rich-text-link.d.ts +1 -0
  232. package/lib/types/rich-text-link.ws.d.ts +2 -0
  233. package/lib/types/select.d.ts +3 -0
  234. package/lib/types/select.ws.d.ts +2 -0
  235. package/lib/types/separator.d.ts +2 -0
  236. package/lib/types/separator.ws.d.ts +2 -0
  237. package/lib/types/shared/video.d.ts +7 -0
  238. package/lib/types/slot.d.ts +6 -0
  239. package/lib/types/slot.ws.d.ts +2 -0
  240. package/lib/types/span.d.ts +2 -0
  241. package/lib/types/span.ws.d.ts +2 -0
  242. package/lib/types/subscript.d.ts +2 -0
  243. package/lib/types/subscript.ws.d.ts +2 -0
  244. package/lib/types/superscript.d.ts +2 -0
  245. package/lib/types/superscript.ws.d.ts +2 -0
  246. package/lib/types/templates.d.ts +6 -0
  247. package/lib/types/test-utils/cartesian.d.ts +2 -0
  248. package/lib/types/text.d.ts +7 -0
  249. package/lib/types/text.ws.d.ts +2 -0
  250. package/lib/types/textarea.d.ts +1 -0
  251. package/lib/types/textarea.ws.d.ts +2 -0
  252. package/lib/types/time.d.ts +16 -0
  253. package/lib/types/time.test.d.ts +1 -0
  254. package/lib/types/time.ws.d.ts +2 -0
  255. package/lib/types/video.d.ts +9 -0
  256. package/lib/types/video.ws.d.ts +2 -0
  257. package/lib/types/vimeo-play-button.d.ts +3 -0
  258. package/lib/types/vimeo-play-button.ws.d.ts +2 -0
  259. package/lib/types/vimeo-preview-image.d.ts +284 -0
  260. package/lib/types/vimeo-preview-image.ws.d.ts +2 -0
  261. package/lib/types/vimeo-spinner.d.ts +1 -0
  262. package/lib/types/vimeo-spinner.ws.d.ts +2 -0
  263. package/lib/types/vimeo.d.ts +79 -0
  264. package/lib/types/vimeo.template.d.ts +2 -0
  265. package/lib/types/vimeo.ws.d.ts +2 -0
  266. package/lib/types/webhook-form.d.ts +9 -0
  267. package/lib/types/webhook-form.template.d.ts +2 -0
  268. package/lib/types/webhook-form.ws.d.ts +2 -0
  269. package/lib/types/xml-node.d.ts +13 -0
  270. package/lib/types/xml-node.ws.d.ts +2 -0
  271. package/lib/types/xml-time.d.ts +6 -0
  272. package/lib/types/xml-time.ws.d.ts +2 -0
  273. package/lib/types/youtube.d.ts +143 -0
  274. package/lib/types/youtube.template.d.ts +2 -0
  275. package/lib/types/youtube.ws.d.ts +2 -0
  276. package/lib/video.js +53 -0
  277. package/lib/video.ws.js +44 -0
  278. package/lib/vimeo-play-button.js +18 -0
  279. package/lib/vimeo-play-button.ws.js +18 -0
  280. package/lib/vimeo-preview-image.js +19 -0
  281. package/lib/vimeo-preview-image.ws.js +25 -0
  282. package/lib/vimeo-spinner.js +13 -0
  283. package/lib/vimeo-spinner.ws.js +18 -0
  284. package/lib/vimeo.js +215 -0
  285. package/lib/vimeo.template.js +94 -0
  286. package/lib/vimeo.ws.js +35 -0
  287. package/lib/webhook-form.js +9 -0
  288. package/lib/webhook-form.template.js +88 -0
  289. package/lib/webhook-form.ws.js +27 -0
  290. package/lib/xml-node.js +61 -0
  291. package/lib/xml-node.ws.js +13 -0
  292. package/lib/xml-time.js +25 -0
  293. package/lib/xml-time.ws.js +13 -0
  294. package/lib/youtube.js +227 -0
  295. package/lib/youtube.template.js +98 -0
  296. package/lib/youtube.ws.js +45 -0
  297. package/package.json +74 -0
@@ -0,0 +1,170 @@
1
+ const e = {
2
+ autopause: {
3
+ description: "Whether to pause the current video when another Vimeo video on the same page starts to play. Set this value to false to permit simultaneous playback of all the videos on the page. This option has no effect if you've disabled cookies in your browser, either through browser settings or with an extension or plugin.",
4
+ required: !1,
5
+ control: "boolean",
6
+ type: "boolean",
7
+ defaultValue: !0
8
+ },
9
+ autopip: {
10
+ description: "Whether to enable the browser to enter picture-in-picture mode automatically when switching tabs or windows, where supported.",
11
+ required: !1,
12
+ control: "boolean",
13
+ type: "boolean"
14
+ },
15
+ autoplay: {
16
+ description: "Whether to start playback of the video automatically. This feature might not work on all devices.\nSome browsers require the `muted` parameter to be set to `true` for autoplay to work.",
17
+ required: !1,
18
+ control: "boolean",
19
+ type: "boolean",
20
+ defaultValue: !1
21
+ },
22
+ backgroundMode: {
23
+ description: "Whether the player is in background mode, which hides the playback controls, enables autoplay, and loops the video.",
24
+ required: !1,
25
+ control: "boolean",
26
+ type: "boolean"
27
+ },
28
+ controlsColor: {
29
+ description: "A color value of the playback controls, which is normally #00ADEF. The embed settings of the video might override this value.",
30
+ required: !1,
31
+ control: "color",
32
+ type: "string"
33
+ },
34
+ doNotTrack: {
35
+ description: "Whether to prevent the player from tracking session data, including cookies. Keep in mind that setting this argument to true also blocks video stats.",
36
+ required: !1,
37
+ control: "boolean",
38
+ type: "boolean",
39
+ defaultValue: !1
40
+ },
41
+ interactiveParams: {
42
+ description: "Key-value pairs representing dynamic parameters that are utilized on interactive videos with live elements, such as title=my-video,subtitle=interactive.",
43
+ required: !1,
44
+ control: "text",
45
+ type: "string"
46
+ },
47
+ keyboard: {
48
+ description: "Whether to enable keyboard input to trigger player events. This setting doesn't affect tab control.",
49
+ required: !1,
50
+ control: "boolean",
51
+ type: "boolean",
52
+ defaultValue: !0
53
+ },
54
+ loading: {
55
+ description: "Not a Vimeo attribute: Loading attribute for the iframe allows to eager or lazy load the source",
56
+ required: !1,
57
+ control: "radio",
58
+ type: "string",
59
+ defaultValue: "lazy",
60
+ options: ["eager", "lazy"]
61
+ },
62
+ loop: {
63
+ description: "Whether to restart the video automatically after reaching the end.",
64
+ required: !1,
65
+ control: "boolean",
66
+ type: "boolean",
67
+ defaultValue: !1
68
+ },
69
+ muted: {
70
+ description: "Whether the video is muted upon loading. The true value is required for the autoplay behavior in some browsers.",
71
+ required: !1,
72
+ control: "boolean",
73
+ type: "boolean",
74
+ defaultValue: !1
75
+ },
76
+ pip: {
77
+ description: "Whether to include the picture-in-picture button among the player controls and enable the picture-in-picture API.",
78
+ required: !1,
79
+ control: "boolean",
80
+ type: "boolean",
81
+ defaultValue: !1
82
+ },
83
+ playsinline: {
84
+ description: "Whether the video plays inline on supported mobile devices. To force the device to play the video in fullscreen mode instead, set this value to false.",
85
+ required: !1,
86
+ control: "boolean",
87
+ type: "boolean",
88
+ defaultValue: !1
89
+ },
90
+ quality: {
91
+ description: "For videos on a Vimeo Plus account or higher: the playback quality of the video. Use auto for the best possible quality given available bandwidth and other factors. You can also specify 360p, 540p, 720p, 1080p, 2k, and 4k.",
92
+ required: !1,
93
+ control: "select",
94
+ type: "string",
95
+ defaultValue: "auto",
96
+ options: ["auto", "360p", "540p", "720p", "1080p", "2k", "4k"]
97
+ },
98
+ responsive: {
99
+ description: "Whether to return a responsive embed code, or one that provides intelligent adjustments based on viewing conditions. We recommend this option for mobile-optimized sites.",
100
+ required: !1,
101
+ control: "boolean",
102
+ type: "boolean",
103
+ defaultValue: !0
104
+ },
105
+ showByline: {
106
+ description: "Whether to display the video owner's name.",
107
+ required: !1,
108
+ control: "boolean",
109
+ type: "boolean",
110
+ defaultValue: !1
111
+ },
112
+ showControls: {
113
+ description: "Whether to display the player's interactive elements, including the play bar and sharing buttons. Set this option to false for a chromeless experience. To control playback when the play/pause button is hidden, set autoplay to true, use keyboard controls (which remain active), or implement our player SDK.",
114
+ required: !1,
115
+ control: "boolean",
116
+ type: "boolean",
117
+ defaultValue: !0
118
+ },
119
+ showPortrait: {
120
+ description: "Whether to display the video owner's portrait. Only works if either title or byline are also enabled",
121
+ required: !1,
122
+ control: "boolean",
123
+ type: "boolean",
124
+ defaultValue: !0
125
+ },
126
+ showPreview: {
127
+ description: "Not a Vimeo attribute: Whether the preview image should be loaded from Vimeo API. Ideally don't use it, because it will show up with some delay and will make your project feel slower.",
128
+ required: !1,
129
+ control: "boolean",
130
+ type: "boolean",
131
+ defaultValue: !1
132
+ },
133
+ showTitle: {
134
+ description: "Whether the player displays the title overlay.",
135
+ required: !1,
136
+ control: "boolean",
137
+ type: "boolean",
138
+ defaultValue: !1
139
+ },
140
+ speed: {
141
+ description: "Whether the player displays speed controls in the preferences menu and enables the playback rate API.",
142
+ required: !1,
143
+ control: "boolean",
144
+ type: "boolean",
145
+ defaultValue: !1
146
+ },
147
+ texttrack: {
148
+ description: `The text track to display with the video. Specify the text track by its language code (en), the language code and locale (en-US), or the language code and kind (en.captions). For this argument to work, the video must already have a text track of the given type; see our Help Center or Working with Text Track Uploads for more information.
149
+ To enable automatically generated closed captions instead, provide the value en-x-autogen. Please note that, at the present time, automatic captions are always in English.`,
150
+ required: !1,
151
+ control: "text",
152
+ type: "string"
153
+ },
154
+ transparent: {
155
+ description: "Whether the responsive player and transparent background are enabled.",
156
+ required: !1,
157
+ control: "boolean",
158
+ type: "boolean",
159
+ defaultValue: !0
160
+ },
161
+ url: {
162
+ description: "The ID or the URL of the video on Vimeo. You must supply one of these values to identify the video. When the video's privacy setting is Private, you must use the URL, and the URL must include the h parameter. For more information, see Vimeo’s introductory guide.",
163
+ required: !1,
164
+ control: "text",
165
+ type: "string"
166
+ }
167
+ };
168
+ export {
169
+ e as props
170
+ };
@@ -0,0 +1,13 @@
1
+ const e = {
2
+ state: {
3
+ description: "Use this property to reveal the Success and Error states on the canvas so they can be styled. The Initial state is displayed when the page first opens. The Success and Error states are displayed depending on whether the Form submits successfully or unsuccessfully.",
4
+ required: !1,
5
+ control: "radio",
6
+ type: "string",
7
+ defaultValue: "initial",
8
+ options: ["initial", "success", "error"]
9
+ }
10
+ };
11
+ export {
12
+ e as props
13
+ };
@@ -0,0 +1,26 @@
1
+ const e = {
2
+ href: {
3
+ required: !1,
4
+ control: "text",
5
+ type: "string",
6
+ description: "Document base URL"
7
+ },
8
+ hreflang: {
9
+ required: !1,
10
+ control: "text",
11
+ type: "string",
12
+ description: "Language of the linked resource"
13
+ },
14
+ rel: {
15
+ required: !1,
16
+ control: "text",
17
+ type: "string",
18
+ description: "Relationship between the location in the document containing the hyperlink and the destination resource"
19
+ },
20
+ tag: { required: !1, control: "text", type: "string", defaultValue: "" },
21
+ xmlns: { required: !1, control: "text", type: "string" },
22
+ "xmlns:xhtml": { required: !1, control: "text", type: "string" }
23
+ };
24
+ export {
25
+ e as props
26
+ };
@@ -0,0 +1,19 @@
1
+ const e = {
2
+ dateStyle: {
3
+ required: !1,
4
+ control: "radio",
5
+ type: "string",
6
+ defaultValue: "short",
7
+ options: ["long", "short"]
8
+ },
9
+ datetime: {
10
+ required: !1,
11
+ control: "text",
12
+ type: "string",
13
+ defaultValue: "dateTime attribute is not set",
14
+ description: "Machine-readable value"
15
+ }
16
+ };
17
+ export {
18
+ e as props
19
+ };
@@ -0,0 +1,168 @@
1
+ const e = {
2
+ allowFullscreen: {
3
+ description: "Whether to allow fullscreen mode.\nOriginal parameter: `fs`",
4
+ required: !1,
5
+ control: "boolean",
6
+ type: "boolean",
7
+ defaultValue: !0
8
+ },
9
+ autoplay: {
10
+ description: "Whether the video should autoplay.\nSome browsers require the `muted` parameter to be set to `true` for autoplay to work.",
11
+ required: !1,
12
+ control: "boolean",
13
+ type: "boolean",
14
+ defaultValue: !1
15
+ },
16
+ captionLanguage: {
17
+ description: "Specifies the default language that the player will use to display captions.\nThe value is an ISO 639-1 two-letter language code.\nOriginal parameter: `cc_lang_pref`",
18
+ required: !1,
19
+ control: "text",
20
+ type: "string"
21
+ },
22
+ color: {
23
+ description: `Specifies the color that will be used in the player's video progress bar to highlight the amount of the video that the viewer has already seen.
24
+ Valid values are 'red' and 'white'.`,
25
+ required: !1,
26
+ control: "radio",
27
+ type: "string",
28
+ options: ["red", "white"]
29
+ },
30
+ disableKeyboard: {
31
+ description: "Whether to disable keyboard controls.\nOriginal parameter: `disablekb`",
32
+ required: !1,
33
+ control: "boolean",
34
+ type: "boolean",
35
+ defaultValue: !1
36
+ },
37
+ endTime: {
38
+ description: "End time of the video in seconds.\nOriginal parameter: `end`",
39
+ required: !1,
40
+ control: "number",
41
+ type: "number"
42
+ },
43
+ inline: {
44
+ description: "Whether to play inline on mobile (not fullscreen).",
45
+ required: !1,
46
+ control: "boolean",
47
+ type: "boolean",
48
+ defaultValue: !1
49
+ },
50
+ keyboard: {
51
+ description: "Whether to enable keyboard controls.",
52
+ required: !1,
53
+ control: "boolean",
54
+ type: "boolean",
55
+ defaultValue: !0
56
+ },
57
+ language: {
58
+ description: "Sets the player's interface language. The value is an ISO 639-1 two-letter language code or a fully specified locale.\nOriginal parameter: `hl`",
59
+ required: !1,
60
+ control: "text",
61
+ type: "string"
62
+ },
63
+ listId: {
64
+ description: "ID of the playlist to load.\nOriginal parameter: `list`",
65
+ required: !1,
66
+ control: "text",
67
+ type: "string"
68
+ },
69
+ listType: {
70
+ description: "Type of playlist to load.",
71
+ required: !1,
72
+ control: "radio",
73
+ type: "string",
74
+ options: ["playlist", "user_uploads"]
75
+ },
76
+ loading: {
77
+ description: "Loading strategy for iframe",
78
+ required: !1,
79
+ control: "radio",
80
+ type: "string",
81
+ defaultValue: "lazy",
82
+ options: ["eager", "lazy"]
83
+ },
84
+ loop: {
85
+ description: "Whether the video should loop continuously.",
86
+ required: !1,
87
+ control: "boolean",
88
+ type: "boolean",
89
+ defaultValue: !1
90
+ },
91
+ muted: {
92
+ description: "Whether the video should start muted.\nUseful for enabling autoplay in browsers that require videos to be muted.\nOriginal parameter: `mute`",
93
+ required: !1,
94
+ control: "boolean",
95
+ type: "boolean",
96
+ defaultValue: !1
97
+ },
98
+ origin: {
99
+ description: "Your domain for API compliance (e.g., `https://yourdomain.com`).",
100
+ required: !1,
101
+ control: "text",
102
+ type: "string"
103
+ },
104
+ playlist: {
105
+ description: "This parameter specifies a comma-separated list of video IDs to play",
106
+ required: !1,
107
+ control: "text",
108
+ type: "string"
109
+ },
110
+ privacyEnhancedMode: {
111
+ description: `The Privacy Enhanced Mode of the YouTube embedded player prevents the use of views of embedded YouTube content from influencing the viewer’s browsing experience on YouTube.
112
+ https://support.google.com/youtube/answer/171780?hl=en#zippy=%2Cturn-on-privacy-enhanced-mode`,
113
+ required: !1,
114
+ control: "boolean",
115
+ type: "boolean",
116
+ defaultValue: !0
117
+ },
118
+ referrer: {
119
+ description: "Referrer URL for tracking purposes.\nOriginal parameter: `widget_referrer`",
120
+ required: !1,
121
+ control: "text",
122
+ type: "string"
123
+ },
124
+ showAnnotations: {
125
+ description: "Whether to show annotations on the video.\nOriginal parameter: `iv_load_policy`",
126
+ required: !1,
127
+ control: "boolean",
128
+ type: "boolean",
129
+ defaultValue: !0
130
+ },
131
+ showCaptions: {
132
+ description: "Whether captions should be shown by default.\nOriginal parameter: `cc_load_policy`",
133
+ required: !1,
134
+ control: "boolean",
135
+ type: "boolean",
136
+ defaultValue: !1
137
+ },
138
+ showControls: {
139
+ description: "Whether to show player controls.",
140
+ required: !1,
141
+ control: "boolean",
142
+ type: "boolean",
143
+ defaultValue: !0
144
+ },
145
+ showPreview: { required: !1, control: "boolean", type: "boolean" },
146
+ showRelatedVideos: {
147
+ description: "Whether to show related videos at the end.\nOriginal parameter: `rel`",
148
+ required: !1,
149
+ control: "boolean",
150
+ type: "boolean",
151
+ defaultValue: !0
152
+ },
153
+ startTime: {
154
+ description: "Start time of the video in seconds.\nOriginal parameter: `start`",
155
+ required: !1,
156
+ control: "number",
157
+ type: "number"
158
+ },
159
+ url: {
160
+ description: "The YouTube video URL or ID",
161
+ required: !1,
162
+ control: "text",
163
+ type: "string"
164
+ }
165
+ };
166
+ export {
167
+ e as props
168
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ const c = m(
4
+ ({ children: o, ...r }, t) => /* @__PURE__ */ e("blockquote", { ...r, ref: t, children: o })
5
+ );
6
+ c.displayName = "Blockquote";
7
+ export {
8
+ c as Blockquote
9
+ };
@@ -0,0 +1,56 @@
1
+ import { props as t } from "./__generated__/blockquote.props.js";
2
+ const e = {
3
+ blockquote: [
4
+ {
5
+ property: "margin-top",
6
+ value: { type: "unit", value: 0, unit: "number" }
7
+ },
8
+ {
9
+ property: "margin-right",
10
+ value: { type: "unit", value: 0, unit: "number" }
11
+ },
12
+ {
13
+ property: "margin-bottom",
14
+ value: { type: "unit", value: 10, unit: "px" }
15
+ },
16
+ {
17
+ property: "margin-left",
18
+ value: { type: "unit", value: 0, unit: "number" }
19
+ },
20
+ {
21
+ property: "padding-top",
22
+ value: { type: "unit", value: 10, unit: "px" }
23
+ },
24
+ {
25
+ property: "padding-bottom",
26
+ value: { type: "unit", value: 10, unit: "px" }
27
+ },
28
+ {
29
+ property: "padding-left",
30
+ value: { type: "unit", value: 20, unit: "px" }
31
+ },
32
+ {
33
+ property: "padding-right",
34
+ value: { type: "unit", value: 20, unit: "px" }
35
+ },
36
+ {
37
+ property: "border-left-width",
38
+ value: { type: "unit", value: 5, unit: "px" }
39
+ },
40
+ {
41
+ property: "border-left-style",
42
+ value: { type: "keyword", value: "solid" }
43
+ },
44
+ {
45
+ property: "border-left-color",
46
+ value: { type: "rgb", r: 226, g: 226, b: 226, alpha: 1 }
47
+ }
48
+ ]
49
+ }, r = {
50
+ presetStyle: e,
51
+ initialProps: ["id", "class", "cite"],
52
+ props: t
53
+ };
54
+ export {
55
+ r as meta
56
+ };
package/lib/body.js ADDED
@@ -0,0 +1,7 @@
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ const f = m((o, r) => /* @__PURE__ */ d("body", { ...o, ref: r }));
4
+ f.displayName = "Body";
5
+ export {
6
+ f as Body
7
+ };
package/lib/body.ws.js ADDED
@@ -0,0 +1,10 @@
1
+ import { body as o } from "@webstudio-is/sdk/normalize.css";
2
+ import { props as r } from "./__generated__/body.props.js";
3
+ const i = {
4
+ presetStyle: { body: o },
5
+ initialProps: ["id", "class"],
6
+ props: r
7
+ };
8
+ export {
9
+ i as meta
10
+ };
package/lib/bold.js ADDED
@@ -0,0 +1,7 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { forwardRef as d } from "react";
3
+ const f = d((o, r) => /* @__PURE__ */ m("b", { ...o, ref: r }));
4
+ f.displayName = "Bold";
5
+ export {
6
+ f as Bold
7
+ };
package/lib/bold.ws.js ADDED
@@ -0,0 +1,11 @@
1
+ import { b as o } from "@webstudio-is/sdk/normalize.css";
2
+ import { props as t } from "./__generated__/bold.props.js";
3
+ const p = {
4
+ label: "Bold Text",
5
+ presetStyle: { b: o },
6
+ initialProps: ["id", "class"],
7
+ props: t
8
+ };
9
+ export {
10
+ p as meta
11
+ };
package/lib/box.js ADDED
@@ -0,0 +1,12 @@
1
+ import { forwardRef as a, createElement as m } from "react";
2
+ import { getTagFromProps as f } from "@webstudio-is/sdk/runtime";
3
+ const g = "div", n = a(
4
+ ({ tag: o, ...t }, r) => {
5
+ const e = f(t) ?? o ?? g;
6
+ return m(e, { ...t, ref: r });
7
+ }
8
+ );
9
+ n.displayName = "Box";
10
+ export {
11
+ n as Box
12
+ };
package/lib/box.ws.js ADDED
@@ -0,0 +1,41 @@
1
+ import { section as e, nav as r, main as t, header as i, footer as a, figure as o, aside as s, article as d, address as n, div as p } from "@webstudio-is/sdk/normalize.css";
2
+ import { props as c } from "./__generated__/box.props.js";
3
+ const g = {
4
+ presetStyle: {
5
+ div: p,
6
+ address: n,
7
+ article: d,
8
+ aside: s,
9
+ figure: o,
10
+ footer: a,
11
+ header: i,
12
+ main: t,
13
+ nav: r,
14
+ section: e
15
+ },
16
+ initialProps: ["tag", "id", "class"],
17
+ props: {
18
+ ...c,
19
+ tag: {
20
+ required: !0,
21
+ control: "tag",
22
+ type: "string",
23
+ options: [
24
+ "div",
25
+ "header",
26
+ "footer",
27
+ "nav",
28
+ "main",
29
+ "section",
30
+ "article",
31
+ "aside",
32
+ "address",
33
+ "figure",
34
+ "span"
35
+ ]
36
+ }
37
+ }
38
+ };
39
+ export {
40
+ g as meta
41
+ };
package/lib/button.js ADDED
@@ -0,0 +1,9 @@
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { forwardRef as i } from "react";
3
+ const n = i(
4
+ ({ type: t = "submit", children: o, ...r }, m) => /* @__PURE__ */ f("button", { type: t, ...r, ref: m, children: o })
5
+ );
6
+ n.displayName = "Button";
7
+ export {
8
+ n as Button
9
+ };
@@ -0,0 +1,10 @@
1
+ import { button as t } from "@webstudio-is/sdk/normalize.css";
2
+ import { props as o } from "./__generated__/button.props.js";
3
+ const e = {
4
+ presetStyle: { button: t },
5
+ initialProps: ["id", "class", "type", "aria-label"],
6
+ props: o
7
+ };
8
+ export {
9
+ e as meta
10
+ };
@@ -0,0 +1,15 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as d } from "react";
3
+ const h = d(({ children: i, checked: e, defaultChecked: r, ...o }, c) => /* @__PURE__ */ t(
4
+ "input",
5
+ {
6
+ ...o,
7
+ defaultChecked: e ?? r,
8
+ type: "checkbox",
9
+ ref: c
10
+ }
11
+ ));
12
+ h.displayName = "Checkbox";
13
+ export {
14
+ h as Checkbox
15
+ };
@@ -0,0 +1,20 @@
1
+ import { CheckboxCheckedIcon as e } from "@webstudio-is/icons/svg";
2
+ import { checkbox as o } from "@webstudio-is/sdk/normalize.css";
3
+ import { props as r } from "./__generated__/checkbox.props.js";
4
+ const t = {
5
+ input: [
6
+ ...o,
7
+ {
8
+ property: "margin-right",
9
+ value: { type: "unit", unit: "em", value: 0.5 }
10
+ }
11
+ ]
12
+ }, m = {
13
+ icon: e,
14
+ presetStyle: t,
15
+ initialProps: ["id", "class", "name", "value", "required", "checked"],
16
+ props: r
17
+ };
18
+ export {
19
+ m as meta
20
+ };
@@ -0,0 +1,10 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as i } from "react";
3
+ const d = ({
4
+ innerRef: e,
5
+ ...t
6
+ }) => /* @__PURE__ */ r("code", { ...t, style: { padding: 20 }, ref: e, children: 'Open the "Settings" panel to edit the code.' }), l = i(({ code: e, children: t, ...n }, o) => t === void 0 && e === void 0 || String(e).trim().length === 0 ? /* @__PURE__ */ r(d, { innerRef: o, ...n }) : /* @__PURE__ */ r("code", { ...n, ref: o, children: e ?? t }));
7
+ l.displayName = "CodeText";
8
+ export {
9
+ l as CodeText
10
+ };
@@ -0,0 +1,51 @@
1
+ import { BracesIcon as e } from "@webstudio-is/icons/svg";
2
+ import { code as r } from "@webstudio-is/sdk/normalize.css";
3
+ import { props as t } from "./__generated__/code-text.props.js";
4
+ const o = {
5
+ code: [
6
+ ...r,
7
+ {
8
+ property: "display",
9
+ value: { type: "keyword", value: "block" }
10
+ },
11
+ {
12
+ property: "white-space-collapse",
13
+ value: { type: "keyword", value: "preserve" }
14
+ },
15
+ {
16
+ property: "text-wrap-mode",
17
+ value: { type: "keyword", value: "wrap" }
18
+ },
19
+ {
20
+ property: "padding-left",
21
+ value: { type: "unit", value: 0.2, unit: "em" }
22
+ },
23
+ {
24
+ property: "padding-right",
25
+ value: { type: "unit", value: 0.2, unit: "em" }
26
+ },
27
+ {
28
+ property: "background-color",
29
+ value: { type: "rgb", r: 238, g: 238, b: 238, alpha: 1 }
30
+ }
31
+ ]
32
+ }, c = {
33
+ icon: e,
34
+ contentModel: {
35
+ category: "instance",
36
+ children: []
37
+ },
38
+ presetStyle: o,
39
+ initialProps: ["id", "class", "lang", "code"],
40
+ props: {
41
+ ...t,
42
+ code: {
43
+ required: !0,
44
+ control: "codetext",
45
+ type: "string"
46
+ }
47
+ }
48
+ };
49
+ export {
50
+ c as meta
51
+ };