@cliquify.me/types 3.1.25 → 4.0.1
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/dist/index.d.ts +35 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface State {
|
|
|
16
16
|
value: string;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
export type ItemType = "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape";
|
|
19
|
+
export type ItemType = "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape" | "custom";
|
|
20
20
|
export interface IDisplay {
|
|
21
21
|
from: number;
|
|
22
22
|
to: number;
|
|
@@ -87,6 +87,8 @@ export type ITrackItem = (ITrackItemBase & {
|
|
|
87
87
|
type: "illustration";
|
|
88
88
|
}) | (ITrackItemBase & {
|
|
89
89
|
type: "shape";
|
|
90
|
+
}) | (ITrackItemBase & {
|
|
91
|
+
type: "custom";
|
|
90
92
|
});
|
|
91
93
|
export interface IStateManager {
|
|
92
94
|
getState(): State;
|
|
@@ -187,6 +189,7 @@ export interface ITrackItemBase {
|
|
|
187
189
|
animations?: {
|
|
188
190
|
in: IBasicAnimation;
|
|
189
191
|
out: IBasicAnimation;
|
|
192
|
+
loop: IBasicAnimation;
|
|
190
193
|
};
|
|
191
194
|
playbackRate?: number;
|
|
192
195
|
modifier?: IDisplay;
|
|
@@ -300,6 +303,25 @@ export interface IIllustrationDetails extends ICommonDetails {
|
|
|
300
303
|
initialSvgString: string;
|
|
301
304
|
visibility: "visible" | "hidden";
|
|
302
305
|
colorMap: Record<string, string>;
|
|
306
|
+
reproduceAudio: boolean;
|
|
307
|
+
}
|
|
308
|
+
export interface ICustomDetails extends ICommonDetails {
|
|
309
|
+
width: number;
|
|
310
|
+
height: number;
|
|
311
|
+
top: string;
|
|
312
|
+
left: string;
|
|
313
|
+
firstBackgroundColor: string;
|
|
314
|
+
secondBackgroundColor: string;
|
|
315
|
+
border: string;
|
|
316
|
+
borderRadius: number;
|
|
317
|
+
borderWidth: number;
|
|
318
|
+
borderColor: string;
|
|
319
|
+
opacity: number;
|
|
320
|
+
flipX: boolean;
|
|
321
|
+
flipY: boolean;
|
|
322
|
+
inverted: boolean;
|
|
323
|
+
srcs: string[];
|
|
324
|
+
reproduceAudio: boolean;
|
|
303
325
|
}
|
|
304
326
|
export interface IShapeDetails extends ICommonDetails {
|
|
305
327
|
path: string;
|
|
@@ -377,7 +399,7 @@ export interface ITimelineScaleState {
|
|
|
377
399
|
segments: number;
|
|
378
400
|
index: number;
|
|
379
401
|
}
|
|
380
|
-
export type IItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition | IIllustration | IShape;
|
|
402
|
+
export type IItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition | IIllustration | IShape | ICustom;
|
|
381
403
|
export interface IComposition extends ITrackItemBase {
|
|
382
404
|
type: "composition";
|
|
383
405
|
trackItemIds: string[];
|
|
@@ -392,12 +414,13 @@ export interface IAudio extends ITrackItemBase {
|
|
|
392
414
|
}
|
|
393
415
|
export interface ITemplate extends ITrackItemBase {
|
|
394
416
|
type: "template";
|
|
395
|
-
|
|
417
|
+
trackItemDetailsMap: Record<string, IItem>;
|
|
396
418
|
trackItemIds: string[];
|
|
397
419
|
trackItemsMap: Record<string, ITrackItem>;
|
|
398
420
|
transitionsMap: Record<string, ITransition>;
|
|
399
421
|
transitionIds: string[];
|
|
400
422
|
size: ISize;
|
|
423
|
+
tracks: ITrack[];
|
|
401
424
|
}
|
|
402
425
|
export interface ICaption extends ITrackItemBase {
|
|
403
426
|
type: "caption";
|
|
@@ -415,6 +438,10 @@ export interface IIllustration extends ITrackItemBase {
|
|
|
415
438
|
type: "illustration";
|
|
416
439
|
details: IIllustrationDetails;
|
|
417
440
|
}
|
|
441
|
+
export interface ICustom extends ITrackItemBase {
|
|
442
|
+
type: "custom";
|
|
443
|
+
details: ICustomDetails;
|
|
444
|
+
}
|
|
418
445
|
export interface IShape extends ITrackItemBase {
|
|
419
446
|
type: "shape";
|
|
420
447
|
details: IShapeDetails;
|
|
@@ -448,7 +475,7 @@ export interface ITrack {
|
|
|
448
475
|
}
|
|
449
476
|
export type ITrackItemAndDetails = ITrackItem & IItem;
|
|
450
477
|
export type IRecordItemAndDetails = Record<string, ITrackItem & IItem>;
|
|
451
|
-
export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape";
|
|
478
|
+
export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape" | "custom";
|
|
452
479
|
export interface ITimelineScrollState {
|
|
453
480
|
/**
|
|
454
481
|
* Timeline scroll state by X-axis.
|
|
@@ -469,4 +496,8 @@ export interface ItemStructure {
|
|
|
469
496
|
transitions: string[];
|
|
470
497
|
tracks: ITrack[];
|
|
471
498
|
}
|
|
499
|
+
export interface IBulkAction {
|
|
500
|
+
type: string;
|
|
501
|
+
payload?: any;
|
|
502
|
+
}
|
|
472
503
|
export {};
|