@remotion/promo-pages 4.0.438 → 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 +394 -161
- package/dist/design.js +133 -100
- package/dist/experts.js +122 -89
- package/dist/homepage/Pricing.js +126 -93
- package/dist/prompts/PromptsGallery.js +133 -100
- package/dist/prompts/PromptsShow.js +139 -106
- package/dist/prompts/PromptsSubmit.js +141 -108
- package/dist/tailwind.css +29 -5
- package/dist/team.js +20254 -31
- package/dist/template-modal-content.js +132 -99
- package/dist/templates.js +124 -91
- 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 = ({
|
|
@@ -5744,12 +5744,7 @@ import { jsx as jsx32 } from "react/jsx-runtime";
|
|
|
5744
5744
|
import { useContext as useContext6, useMemo as useMemo5 } from "react";
|
|
5745
5745
|
import { createContext as createContext7 } from "react";
|
|
5746
5746
|
import { createContext as createContext9, createRef, useContext as useContext5, useMemo as useMemo4 } from "react";
|
|
5747
|
-
import React5, {
|
|
5748
|
-
createContext as createContext8,
|
|
5749
|
-
useCallback as useCallback2,
|
|
5750
|
-
useImperativeHandle,
|
|
5751
|
-
useMemo as useMemo3
|
|
5752
|
-
} from "react";
|
|
5747
|
+
import React5, { createContext as createContext8, useCallback as useCallback2, useMemo as useMemo3 } from "react";
|
|
5753
5748
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
5754
5749
|
import { useContext as useContext8 } from "react";
|
|
5755
5750
|
import { createContext as createContext10 } from "react";
|
|
@@ -5765,19 +5760,19 @@ import { jsx as jsx82 } from "react/jsx-runtime";
|
|
|
5765
5760
|
import {
|
|
5766
5761
|
forwardRef as forwardRef3,
|
|
5767
5762
|
useEffect as useEffect2,
|
|
5768
|
-
useImperativeHandle as
|
|
5763
|
+
useImperativeHandle as useImperativeHandle2,
|
|
5769
5764
|
useLayoutEffect as useLayoutEffect2,
|
|
5770
5765
|
useRef as useRef5,
|
|
5771
5766
|
useState as useState5
|
|
5772
5767
|
} from "react";
|
|
5773
|
-
import React10, { useCallback as useCallback5, useImperativeHandle
|
|
5768
|
+
import React10, { useCallback as useCallback5, useImperativeHandle, useRef as useRef4 } from "react";
|
|
5774
5769
|
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
5775
5770
|
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
5776
5771
|
import { useContext as useContext14, useLayoutEffect as useLayoutEffect4, useState as useState7 } from "react";
|
|
5777
5772
|
import {
|
|
5778
5773
|
createContext as createContext13,
|
|
5779
5774
|
useCallback as useCallback6,
|
|
5780
|
-
useImperativeHandle as
|
|
5775
|
+
useImperativeHandle as useImperativeHandle3,
|
|
5781
5776
|
useLayoutEffect as useLayoutEffect3,
|
|
5782
5777
|
useMemo as useMemo12,
|
|
5783
5778
|
useRef as useRef6,
|
|
@@ -5796,7 +5791,7 @@ import React17, {
|
|
|
5796
5791
|
forwardRef as forwardRef4,
|
|
5797
5792
|
useContext as useContext24,
|
|
5798
5793
|
useEffect as useEffect10,
|
|
5799
|
-
useImperativeHandle as
|
|
5794
|
+
useImperativeHandle as useImperativeHandle4,
|
|
5800
5795
|
useMemo as useMemo222,
|
|
5801
5796
|
useRef as useRef14,
|
|
5802
5797
|
useState as useState13
|
|
@@ -5845,7 +5840,7 @@ import {
|
|
|
5845
5840
|
forwardRef as forwardRef5,
|
|
5846
5841
|
useContext as useContext25,
|
|
5847
5842
|
useEffect as useEffect11,
|
|
5848
|
-
useImperativeHandle as
|
|
5843
|
+
useImperativeHandle as useImperativeHandle5,
|
|
5849
5844
|
useLayoutEffect as useLayoutEffect8,
|
|
5850
5845
|
useMemo as useMemo23,
|
|
5851
5846
|
useRef as useRef15
|
|
@@ -5865,19 +5860,20 @@ import {
|
|
|
5865
5860
|
forwardRef as forwardRef8,
|
|
5866
5861
|
useCallback as useCallback13,
|
|
5867
5862
|
useContext as useContext29,
|
|
5868
|
-
useImperativeHandle as
|
|
5863
|
+
useImperativeHandle as useImperativeHandle6,
|
|
5869
5864
|
useLayoutEffect as useLayoutEffect9,
|
|
5870
|
-
useRef as useRef17
|
|
5865
|
+
useRef as useRef17,
|
|
5866
|
+
useState as useState15
|
|
5871
5867
|
} from "react";
|
|
5872
5868
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
5873
5869
|
import { createRef as createRef3 } from "react";
|
|
5874
5870
|
import React24 from "react";
|
|
5875
5871
|
import {
|
|
5876
5872
|
useCallback as useCallback14,
|
|
5877
|
-
useImperativeHandle as
|
|
5873
|
+
useImperativeHandle as useImperativeHandle7,
|
|
5878
5874
|
useMemo as useMemo26,
|
|
5879
5875
|
useRef as useRef18,
|
|
5880
|
-
useState as
|
|
5876
|
+
useState as useState16
|
|
5881
5877
|
} from "react";
|
|
5882
5878
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
5883
5879
|
import React25 from "react";
|
|
@@ -5887,7 +5883,7 @@ import { jsx as jsx26 } from "react/jsx-runtime";
|
|
|
5887
5883
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
5888
5884
|
import React27 from "react";
|
|
5889
5885
|
import React28, { createContext as createContext21 } from "react";
|
|
5890
|
-
import { useContext as useContext31, useMemo as useMemo29, useState as
|
|
5886
|
+
import { useContext as useContext31, useMemo as useMemo29, useState as useState17 } from "react";
|
|
5891
5887
|
import { useContext as useContext32 } from "react";
|
|
5892
5888
|
import { useCallback as useCallback16 } from "react";
|
|
5893
5889
|
import {
|
|
@@ -5896,17 +5892,17 @@ import {
|
|
|
5896
5892
|
useEffect as useEffect14,
|
|
5897
5893
|
useLayoutEffect as useLayoutEffect10,
|
|
5898
5894
|
useMemo as useMemo30,
|
|
5899
|
-
useState as
|
|
5895
|
+
useState as useState18
|
|
5900
5896
|
} from "react";
|
|
5901
5897
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
5902
5898
|
import React30, {
|
|
5903
5899
|
forwardRef as forwardRef9,
|
|
5904
5900
|
useContext as useContext34,
|
|
5905
5901
|
useEffect as useEffect16,
|
|
5906
|
-
useImperativeHandle as
|
|
5902
|
+
useImperativeHandle as useImperativeHandle8,
|
|
5907
5903
|
useMemo as useMemo31,
|
|
5908
5904
|
useRef as useRef19,
|
|
5909
|
-
useState as
|
|
5905
|
+
useState as useState19
|
|
5910
5906
|
} from "react";
|
|
5911
5907
|
import { useEffect as useEffect15 } from "react";
|
|
5912
5908
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
@@ -5925,7 +5921,7 @@ import {
|
|
|
5925
5921
|
forwardRef as forwardRef12,
|
|
5926
5922
|
useContext as useContext35,
|
|
5927
5923
|
useEffect as useEffect17,
|
|
5928
|
-
useImperativeHandle as
|
|
5924
|
+
useImperativeHandle as useImperativeHandle9,
|
|
5929
5925
|
useLayoutEffect as useLayoutEffect11,
|
|
5930
5926
|
useMemo as useMemo35,
|
|
5931
5927
|
useRef as useRef20
|
|
@@ -5977,7 +5973,7 @@ var useIsPlayer = () => {
|
|
|
5977
5973
|
function truthy2(value) {
|
|
5978
5974
|
return Boolean(value);
|
|
5979
5975
|
}
|
|
5980
|
-
var VERSION = "4.0.
|
|
5976
|
+
var VERSION = "4.0.440";
|
|
5981
5977
|
var checkMultipleRemotionVersions = () => {
|
|
5982
5978
|
if (typeof globalThis === "undefined") {
|
|
5983
5979
|
return;
|
|
@@ -6498,9 +6494,6 @@ var CompositionSetters = createContext7({
|
|
|
6498
6494
|
setCanvasContent: () => {
|
|
6499
6495
|
return;
|
|
6500
6496
|
},
|
|
6501
|
-
updateCompositionDefaultProps: () => {
|
|
6502
|
-
return;
|
|
6503
|
-
},
|
|
6504
6497
|
onlyRenderComposition: null
|
|
6505
6498
|
});
|
|
6506
6499
|
var getKey = () => {
|
|
@@ -6620,12 +6613,8 @@ var EditorPropsContext = createContext8({
|
|
|
6620
6613
|
props: {},
|
|
6621
6614
|
updateProps: () => {
|
|
6622
6615
|
throw new Error("Not implemented");
|
|
6623
|
-
},
|
|
6624
|
-
resetUnsaved: () => {
|
|
6625
|
-
throw new Error("Not implemented");
|
|
6626
6616
|
}
|
|
6627
6617
|
});
|
|
6628
|
-
var editorPropsProviderRef = React5.createRef();
|
|
6629
6618
|
var timeValueRef = React5.createRef();
|
|
6630
6619
|
var EditorPropsProvider = ({ children }) => {
|
|
6631
6620
|
const [props, setProps] = React5.useState({});
|
|
@@ -6641,25 +6630,9 @@ var EditorPropsProvider = ({ children }) => {
|
|
|
6641
6630
|
};
|
|
6642
6631
|
});
|
|
6643
6632
|
}, []);
|
|
6644
|
-
const resetUnsaved = useCallback2((compositionId) => {
|
|
6645
|
-
setProps((prev) => {
|
|
6646
|
-
if (prev[compositionId]) {
|
|
6647
|
-
const newProps = { ...prev };
|
|
6648
|
-
delete newProps[compositionId];
|
|
6649
|
-
return newProps;
|
|
6650
|
-
}
|
|
6651
|
-
return prev;
|
|
6652
|
-
});
|
|
6653
|
-
}, []);
|
|
6654
|
-
useImperativeHandle(editorPropsProviderRef, () => {
|
|
6655
|
-
return {
|
|
6656
|
-
getProps: () => props,
|
|
6657
|
-
setProps
|
|
6658
|
-
};
|
|
6659
|
-
}, [props]);
|
|
6660
6633
|
const ctx = useMemo3(() => {
|
|
6661
|
-
return { props, updateProps
|
|
6662
|
-
}, [props,
|
|
6634
|
+
return { props, updateProps };
|
|
6635
|
+
}, [props, updateProps]);
|
|
6663
6636
|
return /* @__PURE__ */ jsx42(EditorPropsContext.Provider, {
|
|
6664
6637
|
value: ctx,
|
|
6665
6638
|
children
|
|
@@ -6722,7 +6695,6 @@ var resolveCompositionsRef = createRef();
|
|
|
6722
6695
|
var needsResolution = (composition) => {
|
|
6723
6696
|
return Boolean(composition.calculateMetadata);
|
|
6724
6697
|
};
|
|
6725
|
-
var PROPS_UPDATED_EXTERNALLY = "remotion.propsUpdatedExternally";
|
|
6726
6698
|
var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
6727
6699
|
const context = useContext5(ResolveCompositionContext);
|
|
6728
6700
|
const { props: allEditorProps } = useContext5(EditorPropsContext);
|
|
@@ -7493,7 +7465,7 @@ var CanvasRefForwardingFunction = ({ width, height, fit, className, style }, ref
|
|
|
7493
7465
|
height: canvasHeight
|
|
7494
7466
|
}));
|
|
7495
7467
|
}, [fit, height, width]);
|
|
7496
|
-
|
|
7468
|
+
useImperativeHandle(ref, () => {
|
|
7497
7469
|
return {
|
|
7498
7470
|
draw,
|
|
7499
7471
|
getCanvas: () => {
|
|
@@ -7692,7 +7664,7 @@ var AnimatedImage = forwardRef3(({
|
|
|
7692
7664
|
const currentTimeRef = useRef5(currentTime);
|
|
7693
7665
|
currentTimeRef.current = currentTime;
|
|
7694
7666
|
const ref = useRef5(null);
|
|
7695
|
-
|
|
7667
|
+
useImperativeHandle2(canvasRef, () => {
|
|
7696
7668
|
const c = ref.current?.getCanvas();
|
|
7697
7669
|
if (!c) {
|
|
7698
7670
|
throw new Error("Canvas ref is not set");
|
|
@@ -7818,7 +7790,7 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
|
|
|
7818
7790
|
setRenderAssets(renderAssetsRef.current);
|
|
7819
7791
|
}, []);
|
|
7820
7792
|
if (collectAssets) {
|
|
7821
|
-
|
|
7793
|
+
useImperativeHandle3(collectAssets, () => {
|
|
7822
7794
|
return {
|
|
7823
7795
|
collectAssets: () => {
|
|
7824
7796
|
const assets = renderAssetsRef.current;
|
|
@@ -9092,6 +9064,76 @@ var useBasicMediaInTimeline = ({
|
|
|
9092
9064
|
finalDisplayName: displayName ?? getAssetDisplayName(src)
|
|
9093
9065
|
};
|
|
9094
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
|
+
};
|
|
9095
9137
|
var useMediaInTimeline = ({
|
|
9096
9138
|
volume,
|
|
9097
9139
|
mediaVolume,
|
|
@@ -10249,7 +10291,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
10249
10291
|
});
|
|
10250
10292
|
};
|
|
10251
10293
|
}, [cleanupOnMediaTagUnmount]);
|
|
10252
|
-
|
|
10294
|
+
useImperativeHandle4(ref, () => {
|
|
10253
10295
|
return audioRef.current;
|
|
10254
10296
|
}, [audioRef]);
|
|
10255
10297
|
const currentOnDurationCallback = useRef14(onDuration);
|
|
@@ -10320,7 +10362,7 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
10320
10362
|
mediaVolume: 1
|
|
10321
10363
|
});
|
|
10322
10364
|
warnAboutTooHighVolume(volume);
|
|
10323
|
-
|
|
10365
|
+
useImperativeHandle5(ref, () => {
|
|
10324
10366
|
return audioRef.current;
|
|
10325
10367
|
}, []);
|
|
10326
10368
|
useEffect11(() => {
|
|
@@ -10749,13 +10791,6 @@ var InnerComposition = ({
|
|
|
10749
10791
|
registerComposition,
|
|
10750
10792
|
unregisterComposition
|
|
10751
10793
|
]);
|
|
10752
|
-
useEffect13(() => {
|
|
10753
|
-
window.dispatchEvent(new CustomEvent(PROPS_UPDATED_EXTERNALLY, {
|
|
10754
|
-
detail: {
|
|
10755
|
-
resetUnsaved: id
|
|
10756
|
-
}
|
|
10757
|
-
}));
|
|
10758
|
-
}, [defaultProps, id]);
|
|
10759
10794
|
const resolved = useResolvedVideoConfig(id);
|
|
10760
10795
|
if (environment.isStudio && video && video.component === lazy && video.id === id) {
|
|
10761
10796
|
const Comp = lazy;
|
|
@@ -10843,12 +10878,16 @@ var ImgRefForwarding = ({
|
|
|
10843
10878
|
delayRenderTimeoutInMilliseconds,
|
|
10844
10879
|
onImageFrame,
|
|
10845
10880
|
crossOrigin,
|
|
10881
|
+
showInTimeline,
|
|
10882
|
+
name,
|
|
10883
|
+
stack,
|
|
10846
10884
|
...props2
|
|
10847
10885
|
}, ref) => {
|
|
10848
10886
|
const imageRef = useRef17(null);
|
|
10849
10887
|
const errors = useRef17({});
|
|
10850
10888
|
const { delayPlayback } = useBufferState();
|
|
10851
10889
|
const sequenceContext = useContext29(SequenceContext);
|
|
10890
|
+
const [timelineId] = useState15(() => String(Math.random()));
|
|
10852
10891
|
if (!src) {
|
|
10853
10892
|
throw new Error('No "src" prop was passed to <Img>.');
|
|
10854
10893
|
}
|
|
@@ -10856,9 +10895,19 @@ var ImgRefForwarding = ({
|
|
|
10856
10895
|
if (!_propsValid) {
|
|
10857
10896
|
throw new Error("typecheck error");
|
|
10858
10897
|
}
|
|
10859
|
-
|
|
10898
|
+
useImperativeHandle6(ref, () => {
|
|
10860
10899
|
return imageRef.current;
|
|
10861
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
|
+
});
|
|
10862
10911
|
const actualSrc = usePreload(src);
|
|
10863
10912
|
const retryIn = useCallback13((timeout) => {
|
|
10864
10913
|
if (!imageRef.current) {
|
|
@@ -10981,6 +11030,7 @@ var ImgRefForwarding = ({
|
|
|
10981
11030
|
});
|
|
10982
11031
|
};
|
|
10983
11032
|
var Img = forwardRef8(ImgRefForwarding);
|
|
11033
|
+
addSequenceStackTraces(Img);
|
|
10984
11034
|
var compositionsRef = React24.createRef();
|
|
10985
11035
|
var CompositionManagerProvider = ({
|
|
10986
11036
|
children,
|
|
@@ -10989,9 +11039,9 @@ var CompositionManagerProvider = ({
|
|
|
10989
11039
|
initialCompositions,
|
|
10990
11040
|
initialCanvasContent
|
|
10991
11041
|
}) => {
|
|
10992
|
-
const [folders, setFolders] =
|
|
10993
|
-
const [canvasContent, setCanvasContent] =
|
|
10994
|
-
const [compositions, setCompositions] =
|
|
11042
|
+
const [folders, setFolders] = useState16([]);
|
|
11043
|
+
const [canvasContent, setCanvasContent] = useState16(initialCanvasContent);
|
|
11044
|
+
const [compositions, setCompositions] = useState16(initialCompositions);
|
|
10995
11045
|
const currentcompositionsRef = useRef18(compositions);
|
|
10996
11046
|
const updateCompositions = useCallback14((updateComps) => {
|
|
10997
11047
|
setCompositions((comps) => {
|
|
@@ -11030,25 +11080,11 @@ var CompositionManagerProvider = ({
|
|
|
11030
11080
|
return prevFolders.filter((p) => !(p.name === name && p.parent === parent));
|
|
11031
11081
|
});
|
|
11032
11082
|
}, []);
|
|
11033
|
-
|
|
11083
|
+
useImperativeHandle7(compositionsRef, () => {
|
|
11034
11084
|
return {
|
|
11035
11085
|
getCompositions: () => currentcompositionsRef.current
|
|
11036
11086
|
};
|
|
11037
11087
|
}, []);
|
|
11038
|
-
const updateCompositionDefaultProps = useCallback14((id, newDefaultProps) => {
|
|
11039
|
-
setCompositions((comps) => {
|
|
11040
|
-
const updated = comps.map((c2) => {
|
|
11041
|
-
if (c2.id === id) {
|
|
11042
|
-
return {
|
|
11043
|
-
...c2,
|
|
11044
|
-
defaultProps: newDefaultProps
|
|
11045
|
-
};
|
|
11046
|
-
}
|
|
11047
|
-
return c2;
|
|
11048
|
-
});
|
|
11049
|
-
return updated;
|
|
11050
|
-
});
|
|
11051
|
-
}, []);
|
|
11052
11088
|
const compositionManagerSetters = useMemo26(() => {
|
|
11053
11089
|
return {
|
|
11054
11090
|
registerComposition,
|
|
@@ -11056,7 +11092,6 @@ var CompositionManagerProvider = ({
|
|
|
11056
11092
|
registerFolder,
|
|
11057
11093
|
unregisterFolder,
|
|
11058
11094
|
setCanvasContent,
|
|
11059
|
-
updateCompositionDefaultProps,
|
|
11060
11095
|
onlyRenderComposition
|
|
11061
11096
|
};
|
|
11062
11097
|
}, [
|
|
@@ -11064,7 +11099,6 @@ var CompositionManagerProvider = ({
|
|
|
11064
11099
|
registerFolder,
|
|
11065
11100
|
unregisterComposition,
|
|
11066
11101
|
unregisterFolder,
|
|
11067
|
-
updateCompositionDefaultProps,
|
|
11068
11102
|
onlyRenderComposition
|
|
11069
11103
|
]);
|
|
11070
11104
|
const compositionManagerContextValue = useMemo26(() => {
|
|
@@ -11271,6 +11305,7 @@ var validCodecs = [
|
|
|
11271
11305
|
"h265",
|
|
11272
11306
|
"vp8",
|
|
11273
11307
|
"vp9",
|
|
11308
|
+
"av1",
|
|
11274
11309
|
"mp3",
|
|
11275
11310
|
"aac",
|
|
11276
11311
|
"wav",
|
|
@@ -11494,7 +11529,7 @@ var useSchema = (schema, currentValue) => {
|
|
|
11494
11529
|
if (earlyReturn) {
|
|
11495
11530
|
return earlyReturn;
|
|
11496
11531
|
}
|
|
11497
|
-
const [overrideId] =
|
|
11532
|
+
const [overrideId] = useState17(() => String(Math.random()));
|
|
11498
11533
|
const {
|
|
11499
11534
|
visualModeEnabled,
|
|
11500
11535
|
dragOverrides: overrides,
|
|
@@ -11523,7 +11558,7 @@ var useSchema = (schema, currentValue) => {
|
|
|
11523
11558
|
const overrideValues = overrides[overrideId] ?? {};
|
|
11524
11559
|
const propStatus = codeValues[overrideId];
|
|
11525
11560
|
const currentValueKeys = Object.keys(currentValue);
|
|
11526
|
-
const keysToUpdate = new Set(currentValueKeys)
|
|
11561
|
+
const keysToUpdate = [...new Set(currentValueKeys)];
|
|
11527
11562
|
const merged = {};
|
|
11528
11563
|
for (const key of keysToUpdate) {
|
|
11529
11564
|
const codeValueStatus = propStatus?.[key] ?? null;
|
|
@@ -11664,7 +11699,7 @@ var OffthreadVideoForRendering = ({
|
|
|
11664
11699
|
toneMapped
|
|
11665
11700
|
});
|
|
11666
11701
|
}, [toneMapped, currentTime, src, transparent]);
|
|
11667
|
-
const [imageSrc, setImageSrc] =
|
|
11702
|
+
const [imageSrc, setImageSrc] = useState18(null);
|
|
11668
11703
|
const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
|
|
11669
11704
|
useLayoutEffect10(() => {
|
|
11670
11705
|
if (!window.remotion_videoEnabled) {
|
|
@@ -11853,7 +11888,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
11853
11888
|
const { hidden } = useContext34(SequenceVisibilityToggleContext);
|
|
11854
11889
|
const logLevel = useLogLevel();
|
|
11855
11890
|
const mountTime = useMountTime();
|
|
11856
|
-
const [timelineId] =
|
|
11891
|
+
const [timelineId] = useState19(() => String(Math.random()));
|
|
11857
11892
|
const isSequenceHidden = hidden[timelineId] ?? false;
|
|
11858
11893
|
if (typeof acceptableTimeShift !== "undefined") {
|
|
11859
11894
|
throw new Error("acceptableTimeShift has been removed. Use acceptableTimeShiftInSeconds instead.");
|
|
@@ -11916,10 +11951,10 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
11916
11951
|
duration,
|
|
11917
11952
|
fps
|
|
11918
11953
|
});
|
|
11919
|
-
|
|
11954
|
+
useImperativeHandle8(ref, () => {
|
|
11920
11955
|
return videoRef.current;
|
|
11921
11956
|
}, []);
|
|
11922
|
-
|
|
11957
|
+
useState19(() => playbackLogging({
|
|
11923
11958
|
logLevel,
|
|
11924
11959
|
message: `Mounting video with source = ${actualSrc}, v=${VERSION}, user agent=${typeof navigator === "undefined" ? "server" : navigator.userAgent}`,
|
|
11925
11960
|
tag: "video",
|
|
@@ -12389,8 +12424,6 @@ var Internals = {
|
|
|
12389
12424
|
CurrentScaleContext,
|
|
12390
12425
|
PreviewSizeContext,
|
|
12391
12426
|
calculateScale,
|
|
12392
|
-
editorPropsProviderRef,
|
|
12393
|
-
PROPS_UPDATED_EXTERNALLY,
|
|
12394
12427
|
validateRenderAsset,
|
|
12395
12428
|
Log,
|
|
12396
12429
|
LogLevelContext,
|
|
@@ -13074,7 +13107,7 @@ var VideoForRenderingForwardFunction = ({
|
|
|
13074
13107
|
sequenceContext?.relativeFrom,
|
|
13075
13108
|
audioStreamIndex
|
|
13076
13109
|
]);
|
|
13077
|
-
|
|
13110
|
+
useImperativeHandle9(ref, () => {
|
|
13078
13111
|
return videoRef.current;
|
|
13079
13112
|
}, []);
|
|
13080
13113
|
useEffect17(() => {
|
|
@@ -13598,7 +13631,7 @@ var getAngle = (ref, coordinates) => {
|
|
|
13598
13631
|
};
|
|
13599
13632
|
var lastCoordinates = null;
|
|
13600
13633
|
var useMousePosition = (ref) => {
|
|
13601
|
-
const [angle, setAngle] =
|
|
13634
|
+
const [angle, setAngle] = useState20(getAngle(ref.current, lastCoordinates));
|
|
13602
13635
|
useEffect18(() => {
|
|
13603
13636
|
const element = ref.current;
|
|
13604
13637
|
if (!element) {
|
|
@@ -19904,10 +19937,10 @@ var Triangle2 = (props) => {
|
|
|
19904
19937
|
};
|
|
19905
19938
|
|
|
19906
19939
|
// src/components/design.tsx
|
|
19907
|
-
import { useCallback as useCallback31, useState as
|
|
19940
|
+
import { useCallback as useCallback31, useState as useState40 } from "react";
|
|
19908
19941
|
|
|
19909
19942
|
// src/components/ManageTeamMembers.tsx
|
|
19910
|
-
import React51, { useCallback as useCallback30, useState as
|
|
19943
|
+
import React51, { useCallback as useCallback30, useState as useState39 } from "react";
|
|
19911
19944
|
import { jsx as jsx38, jsxs as jsxs6, Fragment as Fragment8 } from "react/jsx-runtime";
|
|
19912
19945
|
function generateId() {
|
|
19913
19946
|
return Math.random().toString(36).substr(2, 9);
|
|
@@ -19951,7 +19984,7 @@ var Row = ({ value, onChange, onDelete, disableDelete }) => {
|
|
|
19951
19984
|
});
|
|
19952
19985
|
};
|
|
19953
19986
|
var ManageTeamMembers = () => {
|
|
19954
|
-
const [members, setMembers] =
|
|
19987
|
+
const [members, setMembers] = useState39(initialMembers);
|
|
19955
19988
|
const displayedMembers = [...members, { id: "NEW", name: "" }];
|
|
19956
19989
|
const updateMember = useCallback30((idx, value) => {
|
|
19957
19990
|
if (idx === members.length) {
|
|
@@ -19965,7 +19998,7 @@ var ManageTeamMembers = () => {
|
|
|
19965
19998
|
const deleteMember = useCallback30((idx) => {
|
|
19966
19999
|
setMembers((prev) => prev.filter((_, i) => i !== idx));
|
|
19967
20000
|
}, []);
|
|
19968
|
-
const [loading, setLoading] =
|
|
20001
|
+
const [loading, setLoading] = useState39(false);
|
|
19969
20002
|
const save = useCallback30(() => {
|
|
19970
20003
|
setLoading(true);
|
|
19971
20004
|
setTimeout(() => {
|
|
@@ -20021,10 +20054,10 @@ var Explainer = ({ children }) => {
|
|
|
20021
20054
|
});
|
|
20022
20055
|
};
|
|
20023
20056
|
var DesignPage = () => {
|
|
20024
|
-
const [count4, setCount] =
|
|
20025
|
-
const [active, setActive] =
|
|
20026
|
-
const [submitButtonActive, setSubmitButtonActive] =
|
|
20027
|
-
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);
|
|
20028
20061
|
const onClick = useCallback31(() => {
|
|
20029
20062
|
setSubmitButtonActive(false);
|
|
20030
20063
|
setTimeout(() => {
|
|
@@ -20037,7 +20070,7 @@ var DesignPage = () => {
|
|
|
20037
20070
|
setSubmitButtonPrimaryActive(true);
|
|
20038
20071
|
}, 1000);
|
|
20039
20072
|
}, []);
|
|
20040
|
-
const [saving, setSaving] =
|
|
20073
|
+
const [saving, setSaving] = useState40(false);
|
|
20041
20074
|
const save = useCallback31(() => {
|
|
20042
20075
|
setSaving(true);
|
|
20043
20076
|
setTimeout(() => {
|