@remotion/promo-pages 4.0.395 → 4.0.397

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.395", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.397", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -5337,16 +5337,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5337
  });
5338
5338
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5339
  if (typeof document === "undefined") {
5340
- return;
5340
+ return () => {};
5341
5341
  }
5342
5342
  if (injected[css]) {
5343
- return;
5343
+ return () => {};
5344
5344
  }
5345
5345
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5346
  const style = document.createElement("style");
5347
5347
  style.appendChild(document.createTextNode(css));
5348
5348
  head.prepend(style);
5349
- injected[css] = true;
5349
+ injected[css] = style;
5350
+ return () => {
5351
+ const styleElement = injected[css];
5352
+ if (styleElement) {
5353
+ if (styleElement.parentNode) {
5354
+ styleElement.parentNode.removeChild(styleElement);
5355
+ }
5356
+ delete injected[css];
5357
+ }
5358
+ };
5350
5359
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5360
  if (!scope) {
5352
5361
  return `
@@ -21900,6 +21909,15 @@ var usePlayer = () => {
21900
21909
  play(e);
21901
21910
  }
21902
21911
  }, [imperativePlaying, pause, play]);
21912
+ const isPlaying = useCallback28(() => {
21913
+ return imperativePlaying.current;
21914
+ }, [imperativePlaying]);
21915
+ const getCurrentFrame = useCallback28(() => {
21916
+ return frameRef.current;
21917
+ }, [frameRef]);
21918
+ const isBuffering = useCallback28(() => {
21919
+ return buffering.current;
21920
+ }, [buffering]);
21903
21921
  const returnValue = useMemo42(() => {
21904
21922
  return {
21905
21923
  frameBack,
@@ -21911,28 +21929,29 @@ var usePlayer = () => {
21911
21929
  pause,
21912
21930
  seek: seek2,
21913
21931
  isFirstFrame,
21914
- getCurrentFrame: () => frameRef.current,
21915
- isPlaying: () => imperativePlaying.current,
21916
- isBuffering: () => buffering.current,
21932
+ getCurrentFrame,
21933
+ isPlaying,
21934
+ isBuffering,
21917
21935
  pauseAndReturnToPlayStart,
21918
21936
  hasPlayed,
21919
21937
  toggle
21920
21938
  };
21921
21939
  }, [
21922
- buffering,
21923
21940
  emitter,
21924
21941
  frameBack,
21925
21942
  frameForward,
21926
21943
  hasPlayed,
21927
- imperativePlaying,
21928
21944
  isFirstFrame,
21929
21945
  isLastFrame,
21946
+ getCurrentFrame,
21930
21947
  pause,
21931
21948
  pauseAndReturnToPlayStart,
21932
21949
  play,
21933
21950
  playing,
21934
21951
  seek2,
21935
- toggle
21952
+ toggle,
21953
+ isPlaying,
21954
+ isBuffering
21936
21955
  ]);
21937
21956
  return returnValue;
21938
21957
  };
@@ -22101,7 +22120,7 @@ var usePlayback = ({
22101
22120
  }) => {
22102
22121
  const config = Internals.useUnsafeVideoConfig();
22103
22122
  const frame = Internals.Timeline.useTimelinePosition();
22104
- const { playing, pause, emitter } = usePlayer();
22123
+ const { playing, pause, emitter, isPlaying } = usePlayer();
22105
22124
  const setFrame = Internals.Timeline.useTimelineSetFrame();
22106
22125
  const isBackgroundedRef = useIsBackgrounded();
22107
22126
  const lastTimeUpdateEvent = useRef42(null);
@@ -22142,6 +22161,9 @@ var usePlayback = ({
22142
22161
  if (hasBeenStopped) {
22143
22162
  return;
22144
22163
  }
22164
+ if (!isPlaying()) {
22165
+ return;
22166
+ }
22145
22167
  const time = performance.now() - startedTime;
22146
22168
  const actualLastFrame = outFrame ?? config.durationInFrames - 1;
22147
22169
  const actualFirstFrame = inFrame ?? 0;
@@ -22213,7 +22235,8 @@ var usePlayback = ({
22213
22235
  moveToBeginningWhenEnded,
22214
22236
  isBackgroundedRef,
22215
22237
  getCurrentFrame,
22216
- context
22238
+ context,
22239
+ isPlaying
22217
22240
  ]);
22218
22241
  useEffect52(() => {
22219
22242
  const interval = setInterval(() => {
@@ -26436,7 +26459,7 @@ var Cards = ({
26436
26459
  // src/components/homepage/Demo/Comp.tsx
26437
26460
  import { jsx as jsx75, jsxs as jsxs27 } from "react/jsx-runtime";
26438
26461
  var getDataAndProps = async () => {
26439
- const location = await fetch("https://bugs-git-homepage-player-remotion.vercel.app/api/location").then((res) => res.json());
26462
+ const location = await fetch("https://bugs-five.vercel.app/api/location").then((res) => res.json());
26440
26463
  const trending = await fetch(`https://bugs.remotion.dev/trending?lat=${location.latitude}&lng=${location.longitude}&country=${location.country}`).then((res) => res.json()).then((data) => {
26441
26464
  return {
26442
26465
  repos: data.trending.repos.slice(0, 3),
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.395", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.397", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -5337,16 +5337,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5337
  });
