@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.
@@ -0,0 +1,6 @@
1
+ const e = {
2
+ timeline: { required: !1, control: "boolean", type: "boolean" }
3
+ };
4
+ export {
5
+ e as props
6
+ };
package/lib/components.js CHANGED
@@ -1,8 +1,10 @@
1
- import { AnimateChildren as t } from "./animate-children.js";
2
- import { AnimateText as m } from "./animate-text.js";
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
- t as AnimateChildren,
6
- m as AnimateText,
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 r } from "./animate-text.ws.js";
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
- r as AnimateText,
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 t } from "./animate-children.ws.js";
2
- import { propsMeta as o } from "./animate-text.ws.js";
3
- import { propsMeta as m } from "./stagger-animation.ws.js";
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
- t as AnimateChildren,
6
- o as AnimateText,
7
- m as StaggerAnimation
6
+ r as AnimateChildren,
7
+ a as AnimateText,
8
+ i as StaggerAnimation,
9
+ s as VideoAnimation
8
10
  };
@@ -0,0 +1,6 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as e } from "react";
3
+ const f = () => e((r, o) => /* @__PURE__ */ t("div", { ref: o, ...r }));
4
+ export {
5
+ f as createProgressAnimation
6
+ };
@@ -0,0 +1,5 @@
1
+ import { createProxy as o } from "@webstudio-is/template";
2
+ const i = o("@webstudio-is/sdk-components-animation:");
3
+ export {
4
+ i as animation
5
+ };
package/lib/templates.js CHANGED
@@ -1 +1,4 @@
1
-
1
+ import { meta as e } from "./video-animation.template.js";
2
+ export {
3
+ e as VideoAnimation
4
+ };
@@ -0,0 +1,2 @@
1
+ import type { PropMeta } from "@webstudio-is/sdk";
2
+ export declare const props: Record<string, PropMeta>;
@@ -1,3 +1,4 @@
1
1
  export { AnimateChildren } from "./animate-children";
2
2
  export { AnimateText } from "./animate-text";
3
3
  export { StaggerAnimation } from "./stagger-animation";
4
+ export { VideoAnimation } from "./video-animation";
@@ -1,3 +1,4 @@
1
1
  export { meta as AnimateChildren } from "./animate-children.ws";
2
2
  export { meta as AnimateText } from "./animate-text.ws";
3
3
  export { meta as StaggerAnimation } from "./stagger-animation.ws";
4
+ export { meta as VideoAnimation } from "./video-animation.ws";
@@ -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)>;
@@ -1 +1 @@
1
- export {};
1
+ export { meta as VideoAnimation } from "./video-animation.template";
@@ -0,0 +1,5 @@
1
+ export declare const VideoAnimation: import("react").ForwardRefExoticComponent<{
2
+ children: React.ReactNode;
3
+ } & {
4
+ timeline?: boolean;
5
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { type TemplateMeta } from "@webstudio-is/template";
2
+ export declare const meta: TemplateMeta;
@@ -0,0 +1,3 @@
1
+ import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
2
+ export declare const meta: WsComponentMeta;
3
+ export declare const propsMeta: WsComponentPropsMeta;
@@ -0,0 +1,6 @@
1
+ import { createProgressAnimation as i } from "./shared/create-progress-animation.js";
2
+ const o = i(), a = "VideoAnimation";
3
+ o.displayName = a;
4
+ export {
5
+ o as VideoAnimation
6
+ };
@@ -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.210.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.210.0",
53
- "@webstudio-is/icons": "0.210.0",
54
- "@webstudio-is/react-sdk": "0.210.0",
55
- "@webstudio-is/sdk": "0.210.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/sdk-components-react": "0.210.0",
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": {