@webstudio-is/sdk-components-react 0.210.0 → 0.213.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 (42) hide show
  1. package/lib/__generated__/box.props.js +1 -19
  2. package/lib/__generated__/heading.props.js +1 -8
  3. package/lib/__generated__/text.props.js +1 -8
  4. package/lib/__generated__/video.props.js +587 -0
  5. package/lib/box.js +9 -6
  6. package/lib/box.ws.js +38 -18
  7. package/lib/checkbox.template.js +1 -1
  8. package/lib/components.js +6 -4
  9. package/lib/head-link.ws.js +9 -9
  10. package/lib/head-meta.ws.js +3 -3
  11. package/lib/head-slot.ws.js +6 -12
  12. package/lib/head-title.ws.js +5 -5
  13. package/lib/heading.js +9 -6
  14. package/lib/heading.ws.js +22 -14
  15. package/lib/html-embed.ws.js +23 -18
  16. package/lib/markdown-embed.ws.js +12 -7
  17. package/lib/metas.js +6 -4
  18. package/lib/props.js +4 -2
  19. package/lib/radio-button.template.js +1 -1
  20. package/lib/text.js +9 -7
  21. package/lib/text.ws.js +23 -15
  22. package/lib/types/__generated__/video.props.d.ts +2 -0
  23. package/lib/types/box.d.ts +2 -3
  24. package/lib/types/components.d.ts +1 -0
  25. package/lib/types/heading.d.ts +1 -2
  26. package/lib/types/html-embed.ws.d.ts +1 -1
  27. package/lib/types/link.d.ts +1 -1
  28. package/lib/types/markdown-embed.ws.d.ts +1 -1
  29. package/lib/types/metas.d.ts +1 -0
  30. package/lib/types/props.d.ts +1 -0
  31. package/lib/types/text.d.ts +2 -3
  32. package/lib/types/video.d.ts +7 -0
  33. package/lib/types/video.ws.d.ts +3 -0
  34. package/lib/video.js +46 -0
  35. package/lib/video.ws.js +34 -0
  36. package/lib/vimeo-play-button.ws.js +10 -16
  37. package/lib/vimeo-preview-image.ws.js +7 -7
  38. package/lib/vimeo-spinner.ws.js +13 -13
  39. package/lib/vimeo.ws.js +20 -15
  40. package/lib/youtube.js +115 -101
  41. package/lib/youtube.ws.js +24 -19
  42. package/package.json +9 -8
package/lib/box.ws.js CHANGED
@@ -1,31 +1,51 @@
1
1
  import { BoxIcon as t } from "@webstudio-is/icons/svg";
2
2
  import { defaultStates as e } from "@webstudio-is/sdk";
3
- import { div as o, address as r, article as a, aside as i, figure as n, footer as s, header as c, main as p, nav as d, section as m } from "@webstudio-is/sdk/normalize.css";
3
+ import { div as r, address as o, article as a, aside as i, figure as s, footer as n, header as p, main as c, nav as d, section as m } from "@webstudio-is/sdk/normalize.css";
4
4
  import { props as f } from "./__generated__/box.props.js";
