remotion 4.0.149 → 4.0.151
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/bundle.ts +15 -5
- package/dist/cjs/ResolveCompositionConfig.d.ts +3 -0
- package/dist/cjs/ResolveCompositionConfig.js +19 -6
- package/dist/cjs/audio/AudioForRendering.js +1 -1
- package/dist/cjs/internals.d.ts +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/video/props.d.ts +1 -0
- package/dist/cjs/wrap-remotion-context.d.ts +3 -0
- package/dist/esm/index.mjs +123 -108
- package/dist/esm/version.mjs +1 -1
- package/ensure-correct-version.ts +1 -1
- package/package.json +2 -2
package/bundle.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
import {build} from 'bun';
|
|
1
|
+
import {build, revision} from 'bun';
|
|
2
|
+
|
|
3
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4
|
+
throw new Error('This script must be run using NODE_ENV=production');
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
if (!revision.startsWith('07ce')) {
|
|
8
|
+
// eslint-disable-next-line no-console
|
|
9
|
+
console.warn('warn: Remotion currently uses a fork of Bun to bundle.');
|
|
10
|
+
// eslint-disable-next-line no-console
|
|
11
|
+
console.log(
|
|
12
|
+
'You dont currently run the fork, this could lead to duplicate key warnings in React.',
|
|
13
|
+
);
|
|
14
|
+
}
|
|
2
15
|
|
|
3
16
|
const output = await build({
|
|
4
17
|
entrypoints: ['src/index.ts'],
|
|
@@ -8,10 +21,7 @@ const output = await build({
|
|
|
8
21
|
});
|
|
9
22
|
|
|
10
23
|
const [file] = output.outputs;
|
|
11
|
-
const text =
|
|
12
|
-
.replace(/jsxDEV/g, 'jsx')
|
|
13
|
-
.replace(/react\/jsx-dev-runtime/g, 'react/jsx-runtime');
|
|
14
|
-
|
|
24
|
+
const text = await file.text();
|
|
15
25
|
await Bun.write('dist/esm/index.mjs', text);
|
|
16
26
|
|
|
17
27
|
const versionOutput = await build({
|
|
@@ -55,12 +55,25 @@ const ResolveCompositionConfig = ({ children }) => {
|
|
|
55
55
|
signal,
|
|
56
56
|
});
|
|
57
57
|
if (typeof promOrNot === 'object' && 'then' in promOrNot) {
|
|
58
|
-
setResolvedConfigs((r) =>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
setResolvedConfigs((r) => {
|
|
59
|
+
const prev = r[composition.id];
|
|
60
|
+
if ((prev === null || prev === void 0 ? void 0 : prev.type) === 'success' ||
|
|
61
|
+
(prev === null || prev === void 0 ? void 0 : prev.type) === 'success-and-refreshing') {
|
|
62
|
+
return {
|
|
63
|
+
...r,
|
|
64
|
+
[composition.id]: {
|
|
65
|
+
type: 'success-and-refreshing',
|
|
66
|
+
result: prev.result,
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
...r,
|
|
72
|
+
[composition.id]: {
|
|
73
|
+
type: 'loading',
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
});
|
|
64
77
|
promOrNot
|
|
65
78
|
.then((c) => {
|
|
66
79
|
if (controller.signal.aborted) {
|
|
@@ -14,7 +14,7 @@ const volume_prop_js_1 = require("../volume-prop.js");
|
|
|
14
14
|
const use_audio_frame_js_1 = require("./use-audio-frame.js");
|
|
15
15
|
const AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
16
16
|
const audioRef = (0, react_1.useRef)(null);
|
|
17
|
-
const { volume: volumeProp, playbackRate, allowAmplificationDuringRender, onDuration, toneFrequency, _remotionInternalNeedsDurationCalculation, _remotionInternalNativeLoopPassed, acceptableTimeShiftInSeconds, name, onError, delayRenderRetries, delayRenderTimeoutInMilliseconds, loopVolumeCurveBehavior, ...nativeProps } = props;
|
|
17
|
+
const { volume: volumeProp, playbackRate, allowAmplificationDuringRender, onDuration, toneFrequency, _remotionInternalNeedsDurationCalculation, _remotionInternalNativeLoopPassed, acceptableTimeShiftInSeconds, name, onError, delayRenderRetries, delayRenderTimeoutInMilliseconds, loopVolumeCurveBehavior, pauseWhenBuffering, ...nativeProps } = props;
|
|
18
18
|
const absoluteFrame = (0, timeline_position_state_js_1.useTimelinePosition)();
|
|
19
19
|
const volumePropFrame = (0, use_audio_frame_js_1.useFrameForVolumeProp)(loopVolumeCurveBehavior !== null && loopVolumeCurveBehavior !== void 0 ? loopVolumeCurveBehavior : 'repeat');
|
|
20
20
|
const frame = (0, use_current_frame_js_1.useCurrentFrame)();
|
package/dist/cjs/internals.d.ts
CHANGED
|
@@ -99,6 +99,9 @@ export declare const Internals: {
|
|
|
99
99
|
} | {
|
|
100
100
|
type: "success";
|
|
101
101
|
result: import("./video-config.js").VideoConfig;
|
|
102
|
+
} | {
|
|
103
|
+
type: "success-and-refreshing";
|
|
104
|
+
result: import("./video-config.js").VideoConfig;
|
|
102
105
|
} | {
|
|
103
106
|
type: "error";
|
|
104
107
|
error: Error;
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -16,6 +16,9 @@ export declare function useRemotionContexts(): {
|
|
|
16
16
|
} | {
|
|
17
17
|
type: "success";
|
|
18
18
|
result: import("./video-config.js").VideoConfig;
|
|
19
|
+
} | {
|
|
20
|
+
type: "success-and-refreshing";
|
|
21
|
+
result: import("./video-config.js").VideoConfig;
|
|
19
22
|
} | {
|
|
20
23
|
type: "error";
|
|
21
24
|
error: Error;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -43,7 +43,7 @@ var NativeLayersProvider = ({
|
|
|
43
43
|
return jsx(NativeLayersContext.Provider, {
|
|
44
44
|
value: context,
|
|
45
45
|
children
|
|
46
|
-
}
|
|
46
|
+
});
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
// src/Clipper.tsx
|
|
@@ -120,7 +120,7 @@ var IsPlayerContextProvider = ({
|
|
|
120
120
|
return jsx2(IsPlayerContext.Provider, {
|
|
121
121
|
value: true,
|
|
122
122
|
children
|
|
123
|
-
}
|
|
123
|
+
});
|
|
124
124
|
};
|
|
125
125
|
var useIsPlayer = () => {
|
|
126
126
|
return useContext2(IsPlayerContext);
|
|
@@ -132,7 +132,7 @@ function truthy(value) {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
// src/version.ts
|
|
135
|
-
var VERSION = "4.0.
|
|
135
|
+
var VERSION = "4.0.151";
|
|
136
136
|
|
|
137
137
|
// src/multiple-versions-warning.ts
|
|
138
138
|
var checkMultipleRemotionVersions = () => {
|
|
@@ -210,7 +210,7 @@ var AbsoluteFillRefForwarding = (props, ref) => {
|
|
|
210
210
|
ref,
|
|
211
211
|
style: actualStyle,
|
|
212
212
|
...other
|
|
213
|
-
}
|
|
213
|
+
});
|
|
214
214
|
};
|
|
215
215
|
var AbsoluteFill = forwardRef(AbsoluteFillRefForwarding);
|
|
216
216
|
|
|
@@ -267,8 +267,8 @@ var SequenceManagerProvider = ({ children }) => {
|
|
|
267
267
|
children: jsx4(SequenceVisibilityToggleContext.Provider, {
|
|
268
268
|
value: hiddenContext,
|
|
269
269
|
children
|
|
270
|
-
}
|
|
271
|
-
}
|
|
270
|
+
})
|
|
271
|
+
});
|
|
272
272
|
};
|
|
273
273
|
|
|
274
274
|
// src/nonce.ts
|
|
@@ -421,7 +421,7 @@ var EditorPropsProvider = ({ children }) => {
|
|
|
421
421
|
return jsx5(EditorPropsContext.Provider, {
|
|
422
422
|
value: ctx,
|
|
423
423
|
children
|
|
424
|
-
}
|
|
424
|
+
});
|
|
425
425
|
};
|
|
426
426
|
|
|
427
427
|
// src/static-file.ts
|
|
@@ -751,12 +751,24 @@ var ResolveCompositionConfig = ({ children }) => {
|
|
|
751
751
|
signal
|
|
752
752
|
});
|
|
753
753
|
if (typeof promOrNot === "object" && "then" in promOrNot) {
|
|
754
|
-
setResolvedConfigs((r) =>
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
754
|
+
setResolvedConfigs((r) => {
|
|
755
|
+
const prev = r[composition.id];
|
|
756
|
+
if (prev?.type === "success" || prev?.type === "success-and-refreshing") {
|
|
757
|
+
return {
|
|
758
|
+
...r,
|
|
759
|
+
[composition.id]: {
|
|
760
|
+
type: "success-and-refreshing",
|
|
761
|
+
result: prev.result
|
|
762
|
+
}
|
|
763
|
+
};
|
|
758
764
|
}
|
|
759
|
-
|
|
765
|
+
return {
|
|
766
|
+
...r,
|
|
767
|
+
[composition.id]: {
|
|
768
|
+
type: "loading"
|
|
769
|
+
}
|
|
770
|
+
};
|
|
771
|
+
});
|
|
760
772
|
promOrNot.then((c) => {
|
|
761
773
|
if (controller.signal.aborted) {
|
|
762
774
|
return;
|
|
@@ -847,7 +859,7 @@ var ResolveCompositionConfig = ({ children }) => {
|
|
|
847
859
|
return jsx6(ResolveCompositionContext.Provider, {
|
|
848
860
|
value: resolvedConfigsIncludingStaticOnes,
|
|
849
861
|
children
|
|
850
|
-
}
|
|
862
|
+
});
|
|
851
863
|
};
|
|
852
864
|
var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
853
865
|
const context = useContext5(ResolveCompositionContext);
|
|
@@ -1014,7 +1026,7 @@ var CanUseRemotionHooksProvider = ({ children }) => {
|
|
|
1014
1026
|
return jsx7(CanUseRemotionHooks.Provider, {
|
|
1015
1027
|
value: true,
|
|
1016
1028
|
children
|
|
1017
|
-
}
|
|
1029
|
+
});
|
|
1018
1030
|
};
|
|
1019
1031
|
|
|
1020
1032
|
// src/use-unsafe-video-config.ts
|
|
@@ -1144,7 +1156,7 @@ var Freeze = ({
|
|
|
1144
1156
|
return jsx8(TimelineContext.Provider, {
|
|
1145
1157
|
value: timelineValue,
|
|
1146
1158
|
children
|
|
1147
|
-
}
|
|
1159
|
+
});
|
|
1148
1160
|
};
|
|
1149
1161
|
|
|
1150
1162
|
// src/Sequence.tsx
|
|
@@ -1284,8 +1296,8 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
1284
1296
|
style: defaultStyle,
|
|
1285
1297
|
className: other.className,
|
|
1286
1298
|
children: content
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1299
|
+
})
|
|
1300
|
+
});
|
|
1289
1301
|
};
|
|
1290
1302
|
var RegularSequence = forwardRef2(RegularSequenceRefForwardingFunction);
|
|
1291
1303
|
var PremountedSequenceRefForwardingFunction = (props, ref) => {
|
|
@@ -1318,8 +1330,8 @@ var PremountedSequenceRefForwardingFunction = (props, ref) => {
|
|
|
1318
1330
|
_remotionInternalPremountDisplay: premountFor,
|
|
1319
1331
|
_remotionInternalIsPremounting: premountingActive,
|
|
1320
1332
|
...otherProps
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1333
|
+
})
|
|
1334
|
+
});
|
|
1323
1335
|
};
|
|
1324
1336
|
var PremountedSequence = forwardRef2(PremountedSequenceRefForwardingFunction);
|
|
1325
1337
|
var SequenceRefForwardingFunction = (props, ref) => {
|
|
@@ -1327,12 +1339,12 @@ var SequenceRefForwardingFunction = (props, ref) => {
|
|
|
1327
1339
|
return jsx9(PremountedSequence, {
|
|
1328
1340
|
...props,
|
|
1329
1341
|
ref
|
|
1330
|
-
}
|
|
1342
|
+
});
|
|
1331
1343
|
}
|
|
1332
1344
|
return jsx9(RegularSequence, {
|
|
1333
1345
|
...props,
|
|
1334
1346
|
ref
|
|
1335
|
-
}
|
|
1347
|
+
});
|
|
1336
1348
|
};
|
|
1337
1349
|
var Sequence = forwardRef2(SequenceRefForwardingFunction);
|
|
1338
1350
|
// src/audio/Audio.tsx
|
|
@@ -1454,8 +1466,8 @@ var Loop = ({ durationInFrames, times = Infinity, children, name, ...props }) =>
|
|
|
1454
1466
|
layout: props.layout,
|
|
1455
1467
|
style,
|
|
1456
1468
|
children
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1469
|
+
})
|
|
1470
|
+
});
|
|
1459
1471
|
};
|
|
1460
1472
|
Loop.useLoop = useLoop;
|
|
1461
1473
|
|
|
@@ -1488,7 +1500,7 @@ var PrefetchProvider = ({ children }) => {
|
|
|
1488
1500
|
return jsx11(PreloadContext.Provider, {
|
|
1489
1501
|
value: _preloads,
|
|
1490
1502
|
children
|
|
1491
|
-
}
|
|
1503
|
+
});
|
|
1492
1504
|
};
|
|
1493
1505
|
|
|
1494
1506
|
// src/prefetch.ts
|
|
@@ -1715,7 +1727,7 @@ var DurationsContextProvider = ({ children }) => {
|
|
|
1715
1727
|
return jsx12(DurationsContext.Provider, {
|
|
1716
1728
|
value,
|
|
1717
1729
|
children
|
|
1718
|
-
}
|
|
1730
|
+
});
|
|
1719
1731
|
};
|
|
1720
1732
|
|
|
1721
1733
|
// src/audio/AudioForPreview.tsx
|
|
@@ -1820,7 +1832,7 @@ var BufferingProvider = ({ children }) => {
|
|
|
1820
1832
|
return jsx13(BufferingContextReact.Provider, {
|
|
1821
1833
|
value: bufferManager,
|
|
1822
1834
|
children
|
|
1823
|
-
}
|
|
1835
|
+
});
|
|
1824
1836
|
};
|
|
1825
1837
|
|
|
1826
1838
|
// src/use-buffer-state.ts
|
|
@@ -2546,7 +2558,8 @@ useRef as useRef4,
|
|
|
2546
2558
|
useState as useState10
|
|
2547
2559
|
} from "react";
|
|
2548
2560
|
import {
|
|
2549
|
-
jsx as jsx14
|
|
2561
|
+
jsx as jsx14,
|
|
2562
|
+
jsxs
|
|
2550
2563
|
} from "react/jsx-runtime";
|
|
2551
2564
|
var EMPTY_AUDIO = "data:audio/mp3;base64,/+MYxAAJcAV8AAgAABn//////+/gQ5BAMA+D4Pg+BAQBAEAwD4Pg+D4EBAEAQDAPg++hYBH///hUFQVBUFREDQNHmf///////+MYxBUGkAGIMAAAAP/29Xt6lUxBTUUzLjEwMFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MYxDUAAANIAAAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV";
|
|
2552
2565
|
var compareProps = (obj1, obj2) => {
|
|
@@ -2697,7 +2710,7 @@ var SharedAudioContextProvider = ({ children, numberOfAudioTags, component }) =>
|
|
|
2697
2710
|
resetAudio();
|
|
2698
2711
|
};
|
|
2699
2712
|
}, [component, resetAudio]);
|
|
2700
|
-
return
|
|
2713
|
+
return jsxs(SharedAudioContext.Provider, {
|
|
2701
2714
|
value,
|
|
2702
2715
|
children: [
|
|
2703
2716
|
refs.map(({ id, ref }) => {
|
|
@@ -2705,11 +2718,11 @@ var SharedAudioContextProvider = ({ children, numberOfAudioTags, component }) =>
|
|
|
2705
2718
|
ref,
|
|
2706
2719
|
preload: "metadata",
|
|
2707
2720
|
src: EMPTY_AUDIO
|
|
2708
|
-
}, id
|
|
2721
|
+
}, id);
|
|
2709
2722
|
}),
|
|
2710
2723
|
children
|
|
2711
2724
|
]
|
|
2712
|
-
}
|
|
2725
|
+
});
|
|
2713
2726
|
};
|
|
2714
2727
|
var useSharedAudio = (aud, audioId) => {
|
|
2715
2728
|
const ctx = useContext19(SharedAudioContext);
|
|
@@ -2868,7 +2881,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
2868
2881
|
ref: audioRef,
|
|
2869
2882
|
preload: "metadata",
|
|
2870
2883
|
...propsToPass
|
|
2871
|
-
}
|
|
2884
|
+
});
|
|
2872
2885
|
};
|
|
2873
2886
|
var AudioForPreview = forwardRef3(AudioForDevelopmentForwardRefFunction);
|
|
2874
2887
|
|
|
@@ -2933,7 +2946,7 @@ var RenderAssetManagerProvider = ({ children }) => {
|
|
|
2933
2946
|
return jsx16(RenderAssetManager.Provider, {
|
|
2934
2947
|
value: contextValue,
|
|
2935
2948
|
children
|
|
2936
|
-
}
|
|
2949
|
+
});
|
|
2937
2950
|
};
|
|
2938
2951
|
|
|
2939
2952
|
// src/delay-render.ts
|
|
@@ -3023,6 +3036,7 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
3023
3036
|
delayRenderRetries,
|
|
3024
3037
|
delayRenderTimeoutInMilliseconds,
|
|
3025
3038
|
loopVolumeCurveBehavior,
|
|
3039
|
+
pauseWhenBuffering,
|
|
3026
3040
|
...nativeProps
|
|
3027
3041
|
} = props;
|
|
3028
3042
|
const absoluteFrame = useTimelinePosition();
|
|
@@ -3130,7 +3144,7 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
3130
3144
|
return jsx17("audio", {
|
|
3131
3145
|
ref: audioRef,
|
|
3132
3146
|
...nativeProps
|
|
3133
|
-
}
|
|
3147
|
+
});
|
|
3134
3148
|
};
|
|
3135
3149
|
var AudioForRendering = forwardRef4(AudioForRenderingRefForwardingFunction);
|
|
3136
3150
|
|
|
@@ -3184,8 +3198,8 @@ var AudioRefForwardingFunction = (props, ref) => {
|
|
|
3184
3198
|
...propsOtherThanLoop,
|
|
3185
3199
|
ref,
|
|
3186
3200
|
_remotionInternalNativeLoopPassed: true
|
|
3187
|
-
}
|
|
3188
|
-
}
|
|
3201
|
+
})
|
|
3202
|
+
});
|
|
3189
3203
|
}
|
|
3190
3204
|
if (typeof startFrom !== "undefined" || typeof endAt !== "undefined") {
|
|
3191
3205
|
validateStartFromProps(startFrom, endAt);
|
|
@@ -3202,8 +3216,8 @@ var AudioRefForwardingFunction = (props, ref) => {
|
|
|
3202
3216
|
pauseWhenBuffering: pauseWhenBuffering ?? false,
|
|
3203
3217
|
...otherProps,
|
|
3204
3218
|
ref
|
|
3205
|
-
}
|
|
3206
|
-
}
|
|
3219
|
+
})
|
|
3220
|
+
});
|
|
3207
3221
|
}
|
|
3208
3222
|
validateMediaProps(props, "Audio");
|
|
3209
3223
|
if (environment.isRendering) {
|
|
@@ -3213,7 +3227,7 @@ var AudioRefForwardingFunction = (props, ref) => {
|
|
|
3213
3227
|
ref,
|
|
3214
3228
|
onError,
|
|
3215
3229
|
_remotionInternalNeedsDurationCalculation: Boolean(loop3)
|
|
3216
|
-
}
|
|
3230
|
+
});
|
|
3217
3231
|
}
|
|
3218
3232
|
return jsx18(AudioForPreview, {
|
|
3219
3233
|
_remotionInternalNativeLoopPassed: props._remotionInternalNativeLoopPassed ?? false,
|
|
@@ -3226,7 +3240,7 @@ var AudioRefForwardingFunction = (props, ref) => {
|
|
|
3226
3240
|
pauseWhenBuffering: pauseWhenBuffering ?? false,
|
|
3227
3241
|
_remotionInternalNeedsDurationCalculation: Boolean(loop3),
|
|
3228
3242
|
showInTimeline: showInTimeline ?? true
|
|
3229
|
-
}
|
|
3243
|
+
});
|
|
3230
3244
|
};
|
|
3231
3245
|
var Audio = forwardRef5(AudioRefForwardingFunction);
|
|
3232
3246
|
addSequenceStackTraces(Audio);
|
|
@@ -3285,12 +3299,13 @@ var Folder = ({
|
|
|
3285
3299
|
return jsx19(FolderContext.Provider, {
|
|
3286
3300
|
value,
|
|
3287
3301
|
children
|
|
3288
|
-
}
|
|
3302
|
+
});
|
|
3289
3303
|
};
|
|
3290
3304
|
|
|
3291
3305
|
// src/loading-indicator.tsx
|
|
3292
3306
|
import {
|
|
3293
|
-
jsx as jsx20
|
|
3307
|
+
jsx as jsx20,
|
|
3308
|
+
jsxs as jsxs2
|
|
3294
3309
|
} from "react/jsx-runtime";
|
|
3295
3310
|
var rotate = {
|
|
3296
3311
|
transform: `rotate(90deg)`
|
|
@@ -3306,7 +3321,7 @@ var container = {
|
|
|
3306
3321
|
alignItems: "center"
|
|
3307
3322
|
};
|
|
3308
3323
|
var Loading = () => {
|
|
3309
|
-
return
|
|
3324
|
+
return jsxs2(AbsoluteFill, {
|
|
3310
3325
|
style: container,
|
|
3311
3326
|
id: "remotion-comp-loading",
|
|
3312
3327
|
children: [
|
|
@@ -3326,7 +3341,7 @@ var Loading = () => {
|
|
|
3326
3341
|
animation-fill-mode: forwards;
|
|
3327
3342
|
}
|
|
3328
3343
|
`
|
|
3329
|
-
}
|
|
3344
|
+
}),
|
|
3330
3345
|
jsx20("svg", {
|
|
3331
3346
|
width: ICON_SIZE,
|
|
3332
3347
|
height: ICON_SIZE,
|
|
@@ -3338,18 +3353,18 @@ var Loading = () => {
|
|
|
3338
3353
|
strokeWidth: "100",
|
|
3339
3354
|
strokeLinejoin: "round",
|
|
3340
3355
|
d: "M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z"
|
|
3341
|
-
}
|
|
3342
|
-
}
|
|
3343
|
-
|
|
3356
|
+
})
|
|
3357
|
+
}),
|
|
3358
|
+
jsxs2("p", {
|
|
3344
3359
|
style: label,
|
|
3345
3360
|
children: [
|
|
3346
3361
|
"Resolving ",
|
|
3347
3362
|
"<Suspense>",
|
|
3348
3363
|
"..."
|
|
3349
3364
|
]
|
|
3350
|
-
}
|
|
3365
|
+
})
|
|
3351
3366
|
]
|
|
3352
|
-
}
|
|
3367
|
+
});
|
|
3353
3368
|
};
|
|
3354
3369
|
|
|
3355
3370
|
// src/portal-node.ts
|
|
@@ -3436,7 +3451,7 @@ var ClipComposition = ({ children }) => {
|
|
|
3436
3451
|
return jsx21(AbsoluteFill, {
|
|
3437
3452
|
style,
|
|
3438
3453
|
children
|
|
3439
|
-
}
|
|
3454
|
+
});
|
|
3440
3455
|
};
|
|
3441
3456
|
var Fallback = () => {
|
|
3442
3457
|
useEffect17(() => {
|
|
@@ -3517,13 +3532,13 @@ var Composition = ({
|
|
|
3517
3532
|
return createPortal(jsx21(ClipComposition, {
|
|
3518
3533
|
children: jsx21(CanUseRemotionHooksProvider, {
|
|
3519
3534
|
children: jsx21(Suspense, {
|
|
3520
|
-
fallback: jsx21(Loading, {}
|
|
3535
|
+
fallback: jsx21(Loading, {}),
|
|
3521
3536
|
children: jsx21(Comp, {
|
|
3522
3537
|
...resolved.result.props ?? {}
|
|
3523
|
-
}
|
|
3524
|
-
}
|
|
3525
|
-
}
|
|
3526
|
-
}
|
|
3538
|
+
})
|
|
3539
|
+
})
|
|
3540
|
+
})
|
|
3541
|
+
}), portalNode());
|
|
3527
3542
|
}
|
|
3528
3543
|
if (environment.isRendering && video && video.component === lazy) {
|
|
3529
3544
|
const Comp = lazy;
|
|
@@ -3532,12 +3547,12 @@ var Composition = ({
|
|
|
3532
3547
|
}
|
|
3533
3548
|
return createPortal(jsx21(CanUseRemotionHooksProvider, {
|
|
3534
3549
|
children: jsx21(Suspense, {
|
|
3535
|
-
fallback: jsx21(Fallback, {}
|
|
3550
|
+
fallback: jsx21(Fallback, {}),
|
|
3536
3551
|
children: jsx21(Comp, {
|
|
3537
3552
|
...resolved.result.props ?? {}
|
|
3538
|
-
}
|
|
3539
|
-
}
|
|
3540
|
-
}
|
|
3553
|
+
})
|
|
3554
|
+
})
|
|
3555
|
+
}), portalNode());
|
|
3541
3556
|
}
|
|
3542
3557
|
return null;
|
|
3543
3558
|
};
|
|
@@ -3635,11 +3650,11 @@ var CompositionManagerProvider = ({ children, numberOfAudioTags }) => {
|
|
|
3635
3650
|
numberOfAudioTags,
|
|
3636
3651
|
component: composition?.component ?? null,
|
|
3637
3652
|
children
|
|
3638
|
-
}
|
|
3639
|
-
}
|
|
3640
|
-
}
|
|
3641
|
-
}
|
|
3642
|
-
}
|
|
3653
|
+
})
|
|
3654
|
+
})
|
|
3655
|
+
})
|
|
3656
|
+
})
|
|
3657
|
+
});
|
|
3643
3658
|
};
|
|
3644
3659
|
// src/bezier.ts
|
|
3645
3660
|
var a = function(aA1, aA2) {
|
|
@@ -3887,7 +3902,7 @@ var IFrameRefForwarding = ({
|
|
|
3887
3902
|
ref,
|
|
3888
3903
|
onError: didGetError,
|
|
3889
3904
|
onLoad: didLoad
|
|
3890
|
-
}
|
|
3905
|
+
});
|
|
3891
3906
|
};
|
|
3892
3907
|
var IFrame = forwardRef6(IFrameRefForwarding);
|
|
3893
3908
|
// src/Img.tsx
|
|
@@ -4008,7 +4023,7 @@ var ImgRefForwarding = ({
|
|
|
4008
4023
|
ref: imageRef,
|
|
4009
4024
|
src: actualSrc,
|
|
4010
4025
|
onError: didGetError
|
|
4011
|
-
}
|
|
4026
|
+
});
|
|
4012
4027
|
};
|
|
4013
4028
|
var Img = forwardRef7(ImgRefForwarding);
|
|
4014
4029
|
// src/default-css.ts
|
|
@@ -4205,15 +4220,15 @@ var RemotionRoot = ({ children, numberOfAudioTags }) => {
|
|
|
4205
4220
|
children: jsx25(DurationsContextProvider, {
|
|
4206
4221
|
children: jsx25(BufferingProvider, {
|
|
4207
4222
|
children
|
|
4208
|
-
}
|
|
4209
|
-
}
|
|
4210
|
-
}
|
|
4211
|
-
}
|
|
4212
|
-
}
|
|
4213
|
-
}
|
|
4214
|
-
}
|
|
4215
|
-
}
|
|
4216
|
-
}
|
|
4223
|
+
})
|
|
4224
|
+
})
|
|
4225
|
+
})
|
|
4226
|
+
})
|
|
4227
|
+
})
|
|
4228
|
+
})
|
|
4229
|
+
})
|
|
4230
|
+
})
|
|
4231
|
+
});
|
|
4217
4232
|
};
|
|
4218
4233
|
|
|
4219
4234
|
// src/setup-env-variables.ts
|
|
@@ -4223,12 +4238,12 @@ var getEnvVariables = () => {
|
|
|
4223
4238
|
if (!param) {
|
|
4224
4239
|
return {};
|
|
4225
4240
|
}
|
|
4226
|
-
return { ...JSON.parse(param), NODE_ENV: "
|
|
4241
|
+
return { ...JSON.parse(param), NODE_ENV: "production" };
|
|
4227
4242
|
}
|
|
4228
4243
|
if (false) {
|
|
4229
4244
|
}
|
|
4230
4245
|
return {
|
|
4231
|
-
NODE_ENV: "
|
|
4246
|
+
NODE_ENV: "production"
|
|
4232
4247
|
};
|
|
4233
4248
|
};
|
|
4234
4249
|
var setupEnvVariables = () => {
|
|
@@ -4403,18 +4418,18 @@ var RemotionContextProvider = (props2) => {
|
|
|
4403
4418
|
children: jsx26(BufferingContextReact.Provider, {
|
|
4404
4419
|
value: contexts.bufferManagerContext,
|
|
4405
4420
|
children
|
|
4406
|
-
}
|
|
4407
|
-
}
|
|
4408
|
-
}
|
|
4409
|
-
}
|
|
4410
|
-
}
|
|
4411
|
-
}
|
|
4412
|
-
}
|
|
4413
|
-
}
|
|
4414
|
-
}
|
|
4415
|
-
}
|
|
4416
|
-
}
|
|
4417
|
-
}
|
|
4421
|
+
})
|
|
4422
|
+
})
|
|
4423
|
+
})
|
|
4424
|
+
})
|
|
4425
|
+
})
|
|
4426
|
+
})
|
|
4427
|
+
})
|
|
4428
|
+
})
|
|
4429
|
+
})
|
|
4430
|
+
})
|
|
4431
|
+
})
|
|
4432
|
+
});
|
|
4418
4433
|
};
|
|
4419
4434
|
|
|
4420
4435
|
// src/internals.ts
|
|
@@ -4878,13 +4893,13 @@ var IsInsideSeriesContainer = ({ children }) => {
|
|
|
4878
4893
|
return jsx27(IsInsideSeriesContext.Provider, {
|
|
4879
4894
|
value: true,
|
|
4880
4895
|
children
|
|
4881
|
-
}
|
|
4896
|
+
});
|
|
4882
4897
|
};
|
|
4883
4898
|
var IsNotInsideSeriesProvider = ({ children }) => {
|
|
4884
4899
|
return jsx27(IsInsideSeriesContext.Provider, {
|
|
4885
4900
|
value: false,
|
|
4886
4901
|
children
|
|
4887
|
-
}
|
|
4902
|
+
});
|
|
4888
4903
|
};
|
|
4889
4904
|
var useRequireToBeInsideSeries = () => {
|
|
4890
4905
|
const isInsideSeries = React25.useContext(IsInsideSeriesContext);
|
|
@@ -4901,7 +4916,7 @@ var SeriesSequenceRefForwardingFunction = ({ children }, _ref) => {
|
|
|
4901
4916
|
useRequireToBeInsideSeries();
|
|
4902
4917
|
return jsx28(IsNotInsideSeriesProvider, {
|
|
4903
4918
|
children
|
|
4904
|
-
}
|
|
4919
|
+
});
|
|
4905
4920
|
};
|
|
4906
4921
|
var SeriesSequence = forwardRef8(SeriesSequenceRefForwardingFunction);
|
|
4907
4922
|
var Series = (props2) => {
|
|
@@ -4956,7 +4971,7 @@ var Series = (props2) => {
|
|
|
4956
4971
|
...passedProps,
|
|
4957
4972
|
ref: castedChild.ref,
|
|
4958
4973
|
children: child
|
|
4959
|
-
}
|
|
4974
|
+
});
|
|
4960
4975
|
});
|
|
4961
4976
|
}, [props2.children]);
|
|
4962
4977
|
if (ENABLE_V5_BREAKING_CHANGES) {
|
|
@@ -4964,12 +4979,12 @@ var Series = (props2) => {
|
|
|
4964
4979
|
children: jsx28(Sequence, {
|
|
4965
4980
|
...props2,
|
|
4966
4981
|
children: childrenValue
|
|
4967
|
-
}
|
|
4968
|
-
}
|
|
4982
|
+
})
|
|
4983
|
+
});
|
|
4969
4984
|
}
|
|
4970
4985
|
return jsx28(IsInsideSeriesContainer, {
|
|
4971
4986
|
children: childrenValue
|
|
4972
|
-
}
|
|
4987
|
+
});
|
|
4973
4988
|
};
|
|
4974
4989
|
Series.Sequence = SeriesSequence;
|
|
4975
4990
|
addSequenceStackTraces(SeriesSequence);
|
|
@@ -5348,7 +5363,7 @@ var OffthreadVideoForRendering = ({
|
|
|
5348
5363
|
className,
|
|
5349
5364
|
...props2,
|
|
5350
5365
|
onError: onErr
|
|
5351
|
-
}
|
|
5366
|
+
});
|
|
5352
5367
|
};
|
|
5353
5368
|
|
|
5354
5369
|
// src/video/VideoForPreview.tsx
|
|
@@ -5506,7 +5521,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
5506
5521
|
loop: _remotionInternalNativeLoopPassed,
|
|
5507
5522
|
style: actualStyle,
|
|
5508
5523
|
...nativeProps
|
|
5509
|
-
}
|
|
5524
|
+
});
|
|
5510
5525
|
};
|
|
5511
5526
|
var VideoForPreview = forwardRef9(VideoForDevelopmentRefForwardingFunction);
|
|
5512
5527
|
|
|
@@ -5547,14 +5562,14 @@ var OffthreadVideo = (props2) => {
|
|
|
5547
5562
|
children: jsx31(OffthreadVideo, {
|
|
5548
5563
|
pauseWhenBuffering: pauseWhenBuffering ?? false,
|
|
5549
5564
|
...otherProps
|
|
5550
|
-
}
|
|
5551
|
-
}
|
|
5565
|
+
})
|
|
5566
|
+
});
|
|
5552
5567
|
}
|
|
5553
5568
|
validateMediaProps(props2, "Video");
|
|
5554
5569
|
if (environment.isRendering) {
|
|
5555
5570
|
return jsx31(OffthreadVideoForRendering, {
|
|
5556
5571
|
...otherProps
|
|
5557
|
-
}
|
|
5572
|
+
});
|
|
5558
5573
|
}
|
|
5559
5574
|
const { transparent, toneMapped, ...withoutTransparent } = otherProps;
|
|
5560
5575
|
return jsx31(VideoForPreview, {
|
|
@@ -5565,7 +5580,7 @@ var OffthreadVideo = (props2) => {
|
|
|
5565
5580
|
pauseWhenBuffering: pauseWhenBuffering ?? false,
|
|
5566
5581
|
showInTimeline: showInTimeline ?? true,
|
|
5567
5582
|
...withoutTransparent
|
|
5568
|
-
}
|
|
5583
|
+
});
|
|
5569
5584
|
};
|
|
5570
5585
|
// src/video/Video.tsx
|
|
5571
5586
|
import {forwardRef as forwardRef11, useCallback as useCallback13, useContext as useContext29} from "react";
|
|
@@ -5858,7 +5873,7 @@ var VideoForRenderingForwardFunction = ({
|
|
|
5858
5873
|
ref: videoRef,
|
|
5859
5874
|
...props2,
|
|
5860
5875
|
onError
|
|
5861
|
-
}
|
|
5876
|
+
});
|
|
5862
5877
|
};
|
|
5863
5878
|
var VideoForRendering = forwardRef10(VideoForRenderingForwardFunction);
|
|
5864
5879
|
|
|
@@ -5907,8 +5922,8 @@ var VideoForwardingFunction = (props2, ref) => {
|
|
|
5907
5922
|
...propsOtherThanLoop,
|
|
5908
5923
|
ref,
|
|
5909
5924
|
_remotionInternalNativeLoopPassed: true
|
|
5910
|
-
}
|
|
5911
|
-
}
|
|
5925
|
+
})
|
|
5926
|
+
});
|
|
5912
5927
|
}
|
|
5913
5928
|
if (typeof startFrom !== "undefined" || typeof endAt !== "undefined") {
|
|
5914
5929
|
validateStartFromProps(startFrom, endAt);
|
|
@@ -5924,8 +5939,8 @@ var VideoForwardingFunction = (props2, ref) => {
|
|
|
5924
5939
|
pauseWhenBuffering: pauseWhenBuffering ?? false,
|
|
5925
5940
|
...otherProps,
|
|
5926
5941
|
ref
|
|
5927
|
-
}
|
|
5928
|
-
}
|
|
5942
|
+
})
|
|
5943
|
+
});
|
|
5929
5944
|
}
|
|
5930
5945
|
validateMediaProps(props2, "Video");
|
|
5931
5946
|
if (environment.isRendering) {
|
|
@@ -5933,7 +5948,7 @@ var VideoForwardingFunction = (props2, ref) => {
|
|
|
5933
5948
|
onDuration,
|
|
5934
5949
|
...otherProps,
|
|
5935
5950
|
ref
|
|
5936
|
-
}
|
|
5951
|
+
});
|
|
5937
5952
|
}
|
|
5938
5953
|
return jsx33(VideoForPreview, {
|
|
5939
5954
|
onlyWarnForMediaSeekingError: false,
|
|
@@ -5944,7 +5959,7 @@ var VideoForwardingFunction = (props2, ref) => {
|
|
|
5944
5959
|
_remotionInternalStack: stack ?? null,
|
|
5945
5960
|
_remotionInternalNativeLoopPassed: _remotionInternalNativeLoopPassed ?? false,
|
|
5946
5961
|
showInTimeline: showInTimeline ?? true
|
|
5947
|
-
}
|
|
5962
|
+
});
|
|
5948
5963
|
};
|
|
5949
5964
|
var Video = forwardRef11(VideoForwardingFunction);
|
|
5950
5965
|
addSequenceStackTraces(Video);
|
package/dist/esm/version.mjs
CHANGED
|
@@ -19,7 +19,7 @@ export const VERSION = '${version}';
|
|
|
19
19
|
fs.writeFileSync(path.resolve(process.cwd(), 'src/version.ts'), src);
|
|
20
20
|
|
|
21
21
|
cp.execSync('pnpm build');
|
|
22
|
-
cp.execSync('
|
|
22
|
+
cp.execSync('bun x tsc -d');
|
|
23
23
|
|
|
24
24
|
const distFile = fs.readFileSync('dist/esm/version.mjs', 'utf-8');
|
|
25
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.151",
|
|
4
4
|
"description": "Render videos in React",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -82,6 +82,6 @@
|
|
|
82
82
|
"formatting": "prettier src --check",
|
|
83
83
|
"lint": "eslint src --ext ts,tsx",
|
|
84
84
|
"test": "vitest --run",
|
|
85
|
-
"build": "bun bundle.ts"
|
|
85
|
+
"build": "bun --env-file=../.env.bundle bundle.ts"
|
|
86
86
|
}
|
|
87
87
|
}
|