@remotion/bundler 4.0.154 → 4.0.157

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 (2) hide show
  1. package/package.json +4 -4
  2. package/renderEntry.tsx +26 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "4.0.154",
3
+ "version": "4.0.157",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -25,9 +25,9 @@
25
25
  "style-loader": "2.0.0",
26
26
  "source-map": "0.7.3",
27
27
  "webpack": "5.83.1",
28
- "remotion": "4.0.154",
29
- "@remotion/studio": "4.0.154",
30
- "@remotion/studio-shared": "4.0.154"
28
+ "remotion": "4.0.157",
29
+ "@remotion/studio": "4.0.157",
30
+ "@remotion/studio-shared": "4.0.157"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0",
package/renderEntry.tsx CHANGED
@@ -343,11 +343,21 @@ if (typeof window !== 'undefined') {
343
343
  `Running calculateMetadata() for composition ${c.id}. If you didn't want to evaluate this composition, use "selectComposition()" instead of "getCompositions()"`,
344
344
  );
345
345
 
346
+ const originalProps = {
347
+ ...(c.defaultProps ?? {}),
348
+ ...(inputProps ?? {}),
349
+ };
350
+
346
351
  const comp = Internals.resolveVideoConfig({
347
- composition: c,
348
- editorProps: {},
352
+ calculateMetadata: c.calculateMetadata,
353
+ compositionDurationInFrames: c.durationInFrames ?? null,
354
+ compositionFps: c.fps ?? null,
355
+ compositionHeight: c.height ?? null,
356
+ compositionWidth: c.width ?? null,
349
357
  signal: new AbortController().signal,
350
- inputProps,
358
+ originalProps,
359
+ defaultProps: c.defaultProps ?? {},
360
+ compositionId: c.id,
351
361
  });
352
362
 
353
363
  const resolved = await Promise.resolve(comp);
@@ -398,12 +408,22 @@ if (typeof window !== 'undefined') {
398
408
  ? {}
399
409
  : getInputProps() ?? {};
400
410
 
411
+ const originalProps = {
412
+ ...(selectedComp.defaultProps ?? {}),
413
+ ...(inputProps ?? {}),
414
+ };
415
+
401
416
  const prom = await Promise.resolve(
402
417
  Internals.resolveVideoConfig({
403
- composition: selectedComp,
404
- editorProps: {},
418
+ calculateMetadata: selectedComp.calculateMetadata,
419
+ compositionDurationInFrames: selectedComp.durationInFrames ?? null,
420
+ compositionFps: selectedComp.fps ?? null,
421
+ compositionHeight: selectedComp.height ?? null,
422
+ compositionWidth: selectedComp.width ?? null,
423
+ originalProps,
405
424
  signal: abortController.signal,
406
- inputProps,
425
+ defaultProps: selectedComp.defaultProps ?? {},
426
+ compositionId: selectedComp.id,
407
427
  }),
408
428
  );
409
429
  continueRender(handle);