@designcombo/state 4.0.1 → 4.0.3

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 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/events.d.ts CHANGED
@@ -14,7 +14,6 @@ export declare const ADD_PREFIX = "add";
14
14
  export declare const ADD_TEXT = "add:text";
15
15
  export declare const ADD_VIDEO = "add:video";
16
16
  export declare const ADD_AUDIO = "add:audio";
17
- export declare const ADD_CUSTOM_ITEM = "add:customItem";
18
17
  export declare const ADD_PLACEHOLDER = "add:placeholder";
19
18
  export declare const ADD_IMAGE = "add:image";
20
19
  export declare const ADD_ILLUSTRATION = "add:illustration";
@@ -26,6 +25,10 @@ export declare const ADD_CAPTIONS = "add:caption";
26
25
  export declare const ADD_TEMPLATE = "add:template";
27
26
  export declare const ADD_ITEMS = "add:items";
28
27
  export declare const ADD_COMPOSITION = "add:composition";
28
+ export declare const ADD_PROGRESS_BAR = "add:progressBar";
29
+ export declare const ADD_PROGRESS_FRAME = "add:progressFrame";
30
+ export declare const ADD_RADIAL_AUDIO_BARS = "add:radialAudioBars";
31
+ export declare const ADD_LINEAL_AUDIO_BARS = "add:linealAudioBars";
29
32
  export declare const EDIT_PREFIX = "edit";
30
33
  export declare const EDIT_OBJECT = "edit:object";
31
34
  export declare const REPLACE_MEDIA = "edit:replaceMedia";
@@ -9,5 +9,5 @@ interface AnimationPayload {
9
9
  id: string;
10
10
  animations: Animations;
11
11
  }
12
- export declare function addAnimation(state: State, payload: AnimationPayload): Partial<State>;
12
+ export declare function addAnimation(state: State, payload: AnimationPayload): Promise<Partial<State>>;
13
13
  export {};
@@ -1,4 +1,4 @@
1
- import { State, ICustom } from '@designcombo/types';
1
+ import { State, IRadialAudioBars, IProgressBar, IProgressFrame, ILinealAudioBars } from '@designcombo/types';
2
2
 
3
3
  interface CustomOptions {
4
4
  targetTrackIndex?: number;
@@ -6,5 +6,5 @@ interface CustomOptions {
6
6
  scaleMode?: string;
7
7
  scaleAspectRatio?: number;
8
8
  }
9
- export declare function addCustom(state: State, payload: ICustom, options?: CustomOptions): Promise<Partial<State>>;
9
+ export declare function addGeneric(state: State, payload: IProgressBar | IProgressFrame | IRadialAudioBars | ILinealAudioBars, options: CustomOptions | undefined, type: "progress-bar" | "progress-frame" | "radial-audio-bars" | "lineal-audio-bars"): Promise<Partial<State>>;
10
10
  export {};