@remotion/studio 4.0.520 → 4.0.521
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/shut-down-studio.d.ts +6 -0
- package/dist/api/shut-down-studio.js +23 -0
- package/dist/components/AudioWaveform.js +10 -6
- package/dist/components/Canvas.js +84 -12
- package/dist/components/CaptionInspector.d.ts +1 -0
- package/dist/components/CaptionInspector.js +43 -2
- package/dist/components/CaptionTextEditor.js +1 -1
- package/dist/components/CompositionSelector.js +41 -30
- package/dist/components/CompositionSelectorItem.d.ts +7 -0
- package/dist/components/CompositionSelectorItem.js +343 -67
- package/dist/components/ElementInstallConfirmation.js +74 -64
- package/dist/components/ElementLibraryModal.js +3 -1
- package/dist/components/InlineCaptionInspector.js +37 -1
- package/dist/components/InspectorPanel/ElementLibraryButton.js +3 -18
- package/dist/components/InspectorSequenceSection.js +1 -4
- package/dist/components/Menu/MenuSubItem.js +1 -1
- package/dist/components/ModalContainer.d.ts +1 -0
- package/dist/components/ModalContainer.js +2 -2
- package/dist/components/ModalHeader.js +5 -1
- package/dist/components/QuickSwitcher/asset-search.d.ts +0 -1
- package/dist/components/QuickSwitcher/asset-search.js +1 -16
- package/dist/components/RenderButton.js +2 -2
- package/dist/components/RenderModal/RenderStatusModal.js +7 -1
- package/dist/components/RenderModal/ServerRenderModal.js +1 -1
- package/dist/components/RenderModal/WebRenderModal.js +1 -1
- package/dist/components/RenderQueue/ClientRenderQueueProcessor.js +1 -1
- package/dist/components/SettingsModal.js +8 -5
- package/dist/components/TimeValue.js +36 -7
- package/dist/components/Timeline/Timeline.d.ts +1 -1
- package/dist/components/Timeline/Timeline.js +31 -19
- package/dist/components/Timeline/TimelineAssetField.d.ts +0 -1
- package/dist/components/Timeline/TimelineAssetField.js +16 -9
- package/dist/components/Timeline/TimelineCollapseToggle.js +1 -1
- package/dist/components/Timeline/TimelineFontWeightField.d.ts +11 -0
- package/dist/components/Timeline/TimelineFontWeightField.js +65 -0
- package/dist/components/Timeline/TimelineLayerChildren.d.ts +21 -0
- package/dist/components/Timeline/TimelineLayerChildren.js +129 -0
- package/dist/components/Timeline/TimelineNumberField.js +13 -5
- package/dist/components/Timeline/TimelinePrimitiveFieldValue.js +4 -0
- package/dist/components/Timeline/TimelineSequence.js +38 -32
- package/dist/components/Timeline/TimelineSequenceItem.js +2 -1
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.js +19 -7
- package/dist/components/Timeline/TimelineTickFormatProvider.d.ts +8 -0
- package/dist/components/Timeline/TimelineTickFormatProvider.js +16 -0
- package/dist/components/Timeline/TimelineTimeIndicators.js +7 -3
- package/dist/components/Timeline/TimelineVideoInfo.js +7 -3
- package/dist/components/Timeline/timeline-field-display-utils.js +1 -0
- package/dist/components/UpdateStatusContext.d.ts +5 -0
- package/dist/components/UpdateStatusContext.js +53 -2
- package/dist/components/UpdatesSettings.js +25 -4
- package/dist/components/WebMcp.js +26 -0
- package/dist/components/composition-selector-drag-data.d.ts +27 -0
- package/dist/components/composition-selector-drag-data.js +80 -0
- package/dist/components/import-assets.d.ts +2 -1
- package/dist/components/import-assets.js +11 -1
- package/dist/components/parse-caption-file.d.ts +5 -0
- package/dist/components/parse-caption-file.js +63 -0
- package/dist/esm/chunk-emw4k5b0.js +99527 -0
- package/dist/esm/{chunk-np6q13k5.js → chunk-vkrvnx2h.js} +5913 -4699
- package/dist/esm/index.mjs +23 -8
- package/dist/esm/internals.mjs +6729 -5366
- package/dist/esm/previewEntry.mjs +6779 -5416
- package/dist/esm/renderEntry.mjs +1 -1
- package/dist/helpers/get-preview-file-type.js +22 -3
- package/dist/helpers/inserted-element-selection.d.ts +2 -1
- package/dist/helpers/use-menu-structure.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/state/modals.d.ts +0 -2
- package/package.json +16 -16
package/dist/esm/index.mjs
CHANGED
|
@@ -556,8 +556,22 @@ var restartStudio = () => {
|
|
|
556
556
|
}
|
|
557
557
|
return callApi("/api/restart-studio", {});
|
|
558
558
|
};
|
|
559
|
-
// src/api/
|
|
559
|
+
// src/api/shut-down-studio.ts
|
|
560
560
|
import { getRemotionEnvironment as getRemotionEnvironment4 } from "remotion";
|
|
561
|
+
var shutDownStudio = () => {
|
|
562
|
+
if (!getRemotionEnvironment4().isStudio) {
|
|
563
|
+
throw new Error("shutDownStudio() is only available in the Studio");
|
|
564
|
+
}
|
|
565
|
+
if (getBrowserStudioOperations() !== null) {
|
|
566
|
+
throw new Error("shutDownStudio() is not supported in Browser Studio");
|
|
567
|
+
}
|
|
568
|
+
if (window.remotion_isReadOnlyStudio) {
|
|
569
|
+
throw new Error("shutDownStudio() is not available in read-only Studio");
|
|
570
|
+
}
|
|
571
|
+
return callApi("/api/shutdown-studio", {});
|
|
572
|
+
};
|
|
573
|
+
// src/api/save-default-props.ts
|
|
574
|
+
import { getRemotionEnvironment as getRemotionEnvironment5 } from "remotion";
|
|
561
575
|
|
|
562
576
|
// src/components/RenderModal/SchemaEditor/zod-schema-type.ts
|
|
563
577
|
var getZodDef = (schema) => {
|
|
@@ -862,7 +876,7 @@ var saveDefaultProps = async ({
|
|
|
862
876
|
compositionId,
|
|
863
877
|
defaultProps
|
|
864
878
|
}) => {
|
|
865
|
-
if (!
|
|
879
|
+
if (!getRemotionEnvironment5().isStudio) {
|
|
866
880
|
throw new Error("saveDefaultProps() is only available in the Studio");
|
|
867
881
|
}
|
|
868
882
|
if (window.remotion_isReadOnlyStudio) {
|
|
@@ -905,7 +919,7 @@ var toggle = (e) => {
|
|
|
905
919
|
// src/api/update-default-props.ts
|
|
906
920
|
var updateDefaultProps = saveDefaultProps;
|
|
907
921
|
// src/api/visual-control.ts
|
|
908
|
-
import { getRemotionEnvironment as
|
|
922
|
+
import { getRemotionEnvironment as getRemotionEnvironment6 } from "remotion";
|
|
909
923
|
|
|
910
924
|
// src/helpers/use-sync-external-store.ts
|
|
911
925
|
import { Internals as Internals8 } from "remotion";
|
|
@@ -978,7 +992,7 @@ var SetVisualControlsContext = createContext2({
|
|
|
978
992
|
// src/api/visual-control.ts
|
|
979
993
|
var visualControl = (key, value, schema) => {
|
|
980
994
|
useSyncExternalStore(visualControlStore.subscribe, visualControlStore.getSnapshot, visualControlStore.getSnapshot);
|
|
981
|
-
if (
|
|
995
|
+
if (getRemotionEnvironment6().isRendering) {
|
|
982
996
|
return value;
|
|
983
997
|
}
|
|
984
998
|
if (!visualControlRef.current) {
|
|
@@ -987,10 +1001,10 @@ var visualControl = (key, value, schema) => {
|
|
|
987
1001
|
return visualControlRef.current.globalVisualControl(key, value, schema);
|
|
988
1002
|
};
|
|
989
1003
|
// src/api/watch-public-folder.ts
|
|
990
|
-
import { getRemotionEnvironment as
|
|
1004
|
+
import { getRemotionEnvironment as getRemotionEnvironment7 } from "remotion";
|
|
991
1005
|
var WATCH_REMOTION_STATIC_FILES = "remotion_staticFilesChanged";
|
|
992
1006
|
var watchPublicFolder = (callback) => {
|
|
993
|
-
if (!
|
|
1007
|
+
if (!getRemotionEnvironment7().isStudio) {
|
|
994
1008
|
console.warn("The watchPublicFolder() API is only available while using the Remotion Studio.");
|
|
995
1009
|
return { cancel: () => {
|
|
996
1010
|
return;
|
|
@@ -1009,9 +1023,9 @@ var watchPublicFolder = (callback) => {
|
|
|
1009
1023
|
return { cancel };
|
|
1010
1024
|
};
|
|
1011
1025
|
// src/api/watch-static-file.ts
|
|
1012
|
-
import { getRemotionEnvironment as
|
|
1026
|
+
import { getRemotionEnvironment as getRemotionEnvironment8 } from "remotion";
|
|
1013
1027
|
var watchStaticFile = (fileName, callback) => {
|
|
1014
|
-
if (!
|
|
1028
|
+
if (!getRemotionEnvironment8().isStudio) {
|
|
1015
1029
|
console.warn("watchStaticFile() is only available while using the Remotion Studio.");
|
|
1016
1030
|
return { cancel: () => {
|
|
1017
1031
|
return;
|
|
@@ -1087,6 +1101,7 @@ export {
|
|
|
1087
1101
|
visualControl,
|
|
1088
1102
|
updateDefaultProps,
|
|
1089
1103
|
toggle,
|
|
1104
|
+
shutDownStudio,
|
|
1090
1105
|
seek,
|
|
1091
1106
|
saveDefaultProps,
|
|
1092
1107
|
restartStudio,
|