remotion 3.0.0-lambda.2 → 3.0.0-lambda.203

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 (107) hide show
  1. package/coverage/coverage-summary.json +58 -55
  2. package/dist/CompositionManager.d.ts +3 -1
  3. package/dist/CompositionManager.d.ts.map +1 -1
  4. package/dist/CompositionManager.js.map +1 -1
  5. package/dist/RemotionRoot.d.ts.map +1 -1
  6. package/dist/RemotionRoot.js +6 -1
  7. package/dist/RemotionRoot.js.map +1 -1
  8. package/dist/audio/Audio.d.ts +1 -1
  9. package/dist/audio/AudioForDevelopment.d.ts +1 -1
  10. package/dist/audio/AudioForRendering.d.ts +1 -1
  11. package/dist/audio/AudioForRendering.d.ts.map +1 -1
  12. package/dist/audio/AudioForRendering.js +0 -2
  13. package/dist/audio/AudioForRendering.js.map +1 -1
  14. package/dist/config/concurrent-mode.d.ts +6 -0
  15. package/dist/config/concurrent-mode.d.ts.map +1 -0
  16. package/dist/config/concurrent-mode.js +17 -0
  17. package/dist/config/concurrent-mode.js.map +1 -0
  18. package/dist/config/crf.d.ts +1 -1
  19. package/dist/config/crf.d.ts.map +1 -1
  20. package/dist/config/crf.js +6 -0
  21. package/dist/config/crf.js.map +1 -1
  22. package/dist/config/ffmpeg-executable.d.ts +4 -0
  23. package/dist/config/ffmpeg-executable.d.ts.map +1 -0
  24. package/dist/config/ffmpeg-executable.js +13 -0
  25. package/dist/config/ffmpeg-executable.js.map +1 -0
  26. package/dist/config/image-format.d.ts +1 -1
  27. package/dist/config/index.d.ts +9 -3
  28. package/dist/config/index.d.ts.map +1 -1
  29. package/dist/config/index.js +6 -0
  30. package/dist/config/index.js.map +1 -1
  31. package/dist/config/input-props.d.ts.map +1 -1
  32. package/dist/config/input-props.js +14 -0
  33. package/dist/config/input-props.js.map +1 -1
  34. package/dist/config/log.d.ts +2 -1
  35. package/dist/config/log.d.ts.map +1 -1
  36. package/dist/config/log.js +5 -4
  37. package/dist/config/log.js.map +1 -1
  38. package/dist/config/overwrite.d.ts +1 -0
  39. package/dist/config/overwrite.d.ts.map +1 -1
  40. package/dist/config/overwrite.js +3 -2
  41. package/dist/config/overwrite.js.map +1 -1
  42. package/dist/config/parallel-encoding.d.ts +3 -0
  43. package/dist/config/parallel-encoding.d.ts.map +1 -0
  44. package/dist/config/parallel-encoding.js +14 -0
  45. package/dist/config/parallel-encoding.js.map +1 -0
  46. package/dist/internals.d.ts +12 -10
  47. package/dist/internals.d.ts.map +1 -1
  48. package/dist/internals.js +4 -0
  49. package/dist/internals.js.map +1 -1
  50. package/dist/interpolate.d.ts.map +1 -1
  51. package/dist/interpolate.js +9 -5
  52. package/dist/interpolate.js.map +1 -1
  53. package/dist/timeline-position-state.d.ts +6 -2
  54. package/dist/timeline-position-state.d.ts.map +1 -1
  55. package/dist/timeline-position-state.js +9 -2
  56. package/dist/timeline-position-state.js.map +1 -1
  57. package/dist/use-media-in-timeline.d.ts.map +1 -1
  58. package/dist/use-media-in-timeline.js +17 -1
  59. package/dist/use-media-in-timeline.js.map +1 -1
  60. package/dist/use-media-playback.d.ts +1 -1
  61. package/dist/use-media-playback.d.ts.map +1 -1
  62. package/dist/use-media-playback.js +9 -3
  63. package/dist/use-media-playback.js.map +1 -1
  64. package/dist/use-unsafe-video-config.d.ts.map +1 -1
  65. package/dist/use-unsafe-video-config.js +2 -1
  66. package/dist/use-unsafe-video-config.js.map +1 -1
  67. package/dist/video/Video.d.ts +1 -1
  68. package/dist/video/VideoForDevelopment.d.ts +1 -1
  69. package/dist/video/VideoForRendering.d.ts +1 -1
  70. package/dist/video/VideoForRendering.d.ts.map +1 -1
  71. package/dist/video/VideoForRendering.js +1 -3
  72. package/dist/video/VideoForRendering.js.map +1 -1
  73. package/dist/video-config.d.ts +1 -0
  74. package/dist/video-config.d.ts.map +1 -1
  75. package/package.json +3 -3
  76. package/dist/component-type.d.ts +0 -1
  77. package/dist/component-type.d.ts.map +0 -1
  78. package/dist/component-type.js +0 -2
  79. package/dist/component-type.js.map +0 -1
  80. package/dist/serie/flatten-children.d.ts +0 -3
  81. package/dist/serie/flatten-children.d.ts.map +0 -1
  82. package/dist/serie/flatten-children.js +0 -19
  83. package/dist/serie/flatten-children.js.map +0 -1
  84. package/dist/serie/index.d.ts +0 -12
  85. package/dist/serie/index.d.ts.map +0 -1
  86. package/dist/serie/index.js +0 -55
  87. package/dist/serie/index.js.map +0 -1
  88. package/dist/setup-environment.d.ts +0 -6
  89. package/dist/setup-environment.d.ts.map +0 -1
  90. package/dist/setup-environment.js +0 -47
  91. package/dist/setup-environment.js.map +0 -1
  92. package/dist/stagger/index.d.ts +0 -10
  93. package/dist/stagger/index.d.ts.map +0 -1
  94. package/dist/stagger/index.js +0 -54
  95. package/dist/stagger/index.js.map +0 -1
  96. package/dist/use-current-src.d.ts +0 -3
  97. package/dist/use-current-src.d.ts.map +0 -1
  98. package/dist/use-current-src.js +0 -23
  99. package/dist/use-current-src.js.map +0 -1
  100. package/dist/use-current-time.d.ts +0 -2
  101. package/dist/use-current-time.d.ts.map +0 -1
  102. package/dist/use-current-time.js +0 -12
  103. package/dist/use-current-time.js.map +0 -1
  104. package/dist/use-time.d.ts +0 -2
  105. package/dist/use-time.d.ts.map +0 -1
  106. package/dist/use-time.js +0 -15
  107. package/dist/use-time.js.map +0 -1
