@webstudio-is/sdk-components-animation 0.205.0 → 0.207.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,29 @@
1
+ const e = {
2
+ charWindow: {
3
+ required: !1,
4
+ control: "number",
5
+ type: "number",
6
+ defaultValue: 5
7
+ },
8
+ easing: {
9
+ required: !1,
10
+ control: "select",
11
+ type: "string",
12
+ defaultValue: "linear",
13
+ options: [
14
+ "linear",
15
+ "easeIn",
16
+ "easeInCubic",
17
+ "easeInQuart",
18
+ "easeOut",
19
+ "easeOutCubic",
20
+ "easeOutQuart",
21
+ "ease",
22
+ "easeInOutCubic",
23
+ "easeInOutQuart"
24
+ ]
25
+ }
26
+ };
27
+ export {
28
+ e as props
29
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as i } from "react";
3
+ const t = i(
4
+ ({ charWindow: m = 5, easing: n = "linear", ...e }, r) => /* @__PURE__ */ a("div", { ref: r, ...e })
5
+ ), o = "AnimateText";
6
+ t.displayName = o;
7
+ export {
8
+ t as AnimateText
9
+ };
@@ -0,0 +1,17 @@
1
+ import { TextIcon as e } from "@webstudio-is/icons/svg";
2
+ import { props as o } from "./__generated__/animate-text.props.js";
3
+ const i = {
4
+ category: "general",
5
+ type: "container",
6
+ description: "Animate Text",
7
+ icon: e,
8
+ order: 6,
9
+ label: "Animate Text"
10
+ }, n = {
11
+ props: o,
12
+ initialProps: ["charWindow", "easing"]
13
+ };
14
+ export {
15
+ i as meta,
16
+ n as propsMeta
17
+ };
package/lib/components.js CHANGED
@@ -1,4 +1,6 @@
1
- import { AnimateChildren as i } from "./animate-children.js";
1
+ import { AnimateChildren as t } from "./animate-children.js";
2
+ import { AnimateText as o } from "./animate-text.js";
2
3
  export {
3
- i as AnimateChildren
4
+ t as AnimateChildren,
5
+ o as AnimateText
4
6
  };
package/lib/metas.js CHANGED
@@ -1,4 +1,6 @@
1
- import { meta as m } from "./scroll.ws.js";
1
+ import { meta as a } from "./animate-children.ws.js";
2
+ import { meta as r } from "./animate-text.ws.js";
2
3
  export {
3
- m as AnimateChildren
4
+ a as AnimateChildren,
5
+ r as AnimateText
4
6
  };
package/lib/props.js CHANGED
@@ -1,4 +1,6 @@
1
- import { propsMeta as a } from "./scroll.ws.js";
1
+ import { propsMeta as t } from "./animate-children.ws.js";
2
+ import { propsMeta as o } from "./animate-text.ws.js";
2
3
  export {
3
- a as AnimateChildren
4
+ t as AnimateChildren,
5
+ o as AnimateText
4
6
  };
@@ -0,0 +1,2 @@
1
+ import type { PropMeta } from "@webstudio-is/sdk";
2
+ export declare const props: Record<string, PropMeta>;
@@ -0,0 +1,2 @@
1
+ import type { PropMeta } from "@webstudio-is/sdk";
2
+ export declare const props: Record<string, PropMeta>;
@@ -0,0 +1,19 @@
1
+ declare const easings: {
2
+ linear: boolean;
3
+ easeIn: boolean;
4
+ easeInCubic: boolean;
5
+ easeInQuart: boolean;
6
+ easeOut: boolean;
7
+ easeOutCubic: boolean;
8
+ easeOutQuart: boolean;
9
+ ease: boolean;
10
+ easeInOutCubic: boolean;
11
+ easeInOutQuart: boolean;
12
+ };
13
+ type AnimateChildrenProps = {
14
+ charWindow?: number;
15
+ easing?: keyof typeof easings;
16
+ children: React.ReactNode;
17
+ };
18
+ export declare const AnimateText: import("react").ForwardRefExoticComponent<AnimateChildrenProps & import("react").RefAttributes<HTMLDivElement>>;
19
+ export {};
@@ -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;
@@ -1 +1,2 @@
1
1
  export { AnimateChildren } from "./animate-children";
2
+ export { AnimateText } from "./animate-text";
@@ -1 +1,2 @@
1
- export { meta as AnimateChildren } from "./scroll.ws";
1
+ export { meta as AnimateChildren } from "./animate-children.ws";
2
+ export { meta as AnimateText } from "./animate-text.ws";
@@ -1 +1,2 @@
1
- export { propsMeta as AnimateChildren } from "./scroll.ws";
1
+ export { propsMeta as AnimateChildren } from "./animate-children.ws";
2
+ export { propsMeta as AnimateText } from "./animate-text.ws";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-animation",
3
- "version": "0.205.0",
3
+ "version": "0.207.0",
4
4
  "description": "Webstudio components for animation",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -46,30 +46,31 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "change-case": "^5.4.4",
49
+ "nanostores": "^0.11.3",
49
50
  "react-error-boundary": "^5.0.0",
50
- "scroll-timeline-polyfill": "^1.1.0",
51
- "@webstudio-is/css-engine": "0.205.0",
52
- "@webstudio-is/react-sdk": "0.205.0",
53
- "@webstudio-is/icons": "0.205.0",
54
- "@webstudio-is/sdk": "0.205.0"
51
+ "shallow-equal": "^3.1.0",
52
+ "@webstudio-is/css-engine": "0.207.0",
53
+ "@webstudio-is/sdk": "0.207.0",
54
+ "@webstudio-is/react-sdk": "0.207.0",
55
+ "@webstudio-is/icons": "0.207.0"
55
56
  },
56
57
  "devDependencies": {
57
58
  "@types/react": "^18.2.70",
58
59
  "@types/react-dom": "^18.2.25",
59
- "@vitest/browser": "^3.0.4",
60
+ "@vitest/browser": "^3.0.8",
60
61
  "fast-glob": "^3.3.2",
61
62
  "playwright": "^1.50.1",
62
63
  "react": "18.3.0-canary-14898b6a9-20240318",
63
64
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
64
- "type-fest": "^4.32.0",
65
- "vitest": "^3.0.4",
65
+ "type-fest": "^4.37.0",
66
+ "vitest": "^3.0.8",
66
67
  "zod": "^3.22.4",
67
68
  "@webstudio-is/css-data": "0.0.0",
69
+ "@webstudio-is/design-system": "0.0.0",
68
70
  "@webstudio-is/generate-arg-types": "0.0.0",
69
71
  "@webstudio-is/sdk-cli": "^0.94.0",
70
- "@webstudio-is/design-system": "0.0.0",
71
- "@webstudio-is/sdk-components-react": "0.205.0",
72
- "@webstudio-is/template": "0.205.0",
72
+ "@webstudio-is/sdk-components-react": "0.207.0",
73
+ "@webstudio-is/template": "0.207.0",
73
74
  "@webstudio-is/tsconfig": "1.0.7"
74
75
  },
75
76
  "scripts": {
File without changes