@remotion/studio 4.0.485 → 4.0.486
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/ResolveCompositionConfigInStudio.js +42 -0
- package/dist/components/AssetSelector.js +1 -1
- package/dist/components/AssetSelectorItem.js +9 -9
- package/dist/components/AudioWaveform.js +3 -3
- package/dist/components/Button.js +2 -2
- package/dist/components/Canvas.js +28 -0
- package/dist/components/CanvasOrLoading.js +1 -1
- package/dist/components/CheckboardToggle.js +1 -1
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/ColorPicker/AlphaSlider.js +4 -3
- package/dist/components/ColorPicker/ColorPicker.js +4 -4
- package/dist/components/ColorPicker/ColorPickerPopup.js +10 -10
- package/dist/components/ColorPicker/HueSlider.js +4 -3
- package/dist/components/ColorPicker/SaturationValueArea.js +5 -4
- package/dist/components/ColorPicker/checker.d.ts +1 -1
- package/dist/components/ColorPicker/checker.js +3 -3
- package/dist/components/CompactExplanation.js +3 -3
- package/dist/components/CompositionSelector.js +141 -5
- package/dist/components/CompositionSelectorItem.d.ts +1 -0
- package/dist/components/CompositionSelectorItem.js +103 -11
- package/dist/components/CopyButton.js +3 -2
- package/dist/components/CurrentAsset.d.ts +3 -1
- package/dist/components/CurrentAsset.js +15 -2
- package/dist/components/EffectPickerModal.js +1 -1
- package/dist/components/FilePreview.js +2 -1
- package/dist/components/FpsCounter.js +3 -2
- package/dist/components/FullscreenToggle.js +2 -1
- package/dist/components/GlobalKeybindings.js +0 -12
- package/dist/components/InlineAction.js +2 -2
- package/dist/components/InlineEditableTitle.d.ts +1 -0
- package/dist/components/InlineEditableTitle.js +12 -7
- package/dist/components/InspectorInfoHeader.js +2 -2
- package/dist/components/InspectorPanel/DefaultInspector.d.ts +1 -0
- package/dist/components/InspectorPanel/DefaultInspector.js +2 -2
- package/dist/components/InspectorPanel/KeyframeEasingNavigator.js +1 -1
- package/dist/components/InspectorPanel/common.js +2 -2
- package/dist/components/InspectorPanel/styles.js +3 -3
- package/dist/components/InspectorPanel.d.ts +1 -0
- package/dist/components/InspectorPanel.js +2 -2
- package/dist/components/InspectorSequenceSection.js +1 -1
- package/dist/components/InstallablePackage.js +1 -1
- package/dist/components/KeyboardShortcutsExplainer.js +5 -5
- package/dist/components/LoopToggle.js +1 -1
- package/dist/components/Menu/MenuDivider.js +1 -1
- package/dist/components/Menu/MenuItem.js +1 -1
- package/dist/components/Menu/MenuSubItem.js +1 -1
- package/dist/components/Menu/styles.js +3 -3
- package/dist/components/MenuToolbar.js +2 -2
- package/dist/components/ModalButton.js +1 -1
- package/dist/components/ModalContainer.js +3 -3
- package/dist/components/ModalFooter.js +2 -1
- package/dist/components/ModalHeader.js +3 -2
- package/dist/components/Modals.js +2 -1
- package/dist/components/NewComposition/CancelButton.js +4 -3
- package/dist/components/NewComposition/ComboBox.js +3 -3
- package/dist/components/NewComposition/InputDragger.js +11 -3
- package/dist/components/NewComposition/MenuContent.js +1 -1
- package/dist/components/NewComposition/NewComposition.js +4 -1
- package/dist/components/NewComposition/NewFolder.d.ts +5 -0
- package/dist/components/NewComposition/NewFolder.js +86 -0
- package/dist/components/NewComposition/RemInput.js +3 -3
- package/dist/components/NewComposition/RemTextarea.js +1 -1
- package/dist/components/NewComposition/RenameStaticFile.js +20 -59
- package/dist/components/NewComposition/ValidationMessage.js +1 -1
- package/dist/components/NewComposition/use-rename-static-file.d.ts +18 -0
- package/dist/components/NewComposition/use-rename-static-file.js +90 -0
- package/dist/components/NoRegisterRoot.js +3 -2
- package/dist/components/Notifications/ColorDot.js +3 -2
- package/dist/components/Notifications/Notification.js +4 -4
- package/dist/components/Notifications/NotificationCenter.js +2 -1
- package/dist/components/Notifications/ServerDisconnected.js +5 -4
- package/dist/components/OptionsPanel.js +1 -1
- package/dist/components/OutlineToggle.js +1 -1
- package/dist/components/PlayPause.js +4 -3
- package/dist/components/PreviewToolbar.js +1 -1
- package/dist/components/QuickSwitcher/AlgoliaCredit.js +2 -1
- package/dist/components/QuickSwitcher/QuickSwitcherContent.js +1 -1
- package/dist/components/QuickSwitcher/QuickSwitcherResult.js +2 -2
- package/dist/components/RefreshCompositionOverlay.js +2 -1
- package/dist/components/RenderButton.js +9 -9
- package/dist/components/RenderModal/CliCopyButton.js +1 -1
- package/dist/components/RenderModal/ClientRenderProgress.js +1 -1
- package/dist/components/RenderModal/DataEditor.js +1 -1
- package/dist/components/RenderModal/GuiRenderStatus.js +1 -1
- package/dist/components/RenderModal/InfoBubble.js +2 -2
- package/dist/components/RenderModal/InfoTooltip.js +3 -3
- package/dist/components/RenderModal/InlineEyeIcon.js +2 -1
- package/dist/components/RenderModal/InlineRemoveButton.js +2 -1
- package/dist/components/RenderModal/MultiRangeSlider.js +1 -1
- package/dist/components/RenderModal/OptionExplainer.js +2 -2
- package/dist/components/RenderModal/RenderModalHr.js +2 -1
- package/dist/components/RenderModal/RenderStatusModal.js +2 -1
- package/dist/components/RenderModal/SchemaEditor/SchemaLabel.js +1 -5
- package/dist/components/RenderModal/SchemaEditor/SchemaResetButton.js +2 -1
- package/dist/components/RenderModal/SchemaEditor/SchemaSeparationLine.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/SchemaVerticalGuide.js +2 -1
- package/dist/components/RenderModal/SchemaEditor/ZodDateEditor.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodErrorMessages.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/create-zod-values.js +2 -1
- package/dist/components/RenderModal/ServerRenderModal.js +1 -1
- package/dist/components/RenderModal/WarningIndicatorButton.js +4 -6
- package/dist/components/RenderModal/WebRenderModalAudio.js +4 -3
- package/dist/components/RenderModal/WebRenderModalLicense.js +2 -2
- package/dist/components/RenderModal/WebRenderModalPicture.js +2 -1
- package/dist/components/RenderModal/render-modals.js +3 -3
- package/dist/components/RenderPreview.js +1 -1
- package/dist/components/RenderQueue/RenderQueueCopyToClipboard.js +2 -1
- package/dist/components/RenderQueue/RenderQueueDownloadItem.js +2 -1
- package/dist/components/RenderQueue/RenderQueueItemCancelButton.js +2 -1
- package/dist/components/RenderQueue/RenderQueueItemStatus.js +1 -1
- package/dist/components/RenderQueue/RenderQueueOpenInFolder.js +2 -1
- package/dist/components/RenderQueue/RenderQueueRemoveItem.js +2 -1
- package/dist/components/RenderQueue/RenderQueueRepeat.js +2 -1
- package/dist/components/RenderQueue/index.js +1 -1
- package/dist/components/RendersTab.js +2 -2
- package/dist/components/SegmentedControl.js +3 -3
- package/dist/components/SelectedOutlineElement.d.ts +5 -0
- package/dist/components/SelectedOutlineElement.js +7 -7
- package/dist/components/SelectedOutlineOverlay.js +1 -1
- package/dist/components/SelectedOutlineUvControls.js +5 -5
- package/dist/components/SidebarCollapserControls.js +5 -4
- package/dist/components/Splitter/SplitterElement.js +2 -1
- package/dist/components/StaticFilePreview.js +1 -1
- package/dist/components/Tabs/index.js +3 -3
- package/dist/components/Tabs/vertical.js +3 -3
- package/dist/components/TextViewer.js +2 -1
- package/dist/components/TimeValue.js +1 -1
- package/dist/components/Timeline/EasingEditorModal.js +8 -8
- package/dist/components/Timeline/KeyframeSettingsModal.js +1 -1
- package/dist/components/Timeline/LoopedIndicator.js +2 -2
- package/dist/components/Timeline/MaxTimelineTracks.js +3 -2
- package/dist/components/Timeline/TimelineArrayField.js +6 -5
- package/dist/components/Timeline/TimelineColorField.js +2 -1
- package/dist/components/Timeline/TimelineEffectItem.js +3 -2
- package/dist/components/Timeline/TimelineEffectPropItem.js +2 -2
- package/dist/components/Timeline/TimelineExpandArrowButton.js +3 -2
- package/dist/components/Timeline/TimelineExpandedRow.js +2 -1
- package/dist/components/Timeline/TimelineExpandedSection.js +1 -1
- package/dist/components/Timeline/TimelineFieldLabel.js +2 -1
- package/dist/components/Timeline/TimelineFontFamilyField.d.ts +11 -0
- package/dist/components/Timeline/TimelineFontFamilyField.js +545 -0
- package/dist/components/Timeline/TimelineImageInfo.js +2 -1
- package/dist/components/Timeline/TimelineInOutPointer.js +2 -1
- package/dist/components/Timeline/TimelineInOutPointerHandle.js +2 -4
- package/dist/components/Timeline/TimelineKeyframeControls.js +2 -2
- package/dist/components/Timeline/TimelineKeyframeDiamondIcon.js +1 -1
- package/dist/components/Timeline/TimelineKeyframeEasingLine.js +1 -1
- package/dist/components/Timeline/TimelineLayerEye.js +3 -3
- package/dist/components/Timeline/TimelineMediaInfo.js +2 -2
- package/dist/components/Timeline/TimelinePrimitiveFieldValue.js +4 -0
- package/dist/components/Timeline/TimelineRotationField.js +4 -3
- package/dist/components/Timeline/TimelineScaleField.js +1 -1
- package/dist/components/Timeline/TimelineSchemaField.d.ts +2 -0
- package/dist/components/Timeline/TimelineSchemaField.js +47 -7
- package/dist/components/Timeline/TimelineScrollable.js +3 -2
- package/dist/components/Timeline/TimelineSelection.js +6 -6
- package/dist/components/Timeline/TimelineSequence.js +17 -20
- package/dist/components/Timeline/TimelineSequenceFrame.js +3 -2
- package/dist/components/Timeline/TimelineSequenceItem.js +8 -7
- package/dist/components/Timeline/TimelineSequenceName.js +3 -2
- package/dist/components/Timeline/TimelineSequencePropItem.js +2 -1
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.d.ts +20 -1
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.js +128 -11
- package/dist/components/Timeline/TimelineSlider.js +2 -1
- package/dist/components/Timeline/TimelineSliderHandle.js +2 -1
- package/dist/components/Timeline/TimelineTimeIndicators.js +1 -1
- package/dist/components/Timeline/TimelineVideoInfo.js +2 -1
- package/dist/components/Timeline/TimelineZoomControls.js +4 -3
- package/dist/components/Timeline/call-move-keyframe.d.ts +5 -0
- package/dist/components/Timeline/call-move-keyframe.js +14 -3
- package/dist/components/Timeline/google-fonts-list.d.ts +6 -0
- package/dist/components/Timeline/google-fonts-list.js +1512 -0
- package/dist/components/Timeline/save-sequence-prop.d.ts +8 -1
- package/dist/components/Timeline/save-sequence-prop.js +63 -19
- package/dist/components/Timeline/timeline-rotation-field-utils.d.ts +5 -0
- package/dist/components/Timeline/timeline-rotation-field-utils.js +16 -0
- package/dist/components/Timeline/timeline-scroll-logic.js +5 -2
- package/dist/components/TimelineInOutToggle.js +1 -1
- package/dist/components/UpdateCheck.js +2 -2
- package/dist/components/UpdateModal/OpenIssueButton.js +1 -1
- package/dist/components/VisualControls/ClickableFileName.js +2 -2
- package/dist/components/effect-drag-and-drop.js +1 -0
- package/dist/components/import-assets.d.ts +7 -1
- package/dist/components/import-assets.js +55 -1
- package/dist/components/selected-outline-measurement.js +2 -1
- package/dist/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.js +2 -2
- package/dist/error-overlay/remotion-overlay/CodeFrame.js +7 -5
- package/dist/error-overlay/remotion-overlay/CompositionIdListItem.js +2 -2
- package/dist/error-overlay/remotion-overlay/DismissButton.js +3 -2
- package/dist/error-overlay/remotion-overlay/ErrorLoader.js +3 -2
- package/dist/error-overlay/remotion-overlay/ErrorMessage.js +4 -4
- package/dist/error-overlay/remotion-overlay/HelpLink.js +1 -1
- package/dist/error-overlay/remotion-overlay/MediaPlaybackErrorExplainer.js +4 -4
- package/dist/error-overlay/remotion-overlay/Overlay.js +3 -2
- package/dist/error-overlay/remotion-overlay/StackFrame.js +4 -3
- package/dist/error-overlay/remotion-overlay/Symbolicating.js +2 -1
- package/dist/error-overlay/remotion-overlay/carets.js +3 -2
- package/dist/esm/{chunk-103pp4n7.js → chunk-975rp13y.js} +9143 -6061
- package/dist/esm/chunk-jefhcs5z.js +164 -0
- package/dist/esm/internals.mjs +9144 -6028
- package/dist/esm/previewEntry.mjs +8335 -5215
- package/dist/esm/renderEntry.mjs +8 -5
- package/dist/helpers/checkerboard-background.js +4 -12
- package/dist/helpers/colors.d.ts +99 -7
- package/dist/helpers/colors.js +118 -10
- package/dist/helpers/inject-css.js +85 -83
- package/dist/helpers/timeline-layout.d.ts +4 -2
- package/dist/helpers/use-menu-structure.js +31 -3
- package/dist/helpers/validate-folder-rename.js +2 -10
- package/dist/helpers/validate-new-folder-name.d.ts +5 -0
- package/dist/helpers/validate-new-folder-name.js +16 -0
- package/dist/hot-middleware-client/client.js +3 -2
- package/dist/icons/Checkmark.js +2 -1
- package/dist/icons/audio.js +2 -1
- package/dist/icons/caret.js +2 -2
- package/dist/icons/certificate.js +2 -1
- package/dist/icons/data.js +2 -1
- package/dist/icons/eyedropper.js +2 -1
- package/dist/icons/file.js +2 -1
- package/dist/icons/frame.js +2 -1
- package/dist/icons/gear.js +2 -1
- package/dist/icons/gif.js +2 -1
- package/dist/icons/jump-to-start.js +2 -1
- package/dist/icons/keys.js +4 -3
- package/dist/icons/media-volume.js +1 -1
- package/dist/icons/minus.js +2 -1
- package/dist/icons/pause.js +2 -1
- package/dist/icons/play.js +2 -1
- package/dist/icons/redo.js +2 -1
- package/dist/icons/step-back.js +2 -1
- package/dist/icons/step-forward.js +2 -1
- package/dist/icons/undo.js +2 -1
- package/dist/previewEntry.js +2 -1
- package/dist/renderEntry.js +4 -3
- package/dist/state/modals.d.ts +4 -0
- package/package.json +11 -11
- package/dist/esm/chunk-6jf1natv.js +0 -25
|
@@ -55,7 +55,7 @@ const uvHandleRadius = 4.25;
|
|
|
55
55
|
const selectedUvHandleRadius = 6.8;
|
|
56
56
|
const ellipseControlRadius = 5.2;
|
|
57
57
|
const uvHandleStyle = {
|
|
58
|
-
filter:
|
|
58
|
+
filter: colors_1.SELECTED_OUTLINE_UV_DROP_SHADOW,
|
|
59
59
|
};
|
|
60
60
|
const getSelectedOutlineUvHandleTimelineSelection = ({ effectIndex, fieldKey, nodePathInfo, }) => {
|
|
61
61
|
return {
|
|
@@ -254,7 +254,7 @@ const SelectedUvEllipseStartHandle = ({ control, onDraggingChange, outline }) =>
|
|
|
254
254
|
if (startControl === null || field === undefined) {
|
|
255
255
|
return null;
|
|
256
256
|
}
|
|
257
|
-
return (jsx_runtime_1.jsx("circle", { cx: startControl.position.x, cy: startControl.position.y, r: ellipseControlRadius, fill:
|
|
257
|
+
return (jsx_runtime_1.jsx("circle", { cx: startControl.position.x, cy: startControl.position.y, r: ellipseControlRadius, fill: colors_1.WHITE, stroke: colors_1.BLUE, strokeWidth: 2, style: uvHandleStyle, vectorEffect: "non-scaling-stroke", pointerEvents: "all", cursor: startControl.cursor, onPointerDown: onPointerDown }));
|
|
258
258
|
};
|
|
259
259
|
const SelectedUvEllipseResizeHandle = ({ axis, control, onDraggingChange, outline }) => {
|
|
260
260
|
const { setEffectDragOverrides, clearEffectDragOverrides, setPropStatuses } = (0, react_1.useContext)(remotion_1.Internals.VisualModeSettersContext);
|
|
@@ -354,7 +354,7 @@ const SelectedUvEllipseResizeHandle = ({ axis, control, onDraggingChange, outlin
|
|
|
354
354
|
if (resizeControl === undefined || field === undefined) {
|
|
355
355
|
return null;
|
|
356
356
|
}
|
|
357
|
-
return (jsx_runtime_1.jsx("circle", { cx: resizeControl.position.x, cy: resizeControl.position.y, r: ellipseControlRadius, fill:
|
|
357
|
+
return (jsx_runtime_1.jsx("circle", { cx: resizeControl.position.x, cy: resizeControl.position.y, r: ellipseControlRadius, fill: colors_1.WHITE, stroke: colors_1.BLUE, strokeWidth: 2, style: uvHandleStyle, vectorEffect: "non-scaling-stroke", pointerEvents: "all", cursor: resizeControl.cursor, onPointerDown: onPointerDown }));
|
|
358
358
|
};
|
|
359
359
|
const snapRotationDegrees = (value) => Math.round(value / selected_outline_drag_1.selectedOutlineRotationSnapStepDegrees) *
|
|
360
360
|
selected_outline_drag_1.selectedOutlineRotationSnapStepDegrees;
|
|
@@ -517,7 +517,7 @@ const SelectedUvEllipseRotationHandle = ({ control, onDraggingChange }) => {
|
|
|
517
517
|
toRadius: ellipseControlRadius,
|
|
518
518
|
});
|
|
519
519
|
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
520
|
-
jsx_runtime_1.jsx("line", { x1: connector.from.x, y1: connector.from.y, x2: connector.to.x, y2: connector.to.y, stroke: colors_1.BLUE, strokeWidth: 2, vectorEffect: "non-scaling-stroke", pointerEvents: "none" }), jsx_runtime_1.jsx("circle", { cx: rotationControl.position.x, cy: rotationControl.position.y, r: ellipseControlRadius, fill:
|
|
520
|
+
jsx_runtime_1.jsx("line", { x1: connector.from.x, y1: connector.from.y, x2: connector.to.x, y2: connector.to.y, stroke: colors_1.BLUE, strokeWidth: 2, vectorEffect: "non-scaling-stroke", pointerEvents: "none" }), jsx_runtime_1.jsx("circle", { cx: rotationControl.position.x, cy: rotationControl.position.y, r: ellipseControlRadius, fill: colors_1.WHITE, stroke: colors_1.BLUE, strokeWidth: 2, style: uvHandleStyle, vectorEffect: "non-scaling-stroke", pointerEvents: "all", cursor: (0, selected_outline_measurement_2.getRotationCursor)((0, selected_outline_measurement_2.getAngleDegrees)(control.center, rotationControl.position)), onPointerDown: onPointerDown })
|
|
521
521
|
] }));
|
|
522
522
|
};
|
|
523
523
|
const SelectedUvHandleCircle = ({ handle, nodePathInfo, onDraggingChange, onSelect, outline }) => {
|
|
@@ -652,7 +652,7 @@ const SelectedUvHandleCircle = ({ handle, nodePathInfo, onDraggingChange, onSele
|
|
|
652
652
|
setPropStatuses,
|
|
653
653
|
setEffectDragOverrides,
|
|
654
654
|
]);
|
|
655
|
-
return (jsx_runtime_1.jsx("circle", { cx: position.x, cy: position.y, r: handle.isSelected ? selectedUvHandleRadius : uvHandleRadius, fill:
|
|
655
|
+
return (jsx_runtime_1.jsx("circle", { cx: position.x, cy: position.y, r: handle.isSelected ? selectedUvHandleRadius : uvHandleRadius, fill: colors_1.WHITE, stroke: colors_1.BLUE, strokeWidth: 2, style: uvHandleStyle, vectorEffect: "non-scaling-stroke", pointerEvents: "all", cursor: "default", onPointerDown: onPointerDown }));
|
|
656
656
|
};
|
|
657
657
|
const SelectedOutlineUvHandleConnectionLayer = ({ outline, target }) => {
|
|
658
658
|
if (!(target === null || target === void 0 ? void 0 : target.containsSelection) || target.uvHandles.length === 0) {
|
|
@@ -4,6 +4,7 @@ exports.SidebarCollapserControls = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const ShortcutHint_1 = require("../error-overlay/remotion-overlay/ShortcutHint");
|
|
7
|
+
const colors_1 = require("../helpers/colors");
|
|
7
8
|
const use_keybinding_1 = require("../helpers/use-keybinding");
|
|
8
9
|
const sidebar_1 = require("../state/sidebar");
|
|
9
10
|
const InlineAction_1 = require("./InlineAction");
|
|
@@ -12,9 +13,9 @@ const style = {
|
|
|
12
13
|
width: 16,
|
|
13
14
|
height: 16,
|
|
14
15
|
minWidth: 16,
|
|
15
|
-
border:
|
|
16
|
+
border: colors_1.BORDER_CURRENT_COLOR,
|
|
16
17
|
borderRadius: 3,
|
|
17
|
-
color:
|
|
18
|
+
color: colors_1.CURRENT_COLOR,
|
|
18
19
|
position: 'relative',
|
|
19
20
|
};
|
|
20
21
|
const SidebarCollapserControls = () => {
|
|
@@ -26,7 +27,7 @@ const SidebarCollapserControls = () => {
|
|
|
26
27
|
width: '35%',
|
|
27
28
|
height: '100%',
|
|
28
29
|
borderRight: '1px solid ' + color,
|
|
29
|
-
background: leftSidebarStatus === 'expanded' ? color :
|
|
30
|
+
background: leftSidebarStatus === 'expanded' ? color : colors_1.TRANSPARENT,
|
|
30
31
|
};
|
|
31
32
|
}, [leftSidebarStatus]);
|
|
32
33
|
const rightIcon = (0, react_1.useCallback)((color) => {
|
|
@@ -36,7 +37,7 @@ const SidebarCollapserControls = () => {
|
|
|
36
37
|
right: 0,
|
|
37
38
|
position: 'absolute',
|
|
38
39
|
borderLeft: '1px solid ' + color,
|
|
39
|
-
background: sidebarCollapsedStateRight === 'expanded' ? color :
|
|
40
|
+
background: sidebarCollapsedStateRight === 'expanded' ? color : colors_1.TRANSPARENT,
|
|
40
41
|
};
|
|
41
42
|
}, [sidebarCollapsedStateRight]);
|
|
42
43
|
const toggleLeft = (0, react_1.useCallback)(() => {
|
|
@@ -4,6 +4,7 @@ exports.SplitterElement = void 0;
|
|
|
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 SplitterContext_1 = require("./SplitterContext");
|
|
8
9
|
const SplitterElement = ({ children, type, sticky }) => {
|
|
9
10
|
const context = (0, react_1.useContext)(SplitterContext_1.SplitterContext);
|
|
@@ -24,7 +25,7 @@ const SplitterElement = ({ children, type, sticky }) => {
|
|
|
24
25
|
left: (type === 'flexer' ? 0 : context.flexValue) * 100 + '%',
|
|
25
26
|
width: (type === 'flexer' ? context.flexValue : 1 - context.flexValue) * 100 +
|
|
26
27
|
'%',
|
|
27
|
-
backgroundColor: (0, remotion_1.interpolateColors)((0, remotion_1.random)(context.flexValue), [0, 1], [
|
|
28
|
+
backgroundColor: (0, remotion_1.interpolateColors)((0, remotion_1.random)(context.flexValue), [0, 1], [colors_1.RED, 'blue']),
|
|
28
29
|
};
|
|
29
30
|
}, [context.flexValue, type]);
|
|
30
31
|
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
@@ -11,7 +11,7 @@ const FilePreview_1 = require("./FilePreview");
|
|
|
11
11
|
const use_static_files_1 = require("./use-static-files");
|
|
12
12
|
const msgStyle = {
|
|
13
13
|
fontSize: 13,
|
|
14
|
-
color:
|
|
14
|
+
color: colors_1.WHITE,
|
|
15
15
|
fontFamily: 'sans-serif',
|
|
16
16
|
display: 'flex',
|
|
17
17
|
justifyContent: 'center',
|
|
@@ -48,10 +48,10 @@ const Tab = ({ children, onClick, style, selected }) => {
|
|
|
48
48
|
backgroundColor: selected
|
|
49
49
|
? colors_1.BACKGROUND
|
|
50
50
|
: hovered
|
|
51
|
-
? colors_1.
|
|
51
|
+
? colors_1.WHITE_ALPHA_06
|
|
52
52
|
: colors_1.INPUT_BACKGROUND,
|
|
53
|
-
color: selected ?
|
|
54
|
-
borderTop: selected ? '2px solid ' + colors_1.BLUE :
|
|
53
|
+
color: selected ? colors_1.WHITE : colors_1.LIGHT_TEXT,
|
|
54
|
+
borderTop: selected ? '2px solid ' + colors_1.BLUE : colors_1.BORDER_TRANSPARENT_2PX,
|
|
55
55
|
boxShadow: selected ? 'none' : undefined,
|
|
56
56
|
...style,
|
|
57
57
|
}), [hovered, selected, style]);
|
|
@@ -33,9 +33,9 @@ const VerticalTab = ({ children, onClick, style, selected }) => {
|
|
|
33
33
|
backgroundColor: selected
|
|
34
34
|
? colors_1.SELECTED_BACKGROUND
|
|
35
35
|
: hovered
|
|
36
|
-
? colors_1.
|
|
37
|
-
:
|
|
38
|
-
color: selected ?
|
|
36
|
+
? colors_1.WHITE_ALPHA_06
|
|
37
|
+
: colors_1.TRANSPARENT,
|
|
38
|
+
color: selected ? colors_1.WHITE : colors_1.LIGHT_TEXT,
|
|
39
39
|
boxShadow: selected ? 'none' : undefined,
|
|
40
40
|
...style,
|
|
41
41
|
};
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TextViewer = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
const colors_1 = require("../helpers/colors");
|
|
6
7
|
const textStyle = {
|
|
7
8
|
margin: 14,
|
|
8
9
|
fontFamily: 'monospace',
|
|
9
10
|
flex: 1,
|
|
10
|
-
color:
|
|
11
|
+
color: colors_1.WHITE,
|
|
11
12
|
whiteSpace: 'pre-wrap',
|
|
12
13
|
};
|
|
13
14
|
const TextViewer = ({ src }) => {
|
|
@@ -12,7 +12,7 @@ const render_frame_1 = require("../state/render-frame");
|
|
|
12
12
|
const layout_1 = require("./layout");
|
|
13
13
|
const InputDragger_1 = require("./NewComposition/InputDragger");
|
|
14
14
|
const text = {
|
|
15
|
-
color:
|
|
15
|
+
color: colors_1.WHITE,
|
|
16
16
|
display: 'flex',
|
|
17
17
|
flexDirection: 'row',
|
|
18
18
|
alignItems: 'center',
|
|
@@ -27,7 +27,7 @@ const DEFAULT_EASING_GRAPH_LABELS = {
|
|
|
27
27
|
start: '0',
|
|
28
28
|
end: '1',
|
|
29
29
|
};
|
|
30
|
-
const EASING_GRAPH_GUIDE_COLOR =
|
|
30
|
+
const EASING_GRAPH_GUIDE_COLOR = colors_1.WHITE_ALPHA_12;
|
|
31
31
|
const EASING_GRAPH_LABEL_FONT_SIZE = 13;
|
|
32
32
|
const EASING_GRAPH_LABEL_HEIGHT = 20;
|
|
33
33
|
const EASING_GRAPH_LABEL_HORIZONTAL_PADDING = 4;
|
|
@@ -98,7 +98,7 @@ const inspectorPresetButtonsWrapper = {
|
|
|
98
98
|
const presetButtonBase = {
|
|
99
99
|
alignItems: 'center',
|
|
100
100
|
backgroundColor: colors_1.INPUT_BACKGROUND,
|
|
101
|
-
border: `1px solid ${colors_1.
|
|
101
|
+
border: `1px solid ${colors_1.WHITE_ALPHA_05}`,
|
|
102
102
|
borderRadius: 4,
|
|
103
103
|
display: 'inline-flex',
|
|
104
104
|
height: 34,
|
|
@@ -121,7 +121,7 @@ const coordinateRow = {
|
|
|
121
121
|
};
|
|
122
122
|
const coordinateLabel = {
|
|
123
123
|
fontSize: 13,
|
|
124
|
-
color:
|
|
124
|
+
color: colors_1.WHITE_ALPHA_72,
|
|
125
125
|
paddingLeft: 6,
|
|
126
126
|
};
|
|
127
127
|
const coordinateInputWrapper = {
|
|
@@ -388,15 +388,15 @@ const EasingPresetButton = ({ currentEasing, disabled, onClick, preset }) => {
|
|
|
388
388
|
const path = (0, react_1.useMemo)(() => getPresetPreviewPath(preset.easing), [preset.easing]);
|
|
389
389
|
const style = (0, react_1.useMemo)(() => ({
|
|
390
390
|
...presetButtonBase,
|
|
391
|
-
backgroundColor: selected ?
|
|
392
|
-
borderColor: selected ? colors_1.BLUE : colors_1.
|
|
391
|
+
backgroundColor: selected ? colors_1.EASING_SELECTED_BACKGROUND : colors_1.INPUT_BACKGROUND,
|
|
392
|
+
borderColor: selected ? colors_1.BLUE : colors_1.WHITE_ALPHA_05,
|
|
393
393
|
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
394
394
|
opacity: disabled ? 0.45 : 1,
|
|
395
395
|
}), [disabled, selected]);
|
|
396
396
|
const handleClick = (0, react_1.useCallback)(() => {
|
|
397
397
|
onClick(preset.easing);
|
|
398
398
|
}, [onClick, preset.easing]);
|
|
399
|
-
return (jsx_runtime_1.jsx("button", { type: "button", style: style, title: preset.label, "aria-label": `Apply ${preset.label} easing`, disabled: disabled, onClick: handleClick, children: jsx_runtime_1.jsx("svg", { width: PRESET_PREVIEW_WIDTH, height: PRESET_PREVIEW_HEIGHT, viewBox: `0 0 ${PRESET_PREVIEW_WIDTH} ${PRESET_PREVIEW_HEIGHT}`, style: presetPreviewSvgStyle, "aria-hidden": "true", focusable: false, children: jsx_runtime_1.jsx("path", { d: path, fill: "none", stroke:
|
|
399
|
+
return (jsx_runtime_1.jsx("button", { type: "button", style: style, title: preset.label, "aria-label": `Apply ${preset.label} easing`, disabled: disabled, onClick: handleClick, children: jsx_runtime_1.jsx("svg", { width: PRESET_PREVIEW_WIDTH, height: PRESET_PREVIEW_HEIGHT, viewBox: `0 0 ${PRESET_PREVIEW_WIDTH} ${PRESET_PREVIEW_HEIGHT}`, style: presetPreviewSvgStyle, "aria-hidden": "true", focusable: false, children: jsx_runtime_1.jsx("path", { d: path, fill: "none", stroke: colors_1.WHITE, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }) }) }));
|
|
400
400
|
};
|
|
401
401
|
const EasingEditor = ({ state, renderHeader }) => {
|
|
402
402
|
var _a, _b;
|
|
@@ -728,7 +728,7 @@ const EasingEditor = ({ state, renderHeader }) => {
|
|
|
728
728
|
const modeSwitcher = (jsx_runtime_1.jsx("div", { style: segmentedControlWrapper, children: jsx_runtime_1.jsx(SegmentedControl_1.SegmentedControl, { items: modeItems, needsWrapping: false }) }));
|
|
729
729
|
return (jsx_runtime_1.jsxs("div", { style: inlineContainer, children: [renderHeader ? renderHeader(modeItems) : null, jsx_runtime_1.jsx("div", { style: renderHeader ? inspectorPresetButtonsWrapper : presetButtonsWrapper, children: EDITOR_EASING_PRESETS.map((preset) => (jsx_runtime_1.jsx(EasingPresetButton, { currentEasing: currentEasing, disabled: disabled, onClick: applyPreset, preset: preset }, preset.id))) }), mode === 'bezier' ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
730
730
|
jsx_runtime_1.jsxs("svg", { ref: svgRef, width: SVG_WIDTH, height: SVG_HEIGHT, viewBox: `0 0 ${SVG_WIDTH} ${SVG_HEIGHT}`, style: svgStyle, "aria-label": "Bezier curve editor", children: [
|
|
731
|
-
jsx_runtime_1.jsx(EasingGraphScaffold, { labels: graphLabels }), jsx_runtime_1.jsx("line", { x1: startPoint.x, y1: startPoint.y, x2: firstHandle.x, y2: firstHandle.y, stroke:
|
|
731
|
+
jsx_runtime_1.jsx(EasingGraphScaffold, { labels: graphLabels }), jsx_runtime_1.jsx("line", { x1: startPoint.x, y1: startPoint.y, x2: firstHandle.x, y2: firstHandle.y, stroke: colors_1.WHITE_ALPHA_35, strokeWidth: 1 }), jsx_runtime_1.jsx("line", { x1: endPoint.x, y1: endPoint.y, x2: secondHandle.x, y2: secondHandle.y, stroke: colors_1.WHITE_ALPHA_35, strokeWidth: 1 }), jsx_runtime_1.jsx("path", { d: bezierPath, fill: "none", stroke: colors_1.BLUE, strokeWidth: 3 }), jsx_runtime_1.jsx("circle", { cx: startPoint.x, cy: startPoint.y, r: 4, fill: colors_1.WHITE }), jsx_runtime_1.jsx("circle", { cx: endPoint.x, cy: endPoint.y, r: 4, fill: colors_1.WHITE }), jsx_runtime_1.jsx("circle", { cx: firstHandle.x, cy: firstHandle.y, r: 6, fill: colors_1.WHITE, stroke: colors_1.BLUE, strokeWidth: 2, vectorEffect: "non-scaling-stroke", pointerEvents: disabled ? 'none' : 'all', cursor: activeHandle === 0 ? 'grabbing' : 'default', onPointerDown: (event) => onHandlePointerDown(0, event) }), jsx_runtime_1.jsx("circle", { cx: secondHandle.x, cy: secondHandle.y, r: 6, fill: colors_1.WHITE, stroke: colors_1.BLUE, strokeWidth: 2, vectorEffect: "non-scaling-stroke", pointerEvents: disabled ? 'none' : 'all', cursor: activeHandle === 1 ? 'grabbing' : 'default', onPointerDown: (event) => onHandlePointerDown(1, event) })
|
|
732
732
|
] }), modeSwitcher, jsx_runtime_1.jsxs("div", { style: coordinatesGrid, children: [
|
|
733
733
|
jsx_runtime_1.jsxs("div", { style: coordinateRow, children: [
|
|
734
734
|
jsx_runtime_1.jsx("div", { style: coordinateLabel, children: "X1" }), jsx_runtime_1.jsx("div", { style: coordinateInputWrapper, children: jsx_runtime_1.jsx(InputDragger_1.InputDragger, { type: "number", value: bezier[0], status: "ok", onValueChange: (value) => setCoordinate(0, 'x', value, false), onValueChangeEnd: (value) => setCoordinate(0, 'x', value, true), onTextChange: () => undefined, min: 0, max: 1, step: 0.01, formatter: formatNumber, rightAlign: false, style: numberInputStyle, snapToStep: false, disabled: disabled }) })
|
|
@@ -742,7 +742,7 @@ const EasingEditor = ({ state, renderHeader }) => {
|
|
|
742
742
|
] })
|
|
743
743
|
] })) : (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
744
744
|
jsx_runtime_1.jsxs("svg", { width: SVG_WIDTH, height: SVG_HEIGHT, viewBox: `0 0 ${SVG_WIDTH} ${SVG_HEIGHT}`, style: svgStyle, "aria-label": "Spring easing curve", children: [
|
|
745
|
-
jsx_runtime_1.jsx(EasingGraphScaffold, { labels: graphLabels }), jsx_runtime_1.jsx("path", { d: springPath, fill: "none", stroke: colors_1.BLUE, strokeWidth: 3 }), jsx_runtime_1.jsx("circle", { cx: xToSvg(0), cy: yToSvg(0), r: 4, fill:
|
|
745
|
+
jsx_runtime_1.jsx(EasingGraphScaffold, { labels: graphLabels }), jsx_runtime_1.jsx("path", { d: springPath, fill: "none", stroke: colors_1.BLUE, strokeWidth: 3 }), jsx_runtime_1.jsx("circle", { cx: xToSvg(0), cy: yToSvg(0), r: 4, fill: colors_1.WHITE }), jsx_runtime_1.jsx("circle", { cx: xToSvg(1), cy: yToSvg(1), r: 4, fill: colors_1.WHITE })
|
|
746
746
|
] }), modeSwitcher, jsx_runtime_1.jsxs("div", { style: coordinatesGrid, children: [
|
|
747
747
|
jsx_runtime_1.jsxs("div", { style: coordinateRow, children: [
|
|
748
748
|
jsx_runtime_1.jsx("div", { style: coordinateLabel, children: "Damping" }), jsx_runtime_1.jsx("div", { style: coordinateInputWrapper, children: jsx_runtime_1.jsx(InputDragger_1.InputDragger, { type: "number", value: spring.damping, status: "ok", onValueChange: (value) => setSpringNumber('damping', value, false), onValueChangeEnd: (value) => setSpringNumber('damping', value, true), onTextChange: () => undefined, min: SPRING_LIMITS.damping.min, max: SPRING_LIMITS.damping.max, step: SPRING_LIMITS.damping.step, formatter: springFormatters.damping, rightAlign: false, style: numberInputStyle, snapToStep: false, dragDecimalPlaces: SPRING_DECIMAL_PLACES.damping, disabled: disabled }) })
|
|
@@ -12,13 +12,13 @@ const width = {
|
|
|
12
12
|
};
|
|
13
13
|
const icon = {
|
|
14
14
|
height: 12,
|
|
15
|
-
filter:
|
|
15
|
+
filter: colors_1.LOOPED_INDICATOR_DROP_SHADOW,
|
|
16
16
|
};
|
|
17
17
|
const Icon = () => (jsx_runtime_1.jsx("svg", { viewBox: "0 0 512 512", style: icon, children: jsx_runtime_1.jsx("path", { fill: colors_1.LIGHT_COLOR, 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" }) }));
|
|
18
18
|
const verticalLine = {
|
|
19
19
|
height: '100%',
|
|
20
20
|
width: 1,
|
|
21
|
-
background:
|
|
21
|
+
background: colors_1.TRANSPARENT,
|
|
22
22
|
};
|
|
23
23
|
const centerContainer = {
|
|
24
24
|
justifyContent: 'center',
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MaxTimelineTracksReached = exports.MAX_TIMELINE_TRACKS_NOTICE_HEIGHT = exports.MAX_TIMELINE_TRACKS = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const studio_shared_1 = require("@remotion/studio-shared");
|
|
6
|
+
const colors_1 = require("../../helpers/colors");
|
|
6
7
|
const timeline_layout_1 = require("../../helpers/timeline-layout");
|
|
7
8
|
exports.MAX_TIMELINE_TRACKS = typeof process.env.MAX_TIMELINE_TRACKS === 'undefined' ||
|
|
8
9
|
process.env.MAX_TIMELINE_TRACKS === null
|
|
@@ -13,10 +14,10 @@ const container = {
|
|
|
13
14
|
height: exports.MAX_TIMELINE_TRACKS_NOTICE_HEIGHT,
|
|
14
15
|
display: 'flex',
|
|
15
16
|
alignItems: 'center',
|
|
16
|
-
color:
|
|
17
|
+
color: colors_1.WHITE_ALPHA_60,
|
|
17
18
|
fontFamily: 'sans-serif',
|
|
18
19
|
fontSize: 12,
|
|
19
|
-
backgroundColor:
|
|
20
|
+
backgroundColor: colors_1.WHITE_ALPHA_10,
|
|
20
21
|
paddingLeft: timeline_layout_1.TIMELINE_PADDING + 5,
|
|
21
22
|
};
|
|
22
23
|
const MaxTimelineTracksReached = () => {
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TimelineArrayField = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
const colors_1 = require("../../helpers/colors");
|
|
6
7
|
const TimelinePrimitiveFieldValue_1 = require("./TimelinePrimitiveFieldValue");
|
|
7
8
|
const container = {
|
|
8
9
|
display: 'flex',
|
|
@@ -19,17 +20,17 @@ const itemContainer = {
|
|
|
19
20
|
minWidth: 0,
|
|
20
21
|
};
|
|
21
22
|
const itemLabel = {
|
|
22
|
-
color:
|
|
23
|
+
color: colors_1.WHITE_ALPHA_45,
|
|
23
24
|
fontSize: 11,
|
|
24
25
|
fontVariantNumeric: 'tabular-nums',
|
|
25
26
|
width: 18,
|
|
26
27
|
textAlign: 'right',
|
|
27
28
|
};
|
|
28
29
|
const button = {
|
|
29
|
-
background:
|
|
30
|
-
border:
|
|
30
|
+
background: colors_1.WHITE_ALPHA_08,
|
|
31
|
+
border: colors_1.BORDER_WHITE_ALPHA_12,
|
|
31
32
|
borderRadius: 3,
|
|
32
|
-
color:
|
|
33
|
+
color: colors_1.WHITE,
|
|
33
34
|
cursor: 'pointer',
|
|
34
35
|
fontSize: 10,
|
|
35
36
|
height: 18,
|
|
@@ -66,7 +67,7 @@ const getFallbackItemValue = (field) => {
|
|
|
66
67
|
return [0.5, 0.5];
|
|
67
68
|
}
|
|
68
69
|
if (field.item.type === 'color') {
|
|
69
|
-
return
|
|
70
|
+
return colors_1.BLACK_FULL_HEX;
|
|
70
71
|
}
|
|
71
72
|
if (field.item.type === 'enum') {
|
|
72
73
|
const [firstVariant] = field.item.variants;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TimelineColorField = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
const colors_1 = require("../../helpers/colors");
|
|
6
7
|
const ColorPicker_1 = require("../ColorPicker/ColorPicker");
|
|
7
8
|
const containerStyle = {
|
|
8
9
|
display: 'flex',
|
|
@@ -16,7 +17,7 @@ const TimelineColorField = ({ field, effectiveValue, propStatus, onSave, onDragV
|
|
|
16
17
|
const currentValue = typeof effectiveValue === 'string'
|
|
17
18
|
? effectiveValue
|
|
18
19
|
: field.fieldSchema.type === 'color'
|
|
19
|
-
? ((_a = field.fieldSchema.default) !== null && _a !== void 0 ? _a :
|
|
20
|
+
? ((_a = field.fieldSchema.default) !== null && _a !== void 0 ? _a : colors_1.BLACK_HEX)
|
|
20
21
|
: '';
|
|
21
22
|
const onChange = (0, react_1.useCallback)((next) => {
|
|
22
23
|
onDragValueChange(next);
|
|
@@ -5,6 +5,7 @@ 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 colors_1 = require("../../helpers/colors");
|
|
8
9
|
const timeline_layout_1 = require("../../helpers/timeline-layout");
|
|
9
10
|
const call_api_1 = require("../call-api");
|
|
10
11
|
const ContextMenu_1 = require("../ContextMenu");
|
|
@@ -18,7 +19,7 @@ const EFFECT_REORDER_MIME_TYPE = 'application/remotion-effect-reorder';
|
|
|
18
19
|
let currentEffectDrag = null;
|
|
19
20
|
const rowLabel = {
|
|
20
21
|
fontSize: 12,
|
|
21
|
-
color:
|
|
22
|
+
color: colors_1.WHITE_ALPHA_80,
|
|
22
23
|
userSelect: 'none',
|
|
23
24
|
};
|
|
24
25
|
const rowStyle = {
|
|
@@ -29,7 +30,7 @@ const reorderWrapper = {
|
|
|
29
30
|
position: 'relative',
|
|
30
31
|
};
|
|
31
32
|
const reorderLineBase = {
|
|
32
|
-
backgroundColor:
|
|
33
|
+
backgroundColor: colors_1.TIMELINE_BLUE,
|
|
33
34
|
height: 2,
|
|
34
35
|
left: 0,
|
|
35
36
|
pointerEvents: 'none',
|
|
@@ -174,7 +174,7 @@ const TimelineEffectPropValue = ({ field, nodePath, validatedLocation, sourceFra
|
|
|
174
174
|
}
|
|
175
175
|
if (effectStatus.type === 'cannot-update-effect') {
|
|
176
176
|
if (effectStatus.reason === 'computed') {
|
|
177
|
-
return jsx_runtime_1.jsx(TimelineSchemaField_1.UnsupportedStatus, { label: "computed" });
|
|
177
|
+
return (jsx_runtime_1.jsx(TimelineSchemaField_1.UnsupportedStatus, { label: "computed", fixHref: TimelineSchemaField_1.TIMELINE_COMPUTED_EFFECT_FIX_LINK }));
|
|
178
178
|
}
|
|
179
179
|
if (effectStatus.reason === 'not-call-expression') {
|
|
180
180
|
return jsx_runtime_1.jsx(TimelineSchemaField_1.UnsupportedStatus, { label: "not inline" });
|
|
@@ -200,7 +200,7 @@ const TimelineEffectPropValue = ({ field, nodePath, validatedLocation, sourceFra
|
|
|
200
200
|
return (jsx_runtime_1.jsx(TimelineKeyframedValue_1.TimelineKeyframedValue, { field: field, propStatus: propStatus, sourceFrame: sourceFrame, dragOverrideValue: dragOverrideValue, onSave: onSaveKeyframed, onDragValueChange: onDragValueChange, onDragEnd: onDragEnd, scaleLockNodePath: nodePath }));
|
|
201
201
|
}
|
|
202
202
|
if (propStatus.status === 'computed') {
|
|
203
|
-
return jsx_runtime_1.jsx(TimelineSchemaField_1.UnsupportedStatus, { label: (0, get_timeline_keyframes_1.getComputedStatusLabel)(propStatus) });
|
|
203
|
+
return (jsx_runtime_1.jsx(TimelineSchemaField_1.UnsupportedStatus, { label: (0, get_timeline_keyframes_1.getComputedStatusLabel)(propStatus), fixHref: TimelineSchemaField_1.TIMELINE_COMPUTED_EFFECT_FIX_LINK }));
|
|
204
204
|
}
|
|
205
205
|
const effectiveValue = remotion_1.Internals.getEffectiveVisualModeValue({
|
|
206
206
|
propStatus,
|
|
@@ -36,10 +36,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.TimelineExpandArrowSpacer = exports.TimelineExpandArrowButton = void 0;
|
|
37
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
38
|
const react_1 = __importStar(require("react"));
|
|
39
|
+
const colors_1 = require("../../helpers/colors");
|
|
39
40
|
const arrowButton = {
|
|
40
41
|
background: 'none',
|
|
41
42
|
border: 'none',
|
|
42
|
-
color:
|
|
43
|
+
color: colors_1.WHITE,
|
|
43
44
|
cursor: 'pointer',
|
|
44
45
|
padding: 0,
|
|
45
46
|
display: 'flex',
|
|
@@ -75,7 +76,7 @@ const TimelineExpandArrowButton = ({ isExpanded, onClick, label, disabled = fals
|
|
|
75
76
|
opacity: disabled ? 0.5 : 1,
|
|
76
77
|
};
|
|
77
78
|
}, [isExpanded, disabled]);
|
|
78
|
-
return (jsx_runtime_1.jsx("button", { type: "button", style: style, onClick: handleClick, onDoubleClick: stopPropagation, onPointerDown: stopPropagation, disabled: disabled, "aria-expanded": isExpanded, "aria-label": `${isExpanded ? 'Collapse' : 'Expand'} ${label}`, children: jsx_runtime_1.jsx("svg", { width: "12", height: "12", viewBox: "0 0 8 8", style: svgStyle, children: jsx_runtime_1.jsx("path", { d: "M2 1L6 4L2 7Z", fill:
|
|
79
|
+
return (jsx_runtime_1.jsx("button", { type: "button", style: style, onClick: handleClick, onDoubleClick: stopPropagation, onPointerDown: stopPropagation, disabled: disabled, "aria-expanded": isExpanded, "aria-label": `${isExpanded ? 'Collapse' : 'Expand'} ${label}`, children: jsx_runtime_1.jsx("svg", { width: "12", height: "12", viewBox: "0 0 8 8", style: svgStyle, children: jsx_runtime_1.jsx("path", { d: "M2 1L6 4L2 7Z", fill: colors_1.LIGHT_GRAY }) }) }));
|
|
79
80
|
};
|
|
80
81
|
exports.TimelineExpandArrowButton = TimelineExpandArrowButton;
|
|
81
82
|
const TimelineExpandArrowSpacer = () => {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.TimelineExpandedRow = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const colors_1 = require("../../helpers/colors");
|
|
9
10
|
const timeline_layout_1 = require("../../helpers/timeline-layout");
|
|
10
11
|
const timeline_row_layout_1 = require("./timeline-row-layout");
|
|
11
12
|
const TimelineEffectItem_1 = require("./TimelineEffectItem");
|
|
@@ -17,7 +18,7 @@ const TimelineSelection_1 = require("./TimelineSelection");
|
|
|
17
18
|
const TimelineSequencePropItem_1 = require("./TimelineSequencePropItem");
|
|
18
19
|
const rowLabel = {
|
|
19
20
|
fontSize: 12,
|
|
20
|
-
color:
|
|
21
|
+
color: colors_1.WHITE_ALPHA_80,
|
|
21
22
|
userSelect: 'none',
|
|
22
23
|
};
|
|
23
24
|
const TimelineExpandedRow = ({ node, depth, nestedDepth, rowDepthBase, getIsExpanded, toggleTrack, validatedLocation, nodePath, schema, keyframeDisplayOffset, keyframeControlsMode, }) => {
|
|
@@ -41,7 +41,7 @@ const timeline_layout_1 = require("../../helpers/timeline-layout");
|
|
|
41
41
|
const TimelineExpandedRow_1 = require("./TimelineExpandedRow");
|
|
42
42
|
const use_timeline_expanded_tree_1 = require("./use-timeline-expanded-tree");
|
|
43
43
|
const expandedSectionBase = {
|
|
44
|
-
color:
|
|
44
|
+
color: colors_1.WHITE,
|
|
45
45
|
fontFamily: 'Arial, Helvetica, sans-serif',
|
|
46
46
|
fontSize: 12,
|
|
47
47
|
display: 'flex',
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TimelineFieldLabel = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
const colors_1 = require("../../helpers/colors");
|
|
6
7
|
const timeline_field_row_layout_1 = require("./timeline-field-row-layout");
|
|
7
8
|
const TimelineSelection_1 = require("./TimelineSelection");
|
|
8
9
|
const fieldNameBase = {
|
|
9
10
|
fontSize: 12,
|
|
10
|
-
color:
|
|
11
|
+
color: colors_1.WHITE_ALPHA_80,
|
|
11
12
|
userSelect: 'none',
|
|
12
13
|
whiteSpace: 'nowrap',
|
|
13
14
|
overflow: 'hidden',
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CanUpdateSequencePropStatusStatic } from 'remotion';
|
|
3
|
+
import type { SchemaFieldInfo, TimelineFieldOnDragValueChange, TimelineFieldOnSave } from '../../helpers/timeline-layout';
|
|
4
|
+
export declare const TimelineFontFamilyField: React.FC<{
|
|
5
|
+
readonly field: SchemaFieldInfo;
|
|
6
|
+
readonly propStatus: CanUpdateSequencePropStatusStatic;
|
|
7
|
+
readonly effectiveValue: unknown;
|
|
8
|
+
readonly onSave: TimelineFieldOnSave;
|
|
9
|
+
readonly onDragValueChange: TimelineFieldOnDragValueChange;
|
|
10
|
+
readonly onDragEnd: () => void;
|
|
11
|
+
}>;
|