@remotion/studio 4.0.502 → 4.0.504
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/install-package.d.ts +2 -1
- package/dist/api/install-package.js +6 -2
- package/dist/components/AssetSelectorItem.js +4 -16
- package/dist/components/Canvas.js +41 -54
- package/dist/components/CheckboardToggle.js +3 -1
- package/dist/components/ColorPicker/AlphaSlider.js +14 -10
- package/dist/components/ColorPicker/HueSlider.js +14 -10
- package/dist/components/ColorPicker/SaturationValueArea.js +14 -12
- package/dist/components/CompositionContextButton.js +1 -1
- package/dist/components/CompositionSelectorItem.js +2 -3
- package/dist/components/ConfigureDefaultEditorModal.d.ts +2 -0
- package/dist/components/ConfigureDefaultEditorModal.js +151 -0
- package/dist/components/ConfirmationDialog.js +6 -3
- package/dist/components/ContextMenu.js +0 -2
- package/dist/components/ControlButton.d.ts +4 -2
- package/dist/components/ControlButton.js +6 -20
- package/dist/components/Editor.js +1 -4
- package/dist/components/EditorContent.js +1 -1
- package/dist/components/EditorGuides/Guide.js +48 -74
- package/dist/components/EditorRuler/Ruler.d.ts +1 -0
- package/dist/components/EditorRuler/Ruler.js +3 -1
- package/dist/components/EditorRuler/index.js +26 -23
- package/dist/components/EffectPickerModal.js +68 -7
- package/dist/components/ElementInstallConfirmation.d.ts +12 -0
- package/dist/components/ElementInstallConfirmation.js +205 -0
- package/dist/components/ForceSpecificCursor.js +14 -0
- package/dist/components/FullscreenToggle.js +1 -2
- package/dist/components/InitialCompositionLoader.js +1 -14
- package/dist/components/InlineAction.d.ts +4 -4
- package/dist/components/InlineAction.js +6 -4
- package/dist/components/InspectorLocationCopy.d.ts +1 -0
- package/dist/components/InspectorLocationCopy.js +7 -3
- package/dist/components/InspectorOpenInEditor.d.ts +5 -0
- package/dist/components/InspectorOpenInEditor.js +135 -0
- package/dist/components/InspectorPanel/AlignmentControls.js +1 -1
- package/dist/components/InspectorPanel/CompositionInspectorHeader.js +3 -3
- package/dist/components/InspectorPanel/CompositionMetadata.js +8 -7
- package/dist/components/InspectorPanel/KeyframeEasingNavigator.js +2 -2
- package/dist/components/InspectorPanel/KeyframeInspector.js +2 -3
- package/dist/components/InspectorPanel/SequenceInspectorHeader.js +2 -2
- package/dist/components/InspectorPanel/styles.js +4 -0
- package/dist/components/InspectorSequenceSection.js +2 -2
- package/dist/components/LoopToggle.js +1 -1
- package/dist/components/Menu/MenuItem.js +13 -6
- package/dist/components/Menu/MenuSubItem.js +3 -1
- package/dist/components/MenuBuildIndicator.d.ts +3 -1
- package/dist/components/MenuBuildIndicator.js +6 -4
- package/dist/components/MenuCompositionName.js +1 -1
- package/dist/components/MenuToolbar.js +1 -1
- package/dist/components/MobilePanel.d.ts +1 -2
- package/dist/components/MobilePanel.js +6 -6
- package/dist/components/ModalContainer.js +1 -1
- package/dist/components/ModalFooter.d.ts +1 -0
- package/dist/components/ModalFooter.js +2 -2
- package/dist/components/Modals.js +11 -2
- package/dist/components/MuteToggle.js +2 -1
- package/dist/components/NewComposition/ComboBox.d.ts +1 -0
- package/dist/components/NewComposition/ComboBox.js +2 -2
- package/dist/components/NewComposition/InputDragger.d.ts +4 -0
- package/dist/components/NewComposition/InputDragger.js +26 -32
- package/dist/components/Notifications/NotificationCenter.js +12 -2
- package/dist/components/OutlineToggle.js +10 -2
- package/dist/components/PlayPause.js +1 -5
- package/dist/components/PlaybackRateSelector.js +2 -1
- package/dist/components/PreviewToolbar.js +8 -7
- package/dist/components/PreviewToolbarOverflowButton.d.ts +0 -1
- package/dist/components/PreviewToolbarOverflowButton.js +2 -75
- package/dist/components/QuickSwitcher/QuickSwitcherContent.js +1 -2
- package/dist/components/RenderButton.d.ts +0 -1
- package/dist/components/RenderButton.js +10 -9
- package/dist/components/RenderModal/FrameRangeSetting.js +6 -1
- package/dist/components/RenderModal/InlineEyeIcon.js +1 -1
- package/dist/components/RenderModal/InlineRemoveButton.js +1 -1
- package/dist/components/RenderModal/MultiRangeSlider.js +8 -8
- package/dist/components/RenderModal/RenderModalEnvironmentVariables.js +1 -9
- package/dist/components/RenderModal/RenderModalOutputName.js +12 -3
- package/dist/components/RenderModal/SchemaEditor/SchemaResetButton.js +1 -1
- package/dist/components/RenderModal/ServerRenderModal.js +2 -17
- package/dist/components/RenderModal/WebRenderModal.js +3 -17
- package/dist/components/RenderModal/layout.js +7 -5
- package/dist/components/RenderModal/render-modals.js +18 -15
- package/dist/components/RenderQueue/RenderQueueCopyToClipboard.js +1 -1
- package/dist/components/RenderQueue/RenderQueueDownloadItem.js +1 -1
- package/dist/components/RenderQueue/RenderQueueItemCancelButton.js +1 -1
- package/dist/components/RenderQueue/RenderQueueOpenInFolder.js +1 -1
- package/dist/components/RenderQueue/RenderQueueRemoveItem.js +1 -1
- package/dist/components/RenderQueue/RenderQueueRepeat.js +2 -15
- package/dist/components/SelectedOutlineCropControls.js +7 -6
- package/dist/components/SelectedOutlineElement.js +32 -38
- package/dist/components/SelectedOutlineUvControls.js +25 -24
- package/dist/components/ShowGuidesProvider.js +2 -0
- package/dist/components/SidebarCollapserControls.js +2 -2
- package/dist/components/SidebarRenderButton.js +2 -16
- package/dist/components/SizeSelector.js +2 -1
- package/dist/components/SnappingToggle.js +1 -2
- package/dist/components/Spinner.d.ts +1 -0
- package/dist/components/Spinner.js +2 -2
- package/dist/components/Splitter/SplitterContainer.d.ts +1 -0
- package/dist/components/Splitter/SplitterContainer.js +4 -1
- package/dist/components/Splitter/SplitterContext.d.ts +4 -3
- package/dist/components/Splitter/SplitterContext.js +3 -2
- package/dist/components/Splitter/SplitterElement.js +6 -1
- package/dist/components/Splitter/SplitterHandle.js +18 -68
- package/dist/components/Tabs/vertical.d.ts +1 -0
- package/dist/components/Tabs/vertical.js +8 -10
- package/dist/components/TimeValue.js +26 -8
- package/dist/components/Timeline/EasingEditorModal.js +27 -19
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Timeline/TimelineAssetField.js +1 -1
- package/dist/components/Timeline/TimelineClipboardKeybindings.js +3 -6
- package/dist/components/Timeline/TimelineDeleteKeybindings.js +5 -7
- package/dist/components/Timeline/TimelineDragHandler.js +38 -7
- package/dist/components/Timeline/TimelineExpandedKeyframeRow.js +2 -1
- package/dist/components/Timeline/TimelineInOutDragHandler.js +26 -11
- package/dist/components/Timeline/TimelineKeyframeEasingLine.d.ts +1 -1
- package/dist/components/Timeline/TimelineKeyframeEasingLine.js +2 -2
- package/dist/components/Timeline/TimelineLayerEye.js +36 -4
- package/dist/components/Timeline/TimelineSelection.js +16 -24
- package/dist/components/Timeline/TimelineSequence.js +7 -3
- package/dist/components/Timeline/TimelineSequenceItem.js +24 -18
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.d.ts +1 -1
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.js +76 -43
- package/dist/components/Timeline/TimelineStack/get-stack.js +7 -2
- package/dist/components/Timeline/TimelineZoomControls.d.ts +3 -1
- package/dist/components/Timeline/TimelineZoomControls.js +24 -12
- package/dist/components/Timeline/get-sequence-context-menu-items.d.ts +4 -2
- package/dist/components/Timeline/get-sequence-context-menu-items.js +38 -2
- package/dist/components/Timeline/should-subscribe-to-source-file.d.ts +1 -0
- package/dist/components/Timeline/should-subscribe-to-source-file.js +11 -0
- package/dist/components/Timeline/use-expanded-track-keyframe-rows.js +2 -3
- package/dist/components/Timeline/use-open-sequence-in-editor.d.ts +3 -1
- package/dist/components/Timeline/use-open-sequence-in-editor.js +5 -2
- package/dist/components/Timeline/use-sequence-props-subscription.js +2 -0
- package/dist/components/Timeline/use-timeline-asset-drop.js +3 -7
- package/dist/components/Timeline/use-timeline-keyframe-drag.js +31 -16
- package/dist/components/TimelineInOutToggle.js +3 -3
- package/dist/components/TopPanel.js +3 -2
- package/dist/components/UndoRedoButtons.js +6 -5
- package/dist/components/UpdateCheck.d.ts +2 -0
- package/dist/components/UpdateCheck.js +29 -11
- package/dist/components/UpdateModal/UpdateModal.js +58 -19
- package/dist/components/VisualControls/ClickableFileName.js +5 -2
- package/dist/components/composition-menu-items.d.ts +2 -4
- package/dist/components/composition-menu-items.js +32 -55
- package/dist/components/element-install-request.d.ts +3 -0
- package/dist/components/element-install-request.js +17 -0
- package/dist/components/folder-menu-items.js +1 -1
- package/dist/components/handle-drop.d.ts +2 -3
- package/dist/components/handle-drop.js +11 -4
- package/dist/components/import-assets.d.ts +7 -6
- package/dist/components/import-assets.js +5 -16
- package/dist/components/use-default-editor-info.d.ts +4 -0
- package/dist/components/use-default-editor-info.js +47 -0
- package/dist/error-overlay/remotion-overlay/OpenInEditor.js +1 -1
- package/dist/error-overlay/remotion-overlay/StackFrame.js +1 -1
- package/dist/esm/{chunk-fjv75ty4.js → chunk-43m68z1k.js} +8689 -7374
- package/dist/esm/internals.mjs +8689 -7374
- package/dist/esm/previewEntry.mjs +8668 -7353
- package/dist/esm/renderEntry.mjs +1 -1
- package/dist/helpers/inject-css.js +58 -67
- package/dist/helpers/install-required-package.d.ts +3 -2
- package/dist/helpers/install-required-package.js +20 -15
- package/dist/helpers/open-in-editor.d.ts +3 -3
- package/dist/helpers/open-in-editor.js +10 -6
- package/dist/helpers/pointer-session.d.ts +9 -0
- package/dist/helpers/pointer-session.js +94 -0
- package/dist/helpers/use-menu-structure.js +109 -51
- package/dist/icons/audio.d.ts +1 -1
- package/dist/icons/audio.js +1 -1
- package/dist/icons/caret.js +1 -1
- package/dist/icons/certificate.d.ts +1 -1
- package/dist/icons/certificate.js +1 -1
- package/dist/icons/custom-editor.d.ts +4 -0
- package/dist/icons/custom-editor.js +11 -0
- package/dist/icons/data.d.ts +1 -1
- package/dist/icons/data.js +2 -2
- package/dist/icons/editor.d.ts +6 -0
- package/dist/icons/editor.js +52 -0
- package/dist/icons/effects.d.ts +5 -0
- package/dist/icons/effects.js +8 -0
- package/dist/icons/ellipsis.js +1 -1
- package/dist/icons/external-link.d.ts +5 -0
- package/dist/icons/external-link.js +10 -0
- package/dist/icons/fullscreen.js +1 -1
- package/dist/icons/gear.d.ts +1 -1
- package/dist/icons/gear.js +1 -1
- package/dist/icons/gif.d.ts +1 -1
- package/dist/icons/gif.js +1 -1
- package/dist/icons/input-props.d.ts +2 -0
- package/dist/icons/input-props.js +9 -0
- package/dist/icons/jump-to-start.js +2 -2
- package/dist/icons/magnet.d.ts +3 -1
- package/dist/icons/magnet.js +2 -2
- package/dist/icons/media-volume.d.ts +6 -2
- package/dist/icons/media-volume.js +8 -6
- package/dist/icons/minus.d.ts +3 -1
- package/dist/icons/minus.js +2 -2
- package/dist/icons/pause.js +1 -1
- package/dist/icons/play.js +1 -1
- package/dist/icons/plus.js +1 -1
- package/dist/icons/redo.js +2 -2
- package/dist/icons/step-back.js +2 -2
- package/dist/icons/step-forward.js +2 -2
- package/dist/icons/timelineInOutPointer.js +2 -2
- package/dist/icons/undo.js +2 -2
- package/dist/state/editor-guides.d.ts +1 -0
- package/dist/state/editor-guides.js +1 -0
- package/dist/state/modals.d.ts +2 -0
- package/dist/state/z-index.d.ts +1 -0
- package/dist/state/z-index.js +34 -18
- package/package.json +12 -13
- package/dist/components/StudioCanvasCapture.d.ts +0 -5
- package/dist/components/StudioCanvasCapture.js +0 -40
- package/dist/components/canvas-capture-enabled.d.ts +0 -1
- package/dist/components/canvas-capture-enabled.js +0 -4
- package/dist/components/use-element-overwrite-confirmation.d.ts +0 -2
- package/dist/components/use-element-overwrite-confirmation.js +0 -73
|
@@ -4,8 +4,8 @@ exports.flexer = exports.buttonStyle = exports.icon = exports.iconContainer = ex
|
|
|
4
4
|
const colors_1 = require("../../helpers/colors");
|
|
5
5
|
const ModalContainer_1 = require("../ModalContainer");
|
|
6
6
|
exports.outerModalStyle = {
|
|
7
|
-
width: (0, ModalContainer_1.getMaxModalWidth)(
|
|
8
|
-
height: (0, ModalContainer_1.getMaxModalHeight)(
|
|
7
|
+
width: (0, ModalContainer_1.getMaxModalWidth)(800),
|
|
8
|
+
height: (0, ModalContainer_1.getMaxModalHeight)(490),
|
|
9
9
|
overflow: 'hidden',
|
|
10
10
|
display: 'flex',
|
|
11
11
|
flexDirection: 'column',
|
|
@@ -19,7 +19,8 @@ exports.container = {
|
|
|
19
19
|
};
|
|
20
20
|
exports.optionsPanel = {
|
|
21
21
|
display: 'flex',
|
|
22
|
-
|
|
22
|
+
flex: 1,
|
|
23
|
+
minWidth: 0,
|
|
23
24
|
};
|
|
24
25
|
exports.horizontalLayout = {
|
|
25
26
|
display: 'flex',
|
|
@@ -28,31 +29,33 @@ exports.horizontalLayout = {
|
|
|
28
29
|
flex: 1,
|
|
29
30
|
};
|
|
30
31
|
exports.leftSidebar = {
|
|
31
|
-
padding:
|
|
32
|
+
padding: 6,
|
|
32
33
|
};
|
|
33
34
|
exports.horizontalTab = {
|
|
34
|
-
width:
|
|
35
|
+
width: 150,
|
|
35
36
|
display: 'flex',
|
|
36
37
|
flexDirection: 'row',
|
|
37
38
|
alignItems: 'center',
|
|
38
39
|
textAlign: 'left',
|
|
39
|
-
fontSize:
|
|
40
|
-
fontWeight: '
|
|
41
|
-
paddingLeft:
|
|
42
|
-
paddingTop:
|
|
43
|
-
paddingBottom:
|
|
40
|
+
fontSize: 14,
|
|
41
|
+
fontWeight: 'normal',
|
|
42
|
+
paddingLeft: 8,
|
|
43
|
+
paddingTop: 6,
|
|
44
|
+
paddingBottom: 6,
|
|
45
|
+
borderRadius: 4,
|
|
44
46
|
};
|
|
45
47
|
exports.iconContainer = {
|
|
46
|
-
width:
|
|
47
|
-
height:
|
|
48
|
-
marginRight:
|
|
48
|
+
width: 18,
|
|
49
|
+
height: 18,
|
|
50
|
+
marginRight: 8,
|
|
51
|
+
color: 'inherit',
|
|
49
52
|
display: 'inline-flex',
|
|
50
53
|
justifyContent: 'center',
|
|
51
54
|
alignItems: 'center',
|
|
52
55
|
};
|
|
53
56
|
exports.icon = {
|
|
54
|
-
color:
|
|
55
|
-
height:
|
|
57
|
+
color: 'inherit',
|
|
58
|
+
height: 18,
|
|
56
59
|
};
|
|
57
60
|
exports.buttonStyle = {
|
|
58
61
|
backgroundColor: colors_1.BLUE,
|
|
@@ -53,6 +53,6 @@ const RenderQueueCopyToClipboard = ({ job }) => {
|
|
|
53
53
|
(0, NotificationCenter_1.showNotification)(`Could not copy to clipboard: ${err.message}`, 2000);
|
|
54
54
|
}
|
|
55
55
|
}, [job.outName]);
|
|
56
|
-
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { title: "Copy to clipboard", renderAction: renderCopyAction, onClick: onClick }));
|
|
56
|
+
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { variant: null, title: "Copy to clipboard", renderAction: renderCopyAction, onClick: onClick }));
|
|
57
57
|
};
|
|
58
58
|
exports.RenderQueueCopyToClipboard = RenderQueueCopyToClipboard;
|
|
@@ -31,6 +31,6 @@ const RenderQueueDownloadItem = ({ job }) => {
|
|
|
31
31
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
32
32
|
return (jsx_runtime_1.jsx("svg", { style: icon, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsx_runtime_1.jsx("path", { fill: color, d: "M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z" }) }));
|
|
33
33
|
}, [icon]);
|
|
34
|
-
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick, title: "Download" }));
|
|
34
|
+
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { variant: null, renderAction: renderAction, onClick: onClick, title: "Download" }));
|
|
35
35
|
};
|
|
36
36
|
exports.RenderQueueDownloadItem = RenderQueueDownloadItem;
|
|
@@ -30,6 +30,6 @@ const RenderQueueCancelButton = ({ job }) => {
|
|
|
30
30
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
31
31
|
return (jsx_runtime_1.jsx("svg", { style: icon, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsx_runtime_1.jsx("path", { fill: color, d: "M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256z" }) }));
|
|
32
32
|
}, [icon]);
|
|
33
|
-
return jsx_runtime_1.jsx(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick });
|
|
33
|
+
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick, variant: null }));
|
|
34
34
|
};
|
|
35
35
|
exports.RenderQueueCancelButton = RenderQueueCancelButton;
|
|
@@ -24,6 +24,6 @@ const RenderQueueOpenInFinderItem = ({ job }) => {
|
|
|
24
24
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
25
25
|
return jsx_runtime_1.jsx(folder_1.ExpandedFolderIconSolid, { style: icon, color: color });
|
|
26
26
|
}, [icon]);
|
|
27
|
-
return jsx_runtime_1.jsx(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick });
|
|
27
|
+
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick, variant: null }));
|
|
28
28
|
};
|
|
29
29
|
exports.RenderQueueOpenInFinderItem = RenderQueueOpenInFinderItem;
|
|
@@ -46,6 +46,6 @@ const RenderQueueRemoveItem = ({ job }) => {
|
|
|
46
46
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
47
47
|
return (jsx_runtime_1.jsx("svg", { style: icon, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsx_runtime_1.jsx("path", { fill: color, d: "M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z" }) }));
|
|
48
48
|
}, [icon]);
|
|
49
|
-
return jsx_runtime_1.jsx(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick });
|
|
49
|
+
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick, variant: null }));
|
|
50
50
|
};
|
|
51
51
|
exports.RenderQueueRemoveItem = RenderQueueRemoveItem;
|
|
@@ -4,16 +4,12 @@ exports.RenderQueueRepeatItem = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const colors_1 = require("../../helpers/colors");
|
|
7
|
-
const mobile_layout_1 = require("../../helpers/mobile-layout");
|
|
8
7
|
const retry_payload_1 = require("../../helpers/retry-payload");
|
|
9
8
|
const modals_1 = require("../../state/modals");
|
|
10
|
-
const sidebar_1 = require("../../state/sidebar");
|
|
11
9
|
const InlineAction_1 = require("../InlineAction");
|
|
12
10
|
const context_1 = require("./context");
|
|
13
11
|
const RenderQueueRepeatItem = ({ job }) => {
|
|
14
12
|
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
15
|
-
const isMobileLayout = (0, mobile_layout_1.useMobileLayout)();
|
|
16
|
-
const { setSidebarCollapsedState } = (0, react_1.useContext)(sidebar_1.SidebarContext);
|
|
17
13
|
const isClientJob = (0, context_1.isClientRenderJob)(job);
|
|
18
14
|
const onClick = (0, react_1.useCallback)((e) => {
|
|
19
15
|
e.stopPropagation();
|
|
@@ -25,16 +21,7 @@ const RenderQueueRepeatItem = ({ job }) => {
|
|
|
25
21
|
const retryPayload = (0, retry_payload_1.makeRetryPayload)(job);
|
|
26
22
|
setSelectedModal(retryPayload);
|
|
27
23
|
}
|
|
28
|
-
|
|
29
|
-
setSidebarCollapsedState({ left: 'collapsed', right: 'collapsed' });
|
|
30
|
-
}
|
|
31
|
-
}, [
|
|
32
|
-
isMobileLayout,
|
|
33
|
-
job,
|
|
34
|
-
isClientJob,
|
|
35
|
-
setSelectedModal,
|
|
36
|
-
setSidebarCollapsedState,
|
|
37
|
-
]);
|
|
24
|
+
}, [job, isClientJob, setSelectedModal]);
|
|
38
25
|
const icon = (0, react_1.useMemo)(() => {
|
|
39
26
|
return {
|
|
40
27
|
height: 12,
|
|
@@ -44,6 +31,6 @@ const RenderQueueRepeatItem = ({ job }) => {
|
|
|
44
31
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
45
32
|
return (jsx_runtime_1.jsx("svg", { style: icon, viewBox: "0 0 512 512", children: jsx_runtime_1.jsx("path", { fill: color, d: "M386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H464c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0s-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3s163.8-62.5 226.3 0L386.3 160z" }) }));
|
|
46
33
|
}, [icon]);
|
|
47
|
-
return jsx_runtime_1.jsx(InlineAction_1.InlineAction, { onClick: onClick, renderAction: renderAction });
|
|
34
|
+
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { onClick: onClick, renderAction: renderAction, variant: null }));
|
|
48
35
|
};
|
|
49
36
|
exports.RenderQueueRepeatItem = RenderQueueRepeatItem;
|
|
@@ -38,6 +38,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
38
38
|
const react_1 = __importStar(require("react"));
|
|
39
39
|
const remotion_1 = require("remotion");
|
|
40
40
|
const colors_1 = require("../helpers/colors");
|
|
41
|
+
const pointer_session_1 = require("../helpers/pointer-session");
|
|
41
42
|
const ForceSpecificCursor_1 = require("./ForceSpecificCursor");
|
|
42
43
|
const NotificationCenter_1 = require("./Notifications/NotificationCenter");
|
|
43
44
|
const selected_outline_drag_1 = require("./selected-outline-drag");
|
|
@@ -232,9 +233,6 @@ const CropHandle = ({ handle, outline, onDraggingChange, target }) => {
|
|
|
232
233
|
}
|
|
233
234
|
};
|
|
234
235
|
const onPointerUp = () => {
|
|
235
|
-
window.removeEventListener('pointermove', onPointerMove);
|
|
236
|
-
window.removeEventListener('pointerup', onPointerUp);
|
|
237
|
-
window.removeEventListener('pointercancel', onPointerUp);
|
|
238
236
|
if (dragStarted) {
|
|
239
237
|
(0, ForceSpecificCursor_1.stopForcingSpecificCursor)();
|
|
240
238
|
onDraggingChange(false);
|
|
@@ -270,9 +268,12 @@ const CropHandle = ({ handle, outline, onDraggingChange, target }) => {
|
|
|
270
268
|
clearDragOverrides(cropDrag.nodePath);
|
|
271
269
|
});
|
|
272
270
|
};
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
271
|
+
(0, pointer_session_1.startPointerSession)({
|
|
272
|
+
event,
|
|
273
|
+
target: event.currentTarget,
|
|
274
|
+
onMove: onPointerMove,
|
|
275
|
+
onEnd: onPointerUp,
|
|
276
|
+
});
|
|
276
277
|
}, [
|
|
277
278
|
clearDragOverrides,
|
|
278
279
|
cropDrag,
|
|
@@ -45,6 +45,7 @@ const get_connected_compositions_1 = require("../helpers/get-connected-compositi
|
|
|
45
45
|
const get_sequence_double_click_action_1 = require("../helpers/get-sequence-double-click-action");
|
|
46
46
|
const interactivity_enabled_1 = require("../helpers/interactivity-enabled");
|
|
47
47
|
const open_in_editor_1 = require("../helpers/open-in-editor");
|
|
48
|
+
const pointer_session_1 = require("../helpers/pointer-session");
|
|
48
49
|
const editor_snapping_1 = require("../state/editor-snapping");
|
|
49
50
|
const modals_1 = require("../state/modals");
|
|
50
51
|
const call_api_1 = require("./call-api");
|
|
@@ -65,6 +66,7 @@ const disable_sequence_interactivity_1 = require("./Timeline/disable-sequence-in
|
|
|
65
66
|
const duplicate_selected_timeline_item_1 = require("./Timeline/duplicate-selected-timeline-item");
|
|
66
67
|
const focus_inspector_field_1 = require("./Timeline/focus-inspector-field");
|
|
67
68
|
const get_sequence_context_menu_items_1 = require("./Timeline/get-sequence-context-menu-items");
|
|
69
|
+
const imperative_state_1 = require("./Timeline/imperative-state");
|
|
68
70
|
const save_sequence_prop_1 = require("./Timeline/save-sequence-prop");
|
|
69
71
|
const timeline_asset_link_1 = require("./Timeline/timeline-asset-link");
|
|
70
72
|
const timeline_translate_utils_1 = require("./Timeline/timeline-translate-utils");
|
|
@@ -227,9 +229,6 @@ const SelectedOutlineTransformOriginHandle = ({ outline, onDraggingChange, targe
|
|
|
227
229
|
updateFromPointerPosition();
|
|
228
230
|
};
|
|
229
231
|
const onPointerUp = () => {
|
|
230
|
-
window.removeEventListener('pointermove', onPointerMove);
|
|
231
|
-
window.removeEventListener('pointerup', onPointerUp);
|
|
232
|
-
window.removeEventListener('pointercancel', onPointerUp);
|
|
233
232
|
window.removeEventListener('keydown', onKeyChange);
|
|
234
233
|
window.removeEventListener('keyup', onKeyChange);
|
|
235
234
|
(0, ForceSpecificCursor_1.stopForcingSpecificCursor)();
|
|
@@ -272,9 +271,12 @@ const SelectedOutlineTransformOriginHandle = ({ outline, onDraggingChange, targe
|
|
|
272
271
|
clearDragOverrides(transformOriginDrag.nodePath);
|
|
273
272
|
});
|
|
274
273
|
};
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
274
|
+
(0, pointer_session_1.startPointerSession)({
|
|
275
|
+
event,
|
|
276
|
+
target: event.currentTarget,
|
|
277
|
+
onMove: onPointerMove,
|
|
278
|
+
onEnd: onPointerUp,
|
|
279
|
+
});
|
|
278
280
|
window.addEventListener('keydown', onKeyChange);
|
|
279
281
|
window.addEventListener('keyup', onKeyChange);
|
|
280
282
|
}, [
|
|
@@ -308,9 +310,6 @@ const SelectedOutlinePolygon = ({ allDragTargets, allDragOutlines, contextMenuVa
|
|
|
308
310
|
const { getDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeDragOverridesContext);
|
|
309
311
|
const { setPropStatuses, setDragOverrides, clearDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeSettersContext);
|
|
310
312
|
const { editorSnapping } = (0, react_1.useContext)(editor_snapping_1.EditorSnappingContext);
|
|
311
|
-
const timelinePosition = remotion_1.Internals.Timeline.useTimelinePosition();
|
|
312
|
-
const timelinePositionRef = (0, react_1.useRef)(timelinePosition);
|
|
313
|
-
timelinePositionRef.current = timelinePosition;
|
|
314
313
|
const polygonRef = (0, react_1.useRef)(null);
|
|
315
314
|
const points = (0, react_1.useMemo)(() => outline.points.map(selected_outline_measurement_1.pointToString).join(' '), [outline.points]);
|
|
316
315
|
const drag = (_a = target === null || target === void 0 ? void 0 : target.drag) !== null && _a !== void 0 ? _a : null;
|
|
@@ -341,7 +340,7 @@ const SelectedOutlinePolygon = ({ allDragTargets, allDragOutlines, contextMenuVa
|
|
|
341
340
|
const dragStates = (0, selected_outline_drag_1.getSelectedOutlineDragStates)({
|
|
342
341
|
dragTargets: selected ? allDragTargets : [drag],
|
|
343
342
|
getDragOverrides,
|
|
344
|
-
timelinePosition:
|
|
343
|
+
timelinePosition: (0, imperative_state_1.getCurrentFrame)(),
|
|
345
344
|
});
|
|
346
345
|
let lastValues = new Map();
|
|
347
346
|
let currentPointerX = startPointerX;
|
|
@@ -437,9 +436,6 @@ const SelectedOutlinePolygon = ({ allDragTargets, allDragOutlines, contextMenuVa
|
|
|
437
436
|
updateDragOverrides();
|
|
438
437
|
};
|
|
439
438
|
const onPointerUp = () => {
|
|
440
|
-
window.removeEventListener('pointermove', onPointerMove);
|
|
441
|
-
window.removeEventListener('pointerup', onPointerUp);
|
|
442
|
-
window.removeEventListener('pointercancel', onPointerUp);
|
|
443
439
|
window.removeEventListener('keydown', onKeyChange);
|
|
444
440
|
window.removeEventListener('keyup', onKeyChange);
|
|
445
441
|
if (dragStarted) {
|
|
@@ -486,9 +482,12 @@ const SelectedOutlinePolygon = ({ allDragTargets, allDragOutlines, contextMenuVa
|
|
|
486
482
|
(0, selected_outline_drag_1.clearSelectedOutlineDragOverrides)({ clearDragOverrides, dragStates });
|
|
487
483
|
});
|
|
488
484
|
};
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
485
|
+
(0, pointer_session_1.startPointerSession)({
|
|
486
|
+
event,
|
|
487
|
+
target: event.currentTarget,
|
|
488
|
+
onMove: onPointerMove,
|
|
489
|
+
onEnd: onPointerUp,
|
|
490
|
+
});
|
|
492
491
|
window.addEventListener('keydown', onKeyChange);
|
|
493
492
|
window.addEventListener('keyup', onKeyChange);
|
|
494
493
|
}, [
|
|
@@ -574,9 +573,6 @@ const SelectedOutlineScaleEdgeLine = ({ allScaleDragTargets, contextMenuValues,
|
|
|
574
573
|
var _a, _b;
|
|
575
574
|
const { getDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeDragOverridesContext);
|
|
576
575
|
const { setPropStatuses, setDragOverrides, clearDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeSettersContext);
|
|
577
|
-
const timelinePosition = remotion_1.Internals.Timeline.useTimelinePosition();
|
|
578
|
-
const timelinePositionRef = (0, react_1.useRef)(timelinePosition);
|
|
579
|
-
timelinePositionRef.current = timelinePosition;
|
|
580
576
|
const scaleDrag = (_a = target === null || target === void 0 ? void 0 : target.scaleDrag) !== null && _a !== void 0 ? _a : null;
|
|
581
577
|
const selected = (_b = target === null || target === void 0 ? void 0 : target.selected) !== null && _b !== void 0 ? _b : false;
|
|
582
578
|
const lineRef = (0, react_1.useRef)(null);
|
|
@@ -602,7 +598,7 @@ const SelectedOutlineScaleEdgeLine = ({ allScaleDragTargets, contextMenuValues,
|
|
|
602
598
|
const dragStates = (0, selected_outline_drag_1.getSelectedOutlineScaleDragStates)({
|
|
603
599
|
dragTargets: selected ? allScaleDragTargets : [scaleDrag],
|
|
604
600
|
getDragOverrides,
|
|
605
|
-
timelinePosition:
|
|
601
|
+
timelinePosition: (0, imperative_state_1.getCurrentFrame)(),
|
|
606
602
|
});
|
|
607
603
|
let lastValues = new Map();
|
|
608
604
|
let dragStarted = false;
|
|
@@ -648,9 +644,6 @@ const SelectedOutlineScaleEdgeLine = ({ allScaleDragTargets, contextMenuValues,
|
|
|
648
644
|
}
|
|
649
645
|
};
|
|
650
646
|
const onPointerUp = () => {
|
|
651
|
-
window.removeEventListener('pointermove', onPointerMove);
|
|
652
|
-
window.removeEventListener('pointerup', onPointerUp);
|
|
653
|
-
window.removeEventListener('pointercancel', onPointerUp);
|
|
654
647
|
if (dragStarted) {
|
|
655
648
|
(0, ForceSpecificCursor_1.stopForcingSpecificCursor)();
|
|
656
649
|
onDraggingChange(false);
|
|
@@ -701,9 +694,12 @@ const SelectedOutlineScaleEdgeLine = ({ allScaleDragTargets, contextMenuValues,
|
|
|
701
694
|
});
|
|
702
695
|
});
|
|
703
696
|
};
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
697
|
+
(0, pointer_session_1.startPointerSession)({
|
|
698
|
+
event,
|
|
699
|
+
target: event.currentTarget,
|
|
700
|
+
onMove: onPointerMove,
|
|
701
|
+
onEnd: onPointerUp,
|
|
702
|
+
});
|
|
707
703
|
}, [
|
|
708
704
|
allScaleDragTargets,
|
|
709
705
|
clearDragOverrides,
|
|
@@ -743,9 +739,6 @@ const SelectedOutlineRotationCornerHandle = ({ allRotationDragTargets, contextMe
|
|
|
743
739
|
const { getDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeDragOverridesContext);
|
|
744
740
|
const { setPropStatuses, setDragOverrides, clearDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeSettersContext);
|
|
745
741
|
const { editorSnapping } = (0, react_1.useContext)(editor_snapping_1.EditorSnappingContext);
|
|
746
|
-
const timelinePosition = remotion_1.Internals.Timeline.useTimelinePosition();
|
|
747
|
-
const timelinePositionRef = (0, react_1.useRef)(timelinePosition);
|
|
748
|
-
timelinePositionRef.current = timelinePosition;
|
|
749
742
|
const rotationDrag = (_a = target === null || target === void 0 ? void 0 : target.rotationDrag) !== null && _a !== void 0 ? _a : null;
|
|
750
743
|
const selected = (_b = target === null || target === void 0 ? void 0 : target.selected) !== null && _b !== void 0 ? _b : false;
|
|
751
744
|
const circleRef = (0, react_1.useRef)(null);
|
|
@@ -785,7 +778,7 @@ const SelectedOutlineRotationCornerHandle = ({ allRotationDragTargets, contextMe
|
|
|
785
778
|
const dragStates = (0, selected_outline_drag_1.getSelectedOutlineRotationDragStates)({
|
|
786
779
|
dragTargets: selected ? allRotationDragTargets : [rotationDrag],
|
|
787
780
|
getDragOverrides,
|
|
788
|
-
timelinePosition:
|
|
781
|
+
timelinePosition: (0, imperative_state_1.getCurrentFrame)(),
|
|
789
782
|
});
|
|
790
783
|
let previousAngle = (0, selected_outline_measurement_1.getAngleDegrees)(center, {
|
|
791
784
|
x: event.clientX,
|
|
@@ -864,9 +857,6 @@ const SelectedOutlineRotationCornerHandle = ({ allRotationDragTargets, contextMe
|
|
|
864
857
|
}
|
|
865
858
|
};
|
|
866
859
|
const onPointerUp = () => {
|
|
867
|
-
window.removeEventListener('pointermove', onPointerMove);
|
|
868
|
-
window.removeEventListener('pointerup', onPointerUp);
|
|
869
|
-
window.removeEventListener('pointercancel', onPointerUp);
|
|
870
860
|
window.removeEventListener('keydown', onKeyChange);
|
|
871
861
|
window.removeEventListener('keyup', onKeyChange);
|
|
872
862
|
if (dragStarted) {
|
|
@@ -919,9 +909,12 @@ const SelectedOutlineRotationCornerHandle = ({ allRotationDragTargets, contextMe
|
|
|
919
909
|
});
|
|
920
910
|
});
|
|
921
911
|
};
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
912
|
+
(0, pointer_session_1.startPointerSession)({
|
|
913
|
+
event,
|
|
914
|
+
target: event.currentTarget,
|
|
915
|
+
onMove: onPointerMove,
|
|
916
|
+
onEnd: onPointerUp,
|
|
917
|
+
});
|
|
925
918
|
window.addEventListener('keydown', onKeyChange);
|
|
926
919
|
window.addEventListener('keyup', onKeyChange);
|
|
927
920
|
}, [
|
|
@@ -1003,7 +996,7 @@ const SelectedOutlineElement = ({ allDragTargets, allDragOutlines, allRotationDr
|
|
|
1003
996
|
if (originalLocation === null) {
|
|
1004
997
|
return;
|
|
1005
998
|
}
|
|
1006
|
-
await (0, open_in_editor_1.openOriginalPositionInEditor)(originalLocation);
|
|
999
|
+
await (0, open_in_editor_1.openOriginalPositionInEditor)(originalLocation, null);
|
|
1007
1000
|
};
|
|
1008
1001
|
openTargetInEditor().catch((err) => {
|
|
1009
1002
|
(0, NotificationCenter_1.showNotification)(err.message, 2000);
|
|
@@ -1050,6 +1043,7 @@ const SelectedOutlineElement = ({ allDragTargets, allDragOutlines, allRotationDr
|
|
|
1050
1043
|
deleteDisabled: sourceEditDisabled,
|
|
1051
1044
|
disableInteractivityDisabled,
|
|
1052
1045
|
duplicateDisabled: sourceEditDisabled,
|
|
1046
|
+
editorInfo: null,
|
|
1053
1047
|
fileLocation,
|
|
1054
1048
|
includeSourceEditItems: sourceEditingEnabled,
|
|
1055
1049
|
onDeleteSequenceFromSource: async () => {
|
|
@@ -1107,7 +1101,7 @@ const SelectedOutlineElement = ({ allDragTargets, allDragOutlines, allRotationDr
|
|
|
1107
1101
|
if (!originalLocation) {
|
|
1108
1102
|
return;
|
|
1109
1103
|
}
|
|
1110
|
-
(0, open_in_editor_1.openOriginalPositionInEditor)(originalLocation).catch((err) => {
|
|
1104
|
+
(0, open_in_editor_1.openOriginalPositionInEditor)(originalLocation, null).catch((err) => {
|
|
1111
1105
|
(0, NotificationCenter_1.showNotification)(err.message, 2000);
|
|
1112
1106
|
});
|
|
1113
1107
|
},
|
|
@@ -38,6 +38,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
38
38
|
const react_1 = __importStar(require("react"));
|
|
39
39
|
const remotion_1 = require("remotion");
|
|
40
40
|
const colors_1 = require("../helpers/colors");
|
|
41
|
+
const pointer_session_1 = require("../helpers/pointer-session");
|
|
41
42
|
const editor_snapping_1 = require("../state/editor-snapping");
|
|
42
43
|
const ForceSpecificCursor_1 = require("./ForceSpecificCursor");
|
|
43
44
|
const selected_outline_drag_1 = require("./selected-outline-drag");
|
|
@@ -217,9 +218,6 @@ const SelectedUvEllipseStartHandle = ({ control, onDraggingChange, outline }) =>
|
|
|
217
218
|
updateFromPointerEvent(moveEvent);
|
|
218
219
|
};
|
|
219
220
|
const onPointerUp = () => {
|
|
220
|
-
window.removeEventListener('pointermove', onPointerMove);
|
|
221
|
-
window.removeEventListener('pointerup', onPointerUp);
|
|
222
|
-
window.removeEventListener('pointercancel', onPointerUp);
|
|
223
221
|
if (dragging) {
|
|
224
222
|
(0, ForceSpecificCursor_1.stopForcingSpecificCursor)();
|
|
225
223
|
onDraggingChange(false);
|
|
@@ -236,9 +234,12 @@ const SelectedUvEllipseStartHandle = ({ control, onDraggingChange, outline }) =>
|
|
|
236
234
|
sourceFrame: control.handle.sourceFrame,
|
|
237
235
|
});
|
|
238
236
|
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
237
|
+
(0, pointer_session_1.startPointerSession)({
|
|
238
|
+
event,
|
|
239
|
+
target: event.currentTarget,
|
|
240
|
+
onMove: onPointerMove,
|
|
241
|
+
onEnd: onPointerUp,
|
|
242
|
+
});
|
|
242
243
|
}, [
|
|
243
244
|
clearEffectDragOverrides,
|
|
244
245
|
control.handle,
|
|
@@ -317,9 +318,6 @@ const SelectedUvEllipseResizeHandle = ({ axis, control, onDraggingChange, outlin
|
|
|
317
318
|
updateFromPointerEvent(moveEvent);
|
|
318
319
|
};
|
|
319
320
|
const onPointerUp = () => {
|
|
320
|
-
window.removeEventListener('pointermove', onPointerMove);
|
|
321
|
-
window.removeEventListener('pointerup', onPointerUp);
|
|
322
|
-
window.removeEventListener('pointercancel', onPointerUp);
|
|
323
321
|
if (dragging) {
|
|
324
322
|
(0, ForceSpecificCursor_1.stopForcingSpecificCursor)();
|
|
325
323
|
onDraggingChange(false);
|
|
@@ -336,9 +334,12 @@ const SelectedUvEllipseResizeHandle = ({ axis, control, onDraggingChange, outlin
|
|
|
336
334
|
sourceFrame: control.handle.sourceFrame,
|
|
337
335
|
});
|
|
338
336
|
};
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
337
|
+
(0, pointer_session_1.startPointerSession)({
|
|
338
|
+
event,
|
|
339
|
+
target: event.currentTarget,
|
|
340
|
+
onMove: onPointerMove,
|
|
341
|
+
onEnd: onPointerUp,
|
|
342
|
+
});
|
|
342
343
|
}, [
|
|
343
344
|
axis,
|
|
344
345
|
clearEffectDragOverrides,
|
|
@@ -470,9 +471,6 @@ const SelectedUvEllipseRotationHandle = ({ control, onDraggingChange }) => {
|
|
|
470
471
|
}
|
|
471
472
|
};
|
|
472
473
|
const onPointerUp = () => {
|
|
473
|
-
window.removeEventListener('pointermove', onPointerMove);
|
|
474
|
-
window.removeEventListener('pointerup', onPointerUp);
|
|
475
|
-
window.removeEventListener('pointercancel', onPointerUp);
|
|
476
474
|
window.removeEventListener('keydown', onKeyChange);
|
|
477
475
|
window.removeEventListener('keyup', onKeyChange);
|
|
478
476
|
if (dragging) {
|
|
@@ -491,9 +489,12 @@ const SelectedUvEllipseRotationHandle = ({ control, onDraggingChange }) => {
|
|
|
491
489
|
sourceFrame: control.handle.sourceFrame,
|
|
492
490
|
});
|
|
493
491
|
};
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
492
|
+
(0, pointer_session_1.startPointerSession)({
|
|
493
|
+
event,
|
|
494
|
+
target: event.currentTarget,
|
|
495
|
+
onMove: onPointerMove,
|
|
496
|
+
onEnd: onPointerUp,
|
|
497
|
+
});
|
|
497
498
|
window.addEventListener('keydown', onKeyChange);
|
|
498
499
|
window.addEventListener('keyup', onKeyChange);
|
|
499
500
|
}, [
|
|
@@ -595,9 +596,6 @@ const SelectedUvHandleCircle = ({ handle, nodePathInfo, onDraggingChange, onSele
|
|
|
595
596
|
updateDragFromPointerEvent(moveEvent);
|
|
596
597
|
};
|
|
597
598
|
const onPointerUp = () => {
|
|
598
|
-
window.removeEventListener('pointermove', onPointerMove);
|
|
599
|
-
window.removeEventListener('pointerup', onPointerUp);
|
|
600
|
-
window.removeEventListener('pointercancel', onPointerUp);
|
|
601
599
|
if (dragging) {
|
|
602
600
|
(0, ForceSpecificCursor_1.stopForcingSpecificCursor)();
|
|
603
601
|
onDraggingChange(false);
|
|
@@ -645,9 +643,12 @@ const SelectedUvHandleCircle = ({ handle, nodePathInfo, onDraggingChange, onSele
|
|
|
645
643
|
clearEffectDragOverrides(handle.nodePath, handle.effectIndex);
|
|
646
644
|
});
|
|
647
645
|
};
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
646
|
+
(0, pointer_session_1.startPointerSession)({
|
|
647
|
+
event,
|
|
648
|
+
target: event.currentTarget,
|
|
649
|
+
onMove: onPointerMove,
|
|
650
|
+
onEnd: onPointerUp,
|
|
651
|
+
});
|
|
651
652
|
}, [
|
|
652
653
|
clearEffectDragOverrides,
|
|
653
654
|
editorSnapping,
|
|
@@ -7,6 +7,7 @@ const editor_guides_1 = require("../state/editor-guides");
|
|
|
7
7
|
const ShowGuidesProvider = ({ children }) => {
|
|
8
8
|
const [guidesList, setGuidesList] = (0, react_1.useState)(() => (0, editor_guides_1.loadGuidesList)());
|
|
9
9
|
const [draggingGuideId, setDraggingGuideId] = (0, react_1.useState)(null);
|
|
10
|
+
const moveGuidePointerRef = (0, react_1.useRef)(null);
|
|
10
11
|
const [hoveredGuideId, setHoveredGuideId] = (0, react_1.useState)(null);
|
|
11
12
|
const [editorShowGuides, setEditorShowGuidesState] = (0, react_1.useState)(() => (0, editor_guides_1.loadEditorShowGuidesOption)());
|
|
12
13
|
const shouldCreateGuideRef = (0, react_1.useRef)(false);
|
|
@@ -25,6 +26,7 @@ const ShowGuidesProvider = ({ children }) => {
|
|
|
25
26
|
guidesList,
|
|
26
27
|
setGuidesList,
|
|
27
28
|
draggingGuideId,
|
|
29
|
+
moveGuidePointerRef,
|
|
28
30
|
setDraggingGuideId,
|
|
29
31
|
shouldCreateGuideRef,
|
|
30
32
|
shouldDeleteGuideRef,
|
|
@@ -139,8 +139,8 @@ const SidebarCollapserControl = ({ side }) => {
|
|
|
139
139
|
return (jsx_runtime_1.jsx("div", { "data-sidebar-toggle": "right", style: colorStyle(color), title: toggleRightTooltip, children: jsx_runtime_1.jsx("div", { style: rightIcon(color) }) }));
|
|
140
140
|
}, [colorStyle, rightIcon, toggleRightTooltip]);
|
|
141
141
|
if (side === 'left') {
|
|
142
|
-
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { onClick: toggleLeft, renderAction: toggleLeftAction, unhoveredColor: colors_1.WHITE_ALPHA_80 }));
|
|
142
|
+
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { variant: null, onClick: toggleLeft, renderAction: toggleLeftAction, unhoveredColor: colors_1.WHITE_ALPHA_80 }));
|
|
143
143
|
}
|
|
144
|
-
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { onClick: toggleRight, renderAction: toggleRightAction, unhoveredColor: colors_1.WHITE_ALPHA_80 }));
|
|
144
|
+
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { variant: null, onClick: toggleRight, renderAction: toggleRightAction, unhoveredColor: colors_1.WHITE_ALPHA_80 }));
|
|
145
145
|
};
|
|
146
146
|
exports.SidebarCollapserControl = SidebarCollapserControl;
|
|
@@ -5,15 +5,11 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const remotion_1 = require("remotion");
|
|
7
7
|
const client_id_1 = require("../helpers/client-id");
|
|
8
|
-
const mobile_layout_1 = require("../helpers/mobile-layout");
|
|
9
8
|
const render_1 = require("../icons/render");
|
|
10
9
|
const modals_1 = require("../state/modals");
|
|
11
|
-
const sidebar_1 = require("../state/sidebar");
|
|
12
10
|
const InlineAction_1 = require("./InlineAction");
|
|
13
11
|
const SidebarRenderButton = ({ composition, visible }) => {
|
|
14
12
|
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
15
|
-
const { setSidebarCollapsedState } = (0, react_1.useContext)(sidebar_1.SidebarContext);
|
|
16
|
-
const isMobileLayout = (0, mobile_layout_1.useMobileLayout)();
|
|
17
13
|
const iconStyle = (0, react_1.useMemo)(() => {
|
|
18
14
|
return {
|
|
19
15
|
style: {
|
|
@@ -84,23 +80,13 @@ const SidebarRenderButton = ({ composition, visible }) => {
|
|
|
84
80
|
initialDarkMode: defaults.darkMode,
|
|
85
81
|
readOnlyStudio: false,
|
|
86
82
|
});
|
|
87
|
-
|
|
88
|
-
setSidebarCollapsedState({ left: 'collapsed', right: 'collapsed' });
|
|
89
|
-
}
|
|
90
|
-
}, [
|
|
91
|
-
composition.defaultProps,
|
|
92
|
-
composition.id,
|
|
93
|
-
isMobileLayout,
|
|
94
|
-
props,
|
|
95
|
-
setSelectedModal,
|
|
96
|
-
setSidebarCollapsedState,
|
|
97
|
-
]);
|
|
83
|
+
}, [composition.defaultProps, composition.id, props, setSelectedModal]);
|
|
98
84
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
99
85
|
return jsx_runtime_1.jsx(render_1.ThinRenderIcon, { fill: color, svgProps: iconStyle });
|
|
100
86
|
}, [iconStyle]);
|
|
101
87
|
if (!visible || connectionStatus !== 'connected') {
|
|
102
88
|
return null;
|
|
103
89
|
}
|
|
104
|
-
return jsx_runtime_1.jsx(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick });
|
|
90
|
+
return (jsx_runtime_1.jsx(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick, variant: null }));
|
|
105
91
|
};
|
|
106
92
|
exports.SidebarRenderButton = SidebarRenderButton;
|
|
@@ -4,6 +4,7 @@ exports.SizeSelector = exports.usePreviewSizeMenuItems = exports.getUniqueSizes
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const remotion_1 = require("remotion");
|
|
7
|
+
const colors_1 = require("../helpers/colors");
|
|
7
8
|
const get_preview_file_type_1 = require("../helpers/get-preview-file-type");
|
|
8
9
|
const Checkmark_1 = require("../icons/Checkmark");
|
|
9
10
|
const ControlButton_1 = require("./ControlButton");
|
|
@@ -123,6 +124,6 @@ const SizeSelector = () => {
|
|
|
123
124
|
if (!zoomable) {
|
|
124
125
|
return null;
|
|
125
126
|
}
|
|
126
|
-
return (jsx_runtime_1.jsx("div", { style: style, "aria-label": accessibilityLabel, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { size: "compact", title: accessibilityLabel, style: comboStyle, selectedId: selectedId, values: items }) }));
|
|
127
|
+
return (jsx_runtime_1.jsx("div", { style: style, "aria-label": accessibilityLabel, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { size: "compact", title: accessibilityLabel, style: comboStyle, selectedId: selectedId, values: items, unhoveredIconColor: colors_1.WHITE_ALPHA_80 }) }));
|
|
127
128
|
};
|
|
128
129
|
exports.SizeSelector = SizeSelector;
|
|
@@ -14,13 +14,12 @@ const SnappingToggle = () => {
|
|
|
14
14
|
const onClick = (0, react_1.useCallback)(() => {
|
|
15
15
|
setEditorSnapping((current) => !current);
|
|
16
16
|
}, [setEditorSnapping]);
|
|
17
|
-
const color = editorSnapping ? colors_1.BLUE : colors_1.WHITE;
|
|
18
17
|
const accessibilityLabel = [
|
|
19
18
|
editorSnapping ? 'Disable snapping' : 'Enable snapping',
|
|
20
19
|
(0, use_keybinding_1.areKeyboardShortcutsDisabled)() ? null : '(Shift+M)',
|
|
21
20
|
]
|
|
22
21
|
.filter(no_react_1.NoReactInternals.truthy)
|
|
23
22
|
.join(' ');
|
|
24
|
-
return (jsx_runtime_1.jsx(ControlButton_1.ControlButton, { title: accessibilityLabel, "aria-label": accessibilityLabel, "aria-pressed": editorSnapping, "aria-keyshortcuts": "Shift+M", onClick: onClick, children: jsx_runtime_1.jsx(magnet_1.MagnetIcon, { style: { width:
|
|
23
|
+
return (jsx_runtime_1.jsx(ControlButton_1.ControlButton, { title: accessibilityLabel, "aria-label": accessibilityLabel, "aria-pressed": editorSnapping, "aria-keyshortcuts": "Shift+M", onClick: onClick, children: (color) => (jsx_runtime_1.jsx(magnet_1.MagnetIcon, { style: { width: 18, height: 18, transform: 'translateY(1px)' }, color: editorSnapping ? colors_1.BLUE : color, "aria-hidden": "true", focusable: "false" })) }));
|
|
25
24
|
};
|
|
26
25
|
exports.SnappingToggle = SnappingToggle;
|
|
@@ -10,7 +10,7 @@ const className = '__remotion_spinner_line';
|
|
|
10
10
|
const remotionSpinnerAnimation = '__remotion_spinner_animation';
|
|
11
11
|
// Generated from https://github.com/remotion-dev/template-next/commit/9282c93f7c51ada31a42e18a94680fa09a14eee3
|
|
12
12
|
const translated = 'M 44 0 L 50 0 a 6 6 0 0 1 6 6 L 56 26 a 6 6 0 0 1 -6 6 L 50 32 a 6 6 0 0 1 -6 -6 L 44 6 a 6 6 0 0 1 6 -6 Z';
|
|
13
|
-
const Spinner = ({ size, duration }) => {
|
|
13
|
+
const Spinner = ({ size, duration, color = colors_1.LIGHT_TEXT }) => {
|
|
14
14
|
const style = (0, react_1.useMemo)(() => {
|
|
15
15
|
return {
|
|
16
16
|
width: size,
|
|
@@ -36,7 +36,7 @@ const Spinner = ({ size, duration }) => {
|
|
|
36
36
|
rotate: `${(index * Math.PI * 2) / lines}rad`,
|
|
37
37
|
transformOrigin: 'center center',
|
|
38
38
|
animationDelay: `${index * (duration / lines) - duration}s`,
|
|
39
|
-
}, d: translated, fill:
|
|
39
|
+
}, d: translated, fill: color }, index));
|
|
40
40
|
}) })
|
|
41
41
|
] }));
|
|
42
42
|
};
|
|
@@ -8,6 +8,7 @@ export declare const SplitterContainer: React.FC<{
|
|
|
8
8
|
readonly maxFlexerSize: number | null;
|
|
9
9
|
readonly minFlexerSize: number | null;
|
|
10
10
|
readonly maxAntiFlexerSize: number | null;
|
|
11
|
+
readonly minAntiFlexerSize: number | null;
|
|
11
12
|
readonly id: string;
|
|
12
13
|
readonly defaultFlex: number;
|
|
13
14
|
readonly children: React.ReactNode;
|