@remotion/studio 4.0.521 → 4.0.523
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/install-package.js +4 -2
- package/dist/components/AssetAudioVolume.d.ts +5 -0
- package/dist/components/AssetAudioVolume.js +33 -0
- package/dist/components/Canvas.js +5 -6
- package/dist/components/CanvasIfSizeIsAvailable.js +7 -0
- package/dist/components/CaptionInspector.js +74 -20
- package/dist/components/CheckboardToggle.js +8 -6
- package/dist/components/Checkbox.d.ts +1 -0
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/CompositionContextButton.js +4 -1
- package/dist/components/CompositionSelectorItem.js +2 -2
- package/dist/components/ConfigureLicenseModal.js +1 -1
- package/dist/components/CopyButton.js +7 -14
- package/dist/components/CurrentAsset.js +40 -6
- package/dist/components/Editor.js +6 -5
- package/dist/components/EditorContent.js +1 -1
- package/dist/components/EditorContexts.js +3 -1
- package/dist/components/ElementInstallConfirmation.js +290 -136
- package/dist/components/FixComputedValueModal.js +56 -16
- package/dist/components/FullscreenToggle.js +9 -8
- package/dist/components/GlobalKeybindings.js +50 -49
- package/dist/components/HighlightedElementSource.d.ts +5 -0
- package/dist/components/HighlightedElementSource.js +78 -0
- package/dist/components/InspectorLocationCopy.js +10 -5
- package/dist/components/InspectorPanel/MultiSequenceField.d.ts +12 -0
- package/dist/components/InspectorPanel/MultiSequenceField.js +131 -0
- package/dist/components/InspectorPanel/MultiSequenceInspector.d.ts +8 -0
- package/dist/components/InspectorPanel/MultiSequenceInspector.js +102 -0
- package/dist/components/InspectorPanel/MultiSequenceNumberField.d.ts +9 -0
- package/dist/components/InspectorPanel/MultiSequenceNumberField.js +88 -0
- package/dist/components/InspectorPanel.js +4 -0
- package/dist/components/InspectorSequenceSection.js +64 -1
- package/dist/components/InstallPackage.js +4 -5
- package/dist/components/KeyboardShortcutsSettings.js +212 -33
- package/dist/components/MenuBuildIndicator.js +7 -2
- package/dist/components/MenuCompositionName.js +62 -6
- package/dist/components/MenuToolbar.js +7 -5
- package/dist/components/ModalContainer.d.ts +1 -0
- package/dist/components/ModalContainer.js +2 -2
- package/dist/components/Modals.js +3 -1
- package/dist/components/ModelManager.d.ts +16 -0
- package/dist/components/ModelManager.js +200 -0
- package/dist/components/ModelsSettings.d.ts +2 -0
- package/dist/components/ModelsSettings.js +133 -0
- package/dist/components/NewComposition/DismissableModal.d.ts +1 -0
- package/dist/components/NewComposition/DismissableModal.js +2 -2
- package/dist/components/NewComposition/InputDragger.d.ts +2 -2
- package/dist/components/NewComposition/InputDragger.js +6 -6
- package/dist/components/NewComposition/NewFolder.js +11 -8
- package/dist/components/NewComposition/RenameFolder.js +17 -10
- package/dist/components/OptionalPackageModal.d.ts +11 -0
- package/dist/components/OptionalPackageModal.js +155 -0
- package/dist/components/PlayPause.js +4 -8
- package/dist/components/PlaybackKeyboardShortcutsManager.js +3 -6
- package/dist/components/PreviewToolbarOverflowButton.js +11 -2
- package/dist/components/QuickSwitcher/ExplorerQuickSwitcherTrigger.js +5 -2
- package/dist/components/RadioButton.d.ts +1 -0
- package/dist/components/RadioButton.js +2 -2
- package/dist/components/RenderButton.js +5 -1
- package/dist/components/RenderModal/CliCopyButton.js +13 -27
- package/dist/components/RenderModal/NumberSetting.d.ts +6 -1
- package/dist/components/RenderModal/NumberSetting.js +2 -2
- package/dist/components/RenderModal/RenderModalBasic.js +1 -1
- package/dist/components/RenderModal/RenderModalOutputName.d.ts +3 -1
- package/dist/components/RenderModal/RenderModalOutputName.js +4 -4
- package/dist/components/RenderModal/SeparateAudioOption.js +1 -1
- package/dist/components/RenderModal/WebRenderModalBasic.js +1 -1
- package/dist/components/RenderQueue/CaptionQueueItem.d.ts +6 -0
- package/dist/components/RenderQueue/CaptionQueueItem.js +129 -0
- package/dist/components/RenderQueue/CaptionQueueProcessor.d.ts +1 -0
- package/dist/components/RenderQueue/CaptionQueueProcessor.js +110 -0
- package/dist/components/RenderQueue/CaptionQueueProcessorLoader.d.ts +2 -0
- package/dist/components/RenderQueue/CaptionQueueProcessorLoader.js +54 -0
- package/dist/components/RenderQueue/RenderQueueCopyToClipboard.js +7 -4
- package/dist/components/RenderQueue/RenderQueueItem.js +3 -3
- package/dist/components/RenderQueue/VideoMattingQueueItem.d.ts +6 -0
- package/dist/components/RenderQueue/VideoMattingQueueItem.js +129 -0
- package/dist/components/RenderQueue/VideoMattingQueueProcessor.d.ts +1 -0
- package/dist/components/RenderQueue/VideoMattingQueueProcessor.js +105 -0
- package/dist/components/RenderQueue/VideoMattingQueueProcessorLoader.d.ts +2 -0
- package/dist/components/RenderQueue/VideoMattingQueueProcessorLoader.js +54 -0
- package/dist/components/RenderQueue/caption-job-types.d.ts +47 -0
- package/dist/components/RenderQueue/caption-job-types.js +7 -0
- package/dist/components/RenderQueue/context.d.ts +16 -0
- package/dist/components/RenderQueue/context.js +224 -11
- package/dist/components/RenderQueue/index.js +34 -10
- package/dist/components/RenderQueue/item-style.d.ts +1 -0
- package/dist/components/RenderQueue/item-style.js +2 -1
- package/dist/components/RenderQueue/load-model-for-job.d.ts +11 -0
- package/dist/components/RenderQueue/load-model-for-job.js +14 -0
- package/dist/components/RenderQueue/video-matting-job-types.d.ts +38 -0
- package/dist/components/RenderQueue/video-matting-job-types.js +5 -0
- package/dist/components/RendersTab.js +4 -4
- package/dist/components/SegmentedControl.d.ts +2 -2
- package/dist/components/SegmentedControl.js +38 -13
- package/dist/components/SelectedOutlinePolygon.js +8 -2
- package/dist/components/SettingsButton.d.ts +4 -0
- package/dist/components/SettingsButton.js +49 -0
- package/dist/components/SettingsModal.d.ts +1 -1
- package/dist/components/SettingsModal.js +3 -1
- package/dist/components/ShowOutlinesProvider.js +12 -0
- package/dist/components/SidebarCollapserControls.js +21 -16
- package/dist/components/SizeSelector.js +10 -2
- package/dist/components/SkillsSettings.js +11 -8
- package/dist/components/SnappingToggle.js +5 -2
- package/dist/components/Splitter/SplitterContainer.js +63 -10
- package/dist/components/Splitter/SplitterContext.d.ts +3 -0
- package/dist/components/Splitter/SplitterContext.js +5 -1
- package/dist/components/Splitter/SplitterElement.js +11 -2
- package/dist/components/Splitter/SplitterHandle.d.ts +1 -0
- package/dist/components/Splitter/SplitterHandle.js +55 -25
- package/dist/components/Tabs/vertical.d.ts +1 -0
- package/dist/components/Tabs/vertical.js +2 -2
- package/dist/components/TimeValue.js +2 -3
- package/dist/components/Timeline/SequencePropsObserver.js +4 -0
- package/dist/components/Timeline/SubscribeToNodePaths.d.ts +2 -1
- package/dist/components/Timeline/SubscribeToNodePaths.js +2 -1
- package/dist/components/Timeline/Timeline.js +17 -46
- package/dist/components/Timeline/TimelineClipboardKeybindings.js +2 -4
- package/dist/components/Timeline/TimelineDeleteKeybindings.js +3 -18
- package/dist/components/Timeline/TimelineDragHandler.js +11 -6
- package/dist/components/Timeline/TimelineExpandedKeyframeRow.js +1 -0
- package/dist/components/Timeline/TimelinePinchZoom.js +6 -30
- package/dist/components/Timeline/TimelinePlayCursorSyncer.js +1 -7
- package/dist/components/Timeline/TimelineRowChrome.js +11 -3
- package/dist/components/Timeline/TimelineSchemaField.js +8 -4
- package/dist/components/Timeline/TimelineSelection.d.ts +2 -0
- package/dist/components/Timeline/TimelineSelection.js +55 -2
- package/dist/components/Timeline/TimelineSequence.js +148 -25
- package/dist/components/Timeline/TimelineSequenceItem.d.ts +0 -1
- package/dist/components/Timeline/TimelineSequenceItem.js +220 -112
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.d.ts +35 -5
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.js +233 -138
- package/dist/components/Timeline/TimelineSlider.js +1 -4
- package/dist/components/Timeline/TimelineTimeIndicators.js +1 -0
- package/dist/components/Timeline/TimelineWidthProvider.js +2 -5
- package/dist/components/Timeline/TimelineZoomControls.js +20 -20
- package/dist/components/Timeline/get-sequence-split-menu-item.d.ts +11 -0
- package/dist/components/Timeline/get-sequence-split-menu-item.js +55 -0
- package/dist/components/Timeline/use-asset-timeline-context-menu.d.ts +2 -0
- package/dist/components/Timeline/use-asset-timeline-context-menu.js +52 -0
- package/dist/components/Timeline/use-sequence-props-subscription.d.ts +3 -2
- package/dist/components/Timeline/use-sequence-props-subscription.js +4 -10
- package/dist/components/TimelineInOutToggle.js +20 -17
- package/dist/components/TopPanel.js +3 -19
- package/dist/components/Transcription/LazyModels.d.ts +1 -0
- package/dist/components/Transcription/LazyModels.js +5 -0
- package/dist/components/Transcription/Models.d.ts +6 -0
- package/dist/components/Transcription/Models.js +18 -0
- package/dist/components/Transcription/TranscriptionModal.d.ts +3 -0
- package/dist/components/Transcription/TranscriptionModal.js +428 -0
- package/dist/components/Transcription/TranscriptionModalWithOptionalWhisper.d.ts +5 -0
- package/dist/components/Transcription/TranscriptionModalWithOptionalWhisper.js +48 -0
- package/dist/components/Transcription/caption-output-name.d.ts +2 -0
- package/dist/components/Transcription/caption-output-name.js +10 -0
- package/dist/components/Transcription/resample-media-to-16-khz.d.ts +6 -0
- package/dist/components/Transcription/resample-media-to-16-khz.js +82 -0
- package/dist/components/Transcription/whisper-languages.d.ts +2 -0
- package/dist/components/Transcription/whisper-languages.js +104 -0
- package/dist/components/Transcription/whisper-webgpu-capability.d.ts +2 -0
- package/dist/components/Transcription/whisper-webgpu-capability.js +7 -0
- package/dist/components/UndoRedoButtons.js +13 -38
- package/dist/components/UpdatesSettings.js +17 -17
- package/dist/components/VideoMatting/LazyModels.d.ts +1 -0
- package/dist/components/VideoMatting/LazyModels.js +5 -0
- package/dist/components/VideoMatting/Models.d.ts +6 -0
- package/dist/components/VideoMatting/Models.js +18 -0
- package/dist/components/VideoMatting/VideoMattingModal.d.ts +3 -0
- package/dist/components/VideoMatting/VideoMattingModal.js +207 -0
- package/dist/components/VideoMatting/VideoMattingModalWithOptionalPackage.d.ts +5 -0
- package/dist/components/VideoMatting/VideoMattingModalWithOptionalPackage.js +46 -0
- package/dist/components/VideoMatting/video-matting-capability.d.ts +2 -0
- package/dist/components/VideoMatting/video-matting-capability.js +7 -0
- package/dist/components/WebMcp.js +439 -22
- package/dist/components/ZoomPersistor.js +6 -3
- package/dist/components/composition-menu-items.js +1 -1
- package/dist/components/import-assets.d.ts +3 -2
- package/dist/components/import-assets.js +5 -9
- package/dist/components/keyboard-shortcuts.d.ts +17 -1
- package/dist/components/keyboard-shortcuts.js +177 -89
- package/dist/components/public-output-name.d.ts +5 -0
- package/dist/components/public-output-name.js +60 -0
- package/dist/components/use-model-cache-status.d.ts +7 -0
- package/dist/components/use-model-cache-status.js +35 -0
- package/dist/esm/CaptionQueueProcessor-k0yrm3dj.mjs +211 -0
- package/dist/esm/HighlightedElementSource-jfc66k4p.mjs +1236 -0
- package/dist/esm/LazyModels-2trdm224.mjs +11 -0
- package/dist/esm/LazyModels-fjb5ckaq.mjs +11 -0
- package/dist/esm/TranscriptionModal-916jqhry.mjs +1011 -0
- package/dist/esm/VideoMattingModal-2tm79s9b.mjs +374 -0
- package/dist/esm/VideoMattingQueueProcessor-t1hgm2rm.mjs +109 -0
- package/dist/esm/index-1x7bsdh6.mjs +261 -0
- package/dist/esm/index-3hgr6gjx.mjs +41 -0
- package/dist/esm/index-5qddp5h7.mjs +36 -0
- package/dist/esm/index-5zrb1ft4.mjs +39 -0
- package/dist/esm/index-6cvm9a65.mjs +45923 -0
- package/dist/esm/index-7tt71e8n.mjs +36 -0
- package/dist/esm/index-9x6e1dq0.mjs +428 -0
- package/dist/esm/index-cw0pnpg5.mjs +50 -0
- package/dist/esm/index-czwvnn9g.mjs +35 -0
- package/dist/esm/index-hy4xcgty.mjs +1366 -0
- package/dist/esm/{chunk-je0h1bgt.js → index-jg13hf2g.mjs} +3 -1
- package/dist/esm/{chunk-6jf1natv.js → index-rcv7qkt5.mjs} +18 -1
- package/dist/esm/index-sgtmgc4h.mjs +423 -0
- package/dist/esm/index-te66vvrp.mjs +142 -0
- package/dist/esm/index-v4tr1bft.mjs +20 -0
- package/dist/esm/index-x7t2y7ws.mjs +54194 -0
- package/dist/esm/index-xhe2m2qr.mjs +1146 -0
- package/dist/esm/index.mjs +45 -933
- package/dist/esm/internals.mjs +13 -114127
- package/dist/esm/previewEntry.mjs +387 -114784
- package/dist/esm/renderEntry.mjs +3 -3
- package/dist/esm/{chunk-m0jqdbkr.js → resolve-composition-component-location-14148845.mjs} +1 -1
- package/dist/helpers/copy-text.js +1 -2
- package/dist/helpers/drag-aware-double-click.d.ts +2 -1
- package/dist/helpers/drag-aware-double-click.js +12 -1
- package/dist/helpers/get-asset-metadata.d.ts +1 -0
- package/dist/helpers/get-asset-metadata.js +4 -0
- package/dist/helpers/hoverable.js +8 -0
- package/dist/helpers/inject-css.js +2 -0
- package/dist/helpers/optional-package-dependencies.d.ts +3 -0
- package/dist/helpers/optional-package-dependencies.js +24 -0
- package/dist/helpers/pointer-session.d.ts +6 -0
- package/dist/helpers/pointer-session.js +36 -14
- package/dist/helpers/prism-tomorrow.d.ts +1 -0
- package/dist/helpers/prism-tomorrow.js +151 -0
- package/dist/helpers/sequence-node-path-mutations.js +11 -0
- package/dist/helpers/slugify-name.d.ts +1 -0
- package/dist/helpers/slugify-name.js +14 -0
- package/dist/helpers/studio-runtime-config.d.ts +1 -0
- package/dist/helpers/studio-runtime-config.js +6 -1
- package/dist/helpers/use-copy-feedback.d.ts +4 -0
- package/dist/helpers/use-copy-feedback.js +19 -0
- package/dist/helpers/use-keybinding.d.ts +9 -3
- package/dist/helpers/use-keybinding.js +8 -9
- package/dist/helpers/use-keyboard-shortcut-label.d.ts +2 -0
- package/dist/helpers/use-keyboard-shortcut-label.js +15 -0
- package/dist/helpers/use-menu-structure.js +58 -13
- package/dist/icons/copy.d.ts +5 -0
- package/dist/icons/copy.js +12 -0
- package/dist/icons/input-props.d.ts +1 -1
- package/dist/icons/input-props.js +2 -2
- package/dist/icons/models.d.ts +4 -0
- package/dist/icons/models.js +7 -0
- package/dist/icons/separation.d.ts +4 -0
- package/dist/icons/separation.js +7 -0
- package/dist/icons/transcription.d.ts +4 -0
- package/dist/icons/transcription.js +7 -0
- package/dist/icons/upload.js +1 -1
- package/dist/state/canvas-ref.d.ts +1 -0
- package/dist/state/canvas-ref.js +2 -1
- package/dist/state/modals.d.ts +14 -2
- package/dist/state/sidebar.d.ts +3 -0
- package/dist/state/sidebar.js +6 -1
- package/dist/state/timeline-zoom.d.ts +1 -1
- package/dist/state/timeline-zoom.js +3 -3
- package/dist/visual-controls/VisualControls.js +4 -0
- package/package.json +34 -20
- package/dist/components/UpdateCheck.d.ts +0 -1
- package/dist/components/UpdateCheck.js +0 -79
- package/dist/esm/chunk-emw4k5b0.js +0 -99527
- package/dist/esm/chunk-vkrvnx2h.js +0 -99378
- package/dist/helpers/use-max-media-duration.d.ts +0 -2
- package/dist/helpers/use-max-media-duration.js +0 -61
package/dist/esm/index.mjs
CHANGED
|
@@ -1,26 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
pause,
|
|
3
|
+
play,
|
|
4
|
+
restartStudio,
|
|
5
|
+
seek
|
|
6
|
+
} from "./index-3hgr6gjx.mjs";
|
|
7
|
+
import {
|
|
8
|
+
CodingAgentIcon,
|
|
9
|
+
DEFAULT_PROPS_PATH_ACTIVE_CLASSNAME,
|
|
10
|
+
DEFAULT_PROPS_PATH_CLASSNAME,
|
|
11
|
+
EditorIcon,
|
|
12
|
+
FinderIcon,
|
|
13
|
+
TerminalIcon,
|
|
14
|
+
callUpdateDefaultPropsApi,
|
|
15
|
+
deleteStaticFile,
|
|
16
|
+
extractEnumJsonPaths,
|
|
17
|
+
getStaticFiles,
|
|
18
|
+
shutDownStudio,
|
|
19
|
+
useSyncExternalStore,
|
|
20
|
+
visualControlRef,
|
|
21
|
+
visualControlStore,
|
|
22
|
+
watchPublicFolder
|
|
23
|
+
} from "./index-hy4xcgty.mjs";
|
|
24
|
+
import {
|
|
25
|
+
getBrowserStudioOperations,
|
|
26
|
+
writeStaticFile
|
|
27
|
+
} from "./index-cw0pnpg5.mjs";
|
|
28
|
+
import"./index-5zrb1ft4.mjs";
|
|
29
|
+
import"./index-jg13hf2g.mjs";
|
|
30
|
+
import {
|
|
31
|
+
__require,
|
|
32
|
+
__toESM
|
|
33
|
+
} from "./index-rcv7qkt5.mjs";
|
|
24
34
|
|
|
25
35
|
// src/api/create-composition.tsx
|
|
26
36
|
import { Composition, Still } from "remotion";
|
|
@@ -39,413 +49,6 @@ var createStill = ({
|
|
|
39
49
|
...other
|
|
40
50
|
});
|
|
41
51
|
};
|
|
42
|
-
|
|
43
|
-
// src/helpers/colors.ts
|
|
44
|
-
var BLACK = "black";
|
|
45
|
-
var WHITE = "white";
|
|
46
|
-
var TRANSPARENT = "transparent";
|
|
47
|
-
var CURRENT_COLOR = "currentColor";
|
|
48
|
-
var CURRENT_COLOR_LOWERCASE = "currentcolor";
|
|
49
|
-
var WHITE_HEX = "#fff";
|
|
50
|
-
var BLACK_HEX = "#000";
|
|
51
|
-
var WHITE_ALPHA_10 = "rgba(255, 255, 255, 0.1)";
|
|
52
|
-
var WHITE_ALPHA_12 = "rgba(255, 255, 255, 0.12)";
|
|
53
|
-
var WHITE_ALPHA_20 = "rgba(255, 255, 255, 0.2)";
|
|
54
|
-
var BLACK_ALPHA_10 = "rgba(0, 0, 0, 0.1)";
|
|
55
|
-
var BLACK_ALPHA_28 = "rgba(0, 0, 0, 0.28)";
|
|
56
|
-
var BLACK_ALPHA_40 = "rgba(0, 0, 0, 0.4)";
|
|
57
|
-
var BLACK_ALPHA_50 = "rgba(0, 0, 0, 0.5)";
|
|
58
|
-
var BLACK_ALPHA_60 = "rgba(0, 0, 0, 0.6)";
|
|
59
|
-
var BLACK_ALPHA_80 = "rgba(0, 0, 0, 0.8)";
|
|
60
|
-
var BLACK_ALPHA_90 = "rgba(0, 0, 0, 0.9)";
|
|
61
|
-
var BLACK_OPAQUE = "rgba(0, 0, 0, 1)";
|
|
62
|
-
var TIMELINE_DROP_BLUE_ALPHA_75 = "rgba(0, 155, 255, 0.75)";
|
|
63
|
-
var TIMELINE_MARQUEE_BLUE_ALPHA_75 = "rgba(70, 130, 255, 0.75)";
|
|
64
|
-
var BORDER_BLACK = `1px solid ${BLACK_HEX}`;
|
|
65
|
-
var BORDER_WHITE = `1px solid ${WHITE_HEX}`;
|
|
66
|
-
var BORDER_WHITE_2PX = `2px solid ${WHITE_HEX}`;
|
|
67
|
-
var BORDER_CURRENT_COLOR = `1px solid ${CURRENT_COLOR}`;
|
|
68
|
-
var BORDER_TRANSPARENT_2PX = `2px solid ${TRANSPARENT}`;
|
|
69
|
-
var BORDER_BLACK_ALPHA_50 = `1px solid ${BLACK_ALPHA_50}`;
|
|
70
|
-
var BORDER_BLACK_ALPHA_60 = `1px solid ${BLACK_ALPHA_60}`;
|
|
71
|
-
var BORDER_WHITE_ALPHA_12 = `1px solid ${WHITE_ALPHA_12}`;
|
|
72
|
-
var BORDER_WHITE_ALPHA_20 = `1px solid ${WHITE_ALPHA_20}`;
|
|
73
|
-
var BORDER_TIMELINE_DROP_BLUE = `1px solid ${TIMELINE_DROP_BLUE_ALPHA_75}`;
|
|
74
|
-
var BORDER_TIMELINE_MARQUEE_BLUE = `1px solid ${TIMELINE_MARQUEE_BLUE_ALPHA_75}`;
|
|
75
|
-
var SHADOW_BLACK = `0 0 4px ${BLACK}`;
|
|
76
|
-
var SHADOW_BLACK_ALPHA_50_TOWARDS_BOTTOM = `0 2px 8px ${BLACK_ALPHA_50}`;
|
|
77
|
-
var SHADOW_BLACK_ALPHA_50_TOWARDS_TOP = `0 -2px 8px ${BLACK_ALPHA_50}`;
|
|
78
|
-
var NOTIFICATION_SHADOW = `0 2px 3px ${BLACK_OPAQUE}`;
|
|
79
|
-
var SERVER_DISCONNECTED_SHADOW = `0 2px 4px ${BLACK_ALPHA_40}`;
|
|
80
|
-
var COLOR_PICKER_POPUP_SHADOW = `0 4px 16px ${BLACK_ALPHA_50}`;
|
|
81
|
-
var COLOR_PICKER_HANDLE_SHADOW = `0 0 0 1px ${BLACK_ALPHA_60}`;
|
|
82
|
-
var NOTIFICATION_BORDER = `0.25px solid ${WHITE_ALPHA_10}`;
|
|
83
|
-
var FOCUS_BOX_SHADOW = `inset 1px 1px #555, inset -1px -1px #555, ` + `inset 1px -1px #555, inset -1px 1px #555`;
|
|
84
|
-
var CHECKERBOARD_BACKGROUND_IMAGE = `
|
|
85
|
-
linear-gradient(
|
|
86
|
-
45deg,
|
|
87
|
-
${BLACK_ALPHA_10} 25%,
|
|
88
|
-
${TRANSPARENT} 25%
|
|
89
|
-
),
|
|
90
|
-
linear-gradient(135deg, ${BLACK_ALPHA_10} 25%, ${TRANSPARENT} 25%),
|
|
91
|
-
linear-gradient(45deg, ${TRANSPARENT} 75%, ${BLACK_ALPHA_10} 75%),
|
|
92
|
-
linear-gradient(135deg, ${TRANSPARENT} 75%, ${BLACK_ALPHA_10} 75%)
|
|
93
|
-
`;
|
|
94
|
-
var COLOR_PICKER_CHECKER_BACKGROUND_IMAGE = `linear-gradient(45deg, #888 25%, ${TRANSPARENT} 25%), ` + `linear-gradient(-45deg, #888 25%, ${TRANSPARENT} 25%), ` + `linear-gradient(45deg, ${TRANSPARENT} 75%, #888 75%), ` + `linear-gradient(-45deg, ${TRANSPARENT} 75%, #888 75%)`;
|
|
95
|
-
var COLOR_PICKER_SATURATION_VALUE_GRADIENT = `linear-gradient(to right, ${WHITE_HEX}, ${TRANSPARENT})`;
|
|
96
|
-
var COLOR_PICKER_SATURATION_BLACK_GRADIENT = `linear-gradient(to top, ${BLACK_HEX}, ${TRANSPARENT})`;
|
|
97
|
-
var ERROR_MESSAGE_MASK_IMAGE = `linear-gradient(to bottom, ${WHITE} 60%, ${TRANSPARENT})`;
|
|
98
|
-
var SELECTED_OUTLINE_DROP_SHADOW = `drop-shadow(0 0 1px ${WHITE_ALPHA_20})`;
|
|
99
|
-
var SELECTED_OUTLINE_UV_DROP_SHADOW = `drop-shadow(0 1px 2px ${BLACK_ALPHA_28})`;
|
|
100
|
-
var LOOPED_INDICATOR_DROP_SHADOW = `drop-shadow(0 0 2px ${BLACK_ALPHA_90}) ` + `drop-shadow(0 1px 2px ${BLACK_ALPHA_80})`;
|
|
101
|
-
|
|
102
|
-
// src/icons/apps.tsx
|
|
103
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
104
|
-
var AppsIcon = ({ color, ...props }) => /* @__PURE__ */ jsx2("svg", {
|
|
105
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
106
|
-
viewBox: "0 0 640 640",
|
|
107
|
-
...props,
|
|
108
|
-
children: /* @__PURE__ */ jsx2("path", {
|
|
109
|
-
fill: color ?? CURRENT_COLOR_LOWERCASE,
|
|
110
|
-
d: "M144 128C135.2 128 128 135.2 128 144L128 240C128 248.8 135.2 256 144 256L240 256C248.8 256 256 248.8 256 240L256 144C256 135.2 248.8 128 240 128L144 128zM96 144C96 117.5 117.5 96 144 96L240 96C266.5 96 288 117.5 288 144L288 240C288 266.5 266.5 288 240 288L144 288C117.5 288 96 266.5 96 240L96 144zM144 384C135.2 384 128 391.2 128 400L128 496C128 504.8 135.2 512 144 512L240 512C248.8 512 256 504.8 256 496L256 400C256 391.2 248.8 384 240 384L144 384zM96 400C96 373.5 117.5 352 144 352L240 352C266.5 352 288 373.5 288 400L288 496C288 522.5 266.5 544 240 544L144 544C117.5 544 96 522.5 96 496L96 400zM496 128L400 128C391.2 128 384 135.2 384 144L384 240C384 248.8 391.2 256 400 256L496 256C504.8 256 512 248.8 512 240L512 144C512 135.2 504.8 128 496 128zM400 96L496 96C522.5 96 544 117.5 544 144L544 240C544 266.5 522.5 288 496 288L400 288C373.5 288 352 266.5 352 240L352 144C352 117.5 373.5 96 400 96zM400 384C391.2 384 384 391.2 384 400L384 496C384 504.8 391.2 512 400 512L496 512C504.8 512 512 504.8 512 496L512 400C512 391.2 504.8 384 496 384L400 384zM352 400C352 373.5 373.5 352 400 352L496 352C522.5 352 544 373.5 544 400L544 496C544 522.5 522.5 544 496 544L400 544C373.5 544 352 522.5 352 496L352 400z"
|
|
111
|
-
})
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
// src/components/CodingAgentIcon.tsx
|
|
115
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
116
|
-
var CodingAgentIcon = ({ codingAgentId, size }) => {
|
|
117
|
-
if (codingAgentId === null) {
|
|
118
|
-
return /* @__PURE__ */ jsx3(AppsIcon, {
|
|
119
|
-
height: size,
|
|
120
|
-
width: size
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
return /* @__PURE__ */ jsx3("img", {
|
|
124
|
-
alt: "",
|
|
125
|
-
"aria-hidden": true,
|
|
126
|
-
"data-coding-agent-icon": codingAgentId,
|
|
127
|
-
draggable: false,
|
|
128
|
-
src: `/api/app-icon/coding-agent/${codingAgentId}.png`,
|
|
129
|
-
style: { flexShrink: 0, height: size, width: size }
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
// src/icons/custom-editor.tsx
|
|
134
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
135
|
-
var CustomEditorIcon = ({
|
|
136
|
-
size: sizeProp
|
|
137
|
-
}) => /* @__PURE__ */ jsx4("svg", {
|
|
138
|
-
focusable: "false",
|
|
139
|
-
role: "img",
|
|
140
|
-
viewBox: "0 0 24 24",
|
|
141
|
-
style: {
|
|
142
|
-
width: sizeProp ?? 14,
|
|
143
|
-
height: sizeProp ?? 14,
|
|
144
|
-
flexShrink: 0
|
|
145
|
-
},
|
|
146
|
-
children: /* @__PURE__ */ jsx4("path", {
|
|
147
|
-
fill: "none",
|
|
148
|
-
stroke: CURRENT_COLOR,
|
|
149
|
-
strokeLinecap: "round",
|
|
150
|
-
strokeLinejoin: "round",
|
|
151
|
-
strokeWidth: "1.8",
|
|
152
|
-
d: "m8 8-4 4 4 4m8-8 4 4-4 4m-2-10-4 12"
|
|
153
|
-
})
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
// src/icons/editor.tsx
|
|
157
|
-
import { jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
158
|
-
var iconStyle = (size) => ({
|
|
159
|
-
flexShrink: 0,
|
|
160
|
-
height: size,
|
|
161
|
-
width: size
|
|
162
|
-
});
|
|
163
|
-
var VsCodeIcon = ({ size }) => /* @__PURE__ */ jsx5("svg", {
|
|
164
|
-
viewBox: "0 0 40 40",
|
|
165
|
-
style: iconStyle(size),
|
|
166
|
-
"aria-hidden": true,
|
|
167
|
-
children: /* @__PURE__ */ jsx5("path", {
|
|
168
|
-
fill: "#23A9F2",
|
|
169
|
-
fillRule: "evenodd",
|
|
170
|
-
clipRule: "evenodd",
|
|
171
|
-
d: "M26.02 34.13c.23.09.48.13.72.12.25-.01.49-.07.71-.18l5.93-2.85c.31-.15.56-.38.74-.66.18-.29.28-.62.28-.96V10.25c0-.34-.1-.67-.28-.96-.18-.28-.43-.51-.74-.66l-5.93-2.85c-.34-.16-.71-.22-1.08-.15-.36.06-.7.23-.96.5L14.05 16.48 9.11 12.73a1.2 1.2 0 0 0-1.53.07L5.99 14.24a1.2 1.2 0 0 0 0 1.77l4.29 3.92-4.29 3.91a1.2 1.2 0 0 0 0 1.77l1.59 1.44a1.2 1.2 0 0 0 1.53.07l4.94-3.75 11.36 10.36c.17.17.38.31.61.4Zm1.18-20.74-8.61 6.54 8.61 6.53V13.39Z"
|
|
172
|
-
})
|
|
173
|
-
});
|
|
174
|
-
var CursorIcon = ({ size }) => /* @__PURE__ */ jsxs("svg", {
|
|
175
|
-
viewBox: "0 0 40 40",
|
|
176
|
-
style: iconStyle(size),
|
|
177
|
-
"aria-hidden": true,
|
|
178
|
-
children: [
|
|
179
|
-
/* @__PURE__ */ jsx5("rect", {
|
|
180
|
-
x: "4",
|
|
181
|
-
y: "4",
|
|
182
|
-
width: "32",
|
|
183
|
-
height: "32",
|
|
184
|
-
rx: "7.625",
|
|
185
|
-
fill: "#050505"
|
|
186
|
-
}),
|
|
187
|
-
/* @__PURE__ */ jsx5("path", {
|
|
188
|
-
fill: "#fff",
|
|
189
|
-
d: "m29.62 14.21-8.67-5.09a.89.89 0 0 0-.9 0l-8.67 5.09a.77.77 0 0 0-.38.66v10.26c0 .27.14.52.38.66l8.67 5.09c.28.16.62.16.9 0l8.67-5.09c.24-.14.38-.39.38-.66V14.87a.77.77 0 0 0-.38-.66Zm-.54 1.07L20.7 30.01a.11.11 0 0 1-.2-.06v-9.64c0-.19-.1-.37-.27-.47l-8.22-4.82a.11.11 0 0 1 .06-.21h16.74c.24 0 .39.27.27.47Z"
|
|
190
|
-
})
|
|
191
|
-
]
|
|
192
|
-
});
|
|
193
|
-
var WindsurfIcon = ({ size }) => /* @__PURE__ */ jsx5("svg", {
|
|
194
|
-
viewBox: "0 0 24 24",
|
|
195
|
-
style: iconStyle(size),
|
|
196
|
-
"aria-hidden": true,
|
|
197
|
-
children: /* @__PURE__ */ jsx5("path", {
|
|
198
|
-
fill: CURRENT_COLOR,
|
|
199
|
-
d: "M23.55 5.07a2.18 2.18 0 0 0-2.18 2.17v4.87c0 .97-.8 1.76-1.76 1.76-.57 0-1.14-.29-1.47-.77l-4.97-7.1a2.21 2.21 0 0 0-3.96 1.22v4.89c0 .97-.8 1.76-1.77 1.76-.57 0-1.13-.29-1.47-.77L.41 5.16A.22.22 0 0 0 0 5.29v4.24c0 .22.07.43.19.6l5.47 7.82c.33.46.8.81 1.35.93a2.15 2.15 0 0 0 2.65-2.1v-4.89c0-.97.79-1.76 1.76-1.76.57 0 1.14.29 1.47.77l4.98 7.1c.41.59 1.05.94 1.81.94a2.15 2.15 0 0 0 2.15-2.16v-4.89c0-.97.79-1.76 1.76-1.76h.19a.22.22 0 0 0 .22-.22V5.29a.22.22 0 0 0-.22-.22h-.23Z"
|
|
200
|
-
})
|
|
201
|
-
});
|
|
202
|
-
var ZedIcon = ({ size }) => /* @__PURE__ */ jsx5("svg", {
|
|
203
|
-
viewBox: "0 0 40 40",
|
|
204
|
-
style: iconStyle(size),
|
|
205
|
-
"aria-hidden": true,
|
|
206
|
-
children: /* @__PURE__ */ jsx5("path", {
|
|
207
|
-
fill: CURRENT_COLOR,
|
|
208
|
-
fillRule: "evenodd",
|
|
209
|
-
clipRule: "evenodd",
|
|
210
|
-
d: "M8.3 7.4a.9.9 0 0 0-.9.9v19.8H5.6V8.3a2.7 2.7 0 0 1 2.7-2.7h24.11c1.2 0 1.81 1.45.96 2.3L18.52 22.76h4.18V20.9h1.8v2.31c0 .75-.6 1.35-1.35 1.35h-6.43l-3.1 3.09h14.03V16.4h1.8v11.25c0 1-.8 1.8-1.8 1.8H11.82L8.67 32.6H31.7a.9.9 0 0 0 .9-.9V11.9h1.8v19.8a2.7 2.7 0 0 1-2.7 2.7H7.59c-1.2 0-1.81-1.45-.96-2.31L21.43 17.3H17.3v1.8h-1.8v-2.25c0-.75.6-1.35 1.35-1.35h6.38l3.15-3.15H12.35V23.6h-1.8V12.35c0-1 .8-1.8 1.8-1.8h15.83l3.15-3.15H8.3Z"
|
|
211
|
-
})
|
|
212
|
-
});
|
|
213
|
-
var VscodiumIcon = ({ size }) => /* @__PURE__ */ jsx5("svg", {
|
|
214
|
-
viewBox: "0 0 24 24",
|
|
215
|
-
style: iconStyle(size),
|
|
216
|
-
"aria-hidden": true,
|
|
217
|
-
children: /* @__PURE__ */ jsx5("path", {
|
|
218
|
-
fill: "#2F80ED",
|
|
219
|
-
d: "M11.58.54a1.47 1.47 0 0 0-.44 2.03c2.43 3.76 3 6.6 2.75 9.08-1 4.75-3.18 5.72-5.09 5.72-1.86 0-1.36-3.07.03-3.96a5.3 5.3 0 0 1 2.73-.87 1.47 1.47 0 1 0 0-2.94c-.96 0-1.9.21-2.78.55.18-.85.25-1.76.02-2.74-.36-1.47-1.37-2.88-3.13-4.25a1.47 1.47 0 0 0-1.81 2.32c1.43 1.11 1.9 1.94 2.07 2.62.16.68.03 1.4-.3 2.4-.41 1.35-.9 2.56-1.1 3.71-.11.57-.12 1.19-.15 1.68-1.03-1-1.43-2.34-1.43-4.28a1.47 1.47 0 1 0-2.95 0c0 2.66.78 5.18 2.86 6.87 1.88 1.79 6.67 1.13 6.67 4.01 0 .81 1.19 1.21 2 1.21.84 0 1.89-.56 1.89-1.21 0-3.27 3.44-5.25 9.11-5.24A1.47 1.47 0 1 0 22.53 14.3c-.39 0-.77.01-1.14.03.64-1.49.92-3.13.86-4.9a1.47 1.47 0 1 0-2.95.1c.08 2.32-.01 4.39-1.74 5.48-.49.31-1.06.58-1.6.58.42-1.14.74-2.35.87-3.65.08-.83.09-1.82 0-2.59-.15-1.18-.33-2.53.12-3.55.4-.87 1.31-1.24 2.65-1.24a1.47 1.47 0 1 0 0-2.94c-1.98 0-3.48 1.04-4.34 2.3-.44-.95-.98-1.93-1.64-2.94a1.47 1.47 0 0 0-2.04-.44Z"
|
|
220
|
-
})
|
|
221
|
-
});
|
|
222
|
-
var WebStormIcon = ({ size }) => /* @__PURE__ */ jsxs("svg", {
|
|
223
|
-
viewBox: "0 0 24 24",
|
|
224
|
-
style: iconStyle(size),
|
|
225
|
-
"aria-hidden": true,
|
|
226
|
-
children: [
|
|
227
|
-
/* @__PURE__ */ jsx5("rect", {
|
|
228
|
-
width: "24",
|
|
229
|
-
height: "24",
|
|
230
|
-
rx: "3",
|
|
231
|
-
fill: "#07C3F2"
|
|
232
|
-
}),
|
|
233
|
-
/* @__PURE__ */ jsx5("path", {
|
|
234
|
-
fill: "#050505",
|
|
235
|
-
d: "M3 3h18v18H3z"
|
|
236
|
-
}),
|
|
237
|
-
/* @__PURE__ */ jsx5("path", {
|
|
238
|
-
fill: "#fff",
|
|
239
|
-
d: "M4.8 5.4h2.1l1.3 4.9 1.4-4.9h1.6l1.4 4.9 1.3-4.9h2.1l-2.5 8.7h-1.8l-1.3-4.8-1.4 4.8H7.3L4.8 5.4Zm10.8 7.3 1.1-1.4c.8.6 1.6 1 2.5 1 .7 0 1.2-.3 1.2-.8 0-.5-.3-.7-1.7-1.1-1.7-.4-2.8-.9-2.8-2.6 0-1.6 1.3-2.6 3-2.6 1.2 0 2.3.4 3.2 1.1l-1 1.5c-.8-.5-1.5-.8-2.2-.8-.7 0-1.1.3-1.1.7 0 .6.4.7 1.8 1.1 1.7.5 2.7 1.1 2.7 2.6 0 1.7-1.3 2.7-3.2 2.7-1.3 0-2.6-.5-3.5-1.4ZM4.7 18h8v1.3h-8V18Z"
|
|
240
|
-
})
|
|
241
|
-
]
|
|
242
|
-
});
|
|
243
|
-
var SublimeTextIcon = ({ size }) => /* @__PURE__ */ jsxs("svg", {
|
|
244
|
-
viewBox: "0 0 40 40",
|
|
245
|
-
style: iconStyle(size),
|
|
246
|
-
"aria-hidden": true,
|
|
247
|
-
children: [
|
|
248
|
-
/* @__PURE__ */ jsx5("path", {
|
|
249
|
-
fill: "#FF9800",
|
|
250
|
-
d: "M35.91 4.51c0-.37-.36-.59-.8-.48L4.8 11.44c-.44.11-.8.5-.8.87v7.58c0 .37.36.59.8.48l30.31-7.41c.44-.11.8-.5.8-.87V4.51Zm0 15.57c0-.38-.36-.59-.8-.49L4.8 27.01c-.44.1-.8.5-.8.87v7.57c0 .38.36.6.8.49l30.31-7.41c.44-.11.8-.5.8-.88v-7.57Z"
|
|
251
|
-
}),
|
|
252
|
-
/* @__PURE__ */ jsx5("path", {
|
|
253
|
-
fill: "#F28C00",
|
|
254
|
-
d: "M4 19.84c0 .37.36.76.8.87l30.32 7.41c.44.11.8-.11.8-.48v-7.58c0-.37-.36-.76-.8-.87L4.8 11.78c-.44-.11-.8.11-.8.48v7.58Z"
|
|
255
|
-
})
|
|
256
|
-
]
|
|
257
|
-
});
|
|
258
|
-
var EditorIcon = ({ editorId, size: sizeProp }) => {
|
|
259
|
-
const size = sizeProp ?? 14;
|
|
260
|
-
switch (editorId) {
|
|
261
|
-
case "vscode":
|
|
262
|
-
return /* @__PURE__ */ jsx5(VsCodeIcon, {
|
|
263
|
-
size
|
|
264
|
-
});
|
|
265
|
-
case "cursor":
|
|
266
|
-
return /* @__PURE__ */ jsx5(CursorIcon, {
|
|
267
|
-
size
|
|
268
|
-
});
|
|
269
|
-
case "windsurf":
|
|
270
|
-
return /* @__PURE__ */ jsx5(WindsurfIcon, {
|
|
271
|
-
size
|
|
272
|
-
});
|
|
273
|
-
case "zed":
|
|
274
|
-
return /* @__PURE__ */ jsx5(ZedIcon, {
|
|
275
|
-
size
|
|
276
|
-
});
|
|
277
|
-
case "vscodium":
|
|
278
|
-
return /* @__PURE__ */ jsx5(VscodiumIcon, {
|
|
279
|
-
size
|
|
280
|
-
});
|
|
281
|
-
case "webstorm":
|
|
282
|
-
return /* @__PURE__ */ jsx5(WebStormIcon, {
|
|
283
|
-
size
|
|
284
|
-
});
|
|
285
|
-
case "sublime-text":
|
|
286
|
-
return /* @__PURE__ */ jsx5(SublimeTextIcon, {
|
|
287
|
-
size
|
|
288
|
-
});
|
|
289
|
-
case "custom":
|
|
290
|
-
case null:
|
|
291
|
-
return /* @__PURE__ */ jsx5(CustomEditorIcon, {
|
|
292
|
-
size
|
|
293
|
-
});
|
|
294
|
-
default:
|
|
295
|
-
return null;
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
// src/icons/finder.tsx
|
|
300
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
301
|
-
var FinderIcon = ({ size }) => {
|
|
302
|
-
return /* @__PURE__ */ jsx6("img", {
|
|
303
|
-
alt: "",
|
|
304
|
-
"aria-hidden": true,
|
|
305
|
-
"data-file-manager-icon": "finder",
|
|
306
|
-
draggable: false,
|
|
307
|
-
src: "/api/app-icon/file-manager/finder.png",
|
|
308
|
-
style: { flexShrink: 0, height: size, width: size }
|
|
309
|
-
});
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
// src/icons/terminal.tsx
|
|
313
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
314
|
-
var iconStyle2 = (size) => ({
|
|
315
|
-
flexShrink: 0,
|
|
316
|
-
height: size,
|
|
317
|
-
width: size
|
|
318
|
-
});
|
|
319
|
-
var simpleTerminalIcons = {
|
|
320
|
-
warp: {
|
|
321
|
-
color: "#01A4FF",
|
|
322
|
-
path: "M12.035 2.723h9.253A2.712 2.712 0 0 1 24 5.435v10.529a2.712 2.712 0 0 1-2.712 2.713H8.047Zm-1.681 2.6L6.766 19.677h5.598l-.399 1.6H2.712A2.712 2.712 0 0 1 0 18.565V8.036a2.712 2.712 0 0 1 2.712-2.712Z"
|
|
323
|
-
},
|
|
324
|
-
wezterm: {
|
|
325
|
-
color: "#4E49EE",
|
|
326
|
-
path: "M3.27 8.524c0-.623.62-1.007 2.123-1.007l-.5 2.757c-.931-.623-1.624-1.199-1.624-1.75zm4.008 6.807c0 .647-.644 1.079-2.123 1.15l.524-2.924c.931.624 1.6 1.175 1.6 1.774zm-2.625 5.992.454-2.708c3.603-.336 5.01-1.798 5.01-3.404 0-1.653-2.004-2.948-3.841-4.074l.668-3.548c.764.072 1.67.216 2.744.432l.31-2.469c-.81-.12-1.575-.168-2.29-.216L8.257 2.7l-2.363-.024-.453 2.684C1.838 5.648.43 7.158.43 8.764c0 1.63 2.004 2.876 3.841 3.954l-.668 3.716c-.859-.048-1.908-.192-3.125-.408L0 18.495c1.026.12 1.98.192 2.84.216l-.525 2.588zm15.553-1.894h2.673c.334-2.804.81-8.46 1.121-14.86h-2.553c-.071 1.51-.334 10.498-.43 11.241h-.071c-.644-2.42-1.169-4.386-1.813-6.782h-1.456c-.62 2.396-1.05 4.194-1.694 6.782h-.096c-.071-.743-.477-9.73-.525-11.24h-2.648c.31 6.399.763 12.055 1.097 14.86h2.625l1.838-7.12z"
|
|
327
|
-
},
|
|
328
|
-
alacritty: {
|
|
329
|
-
color: "#F46D01",
|
|
330
|
-
path: "m10.065 0-8.57 21.269h3.595l6.91-16.244 6.91 16.244h3.594l-8.57-21.269zm1.935 9.935c-.76666 1.8547-1.5334 3.7094-2.298 5.565 1.475 4.54 1.475 4.54 2.298 8.5.823-3.96.823-3.96 2.297-8.5-.76637-1.8547-1.5315-3.7099-2.297-5.565z"
|
|
331
|
-
},
|
|
332
|
-
"gnome-terminal": {
|
|
333
|
-
color: CURRENT_COLOR,
|
|
334
|
-
path: "M1.846 0A1.841 1.841 0 000 1.846v18.463c0 1.022.823 1.845 1.846 1.845h20.308A1.841 1.841 0 0024 20.31V1.846A1.841 1.841 0 0022.154 0H1.846zm0 .924h20.308c.512 0 .922.41.922.922v18.463c0 .511-.41.921-.922.921H1.846a.919.919 0 01-.922-.921V1.846c0-.512.41-.922.922-.922zm0 .922v18.463h20.308V1.846H1.846zm1.845 2.14l3.235 1.758v.836L3.69 8.477V7.385l2.243-1.207v-.033L3.69 5.076v-1.09zM7.846 9.23h3.693v.924H7.846V9.23zM0 21.736v.418C0 23.177.823 24 1.846 24h20.308A1.841 1.841 0 0024 22.154v-.418a2.334 2.334 0 01-1.846.918H1.846A2.334 2.334 0 010 21.736Z"
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
|
-
var TerminalIcon = ({ terminalId, size }) => {
|
|
338
|
-
const hasArtwork = terminalId === "terminal" || terminalId === "iterm2" || terminalId === "ghostty" || terminalId === "windows-terminal";
|
|
339
|
-
if (hasArtwork) {
|
|
340
|
-
return /* @__PURE__ */ jsx7("img", {
|
|
341
|
-
alt: "",
|
|
342
|
-
"aria-hidden": true,
|
|
343
|
-
"data-terminal-icon": terminalId,
|
|
344
|
-
draggable: false,
|
|
345
|
-
src: `/api/app-icon/terminal/${terminalId}.png`,
|
|
346
|
-
style: iconStyle2(size)
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
const icon = simpleTerminalIcons[terminalId];
|
|
350
|
-
if (!icon) {
|
|
351
|
-
return /* @__PURE__ */ jsx7(AppsIcon, {
|
|
352
|
-
"aria-hidden": true,
|
|
353
|
-
"data-terminal-icon": terminalId,
|
|
354
|
-
height: size,
|
|
355
|
-
width: size
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
return /* @__PURE__ */ jsx7("svg", {
|
|
359
|
-
"aria-hidden": true,
|
|
360
|
-
"data-terminal-icon": terminalId,
|
|
361
|
-
style: iconStyle2(size),
|
|
362
|
-
viewBox: "0 0 24 24",
|
|
363
|
-
children: /* @__PURE__ */ jsx7("path", {
|
|
364
|
-
d: icon.path,
|
|
365
|
-
fill: icon.color
|
|
366
|
-
})
|
|
367
|
-
});
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
// src/api/delete-static-file.ts
|
|
371
|
-
import { getRemotionEnvironment } from "remotion";
|
|
372
|
-
|
|
373
|
-
// src/helpers/sequence-node-path-mutations.ts
|
|
374
|
-
var pendingMutations = [];
|
|
375
|
-
var seenMutationIds = new Set;
|
|
376
|
-
var queueSequenceNodePathMutation = (mutation) => {
|
|
377
|
-
if (seenMutationIds.has(mutation.mutationId)) {
|
|
378
|
-
return;
|
|
379
|
-
}
|
|
380
|
-
seenMutationIds.add(mutation.mutationId);
|
|
381
|
-
pendingMutations.push(mutation);
|
|
382
|
-
};
|
|
383
|
-
var queueSequenceNodePathMutationFromApiResponse = (response) => {
|
|
384
|
-
if (typeof response !== "object" || response === null || !("nodePathMutation" in response)) {
|
|
385
|
-
return;
|
|
386
|
-
}
|
|
387
|
-
const { nodePathMutation } = response;
|
|
388
|
-
if (typeof nodePathMutation !== "object" || nodePathMutation === null || !("mutationId" in nodePathMutation) || typeof nodePathMutation.mutationId !== "string") {
|
|
389
|
-
return;
|
|
390
|
-
}
|
|
391
|
-
queueSequenceNodePathMutation(nodePathMutation);
|
|
392
|
-
};
|
|
393
|
-
|
|
394
|
-
// src/components/call-api.ts
|
|
395
|
-
var callApi = (endpoint, body, signal) => {
|
|
396
|
-
return new Promise((resolve, reject) => {
|
|
397
|
-
fetch(endpoint, {
|
|
398
|
-
method: "post",
|
|
399
|
-
headers: {
|
|
400
|
-
"content-type": "application/json"
|
|
401
|
-
},
|
|
402
|
-
signal,
|
|
403
|
-
body: JSON.stringify(body)
|
|
404
|
-
}).then((res) => res.json()).then((data) => {
|
|
405
|
-
if (data.success) {
|
|
406
|
-
queueSequenceNodePathMutationFromApiResponse(data.data);
|
|
407
|
-
resolve(data.data);
|
|
408
|
-
} else {
|
|
409
|
-
reject(new Error(data.error));
|
|
410
|
-
}
|
|
411
|
-
}).catch((err) => {
|
|
412
|
-
reject(err);
|
|
413
|
-
});
|
|
414
|
-
});
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
// src/helpers/browser-studio-operations.ts
|
|
418
|
-
var getBrowserStudioOperations = () => {
|
|
419
|
-
if (typeof window === "undefined") {
|
|
420
|
-
return null;
|
|
421
|
-
}
|
|
422
|
-
return window.remotion_browserStudio ?? null;
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
// src/api/delete-static-file.ts
|
|
426
|
-
var deleteStaticFile = async (relativePath) => {
|
|
427
|
-
if (!getRemotionEnvironment().isStudio) {
|
|
428
|
-
throw new Error("deleteStaticFile() is only available in the Studio");
|
|
429
|
-
}
|
|
430
|
-
if (relativePath.startsWith(window.remotion_staticBase)) {
|
|
431
|
-
relativePath = relativePath.substring(window.remotion_staticBase.length + 1);
|
|
432
|
-
}
|
|
433
|
-
const browserStudioOperations = getBrowserStudioOperations();
|
|
434
|
-
if (browserStudioOperations) {
|
|
435
|
-
return browserStudioOperations.deleteStaticFile({ relativePath });
|
|
436
|
-
}
|
|
437
|
-
if (window.remotion_isReadOnlyStudio) {
|
|
438
|
-
throw new Error("deleteStaticFile() is not available in Read-Only Studio");
|
|
439
|
-
}
|
|
440
|
-
const res = await callApi("/api/delete-static-file", { relativePath });
|
|
441
|
-
return res;
|
|
442
|
-
};
|
|
443
|
-
// src/components/RenderModal/SchemaEditor/scroll-to-default-props-path.ts
|
|
444
|
-
import React from "react";
|
|
445
|
-
var DEFAULT_PROPS_PATH_CLASSNAME = "__remotion-default-props-editor-label";
|
|
446
|
-
var DEFAULT_PROPS_PATH_ACTIVE_CLASSNAME = "__remotion-default-props-editor-label-active";
|
|
447
|
-
var defaultPropsEditorScrollableAreaRef = React.createRef();
|
|
448
|
-
|
|
449
52
|
// src/api/focus-default-props-path.ts
|
|
450
53
|
var focusDefaultPropsPath = ({
|
|
451
54
|
path,
|
|
@@ -467,43 +70,15 @@ var focusDefaultPropsPath = ({
|
|
|
467
70
|
success: true
|
|
468
71
|
};
|
|
469
72
|
};
|
|
470
|
-
// src/api/get-static-files.ts
|
|
471
|
-
var warnedServer = false;
|
|
472
|
-
var warnedPlayer = false;
|
|
473
|
-
var warnServerOnce = () => {
|
|
474
|
-
if (warnedServer) {
|
|
475
|
-
return;
|
|
476
|
-
}
|
|
477
|
-
warnedServer = true;
|
|
478
|
-
console.warn("Called getStaticFiles() on the server. The API is only available in the browser. An empty array was returned.");
|
|
479
|
-
};
|
|
480
|
-
var warnPlayerOnce = () => {
|
|
481
|
-
if (warnedPlayer) {
|
|
482
|
-
return;
|
|
483
|
-
}
|
|
484
|
-
warnedPlayer = true;
|
|
485
|
-
console.warn("Called getStaticFiles() while using the Remotion Player. The API is only available while using the Remotion Studio. An empty array was returned.");
|
|
486
|
-
};
|
|
487
|
-
var getStaticFiles = () => {
|
|
488
|
-
if (typeof document === "undefined") {
|
|
489
|
-
warnServerOnce();
|
|
490
|
-
return [];
|
|
491
|
-
}
|
|
492
|
-
if (window.remotion_isPlayer) {
|
|
493
|
-
warnPlayerOnce();
|
|
494
|
-
return [];
|
|
495
|
-
}
|
|
496
|
-
return window.remotion_staticFiles;
|
|
497
|
-
};
|
|
498
73
|
// src/api/go-to-composition.ts
|
|
499
74
|
import { Internals } from "remotion";
|
|
500
75
|
var goToComposition = (compositionId) => {
|
|
501
76
|
Internals.compositionSelectorRef.current?.selectComposition(compositionId);
|
|
502
77
|
};
|
|
503
78
|
// src/api/helpers/calc-new-props.ts
|
|
504
|
-
import { Internals as Internals2, getRemotionEnvironment
|
|
79
|
+
import { Internals as Internals2, getRemotionEnvironment } from "remotion";
|
|
505
80
|
var calcNewProps = (compositionId, defaultProps) => {
|
|
506
|
-
if (!
|
|
81
|
+
if (!getRemotionEnvironment().isStudio) {
|
|
507
82
|
throw new Error("saveDefaultProps can only be called in the Remotion Studio.");
|
|
508
83
|
}
|
|
509
84
|
const { compositionsRef } = Internals2;
|
|
@@ -527,356 +102,18 @@ var calcNewProps = (compositionId, defaultProps) => {
|
|
|
527
102
|
generatedDefaultProps
|
|
528
103
|
};
|
|
529
104
|
};
|
|
530
|
-
// src/api/pause.ts
|
|
531
|
-
import { Internals as Internals3 } from "remotion";
|
|
532
|
-
var pause = () => {
|
|
533
|
-
Internals3.timeValueRef.current?.pause();
|
|
534
|
-
};
|
|
535
|
-
// src/api/play.ts
|
|
536
|
-
import { Internals as Internals4 } from "remotion";
|
|
537
|
-
var play = (e) => {
|
|
538
|
-
Internals4.timeValueRef.current?.play(e);
|
|
539
|
-
};
|
|
540
105
|
// src/api/reevaluate-composition.ts
|
|
541
|
-
import { Internals as
|
|
106
|
+
import { Internals as Internals3 } from "remotion";
|
|
542
107
|
var reevaluateComposition = () => {
|
|
543
|
-
|
|
544
|
-
};
|
|
545
|
-
// src/api/restart-studio.ts
|
|
546
|
-
import { getRemotionEnvironment as getRemotionEnvironment3 } from "remotion";
|
|
547
|
-
var restartStudio = () => {
|
|
548
|
-
if (!getRemotionEnvironment3().isStudio) {
|
|
549
|
-
throw new Error("restartStudio() is only available in the Studio");
|
|
550
|
-
}
|
|
551
|
-
if (getBrowserStudioOperations() !== null) {
|
|
552
|
-
throw new Error("restartStudio() is not supported in Browser Studio");
|
|
553
|
-
}
|
|
554
|
-
if (window.remotion_isReadOnlyStudio) {
|
|
555
|
-
throw new Error("restartStudio() is not available in read-only Studio");
|
|
556
|
-
}
|
|
557
|
-
return callApi("/api/restart-studio", {});
|
|
558
|
-
};
|
|
559
|
-
// src/api/shut-down-studio.ts
|
|
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";
|
|
575
|
-
|
|
576
|
-
// src/components/RenderModal/SchemaEditor/zod-schema-type.ts
|
|
577
|
-
var getZodDef = (schema) => {
|
|
578
|
-
if (schema._def)
|
|
579
|
-
return schema._def;
|
|
580
|
-
if (schema._zod)
|
|
581
|
-
return schema._zod.def;
|
|
582
|
-
throw new Error("Invalid zod schema: missing _def and _zod");
|
|
583
|
-
};
|
|
584
|
-
var v3TypeNameMap = {
|
|
585
|
-
ZodString: "string",
|
|
586
|
-
ZodNumber: "number",
|
|
587
|
-
ZodBoolean: "boolean",
|
|
588
|
-
ZodObject: "object",
|
|
589
|
-
ZodArray: "array",
|
|
590
|
-
ZodEnum: "enum",
|
|
591
|
-
ZodUnion: "union",
|
|
592
|
-
ZodDiscriminatedUnion: "discriminatedUnion",
|
|
593
|
-
ZodOptional: "optional",
|
|
594
|
-
ZodNullable: "nullable",
|
|
595
|
-
ZodDefault: "default",
|
|
596
|
-
ZodTuple: "tuple",
|
|
597
|
-
ZodDate: "date",
|
|
598
|
-
ZodAny: "any",
|
|
599
|
-
ZodUnknown: "unknown",
|
|
600
|
-
ZodBigInt: "bigint",
|
|
601
|
-
ZodNull: "null",
|
|
602
|
-
ZodUndefined: "undefined",
|
|
603
|
-
ZodEffects: "effects",
|
|
604
|
-
ZodLiteral: "literal",
|
|
605
|
-
ZodRecord: "record",
|
|
606
|
-
ZodNever: "never",
|
|
607
|
-
ZodVoid: "void",
|
|
608
|
-
ZodNaN: "nan",
|
|
609
|
-
ZodSymbol: "symbol",
|
|
610
|
-
ZodIntersection: "intersection",
|
|
611
|
-
ZodMap: "map",
|
|
612
|
-
ZodSet: "set",
|
|
613
|
-
ZodLazy: "lazy",
|
|
614
|
-
ZodFunction: "function",
|
|
615
|
-
ZodNativeEnum: "nativeEnum",
|
|
616
|
-
ZodCatch: "catch",
|
|
617
|
-
ZodPromise: "promise",
|
|
618
|
-
ZodBranded: "branded",
|
|
619
|
-
ZodPipeline: "pipeline"
|
|
620
|
-
};
|
|
621
|
-
var isZodV3Schema = (schema) => {
|
|
622
|
-
const def = getZodDef(schema);
|
|
623
|
-
return "typeName" in def;
|
|
624
|
-
};
|
|
625
|
-
var getZodSchemaType = (schema) => {
|
|
626
|
-
const def = getZodDef(schema);
|
|
627
|
-
if ("typeName" in def) {
|
|
628
|
-
const { typeName } = def;
|
|
629
|
-
return v3TypeNameMap[typeName] ?? typeName;
|
|
630
|
-
}
|
|
631
|
-
const { type } = def;
|
|
632
|
-
if (type === "union" && def.discriminator !== undefined) {
|
|
633
|
-
return "discriminatedUnion";
|
|
634
|
-
}
|
|
635
|
-
return type;
|
|
636
|
-
};
|
|
637
|
-
var getZodSchemaDescription = (schema) => {
|
|
638
|
-
if (isZodV3Schema(schema)) {
|
|
639
|
-
return getZodDef(schema).description;
|
|
640
|
-
}
|
|
641
|
-
return schema.description;
|
|
642
|
-
};
|
|
643
|
-
var getObjectShape = (schema) => {
|
|
644
|
-
const { shape } = getZodDef(schema);
|
|
645
|
-
return typeof shape === "function" ? shape() : shape;
|
|
646
|
-
};
|
|
647
|
-
var getArrayElement = (schema) => {
|
|
648
|
-
const def = getZodDef(schema);
|
|
649
|
-
return isZodV3Schema(schema) ? def.type : def.element;
|
|
650
|
-
};
|
|
651
|
-
var getInnerType = (schema) => {
|
|
652
|
-
return getZodDef(schema).innerType;
|
|
653
|
-
};
|
|
654
|
-
var getEffectsInner = (schema) => {
|
|
655
|
-
return getZodDef(schema).schema;
|
|
656
|
-
};
|
|
657
|
-
var getUnionOptions = (schema) => {
|
|
658
|
-
return getZodDef(schema).options;
|
|
659
|
-
};
|
|
660
|
-
var getIntersectionSchemas = (schema) => {
|
|
661
|
-
const def = getZodDef(schema);
|
|
662
|
-
return { left: def.left, right: def.right };
|
|
663
|
-
};
|
|
664
|
-
var getTupleItems = (schema) => {
|
|
665
|
-
return getZodDef(schema).items;
|
|
666
|
-
};
|
|
667
|
-
var getRecordValueType = (schema) => {
|
|
668
|
-
return getZodDef(schema).valueType;
|
|
669
|
-
};
|
|
670
|
-
var getRecordKeyType = (schema) => {
|
|
671
|
-
return getZodDef(schema).keyType;
|
|
672
|
-
};
|
|
673
|
-
var getPipelineOutput = (schema) => {
|
|
674
|
-
return getZodDef(schema).out;
|
|
675
|
-
};
|
|
676
|
-
var getBrandedInner = (schema) => {
|
|
677
|
-
return isZodV3Schema(schema) ? getZodDef(schema).type : schema;
|
|
678
|
-
};
|
|
679
|
-
|
|
680
|
-
// src/components/RenderModal/SchemaEditor/extract-enum-json-paths.ts
|
|
681
|
-
var extractEnumJsonPaths = ({
|
|
682
|
-
schema,
|
|
683
|
-
zodRuntime,
|
|
684
|
-
currentPath,
|
|
685
|
-
zodTypes
|
|
686
|
-
}) => {
|
|
687
|
-
const description = getZodSchemaDescription(schema);
|
|
688
|
-
if (zodTypes && description === zodTypes.ZodZypesInternals.REMOTION_MATRIX_BRAND) {
|
|
689
|
-
return [currentPath];
|
|
690
|
-
}
|
|
691
|
-
const typeName = getZodSchemaType(schema);
|
|
692
|
-
switch (typeName) {
|
|
693
|
-
case "object": {
|
|
694
|
-
const shape = getObjectShape(schema);
|
|
695
|
-
const keys = Object.keys(shape);
|
|
696
|
-
return keys.map((key) => {
|
|
697
|
-
return extractEnumJsonPaths({
|
|
698
|
-
schema: shape[key],
|
|
699
|
-
zodRuntime,
|
|
700
|
-
currentPath: [...currentPath, key],
|
|
701
|
-
zodTypes
|
|
702
|
-
});
|
|
703
|
-
}).flat(1);
|
|
704
|
-
}
|
|
705
|
-
case "array": {
|
|
706
|
-
return extractEnumJsonPaths({
|
|
707
|
-
schema: getArrayElement(schema),
|
|
708
|
-
zodRuntime,
|
|
709
|
-
currentPath: [...currentPath, "[]"],
|
|
710
|
-
zodTypes
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
case "union": {
|
|
714
|
-
return getUnionOptions(schema).map((option) => {
|
|
715
|
-
return extractEnumJsonPaths({
|
|
716
|
-
schema: option,
|
|
717
|
-
zodRuntime,
|
|
718
|
-
currentPath,
|
|
719
|
-
zodTypes
|
|
720
|
-
});
|
|
721
|
-
}).flat(1);
|
|
722
|
-
}
|
|
723
|
-
case "discriminatedUnion": {
|
|
724
|
-
return getUnionOptions(schema).map((op) => {
|
|
725
|
-
return extractEnumJsonPaths({
|
|
726
|
-
schema: op,
|
|
727
|
-
zodRuntime,
|
|
728
|
-
currentPath,
|
|
729
|
-
zodTypes
|
|
730
|
-
});
|
|
731
|
-
}).flat(1);
|
|
732
|
-
}
|
|
733
|
-
case "literal": {
|
|
734
|
-
return [currentPath];
|
|
735
|
-
}
|
|
736
|
-
case "effects": {
|
|
737
|
-
return extractEnumJsonPaths({
|
|
738
|
-
schema: getEffectsInner(schema),
|
|
739
|
-
zodRuntime,
|
|
740
|
-
currentPath,
|
|
741
|
-
zodTypes
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
case "intersection": {
|
|
745
|
-
const { left, right } = getIntersectionSchemas(schema);
|
|
746
|
-
const leftValue = extractEnumJsonPaths({
|
|
747
|
-
schema: left,
|
|
748
|
-
zodRuntime,
|
|
749
|
-
currentPath,
|
|
750
|
-
zodTypes
|
|
751
|
-
});
|
|
752
|
-
const rightValue = extractEnumJsonPaths({
|
|
753
|
-
schema: right,
|
|
754
|
-
zodRuntime,
|
|
755
|
-
currentPath,
|
|
756
|
-
zodTypes
|
|
757
|
-
});
|
|
758
|
-
return [...leftValue, ...rightValue];
|
|
759
|
-
}
|
|
760
|
-
case "tuple": {
|
|
761
|
-
return getTupleItems(schema).map((item, i) => extractEnumJsonPaths({
|
|
762
|
-
schema: item,
|
|
763
|
-
zodRuntime,
|
|
764
|
-
currentPath: [...currentPath, i],
|
|
765
|
-
zodTypes
|
|
766
|
-
})).flat(1);
|
|
767
|
-
}
|
|
768
|
-
case "record": {
|
|
769
|
-
const recordPath = [...currentPath, "{}"];
|
|
770
|
-
const keyResults = extractEnumJsonPaths({
|
|
771
|
-
schema: getRecordKeyType(schema),
|
|
772
|
-
zodRuntime,
|
|
773
|
-
currentPath: recordPath,
|
|
774
|
-
zodTypes
|
|
775
|
-
});
|
|
776
|
-
const valueResults = extractEnumJsonPaths({
|
|
777
|
-
schema: getRecordValueType(schema),
|
|
778
|
-
zodRuntime,
|
|
779
|
-
currentPath: recordPath,
|
|
780
|
-
zodTypes
|
|
781
|
-
});
|
|
782
|
-
return [...keyResults, ...valueResults];
|
|
783
|
-
}
|
|
784
|
-
case "function": {
|
|
785
|
-
throw new Error("Cannot create a value for type function");
|
|
786
|
-
}
|
|
787
|
-
case "enum": {
|
|
788
|
-
return [currentPath];
|
|
789
|
-
}
|
|
790
|
-
case "nativeEnum": {
|
|
791
|
-
return [];
|
|
792
|
-
}
|
|
793
|
-
case "optional":
|
|
794
|
-
case "nullable":
|
|
795
|
-
case "catch": {
|
|
796
|
-
return extractEnumJsonPaths({
|
|
797
|
-
schema: getInnerType(schema),
|
|
798
|
-
zodRuntime,
|
|
799
|
-
currentPath,
|
|
800
|
-
zodTypes
|
|
801
|
-
});
|
|
802
|
-
}
|
|
803
|
-
case "default": {
|
|
804
|
-
return extractEnumJsonPaths({
|
|
805
|
-
schema: getInnerType(schema),
|
|
806
|
-
zodRuntime,
|
|
807
|
-
currentPath,
|
|
808
|
-
zodTypes
|
|
809
|
-
});
|
|
810
|
-
}
|
|
811
|
-
case "promise": {
|
|
812
|
-
return [];
|
|
813
|
-
}
|
|
814
|
-
case "branded": {
|
|
815
|
-
return extractEnumJsonPaths({
|
|
816
|
-
schema: getBrandedInner(schema),
|
|
817
|
-
zodRuntime,
|
|
818
|
-
currentPath,
|
|
819
|
-
zodTypes
|
|
820
|
-
});
|
|
821
|
-
}
|
|
822
|
-
case "pipeline":
|
|
823
|
-
case "pipe": {
|
|
824
|
-
return extractEnumJsonPaths({
|
|
825
|
-
schema: getPipelineOutput(schema),
|
|
826
|
-
zodRuntime,
|
|
827
|
-
currentPath,
|
|
828
|
-
zodTypes
|
|
829
|
-
});
|
|
830
|
-
}
|
|
831
|
-
case "string":
|
|
832
|
-
case "number":
|
|
833
|
-
case "bigint":
|
|
834
|
-
case "boolean":
|
|
835
|
-
case "nan":
|
|
836
|
-
case "date":
|
|
837
|
-
case "symbol":
|
|
838
|
-
case "undefined":
|
|
839
|
-
case "null":
|
|
840
|
-
case "any":
|
|
841
|
-
case "unknown":
|
|
842
|
-
case "never":
|
|
843
|
-
case "void":
|
|
844
|
-
case "map":
|
|
845
|
-
case "lazy":
|
|
846
|
-
case "set":
|
|
847
|
-
case "custom": {
|
|
848
|
-
return [];
|
|
849
|
-
}
|
|
850
|
-
default:
|
|
851
|
-
throw new Error("Not implemented: " + typeName);
|
|
852
|
-
}
|
|
108
|
+
Internals3.resolveCompositionsRef.current?.reloadCurrentlySelectedComposition();
|
|
853
109
|
};
|
|
854
|
-
|
|
855
|
-
// src/components/RenderQueue/actions.ts
|
|
856
|
-
import { NoReactInternals } from "remotion/no-react";
|
|
857
|
-
var callUpdateDefaultPropsApi = (compositionId, defaultProps, enumPaths) => {
|
|
858
|
-
const body = {
|
|
859
|
-
compositionId,
|
|
860
|
-
defaultProps: NoReactInternals.serializeJSONWithSpecialTypes({
|
|
861
|
-
data: defaultProps,
|
|
862
|
-
indent: undefined,
|
|
863
|
-
staticBase: window.remotion_staticBase
|
|
864
|
-
}).serializedString,
|
|
865
|
-
enumPaths
|
|
866
|
-
};
|
|
867
|
-
const browserStudioOperations = getBrowserStudioOperations();
|
|
868
|
-
if (browserStudioOperations !== null) {
|
|
869
|
-
return browserStudioOperations.updateDefaultProps(body);
|
|
870
|
-
}
|
|
871
|
-
return callApi("/api/update-default-props", body);
|
|
872
|
-
};
|
|
873
|
-
|
|
874
110
|
// src/api/save-default-props.ts
|
|
111
|
+
import { getRemotionEnvironment as getRemotionEnvironment2 } from "remotion";
|
|
875
112
|
var saveDefaultProps = async ({
|
|
876
113
|
compositionId,
|
|
877
114
|
defaultProps
|
|
878
115
|
}) => {
|
|
879
|
-
if (!
|
|
116
|
+
if (!getRemotionEnvironment2().isStudio) {
|
|
880
117
|
throw new Error("saveDefaultProps() is only available in the Studio");
|
|
881
118
|
}
|
|
882
119
|
if (window.remotion_isReadOnlyStudio) {
|
|
@@ -906,93 +143,18 @@ var saveDefaultProps = async ({
|
|
|
906
143
|
err.stack = res.stack;
|
|
907
144
|
return Promise.reject(err);
|
|
908
145
|
};
|
|
909
|
-
// src/api/seek.ts
|
|
910
|
-
import { Internals as Internals6 } from "remotion";
|
|
911
|
-
var seek = (frame) => {
|
|
912
|
-
Internals6.timeValueRef.current?.seek(Math.max(0, frame));
|
|
913
|
-
};
|
|
914
146
|
// src/api/toggle.ts
|
|
915
|
-
import { Internals as
|
|
147
|
+
import { Internals as Internals4 } from "remotion";
|
|
916
148
|
var toggle = (e) => {
|
|
917
|
-
|
|
149
|
+
Internals4.timeValueRef.current?.toggle(e);
|
|
918
150
|
};
|
|
919
151
|
// src/api/update-default-props.ts
|
|
920
152
|
var updateDefaultProps = saveDefaultProps;
|
|
921
153
|
// src/api/visual-control.ts
|
|
922
|
-
import { getRemotionEnvironment as
|
|
923
|
-
|
|
924
|
-
// src/helpers/use-sync-external-store.ts
|
|
925
|
-
import { Internals as Internals8 } from "remotion";
|
|
926
|
-
var { useSyncExternalStore } = Internals8;
|
|
927
|
-
|
|
928
|
-
// src/visual-controls/visual-control-store.ts
|
|
929
|
-
var version = 0;
|
|
930
|
-
var listeners = new Set;
|
|
931
|
-
var visualControlStore = {
|
|
932
|
-
subscribe(listener) {
|
|
933
|
-
listeners.add(listener);
|
|
934
|
-
return () => {
|
|
935
|
-
listeners.delete(listener);
|
|
936
|
-
};
|
|
937
|
-
},
|
|
938
|
-
getSnapshot() {
|
|
939
|
-
return version;
|
|
940
|
-
},
|
|
941
|
-
emitChange() {
|
|
942
|
-
version++;
|
|
943
|
-
for (const listener of listeners) {
|
|
944
|
-
listener();
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
};
|
|
948
|
-
|
|
949
|
-
// src/visual-controls/VisualControls.tsx
|
|
950
|
-
import {
|
|
951
|
-
createContext as createContext2,
|
|
952
|
-
createRef,
|
|
953
|
-
useCallback,
|
|
954
|
-
useEffect as useEffect2,
|
|
955
|
-
useImperativeHandle,
|
|
956
|
-
useMemo as useMemo2,
|
|
957
|
-
useRef,
|
|
958
|
-
useState as useState2
|
|
959
|
-
} from "react";
|
|
960
|
-
import { useRemotionEnvironment } from "remotion";
|
|
961
|
-
|
|
962
|
-
// src/components/get-zod-if-possible.tsx
|
|
963
|
-
import {
|
|
964
|
-
createContext,
|
|
965
|
-
useContext,
|
|
966
|
-
useEffect,
|
|
967
|
-
useMemo,
|
|
968
|
-
useState
|
|
969
|
-
} from "react";
|
|
970
|
-
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
971
|
-
var ZodContext = createContext(null);
|
|
972
|
-
|
|
973
|
-
// src/visual-controls/VisualControls.tsx
|
|
974
|
-
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
975
|
-
var VisualControlsTabActivatedContext = createContext2(false);
|
|
976
|
-
var VisualControlsContext = createContext2({
|
|
977
|
-
handles: {}
|
|
978
|
-
});
|
|
979
|
-
var visualControlRef = createRef();
|
|
980
|
-
var SetVisualControlsContext = createContext2({
|
|
981
|
-
updateHandles: () => {
|
|
982
|
-
throw new Error("updateHandles is not implemented");
|
|
983
|
-
},
|
|
984
|
-
updateValue: () => {
|
|
985
|
-
throw new Error("updateValue is not implemented");
|
|
986
|
-
},
|
|
987
|
-
visualControl: () => {
|
|
988
|
-
throw new Error("visualControl is not implemented");
|
|
989
|
-
}
|
|
990
|
-
});
|
|
991
|
-
|
|
992
|
-
// src/api/visual-control.ts
|
|
154
|
+
import { getRemotionEnvironment as getRemotionEnvironment3 } from "remotion";
|
|
993
155
|
var visualControl = (key, value, schema) => {
|
|
994
156
|
useSyncExternalStore(visualControlStore.subscribe, visualControlStore.getSnapshot, visualControlStore.getSnapshot);
|
|
995
|
-
if (
|
|
157
|
+
if (getRemotionEnvironment3().isRendering) {
|
|
996
158
|
return value;
|
|
997
159
|
}
|
|
998
160
|
if (!visualControlRef.current) {
|
|
@@ -1000,32 +162,10 @@ var visualControl = (key, value, schema) => {
|
|
|
1000
162
|
}
|
|
1001
163
|
return visualControlRef.current.globalVisualControl(key, value, schema);
|
|
1002
164
|
};
|
|
1003
|
-
// src/api/watch-public-folder.ts
|
|
1004
|
-
import { getRemotionEnvironment as getRemotionEnvironment7 } from "remotion";
|
|
1005
|
-
var WATCH_REMOTION_STATIC_FILES = "remotion_staticFilesChanged";
|
|
1006
|
-
var watchPublicFolder = (callback) => {
|
|
1007
|
-
if (!getRemotionEnvironment7().isStudio) {
|
|
1008
|
-
console.warn("The watchPublicFolder() API is only available while using the Remotion Studio.");
|
|
1009
|
-
return { cancel: () => {
|
|
1010
|
-
return;
|
|
1011
|
-
} };
|
|
1012
|
-
}
|
|
1013
|
-
if (window.remotion_isReadOnlyStudio && !getBrowserStudioOperations()) {
|
|
1014
|
-
throw new Error("watchPublicFolder() is not available in read-only Studio");
|
|
1015
|
-
}
|
|
1016
|
-
const emitUpdate = () => {
|
|
1017
|
-
callback(getStaticFiles());
|
|
1018
|
-
};
|
|
1019
|
-
window.addEventListener(WATCH_REMOTION_STATIC_FILES, emitUpdate);
|
|
1020
|
-
const cancel = () => {
|
|
1021
|
-
return window.removeEventListener(WATCH_REMOTION_STATIC_FILES, emitUpdate);
|
|
1022
|
-
};
|
|
1023
|
-
return { cancel };
|
|
1024
|
-
};
|
|
1025
165
|
// src/api/watch-static-file.ts
|
|
1026
|
-
import { getRemotionEnvironment as
|
|
166
|
+
import { getRemotionEnvironment as getRemotionEnvironment4 } from "remotion";
|
|
1027
167
|
var watchStaticFile = (fileName, callback) => {
|
|
1028
|
-
if (!
|
|
168
|
+
if (!getRemotionEnvironment4().isStudio) {
|
|
1029
169
|
console.warn("watchStaticFile() is only available while using the Remotion Studio.");
|
|
1030
170
|
return { cancel: () => {
|
|
1031
171
|
return;
|
|
@@ -1056,34 +196,6 @@ var watchStaticFile = (fileName, callback) => {
|
|
|
1056
196
|
});
|
|
1057
197
|
return { cancel };
|
|
1058
198
|
};
|
|
1059
|
-
// src/api/write-static-file.ts
|
|
1060
|
-
var writeStaticFile = async ({
|
|
1061
|
-
contents,
|
|
1062
|
-
filePath
|
|
1063
|
-
}) => {
|
|
1064
|
-
if (filePath.includes("\\")) {
|
|
1065
|
-
return Promise.reject(new Error("File path cannot contain backslashes"));
|
|
1066
|
-
}
|
|
1067
|
-
const browserStudioOperations = getBrowserStudioOperations();
|
|
1068
|
-
if (browserStudioOperations) {
|
|
1069
|
-
return browserStudioOperations.writeStaticFile({ contents, filePath });
|
|
1070
|
-
}
|
|
1071
|
-
if (window.remotion_isReadOnlyStudio) {
|
|
1072
|
-
throw new Error("writeStaticFile() is not available in read-only Studio");
|
|
1073
|
-
}
|
|
1074
|
-
const url = new URL(`${window.remotion_staticBase}/api/add-asset`, window.location.origin);
|
|
1075
|
-
url.search = new URLSearchParams({
|
|
1076
|
-
filePath
|
|
1077
|
-
}).toString();
|
|
1078
|
-
const response = await fetch(url, {
|
|
1079
|
-
method: "POST",
|
|
1080
|
-
body: contents
|
|
1081
|
-
});
|
|
1082
|
-
if (!response.ok) {
|
|
1083
|
-
const jsonResponse = await response.json();
|
|
1084
|
-
throw new Error(jsonResponse.error);
|
|
1085
|
-
}
|
|
1086
|
-
};
|
|
1087
199
|
|
|
1088
200
|
// src/index.ts
|
|
1089
201
|
var StudioInternals = {
|