remotion 4.0.496 → 4.0.498

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 (49) hide show
  1. package/dist/cjs/HtmlInCanvas.d.ts +35 -0
  2. package/dist/cjs/HtmlInCanvas.js +2 -0
  3. package/dist/cjs/Img.d.ts +55 -3
  4. package/dist/cjs/Img.js +22 -5
  5. package/dist/cjs/Interactive.d.ts +74 -6
  6. package/dist/cjs/Interactive.js +17 -2
  7. package/dist/cjs/animated-image/AnimatedImage.d.ts +135 -1
  8. package/dist/cjs/animated-image/AnimatedImage.js +47 -9
  9. package/dist/cjs/animated-image/create-image-decoder.d.ts +9 -0
  10. package/dist/cjs/animated-image/create-image-decoder.js +26 -0
  11. package/dist/cjs/animated-image/decode-image.d.ts +1 -0
  12. package/dist/cjs/animated-image/decode-image.js +14 -16
  13. package/dist/cjs/animated-image/get-duration-in-seconds.d.ts +6 -0
  14. package/dist/cjs/animated-image/get-duration-in-seconds.js +31 -0
  15. package/dist/cjs/animated-image/props.d.ts +2 -2
  16. package/dist/cjs/audio/html5-audio.js +4 -4
  17. package/dist/cjs/audio/shared-audio-tags.js +18 -16
  18. package/dist/cjs/audio/shared-element-source-node.d.ts +2 -1
  19. package/dist/cjs/audio/shared-element-source-node.js +6 -2
  20. package/dist/cjs/canvas-image/CanvasImage.d.ts +53 -1
  21. package/dist/cjs/canvas-image/CanvasImage.js +17 -2
  22. package/dist/cjs/canvas-image/props.d.ts +2 -2
  23. package/dist/cjs/effects/Solid.d.ts +35 -0
  24. package/dist/cjs/effects/Solid.js +2 -0
  25. package/dist/cjs/interactivity-schema.d.ts +144 -32
  26. package/dist/cjs/interactivity-schema.js +44 -10
  27. package/dist/cjs/internals.d.ts +77 -26
  28. package/dist/cjs/internals.js +2 -1
  29. package/dist/cjs/no-react.d.ts +36 -6
  30. package/dist/cjs/no-react.js +2 -1
  31. package/dist/cjs/series/index.d.ts +1 -1
  32. package/dist/cjs/series/index.js +1 -0
  33. package/dist/cjs/use-amplification.d.ts +1 -0
  34. package/dist/cjs/v5-flag.d.ts +1 -0
  35. package/dist/cjs/v5-flag.js +5 -1
  36. package/dist/cjs/version.d.ts +1 -1
  37. package/dist/cjs/version.js +1 -1
  38. package/dist/cjs/video/OffthreadVideo.js +6 -4
  39. package/dist/cjs/video/html5-video.js +4 -4
  40. package/dist/esm/index.mjs +379 -119
  41. package/dist/esm/no-react.mjs +44 -11
  42. package/dist/esm/version.mjs +1 -1
  43. package/package.json +2 -2
  44. package/dist/cjs/interpolate-translate.d.ts +0 -8
  45. package/dist/cjs/interpolate-translate.js +0 -70
  46. package/dist/cjs/sequence-field-schema.d.ts +0 -425
  47. package/dist/cjs/sequence-field-schema.js +0 -133
  48. package/dist/cjs/wrap-in-schema.d.ts +0 -20
  49. package/dist/cjs/wrap-in-schema.js +0 -203
@@ -289,6 +289,45 @@ export declare const textSchema: {
289
289
  readonly hiddenFromList: false;
290
290
  };
291
291
  };
