@remotion/promo-pages 4.0.497 → 4.0.499

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.
@@ -5579,7 +5579,7 @@ var getSingleChildComponent = (children) => {
5579
5579
  }
5580
5580
  return child.type;
5581
5581
  };
5582
- var VERSION = "4.0.497";
5582
+ var VERSION = "4.0.499";
5583
5583
  var checkMultipleRemotionVersions = () => {
5584
5584
  if (typeof globalThis === "undefined") {
5585
5585
  return;
@@ -6417,6 +6417,9 @@ var PremountContext = createContext15({
6417
6417
  premountFramesRemaining: 0
6418
6418
  });
6419
6419
  var ENABLE_V5_BREAKING_CHANGES = false;
6420
+ var resolveV5Default = (value) => {
6421
+ return value ?? ENABLE_V5_BREAKING_CHANGES;
6422
+ };
6420
6423
  var usePremounting = ({
6421
6424
  from,
6422
6425
  durationInFrames,
@@ -12892,6 +12895,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12892
12895
  const { loop, freeze: _freeze, ...propsOtherThanLoop } = propsWithFreeze;
12893
12896
  const { fps } = useVideoConfig();
12894
12897
  const environment = useRemotionEnvironment();
12898
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
12895
12899
  if (environment.isClientSideRendering) {
12896
12900
  throw new Error("<Html5Audio> is not supported in @remotion/web-renderer. Use <Audio> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
12897
12901
  }
@@ -12961,7 +12965,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12961
12965
  name,
12962
12966
  children: /* @__PURE__ */ jsx23(Html5Audio, {
12963
12967
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
12964
- pauseWhenBuffering: pauseWhenBuffering ?? false,
12968
+ pauseWhenBuffering: shouldPauseWhenBuffering,
12965
12969
  ...otherProps,
12966
12970
  ref
12967
12971
  })
@@ -12989,7 +12993,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12989
12993
  ref,
12990
12994
  onNativeError: onError,
12991
12995
  onDuration,
12992
- pauseWhenBuffering: pauseWhenBuffering ?? false,
12996
+ pauseWhenBuffering: shouldPauseWhenBuffering,
12993
12997
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
12994
12998
  showInTimeline: showInTimeline ?? true
12995
12999
  });
@@ -14396,6 +14400,7 @@ var ImgInner = ({
14396
14400
  ...props2
14397
14401
  }) => {
14398
14402
  const refForOutline = useRef24(null);
14403
+ const shouldPauseWhenLoading = resolveV5Default(pauseWhenLoading);
14399
14404
  if (effects.length === 0) {
14400
14405
  return /* @__PURE__ */ jsx28(NativeImgInner, {
14401
14406
  ...props2,
@@ -14419,7 +14424,7 @@ var ImgInner = ({
14419
14424
  className,
14420
14425
  style,
14421
14426
  id,
14422
- pauseWhenLoading,
14427
+ pauseWhenLoading: shouldPauseWhenLoading,
14423
14428
  maxRetries,
14424
14429
  delayRenderRetries,
14425
14430
  delayRenderTimeoutInMilliseconds,
@@ -14448,7 +14453,7 @@ var ImgInner = ({
14448
14453
  className,
14449
14454
  style,
14450
14455
  id,
14451
- pauseWhenLoading,
14456
+ pauseWhenLoading: shouldPauseWhenLoading,
14452
14457
  maxRetries,
14453
14458
  delayRenderRetries,
14454
14459
  delayRenderTimeoutInMilliseconds,
@@ -15642,6 +15647,7 @@ var InnerOffthreadVideo = (props2) => {
15642
15647
  ...otherProps
15643
15648
  } = props2;
15644
15649
  const environment = useRemotionEnvironment();
15650
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
15645
15651
  if (environment.isClientSideRendering) {
15646
15652
  throw new Error("<OffthreadVideo> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
15647
15653
  }
@@ -15666,7 +15672,7 @@ var InnerOffthreadVideo = (props2) => {
15666
15672
  durationInFrames: trimAfterValue,
15667
15673
  name,
15668
15674
  children: /* @__PURE__ */ jsx35(InnerOffthreadVideo, {
15669
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15675
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15670
15676
  ...otherProps,
15671
15677
  trimAfter: undefined,
15672
15678
  name: undefined,
@@ -15681,7 +15687,7 @@ var InnerOffthreadVideo = (props2) => {
15681
15687
  validateMediaProps(props2, "Video");
15682
15688
  if (environment.isRendering) {
15683
15689
  return /* @__PURE__ */ jsx35(OffthreadVideoForRendering, {
15684
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15690
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15685
15691
  ...otherProps,
15686
15692
  trimAfter: undefined,
15687
15693
  name: undefined,
@@ -15706,7 +15712,7 @@ var InnerOffthreadVideo = (props2) => {
15706
15712
  _remotionInternalStack: stack ?? null,
15707
15713
  onDuration,
15708
15714
  onlyWarnForMediaSeekingError: true,
15709
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15715
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15710
15716
  showInTimeline: showInTimeline ?? true,
15711
15717
  onAutoPlayError: onAutoPlayError ?? undefined,
15712
15718
  onVideoFrame: onVideoFrame ?? null,
@@ -15764,7 +15770,7 @@ var OffthreadVideo = ({
15764
15770
  onAutoPlayError: onAutoPlayError ?? null,
15765
15771
  onError,
15766
15772
  onVideoFrame,
15767
- pauseWhenBuffering: pauseWhenBuffering ?? true,
15773
+ pauseWhenBuffering: resolveV5Default(pauseWhenBuffering),
15768
15774
  playbackRate: playbackRate ?? 1,
15769
15775
  preservePitch,
15770
15776
  toneFrequency: toneFrequency ?? 1,
@@ -16647,6 +16653,7 @@ var VideoForwardingFunction = (props2, ref) => {
16647
16653
  const { loop, ...propsOtherThanLoop } = props2;
16648
16654
  const { fps } = useVideoConfig();
16649
16655
  const environment = useRemotionEnvironment();
16656
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
16650
16657
  if (environment.isClientSideRendering) {
16651
16658
  throw new Error("<Html5Video> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
16652
16659
  }
@@ -16705,7 +16712,7 @@ var VideoForwardingFunction = (props2, ref) => {
16705
16712
  durationInFrames: trimAfterValue === undefined ? undefined : trimAfterValue / (props2.playbackRate ?? 1),
16706
16713
  name,
16707
16714
  children: /* @__PURE__ */ jsx39(Html5Video, {
16708
- pauseWhenBuffering: pauseWhenBuffering ?? false,
16715
+ pauseWhenBuffering: shouldPauseWhenBuffering,
16709
16716
  onVideoFrame,
16710
16717
  ...otherProps,
16711
16718
  ref,
@@ -16731,7 +16738,7 @@ var VideoForwardingFunction = (props2, ref) => {
16731
16738
  ...otherProps,
16732
16739
  ref,
16733
16740
  onVideoFrame: onVideoFrame ?? null,
16734
- pauseWhenBuffering: pauseWhenBuffering ?? false,
16741
+ pauseWhenBuffering: shouldPauseWhenBuffering,
16735
16742
  onDuration,
16736
16743
  _remotionInternalStack: stack ?? null,
16737
16744
  _remotionInternalNativeLoopPassed: _remotionInternalNativeLoopPassed ?? false,
package/dist/templates.js CHANGED
@@ -5579,7 +5579,7 @@ var getSingleChildComponent = (children) => {
5579
5579
  }
5580
5580
  return child.type;
5581
5581
  };
5582
- var VERSION = "4.0.497";
5582
+ var VERSION = "4.0.499";
5583
5583
  var checkMultipleRemotionVersions = () => {
5584
5584
  if (typeof globalThis === "undefined") {
5585
5585
  return;
@@ -6417,6 +6417,9 @@ var PremountContext = createContext15({
6417
6417
  premountFramesRemaining: 0
6418
6418
  });
6419
6419
  var ENABLE_V5_BREAKING_CHANGES = false;
6420
+ var resolveV5Default = (value) => {
6421
+ return value ?? ENABLE_V5_BREAKING_CHANGES;
6422
+ };
6420
6423
  var usePremounting = ({
6421
6424
  from,
6422
6425
  durationInFrames,
@@ -12892,6 +12895,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12892
12895
  const { loop, freeze: _freeze, ...propsOtherThanLoop } = propsWithFreeze;
12893
12896
  const { fps } = useVideoConfig();
12894
12897
  const environment = useRemotionEnvironment();
12898
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
12895
12899
  if (environment.isClientSideRendering) {
12896
12900
  throw new Error("<Html5Audio> is not supported in @remotion/web-renderer. Use <Audio> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
12897
12901
  }
@@ -12961,7 +12965,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12961
12965
  name,
12962
12966
  children: /* @__PURE__ */ jsx23(Html5Audio, {
12963
12967
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
12964
- pauseWhenBuffering: pauseWhenBuffering ?? false,
12968
+ pauseWhenBuffering: shouldPauseWhenBuffering,
12965
12969
  ...otherProps,
12966
12970
  ref
12967
12971
  })
@@ -12989,7 +12993,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12989
12993
  ref,
12990
12994
  onNativeError: onError,
12991
12995
  onDuration,
12992
- pauseWhenBuffering: pauseWhenBuffering ?? false,
12996
+ pauseWhenBuffering: shouldPauseWhenBuffering,
12993
12997
  _remotionInternalNeedsDurationCalculation: Boolean(loop),
12994
12998
  showInTimeline: showInTimeline ?? true
12995
12999
  });
@@ -14396,6 +14400,7 @@ var ImgInner = ({
14396
14400
  ...props2
14397
14401
  }) => {
14398
14402
  const refForOutline = useRef24(null);
14403
+ const shouldPauseWhenLoading = resolveV5Default(pauseWhenLoading);
14399
14404
  if (effects.length === 0) {
14400
14405
  return /* @__PURE__ */ jsx28(NativeImgInner, {
14401
14406
  ...props2,
@@ -14419,7 +14424,7 @@ var ImgInner = ({
14419
14424
  className,
14420
14425
  style,
14421
14426
  id,
14422
- pauseWhenLoading,
14427
+ pauseWhenLoading: shouldPauseWhenLoading,
14423
14428
  maxRetries,
14424
14429
  delayRenderRetries,
14425
14430
  delayRenderTimeoutInMilliseconds,
@@ -14448,7 +14453,7 @@ var ImgInner = ({
14448
14453
  className,
14449
14454
  style,
14450
14455
  id,
14451
- pauseWhenLoading,
14456
+ pauseWhenLoading: shouldPauseWhenLoading,
14452
14457
  maxRetries,
14453
14458
  delayRenderRetries,
14454
14459
  delayRenderTimeoutInMilliseconds,
@@ -15642,6 +15647,7 @@ var InnerOffthreadVideo = (props2) => {
15642
15647
  ...otherProps
15643
15648
  } = props2;
15644
15649
  const environment = useRemotionEnvironment();
15650
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
15645
15651
  if (environment.isClientSideRendering) {
15646
15652
  throw new Error("<OffthreadVideo> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
15647
15653
  }
@@ -15666,7 +15672,7 @@ var InnerOffthreadVideo = (props2) => {
15666
15672
  durationInFrames: trimAfterValue,
15667
15673
  name,
15668
15674
  children: /* @__PURE__ */ jsx35(InnerOffthreadVideo, {
15669
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15675
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15670
15676
  ...otherProps,
15671
15677
  trimAfter: undefined,
15672
15678
  name: undefined,
@@ -15681,7 +15687,7 @@ var InnerOffthreadVideo = (props2) => {
15681
15687
  validateMediaProps(props2, "Video");
15682
15688
  if (environment.isRendering) {
15683
15689
  return /* @__PURE__ */ jsx35(OffthreadVideoForRendering, {
15684
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15690
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15685
15691
  ...otherProps,
15686
15692
  trimAfter: undefined,
15687
15693
  name: undefined,
@@ -15706,7 +15712,7 @@ var InnerOffthreadVideo = (props2) => {
15706
15712
  _remotionInternalStack: stack ?? null,
15707
15713
  onDuration,
15708
15714
  onlyWarnForMediaSeekingError: true,
15709
- pauseWhenBuffering: pauseWhenBuffering ?? false,
15715
+ pauseWhenBuffering: shouldPauseWhenBuffering,
15710
15716
  showInTimeline: showInTimeline ?? true,
15711
15717
  onAutoPlayError: onAutoPlayError ?? undefined,
15712
15718
  onVideoFrame: onVideoFrame ?? null,
@@ -15764,7 +15770,7 @@ var OffthreadVideo = ({
15764
15770
  onAutoPlayError: onAutoPlayError ?? null,
15765
15771
  onError,
15766
15772
  onVideoFrame,
15767
- pauseWhenBuffering: pauseWhenBuffering ?? true,
15773
+ pauseWhenBuffering: resolveV5Default(pauseWhenBuffering),
15768
15774
  playbackRate: playbackRate ?? 1,
15769
15775
  preservePitch,
15770
15776
  toneFrequency: toneFrequency ?? 1,
@@ -16647,6 +16653,7 @@ var VideoForwardingFunction = (props2, ref) => {
16647
16653
  const { loop, ...propsOtherThanLoop } = props2;
16648
16654
  const { fps } = useVideoConfig();
16649
16655
  const environment = useRemotionEnvironment();
16656
+ const shouldPauseWhenBuffering = resolveV5Default(pauseWhenBuffering);
16650
16657
  if (environment.isClientSideRendering) {
16651
16658
  throw new Error("<Html5Video> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
16652
16659
  }
@@ -16705,7 +16712,7 @@ var VideoForwardingFunction = (props2, ref) => {
16705
16712
  durationInFrames: trimAfterValue === undefined ? undefined : trimAfterValue / (props2.playbackRate ?? 1),
16706
16713
  name,
16707
16714
  children: /* @__PURE__ */ jsx39(Html5Video, {
16708
- pauseWhenBuffering: pauseWhenBuffering ?? false,
16715
+ pauseWhenBuffering: shouldPauseWhenBuffering,
16709
16716
  onVideoFrame,
16710
16717
  ...otherProps,
16711
16718
  ref,
@@ -16731,7 +16738,7 @@ var VideoForwardingFunction = (props2, ref) => {
16731
16738
  ...otherProps,
16732
16739
  ref,
16733
16740
  onVideoFrame: onVideoFrame ?? null,
16734
- pauseWhenBuffering: pauseWhenBuffering ?? false,
16741
+ pauseWhenBuffering: shouldPauseWhenBuffering,
16735
16742
  onDuration,
16736
16743
  _remotionInternalStack: stack ?? null,
16737
16744
  _remotionInternalNativeLoopPassed: _remotionInternalNativeLoopPassed ?? false,
@@ -26480,6 +26487,7 @@ var listOfRemotionPackages = [
26480
26487
  "@remotion/remotion-media",
26481
26488
  "@remotion/web-renderer",
26482
26489
  "@remotion/design",
26490
+ "@remotion/drag-and-drop",
26483
26491
  "@remotion/light-leaks",
26484
26492
  "@remotion/rough-notation",
26485
26493
  "@remotion/starburst",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/promo-pages",
3
- "version": "4.0.497",
3
+ "version": "4.0.499",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -11,20 +11,20 @@
11
11
  },
12
12
  "type": "module",
13
13
  "dependencies": {
14
- "@remotion/animated-emoji": "4.0.497",
15
- "@remotion/design": "4.0.497",
16
- "@remotion/web-renderer": "4.0.497",
17
- "@remotion/lottie": "4.0.497",
18
- "@remotion/paths": "4.0.497",
19
- "@remotion/player": "4.0.497",
20
- "@remotion/shapes": "4.0.497",
21
- "@remotion/media": "4.0.497",
22
- "@remotion/svg-3d-engine": "4.0.497",
23
- "create-video": "4.0.497",
14
+ "@remotion/animated-emoji": "4.0.499",
15
+ "@remotion/design": "4.0.499",
16
+ "@remotion/web-renderer": "4.0.499",
17
+ "@remotion/lottie": "4.0.499",
18
+ "@remotion/paths": "4.0.499",
19
+ "@remotion/player": "4.0.499",
20
+ "@remotion/shapes": "4.0.499",
21
+ "@remotion/media": "4.0.499",
22
+ "@remotion/svg-3d-engine": "4.0.499",
23
+ "create-video": "4.0.499",
24
24
  "hls.js": "1.5.19",
25
25
  "polished": "4.3.1",
26
- "remotion": "4.0.497",
27
- "zod": "4.3.6",
26
+ "remotion": "4.0.499",
27
+ "zod": "4.4.3",
28
28
  "@mux/upchunk": "3.5.0",
29
29
  "@vidstack/react": "1.12.13",
30
30
  "bun-plugin-tailwind": "0.1.2",
@@ -34,14 +34,14 @@
34
34
  "@mediabunny/mp3-encoder": "1.50.8"
35
35
  },
36
36
  "devDependencies": {
37
- "@remotion/eslint-config-internal": "4.0.497",
37
+ "@remotion/eslint-config-internal": "4.0.499",
38
38
  "@eslint/eslintrc": "3.1.0",
39
39
  "@types/react": "19.2.7",
40
40
  "@types/react-dom": "19.2.3",
41
41
  "eslint": "9.19.0",
42
42
  "eslint-config-next": "15.1.6",
43
43
  "plyr": "3.7.3",
44
- "postcss": "8.5.10",
44
+ "postcss": "8.5.12",
45
45
  "tailwindcss": "4.2.0",
46
46
  "@tailwindcss/cli": "4.2.0",
47
47
  "react": "19.2.3",