@@ -10,6 +10,14 @@ const sequencing_1 = require("./sequencing");
10
10
  const timeline_position_state_1 = require("./timeline-position-state");
11
11
  const use_video_config_1 = require("./use-video-config");
12
12
  const volume_prop_1 = require("./volume-prop");
13
+ const didWarn = {};
14
+ const warnOnce = (message) => {
15
+ if (didWarn[message]) {
16
+ return;
17
+ }
18
+ console.warn(message);
19
+ didWarn[message] = true;
20
+ };
13
21
  const useMediaInTimeline = ({ volume, mediaVolume, mediaRef, src, mediaType, }) => {
14
22
  const videoConfig = (0, use_video_config_1.useVideoConfig)();
15
23
  const { rootId } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
@@ -20,6 +28,7 @@ const useMediaInTimeline = ({ volume, mediaVolume, mediaRef, src, mediaType, })
20
28
  const startsAt = (0, use_audio_frame_1.useMediaStartsAt)();
21
29
  const { registerSequence, unregisterSequence } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
22
30
  const [id] = (0, react_1.useState)(() => String(Math.random()));
31
+ const [initialVolume] = (0, react_1.useState)(() => volume);
23
32
  const nonce = (0, nonce_1.useNonce)();
24
33
  const duration = (() => {
25
34
  return parentSequence
@@ -42,6 +51,11 @@ const useMediaInTimeline = ({ volume, mediaVolume, mediaRef, src, mediaType, })
42
51
  })
43
52
  .join(',');
44
53
  }, [duration, startsAt, volume, mediaVolume]);
