@remotion/studio 4.0.485 → 4.0.487
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/ContextMenu.js +2 -1
- 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/CurrentComposition.js +43 -2
- package/dist/components/EditorContexts.js +2 -1
- 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 +19 -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/InspectorSourceLocation.d.ts +1 -0
- package/dist/components/InspectorSourceLocation.js +18 -3
- package/dist/components/InstallablePackage.js +1 -1
- package/dist/components/KeyboardShortcutsExplainer.js +9 -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/Preview.js +1 -1
- package/dist/components/PreviewToolbar.js +3 -2
- 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 +10 -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.d.ts +11 -1
- package/dist/components/RenderModal/OptionExplainer.js +33 -13
- package/dist/components/RenderModal/OptionExplainerBubble.d.ts +15 -1
- package/dist/components/RenderModal/OptionExplainerBubble.js +17 -3
- package/dist/components/RenderModal/RenderModalHr.js +2 -1
- package/dist/components/RenderModal/RenderStatusModal.js +2 -1
- package/dist/components/RenderModal/SchemaEditor/Fieldset.d.ts +1 -0
- package/dist/components/RenderModal/SchemaEditor/Fieldset.js +6 -1
- package/dist/components/RenderModal/SchemaEditor/SchemaEditor.js +1 -2
- 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/WebRenderModal.js +5 -2
- package/dist/components/RenderModal/WebRenderModalAdvanced.d.ts +3 -0
- package/dist/components/RenderModal/WebRenderModalAdvanced.js +92 -5
- package/dist/components/RenderModal/WebRenderModalAudio.js +4 -3
- package/dist/components/RenderModal/WebRenderModalBasic.js +2 -2
- 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/ClientRenderQueueProcessor.js +1 -0
- 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/client-side-render-types.d.ts +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 +9 -0
- package/dist/components/SelectedOutlineElement.js +63 -18
- package/dist/components/SelectedOutlineOverlay.d.ts +2 -0
- package/dist/components/SelectedOutlineOverlay.js +53 -2
- package/dist/components/SelectedOutlineUvControls.js +18 -11
- package/dist/components/SidebarCollapserControls.js +5 -4
- package/dist/components/SnappingProvider.d.ts +4 -0
- package/dist/components/SnappingProvider.js +24 -0
- package/dist/components/SnappingToggle.d.ts +2 -0
- package/dist/components/SnappingToggle.js +26 -0
- package/dist/components/Splitter/SplitterContext.d.ts +1 -1
- 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 +11 -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 +4 -4
- package/dist/components/VisualControls/VisualControlsContent.js +9 -1
- package/dist/components/effect-drag-and-drop.js +30 -8
- package/dist/components/import-assets.d.ts +8 -2
- package/dist/components/import-assets.js +55 -1
- package/dist/components/options-sidebar-tabs.d.ts +1 -0
- package/dist/components/options-sidebar-tabs.js +6 -1
- package/dist/components/selected-outline-measurement.js +2 -1
- package/dist/components/selected-outline-snap.d.ts +36 -0
- package/dist/components/selected-outline-snap.js +158 -0
- 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-jefhcs5z.js +164 -0
- package/dist/esm/{chunk-103pp4n7.js → chunk-y2t24cx0.js} +10754 -6829
- package/dist/esm/internals.mjs +10755 -6796
- package/dist/esm/previewEntry.mjs +10554 -6591
- 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/retry-payload.js +1 -0
- package/dist/helpers/timeline-layout.d.ts +4 -2
- package/dist/helpers/use-menu-structure.js +74 -5
- 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/magnet.d.ts +3 -0
- package/dist/icons/magnet.js +8 -0
- 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/react.d.ts +5 -0
- package/dist/icons/react.js +8 -0
- 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/editor-guides.d.ts +2 -2
- package/dist/state/editor-snapping.d.ts +8 -0
- package/dist/state/editor-snapping.js +18 -0
- package/dist/state/modals.d.ts +6 -1
- package/package.json +12 -12
- package/dist/esm/chunk-6jf1natv.js +0 -25
package/dist/esm/renderEntry.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
+
BACKGROUND_HEX,
|
|
3
|
+
TRANSPARENT,
|
|
4
|
+
WHITE,
|
|
2
5
|
__require,
|
|
3
6
|
__toESM
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-jefhcs5z.js";
|
|
5
8
|
|
|
6
9
|
// src/renderEntry.tsx
|
|
7
10
|
import { useContext, useEffect, useRef, useState } from "react";
|
|
@@ -26,7 +29,7 @@ var setBundleMode = (state) => {
|
|
|
26
29
|
var getBundleMode = () => {
|
|
27
30
|
return currentBundleMode;
|
|
28
31
|
};
|
|
29
|
-
Internals.CSSUtils.injectCSS(Internals.CSSUtils.makeDefaultPreviewCSS(null,
|
|
32
|
+
Internals.CSSUtils.injectCSS(Internals.CSSUtils.makeDefaultPreviewCSS(null, BACKGROUND_HEX));
|
|
30
33
|
var getCanSerializeDefaultProps = (object) => {
|
|
31
34
|
try {
|
|
32
35
|
const str = JSON.stringify(object);
|
|
@@ -60,7 +63,7 @@ var DelayedSpinner = () => {
|
|
|
60
63
|
alignItems: "center",
|
|
61
64
|
fontSize: 13,
|
|
62
65
|
opacity: 0.6,
|
|
63
|
-
color:
|
|
66
|
+
color: WHITE,
|
|
64
67
|
fontFamily: "Helvetica, Arial, sans-serif"
|
|
65
68
|
},
|
|
66
69
|
children: "Loading Studio"
|
|
@@ -112,7 +115,7 @@ var GetVideoComposition = ({ state }) => {
|
|
|
112
115
|
width: currentCompositionMetadata.width,
|
|
113
116
|
height: currentCompositionMetadata.height,
|
|
114
117
|
display: "flex",
|
|
115
|
-
backgroundColor:
|
|
118
|
+
backgroundColor: TRANSPARENT
|
|
116
119
|
}
|
|
117
120
|
});
|
|
118
121
|
};
|
|
@@ -209,7 +212,7 @@ var renderContent = (Root) => {
|
|
|
209
212
|
renderToDOM(/* @__PURE__ */ jsx("div", {
|
|
210
213
|
children: /* @__PURE__ */ jsx(DelayedSpinner, {})
|
|
211
214
|
}));
|
|
212
|
-
import("./chunk-
|
|
215
|
+
import("./chunk-y2t24cx0.js").then(({ StudioInternals }) => {
|
|
213
216
|
window.remotion_isStudio = true;
|
|
214
217
|
window.remotion_isReadOnlyStudio = true;
|
|
215
218
|
window.remotion_inputProps = "{}";
|
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.checkerboardBackgroundImage = exports.checkerboardBackgroundColor = exports.getCheckerboardBackgroundPos = exports.getCheckerboardBackgroundSize = void 0;
|
|
4
|
+
const colors_1 = require("./colors");
|
|
4
5
|
const getCheckerboardBackgroundSize = (size) => `${size}px ${size}px`;
|
|
5
6
|
exports.getCheckerboardBackgroundSize = getCheckerboardBackgroundSize;
|
|
6
7
|
const getCheckerboardBackgroundPos = (size) => `0 0, ${size / 2}px 0, ${size / 2}px -${size / 2}px, 0px ${size / 2}px`;
|
|
7
8
|
exports.getCheckerboardBackgroundPos = getCheckerboardBackgroundPos;
|
|
8
9
|
const checkerboardBackgroundColor = (checkerboard) => {
|
|
9
10
|
if (checkerboard) {
|
|
10
|
-
return
|
|
11
|
+
return colors_1.WHITE;
|
|
11
12
|
}
|
|
12
|
-
return
|
|
13
|
+
return colors_1.BLACK;
|
|
13
14
|
};
|
|
14
15
|
exports.checkerboardBackgroundColor = checkerboardBackgroundColor;
|
|
15
16
|
const checkerboardBackgroundImage = (checkerboard) => {
|
|
16
17
|
if (checkerboard) {
|
|
17
|
-
return
|
|
18
|
-
linear-gradient(
|
|
19
|
-
45deg,
|
|
20
|
-
rgba(0, 0, 0, 0.1) 25%,
|
|
21
|
-
transparent 25%
|
|
22
|
-
),
|
|
23
|
-
linear-gradient(135deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
|
|
24
|
-
linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%),
|
|
25
|
-
linear-gradient(135deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%)
|
|
26
|
-
`;
|
|
18
|
+
return colors_1.CHECKERBOARD_BACKGROUND_IMAGE;
|
|
27
19
|
}
|
|
28
20
|
return undefined;
|
|
29
21
|
};
|
package/dist/helpers/colors.d.ts
CHANGED
|
@@ -1,25 +1,117 @@
|
|
|
1
|
+
export declare const BLACK = "black";
|
|
2
|
+
export declare const WHITE = "white";
|
|
3
|
+
export declare const RED = "red";
|
|
4
|
+
export declare const TRANSPARENT = "transparent";
|
|
5
|
+
export declare const CURRENT_COLOR = "currentColor";
|
|
6
|
+
export declare const CURRENT_COLOR_LOWERCASE = "currentcolor";
|
|
7
|
+
export declare const WHITE_HEX = "#fff";
|
|
8
|
+
export declare const WHITE_FULL_HEX = "#ffffff";
|
|
9
|
+
export declare const BLACK_HEX = "#000";
|
|
10
|
+
export declare const BLACK_FULL_HEX = "#000000";
|
|
1
11
|
export declare const BACKGROUND = "rgb(31,36,40)";
|
|
12
|
+
export declare const BACKGROUND_HEX = "#1f2428";
|
|
2
13
|
export declare const BACKGROUND__TRANSPARENT = "rgba(31,36,40, 0)";
|
|
3
14
|
export declare const INPUT_BACKGROUND = "#2f363d";
|
|
4
|
-
export declare const BORDER_COLOR = "#000";
|
|
5
15
|
export declare const LIGHT_COLOR = "#ddd";
|
|
6
16
|
export declare const SELECTED_BACKGROUND = "hsla(0, 0%, 100%, 0.15)";
|
|
7
17
|
export declare const LIGHT_TEXT = "#A6A7A9";
|
|
8
18
|
export declare const RULER_COLOR = "#808080";
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
19
|
+
export declare const WHITE_ALPHA_05 = "rgba(255, 255, 255, 0.05)";
|
|
20
|
+
export declare const WHITE_ALPHA_06 = "rgba(255, 255, 255, 0.06)";
|
|
21
|
+
export declare const WHITE_ALPHA_08 = "rgba(255, 255, 255, 0.08)";
|
|
22
|
+
export declare const WHITE_ALPHA_10 = "rgba(255, 255, 255, 0.1)";
|
|
23
|
+
export declare const WHITE_ALPHA_12 = "rgba(255, 255, 255, 0.12)";
|
|
24
|
+
export declare const WHITE_ALPHA_15 = "rgba(255, 255, 255, 0.15)";
|
|
25
|
+
export declare const WHITE_ALPHA_20 = "rgba(255, 255, 255, 0.2)";
|
|
26
|
+
export declare const WHITE_ALPHA_25 = "rgba(255, 255, 255, 0.25)";
|
|
27
|
+
export declare const WHITE_ALPHA_30 = "rgba(255, 255, 255, 0.3)";
|
|
28
|
+
export declare const WHITE_ALPHA_35 = "rgba(255, 255, 255, 0.35)";
|
|
29
|
+
export declare const WHITE_ALPHA_40 = "rgba(255, 255, 255, 0.4)";
|
|
30
|
+
export declare const WHITE_ALPHA_45 = "rgba(255, 255, 255, 0.45)";
|
|
31
|
+
export declare const WHITE_ALPHA_50 = "rgba(255, 255, 255, 0.5)";
|
|
32
|
+
export declare const WHITE_ALPHA_60 = "rgba(255, 255, 255, 0.6)";
|
|
33
|
+
export declare const WHITE_ALPHA_70 = "rgba(255, 255, 255, 0.7)";
|
|
34
|
+
export declare const WHITE_ALPHA_72 = "rgba(255, 255, 255, 0.72)";
|
|
35
|
+
export declare const WHITE_ALPHA_80 = "rgba(255, 255, 255, 0.8)";
|
|
36
|
+
export declare const BLACK_ALPHA_10 = "rgba(0, 0, 0, 0.1)";
|
|
37
|
+
export declare const BLACK_ALPHA_28 = "rgba(0, 0, 0, 0.28)";
|
|
38
|
+
export declare const BLACK_ALPHA_30 = "rgba(0, 0, 0, 0.3)";
|
|
39
|
+
export declare const BLACK_ALPHA_40 = "rgba(0, 0, 0, 0.4)";
|
|
40
|
+
export declare const BLACK_ALPHA_50 = "rgba(0, 0, 0, 0.5)";
|
|
41
|
+
export declare const BLACK_ALPHA_60 = "rgba(0, 0, 0, 0.6)";
|
|
42
|
+
export declare const BLACK_ALPHA_80 = "rgba(0, 0, 0, 0.8)";
|
|
43
|
+
export declare const BLACK_ALPHA_85 = "rgba(0, 0, 0, 0.85)";
|
|
44
|
+
export declare const BLACK_ALPHA_90 = "rgba(0, 0, 0, 0.9)";
|
|
45
|
+
export declare const BLACK_OPAQUE = "rgba(0, 0, 0, 1)";
|
|
13
46
|
export declare const FAIL_COLOR = "#ff3232";
|
|
14
|
-
export declare const TEXT_COLOR = "#fff";
|
|
15
47
|
export declare const WARNING_COLOR = "#f1c40f";
|
|
16
48
|
export declare const BLUE = "#0b84f3";
|
|
49
|
+
export declare const BLUE_HOVERED = "#4da3f7";
|
|
17
50
|
export declare const BLUE_DISABLED = "#284f73";
|
|
18
|
-
export declare const LIGHT_TRANSPARENT = "rgba(255, 255, 255, 0.7)";
|
|
19
51
|
export declare const UNSELECTED_GUIDE = "#7e1219";
|
|
20
52
|
export declare const SELECTED_GUIDE = "#d22d3a";
|
|
21
53
|
export declare const LINE_COLOR = "#363A3E";
|
|
22
54
|
export declare const TIMELINE_TRACK_SEPARATOR = "#13161B";
|
|
55
|
+
export declare const LIGHT_GRAY = "#ccc";
|
|
56
|
+
export declare const KEYBOARD_SHORTCUT_KEY_COLOR = "#eee";
|
|
57
|
+
export declare const NOTIFICATION_BACKGROUND = "#111111";
|
|
58
|
+
export declare const RENDER_STATUS_BACKGROUND = "#222";
|
|
59
|
+
export declare const ERROR_CODE_FRAME_BACKGROUND = "#070707";
|
|
60
|
+
export declare const ERROR_CODE_FRAME_LINE_BACKGROUND = "#121212";
|
|
61
|
+
export declare const ERROR_LINK_COLOR = "#58a6ff";
|
|
62
|
+
export declare const INFO_BLUE = "#60a5fa";
|
|
63
|
+
export declare const SERVER_DISCONNECTED_BACKGROUND = "#e74c3c";
|
|
64
|
+
export declare const STACK_FRAME_BORDER_BLUE = "rgb(66, 144, 245)";
|
|
65
|
+
export declare const TIMELINE_BACKGROUND_COLOR = "#0F1113";
|
|
66
|
+
export declare const TIMELINE_SELECTED_BACKGROUND_COLOR = "#3B3F42";
|
|
67
|
+
export declare const TIMELINE_SELECTED_LABEL_BACKGROUND_COLOR = "#B0B0B0";
|
|
68
|
+
export declare const TIMELINE_BLUE = "#0b84ff";
|
|
69
|
+
export declare const TIMELINE_PLAYHEAD_COLOR = "#f02c00";
|
|
70
|
+
export declare const TIMELINE_DROP_BLUE_ALPHA_12 = "rgba(0, 155, 255, 0.12)";
|
|
71
|
+
export declare const TIMELINE_DROP_BLUE_ALPHA_16 = "rgba(0, 155, 255, 0.16)";
|
|
72
|
+
export declare const TIMELINE_DROP_BLUE_ALPHA_75 = "rgba(0, 155, 255, 0.75)";
|
|
73
|
+
export declare const TIMELINE_MARQUEE_BLUE_ALPHA_16 = "rgba(70, 130, 255, 0.16)";
|
|
74
|
+
export declare const TIMELINE_MARQUEE_BLUE_ALPHA_75 = "rgba(70, 130, 255, 0.75)";
|
|
75
|
+
export declare const EASING_SELECTED_BACKGROUND = "rgba(11, 132, 243, 0.18)";
|
|
76
|
+
export declare const INFO_BLUE_BACKGROUND = "rgba(59, 130, 246, 0.15)";
|
|
77
|
+
export declare const BORDER_BLACK = "1px solid #000";
|
|
78
|
+
export declare const BORDER_WHITE = "1px solid #fff";
|
|
79
|
+
export declare const BORDER_WHITE_2PX = "2px solid #fff";
|
|
80
|
+
export declare const BORDER_CURRENT_COLOR = "1px solid currentColor";
|
|
81
|
+
export declare const BORDER_TRANSPARENT_2PX = "2px solid transparent";
|
|
82
|
+
export declare const BORDER_BLACK_ALPHA_50 = "1px solid rgba(0, 0, 0, 0.5)";
|
|
83
|
+
export declare const BORDER_BLACK_ALPHA_60 = "1px solid rgba(0, 0, 0, 0.6)";
|
|
84
|
+
export declare const BORDER_WHITE_ALPHA_12 = "1px solid rgba(255, 255, 255, 0.12)";
|
|
85
|
+
export declare const BORDER_WHITE_ALPHA_20 = "1px solid rgba(255, 255, 255, 0.2)";
|
|
86
|
+
export declare const BORDER_INFO_BLUE = "1px solid rgba(59, 130, 246, 0.4)";
|
|
87
|
+
export declare const BORDER_STACK_FRAME_BLUE = "1px solid rgb(66, 144, 245)";
|
|
88
|
+
export declare const BORDER_TIMELINE_DROP_BLUE = "1px solid rgba(0, 155, 255, 0.75)";
|
|
89
|
+
export declare const BORDER_TIMELINE_MARQUEE_BLUE = "1px solid rgba(70, 130, 255, 0.75)";
|
|
90
|
+
export declare const SHADOW_BLACK = "0 0 4px black";
|
|
91
|
+
export declare const SHADOW_BLACK_ALPHA_50_TOWARDS_BOTTOM = "0 2px 8px rgba(0, 0, 0, 0.5)";
|
|
92
|
+
export declare const SHADOW_BLACK_ALPHA_50_TOWARDS_TOP = "0 -2px 8px rgba(0, 0, 0, 0.5)";
|
|
93
|
+
export declare const NOTIFICATION_SHADOW = "0 2px 3px rgba(0, 0, 0, 1)";
|
|
94
|
+
export declare const SERVER_DISCONNECTED_SHADOW = "0 2px 4px rgba(0, 0, 0, 0.4)";
|
|
95
|
+
export declare const COLOR_PICKER_POPUP_SHADOW = "0 4px 16px rgba(0, 0, 0, 0.5)";
|
|
96
|
+
export declare const COLOR_PICKER_HANDLE_SHADOW = "0 0 0 1px rgba(0, 0, 0, 0.6)";
|
|
97
|
+
export declare const NOTIFICATION_BORDER = "0.25px solid rgba(255, 255, 255, 0.1)";
|
|
98
|
+
export declare const HOT_MIDDLEWARE_ERROR_STYLE = "color: #ff0000;";
|
|
99
|
+
export declare const HOT_MIDDLEWARE_WARNING_STYLE = "color: #999933;";
|
|
100
|
+
export declare const FOCUS_BOX_SHADOW: string;
|
|
101
|
+
export declare const CHECKERBOARD_BACKGROUND_IMAGE = "\n linear-gradient(\n 45deg,\n rgba(0, 0, 0, 0.1) 25%,\n transparent 25%\n ),\n linear-gradient(135deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),\n linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%),\n linear-gradient(135deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%)\n ";
|
|
102
|
+
export declare const COLOR_PICKER_CHECKER_BACKGROUND_IMAGE: string;
|
|
103
|
+
export declare const COLOR_PICKER_CHECKER_BACKGROUND_COLOR = "#444";
|
|
104
|
+
export declare const COLOR_PICKER_SATURATION_VALUE_GRADIENT = "linear-gradient(to right, #fff, transparent)";
|
|
105
|
+
export declare const COLOR_PICKER_SATURATION_BLACK_GRADIENT = "linear-gradient(to top, #000, transparent)";
|
|
106
|
+
export declare const COLOR_PICKER_ALPHA_TRANSPARENT = "rgba(0, 0, 0, 0)";
|
|
107
|
+
export declare const COLOR_PICKER_HUE_GRADIENT = "linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)";
|
|
108
|
+
export declare const ERROR_MESSAGE_MASK_IMAGE = "linear-gradient(to bottom, white 60%, transparent)";
|
|
109
|
+
export declare const SELECTED_OUTLINE_DROP_SHADOW = "drop-shadow(0 0 1px rgba(255, 255, 255, 0.2))";
|
|
110
|
+
export declare const SELECTED_OUTLINE_UV_DROP_SHADOW = "drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28))";
|
|
111
|
+
export declare const LOOPED_INDICATOR_DROP_SHADOW: string;
|
|
112
|
+
export declare const TIMELINE_AUDIO_GRADIENT = "linear-gradient(rgb(16 171 58), rgb(43 165 63) 60%)";
|
|
113
|
+
export declare const TIMELINE_VIDEO_GRADIENT = "linear-gradient(to top, #8e44ad, #9b59b6)";
|
|
114
|
+
export declare const TIMELINE_IMAGE_GRADIENT = "linear-gradient(to top, #2980b9, #3498db)";
|
|
23
115
|
export declare const getBackgroundFromHoverState: ({ selected, hovered, }: {
|
|
24
116
|
selected: boolean;
|
|
25
117
|
hovered: boolean;
|
package/dist/helpers/colors.js
CHANGED
|
@@ -1,29 +1,137 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BLUE_DISABLED = exports.BLUE_HOVERED = exports.BLUE = exports.WARNING_COLOR = exports.FAIL_COLOR = exports.BLACK_OPAQUE = exports.BLACK_ALPHA_90 = exports.BLACK_ALPHA_85 = exports.BLACK_ALPHA_80 = exports.BLACK_ALPHA_60 = exports.BLACK_ALPHA_50 = exports.BLACK_ALPHA_40 = exports.BLACK_ALPHA_30 = exports.BLACK_ALPHA_28 = exports.BLACK_ALPHA_10 = exports.WHITE_ALPHA_80 = exports.WHITE_ALPHA_72 = exports.WHITE_ALPHA_70 = exports.WHITE_ALPHA_60 = exports.WHITE_ALPHA_50 = exports.WHITE_ALPHA_45 = exports.WHITE_ALPHA_40 = exports.WHITE_ALPHA_35 = exports.WHITE_ALPHA_30 = exports.WHITE_ALPHA_25 = exports.WHITE_ALPHA_20 = exports.WHITE_ALPHA_15 = exports.WHITE_ALPHA_12 = exports.WHITE_ALPHA_10 = exports.WHITE_ALPHA_08 = exports.WHITE_ALPHA_06 = exports.WHITE_ALPHA_05 = exports.RULER_COLOR = exports.LIGHT_TEXT = exports.SELECTED_BACKGROUND = exports.LIGHT_COLOR = exports.INPUT_BACKGROUND = exports.BACKGROUND__TRANSPARENT = exports.BACKGROUND_HEX = exports.BACKGROUND = exports.BLACK_FULL_HEX = exports.BLACK_HEX = exports.WHITE_FULL_HEX = exports.WHITE_HEX = exports.CURRENT_COLOR_LOWERCASE = exports.CURRENT_COLOR = exports.TRANSPARENT = exports.RED = exports.WHITE = exports.BLACK = void 0;
|
|
4
|
+
exports.FOCUS_BOX_SHADOW = exports.HOT_MIDDLEWARE_WARNING_STYLE = exports.HOT_MIDDLEWARE_ERROR_STYLE = exports.NOTIFICATION_BORDER = exports.COLOR_PICKER_HANDLE_SHADOW = exports.COLOR_PICKER_POPUP_SHADOW = exports.SERVER_DISCONNECTED_SHADOW = exports.NOTIFICATION_SHADOW = exports.SHADOW_BLACK_ALPHA_50_TOWARDS_TOP = exports.SHADOW_BLACK_ALPHA_50_TOWARDS_BOTTOM = exports.SHADOW_BLACK = exports.BORDER_TIMELINE_MARQUEE_BLUE = exports.BORDER_TIMELINE_DROP_BLUE = exports.BORDER_STACK_FRAME_BLUE = exports.BORDER_INFO_BLUE = exports.BORDER_WHITE_ALPHA_20 = exports.BORDER_WHITE_ALPHA_12 = exports.BORDER_BLACK_ALPHA_60 = exports.BORDER_BLACK_ALPHA_50 = exports.BORDER_TRANSPARENT_2PX = exports.BORDER_CURRENT_COLOR = exports.BORDER_WHITE_2PX = exports.BORDER_WHITE = exports.BORDER_BLACK = exports.INFO_BLUE_BACKGROUND = exports.EASING_SELECTED_BACKGROUND = exports.TIMELINE_MARQUEE_BLUE_ALPHA_75 = exports.TIMELINE_MARQUEE_BLUE_ALPHA_16 = exports.TIMELINE_DROP_BLUE_ALPHA_75 = exports.TIMELINE_DROP_BLUE_ALPHA_16 = exports.TIMELINE_DROP_BLUE_ALPHA_12 = exports.TIMELINE_PLAYHEAD_COLOR = exports.TIMELINE_BLUE = exports.TIMELINE_SELECTED_LABEL_BACKGROUND_COLOR = exports.TIMELINE_SELECTED_BACKGROUND_COLOR = exports.TIMELINE_BACKGROUND_COLOR = exports.STACK_FRAME_BORDER_BLUE = exports.SERVER_DISCONNECTED_BACKGROUND = exports.INFO_BLUE = exports.ERROR_LINK_COLOR = exports.ERROR_CODE_FRAME_LINE_BACKGROUND = exports.ERROR_CODE_FRAME_BACKGROUND = exports.RENDER_STATUS_BACKGROUND = exports.NOTIFICATION_BACKGROUND = exports.KEYBOARD_SHORTCUT_KEY_COLOR = exports.LIGHT_GRAY = exports.TIMELINE_TRACK_SEPARATOR = exports.LINE_COLOR = exports.SELECTED_GUIDE = exports.UNSELECTED_GUIDE = void 0;
|
|
5
|
+
exports.getBackgroundFromHoverState = exports.TIMELINE_IMAGE_GRADIENT = exports.TIMELINE_VIDEO_GRADIENT = exports.TIMELINE_AUDIO_GRADIENT = exports.LOOPED_INDICATOR_DROP_SHADOW = exports.SELECTED_OUTLINE_UV_DROP_SHADOW = exports.SELECTED_OUTLINE_DROP_SHADOW = exports.ERROR_MESSAGE_MASK_IMAGE = exports.COLOR_PICKER_HUE_GRADIENT = exports.COLOR_PICKER_ALPHA_TRANSPARENT = exports.COLOR_PICKER_SATURATION_BLACK_GRADIENT = exports.COLOR_PICKER_SATURATION_VALUE_GRADIENT = exports.COLOR_PICKER_CHECKER_BACKGROUND_COLOR = exports.COLOR_PICKER_CHECKER_BACKGROUND_IMAGE = exports.CHECKERBOARD_BACKGROUND_IMAGE = void 0;
|
|
6
|
+
exports.BLACK = 'black';
|
|
7
|
+
exports.WHITE = 'white';
|
|
8
|
+
exports.RED = 'red';
|
|
9
|
+
exports.TRANSPARENT = 'transparent';
|
|
10
|
+
exports.CURRENT_COLOR = 'currentColor';
|
|
11
|
+
exports.CURRENT_COLOR_LOWERCASE = 'currentcolor';
|
|
12
|
+
exports.WHITE_HEX = '#fff';
|
|
13
|
+
exports.WHITE_FULL_HEX = '#ffffff';
|
|
14
|
+
exports.BLACK_HEX = '#000';
|
|
15
|
+
exports.BLACK_FULL_HEX = '#000000';
|
|
4
16
|
exports.BACKGROUND = 'rgb(31,36,40)';
|
|
17
|
+
exports.BACKGROUND_HEX = '#1f2428';
|
|
5
18
|
exports.BACKGROUND__TRANSPARENT = 'rgba(31,36,40, 0)';
|
|
6
19
|
exports.INPUT_BACKGROUND = '#2f363d';
|
|
7
|
-
exports.BORDER_COLOR = '#000';
|
|
8
20
|
exports.LIGHT_COLOR = '#ddd';
|
|
9
21
|
exports.SELECTED_BACKGROUND = 'hsla(0, 0%, 100%, 0.15)';
|
|
10
22
|
exports.LIGHT_TEXT = '#A6A7A9';
|
|
11
23
|
exports.RULER_COLOR = '#808080';
|
|
12
|
-
exports.
|
|
24
|
+
exports.WHITE_ALPHA_05 = 'rgba(255, 255, 255, 0.05)';
|
|
25
|
+
exports.WHITE_ALPHA_06 = 'rgba(255, 255, 255, 0.06)';
|
|
26
|
+
exports.WHITE_ALPHA_08 = 'rgba(255, 255, 255, 0.08)';
|
|
27
|
+
exports.WHITE_ALPHA_10 = 'rgba(255, 255, 255, 0.1)';
|
|
28
|
+
exports.WHITE_ALPHA_12 = 'rgba(255, 255, 255, 0.12)';
|
|
29
|
+
exports.WHITE_ALPHA_15 = 'rgba(255, 255, 255, 0.15)';
|
|
30
|
+
exports.WHITE_ALPHA_20 = 'rgba(255, 255, 255, 0.2)';
|
|
31
|
+
exports.WHITE_ALPHA_25 = 'rgba(255, 255, 255, 0.25)';
|
|
32
|
+
exports.WHITE_ALPHA_30 = 'rgba(255, 255, 255, 0.3)';
|
|
33
|
+
exports.WHITE_ALPHA_35 = 'rgba(255, 255, 255, 0.35)';
|
|
34
|
+
exports.WHITE_ALPHA_40 = 'rgba(255, 255, 255, 0.4)';
|
|
35
|
+
exports.WHITE_ALPHA_45 = 'rgba(255, 255, 255, 0.45)';
|
|
36
|
+
exports.WHITE_ALPHA_50 = 'rgba(255, 255, 255, 0.5)';
|
|
37
|
+
exports.WHITE_ALPHA_60 = 'rgba(255, 255, 255, 0.6)';
|
|
38
|
+
exports.WHITE_ALPHA_70 = 'rgba(255, 255, 255, 0.7)';
|
|
39
|
+
exports.WHITE_ALPHA_72 = 'rgba(255, 255, 255, 0.72)';
|
|
40
|
+
exports.WHITE_ALPHA_80 = 'rgba(255, 255, 255, 0.8)';
|
|
41
|
+
exports.BLACK_ALPHA_10 = 'rgba(0, 0, 0, 0.1)';
|
|
42
|
+
exports.BLACK_ALPHA_28 = 'rgba(0, 0, 0, 0.28)';
|
|
43
|
+
exports.BLACK_ALPHA_30 = 'rgba(0, 0, 0, 0.3)';
|
|
44
|
+
exports.BLACK_ALPHA_40 = 'rgba(0, 0, 0, 0.4)';
|
|
45
|
+
exports.BLACK_ALPHA_50 = 'rgba(0, 0, 0, 0.5)';
|
|
46
|
+
exports.BLACK_ALPHA_60 = 'rgba(0, 0, 0, 0.6)';
|
|
47
|
+
exports.BLACK_ALPHA_80 = 'rgba(0, 0, 0, 0.8)';
|
|
48
|
+
exports.BLACK_ALPHA_85 = 'rgba(0, 0, 0, 0.85)';
|
|
49
|
+
exports.BLACK_ALPHA_90 = 'rgba(0, 0, 0, 0.9)';
|
|
50
|
+
exports.BLACK_OPAQUE = 'rgba(0, 0, 0, 1)';
|
|
13
51
|
const SELECTED_HOVER_BACKGROUND = 'hsla(0, 0%, 100%, 0.25)';
|
|
14
|
-
exports.CLEAR_HOVER = 'rgba(255, 255, 255, 0.06)';
|
|
15
|
-
exports.INPUT_BORDER_COLOR_UNHOVERED = 'rgba(0, 0, 0, 0.6)';
|
|
16
|
-
exports.INPUT_BORDER_COLOR_HOVERED = 'rgba(255, 255, 255, 0.05)';
|
|
17
52
|
exports.FAIL_COLOR = '#ff3232';
|
|
18
|
-
exports.TEXT_COLOR = '#fff';
|
|
19
53
|
exports.WARNING_COLOR = '#f1c40f';
|
|
20
54
|
exports.BLUE = '#0b84f3';
|
|
55
|
+
exports.BLUE_HOVERED = '#4da3f7';
|
|
21
56
|
exports.BLUE_DISABLED = '#284f73';
|
|
22
|
-
exports.LIGHT_TRANSPARENT = 'rgba(255, 255, 255, 0.7)';
|
|
23
57
|
exports.UNSELECTED_GUIDE = '#7e1219';
|
|
24
58
|
exports.SELECTED_GUIDE = '#d22d3a';
|
|
25
59
|
exports.LINE_COLOR = '#363A3E';
|
|
26
60
|
exports.TIMELINE_TRACK_SEPARATOR = '#13161B';
|
|
61
|
+
exports.LIGHT_GRAY = '#ccc';
|
|
62
|
+
exports.KEYBOARD_SHORTCUT_KEY_COLOR = '#eee';
|
|
63
|
+
exports.NOTIFICATION_BACKGROUND = '#111111';
|
|
64
|
+
exports.RENDER_STATUS_BACKGROUND = '#222';
|
|
65
|
+
exports.ERROR_CODE_FRAME_BACKGROUND = '#070707';
|
|
66
|
+
exports.ERROR_CODE_FRAME_LINE_BACKGROUND = '#121212';
|
|
67
|
+
exports.ERROR_LINK_COLOR = '#58a6ff';
|
|
68
|
+
exports.INFO_BLUE = '#60a5fa';
|
|
69
|
+
exports.SERVER_DISCONNECTED_BACKGROUND = '#e74c3c';
|
|
70
|
+
exports.STACK_FRAME_BORDER_BLUE = 'rgb(66, 144, 245)';
|
|
71
|
+
exports.TIMELINE_BACKGROUND_COLOR = '#0F1113';
|
|
72
|
+
exports.TIMELINE_SELECTED_BACKGROUND_COLOR = '#3B3F42';
|
|
73
|
+
exports.TIMELINE_SELECTED_LABEL_BACKGROUND_COLOR = '#B0B0B0';
|
|
74
|
+
exports.TIMELINE_BLUE = '#0b84ff';
|
|
75
|
+
exports.TIMELINE_PLAYHEAD_COLOR = '#f02c00';
|
|
76
|
+
exports.TIMELINE_DROP_BLUE_ALPHA_12 = 'rgba(0, 155, 255, 0.12)';
|
|
77
|
+
exports.TIMELINE_DROP_BLUE_ALPHA_16 = 'rgba(0, 155, 255, 0.16)';
|
|
78
|
+
exports.TIMELINE_DROP_BLUE_ALPHA_75 = 'rgba(0, 155, 255, 0.75)';
|
|
79
|
+
exports.TIMELINE_MARQUEE_BLUE_ALPHA_16 = 'rgba(70, 130, 255, 0.16)';
|
|
80
|
+
exports.TIMELINE_MARQUEE_BLUE_ALPHA_75 = 'rgba(70, 130, 255, 0.75)';
|
|
81
|
+
exports.EASING_SELECTED_BACKGROUND = 'rgba(11, 132, 243, 0.18)';
|
|
82
|
+
exports.INFO_BLUE_BACKGROUND = 'rgba(59, 130, 246, 0.15)';
|
|
83
|
+
exports.BORDER_BLACK = `1px solid ${exports.BLACK_HEX}`;
|
|
84
|
+
exports.BORDER_WHITE = `1px solid ${exports.WHITE_HEX}`;
|
|
85
|
+
exports.BORDER_WHITE_2PX = `2px solid ${exports.WHITE_HEX}`;
|
|
86
|
+
exports.BORDER_CURRENT_COLOR = `1px solid ${exports.CURRENT_COLOR}`;
|
|
87
|
+
exports.BORDER_TRANSPARENT_2PX = `2px solid ${exports.TRANSPARENT}`;
|
|
88
|
+
exports.BORDER_BLACK_ALPHA_50 = `1px solid ${exports.BLACK_ALPHA_50}`;
|
|
89
|
+
exports.BORDER_BLACK_ALPHA_60 = `1px solid ${exports.BLACK_ALPHA_60}`;
|
|
90
|
+
exports.BORDER_WHITE_ALPHA_12 = `1px solid ${exports.WHITE_ALPHA_12}`;
|
|
91
|
+
exports.BORDER_WHITE_ALPHA_20 = `1px solid ${exports.WHITE_ALPHA_20}`;
|
|
92
|
+
exports.BORDER_INFO_BLUE = '1px solid rgba(59, 130, 246, 0.4)';
|
|
93
|
+
exports.BORDER_STACK_FRAME_BLUE = `1px solid ${exports.STACK_FRAME_BORDER_BLUE}`;
|
|
94
|
+
exports.BORDER_TIMELINE_DROP_BLUE = `1px solid ${exports.TIMELINE_DROP_BLUE_ALPHA_75}`;
|
|
95
|
+
exports.BORDER_TIMELINE_MARQUEE_BLUE = `1px solid ${exports.TIMELINE_MARQUEE_BLUE_ALPHA_75}`;
|
|
96
|
+
exports.SHADOW_BLACK = `0 0 4px ${exports.BLACK}`;
|
|
97
|
+
exports.SHADOW_BLACK_ALPHA_50_TOWARDS_BOTTOM = `0 2px 8px ${exports.BLACK_ALPHA_50}`;
|
|
98
|
+
exports.SHADOW_BLACK_ALPHA_50_TOWARDS_TOP = `0 -2px 8px ${exports.BLACK_ALPHA_50}`;
|
|
99
|
+
exports.NOTIFICATION_SHADOW = `0 2px 3px ${exports.BLACK_OPAQUE}`;
|
|
100
|
+
exports.SERVER_DISCONNECTED_SHADOW = `0 2px 4px ${exports.BLACK_ALPHA_40}`;
|
|
101
|
+
exports.COLOR_PICKER_POPUP_SHADOW = `0 4px 16px ${exports.BLACK_ALPHA_50}`;
|
|
102
|
+
exports.COLOR_PICKER_HANDLE_SHADOW = `0 0 0 1px ${exports.BLACK_ALPHA_60}`;
|
|
103
|
+
exports.NOTIFICATION_BORDER = `0.25px solid ${exports.WHITE_ALPHA_10}`;
|
|
104
|
+
exports.HOT_MIDDLEWARE_ERROR_STYLE = 'color: #ff0000;';
|
|
105
|
+
exports.HOT_MIDDLEWARE_WARNING_STYLE = 'color: #999933;';
|
|
106
|
+
exports.FOCUS_BOX_SHADOW = `inset 1px 1px #555, inset -1px -1px #555, ` +
|
|
107
|
+
`inset 1px -1px #555, inset -1px 1px #555`;
|
|
108
|
+
exports.CHECKERBOARD_BACKGROUND_IMAGE = `
|
|
109
|
+
linear-gradient(
|
|
110
|
+
45deg,
|
|
111
|
+
${exports.BLACK_ALPHA_10} 25%,
|
|
112
|
+
${exports.TRANSPARENT} 25%
|
|
113
|
+
),
|
|
114
|
+
linear-gradient(135deg, ${exports.BLACK_ALPHA_10} 25%, ${exports.TRANSPARENT} 25%),
|
|
115
|
+
linear-gradient(45deg, ${exports.TRANSPARENT} 75%, ${exports.BLACK_ALPHA_10} 75%),
|
|
116
|
+
linear-gradient(135deg, ${exports.TRANSPARENT} 75%, ${exports.BLACK_ALPHA_10} 75%)
|
|
117
|
+
`;
|
|
118
|
+
exports.COLOR_PICKER_CHECKER_BACKGROUND_IMAGE = `linear-gradient(45deg, #888 25%, ${exports.TRANSPARENT} 25%), ` +
|
|
119
|
+
`linear-gradient(-45deg, #888 25%, ${exports.TRANSPARENT} 25%), ` +
|
|
120
|
+
`linear-gradient(45deg, ${exports.TRANSPARENT} 75%, #888 75%), ` +
|
|
121
|
+
`linear-gradient(-45deg, ${exports.TRANSPARENT} 75%, #888 75%)`;
|
|
122
|
+
exports.COLOR_PICKER_CHECKER_BACKGROUND_COLOR = '#444';
|
|
123
|
+
exports.COLOR_PICKER_SATURATION_VALUE_GRADIENT = `linear-gradient(to right, ${exports.WHITE_HEX}, ${exports.TRANSPARENT})`;
|
|
124
|
+
exports.COLOR_PICKER_SATURATION_BLACK_GRADIENT = `linear-gradient(to top, ${exports.BLACK_HEX}, ${exports.TRANSPARENT})`;
|
|
125
|
+
exports.COLOR_PICKER_ALPHA_TRANSPARENT = 'rgba(0, 0, 0, 0)';
|
|
126
|
+
exports.COLOR_PICKER_HUE_GRADIENT = 'linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)';
|
|
127
|
+
exports.ERROR_MESSAGE_MASK_IMAGE = `linear-gradient(to bottom, ${exports.WHITE} 60%, ${exports.TRANSPARENT})`;
|
|
128
|
+
exports.SELECTED_OUTLINE_DROP_SHADOW = `drop-shadow(0 0 1px ${exports.WHITE_ALPHA_20})`;
|
|
129
|
+
exports.SELECTED_OUTLINE_UV_DROP_SHADOW = `drop-shadow(0 1px 2px ${exports.BLACK_ALPHA_28})`;
|
|
130
|
+
exports.LOOPED_INDICATOR_DROP_SHADOW = `drop-shadow(0 0 2px ${exports.BLACK_ALPHA_90}) ` +
|
|
131
|
+
`drop-shadow(0 1px 2px ${exports.BLACK_ALPHA_80})`;
|
|
132
|
+
exports.TIMELINE_AUDIO_GRADIENT = 'linear-gradient(rgb(16 171 58), rgb(43 165 63) 60%)';
|
|
133
|
+
exports.TIMELINE_VIDEO_GRADIENT = 'linear-gradient(to top, #8e44ad, #9b59b6)';
|
|
134
|
+
exports.TIMELINE_IMAGE_GRADIENT = 'linear-gradient(to top, #2980b9, #3498db)';
|
|
27
135
|
const getBackgroundFromHoverState = ({ selected, hovered, }) => {
|
|
28
136
|
if (selected) {
|
|
29
137
|
if (hovered) {
|
|
@@ -32,8 +140,8 @@ const getBackgroundFromHoverState = ({ selected, hovered, }) => {
|
|
|
32
140
|
return exports.SELECTED_BACKGROUND;
|
|
33
141
|
}
|
|
34
142
|
if (hovered) {
|
|
35
|
-
return exports.
|
|
143
|
+
return exports.WHITE_ALPHA_06;
|
|
36
144
|
}
|
|
37
|
-
return
|
|
145
|
+
return exports.TRANSPARENT;
|
|
38
146
|
};
|
|
39
147
|
exports.getBackgroundFromHoverState = getBackgroundFromHoverState;
|
|
@@ -3,19 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.injectCSS = void 0;
|
|
4
4
|
const remotion_1 = require("remotion");
|
|
5
5
|
const scroll_to_default_props_path_1 = require("../components/RenderModal/SchemaEditor/scroll-to-default-props-path");
|
|
6
|
+
const colors_1 = require("./colors");
|
|
6
7
|
const makeDefaultGlobalCSS = () => {
|
|
7
8
|
const unhoveredDragAreaFactor = 2;
|
|
8
9
|
const fromMiddle = 50 / unhoveredDragAreaFactor;
|
|
9
10
|
const hoveredDragAreaFactor = 6;
|
|
10
11
|
const fromMiddleHovered = 50 / hoveredDragAreaFactor;
|
|
11
12
|
return `
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
html {
|
|
14
|
+
--remotion-cli-internals-blue: ${colors_1.BLUE};
|
|
15
|
+
--remotion-cli-internals-blue-hovered: ${colors_1.BLUE_HOVERED};
|
|
16
|
+
overscroll-behavior-y: none;
|
|
17
|
+
overscroll-behavior-x: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
19
20
|
body {
|
|
20
21
|
overscroll-behavior-y: none;
|
|
21
22
|
overscroll-behavior-x: none;
|
|
@@ -27,83 +28,84 @@ const makeDefaultGlobalCSS = () => {
|
|
|
27
28
|
user-select: none;
|
|
28
29
|
-webkit-user-select: none;
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
+
|
|
31
32
|
.remotion-splitter-horizontal {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
transform: scaleY(${unhoveredDragAreaFactor});
|
|
34
|
+
background: linear-gradient(
|
|
35
|
+
to bottom,
|
|
36
|
+
${colors_1.TRANSPARENT} ${50 - fromMiddle}%,
|
|
37
|
+
${colors_1.BLACK} ${50 - fromMiddle}%,
|
|
38
|
+
${colors_1.BLACK} ${50 + fromMiddle}%,
|
|
39
|
+
${colors_1.TRANSPARENT} ${50 + fromMiddle}%
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
42
43
|
.remotion-splitter-horizontal.remotion-splitter-active, .remotion-splitter-horizontal.remotion-splitter-hover {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
background: linear-gradient(
|
|
45
|
+
to bottom,
|
|
46
|
+
${colors_1.TRANSPARENT} ${50 - fromMiddleHovered}%,
|
|
47
|
+
var(--remotion-cli-internals-blue) ${50 - fromMiddleHovered}%,
|
|
48
|
+
var(--remotion-cli-internals-blue) ${50 + fromMiddleHovered}%,
|
|
49
|
+
${colors_1.TRANSPARENT} ${50 + fromMiddleHovered}%
|
|
50
|
+
);
|
|
50
51
|
cursor: row-resize;
|
|
51
52
|
transform: scaleY(${hoveredDragAreaFactor});
|
|
52
53
|
z-index: 1000;
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
+
|
|
55
56
|
.remotion-splitter-vertical {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
transform: scaleX(${unhoveredDragAreaFactor});
|
|
58
|
+
background: linear-gradient(
|
|
59
|
+
to right,
|
|
60
|
+
${colors_1.TRANSPARENT} ${50 - fromMiddle}%,
|
|
61
|
+
${colors_1.BLACK} ${50 - fromMiddle}%,
|
|
62
|
+
${colors_1.BLACK} ${50 + fromMiddle}%,
|
|
63
|
+
${colors_1.TRANSPARENT} ${50 + fromMiddle}%
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
66
67
|
.remotion-splitter-vertical.remotion-splitter-active, .remotion-splitter-vertical.remotion-splitter-hover {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
background: linear-gradient(
|
|
69
|
+
to right,
|
|
70
|
+
${colors_1.TRANSPARENT} ${50 - fromMiddleHovered}%,
|
|
71
|
+
var(--remotion-cli-internals-blue) ${50 - fromMiddleHovered}%,
|
|
72
|
+
var(--remotion-cli-internals-blue) ${50 + fromMiddleHovered}%,
|
|
73
|
+
${colors_1.TRANSPARENT} ${50 + fromMiddleHovered}%
|
|
74
|
+
);
|
|
74
75
|
transform: scaleX(${hoveredDragAreaFactor});
|
|
75
76
|
cursor: col-resize;
|
|
76
77
|
z-index: 1000;
|
|
77
78
|
}
|
|
78
|
-
|
|
79
|
+
|
|
79
80
|
input::-webkit-outer-spin-button,
|
|
80
81
|
input::-webkit-inner-spin-button {
|
|
81
82
|
-webkit-appearance: none;
|
|
82
83
|
margin: 0;
|
|
83
84
|
}
|
|
84
|
-
|
|
85
|
+
|
|
85
86
|
input:focus,
|
|
86
87
|
textarea:focus,
|
|
87
88
|
button:focus:not(.__remotion_input_dragger):not(.__remotion_color_swatch),
|
|
88
89
|
a:focus {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
inset -1px -1px #555,
|
|
93
|
-
inset 1px -1px #555,
|
|
94
|
-
inset -1px 1px #555;
|
|
95
|
-
}
|
|
90
|
+
outline: none;
|
|
91
|
+
box-shadow: ${colors_1.FOCUS_BOX_SHADOW};
|
|
92
|
+
}
|
|
96
93
|
|
|
97
94
|
.__remotion_color_swatch:focus {
|
|
98
95
|
outline: none;
|
|
99
96
|
}
|
|
100
|
-
|
|
97
|
+
|
|
98
|
+
.__remotion_input_dragger:focus-visible {
|
|
99
|
+
outline: none;
|
|
100
|
+
box-shadow: ${colors_1.FOCUS_BOX_SHADOW};
|
|
101
|
+
}
|
|
102
|
+
|
|
101
103
|
.__remotion_thumb,
|
|
102
104
|
.__remotion_thumb::-webkit-slider-thumb {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
-webkit-appearance: none;
|
|
106
|
+
-webkit-tap-highlight-color: ${colors_1.TRANSPARENT};
|
|
107
|
+
}
|
|
108
|
+
|
|
107
109
|
.__remotion_thumb {
|
|
108
110
|
pointer-events: none;
|
|
109
111
|
position: absolute;
|
|
@@ -114,32 +116,32 @@ const makeDefaultGlobalCSS = () => {
|
|
|
114
116
|
margin-left: -2px;
|
|
115
117
|
z-index: 2;
|
|
116
118
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
119
|
+
|
|
120
|
+
/* For Firefox browsers */
|
|
121
|
+
.__remotion_thumb::-moz-range-thumb {
|
|
122
|
+
border: ${colors_1.BORDER_BLACK};
|
|
123
|
+
border-radius: 2px;
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
height: 37px;
|
|
126
|
+
width: 10px;
|
|
127
|
+
pointer-events: all;
|
|
128
|
+
border-color: ${colors_1.BLACK};
|
|
129
|
+
background-color: ${colors_1.WHITE};
|
|
130
|
+
position: relative;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* For Chrome browsers */
|
|
134
|
+
.__remotion_thumb::-webkit-slider-thumb {
|
|
135
|
+
border: ${colors_1.BORDER_BLACK};
|
|
136
|
+
border-radius: 2px;
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
height: 39px;
|
|
139
|
+
width: 10px;
|
|
140
|
+
pointer-events: all;
|
|
141
|
+
border-color: ${colors_1.BLACK};
|
|
142
|
+
background-color: ${colors_1.WHITE};
|
|
143
|
+
position: relative;
|
|
144
|
+
}
|
|
143
145
|
|
|
144
146
|
.__remotion_input_dragger:hover span {
|
|
145
147
|
color: var(--remotion-cli-internals-blue-hovered) !important;
|
|
@@ -203,6 +203,7 @@ const makeClientRetryPayload = (job) => {
|
|
|
203
203
|
initialMuted: job.type === 'client-video' ? job.muted : null,
|
|
204
204
|
initialTransparent: job.type === 'client-video' ? job.transparent : null,
|
|
205
205
|
initialAllowHtmlInCanvas: job.allowHtmlInCanvas,
|
|
206
|
+
initialPageResponsiveness: job.type === 'client-video' ? job.pageResponsiveness : 'disabled',
|
|
206
207
|
};
|
|
207
208
|
};
|
|
208
209
|
exports.makeClientRetryPayload = makeClientRetryPayload;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnySchemaFieldInfo, type DragOverrides, type EffectSchemaFieldInfo, type InteractivitySchemaFieldInfo, type SchemaFieldGroup, type SchemaFieldGroupInfo, type PropStatuses, type SchemaFieldInfo, type SequenceControls } from '@remotion/studio-shared';
|
|
1
|
+
import { type AnySchemaFieldInfo, type DragOverrides, type EffectSchemaFieldInfo, type InteractivitySchemaFieldInfo, type SchemaFieldGroup, type SchemaFieldGroupInfo, type PropStatuses, type SchemaFieldInfo, type SequenceControls, type SaveSequencePropSourceEdit } from '@remotion/studio-shared';
|
|
2
2
|
import type { GetDragOverrides, GetEffectDragOverrides, InteractivitySchema as InteractivitySchemaShape, TSequence } from 'remotion';
|
|
3
3
|
import type { GetIsExpanded } from '../components/ExpandedTracksProvider';
|
|
4
4
|
import type { SequenceNodePathInfo } from './get-timeline-sequence-sort-key';
|
|
@@ -10,7 +10,9 @@ export declare const TIMELINE_ITEM_BORDER_BOTTOM = 1;
|
|
|
10
10
|
export declare const TIMELINE_TRACK_EXPANDED_HEIGHT = 100;
|
|
11
11
|
export declare const TREE_GROUP_ROW_HEIGHT = 22;
|
|
12
12
|
export declare const EXPANDED_SECTION_PADDING_RIGHT = 10;
|
|
13
|
-
export type TimelineFieldOnSave = (value: unknown
|
|
13
|
+
export type TimelineFieldOnSave = (value: unknown, options?: {
|
|
14
|
+
sourceEdit?: SaveSequencePropSourceEdit;
|
|
15
|
+
}) => Promise<void>;
|
|
14
16
|
export type TimelineFieldOnDragValueChange = (value: unknown) => void;
|
|
15
17
|
export type TimelineEffectGroupInfo = {
|
|
16
18
|
readonly effectIndex: number;
|