@remotion/studio 4.0.484 → 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/ContextMenu.js +75 -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 +3 -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/InlineCompositionName.d.ts +7 -0
- package/dist/components/InlineCompositionName.js +58 -0
- package/dist/components/InlineEditableTitle.d.ts +8 -0
- package/dist/components/InlineEditableTitle.js +134 -0
- 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/KeyframeInspector.js +1 -0
- package/dist/components/InspectorPanel/SequenceInspectorHeader.js +17 -30
- package/dist/components/InspectorPanel/common.js +2 -2
- package/dist/components/InspectorPanel/styles.js +5 -5
- package/dist/components/InspectorPanel.d.ts +1 -0
- package/dist/components/InspectorPanel.js +2 -2
- package/dist/components/InspectorSequenceSection.js +35 -2
- 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/CodemodFooter.d.ts +7 -1
- package/dist/components/NewComposition/CodemodFooter.js +17 -12
- package/dist/components/NewComposition/ComboBox.js +3 -3
- package/dist/components/NewComposition/DeleteComposition.js +7 -1
- package/dist/components/NewComposition/DeleteFolder.js +7 -1
- package/dist/components/NewComposition/DuplicateComposition.js +17 -10
- package/dist/components/NewComposition/InputAndValidationContainer.d.ts +3 -0
- package/dist/components/NewComposition/InputAndValidationContainer.js +15 -0
- package/dist/components/NewComposition/InputDragger.js +11 -3
- package/dist/components/NewComposition/MenuContent.js +1 -1
- package/dist/components/NewComposition/NewCompDuration.js +7 -6
- package/dist/components/NewComposition/NewComposition.d.ts +5 -1
- package/dist/components/NewComposition/NewComposition.js +31 -85
- 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/RenameComposition.js +13 -14
- package/dist/components/NewComposition/RenameFolder.js +9 -2
- package/dist/components/NewComposition/RenameStaticFile.js +22 -60
- package/dist/components/NewComposition/ValidationMessage.js +10 -2
- 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.d.ts +0 -3
- package/dist/components/OptionsPanel.js +8 -4
- 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 +5 -4
- package/dist/components/RenderModal/WarningIndicatorButton.js +4 -6
- package/dist/components/RenderModal/WebRenderModal.js +2 -1
- 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 +52 -10
- package/dist/components/SelectedOutlineOverlay.d.ts +1 -1
- package/dist/components/SelectedOutlineOverlay.js +16 -4
- 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/TimelineDeleteKeybindings.js +34 -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 +2 -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 +4 -5
- package/dist/components/Timeline/TimelineKeyframeControls.d.ts +1 -1
- package/dist/components/Timeline/TimelineKeyframeControls.js +3 -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 +8 -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 +7 -6
- package/dist/components/Timeline/TimelineSequence.js +17 -20
- package/dist/components/Timeline/TimelineSequenceFrame.js +3 -2
- package/dist/components/Timeline/TimelineSequenceItem.js +27 -108
- package/dist/components/Timeline/TimelineSequenceName.js +3 -2
- package/dist/components/Timeline/TimelineSequencePropItem.js +8 -4
- 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/TimelineTextContentField.d.ts +12 -0
- package/dist/components/Timeline/TimelineTextContentField.js +100 -0
- package/dist/components/Timeline/TimelineTimeIndicators.js +1 -1
- package/dist/components/Timeline/TimelineVideoInfo.js +2 -1
- package/dist/components/Timeline/TimelineWidthProvider.js +18 -3
- 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/focus-inspector-field.d.ts +16 -0
- package/dist/components/Timeline/focus-inspector-field.js +49 -0
- 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/split-selected-timeline-item.d.ts +38 -0
- package/dist/components/Timeline/split-selected-timeline-item.js +156 -0
- package/dist/components/Timeline/timeline-field-display-utils.js +2 -0
- 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/Timeline/use-expanded-track-keyframe-rows.js +1 -0
- package/dist/components/Timeline/use-rename-sequence.d.ts +30 -0
- package/dist/components/Timeline/use-rename-sequence.js +115 -0
- package/dist/components/Timeline/use-timeline-expanded-tree.d.ts +2 -1
- package/dist/components/Timeline/use-timeline-expanded-tree.js +3 -1
- package/dist/components/Timeline/use-timeline-height.js +1 -0
- 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/composition-menu-items.js +3 -0
- package/dist/components/effect-drag-and-drop.js +1 -0
- package/dist/components/folder-menu-items.js +20 -0
- package/dist/components/import-assets.d.ts +7 -1
- package/dist/components/import-assets.js +55 -1
- package/dist/components/options-sidebar-tabs.d.ts +4 -0
- package/dist/components/options-sidebar-tabs.js +5 -0
- package/dist/components/selected-outline-measurement.js +2 -1
- package/dist/components/selected-outline-types.d.ts +6 -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-9erwh79m.js → chunk-975rp13y.js} +11165 -7032
- package/dist/esm/chunk-jefhcs5z.js +164 -0
- package/dist/esm/internals.mjs +11166 -6999
- package/dist/esm/previewEntry.mjs +10697 -6526
- 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/render-codec-label.d.ts +1 -1
- package/dist/helpers/timeline-layout.d.ts +7 -4
- package/dist/helpers/timeline-layout.js +3 -1
- package/dist/helpers/use-create-composition.d.ts +35 -0
- package/dist/helpers/use-create-composition.js +111 -0
- package/dist/helpers/use-menu-structure.js +31 -3
- package/dist/helpers/use-rename-composition.d.ts +16 -0
- package/dist/helpers/use-rename-composition.js +49 -0
- 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 +7 -0
- package/dist/state/timeline-zoom.js +17 -14
- package/dist/state/z-index.d.ts +1 -0
- package/dist/state/z-index.js +11 -2
- package/package.json +12 -12
- package/dist/esm/chunk-6jf1natv.js +0 -25
|
@@ -108,6 +108,9 @@ const getCompositionMenuItems = ({ composition, connectionStatus, resolvedLocati
|
|
|
108
108
|
closeMenu();
|
|
109
109
|
setSelectedModal({
|
|
110
110
|
type: 'new-comp',
|
|
111
|
+
folderName: null,
|
|
112
|
+
parentName: null,
|
|
113
|
+
stack: null,
|
|
111
114
|
});
|
|
112
115
|
},
|
|
113
116
|
quickSwitcherLabel: 'New composition...',
|
|
@@ -24,6 +24,7 @@ const isGenericDragType = (type) => {
|
|
|
24
24
|
const hasImportableAssetDragType = (dataTransfer) => {
|
|
25
25
|
return Array.from(dataTransfer.types).some((type) => type === 'Files' ||
|
|
26
26
|
type === studio_shared_1.ASSET_DRAG_MIME_TYPE ||
|
|
27
|
+
type === studio_shared_1.COMPOSITION_DRAG_MIME_TYPE ||
|
|
27
28
|
type === studio_shared_1.COMPONENT_DRAG_MIME_TYPE ||
|
|
28
29
|
type === studio_shared_1.SFX_DRAG_MIME_TYPE ||
|
|
29
30
|
type === 'text/uri-list' ||
|
|
@@ -76,6 +76,26 @@ const getFolderMenuItems = ({ closeMenu, connectionStatus, folder, readOnlyStudi
|
|
|
76
76
|
id: 'show-folder-in-editor-divider',
|
|
77
77
|
}
|
|
78
78
|
: null,
|
|
79
|
+
{
|
|
80
|
+
id: 'new-composition-in-folder',
|
|
81
|
+
keyHint: null,
|
|
82
|
+
label: `New composition...`,
|
|
83
|
+
leftItem: null,
|
|
84
|
+
onClick: () => {
|
|
85
|
+
closeMenu();
|
|
86
|
+
setSelectedModal({
|
|
87
|
+
type: 'new-comp',
|
|
88
|
+
folderName: folder.name,
|
|
89
|
+
parentName: folder.parent,
|
|
90
|
+
stack: folder.stack,
|
|
91
|
+
});
|
|
92
|
+
},
|
|
93
|
+
quickSwitcherLabel: 'New composition in folder...',
|
|
94
|
+
subMenu: null,
|
|
95
|
+
type: 'item',
|
|
96
|
+
value: 'new-composition-in-folder',
|
|
97
|
+
disabled: codemodDisabled,
|
|
98
|
+
},
|
|
79
99
|
{
|
|
80
100
|
id: 'rename-folder',
|
|
81
101
|
keyHint: null,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentProp, type FileType, type InsertableCompositionElementPosition } from '@remotion/studio-shared';
|
|
1
|
+
import { type CompositionDragData, type ComponentProp, type FileType, type InsertableCompositionElementPosition } from '@remotion/studio-shared';
|
|
2
2
|
import type { Dimensions } from '../helpers/is-current-selected-still';
|
|
3
3
|
export type InsertElementDropPosition = {
|
|
4
4
|
readonly centerX: number;
|
|
@@ -72,6 +72,12 @@ export declare const insertComponent: ({ component, compositionFile, composition
|
|
|
72
72
|
compositionId: string;
|
|
73
73
|
dropPosition: InsertElementDropPosition | null;
|
|
74
74
|
}) => Promise<void>;
|
|
75
|
+
export declare const insertComposition: ({ composition, compositionFile, compositionId, dropPosition, }: {
|
|
76
|
+
composition: CompositionDragData;
|
|
77
|
+
compositionFile: string;
|
|
78
|
+
compositionId: string;
|
|
79
|
+
dropPosition: InsertElementDropPosition | null;
|
|
80
|
+
}) => Promise<void>;
|
|
75
81
|
export declare const insertElement: ({ compositionFile, compositionId, dropPosition, element, }: {
|
|
76
82
|
compositionFile: string;
|
|
77
83
|
compositionId: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.insertElement = exports.insertComponent = exports.insertExistingAssets = exports.insertRemoteAudio = exports.importRemoteAsset = exports.importAssets = exports.pickFilesToImport = exports.getComponentDimensions = exports.getAssetElementFromPath = exports.getAssetElement = void 0;
|
|
3
|
+
exports.insertElement = exports.insertComposition = exports.insertComponent = exports.insertExistingAssets = exports.insertRemoteAudio = exports.importRemoteAsset = exports.importAssets = exports.pickFilesToImport = exports.getComponentDimensions = exports.getAssetElementFromPath = exports.getAssetElement = void 0;
|
|
4
4
|
const media_utils_1 = require("@remotion/media-utils");
|
|
5
5
|
const studio_shared_1 = require("@remotion/studio-shared");
|
|
6
6
|
const remotion_1 = require("remotion");
|
|
7
|
+
const no_react_1 = require("remotion/no-react");
|
|
7
8
|
const get_static_files_1 = require("../api/get-static-files");
|
|
8
9
|
const write_static_file_1 = require("../api/write-static-file");
|
|
9
10
|
const install_required_package_1 = require("../helpers/install-required-package");
|
|
@@ -569,6 +570,59 @@ const insertComponent = async ({ component, compositionFile, compositionId, drop
|
|
|
569
570
|
}
|
|
570
571
|
};
|
|
571
572
|
exports.insertComponent = insertComponent;
|
|
573
|
+
const serializeResolvedPropsForSourceCode = (props) => {
|
|
574
|
+
return no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
|
|
575
|
+
data: props,
|
|
576
|
+
indent: undefined,
|
|
577
|
+
staticBase: window.remotion_staticBase,
|
|
578
|
+
}).serializedString;
|
|
579
|
+
};
|
|
580
|
+
const insertComposition = async ({ composition, compositionFile, compositionId, dropPosition, }) => {
|
|
581
|
+
if (composition.compositionId === compositionId) {
|
|
582
|
+
(0, NotificationCenter_1.showNotification)('Cannot add a composition to itself', 3000);
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
585
|
+
if (composition.compositionFile === null) {
|
|
586
|
+
(0, NotificationCenter_1.showNotification)('Could not find composition source file', 3000);
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
try {
|
|
590
|
+
const resolver = remotion_1.Internals.resolveCompositionsRef.current;
|
|
591
|
+
if (!resolver) {
|
|
592
|
+
throw new Error('No composition resolver available');
|
|
593
|
+
}
|
|
594
|
+
const calculated = await resolver.resolveComposition(composition.compositionId);
|
|
595
|
+
const dimensions = {
|
|
596
|
+
width: calculated.width,
|
|
597
|
+
height: calculated.height,
|
|
598
|
+
};
|
|
599
|
+
const inserted = await insertAssetElement({
|
|
600
|
+
compositionFile,
|
|
601
|
+
compositionId,
|
|
602
|
+
element: {
|
|
603
|
+
type: 'composition',
|
|
604
|
+
compositionId: composition.compositionId,
|
|
605
|
+
compositionFile: composition.compositionFile,
|
|
606
|
+
durationInFrames: calculated.durationInFrames,
|
|
607
|
+
width: calculated.width,
|
|
608
|
+
height: calculated.height,
|
|
609
|
+
serializedResolvedPropsWithCustomSchema: serializeResolvedPropsForSourceCode(calculated.props),
|
|
610
|
+
position: getCenteredPosition({
|
|
611
|
+
dimensions,
|
|
612
|
+
dropPosition,
|
|
613
|
+
}),
|
|
614
|
+
},
|
|
615
|
+
});
|
|
616
|
+
if (!inserted) {
|
|
617
|
+
return;
|
|
618
|
+
}
|
|
619
|
+
(0, NotificationCenter_1.showNotification)(`Added ${composition.compositionId} to ${compositionId}`, 2000);
|
|
620
|
+
}
|
|
621
|
+
catch (error) {
|
|
622
|
+
(0, NotificationCenter_1.showNotification)(`Could not add composition: ${error instanceof Error ? error.message : String(error)}`, 4000);
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
exports.insertComposition = insertComposition;
|
|
572
626
|
const insertElement = async ({ compositionFile, compositionId, dropPosition, element, }) => {
|
|
573
627
|
try {
|
|
574
628
|
const response = await (0, call_api_1.callApi)('/api/insert-element', {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.outlinesAreEqual = exports.measureOutlines = exports.getSequencesWithSelectableOutlines = exports.getSelectedTransformOriginInfo = exports.getSelectedEffectFieldsBySequenceKey = exports.getOutlineSelectionInteraction = exports.getSequenceKeysContainingSelection = exports.getSelectedSequenceKeys = exports.getTransformedSvgViewportPoints = exports.getSelectedOutlineRotationPivot = exports.getSelectedOutlineRotationCornerInfo = exports.getRotationCursor = exports.getSelectedOutlineRotationDeltaDegrees = exports.getAngleDegrees = exports.vectorBetween = exports.vectorLength = exports.dot = exports.getOutlineCenter = exports.midpoint = exports.pointToString = void 0;
|
|
4
4
|
const calculate_timeline_1 = require("../helpers/calculate-timeline");
|
|
5
|
+
const colors_1 = require("../helpers/colors");
|
|
5
6
|
const get_box_quads_ponyfill_1 = require("../helpers/get-box-quads-ponyfill");
|
|
6
7
|
const selected_outline_geometry_1 = require("./selected-outline-geometry");
|
|
7
8
|
const selected_outline_types_1 = require("./selected-outline-types");
|
|
@@ -53,7 +54,7 @@ const getRotationCursor = (rotation) => {
|
|
|
53
54
|
? ''
|
|
54
55
|
: `<g transform="rotate(${normalizedRotation} 32 32)">`;
|
|
55
56
|
const transformEnd = normalizedRotation === 0 ? '' : '</g>';
|
|
56
|
-
const svg = `<svg width="24" height="24" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">${transform}<g transform="scale(0.876712329)" filter="url(#filter0_d_1_14)"><path d="M10.9111 17.7687C10.3413 18.3701 10.367 19.3195 10.9684 19.8893L20.7687 29.1738C21.3701 29.7436 22.3195 29.7179 22.8893 29.1165C23.459 28.5151 23.4334 27.5657 22.832 26.996L14.1206 18.7431L22.3735 10.0316C22.9432 9.43022 22.9176 8.48082 22.3162 7.91107C21.7148 7.34133 20.7654 7.36699 20.1956 7.96839L10.9111 17.7687ZM49.3923 58.3118C49.9509 58.9235 50.8996 58.9667 51.5114 58.4081L61.481 49.3055C62.0927 48.7469 62.1359 47.7981 61.5773 47.1863C61.0187 46.5745 60.0699 46.5314 59.4581 47.09L50.5963 55.1812L42.5051 46.3194C41.9465 45.7076 40.9977 45.6645 40.386 46.2231C39.7742 46.7817 39.7311 47.7304 40.2896 48.3422L49.3923 58.3118ZM12.6747 18.7431L13 19.8893C22.1283 19.6426 30.7584 21.4283 37.8564 26.6927C44.8518 31.8809 49.734 39.8538 49 56H50.5963H51.5114C52.2774 39.1461 47.6482 30.2198 39.6436 24.2831C31.7416 18.4224 22.3717 17.2467 13 17.5L12.6747 18.7431Z" fill="
|
|
57
|
+
const svg = `<svg width="24" height="24" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">${transform}<g transform="scale(0.876712329)" filter="url(#filter0_d_1_14)"><path d="M10.9111 17.7687C10.3413 18.3701 10.367 19.3195 10.9684 19.8893L20.7687 29.1738C21.3701 29.7436 22.3195 29.7179 22.8893 29.1165C23.459 28.5151 23.4334 27.5657 22.832 26.996L14.1206 18.7431L22.3735 10.0316C22.9432 9.43022 22.9176 8.48082 22.3162 7.91107C21.7148 7.34133 20.7654 7.36699 20.1956 7.96839L10.9111 17.7687ZM49.3923 58.3118C49.9509 58.9235 50.8996 58.9667 51.5114 58.4081L61.481 49.3055C62.0927 48.7469 62.1359 47.7981 61.5773 47.1863C61.0187 46.5745 60.0699 46.5314 59.4581 47.09L50.5963 55.1812L42.5051 46.3194C41.9465 45.7076 40.9977 45.6645 40.386 46.2231C39.7742 46.7817 39.7311 47.7304 40.2896 48.3422L49.3923 58.3118ZM12.6747 18.7431L13 19.8893C22.1283 19.6426 30.7584 21.4283 37.8564 26.6927C44.8518 31.8809 49.734 39.8538 49 56H50.5963H51.5114C52.2774 39.1461 47.6482 30.2198 39.6436 24.2831C31.7416 18.4224 22.3717 17.2467 13 17.5L12.6747 18.7431Z" fill="${colors_1.BLACK}"/><path d="M19.1064 6.93652C20.2459 5.73379 22.1448 5.68278 23.3477 6.82227C24.5505 7.96181 24.6022 9.86076 23.4629 11.0635L18.7373 16.0508C26.3487 16.4239 33.9128 18.1651 40.5371 23.0781C44.7339 26.1907 48.0794 30.1189 50.2568 35.4834C51.9666 39.6958 52.9327 44.7395 53.0742 50.8867L58.4463 45.9824C59.6697 44.8654 61.5673 44.9514 62.6846 46.1748C63.8018 47.3985 63.7155 49.296 62.4922 50.4131L52.5225 59.5156C51.337 60.5979 49.5196 60.5507 48.3916 59.4346L48.2842 59.3232L39.1816 49.3535C38.0648 48.1301 38.1507 46.2324 39.374 45.1152C40.5975 43.9979 42.4961 44.0841 43.6133 45.3076L47.4756 49.5381C47.1908 44.7613 46.2876 40.9448 44.9482 37.8291C43.0666 33.4521 40.2851 30.3614 36.9629 27.8975C31.8259 24.0875 25.8071 22.1663 19.2891 21.5732L23.8633 25.9072C25.0662 27.0468 25.1178 28.9457 23.9785 30.1484C22.8746 31.3135 21.0576 31.3982 19.8516 30.3662L19.7373 30.2627L9.93652 20.9785C8.73384 19.839 8.6828 17.9401 9.82227 16.7373L19.1064 6.93652Z" stroke="${colors_1.WHITE}" stroke-width="3"/></g>${transformEnd}<defs><filter id="filter0_d_1_14" x="0" y="0" width="72.4696" height="72.3004" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="3"/><feGaussianBlur stdDeviation="3.75"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1_14"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1_14" result="shape"/></filter></defs></svg>`;
|
|
57
58
|
return `url("data:image/svg+xml,${encodeURIComponent(svg)}") 12 12, alias`;
|
|
58
59
|
};
|
|
59
60
|
exports.getRotationCursor = getRotationCursor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CanUpdateSequencePropStatusKeyframed, CanUpdateSequencePropStatusStatic, InteractivitySchemaField, SequencePropsSubscriptionKey,
|
|
1
|
+
import type { CanUpdateSequencePropStatus, CanUpdateSequencePropStatusKeyframed, CanUpdateSequencePropStatusStatic, InteractivitySchema, InteractivitySchemaField, SequencePropsSubscriptionKey, TSequence } from 'remotion';
|
|
2
2
|
import type { SequenceNodePathInfo } from '../helpers/get-timeline-sequence-sort-key';
|
|
3
3
|
import type { ComboboxValue } from './NewComposition/ComboBox';
|
|
4
4
|
import type { SelectedOutlineUvHandle } from './selected-outline-uv';
|
|
@@ -18,6 +18,7 @@ export type SelectedOutlineTarget = {
|
|
|
18
18
|
readonly scaleDrag: SelectedOutlineScaleDragTarget | null;
|
|
19
19
|
readonly rotationDrag: SelectedOutlineRotationDragTarget | null;
|
|
20
20
|
readonly transformOriginDrag: SelectedOutlineTransformOriginDragTarget | null;
|
|
21
|
+
readonly textEdit: SelectedOutlineTextEditTarget | null;
|
|
21
22
|
readonly uvHandles: readonly SelectedOutlineUvHandle[];
|
|
22
23
|
};
|
|
23
24
|
export type SelectedOutlineEffectDropTarget = {
|
|
@@ -25,6 +26,10 @@ export type SelectedOutlineEffectDropTarget = {
|
|
|
25
26
|
readonly fileName: string;
|
|
26
27
|
readonly nodePath: SequencePropsSubscriptionKey;
|
|
27
28
|
};
|
|
29
|
+
export type SelectedOutlineTextEditTarget = {
|
|
30
|
+
readonly nodePath: SequencePropsSubscriptionKey;
|
|
31
|
+
readonly propStatus: CanUpdateSequencePropStatus;
|
|
32
|
+
};
|
|
28
33
|
export type SelectedOutlineDragTarget = {
|
|
29
34
|
readonly propStatus: CanUpdateSequencePropStatusStatic | CanUpdateSequencePropStatusKeyframed;
|
|
30
35
|
readonly clientId: string;
|
|
@@ -11,9 +11,9 @@ const CalculateMetadataErrorExplainer = () => {
|
|
|
11
11
|
exports.CalculateMetadataErrorExplainer = CalculateMetadataErrorExplainer;
|
|
12
12
|
const style = {
|
|
13
13
|
borderRadius: 3,
|
|
14
|
-
color:
|
|
14
|
+
color: colors_1.WHITE,
|
|
15
15
|
padding: 12,
|
|
16
|
-
backgroundColor: colors_1.
|
|
16
|
+
backgroundColor: colors_1.BLACK_HEX,
|
|
17
17
|
fontSize: 14,
|
|
18
18
|
fontFamily: 'sans-serif',
|
|
19
19
|
};
|
|
@@ -10,7 +10,7 @@ const container = {
|
|
|
10
10
|
width: '100%',
|
|
11
11
|
};
|
|
12
12
|
const frame = {
|
|
13
|
-
backgroundColor:
|
|
13
|
+
backgroundColor: colors_1.ERROR_CODE_FRAME_BACKGROUND,
|
|
14
14
|
marginBottom: 20,
|
|
15
15
|
overflowY: 'auto',
|
|
16
16
|
};
|
|
@@ -32,14 +32,16 @@ const CodeFrame = ({ source, lineNumberWidth }) => {
|
|
|
32
32
|
return (jsx_runtime_1.jsxs("div", { style: container, children: [
|
|
33
33
|
jsx_runtime_1.jsx("div", { style: {
|
|
34
34
|
...lineNumber,
|
|
35
|
-
backgroundColor: s.highlight
|
|
36
|
-
|
|
35
|
+
backgroundColor: s.highlight
|
|
36
|
+
? colors_1.WHITE
|
|
37
|
+
: colors_1.ERROR_CODE_FRAME_LINE_BACKGROUND,
|
|
38
|
+
color: s.highlight ? colors_1.BLACK : colors_1.WHITE_ALPHA_60,
|
|
37
39
|
}, children: String(s.lineNumber).padStart(lineNumberWidth, ' ') }), jsx_runtime_1.jsx("div", { style: {
|
|
38
40
|
fontFamily: 'monospace',
|
|
39
41
|
whiteSpace: 'pre',
|
|
40
42
|
tabSize: 2,
|
|
41
|
-
color: s.highlight ?
|
|
42
|
-
backgroundColor: s.highlight ? colors_1.BLUE :
|
|
43
|
+
color: s.highlight ? colors_1.WHITE : colors_1.WHITE_ALPHA_60,
|
|
44
|
+
backgroundColor: s.highlight ? colors_1.BLUE : colors_1.TRANSPARENT,
|
|
43
45
|
lineHeight: 1.7,
|
|
44
46
|
paddingRight: 12,
|
|
45
47
|
paddingLeft: 12,
|
|
@@ -12,7 +12,7 @@ exports.listItemStyle = {
|
|
|
12
12
|
cursor: 'pointer',
|
|
13
13
|
borderRadius: 4,
|
|
14
14
|
lineHeight: 1.4,
|
|
15
|
-
color: colors_1.
|
|
15
|
+
color: colors_1.WHITE_HEX,
|
|
16
16
|
fontFamily: 'inherit',
|
|
17
17
|
fontSize: 14,
|
|
18
18
|
};
|
|
@@ -20,7 +20,7 @@ exports.listItemActiveStyle = {
|
|
|
20
20
|
backgroundColor: colors_1.SELECTED_BACKGROUND,
|
|
21
21
|
};
|
|
22
22
|
exports.listItemHoverStyle = {
|
|
23
|
-
backgroundColor: colors_1.
|
|
23
|
+
backgroundColor: colors_1.WHITE_ALPHA_06,
|
|
24
24
|
};
|
|
25
25
|
const CompositionIdListItem = ({ id, isActive, onSelect }) => {
|
|
26
26
|
const [hover, setHover] = react_1.default.useState(false);
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DismissButton = 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 url_state_1 = require("../../helpers/url-state");
|
|
7
8
|
const size = {
|
|
8
9
|
height: 20,
|
|
@@ -11,7 +12,7 @@ const size = {
|
|
|
11
12
|
const style = {
|
|
12
13
|
appearance: 'none',
|
|
13
14
|
WebkitAppearance: 'none',
|
|
14
|
-
backgroundColor:
|
|
15
|
+
backgroundColor: colors_1.TRANSPARENT,
|
|
15
16
|
border: 'none',
|
|
16
17
|
cursor: 'pointer',
|
|
17
18
|
};
|
|
@@ -19,6 +20,6 @@ const DismissButton = () => {
|
|
|
19
20
|
const dismiss = (0, react_1.useCallback)(() => {
|
|
20
21
|
(0, url_state_1.clearUrl)();
|
|
21
22
|
}, []);
|
|
22
|
-
return (jsx_runtime_1.jsx("button", { type: "button", style: style, onClick: dismiss, children: jsx_runtime_1.jsx("svg", { focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", style: size, children: jsx_runtime_1.jsx("path", { fill:
|
|
23
|
+
return (jsx_runtime_1.jsx("button", { type: "button", style: style, onClick: dismiss, children: jsx_runtime_1.jsx("svg", { focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", style: size, children: jsx_runtime_1.jsx("path", { fill: colors_1.WHITE, d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }) }) }));
|
|
23
24
|
};
|
|
24
25
|
exports.DismissButton = DismissButton;
|
|
@@ -4,6 +4,7 @@ exports.ErrorLoader = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const studio_shared_1 = require("@remotion/studio-shared");
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
+
const colors_1 = require("../../helpers/colors");
|
|
7
8
|
const error_origin_1 = require("../error-origin");
|
|
8
9
|
const listen_to_runtime_errors_1 = require("../react-overlay/listen-to-runtime-errors");
|
|
9
10
|
const ErrorDisplay_1 = require("./ErrorDisplay");
|
|
@@ -20,12 +21,12 @@ const container = {
|
|
|
20
21
|
paddingTop: '5vh',
|
|
21
22
|
};
|
|
22
23
|
const errorWhileErrorStyle = {
|
|
23
|
-
color:
|
|
24
|
+
color: colors_1.WHITE,
|
|
24
25
|
lineHeight: 1.5,
|
|
25
26
|
whiteSpace: 'pre',
|
|
26
27
|
};
|
|
27
28
|
const errorWhileSymbolicatingStyle = {
|
|
28
|
-
color:
|
|
29
|
+
color: colors_1.WHITE,
|
|
29
30
|
lineHeight: 1.5,
|
|
30
31
|
marginTop: 24,
|
|
31
32
|
opacity: 0.7,
|
|
@@ -10,7 +10,7 @@ const fontSize = 24;
|
|
|
10
10
|
const lineHeight = 1.5;
|
|
11
11
|
const maxLines = 2;
|
|
12
12
|
const buttonSize = 32;
|
|
13
|
-
const maskImage =
|
|
13
|
+
const maskImage = colors_1.ERROR_MESSAGE_MASK_IMAGE;
|
|
14
14
|
const container = {
|
|
15
15
|
position: 'relative',
|
|
16
16
|
marginBottom: 15,
|
|
@@ -27,7 +27,7 @@ const moreLine = {
|
|
|
27
27
|
display: 'flex',
|
|
28
28
|
justifyContent: 'center',
|
|
29
29
|
position: 'absolute',
|
|
30
|
-
border: `1px solid ${colors_1.
|
|
30
|
+
border: `1px solid ${colors_1.WHITE_ALPHA_05}`,
|
|
31
31
|
height: 0,
|
|
32
32
|
marginTop: 4,
|
|
33
33
|
};
|
|
@@ -36,13 +36,13 @@ const moreButton = {
|
|
|
36
36
|
width: buttonSize,
|
|
37
37
|
borderRadius: buttonSize / 2,
|
|
38
38
|
backgroundColor: colors_1.INPUT_BACKGROUND,
|
|
39
|
-
border: `1px solid ${colors_1.
|
|
39
|
+
border: `1px solid ${colors_1.BLACK_ALPHA_60}`,
|
|
40
40
|
marginTop: -buttonSize / 2,
|
|
41
41
|
display: 'flex',
|
|
42
42
|
justifyContent: 'center',
|
|
43
43
|
alignItems: 'center',
|
|
44
44
|
cursor: 'pointer',
|
|
45
|
-
color:
|
|
45
|
+
color: colors_1.WHITE,
|
|
46
46
|
};
|
|
47
47
|
const ErrorMessage = ({ message }) => {
|
|
48
48
|
const [expanded, setExpanded] = (0, react_1.useState)(false);
|
|
@@ -9,7 +9,7 @@ const use_keybinding_1 = require("../../helpers/use-keybinding");
|
|
|
9
9
|
const ShortcutHint_1 = require("./ShortcutHint");
|
|
10
10
|
const buttonStyle = {
|
|
11
11
|
backgroundColor: colors_1.BLUE,
|
|
12
|
-
color:
|
|
12
|
+
color: colors_1.WHITE,
|
|
13
13
|
};
|
|
14
14
|
const HelpLink = ({ canHaveKeyboardShortcuts, link }) => {
|
|
15
15
|
const openLink = (0, react_1.useCallback)(() => {
|
|
@@ -6,22 +6,22 @@ const react_1 = require("react");
|
|
|
6
6
|
const colors_1 = require("../../helpers/colors");
|
|
7
7
|
const container = {
|
|
8
8
|
borderRadius: 3,
|
|
9
|
-
color:
|
|
9
|
+
color: colors_1.WHITE,
|
|
10
10
|
padding: 12,
|
|
11
|
-
backgroundColor: colors_1.
|
|
11
|
+
backgroundColor: colors_1.BLACK_HEX,
|
|
12
12
|
fontSize: 14,
|
|
13
13
|
fontFamily: 'sans-serif',
|
|
14
14
|
lineHeight: 1.5,
|
|
15
15
|
};
|
|
16
16
|
const codeStyle = {
|
|
17
|
-
backgroundColor:
|
|
17
|
+
backgroundColor: colors_1.WHITE_ALPHA_10,
|
|
18
18
|
padding: '2px 5px',
|
|
19
19
|
borderRadius: 3,
|
|
20
20
|
fontFamily: 'monospace',
|
|
21
21
|
fontSize: 13,
|
|
22
22
|
};
|
|
23
23
|
const linkStyle = {
|
|
24
|
-
color:
|
|
24
|
+
color: colors_1.ERROR_LINK_COLOR,
|
|
25
25
|
};
|
|
26
26
|
const MediaPlaybackErrorExplainer = ({ src }) => {
|
|
27
27
|
const [result, setResult] = (0, react_1.useState)({ type: 'loading' });
|
|
@@ -5,13 +5,14 @@ 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 MenuToolbar_1 = require("../../components/MenuToolbar");
|
|
8
|
+
const colors_1 = require("../../helpers/colors");
|
|
8
9
|
const keybindings_1 = require("../../state/keybindings");
|
|
9
10
|
const ErrorLoader_1 = require("./ErrorLoader");
|
|
10
11
|
exports.setErrorsRef = (0, react_1.createRef)();
|
|
11
12
|
const errorsAreTheSame = (first, second) => {
|
|
12
13
|
return first.stack === second.stack && first.message === second.message;
|
|
13
14
|
};
|
|
14
|
-
const BACKGROUND_COLOR =
|
|
15
|
+
const BACKGROUND_COLOR = colors_1.BACKGROUND_HEX;
|
|
15
16
|
const Overlay = () => {
|
|
16
17
|
const [errors, setErrors] = (0, react_1.useState)({ type: 'clear' });
|
|
17
18
|
const addError = (0, react_1.useCallback)((err) => {
|
|
@@ -43,7 +44,7 @@ const Overlay = () => {
|
|
|
43
44
|
return (jsx_runtime_1.jsx(keybindings_1.KeybindingContextProvider, { children: jsx_runtime_1.jsx(remotion_1.AbsoluteFill, { style: {
|
|
44
45
|
backgroundColor: BACKGROUND_COLOR,
|
|
45
46
|
overflow: 'auto',
|
|
46
|
-
color:
|
|
47
|
+
color: colors_1.WHITE,
|
|
47
48
|
top: MenuToolbar_1.MENU_TOOLBAR_HEIGHT,
|
|
48
49
|
height: `calc(100% - ${MenuToolbar_1.MENU_TOOLBAR_HEIGHT}px)`,
|
|
49
50
|
}, children: errors.errors.map((err, i) => {
|
|
@@ -4,12 +4,13 @@ exports.StackElement = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const Button_1 = require("../../components/Button");
|
|
7
|
+
const colors_1 = require("../../helpers/colors");
|
|
7
8
|
const open_in_editor_1 = require("../../helpers/open-in-editor");
|
|
8
9
|
const carets_1 = require("./carets");
|
|
9
10
|
const CodeFrame_1 = require("./CodeFrame");
|
|
10
11
|
const format_location_1 = require("./format-location");
|
|
11
12
|
const location = {
|
|
12
|
-
color:
|
|
13
|
+
color: colors_1.WHITE_ALPHA_60,
|
|
13
14
|
fontFamily: 'monospace',
|
|
14
15
|
fontSize: 14,
|
|
15
16
|
};
|
|
@@ -21,8 +22,8 @@ const header = {
|
|
|
21
22
|
display: 'flex',
|
|
22
23
|
flexDirection: 'row',
|
|
23
24
|
alignItems: 'center',
|
|
24
|
-
borderBottom:
|
|
25
|
-
backgroundColor:
|
|
25
|
+
borderBottom: colors_1.BORDER_STACK_FRAME_BLUE,
|
|
26
|
+
backgroundColor: colors_1.BLACK,
|
|
26
27
|
};
|
|
27
28
|
const left = {
|
|
28
29
|
paddingRight: 14,
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Symbolicating = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const colors_1 = require("../../helpers/colors");
|
|
5
6
|
const Symbolicating = (props) => {
|
|
6
|
-
return (jsx_runtime_1.jsxs("svg", { id: "loading", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "16", height: "16", fill:
|
|
7
|
+
return (jsx_runtime_1.jsxs("svg", { id: "loading", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "16", height: "16", fill: colors_1.WHITE, ...props, children: [
|
|
7
8
|
jsx_runtime_1.jsx("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(0 16 16)", children: jsx_runtime_1.jsx("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0" }) }), jsx_runtime_1.jsx("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(45 16 16)", children: jsx_runtime_1.jsx("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.125s" }) }), jsx_runtime_1.jsx("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(90 16 16)", children: jsx_runtime_1.jsx("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.25s" }) }), jsx_runtime_1.jsx("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(135 16 16)", children: jsx_runtime_1.jsx("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.375s" }) }), jsx_runtime_1.jsx("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(180 16 16)", children: jsx_runtime_1.jsx("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.5s" }) }), jsx_runtime_1.jsx("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(225 16 16)", children: jsx_runtime_1.jsx("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.675s" }) }), jsx_runtime_1.jsx("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(270 16 16)", children: jsx_runtime_1.jsx("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.75s" }) }), jsx_runtime_1.jsx("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(315 16 16)", children: jsx_runtime_1.jsx("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.875s" }) })
|
|
8
9
|
] }));
|
|
9
10
|
};
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CaretDown = exports.CaretRight = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const colors_1 = require("../../helpers/colors");
|
|
5
6
|
const CaretRight = ({ size }) => {
|
|
6
|
-
return (jsx_runtime_1.jsx("svg", { style: { height: size !== null && size !== void 0 ? size : 20 }, "aria-hidden": "true", focusable: "false", role: "img", viewBox: "0 0 192 512", children: jsx_runtime_1.jsx("path", { fill:
|
|
7
|
+
return (jsx_runtime_1.jsx("svg", { style: { height: size !== null && size !== void 0 ? size : 20 }, "aria-hidden": "true", focusable: "false", role: "img", viewBox: "0 0 192 512", children: jsx_runtime_1.jsx("path", { fill: colors_1.CURRENT_COLOR, d: "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z" }) }));
|
|
7
8
|
};
|
|
8
9
|
exports.CaretRight = CaretRight;
|
|
9
10
|
const CaretDown = ({ invert, size }) => {
|
|
10
|
-
return (jsx_runtime_1.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", style: { height: size !== null && size !== void 0 ? size : 20, transform: invert ? `rotate(180deg)` : '' }, children: jsx_runtime_1.jsx("path", { fill:
|
|
11
|
+
return (jsx_runtime_1.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", style: { height: size !== null && size !== void 0 ? size : 20, transform: invert ? `rotate(180deg)` : '' }, children: jsx_runtime_1.jsx("path", { fill: colors_1.CURRENT_COLOR, d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
|
|
11
12
|
};
|
|
12
13
|
exports.CaretDown = CaretDown;
|