@remotion/cli 4.0.0-fastlambda.8 → 4.0.0-lambda.3
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-on-cli.d.ts +2 -0
- package/dist/bundle-on-cli.js +41 -0
- package/dist/bundle.d.ts +1 -0
- package/dist/bundle.js +31 -0
- package/dist/compositions.js +14 -3
- package/dist/download-progress.js +4 -1
- package/dist/editor/components/AudioWaveform.js +2 -2
- package/dist/editor/components/AudioWaveformBar.js +1 -1
- package/dist/editor/components/Canvas.js +1 -1
- package/dist/editor/components/CheckboardToggle.js +1 -1
- 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 +5 -45
- package/dist/editor/components/CompositionSelectorItem.js +3 -3
- package/dist/editor/components/ControlButton.js +1 -1
- package/dist/editor/components/CopyButton.js +2 -2
- package/dist/editor/components/CurrentComposition.js +2 -2
- package/dist/editor/components/Editor.js +24 -8
- package/dist/editor/components/EditorContent.js +3 -2
- package/dist/editor/components/FpsCounter.js +1 -1
- package/dist/editor/components/InitialCompositionLoader.d.ts +4 -0
- package/dist/editor/components/InitialCompositionLoader.js +60 -0
- package/dist/editor/components/KeyboardShortcutsModal.js +1 -1
- package/dist/editor/components/LoadingIndicator.js +1 -1
- package/dist/editor/components/LoopToggle.js +1 -1
- package/dist/editor/components/Menu/MenuDivider.js +1 -1
- package/dist/editor/components/Menu/MenuItem.js +3 -3
- package/dist/editor/components/Menu/MenuSubItem.js +3 -3
- package/dist/editor/components/Menu/SubMenu.js +1 -1
- package/dist/editor/components/MenuBuildIndicator.d.ts +2 -0
- package/dist/editor/components/MenuBuildIndicator.js +26 -0
- package/dist/editor/components/MenuToolbar.js +69 -9
- 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.js +1 -1
- package/dist/editor/components/NewComposition/ComboBox.js +3 -3
- package/dist/editor/components/NewComposition/CopyHint.js +1 -1
- package/dist/editor/components/NewComposition/InputDragger.js +2 -2
- package/dist/editor/components/NewComposition/MenuContent.js +1 -1
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js +1 -1
- package/dist/editor/components/NewComposition/NewCompDuration.js +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/NoRegisterRoot.d.ts +2 -0
- package/dist/editor/components/NoRegisterRoot.js +41 -0
- package/dist/editor/components/PlayPause.js +40 -11
- package/dist/editor/components/PlaybackRateSelector.js +2 -2
- package/dist/editor/components/Preview.js +10 -7
- package/dist/editor/components/PreviewToolbar.js +1 -1
- package/dist/editor/components/RichTimelineToggle.js +1 -1
- package/dist/editor/components/SizeSelector.js +2 -2
- package/dist/editor/components/Splitter/SplitterContainer.js +1 -1
- package/dist/editor/components/Splitter/SplitterElement.js +4 -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.js +1 -1
- package/dist/editor/components/TimeValue.js +1 -1
- package/dist/editor/components/Timeline/LoopedIndicator.js +2 -2
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +3 -3
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +1 -1
- package/dist/editor/components/Timeline/Timeline.js +2 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +2 -2
- package/dist/editor/components/Timeline/TimelineDragHandler.js +1 -1
- package/dist/editor/components/Timeline/TimelineInOutPointer.js +2 -2
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +1 -1
- package/dist/editor/components/Timeline/TimelineList.js +1 -1
- package/dist/editor/components/Timeline/TimelineListItem.js +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.js +1 -1
- package/dist/editor/components/Timeline/TimelineSliderHandle.js +1 -1
- package/dist/editor/components/Timeline/TimelineTracks.js +2 -2
- package/dist/editor/components/Timeline/TimelineVideoInfo.js +1 -1
- package/dist/editor/components/TimelineInOutToggle.js +1 -1
- 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.js +1 -1
- package/dist/editor/components/layout.js +4 -4
- package/dist/editor/helpers/use-compact-ui.d.ts +1 -0
- package/dist/editor/helpers/use-compact-ui.js +18 -0
- 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.js +1 -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.js +2 -2
- package/dist/editor/icons/media-volume.js +2 -2
- package/dist/editor/icons/pause.js +1 -1
- package/dist/editor/icons/play.js +1 -1
- package/dist/editor/icons/step-back.js +1 -1
- package/dist/editor/icons/step-forward.js +1 -1
- package/dist/editor/icons/still.js +1 -1
- package/dist/editor/icons/timeline.js +1 -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/keybindings.js +1 -1
- package/dist/editor/state/sidebar.d.ts +12 -0
- package/dist/editor/state/sidebar.js +40 -0
- package/dist/editor/state/z-index.js +1 -1
- package/dist/get-cli-options.d.ts +3 -1
- package/dist/get-cli-options.js +8 -2
- package/dist/get-latest-remotion-version.d.ts +1 -0
- package/dist/get-latest-remotion-version.js +31 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +5 -1
- package/dist/lambda-command.js +5 -1
- package/dist/parse-command-line.d.ts +1 -0
- package/dist/parse-command-line.js +6 -0
- package/dist/prepare-entry-point.d.ts +11 -0
- package/dist/prepare-entry-point.js +36 -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 +79 -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 +13 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +58 -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 +12 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +460 -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 +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +14 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +24 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +28 -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 +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +45 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +61 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +41 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +91 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +14 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +49 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +13 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +8 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +48 -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 +3 -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/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 +9 -0
- package/dist/preview-server/get-package-manager.js +40 -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/project-info.d.ts +5 -0
- package/dist/preview-server/project-info.js +22 -0
- package/dist/preview-server/routes.d.ts +7 -0
- package/dist/preview-server/routes.js +128 -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 +8 -0
- package/dist/preview-server/start-server.js +69 -0
- package/dist/preview-server/update-available.d.ts +11 -0
- package/dist/preview-server/update-available.js +44 -0
- package/dist/preview.js +2 -2
- package/dist/previewEntry.js +2 -2
- package/dist/print-error.js +1 -0
- package/dist/print-help.js +3 -3
- package/dist/render.js +30 -24
- package/dist/still.js +46 -15
- package/dist/upgrade.js +9 -7
- package/dist/versions.js +3 -0
- package/dist/webpack-cache.d.ts +12 -0
- package/dist/webpack-cache.js +66 -0
- package/package.json +12 -10
- package/web/favicon.png +0 -0
|
@@ -8,7 +8,6 @@ const remotion_1 = require("remotion");
|
|
|
8
8
|
const checkerboard_background_1 = require("../helpers/checkerboard-background");
|
|
9
9
|
const checkerboard_1 = require("../state/checkerboard");
|
|
10
10
|
const preview_size_1 = require("../state/preview-size");
|
|
11
|
-
const LoadingIndicator_1 = require("./LoadingIndicator");
|
|
12
11
|
const checkerboardSize = 49;
|
|
13
12
|
const containerStyle = (options) => {
|
|
14
13
|
return {
|
|
@@ -26,9 +25,8 @@ const containerStyle = (options) => {
|
|
|
26
25
|
};
|
|
27
26
|
};
|
|
28
27
|
const Inner = ({ canvasSize }) => {
|
|
29
|
-
var _a;
|
|
30
28
|
const { size: previewSize } = (0, react_1.useContext)(preview_size_1.PreviewSizeContext);
|
|
31
|
-
const
|
|
29
|
+
const portalContainer = (0, react_1.useRef)(null);
|
|
32
30
|
const config = (0, remotion_1.useVideoConfig)();
|
|
33
31
|
const { checkerboard } = (0, react_1.useContext)(checkerboard_1.CheckerboardContext);
|
|
34
32
|
const { centerX, centerY, yCorrection, xCorrection, scale } = player_1.PlayerInternals.calculateScale({
|
|
@@ -66,15 +64,20 @@ const Inner = ({ canvasSize }) => {
|
|
|
66
64
|
xCorrection,
|
|
67
65
|
yCorrection,
|
|
68
66
|
]);
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
(0, react_1.useEffect)(() => {
|
|
68
|
+
const { current } = portalContainer;
|
|
69
|
+
current === null || current === void 0 ? void 0 : current.appendChild(remotion_1.Internals.portalNode());
|
|
70
|
+
return () => {
|
|
71
|
+
current === null || current === void 0 ? void 0 : current.removeChild(remotion_1.Internals.portalNode());
|
|
72
|
+
};
|
|
73
|
+
}, []);
|
|
74
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: outer, children: (0, jsx_runtime_1.jsx)("div", { ref: portalContainer, style: style }) }));
|
|
72
75
|
};
|
|
73
76
|
const VideoPreview = ({ canvasSize }) => {
|
|
74
77
|
const config = remotion_1.Internals.useUnsafeVideoConfig();
|
|
75
78
|
if (!config) {
|
|
76
79
|
return null;
|
|
77
80
|
}
|
|
78
|
-
return (0, jsx_runtime_1.jsx)(Inner, { canvasSize: canvasSize }
|
|
81
|
+
return (0, jsx_runtime_1.jsx)(Inner, { canvasSize: canvasSize });
|
|
79
82
|
};
|
|
80
83
|
exports.VideoPreview = VideoPreview;
|
|
@@ -43,6 +43,6 @@ const PreviewToolbar = () => {
|
|
|
43
43
|
const { mediaMuted } = (0, react_1.useContext)(remotion_1.Internals.MediaVolumeContext);
|
|
44
44
|
const { setMediaMuted } = (0, react_1.useContext)(remotion_1.Internals.SetMediaVolumeContext);
|
|
45
45
|
const [loop, setLoop] = (0, react_1.useState)((0, loop_1.loadLoopOption)());
|
|
46
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, className: "css-reset", children: [(0, jsx_runtime_1.jsxs)("div", { style: sideContainer, children: [(0, jsx_runtime_1.jsx)("div", { style: padding }
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, className: "css-reset", children: [(0, jsx_runtime_1.jsxs)("div", { style: sideContainer, children: [(0, jsx_runtime_1.jsx)("div", { style: padding }), (0, jsx_runtime_1.jsx)(TimeValue_1.TimeValue, {})] }), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), (0, jsx_runtime_1.jsx)(SizeSelector_1.SizeSelector, {}), (0, jsx_runtime_1.jsx)(PlaybackRateSelector_1.PlaybackRateSelector, { setPlaybackRate: setPlaybackRate, playbackRate: playbackRate }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 2 }), (0, jsx_runtime_1.jsx)(PlayPause_1.PlayPause, { loop: loop, playbackRate: playbackRate }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 2 }), (0, jsx_runtime_1.jsx)(LoopToggle_1.LoopToggle, { loop: loop, setLoop: setLoop }), (0, jsx_runtime_1.jsx)(CheckboardToggle_1.CheckboardToggle, {}), (0, jsx_runtime_1.jsx)(RichTimelineToggle_1.RichTimelineToggle, {}), (0, jsx_runtime_1.jsx)(TimelineInOutToggle_1.TimelineInOutPointToggle, {}), (0, jsx_runtime_1.jsx)(MuteToggle_1.MuteToggle, { muted: mediaMuted, setMuted: setMediaMuted }), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), (0, jsx_runtime_1.jsxs)("div", { style: sideContainer, children: [(0, jsx_runtime_1.jsx)(layout_1.Flex, {}), (0, jsx_runtime_1.jsx)(FpsCounter_1.FpsCounter, { playbackSpeed: playbackRate }), (0, jsx_runtime_1.jsx)("div", { style: padding })] }), (0, jsx_runtime_1.jsx)(PlaybackKeyboardShortcutsManager_1.PlaybackKeyboardShortcutsManager, { setPlaybackRate: setPlaybackRate }), (0, jsx_runtime_1.jsx)(PlaybackRatePersistor_1.PlaybackRatePersistor, {})] }));
|
|
47
47
|
};
|
|
48
48
|
exports.PreviewToolbar = PreviewToolbar;
|
|
@@ -45,11 +45,11 @@ const SizeSelector = () => {
|
|
|
45
45
|
type: 'item',
|
|
46
46
|
value: newSize,
|
|
47
47
|
keyHint: null,
|
|
48
|
-
leftItem: String(size) === String(newSize) ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}
|
|
48
|
+
leftItem: String(size) === String(newSize) ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null,
|
|
49
49
|
subMenu: null,
|
|
50
50
|
};
|
|
51
51
|
});
|
|
52
52
|
}, [setSize, size]);
|
|
53
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: style, "aria-label": accessibilityLabel, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { title: accessibilityLabel, style: comboStyle, selectedId: String(size), values: items }
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: style, "aria-label": accessibilityLabel, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { title: accessibilityLabel, style: comboStyle, selectedId: String(size), values: items }) }));
|
|
54
54
|
};
|
|
55
55
|
exports.SizeSelector = SizeSelector;
|
|
@@ -62,6 +62,6 @@ const SplitterContainer = ({ orientation, children, defaultFlex, maxFlex, minFle
|
|
|
62
62
|
orientation,
|
|
63
63
|
persistFlex,
|
|
64
64
|
]);
|
|
65
|
-
return ((0, jsx_runtime_1.jsx)(SplitterContext_1.SplitterContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)("div", { ref: ref, style: orientation === 'horizontal' ? containerColumn : containerRow, children: children }
|
|
65
|
+
return ((0, jsx_runtime_1.jsx)(SplitterContext_1.SplitterContext.Provider, { value: value, children: (0, jsx_runtime_1.jsx)("div", { ref: ref, style: orientation === 'horizontal' ? containerColumn : containerRow, children: children }) }));
|
|
66
66
|
};
|
|
67
67
|
exports.SplitterContainer = SplitterContainer;
|
|
@@ -8,11 +8,13 @@ const SplitterElement = ({ children, type }) => {
|
|
|
8
8
|
const context = (0, react_1.useContext)(SplitterContext_1.SplitterContext);
|
|
9
9
|
const style = (0, react_1.useMemo)(() => {
|
|
10
10
|
return {
|
|
11
|
-
flex:
|
|
11
|
+
flex:
|
|
12
|
+
// Multiply by 1000 because if flex values don't add up to at least 1, they will not fill up the screen
|
|
13
|
+
(type === 'flexer' ? context.flexValue : 1 - context.flexValue) * 1000,
|
|
12
14
|
display: 'flex',
|
|
13
15
|
position: 'relative',
|
|
14
16
|
};
|
|
15
17
|
}, [context.flexValue, type]);
|
|
16
|
-
return (0, jsx_runtime_1.jsx)("div", { style: style, children: children }
|
|
18
|
+
return (0, jsx_runtime_1.jsx)("div", { style: style, children: children });
|
|
17
19
|
};
|
|
18
20
|
exports.SplitterElement = SplitterElement;
|
|
@@ -14,7 +14,7 @@ const containerColumn = {
|
|
|
14
14
|
width: exports.SPLITTER_HANDLE_SIZE,
|
|
15
15
|
cursor: 'col-resize',
|
|
16
16
|
};
|
|
17
|
-
const SplitterHandle = () => {
|
|
17
|
+
const SplitterHandle = ({ allowToCollapse, onCollapse }) => {
|
|
18
18
|
const context = (0, react_1.useContext)(SplitterContext_1.SplitterContext);
|
|
19
19
|
if (!context) {
|
|
20
20
|
throw new Error('Cannot find splitter context');
|
|
@@ -32,7 +32,7 @@ const SplitterHandle = () => {
|
|
|
32
32
|
if (!current) {
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
|
-
const getNewValue = (e) => {
|
|
35
|
+
const getNewValue = (e, clamp) => {
|
|
36
36
|
if (!context.isDragging.current) {
|
|
37
37
|
throw new Error('cannot get value if not dragging');
|
|
38
38
|
}
|
|
@@ -49,7 +49,10 @@ const SplitterHandle = () => {
|
|
|
49
49
|
(height - exports.SPLITTER_HANDLE_SIZE));
|
|
50
50
|
})();
|
|
51
51
|
const newFlex = context.flexValue + change;
|
|
52
|
-
|
|
52
|
+
if (clamp) {
|
|
53
|
+
return Math.min(context.maxFlex, Math.max(context.minFlex, newFlex));
|
|
54
|
+
}
|
|
55
|
+
return newFlex;
|
|
53
56
|
};
|
|
54
57
|
const onPointerDown = (e) => {
|
|
55
58
|
var _a;
|
|
@@ -59,7 +62,10 @@ const SplitterHandle = () => {
|
|
|
59
62
|
};
|
|
60
63
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.classList.add('remotion-splitter-active');
|
|
61
64
|
window.addEventListener('pointerup', (ev) => {
|
|
62
|
-
context.
|
|
65
|
+
if (!context.isDragging.current) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
context.persistFlex(getNewValue(ev, true));
|
|
63
69
|
cleanup();
|
|
64
70
|
setLastPointerUp(Date.now());
|
|
65
71
|
}, { once: true });
|
|
@@ -67,8 +73,16 @@ const SplitterHandle = () => {
|
|
|
67
73
|
};
|
|
68
74
|
const onPointerMove = (e) => {
|
|
69
75
|
if (context.isDragging.current) {
|
|
70
|
-
const val = getNewValue(e);
|
|
76
|
+
const val = getNewValue(e, true);
|
|
71
77
|
context.setFlexValue(val);
|
|
78
|
+
if (allowToCollapse) {
|
|
79
|
+
const unclamped = getNewValue(e, false);
|
|
80
|
+
if (unclamped < context.minFlex / 2) {
|
|
81
|
+
cleanup();
|
|
82
|
+
onCollapse();
|
|
83
|
+
setLastPointerUp(Date.now());
|
|
84
|
+
}
|
|
85
|
+
}
|
|
72
86
|
}
|
|
73
87
|
};
|
|
74
88
|
const cleanup = () => {
|
|
@@ -85,7 +99,14 @@ const SplitterHandle = () => {
|
|
|
85
99
|
cleanup();
|
|
86
100
|
}
|
|
87
101
|
};
|
|
88
|
-
}, [
|
|
89
|
-
|
|
102
|
+
}, [
|
|
103
|
+
allowToCollapse,
|
|
104
|
+
context,
|
|
105
|
+
context.domRect,
|
|
106
|
+
context.flexValue,
|
|
107
|
+
lastPointerUp,
|
|
108
|
+
onCollapse,
|
|
109
|
+
]);
|
|
110
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: "remotion-splitter", style: context.orientation === 'horizontal' ? containerRow : containerColumn }));
|
|
90
111
|
};
|
|
91
112
|
exports.SplitterHandle = SplitterHandle;
|
|
@@ -71,6 +71,6 @@ const Thumbnail = ({ composition, targetHeight, targetWidth, frameToDisplay }) =
|
|
|
71
71
|
return (_a = composition.defaultProps) !== null && _a !== void 0 ? _a : {};
|
|
72
72
|
}, [composition.defaultProps]);
|
|
73
73
|
const ThumbnailComponent = composition.component;
|
|
74
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: null, children: (0, jsx_runtime_1.jsx)("div", { style: outer, children: (0, jsx_runtime_1.jsx)("div", { style: inner, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.Timeline.TimelineContext.Provider, { value: timelineState, children: (0, jsx_runtime_1.jsx)(ThumbnailComponent, { ...props }
|
|
74
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: null, children: (0, jsx_runtime_1.jsx)("div", { style: outer, children: (0, jsx_runtime_1.jsx)("div", { style: inner, children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.Timeline.TimelineContext.Provider, { value: timelineState, children: (0, jsx_runtime_1.jsx)(ThumbnailComponent, { ...props }) }) }) }) }) }));
|
|
75
75
|
};
|
|
76
76
|
exports.Thumbnail = Thumbnail;
|
|
@@ -33,6 +33,6 @@ const TimeValue = () => {
|
|
|
33
33
|
if (isStill) {
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: text, children: [(0, jsx_runtime_1.jsx)("div", { style: time, children: (0, render_frame_1.renderFrame)(frame, config.fps) }
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: text, children: [(0, jsx_runtime_1.jsx)("div", { style: time, children: (0, render_frame_1.renderFrame)(frame, config.fps) }), ' ', (0, jsx_runtime_1.jsxs)("div", { style: frameStyle, children: [frame, " ", (0, jsx_runtime_1.jsxs)("span", { style: frameStyle, children: ["(", config.fps, " fps)"] })] })] }));
|
|
37
37
|
};
|
|
38
38
|
exports.TimeValue = TimeValue;
|
|
@@ -13,7 +13,7 @@ const icon = {
|
|
|
13
13
|
height: 12,
|
|
14
14
|
width: 12,
|
|
15
15
|
};
|
|
16
|
-
const Icon = () => ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "repeat", className: "svg-inline--fa fa-repeat fa-w-16", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", style: icon, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M512 256c0 88.224-71.775 160-160 160H170.067l34.512 32.419c9.875 9.276 10.119 24.883.539 34.464l-10.775 10.775c-9.373 9.372-24.568 9.372-33.941 0l-92.686-92.686c-9.373-9.373-9.373-24.568 0-33.941l92.686-92.686c9.373-9.373 24.568-9.373 33.941 0l10.775 10.775c9.581 9.581 9.337 25.187-.539 34.464L170.067 352H352c52.935 0 96-43.065 96-96 0-13.958-2.996-27.228-8.376-39.204-4.061-9.039-2.284-19.626 4.723-26.633l12.183-12.183c11.499-11.499 30.965-8.526 38.312 5.982C505.814 205.624 512 230.103 512 256zM72.376 295.204C66.996 283.228 64 269.958 64 256c0-52.935 43.065-96 96-96h181.933l-34.512 32.419c-9.875 9.276-10.119 24.883-.539 34.464l10.775 10.775c9.373 9.372 24.568 9.372 33.941 0l92.686-92.686c9.373-9.373 9.373-24.568 0-33.941l-92.686-92.686c-9.373-9.373-24.568-9.373-33.941 0L306.882 29.12c-9.581 9.581-9.337 25.187.539 34.464L341.933 96H160C71.775 96 0 167.776 0 256c0 25.897 6.186 50.376 17.157 72.039 7.347 14.508 26.813 17.481 38.312 5.982l12.183-12.183c7.008-7.008 8.786-17.595 4.724-26.634z" }
|
|
16
|
+
const Icon = () => ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "repeat", className: "svg-inline--fa fa-repeat fa-w-16", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", style: icon, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M512 256c0 88.224-71.775 160-160 160H170.067l34.512 32.419c9.875 9.276 10.119 24.883.539 34.464l-10.775 10.775c-9.373 9.372-24.568 9.372-33.941 0l-92.686-92.686c-9.373-9.373-9.373-24.568 0-33.941l92.686-92.686c9.373-9.373 24.568-9.373 33.941 0l10.775 10.775c9.581 9.581 9.337 25.187-.539 34.464L170.067 352H352c52.935 0 96-43.065 96-96 0-13.958-2.996-27.228-8.376-39.204-4.061-9.039-2.284-19.626 4.723-26.633l12.183-12.183c11.499-11.499 30.965-8.526 38.312 5.982C505.814 205.624 512 230.103 512 256zM72.376 295.204C66.996 283.228 64 269.958 64 256c0-52.935 43.065-96 96-96h181.933l-34.512 32.419c-9.875 9.276-10.119 24.883-.539 34.464l10.775 10.775c9.373 9.372 24.568 9.372 33.941 0l92.686-92.686c9.373-9.373 9.373-24.568 0-33.941l-92.686-92.686c-9.373-9.373-24.568-9.373-33.941 0L306.882 29.12c-9.581 9.581-9.337 25.187.539 34.464L341.933 96H160C71.775 96 0 167.776 0 256c0 25.897 6.186 50.376 17.157 72.039 7.347 14.508 26.813 17.481 38.312 5.982l12.183-12.183c7.008-7.008 8.786-17.595 4.724-26.634z" }) }));
|
|
17
17
|
const topLine = {
|
|
18
18
|
top: 0,
|
|
19
19
|
height: 10,
|
|
@@ -39,6 +39,6 @@ const bottomContainer = {
|
|
|
39
39
|
alignItems: 'center',
|
|
40
40
|
};
|
|
41
41
|
const LoopedIndicator = () => {
|
|
42
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: width, children: [(0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: topContainer, children: (0, jsx_runtime_1.jsx)("div", { style: topLine }
|
|
42
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: width, children: [(0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: topContainer, children: (0, jsx_runtime_1.jsx)("div", { style: topLine }) }), (0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: bottomContainer, children: (0, jsx_runtime_1.jsx)("div", { style: bottomLine }) }), (0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: centerContainer, children: (0, jsx_runtime_1.jsx)(Icon, {}) })] }));
|
|
43
43
|
};
|
|
44
44
|
exports.LoopedIndicator = LoopedIndicator;
|
|
@@ -13,10 +13,10 @@ const row = {
|
|
|
13
13
|
flexDirection: 'row',
|
|
14
14
|
};
|
|
15
15
|
const LoopedTimelineIndicator = ({ loops }) => {
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: row, children: new Array(loops).fill(true).map((
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: row, children: new Array(loops).fill(true).map((_l, i) => {
|
|
17
17
|
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment
|
|
18
18
|
// eslint-disable-next-line
|
|
19
|
-
, { children: [(0, jsx_runtime_1.jsx)(layout_1.Flex, {}
|
|
20
|
-
}) }
|
|
19
|
+
, { children: [(0, jsx_runtime_1.jsx)(layout_1.Flex, {}), i === loops - 1 ? null : (0, jsx_runtime_1.jsx)(LoopedIndicator_1.LoopedIndicator, {})] }, i));
|
|
20
|
+
}) }));
|
|
21
21
|
};
|
|
22
22
|
exports.LoopedTimelineIndicator = LoopedTimelineIndicator;
|
|
@@ -16,6 +16,6 @@ const container = {
|
|
|
16
16
|
paddingLeft: timeline_layout_1.TIMELINE_PADDING + 5,
|
|
17
17
|
};
|
|
18
18
|
const MaxTimelineTracksReached = () => {
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: ["Limited display to ", exports.MAX_TIMELINE_TRACKS, " tracks to sustain performance.", '', "You can change this by setting Config.Preview.setMaxTimelineTracks() in your remotion.config.ts file."] }
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: ["Limited display to ", exports.MAX_TIMELINE_TRACKS, " tracks to sustain performance.", '', "You can change this by setting Config.Preview.setMaxTimelineTracks() in your remotion.config.ts file."] }));
|
|
20
20
|
};
|
|
21
21
|
exports.MaxTimelineTracksReached = MaxTimelineTracksReached;
|
|
@@ -25,6 +25,7 @@ const container = {
|
|
|
25
25
|
height: 0,
|
|
26
26
|
overflow: 'auto',
|
|
27
27
|
};
|
|
28
|
+
const noop = () => undefined;
|
|
28
29
|
const Timeline = () => {
|
|
29
30
|
const { sequences } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
30
31
|
const videoConfig = remotion_1.Internals.useUnsafeVideoConfig();
|
|
@@ -72,6 +73,6 @@ const Timeline = () => {
|
|
|
72
73
|
if (!videoConfig) {
|
|
73
74
|
return null;
|
|
74
75
|
}
|
|
75
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: container, className: "css-reset", children: (0, jsx_runtime_1.jsx)("div", { style: inner, children: (0, jsx_runtime_1.jsxs)(SplitterContainer_1.SplitterContainer, { orientation: "vertical", defaultFlex: 0.2, id: "names-to-timeline", maxFlex: 0.5, minFlex: 0.15, children: [(0, jsx_runtime_1.jsx)(SplitterElement_1.SplitterElement, { type: "flexer", children: (0, jsx_runtime_1.jsx)(TimelineList_1.TimelineList, { dispatchStateChange: dispatch, viewState: state, timeline: shown }
|
|
76
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: container, className: "css-reset", children: (0, jsx_runtime_1.jsx)("div", { style: inner, children: (0, jsx_runtime_1.jsxs)(SplitterContainer_1.SplitterContainer, { orientation: "vertical", defaultFlex: 0.2, id: "names-to-timeline", maxFlex: 0.5, minFlex: 0.15, children: [(0, jsx_runtime_1.jsx)(SplitterElement_1.SplitterElement, { type: "flexer", children: (0, jsx_runtime_1.jsx)(TimelineList_1.TimelineList, { dispatchStateChange: dispatch, viewState: state, timeline: shown }) }), (0, jsx_runtime_1.jsx)(SplitterHandle_1.SplitterHandle, { onCollapse: noop, allowToCollapse: false }), (0, jsx_runtime_1.jsxs)(SplitterElement_1.SplitterElement, { type: "anti-flexer", children: [(0, jsx_runtime_1.jsx)(TimelineTracks_1.TimelineTracks, { viewState: state, timeline: shown, fps: videoConfig.fps, hasBeenCut: withoutHidden.length > shown.length }), (0, jsx_runtime_1.jsx)(TimelineInOutPointer_1.TimelineInOutPointer, {}), (0, jsx_runtime_1.jsx)(TimelineDragHandler_1.TimelineDragHandler, {}), (0, jsx_runtime_1.jsx)(TimelineSlider_1.TimelineSlider, {})] })] }) }) }));
|
|
76
77
|
};
|
|
77
78
|
exports.Timeline = Timeline;
|
|
@@ -11,9 +11,9 @@ const container = {
|
|
|
11
11
|
alignItems: 'center',
|
|
12
12
|
};
|
|
13
13
|
const Icon = (props) => {
|
|
14
|
-
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 8 10", ...props, style: { height: 10, width: 8 }, children: (0, jsx_runtime_1.jsx)("path", { d: "M 0 0 L 8 5 L 0 10 z", fill: colors_1.LIGHT_COLOR }
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 8 10", ...props, style: { height: 10, width: 8 }, children: (0, jsx_runtime_1.jsx)("path", { d: "M 0 0 L 8 5 L 0 10 z", fill: colors_1.LIGHT_COLOR }) }));
|
|
15
15
|
};
|
|
16
16
|
const TimelineCollapseToggle = ({ collapsed }) => {
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: collapsed ? container : { ...container, transform: 'rotate(90deg)' }, children: (0, jsx_runtime_1.jsx)(Icon, {}
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: collapsed ? container : { ...container, transform: 'rotate(90deg)' }, children: (0, jsx_runtime_1.jsx)(Icon, {}) }));
|
|
18
18
|
};
|
|
19
19
|
exports.TimelineCollapseToggle = TimelineCollapseToggle;
|
|
@@ -221,6 +221,6 @@ const TimelineDragHandler = () => {
|
|
|
221
221
|
window.removeEventListener('pointerup', onPointerUpInOut);
|
|
222
222
|
};
|
|
223
223
|
}, [inOutDragging.dragging, onPointerMoveInOut, onPointerUpInOut]);
|
|
224
|
-
return ((0, jsx_runtime_1.jsxs)("div", { ref: timeline_refs_1.sliderAreaRef, style: container, onPointerDown: onPointerDown, children: [(0, jsx_runtime_1.jsx)("div", { style: inner }
|
|
224
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ref: timeline_refs_1.sliderAreaRef, style: container, onPointerDown: onPointerDown, children: [(0, jsx_runtime_1.jsx)("div", { style: inner }), inFrame !== null && ((0, jsx_runtime_1.jsx)(TimelineInOutPointerHandle_1.TimelineInOutPointerHandle, { type: "in", atFrame: inFrame, dragging: inOutDragging.dragging === 'in' })), outFrame !== null && ((0, jsx_runtime_1.jsx)(TimelineInOutPointerHandle_1.TimelineInOutPointerHandle, { type: "out", dragging: inOutDragging.dragging === 'out', atFrame: outFrame }))] }));
|
|
225
225
|
};
|
|
226
226
|
exports.TimelineDragHandler = TimelineDragHandler;
|
|
@@ -25,10 +25,10 @@ const TimelineInOutPointer = () => {
|
|
|
25
25
|
...areaHighlight,
|
|
26
26
|
left: 0,
|
|
27
27
|
width: get(inFrame !== null && inFrame !== void 0 ? inFrame : 0),
|
|
28
|
-
} }
|
|
28
|
+
} })), outFrame !== null && ((0, jsx_runtime_1.jsx)("div", { ref: exports.outMarkerAreaRef, style: {
|
|
29
29
|
...areaHighlight,
|
|
30
30
|
left: get(outFrame),
|
|
31
31
|
width: width - get(outFrame),
|
|
32
|
-
} }
|
|
32
|
+
} }))] }));
|
|
33
33
|
};
|
|
34
34
|
exports.TimelineInOutPointer = TimelineInOutPointer;
|
|
@@ -26,6 +26,6 @@ const TimelineInOutPointerHandle = ({ dragging, type, atFrame }) => {
|
|
|
26
26
|
transform: `translateX(${get(atFrame)}px)`,
|
|
27
27
|
};
|
|
28
28
|
}, [atFrame, dragging, get]);
|
|
29
|
-
return ((0, jsx_runtime_1.jsx)("div", { ref: type === 'in' ? exports.inPointerHandle : exports.outPointerHandle, style: style }
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: type === 'in' ? exports.inPointerHandle : exports.outPointerHandle, style: style }));
|
|
30
30
|
};
|
|
31
31
|
exports.TimelineInOutPointerHandle = TimelineInOutPointerHandle;
|
|
@@ -13,6 +13,6 @@ const TimelineList = ({ timeline, viewState, dispatchStateChange }) => {
|
|
|
13
13
|
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: timeline.map((track, i) => {
|
|
14
14
|
const beforeDepth = i === 0 ? 0 : timeline[i - 1].depth;
|
|
15
15
|
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(TimelineListItem_1.TimelineListItem, { hash: track.hash, dispatchStateChange: dispatchStateChange, collapsed: (0, is_collapsed_1.isTrackCollapsed)(track.hash, viewState), nestedDepth: track.depth, sequence: track.sequence, beforeDepth: beforeDepth, canCollapse: track.canCollapse }, track.sequence.id) }, track.sequence.id));
|
|
16
|
-
}) }
|
|
16
|
+
}) }));
|
|
17
17
|
};
|
|
18
18
|
exports.TimelineList = TimelineList;
|
|
@@ -85,6 +85,6 @@ const TimelineListItem = ({ nestedDepth, sequence, collapsed, beforeDepth, dispa
|
|
|
85
85
|
const text = sequence.displayName.length > 80
|
|
86
86
|
? sequence.displayName.slice(0, 80) + '...'
|
|
87
87
|
: sequence.displayName;
|
|
88
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: outer, children: [(0, jsx_runtime_1.jsx)("div", { style: padder }
|
|
88
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: outer, children: [(0, jsx_runtime_1.jsx)("div", { style: padder }), canCollapse ? ((0, jsx_runtime_1.jsx)("button", { tabIndex: tabIndex, type: "button", style: collapserButton, onClick: toggleCollapse, children: (0, jsx_runtime_1.jsx)(TimelineCollapseToggle_1.TimelineCollapseToggle, { collapsed: collapsed }) })) : ((0, jsx_runtime_1.jsx)("div", { style: collapser })), sequence.parent && nestedDepth > 0 ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: smallSpace }), (0, jsx_runtime_1.jsx)("div", { style: hookContainer, children: (0, jsx_runtime_1.jsx)("div", { style: hookStyle }) }), (0, jsx_runtime_1.jsx)("div", { style: space })] })) : null, (0, jsx_runtime_1.jsxs)("div", { style: textStyle, children: [text || 'Untitled', (0, jsx_runtime_1.jsx)(TimelineSequenceFrame_1.TimelineSequenceFrame, { duration: sequence.duration, from: sequence.from })] })] }));
|
|
89
89
|
};
|
|
90
90
|
exports.TimelineListItem = TimelineListItem;
|
|
@@ -67,6 +67,6 @@ const TimelineSequence = ({ s, fps }) => {
|
|
|
67
67
|
};
|
|
68
68
|
}, []);
|
|
69
69
|
const thumbnailWidth = timeline_layout_1.TIMELINE_LAYER_HEIGHT * (video.width / video.height);
|
|
70
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: style, title: s.displayName, children: [(0, jsx_runtime_1.jsx)("div", { style: row, children: richTimeline && s.type === 'sequence' ? ((0, jsx_runtime_1.jsx)(Thumbnail_1.Thumbnail, { targetHeight: timeline_layout_1.TIMELINE_LAYER_HEIGHT, targetWidth: thumbnailWidth, composition: video, frameToDisplay: Math.floor(s.from + s.duration / 2) }
|
|
70
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: style, title: s.displayName, children: [(0, jsx_runtime_1.jsx)("div", { style: row, children: richTimeline && s.type === 'sequence' ? ((0, jsx_runtime_1.jsx)(Thumbnail_1.Thumbnail, { targetHeight: timeline_layout_1.TIMELINE_LAYER_HEIGHT, targetWidth: thumbnailWidth, composition: video, frameToDisplay: Math.floor(s.from + s.duration / 2) })) : null }), s.type === 'audio' ? ((0, jsx_runtime_1.jsx)(AudioWaveform_1.AudioWaveform, { src: s.src, doesVolumeChange: s.doesVolumeChange, visualizationWidth: width, startFrom: s.startMediaFrom, durationInFrames: s.duration, fps: fps, volume: s.volume, setMaxMediaDuration: setMaxMediaDuration })) : null, s.type === 'video' ? (0, jsx_runtime_1.jsx)(TimelineVideoInfo_1.TimelineVideoInfo, { src: s.src }) : null, s.showLoopTimesInTimeline === undefined ? null : ((0, jsx_runtime_1.jsx)(LoopedTimelineIndicators_1.LoopedTimelineIndicator, { loops: s.showLoopTimesInTimeline }))] }, s.id));
|
|
71
71
|
};
|
|
72
72
|
exports.TimelineSequence = TimelineSequence;
|
|
@@ -26,6 +26,6 @@ The current time within the sequence.
|
|
|
26
26
|
Call \`useCurrentFrame()\` within the sequence to get the time programmatically.
|
|
27
27
|
|
|
28
28
|
Call \`const {durationInFrames} = useVideoConfig()\` to get the duration of the sequence.
|
|
29
|
-
`.trim(), style: relativeFrameStyle, children: [(0, render_frame_1.renderFrame)(relativeFrame, fps), " (", relativeFrame, ")"] }
|
|
29
|
+
`.trim(), style: relativeFrameStyle, children: [(0, render_frame_1.renderFrame)(relativeFrame, fps), " (", relativeFrame, ")"] }));
|
|
30
30
|
};
|
|
31
31
|
exports.TimelineSequenceFrame = TimelineSequenceFrame;
|
|
@@ -28,6 +28,6 @@ const TimelineSlider = () => {
|
|
|
28
28
|
transform: `translateX(${left}px)`,
|
|
29
29
|
};
|
|
30
30
|
}, [timelinePosition, get]);
|
|
31
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: style, children: (0, jsx_runtime_1.jsx)("div", { style: line, children: (0, jsx_runtime_1.jsx)(TimelineSliderHandle_1.TimelineSliderHandle, {}
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: style, children: (0, jsx_runtime_1.jsx)("div", { style: line, children: (0, jsx_runtime_1.jsx)(TimelineSliderHandle_1.TimelineSliderHandle, {}) }) }));
|
|
32
32
|
};
|
|
33
33
|
exports.TimelineSlider = TimelineSlider;
|
|
@@ -11,6 +11,6 @@ const style = {
|
|
|
11
11
|
marginLeft: -8,
|
|
12
12
|
};
|
|
13
13
|
const TimelineSliderHandle = () => {
|
|
14
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)("svg", { width: 17, viewBox: "0 0 159 212", version: "1.1", style: style, children: (0, jsx_runtime_1.jsx)("path", { d: "M17.0234375,1.07763419 L143.355469,1.07763419 C151.63974,1.07763419 158.355469,7.79336295 158.355469,16.0776342 L158.355469,69.390507 C158.355469,73.7938677 156.420655,77.9748242 153.064021,80.8248415 L89.3980057,134.881757 C83.7986799,139.635978 75.5802263,139.635978 69.9809005,134.881757 L6.66764807,81.1243622 C3.0872392,78.0843437 1.0234375,73.6246568 1.0234375,68.9277387 L1.0234375,17.0776342 C1.0234375,8.2410782 8.1868815,1.07763419 17.0234375,1.07763419 Z", fill: "#f02c00" }
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)("svg", { width: 17, viewBox: "0 0 159 212", version: "1.1", style: style, children: (0, jsx_runtime_1.jsx)("path", { d: "M17.0234375,1.07763419 L143.355469,1.07763419 C151.63974,1.07763419 158.355469,7.79336295 158.355469,16.0776342 L158.355469,69.390507 C158.355469,73.7938677 156.420655,77.9748242 153.064021,80.8248415 L89.3980057,134.881757 C83.7986799,139.635978 75.5802263,139.635978 69.9809005,134.881757 L6.66764807,81.1243622 C3.0872392,78.0843437 1.0234375,73.6246568 1.0234375,68.9277387 L1.0234375,17.0776342 C1.0234375,8.2410782 8.1868815,1.07763419 17.0234375,1.07763419 Z", fill: "#f02c00" }) }) }));
|
|
15
15
|
};
|
|
16
16
|
exports.TimelineSliderHandle = TimelineSliderHandle;
|
|
@@ -26,7 +26,7 @@ const TimelineTracks = ({ timeline, fps, viewState, hasBeenCut }) => {
|
|
|
26
26
|
if ((0, is_collapsed_1.isTrackHidden)(track, timeline, viewState)) {
|
|
27
27
|
return null;
|
|
28
28
|
}
|
|
29
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: inner, children: (0, jsx_runtime_1.jsx)(TimelineSequence_1.TimelineSequence, { fps: fps, s: track.sequence }
|
|
30
|
-
}) }
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: inner, children: (0, jsx_runtime_1.jsx)(TimelineSequence_1.TimelineSequence, { fps: fps, s: track.sequence }) }, track.sequence.id));
|
|
30
|
+
}) }), hasBeenCut ? (0, jsx_runtime_1.jsx)(MaxTimelineTracks_1.MaxTimelineTracksReached, {}) : null] }));
|
|
31
31
|
};
|
|
32
32
|
exports.TimelineTracks = TimelineTracks;
|
|
@@ -45,6 +45,6 @@ const TimelineVideoInfo = ({ src }) => {
|
|
|
45
45
|
if (!videoMetadata) {
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: containerStyle, children: (0, jsx_runtime_1.jsx)("svg", { style: svgStyle, role: "img", viewBox: "0 0 576 512", children: (0, jsx_runtime_1.jsx)("path", { style: pathStyle, fill: "currentColor", d: "M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z" }
|
|
48
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: containerStyle, children: (0, jsx_runtime_1.jsx)("svg", { style: svgStyle, role: "img", viewBox: "0 0 576 512", children: (0, jsx_runtime_1.jsx)("path", { style: pathStyle, fill: "currentColor", d: "M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z" }) }) }));
|
|
49
49
|
};
|
|
50
50
|
exports.TimelineVideoInfo = TimelineVideoInfo;
|
|
@@ -153,6 +153,6 @@ const TimelineInOutPointToggle = () => {
|
|
|
153
153
|
if (isStill) {
|
|
154
154
|
return null;
|
|
155
155
|
}
|
|
156
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { title: getTooltipText('In (I)'), "aria-label": getTooltipText('In (I)'), onClick: onInMark, disabled: timelinePosition === 0, children: (0, jsx_runtime_1.jsx)(timelineInOutPointer_1.TimelineInPointer, { color: inFrame === null ? 'white' : 'var(--blue)', style: style }
|
|
156
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { title: getTooltipText('In (I)'), "aria-label": getTooltipText('In (I)'), onClick: onInMark, disabled: timelinePosition === 0, children: (0, jsx_runtime_1.jsx)(timelineInOutPointer_1.TimelineInPointer, { color: inFrame === null ? 'white' : 'var(--blue)', style: style }) }), (0, jsx_runtime_1.jsx)(ControlButton_1.ControlButton, { title: getTooltipText('Out (O)'), "aria-label": getTooltipText('Out (O)'), onClick: onOutMark, disabled: timelinePosition === videoConfig.durationInFrames - 1, children: (0, jsx_runtime_1.jsx)(timelineInOutPointer_1.TimelineOutPointer, { color: outFrame === null ? 'white' : 'var(--blue)', style: style }) })] }));
|
|
157
157
|
};
|
|
158
158
|
exports.TimelineInOutPointToggle = TimelineInOutPointToggle;
|
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TopPanel = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const use_compact_ui_1 = require("../helpers/use-compact-ui");
|
|
7
|
+
const sidebar_1 = require("../state/sidebar");
|
|
5
8
|
const Canvas_1 = require("./Canvas");
|
|
9
|
+
const CollapsedCompositionSelector_1 = require("./CollapsedCompositionSelector");
|
|
6
10
|
const CompositionSelector_1 = require("./CompositionSelector");
|
|
11
|
+
const InitialCompositionLoader_1 = require("./InitialCompositionLoader");
|
|
7
12
|
const MenuToolbar_1 = require("./MenuToolbar");
|
|
8
13
|
const PreviewToolbar_1 = require("./PreviewToolbar");
|
|
9
14
|
const SplitterContainer_1 = require("./Splitter/SplitterContainer");
|
|
@@ -11,6 +16,7 @@ const SplitterElement_1 = require("./Splitter/SplitterElement");
|
|
|
11
16
|
const SplitterHandle_1 = require("./Splitter/SplitterHandle");
|
|
12
17
|
const container = {
|
|
13
18
|
height: '100%',
|
|
19
|
+
width: '100%',
|
|
14
20
|
display: 'flex',
|
|
15
21
|
flexDirection: 'column',
|
|
16
22
|
flex: 1,
|
|
@@ -29,6 +35,23 @@ const leftContainer = {
|
|
|
29
35
|
display: 'flex',
|
|
30
36
|
};
|
|
31
37
|
const TopPanel = () => {
|
|
32
|
-
|
|
38
|
+
const compactUi = (0, use_compact_ui_1.useCompactUI)();
|
|
39
|
+
const { setSidebarCollapsedState, sidebarCollapsedState } = (0, react_1.useContext)(sidebar_1.SidebarContext);
|
|
40
|
+
const actualState = (0, react_1.useMemo)(() => {
|
|
41
|
+
if (sidebarCollapsedState === 'collapsed') {
|
|
42
|
+
return 'collapsed';
|
|
43
|
+
}
|
|
44
|
+
if (sidebarCollapsedState === 'expanded') {
|
|
45
|
+
return 'expanded';
|
|
46
|
+
}
|
|
47
|
+
return compactUi ? 'collapsed' : 'expanded';
|
|
48
|
+
}, [compactUi, sidebarCollapsedState]);
|
|
49
|
+
const onCollapse = (0, react_1.useCallback)(() => {
|
|
50
|
+
setSidebarCollapsedState('collapsed');
|
|
51
|
+
}, [setSidebarCollapsedState]);
|
|
52
|
+
const onExpand = (0, react_1.useCallback)(() => {
|
|
53
|
+
setSidebarCollapsedState('expanded');
|
|
54
|
+
}, [setSidebarCollapsedState]);
|
|
55
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(InitialCompositionLoader_1.InitialCompositionLoader, {}), (0, jsx_runtime_1.jsx)(MenuToolbar_1.MenuToolbar, {}), (0, jsx_runtime_1.jsxs)("div", { style: row, children: [actualState === 'collapsed' ? ((0, jsx_runtime_1.jsx)(CollapsedCompositionSelector_1.CollapsedCompositionSelector, { onExpand: onExpand })) : null, (0, jsx_runtime_1.jsxs)(SplitterContainer_1.SplitterContainer, { minFlex: 0.15, maxFlex: 0.4, defaultFlex: 0.2, id: "sidebar-to-preview", orientation: "vertical", children: [actualState === 'expanded' ? ((0, jsx_runtime_1.jsx)(SplitterElement_1.SplitterElement, { type: "flexer", children: (0, jsx_runtime_1.jsx)("div", { style: leftContainer, className: "css-reset", children: (0, jsx_runtime_1.jsx)(CompositionSelector_1.CompositionSelector, {}) }) })) : null, actualState === 'expanded' ? ((0, jsx_runtime_1.jsx)(SplitterHandle_1.SplitterHandle, { allowToCollapse: true, onCollapse: onCollapse })) : null, (0, jsx_runtime_1.jsx)(SplitterElement_1.SplitterElement, { type: "anti-flexer", children: (0, jsx_runtime_1.jsx)("div", { style: canvasContainer, children: (0, jsx_runtime_1.jsx)(Canvas_1.Canvas, {}) }) })] })] }), (0, jsx_runtime_1.jsx)(PreviewToolbar_1.PreviewToolbar, {})] }));
|
|
33
56
|
};
|
|
34
57
|
exports.TopPanel = TopPanel;
|
|
@@ -53,6 +53,6 @@ const UpdateCheck = () => {
|
|
|
53
53
|
if (!info.updateAvailable) {
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
|
-
return ((0, jsx_runtime_1.jsx)("button", { tabIndex: tabIndex, style: buttonStyle, onClick: openModal, type: "button", children: "Update available!" }
|
|
56
|
+
return ((0, jsx_runtime_1.jsx)("button", { tabIndex: tabIndex, style: buttonStyle, onClick: openModal, type: "button", children: "Update available!" }));
|
|
57
57
|
};
|
|
58
58
|
exports.UpdateCheck = UpdateCheck;
|
|
@@ -38,6 +38,6 @@ const UpdateModal = ({ info }) => {
|
|
|
38
38
|
setSelectedModal(null);
|
|
39
39
|
}, [setSelectedModal]);
|
|
40
40
|
const command = commands[info.packageManager];
|
|
41
|
-
return ((0, jsx_runtime_1.jsxs)(ModalContainer_1.ModalContainer, { onOutsideClick: onQuit, onEscape: onQuit, children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.NewCompHeader, { title: "Update available" }
|
|
41
|
+
return ((0, jsx_runtime_1.jsxs)(ModalContainer_1.ModalContainer, { onOutsideClick: onQuit, onEscape: onQuit, children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.NewCompHeader, { title: "Update available" }), (0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)("p", { children: "A new update for Remotion is available! Run the following command:" }), (0, jsx_runtime_1.jsxs)(layout_1.Row, { align: "center", children: [(0, jsx_runtime_1.jsx)(layout_1.Flex, { children: (0, jsx_runtime_1.jsx)("pre", { onClick: () => (0, copy_text_1.copyCmd)(command), style: code, children: command }) }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)(CopyButton_1.CopyButton, { textToCopy: command, label: "Copy command", labelWhenCopied: "Copied!" })] }), (0, jsx_runtime_1.jsxs)("p", { children: ["This will upgrade Remotion from ", info.currentVersion, " to", ' ', info.latestVersion, "."] }), (0, jsx_runtime_1.jsxs)("p", { children: ["Read the", ' ', (0, jsx_runtime_1.jsx)("a", { style: link, target: "_blank", href: "https://github.com/remotion-dev/remotion/releases", children: "Release notes" }), ' ', "to know what", "'s", " new in Remotion."] })] })] }));
|
|
42
42
|
};
|
|
43
43
|
exports.UpdateModal = UpdateModal;
|
|
@@ -12,11 +12,11 @@ const Spacing = ({ x = 0, y = 0 }) => {
|
|
|
12
12
|
height: y * exports.SPACING_UNIT,
|
|
13
13
|
};
|
|
14
14
|
}, [x, y]);
|
|
15
|
-
return (0, jsx_runtime_1.jsx)("div", { style: style }
|
|
15
|
+
return (0, jsx_runtime_1.jsx)("div", { style: style });
|
|
16
16
|
};
|
|
17
17
|
exports.Spacing = Spacing;
|
|
18
18
|
const flex = { flex: 1 };
|
|
19
|
-
const Flex = ({ children }) => (0, jsx_runtime_1.jsx)("div", { style: flex, children: children }
|
|
19
|
+
const Flex = ({ children }) => (0, jsx_runtime_1.jsx)("div", { style: flex, children: children });
|
|
20
20
|
exports.Flex = Flex;
|
|
21
21
|
const Row = ({ children, justify, className, align, style = {} }) => {
|
|
22
22
|
const finalStyle = (0, react_1.useMemo)(() => {
|
|
@@ -28,7 +28,7 @@ const Row = ({ children, justify, className, align, style = {} }) => {
|
|
|
28
28
|
alignItems: align !== null && align !== void 0 ? align : 'flex-start',
|
|
29
29
|
};
|
|
30
30
|
}, [align, justify, style]);
|
|
31
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: className, style: finalStyle, children: children }
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: className, style: finalStyle, children: children }));
|
|
32
32
|
};
|
|
33
33
|
exports.Row = Row;
|
|
34
34
|
const Column = ({ children, justify, className, align, style = {} }) => {
|
|
@@ -41,6 +41,6 @@ const Column = ({ children, justify, className, align, style = {} }) => {
|
|
|
41
41
|
alignItems: align !== null && align !== void 0 ? align : 'flex-start',
|
|
42
42
|
};
|
|
43
43
|
}, [align, justify, style]);
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: className, style: finalStyle, children: children }
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: className, style: finalStyle, children: children }));
|
|
45
45
|
};
|
|
46
46
|
exports.Column = Column;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useCompactUI(): boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCompactUI = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const breakpoint = 1200;
|
|
6
|
+
function useCompactUI() {
|
|
7
|
+
const [compactUI, setCompactUI] = (0, react_1.useState)(window.innerWidth < breakpoint);
|
|
8
|
+
(0, react_1.useEffect)(() => {
|
|
9
|
+
function handleResize() {
|
|
10
|
+
setCompactUI(window.innerWidth < breakpoint);
|
|
11
|
+
}
|
|
12
|
+
window.addEventListener('resize', handleResize);
|
|
13
|
+
handleResize();
|
|
14
|
+
return () => window.removeEventListener('resize', handleResize);
|
|
15
|
+
}, []);
|
|
16
|
+
return compactUI;
|
|
17
|
+
}
|
|
18
|
+
exports.useCompactUI = useCompactUI;
|
|
@@ -6,5 +6,5 @@ const style = {
|
|
|
6
6
|
width: 14,
|
|
7
7
|
height: 14,
|
|
8
8
|
};
|
|
9
|
-
const Checkmark = () => ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check", className: "svg-inline--fa fa-check fa-w-16", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", style: style, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z" }
|
|
9
|
+
const Checkmark = () => ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check", className: "svg-inline--fa fa-check fa-w-16", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", style: style, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z" }) }));
|
|
10
10
|
exports.Checkmark = Checkmark;
|