@remotion/promo-pages 4.0.396 → 4.0.398

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.
package/dist/Homepage.js CHANGED
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.398", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -4742,6 +4742,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
4742
4742
  const { loop, ...propsOtherThanLoop } = props;
4743
4743
  const { fps } = useVideoConfig();
4744
4744
  const environment = useRemotionEnvironment();
4745
+ if (environment.isClientSideRendering) {
4746
+ 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");
4747
+ }
4745
4748
  const { durations, setDurations } = useContext27(DurationsContext);
4746
4749
  if (typeof props.src !== "string") {
4747
4750
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
@@ -5337,16 +5340,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5340
  });
5338
5341
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5342
  if (typeof document === "undefined") {
5340
- return;
5343
+ return () => {};
5341
5344
  }
5342
5345
  if (injected[css]) {
5343
- return;
5346
+ return () => {};
5344
5347
  }
5345
5348
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5349
  const style = document.createElement("style");
5347
5350
  style.appendChild(document.createTextNode(css));
5348
5351
  head.prepend(style);
5349
- injected[css] = true;
5352
+ injected[css] = style;
5353
+ return () => {
5354
+ const styleElement = injected[css];
5355
+ if (styleElement) {
5356
+ if (styleElement.parentNode) {
5357
+ styleElement.parentNode.removeChild(styleElement);
5358
+ }
5359
+ delete injected[css];
5360
+ }
5361
+ };
5350
5362
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5363
  if (!scope) {
5352
5364
  return `
@@ -5978,6 +5990,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5978
5990
  ...otherProps
5979
5991
  } = props2;
5980
5992
  const environment = useRemotionEnvironment();
5993
+ if (environment.isClientSideRendering) {
5994
+ 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");
5995
+ }
5981
5996
  const onDuration = useCallback16(() => {
5982
5997
  return;
5983
5998
  }, []);
@@ -6695,6 +6710,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
6695
6710
  const { loop, ...propsOtherThanLoop } = props2;
6696
6711
  const { fps } = useVideoConfig();
6697
6712
  const environment = useRemotionEnvironment();
6713
+ if (environment.isClientSideRendering) {
6714
+ 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");
6715
+ }
6698
6716
  const { durations, setDurations } = useContext35(DurationsContext);
6699
6717
  if (typeof ref === "string") {
6700
6718
  throw new Error("string refs are not supported");
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.398", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -4742,6 +4742,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
4742
4742
  const { loop, ...propsOtherThanLoop } = props;
4743
4743
  const { fps } = useVideoConfig();
4744
4744
  const environment = useRemotionEnvironment();
4745
+ if (environment.isClientSideRendering) {
4746
+ 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");
4747
+ }
4745
4748
  const { durations, setDurations } = useContext27(DurationsContext);
4746
4749
  if (typeof props.src !== "string") {
4747
4750
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
@@ -5337,16 +5340,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5340
  });
5338
5341
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5342
  if (typeof document === "undefined") {
5340
- return;
5343
+ return () => {};
5341
5344
  }
5342
5345
  if (injected[css]) {
5343
- return;
5346
+ return () => {};
5344
5347
  }
5345
5348
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5349
  const style = document.createElement("style");
5347
5350
  style.appendChild(document.createTextNode(css));
5348
5351
  head.prepend(style);
5349
- injected[css] = true;
5352
+ injected[css] = style;
5353
+ return () => {
5354
+ const styleElement = injected[css];
5355
+ if (styleElement) {
5356
+ if (styleElement.parentNode) {
5357
+ styleElement.parentNode.removeChild(styleElement);
5358
+ }
5359
+ delete injected[css];
5360
+ }
5361
+ };
5350
5362
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5363
  if (!scope) {
5352
5364
  return `
@@ -5978,6 +5990,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5978
5990
  ...otherProps
5979
5991
  } = props2;
5980
5992
  const environment = useRemotionEnvironment();
5993
+ if (environment.isClientSideRendering) {
5994
+ 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");
5995
+ }
5981
5996
  const onDuration = useCallback16(() => {
5982
5997
  return;
5983
5998
  }, []);
