@webstudio-is/sdk-components-react 0.220.0 → 0.222.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 (109) hide show
  1. package/lib/__generated__/checkbox.props.js +1 -1
  2. package/lib/__generated__/markdown-embed.props.js +2 -8
  3. package/lib/__generated__/radio-button.props.js +1 -1
  4. package/lib/blockquote.ws.js +6 -8
  5. package/lib/body.ws.js +5 -19
  6. package/lib/bold.ws.js +4 -6
  7. package/lib/box.ws.js +12 -17
  8. package/lib/button.ws.js +5 -13
  9. package/lib/checkbox.ws.js +6 -17
  10. package/lib/code-text.ws.js +6 -11
  11. package/lib/form.ws.js +6 -11
  12. package/lib/head-slot.template.js +1 -1
  13. package/lib/heading.ws.js +7 -9
  14. package/lib/html-embed.ws.js +1 -1
  15. package/lib/image.ws.js +8 -10
  16. package/lib/input.js +18 -14
  17. package/lib/input.ws.js +6 -23
  18. package/lib/italic.ws.js +6 -16
  19. package/lib/label.ws.js +2 -4
  20. package/lib/link.ws.js +5 -17
  21. package/lib/list-item.ws.js +0 -2
  22. package/lib/list.ws.js +7 -9
  23. package/lib/option.js +3 -1
  24. package/lib/option.ws.js +1 -1
  25. package/lib/paragraph.ws.js +2 -4
  26. package/lib/radio-button.ws.js +8 -20
  27. package/lib/select.js +27 -14
  28. package/lib/select.ws.js +4 -13
  29. package/lib/separator.ws.js +6 -11
  30. package/lib/slot.ws.js +1 -1
  31. package/lib/span.ws.js +6 -8
  32. package/lib/subscript.ws.js +6 -8
  33. package/lib/superscript.ws.js +6 -8
  34. package/lib/templates.js +12 -36
  35. package/lib/text.ws.js +4 -6
  36. package/lib/textarea.js +16 -5
  37. package/lib/textarea.ws.js +4 -21
  38. package/lib/time.ws.js +4 -6
  39. package/lib/types/blockquote.ws.d.ts +1 -1
  40. package/lib/types/body.ws.d.ts +1 -1
  41. package/lib/types/bold.ws.d.ts +1 -1
  42. package/lib/types/box.ws.d.ts +1 -1
  43. package/lib/types/button.ws.d.ts +1 -1
  44. package/lib/types/checkbox.d.ts +1 -1
  45. package/lib/types/checkbox.ws.d.ts +1 -1
  46. package/lib/types/code-text.ws.d.ts +1 -1
  47. package/lib/types/form.ws.d.ts +1 -1
  48. package/lib/types/heading.ws.d.ts +1 -1
  49. package/lib/types/image.ws.d.ts +1 -1
  50. package/lib/types/input.d.ts +1 -4
  51. package/lib/types/input.ws.d.ts +1 -1
  52. package/lib/types/italic.ws.d.ts +1 -1
  53. package/lib/types/label.ws.d.ts +1 -1
  54. package/lib/types/link.ws.d.ts +1 -1
  55. package/lib/types/list-item.ws.d.ts +1 -1
  56. package/lib/types/list.ws.d.ts +1 -1
  57. package/lib/types/markdown-embed.d.ts +3 -3
  58. package/lib/types/option.d.ts +0 -1
  59. package/lib/types/paragraph.ws.d.ts +1 -1
  60. package/lib/types/radio-button.d.ts +1 -1
  61. package/lib/types/radio-button.ws.d.ts +1 -1
  62. package/lib/types/select.d.ts +0 -1
  63. package/lib/types/select.ws.d.ts +1 -1
  64. package/lib/types/separator.ws.d.ts +1 -1
  65. package/lib/types/span.ws.d.ts +1 -1
  66. package/lib/types/subscript.ws.d.ts +1 -1
  67. package/lib/types/superscript.ws.d.ts +1 -1
  68. package/lib/types/templates.d.ts +0 -12
  69. package/lib/types/text.ws.d.ts +1 -1
  70. package/lib/types/textarea.d.ts +0 -1
  71. package/lib/types/textarea.ws.d.ts +1 -1
  72. package/lib/types/time.ws.d.ts +1 -1
  73. package/lib/types/vimeo-play-button.ws.d.ts +1 -1
  74. package/lib/types/vimeo-preview-image.d.ts +21 -21
  75. package/lib/types/vimeo-spinner.ws.d.ts +1 -1
  76. package/lib/types/vimeo.ws.d.ts +1 -1
  77. package/lib/types/youtube.ws.d.ts +1 -1
  78. package/lib/vimeo-play-button.ws.js +8 -10
  79. package/lib/vimeo-spinner.ws.js +6 -8
  80. package/lib/vimeo.template.js +22 -21
  81. package/lib/vimeo.ws.js +6 -8
  82. package/lib/webhook-form.template.js +61 -22
  83. package/lib/youtube.template.js +16 -15
  84. package/lib/youtube.ws.js +4 -6
  85. package/package.json +7 -7
  86. package/lib/blockquote.template.js +0 -11
  87. package/lib/button.template.js +0 -11
  88. package/lib/checkbox.template.js +0 -14
  89. package/lib/heading.template.js +0 -11
  90. package/lib/label.template.js +0 -10
  91. package/lib/link.template.js +0 -11
  92. package/lib/list-item.template.js +0 -11
  93. package/lib/list.template.js +0 -15
  94. package/lib/paragraph.template.js +0 -11
  95. package/lib/radio-button.template.js +0 -14
  96. package/lib/select.template.js +0 -16
  97. package/lib/text.template.js +0 -11
  98. package/lib/types/blockquote.template.d.ts +0 -2
  99. package/lib/types/button.template.d.ts +0 -2
  100. package/lib/types/checkbox.template.d.ts +0 -2
  101. package/lib/types/heading.template.d.ts +0 -2
  102. package/lib/types/label.template.d.ts +0 -2
  103. package/lib/types/link.template.d.ts +0 -2
  104. package/lib/types/list-item.template.d.ts +0 -2
  105. package/lib/types/list.template.d.ts +0 -2
  106. package/lib/types/paragraph.template.d.ts +0 -2
  107. package/lib/types/radio-button.template.d.ts +0 -2
  108. package/lib/types/select.template.d.ts +0 -2
  109. package/lib/types/text.template.d.ts +0 -2
