@remotion/studio 4.0.511 → 4.0.513

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.
Files changed (55) hide show
  1. package/dist/components/CompositionSelectorItem.js +14 -1
  2. package/dist/components/InspectorOpenInEditor.js +24 -24
  3. package/dist/components/InspectorPanel/AlignmentControls.js +13 -2
  4. package/dist/components/InspectorPanel/CompositionInspectorHeader.js +12 -8
  5. package/dist/components/InspectorPanel/ConnectedCompositionsSection.js +12 -1
  6. package/dist/components/InspectorPanel/EasingInspector.js +11 -2
  7. package/dist/components/InspectorPanel/KeyframeInspector.js +19 -5
  8. package/dist/components/InspectorPanel/easing-inspector-selection.js +7 -2
  9. package/dist/components/InspectorPanel/inspector-section-collapse.d.ts +1 -0
  10. package/dist/components/SelectedOutlineElement.js +12 -10
  11. package/dist/components/SelectedOutlineOverlay.js +30 -8
  12. package/dist/components/Timeline/TimelineArrayField.js +1 -0
  13. package/dist/components/Timeline/TimelineEffectPropItem.js +10 -4
  14. package/dist/components/Timeline/TimelineKeyframeControls.js +25 -7
  15. package/dist/components/Timeline/TimelineKeyframedValue.js +1 -0
  16. package/dist/components/Timeline/TimelineSequencePropItem.js +11 -4
  17. package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.d.ts +3 -0
  18. package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.js +96 -18
  19. package/dist/components/Timeline/call-move-keyframe.d.ts +2 -1
  20. package/dist/components/Timeline/call-move-keyframe.js +70 -17
  21. package/dist/components/Timeline/delete-selected-keyframe.d.ts +0 -8
  22. package/dist/components/Timeline/delete-selected-keyframe.js +23 -44
  23. package/dist/components/Timeline/delete-selected-timeline-item.d.ts +0 -8
  24. package/dist/components/Timeline/delete-selected-timeline-item.js +16 -43
  25. package/dist/components/Timeline/get-easing-selection-after-keyframe-delete.js +8 -3
  26. package/dist/components/Timeline/get-sequence-context-menu-items.js +10 -8
  27. package/dist/components/Timeline/get-timeline-keyframes.d.ts +4 -0
  28. package/dist/components/Timeline/get-timeline-keyframes.js +16 -3
  29. package/dist/components/Timeline/keyframe-clipboard.js +9 -2
  30. package/dist/components/Timeline/use-open-sequence-in-apps.js +8 -8
  31. package/dist/components/Timeline/use-timeline-keyframe-drag.js +14 -4
  32. package/dist/components/VisualControls/ClickableFileName.js +13 -6
  33. package/dist/components/composition-menu-items.d.ts +6 -1
  34. package/dist/components/composition-menu-items.js +9 -6
  35. package/dist/components/folder-menu-items.d.ts +4 -1
  36. package/dist/components/folder-menu-items.js +4 -5
  37. package/dist/components/get-open-in-menu-items.d.ts +1 -1
  38. package/dist/components/get-open-in-menu-items.js +15 -13
  39. package/dist/components/sequence-props-api.js +44 -3
  40. package/dist/components/use-default-editor-info.d.ts +8 -0
  41. package/dist/components/use-default-editor-info.js +25 -9
  42. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +10 -3
  43. package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts +3 -1
  44. package/dist/error-overlay/remotion-overlay/OpenInEditor.js +6 -6
  45. package/dist/error-overlay/remotion-overlay/Overlay.js +14 -12
  46. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts +2 -1
  47. package/dist/error-overlay/remotion-overlay/StackFrame.js +7 -4
  48. package/dist/esm/{chunk-s8gwjng0.js → chunk-tv7r0jy3.js} +1692 -1322
  49. package/dist/esm/internals.mjs +1692 -1322
  50. package/dist/esm/previewEntry.mjs +3167 -2793
  51. package/dist/esm/renderEntry.mjs +1 -1
  52. package/dist/helpers/open-in-editor.d.ts +6 -4
  53. package/dist/helpers/open-in-editor.js +4 -4
  54. package/dist/helpers/use-menu-structure.js +11 -6
  55. package/package.json +12 -12
