@designcombo/state 4.0.0 → 4.0.2

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
@@ -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 } from '@designcombo/types';
1
+ import { State, IComposition } from '@designcombo/types';
2
2
 
3
3
  interface CompositionOptions {
4
4
  targetTrackIndex?: number;
@@ -6,5 +6,5 @@ interface CompositionOptions {
6
6
  scaleMode?: string;
7
7
  scaleAspectRatio?: number;
8
8
  }
9
- export declare function addComposition(state: State, payload: any, options?: CompositionOptions): Promise<Partial<State>>;
9
+ export declare function addComposition(state: State, payload: IComposition, options?: CompositionOptions): Promise<Partial<State>>;
10
10
  export {};
@@ -1,14 +1,10 @@
1
- import { State, ICustom, ITrack } from '@designcombo/types';
1
+ import { State, ICustom } from '@designcombo/types';
2
2
 
3
- interface CustomPayload {
4
- trackItems: ICustom[];
5
- tracks: ITrack[];
6
- }
7
3
  interface CustomOptions {
8
4
  targetTrackIndex?: number;
9
5
  targetTrackId?: string;
10
6
  scaleMode?: string;
11
7
  scaleAspectRatio?: number;
12
8
  }
13
- export declare function addCustom(state: State, payload: CustomPayload, options?: CustomOptions): Promise<Partial<State>>;
9
+ export declare function addCustom(state: State, payload: ICustom, options?: CustomOptions): Promise<Partial<State>>;
14
10
  export {};
@@ -1,14 +1,10 @@
1
- import { State, IIllustration, ITrack } from '@designcombo/types';
1
+ import { State, IIllustration } from '@designcombo/types';
2
2
 
3
- interface IllustrationPayload {
4
- trackItems: IIllustration[];
5
- tracks: ITrack[];
6
- }
7
3
  interface IllustrationOptions {
8
4
  targetTrackIndex?: number;
9
5
  targetTrackId?: string;
10
6
  scaleMode?: string;
11
7
  scaleAspectRatio?: number;
12
8
  }
13
- export declare function addIllustration(state: State, payload: IllustrationPayload, options?: IllustrationOptions): Promise<Partial<State>>;
9
+ export declare function addIllustration(state: State, payload: IIllustration, options?: IllustrationOptions): Promise<Partial<State>>;
14
10
  export {};
@@ -1,14 +1,10 @@
1
- import { State, IShape, ITrack } from '@designcombo/types';
1
+ import { State, IShape } from '@designcombo/types';
2
2
 
3
- interface ShapePayload {
4
- trackItems: IShape[];
5
- tracks: ITrack[];
6
- }
7
3
  interface ShapeOptions {
8
4
  targetTrackIndex?: number;
9
5
  targetTrackId?: string;
10
6
  scaleMode?: string;
11
7
  scaleAspectRatio?: number;
12
8
  }
13
- export declare function addShape(state: State, payload: ShapePayload, options?: ShapeOptions): Promise<Partial<State>>;
9
+ export declare function addShape(state: State, payload: IShape, options?: ShapeOptions): Promise<Partial<State>>;
14
10
  export {};
@@ -1,24 +1,10 @@
1
- import { State, ITemplate, ITrack } from '@designcombo/types';
1
+ import { State, ITemplate } from '@designcombo/types';
2
2
 
3
- interface TemplatePayload {
4
- trackItems: ITemplate[];
5
- tracks: ITrack[];
6
- trackItemsMap?: Record<string, any>;
7
- trackItemDetailsMap?: Record<string, any>;
8
- transitionsMap?: Record<string, any>;
9
- transitionIds?: string[];
10
- trackItemIds?: string[];
11
- }
12
3
  interface TemplateOptions {
13
- trackIndex?: number;
14
- trackId?: string;
15
- isNewTrack?: boolean;
16
- size?: {
17
- width: number;
18
- height: number;
19
- };
4
+ targetTrackIndex?: number;
5
+ targetTrackId?: string;
20
6
  scaleMode?: string;
21
7
  scaleAspectRatio?: number;
22
8
  }
23
- export declare function addTemplate(state: State, payload: TemplatePayload, options?: TemplateOptions): Promise<Partial<State>>;
9
+ export declare function addTemplate(state: State, payload: ITemplate, options?: TemplateOptions): Promise<Partial<State>>;
24
10
  export {};