@remotion/studio 4.0.525 → 4.0.526
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 +21 -18
- 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 +6 -17
- package/dist/components/CurrentAsset.js +5 -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/InlineEditableTitle.js +2 -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 +19 -8
- package/dist/components/InspectorPanel/CompositionInspector.js +30 -13
- package/dist/components/InspectorPanel/CompositionMetadata.js +3 -0
- package/dist/components/InspectorPanel/ConnectedCompositionsSection.js +6 -12
- package/dist/components/InspectorPanel/ElementLibraryButton.js +1 -0
- package/dist/components/InspectorPanel/GuideInspector.js +2 -3
- package/dist/components/InspectorPanel/KeyframeSettings.js +5 -6
- package/dist/components/InspectorPanel/MultiSequenceInspector.js +2 -1
- package/dist/components/InspectorPanel/SequenceSelectionInspector.js +4 -3
- package/dist/components/InspectorPanel/common.d.ts +4 -0
- package/dist/components/InspectorPanel/common.js +14 -2
- package/dist/components/InspectorPanel/styles.d.ts +0 -3
- package/dist/components/InspectorPanel/styles.js +1 -27
- package/dist/components/InspectorPanel/use-composition-actions.d.ts +2 -0
- package/dist/components/InspectorPanel/use-composition-actions.js +15 -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 +1 -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/MenuCompositionName.js +4 -9
- package/dist/components/Modals.js +3 -6
- package/dist/components/ModelsSettings.js +15 -4
- package/dist/components/Notifications/NotificationCenter.d.ts +0 -1
- package/dist/components/Notifications/NotificationCenter.js +1 -22
- package/dist/components/QuickSwitcher/QuickSwitcherResult.js +4 -9
- 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/RendersTab.js +2 -0
- package/dist/components/SelectedOutlineElement.js +6 -0
- 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/TimelineHeightContainer.js +11 -1
- package/dist/components/Timeline/TimelineKeyframeControls.js +15 -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 +2 -2
- package/dist/components/Timeline/TimelineSequenceItem.d.ts +2 -0
- package/dist/components/Timeline/TimelineSequenceItem.js +17 -13
- package/dist/components/Timeline/TimelineVirtualization.d.ts +3 -3
- package/dist/components/Timeline/get-sequence-context-menu-items.d.ts +3 -1
- package/dist/components/Timeline/get-sequence-context-menu-items.js +130 -45
- 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/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/UpdateStatusContext.d.ts +2 -2
- package/dist/components/UpdateStatusContext.js +6 -7
- package/dist/components/UpdatesSettings.js +6 -6
- package/dist/components/WebMcp.js +40 -41
- package/dist/components/asset-context-menu.d.ts +32 -0
- package/dist/components/asset-context-menu.js +242 -0
- package/dist/components/composition-menu-items.d.ts +4 -6
- package/dist/components/composition-menu-items.js +191 -75
- package/dist/components/get-open-in-menu-items.d.ts +6 -5
- package/dist/components/get-open-in-menu-items.js +15 -9
- 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/{LazyModels-gfmpcy4h.mjs → LazyModels-mtggyjye.mjs} +3 -3
- package/dist/esm/{LazyModels-m1rf06wh.mjs → LazyModels-nk7py0zt.mjs} +3 -3
- package/dist/esm/{TranscriptionModal-8pvrehg4.mjs → TranscriptionModal-ymnx1c7m.mjs} +6 -6
- package/dist/esm/{VideoMattingModal-fefbzgka.mjs → VideoMattingModal-05vpczks.mjs} +6 -6
- package/dist/esm/{index-s848rffx.mjs → index-0gewwxse.mjs} +5330 -4668
- package/dist/esm/{index-tzxb8808.mjs → index-4dsz9035.mjs} +8 -8
- package/dist/esm/{index-hbezgbbq.mjs → index-5bfxbpca.mjs} +1 -1
- package/dist/esm/{index-vsxrxfpj.mjs → index-5gd8k9yv.mjs} +1 -1
- package/dist/esm/{index-ggqpre9v.mjs → index-bs39wngg.mjs} +4216 -3571
- package/dist/esm/{index-0x13f28h.mjs → index-cdy8v54v.mjs} +1 -1
- package/dist/esm/{index-41kqns5c.mjs → index-eb5txqp6.mjs} +8 -7
- package/dist/esm/{index-1089795y.mjs → index-f97r9e2g.mjs} +4 -21
- package/dist/esm/{index-jrw61pkj.mjs → index-g7k2dvar.mjs} +1 -1
- package/dist/esm/{index-mww32xc8.mjs → index-x40wwfmt.mjs} +3 -3
- package/dist/esm/index.mjs +12 -6
- package/dist/esm/internals.mjs +7 -7
- package/dist/esm/previewEntry.mjs +7 -7
- package/dist/helpers/client-id.d.ts +1 -0
- package/dist/helpers/client-id.js +8 -4
- 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/open-in-editor.d.ts +5 -2
- package/dist/helpers/open-in-editor.js +12 -4
- package/dist/helpers/settings-tab-availability.d.ts +14 -0
- package/dist/helpers/settings-tab-availability.js +35 -0
- package/dist/helpers/use-menu-structure.js +16 -12
- 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 +12 -2
- package/package.json +19 -19
- package/dist/error-overlay/remotion-overlay/CodeFrame.js +0 -62
|
@@ -14,7 +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
|
|
17
|
+
const use_open_in_menu_apps_1 = require("../components/use-open-in-menu-apps");
|
|
18
18
|
const Checkmark_1 = require("../icons/Checkmark");
|
|
19
19
|
const canvas_ref_1 = require("../state/canvas-ref");
|
|
20
20
|
const checkerboard_1 = require("../state/checkerboard");
|
|
@@ -27,13 +27,13 @@ const modals_1 = require("../state/modals");
|
|
|
27
27
|
const sidebar_1 = require("../state/sidebar");
|
|
28
28
|
const browser_studio_operations_1 = require("./browser-studio-operations");
|
|
29
29
|
const check_fullscreen_support_1 = require("./check-fullscreen-support");
|
|
30
|
-
const client_id_1 = require("./client-id");
|
|
31
30
|
const colors_1 = require("./colors");
|
|
32
31
|
const get_file_manager_name_1 = require("./get-file-manager-name");
|
|
33
32
|
const get_git_menu_item_1 = require("./get-git-menu-item");
|
|
34
33
|
const mobile_layout_1 = require("./mobile-layout");
|
|
35
34
|
const open_in_editor_1 = require("./open-in-editor");
|
|
36
35
|
const pick_color_1 = require("./pick-color");
|
|
36
|
+
const settings_tab_availability_1 = require("./settings-tab-availability");
|
|
37
37
|
const studio_runtime_config_1 = require("./studio-runtime-config");
|
|
38
38
|
const use_keybinding_1 = require("./use-keybinding");
|
|
39
39
|
const use_keyboard_shortcut_label_1 = require("./use-keyboard-shortcut-label");
|
|
@@ -243,8 +243,8 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
243
243
|
const { editorSnapping, setEditorSnapping } = (0, react_1.useContext)(editor_snapping_1.EditorSnappingContext);
|
|
244
244
|
const { size, setSize } = (0, react_1.useContext)(remotion_1.Internals.PreviewSizeContext);
|
|
245
245
|
const { canvasContent, compositions } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
246
|
-
const { type } = (0,
|
|
247
|
-
const { defaultEditorId, defaultEditorName } =
|
|
246
|
+
const { connectionStatus: type, openInApps } = (0, use_open_in_menu_apps_1.useOpenInMenuApps)();
|
|
247
|
+
const { defaultEditorId, defaultEditorName } = openInApps;
|
|
248
248
|
const keyboardShortcutsDisabled = (0, use_keybinding_1.areKeyboardShortcutsDisabled)();
|
|
249
249
|
const resetZoomShortcut = (0, use_keyboard_shortcut_label_1.useKeyboardShortcutLabel)('resetZoom');
|
|
250
250
|
const toggleSnappingShortcut = (0, use_keyboard_shortcut_label_1.useKeyboardShortcutLabel)('toggleSnapping');
|
|
@@ -264,6 +264,11 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
264
264
|
const isFullscreenSupported = (0, check_fullscreen_support_1.checkFullscreenSupport)();
|
|
265
265
|
const { remotion_packageManager } = window;
|
|
266
266
|
const browserStudioOperations = (0, browser_studio_operations_1.getBrowserStudioOperations)();
|
|
267
|
+
const studioConfigEditable = (0, settings_tab_availability_1.canEditStudioConfig)({
|
|
268
|
+
isBrowserStudio: browserStudioOperations !== null,
|
|
269
|
+
previewServerConnected: type === 'connected',
|
|
270
|
+
readOnlyStudio,
|
|
271
|
+
});
|
|
267
272
|
const sizePreselectIndex = sizes.findIndex((s) => String(size.size) === String(s.size));
|
|
268
273
|
const mobileLayout = (0, mobile_layout_1.useMobileLayout)();
|
|
269
274
|
const currentComposition = (0, react_1.useMemo)(() => {
|
|
@@ -330,7 +335,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
330
335
|
closeMenu();
|
|
331
336
|
setSelectedModal({
|
|
332
337
|
type: 'settings',
|
|
333
|
-
initialTab:
|
|
338
|
+
initialTab: studioConfigEditable ? 'studio' : 'shortcuts',
|
|
334
339
|
initialPublicLicenseKey: (_b = (_a = window.remotion_renderDefaults) === null || _a === void 0 ? void 0 : _a.publicLicenseKey) !== null && _b !== void 0 ? _b : null,
|
|
335
340
|
});
|
|
336
341
|
},
|
|
@@ -339,8 +344,6 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
339
344
|
leftItem: null,
|
|
340
345
|
subMenu: null,
|
|
341
346
|
quickSwitcherLabel: 'Settings...',
|
|
342
|
-
disabled: (browserStudioOperations === null && readOnlyStudio) ||
|
|
343
|
-
type !== 'connected',
|
|
344
347
|
},
|
|
345
348
|
{
|
|
346
349
|
id: 'acknowledgements',
|
|
@@ -356,13 +359,13 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
356
359
|
subMenu: null,
|
|
357
360
|
quickSwitcherLabel: 'Help: Acknowledgements',
|
|
358
361
|
},
|
|
359
|
-
|
|
362
|
+
studioConfigEditable
|
|
360
363
|
? {
|
|
361
364
|
type: 'divider',
|
|
362
365
|
id: 'timeline-divider-1',
|
|
363
366
|
}
|
|
364
367
|
: null,
|
|
365
|
-
|
|
368
|
+
studioConfigEditable
|
|
366
369
|
? {
|
|
367
370
|
id: 'restart-studio',
|
|
368
371
|
value: 'restart-studio',
|
|
@@ -780,9 +783,8 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
780
783
|
closeMenu,
|
|
781
784
|
composition: currentComposition,
|
|
782
785
|
connectionStatus: type,
|
|
783
|
-
editorId: defaultEditorId,
|
|
784
|
-
editorName: defaultEditorName,
|
|
785
786
|
includeCompositionManagementItems: true,
|
|
787
|
+
openInApps,
|
|
786
788
|
resolvedLocation: resolvedCompositionLocation,
|
|
787
789
|
setSelectedModal,
|
|
788
790
|
readOnlyStudio,
|
|
@@ -834,7 +836,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
834
836
|
: null,
|
|
835
837
|
!(0, browser_studio_operations_1.canInstallPackages)() ||
|
|
836
838
|
(browserStudioOperations === null &&
|
|
837
|
-
remotion_packageManager === 'unknown')
|
|
839
|
+
(remotion_packageManager === 'unknown' || type !== 'connected'))
|
|
838
840
|
? null
|
|
839
841
|
: {
|
|
840
842
|
id: 'install-packages',
|
|
@@ -1057,6 +1059,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
1057
1059
|
mobileLayout,
|
|
1058
1060
|
defaultEditorId,
|
|
1059
1061
|
defaultEditorName,
|
|
1062
|
+
openInApps,
|
|
1060
1063
|
keyboardShortcutsDisabled,
|
|
1061
1064
|
studioAskAIEnabled,
|
|
1062
1065
|
askAIShortcut,
|
|
@@ -1072,6 +1075,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
1072
1075
|
showKeyboardShortcutsShortcut,
|
|
1073
1076
|
toggleSnappingShortcut,
|
|
1074
1077
|
browserStudioOperations,
|
|
1078
|
+
studioConfigEditable,
|
|
1075
1079
|
size.size,
|
|
1076
1080
|
setSize,
|
|
1077
1081
|
setEditorZoomGestures,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LutFileIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const LutFileIcon = ({ color, ...props }) => (jsx_runtime_1.jsx("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 640", children: jsx_runtime_1.jsx("path", { fill: color, d: "M537.7 64C522.8 64 508.4 68.7 496.3 77.5L286.1 230.3C257.1 251.4 240 285 240 320.9L240 321C234.8 320.3 229.4 320 224 320C153.3 320 96 377.3 96 448C96 463.5 98.8 478.4 103.8 492.2C111.4 513 98 544 75.8 544L48 544C39.2 544 32 551.2 32 560C32 568.8 39.2 576 48 576L224 576C294.7 576 352 518.7 352 448C352 442.6 351.7 437.2 351 432L351.1 432C386.9 432 420.6 414.9 441.7 385.9L594.5 175.7C603.3 163.7 608 149.2 608 134.3C608 95.5 576.5 64 537.7 64zM342.7 400C329.7 367.9 304.1 342.3 272 329.3L272 320.9C272 295.3 284.2 271.3 304.9 256.2L515.1 103.3C521.7 98.5 529.5 96 537.6 96C558.8 96 575.9 113.2 575.9 134.3C575.9 142.4 573.3 150.3 568.6 156.8L415.8 367.1C400.7 387.8 376.7 400 351.1 400L342.7 400zM320 448C320 501 277 544 224 544L127.6 544C128.3 542.7 129 541.4 129.7 540.2C138 523.5 141.4 501.3 133.9 481.2C130.1 470.9 128 459.8 128 448.1C128 395.1 171 352.1 224 352.1C277 352.1 320 395.1 320 448.1z" }) }));
|
|
6
|
+
exports.LutFileIcon = LutFileIcon;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SparklesIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SparklesIcon = ({ color, ...props }) => (jsx_runtime_1.jsx("svg", { ...props, fill: color, viewBox: "0 0 640 640", children: jsx_runtime_1.jsx("path", { d: "M390.6 268.1 529.2 320 390.6 371.9C381.9 375.1 375.1 382 371.8 390.7L320 529.2 268.1 390.6C264.9 381.9 258 375.1 249.3 371.8L110.8 320 249.4 268.1C258.1 264.9 264.9 258 268.2 249.3L320 110.8 371.9 249.4C375.1 258.1 382 264.9 390.7 268.2ZM401.8 238.1 342.5 79.6C339 70.2 330 64 320 64S301 70.2 297.5 79.6L238.2 238.2 79.6 297.5C70.2 301 64 310 64 320S70.2 339 79.6 342.5L238.2 401.9 297.6 560.5C301 569.8 310 576 320 576S339 569.8 342.5 560.4L401.9 401.8 560.5 342.4C569.8 339 576 330 576 320S569.8 301 560.4 297.5L401.8 238.2Z" }) }));
|
|
6
|
+
exports.SparklesIcon = SparklesIcon;
|
package/dist/state/modals.d.ts
CHANGED
|
@@ -143,6 +143,7 @@ export type CanvasCaptureImport = {
|
|
|
143
143
|
export type ElementInstallPlan = {
|
|
144
144
|
readonly compositionFile: string;
|
|
145
145
|
readonly expectedFileState: ElementInstallExpectedFileState;
|
|
146
|
+
readonly filePath: string;
|
|
146
147
|
};
|
|
147
148
|
export type ElementInstallModalState = {
|
|
148
149
|
readonly type: 'element-install';
|
|
@@ -199,8 +200,17 @@ export type ModalState = {
|
|
|
199
200
|
} | {
|
|
200
201
|
type: 'fix-computed-value';
|
|
201
202
|
prop: string;
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
location: {
|
|
204
|
+
source: string;
|
|
205
|
+
line: number;
|
|
206
|
+
column: number;
|
|
207
|
+
};
|
|
208
|
+
} | {
|
|
209
|
+
type: 'generate-with-agent';
|
|
210
|
+
location: {
|
|
211
|
+
source: string;
|
|
212
|
+
line: number;
|
|
213
|
+
} | null;
|
|
204
214
|
} | {
|
|
205
215
|
type: 'quick-switcher';
|
|
206
216
|
mode: QuickSwitcherMode;
|
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.
|
|
6
|
+
"version": "4.0.526",
|
|
7
7
|
"description": "APIs for interacting with the Remotion Studio",
|
|
8
8
|
"main": "dist",
|
|
9
9
|
"scripts": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@remotion/video-matting": "4.0.
|
|
24
|
-
"@remotion/whisper-webgpu": "4.0.
|
|
23
|
+
"@remotion/video-matting": "4.0.526",
|
|
24
|
+
"@remotion/whisper-webgpu": "4.0.526",
|
|
25
25
|
"react": ">=16.8.0",
|
|
26
26
|
"react-dom": ">=16.8.0"
|
|
27
27
|
},
|
|
@@ -35,32 +35,32 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
38
|
-
"@remotion/canvas": "4.0.
|
|
39
|
-
"@remotion/captions": "4.0.
|
|
40
|
-
"@remotion/media": "4.0.
|
|
41
|
-
"@remotion/media-utils": "4.0.
|
|
42
|
-
"@remotion/player": "4.0.
|
|
43
|
-
"@remotion/renderer": "4.0.
|
|
44
|
-
"@remotion/studio-codemods": "4.0.
|
|
45
|
-
"@remotion/studio-protocol": "4.0.
|
|
46
|
-
"@remotion/studio-shared": "4.0.
|
|
47
|
-
"@remotion/timeline-utils": "4.0.
|
|
48
|
-
"@remotion/web-renderer": "4.0.
|
|
49
|
-
"@remotion/zod-types": "4.0.
|
|
38
|
+
"@remotion/canvas": "4.0.526",
|
|
39
|
+
"@remotion/captions": "4.0.526",
|
|
40
|
+
"@remotion/media": "4.0.526",
|
|
41
|
+
"@remotion/media-utils": "4.0.526",
|
|
42
|
+
"@remotion/player": "4.0.526",
|
|
43
|
+
"@remotion/renderer": "4.0.526",
|
|
44
|
+
"@remotion/studio-codemods": "4.0.526",
|
|
45
|
+
"@remotion/studio-protocol": "4.0.526",
|
|
46
|
+
"@remotion/studio-shared": "4.0.526",
|
|
47
|
+
"@remotion/timeline-utils": "4.0.526",
|
|
48
|
+
"@remotion/web-renderer": "4.0.526",
|
|
49
|
+
"@remotion/zod-types": "4.0.526",
|
|
50
50
|
"@tanstack/react-virtual": "3.14.9",
|
|
51
51
|
"mediabunny": "1.56.1",
|
|
52
52
|
"memfs": "3.4.3",
|
|
53
53
|
"open": "8.4.2",
|
|
54
54
|
"prismjs": "1.30.0",
|
|
55
|
-
"remotion": "4.0.
|
|
55
|
+
"remotion": "4.0.526",
|
|
56
56
|
"semver": "7.5.3",
|
|
57
57
|
"zod": "4.5.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@happy-dom/global-registrator": "14.5.1",
|
|
61
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
62
|
-
"@remotion/video-matting": "4.0.
|
|
63
|
-
"@remotion/whisper-webgpu": "4.0.
|
|
61
|
+
"@remotion/eslint-config-internal": "4.0.526",
|
|
62
|
+
"@remotion/video-matting": "4.0.526",
|
|
63
|
+
"@remotion/whisper-webgpu": "4.0.526",
|
|
64
64
|
"@testing-library/react": "16.1.0",
|
|
65
65
|
"@types/prismjs": "1.26.4",
|
|
66
66
|
"@types/semver": "7.5.3",
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CodeFrame = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const LazySyntaxHighlightedSource_1 = require("../../components/LazySyntaxHighlightedSource");
|
|
6
|
-
const is_menu_item_1 = require("../../components/Menu/is-menu-item");
|
|
7
|
-
const colors_1 = require("../../helpers/colors");
|
|
8
|
-
const container = {
|
|
9
|
-
display: 'flex',
|
|
10
|
-
flexDirection: 'row',
|
|
11
|
-
width: '100%',
|
|
12
|
-
};
|
|
13
|
-
const frame = {
|
|
14
|
-
backgroundColor: colors_1.ERROR_CODE_FRAME_BACKGROUND,
|
|
15
|
-
borderRadius: 6,
|
|
16
|
-
marginBottom: 20,
|
|
17
|
-
marginLeft: 14,
|
|
18
|
-
marginRight: 14,
|
|
19
|
-
overflowY: 'auto',
|
|
20
|
-
};
|
|
21
|
-
const lineNumber = {
|
|
22
|
-
whiteSpace: 'pre',
|
|
23
|
-
paddingRight: 12,
|
|
24
|
-
color: 'inherit',
|
|
25
|
-
fontSize: 14,
|
|
26
|
-
lineHeight: 1.7,
|
|
27
|
-
width: 60,
|
|
28
|
-
flexShrink: 0,
|
|
29
|
-
display: 'inline-flex',
|
|
30
|
-
alignItems: 'center',
|
|
31
|
-
justifyContent: 'flex-end',
|
|
32
|
-
fontFamily: 'monospace',
|
|
33
|
-
};
|
|
34
|
-
const CodeFrame = ({ source, lineNumberWidth }) => {
|
|
35
|
-
return (jsx_runtime_1.jsx("div", { style: frame, className: is_menu_item_1.HORIZONTAL_SCROLLBAR_CLASSNAME, children: jsx_runtime_1.jsx("div", { style: { minWidth: '100%', width: 'max-content' }, children: source.map((s, j) => {
|
|
36
|
-
return (jsx_runtime_1.jsxs("div", { style: {
|
|
37
|
-
...container,
|
|
38
|
-
backgroundColor: s.highlight
|
|
39
|
-
? colors_1.SELECTED_BACKGROUND
|
|
40
|
-
: colors_1.TRANSPARENT,
|
|
41
|
-
}, children: [
|
|
42
|
-
jsx_runtime_1.jsx("div", { style: {
|
|
43
|
-
...lineNumber,
|
|
44
|
-
backgroundColor: s.highlight
|
|
45
|
-
? colors_1.TRANSPARENT
|
|
46
|
-
: colors_1.ERROR_CODE_FRAME_LINE_BACKGROUND,
|
|
47
|
-
color: s.highlight ? colors_1.WHITE : colors_1.WHITE_ALPHA_40,
|
|
48
|
-
}, children: String(s.lineNumber).padStart(lineNumberWidth, ' ') }), jsx_runtime_1.jsx("code", { className: "language-tsx", style: {
|
|
49
|
-
fontFamily: 'monospace',
|
|
50
|
-
fontSize: 14,
|
|
51
|
-
color: '#9cdcfe',
|
|
52
|
-
whiteSpace: 'pre',
|
|
53
|
-
tabSize: 2,
|
|
54
|
-
backgroundColor: colors_1.TRANSPARENT,
|
|
55
|
-
lineHeight: 1.7,
|
|
56
|
-
paddingRight: 12,
|
|
57
|
-
paddingLeft: 12,
|
|
58
|
-
}, children: jsx_runtime_1.jsx(LazySyntaxHighlightedSource_1.LazySyntaxHighlightedSource, { source: s.content }) })
|
|
59
|
-
] }, j));
|
|
60
|
-
}) }) }));
|
|
61
|
-
};
|
|
62
|
-
exports.CodeFrame = CodeFrame;
|