@remotion/promo-pages 4.0.491 → 4.0.492
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/Homepage.js +303 -219
- package/dist/design.js +263 -217
- package/dist/experts.js +114 -68
- package/dist/homepage/Pricing.js +263 -217
- package/dist/prompts/PromptsGallery.js +263 -217
- package/dist/prompts/PromptsShow.js +263 -217
- package/dist/prompts/PromptsSubmit.js +263 -217
- package/dist/team.js +263 -217
- package/dist/template-modal-content.js +263 -217
- package/dist/templates.js +263 -217
- package/package.json +13 -13
package/dist/experts.js
CHANGED
|
@@ -941,6 +941,7 @@ import * as React6 from "react";
|
|
|
941
941
|
import React7, { useMemo as useMemo6, useRef as useRef2 } from "react";
|
|
942
942
|
import { useContext as useContext8, useMemo as useMemo7 } from "react";
|
|
943
943
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
944
|
+
import React9 from "react";
|
|
944
945
|
import {
|
|
945
946
|
forwardRef as forwardRef3,
|
|
946
947
|
useCallback as useCallback6,
|
|
@@ -966,11 +967,11 @@ import { useContext as useContext13 } from "react";
|
|
|
966
967
|
import { useContext as useContext12, useMemo as useMemo10 } from "react";
|
|
967
968
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
968
969
|
import { createContext as createContext14 } from "react";
|
|
969
|
-
import
|
|
970
|
+
import React12, { useCallback as useCallback5, useMemo as useMemo12, useRef as useRef4, useState as useState3 } from "react";
|
|
970
971
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
971
|
-
import
|
|
972
|
+
import React13, { createContext as createContext15 } from "react";
|
|
972
973
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
973
|
-
import
|
|
974
|
+
import React14, { forwardRef as forwardRef2, useContext as useContext16, useMemo as useMemo13, useState as useState4 } from "react";
|
|
974
975
|
import { useContext as useContext15, useRef as useRef5 } from "react";
|
|
975
976
|
import { createContext as createContext16 } from "react";
|
|
976
977
|
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
@@ -982,7 +983,7 @@ import {
|
|
|
982
983
|
useRef as useRef9,
|
|
983
984
|
useState as useState6
|
|
984
985
|
} from "react";
|
|
985
|
-
import
|
|
986
|
+
import React16, { useCallback as useCallback7, useImperativeHandle, useMemo as useMemo16, useRef as useRef8 } from "react";
|
|
986
987
|
import { useEffect as useEffect4, useMemo as useMemo15, useRef as useRef7 } from "react";
|
|
987
988
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
988
989
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
@@ -998,7 +999,7 @@ import {
|
|
|
998
999
|
} from "react";
|
|
999
1000
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1000
1001
|
import { forwardRef as forwardRef7, useCallback as useCallback14, useContext as useContext30 } from "react";
|
|
1001
|
-
import
|
|
1002
|
+
import React17, { createContext as createContext18, useMemo as useMemo18 } from "react";
|
|
1002
1003
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1003
1004
|
import { useContext as useContext19 } from "react";
|
|
1004
1005
|
import { createContext as createContext19, useEffect as useEffect6, useState as useState9 } from "react";
|
|
@@ -1006,7 +1007,7 @@ import { jsx as jsx17 } from "react/jsx-runtime";
|
|
|
1006
1007
|
import { createContext as createContext20, useMemo as useMemo19, useReducer } from "react";
|
|
1007
1008
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1008
1009
|
import { useCallback as useCallback13 } from "react";
|
|
1009
|
-
import
|
|
1010
|
+
import React23, {
|
|
1010
1011
|
forwardRef as forwardRef5,
|
|
1011
1012
|
useContext as useContext28,
|
|
1012
1013
|
useEffect as useEffect14,
|
|
@@ -1016,7 +1017,7 @@ import React22, {
|
|
|
1016
1017
|
useState as useState14
|
|
1017
1018
|
} from "react";
|
|
1018
1019
|
import { useContext as useContext21, useLayoutEffect as useLayoutEffect5, useRef as useRef14 } from "react";
|
|
1019
|
-
import
|
|
1020
|
+
import React20, {
|
|
1020
1021
|
createContext as createContext21,
|
|
1021
1022
|
createRef as createRef2,
|
|
1022
1023
|
useCallback as useCallback9,
|
|
@@ -1040,7 +1041,7 @@ import {
|
|
|
1040
1041
|
} from "react";
|
|
1041
1042
|
import { useCallback as useCallback11, useMemo as useMemo25, useRef as useRef16 } from "react";
|
|
1042
1043
|
import { useContext as useContext25, useMemo as useMemo24 } from "react";
|
|
1043
|
-
import
|
|
1044
|
+
import React21, {
|
|
1044
1045
|
useCallback as useCallback10,
|
|
1045
1046
|
useContext as useContext24,
|
|
1046
1047
|
useEffect as useEffect9,
|
|
@@ -1050,7 +1051,7 @@ import React20, {
|
|
|
1050
1051
|
useState as useState12
|
|
1051
1052
|
} from "react";
|
|
1052
1053
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1053
|
-
import
|
|
1054
|
+
import React22 from "react";
|
|
1054
1055
|
import { useEffect as useEffect10, useState as useState13 } from "react";
|
|
1055
1056
|
import { useEffect as useEffect11, useRef as useRef17 } from "react";
|
|
1056
1057
|
import { useEffect as useEffect13 } from "react";
|
|
@@ -1108,10 +1109,10 @@ import {
|
|
|
1108
1109
|
useState as useState18
|
|
1109
1110
|
} from "react";
|
|
1110
1111
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1111
|
-
import
|
|
1112
|
+
import React30, { forwardRef as forwardRef12, useCallback as useCallback20, useRef as useRef25 } from "react";
|
|
1112
1113
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1113
1114
|
import { createRef as createRef3 } from "react";
|
|
1114
|
-
import
|
|
1115
|
+
import React31 from "react";
|
|
1115
1116
|
import {
|
|
1116
1117
|
useCallback as useCallback21,
|
|
1117
1118
|
useImperativeHandle as useImperativeHandle8,
|
|
@@ -1120,14 +1121,14 @@ import {
|
|
|
1120
1121
|
useState as useState19
|
|
1121
1122
|
} from "react";
|
|
1122
1123
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1123
|
-
import
|
|
1124
|
+
import React32 from "react";
|
|
1124
1125
|
import { useMemo as useMemo34 } from "react";
|
|
1125
1126
|
import { createContext as createContext24, useContext as useContext34, useMemo as useMemo33 } from "react";
|
|
1126
1127
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1127
1128
|
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1128
|
-
import
|
|
1129
|
-
import
|
|
1130
|
-
import
|
|
1129
|
+
import React34 from "react";
|
|
1130
|
+
import React35, { createContext as createContext25 } from "react";
|
|
1131
|
+
import React36, { useContext as useContext35 } from "react";
|
|
1131
1132
|
import { useCallback as useCallback24 } from "react";
|
|
1132
1133
|
import {
|
|
1133
1134
|
useCallback as useCallback22,
|
|
@@ -1138,7 +1139,7 @@ import {
|
|
|
1138
1139
|
useState as useState20
|
|
1139
1140
|
} from "react";
|
|
1140
1141
|
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1141
|
-
import
|
|
1142
|
+
import React38, {
|
|
1142
1143
|
forwardRef as forwardRef13,
|
|
1143
1144
|
useCallback as useCallback23,
|
|
1144
1145
|
useContext as useContext37,
|
|
@@ -1151,15 +1152,15 @@ import React37, {
|
|
|
1151
1152
|
import { useEffect as useEffect18 } from "react";
|
|
1152
1153
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1153
1154
|
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
1154
|
-
import
|
|
1155
|
+
import React40, { useMemo as useMemo37 } from "react";
|
|
1155
1156
|
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1156
|
-
import
|
|
1157
|
+
import React42, {
|
|
1157
1158
|
forwardRef as forwardRef14,
|
|
1158
1159
|
useMemo as useMemo38
|
|
1159
1160
|
} from "react";
|
|
1160
|
-
import
|
|
1161
|
+
import React41 from "react";
|
|
1161
1162
|
import { jsx as jsx37, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
|
|
1162
|
-
import
|
|
1163
|
+
import React43 from "react";
|
|
1163
1164
|
import { forwardRef as forwardRef16, useCallback as useCallback25, useContext as useContext39 } from "react";
|
|
1164
1165
|
import {
|
|
1165
1166
|
forwardRef as forwardRef15,
|
|
@@ -2237,6 +2238,7 @@ var InnerComposition = ({
|
|
|
2237
2238
|
}
|
|
2238
2239
|
const { folderName, parentName } = useContext9(FolderContext);
|
|
2239
2240
|
const stack = compProps.stack ?? null;
|
|
2241
|
+
const componentFromProps = "component" in compProps ? compProps.component : null;
|
|
2240
2242
|
useEffect2(() => {
|
|
2241
2243
|
if (!id) {
|
|
2242
2244
|
throw new Error("No id for composition passed.");
|
|
@@ -2254,6 +2256,7 @@ var InnerComposition = ({
|
|
|
2254
2256
|
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
2255
2257
|
nonce: nonce.get(),
|
|
2256
2258
|
parentFolderName: parentName,
|
|
2259
|
+
componentFromProps,
|
|
2257
2260
|
schema: schema ?? null,
|
|
2258
2261
|
calculateMetadata: compProps.calculateMetadata ?? null,
|
|
2259
2262
|
stack
|
|
@@ -2272,6 +2275,7 @@ var InnerComposition = ({
|
|
|
2272
2275
|
width,
|
|
2273
2276
|
nonce,
|
|
2274
2277
|
parentName,
|
|
2278
|
+
componentFromProps,
|
|
2275
2279
|
schema,
|
|
2276
2280
|
compProps.calculateMetadata,
|
|
2277
2281
|
stack,
|
|
@@ -2330,11 +2334,30 @@ var Composition = (props) => {
|
|
|
2330
2334
|
});
|
|
2331
2335
|
};
|
|
2332
2336
|
var componentsToAddStacksTo = [];
|
|
2337
|
+
var sequenceComponent = null;
|
|
2333
2338
|
var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
|
|
2334
2339
|
var addSequenceStackTraces = (component) => {
|
|
2335
2340
|
componentsToAddStacksTo.push(component);
|
|
2336
2341
|
};
|
|
2337
|
-
var
|
|
2342
|
+
var setSequenceComponent = (component) => {
|
|
2343
|
+
sequenceComponent = component;
|
|
2344
|
+
};
|
|
2345
|
+
var getSequenceComponent = () => sequenceComponent;
|
|
2346
|
+
var getSingleChildComponent = (children) => {
|
|
2347
|
+
const mountedChildren = React9.Children.toArray(children);
|
|
2348
|
+
if (mountedChildren.length !== 1) {
|
|
2349
|
+
return null;
|
|
2350
|
+
}
|
|
2351
|
+
const child = mountedChildren[0];
|
|
2352
|
+
if (!React9.isValidElement(child)) {
|
|
2353
|
+
return null;
|
|
2354
|
+
}
|
|
2355
|
+
if (typeof child.type !== "function" && typeof child.type !== "object") {
|
|
2356
|
+
return null;
|
|
2357
|
+
}
|
|
2358
|
+
return child.type;
|
|
2359
|
+
};
|
|
2360
|
+
var VERSION = "4.0.492";
|
|
2338
2361
|
var checkMultipleRemotionVersions = () => {
|
|
2339
2362
|
if (typeof globalThis === "undefined") {
|
|
2340
2363
|
return;
|
|
@@ -2934,7 +2957,7 @@ var sequenceSchemaDefaultLayoutNone = {
|
|
|
2934
2957
|
var PremountContext = createContext14({
|
|
2935
2958
|
premountFramesRemaining: 0
|
|
2936
2959
|
});
|
|
2937
|
-
var SequenceManager =
|
|
2960
|
+
var SequenceManager = React12.createContext({
|
|
2938
2961
|
registerSequence: () => {
|
|
2939
2962
|
throw new Error("SequenceManagerContext not initialized");
|
|
2940
2963
|
},
|
|
@@ -2943,19 +2966,19 @@ var SequenceManager = React11.createContext({
|
|
|
2943
2966
|
},
|
|
2944
2967
|
sequences: []
|
|
2945
2968
|
});
|
|
2946
|
-
var SequenceManagerRefContext =
|
|
2969
|
+
var SequenceManagerRefContext = React12.createContext({
|
|
2947
2970
|
current: []
|
|
2948
2971
|
});
|
|
2949
2972
|
var makeSequencePropsSubscriptionKey = (key) => {
|
|
2950
2973
|
return `${key.absolutePath}\x00${key.nodePath.join(".")}\x00${key.sequenceKeys.join(".")}\x00${key.effectKeys.map((keys) => keys.join(".")).join(".")}`;
|
|
2951
2974
|
};
|
|
2952
|
-
var VisualModePropStatusesContext =
|
|
2975
|
+
var VisualModePropStatusesContext = React12.createContext({
|
|
2953
2976
|
propStatuses: {}
|
|
2954
2977
|
});
|
|
2955
|
-
var VisualModePropStatusesRefContext =
|
|
2978
|
+
var VisualModePropStatusesRefContext = React12.createContext({
|
|
2956
2979
|
current: {}
|
|
2957
2980
|
});
|
|
2958
|
-
var VisualModeDragOverridesContext =
|
|
2981
|
+
var VisualModeDragOverridesContext = React12.createContext({
|
|
2959
2982
|
getDragOverrides: () => {
|
|
2960
2983
|
throw new Error("VisualModeDragOverridesContext not initialized");
|
|
2961
2984
|
},
|
|
@@ -2963,7 +2986,7 @@ var VisualModeDragOverridesContext = React11.createContext({
|
|
|
2963
2986
|
throw new Error("VisualModeDragOverridesContext not initialized");
|
|
2964
2987
|
}
|
|
2965
2988
|
});
|
|
2966
|
-
var VisualModeSettersContext =
|
|
2989
|
+
var VisualModeSettersContext = React12.createContext({
|
|
2967
2990
|
setDragOverrides: () => {
|
|
2968
2991
|
throw new Error("VisualModeSettersContext not initialized");
|
|
2969
2992
|
},
|
|
@@ -3127,7 +3150,7 @@ var IsNotInsideSeriesProvider = ({ children }) => {
|
|
|
3127
3150
|
});
|
|
3128
3151
|
};
|
|
3129
3152
|
var useRequireToBeInsideSeries = () => {
|
|
3130
|
-
const isInsideSeries =
|
|
3153
|
+
const isInsideSeries = React13.useContext(IsInsideSeriesContext);
|
|
3131
3154
|
if (!isInsideSeries) {
|
|
3132
3155
|
throw new Error("This component must be inside a <Series /> component.");
|
|
3133
3156
|
}
|
|
@@ -5196,6 +5219,9 @@ var computeEffectiveSchemaValuesDotNotation = ({
|
|
|
5196
5219
|
shouldResortToDefaultValueIfUndefined: false
|
|
5197
5220
|
});
|
|
5198
5221
|
}
|
|
5222
|
+
if (field?.type === "asset" && typeof value === "string" && value.startsWith(FILE_TOKEN)) {
|
|
5223
|
+
value = `${window.remotion_staticBase}/${value.slice(FILE_TOKEN.length)}`;
|
|
5224
|
+
}
|
|
5199
5225
|
if (value === undefined) {
|
|
5200
5226
|
propsToDelete.add(key);
|
|
5201
5227
|
}
|
|
@@ -5294,7 +5320,7 @@ var withInteractivitySchema = ({
|
|
|
5294
5320
|
const Wrapped = forwardRef2((props, ref) => {
|
|
5295
5321
|
const env = useRemotionEnvironment();
|
|
5296
5322
|
if (!env.isStudio || env.isReadOnlyStudio || env.isRendering) {
|
|
5297
|
-
return
|
|
5323
|
+
return React14.createElement(Component, {
|
|
5298
5324
|
...props,
|
|
5299
5325
|
controls: null,
|
|
5300
5326
|
ref
|
|
@@ -5305,7 +5331,7 @@ var withInteractivitySchema = ({
|
|
|
5305
5331
|
const nodePathMapping = useContext16(OverrideIdsToNodePathsGettersContext);
|
|
5306
5332
|
const frame = useCurrentFrame();
|
|
5307
5333
|
if (props.controls) {
|
|
5308
|
-
return
|
|
5334
|
+
return React14.createElement(Component, {
|
|
5309
5335
|
...props,
|
|
5310
5336
|
ref
|
|
5311
5337
|
});
|
|
@@ -5363,7 +5389,7 @@ var withInteractivitySchema = ({
|
|
|
5363
5389
|
schemaKeys: activeKeys,
|
|
5364
5390
|
propsToDelete
|
|
5365
5391
|
});
|
|
5366
|
-
return
|
|
5392
|
+
return React14.createElement(Component, {
|
|
5367
5393
|
...mergedProps,
|
|
5368
5394
|
controls,
|
|
5369
5395
|
ref
|
|
@@ -5389,6 +5415,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
5389
5415
|
_remotionInternalLoopDisplay: loopDisplay,
|
|
5390
5416
|
_remotionInternalStack: stack,
|
|
5391
5417
|
_remotionInternalDocumentationLink: documentationLink,
|
|
5418
|
+
_remotionInternalSingleChildComponent: singleChildComponent,
|
|
5392
5419
|
_remotionInternalPremountDisplay: premountDisplay,
|
|
5393
5420
|
_remotionInternalPostmountDisplay: postmountDisplay,
|
|
5394
5421
|
_remotionInternalIsMedia: isMedia,
|
|
@@ -5535,7 +5562,8 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
5535
5562
|
getStack: () => stackRef.current,
|
|
5536
5563
|
refForOutline: refForOutline ?? null,
|
|
5537
5564
|
isInsideSeries,
|
|
5538
|
-
frozenFrame: registeredFrozenFrame
|
|
5565
|
+
frozenFrame: registeredFrozenFrame,
|
|
5566
|
+
singleChildComponent: singleChildComponent ?? null
|
|
5539
5567
|
});
|
|
5540
5568
|
} else {
|
|
5541
5569
|
registerSequence({
|
|
@@ -5565,7 +5593,8 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
5565
5593
|
refForOutline: refForOutline ?? null,
|
|
5566
5594
|
isInsideSeries,
|
|
5567
5595
|
frozenFrame: registeredFrozenFrame,
|
|
5568
|
-
frozenMediaFrame
|
|
5596
|
+
frozenMediaFrame,
|
|
5597
|
+
singleChildComponent: singleChildComponent ?? null
|
|
5569
5598
|
});
|
|
5570
5599
|
}
|
|
5571
5600
|
return () => {
|
|
@@ -5592,7 +5621,8 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
5592
5621
|
effects: _remotionInternalEffects ?? EMPTY_EFFECTS,
|
|
5593
5622
|
refForOutline: refForOutline ?? null,
|
|
5594
5623
|
isInsideSeries,
|
|
5595
|
-
frozenFrame: registeredFrozenFrame
|
|
5624
|
+
frozenFrame: registeredFrozenFrame,
|
|
5625
|
+
singleChildComponent: singleChildComponent ?? null
|
|
5596
5626
|
});
|
|
5597
5627
|
return () => {
|
|
5598
5628
|
unregisterSequence(id);
|
|
@@ -5625,7 +5655,8 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
5625
5655
|
registeredFrozenFrame,
|
|
5626
5656
|
startMediaFrom,
|
|
5627
5657
|
mediaFrameAtSequenceZero,
|
|
5628
|
-
frozenMediaFrame
|
|
5658
|
+
frozenMediaFrame,
|
|
5659
|
+
singleChildComponent
|
|
5629
5660
|
]);
|
|
5630
5661
|
const endThreshold = Math.ceil(cumulatedFrom + from + durationInFrames - 1);
|
|
5631
5662
|
const content = absoluteFrame < cumulatedFrom + from ? null : absoluteFrame > endThreshold ? null : children;
|
|
@@ -6127,7 +6158,7 @@ var CanvasRefForwardingFunction = ({ width, height, fit, className, style, effec
|
|
|
6127
6158
|
...props
|
|
6128
6159
|
});
|
|
6129
6160
|
};
|
|
6130
|
-
var Canvas =
|
|
6161
|
+
var Canvas = React16.forwardRef(CanvasRefForwardingFunction);
|
|
6131
6162
|
var CACHE_SIZE = 5;
|
|
6132
6163
|
var getActualTime = ({
|
|
6133
6164
|
loopBehavior,
|
|
@@ -6288,6 +6319,12 @@ var resolveAnimatedImageSource = (src) => {
|
|
|
6288
6319
|
return new URL(src, window.origin).href;
|
|
6289
6320
|
};
|
|
6290
6321
|
var animatedImageSchema = {
|
|
6322
|
+
src: {
|
|
6323
|
+
type: "asset",
|
|
6324
|
+
default: undefined,
|
|
6325
|
+
description: "Source",
|
|
6326
|
+
keyframable: false
|
|
6327
|
+
},
|
|
6291
6328
|
...baseSchema,
|
|
6292
6329
|
playbackRate: {
|
|
6293
6330
|
type: "number",
|
|
@@ -6705,7 +6742,7 @@ var calculateMediaDuration = ({
|
|
|
6705
6742
|
};
|
|
6706
6743
|
var LoopContext = createContext18(null);
|
|
6707
6744
|
var useLoop = () => {
|
|
6708
|
-
return
|
|
6745
|
+
return React17.useContext(LoopContext);
|
|
6709
6746
|
};
|
|
6710
6747
|
var Loop = ({
|
|
6711
6748
|
durationInFrames,
|
|
@@ -7556,7 +7593,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
7556
7593
|
};
|
|
7557
7594
|
});
|
|
7558
7595
|
}, [audioContext, numberOfAudioTags]);
|
|
7559
|
-
const effectToUse =
|
|
7596
|
+
const effectToUse = React20.useInsertionEffect ?? React20.useLayoutEffect;
|
|
7560
7597
|
effectToUse(() => {
|
|
7561
7598
|
return () => {
|
|
7562
7599
|
requestAnimationFrame(() => {
|
|
@@ -7726,7 +7763,7 @@ var useSharedAudio = ({
|
|
|
7726
7763
|
if (tagsCtx && tagsCtx.numberOfAudioTags > 0) {
|
|
7727
7764
|
return tagsCtx.registerAudio({ aud, audioId, premounting, postmounting });
|
|
7728
7765
|
}
|
|
7729
|
-
const el =
|
|
7766
|
+
const el = React20.createRef();
|
|
7730
7767
|
const mediaElementSourceNode = audioCtx?.audioContext ? makeSharedElementSourceNode({
|
|
7731
7768
|
audioContext: audioCtx.audioContext,
|
|
7732
7769
|
ref: el
|
|
@@ -7745,7 +7782,7 @@ var useSharedAudio = ({
|
|
|
7745
7782
|
}
|
|
7746
7783
|
};
|
|
7747
7784
|
});
|
|
7748
|
-
const effectToUse =
|
|
7785
|
+
const effectToUse = React20.useInsertionEffect ?? React20.useLayoutEffect;
|
|
7749
7786
|
if (typeof document !== "undefined") {
|
|
7750
7787
|
effectToUse(() => {
|
|
7751
7788
|
if (tagsCtx && tagsCtx.numberOfAudioTags > 0) {
|
|
@@ -8297,7 +8334,7 @@ var useBufferManager = (logLevel, mountTime) => {
|
|
|
8297
8334
|
return { addBlock, listenForBuffering, listenForResume, buffering };
|
|
8298
8335
|
}, [addBlock, buffering, listenForBuffering, listenForResume]);
|
|
8299
8336
|
};
|
|
8300
|
-
var BufferingContextReact =
|
|
8337
|
+
var BufferingContextReact = React21.createContext(null);
|
|
8301
8338
|
var BufferingProvider = ({ children }) => {
|
|
8302
8339
|
const { logLevel, mountTime } = useContext24(LogLevelContext);
|
|
8303
8340
|
const bufferManager = useBufferManager(logLevel ?? "info", mountTime);
|
|
@@ -8510,7 +8547,7 @@ var getMediaSyncAction = (input) => {
|
|
|
8510
8547
|
return { type: "none" };
|
|
8511
8548
|
};
|
|
8512
8549
|
var useCurrentTimeOfMediaTagWithUpdateTimeStamp = (mediaRef) => {
|
|
8513
|
-
const lastUpdate =
|
|
8550
|
+
const lastUpdate = React22.useRef({
|
|
8514
8551
|
time: mediaRef.current?.currentTime ?? 0,
|
|
8515
8552
|
lastUpdate: performance.now()
|
|
8516
8553
|
});
|
|
@@ -9263,7 +9300,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
9263
9300
|
volume: userPreferredVolume,
|
|
9264
9301
|
shouldUseWebAudioApi: useWebAudioApi ?? false
|
|
9265
9302
|
});
|
|
9266
|
-
const effectToUse =
|
|
9303
|
+
const effectToUse = React23.useInsertionEffect ?? React23.useLayoutEffect;
|
|
9267
9304
|
effectToUse(() => {
|
|
9268
9305
|
return () => {
|
|
9269
9306
|
requestAnimationFrame(() => {
|
|
@@ -10809,6 +10846,12 @@ var NativeImgInner = ({
|
|
|
10809
10846
|
};
|
|
10810
10847
|
var CanvasImageWithPrivateProps = CanvasImage;
|
|
10811
10848
|
var imgSchema = {
|
|
10849
|
+
src: {
|
|
10850
|
+
type: "asset",
|
|
10851
|
+
default: undefined,
|
|
10852
|
+
description: "Source",
|
|
10853
|
+
keyframable: false
|
|
10854
|
+
},
|
|
10812
10855
|
...baseSchema,
|
|
10813
10856
|
...transformSchema
|
|
10814
10857
|
};
|
|
@@ -11019,7 +11062,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
11019
11062
|
_remotionInternalStack: stack,
|
|
11020
11063
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/interactive",
|
|
11021
11064
|
outlineRef: refForOutline,
|
|
11022
|
-
children:
|
|
11065
|
+
children: React30.createElement(tag, {
|
|
11023
11066
|
...props2,
|
|
11024
11067
|
ref: callbackRef
|
|
11025
11068
|
})
|
|
@@ -11083,7 +11126,7 @@ var Interactive = {
|
|
|
11083
11126
|
Text: makeInteractiveElement("text", "<Interactive.Text>"),
|
|
11084
11127
|
Ul: makeInteractiveElement("ul", "<Interactive.Ul>")
|
|
11085
11128
|
};
|
|
11086
|
-
var compositionsRef =
|
|
11129
|
+
var compositionsRef = React31.createRef();
|
|
11087
11130
|
var CompositionManagerProvider = ({
|
|
11088
11131
|
children,
|
|
11089
11132
|
onlyRenderComposition,
|
|
@@ -11232,7 +11275,7 @@ var REMOTION_STUDIO_CONTAINER_ELEMENT = "__remotion-studio-container";
|
|
|
11232
11275
|
var getPreviewDomElement = () => {
|
|
11233
11276
|
return document.getElementById(REMOTION_STUDIO_CONTAINER_ELEMENT);
|
|
11234
11277
|
};
|
|
11235
|
-
var MaxMediaCacheSizeContext =
|
|
11278
|
+
var MaxMediaCacheSizeContext = React32.createContext(null);
|
|
11236
11279
|
var Root = null;
|
|
11237
11280
|
var listeners = [];
|
|
11238
11281
|
var getRoot = () => {
|
|
@@ -11505,7 +11548,7 @@ var resolveVideoConfigOrCatch = (params) => {
|
|
|
11505
11548
|
};
|
|
11506
11549
|
}
|
|
11507
11550
|
};
|
|
11508
|
-
var SequenceStackTracesUpdateContext =
|
|
11551
|
+
var SequenceStackTracesUpdateContext = React34.createContext(() => {});
|
|
11509
11552
|
var getEnvVariables = () => {
|
|
11510
11553
|
if (getRemotionEnvironment().isRendering) {
|
|
11511
11554
|
const param = window.remotion_envVariables;
|
|
@@ -11531,7 +11574,7 @@ var setupEnvVariables = () => {
|
|
|
11531
11574
|
window.process.env[key] = env[key];
|
|
11532
11575
|
});
|
|
11533
11576
|
};
|
|
11534
|
-
var CurrentScaleContext =
|
|
11577
|
+
var CurrentScaleContext = React35.createContext(null);
|
|
11535
11578
|
var PreviewSizeContext = createContext25({
|
|
11536
11579
|
setSize: () => {
|
|
11537
11580
|
return;
|
|
@@ -11555,7 +11598,7 @@ var calculateScale = ({
|
|
|
11555
11598
|
}
|
|
11556
11599
|
return Number(previewSize);
|
|
11557
11600
|
};
|
|
11558
|
-
var PixelDensityContext =
|
|
11601
|
+
var PixelDensityContext = React36.createContext(null);
|
|
11559
11602
|
var getOffthreadVideoSource = ({
|
|
11560
11603
|
src,
|
|
11561
11604
|
transparent,
|
|
@@ -11822,7 +11865,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
11822
11865
|
ref: videoRef
|
|
11823
11866
|
});
|
|
11824
11867
|
}, [context.audioContext]);
|
|
11825
|
-
const effectToUse =
|
|
11868
|
+
const effectToUse = React38.useInsertionEffect ?? React38.useLayoutEffect;
|
|
11826
11869
|
effectToUse(() => {
|
|
11827
11870
|
return () => {
|
|
11828
11871
|
requestAnimationFrame(() => {
|
|
@@ -12198,20 +12241,20 @@ var OffthreadVideo = ({
|
|
|
12198
12241
|
addSequenceStackTraces(OffthreadVideo);
|
|
12199
12242
|
var WATCH_REMOTION_STATIC_FILES = "remotion_staticFilesChanged";
|
|
12200
12243
|
function useRemotionContexts() {
|
|
12201
|
-
const compositionManagerCtx =
|
|
12202
|
-
const timelineContext =
|
|
12203
|
-
const setTimelineContext =
|
|
12204
|
-
const sequenceContext =
|
|
12205
|
-
const nonceContext =
|
|
12206
|
-
const canUseRemotionHooksContext =
|
|
12207
|
-
const preloadContext =
|
|
12208
|
-
const resolveCompositionContext =
|
|
12209
|
-
const renderAssetManagerContext =
|
|
12210
|
-
const sequenceManagerContext =
|
|
12211
|
-
const sequenceManagerRefContext =
|
|
12212
|
-
const visualModePropStatusesRefContext =
|
|
12213
|
-
const bufferManagerContext =
|
|
12214
|
-
const logLevelContext =
|
|
12244
|
+
const compositionManagerCtx = React40.useContext(CompositionManager);
|
|
12245
|
+
const timelineContext = React40.useContext(TimelineContext);
|
|
12246
|
+
const setTimelineContext = React40.useContext(SetTimelineContext);
|
|
12247
|
+
const sequenceContext = React40.useContext(SequenceContext);
|
|
12248
|
+
const nonceContext = React40.useContext(NonceContext);
|
|
12249
|
+
const canUseRemotionHooksContext = React40.useContext(CanUseRemotionHooks);
|
|
12250
|
+
const preloadContext = React40.useContext(PreloadContext);
|
|
12251
|
+
const resolveCompositionContext = React40.useContext(ResolveCompositionContext);
|
|
12252
|
+
const renderAssetManagerContext = React40.useContext(RenderAssetManager);
|
|
12253
|
+
const sequenceManagerContext = React40.useContext(SequenceManager);
|
|
12254
|
+
const sequenceManagerRefContext = React40.useContext(SequenceManagerRefContext);
|
|
12255
|
+
const visualModePropStatusesRefContext = React40.useContext(VisualModePropStatusesRefContext);
|
|
12256
|
+
const bufferManagerContext = React40.useContext(BufferingContextReact);
|
|
12257
|
+
const logLevelContext = React40.useContext(LogLevelContext);
|
|
12215
12258
|
return useMemo37(() => ({
|
|
12216
12259
|
compositionManagerCtx,
|
|
12217
12260
|
timelineContext,
|
|
@@ -12385,6 +12428,8 @@ var Internals = {
|
|
|
12385
12428
|
BufferingProvider,
|
|
12386
12429
|
BufferingContextReact,
|
|
12387
12430
|
getComponentsToAddStacksTo,
|
|
12431
|
+
getSequenceComponent,
|
|
12432
|
+
getSingleChildComponent,
|
|
12388
12433
|
CurrentScaleContext,
|
|
12389
12434
|
PixelDensityContext,
|
|
12390
12435
|
PreviewSizeContext,
|
|
@@ -12442,9 +12487,9 @@ var Internals = {
|
|
|
12442
12487
|
fromField
|
|
12443
12488
|
};
|
|
12444
12489
|
var flattenChildren = (children) => {
|
|
12445
|
-
const childrenArray =
|
|
12490
|
+
const childrenArray = React41.Children.toArray(children);
|
|
12446
12491
|
return childrenArray.reduce((flatChildren, child) => {
|
|
12447
|
-
if (child.type ===
|
|
12492
|
+
if (child.type === React41.Fragment) {
|
|
12448
12493
|
return flatChildren.concat(flattenChildren(child.props.children));
|
|
12449
12494
|
}
|
|
12450
12495
|
flatChildren.push(child);
|
|
@@ -12532,7 +12577,7 @@ var SeriesInner = (props2) => {
|
|
|
12532
12577
|
index: i,
|
|
12533
12578
|
childrenLength: flattenedChildren.length
|
|
12534
12579
|
});
|
|
12535
|
-
return
|
|
12580
|
+
return React42.cloneElement(castedElement, {
|
|
12536
12581
|
_remotionInternalRender: (resolvedProps, ref) => {
|
|
12537
12582
|
const durationInFramesProp = resolvedProps.durationInFrames;
|
|
12538
12583
|
const {
|
|
@@ -12690,7 +12735,7 @@ var Still = (props2) => {
|
|
|
12690
12735
|
durationInFrames: 1,
|
|
12691
12736
|
fps: 1
|
|
12692
12737
|
};
|
|
12693
|
-
return
|
|
12738
|
+
return React43.createElement(Composition, newProps);
|
|
12694
12739
|
};
|
|
12695
12740
|
addSequenceStackTraces(Still);
|
|
12696
12741
|
var roundTo6Commas = (num) => {
|
|
@@ -13169,6 +13214,7 @@ var Config = new Proxy(proxyObj, {
|
|
|
13169
13214
|
});
|
|
13170
13215
|
Sequence.displayName = "Sequence";
|
|
13171
13216
|
addSequenceStackTraces(Sequence);
|
|
13217
|
+
setSequenceComponent(Sequence);
|
|
13172
13218
|
addSequenceStackTraces(Composition);
|
|
13173
13219
|
addSequenceStackTraces(Folder);
|
|
13174
13220
|
|