@cliquify.me/types 4.0.9 → 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 (3) hide show
  1. package/LICENSE +46 -0
  2. package/dist/index.d.ts +91 -26
  3. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,46 @@
1
+ DESIGNCOMBO COMMERCIAL LICENSE
2
+ Copyright (c) 2024 Layerhub LLC
3
+
4
+ This is a commercial license agreement between Layerhub LLC ("Licensor") and the purchaser ("Licensee") of the DesignCombo software package.
5
+
6
+ 1. GRANT OF LICENSE
7
+ Subject to the terms and conditions of this Agreement, Licensor grants Licensee a non-exclusive, non-transferable license to:
8
+ a) Use the DesignCombo software package for commercial and non-commercial purposes
9
+ b) Modify the source code to suit Licensee's specific needs
10
+ c) Deploy the modified version in production environments
11
+
12
+ 2. SUBSCRIPTION TERMS
13
+ a) The license is granted for a specified subscription period (e.g., 12 months)
14
+ b) During the subscription period, Licensee will receive:
15
+ - Access to the source code
16
+ - Regular updates and improvements
17
+ - Technical support
18
+ c) After the subscription period ends:
19
+ - Licensee may continue using the last version received during the subscription
20
+ - Licensee may continue using any modifications made to that version
21
+ - Licensee will no longer receive updates or technical support
22
+ - Licensee may renew the subscription to receive updates and support
23
+
24
+ 3. RESTRICTIONS
25
+ Licensee may not:
26
+ a) Redistribute, resell, or sublicense the original or modified software
27
+ b) Remove or alter any copyright notices or proprietary markings
28
+ c) Use the software to create a competing product
29
+ d) Transfer the license to another party
30
+
31
+ 4. INTELLECTUAL PROPERTY
32
+ The original DesignCombo software and all its components remain the exclusive property of Layerhub.
33
+ Licensee retains rights to their specific modifications, but not to the underlying software.
34
+
35
+ 5. WARRANTY
36
+ The software is provided "as is" without warranty of any kind. Layerhub is not liable for any damages arising from the use of the software.
37
+
38
+ 6. TERMINATION
39
+ This license is effective until terminated. Layerhub may terminate this license if Licensee fails to comply with any of its terms and conditions.
40
+
41
+ 7. GOVERNING LAW
42
+ This Agreement shall be governed by and construed in accordance with the laws of the jurisdiction in which Layerhub LLC is established.
43
+
44
+ For licensing inquiries, please contact Layerhub LLC at [contact information].
45
+
46
+ Version 1.1 - Effective Date: March 19, 2024
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.9",
3
+ "version": "4.0.11",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"