@@ -1,47 +1,43 @@
1
1
  export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponent<Omit<{
2
+ slot?: string | undefined | undefined;
2
3
  style?: import("react").CSSProperties | undefined;
3
- id?: string | undefined | undefined;
4
- width?: number | string | undefined | undefined;
5
- height?: number | string | undefined | undefined;
6
- children?: import("react").ReactNode;
7
4
  title?: string | undefined | undefined;
8
- property?: string | undefined | undefined;
9
- content?: string | undefined | undefined;
10
- resource?: string | undefined | undefined;
11
- color?: string | undefined | undefined;
12
- translate?: "yes" | "no" | undefined | undefined;
13
- hidden?: boolean | undefined | undefined;
14
- src?: string | undefined | undefined;
15
- slot?: string | undefined | undefined;
16
- defaultValue?: string | number | readonly string[] | undefined;
17
5
  key?: import("react").Key | null | undefined;
18
6
  defaultChecked?: boolean | undefined | undefined;
7
+ defaultValue?: string | number | readonly string[] | undefined;
19
8
  suppressContentEditableWarning?: boolean | undefined | undefined;
20
9
  suppressHydrationWarning?: boolean | undefined | undefined;
21
10
  accessKey?: string | undefined | undefined;
22
11
  autoFocus?: boolean | undefined | undefined;
23
12
  className?: string | undefined | undefined;
24
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
13
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
25
14
  contextMenu?: string | undefined | undefined;
26
15
  dir?: string | undefined | undefined;
27
16
  draggable?: (boolean | "true" | "false") | undefined;
17
+ hidden?: boolean | undefined | undefined;
18
+ id?: string | undefined | undefined;
28
19
  lang?: string | undefined | undefined;
29
20
  nonce?: string | undefined | undefined;
30
21
  spellCheck?: (boolean | "true" | "false") | undefined;
31
22
  tabIndex?: number | undefined | undefined;
23
+ translate?: "yes" | "no" | undefined | undefined;
32
24
  radioGroup?: string | undefined | undefined;
33
25
  role?: import("react").AriaRole | undefined;
34
26
  about?: string | undefined | undefined;
27
+ content?: string | undefined | undefined;
35
28
  datatype?: string | undefined | undefined;
36
29
  inlist?: any;
37
30
  prefix?: string | undefined | undefined;
31
+ property?: string | undefined | undefined;
38
32
  rel?: string | undefined | undefined;
33
+ resource?: string | undefined | undefined;
39
34
  rev?: string | undefined | undefined;
40
35
  typeof?: string | undefined | undefined;
41
36
  vocab?: string | undefined | undefined;
42
37
  autoCapitalize?: string | undefined | undefined;
43
38
  autoCorrect?: string | undefined | undefined;
44
39
  autoSave?: string | undefined | undefined;
40
+ color?: string | undefined | undefined;
45
41
  itemProp?: string | undefined | undefined;
46
42
  itemScope?: boolean | undefined | undefined;
47
43
  itemType?: string | undefined | undefined;
@@ -105,6 +101,7 @@ export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponen
105
101
  "aria-valuemin"?: number | undefined | undefined;
106
102
  "aria-valuenow"?: number | undefined | undefined;
107
103
  "aria-valuetext"?: string | undefined | undefined;
104
+ children?: import("react").ReactNode;
108
105
  dangerouslySetInnerHTML?: {
109
106
  __html: string | TrustedHTML;
110
107
  } | undefined | undefined;
@@ -268,17 +265,20 @@ export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponen
268
265
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
269
266
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
270
267
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
271
- quality?: number | undefined;
272
- sizes?: string | undefined | undefined;
273
- optimize?: boolean | undefined;
268
+ height?: number | string | undefined | undefined;
269
+ width?: number | string | undefined | undefined;
270
+ crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
271
+ useMap?: string | undefined | undefined;
272
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
273
+ alt?: string | undefined | undefined;
274
+ src?: string | undefined | undefined;
274
275
  loading?: "eager" | "lazy" | undefined | undefined;
275
276
  decoding?: "async" | "auto" | "sync" | undefined | undefined;
276
- alt?: string | undefined | undefined;
277
- crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
278
277
  fetchPriority?: "high" | "low" | "auto" | undefined;
279
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
278
+ sizes?: string | undefined | undefined;
280
279
  srcSet?: string | undefined | undefined;
281
- useMap?: string | undefined | undefined;
280
+ quality?: number | undefined;
281
+ optimize?: boolean | undefined;
282
282
  } & {
283
283
  $webstudio$canvasOnly$assetId?: string | undefined;
284
284
  } & import("react").RefAttributes<HTMLImageElement>, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
