@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.
@@ -1378,7 +1378,7 @@ var getDefaultConfig = () => {
1378
1378
  var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
1379
1379
 
1380
1380
  // ../design/dist/esm/index.mjs
1381
- import React33, { useEffect as useEffect21, useMemo as useMemo42, useState as useState23 } from "react";
1381
+ import React33, { useEffect as useEffect21, useMemo as useMemo43, useState as useState23 } from "react";
1382
1382
 
1383
1383
  // ../paths/dist/esm/index.mjs
1384
1384
  var cutLInstruction = ({
@@ -4175,9 +4175,9 @@ import React9 from "react";
4175
4175
  import {
4176
4176
  forwardRef as forwardRef3,
4177
4177
  useCallback as useCallback6,
4178
- useContext as useContext17,
4178
+ useContext as useContext18,
4179
4179
  useEffect as useEffect3,
4180
- useMemo as useMemo14,
4180
+ useMemo as useMemo15,
4181
4181
  useRef as useRef6,
4182
4182
  useState as useState5
4183
4183
  } from "react";
@@ -4196,13 +4196,14 @@ import { useContext as useContext11 } from "react";
4196
4196
  import { useContext as useContext13 } from "react";
4197
4197
  import { useContext as useContext12, useMemo as useMemo10 } from "react";
4198
4198
  import { jsx as jsx9 } from "react/jsx-runtime";
4199
- import { createContext as createContext14 } from "react";
4200
4199
  import React12, { useCallback as useCallback5, useMemo as useMemo12, useRef as useRef4, useState as useState3 } from "react";
4201
4200
  import { jsx as jsx10 } from "react/jsx-runtime";
4202
- import React13, { createContext as createContext15 } from "react";
4201
+ import React13, { createContext as createContext14 } from "react";
4203
4202
  import { jsx as jsx11 } from "react/jsx-runtime";
4204
- import React14, { forwardRef as forwardRef2, useContext as useContext16, useMemo as useMemo13, useState as useState4 } from "react";
4205
- import { useContext as useContext15, useRef as useRef5 } from "react";
4203
+ import { useContext as useContext15, useMemo as useMemo13 } from "react";
4204
+ import { createContext as createContext15 } from "react";
4205
+ import React14, { forwardRef as forwardRef2, useContext as useContext17, useMemo as useMemo14, useState as useState4 } from "react";
4206
+ import { useContext as useContext16, useRef as useRef5 } from "react";
4206
4207
  import { createContext as createContext16 } from "react";
4207
4208
  import { jsx as jsx12 } from "react/jsx-runtime";
4208
4209
  import {
@@ -4213,70 +4214,70 @@ import {
4213
4214
  useRef as useRef9,
4214
4215
  useState as useState6
4215
4216
  } from "react";
4216
- import React16, { useCallback as useCallback7, useImperativeHandle, useMemo as useMemo16, useRef as useRef8 } from "react";
4217
- import { useEffect as useEffect4, useMemo as useMemo15, useRef as useRef7 } from "react";
4217
+ import React16, { useCallback as useCallback7, useImperativeHandle, useMemo as useMemo17, useRef as useRef8 } from "react";
4218
+ import { useEffect as useEffect4, useMemo as useMemo16, useRef as useRef7 } from "react";
4218
4219
  import { jsx as jsx13 } from "react/jsx-runtime";
4219
4220
  import { jsx as jsx14 } from "react/jsx-runtime";
4220
- import { useContext as useContext18, useLayoutEffect as useLayoutEffect4, useState as useState8 } from "react";
4221
+ import { useContext as useContext19, useLayoutEffect as useLayoutEffect4, useState as useState8 } from "react";
4221
4222
  import {
4222
4223
  createContext as createContext17,
4223
4224
  useCallback as useCallback8,
4224
4225
  useImperativeHandle as useImperativeHandle3,
4225
4226
  useLayoutEffect as useLayoutEffect3,
4226
- useMemo as useMemo17,
4227
+ useMemo as useMemo18,
4227
4228
  useRef as useRef10,
4228
4229
  useState as useState7
4229
4230
  } from "react";
4230
4231
  import { jsx as jsx15 } from "react/jsx-runtime";
4231
- import { forwardRef as forwardRef7, useCallback as useCallback14, useContext as useContext30 } from "react";
4232
- import React17, { createContext as createContext18, useMemo as useMemo18 } from "react";
4232
+ import { forwardRef as forwardRef7, useCallback as useCallback14, useContext as useContext31 } from "react";
4233
+ import React17, { createContext as createContext18, useMemo as useMemo19 } from "react";
4233
4234
  import { jsx as jsx16 } from "react/jsx-runtime";
4234
- import { useContext as useContext19 } from "react";
4235
+ import { useContext as useContext20 } from "react";
4235
4236
  import { createContext as createContext19, useEffect as useEffect6, useState as useState9 } from "react";
4236
4237
  import { jsx as jsx17 } from "react/jsx-runtime";
4237
- import { createContext as createContext20, useMemo as useMemo19, useReducer } from "react";
4238
+ import { createContext as createContext20, useMemo as useMemo20, useReducer } from "react";
4238
4239
  import { jsx as jsx18 } from "react/jsx-runtime";
4239
4240
  import { useCallback as useCallback13 } from "react";
4240
4241
  import React23, {
4241
4242
  forwardRef as forwardRef5,
4242
- useContext as useContext28,
4243
+ useContext as useContext29,
4243
4244
  useEffect as useEffect14,
4244
4245
  useImperativeHandle as useImperativeHandle4,
4245
- useMemo as useMemo27,
4246
+ useMemo as useMemo28,
4246
4247
  useRef as useRef19,
4247
4248
  useState as useState14
4248
4249
  } from "react";
4249
- import { useContext as useContext21, useLayoutEffect as useLayoutEffect5, useRef as useRef14 } from "react";
4250
+ import { useContext as useContext22, useLayoutEffect as useLayoutEffect5, useRef as useRef14 } from "react";
4250
4251
  import React20, {
4251
4252
  createContext as createContext21,
4252
4253
  createRef as createRef2,
4253
4254
  useCallback as useCallback9,
4254
- useContext as useContext20,
4255
+ useContext as useContext21,
4255
4256
  useEffect as useEffect7,
4256
- useMemo as useMemo21,
4257
+ useMemo as useMemo22,
4257
4258
  useRef as useRef12,
4258
4259
  useState as useState10
4259
4260
  } from "react";
4260
- import { useMemo as useMemo20, useRef as useRef11 } from "react";
4261
+ import { useMemo as useMemo21, useRef as useRef11 } from "react";
4261
4262
  import { jsx as jsx19, jsxs as jsxs2 } from "react/jsx-runtime";
4262
4263
  import { useRef as useRef13 } from "react";
4263
- import { useContext as useContext23, useEffect as useEffect8, useMemo as useMemo22, useState as useState11 } from "react";
4264
- import { useContext as useContext22 } from "react";
4264
+ import { useContext as useContext24, useEffect as useEffect8, useMemo as useMemo23, useState as useState11 } from "react";
4265
+ import { useContext as useContext23 } from "react";
4265
4266
  import {
4266
4267
  useCallback as useCallback12,
4267
- useContext as useContext26,
4268
+ useContext as useContext27,
4268
4269
  useEffect as useEffect12,
4269
4270
  useLayoutEffect as useLayoutEffect7,
4270
4271
  useRef as useRef18
4271
4272
  } from "react";
4272
- import { useCallback as useCallback11, useMemo as useMemo25, useRef as useRef16 } from "react";
4273
- import { useContext as useContext25, useMemo as useMemo24 } from "react";
4273
+ import { useCallback as useCallback11, useMemo as useMemo26, useRef as useRef16 } from "react";
4274
+ import { useContext as useContext26, useMemo as useMemo25 } from "react";
4274
4275
  import React21, {
4275
4276
  useCallback as useCallback10,
4276
- useContext as useContext24,
4277
+ useContext as useContext25,
4277
4278
  useEffect as useEffect9,
4278
4279
  useLayoutEffect as useLayoutEffect6,
4279
- useMemo as useMemo23,
4280
+ useMemo as useMemo24,
4280
4281
  useRef as useRef15,
4281
4282
  useState as useState12
4282
4283
  } from "react";
@@ -4285,15 +4286,15 @@ import React22 from "react";
4285
4286
  import { useEffect as useEffect10, useState as useState13 } from "react";
4286
4287
  import { useEffect as useEffect11, useRef as useRef17 } from "react";
4287
4288
  import { useEffect as useEffect13 } from "react";
4288
- import { createContext as createContext22, useContext as useContext27, useMemo as useMemo26 } from "react";
4289
+ import { createContext as createContext22, useContext as useContext28, useMemo as useMemo27 } from "react";
4289
4290
  import { jsx as jsx21 } from "react/jsx-runtime";
4290
4291
  import {
4291
4292
  forwardRef as forwardRef6,
4292
- useContext as useContext29,
4293
+ useContext as useContext30,
4293
4294
  useEffect as useEffect15,
4294
4295
  useImperativeHandle as useImperativeHandle5,
4295
4296
  useLayoutEffect as useLayoutEffect8,
4296
- useMemo as useMemo28,
4297
+ useMemo as useMemo29,
4297
4298
  useRef as useRef20
4298
4299
  } from "react";
4299
4300
  import { jsx as jsx22 } from "react/jsx-runtime";
@@ -4303,7 +4304,7 @@ import {
4303
4304
  useCallback as useCallback15,
4304
4305
  useEffect as useEffect16,
4305
4306
  useImperativeHandle as useImperativeHandle6,
4306
- useMemo as useMemo29,
4307
+ useMemo as useMemo30,
4307
4308
  useRef as useRef21,
4308
4309
  useState as useState15
4309
4310
  } from "react";
@@ -4312,19 +4313,19 @@ import {
4312
4313
  createContext as createContext23,
4313
4314
  forwardRef as forwardRef9,
4314
4315
  useCallback as useCallback16,
4315
- useContext as useContext31,
4316
+ useContext as useContext32,
4316
4317
  useLayoutEffect as useLayoutEffect9,
4317
- useMemo as useMemo30,
4318
+ useMemo as useMemo31,
4318
4319
  useRef as useRef22
4319
4320
  } from "react";
4320
4321
  import { jsx as jsx25 } from "react/jsx-runtime";
4321
4322
  import {
4322
4323
  forwardRef as forwardRef10,
4323
4324
  useCallback as useCallback17,
4324
- useContext as useContext32,
4325
+ useContext as useContext33,
4325
4326
  useImperativeHandle as useImperativeHandle7,
4326
4327
  useLayoutEffect as useLayoutEffect10,
4327
- useMemo as useMemo31,
4328
+ useMemo as useMemo32,
4328
4329
  useRef as useRef23,
4329
4330
  useState as useState16
4330
4331
  } from "react";
@@ -4333,7 +4334,7 @@ import { forwardRef as forwardRef11, useCallback as useCallback18, useState as u
4333
4334
  import { jsx as jsx27 } from "react/jsx-runtime";
4334
4335
  import {
4335
4336
  useCallback as useCallback19,
4336
- useContext as useContext33,
4337
+ useContext as useContext34,
4337
4338
  useLayoutEffect as useLayoutEffect11,
4338
4339
  useRef as useRef24,
4339
4340
  useState as useState18
@@ -4346,59 +4347,59 @@ import React31 from "react";
4346
4347
  import {
4347
4348
  useCallback as useCallback21,
4348
4349
  useImperativeHandle as useImperativeHandle8,
4349
- useMemo as useMemo32,
4350
+ useMemo as useMemo33,
4350
4351
  useRef as useRef26,
4351
4352
  useState as useState19
4352
4353
  } from "react";
4353
4354
  import { jsx as jsx30 } from "react/jsx-runtime";
4354
4355
  import React32 from "react";
4355
- import { useMemo as useMemo34 } from "react";
4356
- import { createContext as createContext24, useContext as useContext34, useMemo as useMemo33 } from "react";
4356
+ import { useMemo as useMemo35 } from "react";
4357
+ import { createContext as createContext24, useContext as useContext35, useMemo as useMemo34 } from "react";
4357
4358
  import { jsx as jsx31 } from "react/jsx-runtime";
4358
4359
  import { jsx as jsx32 } from "react/jsx-runtime";
4359
4360
  import React34 from "react";
4360
4361
  import React35, { createContext as createContext25 } from "react";
4361
- import React36, { useContext as useContext35 } from "react";
4362
+ import React36, { useContext as useContext36 } from "react";
4362
4363
  import { useCallback as useCallback24 } from "react";
4363
4364
  import {
4364
4365
  useCallback as useCallback22,
4365
- useContext as useContext36,
4366
+ useContext as useContext37,
4366
4367
  useEffect as useEffect17,
4367
4368
  useLayoutEffect as useLayoutEffect12,
4368
- useMemo as useMemo35,
4369
+ useMemo as useMemo36,
4369
4370
  useState as useState20
4370
4371
  } from "react";
4371
4372
  import { jsx as jsx33 } from "react/jsx-runtime";
4372
4373
  import React38, {
4373
4374
  forwardRef as forwardRef13,
4374
4375
  useCallback as useCallback23,
4375
- useContext as useContext37,
4376
+ useContext as useContext38,
4376
4377
  useEffect as useEffect19,
4377
4378
  useImperativeHandle as useImperativeHandle9,
4378
- useMemo as useMemo36,
4379
+ useMemo as useMemo37,
4379
4380
  useRef as useRef27,
4380
4381
  useState as useState21
4381
4382
  } from "react";
4382
4383
  import { useEffect as useEffect18 } from "react";
4383
4384
  import { jsx as jsx34 } from "react/jsx-runtime";
4384
4385
  import { jsx as jsx35 } from "react/jsx-runtime";
4385
- import React40, { useMemo as useMemo37 } from "react";
4386
+ import React40, { useMemo as useMemo38 } from "react";
4386
4387
  import { jsx as jsx36 } from "react/jsx-runtime";
4387
4388
  import React42, {
4388
4389
  forwardRef as forwardRef14,
4389
- useMemo as useMemo38
4390
+ useMemo as useMemo39
4390
4391
  } from "react";
4391
4392
  import React41 from "react";
4392
4393
  import { jsx as jsx37, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
4393
4394
  import React43 from "react";
4394
- import { forwardRef as forwardRef16, useCallback as useCallback25, useContext as useContext39 } from "react";
4395
+ import { forwardRef as forwardRef16, useCallback as useCallback25, useContext as useContext40 } from "react";
4395
4396
  import {
4396
4397
  forwardRef as forwardRef15,
4397
- useContext as useContext38,
4398
+ useContext as useContext39,
4398
4399
  useEffect as useEffect20,
4399
4400
  useImperativeHandle as useImperativeHandle10,
4400
4401
  useLayoutEffect as useLayoutEffect13,
4401
- useMemo as useMemo39,
4402
+ useMemo as useMemo40,
4402
4403
  useRef as useRef28
4403
4404
  } from "react";
4404
4405
  import { jsx as jsx38 } from "react/jsx-runtime";
@@ -5258,17 +5259,6 @@ var delayRenderInternal = ({
5258
5259
  scope.remotion_renderReady = false;
5259
5260
  return handle;
5260
5261
  };
5261
- var delayRender = (label2, options) => {
5262
- if (typeof window === "undefined") {
5263
- return Math.random();
5264
- }
5265
- return delayRenderInternal({
5266
- scope: window,
5267
- environment: getRemotionEnvironment(),
5268
- label: label2 ?? null,
5269
- options: options ?? {}
5270
- });
5271
- };
5272
5262
  var continueRenderInternal = ({
5273
5263
  scope,
5274
5264
  handle,
@@ -5589,7 +5579,7 @@ var getSingleChildComponent = (children) => {
5589
5579
  }
5590
5580
  return child.type;
5591
5581
  };
5592
- var VERSION = "4.0.494";
5582
+ var VERSION = "4.0.496";
5593
5583
  var checkMultipleRemotionVersions = () => {
5594
5584
  if (typeof globalThis === "undefined") {
5595
5585
  return;
@@ -6082,15 +6072,19 @@ var premountSchema = {
6082
6072
  description: "Premount For",
6083
6073
  min: 0,
6084
6074
  step: 1,
6085
- hiddenFromList: false
6075
+ hiddenFromList: false,
6076
+ keyframable: false
6086
6077
  },
6087
6078
  postmountFor: {
6088
6079
  type: "number",
6089
6080
  default: 0,
6090
6081
  min: 0,
6091
6082
  step: 1,
6092
- hiddenFromList: true
6093
- },
6083
+ hiddenFromList: true,
6084
+ keyframable: false
6085
+ }
6086
+ };
6087
+ var premountStyleSchema = {
6094
6088
  styleWhilePremounted: {
6095
6089
  type: "hidden"
6096
6090
  },
@@ -6098,10 +6092,13 @@ var premountSchema = {
6098
6092
  type: "hidden"
6099
6093
  }
6100
6094
  };
6101
- var sequencePremountSchema = premountSchema;
6095
+ var sequencePremountSchema = {
6096
+ ...premountSchema,
6097
+ ...premountStyleSchema
6098
+ };
6102
6099
  var sequenceStyleSchema = {
6103
6100
  ...transformSchema,
6104
- ...premountSchema
6101
+ ...sequencePremountSchema
6105
6102
  };
6106
6103
  var hiddenField = {
6107
6104
  type: "boolean",
@@ -6186,9 +6183,6 @@ var sequenceSchemaDefaultLayoutNone = {
6186
6183
  default: "none"
6187
6184
  }
6188
6185
  };
6189
- var PremountContext = createContext14({
6190
- premountFramesRemaining: 0
6191
- });
6192
6186
  var SequenceManager = React12.createContext({
6193
6187
  registerSequence: () => {
6194
6188
  throw new Error("SequenceManagerContext not initialized");
@@ -6368,7 +6362,7 @@ var SequenceManagerProvider = ({ children }) => {
6368
6362
  })
6369
6363
  });
6370
6364
  };
6371
- var IsInsideSeriesContext = createContext15(false);
6365
+ var IsInsideSeriesContext = createContext14(false);
6372
6366
  var IsInsideSeriesContainer = ({ children }) => {
6373
6367
  return /* @__PURE__ */ jsx11(IsInsideSeriesContext.Provider, {
6374
6368
  value: true,
@@ -6387,7 +6381,61 @@ var useRequireToBeInsideSeries = () => {
6387
6381
  throw new Error("This component must be inside a <Series /> component.");
6388
6382
  }
6389
6383
  };
6384
+ var PremountContext = createContext15({
6385
+ premountFramesRemaining: 0
6386
+ });
6390
6387
  var ENABLE_V5_BREAKING_CHANGES = false;
6388
+ var usePremounting = ({
6389
+ from,
6390
+ durationInFrames,
6391
+ premountFor,
6392
+ postmountFor,
6393
+ style,
6394
+ styleWhilePremounted,
6395
+ styleWhilePostmounted,
6396
+ hideWhilePremounted
6397
+ }) => {
6398
+ const parentPremountContext = useContext15(PremountContext);
6399
+ const frame = useCurrentFrame() - parentPremountContext.premountFramesRemaining;
6400
+ const environment = useRemotionEnvironment();
6401
+ const { fps } = useVideoConfig();
6402
+ const effectivePremountFor = ENABLE_V5_BREAKING_CHANGES ? premountFor ?? fps : premountFor ?? 0;
6403
+ const effectivePostmountFor = postmountFor ?? 0;
6404
+ const endThreshold = Math.ceil(from + durationInFrames - 1);
6405
+ const premountingActive = !environment.isRendering && frame < from && frame >= from - effectivePremountFor;
6406
+ const postmountingActive = !environment.isRendering && frame > endThreshold && frame <= endThreshold + effectivePostmountFor;
6407
+ const isPremountingOrPostmounting = premountingActive || postmountingActive;
6408
+ const freezeFrame = premountingActive ? from : postmountingActive ? from + durationInFrames - 1 : 0;
6409
+ const premountingStyle = useMemo13(() => {
6410
+ if (!isPremountingOrPostmounting) {
6411
+ return style;
6412
+ }
6413
+ return {
6414
+ ...style,
6415
+ ...hideWhilePremounted === "opacity" ? { opacity: 0 } : { display: "none" },
6416
+ pointerEvents: "none",
6417
+ ...premountingActive ? styleWhilePremounted : {},
6418
+ ...postmountingActive ? styleWhilePostmounted : {}
6419
+ };
6420
+ }, [
6421
+ isPremountingOrPostmounting,
6422
+ hideWhilePremounted,
6423
+ postmountingActive,
6424
+ premountingActive,
6425
+ style,
6426
+ styleWhilePostmounted,
6427
+ styleWhilePremounted
6428
+ ]);
6429
+ return {
6430
+ effectivePremountFor,
6431
+ effectivePostmountFor,
6432
+ premountingActive,
6433
+ postmountingActive,
6434
+ isPremountingOrPostmounting,
6435
+ freezeFrame,
6436
+ premountingStyle
6437
+ };
6438
+ };
6391
6439
  var deleteNestedKey = (obj, keysToRemove) => {
6392
6440
  for (const key of keysToRemove) {
6393
6441
  const parts = key.split(".");
@@ -8211,10 +8259,10 @@ var useMemoizedEffects = ({
8211
8259
  overrideId
8212
8260
  }) => {
8213
8261
  const previousRef = useRef5(null);
8214
- const { propStatuses } = useContext15(VisualModePropStatusesContext);
8215
- const { getEffectDragOverrides } = useContext15(VisualModeDragOverridesContext);
8262
+ const { propStatuses } = useContext16(VisualModePropStatusesContext);
8263
+ const { getEffectDragOverrides } = useContext16(VisualModeDragOverridesContext);
8216
8264
  const frame = useCurrentFrame();
8217
- const { overrideIdToNodePathMappings } = useContext15(OverrideIdsToNodePathsGettersContext);
8265
+ const { overrideIdToNodePathMappings } = useContext16(OverrideIdsToNodePathsGettersContext);
8218
8266
  const previous = previousRef.current;
8219
8267
  const nodePath = overrideId ? overrideIdToNodePathMappings[overrideId] ?? null : null;
8220
8268
  const resolved = effects.map((descriptor, index) => {
@@ -8558,9 +8606,9 @@ var withInteractivitySchema = ({
8558
8606
  ref
8559
8607
  });
8560
8608
  }
8561
- const { propStatuses } = useContext16(VisualModePropStatusesContext);
8562
- const { getDragOverrides } = useContext16(VisualModeDragOverridesContext);
8563
- const nodePathMapping = useContext16(OverrideIdsToNodePathsGettersContext);
8609
+ const { propStatuses } = useContext17(VisualModePropStatusesContext);
8610
+ const { getDragOverrides } = useContext17(VisualModeDragOverridesContext);
8611
+ const nodePathMapping = useContext17(OverrideIdsToNodePathsGettersContext);
8564
8612
  const frame = useCurrentFrame();
8565
8613
  if (props.controls) {
8566
8614
  return React14.createElement(Component, {
@@ -8587,8 +8635,8 @@ var withInteractivitySchema = ({
8587
8635
  key,
8588
8636
  props
8589
8637
  }));
8590
- const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
8591
- const controls = useMemo13(() => {
8638
+ const currentRuntimeValueDotNotation = useMemo14(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
8639
+ const controls = useMemo14(() => {
8592
8640
  return {
8593
8641
  schema: schemaWithSequenceName,
8594
8642
  currentRuntimeValueDotNotation,
@@ -8598,7 +8646,7 @@ var withInteractivitySchema = ({
8598
8646
  componentName
8599
8647
  };
8600
8648
  }, [currentRuntimeValueDotNotation, overrideId]);
8601
- const { merged: valuesDotNotation, propsToDelete } = useMemo13(() => {
8649
+ const { merged: valuesDotNotation, propsToDelete } = useMemo14(() => {
8602
8650
  return computeEffectiveSchemaValuesDotNotation({
8603
8651
  schema: schemaWithSequenceName,
8604
8652
  currentValue: currentRuntimeValueDotNotation,
@@ -8656,7 +8704,7 @@ var RegularSequenceRefForwardingFunction = ({
8656
8704
  }, ref) => {
8657
8705
  const { layout = "absolute-fill" } = other;
8658
8706
  const [id] = useState5(() => String(Math.random()));
8659
- const parentSequence = useContext17(SequenceContext);
8707
+ const parentSequence = useContext18(SequenceContext);
8660
8708
  const { rootId } = useTimelineContext();
8661
8709
  const cumulatedFrom = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
8662
8710
  const nonce = useNonce();
@@ -8707,13 +8755,13 @@ var RegularSequenceRefForwardingFunction = ({
8707
8755
  const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + effectiveRelativeFrom;
8708
8756
  const parentSequenceDuration = parentSequence ? Math.min(parentSequence.durationInFrames - effectiveRelativeFrom, durationInFrames) : durationInFrames;
8709
8757
  const actualDurationInFrames = Math.max(0, Math.min(videoConfig.durationInFrames - from, parentSequenceDuration));
8710
- const { registerSequence, unregisterSequence } = useContext17(SequenceManager);
8758
+ const { registerSequence, unregisterSequence } = useContext18(SequenceManager);
8711
8759
  const wrapperRefForOutline = useRef6(null);
8712
8760
  const refForOutline = other.layout === "none" ? passedRefForOutline ?? null : passedRefForOutline ?? wrapperRefForOutline;
8713
- const premounting = useMemo14(() => {
8761
+ const premounting = useMemo15(() => {
8714
8762
  return parentSequence?.premounting || Boolean(other._remotionInternalIsPremounting);
8715
8763
  }, [other._remotionInternalIsPremounting, parentSequence?.premounting]);
8716
- const postmounting = useMemo14(() => {
8764
+ const postmounting = useMemo15(() => {
8717
8765
  return parentSequence?.postmounting || Boolean(other._remotionInternalIsPostmounting);
8718
8766
  }, [other._remotionInternalIsPostmounting, parentSequence?.postmounting]);
8719
8767
  const currentSequenceStart = cumulatedFrom + effectiveRelativeFrom;
@@ -8721,7 +8769,7 @@ var RegularSequenceRefForwardingFunction = ({
8721
8769
  const parentFirstFrame = parentSequence ? parentSequenceStart - parentSequence.cumulatedNegativeFrom : 0;
8722
8770
  const firstFrame = Math.max(0, parentFirstFrame, currentSequenceStart);
8723
8771
  const cumulatedNegativeFrom = currentSequenceStart - firstFrame;
8724
- const contextValue = useMemo14(() => {
8772
+ const contextValue = useMemo15(() => {
8725
8773
  return {
8726
8774
  absoluteFrom,
8727
8775
  cumulatedFrom,
@@ -8752,12 +8800,12 @@ var RegularSequenceRefForwardingFunction = ({
8752
8800
  postmountDisplay,
8753
8801
  cumulatedNegativeFrom
8754
8802
  ]);
8755
- const timelineClipName = useMemo14(() => {
8803
+ const timelineClipName = useMemo15(() => {
8756
8804
  return name ?? "";
8757
8805
  }, [name]);
8758
8806
  const resolvedDocumentationLink = documentationLink ?? "https://www.remotion.dev/docs/sequence";
8759
8807
  const env = useRemotionEnvironment();
8760
- const isInsideSeries = useContext17(IsInsideSeriesContext);
8808
+ const isInsideSeries = useContext18(IsInsideSeriesContext);
8761
8809
  const inheritedStack = other?.stack ?? null;
8762
8810
  const stackRef = useRef6(null);
8763
8811
  stackRef.current = stack ?? inheritedStack;
@@ -8905,7 +8953,7 @@ var RegularSequenceRefForwardingFunction = ({
8905
8953
  ref.current = node;
8906
8954
  }
8907
8955
  }, [ref]);
8908
- const defaultStyle = useMemo14(() => {
8956
+ const defaultStyle = useMemo15(() => {
8909
8957
  return {
8910
8958
  flexDirection: undefined,
8911
8959
  ...width ? { width } : {},
@@ -8931,8 +8979,6 @@ var RegularSequenceRefForwardingFunction = ({
8931
8979
  };
8932
8980
  var RegularSequence = forwardRef3(RegularSequenceRefForwardingFunction);
8933
8981
  var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
8934
- const parentPremountContext = useContext17(PremountContext);
8935
- const frame = useCurrentFrame() - parentPremountContext.premountFramesRemaining;
8936
8982
  if (props.layout === "none") {
8937
8983
  throw new Error('`<Sequence>` with `premountFor` and `postmountFor` props does not support layout="none"');
8938
8984
  }
@@ -8946,34 +8992,30 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
8946
8992
  styleWhilePostmounted,
8947
8993
  ...otherProps
8948
8994
  } = props;
8949
- const endThreshold = Math.ceil(from + durationInFrames - 1);
8950
- const premountingActive = frame < from && frame >= from - premountFor;
8951
- const postmountingActive = frame > endThreshold && frame <= endThreshold + postmountFor;
8952
- const freezeFrame = premountingActive ? from : postmountingActive ? from + durationInFrames - 1 : 0;
8953
- const isFreezingActive = premountingActive || postmountingActive;
8954
- const style = useMemo14(() => {
8955
- return {
8956
- ...passedStyle,
8957
- opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
8958
- pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
8959
- ...premountingActive ? styleWhilePremounted : {},
8960
- ...postmountingActive ? styleWhilePostmounted : {}
8961
- };
8962
- }, [
8963
- passedStyle,
8964
- premountingActive,
8995
+ const {
8996
+ freezeFrame,
8997
+ isPremountingOrPostmounting,
8965
8998
  postmountingActive,
8966
- styleWhilePremounted,
8967
- styleWhilePostmounted
8968
- ]);
8999
+ premountingActive,
9000
+ premountingStyle
9001
+ } = usePremounting({
9002
+ from,
9003
+ durationInFrames,
9004
+ premountFor,
9005
+ postmountFor,
9006
+ style: passedStyle ?? null,
9007
+ styleWhilePremounted: styleWhilePremounted ?? null,
9008
+ styleWhilePostmounted: styleWhilePostmounted ?? null,
9009
+ hideWhilePremounted: "opacity"
9010
+ });
8969
9011
  return /* @__PURE__ */ jsx12(Freeze, {
8970
9012
  frame: freezeFrame,
8971
- active: isFreezingActive,
9013
+ active: isPremountingOrPostmounting,
8972
9014
  children: /* @__PURE__ */ jsx12(SequenceInner, {
8973
9015
  ref,
8974
9016
  from,
8975
9017
  durationInFrames,
8976
- style,
9018
+ style: premountingStyle ?? undefined,
8977
9019
  _remotionInternalPremountDisplay: premountFor,
8978
9020
  _remotionInternalPostmountDisplay: postmountFor,
8979
9021
  _remotionInternalIsPremounting: premountingActive,
@@ -9309,7 +9351,7 @@ var useEffectChainState = () => {
9309
9351
  }
9310
9352
  };
9311
9353
  }, []);
9312
- return useMemo15(() => ({
9354
+ return useMemo16(() => ({
9313
9355
  get: (width, height) => {
9314
9356
  if (!sizeRef.current || sizeRef.current.width !== width || sizeRef.current.height !== height) {
9315
9357
  if (chainStateRef.current) {
@@ -9325,7 +9367,7 @@ var useEffectChainState = () => {
9325
9367
  var CanvasRefForwardingFunction = ({ width, height, fit, className, style, effects, ...props }, ref) => {
9326
9368
  const canvasRef = useRef8(null);
9327
9369
  const chainState = useEffectChainState();
9328
- const sourceCanvas = useMemo16(() => {
9370
+ const sourceCanvas = useMemo17(() => {
9329
9371
  if (typeof document === "undefined") {
9330
9372
  return null;
9331
9373
  }
@@ -9882,7 +9924,7 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
9882
9924
  };
9883
9925
  }
9884
9926
  }, []);
9885
- const contextValue = useMemo17(() => {
9927
+ const contextValue = useMemo18(() => {
9886
9928
  return {
9887
9929
  registerRenderAsset,
9888
9930
  unregisterRenderAsset,
@@ -9896,7 +9938,7 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
9896
9938
  };
9897
9939
  var ArtifactThumbnail = Symbol("Thumbnail");
9898
9940
  var Artifact = ({ filename, content, downloadBehavior }) => {
9899
- const { registerRenderAsset, unregisterRenderAsset } = useContext18(RenderAssetManager);
9941
+ const { registerRenderAsset, unregisterRenderAsset } = useContext19(RenderAssetManager);
9900
9942
  const env = useRemotionEnvironment();
9901
9943
  const frame = useCurrentFrame();
9902
9944
  const [id] = useState8(() => {
@@ -10011,14 +10053,14 @@ var Loop = ({
10011
10053
  const iteration = Math.floor(currentFrame / durationInFrames);
10012
10054
  const start = iteration * durationInFrames;
10013
10055
  const from = Math.min(start, maxFrame);
10014
- const loopDisplay = useMemo18(() => {
10056
+ const loopDisplay = useMemo19(() => {
10015
10057
  return {
10016
10058
  numberOfTimes: Math.min(compDuration / durationInFrames, times),
10017
10059
  startOffset: -from,
10018
10060
  durationInFrames
10019
10061
  };
10020
10062
  }, [compDuration, durationInFrames, from, times]);
10021
- const loopContext = useMemo18(() => {
10063
+ const loopContext = useMemo19(() => {
10022
10064
  return {
10023
10065
  iteration: Math.floor(currentFrame / durationInFrames),
10024
10066
  durationInFrames
@@ -10087,7 +10129,7 @@ var getSrcWithoutHash = (src) => {
10087
10129
  return src.slice(0, hashIndex);
10088
10130
  };
10089
10131
  var usePreload = (src) => {
10090
- const preloads2 = useContext19(PreloadContext);
10132
+ const preloads2 = useContext20(PreloadContext);
10091
10133
  const hashFragmentIndex = removeAndGetHashFragment(src);
10092
10134
  const withoutHashFragment = getSrcWithoutHash(src);
10093
10135
  if (!preloads2[withoutHashFragment]) {
@@ -10390,7 +10432,7 @@ var DurationsContext = createContext20({
10390
10432
  });
10391
10433
  var DurationsContextProvider = ({ children }) => {
10392
10434
  const [durations, setDurations] = useReducer(durationReducer, {});
10393
- const value = useMemo19(() => {
10435
+ const value = useMemo20(() => {
10394
10436
  return {
10395
10437
  durations,
10396
10438
  setDurations
@@ -10529,7 +10571,7 @@ var useSingletonAudioContext = ({
10529
10571
  if (sampleRate !== initialSampleRate.current) {
10530
10572
  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.`);
10531
10573
  }
10532
- const context = useMemo20(() => {
10574
+ const context = useMemo21(() => {
10533
10575
  if (env.isRendering) {
10534
10576
  return null;
10535
10577
  }
@@ -10663,9 +10705,9 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled, pr
10663
10705
  });
10664
10706
  const audioContextIsPlayingEventually = useRef12(false);
10665
10707
  const isResuming = useRef12(null);
10666
- const audioSyncAnchor = useMemo21(() => ({ value: 0 }), []);
10708
+ const audioSyncAnchor = useMemo22(() => ({ value: 0 }), []);
10667
10709
  const audioSyncAnchorListeners = useRef12([]);
10668
- const audioSyncAnchorEmitter = useMemo21(() => {
10710
+ const audioSyncAnchorEmitter = useMemo22(() => {
10669
10711
  return {
10670
10712
  dispatch: (event) => {
10671
10713
  audioSyncAnchorListeners.current.forEach((l) => l(event));
@@ -10685,7 +10727,7 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled, pr
10685
10727
  const unscheduleAudioNode = useCallback9((node) => {
10686
10728
  nodesToResume.current.delete(node);
10687
10729
  }, []);
10688
- const scheduleAudioNode = useMemo21(() => {
10730
+ const scheduleAudioNode = useMemo22(() => {
10689
10731
  return ({
10690
10732
  node,
10691
10733
  mediaTimestamp,
@@ -10777,7 +10819,7 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled, pr
10777
10819
  audioContextIsPlayingEventually.current = false;
10778
10820
  return ctxAndGain.suspend();
10779
10821
  }, [ctxAndGain]);
10780
- const audioContextValue = useMemo21(() => {
10822
+ const audioContextValue = useMemo22(() => {
10781
10823
  return {
10782
10824
  audioContext: ctxAndGain?.audioContext ?? null,
10783
10825
  getAudioContextState: () => ctxAndGain?.getState() ?? null,
@@ -10814,10 +10856,10 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
10814
10856
  const logLevel = useLogLevel();
10815
10857
  const mountTime = useMountTime();
10816
10858
  const env = useRemotionEnvironment();
10817
- const audioCtx = useContext20(SharedAudioContext);
10859
+ const audioCtx = useContext21(SharedAudioContext);
10818
10860
  const audioContext = audioCtx?.audioContext ?? null;
10819
10861
  const resume = audioCtx?.resume;
10820
- const refs = useMemo21(() => {
10862
+ const refs = useMemo22(() => {
10821
10863
  return new Array(numberOfAudioTags).fill(true).map(() => {
10822
10864
  const ref = createRef2();
10823
10865
  return {
@@ -10956,7 +10998,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
10956
10998
  });
10957
10999
  resume?.();
10958
11000
  }, [logLevel, mountTime, refs, env.isPlayer, resume]);
10959
- const audioTagsValue = useMemo21(() => {
11001
+ const audioTagsValue = useMemo22(() => {
10960
11002
  return {
10961
11003
  registerAudio,
10962
11004
  unregisterAudio,
@@ -10971,7 +11013,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
10971
11013
  unregisterAudio,
10972
11014
  updateAudio
10973
11015
  ]);
10974
- const sharedAudioTagElements = useMemo21(() => {
11016
+ const sharedAudioTagElements = useMemo22(() => {
10975
11017
  return refs.map(({ id, ref }) => {
10976
11018
  return /* @__PURE__ */ jsx19("audio", {
10977
11019
  ref,
@@ -10994,8 +11036,8 @@ var useSharedAudio = ({
10994
11036
  premounting,
10995
11037
  postmounting
10996
11038
  }) => {
10997
- const audioCtx = useContext20(SharedAudioContext);
10998
- const tagsCtx = useContext20(SharedAudioTagsContext);
11039
+ const audioCtx = useContext21(SharedAudioContext);
11040
+ const tagsCtx = useContext21(SharedAudioTagsContext);
10999
11041
  const [elem] = useState10(() => {
11000
11042
  if (tagsCtx && tagsCtx.numberOfAudioTags > 0) {
11001
11043
  return tagsCtx.registerAudio({ aud, audioId, premounting, postmounting });
@@ -11174,7 +11216,7 @@ var useVolume = ({
11174
11216
  const audioStuffRef = useRef14(null);
11175
11217
  const currentVolumeRef = useRef14(volume);
11176
11218
  currentVolumeRef.current = volume;
11177
- const sharedAudioContext = useContext21(SharedAudioContext);
11219
+ const sharedAudioContext = useContext22(SharedAudioContext);
11178
11220
  if (!sharedAudioContext) {
11179
11221
  throw new Error("useAmplification must be used within a SharedAudioContext");
11180
11222
  }
@@ -11239,7 +11281,7 @@ var useVolume = ({
11239
11281
  return audioStuffRef;
11240
11282
  };
11241
11283
  var useMediaStartsAt = () => {
11242
- const parentSequence = useContext22(SequenceContext);
11284
+ const parentSequence = useContext23(SequenceContext);
11243
11285
  return parentSequence?.cumulatedNegativeFrom ?? 0;
11244
11286
  };
11245
11287
  var useFrameForVolumeProp = (behavior) => {
@@ -11328,7 +11370,7 @@ var useBasicMediaInTimeline = ({
11328
11370
  if (!src) {
11329
11371
  throw new Error("No src passed");
11330
11372
  }
11331
- const parentSequence = useContext23(SequenceContext);
11373
+ const parentSequence = useContext24(SequenceContext);
11332
11374
  const [initialVolume] = useState11(() => volume);
11333
11375
  const duration = getTimelineDuration({
11334
11376
  compositionDurationInFrames: sequenceDurationInFrames,
@@ -11338,7 +11380,7 @@ var useBasicMediaInTimeline = ({
11338
11380
  parentSequenceDurationInFrames: parentSequence?.durationInFrames ?? null,
11339
11381
  loop
11340
11382
  });
11341
- const volumes = useMemo22(() => {
11383
+ const volumes = useMemo23(() => {
11342
11384
  if (typeof volume === "number") {
11343
11385
  return volume;
11344
11386
  }
@@ -11359,7 +11401,7 @@ var useBasicMediaInTimeline = ({
11359
11401
  const nonce = useNonce();
11360
11402
  const { rootId } = useTimelineContext();
11361
11403
  const startMediaFrom = 0 - mediaStartsAt + (trimBefore ?? 0);
11362
- const memoizedResult = useMemo22(() => {
11404
+ const memoizedResult = useMemo23(() => {
11363
11405
  return {
11364
11406
  volumes,
11365
11407
  duration,
@@ -11400,9 +11442,9 @@ var useMediaInTimeline = ({
11400
11442
  documentationLink,
11401
11443
  refForOutline
11402
11444
  }) => {
11403
- const parentSequence = useContext23(SequenceContext);
11445
+ const parentSequence = useContext24(SequenceContext);
11404
11446
  const startsAt = useMediaStartsAt();
11405
- const { registerSequence, unregisterSequence } = useContext23(SequenceManager);
11447
+ const { registerSequence, unregisterSequence } = useContext24(SequenceManager);
11406
11448
  const { durationInFrames } = useVideoConfig();
11407
11449
  const mediaStartsAt = useMediaStartsAt();
11408
11450
  const { volumes, duration, doesVolumeChange, nonce, rootId, finalDisplayName } = useBasicMediaInTimeline({
@@ -11567,13 +11609,13 @@ var useBufferManager = (logLevel, mountTime) => {
11567
11609
  }
11568
11610
  }, [blocks]);
11569
11611
  }
11570
- return useMemo23(() => {
11612
+ return useMemo24(() => {
11571
11613
  return { addBlock, listenForBuffering, listenForResume, buffering };
11572
11614
  }, [addBlock, buffering, listenForBuffering, listenForResume]);
11573
11615
  };
11574
11616
  var BufferingContextReact = React21.createContext(null);
11575
11617
  var BufferingProvider = ({ children }) => {
11576
- const { logLevel, mountTime } = useContext24(LogLevelContext);
11618
+ const { logLevel, mountTime } = useContext25(LogLevelContext);
11577
11619
  const bufferManager = useBufferManager(logLevel ?? "info", mountTime);
11578
11620
  return /* @__PURE__ */ jsx20(BufferingContextReact.Provider, {
11579
11621
  value: bufferManager,
@@ -11599,10 +11641,10 @@ var useIsPlayerBuffering = (bufferManager) => {
11599
11641
  return isBuffering;
11600
11642
  };
11601
11643
  var useBufferState = () => {
11602
- const buffer = useContext25(BufferingContextReact);
11644
+ const buffer = useContext26(BufferingContextReact);
11603
11645
  const logLevel = useLogLevel();
11604
11646
  const addBlock = buffer ? buffer.addBlock : null;
11605
- return useMemo24(() => ({
11647
+ return useMemo25(() => ({
11606
11648
  delayPlayback: () => {
11607
11649
  if (!addBlock) {
11608
11650
  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");
@@ -11710,7 +11752,7 @@ var useBufferUntilFirstFrame = ({
11710
11752
  onVariableFpsVideoDetected,
11711
11753
  pauseWhenBuffering
11712
11754
  ]);
11713
- return useMemo25(() => {
11755
+ return useMemo26(() => {
11714
11756
  return {
11715
11757
  isBuffering: () => bufferingRef.current,
11716
11758
  bufferUntilFirstFrame
@@ -12084,7 +12126,7 @@ var useMediaPlayback = ({
12084
12126
  const frame = useCurrentFrame();
12085
12127
  const absoluteFrame = useTimelinePosition();
12086
12128
  const [playing] = usePlayingState();
12087
- const buffering = useContext26(BufferingContextReact);
12129
+ const buffering = useContext27(BufferingContextReact);
12088
12130
  const { fps } = useVideoConfig();
12089
12131
  const mediaStartsAt = useMediaStartsAt();
12090
12132
  const lastSeekDueToShift = useRef18(null);
@@ -12379,16 +12421,16 @@ var SetMediaVolumeContext = createContext22({
12379
12421
  }
12380
12422
  });
12381
12423
  var useMediaVolumeState = () => {
12382
- const { mediaVolume } = useContext27(MediaVolumeContext);
12383
- const { setMediaVolume } = useContext27(SetMediaVolumeContext);
12384
- return useMemo26(() => {
12424
+ const { mediaVolume } = useContext28(MediaVolumeContext);
12425
+ const { setMediaVolume } = useContext28(SetMediaVolumeContext);
12426
+ return useMemo27(() => {
12385
12427
  return [mediaVolume, setMediaVolume];
12386
12428
  }, [mediaVolume, setMediaVolume]);
12387
12429
  };
12388
12430
  var usePlayerMutedState = () => {
12389
- const { playerMuted } = useContext27(MediaVolumeContext);
12390
- const { setPlayerMuted } = useContext27(SetMediaVolumeContext);
12391
- return useMemo26(() => {
12431
+ const { playerMuted } = useContext28(MediaVolumeContext);
12432
+ const { setPlayerMuted } = useContext28(SetMediaVolumeContext);
12433
+ return useMemo27(() => {
12392
12434
  return [playerMuted, setPlayerMuted];
12393
12435
  }, [playerMuted, setPlayerMuted]);
12394
12436
  };
@@ -12442,7 +12484,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
12442
12484
  throw new TypeError("No 'src' was passed to <Html5Audio>.");
12443
12485
  }
12444
12486
  const preloadedSrc = usePreload(src);
12445
- const sequenceContext = useContext28(SequenceContext);
12487
+ const sequenceContext = useContext29(SequenceContext);
12446
12488
  const [timelineId] = useState14(() => String(Math.random()));
12447
12489
  const userPreferredVolume = evaluateVolume({
12448
12490
  frame: volumePropFrame,
@@ -12455,7 +12497,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
12455
12497
  requestsVideoFrame: false,
12456
12498
  isClientSideRendering: false
12457
12499
  });
12458
- const propsToPass = useMemo27(() => {
12500
+ const propsToPass = useMemo28(() => {
12459
12501
  return {
12460
12502
  muted: muted || playerMuted || userPreferredVolume <= 0,
12461
12503
  src: preloadedSrc,
@@ -12472,7 +12514,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
12472
12514
  userPreferredVolume,
12473
12515
  crossOriginValue
12474
12516
  ]);
12475
- const id = useMemo27(() => `audio-${random(src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}-muted:${props.muted}-loop:${props.loop}`, [
12517
+ const id = useMemo28(() => `audio-${random(src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}-muted:${props.muted}-loop:${props.loop}`, [
12476
12518
  src,
12477
12519
  sequenceContext?.relativeFrom,
12478
12520
  sequenceContext?.cumulatedFrom,
@@ -12602,10 +12644,10 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
12602
12644
  const absoluteFrame = useTimelinePosition();
12603
12645
  const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
12604
12646
  const frame = useCurrentFrame();
12605
- const sequenceContext = useContext29(SequenceContext);
12606
- const { registerRenderAsset, unregisterRenderAsset } = useContext29(RenderAssetManager);
12647
+ const sequenceContext = useContext30(SequenceContext);
12648
+ const { registerRenderAsset, unregisterRenderAsset } = useContext30(RenderAssetManager);
12607
12649
  const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
12608
- const id = useMemo28(() => `audio-${random(props.src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}`, [
12650
+ const id = useMemo29(() => `audio-${random(props.src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}`, [
12609
12651
  props.src,
12610
12652
  sequenceContext?.relativeFrom,
12611
12653
  sequenceContext?.cumulatedFrom,
@@ -12712,7 +12754,7 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
12712
12754
  };
12713
12755
  var AudioForRendering = forwardRef6(AudioForRenderingRefForwardingFunction);
12714
12756
  var AudioRefForwardingFunction = (props, ref) => {
12715
- const audioTagsContext = useContext30(SharedAudioTagsContext);
12757
+ const audioTagsContext = useContext31(SharedAudioTagsContext);
12716
12758
  const propsWithFreeze = props;
12717
12759
  const {
12718
12760
  startFrom,
@@ -12736,7 +12778,7 @@ var AudioRefForwardingFunction = (props, ref) => {
12736
12778
  if (typeof freeze !== "undefined") {
12737
12779
  throw new TypeError('The "freeze" prop is not supported on <Html5Audio />. Use <Sequence freeze={...}> to freeze media playback.');
12738
12780
  }
12739
- const { durations, setDurations } = useContext30(DurationsContext);
12781
+ const { durations, setDurations } = useContext31(DurationsContext);
12740
12782
  if (typeof props.src !== "string") {
12741
12783
  throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
12742
12784
  }
@@ -12898,7 +12940,7 @@ var SolidInner = ({
12898
12940
  effects,
12899
12941
  overrideId: overrideId ?? null
12900
12942
  });
12901
- const sourceCanvas = useMemo29(() => {
12943
+ const sourceCanvas = useMemo30(() => {
12902
12944
  if (typeof document === "undefined") {
12903
12945
  return null;
12904
12946
  }
@@ -12966,7 +13008,7 @@ var SolidInner = ({
12966
13008
  cancelRender2,
12967
13009
  memoizedEffects
12968
13010
  ]);
12969
- const canvasStyle = useMemo29(() => {
13011
+ const canvasStyle = useMemo30(() => {
12970
13012
  return {
12971
13013
  width,
12972
13014
  height,
@@ -13115,12 +13157,12 @@ var HtmlInCanvasContent = forwardRef9(({
13115
13157
  controls,
13116
13158
  style
13117
13159
  }, ref) => {
13118
- const ancestor = useContext31(HtmlInCanvasAncestorContext);
13160
+ const ancestor = useContext32(HtmlInCanvasAncestorContext);
13119
13161
  assertHtmlInCanvasDimensions(width, height);
13120
13162
  const resolvedPixelDensity = resolveHtmlInCanvasPixelDensity(pixelDensity);
13121
13163
  const canvasWidth = Math.ceil(width * resolvedPixelDensity);
13122
13164
  const canvasHeight = Math.ceil(height * resolvedPixelDensity);
13123
- const { continueRender: continueRender2, cancelRender: cancelRender2 } = useDelayRender();
13165
+ const { delayRender: delayRender2, continueRender: continueRender2, cancelRender: cancelRender2 } = useDelayRender();
13124
13166
  const { isClientSideRendering, isRendering } = useRemotionEnvironment();
13125
13167
  const canRetryMissingPaintRecord = !isRendering || isClientSideRendering;
13126
13168
  const usesDirectLayoutCanvas = onPaint === undefined && onInit === undefined;
@@ -13174,7 +13216,7 @@ var HtmlInCanvasContent = forwardRef9(({
13174
13216
  if (!placeholderCanvas) {
13175
13217
  throw new Error("Canvas not found");
13176
13218
  }
13177
- const handle = delayRender("onPaint");
13219
+ const handle = delayRender2("onPaint");
13178
13220
  if (!initializedRef.current) {
13179
13221
  const currentOnInit = onInitRef.current;
13180
13222
  if (!currentOnInit) {
@@ -13275,6 +13317,7 @@ var HtmlInCanvasContent = forwardRef9(({
13275
13317
  chainState,
13276
13318
  continueRender2,
13277
13319
  cancelRender2,
13320
+ delayRender2,
13278
13321
  resolvedPixelDensity,
13279
13322
  canRetryMissingPaintRecord
13280
13323
  ]);
@@ -13326,28 +13369,28 @@ var HtmlInCanvasContent = forwardRef9(({
13326
13369
  if (!canvas) {
13327
13370
  return;
13328
13371
  }
13329
- const handle = delayRender("waiting for first paint after canvas resize");
13372
+ const handle = delayRender2("waiting for first paint after canvas resize");
13330
13373
  canvas.addEventListener("paint", () => {
13331
13374
  continueRender2(handle);
13332
13375
  }, { once: true });
13333
13376
  return () => {
13334
13377
  continueRender2(handle);
13335
13378
  };
13336
- }, [width, height, continueRender2, canvasSizeKey]);
13337
- const innerStyle = useMemo30(() => {
13379
+ }, [width, height, continueRender2, delayRender2, canvasSizeKey]);
13380
+ const innerStyle = useMemo31(() => {
13338
13381
  return {
13339
13382
  width,
13340
13383
  height
13341
13384
  };
13342
13385
  }, [width, height]);
13343
- const canvasStyle = useMemo30(() => {
13386
+ const canvasStyle = useMemo31(() => {
13344
13387
  return {
13345
13388
  width,
13346
13389
  height,
13347
13390
  ...style ?? {}
13348
13391
  };
13349
13392
  }, [height, style, width]);
13350
- const ancestorValue = useMemo30(() => {
13393
+ const ancestorValue = useMemo31(() => {
13351
13394
  return {
13352
13395
  requestParentPaint: () => {
13353
13396
  canvas2dRef.current?.requestPaint?.();
@@ -13561,7 +13604,7 @@ var CanvasImageContent = forwardRef10(({
13561
13604
  effects,
13562
13605
  overrideId: controls?.overrideId ?? null
13563
13606
  });
13564
- const sequenceContext = useContext32(SequenceContext);
13607
+ const sequenceContext = useContext33(SequenceContext);
13565
13608
  const pendingLoadDelayRef = useRef23(null);
13566
13609
  const [isLoadPending, setIsLoadPending] = useState16(false);
13567
13610
  const isPremounting = Boolean(sequenceContext?.premounting);
@@ -13578,7 +13621,7 @@ var CanvasImageContent = forwardRef10(({
13578
13621
  continueRender2(pending.handle);
13579
13622
  pendingLoadDelayRef.current = null;
13580
13623
  }, [continueRender2]);
13581
- const sourceCanvas = useMemo31(() => {
13624
+ const sourceCanvas = useMemo32(() => {
13582
13625
  if (typeof document === "undefined") {
13583
13626
  return null;
13584
13627
  }
@@ -13900,7 +13943,7 @@ var ImgContent = ({
13900
13943
  const imageRef = useRef24(null);
13901
13944
  const errors = useRef24({});
13902
13945
  const { delayPlayback } = useBufferState();
13903
- const sequenceContext = useContext33(SequenceContext);
13946
+ const sequenceContext = useContext34(SequenceContext);
13904
13947
  const [isLoading, setIsLoading] = useState18(false);
13905
13948
  const _propsValid = true;
13906
13949
  if (!_propsValid) {
@@ -14249,7 +14292,10 @@ var makeRemotionComponentIdentity = ({
14249
14292
  };
14250
14293
  var interactiveElementSchema = {
14251
14294
  ...baseSchema,
14252
- ...transformSchema,
14295
+ ...transformSchema
14296
+ };
14297
+ var interactiveTextElementSchema = {
14298
+ ...interactiveElementSchema,
14253
14299
  ...textSchema,
14254
14300
  ...textContentSchema
14255
14301
  };
@@ -14265,7 +14311,7 @@ var withSchema = (options) => {
14265
14311
  addSequenceStackTraces(Wrapped);
14266
14312
  return Wrapped;
14267
14313
  };
14268
- var makeInteractiveElement = (tag, displayName) => {
14314
+ var makeInteractiveElement = (tag, displayName, schema) => {
14269
14315
  const Inner = forwardRef12((propsWithControls, ref) => {
14270
14316
  const {
14271
14317
  durationInFrames,
@@ -14311,12 +14357,18 @@ var makeInteractiveElement = (tag, displayName) => {
14311
14357
  packageName: "remotion",
14312
14358
  componentName: displayName.slice(1, -1)
14313
14359
  }),
14314
- schema: interactiveElementSchema,
14360
+ schema,
14315
14361
  supportsEffects: false
14316
14362
  });
14317
14363
  Wrapped.displayName = displayName;
14318
14364
  return Wrapped;
14319
14365
  };
14366
+ var makeInteractiveTextElement = (tag, displayName) => {
14367
+ return makeInteractiveElement(tag, displayName, interactiveTextElementSchema);
14368
+ };
14369
+ var makeInteractiveNonTextElement = (tag, displayName) => {
14370
+ return makeInteractiveElement(tag, displayName, interactiveElementSchema);
14371
+ };
14320
14372
  var Interactive = {
14321
14373
  baseSchema,
14322
14374
  transformSchema,
@@ -14325,41 +14377,41 @@ var Interactive = {
14325
14377
  sequenceSchema,
14326
14378
  withSchema,
14327
14379
  _internalMakeRemotionComponentIdentity: makeRemotionComponentIdentity,
14328
- A: makeInteractiveElement("a", "<Interactive.A>"),
14329
- Article: makeInteractiveElement("article", "<Interactive.Article>"),
14330
- Aside: makeInteractiveElement("aside", "<Interactive.Aside>"),
14331
- Button: makeInteractiveElement("button", "<Interactive.Button>"),
14332
- Circle: makeInteractiveElement("circle", "<Interactive.Circle>"),
14333
- Code: makeInteractiveElement("code", "<Interactive.Code>"),
14334
- Div: makeInteractiveElement("div", "<Interactive.Div>"),
14335
- Ellipse: makeInteractiveElement("ellipse", "<Interactive.Ellipse>"),
14336
- Em: makeInteractiveElement("em", "<Interactive.Em>"),
14337
- Footer: makeInteractiveElement("footer", "<Interactive.Footer>"),
14338
- G: makeInteractiveElement("g", "<Interactive.G>"),
14339
- H1: makeInteractiveElement("h1", "<Interactive.H1>"),
14340
- H2: makeInteractiveElement("h2", "<Interactive.H2>"),
14341
- H3: makeInteractiveElement("h3", "<Interactive.H3>"),
14342
- H4: makeInteractiveElement("h4", "<Interactive.H4>"),
14343
- H5: makeInteractiveElement("h5", "<Interactive.H5>"),
14344
- H6: makeInteractiveElement("h6", "<Interactive.H6>"),
14345
- Header: makeInteractiveElement("header", "<Interactive.Header>"),
14346
- Label: makeInteractiveElement("label", "<Interactive.Label>"),
14347
- Li: makeInteractiveElement("li", "<Interactive.Li>"),
14348
- Line: makeInteractiveElement("line", "<Interactive.Line>"),
14349
- Main: makeInteractiveElement("main", "<Interactive.Main>"),
14350
- Nav: makeInteractiveElement("nav", "<Interactive.Nav>"),
14351
- Ol: makeInteractiveElement("ol", "<Interactive.Ol>"),
14352
- P: makeInteractiveElement("p", "<Interactive.P>"),
14353
- Path: makeInteractiveElement("path", "<Interactive.Path>"),
14354
- Pre: makeInteractiveElement("pre", "<Interactive.Pre>"),
14355
- Rect: makeInteractiveElement("rect", "<Interactive.Rect>"),
14356
- Section: makeInteractiveElement("section", "<Interactive.Section>"),
14357
- Small: makeInteractiveElement("small", "<Interactive.Small>"),
14358
- Span: makeInteractiveElement("span", "<Interactive.Span>"),
14359
- Strong: makeInteractiveElement("strong", "<Interactive.Strong>"),
14360
- Svg: makeInteractiveElement("svg", "<Interactive.Svg>"),
14361
- Text: makeInteractiveElement("text", "<Interactive.Text>"),
14362
- Ul: makeInteractiveElement("ul", "<Interactive.Ul>")
14380
+ A: makeInteractiveTextElement("a", "<Interactive.A>"),
14381
+ Article: makeInteractiveTextElement("article", "<Interactive.Article>"),
14382
+ Aside: makeInteractiveTextElement("aside", "<Interactive.Aside>"),
14383
+ Button: makeInteractiveTextElement("button", "<Interactive.Button>"),
14384
+ Circle: makeInteractiveNonTextElement("circle", "<Interactive.Circle>"),
14385
+ Code: makeInteractiveTextElement("code", "<Interactive.Code>"),
14386
+ Div: makeInteractiveTextElement("div", "<Interactive.Div>"),
14387
+ Ellipse: makeInteractiveNonTextElement("ellipse", "<Interactive.Ellipse>"),
14388
+ Em: makeInteractiveTextElement("em", "<Interactive.Em>"),
14389
+ Footer: makeInteractiveTextElement("footer", "<Interactive.Footer>"),
14390
+ G: makeInteractiveNonTextElement("g", "<Interactive.G>"),
14391
+ H1: makeInteractiveTextElement("h1", "<Interactive.H1>"),
14392
+ H2: makeInteractiveTextElement("h2", "<Interactive.H2>"),
14393
+ H3: makeInteractiveTextElement("h3", "<Interactive.H3>"),
14394
+ H4: makeInteractiveTextElement("h4", "<Interactive.H4>"),
14395
+ H5: makeInteractiveTextElement("h5", "<Interactive.H5>"),
14396
+ H6: makeInteractiveTextElement("h6", "<Interactive.H6>"),
14397
+ Header: makeInteractiveTextElement("header", "<Interactive.Header>"),
14398
+ Label: makeInteractiveTextElement("label", "<Interactive.Label>"),
14399
+ Li: makeInteractiveTextElement("li", "<Interactive.Li>"),
14400
+ Line: makeInteractiveNonTextElement("line", "<Interactive.Line>"),
14401
+ Main: makeInteractiveTextElement("main", "<Interactive.Main>"),
14402
+ Nav: makeInteractiveTextElement("nav", "<Interactive.Nav>"),
14403
+ Ol: makeInteractiveTextElement("ol", "<Interactive.Ol>"),
14404
+ P: makeInteractiveTextElement("p", "<Interactive.P>"),
14405
+ Path: makeInteractiveNonTextElement("path", "<Interactive.Path>"),
14406
+ Pre: makeInteractiveTextElement("pre", "<Interactive.Pre>"),
14407
+ Rect: makeInteractiveNonTextElement("rect", "<Interactive.Rect>"),
14408
+ Section: makeInteractiveTextElement("section", "<Interactive.Section>"),
14409
+ Small: makeInteractiveTextElement("small", "<Interactive.Small>"),
14410
+ Span: makeInteractiveTextElement("span", "<Interactive.Span>"),
14411
+ Strong: makeInteractiveTextElement("strong", "<Interactive.Strong>"),
14412
+ Svg: makeInteractiveNonTextElement("svg", "<Interactive.Svg>"),
14413
+ Text: makeInteractiveTextElement("text", "<Interactive.Text>"),
14414
+ Ul: makeInteractiveTextElement("ul", "<Interactive.Ul>")
14363
14415
  };
14364
14416
  var compositionsRef = React31.createRef();
14365
14417
  var CompositionManagerProvider = ({
@@ -14416,7 +14468,7 @@ var CompositionManagerProvider = ({
14416
14468
  getCompositions: () => currentcompositionsRef.current
14417
14469
  };
14418
14470
  }, []);
14419
- const compositionManagerSetters = useMemo32(() => {
14471
+ const compositionManagerSetters = useMemo33(() => {
14420
14472
  return {
14421
14473
  registerComposition,
14422
14474
  unregisterComposition,
@@ -14432,7 +14484,7 @@ var CompositionManagerProvider = ({
14432
14484
  unregisterFolder,
14433
14485
  onlyRenderComposition
14434
14486
  ]);
14435
- const compositionManagerContextValue = useMemo32(() => {
14487
+ const compositionManagerContextValue = useMemo33(() => {
14436
14488
  return {
14437
14489
  compositions,
14438
14490
  folders,
@@ -14530,7 +14582,7 @@ var waitForRoot = (fn) => {
14530
14582
  };
14531
14583
  var MediaEnabledContext = createContext24(null);
14532
14584
  var useVideoEnabled = () => {
14533
- const context = useContext34(MediaEnabledContext);
14585
+ const context = useContext35(MediaEnabledContext);
14534
14586
  if (!context) {
14535
14587
  return window.remotion_videoEnabled;
14536
14588
  }
@@ -14540,7 +14592,7 @@ var useVideoEnabled = () => {
14540
14592
  return context.videoEnabled;
14541
14593
  };
14542
14594
  var useAudioEnabled = () => {
14543
- const context = useContext34(MediaEnabledContext);
14595
+ const context = useContext35(MediaEnabledContext);
14544
14596
  if (!context) {
14545
14597
  return window.remotion_audioEnabled;
14546
14598
  }
@@ -14554,7 +14606,7 @@ var MediaEnabledProvider = ({
14554
14606
  videoEnabled,
14555
14607
  audioEnabled
14556
14608
  }) => {
14557
- const value = useMemo33(() => ({ videoEnabled, audioEnabled }), [videoEnabled, audioEnabled]);
14609
+ const value = useMemo34(() => ({ videoEnabled, audioEnabled }), [videoEnabled, audioEnabled]);
14558
14610
  return /* @__PURE__ */ jsx31(MediaEnabledContext.Provider, {
14559
14611
  value,
14560
14612
  children
@@ -14570,13 +14622,13 @@ var RemotionRootContexts = ({
14570
14622
  audioEnabled,
14571
14623
  frameState
14572
14624
  }) => {
14573
- const nonceContext = useMemo34(() => {
14625
+ const nonceContext = useMemo35(() => {
14574
14626
  let counter = 0;
14575
14627
  return {
14576
14628
  getNonce: () => counter++
14577
14629
  };
14578
14630
  }, []);
14579
- const logging = useMemo34(() => {
14631
+ const logging = useMemo35(() => {
14580
14632
  return { logLevel, mountTime: Date.now() };
14581
14633
  }, [logLevel]);
14582
14634
  return /* @__PURE__ */ jsx32(LogLevelContext.Provider, {
@@ -14877,13 +14929,13 @@ var OffthreadVideoForRendering = ({
14877
14929
  const frame = useCurrentFrame();
14878
14930
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior);
14879
14931
  const videoConfig = useUnsafeVideoConfig();
14880
- const sequenceContext = useContext36(SequenceContext);
14932
+ const sequenceContext = useContext37(SequenceContext);
14881
14933
  const mediaStartsAt = useMediaStartsAt();
14882
- const { registerRenderAsset, unregisterRenderAsset } = useContext36(RenderAssetManager);
14934
+ const { registerRenderAsset, unregisterRenderAsset } = useContext37(RenderAssetManager);
14883
14935
  if (!src) {
14884
14936
  throw new TypeError("No `src` was passed to <OffthreadVideo>.");
14885
14937
  }
14886
- const id = useMemo35(() => `offthreadvideo-${random(src)}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
14938
+ const id = useMemo36(() => `offthreadvideo-${random(src)}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
14887
14939
  src,
14888
14940
  sequenceContext?.cumulatedFrom,
14889
14941
  sequenceContext?.relativeFrom,
@@ -14938,14 +14990,14 @@ var OffthreadVideoForRendering = ({
14938
14990
  sequenceContext?.cumulatedNegativeFrom,
14939
14991
  audioStreamIndex
14940
14992
  ]);
14941
- const currentTime = useMemo35(() => {
14993
+ const currentTime = useMemo36(() => {
14942
14994
  return getExpectedMediaFrameUncorrected({
14943
14995
  frame,
14944
14996
  playbackRate: playbackRate || 1,
14945
14997
  startFrom: -mediaStartsAt
14946
14998
  }) / videoConfig.fps;
14947
14999
  }, [frame, mediaStartsAt, playbackRate, videoConfig.fps]);
14948
- const actualSrc = useMemo35(() => {
15000
+ const actualSrc = useMemo36(() => {
14949
15001
  return getOffthreadVideoSource({
14950
15002
  src,
14951
15003
  currentTime,
@@ -15033,7 +15085,7 @@ var OffthreadVideoForRendering = ({
15033
15085
  cancelRender("Failed to load image with src " + imageSrc);
15034
15086
  }
15035
15087
  }, [imageSrc, onError]);
15036
- const className = useMemo35(() => {
15088
+ const className = useMemo36(() => {
15037
15089
  return [OBJECTFIT_CONTAIN_CLASS_NAME, props2.className].filter(truthy).join(" ");
15038
15090
  }, [props2.className]);
15039
15091
  const onImageFrame = useCallback22((img) => {
@@ -15097,12 +15149,12 @@ class MediaPlaybackError extends Error {
15097
15149
  }
15098
15150
  }
15099
15151
  var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
15100
- const context = useContext37(SharedAudioContext);
15152
+ const context = useContext38(SharedAudioContext);
15101
15153
  if (!context) {
15102
15154
  throw new Error("SharedAudioContext not found");
15103
15155
  }
15104
15156
  const videoRef = useRef27(null);
15105
- const sharedSource = useMemo36(() => {
15157
+ const sharedSource = useMemo37(() => {
15106
15158
  if (!context.audioContext) {
15107
15159
  return null;
15108
15160
  }
@@ -15154,7 +15206,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
15154
15206
  }
15155
15207
  const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
15156
15208
  const { fps, durationInFrames } = useVideoConfig();
15157
- const parentSequence = useContext37(SequenceContext);
15209
+ const parentSequence = useContext38(SequenceContext);
15158
15210
  const logLevel = useLogLevel();
15159
15211
  const mountTime = useMountTime();
15160
15212
  const [timelineId] = useState21(() => String(Math.random()));
@@ -15305,7 +15357,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
15305
15357
  current.preload = "auto";
15306
15358
  }
15307
15359
  }, []);
15308
- const actualStyle = useMemo36(() => {
15360
+ const actualStyle = useMemo37(() => {
15309
15361
  return {
15310
15362
  ...style
15311
15363
  };
@@ -15501,7 +15553,7 @@ function useRemotionContexts() {
15501
15553
  const visualModePropStatusesRefContext = React40.useContext(VisualModePropStatusesRefContext);
15502
15554
  const bufferManagerContext = React40.useContext(BufferingContextReact);
15503
15555
  const logLevelContext = React40.useContext(LogLevelContext);
15504
- return useMemo37(() => ({
15556
+ return useMemo38(() => ({
15505
15557
  compositionManagerCtx,
15506
15558
  timelineContext,
15507
15559
  setTimelineContext,
@@ -15612,6 +15664,7 @@ var Internals = {
15612
15664
  textSchema,
15613
15665
  transformSchema,
15614
15666
  premountSchema,
15667
+ premountStyleSchema,
15615
15668
  flattenActiveSchema,
15616
15669
  getFlatSchemaWithAllKeys,
15617
15670
  RemotionRootContexts,
@@ -15625,6 +15678,7 @@ var Internals = {
15625
15678
  truthy,
15626
15679
  SequenceContext,
15627
15680
  PremountContext,
15681
+ usePremounting,
15628
15682
  useRemotionContexts,
15629
15683
  RemotionContextProvider,
15630
15684
  CSSUtils: exports_default_css,
@@ -15800,7 +15854,7 @@ var validateSeriesSequenceProps = ({
15800
15854
  return offset;
15801
15855
  };
15802
15856
  var SeriesInner = (props2) => {
15803
- const childrenValue = useMemo38(() => {
15857
+ const childrenValue = useMemo39(() => {
15804
15858
  const flattenedChildren = flattenChildren(props2.children);
15805
15859
  const renderChildren = (i, startFrame) => {
15806
15860
  if (i === flattenedChildren.length) {
@@ -16129,14 +16183,14 @@ var VideoForRenderingForwardFunction = ({
16129
16183
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
16130
16184
  const videoConfig = useUnsafeVideoConfig();
16131
16185
  const videoRef = useRef28(null);
16132
- const sequenceContext = useContext38(SequenceContext);
16186
+ const sequenceContext = useContext39(SequenceContext);
16133
16187
  const mediaStartsAt = useMediaStartsAt();
16134
16188
  const environment = useRemotionEnvironment();
16135
16189
  const logLevel = useLogLevel();
16136
16190
  const mountTime = useMountTime();
16137
16191
  const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
16138
- const { registerRenderAsset, unregisterRenderAsset } = useContext38(RenderAssetManager);
16139
- const id = useMemo39(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
16192
+ const { registerRenderAsset, unregisterRenderAsset } = useContext39(RenderAssetManager);
16193
+ const id = useMemo40(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
16140
16194
  props2.src,
16141
16195
  sequenceContext?.cumulatedFrom,
16142
16196
  sequenceContext?.relativeFrom,
@@ -16347,7 +16401,7 @@ var VideoForwardingFunction = (props2, ref) => {
16347
16401
  if (environment.isClientSideRendering) {
16348
16402
  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");
16349
16403
  }
16350
- const { durations, setDurations } = useContext39(DurationsContext);
16404
+ const { durations, setDurations } = useContext40(DurationsContext);
16351
16405
  if (typeof ref === "string") {
16352
16406
  throw new Error("string refs are not supported");
16353
16407
  }
@@ -16466,7 +16520,7 @@ addSequenceStackTraces(Composition);
16466
16520
  addSequenceStackTraces(Folder);
16467
16521
 
16468
16522
  // ../shapes/dist/esm/index.mjs
16469
- import React, { useCallback as useCallback26, useMemo as useMemo40, useRef as useRef29 } from "react";
16523
+ import React, { useCallback as useCallback26, useMemo as useMemo41, useRef as useRef29 } from "react";
16470
16524
  import { version } from "react-dom";
16471
16525
  import { jsx as jsx40, jsxs as jsxs4 } from "react/jsx-runtime";
16472
16526
  import { jsx as jsx210 } from "react/jsx-runtime";
@@ -16648,13 +16702,13 @@ var RenderSvg = ({
16648
16702
  stack,
16649
16703
  ...props
16650
16704
  }) => {
16651
- const actualStyle = useMemo40(() => {
16705
+ const actualStyle = useMemo41(() => {
16652
16706
  return {
16653
16707
  overflow: "visible",
16654
16708
  ...style ?? {}
16655
16709
  };
16656
16710
  }, [style]);
16657
- const actualPathStyle = useMemo40(() => {
16711
+ const actualPathStyle = useMemo41(() => {
16658
16712
  return {
16659
16713
  transformBox: "fill-box",
16660
16714
  ...pathStyle ?? {}
@@ -19633,7 +19687,7 @@ var useHoverTransforms = (ref, disabled) => {
19633
19687
  progress: 0,
19634
19688
  isActive: false
19635
19689
  });
19636
- const eventTarget = useMemo42(() => new EventTarget, []);
19690
+ const eventTarget = useMemo43(() => new EventTarget, []);
19637
19691
  useEffect21(() => {
19638
19692
  if (disabled) {
19639
19693
  eventTarget.dispatchEvent(new Event("disabled"));