@remotion/promo-pages 4.0.494 → 4.0.496

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/team.js CHANGED
@@ -1559,7 +1559,7 @@ var getDefaultConfig = () => {
1559
1559
  var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
1560
1560
 
1561
1561
  // ../design/dist/esm/index.mjs
1562
- import React33, { useEffect as useEffect21, useMemo as useMemo42, useState as useState23 } from "react";
1562
+ import React33, { useEffect as useEffect21, useMemo as useMemo43, useState as useState23 } from "react";
1563
1563
 
1564
1564
  // ../paths/dist/esm/index.mjs
1565
1565
  var cutLInstruction = ({
@@ -4356,9 +4356,9 @@ import React9 from "react";
4356
4356
  import {
4357
4357
  forwardRef as forwardRef3,
4358
4358
  useCallback as useCallback6,
4359
- useContext as useContext17,
4359
+ useContext as useContext18,
4360
4360
  useEffect as useEffect3,
4361
- useMemo as useMemo14,
4361
+ useMemo as useMemo15,
4362
4362
  useRef as useRef6,
4363
4363
  useState as useState5
4364
4364
  } from "react";
@@ -4377,13 +4377,14 @@ import { useContext as useContext11 } from "react";
4377
4377
  import { useContext as useContext13 } from "react";
4378
4378
  import { useContext as useContext12, useMemo as useMemo10 } from "react";
4379
4379
  import { jsx as jsx9 } from "react/jsx-runtime";
4380
- import { createContext as createContext14 } from "react";
4381
4380
  import React12, { useCallback as useCallback5, useMemo as useMemo12, useRef as useRef4, useState as useState3 } from "react";
4382
4381
  import { jsx as jsx10 } from "react/jsx-runtime";
4383
- import React13, { createContext as createContext15 } from "react";
4382
+ import React13, { createContext as createContext14 } from "react";
4384
4383
  import { jsx as jsx11 } from "react/jsx-runtime";
4385
- import React14, { forwardRef as forwardRef2, useContext as useContext16, useMemo as useMemo13, useState as useState4 } from "react";
4386
- import { useContext as useContext15, useRef as useRef5 } from "react";
4384
+ import { useContext as useContext15, useMemo as useMemo13 } from "react";
4385
+ import { createContext as createContext15 } from "react";
4386
+ import React14, { forwardRef as forwardRef2, useContext as useContext17, useMemo as useMemo14, useState as useState4 } from "react";
4387
+ import { useContext as useContext16, useRef as useRef5 } from "react";
4387
4388
  import { createContext as createContext16 } from "react";
4388
4389
  import { jsx as jsx12 } from "react/jsx-runtime";
4389
4390
  import {
@@ -4394,70 +4395,70 @@ import {
4394
4395
  useRef as useRef9,
4395
4396
  useState as useState6
4396
4397
  } from "react";
4397
- import React16, { useCallback as useCallback7, useImperativeHandle, useMemo as useMemo16, useRef as useRef8 } from "react";
4398
- import { useEffect as useEffect4, useMemo as useMemo15, useRef as useRef7 } from "react";
4398
+ import React16, { useCallback as useCallback7, useImperativeHandle, useMemo as useMemo17, useRef as useRef8 } from "react";
4399
+ import { useEffect as useEffect4, useMemo as useMemo16, useRef as useRef7 } from "react";
4399
4400
  import { jsx as jsx13 } from "react/jsx-runtime";
4400
4401
  import { jsx as jsx14 } from "react/jsx-runtime";
4401
- import { useContext as useContext18, useLayoutEffect as useLayoutEffect4, useState as useState8 } from "react";
4402
+ import { useContext as useContext19, useLayoutEffect as useLayoutEffect4, useState as useState8 } from "react";
4402
4403
  import {
4403
4404
  createContext as createContext17,
4404
4405
  useCallback as useCallback8,
4405
4406
  useImperativeHandle as useImperativeHandle3,
4406
4407
  useLayoutEffect as useLayoutEffect3,
4407
- useMemo as useMemo17,
4408
+ useMemo as useMemo18,
4408
4409
  useRef as useRef10,
4409
4410
  useState as useState7
4410
4411
  } from "react";
4411
4412
  import { jsx as jsx15 } from "react/jsx-runtime";
4412
- import { forwardRef as forwardRef7, useCallback as useCallback14, useContext as useContext30 } from "react";
4413
- import React17, { createContext as createContext18, useMemo as useMemo18 } from "react";
4413
+ import { forwardRef as forwardRef7, useCallback as useCallback14, useContext as useContext31 } from "react";
4414
+ import React17, { createContext as createContext18, useMemo as useMemo19 } from "react";
4414
4415
  import { jsx as jsx16 } from "react/jsx-runtime";
4415
- import { useContext as useContext19 } from "react";
4416
+ import { useContext as useContext20 } from "react";
4416
4417
  import { createContext as createContext19, useEffect as useEffect6, useState as useState9 } from "react";
4417
4418
  import { jsx as jsx17 } from "react/jsx-runtime";
4418
- import { createContext as createContext20, useMemo as useMemo19, useReducer } from "react";
4419
+ import { createContext as createContext20, useMemo as useMemo20, useReducer } from "react";
4419
4420
  import { jsx as jsx18 } from "react/jsx-runtime";
4420
4421
  import { useCallback as useCallback13 } from "react";
4421
4422
  import React23, {
4422
4423
  forwardRef as forwardRef5,
4423
- useContext as useContext28,
4424
+ useContext as useContext29,
4424
4425
  useEffect as useEffect14,
4425
4426
  useImperativeHandle as useImperativeHandle4,
4426
- useMemo as useMemo27,
4427
+ useMemo as useMemo28,
4427
4428
  useRef as useRef19,
4428
4429
  useState as useState14
4429
4430
  } from "react";
4430
- import { useContext as useContext21, useLayoutEffect as useLayoutEffect5, useRef as useRef14 } from "react";
4431
+ import { useContext as useContext22, useLayoutEffect as useLayoutEffect5, useRef as useRef14 } from "react";
4431
4432
  import React20, {
4432
4433
  createContext as createContext21,
4433
4434
  createRef as createRef2,
4434
4435
  useCallback as useCallback9,
4435
- useContext as useContext20,
4436
+ useContext as useContext21,
4436
4437
  useEffect as useEffect7,
4437
- useMemo as useMemo21,
4438
+ useMemo as useMemo22,
4438
4439
  useRef as useRef12,
4439
4440
  useState as useState10
4440
4441
  } from "react";
4441
- import { useMemo as useMemo20, useRef as useRef11 } from "react";
4442
+ import { useMemo as useMemo21, useRef as useRef11 } from "react";
4442
4443
  import { jsx as jsx19, jsxs as jsxs22 } from "react/jsx-runtime";
4443
4444
  import { useRef as useRef13 } from "react";
4444
- import { useContext as useContext23, useEffect as useEffect8, useMemo as useMemo22, useState as useState11 } from "react";
4445
- import { useContext as useContext22 } from "react";
4445
+ import { useContext as useContext24, useEffect as useEffect8, useMemo as useMemo23, useState as useState11 } from "react";
4446
+ import { useContext as useContext23 } from "react";
4446
4447
  import {
4447
4448
  useCallback as useCallback12,
4448
- useContext as useContext26,
4449
+ useContext as useContext27,
4449
4450
  useEffect as useEffect12,
4450
4451
  useLayoutEffect as useLayoutEffect7,
4451
4452
  useRef as useRef18
4452
4453
  } from "react";
4453
- import { useCallback as useCallback11, useMemo as useMemo25, useRef as useRef16 } from "react";
4454
- import { useContext as useContext25, useMemo as useMemo24 } from "react";
4454
+ import { useCallback as useCallback11, useMemo as useMemo26, useRef as useRef16 } from "react";
4455
+ import { useContext as useContext26, useMemo as useMemo25 } from "react";
4455
4456
  import React21, {
4456
4457
  useCallback as useCallback10,
4457
- useContext as useContext24,
4458
+ useContext as useContext25,
4458
4459
  useEffect as useEffect9,
4459
4460
  useLayoutEffect as useLayoutEffect6,
4460
- useMemo as useMemo23,
4461
+ useMemo as useMemo24,
4461
4462
  useRef as useRef15,
4462
4463
  useState as useState12
4463
4464
  } from "react";
@@ -4466,15 +4467,15 @@ import React22 from "react";
4466
4467
  import { useEffect as useEffect10, useState as useState13 } from "react";
4467
4468
  import { useEffect as useEffect11, useRef as useRef17 } from "react";
4468
4469
  import { useEffect as useEffect13 } from "react";
4469
- import { createContext as createContext22, useContext as useContext27, useMemo as useMemo26 } from "react";
4470
+ import { createContext as createContext22, useContext as useContext28, useMemo as useMemo27 } from "react";
4470
4471
  import { jsx as jsx21 } from "react/jsx-runtime";
4471
4472
  import {
4472
4473
  forwardRef as forwardRef6,
4473
- useContext as useContext29,
4474
+ useContext as useContext30,
4474
4475
  useEffect as useEffect15,
4475
4476
  useImperativeHandle as useImperativeHandle5,
4476
4477
  useLayoutEffect as useLayoutEffect8,
4477
- useMemo as useMemo28,
4478
+ useMemo as useMemo29,
4478
4479
  useRef as useRef20
4479
4480
  } from "react";
4480
4481
  import { jsx as jsx222 } from "react/jsx-runtime";
@@ -4484,7 +4485,7 @@ import {
4484
4485
  useCallback as useCallback15,
4485
4486
  useEffect as useEffect16,
4486
4487
  useImperativeHandle as useImperativeHandle6,
4487
- useMemo as useMemo29,
4488
+ useMemo as useMemo30,
4488
4489
  useRef as useRef21,
4489
4490
  useState as useState15
4490
4491
  } from "react";
@@ -4493,19 +4494,19 @@ import {
4493
4494
  createContext as createContext23,
4494
4495
  forwardRef as forwardRef9,
4495
4496
  useCallback as useCallback16,
4496
- useContext as useContext31,
4497
+ useContext as useContext32,
4497
4498
  useLayoutEffect as useLayoutEffect9,
4498
- useMemo as useMemo30,
4499
+ useMemo as useMemo31,
4499
4500
  useRef as useRef22
4500
4501
  } from "react";
4501
4502
  import { jsx as jsx25 } from "react/jsx-runtime";
4502
4503
  import {
4503
4504
  forwardRef as forwardRef10,
4504
4505
  useCallback as useCallback17,
4505
- useContext as useContext32,
4506
+ useContext as useContext33,
4506
4507
  useImperativeHandle as useImperativeHandle7,
4507
4508
  useLayoutEffect as useLayoutEffect10,
4508
- useMemo as useMemo31,
4509
+ useMemo as useMemo32,
4509
4510
  useRef as useRef23,
4510
4511
  useState as useState16
4511
4512
  } from "react";
@@ -4514,7 +4515,7 @@ import { forwardRef as forwardRef11, useCallback as useCallback18, useState as u
4514
4515
  import { jsx as jsx27 } from "react/jsx-runtime";
4515
4516
  import {
4516
4517
  useCallback as useCallback19,
4517
- useContext as useContext33,
4518
+ useContext as useContext34,
4518
4519
  useLayoutEffect as useLayoutEffect11,
4519
4520
  useRef as useRef24,
4520
4521
  useState as useState18
@@ -4527,59 +4528,59 @@ import React31 from "react";
4527
4528
  import {
4528
4529
  useCallback as useCallback21,
4529
4530
  useImperativeHandle as useImperativeHandle8,
4530
- useMemo as useMemo32,
4531
+ useMemo as useMemo33,
4531
4532
  useRef as useRef26,
4532
4533
  useState as useState19
4533
4534
  } from "react";
4534
4535
  import { jsx as jsx30 } from "react/jsx-runtime";
4535
4536
  import React32 from "react";
4536
- import { useMemo as useMemo34 } from "react";
4537
- import { createContext as createContext24, useContext as useContext34, useMemo as useMemo33 } from "react";
4537
+ import { useMemo as useMemo35 } from "react";
4538
+ import { createContext as createContext24, useContext as useContext35, useMemo as useMemo34 } from "react";
4538
4539
  import { jsx as jsx31 } from "react/jsx-runtime";
4539
4540
  import { jsx as jsx322 } from "react/jsx-runtime";
4540
4541
  import React34 from "react";
4541
4542
  import React35, { createContext as createContext25 } from "react";
4542
- import React36, { useContext as useContext35 } from "react";
4543
+ import React36, { useContext as useContext36 } from "react";
4543
4544
  import { useCallback as useCallback24 } from "react";
4544
4545
  import {
4545
4546
  useCallback as useCallback22,
4546
- useContext as useContext36,
4547
+ useContext as useContext37,
4547
4548
  useEffect as useEffect17,
4548
4549
  useLayoutEffect as useLayoutEffect12,
4549
- useMemo as useMemo35,
4550
+ useMemo as useMemo36,
4550
4551
  useState as useState20
4551
4552
  } from "react";
4552
4553
  import { jsx as jsx33 } from "react/jsx-runtime";
4553
4554
  import React38, {
4554
4555
  forwardRef as forwardRef13,
4555
4556
  useCallback as useCallback23,
4556
- useContext as useContext37,
4557
+ useContext as useContext38,
4557
4558
  useEffect as useEffect19,
4558
4559
  useImperativeHandle as useImperativeHandle9,
4559
- useMemo as useMemo36,
4560
+ useMemo as useMemo37,
4560
4561
  useRef as useRef27,
4561
4562
  useState as useState21
4562
4563
  } from "react";
4563
4564
  import { useEffect as useEffect18 } from "react";
4564
4565
  import { jsx as jsx34 } from "react/jsx-runtime";
4565
4566
  import { jsx as jsx35 } from "react/jsx-runtime";
4566
- import React40, { useMemo as useMemo37 } from "react";
4567
+ import React40, { useMemo as useMemo38 } from "react";
4567
4568
  import { jsx as jsx36 } from "react/jsx-runtime";
4568
4569
  import React42, {
4569
4570
  forwardRef as forwardRef14,
4570
- useMemo as useMemo38
4571
+ useMemo as useMemo39
4571
4572
  } from "react";
4572
4573
  import React41 from "react";
4573
4574
  import { jsx as jsx37, jsxs as jsxs32, Fragment } from "react/jsx-runtime";
4574
4575
  import React43 from "react";
4575
- import { forwardRef as forwardRef16, useCallback as useCallback25, useContext as useContext39 } from "react";
4576
+ import { forwardRef as forwardRef16, useCallback as useCallback25, useContext as useContext40 } from "react";
4576
4577
  import {
4577
4578
  forwardRef as forwardRef15,
4578
- useContext as useContext38,
4579
+ useContext as useContext39,
4579
4580
  useEffect as useEffect20,
4580
4581
  useImperativeHandle as useImperativeHandle10,
4581
4582
  useLayoutEffect as useLayoutEffect13,
4582
- useMemo as useMemo39,
4583
+ useMemo as useMemo40,
4583
4584
  useRef as useRef28
4584
4585
  } from "react";
4585
4586
  import { jsx as jsx38 } from "react/jsx-runtime";
@@ -5439,17 +5440,6 @@ var delayRenderInternal = ({
5439
5440
  scope.remotion_renderReady = false;
5440
5441
  return handle;
5441
5442
  };
5442
- var delayRender = (label2, options) => {
5443
- if (typeof window === "undefined") {
5444
- return Math.random();
5445
- }
5446
- return delayRenderInternal({
5447
- scope: window,
5448
- environment: getRemotionEnvironment(),
5449
- label: label2 ?? null,
5450
- options: options ?? {}
5451
- });
5452
- };
5453
5443
  var continueRenderInternal = ({
5454
5444
  scope,
5455
5445
  handle,
@@ -5770,7 +5760,7 @@ var getSingleChildComponent = (children) => {
5770
5760
  }
5771
5761
  return child.type;
5772
5762
  };
5773
- var VERSION = "4.0.494";
5763
+ var VERSION = "4.0.496";
5774
5764
  var checkMultipleRemotionVersions = () => {
5775
5765
  if (typeof globalThis === "undefined") {
5776
5766
  return;
@@ -6263,15 +6253,19 @@ var premountSchema = {
6263
6253
  description: "Premount For",
6264
6254
  min: 0,
6265
6255
  step: 1,
6266
- hiddenFromList: false
6256
+ hiddenFromList: false,
6257
+ keyframable: false
6267
6258
  },
6268
6259
  postmountFor: {
6269
6260
  type: "number",
6270
6261
  default: 0,
6271
6262
  min: 0,
6272
6263
  step: 1,
6273
- hiddenFromList: true
6274
- },
6264
+ hiddenFromList: true,
6265
+ keyframable: false
6266
+ }
6267
+ };
6268
+ var premountStyleSchema = {
6275
6269
  styleWhilePremounted: {
6276
6270
  type: "hidden"
6277
6271
  },
@@ -6279,10 +6273,13 @@ var premountSchema = {
6279
6273
  type: "hidden"
6280
6274
  }
6281
6275
  };
6282
- var sequencePremountSchema = premountSchema;
6276
+ var sequencePremountSchema = {
6277
+ ...premountSchema,
6278
+ ...premountStyleSchema
6279
+ };
6283
6280
  var sequenceStyleSchema = {
6284
6281
  ...transformSchema,
6285
- ...premountSchema
6282
+ ...sequencePremountSchema
6286
6283
  };
6287
6284
  var hiddenField = {
6288
6285
  type: "boolean",
@@ -6367,9 +6364,6 @@ var sequenceSchemaDefaultLayoutNone = {
6367
6364
  default: "none"
6368
6365
  }
6369
6366
  };
6370
- var PremountContext = createContext14({
6371
- premountFramesRemaining: 0
6372
- });
6373
6367
  var SequenceManager = React12.createContext({
6374
6368
  registerSequence: () => {
6375
6369
  throw new Error("SequenceManagerContext not initialized");
@@ -6549,7 +6543,7 @@ var SequenceManagerProvider = ({ children }) => {
6549
6543
  })
6550
6544
  });
6551
6545
  };
6552
- var IsInsideSeriesContext = createContext15(false);
6546
+ var IsInsideSeriesContext = createContext14(false);
6553
6547
  var IsInsideSeriesContainer = ({ children }) => {
6554
6548
  return /* @__PURE__ */ jsx11(IsInsideSeriesContext.Provider, {
6555
6549
  value: true,
@@ -6568,7 +6562,61 @@ var useRequireToBeInsideSeries = () => {
6568
6562
  throw new Error("This component must be inside a <Series /> component.");
6569
6563
  }
6570
6564
  };
6565
+ var PremountContext = createContext15({
6566
+ premountFramesRemaining: 0
6567
+ });
6571
6568
  var ENABLE_V5_BREAKING_CHANGES = false;
6569
+ var usePremounting = ({
6570
+ from,
6571
+ durationInFrames,
6572
+ premountFor,
6573
+ postmountFor,
6574
+ style,
6575
+ styleWhilePremounted,
6576
+ styleWhilePostmounted,
6577
+ hideWhilePremounted
6578
+ }) => {
6579
+ const parentPremountContext = useContext15(PremountContext);
6580
+ const frame = useCurrentFrame() - parentPremountContext.premountFramesRemaining;
6581
+ const environment = useRemotionEnvironment();
6582
+ const { fps } = useVideoConfig();
6583
+ const effectivePremountFor = ENABLE_V5_BREAKING_CHANGES ? premountFor ?? fps : premountFor ?? 0;
6584
+ const effectivePostmountFor = postmountFor ?? 0;
6585
+ const endThreshold = Math.ceil(from + durationInFrames - 1);
6586
+ const premountingActive = !environment.isRendering && frame < from && frame >= from - effectivePremountFor;
6587
+ const postmountingActive = !environment.isRendering && frame > endThreshold && frame <= endThreshold + effectivePostmountFor;
6588
+ const isPremountingOrPostmounting = premountingActive || postmountingActive;
6589
+ const freezeFrame = premountingActive ? from : postmountingActive ? from + durationInFrames - 1 : 0;
6590
+ const premountingStyle = useMemo13(() => {
6591
+ if (!isPremountingOrPostmounting) {
6592
+ return style;
6593
+ }
6594
+ return {
6595
+ ...style,
6596
+ ...hideWhilePremounted === "opacity" ? { opacity: 0 } : { display: "none" },
6597
+ pointerEvents: "none",
6598
+ ...premountingActive ? styleWhilePremounted : {},
6599
+ ...postmountingActive ? styleWhilePostmounted : {}
6600
+ };
6601
+ }, [
6602
+ isPremountingOrPostmounting,
6603
+ hideWhilePremounted,
6604
+ postmountingActive,
6605
+ premountingActive,
6606
+ style,
6607
+ styleWhilePostmounted,
6608
+ styleWhilePremounted
6609
+ ]);
6610
+ return {
6611
+ effectivePremountFor,
6612
+ effectivePostmountFor,
6613
+ premountingActive,
6614
+ postmountingActive,
6615
+ isPremountingOrPostmounting,
6616
+ freezeFrame,
6617
+ premountingStyle
6618
+ };
6619
+ };
6572
6620
  var deleteNestedKey = (obj, keysToRemove) => {
6573
6621
  for (const key of keysToRemove) {
6574
6622
  const parts = key.split(".");
@@ -8392,10 +8440,10 @@ var useMemoizedEffects = ({
8392
8440
  overrideId
8393
8441
  }) => {
8394
8442
  const previousRef = useRef5(null);
8395
- const { propStatuses } = useContext15(VisualModePropStatusesContext);
8396
- const { getEffectDragOverrides } = useContext15(VisualModeDragOverridesContext);
8443
+ const { propStatuses } = useContext16(VisualModePropStatusesContext);
8444
+ const { getEffectDragOverrides } = useContext16(VisualModeDragOverridesContext);
8397
8445
  const frame = useCurrentFrame();
8398
- const { overrideIdToNodePathMappings } = useContext15(OverrideIdsToNodePathsGettersContext);
8446
+ const { overrideIdToNodePathMappings } = useContext16(OverrideIdsToNodePathsGettersContext);
8399
8447
  const previous = previousRef.current;
8400
8448
  const nodePath = overrideId ? overrideIdToNodePathMappings[overrideId] ?? null : null;
8401
8449
  const resolved = effects.map((descriptor, index) => {
@@ -8739,9 +8787,9 @@ var withInteractivitySchema = ({
8739
8787
  ref
8740
8788
  });
8741
8789
  }
8742
- const { propStatuses } = useContext16(VisualModePropStatusesContext);
8743
- const { getDragOverrides } = useContext16(VisualModeDragOverridesContext);
8744
- const nodePathMapping = useContext16(OverrideIdsToNodePathsGettersContext);
8790
+ const { propStatuses } = useContext17(VisualModePropStatusesContext);
8791
+ const { getDragOverrides } = useContext17(VisualModeDragOverridesContext);
8792
+ const nodePathMapping = useContext17(OverrideIdsToNodePathsGettersContext);
8745
8793
  const frame = useCurrentFrame();
8746
8794
  if (props.controls) {
8747
8795
  return React14.createElement(Component, {
@@ -8768,8 +8816,8 @@ var withInteractivitySchema = ({
8768
8816
  key,
8769
8817
  props
8770
8818
  }));
8771
- const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
8772
- const controls = useMemo13(() => {
8819
+ const currentRuntimeValueDotNotation = useMemo14(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
8820
+ const controls = useMemo14(() => {
8773
8821
  return {
8774
8822
  schema: schemaWithSequenceName,
8775
8823
  currentRuntimeValueDotNotation,
@@ -8779,7 +8827,7 @@ var withInteractivitySchema = ({
8779
8827
  componentName
8780
8828
  };
8781
8829
  }, [currentRuntimeValueDotNotation, overrideId]);
8782
- const { merged: valuesDotNotation, propsToDelete } = useMemo13(() => {
8830
+ const { merged: valuesDotNotation, propsToDelete } = useMemo14(() => {
8783
8831
  return computeEffectiveSchemaValuesDotNotation({
8784
8832
  schema: schemaWithSequenceName,
8785
8833
  currentValue: currentRuntimeValueDotNotation,
@@ -8837,7 +8885,7 @@ var RegularSequenceRefForwardingFunction = ({
8837
8885
  }, ref) => {
8838
8886
  const { layout = "absolute-fill" } = other;
8839
8887
  const [id] = useState5(() => String(Math.random()));
8840
- const parentSequence = useContext17(SequenceContext);
8888
+ const parentSequence = useContext18(SequenceContext);
8841
8889
  const { rootId } = useTimelineContext();
8842
8890
  const cumulatedFrom = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
8843
8891
  const nonce = useNonce();
@@ -8888,13 +8936,13 @@ var RegularSequenceRefForwardingFunction = ({
8888
8936
  const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + effectiveRelativeFrom;
8889
8937
  const parentSequenceDuration = parentSequence ? Math.min(parentSequence.durationInFrames - effectiveRelativeFrom, durationInFrames) : durationInFrames;
8890
8938
  const actualDurationInFrames = Math.max(0, Math.min(videoConfig.durationInFrames - from, parentSequenceDuration));
8891
- const { registerSequence, unregisterSequence } = useContext17(SequenceManager);
8939
+ const { registerSequence, unregisterSequence } = useContext18(SequenceManager);
8892
8940
  const wrapperRefForOutline = useRef6(null);
8893
8941
  const refForOutline = other.layout === "none" ? passedRefForOutline ?? null : passedRefForOutline ?? wrapperRefForOutline;
8894
- const premounting = useMemo14(() => {
8942
+ const premounting = useMemo15(() => {
8895
8943
  return parentSequence?.premounting || Boolean(other._remotionInternalIsPremounting);
8896
8944
  }, [other._remotionInternalIsPremounting, parentSequence?.premounting]);
8897
- const postmounting = useMemo14(() => {
8945
+ const postmounting = useMemo15(() => {
8898
8946
  return parentSequence?.postmounting || Boolean(other._remotionInternalIsPostmounting);
8899
8947
  }, [other._remotionInternalIsPostmounting, parentSequence?.postmounting]);
8900
8948
  const currentSequenceStart = cumulatedFrom + effectiveRelativeFrom;
@@ -8902,7 +8950,7 @@ var RegularSequenceRefForwardingFunction = ({
8902
8950
  const parentFirstFrame = parentSequence ? parentSequenceStart - parentSequence.cumulatedNegativeFrom : 0;
8903
8951
  const firstFrame = Math.max(0, parentFirstFrame, currentSequenceStart);
8904
8952
  const cumulatedNegativeFrom = currentSequenceStart - firstFrame;
8905
- const contextValue = useMemo14(() => {
8953
+ const contextValue = useMemo15(() => {
8906
8954
  return {
8907
8955
  absoluteFrom,
8908
8956
  cumulatedFrom,
@@ -8933,12 +8981,12 @@ var RegularSequenceRefForwardingFunction = ({
8933
8981
  postmountDisplay,
8934
8982
  cumulatedNegativeFrom
8935
8983
  ]);
8936
- const timelineClipName = useMemo14(() => {
8984
+ const timelineClipName = useMemo15(() => {
8937
8985
  return name ?? "";
8938
8986
  }, [name]);
8939
8987
  const resolvedDocumentationLink = documentationLink ?? "https://www.remotion.dev/docs/sequence";
8940
8988
  const env = useRemotionEnvironment();
8941
- const isInsideSeries = useContext17(IsInsideSeriesContext);
8989
+ const isInsideSeries = useContext18(IsInsideSeriesContext);
8942
8990
  const inheritedStack = other?.stack ?? null;
8943
8991
  const stackRef = useRef6(null);
8944
8992
  stackRef.current = stack ?? inheritedStack;
@@ -9086,7 +9134,7 @@ var RegularSequenceRefForwardingFunction = ({
9086
9134
  ref.current = node;
9087
9135
  }
9088
9136
  }, [ref]);
9089
- const defaultStyle = useMemo14(() => {
9137
+ const defaultStyle = useMemo15(() => {
9090
9138
  return {
9091
9139
  flexDirection: undefined,
9092
9140
  ...width ? { width } : {},
@@ -9112,8 +9160,6 @@ var RegularSequenceRefForwardingFunction = ({
9112
9160
  };
9113
9161
  var RegularSequence = forwardRef3(RegularSequenceRefForwardingFunction);
9114
9162
  var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
9115
- const parentPremountContext = useContext17(PremountContext);
9116
- const frame = useCurrentFrame() - parentPremountContext.premountFramesRemaining;
9117
9163
  if (props.layout === "none") {
9118
9164
  throw new Error('`<Sequence>` with `premountFor` and `postmountFor` props does not support layout="none"');
9119
9165
  }
@@ -9127,34 +9173,30 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
9127
9173
  styleWhilePostmounted,
9128
9174
  ...otherProps
9129
9175
  } = props;
9130
- const endThreshold = Math.ceil(from + durationInFrames - 1);
9131
- const premountingActive = frame < from && frame >= from - premountFor;
9132
- const postmountingActive = frame > endThreshold && frame <= endThreshold + postmountFor;
9133
- const freezeFrame = premountingActive ? from : postmountingActive ? from + durationInFrames - 1 : 0;
9134
- const isFreezingActive = premountingActive || postmountingActive;
9135
- const style = useMemo14(() => {
9136
- return {
9137
- ...passedStyle,
9138
- opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
9139
- pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
9140
- ...premountingActive ? styleWhilePremounted : {},
9141
- ...postmountingActive ? styleWhilePostmounted : {}
9142
- };
9143
- }, [
9144
- passedStyle,
9145
- premountingActive,
9176
+ const {
9177
+ freezeFrame,
9178
+ isPremountingOrPostmounting,
9146
9179
  postmountingActive,
9147
- styleWhilePremounted,
9148
- styleWhilePostmounted
9149
- ]);
9180
+ premountingActive,
9181
+ premountingStyle
9182
+ } = usePremounting({
9183
+ from,
9184
+ durationInFrames,
9185
+ premountFor,
9186
+ postmountFor,
9187
+ style: passedStyle ?? null,
9188
+ styleWhilePremounted: styleWhilePremounted ?? null,
9189
+ styleWhilePostmounted: styleWhilePostmounted ?? null,
9190
+ hideWhilePremounted: "opacity"
9191
+ });
9150
9192
  return /* @__PURE__ */ jsx12(Freeze, {
9151
9193
  frame: freezeFrame,
9152
- active: isFreezingActive,
9194
+ active: isPremountingOrPostmounting,
9153
9195
  children: /* @__PURE__ */ jsx12(SequenceInner, {
9154
9196
  ref,
9155
9197
  from,
9156
9198
  durationInFrames,
9157
- style,
9199
+ style: premountingStyle ?? undefined,
9158
9200
  _remotionInternalPremountDisplay: premountFor,
9159
9201
  _remotionInternalPostmountDisplay: postmountFor,
9160
9202
  _remotionInternalIsPremounting: premountingActive,
@@ -9490,7 +9532,7 @@ var useEffectChainState = () => {
9490
9532
  }
9491
9533
  };
9492
9534
  }, []);
9493
- return useMemo15(() => ({
9535
+ return useMemo16(() => ({
9494
9536
  get: (width, height) => {
9495
9537
  if (!sizeRef.current || sizeRef.current.width !== width || sizeRef.current.height !== height) {
9496
9538
  if (chainStateRef.current) {
@@ -9506,7 +9548,7 @@ var useEffectChainState = () => {
9506
9548
  var CanvasRefForwardingFunction = ({ width, height, fit, className, style, effects, ...props }, ref) => {
9507
9549
  const canvasRef = useRef8(null);
9508
9550
  const chainState = useEffectChainState();
9509
- const sourceCanvas = useMemo16(() => {
9551
+ const sourceCanvas = useMemo17(() => {
9510
9552
  if (typeof document === "undefined") {
9511
9553
  return null;
9512
9554
  }
@@ -10063,7 +10105,7 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
10063
10105
  };
10064
10106
  }
10065
10107
  }, []);
10066
- const contextValue = useMemo17(() => {
10108
+ const contextValue = useMemo18(() => {
10067
10109
  return {
10068
10110
  registerRenderAsset,
10069
10111
  unregisterRenderAsset,
@@ -10077,7 +10119,7 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
10077
10119
  };
10078
10120
  var ArtifactThumbnail = Symbol("Thumbnail");
10079
10121
  var Artifact = ({ filename, content, downloadBehavior }) => {
10080
- const { registerRenderAsset, unregisterRenderAsset } = useContext18(RenderAssetManager);
10122
+ const { registerRenderAsset, unregisterRenderAsset } = useContext19(RenderAssetManager);
10081
10123
  const env = useRemotionEnvironment();
10082
10124
  const frame = useCurrentFrame();
10083
10125
  const [id] = useState8(() => {
@@ -10192,14 +10234,14 @@ var Loop = ({
10192
10234
  const iteration = Math.floor(currentFrame / durationInFrames);
10193
10235
  const start = iteration * durationInFrames;
10194
10236
  const from = Math.min(start, maxFrame);
10195
- const loopDisplay = useMemo18(() => {
10237
+ const loopDisplay = useMemo19(() => {
10196
10238
  return {
10197
10239
  numberOfTimes: Math.min(compDuration / durationInFrames, times),
10198
10240
  startOffset: -from,
10199
10241
  durationInFrames
10200
10242
  };
10201
10243
  }, [compDuration, durationInFrames, from, times]);
10202
- const loopContext = useMemo18(() => {
10244
+ const loopContext = useMemo19(() => {
10203
10245
  return {
10204
10246
  iteration: Math.floor(currentFrame / durationInFrames),
10205
10247
  durationInFrames
@@ -10268,7 +10310,7 @@ var getSrcWithoutHash = (src) => {
10268
10310
  return src.slice(0, hashIndex);
10269
10311
  };
10270
10312
  var usePreload = (src) => {
10271
- const preloads2 = useContext19(PreloadContext);
10313
+ const preloads2 = useContext20(PreloadContext);
10272
10314
  const hashFragmentIndex = removeAndGetHashFragment(src);
10273
10315
  const withoutHashFragment = getSrcWithoutHash(src);
10274
10316
  if (!preloads2[withoutHashFragment]) {
@@ -10571,7 +10613,7 @@ var DurationsContext = createContext20({
10571
10613
  });
10572
10614
  var DurationsContextProvider = ({ children }) => {
10573
10615
  const [durations, setDurations] = useReducer(durationReducer, {});
10574
- const value = useMemo19(() => {
10616
+ const value = useMemo20(() => {
10575
10617
  return {
10576
10618
  durations,
10577
10619
  setDurations
@@ -10710,7 +10752,7 @@ var useSingletonAudioContext = ({
10710
10752
  if (sampleRate !== initialSampleRate.current) {
10711
10753
  throw new Error(`Changing the AudioContext sample rate dynamically is not supported. The sample rate was initialized with ${initialSampleRate.current} Hz, but ${sampleRate} Hz was passed later.`);
10712
10754
  }
10713
- const context = useMemo20(() => {
10755
+ const context = useMemo21(() => {
10714
10756
  if (env.isRendering) {
10715
10757
  return null;
10716
10758
  }
@@ -10844,9 +10886,9 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled, pr
10844
10886
  });
10845
10887
  const audioContextIsPlayingEventually = useRef12(false);
10846
10888
  const isResuming = useRef12(null);
10847
- const audioSyncAnchor = useMemo21(() => ({ value: 0 }), []);
10889
+ const audioSyncAnchor = useMemo22(() => ({ value: 0 }), []);
10848
10890
  const audioSyncAnchorListeners = useRef12([]);
10849
- const audioSyncAnchorEmitter = useMemo21(() => {
10891
+ const audioSyncAnchorEmitter = useMemo22(() => {
10850
10892
  return {
10851
10893
  dispatch: (event) => {
10852
10894
  audioSyncAnchorListeners.current.forEach((l) => l(event));
@@ -10866,7 +10908,7 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled, pr
10866
10908
  const unscheduleAudioNode = useCallback9((node) => {
10867
10909
  nodesToResume.current.delete(node);
10868
10910
  }, []);
10869
- const scheduleAudioNode = useMemo21(() => {
10911
+ const scheduleAudioNode = useMemo22(() => {
10870
10912
  return ({
10871
10913
  node,
10872
10914
  mediaTimestamp,
@@ -10958,7 +11000,7 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled, pr
10958
11000
  audioContextIsPlayingEventually.current = false;
10959
11001
  return ctxAndGain.suspend();
10960
11002
  }, [ctxAndGain]);
10961
- const audioContextValue = useMemo21(() => {
11003
+ const audioContextValue = useMemo22(() => {
10962
11004
  return {
10963
11005
  audioContext: ctxAndGain?.audioContext ?? null,
10964
11006
  getAudioContextState: () => ctxAndGain?.getState() ?? null,
@@ -10995,10 +11037,10 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
10995
11037
  const logLevel = useLogLevel();
10996
11038
  const mountTime = useMountTime();
10997
11039
  const env = useRemotionEnvironment();
10998
- const audioCtx = useContext20(SharedAudioContext);
11040
+ const audioCtx = useContext21(SharedAudioContext);
10999
11041
  const audioContext = audioCtx?.audioContext ?? null;
11000
11042
  const resume = audioCtx?.resume;
11001
- const refs = useMemo21(() => {
11043
+ const refs = useMemo22(() => {
11002
11044
  return new Array(numberOfAudioTags).fill(true).map(() => {
11003
11045
  const ref = createRef2();
11004
11046
  return {
@@ -11137,7 +11179,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
11137
11179
  });
11138
11180
  resume?.();
11139
11181
  }, [logLevel, mountTime, refs, env.isPlayer, resume]);
11140
- const audioTagsValue = useMemo21(() => {
11182
+ const audioTagsValue = useMemo22(() => {
11141
11183
  return {
11142
11184
  registerAudio,
11143
11185
  unregisterAudio,
@@ -11152,7 +11194,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
11152
11194
  unregisterAudio,
11153
11195
  updateAudio
11154
11196
  ]);
11155
- const sharedAudioTagElements = useMemo21(() => {
11197
+ const sharedAudioTagElements = useMemo22(() => {
11156
11198
  return refs.map(({ id, ref }) => {
11157
11199
  return /* @__PURE__ */ jsx19("audio", {
11158
11200
  ref,
@@ -11175,8 +11217,8 @@ var useSharedAudio = ({
11175
11217
  premounting,
11176
11218
  postmounting
11177
11219
  }) => {
11178
- const audioCtx = useContext20(SharedAudioContext);
11179
- const tagsCtx = useContext20(SharedAudioTagsContext);
11220
+ const audioCtx = useContext21(SharedAudioContext);
11221
+ const tagsCtx = useContext21(SharedAudioTagsContext);
11180
11222
  const [elem] = useState10(() => {
11181
11223
  if (tagsCtx && tagsCtx.numberOfAudioTags > 0) {
11182
11224
  return tagsCtx.registerAudio({ aud, audioId, premounting, postmounting });
@@ -11355,7 +11397,7 @@ var useVolume = ({
11355
11397
  const audioStuffRef = useRef14(null);
11356
11398
  const currentVolumeRef = useRef14(volume);
11357
11399
  currentVolumeRef.current = volume;
11358
- const sharedAudioContext = useContext21(SharedAudioContext);
11400
+ const sharedAudioContext = useContext22(SharedAudioContext);
11359
11401
  if (!sharedAudioContext) {
11360
11402
  throw new Error("useAmplification must be used within a SharedAudioContext");
11361
11403
  }
@@ -11420,7 +11462,7 @@ var useVolume = ({
11420
11462
  return audioStuffRef;
11421
11463
  };
11422
11464
  var useMediaStartsAt = () => {
11423
- const parentSequence = useContext22(SequenceContext);
11465
+ const parentSequence = useContext23(SequenceContext);
11424
11466
  return parentSequence?.cumulatedNegativeFrom ?? 0;
11425
11467
  };
11426
11468
  var useFrameForVolumeProp = (behavior) => {
@@ -11509,7 +11551,7 @@ var useBasicMediaInTimeline = ({
11509
11551
  if (!src) {
11510
11552
  throw new Error("No src passed");
11511
11553
  }
11512
- const parentSequence = useContext23(SequenceContext);
11554
+ const parentSequence = useContext24(SequenceContext);
11513
11555
  const [initialVolume] = useState11(() => volume);
11514
11556
  const duration = getTimelineDuration({
11515
11557
  compositionDurationInFrames: sequenceDurationInFrames,
@@ -11519,7 +11561,7 @@ var useBasicMediaInTimeline = ({
11519
11561
  parentSequenceDurationInFrames: parentSequence?.durationInFrames ?? null,
11520
11562
  loop
11521
11563
  });
11522
- const volumes = useMemo22(() => {
11564
+ const volumes = useMemo23(() => {
11523
11565
  if (typeof volume === "number") {
11524
11566
  return volume;
11525
11567
  }
@@ -11540,7 +11582,7 @@ var useBasicMediaInTimeline = ({
11540
11582
  const nonce = useNonce();
11541
11583
  const { rootId } = useTimelineContext();
11542
11584
  const startMediaFrom = 0 - mediaStartsAt + (trimBefore ?? 0);
11543
- const memoizedResult = useMemo22(() => {
11585
+ const memoizedResult = useMemo23(() => {
11544
11586
  return {
11545
11587
  volumes,
11546
11588
  duration,
@@ -11581,9 +11623,9 @@ var useMediaInTimeline = ({
11581
11623
  documentationLink,
11582
11624
  refForOutline
11583
11625
  }) => {
11584
- const parentSequence = useContext23(SequenceContext);
11626
+ const parentSequence = useContext24(SequenceContext);
11585
11627
  const startsAt = useMediaStartsAt();
11586
- const { registerSequence, unregisterSequence } = useContext23(SequenceManager);
11628
+ const { registerSequence, unregisterSequence } = useContext24(SequenceManager);
11587
11629
  const { durationInFrames } = useVideoConfig();
11588
11630
  const mediaStartsAt = useMediaStartsAt();
11589
11631
  const { volumes, duration, doesVolumeChange, nonce, rootId, finalDisplayName } = useBasicMediaInTimeline({
@@ -11748,13 +11790,13 @@ var useBufferManager = (logLevel, mountTime) => {
11748
11790
  }
11749
11791
  }, [blocks]);
11750
11792
  }
11751
- return useMemo23(() => {
11793
+ return useMemo24(() => {
11752
11794
  return { addBlock, listenForBuffering, listenForResume, buffering };
11753
11795
  }, [addBlock, buffering, listenForBuffering, listenForResume]);
11754
11796
  };
11755
11797
  var BufferingContextReact = React21.createContext(null);
11756
11798
  var BufferingProvider = ({ children }) => {
11757
- const { logLevel, mountTime } = useContext24(LogLevelContext);
11799
+ const { logLevel, mountTime } = useContext25(LogLevelContext);
11758
11800
  const bufferManager = useBufferManager(logLevel ?? "info", mountTime);
11759
11801
  return /* @__PURE__ */ jsx20(BufferingContextReact.Provider, {
11760
11802
  value: bufferManager,
@@ -11780,10 +11822,10 @@ var useIsPlayerBuffering = (bufferManager) => {
11780
11822
  return isBuffering;
11781
11823
  };
11782
11824
  var useBufferState = () => {
11783
- const buffer = useContext25(BufferingContextReact);
11825
+ const buffer = useContext26(BufferingContextReact);
11784
11826
  const logLevel = useLogLevel();
11785
11827
  const addBlock = buffer ? buffer.addBlock : null;
11786
- return useMemo24(() => ({
11828
+ return useMemo25(() => ({
11787
11829
  delayPlayback: () => {
11788
11830
  if (!addBlock) {
11789
11831
  throw new Error("Tried to enable the buffering state, but a Remotion context was not found. This API can only be called in a component that was passed to the Remotion Player or a <Composition>. Or you might have experienced a version mismatch - run `npx remotion versions` and ensure all packages have the same version. This error is thrown by the buffer state https://remotion.dev/docs/player/buffer-state");
@@ -11891,7 +11933,7 @@ var useBufferUntilFirstFrame = ({
11891
11933
  onVariableFpsVideoDetected,
11892
11934
  pauseWhenBuffering
11893
11935
  ]);
11894
- return useMemo25(() => {
11936
+ return useMemo26(() => {
11895
11937
  return {
11896
11938
  isBuffering: () => bufferingRef.current,
11897
11939
  bufferUntilFirstFrame
@@ -12265,7 +12307,7 @@ var useMediaPlayback = ({
12265
12307
  const frame = useCurrentFrame();
12266
12308
  const absoluteFrame = useTimelinePosition();
12267
12309
  const [playing] = usePlayingState();
12268
- const buffering = useContext26(BufferingContextReact);
12310
+ const buffering = useContext27(BufferingContextReact);
12269
12311
  const { fps } = useVideoConfig();
12270
12312
  const mediaStartsAt = useMediaStartsAt();
12271
12313
  const lastSeekDueToShift = useRef18(null);
@@ -12560,16 +12602,16 @@ var SetMediaVolumeContext = createContext22({
12560
12602
  }
12561
12603
  });
12562
12604
  var useMediaVolumeState = () => {
12563
- const { mediaVolume } = useContext27(MediaVolumeContext);
12564
- const { setMediaVolume } = useContext27(SetMediaVolumeContext);
12565
- return useMemo26(() => {
12605
+ const { mediaVolume } = useContext28(MediaVolumeContext);
12606
+ const { setMediaVolume } = useContext28(SetMediaVolumeContext);
12607
+ return useMemo27(() => {
12566
12608
  return [mediaVolume, setMediaVolume];
12567
12609
  }, [mediaVolume, setMediaVolume]);
12568
12610
  };
12569
12611
  var usePlayerMutedState = () => {
12570
- const { playerMuted } = useContext27(MediaVolumeContext);
12571
- const { setPlayerMuted } = useContext27(SetMediaVolumeContext);
12572
- return useMemo26(() => {
12612
+ const { playerMuted } = useContext28(MediaVolumeContext);
12613
+ const { setPlayerMuted } = useContext28(SetMediaVolumeContext);
12614
+ return useMemo27(() => {
12573
12615
  return [playerMuted, setPlayerMuted];
12574
12616
  }, [playerMuted, setPlayerMuted]);
12575
12617
  };
@@ -12623,7 +12665,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
12623
12665
  throw new TypeError("No 'src' was passed to <Html5Audio>.");
12624
12666
  }
12625
12667
  const preloadedSrc = usePreload(src);
12626
- const sequenceContext = useContext28(SequenceContext);
12668
+ const sequenceContext = useContext29(SequenceContext);
12627
12669
  const [timelineId] = useState14(() => String(Math.random()));
12628
12670
  const userPreferredVolume = evaluateVolume({
12629
12671
  frame: volumePropFrame,
@@ -12636,7 +12678,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
12636
12678
  requestsVideoFrame: false,
12637
12679
  isClientSideRendering: false
12638
12680
  });
12639
- const propsToPass = useMemo27(() => {
12681
+ const propsToPass = useMemo28(() => {
12640
12682
  return {
12641
12683
  muted: muted || playerMuted || userPreferredVolume <= 0,
12642
12684
  src: preloadedSrc,
@@ -12653,7 +12695,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
12653
12695
  userPreferredVolume,
12654
12696
  crossOriginValue
12655
12697
  ]);
12656
- const id = useMemo27(() => `audio-${random(src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}-muted:${props.muted}-loop:${props.loop}`, [
12698
+ const id = useMemo28(() => `audio-${random(src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}-muted:${props.muted}-loop:${props.loop}`, [
12657
12699
  src,
12658
12700
  sequenceContext?.relativeFrom,
12659
12701
  sequenceContext?.cumulatedFrom,
@@ -12783,10 +12825,10 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
12783
12825
  const absoluteFrame = useTimelinePosition();
12784
12826
  const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
12785
12827
  const frame = useCurrentFrame();
12786
- const sequenceContext = useContext29(SequenceContext);
12787
- const { registerRenderAsset, unregisterRenderAsset } = useContext29(RenderAssetManager);
12828
+ const sequenceContext = useContext30(SequenceContext);
12829
+ const { registerRenderAsset, unregisterRenderAsset } = useContext30(RenderAssetManager);
12788
12830
  const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
12789
- const id = useMemo28(() => `audio-${random(props.src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}`, [
12831
+ const id = useMemo29(() => `audio-${random(props.src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}`, [
12790
12832
  props.src,
12791
12833
  sequenceContext?.relativeFrom,
12792
12834
  sequenceContext?.cumulatedFrom,
@@ -12893,7 +12935,7 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
12893
12935
  };
12894
12936
  var AudioForRendering = forwardRef6(AudioForRenderingRefForwardingFunction);
12895
12937
  var AudioRefForwardingFunction = (props, ref) => {
12896
- const audioTagsContext = useContext30(SharedAudioTagsContext);
12938
+ const audioTagsContext = useContext31(SharedAudioTagsContext);
12897
12939
  const propsWithFreeze = props;
12898
12940
  const {
12899
12941
  startFrom,
@@ -12917,7 +12959,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12917
12959
  if (typeof freeze !== "undefined") {
12918
12960
  throw new TypeError('The "freeze" prop is not supported on <Html5Audio />. Use <Sequence freeze={...}> to freeze media playback.');
12919
12961
  }
12920
- const { durations, setDurations } = useContext30(DurationsContext);
12962
+ const { durations, setDurations } = useContext31(DurationsContext);
12921
12963
  if (typeof props.src !== "string") {
12922
12964
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
12923
12965
  }
@@ -13079,7 +13121,7 @@ var SolidInner = ({
13079
13121
  effects,
13080
13122
  overrideId: overrideId ?? null
13081
13123
  });
13082
- const sourceCanvas = useMemo29(() => {
13124
+ const sourceCanvas = useMemo30(() => {
13083
13125
  if (typeof document === "undefined") {
13084
13126
  return null;
13085
13127
  }
@@ -13147,7 +13189,7 @@ var SolidInner = ({
13147
13189
  cancelRender2,
13148
13190
  memoizedEffects
13149
13191
  ]);
13150
- const canvasStyle = useMemo29(() => {
13192
+ const canvasStyle = useMemo30(() => {
13151
13193
  return {
13152
13194
  width,
13153
13195
  height,
@@ -13296,12 +13338,12 @@ var HtmlInCanvasContent = forwardRef9(({
13296
13338
  controls,
13297
13339
  style
13298
13340
  }, ref) => {
13299
- const ancestor = useContext31(HtmlInCanvasAncestorContext);
13341
+ const ancestor = useContext32(HtmlInCanvasAncestorContext);
13300
13342
  assertHtmlInCanvasDimensions(width, height);
13301
13343
  const resolvedPixelDensity = resolveHtmlInCanvasPixelDensity(pixelDensity);
13302
13344
  const canvasWidth = Math.ceil(width * resolvedPixelDensity);
13303
13345
  const canvasHeight = Math.ceil(height * resolvedPixelDensity);
13304
- const { continueRender: continueRender2, cancelRender: cancelRender2 } = useDelayRender();
13346
+ const { delayRender: delayRender2, continueRender: continueRender2, cancelRender: cancelRender2 } = useDelayRender();
13305
13347
  const { isClientSideRendering, isRendering } = useRemotionEnvironment();
13306
13348
  const canRetryMissingPaintRecord = !isRendering || isClientSideRendering;
13307
13349
  const usesDirectLayoutCanvas = onPaint === undefined && onInit === undefined;
@@ -13355,7 +13397,7 @@ var HtmlInCanvasContent = forwardRef9(({
13355
13397
  if (!placeholderCanvas) {
13356
13398
  throw new Error("Canvas not found");
13357
13399
  }
13358
- const handle = delayRender("onPaint");
13400
+ const handle = delayRender2("onPaint");
13359
13401
  if (!initializedRef.current) {
13360
13402
  const currentOnInit = onInitRef.current;
13361
13403
  if (!currentOnInit) {
@@ -13456,6 +13498,7 @@ var HtmlInCanvasContent = forwardRef9(({
13456
13498
  chainState,
13457
13499
  continueRender2,
13458
13500
  cancelRender2,
13501
+ delayRender2,
13459
13502
  resolvedPixelDensity,
13460
13503
  canRetryMissingPaintRecord
13461
13504
  ]);
@@ -13507,28 +13550,28 @@ var HtmlInCanvasContent = forwardRef9(({
13507
13550
  if (!canvas) {
13508
13551
  return;
13509
13552
  }
13510
- const handle = delayRender("waiting for first paint after canvas resize");
13553
+ const handle = delayRender2("waiting for first paint after canvas resize");
13511
13554
  canvas.addEventListener("paint", () => {
13512
13555
  continueRender2(handle);
13513
13556
  }, { once: true });
13514
13557
  return () => {
13515
13558
  continueRender2(handle);
13516
13559
  };
13517
- }, [width, height, continueRender2, canvasSizeKey]);
13518
- const innerStyle = useMemo30(() => {
13560
+ }, [width, height, continueRender2, delayRender2, canvasSizeKey]);
13561
+ const innerStyle = useMemo31(() => {
13519
13562
  return {
13520
13563
  width,
13521
13564
  height
13522
13565
  };
13523
13566
  }, [width, height]);
13524
- const canvasStyle = useMemo30(() => {
13567
+ const canvasStyle = useMemo31(() => {
13525
13568
  return {
13526
13569
  width,
13527
13570
  height,
13528
13571
  ...style ?? {}
13529
13572
  };
13530
13573
  }, [height, style, width]);
13531
- const ancestorValue = useMemo30(() => {
13574
+ const ancestorValue = useMemo31(() => {
13532
13575
  return {
13533
13576
  requestParentPaint: () => {
13534
13577
  canvas2dRef.current?.requestPaint?.();
@@ -13742,7 +13785,7 @@ var CanvasImageContent = forwardRef10(({
13742
13785
  effects,
13743
13786
  overrideId: controls?.overrideId ?? null
13744
13787
  });
13745
- const sequenceContext = useContext32(SequenceContext);
13788
+ const sequenceContext = useContext33(SequenceContext);
13746
13789
  const pendingLoadDelayRef = useRef23(null);
13747
13790
  const [isLoadPending, setIsLoadPending] = useState16(false);
13748
13791
  const isPremounting = Boolean(sequenceContext?.premounting);
@@ -13759,7 +13802,7 @@ var CanvasImageContent = forwardRef10(({
13759
13802
  continueRender2(pending.handle);
13760
13803
  pendingLoadDelayRef.current = null;
13761
13804
  }, [continueRender2]);
13762
- const sourceCanvas = useMemo31(() => {
13805
+ const sourceCanvas = useMemo32(() => {
13763
13806
  if (typeof document === "undefined") {
13764
13807
  return null;
13765
13808
  }
@@ -14081,7 +14124,7 @@ var ImgContent = ({
14081
14124
  const imageRef = useRef24(null);
14082
14125
  const errors = useRef24({});
14083
14126
  const { delayPlayback } = useBufferState();
14084
- const sequenceContext = useContext33(SequenceContext);
14127
+ const sequenceContext = useContext34(SequenceContext);
14085
14128
  const [isLoading, setIsLoading] = useState18(false);
14086
14129
  const _propsValid = true;
14087
14130
  if (!_propsValid) {
@@ -14430,7 +14473,10 @@ var makeRemotionComponentIdentity = ({
14430
14473
  };
14431
14474
  var interactiveElementSchema = {
14432
14475
  ...baseSchema,
14433
- ...transformSchema,
14476
+ ...transformSchema
14477
+ };
14478
+ var interactiveTextElementSchema = {
14479
+ ...interactiveElementSchema,
14434
14480
  ...textSchema,
14435
14481
  ...textContentSchema
14436
14482
  };
@@ -14446,7 +14492,7 @@ var withSchema = (options) => {
14446
14492
  addSequenceStackTraces(Wrapped);
14447
14493
  return Wrapped;
14448
14494
  };
14449
- var makeInteractiveElement = (tag, displayName) => {
14495
+ var makeInteractiveElement = (tag, displayName, schema) => {
14450
14496
  const Inner = forwardRef12((propsWithControls, ref) => {
14451
14497
  const {
14452
14498
  durationInFrames,
@@ -14492,12 +14538,18 @@ var makeInteractiveElement = (tag, displayName) => {
14492
14538
  packageName: "remotion",
14493
14539
  componentName: displayName.slice(1, -1)
14494
14540
  }),
14495
- schema: interactiveElementSchema,
14541
+ schema,
14496
14542
  supportsEffects: false
14497
14543
  });
14498
14544
  Wrapped.displayName = displayName;
14499
14545
  return Wrapped;
14500
14546
  };
14547
+ var makeInteractiveTextElement = (tag, displayName) => {
14548
+ return makeInteractiveElement(tag, displayName, interactiveTextElementSchema);
14549
+ };
14550
+ var makeInteractiveNonTextElement = (tag, displayName) => {
14551
+ return makeInteractiveElement(tag, displayName, interactiveElementSchema);
14552
+ };
14501
14553
  var Interactive = {
14502
14554
  baseSchema,
14503
14555
  transformSchema,
@@ -14506,41 +14558,41 @@ var Interactive = {
14506
14558
  sequenceSchema,
14507
14559
  withSchema,
14508
14560
  _internalMakeRemotionComponentIdentity: makeRemotionComponentIdentity,
14509
- A: makeInteractiveElement("a", "<Interactive.A>"),
14510
- Article: makeInteractiveElement("article", "<Interactive.Article>"),
14511
- Aside: makeInteractiveElement("aside", "<Interactive.Aside>"),
14512
- Button: makeInteractiveElement("button", "<Interactive.Button>"),
14513
- Circle: makeInteractiveElement("circle", "<Interactive.Circle>"),
14514
- Code: makeInteractiveElement("code", "<Interactive.Code>"),
14515
- Div: makeInteractiveElement("div", "<Interactive.Div>"),
14516
- Ellipse: makeInteractiveElement("ellipse", "<Interactive.Ellipse>"),
14517
- Em: makeInteractiveElement("em", "<Interactive.Em>"),
14518
- Footer: makeInteractiveElement("footer", "<Interactive.Footer>"),
14519
- G: makeInteractiveElement("g", "<Interactive.G>"),
14520
- H1: makeInteractiveElement("h1", "<Interactive.H1>"),
14521
- H2: makeInteractiveElement("h2", "<Interactive.H2>"),
14522
- H3: makeInteractiveElement("h3", "<Interactive.H3>"),
14523
- H4: makeInteractiveElement("h4", "<Interactive.H4>"),
14524
- H5: makeInteractiveElement("h5", "<Interactive.H5>"),
14525
- H6: makeInteractiveElement("h6", "<Interactive.H6>"),
14526
- Header: makeInteractiveElement("header", "<Interactive.Header>"),
14527
- Label: makeInteractiveElement("label", "<Interactive.Label>"),
14528
- Li: makeInteractiveElement("li", "<Interactive.Li>"),
14529
- Line: makeInteractiveElement("line", "<Interactive.Line>"),
14530
- Main: makeInteractiveElement("main", "<Interactive.Main>"),
14531
- Nav: makeInteractiveElement("nav", "<Interactive.Nav>"),
14532
- Ol: makeInteractiveElement("ol", "<Interactive.Ol>"),
14533
- P: makeInteractiveElement("p", "<Interactive.P>"),
14534
- Path: makeInteractiveElement("path", "<Interactive.Path>"),
14535
- Pre: makeInteractiveElement("pre", "<Interactive.Pre>"),
14536
- Rect: makeInteractiveElement("rect", "<Interactive.Rect>"),
14537
- Section: makeInteractiveElement("section", "<Interactive.Section>"),
14538
- Small: makeInteractiveElement("small", "<Interactive.Small>"),
14539
- Span: makeInteractiveElement("span", "<Interactive.Span>"),
14540
- Strong: makeInteractiveElement("strong", "<Interactive.Strong>"),
14541
- Svg: makeInteractiveElement("svg", "<Interactive.Svg>"),
14542
- Text: makeInteractiveElement("text", "<Interactive.Text>"),
14543
- Ul: makeInteractiveElement("ul", "<Interactive.Ul>")
14561
+ A: makeInteractiveTextElement("a", "<Interactive.A>"),
14562
+ Article: makeInteractiveTextElement("article", "<Interactive.Article>"),
14563
+ Aside: makeInteractiveTextElement("aside", "<Interactive.Aside>"),
14564
+ Button: makeInteractiveTextElement("button", "<Interactive.Button>"),
14565
+ Circle: makeInteractiveNonTextElement("circle", "<Interactive.Circle>"),
14566
+ Code: makeInteractiveTextElement("code", "<Interactive.Code>"),
14567
+ Div: makeInteractiveTextElement("div", "<Interactive.Div>"),
14568
+ Ellipse: makeInteractiveNonTextElement("ellipse", "<Interactive.Ellipse>"),
14569
+ Em: makeInteractiveTextElement("em", "<Interactive.Em>"),
14570
+ Footer: makeInteractiveTextElement("footer", "<Interactive.Footer>"),
14571
+ G: makeInteractiveNonTextElement("g", "<Interactive.G>"),
14572
+ H1: makeInteractiveTextElement("h1", "<Interactive.H1>"),
14573
+ H2: makeInteractiveTextElement("h2", "<Interactive.H2>"),
14574
+ H3: makeInteractiveTextElement("h3", "<Interactive.H3>"),
14575
+ H4: makeInteractiveTextElement("h4", "<Interactive.H4>"),
14576
+ H5: makeInteractiveTextElement("h5", "<Interactive.H5>"),
14577
+ H6: makeInteractiveTextElement("h6", "<Interactive.H6>"),
14578
+ Header: makeInteractiveTextElement("header", "<Interactive.Header>"),
14579
+ Label: makeInteractiveTextElement("label", "<Interactive.Label>"),
14580
+ Li: makeInteractiveTextElement("li", "<Interactive.Li>"),
14581
+ Line: makeInteractiveNonTextElement("line", "<Interactive.Line>"),
14582
+ Main: makeInteractiveTextElement("main", "<Interactive.Main>"),
14583
+ Nav: makeInteractiveTextElement("nav", "<Interactive.Nav>"),
14584
+ Ol: makeInteractiveTextElement("ol", "<Interactive.Ol>"),
14585
+ P: makeInteractiveTextElement("p", "<Interactive.P>"),
14586
+ Path: makeInteractiveNonTextElement("path", "<Interactive.Path>"),
14587
+ Pre: makeInteractiveTextElement("pre", "<Interactive.Pre>"),
14588
+ Rect: makeInteractiveNonTextElement("rect", "<Interactive.Rect>"),
14589
+ Section: makeInteractiveTextElement("section", "<Interactive.Section>"),
14590
+ Small: makeInteractiveTextElement("small", "<Interactive.Small>"),
14591
+ Span: makeInteractiveTextElement("span", "<Interactive.Span>"),
14592
+ Strong: makeInteractiveTextElement("strong", "<Interactive.Strong>"),
14593
+ Svg: makeInteractiveNonTextElement("svg", "<Interactive.Svg>"),
14594
+ Text: makeInteractiveTextElement("text", "<Interactive.Text>"),
14595
+ Ul: makeInteractiveTextElement("ul", "<Interactive.Ul>")
14544
14596
  };
14545
14597
  var compositionsRef = React31.createRef();
14546
14598
  var CompositionManagerProvider = ({
@@ -14597,7 +14649,7 @@ var CompositionManagerProvider = ({
14597
14649
  getCompositions: () => currentcompositionsRef.current
14598
14650
  };
14599
14651
  }, []);
14600
- const compositionManagerSetters = useMemo32(() => {
14652
+ const compositionManagerSetters = useMemo33(() => {
14601
14653
  return {
14602
14654
  registerComposition,
14603
14655
  unregisterComposition,
@@ -14613,7 +14665,7 @@ var CompositionManagerProvider = ({
14613
14665
  unregisterFolder,
14614
14666
  onlyRenderComposition
14615
14667
  ]);
14616
- const compositionManagerContextValue = useMemo32(() => {
14668
+ const compositionManagerContextValue = useMemo33(() => {
14617
14669
  return {
14618
14670
  compositions,
14619
14671
  folders,
@@ -14711,7 +14763,7 @@ var waitForRoot = (fn) => {
14711
14763
  };
14712
14764
  var MediaEnabledContext = createContext24(null);
14713
14765
  var useVideoEnabled = () => {
14714
- const context = useContext34(MediaEnabledContext);
14766
+ const context = useContext35(MediaEnabledContext);
14715
14767
  if (!context) {
14716
14768
  return window.remotion_videoEnabled;
14717
14769
  }
@@ -14721,7 +14773,7 @@ var useVideoEnabled = () => {
14721
14773
  return context.videoEnabled;
14722
14774
  };
14723
14775
  var useAudioEnabled = () => {
14724
- const context = useContext34(MediaEnabledContext);
14776
+ const context = useContext35(MediaEnabledContext);
14725
14777
  if (!context) {
14726
14778
  return window.remotion_audioEnabled;
14727
14779
  }
@@ -14735,7 +14787,7 @@ var MediaEnabledProvider = ({
14735
14787
  videoEnabled,
14736
14788
  audioEnabled
14737
14789
  }) => {
14738
- const value = useMemo33(() => ({ videoEnabled, audioEnabled }), [videoEnabled, audioEnabled]);
14790
+ const value = useMemo34(() => ({ videoEnabled, audioEnabled }), [videoEnabled, audioEnabled]);
14739
14791
  return /* @__PURE__ */ jsx31(MediaEnabledContext.Provider, {
14740
14792
  value,
14741
14793
  children
@@ -14751,13 +14803,13 @@ var RemotionRootContexts = ({
14751
14803
  audioEnabled,
14752
14804
  frameState
14753
14805
  }) => {
14754
- const nonceContext = useMemo34(() => {
14806
+ const nonceContext = useMemo35(() => {
14755
14807
  let counter = 0;
14756
14808
  return {
14757
14809
  getNonce: () => counter++
14758
14810
  };
14759
14811
  }, []);
14760
- const logging = useMemo34(() => {
14812
+ const logging = useMemo35(() => {
14761
14813
  return { logLevel, mountTime: Date.now() };
14762
14814
  }, [logLevel]);
14763
14815
  return /* @__PURE__ */ jsx322(LogLevelContext.Provider, {
@@ -15058,13 +15110,13 @@ var OffthreadVideoForRendering = ({
15058
15110
  const frame = useCurrentFrame();
15059
15111
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior);
15060
15112
  const videoConfig = useUnsafeVideoConfig();
15061
- const sequenceContext = useContext36(SequenceContext);
15113
+ const sequenceContext = useContext37(SequenceContext);
15062
15114
  const mediaStartsAt = useMediaStartsAt();
15063
- const { registerRenderAsset, unregisterRenderAsset } = useContext36(RenderAssetManager);
15115
+ const { registerRenderAsset, unregisterRenderAsset } = useContext37(RenderAssetManager);
15064
15116
  if (!src) {
15065
15117
  throw new TypeError("No `src` was passed to <OffthreadVideo>.");
15066
15118
  }
15067
- const id = useMemo35(() => `offthreadvideo-${random(src)}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
15119
+ const id = useMemo36(() => `offthreadvideo-${random(src)}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
15068
15120
  src,
15069
15121
  sequenceContext?.cumulatedFrom,
15070
15122
  sequenceContext?.relativeFrom,
@@ -15119,14 +15171,14 @@ var OffthreadVideoForRendering = ({
15119
15171
  sequenceContext?.cumulatedNegativeFrom,
15120
15172
  audioStreamIndex
15121
15173
  ]);
15122
- const currentTime = useMemo35(() => {
15174
+ const currentTime = useMemo36(() => {
15123
15175
  return getExpectedMediaFrameUncorrected({
15124
15176
  frame,
15125
15177
  playbackRate: playbackRate || 1,
15126
15178
  startFrom: -mediaStartsAt
15127
15179
  }) / videoConfig.fps;
15128
15180
  }, [frame, mediaStartsAt, playbackRate, videoConfig.fps]);
15129
- const actualSrc = useMemo35(() => {
15181
+ const actualSrc = useMemo36(() => {
15130
15182
  return getOffthreadVideoSource({
15131
15183
  src,
15132
15184
  currentTime,
@@ -15214,7 +15266,7 @@ var OffthreadVideoForRendering = ({
15214
15266
  cancelRender("Failed to load image with src " + imageSrc);
15215
15267
  }
15216
15268
  }, [imageSrc, onError]);
15217
- const className = useMemo35(() => {
15269
+ const className = useMemo36(() => {
15218
15270
  return [OBJECTFIT_CONTAIN_CLASS_NAME, props2.className].filter(truthy).join(" ");
15219
15271
  }, [props2.className]);
15220
15272
  const onImageFrame = useCallback22((img) => {
@@ -15278,12 +15330,12 @@ class MediaPlaybackError extends Error {
15278
15330
  }
15279
15331
  }
15280
15332
  var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
15281
- const context = useContext37(SharedAudioContext);
15333
+ const context = useContext38(SharedAudioContext);
15282
15334
  if (!context) {
15283
15335
  throw new Error("SharedAudioContext not found");
15284
15336
  }
15285
15337
  const videoRef = useRef27(null);
15286
- const sharedSource = useMemo36(() => {
15338
+ const sharedSource = useMemo37(() => {
15287
15339
  if (!context.audioContext) {
15288
15340
  return null;
15289
15341
  }
@@ -15335,7 +15387,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
15335
15387
  }
15336
15388
  const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
15337
15389
  const { fps, durationInFrames } = useVideoConfig();
15338
- const parentSequence = useContext37(SequenceContext);
15390
+ const parentSequence = useContext38(SequenceContext);
15339
15391
  const logLevel = useLogLevel();
15340
15392
  const mountTime = useMountTime();
15341
15393
  const [timelineId] = useState21(() => String(Math.random()));
@@ -15486,7 +15538,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
15486
15538
  current.preload = "auto";
15487
15539
  }
15488
15540
  }, []);
15489
- const actualStyle = useMemo36(() => {
15541
+ const actualStyle = useMemo37(() => {
15490
15542
  return {
15491
15543
  ...style
15492
15544
  };
@@ -15682,7 +15734,7 @@ function useRemotionContexts() {
15682
15734
  const visualModePropStatusesRefContext = React40.useContext(VisualModePropStatusesRefContext);
15683
15735
  const bufferManagerContext = React40.useContext(BufferingContextReact);
15684
15736
  const logLevelContext = React40.useContext(LogLevelContext);
15685
- return useMemo37(() => ({
15737
+ return useMemo38(() => ({
15686
15738
  compositionManagerCtx,
15687
15739
  timelineContext,
15688
15740
  setTimelineContext,
@@ -15793,6 +15845,7 @@ var Internals = {
15793
15845
  textSchema,
15794
15846
  transformSchema,
15795
15847
  premountSchema,
15848
+ premountStyleSchema,
15796
15849
  flattenActiveSchema,
15797
15850
  getFlatSchemaWithAllKeys,
15798
15851
  RemotionRootContexts,
@@ -15806,6 +15859,7 @@ var Internals = {
15806
15859
  truthy,
15807
15860
  SequenceContext,
15808
15861
  PremountContext,
15862
+ usePremounting,
15809
15863
  useRemotionContexts,
15810
15864
  RemotionContextProvider,
15811
15865
  CSSUtils: exports_default_css,
@@ -15981,7 +16035,7 @@ var validateSeriesSequenceProps = ({
15981
16035
  return offset;
15982
16036
  };
15983
16037
  var SeriesInner = (props2) => {
15984
- const childrenValue = useMemo38(() => {
16038
+ const childrenValue = useMemo39(() => {
15985
16039
  const flattenedChildren = flattenChildren(props2.children);
15986
16040
  const renderChildren = (i, startFrame) => {
15987
16041
  if (i === flattenedChildren.length) {
@@ -16310,14 +16364,14 @@ var VideoForRenderingForwardFunction = ({
16310
16364
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
16311
16365
  const videoConfig = useUnsafeVideoConfig();
16312
16366
  const videoRef = useRef28(null);
16313
- const sequenceContext = useContext38(SequenceContext);
16367
+ const sequenceContext = useContext39(SequenceContext);
16314
16368
  const mediaStartsAt = useMediaStartsAt();
16315
16369
  const environment = useRemotionEnvironment();
16316
16370
  const logLevel = useLogLevel();
16317
16371
  const mountTime = useMountTime();
16318
16372
  const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
16319
- const { registerRenderAsset, unregisterRenderAsset } = useContext38(RenderAssetManager);
16320
- const id = useMemo39(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
16373
+ const { registerRenderAsset, unregisterRenderAsset } = useContext39(RenderAssetManager);
16374
+ const id = useMemo40(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
16321
16375
  props2.src,
16322
16376
  sequenceContext?.cumulatedFrom,
16323
16377
  sequenceContext?.relativeFrom,
@@ -16528,7 +16582,7 @@ var VideoForwardingFunction = (props2, ref) => {
16528
16582
  if (environment.isClientSideRendering) {
16529
16583
  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");
16530
16584
  }
16531
- const { durations, setDurations } = useContext39(DurationsContext);
16585
+ const { durations, setDurations } = useContext40(DurationsContext);
16532
16586
  if (typeof ref === "string") {
16533
16587
  throw new Error("string refs are not supported");
16534
16588
  }
@@ -16647,7 +16701,7 @@ addSequenceStackTraces(Composition);
16647
16701
  addSequenceStackTraces(Folder);
16648
16702
 
16649
16703
  // ../shapes/dist/esm/index.mjs
16650
- import React, { useCallback as useCallback26, useMemo as useMemo40, useRef as useRef29 } from "react";
16704
+ import React, { useCallback as useCallback26, useMemo as useMemo41, useRef as useRef29 } from "react";
16651
16705
  import { version } from "react-dom";
16652
16706
  import { jsx as jsx40, jsxs as jsxs4 } from "react/jsx-runtime";
16653
16707
  import { jsx as jsx210 } from "react/jsx-runtime";
@@ -16829,13 +16883,13 @@ var RenderSvg = ({
16829
16883
  stack,
16830
16884
  ...props
16831
16885
  }) => {
16832
- const actualStyle = useMemo40(() => {
16886
+ const actualStyle = useMemo41(() => {
16833
16887
  return {
16834
16888
  overflow: "visible",
16835
16889
  ...style ?? {}
16836
16890
  };
16837
16891
  }, [style]);
16838
- const actualPathStyle = useMemo40(() => {
16892
+ const actualPathStyle = useMemo41(() => {
16839
16893
  return {
16840
16894
  transformBox: "fill-box",
16841
16895
  ...pathStyle ?? {}
@@ -19814,7 +19868,7 @@ var useHoverTransforms = (ref, disabled) => {
19814
19868
  progress: 0,
19815
19869
  isActive: false
19816
19870
  });
19817
- const eventTarget = useMemo42(() => new EventTarget, []);
19871
+ const eventTarget = useMemo43(() => new EventTarget, []);
19818
19872
  useEffect21(() => {
19819
19873
  if (disabled) {
19820
19874
  eventTarget.dispatchEvent(new Event("disabled"));