@webstudio-is/sdk-components-animation 0.217.0 → 0.219.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.
@@ -1,4 +1,10 @@
1
1
  const e = {
2
+ className: {
3
+ required: !1,
4
+ control: "text",
5
+ type: "string",
6
+ description: "Classes to which the element belongs"
7
+ },
2
8
  easing: {
3
9
  description: "Easing function applied within the sliding window.",
4
10
  required: !1,
@@ -1,4 +1,10 @@
1
1
  const e = {
2
+ className: {
3
+ required: !1,
4
+ control: "text",
5
+ type: "string",
6
+ description: "Classes to which the element belongs"
7
+ },
2
8
  easing: {
3
9
  description: "Easing function applied within the sliding window.",
4
10
  required: !1,
@@ -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: n = !1, action: t, ...e }, s) => /* @__PURE__ */ r("div", { ref: s, style: { display: "contents" }, ...e })
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 i = "@webstudio-is/sdk-components-animation", h = {
9
- onNavigatorUnselect: (n, t) => {
10
- t.instancePath.length > 0 && t.instancePath[0].component === `${i}:${a}` && n.setMemoryProp(
11
- t.instancePath[0],
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: (n, t) => {
17
- t.instancePath.length > 0 && t.instancePath[0].component === `${i}:${a}` && n.setMemoryProp(
18
- t.instancePath[0],
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
  );
@@ -1,4 +1,4 @@
1
- import { type Hook } from "@webstudio-is/react-sdk";
1
+ import type { Hook } from "@webstudio-is/react-sdk";
2
2
  import type { AnimationAction } from "@webstudio-is/sdk";
3
3
  type ScrollProps = {
4
4
  debug?: boolean;
@@ -1,17 +1,21 @@
1
1
  import { PlayIcon as o } from "@webstudio-is/icons/svg";
2
- import { props as n } from "./__generated__/video-animation.props.js";
3
- const i = {
2
+ import { props as t } from "./__generated__/video-animation.props.js";
3
+ import { div as e } from "@webstudio-is/sdk/normalize.css";
4
+ const p = {
4
5
  icon: o,
5
6
  label: "Video Animation",
6
7
  contentModel: {
7
8
  category: "none",
8
9
  children: ["instance"]
10
+ },
11
+ presetStyle: {
12
+ div: e
9
13
  }
10
- }, r = {
11
- props: n,
14
+ }, m = {
15
+ props: t,
12
16
  initialProps: ["timeline"]
13
17
  };
14
18
  export {
15
- i as meta,
16
- r as propsMeta
19
+ p as meta,
20
+ m as propsMeta
17
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-animation",
3
- "version": "0.217.0",
3
+ "version": "0.219.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.217.0",
53
- "@webstudio-is/icons": "0.217.0",
54
- "@webstudio-is/react-sdk": "0.217.0",
55
- "@webstudio-is/sdk": "0.217.0"
52
+ "@webstudio-is/css-engine": "0.219.0",
53
+ "@webstudio-is/icons": "0.219.0",
54
+ "@webstudio-is/sdk": "0.219.0",
55
+ "@webstudio-is/react-sdk": "0.219.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/react": "^18.2.70",
@@ -63,15 +63,15 @@
63
63
  "react": "18.3.0-canary-14898b6a9-20240318",
64
64
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
65
65
  "type-fest": "^4.37.0",
66
- "vitest": "^3.0.8",
66
+ "vitest": "^3.1.2",
67
67
  "zod": "^3.24.2",
68
68
  "@webstudio-is/css-data": "0.0.0",
69
- "@webstudio-is/sdk-cli": "^0.94.0",
70
69
  "@webstudio-is/design-system": "0.0.0",
71
70
  "@webstudio-is/generate-arg-types": "0.0.0",
72
- "@webstudio-is/sdk-components-react": "0.217.0",
73
- "@webstudio-is/template": "0.217.0",
74
- "@webstudio-is/tsconfig": "1.0.7"
71
+ "@webstudio-is/sdk-cli": "^0.94.0",
72
+ "@webstudio-is/sdk-components-react": "0.219.0",
73
+ "@webstudio-is/tsconfig": "1.0.7",
74
+ "@webstudio-is/template": "0.219.0"
75
75
  },
76
76
  "scripts": {
77
77
  "build": "vite build --config ../../vite.sdk-components.config.ts",