@rendley/sdk 1.12.3 → 1.12.5

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 (42) hide show
  1. package/README.md +2 -2
  2. package/dist/Engine.d.ts +18 -17
  3. package/dist/config/config.d.ts +1 -1
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.js +1 -1
  7. package/dist/libs/ffmpeg/classes.d.ts +13 -0
  8. package/dist/libs/ffmpeg/const.d.ts +14 -1
  9. package/dist/libs/ffmpeg/types.d.ts +48 -2
  10. package/dist/modules/clip/Clip.d.ts +8 -8
  11. package/dist/modules/clip/ClipStyle.d.ts +6 -6
  12. package/dist/modules/clip/clips/adjustment/AdjustmentClip.d.ts +2 -2
  13. package/dist/modules/clip/clips/audio/AudioClip.d.ts +6 -6
  14. package/dist/modules/clip/clips/custom/CustomClip.d.ts +2 -2
  15. package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +13 -12
  16. package/dist/modules/clip/clips/index.d.ts +2 -0
  17. package/dist/modules/clip/clips/lottie/LottieClip.d.ts +22 -22
  18. package/dist/modules/clip/clips/shape/ShapeClip.d.ts +2 -2
  19. package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +13 -13
  20. package/dist/modules/clip/clips/svg/SvgClip.d.ts +119 -0
  21. package/dist/modules/clip/clips/text/TextClip.d.ts +7 -6
  22. package/dist/modules/clip/clips/text/TextStyle.d.ts +19 -19
  23. package/dist/modules/clip/clips/video/VideoClip.d.ts +9 -7
  24. package/dist/modules/effect/Effect.d.ts +3 -3
  25. package/dist/modules/ffmpeg/types/FFmpeg.types.d.ts +2 -0
  26. package/dist/modules/filter/Filter.d.ts +3 -3
  27. package/dist/modules/filter/MaskFilter.d.ts +1 -1
  28. package/dist/modules/font-registry/FontRegistry.d.ts +9 -5
  29. package/dist/modules/layer/Layer.d.ts +8 -6
  30. package/dist/modules/library/EffectData.d.ts +6 -6
  31. package/dist/modules/library/Library.d.ts +61 -56
  32. package/dist/modules/library/MediaData.d.ts +1 -0
  33. package/dist/modules/library/Subtitles.d.ts +7 -7
  34. package/dist/modules/library/TransitionData.d.ts +6 -6
  35. package/dist/modules/subtitles/SubtitleManager.d.ts +21 -21
  36. package/dist/modules/timeline/Timeline.d.ts +14 -7
  37. package/dist/modules/transition/Transition.d.ts +3 -3
  38. package/dist/modules/zip-archive/ZipArchive.d.ts +20 -0
  39. package/dist/modules/zip-archive/index.d.ts +1 -0
  40. package/dist/types/clip.types.d.ts +1 -0
  41. package/dist/utils/browser/isFirefox.d.ts +1 -0
  42. package/package.json +2 -2
@@ -4,14 +4,19 @@ import { FilterData, FilterDataOptions } from "./FilterData";
4
4
  import { MediaData } from "./MediaData";
5
5
  import { Subtitles } from "./Subtitles";
6
6
  import { TransitionData, TransitionDataOptions } from "./TransitionData";