@@ -1,2 +1,2 @@
1
- import { type WsComponentMeta } from "@webstudio-is/sdk";
1
+ import type { WsComponentMeta } from "@webstudio-is/sdk";
2
2
  export declare const meta: WsComponentMeta;
@@ -1,2 +1,2 @@
1
- import { type WsComponentMeta } from "@webstudio-is/sdk";
1
+ import type { WsComponentMeta } from "@webstudio-is/sdk";
2
2
  export declare const meta: WsComponentMeta;
@@ -1,2 +1,2 @@
1
- import { type WsComponentMeta } from "@webstudio-is/sdk";
1
+ import type { WsComponentMeta } from "@webstudio-is/sdk";
2
2
  export declare const meta: WsComponentMeta;
@@ -1,20 +1,18 @@
1
- import { defaultStates as t } from "@webstudio-is/sdk";
2
- import { ButtonElementIcon as o } from "@webstudio-is/icons/svg";
3
- import { button as e } from "@webstudio-is/sdk/normalize.css";
4
- import { props as n } from "./__generated__/vimeo-play-button.props.js";
5
- const m = {
1
+ import { ButtonElementIcon as t } from "@webstudio-is/icons/svg";
2
+ import { button as o } from "@webstudio-is/sdk/normalize.css";
3
+ import { props as e } from "./__generated__/vimeo-play-button.props.js";
4
+ const c = {
6
5
  category: "hidden",
7
6
  label: "Play Button",
8
- icon: o,
9
- states: t,
7
+ icon: t,
10
8
  contentModel: {
11
9
  category: "none",
12
10
  children: ["instance"]
13
11
  },
14
- presetStyle: { button: e },
12
+ presetStyle: { button: o },
15
13
  initialProps: ["id", "class"],
16
- props: n
14
+ props: e
17
15
  };
18
16
  export {
19
- m as meta
17
+ c as meta
20
18
  };
@@ -1,20 +1,18 @@
1
- import { defaultStates as o } from "@webstudio-is/sdk";
2
- import { div as t } from "@webstudio-is/sdk/normalize.css";
1
+ import { div as o } from "@webstudio-is/sdk/normalize.css";
3
2
  import { BoxIcon as e } from "@webstudio-is/icons/svg";
4
- import { props as r } from "./__generated__/vimeo-spinner.props.js";
5
- const s = {
3
+ import { props as n } from "./__generated__/vimeo-spinner.props.js";
4
+ const c = {
6
5
  icon: e,
7
- states: o,
8
6
  category: "hidden",
9
7
  label: "Spinner",
10
8
  contentModel: {
11
9
  category: "none",
12
10
  children: ["instance"]
13
11
  },
14
- presetStyle: { div: t },
12
+ presetStyle: { div: o },
15
13
  initialProps: ["id", "class"],
16
- props: r
14
+ props: n
17
15
  };
18
16
  export {
19
- s as meta
17
+ c as meta
20
18
  };
@@ -1,23 +1,23 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { SpinnerIcon as r, PlayIcon as n } from "@webstudio-is/icons/svg";
3
- import { $ as e, css as o } from "@webstudio-is/template";
4
- const p = {
3
+ import { $ as t, css as i, ws as a } from "@webstudio-is/template";
4
+ const d = {
5
5
  category: "media",
6
6
  order: 1,
7
7
  description: "Add a video to your page that is hosted on Vimeo. Paste a Vimeo URL and configure the video in the Settings tab.",
8
- template: /* @__PURE__ */ i(
9
- e.Vimeo,
8
+ template: /* @__PURE__ */ o(
9
+ t.Vimeo,
10
10
  {
11
- "ws:style": o`
11
+ "ws:style": i`
12
12
  position: relative;
13
13
  aspect-ratio: 640/360;
14
14
  width: 100%;
15
15
  `,
16
16
  children: [
17
- /* @__PURE__ */ t(
18
- e.VimeoPreviewImage,
17
+ /* @__PURE__ */ e(
18
+ t.VimeoPreviewImage,
19
19
  {
20
- "ws:style": o`
20
+ "ws:style": i`
21
21
  position: absolute;
22
22
  object-fit: cover;
23
23
  object-position: center;
@@ -30,11 +30,11 @@ const p = {
30
30
  optimize: !0
31
31
  }
32
32
  ),
33
- /* @__PURE__ */ t(
34
- e.VimeoSpinner,
33
+ /* @__PURE__ */ e(
34
+ t.VimeoSpinner,
35
35
  {
36
36
  "ws:label": "Spinner",
37
- "ws:style": o`
37
+ "ws:style": i`
38
38
  position: absolute;
39
39
  top: 50%;
40
40
  left: 50%;
@@ -43,13 +43,13 @@ const p = {
43
43
  margin-top: -35px;
44
44
  margin-left: -35px;
45
45
  `,
46
- children: /* @__PURE__ */ t(e.HtmlEmbed, { "ws:label": "Spinner SVG", code: r })
46
+ children: /* @__PURE__ */ e(t.HtmlEmbed, { "ws:label": "Spinner SVG", code: r })
47
47
  }
48
48
  ),
49
- /* @__PURE__ */ t(
50
- e.VimeoPlayButton,
49
+ /* @__PURE__ */ e(
50
+ t.VimeoPlayButton,
51
51
  {
52
- "ws:style": o`
52
+ "ws:style": i`
53
53
  position: absolute;
54
54
  width: 140px;
55
55
  height: 80px;
@@ -70,16 +70,17 @@ const p = {
70
70
  }
71
71
  `,
72
72
  "aria-label": "Play button",
73
- children: /* @__PURE__ */ t(
74
- e.Box,
73
+ children: /* @__PURE__ */ e(
74
+ a.element,
75
75
  {
76
+ "ws:tag": "div",
76
77
  "ws:label": "Play Icon",
77
- "ws:style": o`
78
+ "ws:style": i`
78
79
  width: 60px;
79
80
  height: 60px;
80
81
  `,
81
82
  "aria-hidden": !0,
82
- children: /* @__PURE__ */ t(e.HtmlEmbed, { "ws:label": "Play SVG", code: n })
83
+ children: /* @__PURE__ */ e(t.HtmlEmbed, { "ws:label": "Play SVG", code: n })
83
84
  }
84
85
  )
85
86
  }
@@ -89,5 +90,5 @@ const p = {
89
90
  )
90
91
  };
91
92
  export {
92
- p as meta
93
+ d as meta
93
94
  };
package/lib/vimeo.ws.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import { VimeoIcon as o } from "@webstudio-is/icons/svg";
2
- import { defaultStates as t } from "@webstudio-is/sdk";
3
2
  import { div as e } from "@webstudio-is/sdk/normalize.css";
4
- import { props as i } from "./__generated__/vimeo.props.js";
5
- const r = [
3
+ import { props as t } from "./__generated__/vimeo.props.js";
4
+ const i = [
6
5
  "id",
7
6
  "className",
8
7
  "url",
@@ -20,18 +19,17 @@ const r = [
20
19
  "showControls",
21
20
  "controlsColor",
22
21
  "playsinline"
23
- ], m = {
22
+ ], s = {
24
23
  icon: o,
25
- states: t,
26
24
  contentModel: {
27
25
  category: "instance",
28
26
  children: ["instance"],
29
27
  descendants: ["VimeoSpinner", "VimeoPlayButton", "VimeoPreviewImage"]
30
28
  },
31
29
  presetStyle: { div: e },
32
- initialProps: r,
33
- props: i
30
+ initialProps: i,
31
+ props: t
34
32
  };
35
33
  export {
36
- m as meta
34
+ s as meta
37
35
  };
@@ -1,43 +1,82 @@
1
- import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
- import { $ as e, ActionValue as s, PlaceholderValue as o, Variable as i, expression as a } from "@webstudio-is/template";
3
- const n = new i("formState", "initial"), w = {
1
+ import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
+ import { $ as r, ActionValue as i, ws as e, PlaceholderValue as a, css as n, Variable as w, expression as l } from "@webstudio-is/template";
3
+ const s = new w("formState", "initial"), d = {
4
4
  category: "data",
5
5
  order: 1,
6
6
  description: "Collect user data and send it to any webhook.",
7
- template: /* @__PURE__ */ r(
8
- e.Form,
7
+ template: /* @__PURE__ */ o(
8
+ r.Form,
9
9
  {
10
- state: a`${n}`,
11
- onStateChange: new s(["state"], a`${n} = state`),
10
+ state: l`${s}`,
11
+ onStateChange: new i(["state"], l`${s} = state`),
12
12
  children: [
13
- /* @__PURE__ */ r(
14
- e.Box,
13
+ /* @__PURE__ */ o(
14
+ e.element,
15
15
  {
16
+ "ws:tag": "div",
16
17
  "ws:label": "Form Content",
17
- "ws:show": a`${n} === 'initial' || ${n} === 'error'`,
18
+ "ws:show": l`${s} === 'initial' || ${s} === 'error'`,
18
19
  children: [
19
- /* @__PURE__ */ t(e.Label, { children: new o("Name") }),
20
- /* @__PURE__ */ t(e.Input, { name: "name" }),
21
- /* @__PURE__ */ t(e.Label, { children: new o("Email") }),
22
- /* @__PURE__ */ t(e.Input, { name: "email" }),
23
- /* @__PURE__ */ t(e.Button, { children: new o("Submit") })
20
+ /* @__PURE__ */ t(
21
+ e.element,
22
+ {
23
+ "ws:tag": "label",
24
+ "ws:style": n`
25
+ display: block;
26
+ `,
27
+ children: new a("Name")
28
+ }
29
+ ),
30
+ /* @__PURE__ */ t(
31
+ e.element,
32
+ {
33
+ "ws:tag": "input",
34
+ "ws:style": n`
35
+ display: block;
36
+ `,
37
+ name: "name"
38
+ }
39
+ ),
40
+ /* @__PURE__ */ t(
41
+ e.element,
42
+ {
43
+ "ws:tag": "label",
44
+ "ws:style": n`
45
+ display: block;
46
+ `,
47
+ children: new a("Email")
48
+ }
49
+ ),
50
+ /* @__PURE__ */ t(
51
+ e.element,
52
+ {
53
+ "ws:tag": "input",
54
+ "ws:style": n`
55
+ display: block;
56
+ `,
57
+ name: "email"
58
+ }
59
+ ),
60
+ /* @__PURE__ */ t(e.element, { "ws:tag": "button", children: new a("Submit") })
24
61
  ]
25
62
  }
26
63
  ),
27
64
  /* @__PURE__ */ t(
28
- e.Box,
65
+ e.element,
29
66
  {
67
+ "ws:tag": "div",
30
68
  "ws:label": "Success Message",
31
- "ws:show": a`${n} === 'success'`,
32
- children: new o("Thank you for getting in touch!")
69
+ "ws:show": l`${s} === 'success'`,
70
+ children: new a("Thank you for getting in touch!")
33
71
  }
34
72
  ),
35
73
  /* @__PURE__ */ t(
36
- e.Box,
74
+ e.element,
37
75
  {
76
+ "ws:tag": "div",
38
77
  "ws:label": "Error Message",
39
- "ws:show": a`${n} === 'error'`,
40
- children: new o("Sorry, something went wrong.")
78
+ "ws:show": l`${s} === 'error'`,
79
+ children: new a("Sorry, something went wrong.")
41
80
  }
42
81
  )
43
82
  ]
@@ -45,5 +84,5 @@ const n = new i("formState", "initial"), w = {
45
84
  )
46
85
  };
47
86
  export {
48
- w as meta
87
+ d as meta
49
88
  };
@@ -1,13 +1,13 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import { SpinnerIcon as r, PlayIcon as l } from "@webstudio-is/icons/svg";
3
- import { $ as e, css as o } from "@webstudio-is/template";
4
- const p = {
3
+ import { $ as t, css as o, ws as a } from "@webstudio-is/template";
4
+ const d = {
5
5
  label: "YouTube",
6
6
  category: "media",
7
7
  order: 1,
8
8
  description: "Add a video to your page that is hosted on YouTube. Paste a YouTube URL and configure the video in the Settings tab.",
9
9
  template: /* @__PURE__ */ i(
10
- e.YouTube,
10
+ t.YouTube,
11
11
  {
12
12
  "ws:label": "YouTube",
13
13
  "ws:style": o`
@@ -16,8 +16,8 @@ const p = {
16
16
  width: 100%;
17
17
  `,
18
18
  children: [
19
- /* @__PURE__ */ t(
20
- e.VimeoPreviewImage,
19
+ /* @__PURE__ */ e(
20
+ t.VimeoPreviewImage,
21
21
  {
22
22
  "ws:label": "Preview Image",
23
23
  "ws:style": o`
@@ -33,8 +33,8 @@ const p = {
33
33
  optimize: !0
34
34
  }
35
35
  ),
36
- /* @__PURE__ */ t(
37
- e.VimeoSpinner,
36
+ /* @__PURE__ */ e(
37
+ t.VimeoSpinner,
38
38
  {
39
39
  "ws:label": "Spinner",
40
40
  "ws:style": o`
@@ -46,11 +46,11 @@ const p = {
46
46
  margin-top: -35px;
47
47
  margin-left: -35px;
48
48
  `,
49
- children: /* @__PURE__ */ t(e.HtmlEmbed, { "ws:label": "Spinner SVG", code: r })
49
+ children: /* @__PURE__ */ e(t.HtmlEmbed, { "ws:label": "Spinner SVG", code: r })
50
50
  }
51
51
  ),
52
- /* @__PURE__ */ t(
53
- e.VimeoPlayButton,
52
+ /* @__PURE__ */ e(
53
+ t.VimeoPlayButton,
54
54
  {
55
55
  "ws:label": "Play Button",
56
56
  "ws:style": o`
@@ -74,16 +74,17 @@ const p = {
74
74
  }
75
75
  `,
76
76
  "aria-label": "Play button",
77
- children: /* @__PURE__ */ t(
78
- e.Box,
77
+ children: /* @__PURE__ */ e(
78
+ a.element,
79
79
  {
80
+ "ws:tag": "div",
80
81
  "ws:label": "Play Icon",
81
82
  "ws:style": o`
82
83
  width: 60px;
83
84
  height: 60px;
84
85
  `,
85
86
  "aria-hidden": !0,
86
- children: /* @__PURE__ */ t(e.HtmlEmbed, { "ws:label": "Play SVG", code: l })
87
+ children: /* @__PURE__ */ e(t.HtmlEmbed, { "ws:label": "Play SVG", code: l })
87
88
  }
88
89
  )
89
90
  }
@@ -93,5 +94,5 @@ const p = {
93
94
  )
94
95
  };
95
96
  export {
96
- p as meta
97
+ d as meta
97
98
  };
package/lib/youtube.ws.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { YoutubeIcon as e } from "@webstudio-is/icons/svg";
2
- import { defaultStates as o } from "@webstudio-is/sdk";
3
- import { div as t } from "@webstudio-is/sdk/normalize.css";
2
+ import { div as o } from "@webstudio-is/sdk/normalize.css";
4
3
  import { props as i } from "./__generated__/youtube.props.js";
5
4
  const n = [
6
5
  "id",
@@ -30,18 +29,17 @@ const n = [
30
29
  "language",
31
30
  "color",
32
31
  "playlist"
33
- ], d = {
32
+ ], s = {
34
33
  icon: e,
35
- states: o,
36
34
  contentModel: {
37
35
  category: "instance",
38
36
  children: ["instance"],
39
37
  descendants: ["VimeoSpinner", "VimeoPlayButton", "VimeoPreviewImage"]
40
38
  },
41
- presetStyle: { div: t },
39
+ presetStyle: { div: o },
42
40
  initialProps: n,
43
41
  props: i
44
42
  };
45
43
  export {
46
- d as meta
44
+ s as meta
47
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-react",
3
- "version": "0.220.0",
3
+ "version": "0.222.0",
4
4
  "description": "Webstudio default library for react",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -44,10 +44,10 @@
44
44
  "colord": "^2.9.3",
45
45
  "micromark": "^4.0.2",
46
46
  "micromark-extension-gfm-table": "^2.1.1",
47
- "@webstudio-is/icons": "0.220.0",
48
- "@webstudio-is/image": "0.220.0",
49
- "@webstudio-is/react-sdk": "0.220.0",
50
- "@webstudio-is/sdk": "0.220.0"
47
+ "@webstudio-is/image": "0.222.0",
48
+ "@webstudio-is/icons": "0.222.0",
49
+ "@webstudio-is/react-sdk": "0.222.0",
50
+ "@webstudio-is/sdk": "0.222.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@testing-library/dom": "^10.4.0",
@@ -58,9 +58,9 @@
58
58
  "react": "18.3.0-canary-14898b6a9-20240318",
59
59
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
60
60
  "vitest": "^3.1.2",
61
- "@webstudio-is/generate-arg-types": "0.0.0",
62
61
  "@webstudio-is/sdk-cli": "0.94.0",
63
- "@webstudio-is/template": "0.220.0",
62
+ "@webstudio-is/template": "0.222.0",
63
+ "@webstudio-is/generate-arg-types": "0.0.0",
64
64
  "@webstudio-is/tsconfig": "1.0.7"
65
65
  },
66
66
  "scripts": {
@@ -1,11 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { $ as e } from "@webstudio-is/template";
3
- const a = {
4
- category: "typography",
5
- description: "Use to style a quote from an external source like an article or book.",
6
- order: 3,
7
- template: /* @__PURE__ */ o(e.Blockquote, {})
8
- };
9
- export {
10
- a as meta
11
- };
@@ -1,11 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { $ as o, PlaceholderValue as e } from "@webstudio-is/template";
3
- const n = {
4
- category: "forms",
5
- order: 2,
6
- description: "Use a button to submit forms or trigger actions within a page. Do not use a button to navigate users to another resource or another page - that’s what a link is used for.",
7
- template: /* @__PURE__ */ t(o.Button, { children: new e("Button text you can edit") })
8
- };
9
- export {
10
- n as meta
11
- };
@@ -1,14 +0,0 @@
1
- import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
- import { $ as e, PlaceholderValue as c } from "@webstudio-is/template";
3
- const l = {
4
- category: "forms",
5
- description: "Use within a form to allow your users to toggle between checked and not checked. Group checkboxes by matching their “Name” properties. Unlike radios, any number of checkboxes in a group can be checked.",
6
- order: 6,
7
- template: /* @__PURE__ */ r(e.Label, { "ws:label": "Checkbox Field", children: [
8
- /* @__PURE__ */ o(e.Checkbox, {}),
9
- /* @__PURE__ */ o(e.Text, { "ws:label": "Checkbox Label", "ws:tag": "span", children: new c("Checkbox") })
10
- ] })
11
- };
12
- export {
13
- l as meta
14
- };
@@ -1,11 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { $ as t } from "@webstudio-is/template";
3
- const n = {
4
- category: "typography",
5
- description: "Use HTML headings to structure and organize content. Use the Tag property in settings to change the heading level (h1-h6).",
6
- order: 1,
7
- template: /* @__PURE__ */ e(t.Heading, {})
8
- };
9
- export {
10
- n as meta
11
- };
@@ -1,10 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { $ as r, PlaceholderValue as o } from "@webstudio-is/template";
3
- const a = {
4
- category: "forms",
5
- order: 2,
6
- template: /* @__PURE__ */ e(r.Label, { children: new o("Form Label") })
7
- };
8
- export {
9
- a as meta
10
- };
@@ -1,11 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { $ as o } from "@webstudio-is/template";
3
- const n = {
4
- category: "general",
5
- description: "Use a link to send your users to another page, section, or resource. Configure links in the Settings panel.",
6
- order: 1,
7
- template: /* @__PURE__ */ e(o.Link, {})
8
- };
9
- export {
10
- n as meta
11
- };
@@ -1,11 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { $ as e } from "@webstudio-is/template";
3
- const i = {
4
- category: "typography",
5
- description: "Adds a new item to an existing list.",
6
- order: 5,
7
- template: /* @__PURE__ */ t(e.ListItem, {})
8
- };
9
- export {
10
- i as meta
11
- };
@@ -1,15 +0,0 @@
1
- import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
- import { $ as e, PlaceholderValue as i } from "@webstudio-is/template";
3
- const s = {
4
- category: "typography",
5
- description: "Groups content, like links in a menu or steps in a recipe.",
6
- order: 4,
7
- template: /* @__PURE__ */ n(e.List, { children: [
8
- /* @__PURE__ */ t(e.ListItem, { children: new i("List Item text you can edit") }),
9
- /* @__PURE__ */ t(e.ListItem, { children: new i("List Item text you can edit") }),
10
- /* @__PURE__ */ t(e.ListItem, { children: new i("List Item text you can edit") })
11
- ] })
12
- };
13
- export {
14
- s as meta
15
- };