@remotion/studio 4.0.525 → 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/api/focus-default-props-path.js +7 -1
- package/dist/api/restart-studio.d.ts +1 -1
- package/dist/api/restart-studio.js +1 -1
- package/dist/components/AgentPrompt.d.ts +6 -0
- package/dist/components/AgentPrompt.js +107 -0
- package/dist/components/AssetFileIcon.js +2 -0
- package/dist/components/AssetSelectorItem.d.ts +1 -23
- package/dist/components/AssetSelectorItem.js +10 -200
- package/dist/components/Canvas.js +109 -44
- package/dist/components/CanvasCaptureDropHandler.js +63 -0
- package/dist/components/CanvasOrLoading.js +10 -2
- package/dist/components/CaptionInspector.js +9 -3
- package/dist/{error-overlay/remotion-overlay → components}/CodeFrame.d.ts +2 -0
- package/dist/components/CodeFrame.js +77 -0
- package/dist/components/CompositionSelectorItem.js +7 -17
- package/dist/components/CurrentAsset.js +6 -4
- package/dist/components/ElementInstallConfirmation.js +69 -38
- package/dist/components/FilePreview.js +4 -0
- package/dist/components/FixComputedValueModal.js +64 -96
- package/dist/components/GenerateWithAgentModal.d.ts +9 -0
- package/dist/components/GenerateWithAgentModal.js +39 -0
- package/dist/components/InitialCompositionLoader.js +1 -1
- package/dist/components/InlineDropdown.js +26 -2
- package/dist/components/InlineEditableTitle.js +3 -0
- package/dist/components/InspectorOpenInEditor.js +8 -4
- package/dist/components/InspectorPanel/CollapsibleInspectorSection.d.ts +7 -0
- package/dist/components/InspectorPanel/CollapsibleInspectorSection.js +14 -0
- package/dist/components/InspectorPanel/CollapsibleInspectorSectionHeader.d.ts +1 -1
- package/dist/components/InspectorPanel/CollapsibleInspectorSectionHeader.js +20 -8
- package/dist/components/InspectorPanel/CompositionInspector.js +32 -15
- package/dist/components/InspectorPanel/CompositionMetadata.js +7 -0
- package/dist/components/InspectorPanel/ConnectedCompositionsSection.js +6 -12
- package/dist/components/InspectorPanel/ElementLibraryButton.js +2 -0
- package/dist/components/InspectorPanel/GuideInspector.js +2 -3
- package/dist/components/InspectorPanel/KeyframeSettings.js +5 -6
- package/dist/components/InspectorPanel/MultiSequenceInspector.js +34 -2
- package/dist/components/InspectorPanel/SequenceSelectionInspector.js +45 -4
- package/dist/components/InspectorPanel/common.d.ts +4 -0
- package/dist/components/InspectorPanel/common.js +15 -2
- package/dist/components/InspectorPanel/styles.d.ts +0 -3
- package/dist/components/InspectorPanel/styles.js +3 -27
- package/dist/components/InspectorPanel/use-composition-actions.d.ts +2 -0
- package/dist/components/InspectorPanel/use-composition-actions.js +16 -0
- package/dist/components/InspectorPanel/use-inspector-section-expanded.d.ts +1 -0
- package/dist/components/InspectorPanel/use-inspector-section-expanded.js +21 -0
- package/dist/components/InspectorSequenceSection.js +44 -35
- package/dist/components/InspectorSourceLocation.js +4 -0
- package/dist/components/KeyboardShortcutsSettings.js +12 -4
- package/dist/components/LutPreview.d.ts +4 -0
- package/dist/components/LutPreview.js +192 -0
- package/dist/components/MenuBuildIndicator.js +1 -0
- package/dist/components/MenuCompositionName.js +4 -9
- package/dist/components/Modals.js +3 -6
- package/dist/components/ModelsSettings.js +15 -4
- package/dist/components/NewComposition/CancelButton.js +1 -1
- package/dist/components/Notifications/NotificationCenter.d.ts +0 -1
- package/dist/components/Notifications/NotificationCenter.js +1 -22
- 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/QuickSwitcher/QuickSwitcherResult.js +4 -9
- package/dist/components/RadioButton.js +1 -0
- package/dist/components/RenderModal/DataEditor.js +4 -1
- package/dist/components/RenderModal/SchemaEditor/scroll-to-default-props-path.d.ts +1 -0
- package/dist/components/RenderModal/SchemaEditor/scroll-to-default-props-path.js +2 -1
- package/dist/components/RenderModal/WebRenderModal.js +10 -2
- 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 +4 -0
- package/dist/components/SelectedOutlineElement.js +6 -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/SettingsButton.js +11 -2
- package/dist/components/SettingsModal.d.ts +1 -2
- package/dist/components/SettingsModal.js +24 -6
- package/dist/components/SettingsModalFooter.js +17 -3
- package/dist/components/SkillsSettings.d.ts +5 -0
- package/dist/components/SkillsSettings.js +29 -26
- package/dist/components/Timeline/Timeline.js +10 -11
- package/dist/components/Timeline/TimelineAssetField.js +81 -51
- 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/TimelineHeightContainer.js +11 -1
- package/dist/components/Timeline/TimelineKeyframeControls.js +16 -1
- package/dist/components/Timeline/TimelineLayerChildren.d.ts +3 -3
- package/dist/components/Timeline/TimelineLayerChildren.js +11 -9
- package/dist/components/Timeline/TimelineLayerEye.d.ts +1 -1
- package/dist/components/Timeline/TimelineLayerEye.js +6 -3
- package/dist/components/Timeline/TimelineList.js +9 -3
- package/dist/components/Timeline/TimelineSchemaField.js +2 -6
- package/dist/components/Timeline/TimelineSelection.d.ts +14 -3
- package/dist/components/Timeline/TimelineSelection.js +91 -49
- package/dist/components/Timeline/TimelineSequence.js +28 -2
- package/dist/components/Timeline/TimelineSequenceFrame.js +1 -0
- package/dist/components/Timeline/TimelineSequenceItem.d.ts +2 -0
- package/dist/components/Timeline/TimelineSequenceItem.js +45 -13
- package/dist/components/Timeline/TimelineViewport.d.ts +1 -0
- package/dist/components/Timeline/TimelineViewport.js +10 -1
- package/dist/components/Timeline/TimelineVirtualization.d.ts +3 -3
- package/dist/components/Timeline/delete-selected-timeline-item.js +2 -2
- package/dist/components/Timeline/get-sequence-context-menu-items.d.ts +6 -2
- package/dist/components/Timeline/get-sequence-context-menu-items.js +143 -46
- package/dist/components/Timeline/normalize-font-weight-for-keyframe.d.ts +1 -0
- package/dist/components/Timeline/normalize-font-weight-for-keyframe.js +19 -0
- 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/Timeline/timeline-display-groups.d.ts +9 -0
- package/dist/components/Timeline/timeline-display-groups.js +66 -0
- package/dist/components/Timeline/use-timeline-asset-drop.js +21 -21
- package/dist/components/Timeline/use-timeline-expanded-tree.d.ts +2 -1
- package/dist/components/Timeline/use-timeline-expanded-tree.js +1 -2
- 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/UpdateStatusContext.d.ts +2 -2
- package/dist/components/UpdateStatusContext.js +6 -7
- package/dist/components/UpdatesSettings.js +6 -6
- package/dist/components/WebMcp.js +41 -41
- package/dist/components/asset-context-menu.d.ts +32 -0
- package/dist/components/asset-context-menu.js +242 -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.d.ts +4 -6
- package/dist/components/composition-menu-items.js +191 -75
- 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.d.ts +6 -5
- package/dist/components/get-open-in-menu-items.js +22 -16
- 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/components/selected-outline-order.js +18 -12
- package/dist/components/use-open-in-menu-apps.d.ts +14 -0
- package/dist/components/use-open-in-menu-apps.js +33 -0
- package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +2 -2
- package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts +1 -0
- package/dist/error-overlay/remotion-overlay/OpenInEditor.js +3 -3
- package/dist/error-overlay/remotion-overlay/StackFrame.d.ts +5 -1
- package/dist/error-overlay/remotion-overlay/StackFrame.js +26 -19
- package/dist/esm/{CaptionQueueProcessor-k0yrm3dj.mjs → CaptionQueueProcessor-npa6szn1.mjs} +39 -8
- package/dist/esm/{LazyModels-gfmpcy4h.mjs → LazyModels-nh3c8h9p.mjs} +4 -3
- package/dist/esm/{LazyModels-m1rf06wh.mjs → LazyModels-rr5v8h5y.mjs} +4 -3
- package/dist/esm/{TranscriptionModal-8pvrehg4.mjs → TranscriptionModal-79m5wgcj.mjs} +25 -17
- package/dist/esm/{VideoMattingModal-fefbzgka.mjs → VideoMattingModal-31pew0xj.mjs} +9 -6
- package/dist/esm/index-21hxsfaa.mjs +239 -0
- package/dist/esm/{index-s848rffx.mjs → index-4zen9prq.mjs} +5438 -4686
- package/dist/esm/index-5t2dwxsk.mjs +530 -0
- package/dist/esm/{index-vsxrxfpj.mjs → index-614tdz2q.mjs} +1 -1
- package/dist/esm/{index-0x13f28h.mjs → index-9xxg6218.mjs} +20 -541
- package/dist/esm/{index-hbezgbbq.mjs → index-ac5550e7.mjs} +1 -1
- package/dist/esm/{index-41kqns5c.mjs → index-e855w59j.mjs} +15 -92
- package/dist/esm/{index-tzxb8808.mjs → index-n5gmcvhz.mjs} +8 -8
- package/dist/esm/{index-ggqpre9v.mjs → index-ppspzgn9.mjs} +4963 -4178
- package/dist/esm/{index-jrw61pkj.mjs → index-r0ejh5sy.mjs} +1 -1
- package/dist/esm/index-r1gr3j3a.mjs +80 -0
- package/dist/esm/{index-mww32xc8.mjs → index-s7qa3xbw.mjs} +6 -4
- package/dist/esm/{index-1089795y.mjs → index-vxwg66ar.mjs} +7 -22
- package/dist/esm/index.mjs +13 -6
- 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/client-id.d.ts +1 -0
- package/dist/helpers/client-id.js +8 -4
- package/dist/helpers/copy-text.js +1 -16
- package/dist/helpers/cube-lut.d.ts +12 -0
- package/dist/helpers/cube-lut.js +160 -0
- package/dist/helpers/get-preview-file-type.d.ts +1 -1
- package/dist/helpers/get-preview-file-type.js +3 -0
- package/dist/helpers/hoverable.js +2 -1
- package/dist/helpers/open-in-editor.d.ts +5 -2
- package/dist/helpers/open-in-editor.js +13 -5
- package/dist/helpers/settings-tab-availability.d.ts +14 -0
- package/dist/helpers/settings-tab-availability.js +35 -0
- 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 +31 -21
- package/dist/icons/lut.d.ts +4 -0
- package/dist/icons/lut.js +6 -0
- package/dist/icons/sparkles.d.ts +4 -0
- package/dist/icons/sparkles.js +6 -0
- package/dist/state/modals.d.ts +17 -2
- package/dist/state/timeline-zoom.js +4 -0
- package/package.json +19 -19
- package/dist/components/delete-jsx-node-api.d.ts +0 -2
- package/dist/error-overlay/remotion-overlay/CodeFrame.js +0 -62
|
@@ -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");
|
|
@@ -411,19 +333,19 @@ var getStaticFiles = () => {
|
|
|
411
333
|
return window.remotion_staticFiles;
|
|
412
334
|
};
|
|
413
335
|
|
|
414
|
-
// src/api/
|
|
336
|
+
// src/api/restart-studio.ts
|
|
415
337
|
import { getRemotionEnvironment as getRemotionEnvironment2 } from "remotion";
|
|
416
|
-
var
|
|
338
|
+
var restartStudio = () => {
|
|
417
339
|
if (!getRemotionEnvironment2().isStudio) {
|
|
418
|
-
throw new Error("
|
|
340
|
+
throw new Error("restartStudio() is only available in the Studio");
|
|
419
341
|
}
|
|
420
342
|
if (getBrowserStudioOperations() !== null) {
|
|
421
|
-
throw new Error("
|
|
343
|
+
throw new Error("restartStudio() is not supported in Browser Studio");
|
|
422
344
|
}
|
|
423
345
|
if (window.remotion_isReadOnlyStudio) {
|
|
424
|
-
throw new Error("
|
|
346
|
+
throw new Error("restartStudio() is not available in read-only Studio");
|
|
425
347
|
}
|
|
426
|
-
return callApi("/api/
|
|
348
|
+
return callApi("/api/restart-studio", {});
|
|
427
349
|
};
|
|
428
350
|
|
|
429
351
|
// src/components/RenderQueue/actions.ts
|
|
@@ -737,6 +659,7 @@ import React from "react";
|
|
|
737
659
|
var DEFAULT_PROPS_PATH_CLASSNAME = "__remotion-default-props-editor-label";
|
|
738
660
|
var DEFAULT_PROPS_PATH_ACTIVE_CLASSNAME = "__remotion-default-props-editor-label-active";
|
|
739
661
|
var defaultPropsEditorScrollableAreaRef = React.createRef();
|
|
662
|
+
var expandDefaultPropsEditorRef = React.createRef();
|
|
740
663
|
|
|
741
664
|
// src/components/RenderModal/SchemaEditor/zod-schema-type.ts
|
|
742
665
|
var zodSafeParse = (schema, data) => {
|
|
@@ -1105,12 +1028,12 @@ var { useSyncExternalStore } = Internals;
|
|
|
1105
1028
|
|
|
1106
1029
|
// src/visual-controls/visual-control-store.ts
|
|
1107
1030
|
var version = 0;
|
|
1108
|
-
var
|
|
1031
|
+
var listeners = new Set;
|
|
1109
1032
|
var visualControlStore = {
|
|
1110
1033
|
subscribe(listener) {
|
|
1111
|
-
|
|
1034
|
+
listeners.add(listener);
|
|
1112
1035
|
return () => {
|
|
1113
|
-
|
|
1036
|
+
listeners.delete(listener);
|
|
1114
1037
|
};
|
|
1115
1038
|
},
|
|
1116
1039
|
getSnapshot() {
|
|
@@ -1118,7 +1041,7 @@ var visualControlStore = {
|
|
|
1118
1041
|
},
|
|
1119
1042
|
emitChange() {
|
|
1120
1043
|
version++;
|
|
1121
|
-
for (const listener of
|
|
1044
|
+
for (const listener of listeners) {
|
|
1122
1045
|
listener();
|
|
1123
1046
|
}
|
|
1124
1047
|
}
|
|
@@ -1365,4 +1288,4 @@ var VisualControlsProvider = ({ children }) => {
|
|
|
1365
1288
|
});
|
|
1366
1289
|
};
|
|
1367
1290
|
|
|
1368
|
-
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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callApi
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-r1gr3j3a.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getBrowserStudioOperations
|
|
6
6
|
} from "./index-cw0pnpg5.mjs";
|
|
@@ -17,19 +17,19 @@ var play = (e) => {
|
|
|
17
17
|
Internals2.timeValueRef.current?.play(e);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
// src/api/
|
|
20
|
+
// src/api/shut-down-studio.ts
|
|
21
21
|
import { getRemotionEnvironment } from "remotion";
|
|
22
|
-
var
|
|
22
|
+
var shutDownStudio = () => {
|
|
23
23
|
if (!getRemotionEnvironment().isStudio) {
|
|
24
|
-
throw new Error("
|
|
24
|
+
throw new Error("shutDownStudio() is only available in the Studio");
|
|
25
25
|
}
|
|
26
26
|
if (getBrowserStudioOperations() !== null) {
|
|
27
|
-
throw new Error("
|
|
27
|
+
throw new Error("shutDownStudio() is not supported in Browser Studio");
|
|
28
28
|
}
|
|
29
29
|
if (window.remotion_isReadOnlyStudio) {
|
|
30
|
-
throw new Error("
|
|
30
|
+
throw new Error("shutDownStudio() is not available in read-only Studio");
|
|
31
31
|
}
|
|
32
|
-
return callApi("/api/
|
|
32
|
+
return callApi("/api/shutdown-studio", {});
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
// src/api/seek.ts
|
|
@@ -38,4 +38,4 @@ var seek = (frame) => {
|
|
|
38
38
|
Internals3.timeValueRef.current?.seek(Math.max(0, frame));
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
export { pause, play,
|
|
41
|
+
export { pause, play, shutDownStudio, seek };
|