@remotion/promo-pages 4.0.374 → 4.0.375

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.
@@ -753,7 +753,7 @@ var __defProp2, __export2 = (target, all) => {
753
753
  });
754
754
  }, useIsPlayer = () => {
755
755
  return useContext(IsPlayerContext);
756
- }, VERSION = "4.0.374", checkMultipleRemotionVersions = () => {
756
+ }, VERSION = "4.0.375", checkMultipleRemotionVersions = () => {
757
757
  if (typeof globalThis === "undefined") {
758
758
  return;
759
759
  }
@@ -1046,6 +1046,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
1046
1046
  if (override) {
1047
1047
  return override;
1048
1048
  }
1049
+ if (typeof window === "undefined" || typeof window.remotion_inputProps === "undefined") {
1050
+ throw new Error("Cannot call `getInputProps()` - window.remotion_inputProps is not set. This API is only available if you are in the Studio, or while you are rendering server-side.");
1051
+ }
1049
1052
  const param = window.remotion_inputProps;
1050
1053
  if (!param) {
1051
1054
  return {};
@@ -1203,7 +1206,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1203
1206
  }
1204
1207
  }, ResolveCompositionContext, resolveCompositionsRef, needsResolution = (composition) => {
1205
1208
  return Boolean(composition.calculateMetadata);
1206
- }, PROPS_UPDATED_EXTERNALLY = "remotion.propsUpdatedExternally", ResolveCompositionConfig = ({ children }) => {
1209
+ }, PROPS_UPDATED_EXTERNALLY = "remotion.propsUpdatedExternally", ResolveCompositionConfigInStudio = ({ children }) => {
1207
1210
  const [currentRenderModalComposition, setCurrentRenderModalComposition] = useState4(null);
1208
1211
  const { compositions, canvasContent, currentCompositionMetadata } = useContext4(CompositionManager);
1209
1212
  const { fastRefreshes, manualRefreshes } = useContext4(NonceContext);
@@ -1499,7 +1502,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1499
1502
  props: {
1500
1503
  ...composition.defaultProps ?? {},
1501
1504
  ...selectedEditorProps ?? {},
1502
- ...typeof window === "undefined" || env.isPlayer ? {} : getInputProps() ?? {}
1505
+ ...typeof window === "undefined" || env.isPlayer || !window.remotion_inputProps ? {} : getInputProps() ?? {}
1503
1506
  },
1504
1507
  defaultCodec: null,
1505
1508
  defaultOutName: null,
@@ -1509,6 +1512,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
1509
1512
  }
1510
1513
  };
1511
1514
  }
1515
+ if (!context) {
1516
+ return null;
1517
+ }
1512
1518
  if (!context[composition.id]) {
1513
1519
  return null;
1514
1520
  }
