@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/index.mjs
CHANGED
|
@@ -584,6 +584,29 @@ import {
|
|
|
584
584
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
585
585
|
var ZodContext = createContext(null);
|
|
586
586
|
|
|
587
|
+
// src/helpers/studio-runtime-config.ts
|
|
588
|
+
import { DEFAULT_TIMELINE_TRACKS } from "@remotion/studio-shared";
|
|
589
|
+
var defaultStudioRuntimeConfig = {
|
|
590
|
+
askAIEnabled: false,
|
|
591
|
+
bufferStateDelayInMilliseconds: null,
|
|
592
|
+
experimentalClientSideRenderingEnabled: false,
|
|
593
|
+
interactivityEnabled: true,
|
|
594
|
+
keyboardShortcutsEnabled: true,
|
|
595
|
+
maxTimelineTracks: null
|
|
596
|
+
};
|
|
597
|
+
var getStudioRuntimeConfig = () => {
|
|
598
|
+
if (typeof window === "undefined") {
|
|
599
|
+
return defaultStudioRuntimeConfig;
|
|
600
|
+
}
|
|
601
|
+
return window.remotion_studioConfig ?? defaultStudioRuntimeConfig;
|
|
602
|
+
};
|
|
603
|
+
var getStudioInteractivityEnabled = () => {
|
|
604
|
+
return getStudioRuntimeConfig().interactivityEnabled;
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
// src/helpers/interactivity-enabled.ts
|
|
608
|
+
var studioInteractivityEnabled = getStudioInteractivityEnabled();
|
|
609
|
+
|
|
587
610
|
// src/visual-controls/VisualControls.tsx
|
|
588
611
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
589
612
|
var VisualControlsTabActivatedContext = createContext2(false);
|