@remotion/promo-pages 4.0.439 → 4.0.440
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 +160 -72
- package/dist/design.js +111 -24
- package/dist/experts.js +100 -13
- package/dist/homepage/Pricing.js +104 -17
- package/dist/prompts/PromptsGallery.js +111 -24
- package/dist/prompts/PromptsShow.js +117 -30
- package/dist/prompts/PromptsSubmit.js +119 -32
- package/dist/tailwind.css +7 -5
- package/dist/team.js +102 -15
- package/dist/template-modal-content.js +108 -21
- package/dist/templates.js +102 -15
- package/package.json +13 -13
package/dist/design.js
CHANGED
|
@@ -1375,7 +1375,7 @@ var getDefaultConfig = () => {
|
|
|
1375
1375
|
var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
|
|
1376
1376
|
|
|
1377
1377
|
// ../design/dist/esm/index.mjs
|
|
1378
|
-
import React4, { useEffect as useEffect18, useMemo as useMemo36, useState as
|
|
1378
|
+
import React4, { useEffect as useEffect18, useMemo as useMemo36, useState as useState20 } from "react";
|
|
1379
1379
|
|
|
1380
1380
|
// ../paths/dist/esm/index.mjs
|
|
1381
1381
|
var cutLInstruction = ({
|
|
@@ -5862,7 +5862,8 @@ import {
|
|
|
5862
5862
|
useContext as useContext29,
|
|
5863
5863
|
useImperativeHandle as useImperativeHandle6,
|
|
5864
5864
|
useLayoutEffect as useLayoutEffect9,
|
|
5865
|
-
useRef as useRef17
|
|
5865
|
+
useRef as useRef17,
|
|
5866
|
+
useState as useState15
|
|
5866
5867
|
} from "react";
|
|
5867
5868
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
5868
5869
|
import { createRef as createRef3 } from "react";
|
|
@@ -5872,7 +5873,7 @@ import {
|
|
|
5872
5873
|
useImperativeHandle as useImperativeHandle7,
|
|
5873
5874
|
useMemo as useMemo26,
|
|
5874
5875
|
useRef as useRef18,
|
|
5875
|
-
useState as
|
|
5876
|
+
useState as useState16
|
|
5876
5877
|
} from "react";
|
|
5877
5878
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
5878
5879
|
import React25 from "react";
|
|
@@ -5882,7 +5883,7 @@ import { jsx as jsx26 } from "react/jsx-runtime";
|
|
|
5882
5883
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
5883
5884
|
import React27 from "react";
|
|
5884
5885
|
import React28, { createContext as createContext21 } from "react";
|
|
5885
|
-
import { useContext as useContext31, useMemo as useMemo29, useState as
|
|
5886
|
+
import { useContext as useContext31, useMemo as useMemo29, useState as useState17 } from "react";
|
|
5886
5887
|
import { useContext as useContext32 } from "react";
|
|
5887
5888
|
import { useCallback as useCallback16 } from "react";
|
|
5888
5889
|
import {
|
|
@@ -5891,7 +5892,7 @@ import {
|
|
|
5891
5892
|
useEffect as useEffect14,
|
|
5892
5893
|
useLayoutEffect as useLayoutEffect10,
|
|
5893
5894
|
useMemo as useMemo30,
|
|
5894
|
-
useState as
|
|
5895
|
+
useState as useState18
|
|
5895
5896
|
} from "react";
|
|
5896
5897
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
5897
5898
|
import React30, {
|
|
@@ -5901,7 +5902,7 @@ import React30, {
|
|
|
5901
5902
|
useImperativeHandle as useImperativeHandle8,
|
|
5902
5903
|
useMemo as useMemo31,
|
|
5903
5904
|
useRef as useRef19,
|
|
5904
|
-
useState as
|
|
5905
|
+
useState as useState19
|
|
5905
5906
|
} from "react";
|
|
5906
5907
|
import { useEffect as useEffect15 } from "react";
|
|
5907
5908
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
@@ -5972,7 +5973,7 @@ var useIsPlayer = () => {
|
|
|
5972
5973
|
function truthy2(value) {
|
|
5973
5974
|
return Boolean(value);
|
|
5974
5975
|
}
|
|
5975
|
-
var VERSION = "4.0.
|
|
5976
|
+
var VERSION = "4.0.440";
|
|
5976
5977
|
var checkMultipleRemotionVersions = () => {
|
|
5977
5978
|
if (typeof globalThis === "undefined") {
|
|
5978
5979
|
return;
|
|
@@ -9063,6 +9064,76 @@ var useBasicMediaInTimeline = ({
|
|
|
9063
9064
|
finalDisplayName: displayName ?? getAssetDisplayName(src)
|
|
9064
9065
|
};
|
|
9065
9066
|
};
|
|
9067
|
+
var useImageInTimeline = ({
|
|
9068
|
+
src,
|
|
9069
|
+
displayName,
|
|
9070
|
+
id,
|
|
9071
|
+
stack,
|
|
9072
|
+
showInTimeline,
|
|
9073
|
+
premountDisplay,
|
|
9074
|
+
postmountDisplay,
|
|
9075
|
+
loopDisplay
|
|
9076
|
+
}) => {
|
|
9077
|
+
const parentSequence = useContext19(SequenceContext);
|
|
9078
|
+
const { registerSequence, unregisterSequence } = useContext19(SequenceManager);
|
|
9079
|
+
const { duration, nonce, rootId, isStudio, finalDisplayName } = useBasicMediaInTimeline({
|
|
9080
|
+
volume: undefined,
|
|
9081
|
+
mediaVolume: 0,
|
|
9082
|
+
mediaType: "image",
|
|
9083
|
+
src,
|
|
9084
|
+
displayName,
|
|
9085
|
+
trimAfter: undefined,
|
|
9086
|
+
trimBefore: undefined,
|
|
9087
|
+
playbackRate: 1
|
|
9088
|
+
});
|
|
9089
|
+
useEffect4(() => {
|
|
9090
|
+
if (!src) {
|
|
9091
|
+
throw new Error("No src passed");
|
|
9092
|
+
}
|
|
9093
|
+
if (!isStudio && window.process?.env?.NODE_ENV !== "test") {
|
|
9094
|
+
return;
|
|
9095
|
+
}
|
|
9096
|
+
if (!showInTimeline) {
|
|
9097
|
+
return;
|
|
9098
|
+
}
|
|
9099
|
+
registerSequence({
|
|
9100
|
+
type: "image",
|
|
9101
|
+
src,
|
|
9102
|
+
id,
|
|
9103
|
+
duration,
|
|
9104
|
+
from: 0,
|
|
9105
|
+
parent: parentSequence?.id ?? null,
|
|
9106
|
+
displayName: finalDisplayName,
|
|
9107
|
+
rootId,
|
|
9108
|
+
showInTimeline: true,
|
|
9109
|
+
nonce: nonce.get(),
|
|
9110
|
+
loopDisplay,
|
|
9111
|
+
stack,
|
|
9112
|
+
premountDisplay,
|
|
9113
|
+
postmountDisplay,
|
|
9114
|
+
controls: null
|
|
9115
|
+
});
|
|
9116
|
+
return () => {
|
|
9117
|
+
unregisterSequence(id);
|
|
9118
|
+
};
|
|
9119
|
+
}, [
|
|
9120
|
+
duration,
|
|
9121
|
+
id,
|
|
9122
|
+
parentSequence,
|
|
9123
|
+
src,
|
|
9124
|
+
registerSequence,
|
|
9125
|
+
unregisterSequence,
|
|
9126
|
+
nonce,
|
|
9127
|
+
stack,
|
|
9128
|
+
showInTimeline,
|
|
9129
|
+
premountDisplay,
|
|
9130
|
+
postmountDisplay,
|
|
9131
|
+
isStudio,
|
|
9132
|
+
loopDisplay,
|
|
9133
|
+
rootId,
|
|
9134
|
+
finalDisplayName
|
|
9135
|
+
]);
|
|
9136
|
+
};
|
|
9066
9137
|
var useMediaInTimeline = ({
|
|
9067
9138
|
volume,
|
|
9068
9139
|
mediaVolume,
|
|
@@ -10807,12 +10878,16 @@ var ImgRefForwarding = ({
|
|
|
10807
10878
|
delayRenderTimeoutInMilliseconds,
|
|
10808
10879
|
onImageFrame,
|
|
10809
10880
|
crossOrigin,
|
|
10881
|
+
showInTimeline,
|
|
10882
|
+
name,
|
|
10883
|
+
stack,
|
|
10810
10884
|
...props2
|
|
10811
10885
|
}, ref) => {
|
|
10812
10886
|
const imageRef = useRef17(null);
|
|
10813
10887
|
const errors = useRef17({});
|
|
10814
10888
|
const { delayPlayback } = useBufferState();
|
|
10815
10889
|
const sequenceContext = useContext29(SequenceContext);
|
|
10890
|
+
const [timelineId] = useState15(() => String(Math.random()));
|
|
10816
10891
|
if (!src) {
|
|
10817
10892
|
throw new Error('No "src" prop was passed to <Img>.');
|
|
10818
10893
|
}
|
|
@@ -10823,6 +10898,16 @@ var ImgRefForwarding = ({
|
|
|
10823
10898
|
useImperativeHandle6(ref, () => {
|
|
10824
10899
|
return imageRef.current;
|
|
10825
10900
|
}, []);
|
|
10901
|
+
useImageInTimeline({
|
|
10902
|
+
src,
|
|
10903
|
+
displayName: name ?? null,
|
|
10904
|
+
id: timelineId,
|
|
10905
|
+
stack: stack ?? null,
|
|
10906
|
+
showInTimeline: showInTimeline ?? true,
|
|
10907
|
+
premountDisplay: sequenceContext?.premountDisplay ?? null,
|
|
10908
|
+
postmountDisplay: sequenceContext?.postmountDisplay ?? null,
|
|
10909
|
+
loopDisplay: undefined
|
|
10910
|
+
});
|
|
10826
10911
|
const actualSrc = usePreload(src);
|
|
10827
10912
|
const retryIn = useCallback13((timeout) => {
|
|
10828
10913
|
if (!imageRef.current) {
|
|
@@ -10945,6 +11030,7 @@ var ImgRefForwarding = ({
|
|
|
10945
11030
|
});
|
|
10946
11031
|
};
|
|
10947
11032
|
var Img = forwardRef8(ImgRefForwarding);
|
|
11033
|
+
addSequenceStackTraces(Img);
|
|
10948
11034
|
var compositionsRef = React24.createRef();
|
|
10949
11035
|
var CompositionManagerProvider = ({
|
|
10950
11036
|
children,
|
|
@@ -10953,9 +11039,9 @@ var CompositionManagerProvider = ({
|
|
|
10953
11039
|
initialCompositions,
|
|
10954
11040
|
initialCanvasContent
|
|
10955
11041
|
}) => {
|
|
10956
|
-
const [folders, setFolders] =
|
|
10957
|
-
const [canvasContent, setCanvasContent] =
|
|
10958
|
-
const [compositions, setCompositions] =
|
|
11042
|
+
const [folders, setFolders] = useState16([]);
|
|
11043
|
+
const [canvasContent, setCanvasContent] = useState16(initialCanvasContent);
|
|
11044
|
+
const [compositions, setCompositions] = useState16(initialCompositions);
|
|
10959
11045
|
const currentcompositionsRef = useRef18(compositions);
|
|
10960
11046
|
const updateCompositions = useCallback14((updateComps) => {
|
|
10961
11047
|
setCompositions((comps) => {
|
|
@@ -11219,6 +11305,7 @@ var validCodecs = [
|
|
|
11219
11305
|
"h265",
|
|
11220
11306
|
"vp8",
|
|
11221
11307
|
"vp9",
|
|
11308
|
+
"av1",
|
|
11222
11309
|
"mp3",
|
|
11223
11310
|
"aac",
|
|
11224
11311
|
"wav",
|
|
@@ -11442,7 +11529,7 @@ var useSchema = (schema, currentValue) => {
|
|
|
11442
11529
|
if (earlyReturn) {
|
|
11443
11530
|
return earlyReturn;
|
|
11444
11531
|
}
|
|
11445
|
-
const [overrideId] =
|
|
11532
|
+
const [overrideId] = useState17(() => String(Math.random()));
|
|
11446
11533
|
const {
|
|
11447
11534
|
visualModeEnabled,
|
|
11448
11535
|
dragOverrides: overrides,
|
|
@@ -11612,7 +11699,7 @@ var OffthreadVideoForRendering = ({
|
|
|
11612
11699
|
toneMapped
|
|
11613
11700
|
});
|
|
11614
11701
|
}, [toneMapped, currentTime, src, transparent]);
|
|
11615
|
-
const [imageSrc, setImageSrc] =
|
|
11702
|
+
const [imageSrc, setImageSrc] = useState18(null);
|
|
11616
11703
|
const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
|
|
11617
11704
|
useLayoutEffect10(() => {
|
|
11618
11705
|
if (!window.remotion_videoEnabled) {
|
|
@@ -11801,7 +11888,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
11801
11888
|
const { hidden } = useContext34(SequenceVisibilityToggleContext);
|
|
11802
11889
|
const logLevel = useLogLevel();
|
|
11803
11890
|
const mountTime = useMountTime();
|
|
11804
|
-
const [timelineId] =
|
|
11891
|
+
const [timelineId] = useState19(() => String(Math.random()));
|
|
11805
11892
|
const isSequenceHidden = hidden[timelineId] ?? false;
|
|
11806
11893
|
if (typeof acceptableTimeShift !== "undefined") {
|
|
11807
11894
|
throw new Error("acceptableTimeShift has been removed. Use acceptableTimeShiftInSeconds instead.");
|
|
@@ -11867,7 +11954,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
11867
11954
|
useImperativeHandle8(ref, () => {
|
|
11868
11955
|
return videoRef.current;
|
|
11869
11956
|
}, []);
|
|
11870
|
-
|
|
11957
|
+
useState19(() => playbackLogging({
|
|
11871
11958
|
logLevel,
|
|
11872
11959
|
message: `Mounting video with source = ${actualSrc}, v=${VERSION}, user agent=${typeof navigator === "undefined" ? "server" : navigator.userAgent}`,
|
|
11873
11960
|
tag: "video",
|
|
@@ -13544,7 +13631,7 @@ var getAngle = (ref, coordinates) => {
|
|
|
13544
13631
|
};
|
|
13545
13632
|
var lastCoordinates = null;
|
|
13546
13633
|
var useMousePosition = (ref) => {
|
|
13547
|
-
const [angle, setAngle] =
|
|
13634
|
+
const [angle, setAngle] = useState20(getAngle(ref.current, lastCoordinates));
|
|
13548
13635
|
useEffect18(() => {
|
|
13549
13636
|
const element = ref.current;
|
|
13550
13637
|
if (!element) {
|
|
@@ -19850,10 +19937,10 @@ var Triangle2 = (props) => {
|
|
|
19850
19937
|
};
|
|
19851
19938
|
|
|
19852
19939
|
// src/components/design.tsx
|
|
19853
|
-
import { useCallback as useCallback31, useState as
|
|
19940
|
+
import { useCallback as useCallback31, useState as useState40 } from "react";
|
|
19854
19941
|
|
|
19855
19942
|
// src/components/ManageTeamMembers.tsx
|
|
19856
|
-
import React51, { useCallback as useCallback30, useState as
|
|
19943
|
+
import React51, { useCallback as useCallback30, useState as useState39 } from "react";
|
|
19857
19944
|
import { jsx as jsx38, jsxs as jsxs6, Fragment as Fragment8 } from "react/jsx-runtime";
|
|
19858
19945
|
function generateId() {
|
|
19859
19946
|
return Math.random().toString(36).substr(2, 9);
|
|
@@ -19897,7 +19984,7 @@ var Row = ({ value, onChange, onDelete, disableDelete }) => {
|
|
|
19897
19984
|
});
|
|
19898
19985
|
};
|
|
19899
19986
|
var ManageTeamMembers = () => {
|
|
19900
|
-
const [members, setMembers] =
|
|
19987
|
+
const [members, setMembers] = useState39(initialMembers);
|
|
19901
19988
|
const displayedMembers = [...members, { id: "NEW", name: "" }];
|
|
19902
19989
|
const updateMember = useCallback30((idx, value) => {
|
|
19903
19990
|
if (idx === members.length) {
|
|
@@ -19911,7 +19998,7 @@ var ManageTeamMembers = () => {
|
|
|
19911
19998
|
const deleteMember = useCallback30((idx) => {
|
|
19912
19999
|
setMembers((prev) => prev.filter((_, i) => i !== idx));
|
|
19913
20000
|
}, []);
|
|
19914
|
-
const [loading, setLoading] =
|
|
20001
|
+
const [loading, setLoading] = useState39(false);
|
|
19915
20002
|
const save = useCallback30(() => {
|
|
19916
20003
|
setLoading(true);
|
|
19917
20004
|
setTimeout(() => {
|
|
@@ -19967,10 +20054,10 @@ var Explainer = ({ children }) => {
|
|
|
19967
20054
|
});
|
|
19968
20055
|
};
|
|
19969
20056
|
var DesignPage = () => {
|
|
19970
|
-
const [count4, setCount] =
|
|
19971
|
-
const [active, setActive] =
|
|
19972
|
-
const [submitButtonActive, setSubmitButtonActive] =
|
|
19973
|
-
const [submitButtonPrimaryActive, setSubmitButtonPrimaryActive] =
|
|
20057
|
+
const [count4, setCount] = useState40(10);
|
|
20058
|
+
const [active, setActive] = useState40(false);
|
|
20059
|
+
const [submitButtonActive, setSubmitButtonActive] = useState40(true);
|
|
20060
|
+
const [submitButtonPrimaryActive, setSubmitButtonPrimaryActive] = useState40(true);
|
|
19974
20061
|
const onClick = useCallback31(() => {
|
|
19975
20062
|
setSubmitButtonActive(false);
|
|
19976
20063
|
setTimeout(() => {
|
|
@@ -19983,7 +20070,7 @@ var DesignPage = () => {
|
|
|
19983
20070
|
setSubmitButtonPrimaryActive(true);
|
|
19984
20071
|
}, 1000);
|
|
19985
20072
|
}, []);
|
|
19986
|
-
const [saving, setSaving] =
|
|
20073
|
+
const [saving, setSaving] = useState40(false);
|
|
19987
20074
|
const save = useCallback31(() => {
|
|
19988
20075
|
setSaving(true);
|
|
19989
20076
|
setTimeout(() => {
|
package/dist/experts.js
CHANGED
|
@@ -888,7 +888,8 @@ import {
|
|
|
888
888
|
useContext as useContext29,
|
|
889
889
|
useImperativeHandle as useImperativeHandle6,
|
|
890
890
|
useLayoutEffect as useLayoutEffect9,
|
|
891
|
-
useRef as useRef17
|
|
891
|
+
useRef as useRef17,
|
|
892
|
+
useState as useState15
|
|
892
893
|
} from "react";
|
|
893
894
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
894
895
|
import { createRef as createRef3 } from "react";
|
|
@@ -898,7 +899,7 @@ import {
|
|
|
898
899
|
useImperativeHandle as useImperativeHandle7,
|
|
899
900
|
useMemo as useMemo26,
|
|
900
901
|
useRef as useRef18,
|
|
901
|
-
useState as
|
|
902
|
+
useState as useState16
|
|
902
903
|
} from "react";
|
|
903
904
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
904
905
|
import React25 from "react";
|
|
@@ -908,7 +909,7 @@ import { jsx as jsx26 } from "react/jsx-runtime";
|
|
|
908
909
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
909
910
|
import React27 from "react";
|
|
910
911
|
import React28, { createContext as createContext21 } from "react";
|
|
911
|
-
import { useContext as useContext31, useMemo as useMemo29, useState as
|
|
912
|
+
import { useContext as useContext31, useMemo as useMemo29, useState as useState17 } from "react";
|
|
912
913
|
import { useContext as useContext32 } from "react";
|
|
913
914
|
import { useCallback as useCallback16 } from "react";
|
|
914
915
|
import {
|
|
@@ -917,7 +918,7 @@ import {
|
|
|
917
918
|
useEffect as useEffect14,
|
|
918
919
|
useLayoutEffect as useLayoutEffect10,
|
|
919
920
|
useMemo as useMemo30,
|
|
920
|
-
useState as
|
|
921
|
+
useState as useState18
|
|
921
922
|
} from "react";
|
|
922
923
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
923
924
|
import React30, {
|
|
@@ -927,7 +928,7 @@ import React30, {
|
|
|
927
928
|
useImperativeHandle as useImperativeHandle8,
|
|
928
929
|
useMemo as useMemo31,
|
|
929
930
|
useRef as useRef19,
|
|
930
|
-
useState as
|
|
931
|
+
useState as useState19
|
|
931
932
|
} from "react";
|
|
932
933
|
import { useEffect as useEffect15 } from "react";
|
|
933
934
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
@@ -998,7 +999,7 @@ var useIsPlayer = () => {
|
|
|
998
999
|
function truthy(value) {
|
|
999
1000
|
return Boolean(value);
|
|
1000
1001
|
}
|
|
1001
|
-
var VERSION = "4.0.
|
|
1002
|
+
var VERSION = "4.0.440";
|
|
1002
1003
|
var checkMultipleRemotionVersions = () => {
|
|
1003
1004
|
if (typeof globalThis === "undefined") {
|
|
1004
1005
|
return;
|
|
@@ -4089,6 +4090,76 @@ var useBasicMediaInTimeline = ({
|
|
|
4089
4090
|
finalDisplayName: displayName ?? getAssetDisplayName(src)
|
|
4090
4091
|
};
|
|
4091
4092
|
};
|
|
4093
|
+
var useImageInTimeline = ({
|
|
4094
|
+
src,
|
|
4095
|
+
displayName,
|
|
4096
|
+
id,
|
|
4097
|
+
stack,
|
|
4098
|
+
showInTimeline,
|
|
4099
|
+
premountDisplay,
|
|
4100
|
+
postmountDisplay,
|
|
4101
|
+
loopDisplay
|
|
4102
|
+
}) => {
|
|
4103
|
+
const parentSequence = useContext19(SequenceContext);
|
|
4104
|
+
const { registerSequence, unregisterSequence } = useContext19(SequenceManager);
|
|
4105
|
+
const { duration, nonce, rootId, isStudio, finalDisplayName } = useBasicMediaInTimeline({
|
|
4106
|
+
volume: undefined,
|
|
4107
|
+
mediaVolume: 0,
|
|
4108
|
+
mediaType: "image",
|
|
4109
|
+
src,
|
|
4110
|
+
displayName,
|
|
4111
|
+
trimAfter: undefined,
|
|
4112
|
+
trimBefore: undefined,
|
|
4113
|
+
playbackRate: 1
|
|
4114
|
+
});
|
|
4115
|
+
useEffect4(() => {
|
|
4116
|
+
if (!src) {
|
|
4117
|
+
throw new Error("No src passed");
|
|
4118
|
+
}
|
|
4119
|
+
if (!isStudio && window.process?.env?.NODE_ENV !== "test") {
|
|
4120
|
+
return;
|
|
4121
|
+
}
|
|
4122
|
+
if (!showInTimeline) {
|
|
4123
|
+
return;
|
|
4124
|
+
}
|
|
4125
|
+
registerSequence({
|
|
4126
|
+
type: "image",
|
|
4127
|
+
src,
|
|
4128
|
+
id,
|
|
4129
|
+
duration,
|
|
4130
|
+
from: 0,
|
|
4131
|
+
parent: parentSequence?.id ?? null,
|
|
4132
|
+
displayName: finalDisplayName,
|
|
4133
|
+
rootId,
|
|
4134
|
+
showInTimeline: true,
|
|
4135
|
+
nonce: nonce.get(),
|
|
4136
|
+
loopDisplay,
|
|
4137
|
+
stack,
|
|
4138
|
+
premountDisplay,
|
|
4139
|
+
postmountDisplay,
|
|
4140
|
+
controls: null
|
|
4141
|
+
});
|
|
4142
|
+
return () => {
|
|
4143
|
+
unregisterSequence(id);
|
|
4144
|
+
};
|
|
4145
|
+
}, [
|
|
4146
|
+
duration,
|
|
4147
|
+
id,
|
|
4148
|
+
parentSequence,
|
|
4149
|
+
src,
|
|
4150
|
+
registerSequence,
|
|
4151
|
+
unregisterSequence,
|
|
4152
|
+
nonce,
|
|
4153
|
+
stack,
|
|
4154
|
+
showInTimeline,
|
|
4155
|
+
premountDisplay,
|
|
4156
|
+
postmountDisplay,
|
|
4157
|
+
isStudio,
|
|
4158
|
+
loopDisplay,
|
|
4159
|
+
rootId,
|
|
4160
|
+
finalDisplayName
|
|
4161
|
+
]);
|
|
4162
|
+
};
|
|
4092
4163
|
var useMediaInTimeline = ({
|
|
4093
4164
|
volume,
|
|
4094
4165
|
mediaVolume,
|
|
@@ -5833,12 +5904,16 @@ var ImgRefForwarding = ({
|
|
|
5833
5904
|
delayRenderTimeoutInMilliseconds,
|
|
5834
5905
|
onImageFrame,
|
|
5835
5906
|
crossOrigin,
|
|
5907
|
+
showInTimeline,
|
|
5908
|
+
name,
|
|
5909
|
+
stack,
|
|
5836
5910
|
...props2
|
|
5837
5911
|
}, ref) => {
|
|
5838
5912
|
const imageRef = useRef17(null);
|
|
5839
5913
|
const errors = useRef17({});
|
|
5840
5914
|
const { delayPlayback } = useBufferState();
|
|
5841
5915
|
const sequenceContext = useContext29(SequenceContext);
|
|
5916
|
+
const [timelineId] = useState15(() => String(Math.random()));
|
|
5842
5917
|
if (!src) {
|
|
5843
5918
|
throw new Error('No "src" prop was passed to <Img>.');
|
|
5844
5919
|
}
|
|
@@ -5849,6 +5924,16 @@ var ImgRefForwarding = ({
|
|
|
5849
5924
|
useImperativeHandle6(ref, () => {
|
|
5850
5925
|
return imageRef.current;
|
|
5851
5926
|
}, []);
|
|
5927
|
+
useImageInTimeline({
|
|
5928
|
+
src,
|
|
5929
|
+
displayName: name ?? null,
|
|
5930
|
+
id: timelineId,
|
|
5931
|
+
stack: stack ?? null,
|
|
5932
|
+
showInTimeline: showInTimeline ?? true,
|
|
5933
|
+
premountDisplay: sequenceContext?.premountDisplay ?? null,
|
|
5934
|
+
postmountDisplay: sequenceContext?.postmountDisplay ?? null,
|
|
5935
|
+
loopDisplay: undefined
|
|
5936
|
+
});
|
|
5852
5937
|
const actualSrc = usePreload(src);
|
|
5853
5938
|
const retryIn = useCallback13((timeout) => {
|
|
5854
5939
|
if (!imageRef.current) {
|
|
@@ -5971,6 +6056,7 @@ var ImgRefForwarding = ({
|
|
|
5971
6056
|
});
|
|
5972
6057
|
};
|
|
5973
6058
|
var Img = forwardRef8(ImgRefForwarding);
|
|
6059
|
+
addSequenceStackTraces(Img);
|
|
5974
6060
|
var compositionsRef = React24.createRef();
|
|
5975
6061
|
var CompositionManagerProvider = ({
|
|
5976
6062
|
children,
|
|
@@ -5979,9 +6065,9 @@ var CompositionManagerProvider = ({
|
|
|
5979
6065
|
initialCompositions,
|
|
5980
6066
|
initialCanvasContent
|
|
5981
6067
|
}) => {
|
|
5982
|
-
const [folders, setFolders] =
|
|
5983
|
-
const [canvasContent, setCanvasContent] =
|
|
5984
|
-
const [compositions, setCompositions] =
|
|
6068
|
+
const [folders, setFolders] = useState16([]);
|
|
6069
|
+
const [canvasContent, setCanvasContent] = useState16(initialCanvasContent);
|
|
6070
|
+
const [compositions, setCompositions] = useState16(initialCompositions);
|
|
5985
6071
|
const currentcompositionsRef = useRef18(compositions);
|
|
5986
6072
|
const updateCompositions = useCallback14((updateComps) => {
|
|
5987
6073
|
setCompositions((comps) => {
|
|
@@ -6245,6 +6331,7 @@ var validCodecs = [
|
|
|
6245
6331
|
"h265",
|
|
6246
6332
|
"vp8",
|
|
6247
6333
|
"vp9",
|
|
6334
|
+
"av1",
|
|
6248
6335
|
"mp3",
|
|
6249
6336
|
"aac",
|
|
6250
6337
|
"wav",
|
|
@@ -6468,7 +6555,7 @@ var useSchema = (schema, currentValue) => {
|
|
|
6468
6555
|
if (earlyReturn) {
|
|
6469
6556
|
return earlyReturn;
|
|
6470
6557
|
}
|
|
6471
|
-
const [overrideId] =
|
|
6558
|
+
const [overrideId] = useState17(() => String(Math.random()));
|
|
6472
6559
|
const {
|
|
6473
6560
|
visualModeEnabled,
|
|
6474
6561
|
dragOverrides: overrides,
|
|
@@ -6638,7 +6725,7 @@ var OffthreadVideoForRendering = ({
|
|
|
6638
6725
|
toneMapped
|
|
6639
6726
|
});
|
|
6640
6727
|
}, [toneMapped, currentTime, src, transparent]);
|
|
6641
|
-
const [imageSrc, setImageSrc] =
|
|
6728
|
+
const [imageSrc, setImageSrc] = useState18(null);
|
|
6642
6729
|
const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
|
|
6643
6730
|
useLayoutEffect10(() => {
|
|
6644
6731
|
if (!window.remotion_videoEnabled) {
|
|
@@ -6827,7 +6914,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
6827
6914
|
const { hidden } = useContext34(SequenceVisibilityToggleContext);
|
|
6828
6915
|
const logLevel = useLogLevel();
|
|
6829
6916
|
const mountTime = useMountTime();
|
|
6830
|
-
const [timelineId] =
|
|
6917
|
+
const [timelineId] = useState19(() => String(Math.random()));
|
|
6831
6918
|
const isSequenceHidden = hidden[timelineId] ?? false;
|
|
6832
6919
|
if (typeof acceptableTimeShift !== "undefined") {
|
|
6833
6920
|
throw new Error("acceptableTimeShift has been removed. Use acceptableTimeShiftInSeconds instead.");
|
|
@@ -6893,7 +6980,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
6893
6980
|
useImperativeHandle8(ref, () => {
|
|
6894
6981
|
return videoRef.current;
|
|
6895
6982
|
}, []);
|
|
6896
|
-
|
|
6983
|
+
useState19(() => playbackLogging({
|
|
6897
6984
|
logLevel,
|
|
6898
6985
|
message: `Mounting video with source = ${actualSrc}, v=${VERSION}, user agent=${typeof navigator === "undefined" ? "server" : navigator.userAgent}`,
|
|
6899
6986
|
tag: "video",
|