@remotion/cli 4.0.0-oops.3 → 4.0.0-prefetch.7
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/bundle.d.ts +1 -0
- package/dist/bundle.js +32 -0
- package/dist/chalk/index.d.ts +58 -0
- package/dist/chalk/index.js +138 -0
- package/dist/code-frame.d.ts +1 -1
- package/dist/code-frame.js +10 -12
- package/dist/compositions.d.ts +1 -1
- package/dist/compositions.js +38 -8
- package/dist/config/browser-executable.d.ts +3 -0
- package/dist/config/browser-executable.js +12 -0
- package/dist/config/browser.d.ts +3 -0
- package/dist/config/browser.js +18 -0
- package/dist/config/bundle-out-dir.d.ts +2 -0
- package/dist/config/bundle-out-dir.js +12 -0
- package/dist/config/chromium-flags.d.ts +9 -0
- package/dist/config/chromium-flags.js +33 -0
- package/dist/config/codec.d.ts +7 -0
- package/dist/config/codec.js +40 -0
- package/dist/config/concurrency.d.ts +3 -0
- package/dist/config/concurrency.js +12 -0
- package/dist/config/crf.d.ts +4 -0
- package/dist/config/crf.js +23 -0
- package/dist/config/enforce-audio-track.d.ts +2 -0
- package/dist/config/enforce-audio-track.js +13 -0
- package/dist/config/env-file.d.ts +2 -0
- package/dist/config/env-file.js +10 -0
- package/dist/config/every-nth-frame.d.ts +3 -0
- package/dist/config/every-nth-frame.js +20 -0
- package/dist/config/ffmpeg-executable.d.ts +5 -0
- package/dist/config/ffmpeg-executable.js +21 -0
- package/dist/config/frame-range.d.ts +4 -0
- package/dist/config/frame-range.js +35 -0
- package/dist/config/get-public-path.d.ts +2 -0
- package/dist/config/get-public-path.js +12 -0
- package/dist/config/image-format.d.ts +3 -0
- package/dist/config/image-format.js +20 -0
- package/dist/config/image-sequence.d.ts +3 -0
- package/dist/config/image-sequence.js +15 -0
- package/dist/config/index.d.ts +49 -0
- package/dist/config/index.js +176 -0
- package/dist/config/keyboard-shortcuts.d.ts +2 -0
- package/dist/config/keyboard-shortcuts.js +12 -0
- package/dist/config/log.d.ts +3 -0
- package/dist/config/log.js +12 -0
- package/dist/config/max-timeline-tracks.d.ts +2 -0
- package/dist/config/max-timeline-tracks.js +24 -0
- package/dist/config/muted.d.ts +2 -0
- package/dist/config/muted.js +13 -0
- package/dist/config/number-of-gif-loops.d.ts +4 -0
- package/dist/config/number-of-gif-loops.js +21 -0
- package/dist/config/output-location.d.ts +2 -0
- package/dist/config/output-location.js +16 -0
- package/dist/config/override-webpack.d.ts +5 -0
- package/dist/config/override-webpack.js +14 -0
- package/dist/config/overwrite.d.ts +2 -0
- package/dist/config/overwrite.js +14 -0
- package/dist/config/pixel-format.d.ts +3 -0
- package/dist/config/pixel-format.js +16 -0
- package/dist/config/preview-server.d.ts +2 -0
- package/dist/config/preview-server.js +20 -0
- package/dist/config/prores-profile.d.ts +3 -0
- package/dist/config/prores-profile.js +12 -0
- package/dist/config/public-dir.d.ts +2 -0
- package/dist/config/public-dir.js +12 -0
- package/dist/config/quality.d.ts +2 -0
- package/dist/config/quality.js +17 -0
- package/dist/config/scale.d.ts +3 -0
- package/dist/config/scale.js +15 -0
- package/dist/config/still-frame.d.ts +2 -0
- package/dist/config/still-frame.js +12 -0
- package/dist/config/timeout.d.ts +2 -0
- package/dist/config/timeout.js +17 -0
- package/dist/config/webpack-caching.d.ts +3 -0
- package/dist/config/webpack-caching.js +16 -0
- package/dist/download-progress.d.ts +2 -1
- package/dist/download-progress.js +19 -4
- package/dist/editor/components/AudioWaveform.js +2 -2
- package/dist/editor/components/AudioWaveformBar.js +1 -1
- package/dist/editor/components/Button.d.ts +4 -0
- package/dist/editor/components/Button.js +24 -0
- package/dist/editor/components/Canvas.js +191 -1
- package/dist/editor/components/CheckboardToggle.js +9 -2
- package/dist/editor/components/ClipboardIcon.js +1 -1
- package/dist/editor/components/CollapsedCompositionSelector.d.ts +4 -0
- package/dist/editor/components/CollapsedCompositionSelector.js +39 -0
- package/dist/editor/components/CompositionSelector.js +7 -45
- package/dist/editor/components/CompositionSelectorItem.d.ts +2 -2
- package/dist/editor/components/CompositionSelectorItem.js +6 -4
- package/dist/editor/components/ControlButton.js +1 -1
- package/dist/editor/components/CopyButton.js +5 -18
- package/dist/editor/components/CurrentComposition.js +7 -2
- package/dist/editor/components/Editor.js +22 -90
- package/dist/editor/components/EditorContent.js +3 -2
- package/dist/editor/components/EditorContexts.d.ts +4 -0
- package/dist/editor/components/EditorContexts.js +83 -0
- package/dist/editor/components/FpsCounter.js +1 -1
- package/dist/editor/components/FramePersistor.d.ts +1 -1
- package/dist/editor/components/GlobalKeybindings.d.ts +1 -1
- package/dist/editor/components/GlobalKeybindings.js +26 -11
- package/dist/editor/components/InitialCompositionLoader.d.ts +4 -0
- package/dist/editor/components/InitialCompositionLoader.js +86 -0
- package/dist/editor/components/KeyboardShortcutsModal.js +15 -1
- package/dist/editor/components/LoopToggle.js +1 -1
- package/dist/editor/components/Menu/MenuDivider.js +1 -1
- package/dist/editor/components/Menu/MenuItem.d.ts +2 -2
- package/dist/editor/components/Menu/MenuItem.js +4 -4
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -1
- package/dist/editor/components/Menu/MenuSubItem.js +5 -4
- package/dist/editor/components/Menu/SubMenu.d.ts +2 -2
- package/dist/editor/components/Menu/SubMenu.js +1 -1
- package/dist/editor/components/Menu/styles.d.ts +3 -2
- package/dist/editor/components/Menu/styles.js +10 -3
- package/dist/editor/components/MenuBuildIndicator.d.ts +2 -0
- package/dist/editor/components/MenuBuildIndicator.js +26 -0
- package/dist/editor/components/MenuToolbar.js +109 -20
- package/dist/editor/components/ModalContainer.js +1 -1
- package/dist/editor/components/ModalHeader.js +1 -1
- package/dist/editor/components/MuteToggle.js +1 -1
- package/dist/editor/components/NewComposition/CancelButton.d.ts +2 -1
- package/dist/editor/components/NewComposition/CancelButton.js +1 -1
- package/dist/editor/components/NewComposition/ComboBox.js +15 -5
- package/dist/editor/components/NewComposition/CopyHint.js +1 -1
- package/dist/editor/components/NewComposition/InputDragger.d.ts +2 -1
- package/dist/editor/components/NewComposition/InputDragger.js +2 -2
- package/dist/editor/components/NewComposition/MenuContent.d.ts +1 -1
- package/dist/editor/components/NewComposition/MenuContent.js +43 -8
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js +1 -1
- package/dist/editor/components/NewComposition/NewCompDuration.js +1 -1
- package/dist/editor/components/NewComposition/NewComposition.d.ts +1 -1
- package/dist/editor/components/NewComposition/NewComposition.js +4 -4
- package/dist/editor/components/NewComposition/RemInput.js +1 -1
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js +1 -1
- package/dist/editor/components/NewComposition/ValidationMessage.js +2 -2
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts +1 -1
- package/dist/editor/components/NoRegisterRoot.d.ts +2 -0
- package/dist/editor/components/NoRegisterRoot.js +41 -0
- package/dist/editor/components/Notifications/ColorDot.d.ts +4 -0
- package/dist/editor/components/Notifications/ColorDot.js +22 -0
- package/dist/editor/components/Notifications/Notification.d.ts +8 -0
- package/dist/editor/components/Notifications/Notification.js +31 -0
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +13 -0
- package/dist/editor/components/Notifications/NotificationCenter.js +40 -0
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +6 -0
- package/dist/editor/components/Notifications/ServerDisconnected.js +59 -0
- package/dist/editor/components/PlayPause.js +121 -23
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +1 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +24 -21
- package/dist/editor/components/PlaybackRatePersistor.d.ts +1 -1
- package/dist/editor/components/PlaybackRateSelector.js +7 -2
- package/dist/editor/components/Preview.d.ts +2 -1
- package/dist/editor/components/Preview.js +27 -16
- package/dist/editor/components/PreviewToolbar.js +4 -2
- package/dist/editor/components/PreviewZoomControls.d.ts +2 -0
- package/dist/editor/components/PreviewZoomControls.js +67 -0
- package/dist/editor/components/ResetZoomButton.d.ts +4 -0
- package/dist/editor/components/ResetZoomButton.js +9 -0
- package/dist/editor/components/RichTimelineToggle.js +1 -1
- package/dist/editor/components/SizeSelector.d.ts +3 -2
- package/dist/editor/components/SizeSelector.js +58 -18
- package/dist/editor/components/Splitter/SplitterContainer.d.ts +1 -1
- package/dist/editor/components/Splitter/SplitterContainer.js +1 -1
- package/dist/editor/components/Splitter/SplitterElement.js +5 -2
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +4 -1
- package/dist/editor/components/Splitter/SplitterHandle.js +28 -7
- package/dist/editor/components/Thumbnail.d.ts +1 -1
- package/dist/editor/components/Thumbnail.js +1 -1
- package/dist/editor/components/TimeValue.js +9 -5
- package/dist/editor/components/Timeline/LoopedIndicator.js +2 -2
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +3 -3
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +1 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +6 -4
- package/dist/editor/components/Timeline/Timeline.js +12 -4
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +2 -2
- package/dist/editor/components/Timeline/TimelineDragHandler.js +123 -25
- package/dist/editor/components/Timeline/TimelineInOutPointer.js +4 -3
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +1 -1
- package/dist/editor/components/Timeline/TimelineList.d.ts +2 -2
- package/dist/editor/components/Timeline/TimelineList.js +7 -4
- package/dist/editor/components/Timeline/TimelineListItem.d.ts +3 -2
- package/dist/editor/components/Timeline/TimelineListItem.js +10 -5
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +76 -0
- package/dist/editor/components/Timeline/TimelineScrollable.d.ts +4 -0
- package/dist/editor/components/Timeline/TimelineScrollable.js +25 -0
- package/dist/editor/components/Timeline/TimelineSequence.d.ts +1 -1
- package/dist/editor/components/Timeline/TimelineSequence.js +1 -1
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +1 -1
- package/dist/editor/components/Timeline/TimelineSlider.d.ts +3 -0
- package/dist/editor/components/Timeline/TimelineSlider.js +35 -2
- package/dist/editor/components/Timeline/TimelineSliderHandle.js +1 -3
- package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +5 -0
- package/dist/editor/components/Timeline/TimelineTimeIndicators.js +168 -0
- package/dist/editor/components/Timeline/TimelineTracks.d.ts +2 -2
- package/dist/editor/components/Timeline/TimelineTracks.js +14 -9
- package/dist/editor/components/Timeline/TimelineVideoInfo.js +1 -1
- package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.js +45 -0
- package/dist/editor/components/Timeline/imperative-state.d.ts +12 -0
- package/dist/editor/components/Timeline/imperative-state.js +39 -0
- package/dist/editor/components/Timeline/is-collapsed.d.ts +2 -2
- package/dist/editor/components/Timeline/timeline-refs.d.ts +2 -0
- package/dist/editor/components/Timeline/timeline-refs.js +3 -1
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +44 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +218 -0
- package/dist/editor/components/TimelineInOutToggle.d.ts +2 -2
- package/dist/editor/components/TimelineInOutToggle.js +85 -20
- package/dist/editor/components/TopPanel.js +24 -1
- package/dist/editor/components/UpdateCheck.d.ts +1 -1
- package/dist/editor/components/UpdateCheck.js +1 -1
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts +1 -1
- package/dist/editor/components/UpdateModal/UpdateModal.js +1 -1
- package/dist/editor/components/ZoomPersistor.d.ts +4 -0
- package/dist/editor/components/ZoomPersistor.js +37 -0
- package/dist/editor/components/layout.js +4 -4
- package/dist/editor/helpers/calculate-timeline.d.ts +2 -2
- package/dist/editor/helpers/colors.d.ts +2 -1
- package/dist/editor/helpers/colors.js +2 -1
- package/dist/editor/helpers/copy-text.d.ts +1 -1
- package/dist/editor/helpers/copy-text.js +5 -4
- package/dist/editor/helpers/create-folder-tree.d.ts +2 -2
- package/dist/editor/helpers/get-effective-translation.d.ts +26 -0
- package/dist/editor/helpers/get-effective-translation.js +45 -0
- package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +1 -0
- package/dist/editor/helpers/get-left-of-timeline-slider.js +7 -4
- package/dist/editor/helpers/get-sequence-visible-range.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-nestedness.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.js +29 -9
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +1 -1
- package/dist/editor/helpers/is-composition-still.d.ts +1 -1
- package/dist/editor/helpers/is-current-selected-still.d.ts +4 -0
- package/dist/editor/helpers/is-current-selected-still.js +15 -1
- package/dist/editor/helpers/normalize-wheel.d.ts +5 -0
- package/dist/editor/helpers/normalize-wheel.js +20 -0
- package/dist/editor/helpers/normalize-zoom.d.ts +1 -0
- package/dist/editor/helpers/normalize-zoom.js +16 -0
- package/dist/editor/helpers/pick-color.d.ts +1 -0
- package/dist/editor/helpers/pick-color.js +36 -0
- package/dist/editor/helpers/use-compact-ui.d.ts +1 -0
- package/dist/editor/helpers/use-compact-ui.js +18 -0
- package/dist/editor/helpers/use-keybinding.d.ts +8 -2
- package/dist/editor/helpers/use-keybinding.js +23 -6
- package/dist/editor/helpers/validate-new-comp-data.d.ts +1 -1
- package/dist/editor/icons/Checkmark.js +1 -1
- package/dist/editor/icons/caret.d.ts +1 -1
- package/dist/editor/icons/caret.js +4 -4
- package/dist/editor/icons/film.d.ts +2 -1
- package/dist/editor/icons/film.js +1 -1
- package/dist/editor/icons/folder.d.ts +2 -1
- package/dist/editor/icons/folder.js +2 -2
- package/dist/editor/icons/jump-to-start.d.ts +2 -0
- package/dist/editor/icons/jump-to-start.js +8 -0
- package/dist/editor/icons/keys.js +3 -3
- package/dist/editor/icons/lock.d.ts +2 -1
- package/dist/editor/icons/lock.js +2 -2
- package/dist/editor/icons/media-volume.js +2 -2
- package/dist/editor/icons/minus.d.ts +3 -0
- package/dist/editor/icons/minus.js +8 -0
- package/dist/editor/icons/pause.d.ts +2 -1
- package/dist/editor/icons/pause.js +1 -1
- package/dist/editor/icons/play.d.ts +2 -1
- package/dist/editor/icons/play.js +1 -1
- package/dist/editor/icons/plus.d.ts +3 -0
- package/dist/editor/icons/plus.js +8 -0
- package/dist/editor/icons/step-back.d.ts +2 -1
- package/dist/editor/icons/step-back.js +1 -1
- package/dist/editor/icons/step-forward.d.ts +2 -1
- package/dist/editor/icons/step-forward.js +1 -1
- package/dist/editor/icons/still.d.ts +2 -1
- package/dist/editor/icons/still.js +1 -1
- package/dist/editor/icons/timeline.d.ts +2 -1
- package/dist/editor/icons/timeline.js +1 -1
- package/dist/editor/icons/timelineInOutPointer.d.ts +2 -1
- package/dist/editor/icons/timelineInOutPointer.js +2 -2
- package/dist/editor/state/folders.d.ts +11 -0
- package/dist/editor/state/folders.js +23 -0
- package/dist/editor/state/highest-z-index.js +2 -2
- package/dist/editor/state/in-out.d.ts +12 -0
- package/dist/editor/state/in-out.js +23 -0
- package/dist/editor/state/keybindings.js +4 -2
- package/dist/editor/state/modals.d.ts +2 -2
- package/dist/editor/state/preview-size.d.ts +6 -3
- package/dist/editor/state/preview-size.js +39 -5
- package/dist/editor/state/render-frame.js +12 -3
- package/dist/editor/state/sidebar.d.ts +12 -0
- package/dist/editor/state/sidebar.js +40 -0
- package/dist/editor/state/timeline-zoom.d.ts +10 -0
- package/dist/editor/state/timeline-zoom.js +38 -0
- package/dist/editor/state/z-index.js +7 -2
- package/dist/event-source-events.d.ts +6 -0
- package/dist/event-source-events.js +2 -0
- package/dist/event-source.d.ts +1 -0
- package/dist/event-source.js +28 -0
- package/dist/find-closest-package-json.d.ts +2 -0
- package/dist/find-closest-package-json.js +35 -0
- package/dist/format-bytes.d.ts +6 -0
- package/dist/format-bytes.js +103 -0
- package/dist/get-cli-options.d.ts +15 -8
- package/dist/get-cli-options.js +56 -46
- package/dist/get-composition-id.d.ts +1 -2
- package/dist/get-composition-id.js +2 -3
- package/dist/get-config-file-name.d.ts +1 -1
- package/dist/get-config-file-name.js +9 -6
- package/dist/get-env.js +6 -4
- package/dist/get-filename.d.ts +4 -3
- package/dist/get-filename.js +5 -5
- package/dist/get-final-output-codec.d.ts +6 -0
- package/dist/get-final-output-codec.js +63 -0
- package/dist/get-input-props.d.ts +1 -1
- package/dist/get-input-props.js +10 -1
- package/dist/get-latest-remotion-version.d.ts +1 -0
- package/dist/get-latest-remotion-version.js +31 -0
- package/dist/handle-common-errors.js +5 -0
- package/dist/image-formats.d.ts +3 -2
- package/dist/image-formats.js +6 -4
- package/dist/index.d.ts +79 -22
- package/dist/index.js +33 -15
- package/dist/initialize-render-cli.d.ts +1 -1
- package/dist/initialize-render-cli.js +8 -3
- package/dist/lambda-command.d.ts +1 -1
- package/dist/lambda-command.js +8 -4
- package/dist/list-of-remotion-packages.d.ts +1 -0
- package/dist/list-of-remotion-packages.js +20 -0
- package/dist/load-config.d.ts +1 -1
- package/dist/load-config.js +16 -5
- package/dist/log.js +11 -13
- package/dist/parse-command-line.d.ts +8 -1
- package/dist/parse-command-line.js +56 -28
- package/dist/prepare-entry-point.d.ts +12 -0
- package/dist/prepare-entry-point.js +37 -0
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +7 -0
- package/dist/preview-server/dev-middleware/compatible-api.js +20 -0
- package/dist/preview-server/dev-middleware/get-paths.d.ts +7 -0
- package/dist/preview-server/dev-middleware/get-paths.js +19 -0
- package/dist/preview-server/dev-middleware/index.d.ts +3 -0
- package/dist/preview-server/dev-middleware/index.js +27 -0
- package/dist/preview-server/dev-middleware/is-color-supported.d.ts +1 -0
- package/dist/preview-server/dev-middleware/is-color-supported.js +37 -0
- package/dist/preview-server/dev-middleware/middleware.d.ts +10 -0
- package/dist/preview-server/dev-middleware/middleware.js +224 -0
- package/dist/preview-server/dev-middleware/range-parser.d.ts +15 -0
- package/dist/preview-server/dev-middleware/range-parser.js +96 -0
- package/dist/preview-server/dev-middleware/ready.d.ts +3 -0
- package/dist/preview-server/dev-middleware/ready.js +11 -0
- package/dist/preview-server/dev-middleware/setup-hooks.d.ts +2 -0
- package/dist/preview-server/dev-middleware/setup-hooks.js +42 -0
- package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +2 -0
- package/dist/preview-server/dev-middleware/setup-output-filesystem.js +13 -0
- package/dist/preview-server/dev-middleware/types.d.ts +10 -0
- package/dist/preview-server/dev-middleware/types.js +2 -0
- package/dist/preview-server/error-overlay/entry-basic.d.ts +1 -0
- package/dist/preview-server/error-overlay/entry-basic.js +21 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +11 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +41 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +7 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +46 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +24 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +64 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +3 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +31 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +3 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +43 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +4 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +45 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +4 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +41 -0
- package/dist/preview-server/error-overlay/react-overlay/index.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/index.js +21 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +8 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +87 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +1 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +21 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +14 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +24 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +7 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +50 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +27 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +16 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +483 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +117 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +40 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +31 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +64 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +32 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +7 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +31 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +30 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +23 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +48 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +61 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +69 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +37 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +35 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +109 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +14 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +50 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +31 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +16 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +8 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +50 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +8 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.js +12 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +10 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +43 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.js +18 -0
- package/dist/preview-server/get-package-manager.d.ts +10 -0
- package/dist/preview-server/get-package-manager.js +47 -0
- package/dist/preview-server/hot-middleware/client.d.ts +19 -0
- package/dist/preview-server/hot-middleware/client.js +177 -0
- package/dist/preview-server/hot-middleware/index.d.ts +8 -0
- package/dist/preview-server/hot-middleware/index.js +150 -0
- package/dist/preview-server/hot-middleware/process-update.d.ts +12 -0
- package/dist/preview-server/hot-middleware/process-update.js +144 -0
- package/dist/preview-server/hot-middleware/strip-ansi.d.ts +1 -0
- package/dist/preview-server/hot-middleware/strip-ansi.js +21 -0
- package/dist/preview-server/hot-middleware/types.d.ts +27 -0
- package/dist/preview-server/hot-middleware/types.js +10 -0
- package/dist/preview-server/live-events.d.ts +8 -0
- package/dist/preview-server/live-events.js +41 -0
- package/dist/preview-server/project-info.d.ts +5 -0
- package/dist/preview-server/project-info.js +22 -0
- package/dist/preview-server/routes.d.ts +12 -0
- package/dist/preview-server/routes.js +161 -0
- package/dist/preview-server/serve-static.d.ts +9 -0
- package/dist/preview-server/serve-static.js +77 -0
- package/dist/preview-server/start-server.d.ts +15 -0
- package/dist/preview-server/start-server.js +81 -0
- package/dist/preview-server/update-available.d.ts +11 -0
- package/dist/preview-server/update-available.js +47 -0
- package/dist/preview.d.ts +1 -1
- package/dist/preview.js +38 -8
- package/dist/previewEntry.js +12 -2
- package/dist/print-error.js +6 -8
- package/dist/print-help.js +11 -14
- package/dist/progress-bar.d.ts +7 -4
- package/dist/progress-bar.js +19 -15
- package/dist/render.d.ts +1 -1
- package/dist/render.js +88 -55
- package/dist/setup-cache.d.ts +16 -2
- package/dist/setup-cache.js +53 -14
- package/dist/smooth-zoom.d.ts +4 -0
- package/dist/smooth-zoom.js +20 -0
- package/dist/still.d.ts +1 -1
- package/dist/still.js +93 -43
- package/dist/truthy.d.ts +3 -0
- package/dist/truthy.js +7 -0
- package/dist/upgrade.d.ts +1 -1
- package/dist/upgrade.js +18 -32
- package/dist/user-passed-output-location.d.ts +5 -1
- package/dist/user-passed-output-location.js +14 -7
- package/dist/versions.d.ts +2 -2
- package/dist/versions.js +16 -24
- package/dist/warn-about-ffmpeg-version.d.ts +1 -1
- package/package.json +15 -16
- package/tsconfig.json +2 -1
- package/vitest.config.ts +9 -0
- package/web/favicon.png +0 -0
- package/dist/editor/components/LoadingIndicator.d.ts +0 -2
- package/dist/editor/components/LoadingIndicator.js +0 -35
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StepBack = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const StepBack = (props) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 448 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z" }
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 448 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z" }) }));
|
|
7
7
|
};
|
|
8
8
|
exports.StepBack = StepBack;
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StepForward = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const StepForward = (props) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 448 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z" }
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 448 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z" }) }));
|
|
7
7
|
};
|
|
8
8
|
exports.StepForward = StepForward;
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StillIcon = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const StillIcon = (props) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 512 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z" }
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 512 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z" }) }));
|
|
7
7
|
};
|
|
8
8
|
exports.StillIcon = StillIcon;
|
|
@@ -4,6 +4,6 @@ exports.TimelineIcon = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const TimelineIcon = (props) => {
|
|
6
6
|
var _a;
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "stream", className: "svg-inline--fa fa-stream fa-w-16", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: (_a = props.style) === null || _a === void 0 ? void 0 : _a.color, d: "M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z" }
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "stream", className: "svg-inline--fa fa-stream fa-w-16", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: (_a = props.style) === null || _a === void 0 ? void 0 : _a.color, d: "M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z" }) }));
|
|
8
8
|
};
|
|
9
9
|
exports.TimelineIcon = TimelineIcon;
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TimelineOutPointer = exports.TimelineInPointer = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const TimelineInPointer = (props) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 256 256", fill: "none", ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M158 25H99V230.5H158", stroke: props.color, strokeWidth: "42", strokeLinecap: "round", strokeLinejoin: "round" }
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 256 256", fill: "none", ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M158 25H99V230.5H158", stroke: props.color, strokeWidth: "42", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
7
7
|
};
|
|
8
8
|
exports.TimelineInPointer = TimelineInPointer;
|
|
9
9
|
const TimelineOutPointer = (props) => {
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 256 256", fill: "none", ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M98 25H157V230.5H98", stroke: props.color, strokeWidth: "42", strokeLinecap: "round", strokeLinejoin: "round" }
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 256 256", fill: "none", ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M98 25H157V230.5H98", stroke: props.color, strokeWidth: "42", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
11
11
|
};
|
|
12
12
|
exports.TimelineOutPointer = TimelineOutPointer;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ExpandedFoldersState } from '../helpers/persist-open-folders';
|
|
3
|
+
declare type TFolderContext = {
|
|
4
|
+
foldersExpanded: ExpandedFoldersState;
|
|
5
|
+
setFoldersExpanded: React.Dispatch<React.SetStateAction<ExpandedFoldersState>>;
|
|
6
|
+
};
|
|
7
|
+
export declare const FolderContext: React.Context<TFolderContext>;
|
|
8
|
+
export declare const FolderContextProvider: React.FC<{
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FolderContextProvider = exports.FolderContext = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const persist_open_folders_1 = require("../helpers/persist-open-folders");
|
|
7
|
+
exports.FolderContext = (0, react_1.createContext)({
|
|
8
|
+
foldersExpanded: {},
|
|
9
|
+
setFoldersExpanded: () => {
|
|
10
|
+
throw new Error('default state');
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
const FolderContextProvider = ({ children }) => {
|
|
14
|
+
const [foldersExpanded, setFoldersExpanded] = (0, react_1.useState)((0, persist_open_folders_1.loadExpandedFolders)());
|
|
15
|
+
const value = (0, react_1.useMemo)(() => {
|
|
16
|
+
return {
|
|
17
|
+
foldersExpanded,
|
|
18
|
+
setFoldersExpanded,
|
|
19
|
+
};
|
|
20
|
+
}, [foldersExpanded]);
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(exports.FolderContext.Provider, { value: value, children: children }));
|
|
22
|
+
};
|
|
23
|
+
exports.FolderContextProvider = FolderContextProvider;
|
|
@@ -19,7 +19,7 @@ const HighestZIndexProvider = ({ children }) => {
|
|
|
19
19
|
if (index === -1) {
|
|
20
20
|
throw new Error('did not find z-index ' + newIndex);
|
|
21
21
|
}
|
|
22
|
-
return prev.filter((
|
|
22
|
+
return prev.filter((_n, i) => i !== index);
|
|
23
23
|
});
|
|
24
24
|
}, []);
|
|
25
25
|
const highestIndex = Math.max(...zIndexes);
|
|
@@ -30,6 +30,6 @@ const HighestZIndexProvider = ({ children }) => {
|
|
|
30
30
|
unregisterZIndex,
|
|
31
31
|
};
|
|
32
32
|
}, [registerZIndex, unregisterZIndex, highestIndex]);
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)(exports.HighestZIndexContext.Provider, { value: value, children: children }
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(exports.HighestZIndexContext.Provider, { value: value, children: children }));
|
|
34
34
|
};
|
|
35
35
|
exports.HighestZIndexProvider = HighestZIndexProvider;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export declare type TimelineInOutContextValue = {
|
|
3
|
+
inFrame: number | null;
|
|
4
|
+
outFrame: number | null;
|
|
5
|
+
};
|
|
6
|
+
export declare type SetTimelineInOutContextValue = {
|
|
7
|
+
setInAndOutFrames: (u: React.SetStateAction<TimelineInOutContextValue>) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const TimelineInOutContext: React.Context<TimelineInOutContextValue>;
|
|
10
|
+
export declare const SetTimelineInOutContext: React.Context<SetTimelineInOutContextValue>;
|
|
11
|
+
export declare const useTimelineInOutFramePosition: () => TimelineInOutContextValue;
|
|
12
|
+
export declare const useTimelineSetInOutFramePosition: () => SetTimelineInOutContextValue;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useTimelineSetInOutFramePosition = exports.useTimelineInOutFramePosition = exports.SetTimelineInOutContext = exports.TimelineInOutContext = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
exports.TimelineInOutContext = (0, react_1.createContext)({
|
|
6
|
+
inFrame: null,
|
|
7
|
+
outFrame: null,
|
|
8
|
+
});
|
|
9
|
+
exports.SetTimelineInOutContext = (0, react_1.createContext)({
|
|
10
|
+
setInAndOutFrames: () => {
|
|
11
|
+
throw new Error('default');
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
const useTimelineInOutFramePosition = () => {
|
|
15
|
+
const state = (0, react_1.useContext)(exports.TimelineInOutContext);
|
|
16
|
+
return state;
|
|
17
|
+
};
|
|
18
|
+
exports.useTimelineInOutFramePosition = useTimelineInOutFramePosition;
|
|
19
|
+
const useTimelineSetInOutFramePosition = () => {
|
|
20
|
+
const { setInAndOutFrames } = (0, react_1.useContext)(exports.SetTimelineInOutContext);
|
|
21
|
+
return { setInAndOutFrames };
|
|
22
|
+
};
|
|
23
|
+
exports.useTimelineSetInOutFramePosition = useTimelineSetInOutFramePosition;
|
|
@@ -4,7 +4,9 @@ exports.KeybindingContextProvider = exports.KeybindingContext = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
exports.KeybindingContext = (0, react_1.createContext)({
|
|
7
|
-
registerKeybinding: () =>
|
|
7
|
+
registerKeybinding: () => {
|
|
8
|
+
throw new Error('Has no keybinding context');
|
|
9
|
+
},
|
|
8
10
|
unregisterKeybinding: () => undefined,
|
|
9
11
|
unregisterPane: () => undefined,
|
|
10
12
|
});
|
|
@@ -36,6 +38,6 @@ const KeybindingContextProvider = ({ children }) => {
|
|
|
36
38
|
unregisterPane,
|
|
37
39
|
};
|
|
38
40
|
}, [registerKeybinding, unregisterKeybinding, unregisterPane]);
|
|
39
|
-
return ((0, jsx_runtime_1.jsx)(exports.KeybindingContext.Provider, { value: value, children: children }
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(exports.KeybindingContext.Provider, { value: value, children: children }));
|
|
40
42
|
};
|
|
41
43
|
exports.KeybindingContextProvider = KeybindingContextProvider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { UpdateInfo } from '../components/UpdateCheck';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { UpdateInfo } from '../components/UpdateCheck';
|
|
3
3
|
export declare type CompType = 'composition' | 'still';
|
|
4
4
|
export declare type ModalState = {
|
|
5
5
|
type: 'new-comp';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import type { PreviewSize } from '@remotion/player';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare type PreviewSizeCtx = {
|
|
4
4
|
size: PreviewSize;
|
|
5
5
|
setSize: (cb: (oldSize: PreviewSize) => PreviewSize) => void;
|
|
6
6
|
};
|
|
7
7
|
export declare const persistPreviewSizeOption: (option: PreviewSize) => void;
|
|
8
8
|
export declare const loadPreviewSizeOption: () => PreviewSize;
|
|
9
|
-
export declare const PreviewSizeContext:
|
|
9
|
+
export declare const PreviewSizeContext: React.Context<PreviewSizeCtx>;
|
|
10
|
+
export declare const PreviewSizeProvider: React.FC<{
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}>;
|
|
10
13
|
export {};
|
|
@@ -1,20 +1,54 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PreviewSizeContext = exports.loadPreviewSizeOption = exports.persistPreviewSizeOption = void 0;
|
|
3
|
+
exports.PreviewSizeProvider = exports.PreviewSizeContext = exports.loadPreviewSizeOption = exports.persistPreviewSizeOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
5
|
const react_1 = require("react");
|
|
6
|
+
const key = 'remotion.previewSize';
|
|
5
7
|
const persistPreviewSizeOption = (option) => {
|
|
6
|
-
localStorage.setItem(
|
|
8
|
+
localStorage.setItem(key, JSON.stringify(option));
|
|
7
9
|
};
|
|
8
10
|
exports.persistPreviewSizeOption = persistPreviewSizeOption;
|
|
9
11
|
const loadPreviewSizeOption = () => {
|
|
10
|
-
const item = localStorage.getItem(
|
|
12
|
+
const item = localStorage.getItem(key);
|
|
11
13
|
if (item === null) {
|
|
12
|
-
return
|
|
14
|
+
return {
|
|
15
|
+
size: 'auto',
|
|
16
|
+
translation: {
|
|
17
|
+
x: 0,
|
|
18
|
+
y: 0,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
13
21
|
}
|
|
14
|
-
return item;
|
|
22
|
+
return JSON.parse(item);
|
|
15
23
|
};
|
|
16
24
|
exports.loadPreviewSizeOption = loadPreviewSizeOption;
|
|
17
25
|
exports.PreviewSizeContext = (0, react_1.createContext)({
|
|
18
26
|
setSize: () => undefined,
|
|
19
27
|
size: (0, exports.loadPreviewSizeOption)(),
|
|
20
28
|
});
|
|
29
|
+
const PreviewSizeProvider = ({ children }) => {
|
|
30
|
+
const [size, setSizeState] = (0, react_1.useState)(() => (0, exports.loadPreviewSizeOption)());
|
|
31
|
+
const [translation, setTranslation] = (0, react_1.useState)(() => {
|
|
32
|
+
return {
|
|
33
|
+
x: 0,
|
|
34
|
+
y: 0,
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
const setSize = (0, react_1.useCallback)((newValue) => {
|
|
38
|
+
setSizeState((prevState) => {
|
|
39
|
+
const newVal = newValue(prevState);
|
|
40
|
+
(0, exports.persistPreviewSizeOption)(newVal);
|
|
41
|
+
return newVal;
|
|
42
|
+
});
|
|
43
|
+
}, []);
|
|
44
|
+
const previewSizeCtx = (0, react_1.useMemo)(() => {
|
|
45
|
+
return {
|
|
46
|
+
size,
|
|
47
|
+
setSize,
|
|
48
|
+
translation,
|
|
49
|
+
setTranslation,
|
|
50
|
+
};
|
|
51
|
+
}, [setSize, size, translation, setTranslation]);
|
|
52
|
+
return ((0, jsx_runtime_1.jsx)(exports.PreviewSizeContext.Provider, { value: previewSizeCtx, children: children }));
|
|
53
|
+
};
|
|
54
|
+
exports.PreviewSizeProvider = PreviewSizeProvider;
|
|
@@ -2,10 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.renderFrame = void 0;
|
|
4
4
|
const renderFrame = (frame, fps) => {
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const hours = Math.floor(frame / fps / 3600);
|
|
6
|
+
const remainingMinutes = frame - hours * fps * 3600;
|
|
7
|
+
const minutes = Math.floor(remainingMinutes / 60 / fps);
|
|
8
|
+
const remainingSec = frame - hours * fps * 3600 - minutes * fps * 60;
|
|
7
9
|
const seconds = Math.floor(remainingSec / fps);
|
|
8
10
|
const frameAfterSec = Math.round(frame % fps);
|
|
9
|
-
|
|
11
|
+
const hoursStr = String(hours);
|
|
12
|
+
const minutesStr = String(minutes).padStart(2, '0');
|
|
13
|
+
const secondsStr = String(seconds).padStart(2, '0');
|
|
14
|
+
const frameStr = String(frameAfterSec).padStart(2, '0');
|
|
15
|
+
if (hours > 0) {
|
|
16
|
+
return `${hoursStr}:${minutesStr}:${secondsStr}.${frameStr}`;
|
|
17
|
+
}
|
|
18
|
+
return `${minutesStr}:${secondsStr}.${frameStr}`;
|
|
10
19
|
};
|
|
11
20
|
exports.renderFrame = renderFrame;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type SidebarCollapsedState = 'collapsed' | 'expanded' | 'responsive';
|
|
3
|
+
declare type Context = {
|
|
4
|
+
sidebarCollapsedState: SidebarCollapsedState;
|
|
5
|
+
setSidebarCollapsedState: (newState: SidebarCollapsedState) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const getSavedCollapsedState: () => SidebarCollapsedState;
|
|
8
|
+
export declare const SidebarContext: React.Context<Context>;
|
|
9
|
+
export declare const SidebarContextProvider: React.FC<{
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SidebarContextProvider = exports.SidebarContext = exports.getSavedCollapsedState = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const storageKey = 'remotion.sidebarCollapsing';
|
|
7
|
+
const getSavedCollapsedState = () => {
|
|
8
|
+
const state = window.localStorage.getItem(storageKey);
|
|
9
|
+
if (state === 'collapsed') {
|
|
10
|
+
return 'collapsed';
|
|
11
|
+
}
|
|
12
|
+
if (state === 'expanded') {
|
|
13
|
+
return 'expanded';
|
|
14
|
+
}
|
|
15
|
+
return 'responsive';
|
|
16
|
+
};
|
|
17
|
+
exports.getSavedCollapsedState = getSavedCollapsedState;
|
|
18
|
+
const setSavedCollapsedState = (type) => {
|
|
19
|
+
window.localStorage.setItem(storageKey, type);
|
|
20
|
+
};
|
|
21
|
+
exports.SidebarContext = (0, react_1.createContext)({
|
|
22
|
+
sidebarCollapsedState: 'collapsed',
|
|
23
|
+
setSidebarCollapsedState: () => {
|
|
24
|
+
throw new Error('sidebar collapsed state');
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
const SidebarContextProvider = ({ children }) => {
|
|
28
|
+
const [sidebarCollapsedState, setSidebarCollapsedState] = (0, react_1.useState)(() => (0, exports.getSavedCollapsedState)());
|
|
29
|
+
const value = (0, react_1.useMemo)(() => {
|
|
30
|
+
return {
|
|
31
|
+
setSidebarCollapsedState: (state) => {
|
|
32
|
+
setSidebarCollapsedState(state);
|
|
33
|
+
setSavedCollapsedState(state);
|
|
34
|
+
},
|
|
35
|
+
sidebarCollapsedState,
|
|
36
|
+
};
|
|
37
|
+
}, [sidebarCollapsedState]);
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(exports.SidebarContext.Provider, { value: value, children: children }));
|
|
39
|
+
};
|
|
40
|
+
exports.SidebarContextProvider = SidebarContextProvider;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const TIMELINE_MIN_ZOOM = 1;
|
|
3
|
+
export declare const TIMELINE_MAX_ZOOM = 5;
|
|
4
|
+
export declare const TimelineZoomCtx: React.Context<{
|
|
5
|
+
zoom: number;
|
|
6
|
+
setZoom: (prev: (prevZoom: number) => number) => void;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const TimelineZoomContext: React.FC<{
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimelineZoomContext = exports.TimelineZoomCtx = exports.TIMELINE_MAX_ZOOM = exports.TIMELINE_MIN_ZOOM = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const imperative_state_1 = require("../components/Timeline/imperative-state");
|
|
7
|
+
const timeline_scroll_logic_1 = require("../components/Timeline/timeline-scroll-logic");
|
|
8
|
+
exports.TIMELINE_MIN_ZOOM = 1;
|
|
9
|
+
exports.TIMELINE_MAX_ZOOM = 5;
|
|
10
|
+
exports.TimelineZoomCtx = (0, react_1.createContext)({
|
|
11
|
+
zoom: -1,
|
|
12
|
+
setZoom: () => {
|
|
13
|
+
throw new Error('has no context');
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
const TimelineZoomContext = ({ children }) => {
|
|
17
|
+
const [zoom, setZoom] = (0, react_1.useState)(exports.TIMELINE_MIN_ZOOM);
|
|
18
|
+
const value = (0, react_1.useMemo)(() => {
|
|
19
|
+
return {
|
|
20
|
+
zoom,
|
|
21
|
+
setZoom: (callback) => {
|
|
22
|
+
setZoom((prevZoom) => {
|
|
23
|
+
const newZoomWithFloatingPointErrors = Math.min(exports.TIMELINE_MAX_ZOOM, Math.max(exports.TIMELINE_MIN_ZOOM, callback(prevZoom)));
|
|
24
|
+
const newZoom = Math.round(newZoomWithFloatingPointErrors * 10) / 10;
|
|
25
|
+
(0, timeline_scroll_logic_1.zoomAndPreserveCursor)({
|
|
26
|
+
oldZoom: prevZoom,
|
|
27
|
+
newZoom,
|
|
28
|
+
currentDurationInFrames: (0, imperative_state_1.getCurrentDuration)(),
|
|
29
|
+
currentFrame: (0, imperative_state_1.getCurrentFrame)(),
|
|
30
|
+
});
|
|
31
|
+
return newZoom;
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}, [zoom]);
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(exports.TimelineZoomCtx.Provider, { value: value, children: children }));
|
|
37
|
+
};
|
|
38
|
+
exports.TimelineZoomContext = TimelineZoomContext;
|
|
@@ -12,7 +12,12 @@ exports.ZIndexContext = (0, react_1.createContext)({
|
|
|
12
12
|
const EscapeHook = ({ onEscape }) => {
|
|
13
13
|
const keybindings = (0, use_keybinding_1.useKeybinding)();
|
|
14
14
|
(0, react_1.useEffect)(() => {
|
|
15
|
-
const escape = keybindings.registerKeybinding(
|
|
15
|
+
const escape = keybindings.registerKeybinding({
|
|
16
|
+
event: 'keydown',
|
|
17
|
+
key: 'Escape',
|
|
18
|
+
callback: onEscape,
|
|
19
|
+
commandCtrlKey: false,
|
|
20
|
+
});
|
|
16
21
|
return () => {
|
|
17
22
|
escape.unregister();
|
|
18
23
|
};
|
|
@@ -49,7 +54,7 @@ const HigherZIndex = ({ children, onEscape, onOutsideClick }) => {
|
|
|
49
54
|
currentIndex,
|
|
50
55
|
};
|
|
51
56
|
}, [currentIndex]);
|
|
52
|
-
return ((0, jsx_runtime_1.jsxs)(exports.ZIndexContext.Provider, { value: value, children: [(0, jsx_runtime_1.jsx)(EscapeHook, { onEscape: onEscape }
|
|
57
|
+
return ((0, jsx_runtime_1.jsxs)(exports.ZIndexContext.Provider, { value: value, children: [(0, jsx_runtime_1.jsx)(EscapeHook, { onEscape: onEscape }), (0, jsx_runtime_1.jsx)("div", { ref: containerRef, children: children })] }));
|
|
53
58
|
};
|
|
54
59
|
exports.HigherZIndex = HigherZIndex;
|
|
55
60
|
const useZIndex = () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const openEventSource: () => void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.openEventSource = void 0;
|
|
4
|
+
const ServerDisconnected_1 = require("./editor/components/Notifications/ServerDisconnected");
|
|
5
|
+
let source = null;
|
|
6
|
+
const openEventSource = () => {
|
|
7
|
+
source = new EventSource('/events');
|
|
8
|
+
source.addEventListener('message', (event) => {
|
|
9
|
+
const newEvent = JSON.parse(event.data);
|
|
10
|
+
if (newEvent.type === 'new-input-props') {
|
|
11
|
+
window.location.reload();
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
source.addEventListener('open', () => {
|
|
15
|
+
var _a;
|
|
16
|
+
(_a = ServerDisconnected_1.serverDisconnectedRef.current) === null || _a === void 0 ? void 0 : _a.setServerConnected();
|
|
17
|
+
});
|
|
18
|
+
source.addEventListener('error', () => {
|
|
19
|
+
var _a;
|
|
20
|
+
// Display an error message that the preview server has disconnected.
|
|
21
|
+
(_a = ServerDisconnected_1.serverDisconnectedRef.current) === null || _a === void 0 ? void 0 : _a.setServerDisconnected();
|
|
22
|
+
// Retry later
|
|
23
|
+
setTimeout(() => {
|
|
24
|
+
(0, exports.openEventSource)();
|
|
25
|
+
}, 1000);
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
exports.openEventSource = openEventSource;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.findRemotionRoot = exports.findClosestPackageJson = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const log_1 = require("./log");
|
|
10
|
+
const recursionLimit = 5;
|
|
11
|
+
const findClosestPackageJson = () => {
|
|
12
|
+
let currentDir = process.cwd();
|
|
13
|
+
let possiblePackageJson = '';
|
|
14
|
+
for (let i = 0; i < recursionLimit; i++) {
|
|
15
|
+
possiblePackageJson = path_1.default.join(currentDir, 'package.json');
|
|
16
|
+
const exists = fs_1.default.existsSync(possiblePackageJson);
|
|
17
|
+
if (exists) {
|
|
18
|
+
return possiblePackageJson;
|
|
19
|
+
}
|
|
20
|
+
currentDir = path_1.default.dirname(currentDir);
|
|
21
|
+
}
|
|
22
|
+
return null;
|
|
23
|
+
};
|
|
24
|
+
exports.findClosestPackageJson = findClosestPackageJson;
|
|
25
|
+
const findRemotionRoot = () => {
|
|
26
|
+
const closestPackageJson = (0, exports.findClosestPackageJson)();
|
|
27
|
+
if (closestPackageJson === null) {
|
|
28
|
+
log_1.Log.error('Could not find a package.json in the current directory or any of the ' +
|
|
29
|
+
recursionLimit +
|
|
30
|
+
' parent directories. Is this a Remotion project?');
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
return path_1.default.dirname(closestPackageJson);
|
|
34
|
+
};
|
|
35
|
+
exports.findRemotionRoot = findRemotionRoot;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatBytes = void 0;
|
|
4
|
+
const BYTE_UNITS = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
|
5
|
+
const BIBYTE_UNITS = [
|
|
6
|
+
'B',
|
|
7
|
+
'kiB',
|
|
8
|
+
'MiB',
|
|
9
|
+
'GiB',
|
|
10
|
+
'TiB',
|
|
11
|
+
'PiB',
|
|
12
|
+
'EiB',
|
|
13
|
+
'ZiB',
|
|
14
|
+
'YiB',
|
|
15
|
+
];
|
|
16
|
+
const BIT_UNITS = [
|
|
17
|
+
'b',
|
|
18
|
+
'kbit',
|
|
19
|
+
'Mbit',
|
|
20
|
+
'Gbit',
|
|
21
|
+
'Tbit',
|
|
22
|
+
'Pbit',
|
|
23
|
+
'Ebit',
|
|
24
|
+
'Zbit',
|
|
25
|
+
'Ybit',
|
|
26
|
+
];
|
|
27
|
+
const BIBIT_UNITS = [
|
|
28
|
+
'b',
|
|
29
|
+
'kibit',
|
|
30
|
+
'Mibit',
|
|
31
|
+
'Gibit',
|
|
32
|
+
'Tibit',
|
|
33
|
+
'Pibit',
|
|
34
|
+
'Eibit',
|
|
35
|
+
'Zibit',
|
|
36
|
+
'Yibit',
|
|
37
|
+
];
|
|
38
|
+
/*
|
|
39
|
+
Formats the given number using `Number#toLocaleString`.
|
|
40
|
+
- If locale is a string, the value is expected to be a locale-key (for example: `de`).
|
|
41
|
+
- If locale is true, the system default locale is used for translation.
|
|
42
|
+
- If no value for locale is specified, the number is returned unmodified.
|
|
43
|
+
*/
|
|
44
|
+
const toLocaleString = (number, locale, options) => {
|
|
45
|
+
if (typeof locale === 'string' || Array.isArray(locale)) {
|
|
46
|
+
return number.toLocaleString(locale, options);
|
|
47
|
+
}
|
|
48
|
+
if (locale === true || options !== undefined) {
|
|
49
|
+
return number.toLocaleString(undefined, options);
|
|
50
|
+
}
|
|
51
|
+
return String(number);
|
|
52
|
+
};
|
|
53
|
+
const formatBytes = (number, options = {
|
|
54
|
+
locale: 'en-US',
|
|
55
|
+
signed: false,
|
|
56
|
+
maximumFractionDigits: 1,
|
|
57
|
+
}) => {
|
|
58
|
+
if (!Number.isFinite(number)) {
|
|
59
|
+
throw new TypeError(`Expected a finite number, got ${typeof number}: ${number}`);
|
|
60
|
+
}
|
|
61
|
+
options = { bits: false, binary: false, ...options };
|
|
62
|
+
const UNITS = options.bits
|
|
63
|
+
? options.binary
|
|
64
|
+
? BIBIT_UNITS
|
|
65
|
+
: BIT_UNITS
|
|
66
|
+
: options.binary
|
|
67
|
+
? BIBYTE_UNITS
|
|
68
|
+
: BYTE_UNITS;
|
|
69
|
+
if (options.signed && number === 0) {
|
|
70
|
+
return `0 $ {
|
|
71
|
+
UNITS[0]
|
|
72
|
+
}`;
|
|
73
|
+
}
|
|
74
|
+
const isNegative = number < 0;
|
|
75
|
+
const prefix = isNegative ? '-' : options.signed ? '+' : '';
|
|
76
|
+
if (isNegative) {
|
|
77
|
+
number = -number;
|
|
78
|
+
}
|
|
79
|
+
let localeOptions;
|
|
80
|
+
if (options.minimumFractionDigits !== undefined) {
|
|
81
|
+
localeOptions = {
|
|
82
|
+
minimumFractionDigits: options.minimumFractionDigits,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
if (options.maximumFractionDigits !== undefined) {
|
|
86
|
+
localeOptions = {
|
|
87
|
+
maximumFractionDigits: options.maximumFractionDigits,
|
|
88
|
+
...localeOptions,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
if (number < 1) {
|
|
92
|
+
const numString = toLocaleString(number, options.locale, localeOptions);
|
|
93
|
+
return prefix + numString + ' ' + UNITS[0];
|
|
94
|
+
}
|
|
95
|
+
const exponent = Math.min(Math.floor(options.binary
|
|
96
|
+
? Math.log(number) / Math.log(1024)
|
|
97
|
+
: Math.log10(number) / 3), UNITS.length - 1);
|
|
98
|
+
number /= (options.binary ? 1024 : 1000) ** exponent;
|
|
99
|
+
const numberString = toLocaleString(Number(number), options.locale, localeOptions);
|
|
100
|
+
const unit = UNITS[exponent];
|
|
101
|
+
return prefix + numberString + ' ' + unit;
|
|
102
|
+
};
|
|
103
|
+
exports.formatBytes = formatBytes;
|