@@ -214,7 +214,7 @@ var renderContent = (Root) => {
214
214
  renderToDOM(/* @__PURE__ */ jsx("div", {
215
215
  children: /* @__PURE__ */ jsx(DelayedSpinner, {})
216
216
  }));
217
- import("./chunk-s8gwjng0.js").then(({ StudioInternals }) => {
217
+ import("./chunk-tv7r0jy3.js").then(({ StudioInternals }) => {
218
218
  window.remotion_isStudio = true;
219
219
  window.remotion_isReadOnlyStudio = true;
220
220
  window.remotion_inputProps = "{}";
@@ -1,12 +1,13 @@
1
1
  import type { TerminalId } from '@remotion/studio-shared';
2
2
  import type { CompositionComponentInfoResponse, EditorPickerId, OpenInTerminalResponse, SymbolicatedStackFrame } from '@remotion/studio-shared';
3
3
  import type { CodePosition, OriginalPosition } from '../error-overlay/react-overlay/utils/get-source-map';
4
- export declare const openInEditor: (stack: SymbolicatedStackFrame, editorId: EditorPickerId | null) => Promise<import("@remotion/studio-shared").OpenInEditorResponse>;
4
+ export declare const openInEditor: (stack: SymbolicatedStackFrame, editorId: EditorPickerId) => Promise<import("@remotion/studio-shared").OpenInEditorResponse>;
5
5
  export declare const openInCodingAgent: (codingAgentId: "claude-code" | "codex" | "copilot" | "cursor", prompt: string | null) => Promise<import("@remotion/studio-shared").OpenInCodingAgentResponse>;
6
6
  export declare const openInTerminal: (terminalId: TerminalId, directory: string) => Promise<OpenInTerminalResponse>;
7
7
  export declare const openInGitClient: (gitClientId: "github-desktop") => Promise<import("@remotion/studio-shared").OpenInGitClientResponse>;
8
- export declare const openOriginalPositionInEditor: (originalPosition: OriginalPosition, editorId: EditorPickerId | null) => Promise<void>;
9
- export declare const openOriginalPositionInEditorAtProperty: ({ originalPosition, property, }: {
8
+ export declare const openOriginalPositionInEditor: (originalPosition: OriginalPosition, editorId: EditorPickerId) => Promise<void>;
9
+ export declare const openOriginalPositionInEditorAtProperty: ({ editorId, originalPosition, property, }: {
10
+ editorId: EditorPickerId;
10
11
  originalPosition: CodePosition;
11
12
  property: string;
12
13
  }) => Promise<void>;
@@ -31,8 +32,9 @@ export declare const preloadCompositionComponentInfo: ({ compositionFile, compos
31
32
  compositionFile: string;
32
33
  compositionId: string;
33
34
  }) => void;
34
- export declare const openCompositionComponentInEditor: ({ compositionFile, compositionId, }: {
35
+ export declare const openCompositionComponentInEditor: ({ compositionFile, compositionId, editorId, }: {
35
36
  compositionFile: string;
36
37
  compositionId: string;
38
+ editorId: EditorPickerId;
37
39
  }) => Promise<void>;
38
40
  export {};
@@ -43,7 +43,7 @@ const openOriginalPositionInEditor = async (originalPosition, editorId) => {
43
43
  }
44
44
  };
45
45
  exports.openOriginalPositionInEditor = openOriginalPositionInEditor;
46
- const openOriginalPositionInEditorAtProperty = async ({ originalPosition, property, }) => {
46
+ const openOriginalPositionInEditorAtProperty = async ({ editorId, originalPosition, property, }) => {
47
47
  const request = {
48
48
  fileName: originalPosition.source,
49
49
  lineNumber: originalPosition.line,
@@ -58,7 +58,7 @@ const openOriginalPositionInEditorAtProperty = async ({ originalPosition, proper
58
58
  source: originalPosition.source,
59
59
  line: position.lineNumber,
60
60
  column: position.columnNumber,
61
- }, null);
61
+ }, editorId);
62
62
  };
63
63
  exports.openOriginalPositionInEditorAtProperty = openOriginalPositionInEditorAtProperty;
64
64
  const componentResolutionCache = new Map();
@@ -153,11 +153,11 @@ const preloadCompositionComponentInfo = ({ compositionFile, compositionId, }) =>
153
153
  }).catch(() => undefined);
154
154
  };
155
155
  exports.preloadCompositionComponentInfo = preloadCompositionComponentInfo;
156
- const openCompositionComponentInEditor = async ({ compositionFile, compositionId, }) => {
156
+ const openCompositionComponentInEditor = async ({ compositionFile, compositionId, editorId, }) => {
157
157
  const info = await (0, exports.loadCompositionComponentInfo)({
158
158
  compositionFile,
159
159
  compositionId,
160
160
  });
161
- await (0, exports.openOriginalPositionInEditor)(info.location, null);
161
+ await (0, exports.openOriginalPositionInEditor)(info.location, editorId);
162
162
  };
163
163
  exports.openCompositionComponentInEditor = openCompositionComponentInEditor;
@@ -14,6 +14,7 @@ const actions_1 = require("../components/RenderQueue/actions");
14
14
  const SizeSelector_1 = require("../components/SizeSelector");
15
15
  const use_resolved_stack_1 = require("../components/Timeline/use-resolved-stack");
16
16
  const TimelineInOutToggle_1 = require("../components/TimelineInOutToggle");
17
+ const use_default_editor_info_1 = require("../components/use-default-editor-info");
17
18
  const ShortcutHint_1 = require("../error-overlay/remotion-overlay/ShortcutHint");
18
19
  const Checkmark_1 = require("../icons/Checkmark");
19
20
  const canvas_ref_1 = require("../state/canvas-ref");
@@ -43,7 +44,7 @@ const inheritColor = {
43
44
  color: 'inherit',
44
45
  };
45
46
  const ICON_SIZE = 14;
46
- const getFileMenu = ({ readOnlyStudio, closeMenu, editorName, previewServerState, setSelectedModal, }) => {
47
+ const getFileMenu = ({ readOnlyStudio, closeMenu, editorName, editorId, previewServerState, setSelectedModal, }) => {
47
48
  const fileManagerName = (0, get_file_manager_name_1.getFileManagerName)(window.remotion_fileSystemPlatform);
48
49
  const browserStudioOperations = (0, browser_studio_operations_1.getBrowserStudioOperations)();
49
50
  const downloadProject = browserStudioOperations === null || browserStudioOperations === void 0 ? void 0 : browserStudioOperations.downloadProject;
@@ -145,7 +146,7 @@ const getFileMenu = ({ readOnlyStudio, closeMenu, editorName, previewServerState
145
146
  id: 'open-project-divider',
146
147
  }
147
148
  : null,
148
- editorName && !readOnlyStudio
149
+ editorName && editorId && !readOnlyStudio
149
150
  ? {
150
151
  id: 'open-in-editor',
151
152
  value: 'open-in-editor',
@@ -157,7 +158,7 @@ const getFileMenu = ({ readOnlyStudio, closeMenu, editorName, previewServerState
157
158
  originalColumnNumber: 1,
158
159
  originalFunctionName: null,
159
160
  originalScriptCode: null,
160
- }, null)
161
+ }, editorId)
161
162
  .then(({ success }) => {
162
163
  if (!success) {
163
164
  (0, NotificationCenter_1.showNotification)(`Could not open ${editorName}`, 2000);
@@ -264,7 +265,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
264
265
  const { size, setSize } = (0, react_1.useContext)(remotion_1.Internals.PreviewSizeContext);
265
266
  const { canvasContent, compositions } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
266
267
  const { type } = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx).previewServerState;
267
- const editorName = window.remotion_editorName;
268
+ const { defaultEditorId, defaultEditorName } = (0, use_default_editor_info_1.useEditorOpening)(type === 'connected');
268
269
  const keyboardShortcutsDisabled = (0, use_keybinding_1.areKeyboardShortcutsDisabled)();
269
270
  const studioAskAIEnabled = (0, studio_runtime_config_1.getStudioAskAIEnabled)();
270
271
  const canConfigureDefaultEditor = !readOnlyStudio &&
@@ -389,7 +390,8 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
389
390
  getFileMenu({
390
391
  readOnlyStudio,
391
392
  closeMenu,
392
- editorName,
393
+ editorId: defaultEditorId,
394
+ editorName: defaultEditorName,
393
395
  previewServerState: type,
394
396
  setSelectedModal,
395
397
  }),
@@ -751,6 +753,8 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
751
753
  closeMenu,
752
754
  composition: currentComposition,
753
755
  connectionStatus: type,
756
+ editorId: defaultEditorId,
757
+ editorName: defaultEditorName,
754
758
  includeCompositionManagementItems: true,
755
759
  resolvedLocation: resolvedCompositionLocation,
756
760
  setSelectedModal,
@@ -1013,7 +1017,8 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
1013
1017
  isFullscreenSupported,
1014
1018
  remotion_packageManager,
1015
1019
  mobileLayout,
1016
- editorName,
1020
+ defaultEditorId,
1021
+ defaultEditorName,
1017
1022
  keyboardShortcutsDisabled,
1018
1023
  studioAskAIEnabled,
1019
1024
  size.size,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
4
4
  },
5
5
  "name": "@remotion/studio",
6
- "version": "4.0.511",
6
+ "version": "4.0.513",
7
7
  "description": "APIs for interacting with the Remotion Studio",
8
8
  "main": "dist",
9
9
  "scripts": {
@@ -24,17 +24,17 @@
24
24
  "react-dom": ">=16.8.0"
25
25
  },
26
26
  "dependencies": {
27
- "@remotion/studio-protocol": "4.0.511",
27
+ "@remotion/studio-protocol": "4.0.513",
28
28
  "semver": "7.5.3",
29
- "remotion": "4.0.511",
30
- "@remotion/captions": "4.0.511",
31
- "@remotion/player": "4.0.511",
32
- "@remotion/media-utils": "4.0.511",
33
- "@remotion/renderer": "4.0.511",
34
- "@remotion/web-renderer": "4.0.511",
35
- "@remotion/studio-shared": "4.0.511",
36
- "@remotion/timeline-utils": "4.0.511",
37
- "@remotion/zod-types": "4.0.511",
29
+ "remotion": "4.0.513",
30
+ "@remotion/captions": "4.0.513",
31
+ "@remotion/player": "4.0.513",
32
+ "@remotion/media-utils": "4.0.513",
33
+ "@remotion/renderer": "4.0.513",
34
+ "@remotion/web-renderer": "4.0.513",
35
+ "@remotion/studio-shared": "4.0.513",
36
+ "@remotion/timeline-utils": "4.0.513",
37
+ "@remotion/zod-types": "4.0.513",
38
38
  "@jridgewell/trace-mapping": "0.3.31",
39
39
  "mediabunny": "1.50.8",
40
40
  "memfs": "3.4.3",
@@ -45,7 +45,7 @@
45
45
  "react": "19.2.3",
46
46
  "react-dom": "19.2.3",
47
47
  "@types/semver": "7.5.3",
48
- "@remotion/eslint-config-internal": "4.0.511",
48
+ "@remotion/eslint-config-internal": "4.0.513",
49
49
  "eslint": "9.19.0",
50
50
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
51
51
  },