reacthub-pixitweenjs 0.2.109-alpha.5 → 0.2.109-alpha.7

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.
Files changed (38) hide show
  1. package/README.md +6 -0
  2. package/dist/assets/icon/transformericons/icons.d.ts +8 -0
  3. package/dist/components/PixiAudioSprite/PixiAudioSprite.d.ts +3 -0
  4. package/dist/components/PixiAudioSprite/PixiAudioSprite.stories.d.ts +4 -97
  5. package/dist/components/PixiGifSprite/PixiGifGsapSync.d.ts +3 -0
  6. package/dist/components/PixiGifSprite/PixiGifSprite.stories.d.ts +21 -11
  7. package/dist/components/PixiImageSprite/PixiImageSprite.d.ts +5 -1
  8. package/dist/components/PixiImageSprite/PixiImageSprite.stories.d.ts +23 -9
  9. package/dist/components/PixiLottieSprite/PixiLottieSprite.d.ts +3 -0
  10. package/dist/components/PixiLottieSprite/PixiLottieSprite.stories.d.ts +21 -11
  11. package/dist/components/PixiSVGSprite/PixiSvgPathSprite.d.ts +3 -0
  12. package/dist/components/PixiSVGSprite/PixiSvgPathSprite.stories.d.ts +19 -9
  13. package/dist/components/PixiSequence/PixiSequence.stories.d.ts +4 -4
  14. package/dist/components/PixiTextSprite/PixiTextSprite.d.ts +3 -0
  15. package/dist/components/PixiTextSprite/PixiTextSprite.stories.d.ts +19 -9
  16. package/dist/components/PixiUnifiedTransformer/PixiUnifiedTransformer.d.ts +26 -0
  17. package/dist/components/PixiUnifiedTransformer/index.d.ts +1 -0
  18. package/dist/components/PixiVideoSprite/PixiVideoSprite.d.ts +3 -0
  19. package/dist/components/PixiVideoSprite/PixiVideoSprite.stories.d.ts +24 -14
  20. package/dist/components/index.d.ts +1 -0
  21. package/dist/favicon.svg +41 -0
  22. package/dist/hocs/AbstractContainer.d.ts +16 -0
  23. package/dist/index.es.js +3198 -4488
  24. package/dist/index.umd.js +37 -37
  25. package/dist/pixitweenjs-logo-dark.svg +98 -0
  26. package/dist/pixitweenjs-logo.svg +97 -0
  27. package/dist/stories/Features/TimelineTest.stories.d.ts +3 -2
  28. package/package.json +8 -1
  29. package/dist/components/PixiTransformer/MenuIcons.d.ts +0 -40
  30. package/dist/components/PixiTransformer/MenuUtils.d.ts +0 -2
  31. package/dist/components/PixiTransformer/PixiColorPicker.d.ts +0 -14
  32. package/dist/components/PixiTransformer/PixiDropdownMenu.d.ts +0 -15
  33. package/dist/components/PixiTransformer/PixiMenuText.d.ts +0 -2
  34. package/dist/components/PixiTransformer/PixiTransformer.d.ts +0 -20
  35. package/dist/components/PixiTransformer/PixiTransformerMenu.d.ts +0 -9
  36. package/dist/components/PixiTransformer/Transformer.d.ts +0 -39
  37. package/dist/components/PixiTransformer/applyEventProps.d.ts +0 -10
  38. package/dist/components/PixiTransformer/index.d.ts +0 -1
@@ -1,5 +1,6 @@
1
1
  import { PixiBaseSpriteProps, ForwardedRefResponse } from '../../types/BaseProps';
2
2
  import * as React from "react";
