@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.
- package/dist/components/Modals.js +1 -1
- package/dist/components/RenderModal/RenderModalBasic.js +17 -5
- package/dist/components/RenderModal/WebRenderModal.js +14 -5
- package/dist/components/RenderModal/WebRenderModalBasic.js +17 -5
- package/dist/components/RenderModal/human-readable-loglevel.d.ts +2 -0
- package/dist/components/RenderModal/human-readable-loglevel.js +22 -0
- package/dist/components/WebRender/TriggerWebRender.js +5 -0
- package/dist/esm/{chunk-ate3k4rb.js → chunk-khjn7st6.js} +216 -95
- package/dist/esm/internals.mjs +216 -95
- package/dist/esm/previewEntry.mjs +216 -95
- package/dist/esm/renderEntry.mjs +1 -1
- package/dist/state/modals.d.ts +1 -0
- package/package.json +10 -10
|
@@ -10,7 +10,7 @@ import { Internals as Internals66 } from "remotion";
|
|
|
10
10
|
|
|
11
11
|
// src/components/Editor.tsx
|
|
12
12
|
import { PlayerInternals as PlayerInternals20 } from "@remotion/player";
|
|
13
|
-
import React175, { useCallback as
|
|
13
|
+
import React175, { useCallback as useCallback134, useEffect as useEffect78, useMemo as useMemo135 } from "react";
|
|
14
14
|
import { Internals as Internals62 } from "remotion";
|
|
15
15
|
|
|
16
16
|
// src/helpers/colors.ts
|
|
@@ -17948,6 +17948,10 @@ var TriggerWebRender = () => {
|
|
|
17948
17948
|
if (!video?.id) {
|
|
17949
17949
|
return null;
|
|
17950
17950
|
}
|
|
17951
|
+
const defaults = window.remotion_renderDefaults;
|
|
17952
|
+
if (!defaults) {
|
|
17953
|
+
throw new TypeError("Expected defaults");
|
|
17954
|
+
}
|
|
17951
17955
|
const frame2 = getCurrentFrame2();
|
|
17952
17956
|
setSelectedModal({
|
|
17953
17957
|
type: "web-render",
|
|
@@ -17955,7 +17959,8 @@ var TriggerWebRender = () => {
|
|
|
17955
17959
|
compositionId: video.id,
|
|
17956
17960
|
defaultProps: video.defaultProps,
|
|
17957
17961
|
inFrameMark: inFrame,
|
|
17958
|
-
outFrameMark: outFrame
|
|
17962
|
+
outFrameMark: outFrame,
|
|
17963
|
+
initialLogLevel: defaults.logLevel
|
|
17959
17964
|
});
|
|
17960
17965
|
}, [
|
|
17961
17966
|
getCurrentFrame2,
|
|
@@ -20473,7 +20478,7 @@ var getTimelineSequenceLayout = ({
|
|
|
20473
20478
|
// src/helpers/use-max-media-duration.ts
|
|
20474
20479
|
import { getVideoMetadata as getVideoMetadata2 } from "@remotion/media-utils";
|
|
20475
20480
|
|
|
20476
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
20481
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/misc.js
|
|
20477
20482
|
/*!
|
|
20478
20483
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
20479
20484
|
*
|
|
@@ -20737,6 +20742,19 @@ var getUint24 = (view, byteOffset, littleEndian) => {
|
|
|
20737
20742
|
return byte1 << 16 | byte2 << 8 | byte3;
|
|
20738
20743
|
}
|
|
20739
20744
|
};
|
|
20745
|
+
var setUint24 = (view, byteOffset, value, littleEndian) => {
|
|
20746
|
+
value = value >>> 0;
|
|
20747
|
+
value = value & 16777215;
|
|
20748
|
+
if (littleEndian) {
|
|
20749
|
+
view.setUint8(byteOffset, value & 255);
|
|
20750
|
+
view.setUint8(byteOffset + 1, value >>> 8 & 255);
|
|
20751
|
+
view.setUint8(byteOffset + 2, value >>> 16 & 255);
|
|
20752
|
+
} else {
|
|
20753
|
+
view.setUint8(byteOffset, value >>> 16 & 255);
|
|
20754
|
+
view.setUint8(byteOffset + 1, value >>> 8 & 255);
|
|
20755
|
+
view.setUint8(byteOffset + 2, value & 255);
|
|
20756
|
+
}
|
|
20757
|
+
};
|
|
20740
20758
|
var clamp = (value, min, max) => {
|
|
20741
20759
|
return Math.max(min, Math.min(max, value));
|
|
20742
20760
|
};
|
|
@@ -20890,7 +20908,7 @@ var isNumber = (x) => {
|
|
|
20890
20908
|
return typeof x === "number" && !Number.isNaN(x);
|
|
20891
20909
|
};
|
|
20892
20910
|
|
|
20893
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
20911
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/metadata.js
|
|
20894
20912
|
/*!
|
|
20895
20913
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
20896
20914
|
*
|
|
@@ -20941,7 +20959,7 @@ var DEFAULT_TRACK_DISPOSITION = {
|
|
|
20941
20959
|
visuallyImpaired: false
|
|
20942
20960
|
};
|
|
20943
20961
|
|
|
20944
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
20962
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/codec.js
|
|
20945
20963
|
/*!
|
|
20946
20964
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
20947
20965
|
*
|
|
@@ -21215,7 +21233,7 @@ var parsePcmCodec = (codec) => {
|
|
|
21215
21233
|
return { dataType, sampleSize, littleEndian, silentValue };
|
|
21216
21234
|
};
|
|
21217
21235
|
|
|
21218
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
21236
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/codec-data.js
|
|
21219
21237
|
/*!
|
|
21220
21238
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
21221
21239
|
*
|
|
@@ -21318,6 +21336,45 @@ var removeEmulationPreventionBytes = (data) => {
|
|
|
21318
21336
|
}
|
|
21319
21337
|
return new Uint8Array(result);
|
|
21320
21338
|
};
|
|
21339
|
+
var ANNEX_B_START_CODE = new Uint8Array([0, 0, 0, 1]);
|
|
21340
|
+
var concatNalUnitsInAnnexB = (nalUnits) => {
|
|
21341
|
+
const totalLength = nalUnits.reduce((a, b) => a + ANNEX_B_START_CODE.byteLength + b.byteLength, 0);
|
|
21342
|
+
const result = new Uint8Array(totalLength);
|
|
21343
|
+
let offset = 0;
|
|
21344
|
+
for (const nalUnit of nalUnits) {
|
|
21345
|
+
result.set(ANNEX_B_START_CODE, offset);
|
|
21346
|
+
offset += ANNEX_B_START_CODE.byteLength;
|
|
21347
|
+
result.set(nalUnit, offset);
|
|
21348
|
+
offset += nalUnit.byteLength;
|
|
21349
|
+
}
|
|
21350
|
+
return result;
|
|
21351
|
+
};
|
|
21352
|
+
var concatNalUnitsInLengthPrefixed = (nalUnits, lengthSize) => {
|
|
21353
|
+
const totalLength = nalUnits.reduce((a, b) => a + lengthSize + b.byteLength, 0);
|
|
21354
|
+
const result = new Uint8Array(totalLength);
|
|
21355
|
+
let offset = 0;
|
|
21356
|
+
for (const nalUnit of nalUnits) {
|
|
21357
|
+
const dataView = new DataView(result.buffer, result.byteOffset, result.byteLength);
|
|
21358
|
+
switch (lengthSize) {
|
|
21359
|
+
case 1:
|
|
21360
|
+
dataView.setUint8(offset, nalUnit.byteLength);
|
|
21361
|
+
break;
|
|
21362
|
+
case 2:
|
|
21363
|
+
dataView.setUint16(offset, nalUnit.byteLength, false);
|
|
21364
|
+
break;
|
|
21365
|
+
case 3:
|
|
21366
|
+
setUint24(dataView, offset, nalUnit.byteLength, false);
|
|
21367
|
+
break;
|
|
21368
|
+
case 4:
|
|
21369
|
+
dataView.setUint32(offset, nalUnit.byteLength, false);
|
|
21370
|
+
break;
|
|
21371
|
+
}
|
|
21372
|
+
offset += lengthSize;
|
|
21373
|
+
result.set(nalUnit, offset);
|
|
21374
|
+
offset += nalUnit.byteLength;
|
|
21375
|
+
}
|
|
21376
|
+
return result;
|
|
21377
|
+
};
|
|
21321
21378
|
var extractAvcNalUnits = (packetData, decoderConfig) => {
|
|
21322
21379
|
if (decoderConfig.description) {
|
|
21323
21380
|
const bytes = toUint8Array(decoderConfig.description);
|
|
@@ -21328,6 +21385,16 @@ var extractAvcNalUnits = (packetData, decoderConfig) => {
|
|
|
21328
21385
|
return findNalUnitsInAnnexB(packetData);
|
|
21329
21386
|
}
|
|
21330
21387
|
};
|
|
21388
|
+
var concatAvcNalUnits = (nalUnits, decoderConfig) => {
|
|
21389
|
+
if (decoderConfig.description) {
|
|
21390
|
+
const bytes = toUint8Array(decoderConfig.description);
|
|
21391
|
+
const lengthSizeMinusOne = bytes[4] & 3;
|
|
21392
|
+
const lengthSize = lengthSizeMinusOne + 1;
|
|
21393
|
+
return concatNalUnitsInLengthPrefixed(nalUnits, lengthSize);
|
|
21394
|
+
} else {
|
|
21395
|
+
return concatNalUnitsInAnnexB(nalUnits);
|
|
21396
|
+
}
|
|
21397
|
+
};
|
|
21331
21398
|
var extractNalUnitTypeForAvc = (data) => {
|
|
21332
21399
|
return data[0] & 31;
|
|
21333
21400
|
};
|
|
@@ -22583,7 +22650,7 @@ var readVorbisComments = (bytes, metadataTags) => {
|
|
|
22583
22650
|
}
|
|
22584
22651
|
};
|
|
22585
22652
|
|
|
22586
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
22653
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/demuxer.js
|
|
22587
22654
|
/*!
|
|
22588
22655
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
22589
22656
|
*
|
|
@@ -22598,7 +22665,7 @@ class Demuxer {
|
|
|
22598
22665
|
}
|
|
22599
22666
|
}
|
|
22600
22667
|
|
|
22601
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
22668
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/custom-coder.js
|
|
22602
22669
|
/*!
|
|
22603
22670
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
22604
22671
|
*
|
|
@@ -22609,7 +22676,7 @@ class Demuxer {
|
|
|
22609
22676
|
var customVideoDecoders = [];
|
|
22610
22677
|
var customAudioDecoders = [];
|
|
22611
22678
|
|
|
22612
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
22679
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/packet.js
|
|
22613
22680
|
/*!
|
|
22614
22681
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
22615
22682
|
*
|
|
@@ -22741,7 +22808,7 @@ class EncodedPacket {
|
|
|
22741
22808
|
}
|
|
22742
22809
|
}
|
|
22743
22810
|
|
|
22744
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
22811
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/sample.js
|
|
22745
22812
|
/*!
|
|
22746
22813
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
22747
22814
|
*
|
|
@@ -23417,7 +23484,7 @@ var getPlaneConfigs = (format) => {
|
|
|
23417
23484
|
};
|
|
23418
23485
|
var AUDIO_SAMPLE_FORMATS = new Set(["f32", "f32-planar", "s16", "s16-planar", "s32", "s32-planar", "u8", "u8-planar"]);
|
|
23419
23486
|
|
|
23420
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
23487
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/media-sink.js
|
|
23421
23488
|
/*!
|
|
23422
23489
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
23423
23490
|
*
|
|
@@ -24016,7 +24083,6 @@ class VideoDecoderWrapper extends DecoderWrapper {
|
|
|
24016
24083
|
}
|
|
24017
24084
|
this.raslSkipped = true;
|
|
24018
24085
|
}
|
|
24019
|
-
this.currentPacketIndex++;
|
|
24020
24086
|
if (this.customDecoder) {
|
|
24021
24087
|
this.customDecoderQueueSize++;
|
|
24022
24088
|
this.customDecoderCallSerializer.call(() => this.customDecoder.decode(packet)).then(() => this.customDecoderQueueSize--);
|
|
@@ -24025,9 +24091,19 @@ class VideoDecoderWrapper extends DecoderWrapper {
|
|
|
24025
24091
|
if (!isWebKit()) {
|
|
24026
24092
|
insertSorted(this.inputTimestamps, packet.timestamp, (x) => x);
|
|
24027
24093
|
}
|
|
24094
|
+
if (isChromium() && this.currentPacketIndex === 0 && this.codec === "avc") {
|
|
24095
|
+
const nalUnits = extractAvcNalUnits(packet.data, this.decoderConfig);
|
|
24096
|
+
const filteredNalUnits = nalUnits.filter((x) => {
|
|
24097
|
+
const type = extractNalUnitTypeForAvc(x);
|
|
24098
|
+
return !(type >= 20 && type <= 31);
|
|
24099
|
+
});
|
|
24100
|
+
const newData = concatAvcNalUnits(filteredNalUnits, this.decoderConfig);
|
|
24101
|
+
packet = new EncodedPacket(newData, packet.type, packet.timestamp, packet.duration);
|
|
24102
|
+
}
|
|
24028
24103
|
this.decoder.decode(packet.toEncodedVideoChunk());
|
|
24029
24104
|
this.decodeAlphaData(packet);
|
|
24030
24105
|
}
|
|
24106
|
+
this.currentPacketIndex++;
|
|
24031
24107
|
}
|
|
24032
24108
|
decodeAlphaData(packet) {
|
|
24033
24109
|
if (!packet.sideData.alpha || this.mergerCreationFailed) {
|
|
@@ -24362,7 +24438,7 @@ class VideoSampleSink extends BaseMediaSampleSink {
|
|
|
24362
24438
|
}
|
|
24363
24439
|
}
|
|
24364
24440
|
|
|
24365
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
24441
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input-track.js
|
|
24366
24442
|
/*!
|
|
24367
24443
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
24368
24444
|
*
|
|
@@ -24571,7 +24647,7 @@ class InputAudioTrack extends InputTrack {
|
|
|
24571
24647
|
}
|
|
24572
24648
|
}
|
|
24573
24649
|
|
|
24574
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
24650
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
|
|
24575
24651
|
/*!
|
|
24576
24652
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
24577
24653
|
*
|
|
@@ -24589,7 +24665,7 @@ var buildIsobmffMimeType = (info) => {
|
|
|
24589
24665
|
return string;
|
|
24590
24666
|
};
|
|
24591
24667
|
|
|
24592
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
24668
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
|
|
24593
24669
|
/*!
|
|
24594
24670
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
24595
24671
|
*
|
|
@@ -24665,7 +24741,7 @@ var readDataBox = (slice) => {
|
|
|
24665
24741
|
}
|
|
24666
24742
|
};
|
|
24667
24743
|
|
|
24668
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
24744
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
|
|
24669
24745
|
/*!
|
|
24670
24746
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
24671
24747
|
*
|
|
@@ -26943,7 +27019,7 @@ var sampleTableIsEmpty = (sampleTable) => {
|
|
|
26943
27019
|
return sampleTable.sampleSizes.length === 0;
|
|
26944
27020
|
};
|
|
26945
27021
|
|
|
26946
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
27022
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
|
|
26947
27023
|
/*!
|
|
26948
27024
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
26949
27025
|
*
|
|
@@ -27258,7 +27334,7 @@ function assertDefinedSize(size4) {
|
|
|
27258
27334
|
}
|
|
27259
27335
|
}
|
|
27260
27336
|
|
|
27261
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
27337
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
|
|
27262
27338
|
/*!
|
|
27263
27339
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
27264
27340
|
*
|
|
@@ -27276,7 +27352,7 @@ var buildMatroskaMimeType = (info) => {
|
|
|
27276
27352
|
return string;
|
|
27277
27353
|
};
|
|
27278
27354
|
|
|
27279
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
27355
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
|
|
27280
27356
|
/*!
|
|
27281
27357
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
27282
27358
|
*
|
|
@@ -29155,7 +29231,7 @@ class MatroskaAudioTrackBacking extends MatroskaTrackBacking {
|
|
|
29155
29231
|
}
|
|
29156
29232
|
}
|
|
29157
29233
|
|
|
29158
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
29234
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
|
|
29159
29235
|
/*!
|
|
29160
29236
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
29161
29237
|
*
|
|
@@ -29397,7 +29473,7 @@ var decodeSynchsafe = (synchsafed) => {
|
|
|
29397
29473
|
return unsynchsafed;
|
|
29398
29474
|
};
|
|
29399
29475
|
|
|
29400
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
29476
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/id3.js
|
|
29401
29477
|
/*!
|
|
29402
29478
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
29403
29479
|
*
|
|
@@ -30097,7 +30173,7 @@ class Id3V2Reader {
|
|
|
30097
30173
|
}
|
|
30098
30174
|
}
|
|
30099
30175
|
|
|
30100
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
30176
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
|
|
30101
30177
|
/*!
|
|
30102
30178
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30103
30179
|
*
|
|
@@ -30123,7 +30199,7 @@ var readNextFrameHeader = async (reader, startPos, until) => {
|
|
|
30123
30199
|
return null;
|
|
30124
30200
|
};
|
|
30125
30201
|
|
|
30126
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
30202
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
|
|
30127
30203
|
/*!
|
|
30128
30204
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30129
30205
|
*
|
|
@@ -30388,7 +30464,7 @@ class Mp3AudioTrackBacking {
|
|
|
30388
30464
|
}
|
|
30389
30465
|
}
|
|
30390
30466
|
|
|
30391
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
30467
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
|
|
30392
30468
|
/*!
|
|
30393
30469
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30394
30470
|
*
|
|
@@ -30459,7 +30535,7 @@ var buildOggMimeType = (info) => {
|
|
|
30459
30535
|
return string;
|
|
30460
30536
|
};
|
|
30461
30537
|
|
|
30462
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
30538
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
|
|
30463
30539
|
/*!
|
|
30464
30540
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30465
30541
|
*
|
|
@@ -30523,7 +30599,7 @@ var findNextPageHeader = (slice, until) => {
|
|
|
30523
30599
|
return false;
|
|
30524
30600
|
};
|
|
30525
30601
|
|
|
30526
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
30602
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
|
|
30527
30603
|
/*!
|
|
30528
30604
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30529
30605
|
*
|
|
@@ -31183,7 +31259,7 @@ var findPreviousPacketEndPosition = (pageList, startPage, startSegmentIndex) =>
|
|
|
31183
31259
|
return { page: previousPage, segmentIndex: previousPage.lacingValues.length - 1 };
|
|
31184
31260
|
};
|
|
31185
31261
|
|
|
31186
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
31262
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
|
|
31187
31263
|
/*!
|
|
31188
31264
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31189
31265
|
*
|
|
@@ -31604,7 +31680,7 @@ class WaveAudioTrackBacking {
|
|
|
31604
31680
|
}
|
|
31605
31681
|
}
|
|
31606
31682
|
|
|
31607
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
31683
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
|
|
31608
31684
|
/*!
|
|
31609
31685
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31610
31686
|
*
|
|
@@ -31665,7 +31741,7 @@ var readFrameHeader2 = (slice) => {
|
|
|
31665
31741
|
};
|
|
31666
31742
|
};
|
|
31667
31743
|
|
|
31668
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
31744
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
|
|
31669
31745
|
/*!
|
|
31670
31746
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31671
31747
|
*
|
|
@@ -31886,7 +31962,7 @@ class AdtsAudioTrackBacking {
|
|
|
31886
31962
|
}
|
|
31887
31963
|
}
|
|
31888
31964
|
|
|
31889
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
31965
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
|
|
31890
31966
|
/*!
|
|
31891
31967
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31892
31968
|
*
|
|
@@ -32021,7 +32097,7 @@ var calculateCrc8 = (data) => {
|
|
|
32021
32097
|
return crc;
|
|
32022
32098
|
};
|
|
32023
32099
|
|
|
32024
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
32100
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
|
|
32025
32101
|
/*!
|
|
32026
32102
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
32027
32103
|
*
|
|
@@ -32445,7 +32521,7 @@ class FlacAudioTrackBacking {
|
|
|
32445
32521
|
}
|
|
32446
32522
|
}
|
|
32447
32523
|
|
|
32448
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
32524
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input-format.js
|
|
32449
32525
|
/*!
|
|
32450
32526
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
32451
32527
|
*
|
|
@@ -32767,7 +32843,7 @@ var ADTS = /* @__PURE__ */ new AdtsInputFormat;
|
|
|
32767
32843
|
var FLAC = /* @__PURE__ */ new FlacInputFormat;
|
|
32768
32844
|
var ALL_FORMATS = [MP4, QTFF, MATROSKA, WEBM, WAVE, OGG, FLAC, MP3, ADTS];
|
|
32769
32845
|
|
|
32770
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
32846
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/source.js
|
|
32771
32847
|
var nodeAlias = (() => ({}));
|
|
32772
32848
|
/*!
|
|
32773
32849
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
@@ -32934,7 +33010,7 @@ class UrlSource extends Source {
|
|
|
32934
33010
|
}
|
|
32935
33011
|
}
|
|
32936
33012
|
if (worker.aborted) {
|
|
32937
|
-
|
|
33013
|
+
continue;
|
|
32938
33014
|
}
|
|
32939
33015
|
const { done, value } = readResult;
|
|
32940
33016
|
if (done) {
|
|
@@ -32948,11 +33024,7 @@ class UrlSource extends Source {
|
|
|
32948
33024
|
this.onread?.(worker.currentPos, worker.currentPos + value.length);
|
|
32949
33025
|
this._orchestrator.supplyWorkerData(worker, value);
|
|
32950
33026
|
}
|
|
32951
|
-
if (worker.aborted) {
|
|
32952
|
-
break;
|
|
32953
|
-
}
|
|
32954
33027
|
}
|
|
32955
|
-
worker.running = false;
|
|
32956
33028
|
}
|
|
32957
33029
|
_getTotalLengthFromRangeResponse(response) {
|
|
32958
33030
|
const contentRange = response.headers.get("Content-Range");
|
|
@@ -33305,7 +33377,7 @@ class ReadOrchestrator {
|
|
|
33305
33377
|
}
|
|
33306
33378
|
}
|
|
33307
33379
|
|
|
33308
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
33380
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input.js
|
|
33309
33381
|
/*!
|
|
33310
33382
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
33311
33383
|
*
|
|
@@ -33412,7 +33484,7 @@ class InputDisposedError extends Error {
|
|
|
33412
33484
|
}
|
|
33413
33485
|
}
|
|
33414
33486
|
|
|
33415
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
33487
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/reader.js
|
|
33416
33488
|
/*!
|
|
33417
33489
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
33418
33490
|
*
|
|
@@ -33630,7 +33702,7 @@ var readAscii = (slice, length) => {
|
|
|
33630
33702
|
}
|
|
33631
33703
|
return str;
|
|
33632
33704
|
};
|
|
33633
|
-
// ../../node_modules/.bun/mediabunny@1.27.
|
|
33705
|
+
// ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/index.js
|
|
33634
33706
|
/*!
|
|
33635
33707
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
33636
33708
|
*
|
|
@@ -39974,6 +40046,26 @@ var humanReadableCodec = (codec) => {
|
|
|
39974
40046
|
throw new TypeError(`Got unexpected codec "${codec}"`);
|
|
39975
40047
|
};
|
|
39976
40048
|
|
|
40049
|
+
// src/components/RenderModal/human-readable-loglevel.ts
|
|
40050
|
+
var humanReadableLogLevel = (logLevel) => {
|
|
40051
|
+
if (logLevel === "trace") {
|
|
40052
|
+
return "Trace";
|
|
40053
|
+
}
|
|
40054
|
+
if (logLevel === "verbose") {
|
|
40055
|
+
return "Verbose";
|
|
40056
|
+
}
|
|
40057
|
+
if (logLevel === "info") {
|
|
40058
|
+
return "Info";
|
|
40059
|
+
}
|
|
40060
|
+
if (logLevel === "warn") {
|
|
40061
|
+
return "Warn";
|
|
40062
|
+
}
|
|
40063
|
+
if (logLevel === "error") {
|
|
40064
|
+
return "Error";
|
|
40065
|
+
}
|
|
40066
|
+
throw new TypeError(`Got unexpected log level "${logLevel}"`);
|
|
40067
|
+
};
|
|
40068
|
+
|
|
39977
40069
|
// src/components/RenderModal/RenderModalBasic.tsx
|
|
39978
40070
|
import { jsx as jsx250, jsxs as jsxs129 } from "react/jsx-runtime";
|
|
39979
40071
|
var container56 = {
|
|
@@ -40050,9 +40142,21 @@ var RenderModalBasic = ({
|
|
|
40050
40142
|
const onValueChange = useCallback123((e) => {
|
|
40051
40143
|
setOutName(e.target.value);
|
|
40052
40144
|
}, [setOutName]);
|
|
40053
|
-
const
|
|
40054
|
-
|
|
40055
|
-
|
|
40145
|
+
const logLevelOptions = useMemo125(() => {
|
|
40146
|
+
return ["trace", "verbose", "info", "warn", "error"].map((level) => {
|
|
40147
|
+
return {
|
|
40148
|
+
label: humanReadableLogLevel(level),
|
|
40149
|
+
onClick: () => setVerboseLogging(level),
|
|
40150
|
+
leftItem: logLevel === level ? /* @__PURE__ */ jsx250(Checkmark, {}) : null,
|
|
40151
|
+
id: level,
|
|
40152
|
+
keyHint: null,
|
|
40153
|
+
quickSwitcherLabel: null,
|
|
40154
|
+
subMenu: null,
|
|
40155
|
+
type: "item",
|
|
40156
|
+
value: level
|
|
40157
|
+
};
|
|
40158
|
+
});
|
|
40159
|
+
}, [logLevel, setVerboseLogging]);
|
|
40056
40160
|
return /* @__PURE__ */ jsxs129("div", {
|
|
40057
40161
|
style: container56,
|
|
40058
40162
|
children: [
|
|
@@ -40160,7 +40264,7 @@ var RenderModalBasic = ({
|
|
|
40160
40264
|
/* @__PURE__ */ jsxs129("div", {
|
|
40161
40265
|
style: label5,
|
|
40162
40266
|
children: [
|
|
40163
|
-
"
|
|
40267
|
+
"Log Level ",
|
|
40164
40268
|
/* @__PURE__ */ jsx250(Spacing, {
|
|
40165
40269
|
x: 0.5
|
|
40166
40270
|
}),
|
|
@@ -40171,10 +40275,10 @@ var RenderModalBasic = ({
|
|
|
40171
40275
|
}),
|
|
40172
40276
|
/* @__PURE__ */ jsx250("div", {
|
|
40173
40277
|
style: rightRow,
|
|
40174
|
-
children: /* @__PURE__ */ jsx250(
|
|
40175
|
-
|
|
40176
|
-
|
|
40177
|
-
|
|
40278
|
+
children: /* @__PURE__ */ jsx250(Combobox, {
|
|
40279
|
+
values: logLevelOptions,
|
|
40280
|
+
selectedId: logLevel,
|
|
40281
|
+
title: "Log Level"
|
|
40178
40282
|
})
|
|
40179
40283
|
})
|
|
40180
40284
|
]
|
|
@@ -41896,7 +42000,7 @@ var RenderModalWithLoader = (props) => {
|
|
|
41896
42000
|
// src/components/RenderModal/WebRenderModal.tsx
|
|
41897
42001
|
import { getDefaultOutLocation as getDefaultOutLocation2 } from "@remotion/studio-shared";
|
|
41898
42002
|
import { renderMediaOnWeb, renderStillOnWeb } from "@remotion/web-renderer";
|
|
41899
|
-
import { useCallback as
|
|
42003
|
+
import { useCallback as useCallback130, useContext as useContext83, useMemo as useMemo132, useState as useState80 } from "react";
|
|
41900
42004
|
|
|
41901
42005
|
// src/components/RenderModal/WebRenderModalAdvanced.tsx
|
|
41902
42006
|
import { useCallback as useCallback128, useMemo as useMemo129 } from "react";
|
|
@@ -42038,7 +42142,7 @@ var WebRenderModalAdvanced = ({
|
|
|
42038
42142
|
};
|
|
42039
42143
|
|
|
42040
42144
|
// src/components/RenderModal/WebRenderModalBasic.tsx
|
|
42041
|
-
import {
|
|
42145
|
+
import { useMemo as useMemo130 } from "react";
|
|
42042
42146
|
import { jsx as jsx258, jsxs as jsxs136, Fragment as Fragment44 } from "react/jsx-runtime";
|
|
42043
42147
|
var tabContainer2 = {
|
|
42044
42148
|
flex: 1
|
|
@@ -42087,6 +42191,21 @@ var WebRenderModalBasic = ({
|
|
|
42087
42191
|
}
|
|
42088
42192
|
];
|
|
42089
42193
|
}, [imageFormat, setStillFormat]);
|
|
42194
|
+
const logLevelOptions = useMemo130(() => {
|
|
42195
|
+
return ["trace", "verbose", "info", "warn", "error"].map((level) => {
|
|
42196
|
+
return {
|
|
42197
|
+
label: humanReadableLogLevel(level),
|
|
42198
|
+
onClick: () => setLogLevel(level),
|
|
42199
|
+
leftItem: logLevel === level ? /* @__PURE__ */ jsx258(Checkmark, {}) : null,
|
|
42200
|
+
id: level,
|
|
42201
|
+
keyHint: null,
|
|
42202
|
+
quickSwitcherLabel: null,
|
|
42203
|
+
subMenu: null,
|
|
42204
|
+
type: "item",
|
|
42205
|
+
value: level
|
|
42206
|
+
};
|
|
42207
|
+
});
|
|
42208
|
+
}, [logLevel, setLogLevel]);
|
|
42090
42209
|
const containerOptions = useMemo130(() => {
|
|
42091
42210
|
return [
|
|
42092
42211
|
{
|
|
@@ -42172,9 +42291,6 @@ var WebRenderModalBasic = ({
|
|
|
42172
42291
|
}
|
|
42173
42292
|
];
|
|
42174
42293
|
}, [codec, setCodec]);
|
|
42175
|
-
const onVerboseLoggingChanged = useCallback129((e) => {
|
|
42176
|
-
setLogLevel(e.target.checked ? "verbose" : "info");
|
|
42177
|
-
}, [setLogLevel]);
|
|
42178
42294
|
return /* @__PURE__ */ jsxs136("div", {
|
|
42179
42295
|
style: tabContainer2,
|
|
42180
42296
|
children: [
|
|
@@ -42290,7 +42406,7 @@ var WebRenderModalBasic = ({
|
|
|
42290
42406
|
/* @__PURE__ */ jsxs136("div", {
|
|
42291
42407
|
style: label5,
|
|
42292
42408
|
children: [
|
|
42293
|
-
"
|
|
42409
|
+
"Log Level ",
|
|
42294
42410
|
/* @__PURE__ */ jsx258(Spacing, {
|
|
42295
42411
|
x: 0.5
|
|
42296
42412
|
}),
|
|
@@ -42301,10 +42417,10 @@ var WebRenderModalBasic = ({
|
|
|
42301
42417
|
}),
|
|
42302
42418
|
/* @__PURE__ */ jsx258("div", {
|
|
42303
42419
|
style: rightRow,
|
|
42304
|
-
children: /* @__PURE__ */ jsx258(
|
|
42305
|
-
|
|
42306
|
-
|
|
42307
|
-
|
|
42420
|
+
children: /* @__PURE__ */ jsx258(Combobox, {
|
|
42421
|
+
values: logLevelOptions,
|
|
42422
|
+
selectedId: logLevel,
|
|
42423
|
+
title: "Log Level"
|
|
42308
42424
|
})
|
|
42309
42425
|
})
|
|
42310
42426
|
]
|
|
@@ -42314,7 +42430,7 @@ var WebRenderModalBasic = ({
|
|
|
42314
42430
|
};
|
|
42315
42431
|
|
|
42316
42432
|
// src/components/RenderModal/WebRenderModalPicture.tsx
|
|
42317
|
-
import { useCallback as
|
|
42433
|
+
import { useCallback as useCallback129, useMemo as useMemo131 } from "react";
|
|
42318
42434
|
import { jsx as jsx259, jsxs as jsxs137 } from "react/jsx-runtime";
|
|
42319
42435
|
var tabContainer3 = {
|
|
42320
42436
|
flex: 1
|
|
@@ -42387,7 +42503,7 @@ var WebRenderModalPicture = ({
|
|
|
42387
42503
|
}
|
|
42388
42504
|
];
|
|
42389
42505
|
}, [videoBitrate, setVideoBitrate]);
|
|
42390
|
-
const onTransparentChanged =
|
|
42506
|
+
const onTransparentChanged = useCallback129((e) => {
|
|
42391
42507
|
setTransparent(e.target.checked);
|
|
42392
42508
|
}, [setTransparent]);
|
|
42393
42509
|
if (renderMode !== "video") {
|
|
@@ -42492,7 +42608,8 @@ var WebRenderModal = ({
|
|
|
42492
42608
|
initialFrame,
|
|
42493
42609
|
defaultProps,
|
|
42494
42610
|
inFrameMark,
|
|
42495
|
-
outFrameMark
|
|
42611
|
+
outFrameMark,
|
|
42612
|
+
initialLogLevel
|
|
42496
42613
|
}) => {
|
|
42497
42614
|
const context = useContext83(ResolvedCompositionContext);
|
|
42498
42615
|
if (!context) {
|
|
@@ -42502,11 +42619,14 @@ var WebRenderModal = ({
|
|
|
42502
42619
|
resolved: { result: resolvedComposition },
|
|
42503
42620
|
unresolved: unresolvedComposition
|
|
42504
42621
|
} = context;
|
|
42505
|
-
const [
|
|
42622
|
+
const [isVideo] = useState80(() => {
|
|
42623
|
+
return typeof resolvedComposition.durationInFrames === "undefined" ? true : resolvedComposition.durationInFrames > 1;
|
|
42624
|
+
});
|
|
42625
|
+
const [renderMode, setRenderMode] = useState80(isVideo ? "video" : "still");
|
|
42506
42626
|
const [tab, setTab] = useState80("general");
|
|
42507
42627
|
const [imageFormat, setImageFormat] = useState80("png");
|
|
42508
42628
|
const [frame2, setFrame] = useState80(() => initialFrame);
|
|
42509
|
-
const [logLevel, setLogLevel] = useState80(
|
|
42629
|
+
const [logLevel, setLogLevel] = useState80(() => initialLogLevel);
|
|
42510
42630
|
const [inputProps, setInputProps] = useState80(() => defaultProps);
|
|
42511
42631
|
const [delayRenderTimeout, setDelayRenderTimeout] = useState80(30000);
|
|
42512
42632
|
const [mediaCacheSizeInBytes, setMediaCacheSizeInBytes] = useState80(null);
|
|
@@ -42541,28 +42661,28 @@ var WebRenderModal = ({
|
|
|
42541
42661
|
const [initialOutName] = useState80(() => {
|
|
42542
42662
|
return getDefaultOutLocation2({
|
|
42543
42663
|
compositionName: resolvedComposition.id,
|
|
42544
|
-
defaultExtension: container60,
|
|
42664
|
+
defaultExtension: renderMode === "still" ? imageFormat : isVideo ? container60 : imageFormat,
|
|
42545
42665
|
type: "asset",
|
|
42546
42666
|
compositionDefaultOutName: resolvedComposition.defaultOutName,
|
|
42547
42667
|
clientSideRender: true
|
|
42548
42668
|
});
|
|
42549
42669
|
});
|
|
42550
42670
|
const [outName, setOutName] = useState80(() => initialOutName);
|
|
42551
|
-
const setStillFormat =
|
|
42671
|
+
const setStillFormat = useCallback130((format) => {
|
|
42552
42672
|
setImageFormat(format);
|
|
42553
42673
|
setOutName((prev) => {
|
|
42554
42674
|
const newFileName = getStringBeforeSuffix(prev) + "." + format;
|
|
42555
42675
|
return newFileName;
|
|
42556
42676
|
});
|
|
42557
42677
|
}, []);
|
|
42558
|
-
const setContainerFormat =
|
|
42678
|
+
const setContainerFormat = useCallback130((newContainer) => {
|
|
42559
42679
|
setContainer(newContainer);
|
|
42560
42680
|
setOutName((prev) => {
|
|
42561
42681
|
const newFileName = getStringBeforeSuffix(prev) + "." + newContainer;
|
|
42562
42682
|
return newFileName;
|
|
42563
42683
|
});
|
|
42564
42684
|
}, []);
|
|
42565
|
-
const onRenderModeChange =
|
|
42685
|
+
const onRenderModeChange = useCallback130((newMode) => {
|
|
42566
42686
|
setRenderMode(newMode);
|
|
42567
42687
|
if (newMode === "video") {
|
|
42568
42688
|
setOutName((prev) => {
|
|
@@ -42599,10 +42719,10 @@ var WebRenderModal = ({
|
|
|
42599
42719
|
}
|
|
42600
42720
|
return options;
|
|
42601
42721
|
}, [renderMode, resolvedComposition.durationInFrames, onRenderModeChange]);
|
|
42602
|
-
const onFrameSetDirectly =
|
|
42722
|
+
const onFrameSetDirectly = useCallback130((newFrame) => {
|
|
42603
42723
|
setFrame(newFrame);
|
|
42604
42724
|
}, [setFrame]);
|
|
42605
|
-
const onFrameChanged =
|
|
42725
|
+
const onFrameChanged = useCallback130((e) => {
|
|
42606
42726
|
setFrame((q) => {
|
|
42607
42727
|
const newFrame = parseFloat(e);
|
|
42608
42728
|
if (Number.isNaN(newFrame)) {
|
|
@@ -42611,7 +42731,7 @@ var WebRenderModal = ({
|
|
|
42611
42731
|
return newFrame;
|
|
42612
42732
|
});
|
|
42613
42733
|
}, [setFrame]);
|
|
42614
|
-
const onOutNameChange =
|
|
42734
|
+
const onOutNameChange = useCallback130((e) => {
|
|
42615
42735
|
setOutName(e.target.value);
|
|
42616
42736
|
}, []);
|
|
42617
42737
|
const outnameValidation = useMemo132(() => {
|
|
@@ -42653,8 +42773,8 @@ var WebRenderModal = ({
|
|
|
42653
42773
|
return { valid: false, error: err };
|
|
42654
42774
|
}
|
|
42655
42775
|
}, [outName, imageFormat, renderMode, container60]);
|
|
42656
|
-
const onRenderStill =
|
|
42657
|
-
const blob = await renderStillOnWeb({
|
|
42776
|
+
const onRenderStill = useCallback130(async () => {
|
|
42777
|
+
const { blob } = await renderStillOnWeb({
|
|
42658
42778
|
composition: {
|
|
42659
42779
|
component: unresolvedComposition.component,
|
|
42660
42780
|
width: resolvedComposition.width,
|
|
@@ -42696,7 +42816,7 @@ var WebRenderModal = ({
|
|
|
42696
42816
|
unresolvedComposition.calculateMetadata,
|
|
42697
42817
|
resolvedComposition.id
|
|
42698
42818
|
]);
|
|
42699
|
-
const onRenderVideo =
|
|
42819
|
+
const onRenderVideo = useCallback130(async () => {
|
|
42700
42820
|
setRenderProgress({ renderedFrames: 0, encodedFrames: 0 });
|
|
42701
42821
|
const { getBlob } = await renderMediaOnWeb({
|
|
42702
42822
|
composition: {
|
|
@@ -42756,7 +42876,7 @@ var WebRenderModal = ({
|
|
|
42756
42876
|
resolvedComposition.id,
|
|
42757
42877
|
unresolvedComposition.calculateMetadata
|
|
42758
42878
|
]);
|
|
42759
|
-
const onRender =
|
|
42879
|
+
const onRender = useCallback130(async () => {
|
|
42760
42880
|
if (renderMode === "still") {
|
|
42761
42881
|
await onRenderStill();
|
|
42762
42882
|
} else {
|
|
@@ -42926,10 +43046,10 @@ var WebRenderModalWithLoader = (props) => {
|
|
|
42926
43046
|
};
|
|
42927
43047
|
|
|
42928
43048
|
// src/components/UpdateModal/UpdateModal.tsx
|
|
42929
|
-
import { useCallback as
|
|
43049
|
+
import { useCallback as useCallback133, useMemo as useMemo134 } from "react";
|
|
42930
43050
|
|
|
42931
43051
|
// src/components/CopyButton.tsx
|
|
42932
|
-
import { useCallback as
|
|
43052
|
+
import { useCallback as useCallback131, useEffect as useEffect77, useState as useState81 } from "react";
|
|
42933
43053
|
import { jsx as jsx261, jsxs as jsxs139 } from "react/jsx-runtime";
|
|
42934
43054
|
var iconStyle8 = {
|
|
42935
43055
|
width: 16,
|
|
@@ -42960,7 +43080,7 @@ var labelStyle5 = {
|
|
|
42960
43080
|
};
|
|
42961
43081
|
var CopyButton = ({ textToCopy, label: label12, labelWhenCopied }) => {
|
|
42962
43082
|
const [copied, setCopied] = useState81(false);
|
|
42963
|
-
const onClick =
|
|
43083
|
+
const onClick = useCallback131(() => {
|
|
42964
43084
|
copyText(textToCopy).then(() => {
|
|
42965
43085
|
setCopied(Date.now());
|
|
42966
43086
|
}).catch((err) => {
|
|
@@ -42992,7 +43112,7 @@ var CopyButton = ({ textToCopy, label: label12, labelWhenCopied }) => {
|
|
|
42992
43112
|
};
|
|
42993
43113
|
|
|
42994
43114
|
// src/components/UpdateModal/OpenIssueButton.tsx
|
|
42995
|
-
import { useCallback as
|
|
43115
|
+
import { useCallback as useCallback132, useMemo as useMemo133, useState as useState82 } from "react";
|
|
42996
43116
|
import { jsx as jsx262 } from "react/jsx-runtime";
|
|
42997
43117
|
var svgStyle3 = {
|
|
42998
43118
|
width: "11px",
|
|
@@ -43009,7 +43129,7 @@ var buttonStyle8 = {
|
|
|
43009
43129
|
var OpenIssueButton = ({ link: link3 }) => {
|
|
43010
43130
|
const [hovered, setHovered] = useState82(false);
|
|
43011
43131
|
const buttonTooltip = `Open GitHub issue in new Tab`;
|
|
43012
|
-
const handleClick =
|
|
43132
|
+
const handleClick = useCallback132(() => {
|
|
43013
43133
|
window.open(link3, "_blank");
|
|
43014
43134
|
}, [link3]);
|
|
43015
43135
|
const svgFillColor = useMemo133(() => {
|
|
@@ -43023,10 +43143,10 @@ var OpenIssueButton = ({ link: link3 }) => {
|
|
|
43023
43143
|
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"
|
|
43024
43144
|
})
|
|
43025
43145
|
});
|
|
43026
|
-
const onPointerEnter =
|
|
43146
|
+
const onPointerEnter = useCallback132(() => {
|
|
43027
43147
|
setHovered(true);
|
|
43028
43148
|
}, []);
|
|
43029
|
-
const onPointerLeave =
|
|
43149
|
+
const onPointerLeave = useCallback132(() => {
|
|
43030
43150
|
setHovered(false);
|
|
43031
43151
|
}, []);
|
|
43032
43152
|
return /* @__PURE__ */ jsx262("button", {
|
|
@@ -43113,7 +43233,7 @@ var UpdateModal = ({ info, knownBugs }) => {
|
|
|
43113
43233
|
return knownBugs && knownBugs?.length > 0;
|
|
43114
43234
|
}, [knownBugs]);
|
|
43115
43235
|
const command = commands[info.packageManager];
|
|
43116
|
-
const onClick =
|
|
43236
|
+
const onClick = useCallback133(() => {
|
|
43117
43237
|
copyText(command).catch((err) => {
|
|
43118
43238
|
showNotification(`Could not copy: ${err.message}`, 2000);
|
|
43119
43239
|
});
|
|
@@ -43229,7 +43349,8 @@ var Modals = ({ readOnlyStudio }) => {
|
|
|
43229
43349
|
compositionId: modalContextType.compositionId,
|
|
43230
43350
|
defaultProps: modalContextType.defaultProps,
|
|
43231
43351
|
inFrameMark: modalContextType.inFrameMark,
|
|
43232
|
-
outFrameMark: modalContextType.outFrameMark
|
|
43352
|
+
outFrameMark: modalContextType.outFrameMark,
|
|
43353
|
+
initialLogLevel: modalContextType.initialLogLevel
|
|
43233
43354
|
}),
|
|
43234
43355
|
modalContextType && canRender && modalContextType.type === "server-render" && /* @__PURE__ */ jsx265(RenderModalWithLoader, {
|
|
43235
43356
|
initialFrame: modalContextType.initialFrame,
|
|
@@ -43332,7 +43453,7 @@ var Editor = ({ Root, readOnlyStudio }) => {
|
|
|
43332
43453
|
};
|
|
43333
43454
|
}, [readOnlyStudio]);
|
|
43334
43455
|
const [canvasMounted, setCanvasMounted] = React175.useState(false);
|
|
43335
|
-
const onMounted =
|
|
43456
|
+
const onMounted = useCallback134(() => {
|
|
43336
43457
|
setCanvasMounted(true);
|
|
43337
43458
|
}, []);
|
|
43338
43459
|
const value = useMemo135(() => {
|
|
@@ -43388,7 +43509,7 @@ var Editor = ({ Root, readOnlyStudio }) => {
|
|
|
43388
43509
|
import { PlayerInternals as PlayerInternals21 } from "@remotion/player";
|
|
43389
43510
|
|
|
43390
43511
|
// src/state/preview-size.tsx
|
|
43391
|
-
import { useCallback as
|
|
43512
|
+
import { useCallback as useCallback135, useContext as useContext85, useMemo as useMemo136, useState as useState83 } from "react";
|
|
43392
43513
|
import { Internals as Internals63 } from "remotion";
|
|
43393
43514
|
import { jsx as jsx267 } from "react/jsx-runtime";
|
|
43394
43515
|
var key5 = "remotion.previewSize";
|
|
@@ -43417,7 +43538,7 @@ var PreviewSizeProvider = ({ children }) => {
|
|
|
43417
43538
|
};
|
|
43418
43539
|
});
|
|
43419
43540
|
const { editorZoomGestures } = useContext85(EditorZoomGesturesContext);
|
|
43420
|
-
const setSize =
|
|
43541
|
+
const setSize = useCallback135((newValue) => {
|
|
43421
43542
|
setSizeState((prevState) => {
|
|
43422
43543
|
const newVal = newValue(prevState);
|
|
43423
43544
|
persistPreviewSizeOption(newVal);
|
|
@@ -43445,11 +43566,11 @@ var PreviewSizeProvider = ({ children }) => {
|
|
|
43445
43566
|
};
|
|
43446
43567
|
|
|
43447
43568
|
// src/components/CheckerboardProvider.tsx
|
|
43448
|
-
import { useCallback as
|
|
43569
|
+
import { useCallback as useCallback136, useMemo as useMemo137, useState as useState84 } from "react";
|
|
43449
43570
|
import { jsx as jsx268 } from "react/jsx-runtime";
|
|
43450
43571
|
var CheckerboardProvider = ({ children }) => {
|
|
43451
43572
|
const [checkerboard, setCheckerboardState] = useState84(() => loadCheckerboardOption());
|
|
43452
|
-
const setCheckerboard =
|
|
43573
|
+
const setCheckerboard = useCallback136((newValue) => {
|
|
43453
43574
|
setCheckerboardState((prevState) => {
|
|
43454
43575
|
const newVal = newValue(prevState);
|
|
43455
43576
|
persistCheckerboardOption(newVal);
|
|
@@ -43551,7 +43672,7 @@ var SetTimelineInOutProvider = ({ children }) => {
|
|
|
43551
43672
|
};
|
|
43552
43673
|
|
|
43553
43674
|
// src/components/ShowGuidesProvider.tsx
|
|
43554
|
-
import { useCallback as
|
|
43675
|
+
import { useCallback as useCallback137, useMemo as useMemo141, useRef as useRef42, useState as useState88 } from "react";
|
|
43555
43676
|
import { jsx as jsx272 } from "react/jsx-runtime";
|
|
43556
43677
|
var ShowGuidesProvider = ({ children }) => {
|
|
43557
43678
|
const [guidesList, setGuidesList] = useState88(() => loadGuidesList());
|
|
@@ -43560,7 +43681,7 @@ var ShowGuidesProvider = ({ children }) => {
|
|
|
43560
43681
|
const [editorShowGuides, setEditorShowGuidesState] = useState88(() => loadEditorShowGuidesOption());
|
|
43561
43682
|
const shouldCreateGuideRef = useRef42(false);
|
|
43562
43683
|
const shouldDeleteGuideRef = useRef42(false);
|
|
43563
|
-
const setEditorShowGuides =
|
|
43684
|
+
const setEditorShowGuides = useCallback137((newValue) => {
|
|
43564
43685
|
setEditorShowGuidesState((prevState) => {
|
|
43565
43686
|
const newVal = newValue(prevState);
|
|
43566
43687
|
persistEditorShowGuidesOption(newVal);
|
|
@@ -43594,11 +43715,11 @@ var ShowGuidesProvider = ({ children }) => {
|
|
|
43594
43715
|
};
|
|
43595
43716
|
|
|
43596
43717
|
// src/components/ShowRulersProvider.tsx
|
|
43597
|
-
import { useCallback as
|
|
43718
|
+
import { useCallback as useCallback138, useMemo as useMemo142, useState as useState89 } from "react";
|
|
43598
43719
|
import { jsx as jsx273 } from "react/jsx-runtime";
|
|
43599
43720
|
var ShowRulersProvider = ({ children }) => {
|
|
43600
43721
|
const [editorShowRulers, setEditorShowRulersState] = useState89(() => loadEditorShowRulersOption());
|
|
43601
|
-
const setEditorShowRulers =
|
|
43722
|
+
const setEditorShowRulers = useCallback138((newValue) => {
|
|
43602
43723
|
setEditorShowRulersState((prevState) => {
|
|
43603
43724
|
const newVal = newValue(prevState);
|
|
43604
43725
|
persistEditorShowRulersOption(newVal);
|
|
@@ -43618,11 +43739,11 @@ var ShowRulersProvider = ({ children }) => {
|
|
|
43618
43739
|
};
|
|
43619
43740
|
|
|
43620
43741
|
// src/components/ZoomGesturesProvider.tsx
|
|
43621
|
-
import { useCallback as
|
|
43742
|
+
import { useCallback as useCallback139, useMemo as useMemo143, useState as useState90 } from "react";
|
|
43622
43743
|
import { jsx as jsx274 } from "react/jsx-runtime";
|
|
43623
43744
|
var ZoomGesturesProvider = ({ children }) => {
|
|
43624
43745
|
const [editorZoomGestures, setEditorZoomGesturesState] = useState90(() => loadEditorZoomGesturesOption());
|
|
43625
|
-
const setEditorZoomGestures =
|
|
43746
|
+
const setEditorZoomGestures = useCallback139((newValue) => {
|
|
43626
43747
|
setEditorZoomGesturesState((prevState) => {
|
|
43627
43748
|
const newVal = newValue(prevState);
|
|
43628
43749
|
persistEditorZoomGesturesOption(newVal);
|