@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
|
@@ -25,8 +25,8 @@ const InfoTooltip = ({ children, arrowDirection, backgroundColor }) => {
|
|
|
25
25
|
return {
|
|
26
26
|
boxShadow: arrowDirection === 'down' ? styles_1.SHADOW_TOWARDS_TOP : styles_1.SHADOW_TOWARDS_BOTTOM,
|
|
27
27
|
background: backgroundColor,
|
|
28
|
-
color:
|
|
29
|
-
border: '0.5px solid ' + colors_1.
|
|
28
|
+
color: colors_1.WHITE,
|
|
29
|
+
border: '0.5px solid ' + colors_1.BLACK_HEX,
|
|
30
30
|
maxHeight: 200,
|
|
31
31
|
overflow: 'auto',
|
|
32
32
|
borderRadius: '4px',
|
|
@@ -37,6 +37,6 @@ const InfoTooltip = ({ children, arrowDirection, backgroundColor }) => {
|
|
|
37
37
|
flexDirection: arrowDirection === 'up' ? 'column-reverse' : 'column',
|
|
38
38
|
alignItems: 'flex-start',
|
|
39
39
|
}, children: [
|
|
40
|
-
jsx_runtime_1.jsx("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: children }), arrowDirection === 'down' ? (jsx_runtime_1.jsx("svg", { viewBox: "0 0 14 7", style: arrowDown, children: jsx_runtime_1.jsx("path", { d: `M 14 0 L 7 7 L 0 0`, fill: backgroundColor, strokeLinecap: "butt", stroke: colors_1.
|
|
40
|
+
jsx_runtime_1.jsx("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: children }), arrowDirection === 'down' ? (jsx_runtime_1.jsx("svg", { viewBox: "0 0 14 7", style: arrowDown, children: jsx_runtime_1.jsx("path", { d: `M 14 0 L 7 7 L 0 0`, fill: backgroundColor, strokeLinecap: "butt", stroke: colors_1.BLACK_HEX, strokeWidth: 0.5 }) })) : null, arrowDirection === 'up' ? (jsx_runtime_1.jsx("svg", { viewBox: "0 0 14 7", style: arrowUp, children: jsx_runtime_1.jsx("path", { d: `M 0 7 L 7 0 L 14 7`, fill: backgroundColor, strokeLinecap: "butt", stroke: colors_1.BLACK_HEX, strokeWidth: 0.5 }) })) : null] }));
|
|
41
41
|
};
|
|
42
42
|
exports.InfoTooltip = InfoTooltip;
|
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.InlineEyeButton = 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 InlineAction_1 = require("../InlineAction");
|
|
7
8
|
const clearIcon = {
|
|
8
9
|
height: 14,
|
|
9
|
-
color:
|
|
10
|
+
color: colors_1.CURRENT_COLOR,
|
|
10
11
|
};
|
|
11
12
|
const InlineEyeButton = ({ onClick, enabled }) => {
|
|
12
13
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.InlineRemoveButton = 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 InlineAction_1 = require("../InlineAction");
|
|
7
8
|
const clearIcon = {
|
|
8
9
|
height: 14,
|
|
9
|
-
color:
|
|
10
|
+
color: colors_1.CURRENT_COLOR,
|
|
10
11
|
};
|
|
11
12
|
const InlineRemoveButton = ({ onClick }) => {
|
|
12
13
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const colors_1 = require("../../helpers/colors");
|
|
7
7
|
const container = {
|
|
8
|
-
borderColor:
|
|
8
|
+
borderColor: colors_1.BLACK,
|
|
9
9
|
borderStyle: 'solid',
|
|
10
10
|
borderWidth: '2px',
|
|
11
11
|
height: 39,
|
|
@@ -27,7 +27,7 @@ const description = {
|
|
|
27
27
|
const link = {
|
|
28
28
|
fontSize: 14,
|
|
29
29
|
maxWidth: 200,
|
|
30
|
-
color:
|
|
30
|
+
color: colors_1.BLUE,
|
|
31
31
|
wordWrap: 'break-word',
|
|
32
32
|
textDecoration: 'none',
|
|
33
33
|
};
|
|
@@ -41,7 +41,7 @@ const infoRow = {
|
|
|
41
41
|
const infoRowLabel = {
|
|
42
42
|
width: 150,
|
|
43
43
|
fontSize: 14,
|
|
44
|
-
color:
|
|
44
|
+
color: colors_1.WHITE,
|
|
45
45
|
};
|
|
46
46
|
const flexSpacer = {
|
|
47
47
|
display: 'flex',
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RenderModalHr = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const colors_1 = require("../../helpers/colors");
|
|
5
6
|
const hrStyle = {
|
|
6
7
|
margin: '0 0 0 0',
|
|
7
8
|
padding: '0 0 0 0',
|
|
8
9
|
border: 'none',
|
|
9
|
-
borderTop:
|
|
10
|
+
borderTop: colors_1.BORDER_BLACK,
|
|
10
11
|
marginRight: 16,
|
|
11
12
|
marginLeft: 16,
|
|
12
13
|
marginTop: 8,
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RenderStatusModal = 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 retry_payload_1 = require("../../helpers/retry-payload");
|
|
7
8
|
const modals_1 = require("../../state/modals");
|
|
8
9
|
const Button_1 = require("../Button");
|
|
@@ -22,7 +23,7 @@ const container = {
|
|
|
22
23
|
paddingTop: 0,
|
|
23
24
|
};
|
|
24
25
|
const codeBlock = {
|
|
25
|
-
backgroundColor:
|
|
26
|
+
backgroundColor: colors_1.RENDER_STATUS_BACKGROUND,
|
|
26
27
|
whiteSpace: 'pre',
|
|
27
28
|
padding: 12,
|
|
28
29
|
borderRadius: 4,
|
|
@@ -23,11 +23,7 @@ const SchemaLabel = ({ jsonPath, onRemove, valid, suffix, handleClick }) => {
|
|
|
23
23
|
return {
|
|
24
24
|
fontFamily: 'monospace',
|
|
25
25
|
fontSize: 12,
|
|
26
|
-
color: valid
|
|
27
|
-
? clickableButtonHovered
|
|
28
|
-
? 'white'
|
|
29
|
-
: colors_1.LIGHT_TEXT
|
|
30
|
-
: colors_1.FAIL_COLOR,
|
|
26
|
+
color: valid ? (clickableButtonHovered ? colors_1.WHITE : colors_1.LIGHT_TEXT) : colors_1.FAIL_COLOR,
|
|
31
27
|
lineHeight: '20px',
|
|
32
28
|
};
|
|
33
29
|
}, [clickableButtonHovered, valid]);
|
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SchemaResetButton = 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 InlineAction_1 = require("../../InlineAction");
|
|
7
8
|
const icon = {
|
|
8
9
|
height: 14,
|
|
9
|
-
color:
|
|
10
|
+
color: colors_1.CURRENT_COLOR,
|
|
10
11
|
};
|
|
11
12
|
const SchemaResetButton = ({ onClick }) => {
|
|
12
13
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
@@ -89,7 +89,7 @@ const SchemaArrayItemSeparationLine = ({ onChange, index, schema, isLast, showAd
|
|
|
89
89
|
display: 'flex',
|
|
90
90
|
flexDirection: 'column',
|
|
91
91
|
alignItems: 'flex-end',
|
|
92
|
-
}, children: [showAddButton && (jsx_runtime_1.jsx("div", { style: dynamicAddButtonStyle, onPointerEnter: onOuterMouseEnter, onPointerLeave: onOuterMouseLeave, children: jsx_runtime_1.jsx("div", { onClick: onAdd, style: inner, onPointerEnter: onInnerMouseEnter, onPointerLeave: onInnerMouseLeave, children: jsx_runtime_1.jsx(plus_1.Plus, { color: innerHovered ?
|
|
92
|
+
}, children: [showAddButton && (jsx_runtime_1.jsx("div", { style: dynamicAddButtonStyle, onPointerEnter: onOuterMouseEnter, onPointerLeave: onOuterMouseLeave, children: jsx_runtime_1.jsx("div", { onClick: onAdd, style: inner, onPointerEnter: onInnerMouseEnter, onPointerLeave: onInnerMouseLeave, children: jsx_runtime_1.jsx(plus_1.Plus, { color: innerHovered ? colors_1.WHITE : colors_1.LIGHT_TEXT, style: {
|
|
93
93
|
display: 'block',
|
|
94
94
|
height: exports.VERTICAL_GUIDE_HEIGHT / 2,
|
|
95
95
|
} }) }) })), jsx_runtime_1.jsx("div", { style: arraySeparationLine })
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SchemaVerticalGuide = 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 SchemaSeparationLine_1 = require("./SchemaSeparationLine");
|
|
7
8
|
const flex = {
|
|
8
9
|
flex: 1,
|
|
@@ -22,7 +23,7 @@ const SchemaVerticalGuide = ({ isRoot, children }) => {
|
|
|
22
23
|
: {
|
|
23
24
|
height: `calc(100% - ${SchemaSeparationLine_1.VERTICAL_GUIDE_HEIGHT / 2}px)`,
|
|
24
25
|
width: 1,
|
|
25
|
-
background:
|
|
26
|
+
background: colors_1.LINE_COLOR,
|
|
26
27
|
position: 'absolute',
|
|
27
28
|
};
|
|
28
29
|
}, [isRoot]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createZodValues = void 0;
|
|
4
|
+
const colors_1 = require("../../../helpers/colors");
|
|
4
5
|
const zod_schema_type_1 = require("./zod-schema-type");
|
|
5
6
|
const createZodValues = (schema, zodRuntime, zodTypes) => {
|
|
6
7
|
var _a;
|
|
@@ -13,7 +14,7 @@ const createZodValues = (schema, zodRuntime, zodTypes) => {
|
|
|
13
14
|
const description = (0, zod_schema_type_1.getZodSchemaDescription)(schema);
|
|
14
15
|
if (zodTypes) {
|
|
15
16
|
if (description === zodTypes.ZodZypesInternals.REMOTION_COLOR_BRAND) {
|
|
16
|
-
return
|
|
17
|
+
return colors_1.WHITE_FULL_HEX;
|
|
17
18
|
}
|
|
18
19
|
if (description === zodTypes.ZodZypesInternals.REMOTION_TEXTAREA_BRAND) {
|
|
19
20
|
return '';
|
|
@@ -1000,7 +1000,7 @@ const RenderModal = ({ readOnlyStudio, initialFrame, initialVideoImageFormat, in
|
|
|
1000
1000
|
"Audio"] })) : null, shownTabs.includes('gif') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'gif', onClick: () => setTab('gif'), children: [
|
|
1001
1001
|
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(gif_1.GifIcon, { style: render_modals_1.icon }) }),
|
|
1002
1002
|
"GIF"] })) : null, shownTabs.includes('encoding') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'encoding', onClick: () => setTab('encoding'), children: [
|
|
1003
|
-
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(video_1.FilmIcon, { style: render_modals_1.icon, color:
|
|
1003
|
+
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(video_1.FilmIcon, { style: render_modals_1.icon, color: colors_1.CURRENT_COLOR_LOWERCASE }) }),
|
|
1004
1004
|
"Encoding"] })) : null, shownTabs.includes('environment') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'environment', onClick: () => setTab('environment'), children: [
|
|
1005
1005
|
jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(data_1.DataIcon, { style: render_modals_1.icon }) }),
|
|
1006
1006
|
"Environment"] })) : null, shownTabs.includes('advanced') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'advanced', onClick: () => setTab('advanced'), children: [
|
|
@@ -11,7 +11,7 @@ const style = {
|
|
|
11
11
|
display: 'inline-flex',
|
|
12
12
|
justifyContent: 'center',
|
|
13
13
|
alignItems: 'center',
|
|
14
|
-
backgroundColor:
|
|
14
|
+
backgroundColor: colors_1.TRANSPARENT,
|
|
15
15
|
color: colors_1.LIGHT_TEXT,
|
|
16
16
|
borderStyle: 'solid',
|
|
17
17
|
borderWidth: 1,
|
|
@@ -50,11 +50,9 @@ const WarningIndicatorButton = ({ setShowWarning, showWarning, warningCount, siz
|
|
|
50
50
|
const buttonStyle = (0, react_1.useMemo)(() => {
|
|
51
51
|
return {
|
|
52
52
|
...(size === 'compact' ? compactStyle : style),
|
|
53
|
-
backgroundColor: showWarning ? colors_1.INPUT_BACKGROUND :
|
|
54
|
-
borderColor: showWarning
|
|
55
|
-
|
|
56
|
-
: colors_1.INPUT_BORDER_COLOR_UNHOVERED,
|
|
57
|
-
color: showWarning ? 'white' : colors_1.LIGHT_TEXT,
|
|
53
|
+
backgroundColor: showWarning ? colors_1.INPUT_BACKGROUND : colors_1.TRANSPARENT,
|
|
54
|
+
borderColor: showWarning ? colors_1.WHITE_ALPHA_05 : colors_1.BLACK_ALPHA_60,
|
|
55
|
+
color: showWarning ? colors_1.WHITE : colors_1.LIGHT_TEXT,
|
|
58
56
|
};
|
|
59
57
|
}, [showWarning, size]);
|
|
60
58
|
return (jsx_runtime_1.jsxs("button", { type: "button", style: buttonStyle, onClick: onClick, children: [
|
|
@@ -4,6 +4,7 @@ exports.WebRenderModalAudio = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const web_renderer_1 = require("@remotion/web-renderer");
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
+
const colors_1 = require("../../helpers/colors");
|
|
7
8
|
const Checkmark_1 = require("../../icons/Checkmark");
|
|
8
9
|
const layout_1 = require("../layout");
|
|
9
10
|
const is_menu_item_1 = require("../Menu/is-menu-item");
|
|
@@ -17,8 +18,8 @@ const container = {
|
|
|
17
18
|
overflowY: 'auto',
|
|
18
19
|
};
|
|
19
20
|
const fallbackNoticeStyle = {
|
|
20
|
-
backgroundColor:
|
|
21
|
-
border:
|
|
21
|
+
backgroundColor: colors_1.INFO_BLUE_BACKGROUND,
|
|
22
|
+
border: colors_1.BORDER_INFO_BLUE,
|
|
22
23
|
borderRadius: 4,
|
|
23
24
|
padding: '8px 12px',
|
|
24
25
|
marginLeft: 16,
|
|
@@ -26,7 +27,7 @@ const fallbackNoticeStyle = {
|
|
|
26
27
|
marginTop: 8,
|
|
27
28
|
fontSize: 13,
|
|
28
29
|
lineHeight: 1.4,
|
|
29
|
-
color:
|
|
30
|
+
color: colors_1.INFO_BLUE,
|
|
30
31
|
};
|
|
31
32
|
const humanReadableWebAudioCodec = (audioCodec) => {
|
|
32
33
|
switch (audioCodec) {
|
|
@@ -33,14 +33,14 @@ const paddedDescriptionStyle = {
|
|
|
33
33
|
fontSize: 14,
|
|
34
34
|
fontFamily: 'sans-serif',
|
|
35
35
|
padding: 9,
|
|
36
|
-
border: '1px solid ' + colors_1.
|
|
36
|
+
border: '1px solid ' + colors_1.BLACK_ALPHA_60,
|
|
37
37
|
borderRadius: 8,
|
|
38
38
|
lineHeight: 1.5,
|
|
39
39
|
marginLeft: 16,
|
|
40
40
|
marginRight: 16,
|
|
41
41
|
};
|
|
42
42
|
const descriptionLink = {
|
|
43
|
-
color:
|
|
43
|
+
color: colors_1.WHITE,
|
|
44
44
|
fontSize: 14,
|
|
45
45
|
};
|
|
46
46
|
const checkboxLabel = {
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebRenderModalPicture = 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 Checkbox_1 = require("../Checkbox");
|
|
7
8
|
const ComboBox_1 = require("../NewComposition/ComboBox");
|
|
8
9
|
const layout_1 = require("./layout");
|
|
@@ -22,7 +23,7 @@ const WebRenderModalPicture = ({ renderMode, videoBitrate, setVideoBitrate, keyf
|
|
|
22
23
|
jsx_runtime_1.jsxs("div", { style: layout_1.optionRow, children: [
|
|
23
24
|
jsx_runtime_1.jsx("div", { style: layout_1.label, children: "Quality" }), jsx_runtime_1.jsx("div", { style: layout_1.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { values: qualityOptions, selectedId: videoBitrate, title: "Quality" }) })
|
|
24
25
|
] }), jsx_runtime_1.jsx(NumberSetting_1.NumberSetting, { name: "Keyframe Interval", formatter: (v) => `${v}s`, min: 1, max: 300, step: 1, value: keyframeIntervalInSeconds, onValueChanged: setKeyframeIntervalInSeconds }), jsx_runtime_1.jsxs("div", { style: layout_1.optionRow, children: [
|
|
25
|
-
jsx_runtime_1.jsx("div", { style: layout_1.label, children: "Transparent" }), jsx_runtime_1.jsx("div", { style: layout_1.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: transparent, onChange: onTransparentChanged, name:
|
|
26
|
+
jsx_runtime_1.jsx("div", { style: layout_1.label, children: "Transparent" }), jsx_runtime_1.jsx("div", { style: layout_1.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: transparent, onChange: onTransparentChanged, name: colors_1.TRANSPARENT }) })
|
|
26
27
|
] })
|
|
27
28
|
] }))] }));
|
|
28
29
|
};
|
|
@@ -15,7 +15,7 @@ exports.container = {
|
|
|
15
15
|
flexDirection: 'row',
|
|
16
16
|
alignItems: 'center',
|
|
17
17
|
padding: '12px 16px',
|
|
18
|
-
borderBottom:
|
|
18
|
+
borderBottom: colors_1.BORDER_BLACK,
|
|
19
19
|
};
|
|
20
20
|
exports.optionsPanel = {
|
|
21
21
|
display: 'flex',
|
|
@@ -51,12 +51,12 @@ exports.iconContainer = {
|
|
|
51
51
|
alignItems: 'center',
|
|
52
52
|
};
|
|
53
53
|
exports.icon = {
|
|
54
|
-
color:
|
|
54
|
+
color: colors_1.CURRENT_COLOR_LOWERCASE,
|
|
55
55
|
height: 20,
|
|
56
56
|
};
|
|
57
57
|
exports.buttonStyle = {
|
|
58
58
|
backgroundColor: colors_1.BLUE,
|
|
59
|
-
color:
|
|
59
|
+
color: colors_1.WHITE,
|
|
60
60
|
};
|
|
61
61
|
exports.flexer = {
|
|
62
62
|
flex: 1,
|
|
@@ -10,7 +10,7 @@ const get_preview_file_type_1 = require("../helpers/get-preview-file-type");
|
|
|
10
10
|
const FilePreview_1 = require("./FilePreview");
|
|
11
11
|
const msgStyle = {
|
|
12
12
|
fontSize: 13,
|
|
13
|
-
color:
|
|
13
|
+
color: colors_1.WHITE,
|
|
14
14
|
fontFamily: 'sans-serif',
|
|
15
15
|
display: 'flex',
|
|
16
16
|
justifyContent: 'center',
|
|
@@ -3,13 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RenderQueueCopyToClipboard = exports.supportsCopyingToClipboard = 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 get_asset_metadata_1 = require("../../helpers/get-asset-metadata");
|
|
7
8
|
const clipboard_1 = require("../../icons/clipboard");
|
|
8
9
|
const InlineAction_1 = require("../InlineAction");
|
|
9
10
|
const NotificationCenter_1 = require("../Notifications/NotificationCenter");
|
|
10
11
|
const revealIconStyle = {
|
|
11
12
|
height: 12,
|
|
12
|
-
color:
|
|
13
|
+
color: colors_1.CURRENT_COLOR,
|
|
13
14
|
};
|
|
14
15
|
const supportsCopyingToClipboard = (job) => {
|
|
15
16
|
if (job.status !== 'done') {
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RenderQueueDownloadItem = 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 InlineAction_1 = require("../InlineAction");
|
|
7
8
|
const NotificationCenter_1 = require("../Notifications/NotificationCenter");
|
|
8
9
|
const ClientRenderQueueProcessor_1 = require("./ClientRenderQueueProcessor");
|
|
@@ -24,7 +25,7 @@ const RenderQueueDownloadItem = ({ job }) => {
|
|
|
24
25
|
const icon = (0, react_1.useMemo)(() => {
|
|
25
26
|
return {
|
|
26
27
|
height: 12,
|
|
27
|
-
color:
|
|
28
|
+
color: colors_1.CURRENT_COLOR,
|
|
28
29
|
};
|
|
29
30
|
}, []);
|
|
30
31
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RenderQueueCancelButton = 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 InlineAction_1 = require("../InlineAction");
|
|
7
8
|
const NotificationCenter_1 = require("../Notifications/NotificationCenter");
|
|
8
9
|
const actions_1 = require("./actions");
|
|
@@ -23,7 +24,7 @@ const RenderQueueCancelButton = ({ job }) => {
|
|
|
23
24
|
const icon = (0, react_1.useMemo)(() => {
|
|
24
25
|
return {
|
|
25
26
|
height: 14,
|
|
26
|
-
color:
|
|
27
|
+
color: colors_1.CURRENT_COLOR,
|
|
27
28
|
};
|
|
28
29
|
}, []);
|
|
29
30
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
@@ -75,7 +75,7 @@ const RenderQueueItemStatus = ({ job }) => {
|
|
|
75
75
|
return (jsx_runtime_1.jsx("svg", { style: iconStyle, viewBox: "0 0 512 512", children: jsx_runtime_1.jsx("path", { fill: colors_1.LIGHT_TEXT, d: "M256 512C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256s-114.6 256-256 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z" }) }));
|
|
76
76
|
}
|
|
77
77
|
if (job.status === 'done') {
|
|
78
|
-
return (jsx_runtime_1.jsx("button", { type: "button", style: invisibleStyle, onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, onClick: onClick, children: jsx_runtime_1.jsx("svg", { style: iconStyle, viewBox: "0 0 512 512", children: jsx_runtime_1.jsx("path", { fill: hovered ?
|
|
78
|
+
return (jsx_runtime_1.jsx("button", { type: "button", style: invisibleStyle, onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, onClick: onClick, children: jsx_runtime_1.jsx("svg", { style: iconStyle, viewBox: "0 0 512 512", children: jsx_runtime_1.jsx("path", { fill: hovered ? colors_1.WHITE : colors_1.LIGHT_TEXT, d: "M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM369 209L241 337l-17 17-17-17-64-64-17-17L160 222.1l17 17 47 47L335 175l17-17L385.9 192l-17 17z" }) }) }));
|
|
79
79
|
}
|
|
80
80
|
if (job.status === 'running') {
|
|
81
81
|
let progressValue;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RenderQueueOpenInFinderItem = 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 folder_1 = require("../../icons/folder");
|
|
7
8
|
const InlineAction_1 = require("../InlineAction");
|
|
8
9
|
const NotificationCenter_1 = require("../Notifications/NotificationCenter");
|
|
@@ -17,7 +18,7 @@ const RenderQueueOpenInFinderItem = ({ job }) => {
|
|
|
17
18
|
const icon = (0, react_1.useMemo)(() => {
|
|
18
19
|
return {
|
|
19
20
|
height: 12,
|
|
20
|
-
color:
|
|
21
|
+
color: colors_1.CURRENT_COLOR,
|
|
21
22
|
};
|
|
22
23
|
}, []);
|
|
23
24
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
@@ -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 save_render_output_1 = require("../../api/save-render-output");
|
|
8
|
+
const colors_1 = require("../../helpers/colors");
|
|
8
9
|
const InlineAction_1 = require("../InlineAction");
|
|
9
10
|
const NotificationCenter_1 = require("../Notifications/NotificationCenter");
|
|
10
11
|
const actions_1 = require("./actions");
|
|
@@ -39,7 +40,7 @@ const RenderQueueRemoveItem = ({ job }) => {
|
|
|
39
40
|
const icon = (0, react_1.useMemo)(() => {
|
|
40
41
|
return {
|
|
41
42
|
height: 16,
|
|
42
|
-
color:
|
|
43
|
+
color: colors_1.CURRENT_COLOR,
|
|
43
44
|
};
|
|
44
45
|
}, []);
|
|
45
46
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RenderQueueRepeatItem = 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 mobile_layout_1 = require("../../helpers/mobile-layout");
|
|
7
8
|
const retry_payload_1 = require("../../helpers/retry-payload");
|
|
8
9
|
const modals_1 = require("../../state/modals");
|
|
@@ -37,7 +38,7 @@ const RenderQueueRepeatItem = ({ job }) => {
|
|
|
37
38
|
const icon = (0, react_1.useMemo)(() => {
|
|
38
39
|
return {
|
|
39
40
|
height: 12,
|
|
40
|
-
color:
|
|
41
|
+
color: colors_1.CURRENT_COLOR,
|
|
41
42
|
};
|
|
42
43
|
}, []);
|
|
43
44
|
const renderAction = (0, react_1.useCallback)((color) => {
|
|
@@ -45,7 +45,7 @@ const is_menu_item_1 = require("../Menu/is-menu-item");
|
|
|
45
45
|
const context_1 = require("./context");
|
|
46
46
|
const RenderQueueItem_1 = require("./RenderQueueItem");
|
|
47
47
|
const separatorStyle = {
|
|
48
|
-
borderBottom: `1px solid ${colors_1.
|
|
48
|
+
borderBottom: `1px solid ${colors_1.BLACK_HEX}`,
|
|
49
49
|
};
|
|
50
50
|
const errorExplanation = {
|
|
51
51
|
fontSize: 14,
|
|
@@ -31,8 +31,8 @@ const RendersTab = ({ selected, onClick }) => {
|
|
|
31
31
|
const badgeStyle = (0, react_1.useMemo)(() => {
|
|
32
32
|
return {
|
|
33
33
|
...badge,
|
|
34
|
-
backgroundColor: failedJobs > 0 ? colors_1.FAIL_COLOR :
|
|
35
|
-
color: failedJobs > 0 ?
|
|
34
|
+
backgroundColor: failedJobs > 0 ? colors_1.FAIL_COLOR : colors_1.TRANSPARENT,
|
|
35
|
+
color: failedJobs > 0 ? colors_1.WHITE : colors_1.LIGHT_TEXT,
|
|
36
36
|
borderWidth: failedJobs > 0 ? 0 : 1,
|
|
37
37
|
borderStyle: 'solid',
|
|
38
38
|
borderColor: colors_1.LIGHT_TEXT,
|
|
@@ -9,7 +9,7 @@ const container = {
|
|
|
9
9
|
display: 'flex',
|
|
10
10
|
flexDirection: 'row',
|
|
11
11
|
overflow: 'hidden',
|
|
12
|
-
border: '1px solid ' + colors_1.
|
|
12
|
+
border: '1px solid ' + colors_1.BLACK_ALPHA_60,
|
|
13
13
|
flexWrap: 'wrap',
|
|
14
14
|
maxWidth: 350,
|
|
15
15
|
justifyContent: 'flex-end',
|
|
@@ -63,8 +63,8 @@ const Item = ({ selected, onClick, children, size }) => {
|
|
|
63
63
|
const itemStyle = (0, react_1.useMemo)(() => {
|
|
64
64
|
return {
|
|
65
65
|
...(size === 'compact' ? compactItem : item),
|
|
66
|
-
backgroundColor: selected ? colors_1.INPUT_BACKGROUND :
|
|
67
|
-
color: selected ?
|
|
66
|
+
backgroundColor: selected ? colors_1.INPUT_BACKGROUND : colors_1.TRANSPARENT,
|
|
67
|
+
color: selected ? colors_1.WHITE : hovered ? colors_1.WHITE : colors_1.LIGHT_TEXT,
|
|
68
68
|
};
|
|
69
69
|
}, [hovered, selected, size]);
|
|
70
70
|
return (jsx_runtime_1.jsx("button", { type: "button", onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, style: itemStyle, tabIndex: tabIndex, onClick: onClick, children: children }));
|
|
@@ -2,6 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import type { SelectedOutline } from './selected-outline-geometry';
|
|
3
3
|
import { type SelectedOutlineDragTarget, type SelectedOutlineRotationDragTarget, type SelectedOutlineScaleDragTarget, type SelectedOutlineTarget } from './selected-outline-types';
|
|
4
4
|
import type { TimelineSelection, TimelineSelectionInteraction } from './Timeline/TimelineSelection';
|
|
5
|
+
export declare const SelectedOutlineTransformOriginHandle: React.FC<{
|
|
6
|
+
readonly outline: SelectedOutline;
|
|
7
|
+
readonly onDraggingChange: (dragging: boolean) => void;
|
|
8
|
+
readonly target: SelectedOutlineTarget | undefined;
|
|
9
|
+
}>;
|
|
5
10
|
export declare const SelectedOutlineElement: React.FC<{
|
|
6
11
|
readonly allDragTargets: readonly SelectedOutlineDragTarget[];
|
|
7
12
|
readonly allRotationDragTargets: readonly SelectedOutlineRotationDragTarget[];
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.SelectedOutlineElement = void 0;
|
|
36
|
+
exports.SelectedOutlineElement = exports.SelectedOutlineTransformOriginHandle = void 0;
|
|
37
37
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
38
|
const react_1 = __importStar(require("react"));
|
|
39
39
|
const react_dom_1 = require("react-dom");
|
|
@@ -308,11 +308,12 @@ const SelectedOutlineTransformOriginHandle = ({ outline, onDraggingChange, targe
|
|
|
308
308
|
return null;
|
|
309
309
|
}
|
|
310
310
|
return (jsx_runtime_1.jsxs("g", { pointerEvents: "all", cursor: "crosshair", onPointerDown: onPointerDown, "aria-hidden": "true", style: {
|
|
311
|
-
filter:
|
|
311
|
+
filter: colors_1.SELECTED_OUTLINE_DROP_SHADOW,
|
|
312
312
|
}, children: [
|
|
313
313
|
jsx_runtime_1.jsx("circle", { cx: position.x, cy: position.y, r: 4, stroke: colors_1.BLUE, fill: "none", strokeWidth: 2, vectorEffect: "non-scaling-stroke" }), jsx_runtime_1.jsx("line", { x1: position.x - 8, y1: position.y, x2: position.x + 8, y2: position.y, stroke: colors_1.BLUE, strokeWidth: 2, vectorEffect: "non-scaling-stroke" }), jsx_runtime_1.jsx("line", { x1: position.x, y1: position.y - 8, x2: position.x, y2: position.y + 8, stroke: colors_1.BLUE, strokeWidth: 2, vectorEffect: "non-scaling-stroke" })
|
|
314
314
|
] }));
|
|
315
315
|
};
|
|
316
|
+
exports.SelectedOutlineTransformOriginHandle = SelectedOutlineTransformOriginHandle;
|
|
316
317
|
const SelectedOutlinePolygon = ({ allDragTargets, contextMenuValues, dragging, hovered, onContextMenuOpen, outline, onDraggingChange, onHoverChange, onSelect, onTextEditStart, scale, target, }) => {
|
|
317
318
|
var _a, _b, _c, _d;
|
|
318
319
|
const { getDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeDragOverridesContext);
|
|
@@ -532,7 +533,7 @@ const SelectedOutlinePolygon = ({ allDragTargets, contextMenuValues, dragging, h
|
|
|
532
533
|
});
|
|
533
534
|
}, [effectDrop]);
|
|
534
535
|
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
535
|
-
jsx_runtime_1.jsx("polygon", { ref: polygonRef, points: points, fill: effectDropHovered ?
|
|
536
|
+
jsx_runtime_1.jsx("polygon", { ref: polygonRef, points: points, fill: effectDropHovered ? colors_1.TIMELINE_DROP_BLUE_ALPHA_12 : colors_1.TRANSPARENT, stroke: colors_1.BLUE, strokeOpacity: visible || effectDropHovered ? 1 : 0, strokeWidth: 2, vectorEffect: "non-scaling-stroke", pointerEvents: target === undefined ? undefined : 'all', onPointerEnter: () => {
|
|
536
537
|
if (!dragging) {
|
|
537
538
|
onHoverChange(outline.key);
|
|
538
539
|
}
|
|
@@ -696,7 +697,7 @@ const SelectedOutlineScaleEdgeLine = ({ allScaleDragTargets, contextMenuValues,
|
|
|
696
697
|
return null;
|
|
697
698
|
}
|
|
698
699
|
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
699
|
-
jsx_runtime_1.jsx("line", { ref: lineRef, x1: edgeInfo.start.x, y1: edgeInfo.start.y, x2: edgeInfo.end.x, y2: edgeInfo.end.y, stroke:
|
|
700
|
+
jsx_runtime_1.jsx("line", { ref: lineRef, x1: edgeInfo.start.x, y1: edgeInfo.start.y, x2: edgeInfo.end.x, y2: edgeInfo.end.y, stroke: colors_1.TRANSPARENT, strokeWidth: 12, vectorEffect: "non-scaling-stroke", pointerEvents: "stroke", cursor: edgeInfo.cursor, onPointerEnter: () => {
|
|
700
701
|
if (!dragging) {
|
|
701
702
|
onHoverChange(outline.key);
|
|
702
703
|
}
|
|
@@ -918,7 +919,7 @@ const SelectedOutlineRotationCornerHandle = ({ allRotationDragTargets, contextMe
|
|
|
918
919
|
return null;
|
|
919
920
|
}
|
|
920
921
|
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
921
|
-
jsx_runtime_1.jsx("circle", { ref: circleRef, cx: cornerInfo.point.x, cy: cornerInfo.point.y, r: 12, fill:
|
|
922
|
+
jsx_runtime_1.jsx("circle", { ref: circleRef, cx: cornerInfo.point.x, cy: cornerInfo.point.y, r: 12, fill: colors_1.TRANSPARENT, stroke: colors_1.TRANSPARENT, vectorEffect: "non-scaling-stroke", pointerEvents: "all", cursor: cornerInfo.cursor, onPointerEnter: () => {
|
|
922
923
|
if (!dragging) {
|
|
923
924
|
onHoverChange(outline.key);
|
|
924
925
|
}
|
|
@@ -1117,7 +1118,6 @@ const SelectedOutlineElement = ({ allDragTargets, allRotationDragTargets, allSca
|
|
|
1117
1118
|
? ['top', 'right', 'bottom', 'left'].map((edge) => (jsx_runtime_1.jsx(SelectedOutlineScaleEdgeLine, { allScaleDragTargets: allScaleDragTargets, contextMenuValues: emptyContextMenuValues, dragging: dragging, edge: edge, outline: outline, onContextMenuOpen: onContextMenuOpen, onDraggingChange: onDraggingChange, onHoverChange: onHoverChange, onSelect: onSelect, target: target }, edge)))
|
|
1118
1119
|
: null, (target === null || target === void 0 ? void 0 : target.containsSelection) || hovered
|
|
1119
1120
|
? ['top-left', 'top-right', 'bottom-right', 'bottom-left'].map((corner) => (jsx_runtime_1.jsx(SelectedOutlineRotationCornerHandle, { allRotationDragTargets: allRotationDragTargets, contextMenuValues: emptyContextMenuValues, corner: corner, dragging: dragging, outline: outline, onContextMenuOpen: onContextMenuOpen, onDraggingChange: onDraggingChange, onHoverChange: onHoverChange, onSelect: onSelect, target: target }, corner)))
|
|
1120
|
-
: null
|
|
1121
|
-
] }));
|
|
1121
|
+
: null] }));
|
|
1122
1122
|
};
|
|
1123
1123
|
exports.SelectedOutlineElement = SelectedOutlineElement;
|
|
@@ -671,6 +671,6 @@ const SelectedOutlineOverlay = ({ scale, translationX, translationY }) => {
|
|
|
671
671
|
if (outlineTargets.length === 0) {
|
|
672
672
|
return null;
|
|
673
673
|
}
|
|
674
|
-
return (jsx_runtime_1.jsxs("svg", { ref: overlayRef, style: outlineContainer, width: "100%", height: "100%", "aria-hidden": "true", children: [outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineElement_1.SelectedOutlineElement, { allDragTargets: allDragTargets, allRotationDragTargets: allRotationDragTargets, allScaleDragTargets: allScaleDragTargets, dragging: draggingOutline, hovered: hoveredOutlineKey === outline.key, outline: outline, onDraggingChange: onDraggingChange, onHoverChange: setHoveredOutlineKey, onSelect: selectOutlineItem, scale: scale, target: targetsByKey.get(outline.key) }, outline.key))), outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineUvControls_1.SelectedOutlineUvHandleConnectionLayer, { outline: outline, target: targetsByKey.get(outline.key) }, `${outline.key}-uv-connection-lines`))), outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineUvControls_1.SelectedOutlineUvHandleCircleLayer, { onDraggingChange: onDraggingChange, onSelect: selectOutlineItem, outline: outline, target: targetsByKey.get(outline.key) }, `${outline.key}-uv-handles`)))] }));
|
|
674
|
+
return (jsx_runtime_1.jsxs("svg", { ref: overlayRef, style: outlineContainer, width: "100%", height: "100%", "aria-hidden": "true", children: [outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineElement_1.SelectedOutlineElement, { allDragTargets: allDragTargets, allRotationDragTargets: allRotationDragTargets, allScaleDragTargets: allScaleDragTargets, dragging: draggingOutline, hovered: hoveredOutlineKey === outline.key, outline: outline, onDraggingChange: onDraggingChange, onHoverChange: setHoveredOutlineKey, onSelect: selectOutlineItem, scale: scale, target: targetsByKey.get(outline.key) }, outline.key))), outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineElement_1.SelectedOutlineTransformOriginHandle, { outline: outline, onDraggingChange: onDraggingChange, target: targetsByKey.get(outline.key) }, `${outline.key}-transform-origin`))), outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineUvControls_1.SelectedOutlineUvHandleConnectionLayer, { outline: outline, target: targetsByKey.get(outline.key) }, `${outline.key}-uv-connection-lines`))), outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineUvControls_1.SelectedOutlineUvHandleCircleLayer, { onDraggingChange: onDraggingChange, onSelect: selectOutlineItem, outline: outline, target: targetsByKey.get(outline.key) }, `${outline.key}-uv-handles`)))] }));
|
|
675
675
|
};
|
|
676
676
|
exports.SelectedOutlineOverlay = SelectedOutlineOverlay;
|