reacthub-pixitweenjs 0.2.107-alpha.11 → 0.2.107-alpha.111
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/LICENSE.md +21 -0
- package/README.md +35 -14
- package/dist/.gitkeep +0 -0
- package/dist/components/PixiAudioSprite/PixiAudioSprite.d.ts +4 -3
- package/dist/components/PixiAudioSprite/PixiAudioSprite.stories.d.ts +55 -12
- package/dist/components/PixiAudioSprite/useAudioVisualizer.d.ts +18 -0
- package/dist/components/PixiAudioSprite/wave-config.d.ts +4 -0
- package/dist/components/PixiGifSprite/PixiGifSprite.stories.d.ts +2 -1
- package/dist/components/PixiGifSprite/index.d.ts +2 -2
- package/dist/components/PixiImageSprite/PixiImageSprite.stories.d.ts +3 -1
- package/dist/components/PixiLottieSprite/PixiLottieSprite.d.ts +14 -0
- package/dist/components/PixiLottieSprite/PixiLottieSprite.stories.d.ts +149 -0
- package/dist/components/PixiLottieSprite/index.d.ts +1 -0
- package/dist/components/PixiRemotionSprite/PixiRemotionSprite.d.ts +26 -0
- package/dist/components/PixiRemotionSprite/index.d.ts +1 -0
- package/dist/components/PixiSVGSprite/PixiSvgPathSprite.d.ts +4 -1
- package/dist/components/PixiSVGSprite/PixiSvgPathSprite.stories.d.ts +1 -1
- package/dist/components/PixiTextSprite/PixiTextSprite.d.ts +3 -1
- package/dist/components/PixiTextSprite/PixiTextSprite.stories.d.ts +2 -1
- package/dist/components/PixiTransformer/MenuIcons.d.ts +40 -0
- package/dist/components/PixiTransformer/MenuUtils.d.ts +2 -0
- package/dist/components/PixiTransformer/PixiColorPicker.d.ts +14 -0
- package/dist/components/PixiTransformer/PixiDropdownMenu.d.ts +16 -0
- package/dist/components/PixiTransformer/PixiMenuText.d.ts +2 -0
- package/dist/components/PixiTransformer/PixiTransformer.d.ts +2 -1
- package/dist/components/PixiTransformer/PixiTransformerMenu.d.ts +9 -0
- package/dist/components/PixiVideoSprite/PixiVideoCanvasSync.d.ts +26 -0
- package/dist/components/PixiVideoSprite/PixiVideoSprite.d.ts +1 -0
- package/dist/components/PixiVideoSprite/PixiVideoSprite.stories.d.ts +6 -1
- package/dist/components/PixiVideoSprite/index.d.ts +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/hocs/AbstractContainer.d.ts +3 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDebounce.d.ts +2 -0
- package/dist/hooks/useDeepEffect.d.ts +2 -0
- package/dist/hooks/useGsapEffect.d.ts +3 -3
- package/dist/hooks/withEffectsHook.d.ts +1 -0
- package/dist/hooks/withFiltersHook.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +21206 -13526
- package/dist/index.umd.js +217 -190
- package/dist/providers/AudioContextProvider.d.ts +12 -0
- package/dist/providers/GsapPixieContextProvider.d.ts +3 -0
- package/dist/stories/Features/TimelineAnimations.d.ts +15 -0
- package/dist/stories/Features/TimelineTest.stories.d.ts +1 -1
- package/dist/stories/Features/common.tests.d.ts +331 -0
- package/dist/types/Animations.d.ts +34 -1
- package/dist/types/BaseProps.d.ts +18 -6
- package/dist/types/Effects.d.ts +9 -0
- package/dist/types/transformation.d.ts +1 -0
- package/dist/utils/GsapAnims.d.ts +2 -0
- package/dist/utils/isRemoteAsset.d.ts +1 -0
- package/package.json +11 -3
- /package/dist/components/PixiGifSprite/{PixiGifSprite.d.ts → PixiGifGsapSync.d.ts} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type WebAudioContextType = {
|
|
3
|
+
audioContextRef: React.MutableRefObject<AudioContext>;
|
|
4
|
+
analyserRef: React.MutableRefObject<AnalyserNode | undefined>;
|
|
5
|
+
gainNodeRef: React.MutableRefObject<GainNode | undefined>;
|
|
6
|
+
hasAudioContext: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const WebAudioContext: React.Context<WebAudioContextType>;
|
|
9
|
+
export type AudioContextProviderProps = {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export declare const AudioContextProvider: ({ children, }: AudioContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,6 +15,8 @@ interface GsapPixieContextProps {
|
|
|
15
15
|
setTotalDuration?: React.Dispatch<React.SetStateAction<number>>;
|
|
16
16
|
reverseModeRef: React.MutableRefObject<boolean>;
|
|
17
17
|
dragModeRef: React.MutableRefObject<boolean>;
|
|
18
|
+
isRemotion: boolean;
|
|
19
|
+
setIsRemotion: React.Dispatch<React.SetStateAction<boolean>>;
|
|
18
20
|
}
|
|
19
21
|
declare const GsapPixieContext: React.Context<GsapPixieContextProps>;
|
|
20
22
|
declare const Events: {
|
|
@@ -38,6 +40,7 @@ declare const Events: {
|
|
|
38
40
|
TRANSFORMER_DRAG_END: string;
|
|
39
41
|
REVERSE_MODE_START: string;
|
|
40
42
|
REVERSE_MODE_END: string;
|
|
43
|
+
FONTS_LOADED: string;
|
|
41
44
|
};
|
|
42
45
|
declare const GsapPixieContextProvider: React.FC<{
|
|
43
46
|
children: React.ReactNode;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare enum SpriteType {
|
|
3
|
+
Image = "Image",
|
|
4
|
+
Gif = "Gif",
|
|
5
|
+
Video = "Video"
|
|
6
|
+
}
|
|
7
|
+
export interface TimelineTestProps {
|
|
8
|
+
startAt: number;
|
|
9
|
+
endAt: number;
|
|
10
|
+
}
|
|
11
|
+
export interface TimelineProps {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
sequences: TimelineTestProps[];
|
|
14
|
+
}
|
|
15
|
+
export declare const TimelineAnimationTest: (props: TimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -78,3 +78,334 @@ export declare const audioProps: {
|
|
|
78
78
|
mute: boolean;
|
|
79
79
|
speed: number;
|
|
80
80
|
};
|
|
81
|
+
export declare const videoEditorAssets: ({
|
|
82
|
+
visible: boolean;
|
|
83
|
+
textValue: string;
|
|
84
|
+
src: string;
|
|
85
|
+
start: number;
|
|
86
|
+
isVideo: boolean;
|
|
87
|
+
mute: boolean;
|
|
88
|
+
title: string;
|
|
89
|
+
type: string;
|
|
90
|
+
transformation: {
|
|
91
|
+
strokeWidth: number;
|
|
92
|
+
rotate: number;
|
|
93
|
+
shadowOffsetX: number;
|
|
94
|
+
shadowOffsetY: number;
|
|
95
|
+
toCenter: boolean;
|
|
96
|
+
color: string;
|
|
97
|
+
shadowBlur: number;
|
|
98
|
+
blurRadius: number;
|
|
99
|
+
blurEnabled: boolean;
|
|
100
|
+
scale: number[];
|
|
101
|
+
stroke: null;
|
|
102
|
+
animation: string;
|
|
103
|
+
effect: string;
|
|
104
|
+
x: number;
|
|
105
|
+
width: number;
|
|
106
|
+
y: number;
|
|
107
|
+
opacity: number;
|
|
108
|
+
colorCorrection: {
|
|
109
|
+
reset: boolean;
|
|
110
|
+
};
|
|
111
|
+
shadowColor: null;
|
|
112
|
+
shadowEnabled: boolean;
|
|
113
|
+
height: number;
|
|
114
|
+
zIndex: number;
|
|
115
|
+
align?: undefined;
|
|
116
|
+
fontFamily?: undefined;
|
|
117
|
+
grayscaleEnabled?: undefined;
|
|
118
|
+
placeholder?: undefined;
|
|
119
|
+
fontWeight?: undefined;
|
|
120
|
+
textTransform?: undefined;
|
|
121
|
+
textValue?: undefined;
|
|
122
|
+
rotation?: undefined;
|
|
123
|
+
letterSpacing?: undefined;
|
|
124
|
+
textDecoration?: undefined;
|
|
125
|
+
brightnessEnabled?: undefined;
|
|
126
|
+
fontStyle?: undefined;
|
|
127
|
+
fill?: undefined;
|
|
128
|
+
brightness?: undefined;
|
|
129
|
+
fontSize?: undefined;
|
|
130
|
+
lineHeight?: undefined;
|
|
131
|
+
sepiaEnabled?: undefined;
|
|
132
|
+
};
|
|
133
|
+
frameEndAt: number;
|
|
134
|
+
droptype: string;
|
|
135
|
+
path: string;
|
|
136
|
+
name: string;
|
|
137
|
+
frameStartAt: number;
|
|
138
|
+
end: number;
|
|
139
|
+
isAudio: boolean;
|
|
140
|
+
id: string;
|
|
141
|
+
locked: boolean;
|
|
142
|
+
value: string;
|
|
143
|
+
scrubberRow: number;
|
|
144
|
+
uniqueId: string;
|
|
145
|
+
timestamp: number;
|
|
146
|
+
clipId: string;
|
|
147
|
+
s3Url?: undefined;
|
|
148
|
+
fileName?: undefined;
|
|
149
|
+
isAudioDetached?: undefined;
|
|
150
|
+
duration?: undefined;
|
|
151
|
+
thumbUrl?: undefined;
|
|
152
|
+
height?: undefined;
|
|
153
|
+
reducerType?: undefined;
|
|
154
|
+
frames?: undefined;
|
|
155
|
+
s3Key?: undefined;
|
|
156
|
+
width?: undefined;
|
|
157
|
+
projectId?: undefined;
|
|
158
|
+
user?: undefined;
|
|
159
|
+
pageId?: undefined;
|
|
160
|
+
fontStyle?: undefined;
|
|
161
|
+
text?: undefined;
|
|
162
|
+
} | {
|
|
163
|
+
s3Url: string;
|
|
164
|
+
fileName: string;
|
|
165
|
+
type: string;
|
|
166
|
+
isAudioDetached: boolean;
|
|
167
|
+
duration: number;
|
|
168
|
+
frameStartAt: number;
|
|
169
|
+
end: number;
|
|
170
|
+
id: string;
|
|
171
|
+
thumbUrl: string;
|
|
172
|
+
locked: boolean;
|
|
173
|
+
scrubberRow: number;
|
|
174
|
+
height: number;
|
|
175
|
+
timestamp: number;
|
|
176
|
+
reducerType: string;
|
|
177
|
+
visible: boolean;
|
|
178
|
+
frames: null[];
|
|
179
|
+
src: string;
|
|
180
|
+
start: number;
|
|
181
|
+
isVideo: boolean;
|
|
182
|
+
mute: boolean;
|
|
183
|
+
transformation: {
|
|
184
|
+
strokeWidth: number;
|
|
185
|
+
rotate: number;
|
|
186
|
+
shadowOffsetX: number;
|
|
187
|
+
shadowOffsetY: number;
|
|
188
|
+
toCenter: boolean;
|
|
189
|
+
shadowBlur: number;
|
|
190
|
+
blurRadius: number;
|
|
191
|
+
blurEnabled: boolean;
|
|
192
|
+
scale: number[];
|
|
193
|
+
stroke: null;
|
|
194
|
+
animation: string;
|
|
195
|
+
effect: string;
|
|
196
|
+
width: number;
|
|
197
|
+
x: number;
|
|
198
|
+
y: number;
|
|
199
|
+
opacity: number;
|
|
200
|
+
colorCorrection: {
|
|
201
|
+
reset: boolean;
|
|
202
|
+
};
|
|
203
|
+
shadowColor: null;
|
|
204
|
+
shadowEnabled: boolean;
|
|
205
|
+
height: number;
|
|
206
|
+
zIndex: number;
|
|
207
|
+
color?: undefined;
|
|
208
|
+
align?: undefined;
|
|
209
|
+
fontFamily?: undefined;
|
|
210
|
+
grayscaleEnabled?: undefined;
|
|
211
|
+
placeholder?: undefined;
|
|
212
|
+
fontWeight?: undefined;
|
|
213
|
+
textTransform?: undefined;
|
|
214
|
+
textValue?: undefined;
|
|
215
|
+
rotation?: undefined;
|
|
216
|
+
letterSpacing?: undefined;
|
|
217
|
+
textDecoration?: undefined;
|
|
218
|
+
brightnessEnabled?: undefined;
|
|
219
|
+
fontStyle?: undefined;
|
|
220
|
+
fill?: undefined;
|
|
221
|
+
brightness?: undefined;
|
|
222
|
+
fontSize?: undefined;
|
|
223
|
+
lineHeight?: undefined;
|
|
224
|
+
sepiaEnabled?: undefined;
|
|
225
|
+
};
|
|
226
|
+
frameEndAt: number;
|
|
227
|
+
droptype: string;
|
|
228
|
+
s3Key: string;
|
|
229
|
+
name: string;
|
|
230
|
+
width: number;
|
|
231
|
+
isAudio: boolean;
|
|
232
|
+
projectId: string;
|
|
233
|
+
user: string;
|
|
234
|
+
uniqueId: string;
|
|
235
|
+
clipId: string;
|
|
236
|
+
textValue?: undefined;
|
|
237
|
+
title?: undefined;
|
|
238
|
+
path?: undefined;
|
|
239
|
+
value?: undefined;
|
|
240
|
+
pageId?: undefined;
|
|
241
|
+
fontStyle?: undefined;
|
|
242
|
+
text?: undefined;
|
|
243
|
+
} | {
|
|
244
|
+
visible: boolean;
|
|
245
|
+
textValue: string;
|
|
246
|
+
start: number;
|
|
247
|
+
isVideo: boolean;
|
|
248
|
+
mute: boolean;
|
|
249
|
+
pageId: string;
|
|
250
|
+
transformation: {
|
|
251
|
+
strokeWidth: number;
|
|
252
|
+
shadowOffsetX: number;
|
|
253
|
+
rotate: number;
|
|
254
|
+
shadowOffsetY: number;
|
|
255
|
+
toCenter: boolean;
|
|
256
|
+
color: string;
|
|
257
|
+
shadowBlur: number;
|
|
258
|
+
blurRadius: number;
|
|
259
|
+
blurEnabled: boolean;
|
|
260
|
+
scale: number[];
|
|
261
|
+
align: string;
|
|
262
|
+
fontFamily: string;
|
|
263
|
+
grayscaleEnabled: boolean;
|
|
264
|
+
placeholder: string;
|
|
265
|
+
shadowColor: null;
|
|
266
|
+
fontWeight: string;
|
|
267
|
+
height: number;
|
|
268
|
+
textTransform: string;
|
|
269
|
+
zIndex: number;
|
|
270
|
+
textValue: string;
|
|
271
|
+
rotation: number;
|
|
272
|
+
letterSpacing: number;
|
|
273
|
+
textDecoration: string;
|
|
274
|
+
brightnessEnabled: boolean;
|
|
275
|
+
fontStyle: string;
|
|
276
|
+
fill: string;
|
|
277
|
+
stroke: null;
|
|
278
|
+
animation: string;
|
|
279
|
+
brightness: number;
|
|
280
|
+
effect: string;
|
|
281
|
+
x: number;
|
|
282
|
+
width: number;
|
|
283
|
+
y: number;
|
|
284
|
+
fontSize: number;
|
|
285
|
+
lineHeight: number;
|
|
286
|
+
opacity: number;
|
|
287
|
+
colorCorrection: {
|
|
288
|
+
reset: boolean;
|
|
289
|
+
};
|
|
290
|
+
shadowEnabled: boolean;
|
|
291
|
+
sepiaEnabled: boolean;
|
|
292
|
+
};
|
|
293
|
+
fontStyle: {
|
|
294
|
+
fontSize: number;
|
|
295
|
+
lineHeight: number;
|
|
296
|
+
};
|
|
297
|
+
frameEndAt: number;
|
|
298
|
+
droptype: string;
|
|
299
|
+
frameStartAt: number;
|
|
300
|
+
end: number;
|
|
301
|
+
isAudio: boolean;
|
|
302
|
+
id: string;
|
|
303
|
+
text: string;
|
|
304
|
+
locked: boolean;
|
|
305
|
+
scrubberRow: number;
|
|
306
|
+
uniqueId: string;
|
|
307
|
+
timestamp: number;
|
|
308
|
+
clipId: string;
|
|
309
|
+
src?: undefined;
|
|
310
|
+
title?: undefined;
|
|
311
|
+
type?: undefined;
|
|
312
|
+
path?: undefined;
|
|
313
|
+
name?: undefined;
|
|
314
|
+
value?: undefined;
|
|
315
|
+
s3Url?: undefined;
|
|
316
|
+
fileName?: undefined;
|
|
317
|
+
isAudioDetached?: undefined;
|
|
318
|
+
duration?: undefined;
|
|
319
|
+
thumbUrl?: undefined;
|
|
320
|
+
height?: undefined;
|
|
321
|
+
reducerType?: undefined;
|
|
322
|
+
frames?: undefined;
|
|
323
|
+
s3Key?: undefined;
|
|
324
|
+
width?: undefined;
|
|
325
|
+
projectId?: undefined;
|
|
326
|
+
user?: undefined;
|
|
327
|
+
} | {
|
|
328
|
+
visible: boolean;
|
|
329
|
+
textValue: string;
|
|
330
|
+
start: number;
|
|
331
|
+
isVideo: boolean;
|
|
332
|
+
mute: boolean;
|
|
333
|
+
pageId: string;
|
|
334
|
+
transformation: {
|
|
335
|
+
strokeWidth: number;
|
|
336
|
+
shadowOffsetX: number;
|
|
337
|
+
rotate: number;
|
|
338
|
+
shadowOffsetY: number;
|
|
339
|
+
toCenter: boolean;
|
|
340
|
+
color: string;
|
|
341
|
+
shadowBlur: number;
|
|
342
|
+
blurRadius: number;
|
|
343
|
+
blurEnabled: boolean;
|
|
344
|
+
scale: number[];
|
|
345
|
+
align: string;
|
|
346
|
+
fontFamily: string;
|
|
347
|
+
grayscaleEnabled: boolean;
|
|
348
|
+
placeholder: string;
|
|
349
|
+
shadowColor: null;
|
|
350
|
+
fontWeight: string;
|
|
351
|
+
height: number;
|
|
352
|
+
textTransform: string;
|
|
353
|
+
zIndex: number;
|
|
354
|
+
rotation: number;
|
|
355
|
+
letterSpacing: number;
|
|
356
|
+
textDecoration: string;
|
|
357
|
+
brightnessEnabled: boolean;
|
|
358
|
+
fontStyle: string;
|
|
359
|
+
fill: string;
|
|
360
|
+
stroke: null;
|
|
361
|
+
animation: string;
|
|
362
|
+
brightness: number;
|
|
363
|
+
effect: string;
|
|
364
|
+
x: number;
|
|
365
|
+
width: number;
|
|
366
|
+
y: number;
|
|
367
|
+
fontSize: number;
|
|
368
|
+
lineHeight: number;
|
|
369
|
+
opacity: number;
|
|
370
|
+
colorCorrection: {
|
|
371
|
+
reset: boolean;
|
|
372
|
+
};
|
|
373
|
+
shadowEnabled: boolean;
|
|
374
|
+
sepiaEnabled: boolean;
|
|
375
|
+
textValue?: undefined;
|
|
376
|
+
};
|
|
377
|
+
fontStyle: {
|
|
378
|
+
fontSize: number;
|
|
379
|
+
lineHeight: number;
|
|
380
|
+
};
|
|
381
|
+
frameEndAt: number;
|
|
382
|
+
droptype: string;
|
|
383
|
+
frameStartAt: number;
|
|
384
|
+
end: number;
|
|
385
|
+
isAudio: boolean;
|
|
386
|
+
id: string;
|
|
387
|
+
text: string;
|
|
388
|
+
locked: boolean;
|
|
389
|
+
scrubberRow: number;
|
|
390
|
+
uniqueId: string;
|
|
391
|
+
timestamp: number;
|
|
392
|
+
clipId: string;
|
|
393
|
+
src?: undefined;
|
|
394
|
+
title?: undefined;
|
|
395
|
+
type?: undefined;
|
|
396
|
+
path?: undefined;
|
|
397
|
+
name?: undefined;
|
|
398
|
+
value?: undefined;
|
|
399
|
+
s3Url?: undefined;
|
|
400
|
+
fileName?: undefined;
|
|
401
|
+
isAudioDetached?: undefined;
|
|
402
|
+
duration?: undefined;
|
|
403
|
+
thumbUrl?: undefined;
|
|
404
|
+
height?: undefined;
|
|
405
|
+
reducerType?: undefined;
|
|
406
|
+
frames?: undefined;
|
|
407
|
+
s3Key?: undefined;
|
|
408
|
+
width?: undefined;
|
|
409
|
+
projectId?: undefined;
|
|
410
|
+
user?: undefined;
|
|
411
|
+
})[];
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
export declare enum Animations {
|
|
2
|
+
NONE = "NONE",
|
|
3
|
+
FLASH = "FLASH",
|
|
4
|
+
PULSE = "PULSE",
|
|
5
|
+
SHAKE = "SHAKE",
|
|
6
|
+
SWING = "SWING",
|
|
7
|
+
JELLO = "JELLO",
|
|
8
|
+
WOOBLE = "WOOBLE",
|
|
2
9
|
FADE_IN = "FADE_IN",
|
|
3
10
|
FADE_OUT = "FADE_OUT",
|
|
4
11
|
FADE_IN_OUT = "FADE_IN_OUT",
|
|
@@ -16,6 +23,22 @@ export declare enum Animations {
|
|
|
16
23
|
BOUNCE_IN = "BOUNCE_IN",
|
|
17
24
|
BOUNCE_OUT = "BOUNCE_OUT",
|
|
18
25
|
BOUNCE_IN_OUT = "BOUNCE_IN_OUT",
|
|
26
|
+
BOUNCE_IN_DOWN = "BOUNCE_IN_DOWN",
|
|
27
|
+
BOUNCE_IN_LEFT = "BOUNCE_IN_LEFT",
|
|
28
|
+
BOUNCE_IN_RIGHT = "BOUNCE_IN_RIGHT",
|
|
29
|
+
BOUNCE_IN_UP = "BOUNCE_IN_UP",
|
|
30
|
+
BOUNCE_OUT_DOWN = "BOUNCE_OUT_DOWN",
|
|
31
|
+
BOUNCE_OUT_LEFT = "BOUNCE_OUT_LEFT",
|
|
32
|
+
BOUNCE_OUT_RIGHT = "BOUNCE_OUT_RIGHT",
|
|
33
|
+
BOUNCE_OUT_UP = "BOUNCE_OUT_UP",
|
|
34
|
+
FADE_IN_DOWN = "FADE_IN_DOWN",
|
|
35
|
+
FADE_IN_LEFT = "FADE_IN_LEFT",
|
|
36
|
+
FADE_IN_RIGHT = "FADE_IN_RIGHT",
|
|
37
|
+
FADE_IN_UP = "FADE_IN_UP",
|
|
38
|
+
FADE_OUT_DOWN = "FADE_OUT_DOWN",
|
|
39
|
+
FADE_OUT_LEFT = "FADE_OUT_LEFT",
|
|
40
|
+
FADE_OUT_RIGHT = "FADE_OUT_RIGHT",
|
|
41
|
+
FADE_OUT_UP = "FADE_OUT_UP",
|
|
19
42
|
ELASTIC_IN = "ELASTIC_IN",
|
|
20
43
|
ELASTIC_OUT = "ELASTIC_OUT",
|
|
21
44
|
ELASTIC_IN_OUT = "ELASTIC_IN_OUT",
|
|
@@ -36,5 +59,15 @@ export declare enum Animations {
|
|
|
36
59
|
BACK = "BACK",
|
|
37
60
|
CIRCULAR = "CIRCULAR",
|
|
38
61
|
EXPO = "EXPO",
|
|
39
|
-
SINE = "SINE"
|
|
62
|
+
SINE = "SINE",
|
|
63
|
+
SPIN = "SPIN"
|
|
64
|
+
}
|
|
65
|
+
export interface IGsapAnimInterface {
|
|
66
|
+
from?: any;
|
|
67
|
+
to?: any;
|
|
68
|
+
fromTo?: any;
|
|
69
|
+
duration?: number;
|
|
70
|
+
x?: number;
|
|
71
|
+
y?: number;
|
|
72
|
+
alpha?: number;
|
|
40
73
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Effects } from "./Effects";
|
|
2
|
+
import { Effects, Waveforms } from "./Effects";
|
|
3
3
|
import { OverlayTypes } from "../hocs/OverlayTilingSprite";
|
|
4
|
+
import { Animations } from "./Animations";
|
|
4
5
|
export interface PixiBaseSpriteProps {
|
|
5
6
|
children?: React.ReactNode;
|
|
6
7
|
uniqueId: string;
|
|
7
8
|
src?: string;
|
|
8
|
-
path?: string;
|
|
9
|
-
text?: string;
|
|
10
9
|
startAt: number;
|
|
11
10
|
endAt: number;
|
|
12
11
|
visible: boolean;
|
|
@@ -23,7 +22,7 @@ export interface PixiBaseSpriteProps {
|
|
|
23
22
|
scale?: number | [number, number];
|
|
24
23
|
tint?: number;
|
|
25
24
|
blendMode?: number;
|
|
26
|
-
animation?:
|
|
25
|
+
animation?: Animations;
|
|
27
26
|
colorCorrection?: {
|
|
28
27
|
enabled?: boolean;
|
|
29
28
|
temperature?: number;
|
|
@@ -45,9 +44,15 @@ export interface PixiBaseSpriteProps {
|
|
|
45
44
|
alpha?: number;
|
|
46
45
|
gamma?: number;
|
|
47
46
|
scaleInput?: number;
|
|
47
|
+
vignette?: number;
|
|
48
|
+
noise?: number;
|
|
49
|
+
outline?: number;
|
|
50
|
+
outlineColor?: number;
|
|
48
51
|
};
|
|
49
52
|
effect?: Effects;
|
|
50
53
|
overlay?: OverlayTypes;
|
|
54
|
+
waveform?: Waveforms;
|
|
55
|
+
fontSize?: number;
|
|
51
56
|
};
|
|
52
57
|
pointerdown?: () => void;
|
|
53
58
|
pointerup?: () => void;
|
|
@@ -60,7 +65,14 @@ export interface PixiBaseSpriteProps {
|
|
|
60
65
|
applyTransformer?: boolean;
|
|
61
66
|
onAnchorTransformationEnd?: (endData: any) => void;
|
|
62
67
|
}
|
|
68
|
+
export type containerScale = {
|
|
69
|
+
x: number;
|
|
70
|
+
y: number;
|
|
71
|
+
};
|
|
63
72
|
export interface ForwardedRefResponse {
|
|
64
|
-
getIsTransformerDragging
|
|
65
|
-
getIsMouseOverTransformer
|
|
73
|
+
getIsTransformerDragging?: () => boolean;
|
|
74
|
+
getIsMouseOverTransformer?: () => boolean;
|
|
75
|
+
setWordWrap?: (width: number, containerScale: containerScale) => void;
|
|
76
|
+
setFontSizeAndTransform?: (width: number, fontSize: number, containerScale: containerScale) => void;
|
|
77
|
+
resetScale?: () => void;
|
|
66
78
|
}
|
package/dist/types/Effects.d.ts
CHANGED
|
@@ -7,5 +7,14 @@ export declare enum Effects {
|
|
|
7
7
|
RetroVintage = "RetroVintage",
|
|
8
8
|
NightVision = "NightVision",
|
|
9
9
|
Normal = "Normal",
|
|
10
|
+
Vignette = "Vignette",
|
|
10
11
|
None = "Normal"
|
|
11
12
|
}
|
|
13
|
+
export declare enum Waveforms {
|
|
14
|
+
NONE = "none",
|
|
15
|
+
EQUALIZER = "equalizer",
|
|
16
|
+
ROUNDBARS = "roundbars",
|
|
17
|
+
LED = "led",
|
|
18
|
+
RADIAL_SPECTRUM = "radial_spectrum",
|
|
19
|
+
LUMI_BARS = "lumi_bars"
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isRemoteAsset: (asset: string) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reacthub-pixitweenjs",
|
|
3
|
-
"version": "0.2.107-alpha.
|
|
3
|
+
"version": "0.2.107-alpha.111",
|
|
4
4
|
"description": "reacthub-pixitweenjs is a library that provides a powerful combination of React, PixiJS, GSAP, and image manipulation capabilities in a timeline sequence. With this library, you can easily create stunning animations and interactive graphics for your React applications",
|
|
5
5
|
"author": "khanzzirfan <reacthub.ai@gmail.com>",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
@@ -36,11 +36,12 @@
|
|
|
36
36
|
"test": "vitest",
|
|
37
37
|
"storybook": "storybook dev -p 6006",
|
|
38
38
|
"start": "npm run storybook",
|
|
39
|
-
"build-storybook": "storybook build",
|
|
39
|
+
"build-storybook": "storybook build --loglevel warn",
|
|
40
40
|
"init-msw": "msw init public/",
|
|
41
41
|
"release": "standard-version --release-as patch &&npm publish",
|
|
42
42
|
"release:alpha": "standard-version --prerelease alpha &&npm publish",
|
|
43
|
-
"chromatic": "env-cmd -f .env.dev chromatic"
|
|
43
|
+
"chromatic": "env-cmd -f .env.dev chromatic --auto-accept-changes",
|
|
44
|
+
"deploy": "netlify deploy --prod"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@chakra-ui/icons": "^2.0.15",
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
"@giphy/react-components": "^5.6.1",
|
|
53
54
|
"@pixi/assets": "^7.2.3",
|
|
54
55
|
"@pixi/filter-adjustment": "^5.1.1",
|
|
56
|
+
"@pixi/gif": "^2.1.0",
|
|
55
57
|
"@pixi/react": "~7.1.0",
|
|
56
58
|
"@pixi/sound": "^5.2.1",
|
|
57
59
|
"@react-gifs/tools": "^0.1.2",
|
|
@@ -62,6 +64,7 @@
|
|
|
62
64
|
"@storybook/addon-interactions": "^7.1.0",
|
|
63
65
|
"@storybook/addon-links": "^7.1.0",
|
|
64
66
|
"@storybook/addon-onboarding": "^1.0.7",
|
|
67
|
+
"@storybook/addon-storysource": "^7.5.3",
|
|
65
68
|
"@storybook/addon-styling": "^1.3.4",
|
|
66
69
|
"@storybook/blocks": "^7.1.0",
|
|
67
70
|
"@storybook/builder-vite": "^7.1.0",
|
|
@@ -82,6 +85,7 @@
|
|
|
82
85
|
"@vitejs/plugin-react": "^4.0.3",
|
|
83
86
|
"@vitejs/plugin-react-swc": "^3.3.2",
|
|
84
87
|
"@welldone-software/why-did-you-render": "^7.0.1",
|
|
88
|
+
"audiomotion-analyzer": "^4.3.0",
|
|
85
89
|
"chromatic": "^6.7.3",
|
|
86
90
|
"debug": "^4.3.4",
|
|
87
91
|
"dotenv": "^16.0.1",
|
|
@@ -98,6 +102,7 @@
|
|
|
98
102
|
"howler": "^2.2.3",
|
|
99
103
|
"jsdom": "^21.1.2",
|
|
100
104
|
"lodash": "4.17.21",
|
|
105
|
+
"lottie-web": "^5.10.2",
|
|
101
106
|
"msw": "^1.2.1",
|
|
102
107
|
"msw-storybook-addon": "^1.8.0",
|
|
103
108
|
"pixi-filters": "^5.2.1",
|
|
@@ -123,5 +128,8 @@
|
|
|
123
128
|
"vite-plugin-environment": "^1.1.3",
|
|
124
129
|
"vite-plugin-stylelint": "^4.3.0",
|
|
125
130
|
"vitest": "^0.30.1"
|
|
131
|
+
},
|
|
132
|
+
"dependencies": {
|
|
133
|
+
"@uiw/react-color-sketch": "^2.3.2"
|
|
126
134
|
}
|
|
127
135
|
}
|
|
File without changes
|