5338
5338
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5339
  if (typeof document === "undefined") {
5340
- return;
5340
+ return () => {};
5341
5341
  }
5342
5342
  if (injected[css]) {
5343
- return;
5343
+ return () => {};
5344
5344
  }
5345
5345
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5346
  const style = document.createElement("style");
5347
5347
  style.appendChild(document.createTextNode(css));
5348
5348
  head.prepend(style);
5349
- injected[css] = true;
5349
+ injected[css] = style;
5350
+ return () => {
5351
+ const styleElement = injected[css];
5352
+ if (styleElement) {
5353
+ if (styleElement.parentNode) {
5354
+ styleElement.parentNode.removeChild(styleElement);
5355
+ }
5356
+ delete injected[css];
5357
+ }
5358
+ };
5350
5359
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5360
  if (!scope) {
5352
5361
  return `
@@ -21900,6 +21909,15 @@ var usePlayer = () => {
21900
21909
  play(e);
21901
21910
  }
21902
21911
  }, [imperativePlaying, pause, play]);
21912
+ const isPlaying = useCallback28(() => {
21913
+ return imperativePlaying.current;
21914
+ }, [imperativePlaying]);
21915
+ const getCurrentFrame = useCallback28(() => {
21916
+ return frameRef.current;
21917
+ }, [frameRef]);
21918
+ const isBuffering = useCallback28(() => {
21919
+ return buffering.current;
21920
+ }, [buffering]);
21903
21921
  const returnValue = useMemo42(() => {
21904
21922
  return {
21905
21923
  frameBack,
@@ -21911,28 +21929,29 @@ var usePlayer = () => {
21911
21929
  pause,
21912
21930
  seek: seek2,
21913
21931
  isFirstFrame,
21914
- getCurrentFrame: () => frameRef.current,
21915
- isPlaying: () => imperativePlaying.current,
21916
- isBuffering: () => buffering.current,
21932
+ getCurrentFrame,
21933
+ isPlaying,
21934
+ isBuffering,
21917
21935
  pauseAndReturnToPlayStart,
21918
21936
  hasPlayed,
21919
21937
  toggle
21920
21938
  };
21921
21939
  }, [
21922
- buffering,
21923
21940
  emitter,
21924
21941
  frameBack,
21925
21942
  frameForward,
21926
21943
  hasPlayed,
21927
- imperativePlaying,
21928
21944
  isFirstFrame,
21929
21945
  isLastFrame,
21946
+ getCurrentFrame,
21930
21947
  pause,
21931
21948
  pauseAndReturnToPlayStart,
21932
21949
  play,
21933
21950
  playing,
21934
21951
  seek2,
21935
- toggle
21952
+ toggle,
21953
+ isPlaying,
21954
+ isBuffering
21936
21955
  ]);
21937
21956
  return returnValue;
21938
21957
  };
@@ -22101,7 +22120,7 @@ var usePlayback = ({
22101
22120
  }) => {
22102
22121
  const config = Internals.useUnsafeVideoConfig();
22103
22122
  const frame = Internals.Timeline.useTimelinePosition();
22104
- const { playing, pause, emitter } = usePlayer();
22123
+ const { playing, pause, emitter, isPlaying } = usePlayer();
22105
22124
  const setFrame = Internals.Timeline.useTimelineSetFrame();
22106
22125
  const isBackgroundedRef = useIsBackgrounded();
22107
22126
  const lastTimeUpdateEvent = useRef42(null);
@@ -22142,6 +22161,9 @@ var usePlayback = ({
22142
22161
  if (hasBeenStopped) {
22143
22162
  return;
22144
22163
  }
22164
+ if (!isPlaying()) {
22165
+ return;
22166
+ }
22145
22167
  const time = performance.now() - startedTime;
22146
22168
  const actualLastFrame = outFrame ?? config.durationInFrames - 1;
22147
22169
  const actualFirstFrame = inFrame ?? 0;
@@ -22213,7 +22235,8 @@ var usePlayback = ({
22213
22235
  moveToBeginningWhenEnded,
22214
22236
  isBackgroundedRef,
22215
22237
  getCurrentFrame,
22216
- context
22238
+ context,
22239
+ isPlaying
22217
22240
  ]);
22218
22241
  useEffect52(() => {
22219
22242
  const interval = setInterval(() => {
@@ -26436,7 +26459,7 @@ var Cards = ({
26436
26459
  // src/components/homepage/Demo/Comp.tsx
26437
26460
  import { jsx as jsx75, jsxs as jsxs27 } from "react/jsx-runtime";
26438
26461
  var getDataAndProps = async () => {
26439
- const location = await fetch("https://bugs-git-homepage-player-remotion.vercel.app/api/location").then((res) => res.json());
26462
+ const location = await fetch("https://bugs-five.vercel.app/api/location").then((res) => res.json());
26440
26463
  const trending = await fetch(`https://bugs.remotion.dev/trending?lat=${location.latitude}&lng=${location.longitude}&country=${location.country}`).then((res) => res.json()).then((data) => {
26441
26464
  return {
26442
26465
  repos: data.trending.repos.slice(0, 3),
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.395", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.397", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -5337,16 +5337,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5337
  });
