@webstudio-is/sdk-components-react 0.214.0 → 0.216.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.
@@ -11,7 +11,6 @@ const o = {
11
11
  }
12
12
  ]
13
13
  }, d = {
14
- type: "control",
15
14
  icon: e,
16
15
  presetStyle: o,
17
16
  states: [
@@ -30,15 +30,18 @@ const p = {
30
30
  value: { type: "rgb", r: 238, g: 238, b: 238, alpha: 1 }
31
31
  }
32
32
  ]
33
- }, d = {
33
+ }, i = {
34
34
  category: "general",
35
- type: "embed",
36
35
  description: "Use this component when you want to display code as text on the page.",
37
36
  icon: e,
37
+ contentModel: {
38
+ category: "instance",
39
+ children: []
40
+ },
38
41
  states: t,
39
42
  presetStyle: p,
40
43
  order: 5
41
- }, n = {
44
+ }, s = {
42
45
  props: {
43
46
  ...r,
44
47
  code: {
@@ -50,6 +53,6 @@ const p = {
50
53
  initialProps: ["id", "className", "lang", "code"]
51
54
  };
52
55
  export {
53
- d as meta,
54
- n as propsMeta
56
+ i as meta,
57
+ s as propsMeta
55
58
  };
@@ -1,16 +1,14 @@
1
- import { ResourceIcon as e } from "@webstudio-is/icons/svg";
1
+ import { ResourceIcon as o } from "@webstudio-is/icons/svg";
2
2
  import "@webstudio-is/sdk";
3
- import { props as o } from "./__generated__/head-link.props.js";
3
+ import { props as r } from "./__generated__/head-link.props.js";
4
4
  const p = {
5
- category: "hidden",
6
- icon: e,
7
- type: "embed",
5
+ icon: o,
8
6
  contentModel: {
9
7
  category: "none",
10
- children: ["empty"]
8
+ children: []
11
9
  }
12
10
  }, c = {
13
- props: o,
11
+ props: r,
14
12
  initialProps: ["rel", "hrefLang", "href", "type", "as"]
15
13
  };
16
14
  export {
@@ -1,16 +1,14 @@
1
1
  import { WindowInfoIcon as o } from "@webstudio-is/icons/svg";
2
2
  import "@webstudio-is/sdk";
3
- import { props as t } from "./__generated__/head-meta.props.js";
3
+ import { props as n } from "./__generated__/head-meta.props.js";
4
4
  const p = {
5
- category: "hidden",
6
5
  icon: o,
7
- type: "embed",
8
6
  contentModel: {
9
7
  category: "none",
10
- children: ["empty"]
8
+ children: []
11
9
  }
12
10
  }, i = {
13
- props: t,
11
+ props: n,
14
12
  initialProps: ["name", "property", "content"]
15
13
  };
16
14
  export {
@@ -1,18 +1,17 @@
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 c = {
5
- category: "hidden",
4
+ const p = {
6
5
  icon: o,
7
6
  type: "container",
8
7
  contentModel: {
9
8
  category: "none",
10
9
  children: ["text"]
11
10
  }
12
- }, i = {
11
+ }, c = {
13
12
  props: t
14
13
  };
15
14
  export {
16
- c as meta,
17
- i as propsMeta
15
+ p as meta,
16
+ c as propsMeta
18
17
  };
package/lib/image.ws.js CHANGED
@@ -26,13 +26,12 @@ const a = {
26
26
  ]
27
27
  }, l = {
28
28
  category: "media",
29
- type: "embed",
30
29
  description: "Add an image asset to the page. Webstudio automatically converts images to WebP or AVIF format and makes them responsive for best performance.",
31
30
  icon: e,
32
31
  states: t,
33
32
  presetStyle: a,
34
33
  order: 0
35
- }, d = {
34
+ }, n = {
36
35
  props: {
37
36
  ...r,
38
37
  // Automatically generated props don't have the right control.
@@ -56,5 +55,5 @@ const a = {
56
55
  };
57
56
  export {
58
57
  l as meta,
59
- d as propsMeta
58
+ n as propsMeta
60
59
  };
package/lib/input.ws.js CHANGED
@@ -12,7 +12,6 @@ const r = {
12
12
  ]
13
13
  }, c = {
14
14
  category: "forms",
15
- type: "control",
16
15
  label: "Text Input",
17
16
  description: "A single-line text input for collecting string data from your users.",
18
17
  icon: e,
package/lib/option.ws.js CHANGED
@@ -16,7 +16,6 @@ const l = {
16
16
  ]
17
17
  }, r = {
18
18
  category: "hidden",
19
- type: "control",
20
19
  description: "An item within a drop-down menu that users can select as their chosen value.",
21
20
  icon: e,
22
21
  presetStyle: l,
@@ -11,7 +11,6 @@ const a = {
11
11
  }
12
12
  ]
13
13
  }, s = {
14
- type: "control",
15
14
  label: "Radio",
16
15
  icon: e,
17
16
  presetStyle: a,
@@ -26,11 +25,11 @@ const a = {
26
25
  //{ selector: ":read-only", label: "Read Only" },
27
26
  //{ selector: ":read-write", label: "Read Write" },
28
27
  ]
29
- }, n = {
28
+ }, m = {
30
29
  props: r,
31
30
  initialProps: ["id", "className", "name", "value", "required", "checked"]
32
31
  };
33
32
  export {
34
33
  s as meta,
35
- n as propsMeta
34
+ m as propsMeta
36
35
  };
@@ -32,7 +32,6 @@ const p = {
32
32
  ]
33
33
  }, n = {
34
34
  category: "general",
35
- type: "embed",
36
35
  description: "Used to visually divide sections of content, helping to improve readability and organization within a webpage.",
37
36
  icon: e,
38
37
  states: o,
@@ -12,14 +12,17 @@ const l = {
12
12
  value: { type: "keyword", value: "block" }
13
13
  }
14
14
  ]
15
- }, c = {
15
+ }, n = {
16
16
  category: "forms",
17
- type: "control",
18
17
  label: "Text Area",
19
18
  description: "A multi-line text input for collecting longer string data from your users.",
20
19
  icon: e,
21
20
  presetStyle: l,
22
21
  order: 4,
22
+ contentModel: {
23
+ category: "instance",
24
+ children: []
25
+ },
23
26
  states: [
24
27
  ...r,
25
28
  { selector: "::placeholder", label: "Placeholder" },
@@ -33,7 +36,7 @@ const l = {
33
36
  //{ selector: ":read-only", label: "Read Only" },
34
37
  //{ selector: ":read-write", label: "Read Write" },
35
38
  ]
36
- }, n = {
39
+ }, p = {
37
40
  props: t,
38
41
  initialProps: [
39
42
  "id",
@@ -46,6 +49,6 @@ const l = {
46
49
  ]
47
50
  };
48
51
  export {
49
- c as meta,
50
- n as propsMeta
52
+ n as meta,
53
+ p as propsMeta
51
54
  };
package/lib/video.ws.js CHANGED
@@ -1,9 +1,12 @@
1
1
  import { VideoIcon as o } from "@webstudio-is/icons/svg";
2
2
  import "@webstudio-is/sdk";
3
3
  import { props as t } from "./__generated__/video.props.js";
4
- const r = {
5
- type: "control",
4
+ const p = {
6
5
  icon: o,
6
+ contentModel: {
7
+ category: "instance",
8
+ children: []
9
+ },
7
10
  presetStyle: {
8
11
  video: [
9
12
  {
@@ -12,7 +15,7 @@ const r = {
12
15
  }
13
16
  ]
14
17
  }
15
- }, a = {
18
+ }, n = {
16
19
  props: t,
17
20
  initialProps: [
18
21
  "id",
@@ -29,6 +32,6 @@ const r = {
29
32
  ]
30
33
  };
31
34
  export {
32
- r as meta,
33
- a as propsMeta
35
+ p as meta,
36
+ n as propsMeta
34
37
  };
@@ -1,12 +1,12 @@
1
1
  import { meta as e, propsMeta as o } from "./image.ws.js";
2
2
  import { props as r } from "./__generated__/vimeo-preview-image.props.js";
3
- const a = {
3
+ const p = {
4
4
  ...e,
5
5
  category: "hidden",
6
6
  label: "Preview Image",
7
7
  contentModel: {
8
8
  category: "none",
9
- children: ["empty"]
9
+ children: []
10
10
  }
11
11
  }, i = {
12
12
  props: {
@@ -22,6 +22,6 @@ const a = {
22
22
  initialProps: o.initialProps
23
23
  };
24
24
  export {
25
- a as meta,
25
+ p as meta,
26
26
  i as propsMeta
27
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-react",
3
- "version": "0.214.0",
3
+ "version": "0.216.0",
4
4
  "description": "Webstudio default library for react",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -49,10 +49,10 @@
49
49
  "colord": "^2.9.3",
50
50
  "micromark": "^4.0.2",
51
51
  "micromark-extension-gfm-table": "^2.1.1",
52
- "@webstudio-is/icons": "0.214.0",
53
- "@webstudio-is/react-sdk": "0.214.0",
54
- "@webstudio-is/image": "0.214.0",
55
- "@webstudio-is/sdk": "0.214.0"
52
+ "@webstudio-is/icons": "0.216.0",
53
+ "@webstudio-is/image": "0.216.0",
54
+ "@webstudio-is/react-sdk": "0.216.0",
55
+ "@webstudio-is/sdk": "0.216.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@testing-library/dom": "^10.4.0",
@@ -63,9 +63,9 @@
63
63
  "react": "18.3.0-canary-14898b6a9-20240318",
64
64
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
65
65
  "vitest": "^3.0.8",
66
- "@webstudio-is/sdk-cli": "0.94.0",
67
66
  "@webstudio-is/generate-arg-types": "0.0.0",
68
- "@webstudio-is/template": "0.214.0",
67
+ "@webstudio-is/template": "0.216.0",
68
+ "@webstudio-is/sdk-cli": "0.94.0",
69
69
  "@webstudio-is/tsconfig": "1.0.7"
70
70
  },
71
71
  "scripts": {