292
+ export declare const borderSchema: {
293
+ readonly 'style.borderWidth': {
294
+ readonly type: "number";
295
+ readonly default: undefined;
296
+ readonly min: 0;
297
+ readonly step: 1;
298
+ readonly description: "Border width";
299
+ readonly hiddenFromList: false;
300
+ };
301
+ readonly 'style.borderStyle': {
302
+ readonly type: "enum";
303
+ readonly default: "none";
304
+ readonly description: "Border style";
305
+ readonly variants: {
306
+ readonly none: {};
307
+ readonly hidden: {};
308
+ readonly solid: {};
309
+ readonly dashed: {};
310
+ readonly dotted: {};
311
+ readonly double: {};
312
+ readonly groove: {};
313
+ readonly ridge: {};
314
+ readonly inset: {};
315
+ readonly outset: {};
316
+ };
317
+ };
318
+ readonly 'style.borderColor': {
319
+ readonly type: "color";
320
+ readonly default: undefined;
321
+ readonly description: "Border color";
322
+ };
323
+ };
324
+ export declare const backgroundSchema: {
325
+ readonly 'style.backgroundColor': {
326
+ readonly type: "color";
327
+ readonly default: "transparent";
328
+ readonly description: "Color";
329
+ };
330
+ };
292
331
  export declare const textContentSchema: {
293
332
  readonly children: {
294
333
  readonly type: "text-content";
@@ -316,14 +355,6 @@ export declare const premountSchema: {
316
355
  readonly keyframable: false;
317
356
  };
318
357
  };
319
- export declare const premountStyleSchema: {
320
- readonly styleWhilePremounted: {
321
- readonly type: "hidden";
322
- };
323
- readonly styleWhilePostmounted: {
324
- readonly type: "hidden";
325
- };
326
- };
327
358
  export declare const sequencePremountSchema: {
328
359
  readonly premountFor: {
329
360
  readonly type: "number";
@@ -342,12 +373,6 @@ export declare const sequencePremountSchema: {
342
373
  readonly hiddenFromList: true;
343
374
  readonly keyframable: false;
344
375
  };
345
- readonly styleWhilePremounted: {
346
- readonly type: "hidden";
347
- };
348
- readonly styleWhilePostmounted: {
349
- readonly type: "hidden";
350
- };
351
376
  };
352
377
  export declare const sequenceStyleSchema: {
353
378
  readonly 'style.transformOrigin': {
@@ -385,6 +410,41 @@ export declare const sequenceStyleSchema: {
385
410
  readonly description: "Opacity";
386
411
  readonly hiddenFromList: false;
387
412
  };
413
+ readonly 'style.borderWidth': {
414
+ readonly type: "number";
415
+ readonly default: undefined;
416
+ readonly min: 0;
417
+ readonly step: 1;
418
+ readonly description: "Border width";
419
+ readonly hiddenFromList: false;
420
+ };
421
+ readonly 'style.borderStyle': {
422
+ readonly type: "enum";
423
+ readonly default: "none";
424
+ readonly description: "Border style";
425
+ readonly variants: {
426
+ readonly none: {};
427
+ readonly hidden: {};
428
+ readonly solid: {};
429
+ readonly dashed: {};
430
+ readonly dotted: {};
431
+ readonly double: {};
432
+ readonly groove: {};
433
+ readonly ridge: {};
434
+ readonly inset: {};
435
+ readonly outset: {};
436
+ };
437
+ };
438
+ readonly 'style.borderColor': {
439
+ readonly type: "color";
440
+ readonly default: undefined;
441
+ readonly description: "Border color";
442
+ };
443
+ readonly 'style.backgroundColor': {
444
+ readonly type: "color";
445
+ readonly default: "transparent";
446
+ readonly description: "Color";
447
+ };
388
448
  readonly premountFor: {
389
449
  readonly type: "number";
390
450
  readonly default: 0;
@@ -402,12 +462,6 @@ export declare const sequenceStyleSchema: {
402
462
  readonly hiddenFromList: true;
403
463
  readonly keyframable: false;
404
464
  };
405
- readonly styleWhilePremounted: {
406
- readonly type: "hidden";
407
- };
408
- readonly styleWhilePostmounted: {
409
- readonly type: "hidden";
410
- };
411
465
  };
412
466
  export declare const hiddenField: InteractivitySchemaField;
413
467
  export declare const sequenceNameField: InteractivitySchemaField;
@@ -542,6 +596,41 @@ export declare const sequenceSchema: {
542
596
  readonly description: "Opacity";
543
597
  readonly hiddenFromList: false;
544
598
  };
599
+ readonly 'style.borderWidth': {
600
+ readonly type: "number";
601
+ readonly default: undefined;
602
+ readonly min: 0;
603
+ readonly step: 1;
604
+ readonly description: "Border width";
605
+ readonly hiddenFromList: false;
606
+ };
607
+ readonly 'style.borderStyle': {
608
+ readonly type: "enum";
609
+ readonly default: "none";
610
+ readonly description: "Border style";
611
+ readonly variants: {
612
+ readonly none: {};
613
+ readonly hidden: {};
614
+ readonly solid: {};
615
+ readonly dashed: {};
616
+ readonly dotted: {};
617
+ readonly double: {};
618
+ readonly groove: {};
619
+ readonly ridge: {};
620
+ readonly inset: {};
621
+ readonly outset: {};
622
+ };
623
+ };
624
+ readonly 'style.borderColor': {
625
+ readonly type: "color";
626
+ readonly default: undefined;
627
+ readonly description: "Border color";
628
+ };
629
+ readonly 'style.backgroundColor': {
630
+ readonly type: "color";
631
+ readonly default: "transparent";
632
+ readonly description: "Color";
633
+ };
545
634
  readonly premountFor: {
546
635
  readonly type: "number";
547
636
  readonly default: 0;
@@ -559,12 +648,6 @@ export declare const sequenceSchema: {
559
648
  readonly hiddenFromList: true;
560
649
  readonly keyframable: false;
561
650
  };
562
- readonly styleWhilePremounted: {
563
- readonly type: "hidden";
564
- };
565
- readonly styleWhilePostmounted: {
566
- readonly type: "hidden";
567
- };
568
651
  };
569
652
  readonly none: {};
570
653
  };
@@ -660,6 +743,41 @@ export declare const sequenceSchemaWithoutFrom: {
660
743
  readonly description: "Opacity";
661
744
  readonly hiddenFromList: false;
662
745
  };
746
+ readonly 'style.borderWidth': {
747
+ readonly type: "number";
748
+ readonly default: undefined;
749
+ readonly min: 0;
750
+ readonly step: 1;
751
+ readonly description: "Border width";
752
+ readonly hiddenFromList: false;
753
+ };
754
+ readonly 'style.borderStyle': {
755
+ readonly type: "enum";
756
+ readonly default: "none";
757
+ readonly description: "Border style";
758
+ readonly variants: {
759
+ readonly none: {};
760
+ readonly hidden: {};
761
+ readonly solid: {};
762
+ readonly dashed: {};
763
+ readonly dotted: {};
764
+ readonly double: {};
765
+ readonly groove: {};
766
+ readonly ridge: {};
767
+ readonly inset: {};
768
+ readonly outset: {};
769
+ };
770
+ };
771
+ readonly 'style.borderColor': {
772
+ readonly type: "color";
773
+ readonly default: undefined;
774
+ readonly description: "Border color";
775
+ };
776
+ readonly 'style.backgroundColor': {
777
+ readonly type: "color";
778
+ readonly default: "transparent";
779
+ readonly description: "Color";
780
+ };
663
781
  readonly premountFor: {
664
782
  readonly type: "number";
665
783
  readonly default: 0;
@@ -677,12 +795,6 @@ export declare const sequenceSchemaWithoutFrom: {
677
795
  readonly hiddenFromList: true;
678
796
  readonly keyframable: false;
679
797
  };
680
- readonly styleWhilePremounted: {
681
- readonly type: "hidden";
682
- };
683
- readonly styleWhilePostmounted: {
684
- readonly type: "hidden";
685
- };
686
798
  };
687
799
  readonly none: {};
688
800
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sequenceSchemaDefaultLayoutNone = exports.sequenceSchemaWithoutFrom = exports.baseSchemaWithoutFrom = exports.sequenceSchema = exports.baseSchema = exports.freezeField = exports.trimBeforeField = exports.fromField = exports.durationInFramesField = exports.extendSchemaWithSequenceName = exports.sequenceNameField = exports.hiddenField = exports.sequenceStyleSchema = exports.sequencePremountSchema = exports.premountStyleSchema = exports.premountSchema = exports.textContentSchema = exports.textSchema = exports.sequenceVisualStyleSchema = exports.transformSchema = void 0;
3
+ exports.sequenceSchemaDefaultLayoutNone = exports.sequenceSchemaWithoutFrom = exports.baseSchemaWithoutFrom = exports.sequenceSchema = exports.baseSchema = exports.freezeField = exports.trimBeforeField = exports.fromField = exports.durationInFramesField = exports.extendSchemaWithSequenceName = exports.sequenceNameField = exports.hiddenField = exports.sequenceStyleSchema = exports.sequencePremountSchema = exports.premountSchema = exports.textContentSchema = exports.backgroundSchema = exports.borderSchema = exports.textSchema = exports.sequenceVisualStyleSchema = exports.transformSchema = void 0;
4
4
  exports.transformSchema = {
5
5
  'style.transformOrigin': {
6
6
  type: 'transform-origin',
@@ -116,6 +116,47 @@ exports.textSchema = {
116
116
  hiddenFromList: false,
117
117
  },
118
118
  };
119
+ exports.borderSchema = {
120
+ 'style.borderWidth': {
121
+ type: 'number',
122
+ default: undefined,
123
+ min: 0,
124
+ step: 1,
125
+ description: 'Border width',
126
+ hiddenFromList: false,
127
+ },
128
+ 'style.borderStyle': {
129
+ type: 'enum',
130
+ // `none` is the CSS initial value of border-style.
131
+ default: 'none',
132
+ description: 'Border style',
133
+ variants: {
134
+ none: {},
135
+ hidden: {},
136
+ solid: {},
137
+ dashed: {},
138
+ dotted: {},
139
+ double: {},
140
+ groove: {},
141
+ ridge: {},
142
+ inset: {},
143
+ outset: {},
144
+ },
145
+ },
146
+ 'style.borderColor': {
147
+ type: 'color',
148
+ default: undefined,
149
+ description: 'Border color',
150
+ },
151
+ };
152
+ exports.backgroundSchema = {
153
+ 'style.backgroundColor': {
154
+ type: 'color',
155
+ // `transparent` is the CSS initial value of background-color.
156
+ default: 'transparent',
157
+ description: 'Color',
158
+ },
159
+ };
119
160
  exports.textContentSchema = {
120
161
  children: {
121
162
  type: 'text-content',
@@ -143,20 +184,13 @@ exports.premountSchema = {
143
184
  keyframable: false,
144
185
  },
145
186
  };
146
- exports.premountStyleSchema = {
147
- styleWhilePremounted: {
148
- type: 'hidden',
149
- },
150
- styleWhilePostmounted: {
151
- type: 'hidden',
152
- },
153
- };
154
187
  exports.sequencePremountSchema = {
155
188
  ...exports.premountSchema,
156
- ...exports.premountStyleSchema,
157
189
  };
158
190
  exports.sequenceStyleSchema = {
159
191
  ...exports.transformSchema,
192
+ ...exports.backgroundSchema,
193
+ ...exports.borderSchema,
160
194
  ...exports.sequencePremountSchema,
161
195
  };
162
196
  exports.hiddenField = {
@@ -36,6 +36,12 @@ export declare const Internals: {
36
36
  mediaVolume: number;
37
37
  }) => number;
38
38
  readonly getAbsoluteSrc: (relativeSrc: string) => string;
39
+ readonly getAnimatedImageDurationInSeconds: ({ resolvedSrc, signal, requestInit, contentType, }: {
40
+ resolvedSrc: string;
41
+ signal: AbortSignal;
42
+ requestInit?: RequestInit | undefined;
43
+ contentType: string | null;
44
+ }) => Promise<number>;
39
45
  readonly getAssetDisplayName: (filename: string) => string;
40
46
  readonly Timeline: typeof TimelinePosition;
41
47
  readonly validateMediaTrimProps: ({ startFrom, endAt, trimBefore, trimAfter, }: {
@@ -179,6 +185,41 @@ export declare const Internals: {
179
185
  readonly description: "Opacity";
180
186
  readonly hiddenFromList: false;
181
187
  };
188
+ readonly 'style.borderWidth': {
189
+ readonly type: "number";
190
+ readonly default: undefined;
191
+ readonly min: 0;
192
+ readonly step: 1;
193
+ readonly description: "Border width";
194
+ readonly hiddenFromList: false;
195
+ };
196
+ readonly 'style.borderStyle': {
197
+ readonly type: "enum";
198
+ readonly default: "none";
199
+ readonly description: "Border style";
200
+ readonly variants: {
201
+ readonly none: {};
202
+ readonly hidden: {};
203
+ readonly solid: {};
204
+ readonly dashed: {};
205
+ readonly dotted: {};
206
+ readonly double: {};
207
+ readonly groove: {};
208
+ readonly ridge: {};
209
+ readonly inset: {};
210
+ readonly outset: {};
211
+ };
212
+ };
213
+ readonly 'style.borderColor': {
214
+ readonly type: "color";
215
+ readonly default: undefined;
216
+ readonly description: "Border color";
217
+ };
218
+ readonly 'style.backgroundColor': {
219
+ readonly type: "color";
220
+ readonly default: "transparent";
221
+ readonly description: "Color";
222
+ };
182
223
  readonly premountFor: {
183
224
  readonly type: "number";
184
225
  readonly default: 0;
@@ -196,12 +237,6 @@ export declare const Internals: {
196
237
  readonly hiddenFromList: true;
197
238
  readonly keyframable: false;
198
239
  };
199
- readonly styleWhilePremounted: {
200
- readonly type: "hidden";
201
- };
202
- readonly styleWhilePostmounted: {
203
- readonly type: "hidden";
204
- };
205
240
  };
206
241
  readonly none: {};
207
242
  };
@@ -244,6 +279,41 @@ export declare const Internals: {
244
279
  readonly description: "Opacity";
245
280
  readonly hiddenFromList: false;
246
281
  };
282
+ readonly 'style.borderWidth': {
283
+ readonly type: "number";
284
+ readonly default: undefined;
285
+ readonly min: 0;
286
+ readonly step: 1;
287
+ readonly description: "Border width";
288
+ readonly hiddenFromList: false;
289
+ };
290
+ readonly 'style.borderStyle': {
291
+ readonly type: "enum";
292
+ readonly default: "none";
293
+ readonly description: "Border style";
294
+ readonly variants: {
295
+ readonly none: {};
296
+ readonly hidden: {};
297
+ readonly solid: {};
298
+ readonly dashed: {};
299
+ readonly dotted: {};
300
+ readonly double: {};
301
+ readonly groove: {};
302
+ readonly ridge: {};
303
+ readonly inset: {};
304
+ readonly outset: {};
305
+ };
306
+ };
307
+ readonly 'style.borderColor': {
308
+ readonly type: "color";
309
+ readonly default: undefined;
310
+ readonly description: "Border color";
311
+ };
312
+ readonly 'style.backgroundColor': {
313
+ readonly type: "color";
314
+ readonly default: "transparent";
315
+ readonly description: "Color";
316
+ };
247
317
  readonly premountFor: {
248
318
  readonly type: "number";
249
319
  readonly default: 0;
@@ -261,12 +331,6 @@ export declare const Internals: {
261
331
  readonly hiddenFromList: true;
262
332
  readonly keyframable: false;
263
333
  };
264
- readonly styleWhilePremounted: {
265
- readonly type: "hidden";
266
- };
267
- readonly styleWhilePostmounted: {
268
- readonly type: "hidden";
269
- };
270
334
  };
271
335
  readonly sequenceVisualStyleSchema: {
272
336
  readonly 'style.transformOrigin': {
@@ -323,12 +387,6 @@ export declare const Internals: {
323
387
  readonly hiddenFromList: true;
324
388
  readonly keyframable: false;
325
389
  };
326
- readonly styleWhilePremounted: {
327
- readonly type: "hidden";
328
- };
329
- readonly styleWhilePostmounted: {
330
- readonly type: "hidden";
331
- };
332
390
  };
333
391
  readonly textSchema: {
334
392
  readonly 'style.color': {
@@ -463,14 +521,6 @@ export declare const Internals: {
463
521
  readonly keyframable: false;
464
522
  };
465
523
  };
466
- readonly premountStyleSchema: {
467
- readonly styleWhilePremounted: {
468
- readonly type: "hidden";
469
- };
470
- readonly styleWhilePostmounted: {
471
- readonly type: "hidden";
472
- };
473
- };
474
524
  readonly flattenActiveSchema: (schema: InteractivitySchema, resolve: import("./flatten-schema.js").ResolveValue) => InteractivitySchema;
475
525
  readonly getFlatSchemaWithAllKeys: (schema: InteractivitySchema) => InteractivitySchema;
476
526
  readonly RemotionRootContexts: import("react").FC<{
@@ -579,6 +629,7 @@ export declare const Internals: {
579
629
  el: import("react").RefObject<HTMLAudioElement | null>;
580
630
  audioId: string;
581
631
  mediaElementSourceNode: {
632
+ setAudioContext: (newAudioContext: AudioContext | null) => void;
582
633
  attemptToConnect: () => void;
583
634
  get: () => MediaElementAudioSourceNode;
584
635
  cleanup: () => void;
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.Internals = void 0;
37
37
  const react_1 = require("react");
38
38
  const absolute_src_js_1 = require("./absolute-src.js");
39
+ const get_duration_in_seconds_js_1 = require("./animated-image/get-duration-in-seconds.js");
39
40
  const AudioForPreview_js_1 = require("./audio/AudioForPreview.js");
40
41
  const shared_audio_tags_js_1 = require("./audio/shared-audio-tags.js");
41
42
  const use_audio_frame_js_1 = require("./audio/use-audio-frame.js");
@@ -126,6 +127,7 @@ exports.Internals = {
126
127
  useAbsoluteTimelinePosition: TimelinePosition.useAbsoluteTimelinePosition,
127
128
  evaluateVolume: volume_prop_js_1.evaluateVolume,
128
129
  getAbsoluteSrc: absolute_src_js_1.getAbsoluteSrc,
130
+ getAnimatedImageDurationInSeconds: get_duration_in_seconds_js_1.getAnimatedImageDurationInSeconds,
129
131
  getAssetDisplayName: get_asset_file_name_js_1.getAssetDisplayName,
130
132
  Timeline: TimelinePosition,
131
133
  validateMediaTrimProps: validate_start_from_props_js_1.validateMediaTrimProps,
@@ -150,7 +152,6 @@ exports.Internals = {
150
152
  textSchema: interactivity_schema_js_1.textSchema,
151
153
  transformSchema: interactivity_schema_js_1.transformSchema,
152
154
  premountSchema: interactivity_schema_js_1.premountSchema,
153
- premountStyleSchema: interactivity_schema_js_1.premountStyleSchema,
154
155
  flattenActiveSchema: flatten_schema_js_1.flattenActiveSchema,
155
156
  getFlatSchemaWithAllKeys: flatten_schema_js_1.getFlatSchemaWithAllKeys,
156
157
  RemotionRootContexts: RemotionRoot_js_1.RemotionRootContexts,
@@ -49,6 +49,7 @@ export declare const NoReactInternals: {
49
49
  ENABLE_V5_BREAKING_CHANGES: false;
50
50
  MIN_NODE_VERSION: number;
51
51
  MIN_BUN_VERSION: string;
52
+ MIN_ESLINT_VERSION: string;
52
53
  colorNames: {
53
54
  [key: string]: number;
54
55
  };
@@ -132,6 +133,41 @@ export declare const NoReactInternals: {
132
133
  readonly description: "Opacity";
133
134
  readonly hiddenFromList: false;
134
135
  };
136
+ readonly 'style.borderWidth': {
137
+ readonly type: "number";
138
+ readonly default: undefined;
139
+ readonly min: 0;
140
+ readonly step: 1;
141
+ readonly description: "Border width";
142
+ readonly hiddenFromList: false;
143
+ };
144
+ readonly 'style.borderStyle': {
145
+ readonly type: "enum";
146
+ readonly default: "none";
147
+ readonly description: "Border style";
148
+ readonly variants: {
149
+ readonly none: {};
150
+ readonly hidden: {};
151
+ readonly solid: {};
152
+ readonly dashed: {};
153
+ readonly dotted: {};
154
+ readonly double: {};
155
+ readonly groove: {};
156
+ readonly ridge: {};
157
+ readonly inset: {};
158
+ readonly outset: {};
159
+ };
160
+ };
161
+ readonly 'style.borderColor': {
162
+ readonly type: "color";
163
+ readonly default: undefined;
164
+ readonly description: "Border color";
165
+ };
166
+ readonly 'style.backgroundColor': {
167
+ readonly type: "color";
168
+ readonly default: "transparent";
169
+ readonly description: "Color";
170
+ };
135
171
  readonly premountFor: {
136
172
  readonly type: "number";
137
173
  readonly default: 0;
@@ -149,12 +185,6 @@ export declare const NoReactInternals: {
149
185
  readonly hiddenFromList: true;
150
186
  readonly keyframable: false;
151
187
  };
152
- readonly styleWhilePremounted: {
153
- readonly type: "hidden";
154
- };
155
- readonly styleWhilePostmounted: {
156
- readonly type: "hidden";
157
- };
158
188
  };
159
189
  readonly none: {};
160
190
  };
@@ -44,8 +44,9 @@ exports.NoReactInternals = {
44
44
  getOffthreadVideoSource: offthread_video_source_1.getOffthreadVideoSource,
45
45
  getExpectedMediaFrameUncorrected: get_current_time_1.getExpectedMediaFrameUncorrected,
46
46
  ENABLE_V5_BREAKING_CHANGES: v5_flag_1.ENABLE_V5_BREAKING_CHANGES,
47
- MIN_NODE_VERSION: v5_flag_1.ENABLE_V5_BREAKING_CHANGES ? 18 : 16,
47
+ MIN_NODE_VERSION: v5_flag_1.ENABLE_V5_BREAKING_CHANGES ? 22 : 16,
48
48
  MIN_BUN_VERSION: v5_flag_1.ENABLE_V5_BREAKING_CHANGES ? '1.1.3' : '1.0.3',
49
+ MIN_ESLINT_VERSION: v5_flag_1.ENABLE_V5_BREAKING_CHANGES ? '8.57.0' : '7.15.0',
49
50
  colorNames: interpolate_colors_1.colorNames,
50
51
  DATE_TOKEN: input_props_serialization_js_1.DATE_TOKEN,
51
52
  FILE_TOKEN: input_props_serialization_js_1.FILE_TOKEN,
@@ -4,7 +4,7 @@ type SeriesSequenceProps = PropsWithChildren<{
4
4
  readonly durationInFrames: number;
5
5
  readonly offset?: number;
6
6
  readonly className?: string;
7
- } & Pick<SequenceProps, 'layout' | 'name' | 'hidden' | 'showInTimeline' | 'freeze'> & LayoutAndStyle>;
7
+ } & Pick<SequenceProps, 'layout' | 'name' | 'hidden' | 'showInTimeline' | 'freeze' | 'trimBefore'> & LayoutAndStyle>;
8
8
  declare const SeriesSequence: React.ForwardRefExoticComponent<SeriesSequenceProps & React.RefAttributes<HTMLDivElement>>;
9
9
  type SeriesProps = SequenceProps;
10
10
  /**
@@ -50,6 +50,7 @@ const seriesSequenceSchema = {
50
50
  hidden: Interactive_js_1.Interactive.sequenceSchema.hidden,
51
51
  showInTimeline: Interactive_js_1.Interactive.sequenceSchema.showInTimeline,
52
52
  freeze: Interactive_js_1.Interactive.baseSchema.freeze,
53
+ trimBefore: Interactive_js_1.Interactive.sequenceSchema.trimBefore,
53
54
  layout: Interactive_js_1.Interactive.sequenceSchema.layout,
54
55
  };
55
56
  const SeriesSequenceInner = (0, react_1.forwardRef)(({ offset = 0, className = '', stack = null, _remotionInternalRender = null, ...props }, ref) => {
@@ -9,6 +9,7 @@ type AudioItems = {
9
9
  export declare const useVolume: ({ mediaRef, volume, logLevel, source, shouldUseWebAudioApi, }: {
10
10
  mediaRef: RefObject<HTMLAudioElement | HTMLVideoElement | null>;
11
11
  source: {
12
+ setAudioContext: (newAudioContext: AudioContext | null) => void;
12
13
  attemptToConnect: () => void;
13
14
  get: () => MediaElementAudioSourceNode;
14
15
  cleanup: () => void;
@@ -1 +1,2 @@
1
1
  export declare const ENABLE_V5_BREAKING_CHANGES: false;
2
+ export declare const resolveV5Default: (value: boolean | undefined) => boolean;
@@ -1,4 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ENABLE_V5_BREAKING_CHANGES = void 0;
3
+ exports.resolveV5Default = exports.ENABLE_V5_BREAKING_CHANGES = void 0;
4
4
  exports.ENABLE_V5_BREAKING_CHANGES = false;
5
+ const resolveV5Default = (value) => {
6
+ return value !== null && value !== void 0 ? value : exports.ENABLE_V5_BREAKING_CHANGES;
7
+ };
8
+ exports.resolveV5Default = resolveV5Default;
@@ -3,4 +3,4 @@
3
3
  * @see [Documentation](https://remotion.dev/docs/version)
4
4
  * @returns {string} The current version of the remotion package
5
5
  */
6
- export declare const VERSION = "4.0.496";
6
+ export declare const VERSION = "4.0.498";
@@ -7,4 +7,4 @@ exports.VERSION = void 0;
7
7
  * @see [Documentation](https://remotion.dev/docs/version)
8
8
  * @returns {string} The current version of the remotion package
9
9
  */
10
- exports.VERSION = '4.0.496';
10
+ exports.VERSION = '4.0.498';