@remotion/cli 4.0.113 → 4.0.115
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/benchmark.js +56 -11
- package/dist/compositions.js +16 -2
- package/dist/config/chromium-flags.d.ts +0 -5
- package/dist/config/chromium-flags.js +1 -17
- package/dist/config/index.d.ts +14 -32
- package/dist/config/index.js +26 -61
- package/dist/get-cli-options.d.ts +5 -17
- package/dist/get-cli-options.js +8 -42
- package/dist/get-render-defaults.js +56 -21
- package/dist/gpu.js +16 -1
- package/dist/index.d.ts +14 -37
- package/dist/index.js +0 -2
- package/dist/list-of-remotion-packages.js +1 -0
- package/dist/parse-command-line.d.ts +172 -17
- package/dist/parse-command-line.js +1 -34
- package/dist/render-flows/render.d.ts +3 -4
- package/dist/render-flows/render.js +5 -4
- package/dist/render-queue/process-video.js +1 -1
- package/dist/render.js +49 -1
- package/dist/still.js +22 -2
- package/package.json +10 -10
- package/dist/ansi/ansi-diff.d.ts +0 -42
- package/dist/ansi/ansi-diff.js +0 -220
- package/dist/ansi/ansi-split.d.ts +0 -2
- package/dist/ansi/ansi-split.js +0 -44
- package/dist/better-opn/index.d.ts +0 -5
- package/dist/better-opn/index.js +0 -202
- package/dist/codemods/stringify-with-path.d.ts +0 -5
- package/dist/codemods/stringify-with-path.js +0 -49
- package/dist/codemods/update-default-props.d.ts +0 -7
- package/dist/codemods/update-default-props.js +0 -133
- package/dist/color-math.d.ts +0 -2
- package/dist/color-math.js +0 -13
- package/dist/config/max-timeline-tracks.d.ts +0 -2
- package/dist/config/max-timeline-tracks.js +0 -25
- package/dist/editor/components/AssetSelector.d.ts +0 -2
- package/dist/editor/components/AssetSelector.js +0 -102
- package/dist/editor/components/AssetSelectorItem.d.ts +0 -24
- package/dist/editor/components/AssetSelectorItem.js +0 -196
- package/dist/editor/components/AudioWaveform.d.ts +0 -11
- package/dist/editor/components/AudioWaveform.js +0 -122
- package/dist/editor/components/AudioWaveformBar.d.ts +0 -6
- package/dist/editor/components/AudioWaveformBar.js +0 -24
- package/dist/editor/components/Canvas.d.ts +0 -5
- package/dist/editor/components/Canvas.js +0 -260
- package/dist/editor/components/CanvasOrLoading.d.ts +0 -5
- package/dist/editor/components/CanvasOrLoading.js +0 -96
- package/dist/editor/components/CheckboardToggle.d.ts +0 -2
- package/dist/editor/components/CheckboardToggle.js +0 -26
- package/dist/editor/components/Checkbox.d.ts +0 -7
- package/dist/editor/components/Checkbox.js +0 -42
- package/dist/editor/components/CheckerboardProvider.d.ts +0 -4
- package/dist/editor/components/CheckerboardProvider.js +0 -24
- package/dist/editor/components/CompositionSelector.d.ts +0 -6
- package/dist/editor/components/CompositionSelector.js +0 -102
- package/dist/editor/components/CompositionSelectorItem.d.ts +0 -22
- package/dist/editor/components/CompositionSelectorItem.js +0 -131
- package/dist/editor/components/ContextMenu.d.ts +0 -6
- package/dist/editor/components/ContextMenu.js +0 -91
- package/dist/editor/components/ControlButton.d.ts +0 -5
- package/dist/editor/components/ControlButton.js +0 -21
- package/dist/editor/components/CopyButton.d.ts +0 -6
- package/dist/editor/components/CopyButton.js +0 -43
- package/dist/editor/components/CurrentComposition.d.ts +0 -2
- package/dist/editor/components/CurrentComposition.js +0 -45
- package/dist/editor/components/CurrentCompositionSideEffects.d.ts +0 -3
- package/dist/editor/components/CurrentCompositionSideEffects.js +0 -67
- package/dist/editor/components/Editor.d.ts +0 -2
- package/dist/editor/components/Editor.js +0 -57
- package/dist/editor/components/EditorContent.d.ts +0 -2
- package/dist/editor/components/EditorContent.js +0 -24
- package/dist/editor/components/EditorContexts.d.ts +0 -4
- package/dist/editor/components/EditorContexts.js +0 -24
- package/dist/editor/components/EditorGuides/Guide.d.ts +0 -13
- package/dist/editor/components/EditorGuides/Guide.js +0 -91
- package/dist/editor/components/EditorGuides/index.d.ts +0 -10
- package/dist/editor/components/EditorGuides/index.js +0 -32
- package/dist/editor/components/EditorRuler/Ruler.d.ts +0 -17
- package/dist/editor/components/EditorRuler/Ruler.js +0 -107
- package/dist/editor/components/EditorRuler/index.d.ts +0 -10
- package/dist/editor/components/EditorRuler/index.js +0 -167
- package/dist/editor/components/EditorRuler/use-is-ruler-visible.d.ts +0 -1
- package/dist/editor/components/EditorRuler/use-is-ruler-visible.js +0 -12
- package/dist/editor/components/ExplorerPanel.d.ts +0 -8
- package/dist/editor/components/ExplorerPanel.js +0 -54
- package/dist/editor/components/FilePreview.d.ts +0 -9
- package/dist/editor/components/FilePreview.js +0 -40
- package/dist/editor/components/FpsCounter.d.ts +0 -4
- package/dist/editor/components/FpsCounter.js +0 -74
- package/dist/editor/components/FramePersistor.d.ts +0 -2
- package/dist/editor/components/FramePersistor.js +0 -17
- package/dist/editor/components/FullscreenToggle.d.ts +0 -2
- package/dist/editor/components/FullscreenToggle.js +0 -48
- package/dist/editor/components/GlobalKeybindings.d.ts +0 -2
- package/dist/editor/components/GlobalKeybindings.js +0 -77
- package/dist/editor/components/InitialCompositionLoader.d.ts +0 -4
- package/dist/editor/components/InitialCompositionLoader.js +0 -115
- package/dist/editor/components/InlineAction.d.ts +0 -8
- package/dist/editor/components/InlineAction.js +0 -34
- package/dist/editor/components/JSONViewer.d.ts +0 -4
- package/dist/editor/components/JSONViewer.js +0 -26
- package/dist/editor/components/KeyboardShortcutsExplainer.d.ts +0 -2
- package/dist/editor/components/KeyboardShortcutsExplainer.js +0 -57
- package/dist/editor/components/KnownBugs.d.ts +0 -5
- package/dist/editor/components/KnownBugs.js +0 -21
- package/dist/editor/components/LoopToggle.d.ts +0 -5
- package/dist/editor/components/LoopToggle.js +0 -19
- package/dist/editor/components/MediaVolumeProvider.d.ts +0 -4
- package/dist/editor/components/MediaVolumeProvider.js +0 -25
- package/dist/editor/components/Menu/MenuDivider.d.ts +0 -2
- package/dist/editor/components/Menu/MenuDivider.js +0 -15
- package/dist/editor/components/Menu/MenuItem.d.ts +0 -22
- package/dist/editor/components/Menu/MenuItem.js +0 -96
- package/dist/editor/components/Menu/MenuSubItem.d.ts +0 -19
- package/dist/editor/components/Menu/MenuSubItem.js +0 -105
- package/dist/editor/components/Menu/SubMenu.d.ts +0 -10
- package/dist/editor/components/Menu/SubMenu.js +0 -14
- package/dist/editor/components/Menu/is-menu-item.d.ts +0 -5
- package/dist/editor/components/Menu/is-menu-item.js +0 -14
- package/dist/editor/components/Menu/portals.d.ts +0 -1
- package/dist/editor/components/Menu/portals.js +0 -15
- package/dist/editor/components/Menu/styles.d.ts +0 -11
- package/dist/editor/components/Menu/styles.js +0 -38
- package/dist/editor/components/MenuBuildIndicator.d.ts +0 -2
- package/dist/editor/components/MenuBuildIndicator.js +0 -45
- package/dist/editor/components/MenuToolbar.d.ts +0 -2
- package/dist/editor/components/MenuToolbar.js +0 -82
- package/dist/editor/components/ModalContainer.d.ts +0 -8
- package/dist/editor/components/ModalContainer.js +0 -34
- package/dist/editor/components/ModalHeader.d.ts +0 -4
- package/dist/editor/components/ModalHeader.js +0 -32
- package/dist/editor/components/Modals.d.ts +0 -2
- package/dist/editor/components/Modals.js +0 -23
- package/dist/editor/components/ModalsProvider.d.ts +0 -4
- package/dist/editor/components/ModalsProvider.js +0 -17
- package/dist/editor/components/MuteToggle.d.ts +0 -5
- package/dist/editor/components/MuteToggle.js +0 -19
- package/dist/editor/components/NewComposition/CancelButton.d.ts +0 -5
- package/dist/editor/components/NewComposition/CancelButton.js +0 -20
- package/dist/editor/components/NewComposition/ComboBox.d.ts +0 -29
- package/dist/editor/components/NewComposition/ComboBox.js +0 -159
- package/dist/editor/components/NewComposition/CopyHint.d.ts +0 -2
- package/dist/editor/components/NewComposition/CopyHint.js +0 -30
- package/dist/editor/components/NewComposition/InputDragger.d.ts +0 -12
- package/dist/editor/components/NewComposition/InputDragger.js +0 -122
- package/dist/editor/components/NewComposition/MenuContent.d.ts +0 -12
- package/dist/editor/components/NewComposition/MenuContent.js +0 -245
- package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts +0 -7
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js +0 -20
- package/dist/editor/components/NewComposition/NewCompCode.d.ts +0 -9
- package/dist/editor/components/NewComposition/NewCompCode.js +0 -67
- package/dist/editor/components/NewComposition/NewCompDuration.d.ts +0 -6
- package/dist/editor/components/NewComposition/NewCompDuration.js +0 -23
- package/dist/editor/components/NewComposition/NewComposition.d.ts +0 -6
- package/dist/editor/components/NewComposition/NewComposition.js +0 -204
- package/dist/editor/components/NewComposition/RemInput.d.ts +0 -17
- package/dist/editor/components/NewComposition/RemInput.js +0 -74
- package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +0 -8
- package/dist/editor/components/NewComposition/RemInputTypeColor.js +0 -53
- package/dist/editor/components/NewComposition/RemTextarea.d.ts +0 -7
- package/dist/editor/components/NewComposition/RemTextarea.js +0 -92
- package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts +0 -5
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js +0 -26
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts +0 -8
- package/dist/editor/components/NewComposition/ValidationMessage.js +0 -34
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts +0 -4
- package/dist/editor/components/NewComposition/new-comp-layout.js +0 -20
- package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts +0 -1
- package/dist/editor/components/NewComposition/render-aspect-ratio.js +0 -23
- package/dist/editor/components/NoRegisterRoot.d.ts +0 -2
- package/dist/editor/components/NoRegisterRoot.js +0 -41
- package/dist/editor/components/Notifications/ColorDot.d.ts +0 -4
- package/dist/editor/components/Notifications/ColorDot.js +0 -22
- package/dist/editor/components/Notifications/Notification.d.ts +0 -8
- package/dist/editor/components/Notifications/Notification.js +0 -31
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +0 -14
- package/dist/editor/components/Notifications/NotificationCenter.js +0 -50
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +0 -2
- package/dist/editor/components/Notifications/ServerDisconnected.js +0 -53
- package/dist/editor/components/OpenEditorButton.d.ts +0 -2
- package/dist/editor/components/OpenEditorButton.js +0 -55
- package/dist/editor/components/OptionsPanel.d.ts +0 -8
- package/dist/editor/components/OptionsPanel.js +0 -112
- package/dist/editor/components/PlayPause.d.ts +0 -5
- package/dist/editor/components/PlayPause.js +0 -209
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +0 -4
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +0 -80
- package/dist/editor/components/PlaybackRatePersistor.d.ts +0 -2
- package/dist/editor/components/PlaybackRatePersistor.js +0 -17
- package/dist/editor/components/PlaybackRateSelector.d.ts +0 -5
- package/dist/editor/components/PlaybackRateSelector.js +0 -59
- package/dist/editor/components/PlayerEmitterContext.d.ts +0 -4
- package/dist/editor/components/PlayerEmitterContext.js +0 -11
- package/dist/editor/components/Preview.d.ts +0 -13
- package/dist/editor/components/Preview.js +0 -158
- package/dist/editor/components/PreviewToolbar.d.ts +0 -2
- package/dist/editor/components/PreviewToolbar.js +0 -55
- package/dist/editor/components/QuickSwitcher/AlgoliaCredit.d.ts +0 -2
- package/dist/editor/components/QuickSwitcher/AlgoliaCredit.js +0 -11
- package/dist/editor/components/QuickSwitcher/NoResults.d.ts +0 -6
- package/dist/editor/components/QuickSwitcher/NoResults.js +0 -20
- package/dist/editor/components/QuickSwitcher/QuickSwitcher.d.ts +0 -7
- package/dist/editor/components/QuickSwitcher/QuickSwitcher.js +0 -16
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.d.ts +0 -6
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +0 -303
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.d.ts +0 -21
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +0 -112
- package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +0 -2
- package/dist/editor/components/QuickSwitcher/algolia-search.js +0 -62
- package/dist/editor/components/QuickSwitcher/fuzzy-search.d.ts +0 -2
- package/dist/editor/components/QuickSwitcher/fuzzy-search.js +0 -26
- package/dist/editor/components/RenderButton.d.ts +0 -2
- package/dist/editor/components/RenderButton.js +0 -94
- package/dist/editor/components/RenderModal/CliCopyButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/CliCopyButton.js +0 -60
- package/dist/editor/components/RenderModal/CrfSetting.d.ts +0 -15
- package/dist/editor/components/RenderModal/CrfSetting.js +0 -42
- package/dist/editor/components/RenderModal/DataEditor.d.ts +0 -22
- package/dist/editor/components/RenderModal/DataEditor.js +0 -301
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.d.ts +0 -8
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +0 -17
- package/dist/editor/components/RenderModal/EnvInput.d.ts +0 -11
- package/dist/editor/components/RenderModal/EnvInput.js +0 -74
- package/dist/editor/components/RenderModal/FrameRangeSetting.d.ts +0 -8
- package/dist/editor/components/RenderModal/FrameRangeSetting.js +0 -26
- package/dist/editor/components/RenderModal/GuiRenderStatus.d.ts +0 -5
- package/dist/editor/components/RenderModal/GuiRenderStatus.js +0 -78
- package/dist/editor/components/RenderModal/InfoBubble.d.ts +0 -5
- package/dist/editor/components/RenderModal/InfoBubble.js +0 -116
- package/dist/editor/components/RenderModal/InfoTooltip.d.ts +0 -6
- package/dist/editor/components/RenderModal/InfoTooltip.js +0 -41
- package/dist/editor/components/RenderModal/InlineEyeIcon.d.ts +0 -5
- package/dist/editor/components/RenderModal/InlineEyeIcon.js +0 -17
- package/dist/editor/components/RenderModal/InlineRemoveButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/InlineRemoveButton.js +0 -17
- package/dist/editor/components/RenderModal/JpegQualitySetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/JpegQualitySetting.js +0 -12
- package/dist/editor/components/RenderModal/MultiRangeSlider.d.ts +0 -12
- package/dist/editor/components/RenderModal/MultiRangeSlider.js +0 -47
- package/dist/editor/components/RenderModal/MutedSetting.d.ts +0 -8
- package/dist/editor/components/RenderModal/MutedSetting.js +0 -17
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.js +0 -26
- package/dist/editor/components/RenderModal/NumberSetting.d.ts +0 -12
- package/dist/editor/components/RenderModal/NumberSetting.js +0 -29
- package/dist/editor/components/RenderModal/OptionExplainer.d.ts +0 -5
- package/dist/editor/components/RenderModal/OptionExplainer.js +0 -56
- package/dist/editor/components/RenderModal/RenderModal.d.ts +0 -39
- package/dist/editor/components/RenderModal/RenderModal.js +0 -790
- package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +0 -34
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +0 -109
- package/dist/editor/components/RenderModal/RenderModalAudio.d.ts +0 -17
- package/dist/editor/components/RenderModal/RenderModalAudio.js +0 -46
- package/dist/editor/components/RenderModal/RenderModalBasic.d.ts +0 -23
- package/dist/editor/components/RenderModal/RenderModalBasic.js +0 -80
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.d.ts +0 -5
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.js +0 -55
- package/dist/editor/components/RenderModal/RenderModalGif.d.ts +0 -9
- package/dist/editor/components/RenderModal/RenderModalGif.js +0 -19
- package/dist/editor/components/RenderModal/RenderModalHr.d.ts +0 -2
- package/dist/editor/components/RenderModal/RenderModalHr.js +0 -18
- package/dist/editor/components/RenderModal/RenderModalInput.d.ts +0 -12
- package/dist/editor/components/RenderModal/RenderModalInput.js +0 -13
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.d.ts +0 -13
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.js +0 -143
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +0 -30
- package/dist/editor/components/RenderModal/RenderModalPicture.js +0 -73
- package/dist/editor/components/RenderModal/RenderStatusModal.d.ts +0 -4
- package/dist/editor/components/RenderModal/RenderStatusModal.js +0 -70
- package/dist/editor/components/RenderModal/ScaleSetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/ScaleSetting.js +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.d.ts +0 -7
- package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.js +0 -26
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +0 -13
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +0 -69
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.d.ts +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +0 -60
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +0 -32
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.js +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +0 -5
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.js +0 -18
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.js +0 -11
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.d.ts +0 -5
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.js +0 -13
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +0 -83
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +0 -16
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +0 -28
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +0 -28
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +0 -71
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +0 -62
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.js +0 -10
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDiscriminatedUnionEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDiscriminatedUnionEditor.js +0 -83
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +0 -16
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +0 -31
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +0 -55
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.d.ts +0 -6
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.js +0 -48
- package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.d.ts +0 -7
- package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.js +0 -27
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +0 -9
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +0 -27
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +0 -10
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +0 -69
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +0 -22
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +0 -88
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +0 -10
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +0 -19
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +0 -50
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.js +0 -56
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +0 -34
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +0 -101
- package/dist/editor/components/RenderModal/SchemaEditor/ZodTextareaEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodTextareaEditor.js +0 -42
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +0 -49
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.js +0 -163
- package/dist/editor/components/RenderModal/SchemaEditor/deep-equal.d.ts +0 -1
- package/dist/editor/components/RenderModal/SchemaEditor/deep-equal.js +0 -30
- package/dist/editor/components/RenderModal/SchemaEditor/extract-enum-json-paths.d.ts +0 -3
- package/dist/editor/components/RenderModal/SchemaEditor/extract-enum-json-paths.js +0 -126
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.d.ts +0 -21
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.js +0 -85
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +0 -1
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.js +0 -2
- package/dist/editor/components/RenderModal/WarningIndicatorButton.d.ts +0 -6
- package/dist/editor/components/RenderModal/WarningIndicatorButton.js +0 -49
- package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +0 -19
- package/dist/editor/components/RenderModal/get-render-modal-warnings.js +0 -60
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.d.ts +0 -2
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.js +0 -18
- package/dist/editor/components/RenderModal/human-readable-codec.d.ts +0 -2
- package/dist/editor/components/RenderModal/human-readable-codec.js +0 -36
- package/dist/editor/components/RenderModal/layout.d.ts +0 -6
- package/dist/editor/components/RenderModal/layout.js +0 -42
- package/dist/editor/components/RenderModal/out-name-checker.d.ts +0 -14
- package/dist/editor/components/RenderModal/out-name-checker.js +0 -75
- package/dist/editor/components/RenderPreview.d.ts +0 -6
- package/dist/editor/components/RenderPreview.js +0 -31
- package/dist/editor/components/RenderQueue/CircularProgress.d.ts +0 -5
- package/dist/editor/components/RenderQueue/CircularProgress.js +0 -18
- package/dist/editor/components/RenderQueue/RenderQueueCopyToClipboard.d.ts +0 -6
- package/dist/editor/components/RenderQueue/RenderQueueCopyToClipboard.js +0 -52
- package/dist/editor/components/RenderQueue/RenderQueueError.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueError.js +0 -26
- package/dist/editor/components/RenderQueue/RenderQueueItem.d.ts +0 -6
- package/dist/editor/components/RenderQueue/RenderQueueItem.js +0 -94
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.js +0 -27
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.js +0 -74
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.js +0 -28
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.js +0 -18
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.js +0 -26
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +0 -37
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.js +0 -27
- package/dist/editor/components/RenderQueue/SuccessIcon.d.ts +0 -2
- package/dist/editor/components/RenderQueue/SuccessIcon.js +0 -14
- package/dist/editor/components/RenderQueue/actions.d.ts +0 -87
- package/dist/editor/components/RenderQueue/actions.js +0 -176
- package/dist/editor/components/RenderQueue/context.d.ts +0 -18
- package/dist/editor/components/RenderQueue/context.js +0 -49
- package/dist/editor/components/RenderQueue/index.d.ts +0 -2
- package/dist/editor/components/RenderQueue/index.js +0 -103
- package/dist/editor/components/RenderQueue/item-style.d.ts +0 -2
- package/dist/editor/components/RenderQueue/item-style.js +0 -21
- package/dist/editor/components/RendersTab.d.ts +0 -6
- package/dist/editor/components/RendersTab.js +0 -51
- package/dist/editor/components/ResetZoomButton.d.ts +0 -4
- package/dist/editor/components/ResetZoomButton.js +0 -9
- package/dist/editor/components/SegmentedControl.d.ts +0 -11
- package/dist/editor/components/SegmentedControl.js +0 -65
- package/dist/editor/components/SetTimelineInOutProvider.d.ts +0 -4
- package/dist/editor/components/SetTimelineInOutProvider.js +0 -20
- package/dist/editor/components/ShowGuidesProvider.d.ts +0 -4
- package/dist/editor/components/ShowGuidesProvider.js +0 -43
- package/dist/editor/components/ShowRulersProvider.d.ts +0 -4
- package/dist/editor/components/ShowRulersProvider.js +0 -24
- package/dist/editor/components/SidebarCollapserControls.d.ts +0 -2
- package/dist/editor/components/SidebarCollapserControls.js +0 -138
- package/dist/editor/components/SidebarRenderButton.d.ts +0 -6
- package/dist/editor/components/SidebarRenderButton.js +0 -74
- package/dist/editor/components/SizeSelector.d.ts +0 -5
- package/dist/editor/components/SizeSelector.js +0 -120
- package/dist/editor/components/Spinner.d.ts +0 -5
- package/dist/editor/components/Spinner.js +0 -41
- package/dist/editor/components/Splitter/SplitterContainer.d.ts +0 -10
- package/dist/editor/components/Splitter/SplitterContainer.js +0 -68
- package/dist/editor/components/Splitter/SplitterContext.d.ts +0 -22
- package/dist/editor/components/Splitter/SplitterContext.js +0 -19
- package/dist/editor/components/Splitter/SplitterElement.d.ts +0 -5
- package/dist/editor/components/Splitter/SplitterElement.js +0 -22
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +0 -5
- package/dist/editor/components/Splitter/SplitterHandle.js +0 -128
- package/dist/editor/components/StaticFilePreview.d.ts +0 -6
- package/dist/editor/components/StaticFilePreview.js +0 -39
- package/dist/editor/components/Tabs/index.d.ts +0 -11
- package/dist/editor/components/Tabs/index.js +0 -56
- package/dist/editor/components/Tabs/vertical.d.ts +0 -7
- package/dist/editor/components/Tabs/vertical.js +0 -43
- package/dist/editor/components/TextViewer.d.ts +0 -4
- package/dist/editor/components/TextViewer.js +0 -26
- package/dist/editor/components/TimeValue.d.ts +0 -2
- package/dist/editor/components/TimeValue.js +0 -41
- package/dist/editor/components/Timeline/LoopedIndicator.d.ts +0 -2
- package/dist/editor/components/Timeline/LoopedIndicator.js +0 -44
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts +0 -4
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +0 -22
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +0 -5
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +0 -24
- package/dist/editor/components/Timeline/Timeline.d.ts +0 -2
- package/dist/editor/components/Timeline/Timeline.js +0 -92
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +0 -5
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +0 -18
- package/dist/editor/components/Timeline/TimelineDragHandler.d.ts +0 -2
- package/dist/editor/components/Timeline/TimelineDragHandler.js +0 -445
- package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts +0 -4
- package/dist/editor/components/Timeline/TimelineInOutPointer.js +0 -37
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +0 -10
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +0 -43
- package/dist/editor/components/Timeline/TimelineList.d.ts +0 -8
- package/dist/editor/components/Timeline/TimelineList.js +0 -21
- package/dist/editor/components/Timeline/TimelineListItem.d.ts +0 -13
- package/dist/editor/components/Timeline/TimelineListItem.js +0 -104
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +0 -2
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +0 -77
- package/dist/editor/components/Timeline/TimelineScrollable.d.ts +0 -4
- package/dist/editor/components/Timeline/TimelineScrollable.js +0 -26
- package/dist/editor/components/Timeline/TimelineSequence.d.ts +0 -5
- package/dist/editor/components/Timeline/TimelineSequence.js +0 -64
- package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts +0 -5
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +0 -32
- package/dist/editor/components/Timeline/TimelineSlider.d.ts +0 -5
- package/dist/editor/components/Timeline/TimelineSlider.js +0 -79
- package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts +0 -2
- package/dist/editor/components/Timeline/TimelineSliderHandle.js +0 -14
- package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +0 -5
- package/dist/editor/components/Timeline/TimelineTimeIndicators.js +0 -166
- package/dist/editor/components/Timeline/TimelineTracks.d.ts +0 -8
- package/dist/editor/components/Timeline/TimelineTracks.js +0 -37
- package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts +0 -4
- package/dist/editor/components/Timeline/TimelineVideoInfo.js +0 -51
- package/dist/editor/components/Timeline/TimelineWidthProvider.d.ts +0 -7
- package/dist/editor/components/Timeline/TimelineWidthProvider.js +0 -17
- package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +0 -2
- package/dist/editor/components/Timeline/TimelineZoomControls.js +0 -46
- package/dist/editor/components/Timeline/imperative-state.d.ts +0 -8
- package/dist/editor/components/Timeline/imperative-state.js +0 -39
- package/dist/editor/components/Timeline/is-collapsed.d.ts +0 -4
- package/dist/editor/components/Timeline/is-collapsed.js +0 -26
- package/dist/editor/components/Timeline/timeline-refs.d.ts +0 -4
- package/dist/editor/components/Timeline/timeline-refs.js +0 -10
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -43
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +0 -217
- package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +0 -19
- package/dist/editor/components/Timeline/timeline-state-reducer.js +0 -47
- package/dist/editor/components/TimelineInOutToggle.d.ts +0 -9
- package/dist/editor/components/TimelineInOutToggle.js +0 -240
- package/dist/editor/components/TopPanel.d.ts +0 -3
- package/dist/editor/components/TopPanel.js +0 -72
- package/dist/editor/components/UpdateCheck.d.ts +0 -15
- package/dist/editor/components/UpdateCheck.js +0 -95
- package/dist/editor/components/UpdateModal/OpenIssueButton.d.ts +0 -4
- package/dist/editor/components/UpdateModal/OpenIssueButton.js +0 -37
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts +0 -6
- package/dist/editor/components/UpdateModal/UpdateModal.js +0 -63
- package/dist/editor/components/ZoomGesturesProvider.d.ts +0 -4
- package/dist/editor/components/ZoomGesturesProvider.js +0 -24
- package/dist/editor/components/ZoomPersistor.d.ts +0 -5
- package/dist/editor/components/ZoomPersistor.js +0 -64
- package/dist/editor/components/get-zod-if-possible.d.ts +0 -10
- package/dist/editor/components/get-zod-if-possible.js +0 -79
- package/dist/editor/components/layout.d.ts +0 -26
- package/dist/editor/components/layout.js +0 -48
- package/dist/editor/helpers/calculate-timeline.d.ts +0 -6
- package/dist/editor/helpers/calculate-timeline.js +0 -84
- package/dist/editor/helpers/checkerboard-background.d.ts +0 -4
- package/dist/editor/helpers/checkerboard-background.js +0 -30
- package/dist/editor/helpers/client-id.d.ts +0 -17
- package/dist/editor/helpers/client-id.js +0 -46
- package/dist/editor/helpers/colors.d.ts +0 -24
- package/dist/editor/helpers/colors.js +0 -37
- package/dist/editor/helpers/convert-env-variables.d.ts +0 -8
- package/dist/editor/helpers/convert-env-variables.js +0 -20
- package/dist/editor/helpers/copy-text.d.ts +0 -1
- package/dist/editor/helpers/copy-text.js +0 -23
- package/dist/editor/helpers/create-folder-tree.d.ts +0 -17
- package/dist/editor/helpers/create-folder-tree.js +0 -134
- package/dist/editor/helpers/document-title.d.ts +0 -4
- package/dist/editor/helpers/document-title.js +0 -67
- package/dist/editor/helpers/editor-ruler.d.ts +0 -53
- package/dist/editor/helpers/editor-ruler.js +0 -183
- package/dist/editor/helpers/get-asset-metadata.d.ts +0 -11
- package/dist/editor/helpers/get-asset-metadata.js +0 -64
- package/dist/editor/helpers/get-effective-translation.d.ts +0 -26
- package/dist/editor/helpers/get-effective-translation.js +0 -45
- package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +0 -1
- package/dist/editor/helpers/get-left-of-timeline-slider.js +0 -9
- package/dist/editor/helpers/get-sequence-visible-range.d.ts +0 -4
- package/dist/editor/helpers/get-sequence-visible-range.js +0 -39
- package/dist/editor/helpers/get-timeline-nestedness.d.ts +0 -2
- package/dist/editor/helpers/get-timeline-nestedness.js +0 -14
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +0 -6
- package/dist/editor/helpers/get-timeline-sequence-hash.js +0 -33
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +0 -13
- package/dist/editor/helpers/get-timeline-sequence-layout.js +0 -45
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +0 -18
- package/dist/editor/helpers/get-timeline-sequence-sort-key.js +0 -24
- package/dist/editor/helpers/is-composition-still.d.ts +0 -3
- package/dist/editor/helpers/is-composition-still.js +0 -10
- package/dist/editor/helpers/is-current-selected-still.d.ts +0 -6
- package/dist/editor/helpers/is-current-selected-still.js +0 -26
- package/dist/editor/helpers/noop.d.ts +0 -1
- package/dist/editor/helpers/noop.js +0 -5
- package/dist/editor/helpers/open-in-editor.d.ts +0 -2
- package/dist/editor/helpers/open-in-editor.js +0 -22
- package/dist/editor/helpers/persist-open-folders.d.ts +0 -6
- package/dist/editor/helpers/persist-open-folders.js +0 -22
- package/dist/editor/helpers/pick-color.d.ts +0 -1
- package/dist/editor/helpers/pick-color.js +0 -41
- package/dist/editor/helpers/presets-labels.d.ts +0 -2
- package/dist/editor/helpers/presets-labels.js +0 -37
- package/dist/editor/helpers/prores-labels.d.ts +0 -2
- package/dist/editor/helpers/prores-labels.js +0 -25
- package/dist/editor/helpers/render-modal-sections.d.ts +0 -9
- package/dist/editor/helpers/render-modal-sections.js +0 -35
- package/dist/editor/helpers/timeline-layout.d.ts +0 -3
- package/dist/editor/helpers/timeline-layout.js +0 -6
- package/dist/editor/helpers/use-breakpoint.d.ts +0 -1
- package/dist/editor/helpers/use-breakpoint.js +0 -17
- package/dist/editor/helpers/use-file-existence.d.ts +0 -1
- package/dist/editor/helpers/use-file-existence.js +0 -66
- package/dist/editor/helpers/use-keybinding.d.ts +0 -16
- package/dist/editor/helpers/use-keybinding.js +0 -70
- package/dist/editor/helpers/use-menu-structure.d.ts +0 -7
- package/dist/editor/helpers/use-menu-structure.js +0 -770
- package/dist/editor/helpers/use-studio-canvas-dimensions.d.ts +0 -16
- package/dist/editor/helpers/use-studio-canvas-dimensions.js +0 -59
- package/dist/editor/helpers/validate-new-comp-data.d.ts +0 -4
- package/dist/editor/helpers/validate-new-comp-data.js +0 -40
- package/dist/editor/icons/Checkmark.d.ts +0 -1
- package/dist/editor/icons/Checkmark.js +0 -10
- package/dist/editor/icons/audio.d.ts +0 -2
- package/dist/editor/icons/audio.js +0 -6
- package/dist/editor/icons/caret.d.ts +0 -6
- package/dist/editor/icons/caret.js +0 -32
- package/dist/editor/icons/clipboard.d.ts +0 -4
- package/dist/editor/icons/clipboard.js +0 -6
- package/dist/editor/icons/data.d.ts +0 -2
- package/dist/editor/icons/data.js +0 -8
- package/dist/editor/icons/file.d.ts +0 -4
- package/dist/editor/icons/file.js +0 -6
- package/dist/editor/icons/folder.d.ts +0 -11
- package/dist/editor/icons/folder.js +0 -16
- package/dist/editor/icons/frame.d.ts +0 -2
- package/dist/editor/icons/frame.js +0 -6
- package/dist/editor/icons/gear.d.ts +0 -2
- package/dist/editor/icons/gear.js +0 -6
- package/dist/editor/icons/gif.d.ts +0 -2
- package/dist/editor/icons/gif.js +0 -6
- package/dist/editor/icons/jump-to-start.d.ts +0 -2
- package/dist/editor/icons/jump-to-start.js +0 -8
- package/dist/editor/icons/keys.d.ts +0 -4
- package/dist/editor/icons/keys.js +0 -20
- package/dist/editor/icons/lock.d.ts +0 -4
- package/dist/editor/icons/lock.js +0 -12
- package/dist/editor/icons/media-volume.d.ts +0 -3
- package/dist/editor/icons/media-volume.js +0 -14
- package/dist/editor/icons/minus.d.ts +0 -3
- package/dist/editor/icons/minus.js +0 -8
- package/dist/editor/icons/pause.d.ts +0 -3
- package/dist/editor/icons/pause.js +0 -6
- package/dist/editor/icons/play.d.ts +0 -3
- package/dist/editor/icons/play.js +0 -6
- package/dist/editor/icons/plus.d.ts +0 -5
- package/dist/editor/icons/plus.js +0 -8
- package/dist/editor/icons/render.d.ts +0 -9
- package/dist/editor/icons/render.js +0 -12
- package/dist/editor/icons/step-back.d.ts +0 -3
- package/dist/editor/icons/step-back.js +0 -8
- package/dist/editor/icons/step-forward.d.ts +0 -3
- package/dist/editor/icons/step-forward.js +0 -8
- package/dist/editor/icons/still.d.ts +0 -5
- package/dist/editor/icons/still.js +0 -8
- package/dist/editor/icons/timelineInOutPointer.d.ts +0 -4
- package/dist/editor/icons/timelineInOutPointer.js +0 -12
- package/dist/editor/icons/video.d.ts +0 -5
- package/dist/editor/icons/video.js +0 -8
- package/dist/editor/state/aspect-ratio-locked.d.ts +0 -2
- package/dist/editor/state/aspect-ratio-locked.js +0 -16
- package/dist/editor/state/canvas-ref.d.ts +0 -2
- package/dist/editor/state/canvas-ref.js +0 -5
- package/dist/editor/state/checkerboard.d.ts +0 -9
- package/dist/editor/state/checkerboard.js +0 -17
- package/dist/editor/state/editor-guides.d.ts +0 -25
- package/dist/editor/state/editor-guides.js +0 -34
- package/dist/editor/state/editor-rulers.d.ts +0 -14
- package/dist/editor/state/editor-rulers.js +0 -24
- package/dist/editor/state/editor-zoom-gestures.d.ts +0 -9
- package/dist/editor/state/editor-zoom-gestures.js +0 -17
- package/dist/editor/state/folders.d.ts +0 -13
- package/dist/editor/state/folders.js +0 -30
- package/dist/editor/state/highest-z-index.d.ts +0 -11
- package/dist/editor/state/highest-z-index.js +0 -35
- package/dist/editor/state/in-out.d.ts +0 -13
- package/dist/editor/state/in-out.js +0 -40
- package/dist/editor/state/input-dragger-click-lock.d.ts +0 -2
- package/dist/editor/state/input-dragger-click-lock.js +0 -10
- package/dist/editor/state/keybindings.d.ts +0 -20
- package/dist/editor/state/keybindings.js +0 -43
- package/dist/editor/state/loop.d.ts +0 -2
- package/dist/editor/state/loop.js +0 -13
- package/dist/editor/state/marks.d.ts +0 -3
- package/dist/editor/state/marks.js +0 -16
- package/dist/editor/state/modals.d.ts +0 -61
- package/dist/editor/state/modals.js +0 -8
- package/dist/editor/state/mute.d.ts +0 -2
- package/dist/editor/state/mute.js +0 -13
- package/dist/editor/state/playbackrate.d.ts +0 -2
- package/dist/editor/state/playbackrate.js +0 -19
- package/dist/editor/state/preview-size.d.ts +0 -12
- package/dist/editor/state/preview-size.js +0 -63
- package/dist/editor/state/render-frame.d.ts +0 -1
- package/dist/editor/state/render-frame.js +0 -20
- package/dist/editor/state/sidebar.d.ts +0 -16
- package/dist/editor/state/sidebar.js +0 -69
- package/dist/editor/state/timeline-ref.d.ts +0 -7
- package/dist/editor/state/timeline-ref.js +0 -5
- package/dist/editor/state/timeline-zoom.d.ts +0 -10
- package/dist/editor/state/timeline-zoom.js +0 -38
- package/dist/editor/state/timeline.d.ts +0 -1
- package/dist/editor/state/timeline.js +0 -18
- package/dist/editor/state/z-index.d.ts +0 -12
- package/dist/editor/state/z-index.js +0 -96
- package/dist/event-source-events.d.ts +0 -31
- package/dist/event-source-events.js +0 -2
- package/dist/event-source.d.ts +0 -3
- package/dist/event-source.js +0 -67
- package/dist/file-watcher.d.ts +0 -9
- package/dist/file-watcher.js +0 -35
- package/dist/format-bytes.d.ts +0 -6
- package/dist/format-bytes.js +0 -103
- package/dist/get-default-out-name.d.ts +0 -5
- package/dist/get-default-out-name.js +0 -10
- package/dist/get-latest-remotion-version.d.ts +0 -1
- package/dist/get-latest-remotion-version.js +0 -31
- package/dist/get-network-address.d.ts +0 -1
- package/dist/get-network-address.js +0 -16
- package/dist/preview-server/api-routes.d.ts +0 -4
- package/dist/preview-server/api-routes.js +0 -25
- package/dist/preview-server/api-types.d.ts +0 -29
- package/dist/preview-server/api-types.js +0 -2
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +0 -8
- package/dist/preview-server/dev-middleware/compatible-api.js +0 -20
- package/dist/preview-server/dev-middleware/get-paths.d.ts +0 -7
- package/dist/preview-server/dev-middleware/get-paths.js +0 -19
- package/dist/preview-server/dev-middleware/index.d.ts +0 -3
- package/dist/preview-server/dev-middleware/index.js +0 -27
- package/dist/preview-server/dev-middleware/middleware.d.ts +0 -9
- package/dist/preview-server/dev-middleware/middleware.js +0 -222
- package/dist/preview-server/dev-middleware/range-parser.d.ts +0 -15
- package/dist/preview-server/dev-middleware/range-parser.js +0 -96
- package/dist/preview-server/dev-middleware/ready.d.ts +0 -3
- package/dist/preview-server/dev-middleware/ready.js +0 -11
- package/dist/preview-server/dev-middleware/setup-hooks.d.ts +0 -2
- package/dist/preview-server/dev-middleware/setup-hooks.js +0 -53
- package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +0 -2
- package/dist/preview-server/dev-middleware/setup-output-filesystem.js +0 -13
- package/dist/preview-server/dev-middleware/types.d.ts +0 -10
- package/dist/preview-server/dev-middleware/types.js +0 -2
- package/dist/preview-server/env-supports-fs-recursive.d.ts +0 -1
- package/dist/preview-server/env-supports-fs-recursive.js +0 -18
- package/dist/preview-server/error-overlay/entry-basic.d.ts +0 -1
- package/dist/preview-server/error-overlay/entry-basic.js +0 -21
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +0 -11
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +0 -41
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +0 -7
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +0 -46
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +0 -24
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +0 -64
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +0 -3
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +0 -31
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +0 -3
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +0 -43
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +0 -4
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +0 -45
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +0 -4
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +0 -41
- package/dist/preview-server/error-overlay/react-overlay/index.d.ts +0 -2
- package/dist/preview-server/error-overlay/react-overlay/index.js +0 -21
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +0 -8
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +0 -88
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +0 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +0 -22
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +0 -14
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +0 -24
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +0 -7
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +0 -51
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +0 -2
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +0 -25
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +0 -16
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +0 -493
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +0 -2
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +0 -117
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +0 -40
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +0 -31
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +0 -2
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +0 -64
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +0 -4
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +0 -35
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +0 -11
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +0 -35
- package/dist/preview-server/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.d.ts +0 -2
- package/dist/preview-server/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.js +0 -18
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +0 -6
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +0 -48
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +0 -2
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +0 -23
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +0 -10
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +0 -52
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +0 -9
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +0 -61
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +0 -4
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +0 -69
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +0 -7
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +0 -38
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +0 -6
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +0 -39
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +0 -6
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +0 -105
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +0 -14
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +0 -50
- package/dist/preview-server/error-overlay/remotion-overlay/Retry.d.ts +0 -4
- package/dist/preview-server/error-overlay/remotion-overlay/Retry.js +0 -9
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +0 -5
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +0 -34
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +0 -6
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +0 -31
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +0 -8
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +0 -50
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +0 -2
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +0 -8
- package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +0 -5
- package/dist/preview-server/error-overlay/remotion-overlay/carets.js +0 -12
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +0 -10
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +0 -5
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +0 -49
- package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/index.js +0 -18
- package/dist/preview-server/file-existence-watchers.d.ts +0 -13
- package/dist/preview-server/file-existence-watchers.js +0 -62
- package/dist/preview-server/get-absolute-public-dir.d.ts +0 -4
- package/dist/preview-server/get-absolute-public-dir.js +0 -14
- package/dist/preview-server/get-package-manager.d.ts +0 -10
- package/dist/preview-server/get-package-manager.js +0 -62
- package/dist/preview-server/handler.d.ts +0 -11
- package/dist/preview-server/handler.js +0 -35
- package/dist/preview-server/hot-middleware/client.d.ts +0 -21
- package/dist/preview-server/hot-middleware/client.js +0 -179
- package/dist/preview-server/hot-middleware/index.d.ts +0 -102
- package/dist/preview-server/hot-middleware/index.js +0 -149
- package/dist/preview-server/hot-middleware/process-update.d.ts +0 -7
- package/dist/preview-server/hot-middleware/process-update.js +0 -162
- package/dist/preview-server/hot-middleware/types.d.ts +0 -27
- package/dist/preview-server/hot-middleware/types.js +0 -10
- package/dist/preview-server/live-events.d.ts +0 -10
- package/dist/preview-server/live-events.js +0 -76
- package/dist/preview-server/parse-body.d.ts +0 -2
- package/dist/preview-server/parse-body.js +0 -16
- package/dist/preview-server/project-info.d.ts +0 -5
- package/dist/preview-server/project-info.js +0 -32
- package/dist/preview-server/public-folder.d.ts +0 -12
- package/dist/preview-server/public-folder.js +0 -58
- package/dist/preview-server/render-queue/copy-still-to-clipboard.d.ts +0 -1
- package/dist/preview-server/render-queue/copy-still-to-clipboard.js +0 -8
- package/dist/preview-server/render-queue/get-default-video-contexts.d.ts +0 -14
- package/dist/preview-server/render-queue/get-default-video-contexts.js +0 -29
- package/dist/preview-server/render-queue/job.d.ts +0 -187
- package/dist/preview-server/render-queue/job.js +0 -2
- package/dist/preview-server/render-queue/make-retry-payload.d.ts +0 -3
- package/dist/preview-server/render-queue/make-retry-payload.js +0 -127
- package/dist/preview-server/render-queue/open-directory-in-finder.d.ts +0 -1
- package/dist/preview-server/render-queue/open-directory-in-finder.js +0 -49
- package/dist/preview-server/render-queue/process-still.d.ts +0 -8
- package/dist/preview-server/render-queue/process-still.js +0 -49
- package/dist/preview-server/render-queue/process-video.d.ts +0 -10
- package/dist/preview-server/render-queue/process-video.js +0 -68
- package/dist/preview-server/render-queue/queue.d.ts +0 -11
- package/dist/preview-server/render-queue/queue.js +0 -221
- package/dist/preview-server/routes/add-render.d.ts +0 -3
- package/dist/preview-server/routes/add-render.js +0 -115
- package/dist/preview-server/routes/can-update-default-props.d.ts +0 -4
- package/dist/preview-server/routes/can-update-default-props.js +0 -40
- package/dist/preview-server/routes/cancel-render.d.ts +0 -3
- package/dist/preview-server/routes/cancel-render.js +0 -9
- package/dist/preview-server/routes/copy-still-to-clipboard-handler.d.ts +0 -3
- package/dist/preview-server/routes/copy-still-to-clipboard-handler.js +0 -17
- package/dist/preview-server/routes/open-in-file-explorer.d.ts +0 -3
- package/dist/preview-server/routes/open-in-file-explorer.js +0 -8
- package/dist/preview-server/routes/remove-render.d.ts +0 -3
- package/dist/preview-server/routes/remove-render.js +0 -9
- package/dist/preview-server/routes/subscribe-to-file-existence.d.ts +0 -3
- package/dist/preview-server/routes/subscribe-to-file-existence.js +0 -13
- package/dist/preview-server/routes/unsubscribe-from-file-existence.d.ts +0 -3
- package/dist/preview-server/routes/unsubscribe-from-file-existence.js +0 -13
- package/dist/preview-server/routes/update-available.d.ts +0 -3
- package/dist/preview-server/routes/update-available.js +0 -9
- package/dist/preview-server/routes/update-default-props.d.ts +0 -3
- package/dist/preview-server/routes/update-default-props.js +0 -34
- package/dist/preview-server/routes.d.ts +0 -18
- package/dist/preview-server/routes.js +0 -272
- package/dist/preview-server/serve-static.d.ts +0 -14
- package/dist/preview-server/serve-static.js +0 -75
- package/dist/preview-server/start-server.d.ts +0 -25
- package/dist/preview-server/start-server.js +0 -125
- package/dist/preview-server/update-available.d.ts +0 -3
- package/dist/preview-server/update-available.js +0 -47
- package/dist/previewEntry.d.ts +0 -1
- package/dist/previewEntry.js +0 -26
- package/dist/required-chromium-options.d.ts +0 -3
- package/dist/required-chromium-options.js +0 -2
- package/dist/server-ready-comment.d.ts +0 -2
- package/dist/server-ready-comment.js +0 -13
- package/dist/smooth-zoom.d.ts +0 -4
- package/dist/smooth-zoom.js +0 -20
- package/dist/step.d.ts +0 -1
- package/dist/step.js +0 -2
- package/dist/watch-root-file.d.ts +0 -1
- package/dist/watch-root-file.js +0 -22
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const editorNames: readonly ["atom", "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta", "brackets", "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl", "/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl", "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl", "code", "code-insiders", "vscodium", "/Applications/AppCode.app/Contents/MacOS/appcode", "/Applications/CLion.app/Contents/MacOS/clion", "/Applications/IntelliJ IDEA.app/Contents/MacOS/idea", "/Applications/PhpStorm.app/Contents/MacOS/phpstorm", "/Applications/PyCharm.app/Contents/MacOS/pycharm", "/Applications/PyCharm CE.app/Contents/MacOS/pycharm", "/Applications/RubyMine.app/Contents/MacOS/rubymine", "/Applications/WebStorm.app/Contents/MacOS/webstorm", "/Applications/GoLand.app/Contents/MacOS/goland", "/Applications/Rider.app/Contents/MacOS/rider", "mvim", "emacs", "gvim", "idea", "phpstorm", "pycharm", "rubymine", "subl", "sublime_text", "vim", "webstorm", "goland", "rider", "Brackets.exe", "Code.exe", "Code - Insiders.exe", "VSCodium.exe", "atom.exe", "sublime_text.exe", "notepad++.exe", "clion.exe", "clion64.exe", "idea.exe", "idea64.exe", "phpstorm.exe", "phpstorm64.exe", "pycharm.exe", "pycharm64.exe", "rubymine.exe", "rubymine64.exe", "webstorm.exe", "webstorm64.exe", "goland.exe", "goland64.exe", "rider.exe", "rider64.exe", "nano"];
|
|
2
|
-
export declare const getDisplayNameForEditor: (editor: Editor | null) => string | null;
|
|
3
|
-
type Editor = (typeof editorNames)[number];
|
|
4
|
-
type ProcessAndCommand = {
|
|
5
|
-
process: string;
|
|
6
|
-
command: Editor;
|
|
7
|
-
};
|
|
8
|
-
export declare function guessEditor(): Promise<ProcessAndCommand[]>;
|
|
9
|
-
export declare function launchEditor({ colNumber, editor, fileName, lineNumber, vsCodeNewWindow, }: {
|
|
10
|
-
fileName: string;
|
|
11
|
-
lineNumber: number;
|
|
12
|
-
colNumber: number;
|
|
13
|
-
editor: ProcessAndCommand;
|
|
14
|
-
vsCodeNewWindow: boolean;
|
|
15
|
-
}): Promise<boolean>;
|
|
16
|
-
export {};
|
|
@@ -1,493 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Duplicated in create-video/src/open-in-editor.ts
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
|
-
};
|
|
29
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.launchEditor = exports.guessEditor = exports.getDisplayNameForEditor = void 0;
|
|
31
|
-
const node_child_process_1 = __importStar(require("node:child_process"));
|
|
32
|
-
const node_fs_1 = __importDefault(require("node:fs"));
|
|
33
|
-
const node_os_1 = __importDefault(require("node:os"));
|
|
34
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
35
|
-
const node_util_1 = __importDefault(require("node:util"));
|
|
36
|
-
const log_1 = require("../../../../log");
|
|
37
|
-
const execProm = node_util_1.default.promisify(node_child_process_1.exec);
|
|
38
|
-
const isVsCodeDerivative = (editor) => {
|
|
39
|
-
return (editor === 'code' ||
|
|
40
|
-
editor === 'code-insiders' ||
|
|
41
|
-
editor === 'Code.exe' ||
|
|
42
|
-
editor === 'vscodium' ||
|
|
43
|
-
editor === 'VSCodium.exe' ||
|
|
44
|
-
editor === 'Code - Insiders.exe');
|
|
45
|
-
};
|
|
46
|
-
function isTerminalEditor(editor) {
|
|
47
|
-
switch (editor) {
|
|
48
|
-
case 'vim':
|
|
49
|
-
case 'emacs':
|
|
50
|
-
case 'nano':
|
|
51
|
-
return true;
|
|
52
|
-
default:
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
const editorNames = [
|
|
57
|
-
'atom',
|
|
58
|
-
'/Applications/Atom Beta.app/Contents/MacOS/Atom Beta',
|
|
59
|
-
'brackets',
|
|
60
|
-
'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl',
|
|
61
|
-
'/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl',
|
|
62
|
-
'/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl',
|
|
63
|
-
'code',
|
|
64
|
-
'code-insiders',
|
|
65
|
-
'vscodium',
|
|
66
|
-
'/Applications/AppCode.app/Contents/MacOS/appcode',
|
|
67
|
-
'/Applications/CLion.app/Contents/MacOS/clion',
|
|
68
|
-
'/Applications/IntelliJ IDEA.app/Contents/MacOS/idea',
|
|
69
|
-
'/Applications/PhpStorm.app/Contents/MacOS/phpstorm',
|
|
70
|
-
'/Applications/PyCharm.app/Contents/MacOS/pycharm',
|
|
71
|
-
'/Applications/PyCharm CE.app/Contents/MacOS/pycharm',
|
|
72
|
-
'/Applications/RubyMine.app/Contents/MacOS/rubymine',
|
|
73
|
-
'/Applications/WebStorm.app/Contents/MacOS/webstorm',
|
|
74
|
-
'/Applications/GoLand.app/Contents/MacOS/goland',
|
|
75
|
-
'/Applications/Rider.app/Contents/MacOS/rider',
|
|
76
|
-
'mvim',
|
|
77
|
-
'emacs',
|
|
78
|
-
'gvim',
|
|
79
|
-
'idea',
|
|
80
|
-
'phpstorm',
|
|
81
|
-
'pycharm',
|
|
82
|
-
'rubymine',
|
|
83
|
-
'subl',
|
|
84
|
-
'sublime_text',
|
|
85
|
-
'vim',
|
|
86
|
-
'webstorm',
|
|
87
|
-
'goland',
|
|
88
|
-
'rider',
|
|
89
|
-
'Brackets.exe',
|
|
90
|
-
'Code.exe',
|
|
91
|
-
'Code - Insiders.exe',
|
|
92
|
-
'VSCodium.exe',
|
|
93
|
-
'atom.exe',
|
|
94
|
-
'sublime_text.exe',
|
|
95
|
-
'notepad++.exe',
|
|
96
|
-
'clion.exe',
|
|
97
|
-
'clion64.exe',
|
|
98
|
-
'idea.exe',
|
|
99
|
-
'idea64.exe',
|
|
100
|
-
'phpstorm.exe',
|
|
101
|
-
'phpstorm64.exe',
|
|
102
|
-
'pycharm.exe',
|
|
103
|
-
'pycharm64.exe',
|
|
104
|
-
'rubymine.exe',
|
|
105
|
-
'rubymine64.exe',
|
|
106
|
-
'webstorm.exe',
|
|
107
|
-
'webstorm64.exe',
|
|
108
|
-
'goland.exe',
|
|
109
|
-
'goland64.exe',
|
|
110
|
-
'rider.exe',
|
|
111
|
-
'rider64.exe',
|
|
112
|
-
'nano',
|
|
113
|
-
];
|
|
114
|
-
const displayNameForEditor = {
|
|
115
|
-
'/Applications/AppCode.app/Contents/MacOS/appcode': 'AppCode',
|
|
116
|
-
'/Applications/Atom Beta.app/Contents/MacOS/Atom Beta': 'Atom Beta',
|
|
117
|
-
'/Applications/CLion.app/Contents/MacOS/clion': 'CLion',
|
|
118
|
-
'/Applications/GoLand.app/Contents/MacOS/goland': 'GoLand',
|
|
119
|
-
'/Applications/IntelliJ IDEA.app/Contents/MacOS/idea': 'IDEA',
|
|
120
|
-
'/Applications/PhpStorm.app/Contents/MacOS/phpstorm': 'PHPStorm',
|
|
121
|
-
'/Applications/PyCharm CE.app/Contents/MacOS/pycharm': 'PyCharm',
|
|
122
|
-
'/Applications/PyCharm.app/Contents/MacOS/pycharm': 'PyCharm',
|
|
123
|
-
'/Applications/Rider.app/Contents/MacOS/rider': 'Rider',
|
|
124
|
-
'/Applications/RubyMine.app/Contents/MacOS/rubymine': 'RubyMine',
|
|
125
|
-
'/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl': 'Sublime Text 2',
|
|
126
|
-
'/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl': 'Sublime Text Dev',
|
|
127
|
-
'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl': 'Sublime Text',
|
|
128
|
-
'/Applications/WebStorm.app/Contents/MacOS/webstorm': 'WebStorm',
|
|
129
|
-
'Brackets.exe': 'Brackets',
|
|
130
|
-
'Code - Insiders.exe': 'VS Code Insiders',
|
|
131
|
-
'Code.exe': 'VS Code',
|
|
132
|
-
'VSCodium.exe': 'VS Codium',
|
|
133
|
-
'atom.exe': 'Atom',
|
|
134
|
-
'clion.exe': 'CLion',
|
|
135
|
-
'clion64.exe': 'CLion',
|
|
136
|
-
'code-insiders': 'VS Code Insiders',
|
|
137
|
-
'goland.exe': 'GoLand',
|
|
138
|
-
'goland64.exe': 'GoLand',
|
|
139
|
-
'idea.exe': 'IDEA',
|
|
140
|
-
'idea64.exe': 'IDEA',
|
|
141
|
-
'notepad++.exe': 'Notepad++',
|
|
142
|
-
'phpstorm.exe': 'PHPStorm',
|
|
143
|
-
'phpstorm64.exe': 'PHPStorm',
|
|
144
|
-
'pycharm.exe': 'PyCharm',
|
|
145
|
-
'pycharm64.exe': 'PyCharm',
|
|
146
|
-
'rider.exe': 'Rider',
|
|
147
|
-
'rider64.exe': 'Rider',
|
|
148
|
-
'rubymine.exe': 'RubyMine',
|
|
149
|
-
'rubymine64.exe': 'RubyMine',
|
|
150
|
-
'sublime_text.exe': 'Sublime Text',
|
|
151
|
-
'webstorm.exe': 'WebStorm',
|
|
152
|
-
'webstorm64.exe': 'WebStorm',
|
|
153
|
-
atom: 'Atom',
|
|
154
|
-
brackets: 'Brackets',
|
|
155
|
-
code: 'VS Code',
|
|
156
|
-
emacs: 'emacs',
|
|
157
|
-
goland: 'GoLand',
|
|
158
|
-
gvim: 'GVim',
|
|
159
|
-
idea: 'IDEA',
|
|
160
|
-
mvim: 'mvim',
|
|
161
|
-
phpstorm: 'PHPStorm',
|
|
162
|
-
pycharm: 'PyCharm',
|
|
163
|
-
rider: 'Rider',
|
|
164
|
-
rubymine: 'RubyMine',
|
|
165
|
-
subl: 'Sublime Text',
|
|
166
|
-
sublime_text: 'Sublime Text',
|
|
167
|
-
vim: 'vim',
|
|
168
|
-
vscodium: 'VS Codium',
|
|
169
|
-
webstorm: 'WebStorm',
|
|
170
|
-
nano: 'nano',
|
|
171
|
-
};
|
|
172
|
-
const getDisplayNameForEditor = (editor) => {
|
|
173
|
-
var _a, _b;
|
|
174
|
-
if (!editor) {
|
|
175
|
-
return null;
|
|
176
|
-
}
|
|
177
|
-
const endsIn = Object.keys(displayNameForEditor).find((displayNameKey) => {
|
|
178
|
-
return editor.endsWith(displayNameKey);
|
|
179
|
-
});
|
|
180
|
-
return ((_b = (_a = displayNameForEditor[editor]) !== null && _a !== void 0 ? _a : displayNameForEditor[endsIn]) !== null && _b !== void 0 ? _b : editor);
|
|
181
|
-
};
|
|
182
|
-
exports.getDisplayNameForEditor = getDisplayNameForEditor;
|
|
183
|
-
// Map from full process name to binary that starts the process
|
|
184
|
-
// We can't just re-use full process name, because it will spawn a new instance
|
|
185
|
-
// of the app every time
|
|
186
|
-
const COMMON_EDITORS_OSX = {
|
|
187
|
-
'/Applications/Atom.app/Contents/MacOS/Atom': 'atom',
|
|
188
|
-
'/Applications/Atom Beta.app/Contents/MacOS/Atom Beta': '/Applications/Atom Beta.app/Contents/MacOS/Atom Beta',
|
|
189
|
-
'/Applications/Brackets.app/Contents/MacOS/Brackets': 'brackets',
|
|
190
|
-
'/Applications/Sublime Text.app/Contents/MacOS/Sublime Text': '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl',
|
|
191
|
-
'/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text': '/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl',
|
|
192
|
-
'/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2': '/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl',
|
|
193
|
-
'/Applications/Visual Studio Code.app/Contents/MacOS/Electron': 'code',
|
|
194
|
-
'/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron': 'code-insiders',
|
|
195
|
-
'/Applications/VSCodium.app/Contents/MacOS/Electron': 'vscodium',
|
|
196
|
-
'/Applications/AppCode.app/Contents/MacOS/appcode': '/Applications/AppCode.app/Contents/MacOS/appcode',
|
|
197
|
-
'/Applications/CLion.app/Contents/MacOS/clion': '/Applications/CLion.app/Contents/MacOS/clion',
|
|
198
|
-
'/Applications/IntelliJ IDEA.app/Contents/MacOS/idea': '/Applications/IntelliJ IDEA.app/Contents/MacOS/idea',
|
|
199
|
-
'/Applications/PhpStorm.app/Contents/MacOS/phpstorm': '/Applications/PhpStorm.app/Contents/MacOS/phpstorm',
|
|
200
|
-
'/Applications/PyCharm.app/Contents/MacOS/pycharm': '/Applications/PyCharm.app/Contents/MacOS/pycharm',
|
|
201
|
-
'/Applications/PyCharm CE.app/Contents/MacOS/pycharm': '/Applications/PyCharm CE.app/Contents/MacOS/pycharm',
|
|
202
|
-
'/Applications/RubyMine.app/Contents/MacOS/rubymine': '/Applications/RubyMine.app/Contents/MacOS/rubymine',
|
|
203
|
-
'/Applications/WebStorm.app/Contents/MacOS/webstorm': '/Applications/WebStorm.app/Contents/MacOS/webstorm',
|
|
204
|
-
'/Applications/MacVim.app/Contents/MacOS/MacVim': 'mvim',
|
|
205
|
-
'/Applications/GoLand.app/Contents/MacOS/goland': '/Applications/GoLand.app/Contents/MacOS/goland',
|
|
206
|
-
'/Applications/Rider.app/Contents/MacOS/rider': '/Applications/Rider.app/Contents/MacOS/rider',
|
|
207
|
-
};
|
|
208
|
-
const COMMON_EDITORS_LINUX = {
|
|
209
|
-
atom: 'atom',
|
|
210
|
-
Brackets: 'brackets',
|
|
211
|
-
code: 'code',
|
|
212
|
-
'code-insiders': 'code-insiders',
|
|
213
|
-
vscodium: 'vscodium',
|
|
214
|
-
emacs: 'emacs',
|
|
215
|
-
gvim: 'gvim',
|
|
216
|
-
'idea.sh': 'idea',
|
|
217
|
-
'phpstorm.sh': 'phpstorm',
|
|
218
|
-
'pycharm.sh': 'pycharm',
|
|
219
|
-
'rubymine.sh': 'rubymine',
|
|
220
|
-
sublime_text: 'subl',
|
|
221
|
-
vim: 'vim',
|
|
222
|
-
'webstorm.sh': 'webstorm',
|
|
223
|
-
'goland.sh': 'goland',
|
|
224
|
-
'rider.sh': 'rider',
|
|
225
|
-
};
|
|
226
|
-
const COMMON_EDITORS_WIN = [
|
|
227
|
-
'Brackets.exe',
|
|
228
|
-
'Code.exe',
|
|
229
|
-
'Code - Insiders.exe',
|
|
230
|
-
'VSCodium.exe',
|
|
231
|
-
'atom.exe',
|
|
232
|
-
'sublime_text.exe',
|
|
233
|
-
'notepad++.exe',
|
|
234
|
-
'clion.exe',
|
|
235
|
-
'clion64.exe',
|
|
236
|
-
'idea.exe',
|
|
237
|
-
'idea64.exe',
|
|
238
|
-
'phpstorm.exe',
|
|
239
|
-
'phpstorm64.exe',
|
|
240
|
-
'pycharm.exe',
|
|
241
|
-
'pycharm64.exe',
|
|
242
|
-
'rubymine.exe',
|
|
243
|
-
'rubymine64.exe',
|
|
244
|
-
'webstorm.exe',
|
|
245
|
-
'webstorm64.exe',
|
|
246
|
-
'goland.exe',
|
|
247
|
-
'goland64.exe',
|
|
248
|
-
'rider.exe',
|
|
249
|
-
'rider64.exe',
|
|
250
|
-
];
|
|
251
|
-
// Transpiled version of: /^([A-Za-z]:[/\\])?[\p{L}0-9/.\-_\\]+$/u
|
|
252
|
-
// Non-transpiled version requires support for Unicode property regex. Allows
|
|
253
|
-
// alphanumeric characters, periods, dashes, slashes, and underscores.
|
|
254
|
-
const WINDOWS_FILE_NAME_WHITELIST = /^([A-Za-z]:[/\\])?(?:[\x2D-9A-Z\\_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])+$/;
|
|
255
|
-
function getArgumentsForLineNumber(editor, fileName, lineNumber, colNumber) {
|
|
256
|
-
const editorBasename = node_path_1.default.basename(editor).replace(/\.(exe|cmd|bat)$/i, '');
|
|
257
|
-
const isFolder = node_fs_1.default.existsSync(fileName) && node_fs_1.default.lstatSync(fileName).isDirectory();
|
|
258
|
-
switch (editorBasename) {
|
|
259
|
-
case 'atom':
|
|
260
|
-
case 'Atom':
|
|
261
|
-
case 'Atom Beta':
|
|
262
|
-
case 'subl':
|
|
263
|
-
case 'sublime':
|
|
264
|
-
case 'sublime_text':
|
|
265
|
-
return isFolder
|
|
266
|
-
? [fileName]
|
|
267
|
-
: [fileName + ':' + lineNumber + ':' + colNumber];
|
|
268
|
-
case 'wstorm':
|
|
269
|
-
case 'charm':
|
|
270
|
-
return [fileName + ':' + lineNumber];
|
|
271
|
-
case 'notepad++':
|
|
272
|
-
return ['-n' + lineNumber, '-c' + colNumber, fileName];
|
|
273
|
-
case 'vim':
|
|
274
|
-
case 'mvim':
|
|
275
|
-
case 'joe':
|
|
276
|
-
case 'gvim':
|
|
277
|
-
return ['+' + lineNumber, fileName];
|
|
278
|
-
case 'emacs':
|
|
279
|
-
case 'emacsclient':
|
|
280
|
-
return ['+' + lineNumber + ':' + colNumber, fileName];
|
|
281
|
-
case 'rmate':
|
|
282
|
-
case 'mate':
|
|
283
|
-
case 'mine':
|
|
284
|
-
return ['--line', lineNumber, fileName];
|
|
285
|
-
case 'code':
|
|
286
|
-
case 'Code':
|
|
287
|
-
case 'code-insiders':
|
|
288
|
-
case 'Code - Insiders':
|
|
289
|
-
case 'vscodium':
|
|
290
|
-
case 'VSCodium':
|
|
291
|
-
return ['-g', fileName + ':' + lineNumber + ':' + colNumber];
|
|
292
|
-
case 'appcode':
|
|
293
|
-
case 'clion':
|
|
294
|
-
case 'clion64':
|
|
295
|
-
case 'idea':
|
|
296
|
-
case 'idea64':
|
|
297
|
-
case 'phpstorm':
|
|
298
|
-
case 'phpstorm64':
|
|
299
|
-
case 'pycharm':
|
|
300
|
-
case 'pycharm64':
|
|
301
|
-
case 'rubymine':
|
|
302
|
-
case 'rubymine64':
|
|
303
|
-
case 'webstorm':
|
|
304
|
-
case 'webstorm64':
|
|
305
|
-
case 'goland':
|
|
306
|
-
case 'goland64':
|
|
307
|
-
case 'rider':
|
|
308
|
-
case 'rider64':
|
|
309
|
-
return ['--line', lineNumber, fileName];
|
|
310
|
-
default:
|
|
311
|
-
// For all others, drop the lineNumber until we have
|
|
312
|
-
// a mapping above, since providing the lineNumber incorrectly
|
|
313
|
-
// can result in errors or confusing behavior.
|
|
314
|
-
return [fileName];
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
async function guessEditor() {
|
|
318
|
-
// We can find out which editor is currently running by:
|
|
319
|
-
// `ps x` on macOS and Linux
|
|
320
|
-
// `Get-Process` on Windows
|
|
321
|
-
const availableEditors = [];
|
|
322
|
-
try {
|
|
323
|
-
if (process.platform === 'darwin') {
|
|
324
|
-
const output = (await execProm('ps x')).stdout.toString();
|
|
325
|
-
const processNames = Object.keys(COMMON_EDITORS_OSX);
|
|
326
|
-
for (let i = 0; i < processNames.length; i++) {
|
|
327
|
-
const processName = processNames[i];
|
|
328
|
-
if (output.indexOf(processName) !== -1) {
|
|
329
|
-
availableEditors.push({
|
|
330
|
-
process: processName,
|
|
331
|
-
command: COMMON_EDITORS_OSX[processName],
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
return availableEditors;
|
|
336
|
-
}
|
|
337
|
-
if (process.platform === 'win32') {
|
|
338
|
-
// Some processes need elevated rights to get its executable path.
|
|
339
|
-
// Just filter them out upfront. This also saves 10-20ms on the command.
|
|
340
|
-
const output = (await execProm('wmic process where "executablepath is not null" get executablepath')).stdout.toString();
|
|
341
|
-
const runningProcesses = output.split('\r\n');
|
|
342
|
-
for (let i = 0; i < runningProcesses.length; i++) {
|
|
343
|
-
const processPath = runningProcesses[i].trim();
|
|
344
|
-
const processName = node_path_1.default.basename(processPath);
|
|
345
|
-
if (COMMON_EDITORS_WIN.indexOf(processName) !== -1) {
|
|
346
|
-
availableEditors.push({
|
|
347
|
-
process: processPath,
|
|
348
|
-
command: processPath,
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
return availableEditors;
|
|
353
|
-
}
|
|
354
|
-
if (process.platform === 'linux') {
|
|
355
|
-
// --no-heading No header line
|
|
356
|
-
// x List all processes owned by you
|
|
357
|
-
// -o comm Need only names column
|
|
358
|
-
const output = (await execProm('ps x --no-heading -o comm --sort=comm')).stdout.toString();
|
|
359
|
-
const processNames = Object.keys(COMMON_EDITORS_LINUX);
|
|
360
|
-
for (let i = 0; i < processNames.length; i++) {
|
|
361
|
-
const processName = processNames[i];
|
|
362
|
-
if (output.indexOf(processName) !== -1) {
|
|
363
|
-
availableEditors.push({
|
|
364
|
-
process: processName,
|
|
365
|
-
command: COMMON_EDITORS_LINUX[processName],
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
return availableEditors;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
catch (error) {
|
|
373
|
-
// Ignore...
|
|
374
|
-
}
|
|
375
|
-
// Last resort, use old skool env vars
|
|
376
|
-
if (process.env.VISUAL) {
|
|
377
|
-
return [
|
|
378
|
-
{
|
|
379
|
-
process: process.env.VISUAL,
|
|
380
|
-
command: process.env.VISUAL,
|
|
381
|
-
},
|
|
382
|
-
];
|
|
383
|
-
}
|
|
384
|
-
if (process.env.EDITOR) {
|
|
385
|
-
return [
|
|
386
|
-
{
|
|
387
|
-
process: process.env.EDITOR,
|
|
388
|
-
command: process.env.EDITOR,
|
|
389
|
-
},
|
|
390
|
-
];
|
|
391
|
-
}
|
|
392
|
-
return [];
|
|
393
|
-
}
|
|
394
|
-
exports.guessEditor = guessEditor;
|
|
395
|
-
let _childProcess = null;
|
|
396
|
-
async function launchEditor({ colNumber, editor, fileName, lineNumber, vsCodeNewWindow, }) {
|
|
397
|
-
if (!node_fs_1.default.existsSync(fileName)) {
|
|
398
|
-
return false;
|
|
399
|
-
}
|
|
400
|
-
// Sanitize lineNumber to prevent malicious use on win32
|
|
401
|
-
// via: https://github.com/nodejs/node/blob/c3bb4b1aa5e907d489619fb43d233c3336bfc03d/lib/child_process.js#L333
|
|
402
|
-
// and it should be a positive integer
|
|
403
|
-
if (!(Number.isInteger(lineNumber) && lineNumber > 0)) {
|
|
404
|
-
return false;
|
|
405
|
-
}
|
|
406
|
-
// colNumber is optional, but should be a positive integer too
|
|
407
|
-
// default is 1
|
|
408
|
-
if (!(Number.isInteger(colNumber) && colNumber > 0)) {
|
|
409
|
-
colNumber = 1;
|
|
410
|
-
}
|
|
411
|
-
if (editor.command.toLowerCase() === 'none') {
|
|
412
|
-
return false;
|
|
413
|
-
}
|
|
414
|
-
if (process.platform === 'linux' &&
|
|
415
|
-
fileName.startsWith('/mnt/') &&
|
|
416
|
-
/Microsoft/i.test(node_os_1.default.release())) {
|
|
417
|
-
// Assume WSL / "Bash on Ubuntu on Windows" is being used, and
|
|
418
|
-
// that the file exists on the Windows file system.
|
|
419
|
-
// `os.release()` is "4.4.0-43-Microsoft" in the current release
|
|
420
|
-
// build of WSL, see: https://github.com/Microsoft/BashOnWindows/issues/423#issuecomment-221627364
|
|
421
|
-
// When a Windows editor is specified, interop functionality can
|
|
422
|
-
// handle the path translation, but only if a relative path is used.
|
|
423
|
-
fileName = node_path_1.default.relative('', fileName);
|
|
424
|
-
}
|
|
425
|
-
// cmd.exe on Windows is vulnerable to RCE attacks given a file name of the
|
|
426
|
-
// form "C:\Users\myusername\Downloads\& curl 172.21.93.52". Use a whitelist
|
|
427
|
-
// to validate user-provided file names. This doesn't cover the entire range
|
|
428
|
-
// of valid file names but should cover almost all of them in practice.
|
|
429
|
-
if (process.platform === 'win32' &&
|
|
430
|
-
!WINDOWS_FILE_NAME_WHITELIST.test(fileName.trim())) {
|
|
431
|
-
log_1.Log.error();
|
|
432
|
-
log_1.Log.error('Could not open ' + node_path_1.default.basename(fileName) + ' in the editor.');
|
|
433
|
-
log_1.Log.error();
|
|
434
|
-
log_1.Log.error('When running on Windows, file names are checked against a whitelist ' +
|
|
435
|
-
'to protect against remote code execution attacks. File names may ' +
|
|
436
|
-
'consist only of alphanumeric characters (all languages), periods, ' +
|
|
437
|
-
'dashes, slashes, and underscores.');
|
|
438
|
-
log_1.Log.error();
|
|
439
|
-
return false;
|
|
440
|
-
}
|
|
441
|
-
const shouldOpenVsCodeNewWindow = isVsCodeDerivative(editor.command) && vsCodeNewWindow;
|
|
442
|
-
const args = shouldOpenVsCodeNewWindow
|
|
443
|
-
? ['--new-window', fileName]
|
|
444
|
-
: lineNumber
|
|
445
|
-
? getArgumentsForLineNumber(editor.command, fileName, String(lineNumber), colNumber)
|
|
446
|
-
: [fileName];
|
|
447
|
-
if (_childProcess && isTerminalEditor(editor.command)) {
|
|
448
|
-
// There's an existing editor process already and it's attached
|
|
449
|
-
// to the terminal, so go kill it. Otherwise two separate editor
|
|
450
|
-
// instances attach to the stdin/stdout which gets confusing.
|
|
451
|
-
_childProcess.kill('SIGKILL');
|
|
452
|
-
}
|
|
453
|
-
const isWin = node_os_1.default.platform() === 'win32';
|
|
454
|
-
const where = isWin ? 'where' : 'which';
|
|
455
|
-
const binaryToUse = await new Promise((resolve) => {
|
|
456
|
-
if (editor.command === editor.process) {
|
|
457
|
-
resolve(editor.command);
|
|
458
|
-
return;
|
|
459
|
-
}
|
|
460
|
-
node_child_process_1.default.exec(`${where} "${editor.command}"`, (err) => {
|
|
461
|
-
if (err) {
|
|
462
|
-
resolve(editor.process);
|
|
463
|
-
}
|
|
464
|
-
else {
|
|
465
|
-
resolve(editor.command);
|
|
466
|
-
}
|
|
467
|
-
});
|
|
468
|
-
});
|
|
469
|
-
return new Promise((resolve, reject) => {
|
|
470
|
-
if (process.platform === 'win32') {
|
|
471
|
-
// On Windows, launch the editor in a shell because spawn can only
|
|
472
|
-
// launch .exe files.
|
|
473
|
-
_childProcess = node_child_process_1.default.spawn('cmd.exe', ['/C', binaryToUse].concat(args), { stdio: 'inherit', detached: true });
|
|
474
|
-
}
|
|
475
|
-
else {
|
|
476
|
-
_childProcess = node_child_process_1.default.spawn(binaryToUse, args, {
|
|
477
|
-
stdio: 'inherit',
|
|
478
|
-
});
|
|
479
|
-
}
|
|
480
|
-
_childProcess.on('exit', (errorCode) => {
|
|
481
|
-
_childProcess = null;
|
|
482
|
-
if (errorCode) {
|
|
483
|
-
log_1.Log.error(`Process exited with code ${errorCode}`);
|
|
484
|
-
}
|
|
485
|
-
});
|
|
486
|
-
_childProcess.on('error', (error) => {
|
|
487
|
-
log_1.Log.error('Error opening file in editor', fileName, error.message);
|
|
488
|
-
reject(new Error('Error opening file in editor'));
|
|
489
|
-
});
|
|
490
|
-
resolve(true);
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
exports.launchEditor = launchEditor;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
Source code adapted from https://github.com/facebook/create-react-app/tree/main/packages/react-error-overlay and refactored in Typescript. This file is MIT-licensed.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.parseError = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/
|
|
13
|
-
const map_error_to_react_stack_1 = require("../effects/map-error-to-react-stack");
|
|
14
|
-
const resolve_file_source_1 = require("../effects/resolve-file-source");
|
|
15
|
-
const stack_frame_1 = require("./stack-frame");
|
|
16
|
-
const regexExtractLocation = /\(?(.+?)(?::(\d+))?(?::(\d+))?\)?$/;
|
|
17
|
-
function extractLocation(token) {
|
|
18
|
-
const execed = regexExtractLocation.exec(token);
|
|
19
|
-
if (!execed) {
|
|
20
|
-
throw new Error('Could not match in extractLocation');
|
|
21
|
-
}
|
|
22
|
-
return execed.slice(1).map((v) => {
|
|
23
|
-
const p = Number(v);
|
|
24
|
-
if (!isNaN(p)) {
|
|
25
|
-
return p;
|
|
26
|
-
}
|
|
27
|
-
return v;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
const regexValidFrame_Chrome = /^\s*(at|in)\s.+(:\d+)/;
|
|
31
|
-
const regexValidFrame_FireFox = /(^|@)\S+:\d+|.+line\s+\d+\s+>\s+(eval|Function).+/;
|
|
32
|
-
function parseStack(stack) {
|
|
33
|
-
const frames = stack
|
|
34
|
-
.filter((e) => regexValidFrame_Chrome.test(e) || regexValidFrame_FireFox.test(e))
|
|
35
|
-
.map((e) => {
|
|
36
|
-
if (regexValidFrame_FireFox.test(e)) {
|
|
37
|
-
// Strip eval, we don't care about it
|
|
38
|
-
let isEval = false;
|
|
39
|
-
if (/ > (eval|Function)/.test(e)) {
|
|
40
|
-
e = e.replace(/ line (\d+)(?: > eval line \d+)* > (eval|Function):\d+:\d+/g, ':$1');
|
|
41
|
-
isEval = true;
|
|
42
|
-
}
|
|
43
|
-
const _data = e.split(/[@]/g);
|
|
44
|
-
const _last = _data.pop();
|
|
45
|
-
if (!_last) {
|
|
46
|
-
throw new Error('could not get last');
|
|
47
|
-
}
|
|
48
|
-
const [_fileName, _lineNumber, _columnNumber] = extractLocation(_last);
|
|
49
|
-
return (0, stack_frame_1.makeStackFrame)({
|
|
50
|
-
functionName: _data.join('@') || (isEval ? 'eval' : null),
|
|
51
|
-
fileName: _fileName,
|
|
52
|
-
lineNumber: _lineNumber,
|
|
53
|
-
columnNumber: _columnNumber,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
// Strip eval, we don't care about it
|
|
57
|
-
if (e.indexOf('(eval ') !== -1) {
|
|
58
|
-
e = e.replace(/(\(eval at [^()]*)|(\),.*$)/g, '');
|
|
59
|
-
}
|
|
60
|
-
if (e.indexOf('(at ') !== -1) {
|
|
61
|
-
e = e.replace(/\(at /, '(');
|
|
62
|
-
}
|
|
63
|
-
const data = e.trim().split(/\s+/g).slice(1);
|
|
64
|
-
const last = data.pop();
|
|
65
|
-
if (!last) {
|
|
66
|
-
throw new Error('could not get last');
|
|
67
|
-
}
|
|
68
|
-
const [fileName, lineNumber, columnNumber] = extractLocation(last);
|
|
69
|
-
return (0, stack_frame_1.makeStackFrame)({
|
|
70
|
-
functionName: data.join(' ') || null,
|
|
71
|
-
fileName,
|
|
72
|
-
lineNumber,
|
|
73
|
-
columnNumber,
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
return frames;
|
|
77
|
-
}
|
|
78
|
-
const parseError = async (error, contextLines) => {
|
|
79
|
-
if (error === null) {
|
|
80
|
-
throw new Error('You cannot pass a null object.');
|
|
81
|
-
}
|
|
82
|
-
if (typeof error === 'string') {
|
|
83
|
-
return parseStack(error.split('\n')).map((frame) => {
|
|
84
|
-
return {
|
|
85
|
-
type: 'transpiled',
|
|
86
|
-
frame,
|
|
87
|
-
};
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
if (Array.isArray(error)) {
|
|
91
|
-
return parseStack(error).map((frame) => {
|
|
92
|
-
return {
|
|
93
|
-
type: 'transpiled',
|
|
94
|
-
frame,
|
|
95
|
-
};
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
const errorLocation = (0, map_error_to_react_stack_1.getLocationFromBuildError)(error);
|
|
99
|
-
if (errorLocation) {
|
|
100
|
-
return [
|
|
101
|
-
{
|
|
102
|
-
type: 'symbolicated',
|
|
103
|
-
frame: await (0, resolve_file_source_1.resolveFileSource)(errorLocation, contextLines),
|
|
104
|
-
},
|
|
105
|
-
];
|
|
106
|
-
}
|
|
107
|
-
if (typeof error.stack === 'string') {
|
|
108
|
-
return parseStack(error.stack.split('\n')).map((frame) => {
|
|
109
|
-
return {
|
|
110
|
-
type: 'transpiled',
|
|
111
|
-
frame,
|
|
112
|
-
};
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
return [];
|
|
116
|
-
};
|
|
117
|
-
exports.parseError = parseError;
|