@webstudio-is/sdk-components-react 0.203.0 → 0.205.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.
@@ -50,6 +50,7 @@ const r = {
50
50
  ]
51
51
  }, i = {
52
52
  type: "container",
53
+ placeholder: "Blockquote",
53
54
  icon: t,
54
55
  states: e,
55
56
  presetStyle: r
@@ -1,16 +1,16 @@
1
1
  import { ResourceIcon as o } from "@webstudio-is/icons/svg";
2
2
  import "@webstudio-is/sdk";
3
- import { props as t } from "./__generated__/head-link.props.js";
3
+ import { props as e } from "./__generated__/head-link.props.js";
4
4
  const p = {
5
5
  category: "hidden",
6
6
  icon: o,
7
- type: "container",
7
+ type: "embed",
8
8
  constraints: {
9
9
  relation: "parent",
10
10
  component: { $eq: "HeadSlot" }
11
11
  }
12
12
  }, a = {
13
- props: t,
13
+ props: e,
14
14
  initialProps: ["rel", "hrefLang", "href", "type", "as"]
15
15
  };
16
16
  export {
@@ -4,7 +4,7 @@ import { props as t } from "./__generated__/head-meta.props.js";
4
4
  const p = {
5
5
  category: "hidden",
6
6
  icon: o,
7
- type: "container",
7
+ type: "embed",
8
8
  constraints: {
9
9
  relation: "parent",
10
10
  component: { $eq: "HeadSlot" }
package/lib/heading.ws.js CHANGED
@@ -1,28 +1,29 @@
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 n, h3 as r, h4 as a, h5 as s, h6 as i } from "@webstudio-is/sdk/normalize.css";
3
+ import { h1 as e, h2 as n, h3 as r, h4 as a, h5 as i, h6 as s } from "@webstudio-is/sdk/normalize.css";
4
4
  import { props as p } from "./__generated__/heading.props.js";
5
- const m = {
5
+ const c = {
6
6
  h1: e,
7
7
  h2: n,
8
8
  h3: r,
9
9
  h4: a,
10
- h5: s,
11
- h6: i
12
- }, d = {
10
+ h5: i,
11
+ h6: s
12
+ }, f = {
13
13
  type: "container",
14
+ placeholder: "Heading",
14
15
  icon: t,
15
16
  constraints: {
16
17
  relation: "ancestor",
17
18
  component: { $neq: "Heading" }
18
19
  },
19
20
  states: o,
20
- presetStyle: m
21
+ presetStyle: c
21
22
  }, g = {
22
23
  props: p,
23
24
  initialProps: ["id", "className", "tag"]
24
25
  };
25
26
  export {
26
- d as meta,
27
+ f as meta,
27
28
  g as propsMeta
28
29
  };
package/lib/link.ws.js CHANGED
@@ -12,6 +12,7 @@ const a = {
12
12
  ]
13
13
  }, l = {
14
14
  type: "container",
15
+ placeholder: "Link",
15
16
  icon: e,
16
17
  constraints: {
17
18
  relation: "ancestor",
@@ -6,6 +6,7 @@ const s = {
6
6
  li: e
7
7
  }, m = {
8
8
  type: "container",
9
+ placeholder: "List item",
9
10
  constraints: {
10
11
  // cannot use parent relation here
11
12
  // because list item can be put inside of collection or slot
@@ -2,22 +2,23 @@ import { TextAlignLeftIcon as t } from "@webstudio-is/icons/svg";
2
2
  import { defaultStates as o } from "@webstudio-is/sdk";
3
3
  import { p as r } from "@webstudio-is/sdk/normalize.css";
4
4
  import { props as e } from "./__generated__/paragraph.props.js";
5
- const n = {
5
+ const a = {
6
6
  p: r
7
- }, m = {
7
+ }, c = {
8
8
  type: "container",
9
+ placeholder: "Paragraph",
9
10
  icon: t,
10
11
  constraints: {
11
12
  relation: "ancestor",
12
13
  component: { $neq: "Paragraph" }
13
14
  },
14
15
  states: o,
15
- presetStyle: n
16
- }, c = {
16
+ presetStyle: a
17
+ }, m = {
17
18
  props: e,
18
19
  initialProps: ["id", "className"]
19
20
  };
20
21
  export {
21
- m as meta,
22
- c as propsMeta
22
+ c as meta,
23
+ m as propsMeta
23
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-react",
3
- "version": "0.203.0",
3
+ "version": "0.205.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.1",
51
51
  "micromark-extension-gfm-table": "^2.1.0",
52
- "@webstudio-is/image": "0.203.0",
53
- "@webstudio-is/react-sdk": "0.203.0",
54
- "@webstudio-is/sdk": "0.203.0",
55
- "@webstudio-is/icons": "0.203.0"
52
+ "@webstudio-is/icons": "0.205.0",
53
+ "@webstudio-is/image": "0.205.0",
54
+ "@webstudio-is/react-sdk": "0.205.0",
55
+ "@webstudio-is/sdk": "0.205.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@testing-library/react": "^14.2.2",
@@ -60,11 +60,11 @@
60
60
  "@types/react-dom": "^18.2.25",
61
61
  "react": "18.3.0-canary-14898b6a9-20240318",
62
62
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
63
- "vitest": "^3.0.2",
63
+ "vitest": "^3.0.4",
64
64
  "@webstudio-is/generate-arg-types": "0.0.0",
65
- "@webstudio-is/template": "0.203.0",
66
- "@webstudio-is/tsconfig": "1.0.7",
67
- "@webstudio-is/sdk-cli": "0.94.0"
65
+ "@webstudio-is/sdk-cli": "0.94.0",
66
+ "@webstudio-is/template": "0.205.0",
67
+ "@webstudio-is/tsconfig": "1.0.7"
68
68
  },
69
69
  "scripts": {
70
70
  "build": "vite build --config ../../vite.sdk-components.config.ts",