@@ -6695,6 +6710,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
6695
6710
  const { loop, ...propsOtherThanLoop } = props2;
6696
6711
  const { fps } = useVideoConfig();
6697
6712
  const environment = useRemotionEnvironment();
6713
+ if (environment.isClientSideRendering) {
6714
+ 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");
6715
+ }
6698
6716
  const { durations, setDurations } = useContext35(DurationsContext);
6699
6717
  if (typeof ref === "string") {
6700
6718
  throw new Error("string refs are not supported");
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.398", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -4742,6 +4742,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
4742
4742
  const { loop, ...propsOtherThanLoop } = props;
4743
4743
  const { fps } = useVideoConfig();
4744
4744
  const environment = useRemotionEnvironment();
4745
+ if (environment.isClientSideRendering) {
4746
+ 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");
4747
+ }
4745
4748
  const { durations, setDurations } = useContext27(DurationsContext);
4746
4749
  if (typeof props.src !== "string") {
4747
4750
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
@@ -5337,16 +5340,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5340
  });
5338
5341
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5342
  if (typeof document === "undefined") {
5340
- return;
5343
+ return () => {};
5341
5344
  }
5342
5345
  if (injected[css]) {
5343
- return;
5346
+ return () => {};
5344
5347
  }
5345
5348
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5349
  const style = document.createElement("style");
5347
5350
  style.appendChild(document.createTextNode(css));
5348
5351
  head.prepend(style);
5349
- injected[css] = true;
5352
+ injected[css] = style;
5353
+ return () => {
5354
+ const styleElement = injected[css];
5355
+ if (styleElement) {
5356
+ if (styleElement.parentNode) {
5357
+ styleElement.parentNode.removeChild(styleElement);
5358
+ }
5359
+ delete injected[css];
5360
+ }
5361
+ };
5350
5362
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5363
  if (!scope) {
5352
5364
  return `
@@ -5978,6 +5990,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5978
5990
  ...otherProps
5979
5991
  } = props2;
5980
5992
  const environment = useRemotionEnvironment();
5993
+ if (environment.isClientSideRendering) {
5994
+ 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");
5995
+ }
5981
5996
  const onDuration = useCallback16(() => {
5982
5997
  return;
5983
5998
  }, []);
@@ -6695,6 +6710,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
6695
6710
  const { loop, ...propsOtherThanLoop } = props2;
6696
6711
  const { fps } = useVideoConfig();
6697
6712
  const environment = useRemotionEnvironment();
6713
+ if (environment.isClientSideRendering) {
6714
+ 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");
6715
+ }
6698
6716
  const { durations, setDurations } = useContext35(DurationsContext);
6699
6717
  if (typeof ref === "string") {
6700
6718
  throw new Error("string refs are not supported");
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.398", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -4742,6 +4742,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
4742
4742
  const { loop, ...propsOtherThanLoop } = props;
4743
4743
  const { fps } = useVideoConfig();
4744
4744
  const environment = useRemotionEnvironment();
4745
+ if (environment.isClientSideRendering) {
4746
+ 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");
4747
+ }
4745
4748
  const { durations, setDurations } = useContext27(DurationsContext);
4746
4749
  if (typeof props.src !== "string") {
4747
4750
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
@@ -5337,16 +5340,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5340
  });
5338
5341
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5342
  if (typeof document === "undefined") {
5340
- return;
5343
+ return () => {};
5341
5344
  }
5342
5345
  if (injected[css]) {
5343
- return;
5346
+ return () => {};
5344
5347
  }
5345
5348
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5349
  const style = document.createElement("style");
5347
5350
  style.appendChild(document.createTextNode(css));
5348
5351
  head.prepend(style);
5349
- injected[css] = true;
5352
+ injected[css] = style;
5353
+ return () => {
5354
+ const styleElement = injected[css];
5355
+ if (styleElement) {
5356
+ if (styleElement.parentNode) {
5357
+ styleElement.parentNode.removeChild(styleElement);
5358
+ }
5359
+ delete injected[css];
5360
+ }
5361
+ };
5350
5362
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5363
  if (!scope) {
5352
5364
  return `
@@ -5978,6 +5990,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5978
5990
  ...otherProps
5979
5991
  } = props2;