7
- export interface AssetInfo {
7
+ export interface MissingAssetInfo {
8
8
  id: string;
9
9
  provider: string;
10
10
  }
11
+ export interface MissingFontInfo {
12
+ family: string;
13
+ weight?: string;
14
+ }
11
15
  export interface LibrarySetupData {
12
- missingEffects: AssetInfo[];
13
- missingFilters: AssetInfo[];
14
- missingTransitions: AssetInfo[];
16
+ missingEffects: MissingAssetInfo[];
17
+ missingFilters: MissingAssetInfo[];
18
+ missingTransitions: MissingAssetInfo[];
19
+ missingFonts: MissingFontInfo[];
15
20
  }
16
21
  export declare const LibrarySchema: z.ZodObject<{
17
22
  media: z.ZodArray<z.ZodObject<{
@@ -55,12 +60,12 @@ export declare const LibrarySchema: z.ZodObject<{
55
60
  duration: z.ZodNumber;
56
61
  }, "strip", z.ZodTypeAny, {
57
62
  text: string;
58
- duration: number;
59
63
  time: number;
64
+ duration: number;
60
65
  }, {
61
66
  text: string;
62
- duration: number;
63
67
  time: number;
68
+ duration: number;
64
69
  }>, "many">;
65
70
  }, "strip", z.ZodTypeAny, {
66
71
  id: string;
@@ -68,8 +73,8 @@ export declare const LibrarySchema: z.ZodObject<{
68
73
  language: string;
69
74
  textBlocks: {
70
75
  text: string;
71
- duration: number;
72
76
  time: number;
77
+ duration: number;
73
78
  }[];
74
79
  }, {
75
80
  id: string;
@@ -77,8 +82,8 @@ export declare const LibrarySchema: z.ZodObject<{
77
82
  language: string;
78
83
  textBlocks: {
79
84
  text: string;
80
- duration: number;
81
85
  time: number;
86
+ duration: number;
82
87
  }[];
83
88
  }>, "many">;
84
89
  effects: z.ZodArray<z.ZodObject<{
@@ -126,8 +131,6 @@ export declare const LibrarySchema: z.ZodObject<{
126
131
  }>, "many">>;
127
132
  }, "strip", z.ZodTypeAny, {
128
133
  name: string;
129
- id: string;
130
- provider: string;
131
134
  properties: {
132
135
  type: import('../../index').PropertyDescriptionTypeEnum;
133
136
  name: string;
@@ -135,6 +138,8 @@ export declare const LibrarySchema: z.ZodObject<{
135
138
  label?: string | undefined;
136
139
  description?: string | undefined;
137
140
  }[];
141
+ id: string;
142
+ provider: string;
138
143
  fragmentSrc: string;
139
144
  inputTextures?: {
140
145
  name: string;
@@ -145,8 +150,6 @@ export declare const LibrarySchema: z.ZodObject<{
145
150
  }[] | undefined;
146
151
  }, {
147
152
  name: string;
148
- id: string;
149
- provider: string;
150
153
  properties: {
151
154
  type: import('../../index').PropertyDescriptionTypeEnum;
152
155
  name: string;
@@ -154,6 +157,8 @@ export declare const LibrarySchema: z.ZodObject<{
154
157
  label?: string | undefined;
155
158
  description?: string | undefined;
156
159
  }[];
160
+ id: string;
161
+ provider: string;
157
162
  fragmentSrc: string;
158
163
  inputTextures?: {
159
164
  name: string;
@@ -224,8 +229,6 @@ export declare const LibrarySchema: z.ZodObject<{
224
229
  }>, "many">>;
225
230
  }, "strip", z.ZodTypeAny, {
226
231
  name: string;
227
- id: string;
228
- provider: string;
229
232
  properties: {
230
233
  type: import('../../index').PropertyDescriptionTypeEnum;
231
234
  name: string;
@@ -233,6 +236,8 @@ export declare const LibrarySchema: z.ZodObject<{
233
236
  label?: string | undefined;
234
237
  description?: string | undefined;
235
238
  }[];
239
+ id: string;
240
+ provider: string;
236
241
  transitionSrc: string;
237
242
  inputTextures?: {
238
243
  name: string;
@@ -243,8 +248,6 @@ export declare const LibrarySchema: z.ZodObject<{
243
248
  }[] | undefined;
244
249
  }, {
245
250
  name: string;
246
- id: string;
247
- provider: string;
248
251
  properties: {
249
252
  type: import('../../index').PropertyDescriptionTypeEnum;
250
253
  name: string;
@@ -252,6 +255,8 @@ export declare const LibrarySchema: z.ZodObject<{
252
255
  label?: string | undefined;
253
256
  description?: string | undefined;
254
257
  }[];
258
+ id: string;
259
+ provider: string;
255
260
  transitionSrc: string;
256
261
  inputTextures?: {
257
262
  name: string;
@@ -268,20 +273,12 @@ export declare const LibrarySchema: z.ZodObject<{
268
273
  language: string;
269
274
  textBlocks: {
270
275
  text: string;
271
- duration: number;
272
276
  time: number;
277
+ duration: number;
273
278
  }[];
274
279
  }[];
275
- filters: {
276
- name: string;
277
- id: string;
278
- provider: string;
279
- lutUrl: string;
280
- }[];
281
- effects: {
280
+ transitions: {
282
281
  name: string;
283
- id: string;
284
- provider: string;
285
282
  properties: {
286
283
  type: import('../../index').PropertyDescriptionTypeEnum;
287
284
  name: string;
@@ -289,7 +286,9 @@ export declare const LibrarySchema: z.ZodObject<{
289
286
  label?: string | undefined;
290
287
  description?: string | undefined;
291
288
  }[];
292
- fragmentSrc: string;
289
+ id: string;
290
+ provider: string;
291
+ transitionSrc: string;
293
292
  inputTextures?: {
294
293
  name: string;
295
294
  url: string;
@@ -298,10 +297,14 @@ export declare const LibrarySchema: z.ZodObject<{
298
297
  mipmap?: import('../../index').InputTextureMipmapMode | undefined;
299
298
  }[] | undefined;
300
299
  }[];
301
- transitions: {
300
+ filters: {
302
301
  name: string;
303
302
  id: string;
304
303
  provider: string;
304
+ lutUrl: string;
305
+ }[];
306
+ effects: {
307
+ name: string;
305
308
  properties: {
306
309
  type: import('../../index').PropertyDescriptionTypeEnum;
307
310
  name: string;
@@ -309,7 +312,9 @@ export declare const LibrarySchema: z.ZodObject<{
309
312
  label?: string | undefined;
310
313
  description?: string | undefined;
311
314
  }[];
312
- transitionSrc: string;
315
+ id: string;
316
+ provider: string;
317
+ fragmentSrc: string;
313
318
  inputTextures?: {
314
319
  name: string;
315
320
  url: string;
@@ -336,20 +341,12 @@ export declare const LibrarySchema: z.ZodObject<{
336
341
  language: string;
337
342
  textBlocks: {
338
343
  text: string;
339
- duration: number;
340
344
  time: number;
345
+ duration: number;
341
346
  }[];
342
347
  }[];
343
- filters: {
344
- name: string;
345
- id: string;
346
- provider: string;
347
- lutUrl: string;
348
- }[];
349
- effects: {
348
+ transitions: {
350
349
  name: string;
351
- id: string;
352
- provider: string;
353
350
  properties: {
354
351
  type: import('../../index').PropertyDescriptionTypeEnum;
355
352
  name: string;
@@ -357,7 +354,9 @@ export declare const LibrarySchema: z.ZodObject<{
357
354
  label?: string | undefined;
358
355
  description?: string | undefined;
359
356
  }[];
360
- fragmentSrc: string;
357
+ id: string;
358
+ provider: string;
359
+ transitionSrc: string;
361
360
  inputTextures?: {
362
361
  name: string;
363
362
  url: string;
@@ -366,10 +365,14 @@ export declare const LibrarySchema: z.ZodObject<{
366
365
  mipmap?: import('../../index').InputTextureMipmapMode | undefined;
367
366
  }[] | undefined;
368
367
  }[];
369
- transitions: {
368
+ filters: {
370
369
  name: string;
371
370
  id: string;
372
371
  provider: string;
372
+ lutUrl: string;
373
+ }[];
374
+ effects: {
375
+ name: string;
373
376
  properties: {
374
377
  type: import('../../index').PropertyDescriptionTypeEnum;
375
378
  name: string;
@@ -377,7 +380,9 @@ export declare const LibrarySchema: z.ZodObject<{
377
380
  label?: string | undefined;
378
381
  description?: string | undefined;
379
382
  }[];
380
- transitionSrc: string;
383
+ id: string;
384
+ provider: string;
385
+ fragmentSrc: string;
381
386
  inputTextures?: {
382
387
  name: string;
383
388
  url: string;
@@ -435,7 +440,7 @@ export declare class Library {
435
440
  syncAllMedia(): Promise<void>;
436
441
  replaceMedia(id: string, file: File | string | Uint8Array, mimeType?: string): Promise<boolean>;
437
442
  replaceSerializedMedia(data: any): Promise<boolean>;
438
- extractAudioFromMedia(mediaId: string): Promise<string | null>;
443
+ extractAudioFromMedia(mediaId: string, audioTrackIndex?: number): Promise<string | null>;
439
444
  private onFilmstripFrame;
440
445
  private processNextFilmstrip;
441
446
  createFilmstripWorker(mediaId: string): Promise<void>;
@@ -471,20 +476,12 @@ export declare class Library {
471
476
  language: string;
472
477
  textBlocks: {
473
478
  text: string;
474
- duration: number;
475
479
  time: number;
480
+ duration: number;
476
481
  }[];
477
482
  }[];
478
- filters: {
479
- name: string;
480
- id: string;
481
- provider: string;
482
- lutUrl: string;
483
- }[];
484
- effects: {
483
+ transitions: {
485
484
  name: string;
486
- id: string;
487
- provider: string;
488
485
  properties: {
489
486
  type: import('../../index').PropertyDescriptionTypeEnum;
490
487
  name: string;
@@ -492,7 +489,9 @@ export declare class Library {
492
489
  label?: string | undefined;
493
490
  description?: string | undefined;
494
491
  }[];
495
- fragmentSrc: string;
492
+ id: string;
493
+ provider: string;
494
+ transitionSrc: string;
496
495
  inputTextures?: {
497
496
  name: string;
498
497
  url: string;
@@ -501,10 +500,14 @@ export declare class Library {
501
500
  mipmap?: import('../../index').InputTextureMipmapMode | undefined;
502
501
  }[] | undefined;
503
502
  }[];
504
- transitions: {
503
+ filters: {
505
504
  name: string;
506
505
  id: string;
507
506
  provider: string;
507
+ lutUrl: string;
508
+ }[];
509
+ effects: {
510
+ name: string;
508
511
  properties: {
509
512
  type: import('../../index').PropertyDescriptionTypeEnum;
510
513
  name: string;
@@ -512,7 +515,9 @@ export declare class Library {
512
515
  label?: string | undefined;
513
516
  description?: string | undefined;
514
517
  }[];
515
- transitionSrc: string;
518
+ id: string;
519
+ provider: string;
520
+ fragmentSrc: string;
516
521
  inputTextures?: {
517
522
  name: string;
518
523
  url: string;
@@ -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>;
@@ -5,12 +5,12 @@ export declare const TextBlockSchema: z.ZodObject<{
5
5
  duration: z.ZodNumber;
6
6
  }, "strip", z.ZodTypeAny, {
7
7
  text: string;
8
- duration: number;
9
8
  time: number;
9
+ duration: number;
10
10
  }, {
11
11
  text: string;
12
- duration: number;
13
12
  time: number;
13
+ duration: number;
14
14
  }>;
15
15
  export declare const SubtitlesSchema: z.ZodObject<{
16
16
  id: z.ZodString;
@@ -22,12 +22,12 @@ export declare const SubtitlesSchema: z.ZodObject<{
22
22
  duration: z.ZodNumber;
23
23
  }, "strip", z.ZodTypeAny, {
24
24
  text: string;
25
- duration: number;
26
25
  time: number;
26
+ duration: number;
27
27
  }, {
28
28
  text: string;
29
- duration: number;
30
29
  time: number;
30
+ duration: number;
31
31
  }>, "many">;
32
32
  }, "strip", z.ZodTypeAny, {
33
33
  id: string;
@@ -35,8 +35,8 @@ export declare const SubtitlesSchema: z.ZodObject<{
35
35
  language: string;
36
36
  textBlocks: {
37
37
  text: string;
38
- duration: number;
39
38
  time: number;
39
+ duration: number;
40
40
  }[];
41
41
  }, {
42
42
  id: string;
@@ -44,8 +44,8 @@ export declare const SubtitlesSchema: z.ZodObject<{
44
44
  language: string;
45
45
  textBlocks: {
46
46
  text: string;
47
- duration: number;
48
47
  time: number;
48
+ duration: number;
49
49
  }[];
50
50
  }>;
51
51
  export interface TextBlock {
@@ -85,8 +85,8 @@ export declare class Subtitles {
85
85
  language: string;
86
86
  textBlocks: {
87
87
  text: string;
88
- duration: number;
89
88
  time: number;
89
+ duration: number;
90
90
  }[];
91
91
  };
92
92
  static deserialize(data: object): Subtitles;
@@ -56,8 +56,6 @@ export declare const TransitionDataSchema: z.ZodObject<{
56
56
  }>, "many">>;
57
57
  }, "strip", z.ZodTypeAny, {
58
58
  name: string;
59
- id: string;
60
- provider: string;
61
59
  properties: {
62
60
  type: import(".").PropertyDescriptionTypeEnum;
63
61
  name: string;
@@ -65,6 +63,8 @@ export declare const TransitionDataSchema: z.ZodObject<{
65
63
  label?: string | undefined;
66
64
  description?: string | undefined;
67
65
  }[];
66
+ id: string;
67
+ provider: string;
68
68
  transitionSrc: string;
69
69
  inputTextures?: {
70
70
  name: string;
@@ -75,8 +75,6 @@ export declare const TransitionDataSchema: z.ZodObject<{
75
75
  }[] | undefined;
76
76
  }, {
77
77
  name: string;
78
- id: string;
79
- provider: string;
80
78
  properties: {
81
79
  type: import(".").PropertyDescriptionTypeEnum;
82
80
  name: string;
@@ -84,6 +82,8 @@ export declare const TransitionDataSchema: z.ZodObject<{
84
82
  label?: string | undefined;
85
83
  description?: string | undefined;
86
84
  }[];
85
+ id: string;
86
+ provider: string;
87
87
  transitionSrc: string;
88
88
  inputTextures?: {
89
89
  name: string;
@@ -119,8 +119,6 @@ export declare class TransitionData {
119
119
  getIsSerializable(): boolean;
120
120
  serialize(): {
121
121
  name: string;
122
- id: string;
123
- provider: string;
124
122
  properties: {
125
123
  type: import(".").PropertyDescriptionTypeEnum;
126
124
  name: string;
@@ -128,6 +126,8 @@ export declare class TransitionData {
128
126
  label?: string | undefined;
129
127
  description?: string | undefined;
130
128
  }[];
129
+ id: string;
130
+ provider: string;
131
131
  transitionSrc: string;
132
132
  inputTextures?: {
133
133
  name: string;