5
- const g = {
6
- div: o,
7
- address: r,
8
- article: a,
9
- aside: i,
10
- figure: n,
11
- footer: s,
12
- header: c,
13
- main: p,
14
- nav: d,
15
- section: m
16
- }, v = {
5
+ const v = {
17
6
  category: "general",
18
7
  type: "container",
19
8
  description: "A container for content. By default this is a Div, but the tag can be changed in settings.",
20
9
  icon: t,
21
10
  states: e,
22
- presetStyle: g,
11
+ presetStyle: {
12
+ div: r,
13
+ address: o,
14
+ article: a,
15
+ aside: i,
16
+ figure: s,
17
+ footer: n,
18
+ header: p,
19
+ main: c,
20
+ nav: d,
21
+ section: m
22
+ },
23
23
  order: 0
24
- }, b = {
25
- props: f,
26
- initialProps: ["id", "className", "tag"]
24
+ }, y = {
25
+ props: {
26
+ ...f,
27
+ tag: {
28
+ required: !0,
29
+ control: "tag",
30
+ type: "string",
31
+ options: [
32
+ "div",
33
+ "header",
34
+ "footer",
35
+ "nav",
36
+ "main",
37
+ "section",
38
+ "article",
39
+ "aside",
40
+ "address",
41
+ "figure",
42
+ "span"
43
+ ]
44
+ }
45
+ },
46
+ initialProps: ["tag", "id", "className"]
27
47
  };
28
48
  export {
29
49
  v as meta,
30
- b as propsMeta
50
+ y as propsMeta
31
51
  };
@@ -6,7 +6,7 @@ const l = {
6
6
  order: 6,
7
7
  template: /* @__PURE__ */ r(e.Label, { "ws:label": "Checkbox Field", children: [
8
8
  /* @__PURE__ */ o(e.Checkbox, {}),
9
- /* @__PURE__ */ o(e.Text, { "ws:label": "Checkbox Label", tag: "span", children: new c("Checkbox") })
9
+ /* @__PURE__ */ o(e.Text, { "ws:label": "Checkbox Label", "ws:tag": "span", children: new c("Checkbox") })
10
10
  ] })
11
11
  };
12
12
  export {
package/lib/components.js CHANGED
@@ -10,7 +10,7 @@ import { Paragraph as c } from "./paragraph.js";
10
10
  import { Link as B, Link as L } from "./link.js";
11
11
  import { Span as g } from "./span.js";
12
12
  import { Bold as I } from "./bold.js";
13
- import { Italic as V } from "./italic.js";
13
+ import { Italic as h } from "./italic.js";
14
14
  import { Superscript as R } from "./superscript.js";
15
15
  import { Subscript as y } from "./subscript.js";
16
16
  import { Button as E } from "./button.js";
@@ -36,11 +36,12 @@ import { XmlNode as co } from "./xml-node.js";
36
36
  import { XmlTime as Bo } from "./xml-time.js";
37
37
  import { Time as Ho } from "./time.js";
38
38
  import { Select as Fo } from "./select.js";
39
- import { Option as ho } from "./option.js";
39
+ import { Option as Vo } from "./option.js";
40
40
  import { HeadSlot as Po } from "./head-slot.js";
41
41
  import { HeadLink as wo } from "./head-link.js";
42
42
  import { HeadMeta as Co } from "./head-meta.js";
43
43
  import { HeadTitle as Mo } from "./head-title.js";
44
+ import { Video as qo } from "./video.js";
44
45
  export {
45
46
  z as Blockquote,
46
47
  n as Body,
@@ -59,13 +60,13 @@ export {
59
60
  x as HtmlEmbed,
60
61
  Y as Image,
61
62
  X as Input,
62
- V as Italic,
63
+ h as Italic,
63
64
  $ as Label,
64
65
  B as Link,
65
66
  D as List,
66
67
  J as ListItem,
67
68
  a as MarkdownEmbed,
68
- ho as Option,
69
+ Vo as Option,
69
70
  c as Paragraph,
70
71
  to as RadioButton,
71
72
  O as RemixForm,
@@ -79,6 +80,7 @@ export {
79
80
  k as Text,
80
81
  ro as Textarea,
81
82
  Ho as Time,
83
+ qo as Video,
82
84
  fo as Vimeo,
83
85
  ko as VimeoPlayButton,
84
86
  lo as VimeoPreviewImage,
@@ -1,19 +1,19 @@
1
- import { ResourceIcon as o } from "@webstudio-is/icons/svg";
1
+ import { ResourceIcon as e } from "@webstudio-is/icons/svg";
2
2
  import "@webstudio-is/sdk";
3
- import { props as e } from "./__generated__/head-link.props.js";
3
+ import { props as o } from "./__generated__/head-link.props.js";
4
4
  const p = {
5
5
  category: "hidden",
6
- icon: o,
6
+ icon: e,
7
7
  type: "embed",
8
- constraints: {
9
- relation: "parent",
10
- component: { $eq: "HeadSlot" }
8
+ contentModel: {
9
+ category: "none",
10
+ children: ["empty"]
11
11
  }
12
- }, a = {
13
- props: e,
12
+ }, c = {
13
+ props: o,
14
14
  initialProps: ["rel", "hrefLang", "href", "type", "as"]
15
15
  };
16
16
  export {
17
17
  p as meta,
18
- a as propsMeta
18
+ c as propsMeta
19
19
  };
@@ -5,9 +5,9 @@ const p = {
5
5
  category: "hidden",
6
6
  icon: o,
7
7
  type: "embed",
8
- constraints: {
9
- relation: "parent",
10
- component: { $eq: "HeadSlot" }
8
+ contentModel: {
9
+ category: "none",
10
+ children: ["empty"]
11
11
  }
12
12
  }, i = {
13
13
  props: t,
@@ -1,20 +1,14 @@
1
- import { HeaderIcon as o } from "@webstudio-is/icons/svg";
1
+ import { HeaderIcon as e } from "@webstudio-is/icons/svg";
2
2
  import "@webstudio-is/sdk";
3
3
  import { props as t } from "./__generated__/head.props.js";
4
4
  const r = {
5
- icon: o,
5
+ icon: e,
6
6
  type: "container",
7
7
  description: "Inserts children into the head of the document",
8
- constraints: [
9
- {
10
- relation: "ancestor",
11
- component: { $nin: ["HeadSlot"] }
12
- },
13
- {
14
- relation: "child",
15
- component: { $in: ["HeadLink", "HeadMeta", "HeadTitle"] }
16
- }
17
- ]
8
+ contentModel: {
9
+ category: "instance",
10
+ children: ["HeadLink", "HeadMeta", "HeadTitle"]
11
+ }
18
12
  }, a = {
19
13
  props: t,
20
14
  initialProps: []
@@ -1,18 +1,18 @@
1
1
  import { WindowTitleIcon as o } from "@webstudio-is/icons/svg";
2
2
  import "@webstudio-is/sdk";
3
3
  import { props as t } from "./__generated__/head-title.props.js";
4
- const p = {
4
+ const c = {
5
5
  category: "hidden",
6
6
  icon: o,
7
7
  type: "container",
8
- constraints: {
9
- relation: "parent",
10
- component: { $eq: "HeadSlot" }
8
+ contentModel: {
9
+ category: "none",
10
+ children: ["text"]
11
11
  }
12
12
  }, i = {
13
13
  props: t
14
14
  };
15
15
  export {
16
- p as meta,
16
+ c as meta,
17
17
  i as propsMeta
18
18
  };
package/lib/heading.js CHANGED
@@ -1,9 +1,12 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as n } from "react";
3
- const d = "h1", f = n(
4
- ({ tag: a = d, children: o, ...r }, t) => /* @__PURE__ */ e(a, { ...r, ref: t, children: o })
1
+ import { forwardRef as o, createElement as g } from "react";
2
+ import { getTagFromProps as m } from "@webstudio-is/sdk/runtime";
3
+ const n = "h1", d = o(
4
+ ({ tag: e, ...t }, a) => {
5
+ const r = m(t) ?? e ?? n;
6
+ return g(r, { ...t, ref: a });
7
+ }
5
8
  );
6
- f.displayName = "Heading";
9
+ d.displayName = "Heading";
7
10
  export {
8
- f as Heading
11
+ d as Heading
9
12
  };
package/lib/heading.ws.js CHANGED
@@ -1,25 +1,33 @@
1
1
  import { HeadingIcon as t } from "@webstudio-is/icons/svg";
2
2
  import { defaultStates as o } from "@webstudio-is/sdk";
3
- import { h1 as e, h2 as r, h3 as a, h4 as p, h5 as i, h6 as s } from "@webstudio-is/sdk/normalize.css";
4
- import { props as m } from "./__generated__/heading.props.js";
5
- const n = {
6
- h1: e,
7
- h2: r,
8
- h3: a,
9
- h4: p,
10
- h5: i,
11
- h6: s
12
- }, f = {
3
+ import { h1 as r, h2 as e, h3 as p, h4 as a, h5 as i, h6 as s } from "@webstudio-is/sdk/normalize.css";
4
+ import { props as h } from "./__generated__/heading.props.js";
5
+ const d = {
13
6
  type: "container",
14
7
  placeholder: "Heading",
15
8
  icon: t,
16
9
  states: o,
17
- presetStyle: n
10
+ presetStyle: {
11
+ h1: r,
12
+ h2: e,
13
+ h3: p,
14
+ h4: a,
15
+ h5: i,
16
+ h6: s
17
+ }
18
18
  }, g = {
19
- props: m,
20
- initialProps: ["id", "className", "tag"]
19
+ props: {
20
+ ...h,
21
+ tag: {
22
+ required: !0,
23
+ control: "tag",
24
+ type: "string",
25
+ options: ["h1", "h2", "h3", "h4", "h5", "h6"]
26
+ }
27
+ },
28
+ initialProps: ["tag", "id", "className"]
21
29
  };
22
30
  export {
23
- f as meta,
31
+ d as meta,
24
32
  g as propsMeta
25
33
  };
@@ -1,25 +1,30 @@
1
1
  import { EmbedIcon as t } from "@webstudio-is/icons/svg";
2
+ import { descendantComponent as n } from "@webstudio-is/sdk";
2
3
  import { props as e } from "./__generated__/html-embed.props.js";
3
- const i = {
4
- div: [
5
- {
6
- property: "display",
7
- value: { type: "keyword", value: "contents" }
8
- },
9
- {
10
- property: "white-space-collapse",
11
- value: { type: "keyword", value: "collapse" }
12
- }
13
- ]
14
- }, a = {
4
+ const r = {
15
5
  category: "general",
16
- type: "embed",
6
+ type: "container",
17
7
  label: "HTML Embed",
18
8
  description: "Used to add HTML code to the page, such as an SVG or script.",
19
9
  icon: t,
20
- presetStyle: i,
21
- order: 2
22
- }, s = {
10
+ order: 2,
11
+ contentModel: {
12
+ category: "instance",
13
+ children: [n]
14
+ },
15
+ presetStyle: {
16
+ div: [
17
+ {
18
+ property: "display",
19
+ value: { type: "keyword", value: "contents" }
20
+ },
21
+ {
22
+ property: "white-space-collapse",
23
+ value: { type: "keyword", value: "collapse" }
24
+ }
25
+ ]
26
+ }
27
+ }, c = {
23
28
  props: {
24
29
  ...e,
25
30
  clientOnly: {
@@ -41,6 +46,6 @@ const i = {
41
46
  initialProps: ["className", "clientOnly", "executeScriptOnCanvas"]
42
47
  };
43
48
  export {
44
- a as meta,
45
- s as propsMeta
49
+ r as meta,
50
+ c as propsMeta
46
51
  };
@@ -1,8 +1,13 @@
1
1
  import { MarkdownEmbedIcon as e } from "@webstudio-is/icons/svg";
2
- import { props as o } from "./__generated__/markdown-embed.props.js";
3
- const t = {
4
- type: "embed",
2
+ import { descendantComponent as o } from "@webstudio-is/sdk";
3
+ import { props as t } from "./__generated__/markdown-embed.props.js";
4
+ const a = {
5
+ type: "container",
5
6
  icon: e,
7
+ contentModel: {
8
+ category: "instance",
9
+ children: [o]
10
+ },
6
11
  presetStyle: {
7
12
  div: [
8
13
  {
@@ -15,9 +20,9 @@ const t = {
15
20
  }
16
21
  ]
17
22
  }
18
- }, a = {
23
+ }, c = {
19
24
  props: {
20
- ...o,
25
+ ...t,
21
26
  code: {
22
27
  required: !0,
23
28
  control: "code",
@@ -28,6 +33,6 @@ const t = {
28
33
  initialProps: ["className"]
29
34
  };
30
35
  export {
31
- t as meta,
32
- a as propsMeta
36
+ a as meta,
37
+ c as propsMeta
33
38
  };
package/lib/metas.js CHANGED
@@ -3,7 +3,7 @@ import { meta as m } from "./fragment.ws.js";
3
3
  import { meta as p } from "./html-embed.ws.js";
4
4
  import { meta as s } from "./markdown-embed.ws.js";
5
5
  import { meta as i } from "./body.ws.js";
6
- import { meta as d } from "./box.ws.js";
6
+ import { meta as n } from "./box.ws.js";
7
7
  import { meta as u } from "./text.ws.js";
8
8
  import { meta as T } from "./heading.ws.js";
9
9
  import { meta as B } from "./paragraph.ws.js";
@@ -30,7 +30,7 @@ import { meta as me } from "./radio-button.ws.js";
30
30
  import { meta as pe } from "./checkbox.ws.js";
31
31
  import { meta as se } from "./vimeo.ws.js";
32
32
  import { meta as ie } from "./youtube.ws.js";
33
- import { meta as de } from "./vimeo-preview-image.ws.js";
33
+ import { meta as ne } from "./vimeo-preview-image.ws.js";
34
34
  import { meta as ue } from "./vimeo-play-button.ws.js";
35
35
  import { meta as Te } from "./vimeo-spinner.ws.js";
36
36
  import { meta as Be } from "./xml-node.ws.js";
@@ -42,11 +42,12 @@ import { meta as Pe } from "./head-slot.ws.js";
42
42
  import { meta as we } from "./head-link.ws.js";
43
43
  import { meta as Ce } from "./head-meta.ws.js";
44
44
  import { meta as Me } from "./head-title.ws.js";
45
+ import { meta as qe } from "./video.ws.js";
45
46
  export {
46
47
  D as Blockquote,
47
48
  i as Body,
48
49
  h as Bold,
49
- d as Box,
50
+ n as Box,
50
51
  M as Button,
51
52
  pe as Checkbox,
52
53
  _ as CodeText,
@@ -80,9 +81,10 @@ export {
80
81
  u as Text,
81
82
  oe as Textarea,
82
83
  Le as Time,
84
+ qe as Video,
83
85
  se as Vimeo,
84
86
  ue as VimeoPlayButton,
85
- de as VimeoPreviewImage,
87
+ ne as VimeoPreviewImage,
86
88
  Te as VimeoSpinner,
87
89
  Be as XmlNode,
88
90
  ke as XmlTime,
package/lib/props.js CHANGED
@@ -3,7 +3,7 @@ import { propsMeta as t } from "./fragment.ws.js";
3
3
  import { propsMeta as s } from "./html-embed.ws.js";
4
4
  import { propsMeta as x } from "./markdown-embed.ws.js";
5
5
  import { propsMeta as f } from "./body.ws.js";
6
- import { propsMeta as n } from "./box.ws.js";
6
+ import { propsMeta as d } from "./box.ws.js";
7
7
  import { propsMeta as l } from "./text.ws.js";
8
8
  import { propsMeta as S } from "./heading.ws.js";
9
9
  import { propsMeta as c } from "./paragraph.ws.js";
@@ -42,11 +42,12 @@ import { propsMeta as Po } from "./head-slot.ws.js";
42
42
  import { propsMeta as wo } from "./head-link.ws.js";
43
43
  import { propsMeta as Co } from "./head-meta.ws.js";
44
44
  import { propsMeta as Xo } from "./head-title.ws.js";
45
+ import { propsMeta as vo } from "./video.ws.js";
45
46
  export {
46
47
  D as Blockquote,
47
48
  f as Body,
48
49
  V as Bold,
49
- n as Box,
50
+ d as Box,
50
51
  E as Button,
51
52
  so as Checkbox,
52
53
  _ as CodeText,
@@ -80,6 +81,7 @@ export {
80
81
  l as Text,
81
82
  po as Textarea,
82
83
  Lo as Time,
84
+ vo as Video,
83
85
  xo as Vimeo,
84
86
  uo as VimeoPlayButton,
85
87
  no as VimeoPreviewImage,
@@ -6,7 +6,7 @@ const r = {
6
6
  order: 5,
7
7
  template: /* @__PURE__ */ t(e.Label, { "ws:label": "Radio Field", children: [
8
8
  /* @__PURE__ */ o(e.RadioButton, {}),
9
- /* @__PURE__ */ o(e.Text, { "ws:label": "Radio Label", tag: "span", children: new a("Radio") })
9
+ /* @__PURE__ */ o(e.Text, { "ws:label": "Radio Label", "ws:tag": "span", children: new a("Radio") })
10
10
  ] })
11
11
  };
12
12
  export {
package/lib/text.js CHANGED
@@ -1,10 +1,12 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as f } from "react";
3
- const m = "div", s = f(
4
- ({ tag: t = m, children: o, ...r }, a) => /* @__PURE__ */ e(t, { ...r, ref: a, children: o })
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: e, ...t }, r) => {
5
+ const o = f(t) ?? e ?? g;
6
+ return m(o, { ...t, ref: r });
7
+ }
5
8
  );
6
- s.displayName = "Text";
9
+ n.displayName = "Text";
7
10
  export {
8
- s as Text,
9
- m as defaultTag
11
+ n as Text
10
12
  };
package/lib/text.ws.js CHANGED
@@ -2,24 +2,32 @@ import { TextIcon as t } from "@webstudio-is/icons/svg";
2
2
  import { defaultStates as e } from "@webstudio-is/sdk";
3
3
  import { div as o } from "@webstudio-is/sdk/normalize.css";
4
4
  import { props as i } from "./__generated__/text.props.js";
5
- const r = {
6
- div: [
7
- ...o,
8
- {
9
- property: "min-height",
10
- value: { type: "unit", unit: "em", value: 1 }
11
- }
12
- ]
13
- }, n = {
5
+ const s = {
14
6
  type: "container",
15
7
  icon: t,
16
8
  states: e,
17
- presetStyle: r
18
- }, c = {
19
- props: i,
20
- initialProps: ["id", "className", "tag"]
9
+ presetStyle: {
10
+ div: [
11
+ ...o,
12
+ {
13
+ property: "min-height",
14
+ value: { type: "unit", unit: "em", value: 1 }
15
+ }
16
+ ]
17
+ }
18
+ }, m = {
19
+ props: {
20
+ ...i,
21
+ tag: {
22
+ required: !0,
23
+ control: "tag",
24
+ type: "string",
25
+ options: ["div", "cite", "figcaption", "span"]
26
+ }
27
+ },
28
+ initialProps: ["tag", "id", "className"]
21
29
  };
22
30
  export {
23
- n as meta,
24
- c as propsMeta
31
+ s as meta,
32
+ m as propsMeta
25
33
  };
@@ -0,0 +1,2 @@
1
+ import type { PropMeta } from "@webstudio-is/sdk";
2
+ export declare const props: Record<string, PropMeta>;
@@ -1,8 +1,7 @@
1
1
  import { type ComponentProps } from "react";
2
- export declare const defaultTag = "div";
2
+ declare const defaultTag = "div";
3
3
  type Props = ComponentProps<typeof defaultTag> & {
4
- /** Use this property to change the HTML tag of this element to semantically structure and describe the content of a webpage. This can be important for accessibility tools and search engine optimization. */
5
- tag?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure";
4
+ tag?: string;
6
5
  };
7
6
  export declare const Box: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
7
  export {};
@@ -42,3 +42,4 @@ export { HeadSlot } from "./head-slot";
42
42
  export { HeadLink } from "./head-link";
43
43
  export { HeadMeta } from "./head-meta";
44
44
  export { HeadTitle } from "./head-title";
45
+ export { Video } from "./video";
@@ -1,8 +1,7 @@
1
1
  import { type ComponentProps } from "react";
2
2
  declare const defaultTag = "h1";
3
3
  type Props = ComponentProps<typeof defaultTag> & {
4
- /** Use HTML heading levels (h1-h6) to structure content hierarchically, with h1 as the main title and subsequent levels representing sub-sections. Maintain a logical order and avoid skipping levels to ensure consistent and meaningful organization. */
5
- tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
4
+ tag?: string;
6
5
  };
7
6
  export declare const Heading: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
8
7
  export {};
@@ -1,3 +1,3 @@
1
- import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
1
+ import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/sdk";
2
2
  export declare const meta: WsComponentMeta;
3
3
  export declare const propsMeta: WsComponentPropsMeta;
@@ -1,5 +1,5 @@
1
1
  export declare const defaultTag = "a";
2
- export declare const Link: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "target" | "download"> & {
2
+ export declare const Link: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "download" | "target"> & {
3
3
  target?: "_self" | "_blank" | "_parent" | "_top";
4
4
  download?: boolean;
5
5
  prefetch?: "none" | "intent" | "render" | "viewport";
@@ -1,3 +1,3 @@
1
- import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
1
+ import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/sdk";
2
2
  export declare const meta: WsComponentMeta;
3
3
  export declare const propsMeta: WsComponentPropsMeta;
@@ -42,3 +42,4 @@ export { meta as HeadSlot } from "./head-slot.ws";
42
42
  export { meta as HeadLink } from "./head-link.ws";
43
43
  export { meta as HeadMeta } from "./head-meta.ws";
44
44
  export { meta as HeadTitle } from "./head-title.ws";
45
+ export { meta as Video } from "./video.ws";
@@ -42,3 +42,4 @@ export { propsMeta as HeadSlot } from "./head-slot.ws";
42
42
  export { propsMeta as HeadLink } from "./head-link.ws";
43
43
  export { propsMeta as HeadMeta } from "./head-meta.ws";
44
44
  export { propsMeta as HeadTitle } from "./head-title.ws";
45
+ export { propsMeta as Video } from "./video.ws";
@@ -1,8 +1,7 @@
1
1
  import { type ComponentProps } from "react";
2
- export declare const defaultTag = "div";
2
+ declare const defaultTag = "div";
3
3
  type Props = ComponentProps<typeof defaultTag> & {
4
- /** Use this property to change the HTML tag of this element to semantically structure and describe the content of a webpage. This can be important for accessibility tools and search engine optimization. */
5
- tag?: "div" | "span" | "figcaption" | "cite";
4
+ tag?: string;
6
5
  };
7
6
  export declare const Text: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
7
  export {};
@@ -0,0 +1,7 @@
1
+ import type { Atom } from "nanostores";
2
+ export declare const defaultTag = "video";
3
+ export declare const Video: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLVideoElement> & import("react").VideoHTMLAttributes<HTMLVideoElement> & {
4
+ $progress?: Atom<number | undefined>;
5
+ $visible?: Atom<boolean>;
6
+ $timeline?: boolean;
7
+ }, "ref"> & import("react").RefAttributes<HTMLVideoElement>>;
@@ -0,0 +1,3 @@
1
+ import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/sdk";
2
+ export declare const meta: WsComponentMeta;
3
+ export declare const propsMeta: WsComponentPropsMeta;