5980
5992
  const environment = useRemotionEnvironment();
5993
+ if (environment.isClientSideRendering) {
5994
+ 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");
5995
+ }
5981
5996
  const onDuration = useCallback16(() => {
5982
5997
  return;
5983
5998
  }, []);
@@ -6695,6 +6710,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
6695
6710
  const { loop, ...propsOtherThanLoop } = props2;
6696
6711
  const { fps } = useVideoConfig();
6697
6712
  const environment = useRemotionEnvironment();
6713
+ if (environment.isClientSideRendering) {
6714
+ 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");
6715
+ }
6698
6716
  const { durations, setDurations } = useContext35(DurationsContext);
6699
6717
  if (typeof ref === "string") {
6700
6718
  throw new Error("string refs are not supported");
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.398", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -4742,6 +4742,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
4742
4742
  const { loop, ...propsOtherThanLoop } = props;
4743
4743
  const { fps } = useVideoConfig();
4744
4744
  const environment = useRemotionEnvironment();
4745
+ if (environment.isClientSideRendering) {
4746
+ 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");
4747
+ }
4745
4748
  const { durations, setDurations } = useContext27(DurationsContext);
4746
4749
  if (typeof props.src !== "string") {
4747
4750
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
@@ -5337,16 +5340,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5340
  });
5338
5341
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5342
  if (typeof document === "undefined") {
5340
- return;
5343
+ return () => {};
5341
5344
  }
5342
5345
  if (injected[css]) {
5343
- return;
5346
+ return () => {};
5344
5347
  }
5345
5348
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5349
  const style = document.createElement("style");
5347
5350
  style.appendChild(document.createTextNode(css));
5348
5351
  head.prepend(style);
5349
- injected[css] = true;
5352
+ injected[css] = style;
5353
+ return () => {
5354
+ const styleElement = injected[css];
5355
+ if (styleElement) {
5356
+ if (styleElement.parentNode) {
5357
+ styleElement.parentNode.removeChild(styleElement);
5358
+ }
5359
+ delete injected[css];
5360
+ }
5361
+ };
5350
5362
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5363
  if (!scope) {
5352
5364
  return `
@@ -5978,6 +5990,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5978
5990
  ...otherProps
5979
5991
  } = props2;
5980
5992
  const environment = useRemotionEnvironment();
5993
+ if (environment.isClientSideRendering) {
5994
+ 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");
5995
+ }
5981
5996
  const onDuration = useCallback16(() => {
5982
5997
  return;
5983
5998
  }, []);
@@ -6695,6 +6710,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
6695
6710
  const { loop, ...propsOtherThanLoop } = props2;
6696
6711
  const { fps } = useVideoConfig();
6697
6712
  const environment = useRemotionEnvironment();
6713
+ if (environment.isClientSideRendering) {
6714
+ 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");
6715
+ }
6698
6716
  const { durations, setDurations } = useContext35(DurationsContext);
6699
6717
  if (typeof ref === "string") {
6700
6718
  throw new Error("string refs are not supported");
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.398", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -4742,6 +4742,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
4742
4742
  const { loop, ...propsOtherThanLoop } = props;
4743
4743
  const { fps } = useVideoConfig();
4744
4744
  const environment = useRemotionEnvironment();
4745
+ if (environment.isClientSideRendering) {
4746
+ 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");
4747
+ }
4745
4748
  const { durations, setDurations } = useContext27(DurationsContext);
4746
4749
  if (typeof props.src !== "string") {
4747
4750
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
@@ -5337,16 +5340,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5340
  });
5338
5341
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5342
  if (typeof document === "undefined") {
5340
- return;
5343
+ return () => {};
5341
5344
  }
5342
5345
  if (injected[css]) {
5343
- return;
5346
+ return () => {};
5344
5347
  }
5345
5348
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5349
  const style = document.createElement("style");
5347
5350
  style.appendChild(document.createTextNode(css));
5348
5351
  head.prepend(style);
5349
- injected[css] = true;
5352
+ injected[css] = style;
5353
+ return () => {
5354
+ const styleElement = injected[css];
5355
+ if (styleElement) {
5356
+ if (styleElement.parentNode) {
5357
+ styleElement.parentNode.removeChild(styleElement);
5358
+ }
5359
+ delete injected[css];
5360
+ }
5361
+ };
5350
5362
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5363
  if (!scope) {
5352
5364
  return `
@@ -5978,6 +5990,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5978
5990
  ...otherProps
5979
5991
  } = props2;
