@webstudio-is/sdk-components-animation 0.210.0 → 0.212.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__/video-animation.props.js +6 -0
- package/lib/components.js +7 -5
- package/lib/metas.js +5 -3
- package/lib/props.js +8 -6
- package/lib/shared/create-progress-animation.js +6 -0
- package/lib/shared/proxy.js +5 -0
- package/lib/templates.js +4 -1
- package/lib/types/__generated__/video-animation.props.d.ts +2 -0
- package/lib/types/components.d.ts +1 -0
- package/lib/types/metas.d.ts +1 -0
- package/lib/types/props.d.ts +1 -0
- package/lib/types/shared/create-progress-animation.d.ts +5 -0
- package/lib/types/shared/proxy.d.ts +16 -0
- package/lib/types/templates.d.ts +1 -1
- package/lib/types/video-animation.d.ts +5 -0
- package/lib/types/video-animation.template.d.ts +2 -0
- package/lib/types/video-animation.ws.d.ts +3 -0
- package/lib/video-animation.js +6 -0
- package/lib/video-animation.template.js +23 -0
- package/lib/video-animation.ws.js +22 -0
- package/package.json +7 -7
package/lib/components.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { AnimateChildren as
|
|
2
|
-
import { AnimateText as
|
|
1
|
+
import { AnimateChildren as r } from "./animate-children.js";
|
|
2
|
+
import { AnimateText as i } from "./animate-text.js";
|
|
3
3
|
import { StaggerAnimation as n } from "./stagger-animation.js";
|
|
4
|
+
import { VideoAnimation as x } from "./video-animation.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
n as StaggerAnimation
|
|
6
|
+
r as AnimateChildren,
|
|
7
|
+
i as AnimateText,
|
|
8
|
+
n as StaggerAnimation,
|
|
9
|
+
x as VideoAnimation
|
|
8
10
|
};
|
package/lib/metas.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { meta as a } from "./animate-children.ws.js";
|
|
2
|
-
import { meta as
|
|
2
|
+
import { meta as o } from "./animate-text.ws.js";
|
|
3
3
|
import { meta as i } from "./stagger-animation.ws.js";
|
|
4
|
+
import { meta as x } from "./video-animation.ws.js";
|
|
4
5
|
export {
|
|
5
6
|
a as AnimateChildren,
|
|
6
|
-
|
|
7
|
-
i as StaggerAnimation
|
|
7
|
+
o as AnimateText,
|
|
8
|
+
i as StaggerAnimation,
|
|
9
|
+
x as VideoAnimation
|
|
8
10
|
};
|
package/lib/props.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { propsMeta as
|
|
2
|
-
import { propsMeta as
|
|
3
|
-
import { propsMeta as
|
|
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";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
r as AnimateChildren,
|
|
7
|
+
a as AnimateText,
|
|
8
|
+
i as StaggerAnimation,
|
|
9
|
+
s as VideoAnimation
|
|
8
10
|
};
|
package/lib/templates.js
CHANGED
package/lib/types/metas.d.ts
CHANGED
package/lib/types/props.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { propsMeta as AnimateChildren } from "./animate-children.ws";
|
|
2
2
|
export { propsMeta as AnimateText } from "./animate-text.ws";
|
|
3
3
|
export { propsMeta as StaggerAnimation } from "./stagger-animation.ws";
|
|
4
|
+
export { propsMeta as VideoAnimation } from "./video-animation.ws";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type ProgressAnimationProps<T extends Record<string, unknown> = {}> = {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
} & T;
|
|
4
|
+
export declare const createProgressAnimation: <T extends Record<string, unknown>>() => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<ProgressAnimationProps<T>> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const animation: Record<string, {
|
|
2
|
+
displayName: string;
|
|
3
|
+
} & ((props: Record<string, unknown> & Record<`${string}:expression`, string> & {
|
|
4
|
+
"ws:id"?: string;
|
|
5
|
+
"ws:label"?: string;
|
|
6
|
+
"ws:tag"?: string;
|
|
7
|
+
"ws:style"?: import("@webstudio-is/template").TemplateStyleDecl[];
|
|
8
|
+
"ws:show"?: boolean | {
|
|
9
|
+
chunks: string[];
|
|
10
|
+
variables: Array<import("@webstudio-is/template").Variable | import("@webstudio-is/template").Parameter | import("@webstudio-is/template").ResourceValue>;
|
|
11
|
+
};
|
|
12
|
+
children?: import("react").ReactNode | {
|
|
13
|
+
chunks: string[];
|
|
14
|
+
variables: Array<import("@webstudio-is/template").Variable | import("@webstudio-is/template").Parameter | import("@webstudio-is/template").ResourceValue>;
|
|
15
|
+
} | import("@webstudio-is/template").PlaceholderValue;
|
|
16
|
+
}) => import("react").ReactNode)>;
|
package/lib/types/templates.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { meta as VideoAnimation } from "./video-animation.template";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { $ as i } from "@webstudio-is/template";
|
|
3
|
+
import { YoutubeIcon as t } from "@webstudio-is/icons/svg";
|
|
4
|
+
import { animation as r } from "./shared/proxy.js";
|
|
5
|
+
const p = {
|
|
6
|
+
category: "animations",
|
|
7
|
+
description: "Video Animation",
|
|
8
|
+
order: 2,
|
|
9
|
+
icon: t,
|
|
10
|
+
template: /* @__PURE__ */ o(r.VideoAnimation, { children: /* @__PURE__ */ o(
|
|
11
|
+
i.Video,
|
|
12
|
+
{
|
|
13
|
+
preload: "auto",
|
|
14
|
+
autoPlay: !0,
|
|
15
|
+
muted: !0,
|
|
16
|
+
playsInline: !0,
|
|
17
|
+
crossOrigin: "anonymous"
|
|
18
|
+
}
|
|
19
|
+
) })
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
p as meta
|
|
23
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Youtube1cIcon as o } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { animation as t } from "./shared/meta.js";
|
|
3
|
+
import { props as i } from "./__generated__/video-animation.props.js";
|
|
4
|
+
const a = {
|
|
5
|
+
type: "container",
|
|
6
|
+
icon: o,
|
|
7
|
+
label: "Video Animation",
|
|
8
|
+
constraints: [
|
|
9
|
+
{ relation: "parent", component: { $eq: t.AnimateChildren } },
|
|
10
|
+
{
|
|
11
|
+
relation: "child",
|
|
12
|
+
text: !1
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}, m = {
|
|
16
|
+
props: i,
|
|
17
|
+
initialProps: ["timeline"]
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
a as meta,
|
|
21
|
+
m as propsMeta
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-animation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.212.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/react-sdk": "0.
|
|
55
|
-
"@webstudio-is/sdk": "0.
|
|
52
|
+
"@webstudio-is/css-engine": "0.212.0",
|
|
53
|
+
"@webstudio-is/icons": "0.212.0",
|
|
54
|
+
"@webstudio-is/react-sdk": "0.212.0",
|
|
55
|
+
"@webstudio-is/sdk": "0.212.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/react": "^18.2.70",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"zod": "^3.24.2",
|
|
68
68
|
"@webstudio-is/css-data": "0.0.0",
|
|
69
69
|
"@webstudio-is/design-system": "0.0.0",
|
|
70
|
+
"@webstudio-is/sdk-components-react": "0.212.0",
|
|
70
71
|
"@webstudio-is/sdk-cli": "^0.94.0",
|
|
71
72
|
"@webstudio-is/generate-arg-types": "0.0.0",
|
|
72
|
-
"@webstudio-is/
|
|
73
|
-
"@webstudio-is/template": "0.210.0",
|
|
73
|
+
"@webstudio-is/template": "0.212.0",
|
|
74
74
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|