@remotion/studio 4.0.394 → 4.0.396

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.
@@ -34,7 +34,7 @@ import { Internals as Internals66 } from "remotion";
34
34
 
35
35
  // src/components/Editor.tsx
36
36
  import { PlayerInternals as PlayerInternals20 } from "@remotion/player";
37
- import React176, { useCallback as useCallback136, useEffect as useEffect78, useMemo as useMemo135 } from "react";
37
+ import React176, { useCallback as useCallback135, useEffect as useEffect78, useMemo as useMemo135 } from "react";
38
38
  import { Internals as Internals62 } from "remotion";
39
39
 
40
40
  // src/helpers/colors.ts
@@ -18247,6 +18247,10 @@ var TriggerWebRender = () => {
18247
18247
  if (!video?.id) {
18248
18248
  return null;
18249
18249
  }
18250
+ const defaults = window.remotion_renderDefaults;
18251
+ if (!defaults) {
18252
+ throw new TypeError("Expected defaults");
18253
+ }
18250
18254
  const frame2 = getCurrentFrame2();
18251
18255
  setSelectedModal({
18252
18256
  type: "web-render",
@@ -18254,7 +18258,8 @@ var TriggerWebRender = () => {
18254
18258
  compositionId: video.id,
18255
18259
  defaultProps: video.defaultProps,
18256
18260
  inFrameMark: inFrame,
18257
- outFrameMark: outFrame
18261
+ outFrameMark: outFrame,
18262
+ initialLogLevel: defaults.logLevel
18258
18263
  });
18259
18264
  }, [
18260
18265
  getCurrentFrame2,
@@ -20772,7 +20777,7 @@ var getTimelineSequenceLayout = ({
20772
20777
  // src/helpers/use-max-media-duration.ts
20773
20778
  import { getVideoMetadata as getVideoMetadata2 } from "@remotion/media-utils";
20774
20779
 
20775
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/misc.js
20780
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/misc.js
20776
20781
  /*!
20777
20782
  * Copyright (c) 2025-present, Vanilagy and contributors
20778
20783
  *
@@ -21036,6 +21041,19 @@ var getUint24 = (view, byteOffset, littleEndian) => {
21036
21041
  return byte1 << 16 | byte2 << 8 | byte3;
21037
21042
  }
21038
21043
  };
21044
+ var setUint24 = (view, byteOffset, value, littleEndian) => {
21045
+ value = value >>> 0;
21046
+ value = value & 16777215;
21047
+ if (littleEndian) {
21048
+ view.setUint8(byteOffset, value & 255);
21049
+ view.setUint8(byteOffset + 1, value >>> 8 & 255);
21050
+ view.setUint8(byteOffset + 2, value >>> 16 & 255);
21051
+ } else {
21052
+ view.setUint8(byteOffset, value >>> 16 & 255);
21053
+ view.setUint8(byteOffset + 1, value >>> 8 & 255);
21054
+ view.setUint8(byteOffset + 2, value & 255);
21055
+ }
21056
+ };
21039
21057
  var clamp = (value, min, max) => {
21040
21058
  return Math.max(min, Math.min(max, value));
21041
21059
  };
@@ -21189,7 +21207,7 @@ var isNumber = (x) => {
21189
21207
  return typeof x === "number" && !Number.isNaN(x);
21190
21208
  };
21191
21209
 
21192
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/metadata.js
21210
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/metadata.js
21193
21211
  /*!
21194
21212
  * Copyright (c) 2025-present, Vanilagy and contributors
21195
21213
  *
@@ -21240,7 +21258,7 @@ var DEFAULT_TRACK_DISPOSITION = {
21240
21258
  visuallyImpaired: false
21241
21259
  };
21242
21260
 
21243
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/codec.js
21261
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/codec.js
21244
21262
  /*!
21245
21263
  * Copyright (c) 2025-present, Vanilagy and contributors
21246
21264
  *
@@ -21514,7 +21532,7 @@ var parsePcmCodec = (codec) => {
21514
21532
  return { dataType, sampleSize, littleEndian, silentValue };
21515
21533
  };
21516
21534
 
21517
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/codec-data.js
21535
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/codec-data.js
21518
21536
  /*!
21519
21537
  * Copyright (c) 2025-present, Vanilagy and contributors
21520
21538
  *
@@ -21617,6 +21635,45 @@ var removeEmulationPreventionBytes = (data) => {
21617
21635
  }
21618
21636
  return new Uint8Array(result);
21619
21637
  };
21638
+ var ANNEX_B_START_CODE = new Uint8Array([0, 0, 0, 1]);
21639
+ var concatNalUnitsInAnnexB = (nalUnits) => {
21640
+ const totalLength = nalUnits.reduce((a, b) => a + ANNEX_B_START_CODE.byteLength + b.byteLength, 0);
21641
+ const result = new Uint8Array(totalLength);
21642
+ let offset = 0;
21643
+ for (const nalUnit of nalUnits) {
21644
+ result.set(ANNEX_B_START_CODE, offset);
21645
+ offset += ANNEX_B_START_CODE.byteLength;
21646
+ result.set(nalUnit, offset);
21647
+ offset += nalUnit.byteLength;
21648
+ }
21649
+ return result;
21650
+ };
21651
+ var concatNalUnitsInLengthPrefixed = (nalUnits, lengthSize) => {
21652
+ const totalLength = nalUnits.reduce((a, b) => a + lengthSize + b.byteLength, 0);
21653
+ const result = new Uint8Array(totalLength);
21654
+ let offset = 0;
21655
+ for (const nalUnit of nalUnits) {
21656
+ const dataView = new DataView(result.buffer, result.byteOffset, result.byteLength);
21657
+ switch (lengthSize) {
21658
+ case 1:
21659
+ dataView.setUint8(offset, nalUnit.byteLength);
21660
+ break;
21661
+ case 2:
21662
+ dataView.setUint16(offset, nalUnit.byteLength, false);
21663
+ break;
21664
+ case 3:
21665
+ setUint24(dataView, offset, nalUnit.byteLength, false);
21666
+ break;
21667
+ case 4:
21668
+ dataView.setUint32(offset, nalUnit.byteLength, false);
21669
+ break;
21670
+ }
21671
+ offset += lengthSize;
21672
+ result.set(nalUnit, offset);
21673
+ offset += nalUnit.byteLength;
21674
+ }
21675
+ return result;
21676
+ };
21620
21677
  var extractAvcNalUnits = (packetData, decoderConfig) => {
21621
21678
  if (decoderConfig.description) {
21622
21679
  const bytes = toUint8Array(decoderConfig.description);
@@ -21627,6 +21684,16 @@ var extractAvcNalUnits = (packetData, decoderConfig) => {
21627
21684
  return findNalUnitsInAnnexB(packetData);
21628
21685
  }
21629
21686
  };
21687
+ var concatAvcNalUnits = (nalUnits, decoderConfig) => {
21688
+ if (decoderConfig.description) {
21689
+ const bytes = toUint8Array(decoderConfig.description);
21690
+ const lengthSizeMinusOne = bytes[4] & 3;
21691
+ const lengthSize = lengthSizeMinusOne + 1;
21692
+ return concatNalUnitsInLengthPrefixed(nalUnits, lengthSize);
21693
+ } else {
21694
+ return concatNalUnitsInAnnexB(nalUnits);
21695
+ }
21696
+ };
21630
21697
  var extractNalUnitTypeForAvc = (data) => {
21631
21698
  return data[0] & 31;
21632
21699
  };
@@ -22882,7 +22949,7 @@ var readVorbisComments = (bytes, metadataTags) => {
22882
22949
  }
22883
22950
  };
22884
22951
 
22885
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/demuxer.js
22952
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/demuxer.js
22886
22953
  /*!
22887
22954
  * Copyright (c) 2025-present, Vanilagy and contributors
22888
22955
  *
@@ -22897,7 +22964,7 @@ class Demuxer {
22897
22964
  }
22898
22965
  }
22899
22966
 
22900
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/custom-coder.js
22967
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/custom-coder.js
22901
22968
  /*!
22902
22969
  * Copyright (c) 2025-present, Vanilagy and contributors
22903
22970
  *
@@ -22908,7 +22975,7 @@ class Demuxer {
22908
22975
  var customVideoDecoders = [];
22909
22976
  var customAudioDecoders = [];
22910
22977
 
22911
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/packet.js
22978
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/packet.js
22912
22979
  /*!
22913
22980
  * Copyright (c) 2025-present, Vanilagy and contributors
22914
22981
  *
@@ -23040,7 +23107,7 @@ class EncodedPacket {
23040
23107
  }
23041
23108
  }
23042
23109
 
23043
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/sample.js
23110
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/sample.js
23044
23111
  /*!
23045
23112
  * Copyright (c) 2025-present, Vanilagy and contributors
23046
23113
  *
@@ -23716,7 +23783,7 @@ var getPlaneConfigs = (format) => {
23716
23783
  };
23717
23784
  var AUDIO_SAMPLE_FORMATS = new Set(["f32", "f32-planar", "s16", "s16-planar", "s32", "s32-planar", "u8", "u8-planar"]);
23718
23785
 
23719
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/media-sink.js
23786
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/media-sink.js
23720
23787
  /*!
23721
23788
  * Copyright (c) 2025-present, Vanilagy and contributors
23722
23789
  *
@@ -24315,7 +24382,6 @@ class VideoDecoderWrapper extends DecoderWrapper {
24315
24382
  }
24316
24383
  this.raslSkipped = true;
24317
24384
  }
24318
- this.currentPacketIndex++;
24319
24385
  if (this.customDecoder) {
24320
24386
  this.customDecoderQueueSize++;
24321
24387
  this.customDecoderCallSerializer.call(() => this.customDecoder.decode(packet)).then(() => this.customDecoderQueueSize--);
@@ -24324,9 +24390,19 @@ class VideoDecoderWrapper extends DecoderWrapper {
24324
24390
  if (!isWebKit()) {
24325
24391
  insertSorted(this.inputTimestamps, packet.timestamp, (x) => x);
24326
24392
  }
24393
+ if (isChromium() && this.currentPacketIndex === 0 && this.codec === "avc") {
24394
+ const nalUnits = extractAvcNalUnits(packet.data, this.decoderConfig);
24395
+ const filteredNalUnits = nalUnits.filter((x) => {
24396
+ const type = extractNalUnitTypeForAvc(x);
24397
+ return !(type >= 20 && type <= 31);
24398
+ });
24399
+ const newData = concatAvcNalUnits(filteredNalUnits, this.decoderConfig);
24400
+ packet = new EncodedPacket(newData, packet.type, packet.timestamp, packet.duration);
24401
+ }
24327
24402
  this.decoder.decode(packet.toEncodedVideoChunk());
24328
24403
  this.decodeAlphaData(packet);
24329
24404
  }
24405
+ this.currentPacketIndex++;
24330
24406
  }
24331
24407
  decodeAlphaData(packet) {
24332
24408
  if (!packet.sideData.alpha || this.mergerCreationFailed) {
@@ -24661,7 +24737,7 @@ class VideoSampleSink extends BaseMediaSampleSink {
24661
24737
  }
24662
24738
  }
24663
24739
 
24664
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input-track.js
24740
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input-track.js
24665
24741
  /*!
24666
24742
  * Copyright (c) 2025-present, Vanilagy and contributors
24667
24743
  *
@@ -24870,7 +24946,7 @@ class InputAudioTrack extends InputTrack {
24870
24946
  }
24871
24947
  }
24872
24948
 
24873
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
24949
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
24874
24950
  /*!
24875
24951
  * Copyright (c) 2025-present, Vanilagy and contributors
24876
24952
  *
@@ -24888,7 +24964,7 @@ var buildIsobmffMimeType = (info) => {
24888
24964
  return string;
24889
24965
  };
24890
24966
 
24891
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
24967
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
24892
24968
  /*!
24893
24969
  * Copyright (c) 2025-present, Vanilagy and contributors
24894
24970
  *
@@ -24964,7 +25040,7 @@ var readDataBox = (slice) => {
24964
25040
  }
24965
25041
  };
24966
25042
 
24967
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
25043
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
24968
25044
  /*!
24969
25045
  * Copyright (c) 2025-present, Vanilagy and contributors
24970
25046
  *
@@ -27242,7 +27318,7 @@ var sampleTableIsEmpty = (sampleTable) => {
27242
27318
  return sampleTable.sampleSizes.length === 0;
27243
27319
  };
27244
27320
 
27245
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
27321
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
27246
27322
  /*!
27247
27323
  * Copyright (c) 2025-present, Vanilagy and contributors
27248
27324
  *
@@ -27557,7 +27633,7 @@ function assertDefinedSize(size4) {
27557
27633
  }
27558
27634
  }
27559
27635
 
27560
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
27636
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
27561
27637
  /*!
27562
27638
  * Copyright (c) 2025-present, Vanilagy and contributors
27563
27639
  *
@@ -27575,7 +27651,7 @@ var buildMatroskaMimeType = (info) => {
27575
27651
  return string;
27576
27652
  };
27577
27653
 
27578
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
27654
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
27579
27655
  /*!
27580
27656
  * Copyright (c) 2025-present, Vanilagy and contributors
27581
27657
  *
@@ -29454,7 +29530,7 @@ class MatroskaAudioTrackBacking extends MatroskaTrackBacking {
29454
29530
  }
29455
29531
  }
29456
29532
 
29457
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
29533
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
29458
29534
  /*!
29459
29535
  * Copyright (c) 2025-present, Vanilagy and contributors
29460
29536
  *
@@ -29696,7 +29772,7 @@ var decodeSynchsafe = (synchsafed) => {
29696
29772
  return unsynchsafed;
29697
29773
  };
29698
29774
 
29699
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/id3.js
29775
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/id3.js
29700
29776
  /*!
29701
29777
  * Copyright (c) 2025-present, Vanilagy and contributors
29702
29778
  *
@@ -30396,7 +30472,7 @@ class Id3V2Reader {
30396
30472
  }
30397
30473
  }
30398
30474
 
30399
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
30475
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
30400
30476
  /*!
30401
30477
  * Copyright (c) 2025-present, Vanilagy and contributors
30402
30478
  *
@@ -30422,7 +30498,7 @@ var readNextFrameHeader = async (reader, startPos, until) => {
30422
30498
  return null;
30423
30499
  };
30424
30500
 
30425
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
30501
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
30426
30502
  /*!
30427
30503
  * Copyright (c) 2025-present, Vanilagy and contributors
30428
30504
  *
@@ -30687,7 +30763,7 @@ class Mp3AudioTrackBacking {
30687
30763
  }
30688
30764
  }
30689
30765
 
30690
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
30766
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
30691
30767
  /*!
30692
30768
  * Copyright (c) 2025-present, Vanilagy and contributors
30693
30769
  *
@@ -30758,7 +30834,7 @@ var buildOggMimeType = (info) => {
30758
30834
  return string;
30759
30835
  };
30760
30836
 
30761
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
30837
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
30762
30838
  /*!
30763
30839
  * Copyright (c) 2025-present, Vanilagy and contributors
30764
30840
  *
@@ -30822,7 +30898,7 @@ var findNextPageHeader = (slice, until) => {
30822
30898
  return false;
30823
30899
  };
30824
30900
 
30825
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
30901
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
30826
30902
  /*!
30827
30903
  * Copyright (c) 2025-present, Vanilagy and contributors
30828
30904
  *
@@ -31482,7 +31558,7 @@ var findPreviousPacketEndPosition = (pageList, startPage, startSegmentIndex) =>
31482
31558
  return { page: previousPage, segmentIndex: previousPage.lacingValues.length - 1 };
31483
31559
  };
31484
31560
 
31485
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
31561
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
31486
31562
  /*!
31487
31563
  * Copyright (c) 2025-present, Vanilagy and contributors
31488
31564
  *
@@ -31903,7 +31979,7 @@ class WaveAudioTrackBacking {
31903
31979
  }
31904
31980
  }
31905
31981
 
31906
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
31982
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
31907
31983
  /*!
31908
31984
  * Copyright (c) 2025-present, Vanilagy and contributors
31909
31985
  *
@@ -31964,7 +32040,7 @@ var readFrameHeader2 = (slice) => {
31964
32040
  };
31965
32041
  };
31966
32042
 
31967
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
32043
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
31968
32044
  /*!
31969
32045
  * Copyright (c) 2025-present, Vanilagy and contributors
31970
32046
  *
@@ -32185,7 +32261,7 @@ class AdtsAudioTrackBacking {
32185
32261
  }
32186
32262
  }
32187
32263
 
32188
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
32264
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
32189
32265
  /*!
32190
32266
  * Copyright (c) 2025-present, Vanilagy and contributors
32191
32267
  *
@@ -32320,7 +32396,7 @@ var calculateCrc8 = (data) => {
32320
32396
  return crc;
32321
32397
  };
32322
32398
 
32323
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
32399
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
32324
32400
  /*!
32325
32401
  * Copyright (c) 2025-present, Vanilagy and contributors
32326
32402
  *
@@ -32744,7 +32820,7 @@ class FlacAudioTrackBacking {
32744
32820
  }
32745
32821
  }
32746
32822
 
32747
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input-format.js
32823
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input-format.js
32748
32824
  /*!
32749
32825
  * Copyright (c) 2025-present, Vanilagy and contributors
32750
32826
  *
@@ -33066,7 +33142,7 @@ var ADTS = /* @__PURE__ */ new AdtsInputFormat;
33066
33142
  var FLAC = /* @__PURE__ */ new FlacInputFormat;
33067
33143
  var ALL_FORMATS = [MP4, QTFF, MATROSKA, WEBM, WAVE, OGG, FLAC, MP3, ADTS];
33068
33144
 
33069
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/source.js
33145
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/source.js
33070
33146
  var nodeAlias = (() => ({}));
33071
33147
  /*!
33072
33148
  * Copyright (c) 2025-present, Vanilagy and contributors
@@ -33233,7 +33309,7 @@ class UrlSource extends Source {
33233
33309
  }
33234
33310
  }
33235
33311
  if (worker.aborted) {
33236
- break;
33312
+ continue;
33237
33313
  }
33238
33314
  const { done, value } = readResult;
33239
33315
  if (done) {
@@ -33247,11 +33323,7 @@ class UrlSource extends Source {
33247
33323
  this.onread?.(worker.currentPos, worker.currentPos + value.length);
33248
33324
  this._orchestrator.supplyWorkerData(worker, value);
33249
33325
  }
33250
- if (worker.aborted) {
33251
- break;
33252
- }
33253
33326
  }
33254
- worker.running = false;
33255
33327
  }
33256
33328
  _getTotalLengthFromRangeResponse(response) {
33257
33329
  const contentRange = response.headers.get("Content-Range");
@@ -33604,7 +33676,7 @@ class ReadOrchestrator {
33604
33676
  }
33605
33677
  }
33606
33678
 
33607
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input.js
33679
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input.js
33608
33680
  /*!
33609
33681
  * Copyright (c) 2025-present, Vanilagy and contributors
33610
33682
  *
@@ -33711,7 +33783,7 @@ class InputDisposedError extends Error {
33711
33783
  }
33712
33784
  }
33713
33785
 
33714
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/reader.js
33786
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/reader.js
33715
33787
  /*!
33716
33788
  * Copyright (c) 2025-present, Vanilagy and contributors
33717
33789
  *
@@ -33929,7 +34001,7 @@ var readAscii = (slice, length) => {
33929
34001
  }
33930
34002
  return str;
33931
34003
  };
33932
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/index.js
34004
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/index.js
33933
34005
  /*!
33934
34006
  * Copyright (c) 2025-present, Vanilagy and contributors
33935
34007
  *
@@ -40273,6 +40345,26 @@ var humanReadableCodec = (codec) => {
40273
40345
  throw new TypeError(`Got unexpected codec "${codec}"`);
40274
40346
  };
40275
40347
 
40348
+ // src/components/RenderModal/human-readable-loglevel.ts
40349
+ var humanReadableLogLevel = (logLevel) => {
40350
+ if (logLevel === "trace") {
40351
+ return "Trace";
40352
+ }
40353
+ if (logLevel === "verbose") {
40354
+ return "Verbose";
40355
+ }
40356
+ if (logLevel === "info") {
40357
+ return "Info";
40358
+ }
40359
+ if (logLevel === "warn") {
40360
+ return "Warn";
40361
+ }
40362
+ if (logLevel === "error") {
40363
+ return "Error";
40364
+ }
40365
+ throw new TypeError(`Got unexpected log level "${logLevel}"`);
40366
+ };
40367
+
40276
40368
  // src/components/RenderModal/RenderModalBasic.tsx
40277
40369
  import { jsx as jsx251, jsxs as jsxs129 } from "react/jsx-runtime";
40278
40370
  var container56 = {
@@ -40349,9 +40441,21 @@ var RenderModalBasic = ({
40349
40441
  const onValueChange = useCallback124((e) => {
40350
40442
  setOutName(e.target.value);
40351
40443
  }, [setOutName]);
40352
- const onVerboseLoggingChanged = useCallback124((e) => {
40353
- setVerboseLogging(e.target.checked ? "verbose" : "info");
40354
- }, [setVerboseLogging]);
40444
+ const logLevelOptions = useMemo125(() => {
40445
+ return ["trace", "verbose", "info", "warn", "error"].map((level) => {
40446
+ return {
40447
+ label: humanReadableLogLevel(level),
40448
+ onClick: () => setVerboseLogging(level),
40449
+ leftItem: logLevel === level ? /* @__PURE__ */ jsx251(Checkmark, {}) : null,
40450
+ id: level,
40451
+ keyHint: null,
40452
+ quickSwitcherLabel: null,
40453
+ subMenu: null,
40454
+ type: "item",
40455
+ value: level
40456
+ };
40457
+ });
40458
+ }, [logLevel, setVerboseLogging]);
40355
40459
  return /* @__PURE__ */ jsxs129("div", {
40356
40460
  style: container56,
40357
40461
  children: [
@@ -40459,7 +40563,7 @@ var RenderModalBasic = ({
40459
40563
  /* @__PURE__ */ jsxs129("div", {
40460
40564
  style: label5,
40461
40565
  children: [
40462
- "Verbose logging ",
40566
+ "Log Level ",
40463
40567
  /* @__PURE__ */ jsx251(Spacing, {
40464
40568
  x: 0.5
40465
40569
  }),
@@ -40470,10 +40574,10 @@ var RenderModalBasic = ({
40470
40574
  }),
40471
40575
  /* @__PURE__ */ jsx251("div", {
40472
40576
  style: rightRow,
40473
- children: /* @__PURE__ */ jsx251(Checkbox, {
40474
- checked: logLevel === "verbose",
40475
- onChange: onVerboseLoggingChanged,
40476
- name: "verbose-logging"
40577
+ children: /* @__PURE__ */ jsx251(Combobox, {
40578
+ values: logLevelOptions,
40579
+ selectedId: logLevel,
40580
+ title: "Log Level"
40477
40581
  })
40478
40582
  })
40479
40583
  ]
@@ -42195,7 +42299,7 @@ var RenderModalWithLoader = (props) => {
42195
42299
  // src/components/RenderModal/WebRenderModal.tsx
42196
42300
  import { getDefaultOutLocation as getDefaultOutLocation2 } from "@remotion/studio-shared";
42197
42301
  import { renderMediaOnWeb, renderStillOnWeb } from "@remotion/web-renderer";
42198
- import { useCallback as useCallback132, useContext as useContext83, useMemo as useMemo132, useState as useState81 } from "react";
42302
+ import { useCallback as useCallback131, useContext as useContext83, useMemo as useMemo132, useState as useState81 } from "react";
42199
42303
 
42200
42304
  // src/components/RenderModal/WebRenderModalAdvanced.tsx
42201
42305
  import { useCallback as useCallback129, useMemo as useMemo129 } from "react";
@@ -42337,7 +42441,7 @@ var WebRenderModalAdvanced = ({
42337
42441
  };
42338
42442
 
42339
42443
  // src/components/RenderModal/WebRenderModalBasic.tsx
42340
- import { useCallback as useCallback130, useMemo as useMemo130 } from "react";
42444
+ import { useMemo as useMemo130 } from "react";
42341
42445
  import { jsx as jsx259, jsxs as jsxs136, Fragment as Fragment44 } from "react/jsx-runtime";
42342
42446
  var tabContainer2 = {
42343
42447
  flex: 1
@@ -42386,6 +42490,21 @@ var WebRenderModalBasic = ({
42386
42490
  }
42387
42491
  ];
42388
42492
  }, [imageFormat, setStillFormat]);
42493
+ const logLevelOptions = useMemo130(() => {
42494
+ return ["trace", "verbose", "info", "warn", "error"].map((level) => {
42495
+ return {
42496
+ label: humanReadableLogLevel(level),
42497
+ onClick: () => setLogLevel(level),
42498
+ leftItem: logLevel === level ? /* @__PURE__ */ jsx259(Checkmark, {}) : null,
42499
+ id: level,
42500
+ keyHint: null,
42501
+ quickSwitcherLabel: null,
42502
+ subMenu: null,
42503
+ type: "item",
42504
+ value: level
42505
+ };
42506
+ });
42507
+ }, [logLevel, setLogLevel]);
42389
42508
  const containerOptions = useMemo130(() => {
42390
42509
  return [
42391
42510
  {
@@ -42471,9 +42590,6 @@ var WebRenderModalBasic = ({
42471
42590
  }
42472
42591
  ];
42473
42592
  }, [codec, setCodec]);
42474
- const onVerboseLoggingChanged = useCallback130((e) => {
42475
- setLogLevel(e.target.checked ? "verbose" : "info");
42476
- }, [setLogLevel]);
42477
42593
  return /* @__PURE__ */ jsxs136("div", {
42478
42594
  style: tabContainer2,
42479
42595
  children: [
@@ -42589,7 +42705,7 @@ var WebRenderModalBasic = ({
42589
42705
  /* @__PURE__ */ jsxs136("div", {
42590
42706
  style: label5,
42591
42707
  children: [
42592
- "Verbose logging ",
42708
+ "Log Level ",
42593
42709
  /* @__PURE__ */ jsx259(Spacing, {
42594
42710
  x: 0.5
42595
42711
  }),
@@ -42600,10 +42716,10 @@ var WebRenderModalBasic = ({
42600
42716
  }),
42601
42717
  /* @__PURE__ */ jsx259("div", {
42602
42718
  style: rightRow,
42603
- children: /* @__PURE__ */ jsx259(Checkbox, {
42604
- checked: logLevel === "verbose",
42605
- onChange: onVerboseLoggingChanged,
42606
- name: "verbose-logging"
42719
+ children: /* @__PURE__ */ jsx259(Combobox, {
42720
+ values: logLevelOptions,
42721
+ selectedId: logLevel,
42722
+ title: "Log Level"
42607
42723
  })
42608
42724
  })
42609
42725
  ]
@@ -42613,7 +42729,7 @@ var WebRenderModalBasic = ({
42613
42729
  };
42614
42730
 
42615
42731
  // src/components/RenderModal/WebRenderModalPicture.tsx
42616
- import { useCallback as useCallback131, useMemo as useMemo131 } from "react";
42732
+ import { useCallback as useCallback130, useMemo as useMemo131 } from "react";
42617
42733
  import { jsx as jsx260, jsxs as jsxs137 } from "react/jsx-runtime";
42618
42734
  var tabContainer3 = {
42619
42735
  flex: 1
@@ -42686,7 +42802,7 @@ var WebRenderModalPicture = ({
42686
42802
  }
42687
42803
  ];
42688
42804
  }, [videoBitrate, setVideoBitrate]);
42689
- const onTransparentChanged = useCallback131((e) => {
42805
+ const onTransparentChanged = useCallback130((e) => {
42690
42806
  setTransparent(e.target.checked);
42691
42807
  }, [setTransparent]);
42692
42808
  if (renderMode !== "video") {
@@ -42791,7 +42907,8 @@ var WebRenderModal = ({
42791
42907
  initialFrame,
42792
42908
  defaultProps,
42793
42909
  inFrameMark,
42794
- outFrameMark
42910
+ outFrameMark,
42911
+ initialLogLevel
42795
42912
  }) => {
42796
42913
  const context = useContext83(ResolvedCompositionContext);
42797
42914
  if (!context) {
@@ -42801,11 +42918,14 @@ var WebRenderModal = ({
42801
42918
  resolved: { result: resolvedComposition },
42802
42919
  unresolved: unresolvedComposition
42803
42920
  } = context;
42804
- const [renderMode, setRenderMode] = useState81("video");
42921
+ const [isVideo] = useState81(() => {
42922
+ return typeof resolvedComposition.durationInFrames === "undefined" ? true : resolvedComposition.durationInFrames > 1;
42923
+ });
42924
+ const [renderMode, setRenderMode] = useState81(isVideo ? "video" : "still");
42805
42925
  const [tab, setTab] = useState81("general");
42806
42926
  const [imageFormat, setImageFormat] = useState81("png");
42807
42927
  const [frame2, setFrame] = useState81(() => initialFrame);
42808
- const [logLevel, setLogLevel] = useState81("info");
42928
+ const [logLevel, setLogLevel] = useState81(() => initialLogLevel);
42809
42929
  const [inputProps, setInputProps] = useState81(() => defaultProps);
42810
42930
  const [delayRenderTimeout, setDelayRenderTimeout] = useState81(30000);
42811
42931
  const [mediaCacheSizeInBytes, setMediaCacheSizeInBytes] = useState81(null);
@@ -42840,28 +42960,28 @@ var WebRenderModal = ({
42840
42960
  const [initialOutName] = useState81(() => {
42841
42961
  return getDefaultOutLocation2({
42842
42962
  compositionName: resolvedComposition.id,
42843
- defaultExtension: container60,
42963
+ defaultExtension: renderMode === "still" ? imageFormat : isVideo ? container60 : imageFormat,
42844
42964
  type: "asset",
42845
42965
  compositionDefaultOutName: resolvedComposition.defaultOutName,
42846
42966
  clientSideRender: true
42847
42967
  });
42848
42968
  });
42849
42969
  const [outName, setOutName] = useState81(() => initialOutName);
42850
- const setStillFormat = useCallback132((format) => {
42970
+ const setStillFormat = useCallback131((format) => {
42851
42971
  setImageFormat(format);
42852
42972
  setOutName((prev) => {
42853
42973
  const newFileName = getStringBeforeSuffix(prev) + "." + format;
42854
42974
  return newFileName;
42855
42975
  });
42856
42976
  }, []);
42857
- const setContainerFormat = useCallback132((newContainer) => {
42977
+ const setContainerFormat = useCallback131((newContainer) => {
42858
42978
  setContainer(newContainer);
42859
42979
  setOutName((prev) => {
42860
42980
  const newFileName = getStringBeforeSuffix(prev) + "." + newContainer;
42861
42981
  return newFileName;
42862
42982
  });
42863
42983
  }, []);
42864
- const onRenderModeChange = useCallback132((newMode) => {
42984
+ const onRenderModeChange = useCallback131((newMode) => {
42865
42985
  setRenderMode(newMode);
42866
42986
  if (newMode === "video") {
42867
42987
  setOutName((prev) => {
@@ -42898,10 +43018,10 @@ var WebRenderModal = ({
42898
43018
  }
42899
43019
  return options;
42900
43020
  }, [renderMode, resolvedComposition.durationInFrames, onRenderModeChange]);
42901
- const onFrameSetDirectly = useCallback132((newFrame) => {
43021
+ const onFrameSetDirectly = useCallback131((newFrame) => {
42902
43022
  setFrame(newFrame);
42903
43023
  }, [setFrame]);
42904
- const onFrameChanged = useCallback132((e) => {
43024
+ const onFrameChanged = useCallback131((e) => {
42905
43025
  setFrame((q) => {
42906
43026
  const newFrame = parseFloat(e);
42907
43027
  if (Number.isNaN(newFrame)) {
@@ -42910,7 +43030,7 @@ var WebRenderModal = ({
42910
43030
  return newFrame;
42911
43031
  });
42912
43032
  }, [setFrame]);
42913
- const onOutNameChange = useCallback132((e) => {
43033
+ const onOutNameChange = useCallback131((e) => {
42914
43034
  setOutName(e.target.value);
42915
43035
  }, []);
42916
43036
  const outnameValidation = useMemo132(() => {
@@ -42952,8 +43072,8 @@ var WebRenderModal = ({
42952
43072
  return { valid: false, error: err };
42953
43073
  }
42954
43074
  }, [outName, imageFormat, renderMode, container60]);
42955
- const onRenderStill = useCallback132(async () => {
42956
- const blob = await renderStillOnWeb({
43075
+ const onRenderStill = useCallback131(async () => {
43076
+ const { blob } = await renderStillOnWeb({
42957
43077
  composition: {
42958
43078
  component: unresolvedComposition.component,
42959
43079
  width: resolvedComposition.width,
@@ -42995,7 +43115,7 @@ var WebRenderModal = ({
42995
43115
  unresolvedComposition.calculateMetadata,
42996
43116
  resolvedComposition.id
42997
43117
  ]);
42998
- const onRenderVideo = useCallback132(async () => {
43118
+ const onRenderVideo = useCallback131(async () => {
42999
43119
  setRenderProgress({ renderedFrames: 0, encodedFrames: 0 });
43000
43120
  const { getBlob } = await renderMediaOnWeb({
43001
43121
  composition: {
@@ -43055,7 +43175,7 @@ var WebRenderModal = ({
43055
43175
  resolvedComposition.id,
43056
43176
  unresolvedComposition.calculateMetadata
43057
43177
  ]);
43058
- const onRender = useCallback132(async () => {
43178
+ const onRender = useCallback131(async () => {
43059
43179
  if (renderMode === "still") {
43060
43180
  await onRenderStill();
43061
43181
  } else {
@@ -43225,10 +43345,10 @@ var WebRenderModalWithLoader = (props) => {
43225
43345
  };
43226
43346
 
43227
43347
  // src/components/UpdateModal/UpdateModal.tsx
43228
- import { useCallback as useCallback135, useMemo as useMemo134 } from "react";
43348
+ import { useCallback as useCallback134, useMemo as useMemo134 } from "react";
43229
43349
 
43230
43350
  // src/components/CopyButton.tsx
43231
- import { useCallback as useCallback133, useEffect as useEffect77, useState as useState82 } from "react";
43351
+ import { useCallback as useCallback132, useEffect as useEffect77, useState as useState82 } from "react";
43232
43352
  import { jsx as jsx262, jsxs as jsxs139 } from "react/jsx-runtime";
43233
43353
  var iconStyle8 = {
43234
43354
  width: 16,
@@ -43259,7 +43379,7 @@ var labelStyle5 = {
43259
43379
  };
43260
43380
  var CopyButton = ({ textToCopy, label: label12, labelWhenCopied }) => {
43261
43381
  const [copied, setCopied] = useState82(false);
43262
- const onClick = useCallback133(() => {
43382
+ const onClick = useCallback132(() => {
43263
43383
  copyText(textToCopy).then(() => {
43264
43384
  setCopied(Date.now());
43265
43385
  }).catch((err) => {
@@ -43291,7 +43411,7 @@ var CopyButton = ({ textToCopy, label: label12, labelWhenCopied }) => {
43291
43411
  };
43292
43412
 
43293
43413
  // src/components/UpdateModal/OpenIssueButton.tsx
43294
- import { useCallback as useCallback134, useMemo as useMemo133, useState as useState83 } from "react";
43414
+ import { useCallback as useCallback133, useMemo as useMemo133, useState as useState83 } from "react";
43295
43415
  import { jsx as jsx263 } from "react/jsx-runtime";
43296
43416
  var svgStyle3 = {
43297
43417
  width: "11px",
@@ -43308,7 +43428,7 @@ var buttonStyle8 = {
43308
43428
  var OpenIssueButton = ({ link: link3 }) => {
43309
43429
  const [hovered, setHovered] = useState83(false);
43310
43430
  const buttonTooltip = `Open GitHub issue in new Tab`;
43311
- const handleClick = useCallback134(() => {
43431
+ const handleClick = useCallback133(() => {
43312
43432
  window.open(link3, "_blank");
43313
43433
  }, [link3]);
43314
43434
  const svgFillColor = useMemo133(() => {
@@ -43322,10 +43442,10 @@ var OpenIssueButton = ({ link: link3 }) => {
43322
43442
  d: "M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"
43323
43443
  })
43324
43444
  });
43325
- const onPointerEnter = useCallback134(() => {
43445
+ const onPointerEnter = useCallback133(() => {
43326
43446
  setHovered(true);
43327
43447
  }, []);
43328
- const onPointerLeave = useCallback134(() => {
43448
+ const onPointerLeave = useCallback133(() => {
43329
43449
  setHovered(false);
43330
43450
  }, []);
43331
43451
  return /* @__PURE__ */ jsx263("button", {
@@ -43412,7 +43532,7 @@ var UpdateModal = ({ info, knownBugs }) => {
43412
43532
  return knownBugs && knownBugs?.length > 0;
43413
43533
  }, [knownBugs]);
43414
43534
  const command = commands[info.packageManager];
43415
- const onClick = useCallback135(() => {
43535
+ const onClick = useCallback134(() => {
43416
43536
  copyText(command).catch((err) => {
43417
43537
  showNotification(`Could not copy: ${err.message}`, 2000);
43418
43538
  });
@@ -43528,7 +43648,8 @@ var Modals = ({ readOnlyStudio }) => {
43528
43648
  compositionId: modalContextType.compositionId,
43529
43649
  defaultProps: modalContextType.defaultProps,
43530
43650
  inFrameMark: modalContextType.inFrameMark,
43531
- outFrameMark: modalContextType.outFrameMark
43651
+ outFrameMark: modalContextType.outFrameMark,
43652
+ initialLogLevel: modalContextType.initialLogLevel
43532
43653
  }),
43533
43654
  modalContextType && canRender && modalContextType.type === "server-render" && /* @__PURE__ */ jsx266(RenderModalWithLoader, {
43534
43655
  initialFrame: modalContextType.initialFrame,
@@ -43631,7 +43752,7 @@ var Editor = ({ Root, readOnlyStudio }) => {
43631
43752
  };
43632
43753
  }, [readOnlyStudio]);
43633
43754
  const [canvasMounted, setCanvasMounted] = React176.useState(false);
43634
- const onMounted = useCallback136(() => {
43755
+ const onMounted = useCallback135(() => {
43635
43756
  setCanvasMounted(true);
43636
43757
  }, []);
43637
43758
  const value = useMemo135(() => {
@@ -43687,7 +43808,7 @@ var Editor = ({ Root, readOnlyStudio }) => {
43687
43808
  import { PlayerInternals as PlayerInternals21 } from "@remotion/player";
43688
43809
 
43689
43810
  // src/state/preview-size.tsx
43690
- import { useCallback as useCallback137, useContext as useContext85, useMemo as useMemo136, useState as useState84 } from "react";
43811
+ import { useCallback as useCallback136, useContext as useContext85, useMemo as useMemo136, useState as useState84 } from "react";
43691
43812
  import { Internals as Internals63 } from "remotion";
43692
43813
  import { jsx as jsx268 } from "react/jsx-runtime";
43693
43814
  var key5 = "remotion.previewSize";
@@ -43716,7 +43837,7 @@ var PreviewSizeProvider = ({ children }) => {
43716
43837
  };
43717
43838
  });
43718
43839
  const { editorZoomGestures } = useContext85(EditorZoomGesturesContext);
43719
- const setSize = useCallback137((newValue) => {
43840
+ const setSize = useCallback136((newValue) => {
43720
43841
  setSizeState((prevState) => {
43721
43842
  const newVal = newValue(prevState);
43722
43843
  persistPreviewSizeOption(newVal);
@@ -43744,11 +43865,11 @@ var PreviewSizeProvider = ({ children }) => {
43744
43865
  };
43745
43866
 
43746
43867
  // src/components/CheckerboardProvider.tsx
43747
- import { useCallback as useCallback138, useMemo as useMemo137, useState as useState85 } from "react";
43868
+ import { useCallback as useCallback137, useMemo as useMemo137, useState as useState85 } from "react";
43748
43869
  import { jsx as jsx269 } from "react/jsx-runtime";
43749
43870
  var CheckerboardProvider = ({ children }) => {
43750
43871
  const [checkerboard, setCheckerboardState] = useState85(() => loadCheckerboardOption());
43751
- const setCheckerboard = useCallback138((newValue) => {
43872
+ const setCheckerboard = useCallback137((newValue) => {
43752
43873
  setCheckerboardState((prevState) => {
43753
43874
  const newVal = newValue(prevState);
43754
43875
  persistCheckerboardOption(newVal);
@@ -43850,7 +43971,7 @@ var SetTimelineInOutProvider = ({ children }) => {
43850
43971
  };
43851
43972
 
43852
43973
  // src/components/ShowGuidesProvider.tsx
43853
- import { useCallback as useCallback139, useMemo as useMemo141, useRef as useRef42, useState as useState89 } from "react";
43974
+ import { useCallback as useCallback138, useMemo as useMemo141, useRef as useRef42, useState as useState89 } from "react";
43854
43975
  import { jsx as jsx273 } from "react/jsx-runtime";
43855
43976
  var ShowGuidesProvider = ({ children }) => {
43856
43977
  const [guidesList, setGuidesList] = useState89(() => loadGuidesList());
@@ -43859,7 +43980,7 @@ var ShowGuidesProvider = ({ children }) => {
43859
43980
  const [editorShowGuides, setEditorShowGuidesState] = useState89(() => loadEditorShowGuidesOption());
43860
43981
  const shouldCreateGuideRef = useRef42(false);
43861
43982
  const shouldDeleteGuideRef = useRef42(false);
43862
- const setEditorShowGuides = useCallback139((newValue) => {
43983
+ const setEditorShowGuides = useCallback138((newValue) => {
43863
43984
  setEditorShowGuidesState((prevState) => {
43864
43985
  const newVal = newValue(prevState);
43865
43986
  persistEditorShowGuidesOption(newVal);
@@ -43893,11 +44014,11 @@ var ShowGuidesProvider = ({ children }) => {
43893
44014
  };
43894
44015
 
43895
44016
  // src/components/ShowRulersProvider.tsx
43896
- import { useCallback as useCallback140, useMemo as useMemo142, useState as useState90 } from "react";
44017
+ import { useCallback as useCallback139, useMemo as useMemo142, useState as useState90 } from "react";
43897
44018
  import { jsx as jsx274 } from "react/jsx-runtime";
43898
44019
  var ShowRulersProvider = ({ children }) => {
43899
44020
  const [editorShowRulers, setEditorShowRulersState] = useState90(() => loadEditorShowRulersOption());
43900
- const setEditorShowRulers = useCallback140((newValue) => {
44021
+ const setEditorShowRulers = useCallback139((newValue) => {
43901
44022
  setEditorShowRulersState((prevState) => {
43902
44023
  const newVal = newValue(prevState);
43903
44024
  persistEditorShowRulersOption(newVal);
@@ -43917,11 +44038,11 @@ var ShowRulersProvider = ({ children }) => {
43917
44038
  };
43918
44039
 
43919
44040
  // src/components/ZoomGesturesProvider.tsx
43920
- import { useCallback as useCallback141, useMemo as useMemo143, useState as useState91 } from "react";
44041
+ import { useCallback as useCallback140, useMemo as useMemo143, useState as useState91 } from "react";
43921
44042
  import { jsx as jsx275 } from "react/jsx-runtime";
43922
44043
  var ZoomGesturesProvider = ({ children }) => {
43923
44044
  const [editorZoomGestures, setEditorZoomGesturesState] = useState91(() => loadEditorZoomGesturesOption());
43924
- const setEditorZoomGestures = useCallback141((newValue) => {
44045
+ const setEditorZoomGestures = useCallback140((newValue) => {
43925
44046
  setEditorZoomGesturesState((prevState) => {
43926
44047
  const newVal = newValue(prevState);
43927
44048
  persistEditorZoomGesturesOption(newVal);