@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.
- package/lib/checkbox.ws.js +0 -1
- package/lib/code-text.ws.js +8 -5
- package/lib/head-link.ws.js +5 -7
- package/lib/head-meta.ws.js +3 -5
- package/lib/head-title.ws.js +4 -5
- package/lib/image.ws.js +2 -3
- package/lib/input.ws.js +0 -1
- package/lib/option.ws.js +0 -1
- package/lib/radio-button.ws.js +2 -3
- package/lib/separator.ws.js +0 -1
- package/lib/textarea.ws.js +8 -5
- package/lib/video.ws.js +8 -5
- package/lib/vimeo-preview-image.ws.js +3 -3
- package/package.json +7 -7
package/lib/checkbox.ws.js
CHANGED
package/lib/code-text.ws.js
CHANGED
|
@@ -30,15 +30,18 @@ const p = {
|
|
|
30
30
|
value: { type: "rgb", r: 238, g: 238, b: 238, alpha: 1 }
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
54
|
-
|
|
56
|
+
i as meta,
|
|
57
|
+
s as propsMeta
|
|
55
58
|
};
|
package/lib/head-link.ws.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { ResourceIcon as
|
|
1
|
+
import { ResourceIcon as o } from "@webstudio-is/icons/svg";
|
|
2
2
|
import "@webstudio-is/sdk";
|
|
3
|
-
import { props as
|
|
3
|
+
import { props as r } from "./__generated__/head-link.props.js";
|
|
4
4
|
const p = {
|
|
5
|
-
|
|
6
|
-
icon: e,
|
|
7
|
-
type: "embed",
|
|
5
|
+
icon: o,
|
|
8
6
|
contentModel: {
|
|
9
7
|
category: "none",
|
|
10
|
-
children: [
|
|
8
|
+
children: []
|
|
11
9
|
}
|
|
12
10
|
}, c = {
|
|
13
|
-
props:
|
|
11
|
+
props: r,
|
|
14
12
|
initialProps: ["rel", "hrefLang", "href", "type", "as"]
|
|
15
13
|
};
|
|
16
14
|
export {
|
package/lib/head-meta.ws.js
CHANGED
|
@@ -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
|
|
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: [
|
|
8
|
+
children: []
|
|
11
9
|
}
|
|
12
10
|
}, i = {
|
|
13
|
-
props:
|
|
11
|
+
props: n,
|
|
14
12
|
initialProps: ["name", "property", "content"]
|
|
15
13
|
};
|
|
16
14
|
export {
|
package/lib/head-title.ws.js
CHANGED
|
@@ -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
|
|
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
|
-
},
|
|
11
|
+
}, c = {
|
|
13
12
|
props: t
|
|
14
13
|
};
|
|
15
14
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
},
|
|
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
|
-
|
|
58
|
+
n as propsMeta
|
|
60
59
|
};
|
package/lib/input.ws.js
CHANGED
package/lib/option.ws.js
CHANGED
package/lib/radio-button.ws.js
CHANGED
|
@@ -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
|
-
},
|
|
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
|
-
|
|
34
|
+
m as propsMeta
|
|
36
35
|
};
|
package/lib/separator.ws.js
CHANGED
package/lib/textarea.ws.js
CHANGED
|
@@ -12,14 +12,17 @@ const l = {
|
|
|
12
12
|
value: { type: "keyword", value: "block" }
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
50
|
-
|
|
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
|
|
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
|
-
},
|
|
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
|
-
|
|
33
|
-
|
|
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
|
|
3
|
+
const p = {
|
|
4
4
|
...e,
|
|
5
5
|
category: "hidden",
|
|
6
6
|
label: "Preview Image",
|
|
7
7
|
contentModel: {
|
|
8
8
|
category: "none",
|
|
9
|
-
children: [
|
|
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
|
-
|
|
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.
|
|
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.
|
|
53
|
-
"@webstudio-is/
|
|
54
|
-
"@webstudio-is/
|
|
55
|
-
"@webstudio-is/sdk": "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.
|
|
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": {
|