5338
5338
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5339
  if (typeof document === "undefined") {
5340
- return;
5340
+ return () => {};
5341
5341
  }
5342
5342
  if (injected[css]) {
5343
- return;
5343
+ return () => {};
5344
5344
  }
5345
5345
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5346
  const style = document.createElement("style");
5347
5347
  style.appendChild(document.createTextNode(css));
5348
5348
  head.prepend(style);
5349
- injected[css] = true;
5349
+ injected[css] = style;
5350
+ return () => {
5351
+ const styleElement = injected[css];
5352
+ if (styleElement) {
5353
+ if (styleElement.parentNode) {
5354
+ styleElement.parentNode.removeChild(styleElement);
5355
+ }
5356
+ delete injected[css];
5357
+ }
5358
+ };
5350
5359
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5360
  if (!scope) {
5352
5361
  return `
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.395", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.397", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -5337,16 +5337,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5337
  });
5338
5338
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5339
  if (typeof document === "undefined") {
5340
- return;
5340
+ return () => {};
5341
5341
  }
5342
5342
  if (injected[css]) {
5343
- return;
5343
+ return () => {};
5344
5344
  }
5345
5345
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5346
  const style = document.createElement("style");
5347
5347
  style.appendChild(document.createTextNode(css));
5348
5348
  head.prepend(style);
5349
- injected[css] = true;
5349
+ injected[css] = style;
5350
+ return () => {
5351
+ const styleElement = injected[css];
5352
+ if (styleElement) {
5353
+ if (styleElement.parentNode) {
5354
+ styleElement.parentNode.removeChild(styleElement);
5355
+ }
5356
+ delete injected[css];
5357
+ }
5358
+ };
5350
5359
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5360
  if (!scope) {
5352
5361
  return `
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.395", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.397", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -5337,16 +5337,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5337
  });
