@webstudio-is/sdk-components-react 0.219.0 → 0.220.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__/time.props.js +0 -7
- package/lib/blockquote.ws.js +9 -14
- package/lib/body.ws.js +11 -15
- package/lib/bold.ws.js +6 -12
- package/lib/box.ws.js +16 -20
- package/lib/button.ws.js +10 -14
- package/lib/checkbox.ws.js +4 -6
- package/lib/code-text.ws.js +5 -7
- package/lib/form.ws.js +9 -13
- package/lib/fragment.ws.js +2 -7
- package/lib/head-link.ws.js +6 -9
- package/lib/head-meta.ws.js +5 -8
- package/lib/head-slot.ws.js +3 -7
- package/lib/head-title.ws.js +2 -4
- package/lib/heading.ws.js +14 -19
- package/lib/html-embed.ws.js +5 -7
- package/lib/image.ws.js +22 -26
- package/lib/input.ws.js +11 -15
- package/lib/italic.ws.js +9 -13
- package/lib/label.ws.js +8 -12
- package/lib/link.ws.js +13 -18
- package/lib/list-item.ws.js +8 -15
- package/lib/list.ws.js +9 -13
- package/lib/markdown-embed.ws.js +6 -8
- package/lib/option.ws.js +6 -10
- package/lib/paragraph.ws.js +9 -16
- package/lib/radio-button.ws.js +6 -8
- package/lib/rich-text-link.ws.js +3 -4
- package/lib/select.ws.js +13 -17
- package/lib/separator.ws.js +10 -14
- package/lib/slot.ws.js +4 -7
- package/lib/span.ws.js +5 -9
- package/lib/subscript.ws.js +7 -13
- package/lib/superscript.ws.js +8 -14
- package/lib/text.ws.js +10 -12
- package/lib/textarea.ws.js +14 -18
- package/lib/time.js +2 -1
- package/lib/time.ws.js +15 -15
- package/lib/types/blockquote.ws.d.ts +1 -2
- package/lib/types/body.ws.d.ts +1 -2
- package/lib/types/bold.ws.d.ts +1 -2
- package/lib/types/box.ws.d.ts +1 -2
- package/lib/types/button.ws.d.ts +1 -2
- package/lib/types/checkbox.ws.d.ts +1 -2
- package/lib/types/code-text.ws.d.ts +1 -2
- package/lib/types/form.ws.d.ts +1 -2
- package/lib/types/fragment.ws.d.ts +1 -2
- package/lib/types/head-link.ws.d.ts +1 -2
- package/lib/types/head-meta.ws.d.ts +1 -2
- package/lib/types/head-slot.ws.d.ts +1 -2
- package/lib/types/head-title.ws.d.ts +1 -2
- package/lib/types/heading.ws.d.ts +1 -2
- package/lib/types/html-embed.ws.d.ts +1 -2
- package/lib/types/image.ws.d.ts +1 -2
- package/lib/types/input.ws.d.ts +1 -2
- package/lib/types/italic.ws.d.ts +1 -2
- package/lib/types/label.ws.d.ts +1 -2
- package/lib/types/link.ws.d.ts +1 -2
- package/lib/types/list-item.ws.d.ts +1 -2
- package/lib/types/list.ws.d.ts +1 -2
- package/lib/types/markdown-embed.ws.d.ts +1 -2
- package/lib/types/option.ws.d.ts +1 -2
- package/lib/types/paragraph.ws.d.ts +1 -2
- package/lib/types/radio-button.ws.d.ts +1 -2
- package/lib/types/rich-text-link.ws.d.ts +1 -2
- package/lib/types/select.ws.d.ts +1 -2
- package/lib/types/separator.ws.d.ts +1 -2
- package/lib/types/slot.ws.d.ts +1 -2
- package/lib/types/span.ws.d.ts +1 -2
- package/lib/types/subscript.ws.d.ts +1 -2
- package/lib/types/superscript.ws.d.ts +1 -2
- package/lib/types/text.ws.d.ts +1 -2
- package/lib/types/textarea.ws.d.ts +1 -2
- package/lib/types/time.d.ts +2 -4
- package/lib/types/time.ws.d.ts +1 -2
- package/lib/types/video.ws.d.ts +1 -2
- package/lib/types/vimeo-play-button.ws.d.ts +1 -2
- package/lib/types/vimeo-preview-image.ws.d.ts +1 -2
- package/lib/types/vimeo-spinner.ws.d.ts +1 -2
- package/lib/types/vimeo.ws.d.ts +1 -2
- package/lib/types/webhook-form.ws.d.ts +1 -2
- package/lib/types/xml-node.ws.d.ts +1 -2
- package/lib/types/xml-time.ws.d.ts +1 -2
- package/lib/types/youtube.ws.d.ts +1 -2
- package/lib/video.ws.js +14 -17
- package/lib/vimeo-play-button.ws.js +4 -8
- package/lib/vimeo-preview-image.ws.js +6 -8
- package/lib/vimeo-spinner.ws.js +4 -8
- package/lib/vimeo.ws.js +13 -17
- package/lib/webhook-form.ws.js +4 -6
- package/lib/xml-node.ws.js +5 -7
- package/lib/xml-time.ws.js +5 -7
- package/lib/youtube.ws.js +13 -17
- package/package.json +8 -13
- package/lib/props.js +0 -92
- package/lib/types/props.d.ts +0 -45
package/lib/types/form.ws.d.ts
CHANGED
package/lib/types/image.ws.d.ts
CHANGED
package/lib/types/input.ws.d.ts
CHANGED
package/lib/types/italic.ws.d.ts
CHANGED
package/lib/types/label.ws.d.ts
CHANGED
package/lib/types/link.ws.d.ts
CHANGED
package/lib/types/list.ws.d.ts
CHANGED
package/lib/types/option.ws.d.ts
CHANGED
package/lib/types/select.ws.d.ts
CHANGED
package/lib/types/slot.ws.d.ts
CHANGED
package/lib/types/span.ws.d.ts
CHANGED
package/lib/types/text.ws.d.ts
CHANGED
package/lib/types/time.d.ts
CHANGED
|
@@ -4,14 +4,12 @@ type Language = (typeof languages)[number];
|
|
|
4
4
|
type Country = (typeof countries)[number];
|
|
5
5
|
type DateStyle = Intl.DateTimeFormatOptions["dateStyle"] | "none";
|
|
6
6
|
type TimeStyle = Intl.DateTimeFormatOptions["timeStyle"] | "none";
|
|
7
|
-
|
|
8
|
-
datetime?: string;
|
|
7
|
+
export declare const Time: import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").TimeHTMLAttributes<HTMLTimeElement>, HTMLTimeElement>, "dateTime"> & {
|
|
9
8
|
language?: Language;
|
|
10
9
|
country?: Country;
|
|
11
10
|
dateStyle?: DateStyle;
|
|
12
11
|
timeStyle?: TimeStyle;
|
|
13
|
-
}
|
|
14
|
-
export declare const Time: import("react").ForwardRefExoticComponent<TimeProps & import("react").RefAttributes<HTMLTimeElement>>;
|
|
12
|
+
} & import("react").RefAttributes<HTMLTimeElement>>;
|
|
15
13
|
export declare const __testing__: {
|
|
16
14
|
parseDate: (datetimeString: string) => Date | undefined;
|
|
17
15
|
};
|
package/lib/types/time.ws.d.ts
CHANGED
package/lib/types/video.ws.d.ts
CHANGED
package/lib/types/vimeo.ws.d.ts
CHANGED
package/lib/video.ws.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { VideoIcon as e } from "@webstudio-is/icons/svg";
|
|
2
|
-
import "@webstudio-is/sdk";
|
|
3
2
|
import { props as o } from "./__generated__/video.props.js";
|
|
4
3
|
const i = {
|
|
5
4
|
icon: e,
|
|
@@ -14,22 +13,10 @@ const i = {
|
|
|
14
13
|
value: { type: "unit", unit: "%", value: 100 }
|
|
15
14
|
}
|
|
16
15
|
]
|
|
17
|
-
}
|
|
18
|
-
}, l = {
|
|
19
|
-
props: {
|
|
20
|
-
...o,
|
|
21
|
-
// Automatically generated props don't have the right control.
|
|
22
|
-
src: {
|
|
23
|
-
type: "string",
|
|
24
|
-
control: "file",
|
|
25
|
-
label: "Source",
|
|
26
|
-
required: !1,
|
|
27
|
-
accept: ".mp4,.webm,.mpg,.mpeg,.mov"
|
|
28
|
-
}
|
|
29
16
|
},
|
|
30
17
|
initialProps: [
|
|
31
18
|
"id",
|
|
32
|
-
"
|
|
19
|
+
"class",
|
|
33
20
|
"width",
|
|
34
21
|
"height",
|
|
35
22
|
"src",
|
|
@@ -39,9 +26,19 @@ const i = {
|
|
|
39
26
|
"muted",
|
|
40
27
|
"preload",
|
|
41
28
|
"playsInline"
|
|
42
|
-
]
|
|
29
|
+
],
|
|
30
|
+
props: {
|
|
31
|
+
...o,
|
|
32
|
+
// Automatically generated props don't have the right control.
|
|
33
|
+
src: {
|
|
34
|
+
type: "string",
|
|
35
|
+
control: "file",
|
|
36
|
+
label: "Source",
|
|
37
|
+
required: !1,
|
|
38
|
+
accept: ".mp4,.webm,.mpg,.mpeg,.mov"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
43
41
|
};
|
|
44
42
|
export {
|
|
45
|
-
i as meta
|
|
46
|
-
l as propsMeta
|
|
43
|
+
i as meta
|
|
47
44
|
};
|
|
@@ -11,14 +11,10 @@ const m = {
|
|
|
11
11
|
category: "none",
|
|
12
12
|
children: ["instance"]
|
|
13
13
|
},
|
|
14
|
-
presetStyle: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}, p = {
|
|
18
|
-
props: n,
|
|
19
|
-
initialProps: ["id", "className"]
|
|
14
|
+
presetStyle: { button: e },
|
|
15
|
+
initialProps: ["id", "class"],
|
|
16
|
+
props: n
|
|
20
17
|
};
|
|
21
18
|
export {
|
|
22
|
-
m as meta
|
|
23
|
-
p as propsMeta
|
|
19
|
+
m as meta
|
|
24
20
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { meta as e
|
|
1
|
+
import { meta as e } from "./image.ws.js";
|
|
2
2
|
import { props as r } from "./__generated__/vimeo-preview-image.props.js";
|
|
3
|
-
const
|
|
3
|
+
const i = {
|
|
4
4
|
...e,
|
|
5
5
|
category: "hidden",
|
|
6
6
|
label: "Preview Image",
|
|
7
7
|
contentModel: {
|
|
8
8
|
category: "none",
|
|
9
9
|
children: []
|
|
10
|
-
}
|
|
11
|
-
|
|
10
|
+
},
|
|
11
|
+
initialProps: e.initialProps,
|
|
12
12
|
props: {
|
|
13
13
|
...r,
|
|
14
14
|
// Automatically generated props don't have the right control.
|
|
@@ -18,10 +18,8 @@ const p = {
|
|
|
18
18
|
label: "Source",
|
|
19
19
|
required: !1
|
|
20
20
|
}
|
|
21
|
-
}
|
|
22
|
-
initialProps: o.initialProps
|
|
21
|
+
}
|
|
23
22
|
};
|
|
24
23
|
export {
|
|
25
|
-
|
|
26
|
-
i as propsMeta
|
|
24
|
+
i as meta
|
|
27
25
|
};
|
package/lib/vimeo-spinner.ws.js
CHANGED
|
@@ -11,14 +11,10 @@ const s = {
|
|
|
11
11
|
category: "none",
|
|
12
12
|
children: ["instance"]
|
|
13
13
|
},
|
|
14
|
-
presetStyle: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}, c = {
|
|
18
|
-
props: r,
|
|
19
|
-
initialProps: ["id", "className"]
|
|
14
|
+
presetStyle: { div: t },
|
|
15
|
+
initialProps: ["id", "class"],
|
|
16
|
+
props: r
|
|
20
17
|
};
|
|
21
18
|
export {
|
|
22
|
-
s as meta
|
|
23
|
-
c as propsMeta
|
|
19
|
+
s as meta
|
|
24
20
|
};
|
package/lib/vimeo.ws.js
CHANGED
|
@@ -2,18 +2,7 @@ import { VimeoIcon as o } from "@webstudio-is/icons/svg";
|
|
|
2
2
|
import { defaultStates as t } from "@webstudio-is/sdk";
|
|
3
3
|
import { div as e } from "@webstudio-is/sdk/normalize.css";
|
|
4
4
|
import { props as i } from "./__generated__/vimeo.props.js";
|
|
5
|
-
const
|
|
6
|
-
icon: o,
|
|
7
|
-
states: t,
|
|
8
|
-
contentModel: {
|
|
9
|
-
category: "instance",
|
|
10
|
-
children: ["instance"],
|
|
11
|
-
descendants: ["VimeoSpinner", "VimeoPlayButton", "VimeoPreviewImage"]
|
|
12
|
-
},
|
|
13
|
-
presetStyle: {
|
|
14
|
-
div: e
|
|
15
|
-
}
|
|
16
|
-
}, r = [
|
|
5
|
+
const r = [
|
|
17
6
|
"id",
|
|
18
7
|
"className",
|
|
19
8
|
"url",
|
|
@@ -31,11 +20,18 @@ const m = {
|
|
|
31
20
|
"showControls",
|
|
32
21
|
"controlsColor",
|
|
33
22
|
"playsinline"
|
|
34
|
-
],
|
|
35
|
-
|
|
36
|
-
|
|
23
|
+
], m = {
|
|
24
|
+
icon: o,
|
|
25
|
+
states: t,
|
|
26
|
+
contentModel: {
|
|
27
|
+
category: "instance",
|
|
28
|
+
children: ["instance"],
|
|
29
|
+
descendants: ["VimeoSpinner", "VimeoPlayButton", "VimeoPreviewImage"]
|
|
30
|
+
},
|
|
31
|
+
presetStyle: { div: e },
|
|
32
|
+
initialProps: r,
|
|
33
|
+
props: i
|
|
37
34
|
};
|
|
38
35
|
export {
|
|
39
|
-
m as meta
|
|
40
|
-
p as propsMeta
|
|
36
|
+
m as meta
|
|
41
37
|
};
|
package/lib/webhook-form.ws.js
CHANGED
|
@@ -10,8 +10,8 @@ const c = {
|
|
|
10
10
|
states: [
|
|
11
11
|
{ selector: "[data-state=error]", label: "Error" },
|
|
12
12
|
{ selector: "[data-state=success]", label: "Success" }
|
|
13
|
-
]
|
|
14
|
-
|
|
13
|
+
],
|
|
14
|
+
initialProps: ["id", "class", "state", "action"],
|
|
15
15
|
props: {
|
|
16
16
|
...r,
|
|
17
17
|
action: {
|
|
@@ -20,10 +20,8 @@ const c = {
|
|
|
20
20
|
description: "The URI of a program that processes the information submitted via the form.",
|
|
21
21
|
required: !1
|
|
22
22
|
}
|
|
23
|
-
}
|
|
24
|
-
initialProps: ["id", "className", "state", "action"]
|
|
23
|
+
}
|
|
25
24
|
};
|
|
26
25
|
export {
|
|
27
|
-
c as meta
|
|
28
|
-
i as propsMeta
|
|
26
|
+
c as meta
|
|
29
27
|
};
|
package/lib/xml-node.ws.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { XmlIcon as o } from "@webstudio-is/icons/svg";
|
|
2
2
|
import { props as r } from "./__generated__/xml-node.props.js";
|
|
3
|
-
const
|
|
3
|
+
const m = {
|
|
4
4
|
category: "xml",
|
|
5
5
|
order: 6,
|
|
6
6
|
icon: o,
|
|
7
|
-
description: "XML Node"
|
|
8
|
-
|
|
9
|
-
props: r
|
|
10
|
-
initialProps: ["tag"]
|
|
7
|
+
description: "XML Node",
|
|
8
|
+
initialProps: ["tag"],
|
|
9
|
+
props: r
|
|
11
10
|
};
|
|
12
11
|
export {
|
|
13
|
-
|
|
14
|
-
e as propsMeta
|
|
12
|
+
m as meta
|
|
15
13
|
};
|
package/lib/xml-time.ws.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { CalendarIcon as t } from "@webstudio-is/icons/svg";
|
|
2
|
-
import { props as
|
|
2
|
+
import { props as e } from "./__generated__/xml-time.props.js";
|
|
3
3
|
const a = {
|
|
4
4
|
category: "xml",
|
|
5
5
|
description: "Converts machine-readable date and time to ISO format.",
|
|
6
6
|
icon: t,
|
|
7
|
-
order: 7
|
|
8
|
-
|
|
9
|
-
props:
|
|
10
|
-
initialProps: ["datetime", "dateStyle"]
|
|
7
|
+
order: 7,
|
|
8
|
+
initialProps: ["datetime", "dateStyle"],
|
|
9
|
+
props: e
|
|
11
10
|
};
|
|
12
11
|
export {
|
|
13
|
-
a as meta
|
|
14
|
-
i as propsMeta
|
|
12
|
+
a as meta
|
|
15
13
|
};
|
package/lib/youtube.ws.js
CHANGED
|
@@ -2,18 +2,7 @@ import { YoutubeIcon as e } from "@webstudio-is/icons/svg";
|
|
|
2
2
|
import { defaultStates as o } from "@webstudio-is/sdk";
|
|
3
3
|
import { div as t } from "@webstudio-is/sdk/normalize.css";
|
|
4
4
|
import { props as i } from "./__generated__/youtube.props.js";
|
|
5
|
-
const
|
|
6
|
-
icon: e,
|
|
7
|
-
states: o,
|
|
8
|
-
contentModel: {
|
|
9
|
-
category: "instance",
|
|
10
|
-
children: ["instance"],
|
|
11
|
-
descendants: ["VimeoSpinner", "VimeoPlayButton", "VimeoPreviewImage"]
|
|
12
|
-
},
|
|
13
|
-
presetStyle: {
|
|
14
|
-
div: t
|
|
15
|
-
}
|
|
16
|
-
}, n = [
|
|
5
|
+
const n = [
|
|
17
6
|
"id",
|
|
18
7
|
"className",
|
|
19
8
|
"url",
|
|
@@ -41,11 +30,18 @@ const p = {
|
|
|
41
30
|
"language",
|
|
42
31
|
"color",
|
|
43
32
|
"playlist"
|
|
44
|
-
],
|
|
45
|
-
|
|
46
|
-
|
|
33
|
+
], d = {
|
|
34
|
+
icon: e,
|
|
35
|
+
states: o,
|
|
36
|
+
contentModel: {
|
|
37
|
+
category: "instance",
|
|
38
|
+
children: ["instance"],
|
|
39
|
+
descendants: ["VimeoSpinner", "VimeoPlayButton", "VimeoPreviewImage"]
|
|
40
|
+
},
|
|
41
|
+
presetStyle: { div: t },
|
|
42
|
+
initialProps: n,
|
|
43
|
+
props: i
|
|
47
44
|
};
|
|
48
45
|
export {
|
|
49
|
-
|
|
50
|
-
c as propsMeta
|
|
46
|
+
d as meta
|
|
51
47
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.220.0",
|
|
4
4
|
"description": "Webstudio default library for react",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -23,11 +23,6 @@
|
|
|
23
23
|
"types": "./lib/types/metas.d.ts",
|
|
24
24
|
"import": "./lib/metas.js"
|
|
25
25
|
},
|
|
26
|
-
"./props": {
|
|
27
|
-
"webstudio": "./src/props.ts",
|
|
28
|
-
"types": "./lib/types/props.d.ts",
|
|
29
|
-
"import": "./lib/props.js"
|
|
30
|
-
},
|
|
31
26
|
"./hooks": {
|
|
32
27
|
"webstudio": "./src/hooks.ts",
|
|
33
28
|
"types": "./lib/types/hooks.d.ts",
|
|
@@ -49,10 +44,10 @@
|
|
|
49
44
|
"colord": "^2.9.3",
|
|
50
45
|
"micromark": "^4.0.2",
|
|
51
46
|
"micromark-extension-gfm-table": "^2.1.1",
|
|
52
|
-
"@webstudio-is/icons": "0.
|
|
53
|
-
"@webstudio-is/image": "0.
|
|
54
|
-
"@webstudio-is/react-sdk": "0.
|
|
55
|
-
"@webstudio-is/sdk": "0.
|
|
47
|
+
"@webstudio-is/icons": "0.220.0",
|
|
48
|
+
"@webstudio-is/image": "0.220.0",
|
|
49
|
+
"@webstudio-is/react-sdk": "0.220.0",
|
|
50
|
+
"@webstudio-is/sdk": "0.220.0"
|
|
56
51
|
},
|
|
57
52
|
"devDependencies": {
|
|
58
53
|
"@testing-library/dom": "^10.4.0",
|
|
@@ -64,9 +59,9 @@
|
|
|
64
59
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
65
60
|
"vitest": "^3.1.2",
|
|
66
61
|
"@webstudio-is/generate-arg-types": "0.0.0",
|
|
67
|
-
"@webstudio-is/
|
|
68
|
-
"@webstudio-is/template": "0.
|
|
69
|
-
"@webstudio-is/
|
|
62
|
+
"@webstudio-is/sdk-cli": "0.94.0",
|
|
63
|
+
"@webstudio-is/template": "0.220.0",
|
|
64
|
+
"@webstudio-is/tsconfig": "1.0.7"
|
|
70
65
|
},
|
|
71
66
|
"scripts": {
|
|
72
67
|
"build": "vite build --config ../../vite.sdk-components.config.ts",
|