@remotion/studio 4.0.526 → 4.0.527
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/Canvas.js +88 -26
- package/dist/components/CanvasCaptureDropHandler.js +63 -0
- package/dist/components/CanvasOrLoading.js +10 -2
- package/dist/components/CompositionSelectorItem.js +1 -0
- package/dist/components/CurrentAsset.js +2 -1
- package/dist/components/InitialCompositionLoader.js +1 -1
- package/dist/components/InlineDropdown.js +26 -2
- package/dist/components/InlineEditableTitle.js +1 -0
- package/dist/components/InspectorPanel/CollapsibleInspectorSectionHeader.js +1 -0
- package/dist/components/InspectorPanel/CompositionInspector.js +3 -3
- package/dist/components/InspectorPanel/CompositionMetadata.js +4 -0
- package/dist/components/InspectorPanel/ElementLibraryButton.js +1 -0
- package/dist/components/InspectorPanel/MultiSequenceInspector.js +32 -1
- package/dist/components/InspectorPanel/SequenceSelectionInspector.js +41 -1
- package/dist/components/InspectorPanel/common.js +1 -0
- package/dist/components/InspectorPanel/styles.js +2 -0
- package/dist/components/InspectorPanel/use-composition-actions.js +1 -0
- package/dist/components/InspectorSourceLocation.js +3 -0
- package/dist/components/MenuBuildIndicator.js +1 -0
- package/dist/components/NewComposition/CancelButton.js +1 -1
- package/dist/components/Preview.js +3 -0
- package/dist/components/QuickSwitcher/ExplorerQuickSwitcherTrigger.js +1 -0
- package/dist/components/QuickSwitcher/QuickSwitcherContent.js +1 -0
- package/dist/components/RadioButton.js +1 -0
- package/dist/components/RenderModal/DataEditor.js +4 -1
- package/dist/components/RenderQueue/CaptionQueueItem.js +5 -2
- package/dist/components/RenderQueue/CaptionQueueProcessor.js +35 -8
- package/dist/components/RenderQueue/VideoMattingQueueItem.js +1 -0
- package/dist/components/RenderQueue/caption-job-types.d.ts +6 -0
- package/dist/components/RenderQueue/index.js +1 -0
- package/dist/components/RendersTab.js +2 -0
- package/dist/components/SelectedOutlineSnapIndicators.d.ts +6 -0
- package/dist/components/SelectedOutlineSnapIndicators.js +16 -12
- package/dist/components/SequencePropsSubscriptionProvider.d.ts +3 -0
- package/dist/components/SequencePropsSubscriptionProvider.js +8 -6
- package/dist/components/Timeline/TimelineDeleteKeybindings.js +6 -9
- package/dist/components/Timeline/TimelineEffectItem.js +1 -0
- package/dist/components/Timeline/TimelineExpandArrowButton.js +1 -0
- package/dist/components/Timeline/TimelineExpandedRow.js +1 -0
- package/dist/components/Timeline/TimelineFieldLabel.js +1 -0
- package/dist/components/Timeline/TimelineKeyframeControls.js +1 -0
- package/dist/components/Timeline/TimelineSequence.js +26 -0
- package/dist/components/Timeline/TimelineSequenceFrame.js +1 -0
- package/dist/components/Timeline/TimelineSequenceItem.js +28 -0
- package/dist/components/Timeline/TimelineViewport.d.ts +1 -0
- package/dist/components/Timeline/TimelineViewport.js +10 -1
- package/dist/components/Timeline/delete-selected-timeline-item.js +2 -2
- package/dist/components/Timeline/get-sequence-context-menu-items.d.ts +3 -1
- package/dist/components/Timeline/get-sequence-context-menu-items.js +13 -1
- package/dist/components/Timeline/split-selected-timeline-item.d.ts +13 -10
- package/dist/components/Timeline/split-selected-timeline-item.js +58 -35
- package/dist/components/TimelineCombobox.js +1 -0
- package/dist/components/Transcription/TranscriptionModal.js +16 -11
- package/dist/components/Transcription/TranscriptionModalWithOptionalWhisper.js +1 -1
- package/dist/components/WebMcp.js +1 -0
- package/dist/components/composition-drop-preview.d.ts +9 -2
- package/dist/components/composition-drop-preview.js +7 -4
- package/dist/components/composition-menu-items.js +4 -4
- package/dist/components/delete-jsx-nodes-api.d.ts +2 -0
- package/dist/components/{delete-jsx-node-api.js → delete-jsx-nodes-api.js} +5 -5
- package/dist/components/get-open-in-menu-items.js +7 -7
- package/dist/components/keyboard-shortcuts.d.ts +4 -4
- package/dist/components/keyboard-shortcuts.js +3 -1
- package/dist/components/public-output-name.d.ts +1 -0
- package/dist/components/public-output-name.js +7 -3
- package/dist/esm/{CaptionQueueProcessor-k0yrm3dj.mjs → CaptionQueueProcessor-npa6szn1.mjs} +39 -8
- package/dist/esm/{LazyModels-nk7py0zt.mjs → LazyModels-nh3c8h9p.mjs} +4 -3
- package/dist/esm/{LazyModels-mtggyjye.mjs → LazyModels-rr5v8h5y.mjs} +4 -3
- package/dist/esm/{TranscriptionModal-ymnx1c7m.mjs → TranscriptionModal-79m5wgcj.mjs} +25 -17
- package/dist/esm/{VideoMattingModal-05vpczks.mjs → VideoMattingModal-31pew0xj.mjs} +9 -6
- package/dist/esm/index-21hxsfaa.mjs +239 -0
- package/dist/esm/{index-0gewwxse.mjs → index-4zen9prq.mjs} +2293 -2203
- package/dist/esm/index-5t2dwxsk.mjs +530 -0
- package/dist/esm/{index-5gd8k9yv.mjs → index-614tdz2q.mjs} +1 -1
- package/dist/esm/{index-cdy8v54v.mjs → index-9xxg6218.mjs} +20 -541
- package/dist/esm/{index-5bfxbpca.mjs → index-ac5550e7.mjs} +1 -1
- package/dist/esm/{index-eb5txqp6.mjs → index-e855w59j.mjs} +8 -86
- package/dist/esm/{index-4dsz9035.mjs → index-n5gmcvhz.mjs} +1 -1
- package/dist/esm/{index-bs39wngg.mjs → index-ppspzgn9.mjs} +3134 -2994
- package/dist/esm/{index-g7k2dvar.mjs → index-r0ejh5sy.mjs} +1 -1
- package/dist/esm/index-r1gr3j3a.mjs +80 -0
- package/dist/esm/{index-x40wwfmt.mjs → index-s7qa3xbw.mjs} +6 -4
- package/dist/esm/{index-f97r9e2g.mjs → index-vxwg66ar.mjs} +5 -3
- package/dist/esm/index.mjs +3 -2
- package/dist/esm/internals.mjs +10 -7
- package/dist/esm/previewEntry.mjs +10 -7
- package/dist/esm/{resolve-composition-component-location-bt2d6qxq.mjs → resolve-composition-component-location-qrp05g62.mjs} +1 -1
- package/dist/helpers/copy-text.js +1 -16
- package/dist/helpers/hoverable.js +2 -1
- package/dist/helpers/open-in-editor.js +1 -1
- package/dist/helpers/studio-runtime-config.d.ts +1 -1
- package/dist/helpers/use-keybinding.d.ts +1 -1
- package/dist/helpers/use-keyboard-shortcut-label.d.ts +2 -2
- package/dist/helpers/use-menu-structure.js +15 -9
- package/dist/state/modals.d.ts +5 -0
- package/dist/state/timeline-zoom.js +4 -0
- package/package.json +19 -19
- package/dist/components/delete-jsx-node-api.d.ts +0 -2
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
callApi
|
|
3
|
+
} from "./index-r1gr3j3a.mjs";
|
|
1
4
|
import {
|
|
2
5
|
getBrowserStudioOperations
|
|
3
6
|
} from "./index-cw0pnpg5.mjs";
|
|
@@ -283,87 +286,6 @@ var TerminalIcon = ({ terminalId, size }) => {
|
|
|
283
286
|
|
|
284
287
|
// src/api/delete-static-file.ts
|
|
285
288
|
import { getRemotionEnvironment } from "remotion";
|
|
286
|
-
|
|
287
|
-
// src/helpers/inserted-element-selection.ts
|
|
288
|
-
var pendingSelection = null;
|
|
289
|
-
var listeners = new Set;
|
|
290
|
-
var requestInsertedElementSelection = (selection) => {
|
|
291
|
-
pendingSelection = selection;
|
|
292
|
-
for (const listener of listeners) {
|
|
293
|
-
listener();
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
var clearInsertedElementSelection = (selection) => {
|
|
297
|
-
if (pendingSelection !== selection) {
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
pendingSelection = null;
|
|
301
|
-
for (const listener of listeners) {
|
|
302
|
-
listener();
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
var subscribeToInsertedElementSelection = (listener) => {
|
|
306
|
-
listeners.add(listener);
|
|
307
|
-
return () => listeners.delete(listener);
|
|
308
|
-
};
|
|
309
|
-
var getInsertedElementSelection = () => pendingSelection;
|
|
310
|
-
|
|
311
|
-
// src/helpers/sequence-node-path-mutations.ts
|
|
312
|
-
var pendingMutations = [];
|
|
313
|
-
var seenMutationIds = new Set;
|
|
314
|
-
var queueSequenceNodePathMutation = (mutation) => {
|
|
315
|
-
if (seenMutationIds.has(mutation.mutationId)) {
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
seenMutationIds.add(mutation.mutationId);
|
|
319
|
-
pendingMutations.push(mutation);
|
|
320
|
-
if (mutation.timelineSelection !== null) {
|
|
321
|
-
requestInsertedElementSelection({
|
|
322
|
-
compositionId: mutation.timelineSelection.compositionId,
|
|
323
|
-
nodePath: {
|
|
324
|
-
absolutePath: mutation.timelineSelection.absolutePath,
|
|
325
|
-
nodePath: mutation.timelineSelection.nodePath
|
|
326
|
-
},
|
|
327
|
-
notification: null
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
var queueSequenceNodePathMutationFromApiResponse = (response) => {
|
|
332
|
-
if (typeof response !== "object" || response === null || !("nodePathMutation" in response)) {
|
|
333
|
-
return;
|
|
334
|
-
}
|
|
335
|
-
const { nodePathMutation } = response;
|
|
336
|
-
if (typeof nodePathMutation !== "object" || nodePathMutation === null || !("mutationId" in nodePathMutation) || typeof nodePathMutation.mutationId !== "string") {
|
|
337
|
-
return;
|
|
338
|
-
}
|
|
339
|
-
queueSequenceNodePathMutation(nodePathMutation);
|
|
340
|
-
};
|
|
341
|
-
var takePendingSequenceNodePathMutations = () => pendingMutations.splice(0);
|
|
342
|
-
|
|
343
|
-
// src/components/call-api.ts
|
|
344
|
-
var callApi = (endpoint, body, signal) => {
|
|
345
|
-
return new Promise((resolve, reject) => {
|
|
346
|
-
fetch(endpoint, {
|
|
347
|
-
method: "post",
|
|
348
|
-
headers: {
|
|
349
|
-
"content-type": "application/json"
|
|
350
|
-
},
|
|
351
|
-
signal,
|
|
352
|
-
body: JSON.stringify(body)
|
|
353
|
-
}).then((res) => res.json()).then((data) => {
|
|
354
|
-
if (data.success) {
|
|
355
|
-
queueSequenceNodePathMutationFromApiResponse(data.data);
|
|
356
|
-
resolve(data.data);
|
|
357
|
-
} else {
|
|
358
|
-
reject(new Error(data.error));
|
|
359
|
-
}
|
|
360
|
-
}).catch((err) => {
|
|
361
|
-
reject(err);
|
|
362
|
-
});
|
|
363
|
-
});
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
// src/api/delete-static-file.ts
|
|
367
289
|
var deleteStaticFile = async (relativePath) => {
|
|
368
290
|
if (!getRemotionEnvironment().isStudio) {
|
|
369
291
|
throw new Error("deleteStaticFile() is only available in the Studio");
|
|
@@ -1106,12 +1028,12 @@ var { useSyncExternalStore } = Internals;
|
|
|
1106
1028
|
|
|
1107
1029
|
// src/visual-controls/visual-control-store.ts
|
|
1108
1030
|
var version = 0;
|
|
1109
|
-
var
|
|
1031
|
+
var listeners = new Set;
|
|
1110
1032
|
var visualControlStore = {
|
|
1111
1033
|
subscribe(listener) {
|
|
1112
|
-
|
|
1034
|
+
listeners.add(listener);
|
|
1113
1035
|
return () => {
|
|
1114
|
-
|
|
1036
|
+
listeners.delete(listener);
|
|
1115
1037
|
};
|
|
1116
1038
|
},
|
|
1117
1039
|
getSnapshot() {
|
|
@@ -1119,7 +1041,7 @@ var visualControlStore = {
|
|
|
1119
1041
|
},
|
|
1120
1042
|
emitChange() {
|
|
1121
1043
|
version++;
|
|
1122
|
-
for (const listener of
|
|
1044
|
+
for (const listener of listeners) {
|
|
1123
1045
|
listener();
|
|
1124
1046
|
}
|
|
1125
1047
|
}
|
|
@@ -1366,4 +1288,4 @@ var VisualControlsProvider = ({ children }) => {
|
|
|
1366
1288
|
});
|
|
1367
1289
|
};
|
|
1368
1290
|
|
|
1369
|
-
export { AppsIcon, CodingAgentIcon, EditorIcon, FinderIcon, TerminalIcon,
|
|
1291
|
+
export { AppsIcon, CodingAgentIcon, EditorIcon, FinderIcon, TerminalIcon, deleteStaticFile, DEFAULT_PROPS_PATH_CLASSNAME, DEFAULT_PROPS_PATH_ACTIVE_CLASSNAME, defaultPropsEditorScrollableAreaRef, expandDefaultPropsEditorRef, getStaticFiles, restartStudio, zodSafeParse, getZodDef, isZodV3Schema, getZodSchemaType, getZodSchemaDescription, getUserFacingDescription, getObjectShape, getArrayElement, getInnerType, getEffectsInner, getLiteralValue, getEnumValues, getFirstEnumValue, getUnionOptions, getDefaultValue, getDiscriminator, getDiscriminatedOptionKeys, getDiscriminatedOption, getIntersectionSchemas, getTupleItems, getRecordValueType, getRecordKeyType, getPipelineOutput, getPipelineInput, getBrandedInner, extractEnumJsonPaths, addStillRenderJob, addSequenceRenderJob, addVideoRenderJob, unsubscribeFromFileExistenceWatcher, subscribeToFileExistenceWatcher, openInFileExplorer, applyCodemod, removeRenderJob, cancelRenderJob, updateAvailable, getReleaseNotes, callUpdateDefaultPropsApi, applyVisualControlChange, useSyncExternalStore, visualControlStore, useZodIfPossible, useZodTypesIfPossible, ZodProvider, isStudioInteractivityEnabled, isStudioSelectionEnabled, getVisualControlEditedValue, VisualControlsContext, visualControlRef, SetVisualControlsContext, VisualControlsProvider, watchPublicFolder };
|