@webstudio-is/sdk-components-animation 0.218.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__/animate-text.props.js +6 -1
- package/lib/__generated__/stagger-animation.props.js +6 -1
- package/lib/animate-children.js +9 -9
- package/lib/animate-children.ws.js +4 -6
- package/lib/animate-text.ws.js +4 -8
- package/lib/stagger-animation.ws.js +6 -10
- package/lib/types/animate-children.d.ts +1 -1
- package/lib/types/animate-children.ws.d.ts +1 -2
- package/lib/types/animate-text.ws.d.ts +1 -2
- package/lib/types/stagger-animation.ws.d.ts +1 -2
- package/lib/types/video-animation.ws.d.ts +1 -2
- package/lib/video-animation.ws.js +6 -10
- package/package.json +9 -14
- package/lib/props.js +0 -10
- package/lib/types/props.d.ts +0 -4
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
const e = {
|
|
2
|
-
className: {
|
|
2
|
+
className: {
|
|
3
|
+
required: !1,
|
|
4
|
+
control: "text",
|
|
5
|
+
type: "string",
|
|
6
|
+
description: "Classes to which the element belongs"
|
|
7
|
+
},
|
|
3
8
|
easing: {
|
|
4
9
|
description: "Easing function applied within the sliding window.",
|
|
5
10
|
required: !1,
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
const e = {
|
|
2
|
-
className: {
|
|
2
|
+
className: {
|
|
3
|
+
required: !1,
|
|
4
|
+
control: "text",
|
|
5
|
+
type: "string",
|
|
6
|
+
description: "Classes to which the element belongs"
|
|
7
|
+
},
|
|
3
8
|
easing: {
|
|
4
9
|
description: "Easing function applied within the sliding window.",
|
|
5
10
|
required: !1,
|
package/lib/animate-children.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { animationCanPlayOnCanvasAttribute as o } from "@webstudio-is/react-sdk";
|
|
3
2
|
import { forwardRef as m } from "react";
|
|
3
|
+
import { animationCanPlayOnCanvasProperty as o } from "@webstudio-is/sdk/runtime";
|
|
4
4
|
const c = m(
|
|
5
|
-
({ debug:
|
|
5
|
+
({ debug: t = !1, action: n, ...i }, s) => /* @__PURE__ */ r("div", { ref: s, style: { display: "contents" }, ...i })
|
|
6
6
|
), a = "AnimateChildren";
|
|
7
7
|
c.displayName = a;
|
|
8
|
-
const
|
|
9
|
-
onNavigatorUnselect: (
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const e = "@webstudio-is/sdk-components-animation", h = {
|
|
9
|
+
onNavigatorUnselect: (t, n) => {
|
|
10
|
+
n.instancePath.length > 0 && n.instancePath[0].component === `${e}:${a}` && t.setMemoryProp(
|
|
11
|
+
n.instancePath[0],
|
|
12
12
|
o,
|
|
13
13
|
void 0
|
|
14
14
|
);
|
|
15
15
|
},
|
|
16
|
-
onNavigatorSelect: (
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
onNavigatorSelect: (t, n) => {
|
|
17
|
+
n.instancePath.length > 0 && n.instancePath[0].component === `${e}:${a}` && t.setMemoryProp(
|
|
18
|
+
n.instancePath[0],
|
|
19
19
|
o,
|
|
20
20
|
!0
|
|
21
21
|
);
|
|
@@ -14,8 +14,8 @@ const a = {
|
|
|
14
14
|
i.StaggerAnimation,
|
|
15
15
|
i.VideoAnimation
|
|
16
16
|
]
|
|
17
|
-
}
|
|
18
|
-
|
|
17
|
+
},
|
|
18
|
+
initialProps: ["action"],
|
|
19
19
|
props: {
|
|
20
20
|
action: {
|
|
21
21
|
required: !1,
|
|
@@ -23,10 +23,8 @@ const a = {
|
|
|
23
23
|
type: "animationAction",
|
|
24
24
|
description: "Animation Action"
|
|
25
25
|
}
|
|
26
|
-
}
|
|
27
|
-
initialProps: ["action"]
|
|
26
|
+
}
|
|
28
27
|
};
|
|
29
28
|
export {
|
|
30
|
-
a as meta
|
|
31
|
-
e as propsMeta
|
|
29
|
+
a as meta
|
|
32
30
|
};
|
package/lib/animate-text.ws.js
CHANGED
|
@@ -11,14 +11,10 @@ const a = {
|
|
|
11
11
|
category: "none",
|
|
12
12
|
children: ["instance"]
|
|
13
13
|
},
|
|
14
|
-
presetStyle: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}, s = {
|
|
18
|
-
props: i,
|
|
19
|
-
initialProps: ["slidingWindow", "easing", "splitBy"]
|
|
14
|
+
presetStyle: { div: t },
|
|
15
|
+
initialProps: ["slidingWindow", "easing", "splitBy"],
|
|
16
|
+
props: i
|
|
20
17
|
};
|
|
21
18
|
export {
|
|
22
|
-
a as meta
|
|
23
|
-
s as propsMeta
|
|
19
|
+
a as meta
|
|
24
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StaggerAnimationIcon as i } from "@webstudio-is/icons/svg";
|
|
2
|
-
import { div as
|
|
3
|
-
import { props as
|
|
2
|
+
import { div as n } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { props as o } from "./__generated__/stagger-animation.props.js";
|
|
4
4
|
const r = {
|
|
5
5
|
category: "animations",
|
|
6
6
|
description: "Stagger animation allows you to animate children elements with a sliding window.",
|
|
@@ -11,14 +11,10 @@ const r = {
|
|
|
11
11
|
category: "none",
|
|
12
12
|
children: ["instance"]
|
|
13
13
|
},
|
|
14
|
-
presetStyle: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}, s = {
|
|
18
|
-
props: n,
|
|
19
|
-
initialProps: ["slidingWindow", "easing"]
|
|
14
|
+
presetStyle: { div: n },
|
|
15
|
+
initialProps: ["slidingWindow", "easing"],
|
|
16
|
+
props: o
|
|
20
17
|
};
|
|
21
18
|
export {
|
|
22
|
-
r as meta
|
|
23
|
-
s as propsMeta
|
|
19
|
+
r as meta
|
|
24
20
|
};
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import { PlayIcon as o } from "@webstudio-is/icons/svg";
|
|
2
|
-
import { props as
|
|
3
|
-
import { div as
|
|
4
|
-
const
|
|
2
|
+
import { props as e } from "./__generated__/video-animation.props.js";
|
|
3
|
+
import { div as i } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
+
const m = {
|
|
5
5
|
icon: o,
|
|
6
6
|
label: "Video Animation",
|
|
7
7
|
contentModel: {
|
|
8
8
|
category: "none",
|
|
9
9
|
children: ["instance"]
|
|
10
10
|
},
|
|
11
|
-
presetStyle: {
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
}, m = {
|
|
15
|
-
props: t,
|
|
11
|
+
presetStyle: { div: i },
|
|
12
|
+
props: e,
|
|
16
13
|
initialProps: ["timeline"]
|
|
17
14
|
};
|
|
18
15
|
export {
|
|
19
|
-
|
|
20
|
-
m as propsMeta
|
|
16
|
+
m as meta
|
|
21
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.220.0",
|
|
4
4
|
"description": "Webstudio components for animation",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -24,11 +24,6 @@
|
|
|
24
24
|
"types": "./lib/types/metas.d.ts",
|
|
25
25
|
"import": "./lib/metas.js"
|
|
26
26
|
},
|
|
27
|
-
"./props": {
|
|
28
|
-
"webstudio": "./src/props.ts",
|
|
29
|
-
"types": "./lib/types/props.d.ts",
|
|
30
|
-
"import": "./lib/props.js"
|
|
31
|
-
},
|
|
32
27
|
"./hooks": {
|
|
33
28
|
"webstudio": "./src/hooks.ts",
|
|
34
29
|
"types": "./lib/types/hooks.d.ts",
|
|
@@ -49,10 +44,10 @@
|
|
|
49
44
|
"nanostores": "^0.11.3",
|
|
50
45
|
"react-error-boundary": "^5.0.0",
|
|
51
46
|
"shallow-equal": "^3.1.0",
|
|
52
|
-
"@webstudio-is/
|
|
53
|
-
"@webstudio-is/
|
|
54
|
-
"@webstudio-is/react-sdk": "0.
|
|
55
|
-
"@webstudio-is/sdk": "0.
|
|
47
|
+
"@webstudio-is/icons": "0.220.0",
|
|
48
|
+
"@webstudio-is/css-engine": "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
|
"@types/react": "^18.2.70",
|
|
@@ -63,14 +58,14 @@
|
|
|
63
58
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
64
59
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
65
60
|
"type-fest": "^4.37.0",
|
|
66
|
-
"vitest": "^3.
|
|
61
|
+
"vitest": "^3.1.2",
|
|
67
62
|
"zod": "^3.24.2",
|
|
68
|
-
"@webstudio-is/design-system": "0.0.0",
|
|
69
63
|
"@webstudio-is/css-data": "0.0.0",
|
|
64
|
+
"@webstudio-is/design-system": "0.0.0",
|
|
70
65
|
"@webstudio-is/generate-arg-types": "0.0.0",
|
|
71
66
|
"@webstudio-is/sdk-cli": "^0.94.0",
|
|
72
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
73
|
-
"@webstudio-is/template": "0.
|
|
67
|
+
"@webstudio-is/sdk-components-react": "0.220.0",
|
|
68
|
+
"@webstudio-is/template": "0.220.0",
|
|
74
69
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
75
70
|
},
|
|
76
71
|
"scripts": {
|
package/lib/props.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { propsMeta as r } from "./animate-children.ws.js";
|
|
2
|
-
import { propsMeta as a } from "./animate-text.ws.js";
|
|
3
|
-
import { propsMeta as i } from "./stagger-animation.ws.js";
|
|
4
|
-
import { propsMeta as s } from "./video-animation.ws.js";
|
|
5
|
-
export {
|
|
6
|
-
r as AnimateChildren,
|
|
7
|
-
a as AnimateText,
|
|
8
|
-
i as StaggerAnimation,
|
|
9
|
-
s as VideoAnimation
|
|
10
|
-
};
|
package/lib/types/props.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { propsMeta as AnimateChildren } from "./animate-children.ws";
|
|
2
|
-
export { propsMeta as AnimateText } from "./animate-text.ws";
|
|
3
|
-
export { propsMeta as StaggerAnimation } from "./stagger-animation.ws";
|
|
4
|
-
export { propsMeta as VideoAnimation } from "./video-animation.ws";
|