5338
5338
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5339
  if (typeof document === "undefined") {
5340
- return;
5340
+ return () => {};
5341
5341
  }
5342
5342
  if (injected[css]) {
5343
- return;
5343
+ return () => {};
5344
5344
  }
5345
5345
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5346
  const style = document.createElement("style");
5347
5347
  style.appendChild(document.createTextNode(css));
5348
5348
  head.prepend(style);
5349
- injected[css] = true;
5349
+ injected[css] = style;
5350
+ return () => {
5351
+ const styleElement = injected[css];
5352
+ if (styleElement) {
5353
+ if (styleElement.parentNode) {
5354
+ styleElement.parentNode.removeChild(styleElement);
5355
+ }
5356
+ delete injected[css];
5357
+ }
5358
+ };
5350
5359
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5360
  if (!scope) {
5352
5361
  return `
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.395", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.397", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -5337,16 +5337,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5337
  });
5338
5338
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5339
  if (typeof document === "undefined") {
5340
- return;
5340
+ return () => {};
5341
5341
  }
5342
5342
  if (injected[css]) {
5343
- return;
5343
+ return () => {};
5344
5344
  }
5345
5345
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5346
  const style = document.createElement("style");
5347
5347
  style.appendChild(document.createTextNode(css));
5348
5348
  head.prepend(style);
5349
- injected[css] = true;
5349
+ injected[css] = style;
5350
+ return () => {
5351
+ const styleElement = injected[css];
5352
+ if (styleElement) {
5353
+ if (styleElement.parentNode) {
5354
+ styleElement.parentNode.removeChild(styleElement);
5355
+ }
5356
+ delete injected[css];
5357
+ }
5358
+ };
5350
5359
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5360
  if (!scope) {
5352
5361
  return `
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.395", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.397", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -5337,16 +5337,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5337
  });
5338
5338
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5339
  if (typeof document === "undefined") {
5340
- return;
5340
+ return () => {};
5341
5341
  }
5342
5342
  if (injected[css]) {
5343
- return;
5343
+ return () => {};
5344
5344
  }
5345
5345
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5346
  const style = document.createElement("style");
5347
5347
  style.appendChild(document.createTextNode(css));
5348
5348
  head.prepend(style);
5349
- injected[css] = true;
5349
+ injected[css] = style;
5350
+ return () => {
5351
+ const styleElement = injected[css];
5352
+ if (styleElement) {
5353
+ if (styleElement.parentNode) {
5354
+ styleElement.parentNode.removeChild(styleElement);
5355
+ }
5356
+ delete injected[css];
5357
+ }
5358
+ };
5350
5359
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5360
  if (!scope) {
5352
5361
  return `
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.395", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.397", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -5337,16 +5337,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5337
  });
5338
5338
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5339
  if (typeof document === "undefined") {
5340
- return;
5340
+ return () => {};
5341
5341
  }
5342
5342
  if (injected[css]) {
5343
- return;
5343
+ return () => {};
5344
5344
  }
5345
5345
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5346
  const style = document.createElement("style");
5347
5347
  style.appendChild(document.createTextNode(css));
5348
5348
  head.prepend(style);
5349
- injected[css] = true;
5349
+ injected[css] = style;
5350
+ return () => {
5351
+ const styleElement = injected[css];
5352
+ if (styleElement) {
5353
+ if (styleElement.parentNode) {
5354
+ styleElement.parentNode.removeChild(styleElement);
5355
+ }
5356
+ delete injected[css];
5357
+ }
5358
+ };
5350
5359
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5360
  if (!scope) {
5352
5361
  return `
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
755
755
  });