5980
5992
  const environment = useRemotionEnvironment();
5993
+ if (environment.isClientSideRendering) {
5994
+ 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");
5995
+ }
5981
5996
  const onDuration = useCallback16(() => {
5982
5997
  return;
5983
5998
  }, []);
@@ -6695,6 +6710,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
6695
6710
  const { loop, ...propsOtherThanLoop } = props2;
6696
6711
  const { fps } = useVideoConfig();
6697
6712
  const environment = useRemotionEnvironment();
6713
+ if (environment.isClientSideRendering) {
6714
+ 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");
6715
+ }
6698
6716
  const { durations, setDurations } = useContext35(DurationsContext);
6699
6717
  if (typeof ref === "string") {
6700
6718
  throw new Error("string refs are not supported");
package/dist/design.js CHANGED
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.398", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -4742,6 +4742,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
4742
4742
  const { loop, ...propsOtherThanLoop } = props;
4743
4743
  const { fps } = useVideoConfig();
4744
4744
  const environment = useRemotionEnvironment();
4745
+ if (environment.isClientSideRendering) {
4746
+ 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");
4747
+ }
4745
4748
  const { durations, setDurations } = useContext27(DurationsContext);
4746
4749
  if (typeof props.src !== "string") {
4747
4750
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
@@ -5337,16 +5340,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5340
  });
5338
5341
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5342
  if (typeof document === "undefined") {
5340
- return;
5343
+ return () => {};
5341
5344
  }
5342
5345
  if (injected[css]) {
5343
- return;
5346
+ return () => {};
5344
5347
  }
5345
5348
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5349
  const style = document.createElement("style");
5347
5350
  style.appendChild(document.createTextNode(css));
5348
5351
  head.prepend(style);
5349
- injected[css] = true;
5352
+ injected[css] = style;
5353
+ return () => {
5354
+ const styleElement = injected[css];
5355
+ if (styleElement) {
5356
+ if (styleElement.parentNode) {
5357
+ styleElement.parentNode.removeChild(styleElement);
5358
+ }
5359
+ delete injected[css];
5360
+ }
5361
+ };
5350
5362
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5363
  if (!scope) {
5352
5364
  return `
@@ -5978,6 +5990,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5978
5990
  ...otherProps
5979
5991
  } = props2;
5980
5992
  const environment = useRemotionEnvironment();
5993
+ if (environment.isClientSideRendering) {
5994
+ 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");
5995
+ }
5981
5996
  const onDuration = useCallback16(() => {
5982
5997
  return;
5983
5998
  }, []);
@@ -6695,6 +6710,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
6695
6710
  const { loop, ...propsOtherThanLoop } = props2;
6696
6711
  const { fps } = useVideoConfig();
6697
6712
  const environment = useRemotionEnvironment();
6713
+ if (environment.isClientSideRendering) {
6714
+ 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");
6715
+ }
6698
6716
  const { durations, setDurations } = useContext35(DurationsContext);
6699
6717
  if (typeof ref === "string") {
6700
6718
  throw new Error("string refs are not supported");
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.398", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -4742,6 +4742,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
4742
4742
  const { loop, ...propsOtherThanLoop } = props;
4743
4743
  const { fps } = useVideoConfig();
4744
4744
  const environment = useRemotionEnvironment();
4745
+ if (environment.isClientSideRendering) {
4746
+ 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");
4747
+ }
4745
4748
  const { durations, setDurations } = useContext27(DurationsContext);
4746
4749
  if (typeof props.src !== "string") {
4747
4750
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
@@ -5337,16 +5340,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5340
  });
5338
5341
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5342
  if (typeof document === "undefined") {
5340
- return;
5343
+ return () => {};
5341
5344
  }
5342
5345
  if (injected[css]) {
5343
- return;
5346
+ return () => {};
5344
5347
  }
5345
5348
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5349
  const style = document.createElement("style");
5347
5350
  style.appendChild(document.createTextNode(css));
5348
5351
  head.prepend(style);
5349
- injected[css] = true;
5352
+ injected[css] = style;
5353
+ return () => {
5354
+ const styleElement = injected[css];
5355
+ if (styleElement) {
5356
+ if (styleElement.parentNode) {
5357
+ styleElement.parentNode.removeChild(styleElement);
5358
+ }
5359
+ delete injected[css];
5360
+ }
5361
+ };
5350
5362
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5363
  if (!scope) {
5352
5364
  return `
@@ -5978,6 +5990,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5978
5990
  ...otherProps
5979
5991
  } = props2;