54
+ (0, react_1.useEffect)(() => {
55
+ if (typeof volume === 'number' && volume !== initialVolume) {
56
+ warnOnce(`Remotion: The ${mediaType} with src ${src} has changed it's volume. Prefer the callback syntax for setting volume to get better timeline display: https://www.remotion.dev/docs/using-audio/#controlling-volume`);
57
+ }
58
+ }, [initialVolume, mediaType, src, volume]);
45
59
  (0, react_1.useEffect)(() => {
46
60
  var _a;
47
61
  if (!mediaRef.current) {
@@ -67,7 +81,9 @@ const useMediaInTimeline = ({ volume, mediaVolume, mediaRef, src, mediaType, })
67
81
  doesVolumeChange,
68
82
  showLoopTimesInTimeline: undefined,
69
83
  });
70
- return () => unregisterSequence(id);
84
+ return () => {
85
+ unregisterSequence(id);
86
+ };
71
87
  }, [
72
88
  actualFrom,
73
89
  duration,
@@ -1 +1 @@
1
- {"version":3,"file":"use-media-in-timeline.js","sourceRoot":"","sources":["../src/use-media-in-timeline.ts"],"names":[],"mappings":";;;AAAA,iCAA0E;AAC1E,6DAAyD;AACzD,6DAAwD;AACxD,+DAAuD;AACvD,mCAAiC;AACjC,6CAA6C;AAC7C,uEAA0D;AAC1D,yDAAkD;AAClD,+CAAyD;AAElD,MAAM,kBAAkB,GAAG,CAAC,EAClC,MAAM,EACN,WAAW,EACX,QAAQ,EACR,GAAG,EACH,SAAS,GAOT,EAAE,EAAE;IACJ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C,GAAG,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;SACjC;QAED,gBAAgB,CAAC;YAChB,IAAI,EAAE,SAAS;YACf,GAAG;YACH,EAAE;YACF,8BAA8B;YAC9B,QAAQ;YACR,IAAI,EAAE,CAAC;YACP,MAAM,EAAE,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,EAAE,mCAAI,IAAI;YAClC,WAAW,EAAE,IAAA,sCAAgB,EAAC,GAAG,CAAC;YAClC,MAAM;YACN,MAAM,EAAE,OAAO;YACf,cAAc,EAAE,IAAI;YACpB,KAAK;YACL,cAAc,EAAE,CAAC,GAAG,QAAQ;YAC5B,gBAAgB;YAChB,uBAAuB,EAAE,SAAS;SAClC,CAAC,CAAC;QACH,OAAO,GAAG,EAAE;YACX,kBAAkB,CAAC,EAAE,CAAC,CAAC;QACxB,CAAC,CAAC;IACH,CAAC,EAAE;QACF,UAAU;QACV,QAAQ;QACR,EAAE;QACF,cAAc;QACd,GAAG;QACH,gBAAgB;QAChB,MAAM;QACN,kBAAkB;QAClB,WAAW;QACX,OAAO;QACP,gBAAgB;QAChB,KAAK;QACL,QAAQ;QACR,SAAS;QACT,QAAQ;KACR,CAAC,CAAC;AACJ,CAAC,CAAC;AAzGW,QAAA,kBAAkB,sBAyG7B"}
@@ -1,5 +1,5 @@
1
1
  import { RefObject } from 'react';
2
- export declare const useMediaPlayback: ({ mediaRef, src, mediaType, playbackRate, }: {
2
+ export declare const useMediaPlayback: ({ mediaRef, src, mediaType, playbackRate: localPlaybackRate, }: {
3
3
  mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement>;
4
4
  src: string | undefined;
5
5
  mediaType: 'audio' | 'video';
@@ -1 +1 @@
1
- {"version":3,"file":"use-media-playback.d.ts","sourceRoot":"","sources":["../src/use-media-playback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAY,MAAM,OAAO,CAAC;AA8B3C,eAAO,MAAM,gBAAgB;cAMlB,UAAU,gBAAgB,GAAG,gBAAgB,CAAC;SACnD,MAAM,GAAG,SAAS;eACZ,OAAO,GAAG,OAAO;kBACd,MAAM;UAoEpB,CAAC"}
1
+ {"version":3,"file":"use-media-playback.d.ts","sourceRoot":"","sources":["../src/use-media-playback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAwB,MAAM,OAAO,CAAC;AAkCvD,eAAO,MAAM,gBAAgB;cAMlB,UAAU,gBAAgB,GAAG,gBAAgB,CAAC;SACnD,MAAM,GAAG,SAAS;eACZ,OAAO,GAAG,OAAO;kBACd,MAAM;UAwEpB,CAAC"}
@@ -16,6 +16,9 @@ const playAndHandleNotAllowedError = (mediaRef, mediaType) => {
16
16
  if (!current) {
17
17
  return;
18
18
  }
19
+ if (err.message.includes('request was interrupted by a call to pause')) {
20
+ return;
21
+ }
19
22
  console.log(`Could not play ${mediaType} due to following error: `, err);
20
23
  if (!current.muted) {
21
24
  console.log(`The video will be muted and we'll retry playing it.`, err);
@@ -25,12 +28,14 @@ const playAndHandleNotAllowedError = (mediaRef, mediaType) => {
25
28
  });
26
29
  }
27
30
  };
28
- const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate, }) => {
31
+ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybackRate, }) => {
32
+ const { playbackRate: globalPlaybackRate } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
29
33
  const frame = (0, use_frame_1.useCurrentFrame)();
30
34
  const absoluteFrame = (0, use_frame_1.useAbsoluteCurrentFrame)();
31
35
  const [playing] = (0, timeline_position_state_1.usePlayingState)();
32
36
  const { fps } = (0, use_video_config_1.useVideoConfig)();
33
37
  const mediaStartsAt = (0, use_audio_frame_1.useMediaStartsAt)();
38
+ const playbackRate = localPlaybackRate * globalPlaybackRate;
34
39
  (0, react_1.useEffect)(() => {
35
40
  var _a, _b;
36
41
  if (playing && !((_a = mediaRef.current) === null || _a === void 0 ? void 0 : _a.ended)) {
@@ -48,12 +53,12 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate, }) => {
48
53
  if (!src) {
49
54
  throw new Error(`No 'src' attribute was passed to the ${tagName} element.`);
50
55
  }
51
- mediaRef.current.playbackRate = playbackRate;
56
+ mediaRef.current.playbackRate = Math.max(0, playbackRate);
52
57
  const shouldBeTime = (0, get_current_time_1.getMediaTime)({
53
58
  fps,
54
59
  frame,
55
60
  src,
56
- playbackRate,
61
+ playbackRate: localPlaybackRate,
57
62
  startFrom: -mediaStartsAt,
58
63
  });
59
64
  const isTime = mediaRef.current.currentTime;
@@ -83,6 +88,7 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate, }) => {
83
88
  playing,
84
89
  src,
85
90
  mediaStartsAt,
91
+ localPlaybackRate,
86
92
  ]);
87
93
  };
88
94
  exports.useMediaPlayback = useMediaPlayback;
@@ -1 +1 @@
1
- {"version":3,"file":"use-media-playback.js","sourceRoot":"","sources":["../src/use-media-playback.ts"],"names":[],"mappings":";;;AAAA,iCAA2C;AAC3C,6DAAyD;AACzD,uEAA0D;AAC1D,2CAAqE;AACrE,yDAAkD;AAClD,+DAAsD;AACtD,mFAA0E;AAE1E,MAAM,4BAA4B,GAAG,CACpC,QAAwD,EACxD,SAA4B,EAC3B,EAAE;IACH,MAAM,EAAC,OAAO,EAAC,GAAG,QAAQ,CAAC;IAC3B,MAAM,IAAI,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,EAAE,CAAC;IAC7B,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAE;QAChB,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;YACnB,IAAI,CAAC,OAAO,EAAE;gBACb,OAAO;aACP;YAED,OAAO,CAAC,GAAG,CAAC,kBAAkB,SAAS,2BAA2B,EAAE,GAAG,CAAC,CAAC;YACzE,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE;g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C,GAAG,CAAC,YAAY,GAAG,MAAM,CAAC,CAAC;QAClD,IAAI,SAAS,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE;YAChD,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;YAChE,qCAAqC;YACrC,yCAAyC;YACzC,QAAQ,CAAC,OAAO,CAAC,WAAW,GAAG,YAAY,CAAC;YAC5C,IAAA,yDAAyB,EAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;SAC5C;QAED,IAAI,CAAC,OAAO,IAAI,aAAa,KAAK,CAAC,EAAE;YACpC,QAAQ,CAAC,OAAO,CAAC,WAAW,GAAG,YAAY,CAAC;SAC5C;QAED,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,IAAI,OAAO,EAAE;YAClE,MAAM,EAAC,OAAO,EAAC,GAAG,QAAQ,CAAC;YAC3B,OAAO,CAAC,WAAW,GAAG,YAAY,CAAC;YACnC,4BAA4B,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;SAClD;IACF,CAAC,EAAE;QACF,aAAa;QACb,GAAG;QACH,YAAY;QACZ,KAAK;QACL,QAAQ;QACR,SAAS;QACT,OAAO;QACP,GAAG;QACH,aAAa;QACb,iBAAiB;KACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AAjFW,QAAA,gBAAgB,oBAiF3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-unsafe-video-config.d.ts","sourceRoot":"","sources":["../src/use-unsafe-video-config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,eAAO,MAAM,oBAAoB,QAAO,WAAW,GAAG,IAmBrD,CAAC"}
1
+ {"version":3,"file":"use-unsafe-video-config.d.ts","sourceRoot":"","sources":["../src/use-unsafe-video-config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,eAAO,MAAM,oBAAoB,QAAO,WAAW,GAAG,IAoBrD,CAAC"}
@@ -13,8 +13,9 @@ const useUnsafeVideoConfig = () => {
13
13
  if (!video) {
14
14
  return null;
15
15
  }
16
- const { durationInFrames, fps, height, width } = video;
16
+ const { id, durationInFrames, fps, height, width } = video;
17
17
  return {
18
+ id,
18
19
  width,
19
20
  height,
20
21
  fps,
@@ -1 +1 @@
1
- {"version":3,"file":"use-unsafe-video-config.js","sourceRoot":"","sources":["../src/use-unsafe-video-config.ts"],"names":[],"mappings":";;;AAAA,iCAA0C;AAC1C,6CAA6C;AAC7C,2CAAqC;AAG9B,MAAM,oBAAoB,GAAG,GAAuB,EAAE;;IAC5D,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,4BAAe,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,IAAI,CAAC;IACtD,MAAM,KAAK,GAAG,IAAA,oBAAQ,GAAE,CAAC;IAEzB,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE;QACnB,IAAI,CAAC,KAAK,EAAE;YACX,OAAO,IAAI,CAAC;SACZ;QAED,MAAM,EAAC,gBAAgB,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAC,GAAG,KAAK,CAAC;QAErD,OAAO;YACN,KAAK;YACL,MAAM;YACN,GAAG;YACH,gBAAgB,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,gBAAgB;SACjD,CAAC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;AAC1B,CAAC,CAAC;AAnBW,QAAA,oBAAoB,wBAmB/B"}
1
+ {"version":3,"file":"use-unsafe-video-config.js","sourceRoot":"","sources":["../src/use-unsafe-video-config.ts"],"names":[],"mappings":";;;AAAA,iCAA0C;AAC1C,6CAA6C;AAC7C,2CAAqC;AAG9B,MAAM,oBAAoB,GAAG,GAAuB,EAAE;;IAC5D,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,4BAAe,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,IAAI,CAAC;IACtD,MAAM,KAAK,GAAG,IAAA,oBAAQ,GAAE,CAAC;IAEzB,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE;QACnB,IAAI,CAAC,KAAK,EAAE;YACX,OAAO,IAAI,CAAC;SACZ;QAED,MAAM,EAAC,EAAE,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAC,GAAG,KAAK,CAAC;QAEzD,OAAO;YACN,EAAE;YACF,KAAK;YACL,MAAM;YACN,GAAG;YACH,gBAAgB,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,gBAAgB;SACjD,CAAC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;AAC1B,CAAC,CAAC;AApBW,QAAA,oBAAoB,wBAoB/B"}
@@ -3,5 +3,5 @@ import { RemotionMainVideoProps } from './props';
3
3
  export declare const Video: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "autoPlay" | "controls" | "loop"> & {
4
4
  volume?: import("../volume-prop").VolumeProp | undefined;
5
5
  playbackRate?: number | undefined;
6
- } & RemotionMainVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | keyof RemotionMainVideoProps> & React.RefAttributes<HTMLVideoElement>>;
6
+ } & RemotionMainVideoProps, "id" | "height" | "width" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | keyof RemotionMainVideoProps> & React.RefAttributes<HTMLVideoElement>>;
7
7
  //# sourceMappingURL=Video.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { RemotionVideoProps } from './props';
3
- export declare const VideoForDevelopment: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
3
+ export declare const VideoForDevelopment: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "id" | "height" | "width" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
4
4
  //# sourceMappingURL=VideoForDevelopment.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { RemotionVideoProps } from './props';
3
- export declare const VideoForRendering: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
3
+ export declare const VideoForRendering: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "id" | "height" | "width" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
4
4
  //# sourceMappingURL=VideoForRendering.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VideoForRendering.d.ts","sourceRoot":"","sources":["../../src/video/VideoForRendering.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAgBf,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAkK3C,eAAO,MAAM,iBAAiB,yyJAA+C,CAAC"}
1
+ {"version":3,"file":"VideoForRendering.d.ts","sourceRoot":"","sources":["../../src/video/VideoForRendering.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAef,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAiK3C,eAAO,MAAM,iBAAiB,yyJAA+C,CAAC"}
@@ -7,7 +7,6 @@ const absolute_src_1 = require("../absolute-src");
7
7
  const use_audio_frame_1 = require("../audio/use-audio-frame");
8
8
  const CompositionManager_1 = require("../CompositionManager");
9
9
  const is_approximately_the_same_1 = require("../is-approximately-the-same");
10
- const is_remote_asset_1 = require("../is-remote-asset");
11
10
  const random_1 = require("../random");
12
11
  const ready_manager_1 = require("../ready-manager");
13
12
  const sequencing_1 = require("../sequencing");
@@ -28,7 +27,7 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, playbac
28
27
  // but at the same time the same on all threads
29
28
  const id = (0, react_1.useMemo)(() => {
30
29
  var _a;
31
- return `audio-${(0, random_1.random)((_a = props.src) !== null && _a !== void 0 ? _a : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}-muted:${props.muted}`;
30
+ return `video-${(0, random_1.random)((_a = props.src) !== null && _a !== void 0 ? _a : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}-muted:${props.muted}`;
32
31
  }, [
33
32
  props.src,
34
33
  props.muted,
@@ -57,7 +56,6 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, playbac
57
56
  id,
58
57
  frame: absoluteFrame,
59
58
  volume,
60
- isRemote: (0, is_remote_asset_1.isRemoteAsset)((0, absolute_src_1.getAbsoluteSrc)(props.src)),
61
59
  mediaFrame: frame,
62
60
  playbackRate: playbackRate !== null && playbackRate !== void 0 ? playbackRate : 1,
63
61
  });
@@ -1 +1 @@
1
- {"version":3,"file":"VideoForRendering.js","sourceRoot":"","sources":["../../src/video/VideoForRendering.tsx"],"names":[],"mappings":";;;;AAAA,iCAOe;AACf,kDAA+C;AAC/C,8DAGkC;AAClC,8DAAyD;AACzD,4EAAoE;AACpE,wDAAiD;AACjD,sCAAiC;AACjC,oDAA6D;AAC7D,8CAA8C;AAC9C,4CAAsE;AACtE,wEAAgE;AAChE,gDAA8C;AAC9C,yDAAgD;AAGhD,MAAM,gCAAgC,GAGlC,CAAC,EAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,KAAK,EAAC,EAAE,GAAG,EAAE,EAAE;IAClE,MAAM,aAAa,GAAG,IAAA,mCAAuB,GAAE,CAAC;IAEhD,MAAM,KAAK,GAAG,IAAA,2BAAe,GAAE,CAAC;IAChC,MAAM,gBAAgB,GAAG,IAAA,uCAAqB,GAAE,CAAC;IACjD,MAAM,WAAW,GAAG,IAAA,8CAAoB,GAAE,CAAC;IAC3C,MAAM,QAAQ,GAAG,IAAA,cAAM,EAAmB,IAAI,CAAC,CAAC;IAChD,MAAM,eAAe,GAAG,IAAA,kBAAU,EAAC,4BAAe,CAAC,CAAC;IACpD,MAAM,aAAa,GAAG,IAAA,kCAAgB,GAAE,CAAC;IAEzC,MAAM,EAAC,aAAa,EAAE,eAAe,EAAC,GAAG,IAAA,kBAAU,EAAC,uCAAkB,CAAC,CAAC;IAExE,gEAAgE;IAChE,+CAA+C;IAC/C,MAAM,EAAE,GAAG,IAAA,eAAO,EACjB,GAAG,EAAE;;QACJ,OAAA,SAAS,IAAA,eAAM,EAAC,MAAA,KAAK,CAAC,GAAG,mCAAI,EAAE,CAAC,IAAI,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,aAAa,IACjE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,Y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CAAC;QACF,QAAQ,CAAC,OAAO,CAAC,gBAAgB,CAChC,OAAO,EACP,GAAG,EAAE;YACJ,IAAA,8BAAc,EAAC,MAAM,CAAC,CAAC;QACxB,CAAC,EACD,EAAC,IAAI,EAAE,IAAI,EAAC,CACZ,CAAC;QACF,QAAQ,CAAC,OAAO,CAAC,gBAAgB,CAChC,OAAO,EACP,CAAC,GAAG,EAAE,EAAE;YACP,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,GAAG,CAAC,CAAC;YAC9C,IAAA,8BAAc,EAAC,MAAM,CAAC,CAAC;QACxB,CAAC,EACD,EAAC,IAAI,EAAE,IAAI,EAAC,CACZ,CAAC;IACH,CAAC,EAAE;QACF,gBAAgB;QAChB,KAAK,CAAC,GAAG;QACT,YAAY;QACZ,WAAW,CAAC,GAAG;QACf,KAAK;QACL,aAAa;KACb,CAAC,CAAC;IAEH,OAAO,gDAAO,GAAG,EAAE,QAAQ,IAAM,KAAK,IAAE,OAAO,EAAE,OAAO,YAAI,CAAC;AAC9D,CAAC,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAA,kBAAU,EAAC,gCAAgC,CAAC,CAAC"}
@@ -3,5 +3,6 @@ export declare type VideoConfig = {
3
3
  height: number;
4
4
  fps: number;
5
5
  durationInFrames: number;
6
+ id: string;
6
7
  };
7
8
  //# sourceMappingURL=video-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"video-config.d.ts","sourceRoot":"","sources":["../src/video-config.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"video-config.d.ts","sourceRoot":"","sources":["../src/video-config.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,EAAE,EAAE,MAAM,CAAC;CACX,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "3.0.0-lambda.2+a97302554",
3
+ "version": "3.0.0-lambda.203+6e2dfd14e",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,10 +34,10 @@
34
34
  "rimraf": "^3.0.2",
35
35
  "ts-jest": "^27.0.5",
36
36
  "typescript": "^4.4.2",
37
- "webpack": "5.37.0"
37
+ "webpack": "5.60.0"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "a97302554ea1cc85a8682345f2ace2c30e4a9e8b"
42
+ "gitHead": "6e2dfd14e68f5537f527a5fae8b988db0596fac4"
43
43
  }
@@ -1 +0,0 @@
1
- //# sourceMappingURL=component-type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-type.d.ts","sourceRoot":"","sources":["../src/component-type.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=component-type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-type.js","sourceRoot":"","sources":["../src/component-type.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const flattenChildren: (children: React.ReactNode) => (string | number | {} | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactNodeArray | React.ReactPortal)[];
3
- //# sourceMappingURL=flatten-children.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flatten-children.d.ts","sourceRoot":"","sources":["../../src/serie/flatten-children.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,eAAe,aAAc,MAAM,SAAS,yNAYxD,CAAC"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.flattenChildren = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const flattenChildren = (children) => {
9
- const childrenArray = react_1.default.Children.toArray(children);
10
- return childrenArray.reduce((flatChildren, child) => {
11
- if (child.type === react_1.default.Fragment) {
12
- return flatChildren.concat(exports.flattenChildren(child.props.children));
13
- }
14
- flatChildren.push(child);
15
- return flatChildren;
16
- }, []);
17
- };
18
- exports.flattenChildren = flattenChildren;
19
- //# sourceMappingURL=flatten-children.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flatten-children.js","sourceRoot":"","sources":["../../src/serie/flatten-children.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAInB,MAAM,eAAe,GAAG,CAAC,QAAyB,EAAmB,EAAE;IAC7E,MAAM,aAAa,GAAG,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvD,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,YAA6B,EAAE,KAAK,EAAE,EAAE;QACpE,IAAK,KAAqC,CAAC,IAAI,KAAK,eAAK,CAAC,QAAQ,EAAE;YACnE,OAAO,YAAY,CAAC,MAAM,CACzB,uBAAe,CAAE,KAAiC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAClE,CAAC;SACF;QAED,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,OAAO,YAAY,CAAC;IACrB,CAAC,EAAE,EAAE,CAAC,CAAC;AACR,CAAC,CAAC;AAZW,QAAA,eAAe,mBAY1B"}
@@ -1,12 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import { SequenceProps } from '../sequencing';
3
- declare type SeriesSequenceProps = PropsWithChildren<{
4
- durationInFrames: number;
5
- offset?: number;
6
- } & Pick<SequenceProps, 'layout' | 'name'>>;
7
- declare const SeriesSequence: ({ children }: SeriesSequenceProps) => JSX.Element;
8
- declare const Series: FC & {
9
- Sequence: typeof SeriesSequence;
10
- };
11
- export { Series as Serie };
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/serie/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAW,EAAE,EAAE,iBAAiB,EAAU,MAAM,OAAO,CAAC;AACtE,OAAO,EAAW,aAAa,EAAC,MAAM,eAAe,CAAC;AAItD,aAAK,mBAAmB,GAAG,iBAAiB,CAC3C;IACC,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,MAAM,CAAC,CAC1C,CAAC;AAEF,QAAA,MAAM,cAAc,iBAAgB,mBAAmB,gBAGtD,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,EAAE,GAAG;IAClB,QAAQ,EAAE,OAAO,cAAc,CAAC;CA6EhC,CAAC;AAIF,OAAO,EAAC,MAAM,IAAI,KAAK,EAAC,CAAC"}
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Serie = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const sequencing_1 = require("../sequencing");
7
- const validate_duration_in_frames_1 = require("../validation/validate-duration-in-frames");
8
- const flatten_children_1 = require("./flatten-children");
9
- const SeriesSequence = ({ children }) => {
10
- // eslint-disable-next-line react/jsx-no-useless-fragment
11
- return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: children }, void 0);
12
- };
13
- const Series = ({ children }) => {
14
- const childrenValue = react_1.useMemo(() => {
15
- let startFrame = 0;
16
- return react_1.Children.map(flatten_children_1.flattenChildren(children), (child, i) => {
17
- var _a;
18
- const castedChild = child;
19
- if (typeof castedChild === 'string') {
20
- if (castedChild.trim() === '') {
21
- return null;
22
- }
23
- throw new TypeError(`The <Serie> component only accepts a list of <Serie.Sequence /> components as it's children, but you passed a string "${castedChild}"`);
24
- }
25
- if (castedChild.type !== SeriesSequence) {
26
- throw new TypeError("The <Serie> component only accepts a list of <Serie.Sequence /> components as it's children");
27
- }
28
- const debugInfo = `index = ${i}, duration = ${castedChild.props.durationInFrames}`;
29
- if (!castedChild || !castedChild.props.children) {
30
- throw new TypeError(`A <Serie.Sequence /> component (${debugInfo}) doesn't have any children.`);
31
- }
32
- const durationInFramesProp = castedChild.props.durationInFrames;
33
- const { durationInFrames, children: _children, ...passedProps } = castedChild.props;
34
- validate_duration_in_frames_1.validateDurationInFrames(durationInFramesProp, `<Serie.Sequence />`);
35
- const offset = (_a = castedChild.props.offset) !== null && _a !== void 0 ? _a : 0;
36
- if (Number.isNaN(offset)) {
37
- throw new TypeError(`The "offset" property of a <Serie.Sequence /> must not be NaN, but got NaN (${debugInfo}).`);
38
- }
39
- if (!Number.isFinite(offset)) {
40
- throw new TypeError(`The "offset" property of a <Serie.Sequence /> must be finite, but got ${offset} (${debugInfo}).`);
41
- }
42
- if (offset % 1 !== 0) {
43
- throw new TypeError(`The "offset" property of a <Serie.Sequence /> must be finite, but got ${offset} (${debugInfo}).`);
44
- }
45
- const currentStartFrame = startFrame + offset;
46
- startFrame += durationInFramesProp + offset;
47
- return (jsx_runtime_1.jsx(sequencing_1.Sequence, Object.assign({ from: currentStartFrame, durationInFrames: durationInFramesProp }, passedProps, { children: child }), void 0));
48
- });
49
- }, [children]);
50
- /* eslint-disable react/jsx-no-useless-fragment */
51
- return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: childrenValue }, void 0);
52
- };
53
- exports.Serie = Series;
54
- Series.Sequence = SeriesSequence;
55
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/serie/index.tsx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AoB,EAAE,oBAAoB,CAAC,CAAC;YACrE,MAAM,MAAM,SAAG,WAAW,CAAC,KAAK,CAAC,MAAM,mCAAI,CAAC,CAAC;YAC7C,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;gBACzB,MAAM,IAAI,SAAS,CAClB,+EAA+E,SAAS,IAAI,CAC5F,CAAC;aACF;YAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;gBAC7B,MAAM,IAAI,SAAS,CAClB,yEAAyE,MAAM,KAAK,SAAS,IAAI,CACjG,CAAC;aACF;YAED,IAAI,MAAM,GAAG,CAAC,KAAK,CAAC,EAAE;gBACrB,MAAM,IAAI,SAAS,CAClB,yEAAyE,MAAM,KAAK,SAAS,IAAI,CACjG,CAAC;aACF;YAED,MAAM,iBAAiB,GAAG,UAAU,GAAG,MAAM,CAAC;YAC9C,UAAU,IAAI,oBAAoB,GAAG,MAAM,CAAC;YAC5C,OAAO,CACN,kBAAC,qBAAQ,kBACR,IAAI,EAAE,iBAAiB,EACvB,gBAAgB,EAAE,oBAAoB,IAClC,WAAW,cAEd,KAAK,YACI,CACX,CAAC;QACH,CAAC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,kDAAkD;IAClD,OAAO,sDAAG,aAAa,WAAI,CAAC;AAC7B,CAAC,CAAC;AAIgB,uBAAK;AAFvB,MAAM,CAAC,QAAQ,GAAG,cAAc,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const ENV_VARIABLES_LOCAL_STORAGE_KEY = "remotion.envVariables";
2
- export declare const INITIAL_FRAME_LOCAL_STORAGE_KEY = "remotion.initialFrame";
3
- export declare const ENV_VARIABLES_ENV_NAME: "ENV_VARIABLES";
4
- export declare const setupEnvVariables: () => void;
5
- export declare const setupInitialFrame: () => void;
6
- //# sourceMappingURL=setup-environment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-environment.d.ts","sourceRoot":"","sources":["../src/setup-environment.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B,0BAA0B,CAAC;AACvE,eAAO,MAAM,+BAA+B,0BAA0B,CAAC;AACvE,eAAO,MAAM,sBAAsB,iBAA2B,CAAC;AA+B/D,eAAO,MAAM,iBAAiB,YAa7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,YAE7B,CAAC"}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setupInitialFrame = exports.setupEnvVariables = exports.ENV_VARIABLES_ENV_NAME = exports.INITIAL_FRAME_LOCAL_STORAGE_KEY = exports.ENV_VARIABLES_LOCAL_STORAGE_KEY = void 0;
4
- const get_environment_1 = require("./get-environment");
5
- exports.ENV_VARIABLES_LOCAL_STORAGE_KEY = 'remotion.envVariables';
6
- exports.INITIAL_FRAME_LOCAL_STORAGE_KEY = 'remotion.initialFrame';
7
- exports.ENV_VARIABLES_ENV_NAME = 'ENV_VARIABLES';
8
- const getInitialFrame = () => {
9
- const param = localStorage.getItem(exports.INITIAL_FRAME_LOCAL_STORAGE_KEY);
10
- return param ? Number(param) : 0;
11
- };
12
- const getEnvVariables = () => {
13
- if (get_environment_1.getRemotionEnvironment() === 'rendering') {
14
- const param = localStorage.getItem(exports.ENV_VARIABLES_LOCAL_STORAGE_KEY);
15
- if (!param) {
16
- return {};
17
- }
18
- return { ...JSON.parse(param), NODE_ENV: process.env.NODE_ENV };
19
- }
20
- if (get_environment_1.getRemotionEnvironment() === 'preview') {
21
- // Webpack will convert this to an object at compile time.
22
- // Don't convert this syntax to a computed property.
23
- return {
24
- ...process.env.ENV_VARIABLES,
25
- NODE_ENV: process.env.NODE_ENV,
26
- };
27
- }
28
- throw new Error('Can only call getEnvVariables() if environment is `rendering` or `preview`');
29
- };
30
- const setupEnvVariables = () => {
31
- const env = getEnvVariables();
32
- if (!window.process) {
33
- window.process = {};
34
- }
35
- if (!window.process.env) {
36
- window.process.env = {};
37
- }
38
- Object.keys(env).forEach((key) => {
39
- window.process.env[key] = env[key];
40
- });
41
- };
42
- exports.setupEnvVariables = setupEnvVariables;
43
- const setupInitialFrame = () => {
44
- window.remotion_initialFrame = getInitialFrame();
45
- };
46
- exports.setupInitialFrame = setupInitialFrame;
47
- //# sourceMappingURL=setup-environment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-environment.js","sourceRoot":"","sources":["../src/setup-environment.ts"],"names":[],"mappings":";;;AAAA,uDAAyD;AAE5C,QAAA,+BAA+B,GAAG,uBAAuB,CAAC;AAC1D,QAAA,+BAA+B,GAAG,uBAAuB,CAAC;AAC1D,QAAA,sBAAsB,GAAG,eAAwB,CAAC;AAE/D,MAAM,eAAe,GAAG,GAAW,EAAE;IACpC,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,uCAA+B,CAAC,CAAC;IACpE,OAAO,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClC,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,GAA2B,EAAE;IACpD,IAAI,wCAAsB,EAAE,KAAK,WAAW,EAAE;QAC7C,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,uCAA+B,CAAC,CAAC;QACpE,IAAI,CAAC,KAAK,EAAE;YACX,OAAO,EAAE,CAAC;SACV;QAED,OAAO,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAC,CAAC;KAC9D;IAED,IAAI,wCAAsB,EAAE,KAAK,SAAS,EAAE;QAC3C,0DAA0D;QAC1D,oDAAoD;QACpD,OAAO;YACN,GAAK,OAAO,CAAC,GAAG,CAAC,aAAoD;YACrE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAkB;SACxC,CAAC;KACF;IAED,MAAM,IAAI,KAAK,CACd,4EAA4E,CAC5E,CAAC;AACH,CAAC,CAAC;AAEK,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACrC,MAAM,GAAG,GAAG,eAAe,EAAE,CAAC;IAC9B,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;QACpB,MAAM,CAAC,OAAO,GAAG,EAAoB,CAAC;KACtC;IAED,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,GAAG,EAAE,CAAC;KACxB;IAED,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,iBAAiB,qBAa5B;AAEK,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACrC,MAAM,CAAC,qBAAqB,GAAG,eAAe,EAAE,CAAC;AAClD,CAAC,CAAC;AAFW,QAAA,iBAAiB,qBAE5B"}
@@ -1,10 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import { SequenceProps } from '../sequencing';
3
- declare type StaggerChildProps = PropsWithChildren<{
4
- durationInFrames: number;
5
- offset?: number;
6
- } & Pick<SequenceProps, 'layout' | 'name'>>;
7
- declare const StaggerChild: ({ children }: StaggerChildProps) => JSX.Element;
8
- declare const Stagger: FC;
9
- export { Stagger, StaggerChild };
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stagger/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAW,EAAE,EAAE,iBAAiB,EAAU,MAAM,OAAO,CAAC;AACtE,OAAO,EAAW,aAAa,EAAC,MAAM,eAAe,CAAC;AAGtD,aAAK,iBAAiB,GAAG,iBAAiB,CACzC;IACC,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,MAAM,CAAC,CAC1C,CAAC;AAEF,QAAA,MAAM,YAAY,iBAAgB,iBAAiB,gBAGlD,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,EA4Ed,CAAC;AAEF,OAAO,EAAC,OAAO,EAAE,YAAY,EAAC,CAAC"}