@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.
- package/lib/__generated__/checkbox.props.js +1 -1
- package/lib/__generated__/markdown-embed.props.js +2 -8
- package/lib/__generated__/radio-button.props.js +1 -1
- package/lib/blockquote.ws.js +6 -8
- package/lib/body.ws.js +5 -19
- package/lib/bold.ws.js +4 -6
- package/lib/box.ws.js +12 -17
- package/lib/button.ws.js +5 -13
- package/lib/checkbox.ws.js +6 -17
- package/lib/code-text.ws.js +6 -11
- package/lib/form.ws.js +6 -11
- package/lib/head-slot.template.js +1 -1
- package/lib/heading.ws.js +7 -9
- package/lib/html-embed.ws.js +1 -1
- package/lib/image.ws.js +8 -10
- package/lib/input.js +18 -14
- package/lib/input.ws.js +6 -23
- package/lib/italic.ws.js +6 -16
- package/lib/label.ws.js +2 -4
- package/lib/link.ws.js +5 -17
- package/lib/list-item.ws.js +0 -2
- package/lib/list.ws.js +7 -9
- package/lib/option.js +3 -1
- package/lib/option.ws.js +1 -1
- package/lib/paragraph.ws.js +2 -4
- package/lib/radio-button.ws.js +8 -20
- package/lib/select.js +27 -14
- package/lib/select.ws.js +4 -13
- package/lib/separator.ws.js +6 -11
- package/lib/slot.ws.js +1 -1
- package/lib/span.ws.js +6 -8
- package/lib/subscript.ws.js +6 -8
- package/lib/superscript.ws.js +6 -8
- package/lib/templates.js +12 -36
- package/lib/text.ws.js +4 -6
- package/lib/textarea.js +16 -5
- package/lib/textarea.ws.js +4 -21
- package/lib/time.ws.js +4 -6
- package/lib/types/blockquote.ws.d.ts +1 -1
- package/lib/types/body.ws.d.ts +1 -1
- package/lib/types/bold.ws.d.ts +1 -1
- package/lib/types/box.ws.d.ts +1 -1
- package/lib/types/button.ws.d.ts +1 -1
- package/lib/types/checkbox.d.ts +1 -1
- package/lib/types/checkbox.ws.d.ts +1 -1
- package/lib/types/code-text.ws.d.ts +1 -1
- package/lib/types/form.ws.d.ts +1 -1
- package/lib/types/heading.ws.d.ts +1 -1
- package/lib/types/image.ws.d.ts +1 -1
- package/lib/types/input.d.ts +1 -4
- package/lib/types/input.ws.d.ts +1 -1
- package/lib/types/italic.ws.d.ts +1 -1
- package/lib/types/label.ws.d.ts +1 -1
- package/lib/types/link.ws.d.ts +1 -1
- package/lib/types/list-item.ws.d.ts +1 -1
- package/lib/types/list.ws.d.ts +1 -1
- package/lib/types/markdown-embed.d.ts +3 -3
- package/lib/types/option.d.ts +0 -1
- package/lib/types/paragraph.ws.d.ts +1 -1
- package/lib/types/radio-button.d.ts +1 -1
- package/lib/types/radio-button.ws.d.ts +1 -1
- package/lib/types/select.d.ts +0 -1
- package/lib/types/select.ws.d.ts +1 -1
- package/lib/types/separator.ws.d.ts +1 -1
- package/lib/types/span.ws.d.ts +1 -1
- package/lib/types/subscript.ws.d.ts +1 -1
- package/lib/types/superscript.ws.d.ts +1 -1
- package/lib/types/templates.d.ts +0 -12
- package/lib/types/text.ws.d.ts +1 -1
- package/lib/types/textarea.d.ts +0 -1
- package/lib/types/textarea.ws.d.ts +1 -1
- package/lib/types/time.ws.d.ts +1 -1
- package/lib/types/vimeo-play-button.ws.d.ts +1 -1
- package/lib/types/vimeo-preview-image.d.ts +21 -21
- package/lib/types/vimeo-spinner.ws.d.ts +1 -1
- package/lib/types/vimeo.ws.d.ts +1 -1
- package/lib/types/youtube.ws.d.ts +1 -1
- package/lib/vimeo-play-button.ws.js +8 -10
- package/lib/vimeo-spinner.ws.js +6 -8
- package/lib/vimeo.template.js +22 -21
- package/lib/vimeo.ws.js +6 -8
- package/lib/webhook-form.template.js +61 -22
- package/lib/youtube.template.js +16 -15
- package/lib/youtube.ws.js +4 -6
- package/package.json +7 -7
- package/lib/blockquote.template.js +0 -11
- package/lib/button.template.js +0 -11
- package/lib/checkbox.template.js +0 -14
- package/lib/heading.template.js +0 -11
- package/lib/label.template.js +0 -10
- package/lib/link.template.js +0 -11
- package/lib/list-item.template.js +0 -11
- package/lib/list.template.js +0 -15
- package/lib/paragraph.template.js +0 -11
- package/lib/radio-button.template.js +0 -14
- package/lib/select.template.js +0 -16
- package/lib/text.template.js +0 -11
- package/lib/types/blockquote.template.d.ts +0 -2
- package/lib/types/button.template.d.ts +0 -2
- package/lib/types/checkbox.template.d.ts +0 -2
- package/lib/types/heading.template.d.ts +0 -2
- package/lib/types/label.template.d.ts +0 -2
- package/lib/types/link.template.d.ts +0 -2
- package/lib/types/list-item.template.d.ts +0 -2
- package/lib/types/list.template.d.ts +0 -2
- package/lib/types/paragraph.template.d.ts +0 -2
- package/lib/types/radio-button.template.d.ts +0 -2
- package/lib/types/select.template.d.ts +0 -2
- package/lib/types/text.template.d.ts +0 -2
package/lib/radio-button.ws.js
CHANGED
|
@@ -1,33 +1,21 @@
|
|
|
1
1
|
import { RadioCheckedIcon as e } from "@webstudio-is/icons/svg";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const i = {
|
|
2
|
+
import { radio as i } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { props as o } from "./__generated__/radio-button.props.js";
|
|
4
|
+
const r = {
|
|
6
5
|
input: [
|
|
7
|
-
...
|
|
6
|
+
...i,
|
|
8
7
|
{
|
|
9
8
|
property: "margin-right",
|
|
10
9
|
value: { type: "unit", unit: "em", value: 0.5 }
|
|
11
10
|
}
|
|
12
11
|
]
|
|
13
|
-
},
|
|
12
|
+
}, m = {
|
|
14
13
|
label: "Radio",
|
|
15
14
|
icon: e,
|
|
16
|
-
presetStyle:
|
|
17
|
-
states: [
|
|
18
|
-
...t,
|
|
19
|
-
{ selector: ":checked", label: "Checked" },
|
|
20
|
-
{ selector: ":required", label: "Required" },
|
|
21
|
-
{ selector: ":optional", label: "Optional" }
|
|
22
|
-
// Additional states will go into submenu
|
|
23
|
-
//{ selector: ":disabled", label: "Disabled" },
|
|
24
|
-
//{ selector: ":enabled", label: "Enabled" },
|
|
25
|
-
//{ selector: ":read-only", label: "Read Only" },
|
|
26
|
-
//{ selector: ":read-write", label: "Read Write" },
|
|
27
|
-
],
|
|
15
|
+
presetStyle: r,
|
|
28
16
|
initialProps: ["id", "class", "name", "value", "required", "checked"],
|
|
29
|
-
props:
|
|
17
|
+
props: o
|
|
30
18
|
};
|
|
31
19
|
export {
|
|
32
|
-
|
|
20
|
+
m as meta
|
|
33
21
|
};
|
package/lib/select.js
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "@webstudio-is/react-sdk/runtime";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
s
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { forwardRef as r, useContext as s, createElement as i } from "react";
|
|
2
|
+
import { ReactSdkContext as l } from "@webstudio-is/react-sdk/runtime";
|
|
3
|
+
const p = r(
|
|
4
|
+
({ value: o, defaultValue: n, ...e }, t) => {
|
|
5
|
+
const { renderer: c } = s(l), a = c === "canvas" ? String(o ?? n) : void 0;
|
|
6
|
+
return /* @__PURE__ */ i(
|
|
7
|
+
"select",
|
|
8
|
+
{
|
|
9
|
+
...e,
|
|
10
|
+
key: a,
|
|
11
|
+
defaultValue: o ?? n,
|
|
12
|
+
ref: t
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
p.displayName = "Select";
|
|
18
|
+
const S = {
|
|
19
|
+
onNavigatorUnselect: (o, n) => {
|
|
20
|
+
for (const e of n.instancePath)
|
|
21
|
+
(e.component === "Select" || e.tag === "select") && o.setMemoryProp(e, "value", void 0);
|
|
10
22
|
},
|
|
11
|
-
onNavigatorSelect: (o,
|
|
12
|
-
|
|
13
|
-
|
|
23
|
+
onNavigatorSelect: (o, n) => {
|
|
24
|
+
let e;
|
|
25
|
+
for (const t of n.instancePath)
|
|
26
|
+
(t.component === "Option" || t.tag === "option") && (e = o.getPropValue(t, "value")), (t.component === "Select" || t.tag === "select") && o.setMemoryProp(t, "value", e);
|
|
14
27
|
}
|
|
15
28
|
};
|
|
16
29
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
30
|
+
p as Select,
|
|
31
|
+
S as hooksSelect
|
|
19
32
|
};
|
package/lib/select.ws.js
CHANGED
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { select as l } from "@webstudio-is/sdk/normalize.css";
|
|
1
|
+
import { select as e } from "@webstudio-is/sdk/normalize.css";
|
|
3
2
|
import { props as t } from "./__generated__/select.props.js";
|
|
4
3
|
const o = {
|
|
5
4
|
select: [
|
|
6
|
-
...
|
|
5
|
+
...e,
|
|
7
6
|
{
|
|
8
7
|
property: "display",
|
|
9
8
|
value: { type: "keyword", value: "block" }
|
|
10
9
|
}
|
|
11
10
|
]
|
|
12
|
-
},
|
|
11
|
+
}, p = {
|
|
13
12
|
presetStyle: o,
|
|
14
|
-
states: [
|
|
15
|
-
...e,
|
|
16
|
-
{ selector: "::placeholder", label: "Placeholder" },
|
|
17
|
-
{ selector: ":valid", label: "Valid" },
|
|
18
|
-
{ selector: ":invalid", label: "Invalid" },
|
|
19
|
-
{ selector: ":required", label: "Required" },
|
|
20
|
-
{ selector: ":optional", label: "Optional" }
|
|
21
|
-
],
|
|
22
13
|
initialProps: [
|
|
23
14
|
"id",
|
|
24
15
|
"class",
|
|
@@ -31,5 +22,5 @@ const o = {
|
|
|
31
22
|
props: t
|
|
32
23
|
};
|
|
33
24
|
export {
|
|
34
|
-
|
|
25
|
+
p as meta
|
|
35
26
|
};
|
package/lib/separator.ws.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const t = {
|
|
1
|
+
import { hr as e } from "@webstudio-is/sdk/normalize.css";
|
|
2
|
+
import { props as r } from "./__generated__/separator.props.js";
|
|
3
|
+
const o = {
|
|
5
4
|
hr: [
|
|
6
|
-
...
|
|
5
|
+
...e,
|
|
7
6
|
{
|
|
8
7
|
property: "height",
|
|
9
8
|
value: { type: "keyword", value: "1px" }
|
|
@@ -30,13 +29,9 @@ const t = {
|
|
|
30
29
|
}
|
|
31
30
|
]
|
|
32
31
|
}, y = {
|
|
33
|
-
|
|
34
|
-
description: "Used to visually divide sections of content, helping to improve readability and organization within a webpage.",
|
|
35
|
-
states: e,
|
|
36
|
-
presetStyle: t,
|
|
37
|
-
order: 3,
|
|
32
|
+
presetStyle: o,
|
|
38
33
|
initialProps: ["id", "class"],
|
|
39
|
-
props:
|
|
34
|
+
props: r
|
|
40
35
|
};
|
|
41
36
|
export {
|
|
42
37
|
y as meta
|
package/lib/slot.ws.js
CHANGED
|
@@ -3,7 +3,7 @@ const o = {
|
|
|
3
3
|
category: "general",
|
|
4
4
|
description: "Slot is a container for content that you want to reference across the project. Changes made to a Slot's children will be reflected in all other instances of that Slot.",
|
|
5
5
|
icon: t,
|
|
6
|
-
order:
|
|
6
|
+
order: 4
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
o as meta
|
package/lib/span.ws.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { PaintBrushIcon as
|
|
2
|
-
import { defaultStates as o } from "@webstudio-is/sdk";
|
|
1
|
+
import { PaintBrushIcon as o } from "@webstudio-is/icons/svg";
|
|
3
2
|
import { span as r } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
-
import { props as
|
|
5
|
-
const
|
|
3
|
+
import { props as t } from "./__generated__/span.props.js";
|
|
4
|
+
const e = {
|
|
6
5
|
label: "Text",
|
|
7
|
-
icon:
|
|
8
|
-
states: o,
|
|
6
|
+
icon: o,
|
|
9
7
|
presetStyle: { span: r },
|
|
10
8
|
initialProps: ["id", "class"],
|
|
11
|
-
props:
|
|
9
|
+
props: t
|
|
12
10
|
};
|
|
13
11
|
export {
|
|
14
|
-
|
|
12
|
+
e as meta
|
|
15
13
|
};
|
package/lib/subscript.ws.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const i = {
|
|
1
|
+
import { sub as t } from "@webstudio-is/sdk/normalize.css";
|
|
2
|
+
import { props as r } from "./__generated__/subscript.props.js";
|
|
3
|
+
const s = {
|
|
5
4
|
label: "Subscript Text",
|
|
6
|
-
|
|
7
|
-
presetStyle: { sub: r },
|
|
5
|
+
presetStyle: { sub: t },
|
|
8
6
|
initialProps: ["id", "class"],
|
|
9
|
-
props:
|
|
7
|
+
props: r
|
|
10
8
|
};
|
|
11
9
|
export {
|
|
12
|
-
|
|
10
|
+
s as meta
|
|
13
11
|
};
|
package/lib/superscript.ws.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const i = {
|
|
1
|
+
import { sup as p } from "@webstudio-is/sdk/normalize.css";
|
|
2
|
+
import { props as r } from "./__generated__/superscript.props.js";
|
|
3
|
+
const o = {
|
|
5
4
|
label: "Superscript Text",
|
|
6
|
-
|
|
7
|
-
presetStyle: { sup: r },
|
|
5
|
+
presetStyle: { sup: p },
|
|
8
6
|
initialProps: ["id", "class"],
|
|
9
|
-
props:
|
|
7
|
+
props: r
|
|
10
8
|
};
|
|
11
9
|
export {
|
|
12
|
-
|
|
10
|
+
o as meta
|
|
13
11
|
};
|
package/lib/templates.js
CHANGED
|
@@ -1,38 +1,14 @@
|
|
|
1
|
-
import { meta as
|
|
2
|
-
import { meta as
|
|
3
|
-
import { meta as
|
|
4
|
-
import { meta as
|
|
5
|
-
import { meta as
|
|
6
|
-
import { meta as
|
|
7
|
-
import { meta as u } from "./button.template.js";
|
|
8
|
-
import { meta as l } from "./webhook-form.template.js";
|
|
9
|
-
import { meta as c } from "./blockquote.template.js";
|
|
10
|
-
import { meta as g } from "./list.template.js";
|
|
11
|
-
import { meta as C } from "./list-item.template.js";
|
|
12
|
-
import { meta as H } from "./label.template.js";
|
|
13
|
-
import { meta as T } from "./radio-button.template.js";
|
|
14
|
-
import { meta as w } from "./checkbox.template.js";
|
|
15
|
-
import { meta as I } from "./vimeo.template.js";
|
|
16
|
-
import { meta as P } from "./youtube.template.js";
|
|
17
|
-
import { meta as V } from "./select.template.js";
|
|
18
|
-
import { meta as j } from "./head-slot.template.js";
|
|
1
|
+
import { meta as m } from "./content-embed.template.js";
|
|
2
|
+
import { meta as a } from "./markdown-embed.template.js";
|
|
3
|
+
import { meta as f } from "./webhook-form.template.js";
|
|
4
|
+
import { meta as s } from "./vimeo.template.js";
|
|
5
|
+
import { meta as d } from "./youtube.template.js";
|
|
6
|
+
import { meta as n } from "./head-slot.template.js";
|
|
19
7
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
p as Heading,
|
|
27
|
-
H as Label,
|
|
28
|
-
i as Link,
|
|
29
|
-
g as List,
|
|
30
|
-
C as ListItem,
|
|
31
|
-
m as MarkdownEmbed,
|
|
32
|
-
n as Paragraph,
|
|
33
|
-
T as RadioButton,
|
|
34
|
-
V as Select,
|
|
35
|
-
s as Text,
|
|
36
|
-
I as Vimeo,
|
|
37
|
-
P as YouTube
|
|
8
|
+
m as ContentEmbed,
|
|
9
|
+
f as Form,
|
|
10
|
+
n as HeadSlot,
|
|
11
|
+
a as MarkdownEmbed,
|
|
12
|
+
s as Vimeo,
|
|
13
|
+
d as YouTube
|
|
38
14
|
};
|
package/lib/text.ws.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { TextIcon as t } from "@webstudio-is/icons/svg";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { props as e } from "./__generated__/text.props.js";
|
|
2
|
+
import { div as i } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { props as o } from "./__generated__/text.props.js";
|
|
5
4
|
const n = {
|
|
6
5
|
icon: t,
|
|
7
|
-
states: i,
|
|
8
6
|
presetStyle: {
|
|
9
7
|
div: [
|
|
10
|
-
...
|
|
8
|
+
...i,
|
|
11
9
|
{
|
|
12
10
|
property: "min-height",
|
|
13
11
|
value: { type: "unit", unit: "em", value: 1 }
|
|
@@ -16,7 +14,7 @@ const n = {
|
|
|
16
14
|
},
|
|
17
15
|
initialProps: ["tag", "id", "class"],
|
|
18
16
|
props: {
|
|
19
|
-
...
|
|
17
|
+
...o,
|
|
20
18
|
tag: {
|
|
21
19
|
required: !0,
|
|
22
20
|
control: "tag",
|
package/lib/textarea.js
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
import { forwardRef as c, useContext as m, createElement as s } from "react";
|
|
2
|
+
import { ReactSdkContext as x } from "@webstudio-is/react-sdk/runtime";
|
|
3
|
+
const d = c(({ value: e, defaultValue: t, ...r }, a) => {
|
|
4
|
+
const { renderer: o } = m(x), n = o === "canvas" ? String(e ?? t) : void 0;
|
|
5
|
+
return /* @__PURE__ */ s(
|
|
6
|
+
"textarea",
|
|
7
|
+
{
|
|
8
|
+
...r,
|
|
9
|
+
key: n,
|
|
10
|
+
defaultValue: e ?? t,
|
|
11
|
+
ref: a
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
});
|
|
15
|
+
d.displayName = "Textarea";
|
|
5
16
|
export {
|
|
6
|
-
|
|
17
|
+
d as Textarea
|
|
7
18
|
};
|
package/lib/textarea.ws.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { textarea as l } from "@webstudio-is/sdk/normalize.css";
|
|
1
|
+
import { textarea as e } from "@webstudio-is/sdk/normalize.css";
|
|
3
2
|
import { props as r } from "./__generated__/textarea.props.js";
|
|
4
3
|
const t = {
|
|
5
4
|
textarea: [
|
|
6
|
-
...
|
|
5
|
+
...e,
|
|
7
6
|
// resize doesn't work well while on canvas
|
|
8
7
|
{ property: "resize", value: { type: "keyword", value: "none" } },
|
|
9
8
|
{
|
|
@@ -11,29 +10,13 @@ const t = {
|
|
|
11
10
|
value: { type: "keyword", value: "block" }
|
|
12
11
|
}
|
|
13
12
|
]
|
|
14
|
-
},
|
|
15
|
-
category: "forms",
|
|
13
|
+
}, l = {
|
|
16
14
|
label: "Text Area",
|
|
17
|
-
description: "A multi-line text input for collecting longer string data from your users.",
|
|
18
15
|
presetStyle: t,
|
|
19
|
-
order: 4,
|
|
20
16
|
contentModel: {
|
|
21
17
|
category: "instance",
|
|
22
18
|
children: []
|
|
23
19
|
},
|
|
24
|
-
states: [
|
|
25
|
-
...e,
|
|
26
|
-
{ selector: "::placeholder", label: "Placeholder" },
|
|
27
|
-
{ selector: ":valid", label: "Valid" },
|
|
28
|
-
{ selector: ":invalid", label: "Invalid" },
|
|
29
|
-
{ selector: ":required", label: "Required" },
|
|
30
|
-
{ selector: ":optional", label: "Optional" }
|
|
31
|
-
// Additional states will go into submenu
|
|
32
|
-
//{ selector: ":disabled", label: "Disabled" },
|
|
33
|
-
//{ selector: ":enabled", label: "Enabled" },
|
|
34
|
-
//{ selector: ":read-only", label: "Read Only" },
|
|
35
|
-
//{ selector: ":read-write", label: "Read Write" },
|
|
36
|
-
],
|
|
37
20
|
initialProps: [
|
|
38
21
|
"id",
|
|
39
22
|
"class",
|
|
@@ -46,5 +29,5 @@ const t = {
|
|
|
46
29
|
props: r
|
|
47
30
|
};
|
|
48
31
|
export {
|
|
49
|
-
|
|
32
|
+
l as meta
|
|
50
33
|
};
|
package/lib/time.ws.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { defaultStates as t } from "@webstudio-is/sdk";
|
|
2
1
|
import { time as e } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
-
import { props as
|
|
4
|
-
const
|
|
2
|
+
import { props as t } from "./__generated__/time.props.js";
|
|
3
|
+
const r = {
|
|
5
4
|
category: "localization",
|
|
6
5
|
description: "Converts machine-readable date and time to a human-readable format.",
|
|
7
6
|
contentModel: {
|
|
8
7
|
category: "instance",
|
|
9
8
|
children: []
|
|
10
9
|
},
|
|
11
|
-
states: t,
|
|
12
10
|
presetStyle: {
|
|
13
11
|
time: e
|
|
14
12
|
},
|
|
15
13
|
initialProps: ["datetime", "language", "country", "dateStyle", "timeStyle"],
|
|
16
|
-
props:
|
|
14
|
+
props: t
|
|
17
15
|
};
|
|
18
16
|
export {
|
|
19
|
-
|
|
17
|
+
r as meta
|
|
20
18
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/body.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/bold.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/box.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/button.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/checkbox.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const defaultTag = "input";
|
|
2
|
-
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "
|
|
2
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "type" | "value"> & {
|
|
3
3
|
value?: string;
|
|
4
4
|
}, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/form.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/image.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/input.d.ts
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const Input: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
-
type?: "color" | "date" | "datetime-local" | "email" | "hidden" | "month" | "number" | "password" | "range" | "search" | "tel" | "text" | "time" | "url" | "week";
|
|
4
|
-
}, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
1
|
+
export declare const Input: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
package/lib/types/input.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/italic.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/label.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/link.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/list.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
type
|
|
1
|
+
import { type ComponentProps } from "react";
|
|
2
|
+
type MarkdownEmbedProps = ComponentProps<"div"> & {
|
|
2
3
|
code: string;
|
|
3
|
-
className?: string;
|
|
4
4
|
children?: never;
|
|
5
5
|
};
|
|
6
|
-
export declare const MarkdownEmbed: import("react").ForwardRefExoticComponent<MarkdownEmbedProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const MarkdownEmbed: import("react").ForwardRefExoticComponent<Omit<MarkdownEmbedProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
7
|
export {};
|
package/lib/types/option.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export declare const defaultTag = "option";
|
|
2
1
|
export declare const Option: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, "ref"> & import("react").RefAttributes<HTMLOptionElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const defaultTag = "input";
|
|
2
|
-
export declare const RadioButton: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "
|
|
2
|
+
export declare const RadioButton: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "type" | "value"> & {
|
|
3
3
|
value?: string;
|
|
4
4
|
}, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/select.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { type Hook } from "@webstudio-is/react-sdk/runtime";
|
|
2
|
-
export declare const defaultTag = "select";
|
|
3
2
|
export declare const Select: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
4
3
|
export declare const hooksSelect: Hook;
|
package/lib/types/select.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/span.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/templates.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
export { meta as ContentEmbed } from "./content-embed.template";
|
|
2
2
|
export { meta as MarkdownEmbed } from "./markdown-embed.template";
|
|
3
|
-
export { meta as Text } from "./text.template";
|
|
4
|
-
export { meta as Heading } from "./heading.template";
|
|
5
|
-
export { meta as Paragraph } from "./paragraph.template";
|
|
6
|
-
export { meta as Link } from "./link.template";
|
|
7
|
-
export { meta as Button } from "./button.template";
|
|
8
3
|
export { meta as Form } from "./webhook-form.template";
|
|
9
|
-
export { meta as Blockquote } from "./blockquote.template";
|
|
10
|
-
export { meta as List } from "./list.template";
|
|
11
|
-
export { meta as ListItem } from "./list-item.template";
|
|
12
|
-
export { meta as Label } from "./label.template";
|
|
13
|
-
export { meta as RadioButton } from "./radio-button.template";
|
|
14
|
-
export { meta as Checkbox } from "./checkbox.template";
|
|
15
4
|
export { meta as Vimeo } from "./vimeo.template";
|
|
16
5
|
export { meta as YouTube } from "./youtube.template";
|
|
17
|
-
export { meta as Select } from "./select.template";
|
|
18
6
|
export { meta as HeadSlot } from "./head-slot.template";
|
package/lib/types/text.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/textarea.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export declare const defaultTag = "textarea";
|
|
2
1
|
export declare const Textarea: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
package/lib/types/time.ws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|