5980
5992
  const environment = useRemotionEnvironment();
5993
+ if (environment.isClientSideRendering) {
5994
+ 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");
5995
+ }
5981
5996
  const onDuration = useCallback16(() => {
5982
5997
  return;
5983
5998
  }, []);
@@ -6695,6 +6710,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
6695
6710
  const { loop, ...propsOtherThanLoop } = props2;
6696
6711
  const { fps } = useVideoConfig();
6697
6712
  const environment = useRemotionEnvironment();
6713
+ if (environment.isClientSideRendering) {
6714
+ 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");
6715
+ }
6698
6716
  const { durations, setDurations } = useContext35(DurationsContext);
6699
6717
  if (typeof ref === "string") {
6700
6718
  throw new Error("string refs are not supported");
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.398", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -4742,6 +4742,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
4742
4742
  const { loop, ...propsOtherThanLoop } = props;
4743
4743
  const { fps } = useVideoConfig();
4744
4744
  const environment = useRemotionEnvironment();
4745
+ if (environment.isClientSideRendering) {
4746
+ 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");
4747
+ }
4745
4748
  const { durations, setDurations } = useContext27(DurationsContext);
4746
4749
  if (typeof props.src !== "string") {
4747
4750
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
@@ -5337,16 +5340,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5340
  });
5338
5341
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5342
  if (typeof document === "undefined") {
5340
- return;
5343
+ return () => {};
5341
5344
  }
5342
5345
  if (injected[css]) {
5343
- return;
5346
+ return () => {};
5344
5347
  }
5345
5348
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5349
  const style = document.createElement("style");
5347
5350
  style.appendChild(document.createTextNode(css));
5348
5351
  head.prepend(style);
