@designcombo/state 5.0.5 → 5.1.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/events.d.ts +1 -0
- package/dist/handlers/add/audio.d.ts +1 -0
- package/dist/handlers/add/composition.d.ts +1 -1
- package/dist/handlers/add/custom.d.ts +2 -2
- package/dist/handlers/add/image.d.ts +1 -0
- package/dist/handlers/add/video.d.ts +1 -0
- package/dist/handlers/replace-layer.d.ts +2 -2
- package/dist/handlers/replace-media.d.ts +2 -2
- package/dist/index.es.js +2724 -2620
- package/dist/index.umd.js +3 -3
- package/dist/state.d.ts +2 -5
- package/dist/utils/delete-items.d.ts +6 -0
- package/dist/utils/load-item.d.ts +219 -168
- package/dist/utils/manage-tracks.d.ts +1 -0
- package/dist/utils/replace-item.d.ts +2 -2
- package/dist/utils/update-string-ids.d.ts +4 -0
- package/dist/utils/validate-display.d.ts +6 -0
- package/package.json +4 -4
- package/dist/utils/update-transitions.d.ts +0 -3
package/dist/events.d.ts
CHANGED
@@ -29,6 +29,7 @@ export declare const ADD_PROGRESS_BAR = "add:progressBar";
|
|
29
29
|
export declare const ADD_PROGRESS_FRAME = "add:progressFrame";
|
30
30
|
export declare const ADD_RADIAL_AUDIO_BARS = "add:radialAudioBars";
|
31
31
|
export declare const ADD_LINEAL_AUDIO_BARS = "add:linealAudioBars";
|
32
|
+
export declare const ADD_PROGRESS_SQUARE = "add:progressSquare";
|
32
33
|
export declare const ADD_WAVE_AUDIO_BARS = "add:waveAudioBars";
|
33
34
|
export declare const ADD_HILL_AUDIO_BARS = "add:hillAudioBars";
|
34
35
|
export declare const ADD_RECT = "add:rect";
|
@@ -3,6 +3,7 @@ import { State, IAudio } from '@designcombo/types';
|
|
3
3
|
interface AddAudioOptions {
|
4
4
|
targetTrackIndex?: number;
|
5
5
|
targetTrackId?: string;
|
6
|
+
isNewTrack?: boolean;
|
6
7
|
}
|
7
8
|
export declare function addAudio(state: State, payload: IAudio, options?: AddAudioOptions): Promise<Partial<State>>;
|
8
9
|
export {};
|
@@ -6,5 +6,5 @@ interface CompositionOptions {
|
|
6
6
|
scaleMode?: string;
|
7
7
|
scaleAspectRatio?: number;
|
8
8
|
}
|
9
|
-
export declare function addComposition(state: State, payload: IComposition, options?: CompositionOptions): Promise<Partial<State>>;
|
9
|
+
export declare function addComposition(state: State, payload: IComposition | any, options?: CompositionOptions): Promise<Partial<State>>;
|
10
10
|
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { State, IRadialAudioBars, IProgressBar, IProgressFrame, ILinealAudioBars } from '@designcombo/types';
|
1
|
+
import { State, IRadialAudioBars, IProgressBar, IProgressFrame, ILinealAudioBars, IProgressSquare } 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 addGeneric(state: State, payload: IProgressBar | IProgressFrame | IRadialAudioBars | ILinealAudioBars, options: CustomOptions | undefined, type: "progress-bar" | "progress-frame" | "radial-audio-bars" | "lineal-audio-bars" | "wave-audio-bars" | "hill-audio-bars"): Promise<Partial<State>>;
|
9
|
+
export declare function addGeneric(state: State, payload: IProgressBar | IProgressFrame | IRadialAudioBars | ILinealAudioBars | IProgressSquare, options: CustomOptions | undefined, type: "progress-bar" | "progress-frame" | "radial-audio-bars" | "lineal-audio-bars" | "wave-audio-bars" | "hill-audio-bars" | "progress-square"): Promise<Partial<State>>;
|
10
10
|
export {};
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { State,
|
1
|
+
import { State, ITrackItem } from '@designcombo/types';
|
2
2
|
|
3
|
-
export declare function replaceLayer(state: State, data: Record<string,
|
3
|
+
export declare function replaceLayer(state: State, data: Record<string, ITrackItem>): Promise<Partial<State>>;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { State,
|
1
|
+
import { State, ITrackItem } from '@designcombo/types';
|
2
2
|
|
3
|
-
export declare function replaceMedia(state: State, data: Record<string,
|
3
|
+
export declare function replaceMedia(state: State, data: Record<string, ITrackItem>): Promise<Partial<State>>;
|