756
756
  }, useIsPlayer = () => {
757
757
  return useContext(IsPlayerContext);
758
- }, VERSION = "4.0.395", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.397", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -5337,16 +5337,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5337
  });
5338
5338
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5339
  if (typeof document === "undefined") {
5340
- return;
5340
+ return () => {};
5341
5341
  }
5342
5342
  if (injected[css]) {
5343
- return;
5343
+ return () => {};
5344
5344
  }
5345
5345
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5346
  const style = document.createElement("style");
5347
5347
  style.appendChild(document.createTextNode(css));
5348
5348
  head.prepend(style);
5349
- injected[css] = true;
5349
+ injected[css] = style;
5350
+ return () => {
5351
+ const styleElement = injected[css];
5352
+ if (styleElement) {
5353
+ if (styleElement.parentNode) {
5354
+ styleElement.parentNode.removeChild(styleElement);
5355
+ }
5356
+ delete injected[css];
5357
+ }
5358
+ };
5350
5359
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5360
  if (!scope) {
5352
5361
  return `
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.395", checkMultipleRemotionVersions = () => {
758
+ }, VERSION = "4.0.397", checkMultipleRemotionVersions = () => {
759
759
  if (typeof globalThis === "undefined") {
760
760
  return;
761
761
  }
@@ -5337,16 +5337,25 @@ Check that all your Remotion packages are on the same version. If your dependenc
5337
5337
  });
5338
5338
  }, exports_default_css, injected, injectCSS = (css) => {
5339
5339
  if (typeof document === "undefined") {
5340
- return;
5340
+ return () => {};
5341
5341
  }
5342
5342
  if (injected[css]) {
5343
- return;
5343
+ return () => {};
5344
5344
  }
5345
5345
  const head = document.head || document.getElementsByTagName("head")[0];
5346
5346
  const style = document.createElement("style");
5347
5347
  style.appendChild(document.createTextNode(css));
5348
5348
  head.prepend(style);
5349
- injected[css] = true;
5349
+ injected[css] = style;
5350
+ return () => {
5351
+ const styleElement = injected[css];
5352
+ if (styleElement) {
5353
+ if (styleElement.parentNode) {
5354
+ styleElement.parentNode.removeChild(styleElement);
5355
+ }
5356
+ delete injected[css];
5357
+ }
5358
+ };
5350
5359
  }, OBJECTFIT_CONTAIN_CLASS_NAME = "__remotion_objectfitcontain", makeDefaultPreviewCSS = (scope, backgroundColor) => {
5351
5360
  if (!scope) {
5352
5361
  return `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/promo-pages",
3
- "version": "4.0.395",
3
+ "version": "4.0.397",
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.395",
15
- "@remotion/design": "4.0.395",
16
- "@remotion/lambda": "4.0.395",
17
- "@remotion/lottie": "4.0.395",
18
- "@remotion/paths": "4.0.395",
19
- "@remotion/player": "4.0.395",
20
- "@remotion/shapes": "4.0.395",
21
- "@remotion/svg-3d-engine": "4.0.395",
22
- "create-video": "4.0.395",
14
+ "@remotion/animated-emoji": "4.0.397",
15
+ "@remotion/design": "4.0.397",
16
+ "@remotion/lambda": "4.0.397",
17
+ "@remotion/lottie": "4.0.397",
18
+ "@remotion/paths": "4.0.397",
19
+ "@remotion/player": "4.0.397",
20
+ "@remotion/shapes": "4.0.397",
21
+ "@remotion/svg-3d-engine": "4.0.397",
22
+ "create-video": "4.0.397",
23
23
  "hls.js": "1.5.19",
24
24
  "polished": "4.3.1",
25
- "remotion": "4.0.395",
25
+ "remotion": "4.0.397",
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.395",
30
+ "@remotion/eslint-config-internal": "4.0.397",
31
31
  "@eslint/eslintrc": "3.1.0",
32
32
  "@types/react": "19.2.7",
33
33
  "@types/react-dom": "19.2.3",