@cliquify.me/types 4.0.10 → 4.0.11

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 (2) hide show
  1. package/dist/index.d.ts +91 -26
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -15,8 +15,9 @@ export interface State {
15
15
  type: "color" | "image";
16
16
  value: string;
17
17
  };
18
+ acceptsMap: Record<string, string[]>;
18
19
  }
19
- export type ItemType = "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape" | "custom";
20
+ export type ItemType = "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape" | "progressBar" | "progressFrame" | "radialAudioBars" | "linealAudioBars";
20
21
  export interface IDisplay {
21
22
  from: number;
22
23
  to: number;
@@ -88,7 +89,13 @@ export type ITrackItem = (ITrackItemBase & {
88
89
  }) | (ITrackItemBase & {
89
90
  type: "shape";
90
91
  }) | (ITrackItemBase & {
91
- type: "custom";
92
+ type: "progressBar";
93
+ }) | (ITrackItemBase & {
94
+ type: "progressFrame";
95
+ }) | (ITrackItemBase & {
96
+ type: "radialAudioBars";
97
+ }) | (ITrackItemBase & {
98
+ type: "linealAudioBars";
92
99
  });
93
100
  export interface IStateManager {
94
101
  getState(): State;
@@ -309,25 +316,6 @@ export interface IIllustrationDetails extends ICommonDetails {
309
316
  initialSvgString: string;
310
317
  visibility: "visible" | "hidden";
311
318
  colorMap: Record<string, string>;
312
- reproduceAudio: boolean;
313
- }
314
- export interface ICustomDetails extends ICommonDetails {
315
- width: number;
316
- height: number;
317
- top: string;
318
- left: string;
319
- firstBackgroundColor: string;
320
- secondBackgroundColor: string;
321
- border: string;
322
- borderRadius: number;
323
- borderWidth: number;
324
- borderColor: string;
325
- opacity: number;
326
- flipX: boolean;
327
- flipY: boolean;
328
- inverted: boolean;
329
- srcs: string[];
330
- reproduceAudio: boolean;
331
319
  }
332
320
  export interface IShapeDetails extends ICommonDetails {
333
321
  path: string;
@@ -405,7 +393,7 @@ export interface ITimelineScaleState {
405
393
  segments: number;
406
394
  index: number;
407
395
  }
408
- export type IItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition | IIllustration | IShape | ICustom;
396
+ export type IItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition | IIllustration | IShape | IProgressBar | IProgressFrame | IRadialAudioBars | ILinealAudioBars;
409
397
  export interface IComposition extends ITrackItemBase {
410
398
  type: "composition";
411
399
  trackItemIds: string[];
@@ -445,9 +433,86 @@ export interface IIllustration extends ITrackItemBase {
445
433
  type: "illustration";
446
434
  details: IIllustrationDetails;
447
435
  }
448
- export interface ICustom extends ITrackItemBase {
449
- type: "custom";
450
- details: ICustomDetails;
436
+ export interface IProgressBar extends ITrackItemBase {
437
+ type: "progressBar";
438
+ details: IProgressBarDetails;
439
+ }
440
+ export interface IProgressFrame extends ITrackItemBase {
441
+ type: "progressFrame";
442
+ details: IProgressFrameDetails;
443
+ }
444
+ export interface IRadialAudioBars extends ITrackItemBase {
445
+ type: "radialAudioBars";
446
+ details: IRadialAudioBarsDetails;
447
+ }
448
+ export interface ILinealAudioBars extends ITrackItemBase {
449
+ type: "linealAudioBars";
450
+ details: ILinealAudioBarsDetails;
451
+ }
452
+ export interface IProgressBarDetails extends ICommonDetails {
453
+ width: number;
454
+ height: number;
455
+ top: string;
456
+ left: string;
457
+ backgroundColors: string[];
458
+ border: string;
459
+ borderRadius: number;
460
+ borderWidth: number;
461
+ borderColor: string;
462
+ opacity: number;
463
+ flipX: boolean;
464
+ flipY: boolean;
465
+ inverted: boolean;
466
+ }
467
+ export interface IProgressFrameDetails extends ICommonDetails {
468
+ width: number;
469
+ height: number;
470
+ top: string;
471
+ left: string;
472
+ backgroundColors: string[];
473
+ border: string;
474
+ borderRadius: number;
475
+ borderWidth: number;
476
+ borderColor: string;
477
+ opacity: number;
478
+ flipX: boolean;
479
+ flipY: boolean;
480
+ inverted: boolean;
481
+ }
482
+ export interface IRadialAudioBarsDetails extends ICommonDetails {
483
+ width: number;
484
+ height: number;
485
+ top: string;
486
+ left: string;
487
+ border: string;
488
+ borderRadius: number;
489
+ borderWidth: number;
490
+ borderColor: string;
491
+ opacity: number;
492
+ flipX: boolean;
493
+ flipY: boolean;
494
+ srcs: string[];
495
+ reproduceAudio: boolean;
496
+ radialBarColor: string;
497
+ audioDatas: any[];
498
+ }
499
+ export interface ILinealAudioBarsDetails extends ICommonDetails {
500
+ width: number;
501
+ height: number;
502
+ top: string;
503
+ left: string;
504
+ border: string;
505
+ borderRadius: number;
506
+ borderWidth: number;
507
+ borderColor: string;
508
+ opacity: number;
509
+ flipX: boolean;
510
+ flipY: boolean;
511
+ srcs: string[];
512
+ reproduceAudio: boolean;
513
+ audioDatas: any[];
514
+ linealBarColor: string;
515
+ backgroundColor: string;
451
516
  }
452
517
  export interface IShape extends ITrackItemBase {
453
518
  type: "shape";
@@ -482,7 +547,7 @@ export interface ITrack {
482
547
  }
483
548
  export type ITrackItemAndDetails = ITrackItem & IItem;
484
549
  export type IRecordItemAndDetails = Record<string, ITrackItem & IItem>;
485
- export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape" | "custom";
550
+ export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape" | "progressBar" | "progressFrame" | "radialAudioBars" | "linealAudioBars";
486
551
  export interface ITimelineScrollState {
487
552
  /**
488
553
  * Timeline scroll state by X-axis.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cliquify.me/types",
3
- "version": "4.0.10",
3
+ "version": "4.0.11",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"