3
+ import * as PIXI from "pixi.js";
3
4
  export interface PixiVideoSpriteProps extends PixiBaseSpriteProps {
4
5
  uniqueId: string;
5
6
  src: string;
@@ -17,6 +18,8 @@ export interface PixiVideoSpriteProps extends PixiBaseSpriteProps {
17
18
  applyTransformer?: boolean;
18
19
  onAnchorTransformationEnd?: (endData: any) => void;
19
20
  fps?: number;
21
+ onContainerRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
22
+ onSpriteRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
20
23
  }
21
24
  declare const PixiVideoSprite: React.ForwardRefExoticComponent<PixiVideoSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
22
25
  export default PixiVideoSprite;
@@ -1,21 +1,22 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
 
3
+ import * as React from "react";
3
4
  declare const meta: {
4
5
  title: string;
5
- component: import('react').ForwardRefExoticComponent<import('./PixiVideoSprite').PixiVideoSpriteProps & import('react').RefAttributes<import('../../types').ForwardedRefResponse | null>>;
6
+ component: React.ForwardRefExoticComponent<import('./PixiVideoSprite').PixiVideoSpriteProps & React.RefAttributes<import('../..').ForwardedRefResponse | null>>;
6
7
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
8
  tags: string[];
8
9
  argTypes: {
9
10
  uniqueId: {
10
- control: string;
11
+ control: "text";
11
12
  description: string;
12
13
  };
13
14
  src: {
14
- control: string;
15
+ control: "text";
15
16
  description: string;
16
17
  };
17
18
  transformation: {
18
- control: string;
19
+ control: "object";
19
20
  description: string;
20
21
  x: {
21
22
  control: string;
@@ -81,35 +82,35 @@ declare const meta: {
81
82
  };
82
83
  };
83
84
  applyTransformer: {
84
- control: string;
85
+ control: "boolean";
85
86
  description: string;
86
87
  };
87
88
  startAt: {
88
- control: string;
89
+ control: "number";
89
90
  description: string;
90
91
  };
91
92
  endAt: {
92
- control: string;
93
+ control: "number";
93
94
  description: string;
94
95
  };
95
96
  frameStartAt: {
96
- control: string;
97
+ control: "number";
97
98
  description: string;
98
99
  };
99
100
  frameEndAt: {
100
- control: string;
101
+ control: "number";
101
102
  description: string;
102
103
  };
103
104
  mute: {
104
- control: string;
105
+ control: "boolean";
105
106
  description: string;
106
107
  };
107
108
  locked: {
108
- control: string;
109
+ control: "boolean";
109
110
  description: string;
110
111
  };
111
112
  visible: {
112
- control: string;
113
+ control: "boolean";
113
114
  description: string;
114
115
  };
115
116
  onAnchorTransformationEnd: {
@@ -121,7 +122,15 @@ declare const meta: {
121
122
  description: string;
122
123
  };
123
124
  fps: {
124
- control: string;
125
+ control: "number";
126
+ description: string;
127
+ };
128
+ onContainerRefReady: {
129
+ action: string;
130
+ description: string;
131
+ };
132
+ onSpriteRefReady: {
133
+ action: string;
125
134
  description: string;
126
135
  };
127
136
  };
@@ -134,3 +143,4 @@ export declare const Filters: Story;
134
143
  export declare const SplitPosition: Story;
135
144
  export declare const SplitStartPos: Story;
136
145
  export declare const VideoFps: Story;
146
+ export declare const WithUnifiedTransformer: Story;
@@ -8,3 +8,4 @@ export * from './PixiAnimatedSprite';
8
8
  export * from './PixiSequence';
9
9
  export * from './PixiRemotionSprite';
10
10
  export * from './PixiLottieSprite';
11
+ export * from './PixiUnifiedTransformer';
@@ -0,0 +1,41 @@
1
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
2
+ <defs>
3
+ <!-- Gradient for the favicon -->
4
+ <linearGradient id="faviconGradient" x1="0%" y1="0%" x2="100%" y2="100%">
5
+ <stop offset="0%" style="stop-color:#4FC3F7;stop-opacity:1" />
6
+ <stop offset="100%" style="stop-color:#0288D1;stop-opacity:1" />
7
+ </linearGradient>
8
+ </defs>
9
+
10
+ <!-- Background circle -->
11
+ <circle cx="16" cy="16" r="15" fill="url(#faviconGradient)"/>
12
+
13
+ <!-- Film strip simplified -->
14
+ <g>
15
+ <!-- Main frame -->
16
+ <rect x="6" y="8" width="20" height="16" rx="2" fill="white" opacity="0.9"/>
17
+
18
+ <!-- Film holes - top -->
19
+ <rect x="7" y="9" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
20
+ <rect x="11" y="9" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
21
+ <rect x="15" y="9" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
22
+ <rect x="19" y="9" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
23
+ <rect x="23" y="9" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
24
+
25
+ <!-- Film holes - bottom -->
26
+ <rect x="7" y="21.5" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
27
+ <rect x="11" y="21.5" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
28
+ <rect x="15" y="21.5" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
29
+ <rect x="19" y="21.5" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
30
+ <rect x="23" y="21.5" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
31
+
32
+ <!-- Timeline bars inside -->
33
+ <rect x="8" y="13" width="6" height="1" rx="0.5" fill="url(#faviconGradient)" opacity="0.5"/>
34
+ <rect x="8" y="15.5" width="8" height="1" rx="0.5" fill="url(#faviconGradient)" opacity="0.5"/>
35
+ <rect x="8" y="18" width="5" height="1" rx="0.5" fill="url(#faviconGradient)" opacity="0.5"/>
36
+
37
+ <!-- Play button -->
38
+ <circle cx="20" cy="16" r="4" fill="url(#faviconGradient)" opacity="0.9"/>
39
+ <polygon points="19,14 19,18 23,16" fill="white"/>
40
+ </g>
41
+ </svg>
@@ -1,5 +1,6 @@
1
1
  import { PixiBaseSpriteProps, ForwardedRefResponse, containerScale } from '../types/BaseProps';
2
2
  import * as React from "react";
3
+ import * as PIXI from "pixi.js";
3
4
  interface AbstractContainerProps extends PixiBaseSpriteProps {
4
5
  ignoreTlForVideo?: boolean;
5
6
  isText?: boolean;
@@ -9,6 +10,21 @@ interface AbstractContainerProps extends PixiBaseSpriteProps {
9
10
  isTextEditMode?: boolean;
10
11
  handleDragWordWrap?: (width: number, containerScale: containerScale) => void;
11
12
  handleDragFontSize?: (width: number, fontSize: number, containerScale: containerScale) => void;
13
+ onDelete?: () => void;
14
+ onDuplicate?: () => void;
15
+ onBringToFront?: () => void;
16
+ onSendToBack?: () => void;
17
+ onLock?: () => void;
18
+ onUnlock?: () => void;
19
+ /**
20
+ * Called when the PIXI container ref is ready. Allows higher-level overlay transformers
21
+ * to target this element via its `uniqueId`.
22
+ */
23
+ onContainerRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
24
+ /**
25
+ * Called when the inner content group ref is ready (useful for text elements).
26
+ */
27
+ onSpriteRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
12
28
  }
13
29
  declare const AbstractContainer: React.ForwardRefExoticComponent<AbstractContainerProps & React.RefAttributes<ForwardedRefResponse | null>>;
14
30
  export default AbstractContainer;