@@ -5422,14 +5428,12 @@ Check that all your Remotion packages are on the same version. If your dependenc
5422
5428
  children: /* @__PURE__ */ jsx28(PrefetchProvider, {
5423
5429
  children: /* @__PURE__ */ jsx28(SequenceManagerProvider, {
5424
5430
  children: /* @__PURE__ */ jsx28(RenderAssetManagerProvider, {
5425
- children: /* @__PURE__ */ jsx28(ResolveCompositionConfig, {
5426
- children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
5427
- numberOfAudioTags,
5428
- audioLatencyHint,
5429
- children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
5430
- children: /* @__PURE__ */ jsx28(BufferingProvider, {
5431
- children
5432
- })
5431
+ children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
5432
+ numberOfAudioTags,
5433
+ audioLatencyHint,
5434
+ children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
5435
+ children: /* @__PURE__ */ jsx28(BufferingProvider, {
5436
+ children
5433
5437
  })
5434
5438
  })
5435
5439
  })
@@ -7129,7 +7133,7 @@ var init_esm = __esm(() => {
7129
7133
  resolveVideoConfig,
7130
7134
  useResolvedVideoConfig,
7131
7135
  resolveCompositionsRef,
7132
- ResolveCompositionConfig,
7136
+ ResolveCompositionConfigInStudio,
7133
7137
  REMOTION_STUDIO_CONTAINER_ELEMENT,
7134
7138
  RenderAssetManager,
7135
7139
  persistCurrentFrame,
@@ -13004,6 +13008,7 @@ var Outer = ({
13004
13008
  const depth = depthFromHover;
13005
13009
  const frontFace = reduceMatrices([
13006
13010
  translateZ(-depth / 2 + depthFromClick),
13011
+ translateZ(1.1),
13007
13012
  transformation
13008
13013
  ]);
13009
13014
  const centerOriented = reduceMatrices([
@@ -13145,7 +13150,7 @@ var Button = ({ children, className, disabled, depth, loading, ...buttonProps })
13145
13150
  ...buttonProps,
13146
13151
  children: [
13147
13152
  /* @__PURE__ */ jsx43("div", {
13148
- className: cn(loading && "invisible"),
13153
+ className: cn(loading && "invisible", "inline-flex"),
13149
13154
  children
13150
13155
  }),
13151
13156
  loading ? /* @__PURE__ */ jsx43("div", {
@@ -753,7 +753,7 @@ var __defProp2, __export2 = (target, all) => {
753
753
  });
754
754
  }, useIsPlayer = () => {
755
755
  return useContext(IsPlayerContext);
756
- }, VERSION = "4.0.374", checkMultipleRemotionVersions = () => {
756
+ }, VERSION = "4.0.375", checkMultipleRemotionVersions = () => {
757
757
  if (typeof globalThis === "undefined") {
758
758
  return;
759
759
  }
@@ -1046,6 +1046,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
1046
1046
  if (override) {
1047
1047
  return override;
1048
1048
  }
1049
+ if (typeof window === "undefined" || typeof window.remotion_inputProps === "undefined") {
1050
+ throw new Error("Cannot call `getInputProps()` - window.remotion_inputProps is not set. This API is only available if you are in the Studio, or while you are rendering server-side.");
1051
+ }
1049
1052
  const param = window.remotion_inputProps;
1050
1053
  if (!param) {
1051
1054
  return {};
@@ -1203,7 +1206,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1203
1206
  }
1204
1207
  }, ResolveCompositionContext, resolveCompositionsRef, needsResolution = (composition) => {
1205
1208
  return Boolean(composition.calculateMetadata);
1206
- }, PROPS_UPDATED_EXTERNALLY = "remotion.propsUpdatedExternally", ResolveCompositionConfig = ({ children }) => {
1209
+ }, PROPS_UPDATED_EXTERNALLY = "remotion.propsUpdatedExternally", ResolveCompositionConfigInStudio = ({ children }) => {
1207
1210
  const [currentRenderModalComposition, setCurrentRenderModalComposition] = useState4(null);
1208
1211
  const { compositions, canvasContent, currentCompositionMetadata } = useContext4(CompositionManager);
1209
1212
  const { fastRefreshes, manualRefreshes } = useContext4(NonceContext);
@@ -1499,7 +1502,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1499
1502
  props: {
1500
1503
  ...composition.defaultProps ?? {},
1501
1504
  ...selectedEditorProps ?? {},
1502
- ...typeof window === "undefined" || env.isPlayer ? {} : getInputProps() ?? {}
1505
+ ...typeof window === "undefined" || env.isPlayer || !window.remotion_inputProps ? {} : getInputProps() ?? {}
1503
1506
  },
1504
1507
  defaultCodec: null,
1505
1508
  defaultOutName: null,
@@ -1509,6 +1512,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
1509
1512
  }
1510
1513
  };
1511
1514
  }
1515
+ if (!context) {
1516
+ return null;
1517
+ }
1512
1518
  if (!context[composition.id]) {
1513
1519
  return null;
1514
1520
  }
@@ -5422,14 +5428,12 @@ Check that all your Remotion packages are on the same version. If your dependenc
5422
5428
  children: /* @__PURE__ */ jsx28(PrefetchProvider, {
5423
5429
  children: /* @__PURE__ */ jsx28(SequenceManagerProvider, {
5424
5430
  children: /* @__PURE__ */ jsx28(RenderAssetManagerProvider, {
5425
- children: /* @__PURE__ */ jsx28(ResolveCompositionConfig, {
5426
- children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
5427
- numberOfAudioTags,
5428
- audioLatencyHint,
5429
- children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
5430
- children: /* @__PURE__ */ jsx28(BufferingProvider, {
5431
- children
5432
- })
5431
+ children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
5432
+ numberOfAudioTags,
5433
+ audioLatencyHint,
5434
+ children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
5435
+ children: /* @__PURE__ */ jsx28(BufferingProvider, {
5436
+ children
5433
5437
  })
5434
5438
  })
5435
5439
  })
@@ -7129,7 +7133,7 @@ var init_esm = __esm(() => {
7129
7133
  resolveVideoConfig,
7130
7134
  useResolvedVideoConfig,
7131
7135
  resolveCompositionsRef,
7132
- ResolveCompositionConfig,
7136
+ ResolveCompositionConfigInStudio,
7133
7137
  REMOTION_STUDIO_CONTAINER_ELEMENT,
7134
7138
  RenderAssetManager,
7135
7139
  persistCurrentFrame,
@@ -13004,6 +13008,7 @@ var Outer = ({
13004
13008
  const depth = depthFromHover;
13005
13009
  const frontFace = reduceMatrices([
13006
13010
  translateZ(-depth / 2 + depthFromClick),
13011
+ translateZ(1.1),
13007
13012
  transformation
13008
13013
  ]);
13009
13014
  const centerOriented = reduceMatrices([
@@ -13145,7 +13150,7 @@ var Button = ({ children, className, disabled, depth, loading, ...buttonProps })
13145
13150
  ...buttonProps,
13146
13151
  children: [
13147
13152
  /* @__PURE__ */ jsx43("div", {
13148
- className: cn(loading && "invisible"),
13153
+ className: cn(loading && "invisible", "inline-flex"),
13149
13154
  children
13150
13155
  }),
13151
13156
  loading ? /* @__PURE__ */ jsx43("div", {