@remotion/promo-pages 4.0.484 → 4.0.486

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 React32, { useEffect as useEffect22, useMemo as useMemo42, useState as useState21 } from "react";
1562
+ import React32, { useEffect as useEffect21, useMemo as useMemo42, useState as useState21 } from "react";
1563
1563
 
1564
1564
  // ../paths/dist/esm/index.mjs
1565
1565
  var cutLInstruction = ({
@@ -3665,6 +3665,94 @@ var getBoundingBox = (d) => {
3665
3665
  const unarced = removeATSHVQInstructions(normalizeInstructions(parsed));
3666
3666
  return getBoundingBoxFromInstructions(unarced);
3667
3667
  };
3668
+ var translateSegments = (segments, x, y) => {
3669
+ return segments.map((segment) => {
3670
+ if (segment.type === "a" || segment.type === "c" || segment.type === "v" || segment.type === "s" || segment.type === "h" || segment.type === "l" || segment.type === "m" || segment.type === "q" || segment.type === "t") {
3671
+ return segment;
3672
+ }
3673
+ if (segment.type === "V") {
3674
+ return {
3675
+ type: "V",
3676
+ y: segment.y + y
3677
+ };
3678
+ }
3679
+ if (segment.type === "H") {
3680
+ return {
3681
+ type: "H",
3682
+ x: segment.x + x
3683
+ };
3684
+ }
3685
+ if (segment.type === "A") {
3686
+ return {
3687
+ type: "A",
3688
+ rx: segment.rx,
3689
+ ry: segment.ry,
3690
+ largeArcFlag: segment.largeArcFlag,
3691
+ sweepFlag: segment.sweepFlag,
3692
+ xAxisRotation: segment.xAxisRotation,
3693
+ x: segment.x + x,
3694
+ y: segment.y + y
3695
+ };
3696
+ }
3697
+ if (segment.type === "Z") {
3698
+ return segment;
3699
+ }
3700
+ if (segment.type === "C") {
3701
+ return {
3702
+ type: "C",
3703
+ cp1x: segment.cp1x + x,
3704
+ cp1y: segment.cp1y + y,
3705
+ cp2x: segment.cp2x + x,
3706
+ cp2y: segment.cp2y + y,
3707
+ x: segment.x + x,
3708
+ y: segment.y + y
3709
+ };
3710
+ }
3711
+ if (segment.type === "Q") {
3712
+ return {
3713
+ type: "Q",
3714
+ cpx: segment.cpx + x,
3715
+ cpy: segment.cpy + y,
3716
+ x: segment.x + x,
3717
+ y: segment.y + y
3718
+ };
3719
+ }
3720
+ if (segment.type === "S") {
3721
+ return {
3722
+ type: "S",
3723
+ cpx: segment.cpx + x,
3724
+ cpy: segment.cpy + y,
3725
+ x: segment.x + x,
3726
+ y: segment.y + y
3727
+ };
3728
+ }
3729
+ if (segment.type === "T") {
3730
+ return {
3731
+ type: "T",
3732
+ x: segment.x + x,
3733
+ y: segment.y + y
3734
+ };
3735
+ }
3736
+ if (segment.type === "L") {
3737
+ return {
3738
+ type: "L",
3739
+ x: segment.x + x,
3740
+ y: segment.y + y
3741
+ };
3742
+ }
3743
+ if (segment.type === "M") {
3744
+ return {
3745
+ type: "M",
3746
+ x: segment.x + x,
3747
+ y: segment.y + y
3748
+ };
3749
+ }
3750
+ throw new Error(`Unknown segment type: ${segment.type}`);
3751
+ });
3752
+ };
3753
+ var translatePath = (path, x, y) => {
3754
+ return serializeInstructions(translateSegments(parsePath(path), x, y));
3755
+ };
3668
3756
  var mod = (x, m) => {
3669
3757
  return (x % m + m) % m;
3670
3758
  };
@@ -4226,94 +4314,6 @@ var getLength = (path) => {
4226
4314
  const constructucted = construct(path);
4227
4315
  return constructucted.totalLength;
4228
4316
  };
4229
- var translateSegments = (segments, x, y) => {
4230
- return segments.map((segment) => {
4231
- if (segment.type === "a" || segment.type === "c" || segment.type === "v" || segment.type === "s" || segment.type === "h" || segment.type === "l" || segment.type === "m" || segment.type === "q" || segment.type === "t") {
4232
- return segment;
4233
- }
4234
- if (segment.type === "V") {
4235
- return {
4236
- type: "V",
4237
- y: segment.y + y
4238
- };
4239
- }
4240
- if (segment.type === "H") {
4241
- return {
4242
- type: "H",
4243
- x: segment.x + x
4244
- };
4245
- }
4246
- if (segment.type === "A") {
4247
- return {
4248
- type: "A",
4249
- rx: segment.rx,
4250
- ry: segment.ry,
4251
- largeArcFlag: segment.largeArcFlag,
4252
- sweepFlag: segment.sweepFlag,
4253
- xAxisRotation: segment.xAxisRotation,
4254
- x: segment.x + x,
4255
- y: segment.y + y
4256
- };
4257
- }
4258
- if (segment.type === "Z") {
4259
- return segment;
4260
- }
4261
- if (segment.type === "C") {
4262
- return {
4263
- type: "C",
4264
- cp1x: segment.cp1x + x,
4265
- cp1y: segment.cp1y + y,
4266
- cp2x: segment.cp2x + x,
4267
- cp2y: segment.cp2y + y,
4268
- x: segment.x + x,
4269
- y: segment.y + y
4270
- };
4271
- }
4272
- if (segment.type === "Q") {
4273
- return {
4274
- type: "Q",
4275
- cpx: segment.cpx + x,
4276
- cpy: segment.cpy + y,
4277
- x: segment.x + x,
4278
- y: segment.y + y
4279
- };
4280
- }
4281
- if (segment.type === "S") {
4282
- return {
4283
- type: "S",
4284
- cpx: segment.cpx + x,
4285
- cpy: segment.cpy + y,
4286
- x: segment.x + x,
4287
- y: segment.y + y
4288
- };
4289
- }
4290
- if (segment.type === "T") {
4291
- return {
4292
- type: "T",
4293
- x: segment.x + x,
4294
- y: segment.y + y
4295
- };
4296
- }
4297
- if (segment.type === "L") {
4298
- return {
4299
- type: "L",
4300
- x: segment.x + x,
4301
- y: segment.y + y
4302
- };
4303
- }
4304
- if (segment.type === "M") {
4305
- return {
4306
- type: "M",
4307
- x: segment.x + x,
4308
- y: segment.y + y
4309
- };
4310
- }
4311
- throw new Error(`Unknown segment type: ${segment.type}`);
4312
- });
4313
- };
4314
- var translatePath = (path, x, y) => {
4315
- return serializeInstructions(translateSegments(parsePath(path), x, y));
4316
- };
4317
4317
  var resetPath = (d) => {
4318
4318
  const box = getBoundingBox(d);
4319
4319
  return translatePath(d, -box.x1, -box.y1);
@@ -4502,8 +4502,8 @@ import {
4502
4502
  forwardRef as forwardRef10,
4503
4503
  useCallback as useCallback17,
4504
4504
  useContext as useContext32,
4505
- useEffect as useEffect17,
4506
4505
  useImperativeHandle as useImperativeHandle7,
4506
+ useLayoutEffect as useLayoutEffect10,
4507
4507
  useMemo as useMemo31,
4508
4508
  useRef as useRef23,
4509
4509
  useState as useState16
@@ -4511,7 +4511,7 @@ import {
4511
4511
  import { jsx as jsx26 } from "react/jsx-runtime";
4512
4512
  import { forwardRef as forwardRef11, useCallback as useCallback18, useState as useState17 } from "react";
4513
4513
  import { jsx as jsx27 } from "react/jsx-runtime";
4514
- import { useCallback as useCallback19, useContext as useContext33, useLayoutEffect as useLayoutEffect10, useRef as useRef24 } from "react";
4514
+ import { useCallback as useCallback19, useContext as useContext33, useLayoutEffect as useLayoutEffect11, useRef as useRef24 } from "react";
4515
4515
  import { jsx as jsx28 } from "react/jsx-runtime";
4516
4516
  import React29, { forwardRef as forwardRef12, useCallback as useCallback20, useRef as useRef25 } from "react";
4517
4517
  import { jsx as jsx29 } from "react/jsx-runtime";
@@ -4537,8 +4537,8 @@ import { useCallback as useCallback24 } from "react";
4537
4537
  import {
4538
4538
  useCallback as useCallback22,
4539
4539
  useContext as useContext36,
4540
- useEffect as useEffect18,
4541
- useLayoutEffect as useLayoutEffect11,
4540
+ useEffect as useEffect17,
4541
+ useLayoutEffect as useLayoutEffect12,
4542
4542
  useMemo as useMemo35,
4543
4543
  useState as useState19
4544
4544
  } from "react";
@@ -4547,13 +4547,13 @@ import React37, {
4547
4547
  forwardRef as forwardRef13,
4548
4548
  useCallback as useCallback23,
4549
4549
  useContext as useContext37,
4550
- useEffect as useEffect20,
4550
+ useEffect as useEffect19,
4551
4551
  useImperativeHandle as useImperativeHandle9,
4552
4552
  useMemo as useMemo36,
4553
4553
  useRef as useRef27,
4554
4554
  useState as useState20
4555
4555
  } from "react";
4556
- import { useEffect as useEffect19 } from "react";
4556
+ import { useEffect as useEffect18 } from "react";
4557
4557
  import { jsx as jsx34 } from "react/jsx-runtime";
4558
4558
  import { jsx as jsx35 } from "react/jsx-runtime";
4559
4559
  import React39, { useMemo as useMemo37 } from "react";
@@ -4570,9 +4570,9 @@ import { forwardRef as forwardRef16, useCallback as useCallback25, useContext as
4570
4570
  import {
4571
4571
  forwardRef as forwardRef15,
4572
4572
  useContext as useContext38,
4573
- useEffect as useEffect21,
4573
+ useEffect as useEffect20,
4574
4574
  useImperativeHandle as useImperativeHandle10,
4575
- useLayoutEffect as useLayoutEffect12,
4575
+ useLayoutEffect as useLayoutEffect13,
4576
4576
  useMemo as useMemo39,
4577
4577
  useRef as useRef28
4578
4578
  } from "react";
@@ -5746,7 +5746,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
5746
5746
  var addSequenceStackTraces = (component) => {
5747
5747
  componentsToAddStacksTo.push(component);
5748
5748
  };
5749
- var VERSION = "4.0.484";
5749
+ var VERSION = "4.0.486";
5750
5750
  var checkMultipleRemotionVersions = () => {
5751
5751
  if (typeof globalThis === "undefined") {
5752
5752
  return;
@@ -6152,6 +6152,12 @@ var textSchema = {
6152
6152
  default: undefined,
6153
6153
  description: "Color"
6154
6154
  },
6155
+ "style.fontFamily": {
6156
+ type: "font-family",
6157
+ default: undefined,
6158
+ description: "Font family",
6159
+ keyframable: false
6160
+ },
6155
6161
  "style.fontSize": {
6156
6162
  type: "number",
6157
6163
  default: undefined,
@@ -6217,6 +6223,14 @@ var textSchema = {
6217
6223
  hiddenFromList: false
6218
6224
  }
6219
6225
  };
6226
+ var textContentSchema = {
6227
+ children: {
6228
+ type: "text-content",
6229
+ default: "",
6230
+ description: "Text",
6231
+ keyframable: false
6232
+ }
6233
+ };
6220
6234
  var premountSchema = {
6221
6235
  premountFor: {
6222
6236
  type: "number",
@@ -8584,10 +8598,21 @@ var getNestedValue = (obj, key) => {
8584
8598
  }
8585
8599
  return current;
8586
8600
  };
8587
- var readValuesFromProps = (props, keys) => {
8601
+ var getRuntimeValueForSchemaKey = ({
8602
+ flatSchema,
8603
+ key,
8604
+ props
8605
+ }) => {
8606
+ const value = getNestedValue(props, key);
8607
+ if (flatSchema[key]?.type === "text-content" && typeof value !== "string") {
8608
+ return;
8609
+ }
8610
+ return value;
8611
+ };
8612
+ var readValuesFromProps = (props, keys, flatSchema) => {
8588
8613
  const out = {};
8589
8614
  for (const key of keys) {
8590
- out[key] = getNestedValue(props, key);
8615
+ out[key] = flatSchema ? getRuntimeValueForSchemaKey({ flatSchema, key, props }) : getNestedValue(props, key);
8591
8616
  }
8592
8617
  return out;
8593
8618
  };
@@ -8595,6 +8620,7 @@ var selectActiveKeys = (schema, values) => {
8595
8620
  return Object.keys(flattenActiveSchema(schema, (key) => values[key]));
8596
8621
  };
8597
8622
  var mergeValues = ({
8623
+ flatSchema,
8598
8624
  props,
8599
8625
  valuesDotNotation,
8600
8626
  schemaKeys,
@@ -8603,6 +8629,9 @@ var mergeValues = ({
8603
8629
  const merged = { ...props };
8604
8630
  for (const key of schemaKeys) {
8605
8631
  const value = valuesDotNotation[key];
8632
+ if (flatSchema[key]?.type === "text-content" && value === undefined) {
8633
+ continue;
8634
+ }
8606
8635
  const parts = key.split(".");
8607
8636
  if (parts.length === 1) {
8608
8637
  merged[key] = value;
@@ -8620,7 +8649,8 @@ var mergeValues = ({
8620
8649
  }
8621
8650
  current[parts[parts.length - 1]] = value;
8622
8651
  }
8623
- deleteNestedKey(merged, propsToDelete);
8652
+ const propsToDeleteWithoutTextContent = new Set([...propsToDelete].filter((key) => !(flatSchema[key]?.type === "text-content" && valuesDotNotation[key] === undefined)));
8653
+ deleteNestedKey(merged, propsToDeleteWithoutTextContent);
8624
8654
  return merged;
8625
8655
  };
8626
8656
  var stackToOverrideMap = {};
@@ -8667,8 +8697,12 @@ var withInteractivitySchema = ({
8667
8697
  return newOverrideId;
8668
8698
  });
8669
8699
  const nodePath = nodePathMapping.overrideIdToNodePathMappings[overrideId] ?? null;
8670
- const runtimeValues = flatKeys.map((k) => getNestedValue(props, k));
8671
- const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys), runtimeValues);
8700
+ const runtimeValues = flatKeys.map((key) => getRuntimeValueForSchemaKey({
8701
+ flatSchema,
8702
+ key,
8703
+ props
8704
+ }));
8705
+ const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
8672
8706
  const controls = useMemo13(() => {
8673
8707
  return {
8674
8708
  schema: schemaWithSequenceName,
@@ -8696,6 +8730,7 @@ var withInteractivitySchema = ({
8696
8730
  ]);
8697
8731
  const activeKeys = selectActiveKeys(schemaWithSequenceName, valuesDotNotation);
8698
8732
  const mergedProps = mergeValues({
8733
+ flatSchema,
8699
8734
  props,
8700
8735
  valuesDotNotation,
8701
8736
  schemaKeys: activeKeys,
@@ -11319,7 +11354,7 @@ var getTimelineDuration = ({
11319
11354
  trimAfter
11320
11355
  });
11321
11356
  if (parentSequenceDurationInFrames !== null) {
11322
- const cappedDuration = Math.min(parentSequenceDurationInFrames * playbackRate, mediaDuration);
11357
+ const cappedDuration = Math.min(parentSequenceDurationInFrames, mediaDuration);
11323
11358
  return Number(cappedDuration.toFixed(10));
11324
11359
  }
11325
11360
  return mediaDuration;
@@ -13453,6 +13488,18 @@ var loadImage = ({
13453
13488
  function exponentialBackoff(errorCount) {
13454
13489
  return 1000 * 2 ** (errorCount - 1);
13455
13490
  }
13491
+ var waitForNextFrame = ({
13492
+ onFrame
13493
+ }) => {
13494
+ if (typeof requestAnimationFrame === "undefined") {
13495
+ onFrame();
13496
+ return () => {
13497
+ return;
13498
+ };
13499
+ }
13500
+ const frame = requestAnimationFrame(onFrame);
13501
+ return () => cancelAnimationFrame(frame);
13502
+ };
13456
13503
  var CanvasImageContent = forwardRef10(({
13457
13504
  src,
13458
13505
  width,
@@ -13482,6 +13529,17 @@ var CanvasImageContent = forwardRef10(({
13482
13529
  overrideId: controls?.overrideId ?? null
13483
13530
  });
13484
13531
  const sequenceContext = useContext32(SequenceContext);
13532
+ const pendingLoadDelayRef = useRef23(null);
13533
+ const continuePendingLoadDelay = useCallback17(() => {
13534
+ const pending = pendingLoadDelayRef.current;
13535
+ if (!pending || pending.continued) {
13536
+ return;
13537
+ }
13538
+ pending.continued = true;
13539
+ pending.unblock();
13540
+ continueRender2(pending.handle);
13541
+ pendingLoadDelayRef.current = null;
13542
+ }, [continueRender2]);
13485
13543
  const sourceCanvas = useMemo31(() => {
13486
13544
  if (typeof document === "undefined") {
13487
13545
  return null;
@@ -13499,7 +13557,7 @@ var CanvasImageContent = forwardRef10(({
13499
13557
  ref.current = canvas;
13500
13558
  }
13501
13559
  }, [ref, refForOutline]);
13502
- useEffect17(() => {
13560
+ useLayoutEffect10(() => {
13503
13561
  const isPremounting = Boolean(sequenceContext?.premounting);
13504
13562
  const isPostmounting = Boolean(sequenceContext?.postmounting);
13505
13563
  const handle = delayRender2(`Rendering <CanvasImage> with src="${truncateSrcForLabel(actualSrc)}"`, {
@@ -13511,17 +13569,13 @@ var CanvasImageContent = forwardRef10(({
13511
13569
  };
13512
13570
  const controller = new AbortController;
13513
13571
  let cancelled = false;
13514
- let continued = false;
13515
13572
  let errorCount = 0;
13516
13573
  let timeoutId = null;
13517
13574
  setLoadedImage(null);
13518
- const continueRenderOnce = () => {
13519
- if (continued) {
13520
- return;
13521
- }
13522
- continued = true;
13523
- unblock();
13524
- continueRender2(handle);
13575
+ pendingLoadDelayRef.current = {
13576
+ handle,
13577
+ unblock,
13578
+ continued: false
13525
13579
  };
13526
13580
  const attemptLoad = () => {
13527
13581
  loadImage({ src: actualSrc, signal: controller.signal }).then((image) => {
@@ -13529,13 +13583,9 @@ var CanvasImageContent = forwardRef10(({
13529
13583
  return;
13530
13584
  }
13531
13585
  setLoadedImage(image);
13532
- }).then(() => {
13533
- if (!cancelled) {
13534
- continueRenderOnce();
13535
- }
13536
13586
  }).catch((err) => {
13537
13587
  if (err.name === "AbortError") {
13538
- continueRenderOnce();
13588
+ continuePendingLoadDelay();
13539
13589
  return;
13540
13590
  }
13541
13591
  errorCount++;
@@ -13549,7 +13599,7 @@ var CanvasImageContent = forwardRef10(({
13549
13599
  }, backoff);
13550
13600
  } else if (onError) {
13551
13601
  onError(err);
13552
- continueRenderOnce();
13602
+ continuePendingLoadDelay();
13553
13603
  } else {
13554
13604
  cancelRender2(err);
13555
13605
  }
@@ -13562,12 +13612,12 @@ var CanvasImageContent = forwardRef10(({
13562
13612
  clearTimeout(timeoutId);
13563
13613
  }
13564
13614
  controller.abort();
13565
- continueRenderOnce();
13615
+ continuePendingLoadDelay();
13566
13616
  };
13567
13617
  }, [
13568
13618
  actualSrc,
13569
13619
  cancelRender2,
13570
- continueRender2,
13620
+ continuePendingLoadDelay,
13571
13621
  delayPlayback,
13572
13622
  delayRender2,
13573
13623
  delayRenderRetries,
@@ -13578,13 +13628,16 @@ var CanvasImageContent = forwardRef10(({
13578
13628
  sequenceContext?.postmounting,
13579
13629
  sequenceContext?.premounting
13580
13630
  ]);
13581
- useEffect17(() => {
13631
+ useLayoutEffect10(() => {
13582
13632
  if (!loadedImage || !outputCanvas || !sourceCanvas) {
13583
13633
  return;
13584
13634
  }
13585
13635
  const handle = delayRender2(`Applying effects to <CanvasImage> with src="${truncateSrcForLabel(actualSrc)}"`);
13586
13636
  let cancelled = false;
13587
13637
  let continued = false;
13638
+ let cancelWaitForNextFrame = () => {
13639
+ return;
13640
+ };
13588
13641
  const continueRenderOnce = () => {
13589
13642
  if (continued) {
13590
13643
  return;
@@ -13619,7 +13672,15 @@ var CanvasImageContent = forwardRef10(({
13619
13672
  height: canvasHeight
13620
13673
  }).then((completed) => {
13621
13674
  if (completed && !cancelled) {
13622
- continueRenderOnce();
13675
+ cancelWaitForNextFrame = waitForNextFrame({
13676
+ onFrame: () => {
13677
+ if (cancelled) {
13678
+ return;
13679
+ }
13680
+ continueRenderOnce();
13681
+ continuePendingLoadDelay();
13682
+ }
13683
+ });
13623
13684
  }
13624
13685
  }).catch((err) => {
13625
13686
  if (cancelled) {
@@ -13628,12 +13689,14 @@ var CanvasImageContent = forwardRef10(({
13628
13689
  if (onError) {
13629
13690
  onError(err);
13630
13691
  continueRenderOnce();
13692
+ continuePendingLoadDelay();
13631
13693
  } else {
13632
13694
  cancelRender2(err);
13633
13695
  }
13634
13696
  });
13635
13697
  return () => {
13636
13698
  cancelled = true;
13699
+ cancelWaitForNextFrame();
13637
13700
  continueRenderOnce();
13638
13701
  };
13639
13702
  }, [
@@ -13641,6 +13704,7 @@ var CanvasImageContent = forwardRef10(({
13641
13704
  cancelRender2,
13642
13705
  chainState,
13643
13706
  continueRender2,
13707
+ continuePendingLoadDelay,
13644
13708
  delayRender2,
13645
13709
  fit,
13646
13710
  height,
@@ -13850,7 +13914,7 @@ var ImgContent = ({
13850
13914
  if (typeof window !== "undefined") {
13851
13915
  const isPremounting = Boolean(sequenceContext?.premounting);
13852
13916
  const isPostmounting = Boolean(sequenceContext?.postmounting);
13853
- useLayoutEffect10(() => {
13917
+ useLayoutEffect11(() => {
13854
13918
  if (window.process?.env?.NODE_ENV === "test") {
13855
13919
  if (imageRef.current) {
13856
13920
  imageRef.current.src = actualSrc;
@@ -14117,7 +14181,8 @@ addSequenceStackTraces(Img);
14117
14181
  var interactiveElementSchema = {
14118
14182
  ...baseSchema,
14119
14183
  ...transformSchema,
14120
- ...textSchema
14184
+ ...textSchema,
14185
+ ...textContentSchema
14121
14186
  };
14122
14187
  var setRef = (ref, value) => {
14123
14188
  if (typeof ref === "function") {
@@ -14745,7 +14810,7 @@ var OffthreadVideoForRendering = ({
14745
14810
  mediaVolume: 1
14746
14811
  });
14747
14812
  warnAboutTooHighVolume(volume);
14748
- useEffect18(() => {
14813
+ useEffect17(() => {
14749
14814
  if (!src) {
14750
14815
  throw new Error("No src passed");
14751
14816
  }
@@ -14802,7 +14867,7 @@ var OffthreadVideoForRendering = ({
14802
14867
  }, [toneMapped, currentTime, src, transparent]);
14803
14868
  const [imageSrc, setImageSrc] = useState19(null);
14804
14869
  const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
14805
- useLayoutEffect11(() => {
14870
+ useLayoutEffect12(() => {
14806
14871
  if (!window.remotion_videoEnabled) {
14807
14872
  return;
14808
14873
  }
@@ -14906,7 +14971,7 @@ var useEmitVideoFrame = ({
14906
14971
  ref,
14907
14972
  onVideoFrame
14908
14973
  }) => {
14909
- useEffect19(() => {
14974
+ useEffect18(() => {
14910
14975
  const { current } = ref;
14911
14976
  if (!current) {
14912
14977
  return;
@@ -15081,7 +15146,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
15081
15146
  tag: "video",
15082
15147
  mountTime
15083
15148
  }));
15084
- useEffect20(() => {
15149
+ useEffect19(() => {
15085
15150
  const { current } = videoRef;
15086
15151
  if (!current) {
15087
15152
  return;
@@ -15124,7 +15189,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
15124
15189
  const currentOnDurationCallback = useRef27(onDuration);
15125
15190
  currentOnDurationCallback.current = onDuration;
15126
15191
  useEmitVideoFrame({ ref: videoRef, onVideoFrame });
15127
- useEffect20(() => {
15192
+ useEffect19(() => {
15128
15193
  const { current } = videoRef;
15129
15194
  if (!current) {
15130
15195
  return;
@@ -15141,7 +15206,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
15141
15206
  current.removeEventListener("loadedmetadata", onLoadedMetadata);
15142
15207
  };
15143
15208
  }, [src]);
15144
- useEffect20(() => {
15209
+ useEffect19(() => {
15145
15210
  const { current } = videoRef;
15146
15211
  if (!current) {
15147
15212
  return;
@@ -15922,7 +15987,7 @@ var VideoForRenderingForwardFunction = ({
15922
15987
  mediaVolume: 1
15923
15988
  });
15924
15989
  warnAboutTooHighVolume(volume);
15925
- useEffect21(() => {
15990
+ useEffect20(() => {
15926
15991
  if (!props2.src) {
15927
15992
  throw new Error("No src passed");
15928
15993
  }
@@ -15966,7 +16031,7 @@ var VideoForRenderingForwardFunction = ({
15966
16031
  return videoRef.current;
15967
16032
  }, []);
15968
16033
  useEmitVideoFrame({ ref: videoRef, onVideoFrame });
15969
- useEffect21(() => {
16034
+ useEffect20(() => {
15970
16035
  if (!window.remotion_videoEnabled) {
15971
16036
  return;
15972
16037
  }
@@ -16056,7 +16121,7 @@ var VideoForRenderingForwardFunction = ({
16056
16121
  ]);
16057
16122
  const { src } = props2;
16058
16123
  if (environment.isRendering) {
16059
- useLayoutEffect12(() => {
16124
+ useLayoutEffect13(() => {
16060
16125
  if (window.process?.env?.NODE_ENV === "test") {
16061
16126
  return;
16062
16127
  }
@@ -19160,7 +19225,7 @@ var extrudeAndTransformElement = (options) => {
19160
19225
  // ../design/dist/esm/index.mjs
19161
19226
  import { jsx as jsx212, Fragment as Fragment3 } from "react/jsx-runtime";
19162
19227
  import { jsx as jsx312, jsxs as jsxs5 } from "react/jsx-runtime";
19163
- import { useEffect as useEffect23, useMemo as useMemo210, useRef as useRef31 } from "react";
19228
+ import { useEffect as useEffect22, useMemo as useMemo210, useRef as useRef31 } from "react";
19164
19229
  import { jsx as jsx45 } from "react/jsx-runtime";
19165
19230
  import { jsx as jsx53, jsxs as jsxs23 } from "react/jsx-runtime";
19166
19231
  import React62 from "react";
@@ -19415,7 +19480,7 @@ var useHoverTransforms = (ref, disabled) => {
19415
19480
  isActive: false
19416
19481
  });
19417
19482
  const eventTarget = useMemo42(() => new EventTarget, []);
19418
- useEffect22(() => {
19483
+ useEffect21(() => {
19419
19484
  if (disabled) {
19420
19485
  eventTarget.dispatchEvent(new Event("disabled"));
19421
19486
  } else {
@@ -19562,7 +19627,7 @@ var getAngle = (ref, coordinates) => {
19562
19627
  var lastCoordinates = null;
19563
19628
  var useMousePosition = (ref) => {
19564
19629
  const [angle, setAngle] = useState21(getAngle(ref.current, lastCoordinates));
19565
- useEffect22(() => {
19630
+ useEffect21(() => {
19566
19631
  const element = ref.current;
19567
19632
  if (!element) {
19568
19633
  return;
@@ -19683,7 +19748,7 @@ var Spinner = ({ size, duration }) => {
19683
19748
  };
19684
19749
  }, [size]);
19685
19750
  const pathsRef = useRef31([]);
19686
- useEffect23(() => {
19751
+ useEffect22(() => {
19687
19752
  const animate = () => {
19688
19753
  const now = performance.now();
19689
19754
  for (let index = 0;index < lines; index++) {