@remotion/studio 4.0.445 → 4.0.447
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AssetSelectorItem.js +11 -1
- package/dist/components/Canvas.js +1 -1
- package/dist/components/CanvasOrLoading.js +4 -4
- package/dist/components/CompositionSelectorItem.js +15 -1
- package/dist/components/FilePreview.js +3 -0
- package/dist/components/InitialCompositionLoader.js +10 -4
- package/dist/components/NewComposition/MenuContent.js +58 -0
- package/dist/components/NewComposition/menu-typeahead.d.ts +5 -0
- package/dist/components/NewComposition/menu-typeahead.js +27 -0
- package/dist/components/Preview.d.ts +1 -0
- package/dist/components/Preview.js +14 -1
- package/dist/components/RenderButton.js +1 -0
- package/dist/components/RenderModal/OptionExplainer.js +10 -2
- package/dist/components/RenderModal/WebRenderModal.js +6 -2
- package/dist/components/RenderModal/WebRenderModalAdvanced.d.ts +2 -0
- package/dist/components/RenderModal/WebRenderModalAdvanced.js +10 -2
- package/dist/components/RenderQueue/ClientRenderQueueProcessor.js +4 -3
- package/dist/components/RenderQueue/client-side-render-types.d.ts +1 -0
- package/dist/components/Timeline/TimelineListItem.js +53 -2
- package/dist/components/Timeline/use-sequence-props-subscription.d.ts +4 -1
- package/dist/components/Timeline/use-sequence-props-subscription.js +10 -1
- package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +1 -1
- package/dist/error-overlay/remotion-overlay/Retry.d.ts +1 -0
- package/dist/error-overlay/remotion-overlay/Retry.js +2 -2
- package/dist/esm/{chunk-bqd9dhnk.js → chunk-ase93hmz.js} +4588 -4229
- package/dist/esm/internals.mjs +4588 -4229
- package/dist/esm/previewEntry.mjs +542 -185
- package/dist/esm/renderEntry.mjs +1 -1
- package/dist/helpers/get-asset-metadata.d.ts +3 -0
- package/dist/helpers/get-asset-metadata.js +51 -43
- package/dist/helpers/retry-payload.js +1 -0
- package/dist/helpers/sidebar-scroll-into-view.d.ts +13 -0
- package/dist/helpers/sidebar-scroll-into-view.js +83 -0
- package/dist/helpers/use-studio-canvas-dimensions.js +3 -1
- package/dist/state/modals.d.ts +1 -0
- package/package.json +9 -9
|
@@ -45,6 +45,7 @@ const useSequencePropsSubscription = (sequence, originalLocation, visualModeEnab
|
|
|
45
45
|
currentLocationColumn.current = locationColumn;
|
|
46
46
|
const nodePathRef = (0, react_1.useRef)(null);
|
|
47
47
|
const [nodePath, setNodePath] = (0, react_1.useState)(null);
|
|
48
|
+
const [jsxInMapCallback, setJsxInMapCallback] = (0, react_1.useState)(false);
|
|
48
49
|
const isMountedRef = (0, react_1.useRef)(true);
|
|
49
50
|
const setNodePathBoth = (0, react_1.useCallback)((next) => {
|
|
50
51
|
nodePathRef.current = next;
|
|
@@ -60,6 +61,7 @@ const useSequencePropsSubscription = (sequence, originalLocation, visualModeEnab
|
|
|
60
61
|
if (!visualModeEnabled) {
|
|
61
62
|
setPropStatusesForSequence(null);
|
|
62
63
|
setNodePathBoth(null);
|
|
64
|
+
setJsxInMapCallback(false);
|
|
63
65
|
return;
|
|
64
66
|
}
|
|
65
67
|
if (!clientId ||
|
|
@@ -69,6 +71,7 @@ const useSequencePropsSubscription = (sequence, originalLocation, visualModeEnab
|
|
|
69
71
|
!schemaKeysString) {
|
|
70
72
|
setPropStatusesForSequence(null);
|
|
71
73
|
setNodePathBoth(null);
|
|
74
|
+
setJsxInMapCallback(false);
|
|
72
75
|
return;
|
|
73
76
|
}
|
|
74
77
|
const keys = schemaKeysString.split(',');
|
|
@@ -88,14 +91,17 @@ const useSequencePropsSubscription = (sequence, originalLocation, visualModeEnab
|
|
|
88
91
|
if (result.canUpdate) {
|
|
89
92
|
setNodePathBoth(result.nodePath);
|
|
90
93
|
setPropStatusesForSequence(result.props);
|
|
94
|
+
setJsxInMapCallback(result.jsxInMapCallback);
|
|
91
95
|
}
|
|
92
96
|
else {
|
|
93
97
|
setNodePathBoth(null);
|
|
94
98
|
setPropStatusesForSequence(null);
|
|
99
|
+
setJsxInMapCallback(false);
|
|
95
100
|
}
|
|
96
101
|
})
|
|
97
102
|
.catch((err) => {
|
|
98
103
|
setNodePathBoth(null);
|
|
104
|
+
setJsxInMapCallback(false);
|
|
99
105
|
remotion_1.Internals.Log.error(err);
|
|
100
106
|
setPropStatusesForSequence(null);
|
|
101
107
|
});
|
|
@@ -107,6 +113,7 @@ const useSequencePropsSubscription = (sequence, originalLocation, visualModeEnab
|
|
|
107
113
|
setPropStatusesForSequence(null);
|
|
108
114
|
}
|
|
109
115
|
setNodePathBoth(null);
|
|
116
|
+
setJsxInMapCallback(false);
|
|
110
117
|
if (currentNodePath) {
|
|
111
118
|
(0, call_api_1.callApi)('/api/unsubscribe-from-sequence-props', {
|
|
112
119
|
fileName: locationSource,
|
|
@@ -145,10 +152,12 @@ const useSequencePropsSubscription = (sequence, originalLocation, visualModeEnab
|
|
|
145
152
|
}
|
|
146
153
|
if (event.result.canUpdate) {
|
|
147
154
|
setPropStatusesForSequence(event.result.props);
|
|
155
|
+
setJsxInMapCallback(event.result.jsxInMapCallback);
|
|
148
156
|
}
|
|
149
157
|
else {
|
|
150
158
|
setPropStatusesForSequence(null);
|
|
151
159
|
setNodePathBoth(null);
|
|
160
|
+
setJsxInMapCallback(false);
|
|
152
161
|
}
|
|
153
162
|
};
|
|
154
163
|
const unsub = subscribeToEvent('sequence-props-updated', listener);
|
|
@@ -164,6 +173,6 @@ const useSequencePropsSubscription = (sequence, originalLocation, visualModeEnab
|
|
|
164
173
|
setPropStatusesForSequence,
|
|
165
174
|
setNodePathBoth,
|
|
166
175
|
]);
|
|
167
|
-
return nodePath;
|
|
176
|
+
return { nodePath, jsxInMapCallback };
|
|
168
177
|
};
|
|
169
178
|
exports.useSequencePropsSubscription = useSequencePropsSubscription;
|
|
@@ -65,7 +65,7 @@ const ErrorDisplay = ({ display, keyboardShortcuts, onRetry, canHaveDismissButto
|
|
|
65
65
|
] })) : null, display.stackFrames.length > 0 && window.remotion_editorName ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
66
66
|
jsx_runtime_1.jsx(OpenInEditor_1.OpenInEditor, { canHaveKeyboardShortcuts: keyboardShortcuts, stack: display.stackFrames[0] }), jsx_runtime_1.jsx("div", { style: spacer })
|
|
67
67
|
] })) : null, jsx_runtime_1.jsx(CopyStackTrace_1.CopyStackTrace, { canHaveKeyboardShortcuts: keyboardShortcuts, errorText: errorTextForCopy }), jsx_runtime_1.jsx("div", { style: spacer }), jsx_runtime_1.jsx(SearchGitHubIssues_1.SearchGithubIssues, { canHaveKeyboardShortcuts: keyboardShortcuts, message: display.error.message }), jsx_runtime_1.jsx("div", { style: spacer }), jsx_runtime_1.jsx(AskOnDiscord_1.AskOnDiscord, { canHaveKeyboardShortcuts: keyboardShortcuts }), onRetry ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
68
|
-
jsx_runtime_1.jsx("div", { style: spacer }), jsx_runtime_1.jsx(Retry_1.RetryButton, { onClick: onRetry })
|
|
68
|
+
jsx_runtime_1.jsx("div", { style: spacer }), jsx_runtime_1.jsx(Retry_1.RetryButton, { onClick: onRetry, label: calculateMetadata ? 'Retry calculateMetadata()' : 'Retry' })
|
|
69
69
|
] })) : null, calculateMetadata ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
70
70
|
jsx_runtime_1.jsx("br", {}), jsx_runtime_1.jsx(layout_1.Spacing, { y: 0.5 }), jsx_runtime_1.jsx(CalculateMetadataErrorExplainer_1.CalculateMetadataErrorExplainer, {})
|
|
71
71
|
] })) : null, display.error instanceof remotion_1.MediaPlaybackError ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RetryButton = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Button_1 = require("../../components/Button");
|
|
6
|
-
const RetryButton = ({ onClick }) => {
|
|
7
|
-
return jsx_runtime_1.jsx(Button_1.Button, { onClick: onClick, children:
|
|
6
|
+
const RetryButton = ({ onClick, label = 'Retry' }) => {
|
|
7
|
+
return jsx_runtime_1.jsx(Button_1.Button, { onClick: onClick, children: label });
|
|
8
8
|
};
|
|
9
9
|
exports.RetryButton = RetryButton;
|