@rendley/sdk 1.12.4 → 1.12.6

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.
@@ -107,6 +107,8 @@ export declare class FFmpeg {
107
107
  writeFile: (path: string, data: FileData, { signal }?: FFMessageOptions) => Promise<OK>;
108
108
  mount: (fsType: FFFSType, options: FFFSMountOptions, mountPoint: FFFSPath) => Promise<OK>;
109
109
  unmount: (mountPoint: FFFSPath) => Promise<OK>;
110
+ fileExists: (path: string, { signal }?: FFMessageOptions) => Promise<OK>;
111
+ dirExists: (path: string, { signal }?: FFMessageOptions) => Promise<OK>;
110
112
  /**
111
113
  * Read data from ffmpeg.wasm.
112
114
  *
@@ -220,5 +222,16 @@ export declare class FFmpeg {
220
222
  getMediaSubtitles: (path: string, { signal }?: FFMessageOptions) => Promise<string>;
221
223
  private tmpADownloadTag;
222
224
  downloadFile: (path: string, downloadFileName: string | undefined) => Promise<OK>;
225
+ createArchive: (path: string, { signal }?: FFMessageOptions) => Promise<number>;
226
+ openArchive: (path: string, { signal }?: FFMessageOptions) => Promise<number>;
227
+ closeArchive: (id: number, { signal }?: FFMessageOptions) => Promise<OK>;
228
+ addFileToArchive: (id: number, path: string, targetDirectory: string, { signal }?: FFMessageOptions) => Promise<OK>;
229
+ addFilesToArchive: (id: number, paths: string[], targetDirectory: string, { signal }?: FFMessageOptions) => Promise<OK>;
230
+ saveArchive: (id: number, { signal }?: FFMessageOptions) => Promise<OK>;
231
+ listFilesFromArchive: (id: number, { signal }?: FFMessageOptions) => Promise<string[]>;
232
+ extractFileFromArchive: (id: number, fromPath: string, toPath: string, { signal }?: FFMessageOptions) => Promise<OK>;
233
+ extractAllFromArchive: (id: number, path: string, { signal }?: FFMessageOptions) => Promise<OK>;
234
+ addDataToArchive: (id: number, path: string, data: Uint8Array, { signal }?: FFMessageOptions) => Promise<OK>;
235
+ readFileFromArchive: (id: number, path: string, { signal }?: FFMessageOptions) => Promise<Uint8Array | null>;
223
236
  }
224
237
  export {};
@@ -7,10 +7,12 @@ export declare enum FFMessageType {
7
7
  WRITE_FILE = "WRITE_FILE",
8
8
  READ_FILE = "READ_FILE",
9
9
  DELETE_FILE = "DELETE_FILE",
10
+ EXIST_FILE = "EXIST_FILE",
10
11
  RENAME = "RENAME",
11
12
  CREATE_DIR = "CREATE_DIR",
12
13
  LIST_DIR = "LIST_DIR",
13
14
  DELETE_DIR = "DELETE_DIR",
15
+ EXIST_DIR = "EXIST_DIR",
14
16
  ERROR = "ERROR",
15
17
  DOWNLOAD = "DOWNLOAD",
16
18
  PROGRESS = "PROGRESS",
@@ -38,5 +40,16 @@ export declare enum FFMessageType {
38
40
  AUTH_IS_AUTHENTICATED = "AUTH_IS_AUTHENTICATED",
39
41
  AUTH_GET_LICENSE_TYPE = "AUTH_GET_LICENSE_TYPE",
40
42
  FETCH_TS_CHUNKS = "FETCH_TS_CHUNKS",
41
- GET_BUILD_INFO = "GET_BUILD_INFO"
43
+ GET_BUILD_INFO = "GET_BUILD_INFO",
44
+ ARCHIVE_CREATE = "ARCHIVE_CREATE",
45
+ ARCHIVE_OPEN = "ARCHIVE_OPEN",
46
+ ARCHIVE_CLOSE = "ARCHIVE_CLOSE",
47
+ ARCHIVE_SAVE = "ARCHIVE_SAVE",
48
+ ARCHIVE_ADD_FILES = "ARCHIVE_ADD_FILES",
49
+ ARCHIVE_ADD_FILE = "ARCHIVE_ADD_FILE",
50
+ ARCHIVE_LIST_FILES = "ARCHIVE_LIST_FILES",
51
+ ARCHIVE_ADD_DATA = "ARCHIVE_ADD_DATA",
52
+ ARCHIVE_READ_FILE = "ARCHIVE_READ_FILE",
53
+ ARCHIVE_EXTRACT_FILE = "ARCHIVE_EXTRACT_FILE",
54
+ ARCHIVE_EXTRACT_ALL = "ARCHIVE_EXTRACT_ALL"
42
55
  }
@@ -82,6 +82,9 @@ export interface FFMessageExecData {
82
82
  args: string[];
83
83
  timeout?: number;
84
84
  }
85
+ export interface FFMessagePathExistsData {
86
+ path: FFFSPath;
87
+ }
85
88
  export interface FFMessageWriteFileData {
86
89
  path: FFFSPath;
87
90
  data: FileData;
@@ -116,6 +119,49 @@ export interface FFMessageAuthentificateData {
116
119
  export interface FFMessageFetchTSChunksData {
117
120
  urls: string[];
118
121
  }
122
+ export interface FFMessageCreateArchiveData {
123
+ path: FFFSPath;
124
+ }
125
+ export interface FFMessageOpenArchiveData {
126
+ path: FFFSPath;
127
+ }
128
+ export interface FFMessageSaveArchiveData {
129
+ id: number;
130
+ }
131
+ export interface FFMessageCloseArchiveData {
132
+ id: number;
133
+ }
134
+ export interface FFMessageAddDataToArchiveData {
135
+ id: number;
136
+ path: FFFSPath;
137
+ data: Uint8Array;
138
+ }
139
+ export interface FFMessageReadFileFromArchiveData {
140
+ id: number;
141
+ path: FFFSPath;
142
+ }
143
+ export interface FFMessageExtractAllFromArchiveData {
144
+ id: number;
145
+ path: FFFSPath;
146
+ }
147
+ export interface FFMessageAddFileToArchiveData {
148
+ id: number;
149
+ path: FFFSPath;
150
+ targetDirectory: FFFSPath;
151
+ }
152
+ export interface FFMessageAddFilesToArchiveData {
153
+ id: number;
154
+ paths: FFFSPath[];
155
+ targetDirectory: FFFSPath;
156
+ }
157
+ export interface FFMessageListFilesFromArchiveData {
158
+ id: number;
159
+ }
160
+ export interface FFMessageExtractFileFromArchiveData {
161
+ id: number;
162
+ fromPath: FFFSPath;
163
+ toPath: FFFSPath;
164
+ }
119
165
  /**
120
166
  * @remarks
121
167
  * Only deletes empty directory.
@@ -149,7 +195,7 @@ export interface FFMessageMountData {
149
195
  export interface FFMessageUnmountData {
150
196
  mountPoint: FFFSPath;
151
197
  }
152
- export type FFMessageData = FFMessageLoadConfig | FFMessageExecData | FFMessageWriteFileData | FFMessageReadFileData | FFMessageDeleteFileData | FFMessageRenameData | FFMessageCreateDirData | FFMessageListDirData | FFMessageDeleteDirData | FFMessageMountData | FFMessageUnmountData | FFMessageGetInfoData | FFMessageGetSubtitlesData | FFMessageFrameData | FFMessageFrame | FFMessageRenderSettings | FFMessageInitDemuxerData | FFMessageSeekDemuxerData | FFMessageIdDemuxerData | FFMessageMuxerData | FFMessageAuthentificateData | FFMessageFetchTSChunksData | FFMessageTranscodeData;
198
+ export type FFMessageData = FFMessageLoadConfig | FFMessageExecData | FFMessageWriteFileData | FFMessageReadFileData | FFMessageDeleteFileData | FFMessageRenameData | FFMessageCreateDirData | FFMessageListDirData | FFMessageDeleteDirData | FFMessageMountData | FFMessageUnmountData | FFMessageGetInfoData | FFMessageGetSubtitlesData | FFMessageFrameData | FFMessageFrame | FFMessageRenderSettings | FFMessageInitDemuxerData | FFMessageSeekDemuxerData | FFMessageIdDemuxerData | FFMessageMuxerData | FFMessageAuthentificateData | FFMessageFetchTSChunksData | FFMessageTranscodeData | FFMessageCreateArchiveData | FFMessageOpenArchiveData | FFMessageSaveArchiveData | FFMessageCloseArchiveData | FFMessageAddDataToArchiveData | FFMessageReadFileFromArchiveData | FFMessageExtractAllFromArchiveData | FFMessageAddFileToArchiveData | FFMessageAddFilesToArchiveData | FFMessageListFilesFromArchiveData | FFMessageExtractFileFromArchiveData | FFMessagePathExistsData;
153
199
  export interface Message {
154
200
  type: string;
155
201
  data?: FFMessageData;
@@ -183,7 +229,7 @@ export interface FSNode {
183
229
  name: string;
184
230
  isDir: boolean;
185
231
  }
186
- export type CallbackData = FileData | ExitCode | ErrorMessage | LogEvent | ProgressEvent | IsFirst | OK | Error | FSNode[] | undefined | object;
232
+ export type CallbackData = FileData | ExitCode | ErrorMessage | LogEvent | ProgressEvent | IsFirst | OK | Error | FSNode[] | undefined | object | null;
187
233
  export interface Callbacks {
188
234
  [id: number | string]: (data: CallbackData) => void;
189
235
  }
@@ -8,8 +8,8 @@ export declare class AdjustmentClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Spr
8
8
  private processingClips;
9
9
  private checkProcessingTimeoutId;
10
10
  private isDestroyed;
11
- private clipVisibilityRestore;
12
- private transitionVisibilityRestore;
11
+ private readonly clipVisibilityRestore;
12
+ private readonly transitionVisibilityRestore;
13
13
  private clearContainer;
14
14
  constructor(options: AdjustmentClipOptions);
15
15
  init(layerId: string): Promise<void>;
@@ -115,9 +115,9 @@ export declare class AudioClip extends Clip {
115
115
  name?: string | undefined;
116
116
  wrapMode?: import('../../../../types').WrapModeEnum | undefined;
117
117
  customData?: [string, unknown][] | undefined;
118
+ style?: unknown;
118
119
  subtitlesId?: string | undefined;
119
120
  blendMode?: import('../../../../types').BlendModeEnum | undefined;
120
- style?: unknown;
121
121
  animationController?: {
122
122
  animationInDuration: number;
123
123
  animationOutDuration: number;
@@ -35,8 +35,6 @@ declare const HtmlTextStyleSchema: zod.ZodObject<{
35
35
  strokeThickness: number;
36
36
  wordWrapWidth: number;
37
37
  align: "center" | "left" | "right" | "justify";
38
- wordWrap: boolean;
39
- stroke: string;
40
38
  breakWords: boolean;
41
39
  dropShadow: boolean;
42
40
  dropShadowAlpha: number;
@@ -47,7 +45,9 @@ declare const HtmlTextStyleSchema: zod.ZodObject<{
47
45
  fontVariant: "normal" | "small-caps";
48
46
  letterSpacing: number;
49
47
  lineHeight: number;
48
+ stroke: string;
50
49
  whiteSpace: "normal" | "pre" | "pre-line";
50
+ wordWrap: boolean;
51
51
  }, {
52
52
  align?: "center" | "left" | "right" | "justify" | undefined;
53
53
  breakWords?: boolean | undefined;
@@ -98,8 +98,6 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
98
98
  strokeThickness: number;
99
99
  wordWrapWidth: number;
100
100
  align: "center" | "left" | "right" | "justify";
101
- wordWrap: boolean;
102
- stroke: string;
103
101
  breakWords: boolean;
104
102
  dropShadow: boolean;
105
103
  dropShadowAlpha: number;
@@ -110,7 +108,9 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
110
108
  fontVariant: "normal" | "small-caps";
111
109
  letterSpacing: number;
112
110
  lineHeight: number;
111
+ stroke: string;
113
112
  whiteSpace: "normal" | "pre" | "pre-line";
113
+ wordWrap: boolean;
114
114
  };
115
115
  loadFonts(fonts: string[]): Promise<void>;
116
116
  getFonts(): string[] | undefined;
@@ -145,8 +145,6 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
145
145
  strokeThickness: number;
146
146
  wordWrapWidth: number;
147
147
  align: "center" | "left" | "right" | "justify";
148
- wordWrap: boolean;
149
- stroke: string;
150
148
  breakWords: boolean;
151
149
  dropShadow: boolean;
152
150
  dropShadowAlpha: number;
@@ -157,16 +155,18 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
157
155
  fontVariant: "normal" | "small-caps";
158
156
  letterSpacing: number;
159
157
  lineHeight: number;
158
+ stroke: string;
160
159
  whiteSpace: "normal" | "pre" | "pre-line";
160
+ wordWrap: boolean;
161
161
  };
162
162
  text?: string | undefined;
163
163
  name?: string | undefined;
164
164
  wrapMode?: import('../../../../types').WrapModeEnum | undefined;
165
165
  customData?: [string, unknown][] | undefined;
166
166
  mediaDataId?: string | undefined;
167
+ style?: unknown;
167
168
  subtitlesId?: string | undefined;
168
169
  blendMode?: import('../../../../types').BlendModeEnum | undefined;
169
- style?: unknown;
170
170
  animationController?: {
171
171
  animationInDuration: number;
172
172
  animationOutDuration: number;
@@ -12,3 +12,5 @@ export * from "./custom/CustomClip";
12
12
  export * from "./lottie/LottieClip";
13
13
  export * from "./htmlText/HtmlTextClip";
14
14
  export * from "./placeholder/PlaceholderClip";
15
+ export * from "./adjustment/AdjustmentClip";
16
+ export * from "./svg/SvgClip";
@@ -185,9 +185,9 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
185
185
  wrapMode?: WrapModeEnum | undefined;
186
186
  customData?: [string, unknown][] | undefined;
187
187
  mediaDataId?: string | undefined;
188
+ style?: unknown;
188
189
  subtitlesId?: string | undefined;
189
190
  blendMode?: import('../../../../types').BlendModeEnum | undefined;
190
- style?: unknown;
191
191
  animationController?: {
192
192
  animationInDuration: number;
193
193
  animationOutDuration: number;
@@ -0,0 +1,119 @@
1
+ import * as PIXI from "pixi.js";
2
+ import { ClipStyle } from '../../../../index';
3
+ import { Clip, ClipOptions } from "../../Clip";
4
+ export interface SvgClipOptions extends ClipOptions<ClipStyle> {
5
+ mediaDataId: string;
6
+ }
7
+ export declare class SvgClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>> {
8
+ private image;
9
+ private lastWidth;
10
+ private lastHeight;
11
+ private timeoutId;
12
+ constructor(options: SvgClipOptions);
13
+ private imageLoaded;
14
+ init(layerId: string): Promise<void>;
15
+ updateVisibility(currentTime: number): void;
16
+ private updateTexture;
17
+ update(currentTime: number): void;
18
+ updateMediaData(newMediaId?: string): Promise<boolean>;
19
+ clone(): SvgClip;
20
+ destroy(): void;
21
+ serialize(): {
22
+ type: string;
23
+ id: string;
24
+ subtitlesOffset: number;
25
+ startTime: number;
26
+ duration: number;
27
+ leftTrim: number;
28
+ rightTrim: number;
29
+ filters: {
30
+ id: string;
31
+ provider: string;
32
+ filterId: string;
33
+ intensity: number;
34
+ clipId?: string | undefined;
35
+ }[];
36
+ effects: any[];
37
+ isVisible: boolean;
38
+ name?: string | undefined;
39
+ mediaDataId?: string | undefined;
40
+ subtitlesId?: string | undefined;
41
+ wrapMode?: import('../../../../types').WrapModeEnum | undefined;
42
+ blendMode?: import('../../../../types').BlendModeEnum | undefined;
43
+ style?: unknown;
44
+ text?: string | undefined;
45
+ animationController?: {
46
+ animationInDuration: number;
47
+ animationOutDuration: number;
48
+ animationLoopCount: number;
49
+ loopSmoothing: number;
50
+ animationDataIn?: {
51
+ name: string;
52
+ inOutOfRange: import('../../../../index').OutOfRangeEnum;
53
+ outOutOfRange: import('../../../../index').OutOfRangeEnum;
54
+ propertyAnimations: {
55
+ inOutOfRange: import('../../../../index').OutOfRangeEnum;
56
+ outOutOfRange: import('../../../../index').OutOfRangeEnum;
57
+ property: string;
58
+ keyframes: {
59
+ value: string | number;
60
+ time: number;
61
+ easing: import('../../../../index').EasingEnum;
62
+ space: import('../../../../index').AnimationSpaceEnum;
63
+ relativeProperty?: string | undefined;
64
+ }[];
65
+ }[];
66
+ speed?: number | undefined;
67
+ offset?: number | undefined;
68
+ amplification?: number | undefined;
69
+ } | undefined;
70
+ animationDataOut?: {
71
+ name: string;
72
+ inOutOfRange: import('../../../../index').OutOfRangeEnum;
73
+ outOutOfRange: import('../../../../index').OutOfRangeEnum;
74
+ propertyAnimations: {
75
+ inOutOfRange: import('../../../../index').OutOfRangeEnum;
76
+ outOutOfRange: import('../../../../index').OutOfRangeEnum;
77
+ property: string;
78
+ keyframes: {
79
+ value: string | number;
80
+ time: number;
81
+ easing: import('../../../../index').EasingEnum;
82
+ space: import('../../../../index').AnimationSpaceEnum;
83
+ relativeProperty?: string | undefined;
84
+ }[];
85
+ }[];
86
+ speed?: number | undefined;
87
+ offset?: number | undefined;
88
+ amplification?: number | undefined;
89
+ } | undefined;
90
+ animationDataLoop?: {
91
+ name: string;
92
+ inOutOfRange: import('../../../../index').OutOfRangeEnum;
93
+ outOutOfRange: import('../../../../index').OutOfRangeEnum;
94
+ propertyAnimations: {
95
+ inOutOfRange: import('../../../../index').OutOfRangeEnum;
96
+ outOutOfRange: import('../../../../index').OutOfRangeEnum;
97
+ property: string;
98
+ keyframes: {
99
+ value: string | number;
100
+ time: number;
101
+ easing: import('../../../../index').EasingEnum;
102
+ space: import('../../../../index').AnimationSpaceEnum;
103
+ relativeProperty?: string | undefined;
104
+ }[];
105
+ }[];
106
+ speed?: number | undefined;
107
+ offset?: number | undefined;
108
+ amplification?: number | undefined;
109
+ } | undefined;
110
+ } | undefined;
111
+ customData?: [string, unknown][] | undefined;
112
+ clipMasks?: {
113
+ wrapMode: import('../../../../index').MaskWrapModeEnum;
114
+ id: string;
115
+ clipId: string;
116
+ }[] | undefined;
117
+ };
118
+ static deserialize(payload: object): SvgClip;
119
+ }
@@ -7,8 +7,9 @@ export interface TextClipOptions extends ClipOptions<TextStyle> {
7
7
  export declare class TextClip extends Clip<TextSprite, TextStyle> {
8
8
  text: string;
9
9
  constructor(options: TextClipOptions);
10
+ init(layerId: string): Promise<void>;
10
11
  getText(): string;
11
- setText(text?: string): void;
12
+ setText(text?: string, force?: boolean): void;
12
13
  setAnimationText(text: string): void;
13
14
  seek(currentTime: number): void;
14
15
  preload(currentTime: number): void;
@@ -40,9 +41,9 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
40
41
  wrapMode?: import('../../../../index').WrapModeEnum | undefined;
41
42
  customData?: [string, unknown][] | undefined;
42
43
  mediaDataId?: string | undefined;
44
+ style?: unknown;
43
45
  subtitlesId?: string | undefined;
44
46
  blendMode?: import('../../../../index').BlendModeEnum | undefined;
45
- style?: unknown;
46
47
  animationController?: {
47
48
  animationInDuration: number;
48
49
  animationOutDuration: number;
@@ -91,6 +91,7 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
91
91
  private renderVideoFrameOutputCallback;
92
92
  private getNextRenderPacket;
93
93
  private searchRenderFrame;
94
+ private getTextureRotation;
94
95
  private initializeDecoder;
95
96
  private destroyDecoder;
96
97
  onRenderStart(options: ExportOptions): Promise<void>;
@@ -101,7 +102,7 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
101
102
  update(currentTime: number): void;
102
103
  setMuted(muted: boolean): void;
103
104
  isMuted(): boolean;
104
- extractAudioClip(muteAudio?: boolean): Promise<AudioClip | null>;
105
+ extractAudioClip(muteAudio?: boolean, createNewMediaData?: boolean, audioTrackIndex?: number): Promise<AudioClip | null>;
105
106
  /**
106
107
  * Retrieves audio samples for a specified time range relative to the startTime from the associated media data.
107
108
  *
@@ -144,6 +145,7 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
144
145
  * @deprecated Use getAudioSamples instead, don't forget to enable them in the settings
145
146
  */
146
147
  extractMonoAudioData(startTime: number, endTime: number): Promise<Float32Array | null>;
148
+ private applyFirefoxRotationFix;
147
149
  destroy(): void;
148
150
  clone(): VideoClip;
149
151
  serialize(): {
@@ -174,9 +176,9 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
174
176
  name?: string | undefined;
175
177
  wrapMode?: import('../../../../types').WrapModeEnum | undefined;
176
178
  customData?: [string, unknown][] | undefined;
179
+ style?: unknown;
177
180
  subtitlesId?: string | undefined;
178
181
  blendMode?: import('../../../../types').BlendModeEnum | undefined;
179
- style?: unknown;
180
182
  animationController?: {
181
183
  animationInDuration: number;
182
184
  animationOutDuration: number;
@@ -1,14 +1,16 @@
1
1
  import * as PIXI from "pixi.js";
2
2
  import { z } from "zod";
3
3
  import { AudioClipOptions, Clip, ClipOptions, HtmlTextClipOptions, ImageClipOptions, TextClipOptions, VideoClipOptions } from "../clip";
4
+ import { AdjustmentClipOptions } from "../clip/clips/adjustment/AdjustmentClip";
4
5
  import { GifClipOptions } from "../clip/clips/gif/GifClip";
5
6
  import { LottieClipOptions } from "../clip/clips/lottie/LottieClip";
6
7
  import { ShapeClipOptions } from "../clip/clips/shape/ShapeClip";
8
+ import { SvgClipOptions } from "../clip/clips/svg/SvgClip";
7
9
  import { Transition, TransitionOptions } from "../transition/Transition";
8
10
  interface AddClipOptions {
9
11
  adjustLayout?: boolean;
10
12
  }
11
- type ClipOptionsUnion = ClipOptions | ImageClipOptions | VideoClipOptions | TextClipOptions | AudioClipOptions | GifClipOptions | ShapeClipOptions | HtmlTextClipOptions | LottieClipOptions;
13
+ type ClipOptionsUnion = ClipOptions | ImageClipOptions | SvgClipOptions | AdjustmentClipOptions | VideoClipOptions | TextClipOptions | AudioClipOptions | GifClipOptions | ShapeClipOptions | HtmlTextClipOptions | LottieClipOptions;
12
14
  export declare const LayerSchema: z.ZodObject<{
13
15
  id: z.ZodString;
14
16
  visible: z.ZodOptional<z.ZodBoolean>;
@@ -150,6 +150,7 @@ export declare class MediaData {
150
150
  mimeType?: undefined;
151
151
  }>;
152
152
  load(file: File | string | Uint8Array, mimeType?: string, filename?: string): Promise<void>;
153
+ checkForSvgThumbnail(): Promise<boolean>;
153
154
  setPermanentUrl(url: string | null): void;
154
155
  getHash(): string | undefined;
155
156
  waitForStatus(status: MediaDataStatus, checkIntervalMS?: number, timeoutMS?: number): Promise<boolean>;
@@ -70,9 +70,9 @@ declare const MainTextStyleSchema: z.ZodObject<{
70
70
  strokeColor: string;
71
71
  strokeThickness: number;
72
72
  wordWrapWidth: number;
73
+ wordWrap: boolean;
73
74
  backgroundPadding: number;
74
75
  backgroundCornerRadius: number;
75
- wordWrap: boolean;
76
76
  leading: number;
77
77
  }, {
78
78
  color?: string | undefined;
@@ -162,9 +162,9 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
162
162
  strokeColor: string;
163
163
  strokeThickness: number;
164
164
  wordWrapWidth: number;
165
+ wordWrap: boolean;
165
166
  backgroundPadding: number;
166
167
  backgroundCornerRadius: number;
167
- wordWrap: boolean;
168
168
  leading: number;
169
169
  }, {
170
170
  color?: string | undefined;
@@ -237,9 +237,9 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
237
237
  strokeColor: string;
238
238
  strokeThickness: number;
239
239
  wordWrapWidth: number;
240
+ wordWrap: boolean;
240
241
  backgroundPadding: number;
241
242
  backgroundCornerRadius: number;
242
- wordWrap: boolean;
243
243
  leading: number;
244
244
  };
245
245
  highlightTextStyle: {
@@ -339,9 +339,9 @@ export declare class SubtitlesManager {
339
339
  strokeColor: string;
340
340
  strokeThickness: number;
341
341
  wordWrapWidth: number;
342
+ wordWrap: boolean;
342
343
  backgroundPadding: number;
343
344
  backgroundCornerRadius: number;
344
- wordWrap: boolean;
345
345
  leading: number;
346
346
  };
347
347
  getHighlightTextStyle(): {
@@ -390,9 +390,9 @@ export declare class SubtitlesManager {
390
390
  strokeColor: string;
391
391
  strokeThickness: number;
392
392
  wordWrapWidth: number;
393
+ wordWrap: boolean;
393
394
  backgroundPadding: number;
394
395
  backgroundCornerRadius: number;
395
- wordWrap: boolean;
396
396
  leading: number;
397
397
  };
398
398
  highlightTextStyle: {
@@ -0,0 +1,20 @@
1
+ import { FFmpeg } from '../../libs/ffmpeg';
2
+ export declare class ZipArchive {
3
+ private ffmpeg;
4
+ private archiveId;
5
+ constructor(ffmpeg?: FFmpeg);
6
+ getFFmpeg(): FFmpeg;
7
+ isOpen(): boolean;
8
+ create(path: string): Promise<boolean>;
9
+ open(path: string): Promise<boolean>;
10
+ save(): Promise<boolean>;
11
+ close(id: number): Promise<boolean>;
12
+ addFile(path: string, targetDirectory?: string): Promise<boolean>;
13
+ extractAll(path: string): Promise<boolean>;
14
+ addData(path: string, data: Uint8Array, takeOwnership?: boolean): Promise<boolean>;
15
+ readFile(path: string): Promise<Uint8Array | null>;
16
+ addFiles(paths: string[], targetDirectory?: string): Promise<boolean>;
17
+ listFiles(): Promise<string[]>;
18
+ extractFile(fromPath: string, toPath: string): Promise<boolean>;
19
+ destroy(): Promise<boolean | undefined>;
20
+ }
@@ -0,0 +1 @@
1
+ export * from "./ZipArchive";
@@ -2,6 +2,7 @@ export declare enum ClipTypeEnum {
2
2
  NONE = "none",
3
3
  GIF = "gif",
4
4
  IMAGE = "image",
5
+ SVG = "svg",
5
6
  VIDEO = "video",
6
7
  AUDIO = "audio",
7
8
  TEXT = "text",
@@ -0,0 +1 @@
1
+ export declare function isFirefox(): boolean;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@rendley/sdk",
3
- "version": "1.12.4",
3
+ "version": "1.12.6",
4
4
  "license": "LICENSE",
5
5
  "author": "Onix Technologies",
6
- "homepage": "https://rendley.com",
6
+ "homepage": "https://rendleysdk.com",
7
7
  "description": "A Video Editing SDK that works completely in the browser.",
8
8
  "type": "module",
9
9
  "keywords": [
@@ -68,6 +68,7 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@pixi/gif": "2.1.1",
71
+ "@pixi/unsafe-eval": "^7.4.0",
71
72
  "@tweenjs/tween.js": "23.1.2",
72
73
  "bodymovin": "4.13.0",
73
74
  "crypto-js": "4.2.0",