5349
- injected[css] = true;
5352
+ injected[css] = style;
5353
+ return () => {
5354
+ const styleElement = injected[css];
5355
+ if (styleElement) {
5356
+ if (styleElement.parentNode) {
5357
+ styleElement.parentNode.removeChild(styleElement);
5358
+ }
5359
+ delete injected[css];
5360
+ }
5361
+ };
5350
5362
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5363
  if (!scope) {
5352
5364
  return `
@@ -5978,6 +5990,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5978
5990
  ...otherProps
5979
5991
  } = props2;
5980
5992
  const environment = useRemotionEnvironment();
5993
+ if (environment.isClientSideRendering) {
5994
+ 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");
5995
+ }
5981
5996
  const onDuration = useCallback16(() => {
5982
5997
  return;
5983
5998
  }, []);
@@ -6695,6 +6710,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
6695
6710
  const { loop, ...propsOtherThanLoop } = props2;
6696
6711
  const { fps } = useVideoConfig();
6697
6712
  const environment = useRemotionEnvironment();
6713
+ if (environment.isClientSideRendering) {
6714
+ 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");
6715
+ }
6698
6716
  const { durations, setDurations } = useContext35(DurationsContext);
6699
6717
  if (typeof ref === "string") {
6700
6718
  throw new Error("string refs are not supported");
package/dist/templates.js CHANGED
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.398", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -4742,6 +4742,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
4742
4742
  const { loop, ...propsOtherThanLoop } = props;
4743
4743
  const { fps } = useVideoConfig();
4744
4744
  const environment = useRemotionEnvironment();
4745
+ if (environment.isClientSideRendering) {
4746
+ 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");
4747
+ }
4745
4748
  const { durations, setDurations } = useContext27(DurationsContext);
4746
4749
  if (typeof props.src !== "string") {
4747
4750
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
@@ -5337,16 +5340,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5340
  });
5338
5341
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5342
  if (typeof document === "undefined") {
5340
- return;
5343
+ return () => {};
5341
5344
  }
5342
5345
  if (injected[css]) {
5343
- return;
5346
+ return () => {};
5344
5347
  }
5345
5348
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5349
  const style = document.createElement("style");
5347
5350
  style.appendChild(document.createTextNode(css));
5348
5351
  head.prepend(style);
5349
- injected[css] = true;
5352
+ injected[css] = style;
5353
+ return () => {
5354
+ const styleElement = injected[css];
5355
+ if (styleElement) {
5356
+ if (styleElement.parentNode) {
5357
+ styleElement.parentNode.removeChild(styleElement);
5358
+ }
5359
+ delete injected[css];
5360
+ }
5361
+ };
5350
5362
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5363
  if (!scope) {
5352
5364
  return `
@@ -5978,6 +5990,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5978
5990
  ...otherProps
5979
5991
  } = props2;
5980
5992
  const environment = useRemotionEnvironment();
5993
+ if (environment.isClientSideRendering) {
5994
+ 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");
5995
+ }
5981
5996
  const onDuration = useCallback16(() => {
5982
5997
  return;
5983
5998
  }, []);
@@ -6695,6 +6710,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
6695
6710
  const { loop, ...propsOtherThanLoop } = props2;
6696
6711
  const { fps } = useVideoConfig();
6697
6712
  const environment = useRemotionEnvironment();
6713
+ if (environment.isClientSideRendering) {
6714
+ 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");
6715
+ }
6698
6716
  const { durations, setDurations } = useContext35(DurationsContext);
6699
6717
  if (typeof ref === "string") {
6700
6718
  throw new Error("string refs are not supported");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/promo-pages",
3
- "version": "4.0.396",
3
+ "version": "4.0.398",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -11,23 +11,23 @@
11
11
  },
12
12
  "type": "module",
13
13
  "dependencies": {
14
- "@remotion/animated-emoji": "4.0.396",
15
- "@remotion/design": "4.0.396",
16
- "@remotion/lambda": "4.0.396",
17
- "@remotion/lottie": "4.0.396",
18
- "@remotion/paths": "4.0.396",
19
- "@remotion/player": "4.0.396",
20
- "@remotion/shapes": "4.0.396",
21
- "@remotion/svg-3d-engine": "4.0.396",
22
- "create-video": "4.0.396",
14
+ "@remotion/animated-emoji": "4.0.398",
15
+ "@remotion/design": "4.0.398",
16
+ "@remotion/lambda": "4.0.398",
17
+ "@remotion/lottie": "4.0.398",
18
+ "@remotion/paths": "4.0.398",
19
+ "@remotion/player": "4.0.398",
20
+ "@remotion/shapes": "4.0.398",
21
+ "@remotion/svg-3d-engine": "4.0.398",
22
+ "create-video": "4.0.398",
23
23
  "hls.js": "1.5.19",
24
24
  "polished": "4.3.1",
25
- "remotion": "4.0.396",
25
+ "remotion": "4.0.398",
26
26
  "zod": "3.22.3",
27
27
  "bun-plugin-tailwind": "0.1.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@remotion/eslint-config-internal": "4.0.396",
30
+ "@remotion/eslint-config-internal": "4.0.398",
31
31
  "@eslint/eslintrc": "3.1.0",
32
32
  "@types/react": "19.2.7",
33
33
  "@types/react-dom": "19.2.3",