@webstudio-is/sdk-components-animation 0.216.0 → 0.217.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/animate-children.ws.js +16 -11
- package/lib/animate-text.ws.js +11 -16
- package/lib/stagger-animation.ws.js +10 -15
- package/lib/video-animation.template.js +4 -6
- package/lib/video-animation.ws.js +11 -16
- package/package.json +9 -9
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { AnimationGroupIcon as
|
|
2
|
-
|
|
1
|
+
import { AnimationGroupIcon as n } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { animation as i } from "./shared/meta.js";
|
|
3
|
+
const a = {
|
|
3
4
|
category: "animations",
|
|
4
|
-
type: "container",
|
|
5
5
|
description: "Animation Group component is designed to animate its children.",
|
|
6
|
-
icon:
|
|
7
|
-
order:
|
|
6
|
+
icon: n,
|
|
7
|
+
order: 0,
|
|
8
8
|
label: "Animation Group",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
contentModel: {
|
|
10
|
+
category: "instance",
|
|
11
|
+
children: [
|
|
12
|
+
"instance",
|
|
13
|
+
i.AnimateText,
|
|
14
|
+
i.StaggerAnimation,
|
|
15
|
+
i.VideoAnimation
|
|
16
|
+
]
|
|
12
17
|
}
|
|
13
|
-
},
|
|
18
|
+
}, e = {
|
|
14
19
|
props: {
|
|
15
20
|
action: {
|
|
16
21
|
required: !1,
|
|
@@ -22,6 +27,6 @@ const o = {
|
|
|
22
27
|
initialProps: ["action"]
|
|
23
28
|
};
|
|
24
29
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
a as meta,
|
|
31
|
+
e as propsMeta
|
|
27
32
|
};
|
package/lib/animate-text.ws.js
CHANGED
|
@@ -1,29 +1,24 @@
|
|
|
1
|
-
import { TextAnimationIcon as
|
|
2
|
-
import {
|
|
1
|
+
import { TextAnimationIcon as o } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { div as t } from "@webstudio-is/sdk/normalize.css";
|
|
3
3
|
import { props as i } from "./__generated__/animate-text.props.js";
|
|
4
|
-
|
|
5
|
-
const p = {
|
|
4
|
+
const a = {
|
|
6
5
|
category: "animations",
|
|
7
|
-
type: "container",
|
|
8
6
|
description: "Text animation allows you to split text by char or by word to animate it.",
|
|
9
|
-
icon:
|
|
10
|
-
order:
|
|
7
|
+
icon: o,
|
|
8
|
+
order: 1,
|
|
11
9
|
label: "Text Animation",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
text: !1
|
|
17
|
-
}
|
|
18
|
-
],
|
|
10
|
+
contentModel: {
|
|
11
|
+
category: "none",
|
|
12
|
+
children: ["instance"]
|
|
13
|
+
},
|
|
19
14
|
presetStyle: {
|
|
20
|
-
div:
|
|
15
|
+
div: t
|
|
21
16
|
}
|
|
22
17
|
}, s = {
|
|
23
18
|
props: i,
|
|
24
19
|
initialProps: ["slidingWindow", "easing", "splitBy"]
|
|
25
20
|
};
|
|
26
21
|
export {
|
|
27
|
-
|
|
22
|
+
a as meta,
|
|
28
23
|
s as propsMeta
|
|
29
24
|
};
|
|
@@ -1,29 +1,24 @@
|
|
|
1
1
|
import { StaggerAnimationIcon as i } from "@webstudio-is/icons/svg";
|
|
2
|
-
import { animation as t } from "./shared/meta.js";
|
|
3
|
-
import { props as n } from "./__generated__/stagger-animation.props.js";
|
|
4
2
|
import { div as o } from "@webstudio-is/sdk/normalize.css";
|
|
5
|
-
|
|
3
|
+
import { props as n } from "./__generated__/stagger-animation.props.js";
|
|
4
|
+
const r = {
|
|
6
5
|
category: "animations",
|
|
7
|
-
type: "container",
|
|
8
6
|
description: "Stagger animation allows you to animate children elements with a sliding window.",
|
|
9
7
|
icon: i,
|
|
10
|
-
order:
|
|
8
|
+
order: 4,
|
|
11
9
|
label: "Stagger Animation",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
text: !1
|
|
17
|
-
}
|
|
18
|
-
],
|
|
10
|
+
contentModel: {
|
|
11
|
+
category: "none",
|
|
12
|
+
children: ["instance"]
|
|
13
|
+
},
|
|
19
14
|
presetStyle: {
|
|
20
15
|
div: o
|
|
21
16
|
}
|
|
22
|
-
},
|
|
17
|
+
}, s = {
|
|
23
18
|
props: n,
|
|
24
19
|
initialProps: ["slidingWindow", "easing"]
|
|
25
20
|
};
|
|
26
21
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
r as meta,
|
|
23
|
+
s as propsMeta
|
|
29
24
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { $ as i } from "@webstudio-is/template";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const p = {
|
|
3
|
+
import { animation as t } from "./shared/proxy.js";
|
|
4
|
+
const a = {
|
|
6
5
|
category: "animations",
|
|
7
6
|
description: "Video Animation",
|
|
8
7
|
order: 2,
|
|
9
|
-
|
|
10
|
-
template: /* @__PURE__ */ o(r.VideoAnimation, { children: /* @__PURE__ */ o(
|
|
8
|
+
template: /* @__PURE__ */ o(t.VideoAnimation, { children: /* @__PURE__ */ o(
|
|
11
9
|
i.Video,
|
|
12
10
|
{
|
|
13
11
|
preload: "auto",
|
|
@@ -19,5 +17,5 @@ const p = {
|
|
|
19
17
|
) })
|
|
20
18
|
};
|
|
21
19
|
export {
|
|
22
|
-
|
|
20
|
+
a as meta
|
|
23
21
|
};
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const a = {
|
|
5
|
-
type: "container",
|
|
1
|
+
import { PlayIcon as o } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { props as n } from "./__generated__/video-animation.props.js";
|
|
3
|
+
const i = {
|
|
6
4
|
icon: o,
|
|
7
5
|
label: "Video Animation",
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
]
|
|
15
|
-
}, m = {
|
|
16
|
-
props: i,
|
|
6
|
+
contentModel: {
|
|
7
|
+
category: "none",
|
|
8
|
+
children: ["instance"]
|
|
9
|
+
}
|
|
10
|
+
}, r = {
|
|
11
|
+
props: n,
|
|
17
12
|
initialProps: ["timeline"]
|
|
18
13
|
};
|
|
19
14
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
i as meta,
|
|
16
|
+
r as propsMeta
|
|
22
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-animation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.217.0",
|
|
4
4
|
"description": "Webstudio components for animation",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"nanostores": "^0.11.3",
|
|
50
50
|
"react-error-boundary": "^5.0.0",
|
|
51
51
|
"shallow-equal": "^3.1.0",
|
|
52
|
-
"@webstudio-is/css-engine": "0.
|
|
53
|
-
"@webstudio-is/icons": "0.
|
|
54
|
-
"@webstudio-is/sdk": "0.
|
|
55
|
-
"@webstudio-is/
|
|
52
|
+
"@webstudio-is/css-engine": "0.217.0",
|
|
53
|
+
"@webstudio-is/icons": "0.217.0",
|
|
54
|
+
"@webstudio-is/react-sdk": "0.217.0",
|
|
55
|
+
"@webstudio-is/sdk": "0.217.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/react": "^18.2.70",
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"vitest": "^3.0.8",
|
|
67
67
|
"zod": "^3.24.2",
|
|
68
68
|
"@webstudio-is/css-data": "0.0.0",
|
|
69
|
+
"@webstudio-is/sdk-cli": "^0.94.0",
|
|
69
70
|
"@webstudio-is/design-system": "0.0.0",
|
|
70
71
|
"@webstudio-is/generate-arg-types": "0.0.0",
|
|
71
|
-
"@webstudio-is/sdk-
|
|
72
|
-
"@webstudio-is/
|
|
73
|
-
"@webstudio-is/tsconfig": "1.0.7"
|
|
74
|
-
"@webstudio-is/template": "0.216.0"
|
|
72
|
+
"@webstudio-is/sdk-components-react": "0.217.0",
|
|
73
|
+
"@webstudio-is/template": "0.217.0",
|
|
74
|
+
"@webstudio-is/tsconfig": "1.0.7"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "vite build --config ../../vite.sdk-components.config.ts",
|