@remotion/studio 4.0.487 → 4.0.489
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 +157 -4
- package/dist/components/Editor.js +2 -5
- package/dist/components/GlobalKeybindings.js +2 -1
- package/dist/components/InspectorPanel/DefaultInspector.js +2 -1
- package/dist/components/KeyboardShortcutsExplainer.js +2 -1
- package/dist/components/Modals.js +2 -1
- package/dist/components/NewComposition/MenuContent.js +2 -2
- package/dist/components/SelectedOutlineOverlay.js +2 -1
- package/dist/components/Timeline/MaxTimelineTracks.js +2 -5
- package/dist/components/Timeline/Timeline.js +8 -6
- package/dist/components/Timeline/TimelineDragHandler.js +2 -1
- package/dist/components/Timeline/TimelineSelection.js +3 -1
- package/dist/components/Timeline/TimelineSequence.js +15 -8
- package/dist/components/Timeline/TimelineSequenceItem.js +65 -52
- package/dist/esm/{chunk-y2t24cx0.js → chunk-jrta3xaf.js} +278 -56
- package/dist/esm/index.mjs +23 -0
- package/dist/esm/internals.mjs +278 -56
- package/dist/esm/previewEntry.mjs +503 -281
- package/dist/esm/renderEntry.mjs +1 -1
- package/dist/helpers/interactivity-enabled.d.ts +1 -0
- package/dist/helpers/interactivity-enabled.js +5 -0
- package/dist/helpers/show-browser-rendering.js +2 -1
- package/dist/helpers/studio-runtime-config.d.ts +7 -0
- package/dist/helpers/studio-runtime-config.js +46 -0
- package/dist/helpers/use-keybinding.js +4 -3
- package/dist/helpers/use-menu-structure.js +2 -1
- package/dist/visual-controls/VisualControls.js +4 -0
- package/package.json +12 -12
package/dist/esm/renderEntry.mjs
CHANGED
|
@@ -212,7 +212,7 @@ var renderContent = (Root) => {
|
|
|
212
212
|
renderToDOM(/* @__PURE__ */ jsx("div", {
|
|
213
213
|
children: /* @__PURE__ */ jsx(DelayedSpinner, {})
|
|
214
214
|
}));
|
|
215
|
-
import("./chunk-
|
|
215
|
+
import("./chunk-jrta3xaf.js").then(({ StudioInternals }) => {
|
|
216
216
|
window.remotion_isStudio = true;
|
|
217
217
|
window.remotion_isReadOnlyStudio = true;
|
|
218
218
|
window.remotion_inputProps = "{}";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const studioInteractivityEnabled: boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.studioInteractivityEnabled = void 0;
|
|
4
|
+
const studio_runtime_config_1 = require("./studio-runtime-config");
|
|
5
|
+
exports.studioInteractivityEnabled = (0, studio_runtime_config_1.getStudioInteractivityEnabled)();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SHOW_BROWSER_RENDERING = void 0;
|
|
4
|
-
|
|
4
|
+
const studio_runtime_config_1 = require("./studio-runtime-config");
|
|
5
|
+
exports.SHOW_BROWSER_RENDERING = (0, studio_runtime_config_1.getStudioExperimentalClientSideRenderingEnabled)();
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS = 300;
|
|
2
|
+
export declare const getStudioAskAIEnabled: () => boolean;
|
|
3
|
+
export declare const getStudioInteractivityEnabled: () => boolean;
|
|
4
|
+
export declare const getStudioKeyboardShortcutsEnabled: () => boolean;
|
|
5
|
+
export declare const getStudioExperimentalClientSideRenderingEnabled: () => boolean;
|
|
6
|
+
export declare const getStudioMaxTimelineTracks: () => number;
|
|
7
|
+
export declare const getStudioBufferStateDelayInMilliseconds: () => number;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStudioBufferStateDelayInMilliseconds = exports.getStudioMaxTimelineTracks = exports.getStudioExperimentalClientSideRenderingEnabled = exports.getStudioKeyboardShortcutsEnabled = exports.getStudioInteractivityEnabled = exports.getStudioAskAIEnabled = exports.DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS = void 0;
|
|
4
|
+
const studio_shared_1 = require("@remotion/studio-shared");
|
|
5
|
+
exports.DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS = 300;
|
|
6
|
+
const defaultStudioRuntimeConfig = {
|
|
7
|
+
askAIEnabled: false,
|
|
8
|
+
bufferStateDelayInMilliseconds: null,
|
|
9
|
+
experimentalClientSideRenderingEnabled: false,
|
|
10
|
+
interactivityEnabled: true,
|
|
11
|
+
keyboardShortcutsEnabled: true,
|
|
12
|
+
maxTimelineTracks: null,
|
|
13
|
+
};
|
|
14
|
+
const getStudioRuntimeConfig = () => {
|
|
15
|
+
var _a;
|
|
16
|
+
if (typeof window === 'undefined') {
|
|
17
|
+
return defaultStudioRuntimeConfig;
|
|
18
|
+
}
|
|
19
|
+
return (_a = window.remotion_studioConfig) !== null && _a !== void 0 ? _a : defaultStudioRuntimeConfig;
|
|
20
|
+
};
|
|
21
|
+
const getStudioAskAIEnabled = () => {
|
|
22
|
+
return getStudioRuntimeConfig().askAIEnabled;
|
|
23
|
+
};
|
|
24
|
+
exports.getStudioAskAIEnabled = getStudioAskAIEnabled;
|
|
25
|
+
const getStudioInteractivityEnabled = () => {
|
|
26
|
+
return getStudioRuntimeConfig().interactivityEnabled;
|
|
27
|
+
};
|
|
28
|
+
exports.getStudioInteractivityEnabled = getStudioInteractivityEnabled;
|
|
29
|
+
const getStudioKeyboardShortcutsEnabled = () => {
|
|
30
|
+
return getStudioRuntimeConfig().keyboardShortcutsEnabled;
|
|
31
|
+
};
|
|
32
|
+
exports.getStudioKeyboardShortcutsEnabled = getStudioKeyboardShortcutsEnabled;
|
|
33
|
+
const getStudioExperimentalClientSideRenderingEnabled = () => {
|
|
34
|
+
return getStudioRuntimeConfig().experimentalClientSideRenderingEnabled;
|
|
35
|
+
};
|
|
36
|
+
exports.getStudioExperimentalClientSideRenderingEnabled = getStudioExperimentalClientSideRenderingEnabled;
|
|
37
|
+
const getStudioMaxTimelineTracks = () => {
|
|
38
|
+
var _a;
|
|
39
|
+
return (_a = getStudioRuntimeConfig().maxTimelineTracks) !== null && _a !== void 0 ? _a : studio_shared_1.DEFAULT_TIMELINE_TRACKS;
|
|
40
|
+
};
|
|
41
|
+
exports.getStudioMaxTimelineTracks = getStudioMaxTimelineTracks;
|
|
42
|
+
const getStudioBufferStateDelayInMilliseconds = () => {
|
|
43
|
+
var _a;
|
|
44
|
+
return ((_a = getStudioRuntimeConfig().bufferStateDelayInMilliseconds) !== null && _a !== void 0 ? _a : exports.DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS);
|
|
45
|
+
};
|
|
46
|
+
exports.getStudioBufferStateDelayInMilliseconds = getStudioBufferStateDelayInMilliseconds;
|
|
@@ -4,12 +4,13 @@ exports.useKeybinding = exports.areKeyboardShortcutsDisabled = void 0;
|
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const keybindings_1 = require("../state/keybindings");
|
|
6
6
|
const z_index_1 = require("../state/z-index");
|
|
7
|
-
|
|
7
|
+
const studio_runtime_config_1 = require("./studio-runtime-config");
|
|
8
|
+
if (!(0, studio_runtime_config_1.getStudioKeyboardShortcutsEnabled)()) {
|
|
8
9
|
// eslint-disable-next-line no-console
|
|
9
10
|
console.warn('Keyboard shortcuts disabled either due to: a) --disable-keyboard-shortcuts being passed b) Config.setKeyboardShortcutsEnabled(false) being set or c) a Remotion version mismatch.');
|
|
10
11
|
}
|
|
11
12
|
const areKeyboardShortcutsDisabled = () => {
|
|
12
|
-
return !
|
|
13
|
+
return !(0, studio_runtime_config_1.getStudioKeyboardShortcutsEnabled)();
|
|
13
14
|
};
|
|
14
15
|
exports.areKeyboardShortcutsDisabled = areKeyboardShortcutsDisabled;
|
|
15
16
|
const useKeybinding = () => {
|
|
@@ -17,7 +18,7 @@ const useKeybinding = () => {
|
|
|
17
18
|
const context = (0, react_1.useContext)(keybindings_1.KeybindingContext);
|
|
18
19
|
const { isHighestContext } = (0, z_index_1.useZIndex)();
|
|
19
20
|
const registerKeybinding = (0, react_1.useCallback)((options) => {
|
|
20
|
-
if (!
|
|
21
|
+
if (!(0, studio_runtime_config_1.getStudioKeyboardShortcutsEnabled)()) {
|
|
21
22
|
return {
|
|
22
23
|
unregister: () => undefined,
|
|
23
24
|
};
|
|
@@ -32,6 +32,7 @@ const mobile_layout_1 = require("./mobile-layout");
|
|
|
32
32
|
const open_in_editor_1 = require("./open-in-editor");
|
|
33
33
|
const pick_color_1 = require("./pick-color");
|
|
34
34
|
const show_browser_rendering_1 = require("./show-browser-rendering");
|
|
35
|
+
const studio_runtime_config_1 = require("./studio-runtime-config");
|
|
35
36
|
const use_keybinding_1 = require("./use-keybinding");
|
|
36
37
|
const openExternal = (link) => {
|
|
37
38
|
window.open(link, '_blank');
|
|
@@ -682,7 +683,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
682
683
|
label: 'Tools',
|
|
683
684
|
leaveLeftPadding: false,
|
|
684
685
|
items: [
|
|
685
|
-
|
|
686
|
+
(0, studio_runtime_config_1.getStudioAskAIEnabled)()
|
|
686
687
|
? {
|
|
687
688
|
id: 'ask-ai',
|
|
688
689
|
value: 'ask-ai',
|
|
@@ -6,6 +6,7 @@ const react_1 = require("react");
|
|
|
6
6
|
const remotion_1 = require("remotion");
|
|
7
7
|
const get_zod_schema_from_primitive_1 = require("../api/get-zod-schema-from-primitive");
|
|
8
8
|
const get_zod_if_possible_1 = require("../components/get-zod-if-possible");
|
|
9
|
+
const interactivity_enabled_1 = require("../helpers/interactivity-enabled");
|
|
9
10
|
const get_current_edited_value_1 = require("./get-current-edited-value");
|
|
10
11
|
const visual_control_store_1 = require("./visual-control-store");
|
|
11
12
|
exports.VisualControlsTabActivatedContext = (0, react_1.createContext)(false);
|
|
@@ -69,6 +70,9 @@ const VisualControlsProvider = ({ children }) => {
|
|
|
69
70
|
if (!env.isStudio) {
|
|
70
71
|
return value;
|
|
71
72
|
}
|
|
73
|
+
if (!interactivity_enabled_1.studioInteractivityEnabled) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
72
76
|
if (!z) {
|
|
73
77
|
return value;
|
|
74
78
|
}
|
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.489",
|
|
7
7
|
"description": "APIs for interacting with the Remotion Studio",
|
|
8
8
|
"main": "dist",
|
|
9
9
|
"scripts": {
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"semver": "7.5.3",
|
|
28
|
-
"remotion": "4.0.
|
|
29
|
-
"@remotion/canvas-capture": "4.0.
|
|
30
|
-
"@remotion/player": "4.0.
|
|
31
|
-
"@remotion/media-utils": "4.0.
|
|
32
|
-
"@remotion/renderer": "4.0.
|
|
33
|
-
"@remotion/web-renderer": "4.0.
|
|
34
|
-
"@remotion/studio-shared": "4.0.
|
|
35
|
-
"@remotion/timeline-utils": "4.0.
|
|
36
|
-
"@remotion/zod-types": "4.0.
|
|
28
|
+
"remotion": "4.0.489",
|
|
29
|
+
"@remotion/canvas-capture": "4.0.489",
|
|
30
|
+
"@remotion/player": "4.0.489",
|
|
31
|
+
"@remotion/media-utils": "4.0.489",
|
|
32
|
+
"@remotion/renderer": "4.0.489",
|
|
33
|
+
"@remotion/web-renderer": "4.0.489",
|
|
34
|
+
"@remotion/studio-shared": "4.0.489",
|
|
35
|
+
"@remotion/timeline-utils": "4.0.489",
|
|
36
|
+
"@remotion/zod-types": "4.0.489",
|
|
37
37
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
38
|
-
"mediabunny": "1.50.
|
|
38
|
+
"mediabunny": "1.50.8",
|
|
39
39
|
"memfs": "3.4.3",
|
|
40
40
|
"open": "8.4.2",
|
|
41
41
|
"zod": "4.3.6"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react": "19.2.3",
|
|
45
45
|
"react-dom": "19.2.3",
|
|
46
46
|
"@types/semver": "7.5.3",
|
|
47
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
47
|
+
"@remotion/eslint-config-internal": "4.0.489",
|
|
48
48
|
"eslint": "9.19.0",
|
|
49
49
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
50
50
|
},
|