@remotion/studio 4.0.522 → 4.0.524
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/install-package.js +4 -2
- package/dist/components/ActionTooltip.d.ts +9 -0
- package/dist/components/ActionTooltip.js +143 -0
- package/dist/components/AssetAudioVolume.d.ts +5 -0
- package/dist/components/AssetAudioVolume.js +33 -0
- package/dist/components/Canvas.js +8 -8
- package/dist/components/CaptionInspector.js +74 -20
- package/dist/components/CheckboardToggle.js +9 -10
- package/dist/components/Checkbox.d.ts +1 -0
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/CompositionContextButton.js +4 -1
- package/dist/components/CompositionSelectorItem.js +2 -2
- package/dist/components/ConfigureLicenseModal.js +1 -1
- package/dist/components/CurrentAsset.js +40 -6
- package/dist/components/EditorContexts.js +3 -1
- package/dist/components/ElementInstallConfirmation.js +254 -137
- package/dist/components/FixComputedValueModal.js +38 -8
- package/dist/components/FullscreenToggle.js +8 -10
- package/dist/components/GlobalKeybindings.js +107 -49
- package/dist/components/InspectorPanel/MultiSequenceField.d.ts +12 -0
- package/dist/components/InspectorPanel/MultiSequenceField.js +131 -0
- package/dist/components/InspectorPanel/MultiSequenceInspector.d.ts +8 -0
- package/dist/components/InspectorPanel/MultiSequenceInspector.js +102 -0
- package/dist/components/InspectorPanel/MultiSequenceNumberField.d.ts +9 -0
- package/dist/components/InspectorPanel/MultiSequenceNumberField.js +88 -0
- package/dist/components/InspectorPanel.js +4 -0
- package/dist/components/InspectorSequenceSection.js +69 -6
- package/dist/components/InstallPackage.js +4 -5
- package/dist/components/KeyboardShortcutsSettings.js +212 -33
- package/dist/components/LazySyntaxHighlightedSource.d.ts +4 -0
- package/dist/components/LazySyntaxHighlightedSource.js +43 -0
- package/dist/components/LoopToggle.js +8 -2
- package/dist/components/MenuToolbar.js +11 -7
- package/dist/components/ModalContainer.d.ts +1 -0
- package/dist/components/ModalContainer.js +2 -2
- package/dist/components/Modals.js +3 -1
- package/dist/components/ModelManager.d.ts +16 -0
- package/dist/components/ModelManager.js +200 -0
- package/dist/components/ModelsSettings.d.ts +2 -0
- package/dist/components/ModelsSettings.js +133 -0
- package/dist/components/MuteToggle.d.ts +1 -0
- package/dist/components/MuteToggle.js +16 -6
- package/dist/components/NewComposition/DismissableModal.d.ts +1 -0
- package/dist/components/NewComposition/DismissableModal.js +2 -2
- package/dist/components/NewComposition/InputDragger.d.ts +2 -2
- package/dist/components/NewComposition/InputDragger.js +6 -6
- package/dist/components/NewComposition/NewComposition.d.ts +1 -0
- package/dist/components/NewComposition/NewComposition.js +5 -4
- package/dist/components/NewComposition/NewFolder.js +9 -8
- package/dist/components/NewComposition/RenameComposition.js +3 -2
- package/dist/components/NewComposition/RenameFolder.js +15 -10
- package/dist/components/NewComposition/SlugPreview.d.ts +7 -0
- package/dist/components/NewComposition/SlugPreview.js +18 -0
- package/dist/components/OptionalPackageModal.d.ts +11 -0
- package/dist/components/OptionalPackageModal.js +155 -0
- package/dist/components/OutlineToggle.js +16 -10
- package/dist/components/PlayPause.js +11 -9
- package/dist/components/PlaybackKeyboardShortcutsManager.d.ts +2 -0
- package/dist/components/PlaybackKeyboardShortcutsManager.js +39 -7
- package/dist/components/PlaybackRateSelector.js +2 -2
- package/dist/components/PreviewToolbar.js +1 -1
- package/dist/components/PreviewToolbarOverflowButton.js +19 -4
- package/dist/components/QuickSwitcher/ExplorerQuickSwitcherTrigger.js +5 -2
- package/dist/components/RadioButton.d.ts +1 -0
- package/dist/components/RadioButton.js +2 -2
- package/dist/components/RenderButton.js +5 -1
- package/dist/components/RenderModal/NumberSetting.d.ts +6 -1
- package/dist/components/RenderModal/NumberSetting.js +2 -2
- package/dist/components/RenderModal/RenderModalBasic.js +1 -1
- package/dist/components/RenderModal/RenderModalOutputName.d.ts +3 -1
- package/dist/components/RenderModal/RenderModalOutputName.js +4 -4
- package/dist/components/RenderModal/SeparateAudioOption.js +1 -1
- package/dist/components/RenderModal/WebRenderModalBasic.js +1 -1
- package/dist/components/RenderQueue/CaptionQueueItem.d.ts +6 -0
- package/dist/components/RenderQueue/CaptionQueueItem.js +130 -0
- package/dist/components/RenderQueue/CaptionQueueProcessor.d.ts +1 -0
- package/dist/components/RenderQueue/CaptionQueueProcessor.js +110 -0
- package/dist/components/RenderQueue/CaptionQueueProcessorLoader.d.ts +2 -0
- package/dist/components/RenderQueue/CaptionQueueProcessorLoader.js +54 -0
- package/dist/components/RenderQueue/RenderQueueCopyToClipboard.js +2 -1
- package/dist/components/RenderQueue/RenderQueueDownloadItem.js +2 -1
- package/dist/components/RenderQueue/RenderQueueItem.js +3 -3
- package/dist/components/RenderQueue/RenderQueueItemCancelButton.js +2 -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/VideoMattingQueueItem.d.ts +6 -0
- package/dist/components/RenderQueue/VideoMattingQueueItem.js +130 -0
- package/dist/components/RenderQueue/VideoMattingQueueProcessor.d.ts +1 -0
- package/dist/components/RenderQueue/VideoMattingQueueProcessor.js +105 -0
- package/dist/components/RenderQueue/VideoMattingQueueProcessorLoader.d.ts +2 -0
- package/dist/components/RenderQueue/VideoMattingQueueProcessorLoader.js +54 -0
- package/dist/components/RenderQueue/caption-job-types.d.ts +47 -0
- package/dist/components/RenderQueue/caption-job-types.js +7 -0
- package/dist/components/RenderQueue/context.d.ts +16 -0
- package/dist/components/RenderQueue/context.js +224 -11
- package/dist/components/RenderQueue/index.js +34 -10
- package/dist/components/RenderQueue/item-style.d.ts +1 -0
- package/dist/components/RenderQueue/item-style.js +2 -1
- package/dist/components/RenderQueue/load-model-for-job.d.ts +11 -0
- package/dist/components/RenderQueue/load-model-for-job.js +14 -0
- package/dist/components/RenderQueue/video-matting-job-types.d.ts +38 -0
- package/dist/components/RenderQueue/video-matting-job-types.js +5 -0
- package/dist/components/RendersTab.js +4 -4
- package/dist/components/RulersAndGuidesToggle.js +7 -1
- package/dist/components/SegmentedControl.d.ts +2 -2
- package/dist/components/SegmentedControl.js +38 -13
- package/dist/components/SelectedOutlinePolygon.js +8 -2
- package/dist/components/SettingsButton.d.ts +4 -0
- package/dist/components/SettingsButton.js +51 -0
- package/dist/components/SettingsModal.d.ts +1 -1
- package/dist/components/SettingsModal.js +3 -1
- package/dist/components/ShowOutlinesProvider.js +12 -0
- package/dist/components/SidebarCollapserControls.js +17 -21
- package/dist/components/SizeSelector.js +12 -4
- package/dist/components/SkillsSettings.js +2 -3
- package/dist/components/SnappingToggle.js +9 -8
- package/dist/components/StudioSettings.js +32 -18
- package/dist/components/SyntaxHighlightedSource.d.ts +5 -0
- package/dist/components/SyntaxHighlightedSource.js +78 -0
- package/dist/components/Tabs/vertical.d.ts +1 -0
- package/dist/components/Tabs/vertical.js +2 -2
- package/dist/components/TimeValue.js +2 -3
- package/dist/components/Timeline/SequencePropsObserver.js +4 -0
- package/dist/components/Timeline/Timeline.js +49 -81
- package/dist/components/Timeline/TimelineClipboardKeybindings.js +2 -4
- package/dist/components/Timeline/TimelineDeleteKeybindings.js +3 -18
- package/dist/components/Timeline/TimelineDragHandler.js +2 -2
- package/dist/components/Timeline/TimelineExpandedKeyframeRow.js +1 -0
- package/dist/components/Timeline/TimelineLayerChildren.js +12 -9
- package/dist/components/Timeline/TimelineRowChrome.js +11 -3
- package/dist/components/Timeline/TimelineSchemaField.js +8 -4
- package/dist/components/Timeline/TimelineSelection.d.ts +2 -0
- package/dist/components/Timeline/TimelineSelection.js +55 -2
- package/dist/components/Timeline/TimelineSequence.js +75 -17
- package/dist/components/Timeline/TimelineSequenceItem.d.ts +0 -1
- package/dist/components/Timeline/TimelineSequenceItem.js +208 -111
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.d.ts +23 -3
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.js +73 -25
- package/dist/components/Timeline/TimelineTimeIndicators.js +1 -0
- package/dist/components/Timeline/TimelineZoomControls.js +2 -1
- package/dist/components/Timeline/timeline-field-display-utils.js +8 -5
- package/dist/components/Timeline/use-asset-timeline-context-menu.d.ts +2 -0
- package/dist/components/Timeline/use-asset-timeline-context-menu.js +52 -0
- package/dist/components/TimelineCombobox.d.ts +1 -0
- package/dist/components/TimelineCombobox.js +8 -4
- package/dist/components/TimelineInOutToggle.js +14 -18
- package/dist/components/Transcription/LazyModels.d.ts +1 -0
- package/dist/components/Transcription/LazyModels.js +5 -0
- package/dist/components/Transcription/Models.d.ts +6 -0
- package/dist/components/Transcription/Models.js +18 -0
- package/dist/components/Transcription/TranscriptionModal.d.ts +3 -0
- package/dist/components/Transcription/TranscriptionModal.js +428 -0
- package/dist/components/Transcription/TranscriptionModalWithOptionalWhisper.d.ts +5 -0
- package/dist/components/Transcription/TranscriptionModalWithOptionalWhisper.js +48 -0
- package/dist/components/Transcription/caption-output-name.d.ts +2 -0
- package/dist/components/Transcription/caption-output-name.js +10 -0
- package/dist/components/Transcription/resample-media-to-16-khz.d.ts +6 -0
- package/dist/components/Transcription/resample-media-to-16-khz.js +82 -0
- package/dist/components/Transcription/whisper-languages.d.ts +2 -0
- package/dist/components/Transcription/whisper-languages.js +104 -0
- package/dist/components/Transcription/whisper-webgpu-capability.d.ts +2 -0
- package/dist/components/Transcription/whisper-webgpu-capability.js +7 -0
- package/dist/components/UndoRedoButtons.js +13 -38
- package/dist/components/UpdatesSettings.js +8 -12
- package/dist/components/VideoMatting/LazyModels.d.ts +1 -0
- package/dist/components/VideoMatting/LazyModels.js +5 -0
- package/dist/components/VideoMatting/Models.d.ts +6 -0
- package/dist/components/VideoMatting/Models.js +18 -0
- package/dist/components/VideoMatting/VideoMattingModal.d.ts +3 -0
- package/dist/components/VideoMatting/VideoMattingModal.js +207 -0
- package/dist/components/VideoMatting/VideoMattingModalWithOptionalPackage.d.ts +5 -0
- package/dist/components/VideoMatting/VideoMattingModalWithOptionalPackage.js +46 -0
- package/dist/components/VideoMatting/video-matting-capability.d.ts +2 -0
- package/dist/components/VideoMatting/video-matting-capability.js +7 -0
- package/dist/components/WebMcp.js +439 -22
- package/dist/components/handle-drop.js +3 -2
- package/dist/components/import-assets.d.ts +3 -2
- package/dist/components/import-assets.js +5 -9
- package/dist/components/keyboard-shortcuts.d.ts +17 -1
- package/dist/components/keyboard-shortcuts.js +191 -89
- package/dist/components/public-output-name.d.ts +5 -0
- package/dist/components/public-output-name.js +60 -0
- package/dist/components/use-model-cache-status.d.ts +7 -0
- package/dist/components/use-model-cache-status.js +35 -0
- package/dist/error-overlay/remotion-overlay/CodeFrame.js +29 -18
- package/dist/esm/CaptionQueueProcessor-k0yrm3dj.mjs +211 -0
- package/dist/esm/LazyModels-hc33szyn.mjs +11 -0
- package/dist/esm/LazyModels-sg40rjw6.mjs +11 -0
- package/dist/esm/SyntaxHighlightedSource-3xks91rz.mjs +1236 -0
- package/dist/esm/TranscriptionModal-3ctnxpt6.mjs +1011 -0
- package/dist/esm/VideoMattingModal-b0r7e60n.mjs +374 -0
- package/dist/esm/VideoMattingQueueProcessor-t1hgm2rm.mjs +109 -0
- package/dist/esm/index-1b9skrrd.mjs +142 -0
- package/dist/esm/index-2j3d1g81.mjs +261 -0
- package/dist/esm/index-5zrb1ft4.mjs +39 -0
- package/dist/esm/index-7tt71e8n.mjs +36 -0
- package/dist/esm/index-9qtvmwtx.mjs +1366 -0
- package/dist/esm/index-9x6e1dq0.mjs +428 -0
- package/dist/esm/index-c37kme2v.mjs +46209 -0
- package/dist/esm/index-cw0pnpg5.mjs +50 -0
- package/dist/esm/index-e3zwf3e7.mjs +36 -0
- package/dist/esm/index-er3mh6em.mjs +54688 -0
- package/dist/esm/{chunk-je0h1bgt.js → index-k426ye99.mjs} +4 -1
- package/dist/esm/index-q2epbw93.mjs +423 -0
- package/dist/esm/index-q5xv20xx.mjs +41 -0
- package/dist/esm/{chunk-6jf1natv.js → index-rcv7qkt5.mjs} +18 -1
- package/dist/esm/index-v4tr1bft.mjs +20 -0
- package/dist/esm/index-wbmp5srk.mjs +35 -0
- package/dist/esm/index-yfrysr5f.mjs +1154 -0
- package/dist/esm/index.mjs +45 -933
- package/dist/esm/internals.mjs +13 -114393
- package/dist/esm/previewEntry.mjs +387 -115050
- package/dist/esm/renderEntry.mjs +5 -5
- package/dist/esm/{chunk-m0jqdbkr.js → resolve-composition-component-location-bt2d6qxq.mjs} +1 -1
- package/dist/helpers/colors.d.ts +1 -0
- package/dist/helpers/colors.js +4 -3
- package/dist/helpers/drag-aware-double-click.d.ts +2 -1
- package/dist/helpers/drag-aware-double-click.js +12 -1
- package/dist/helpers/get-asset-metadata.d.ts +1 -0
- package/dist/helpers/get-asset-metadata.js +4 -0
- package/dist/helpers/hoverable.js +8 -0
- package/dist/helpers/inject-css.js +2 -0
- package/dist/helpers/optional-package-dependencies.d.ts +3 -0
- package/dist/helpers/optional-package-dependencies.js +24 -0
- package/dist/helpers/pointer-session.d.ts +6 -0
- package/dist/helpers/pointer-session.js +36 -14
- package/dist/helpers/prism-vsc-dark-plus.d.ts +1 -0
- package/dist/helpers/prism-vsc-dark-plus.js +305 -0
- package/dist/helpers/sequence-node-path-mutations.js +11 -0
- package/dist/helpers/slugify-name.d.ts +1 -0
- package/dist/helpers/slugify-name.js +14 -0
- package/dist/helpers/studio-runtime-config.d.ts +1 -0
- package/dist/helpers/studio-runtime-config.js +6 -1
- package/dist/helpers/use-create-composition.d.ts +1 -0
- package/dist/helpers/use-create-composition.js +12 -7
- package/dist/helpers/use-keybinding.d.ts +9 -3
- package/dist/helpers/use-keybinding.js +8 -9
- package/dist/helpers/use-keyboard-shortcut-label.d.ts +2 -0
- package/dist/helpers/use-keyboard-shortcut-label.js +15 -0
- package/dist/helpers/use-menu-structure.js +59 -14
- package/dist/helpers/use-rename-composition.d.ts +1 -0
- package/dist/helpers/use-rename-composition.js +11 -5
- package/dist/icons/input-props.d.ts +1 -1
- package/dist/icons/input-props.js +2 -2
- package/dist/icons/models.d.ts +4 -0
- package/dist/icons/models.js +7 -0
- package/dist/icons/separation.d.ts +4 -0
- package/dist/icons/separation.js +7 -0
- package/dist/icons/skills.js +1 -1
- package/dist/icons/transcription.d.ts +4 -0
- package/dist/icons/transcription.js +7 -0
- package/dist/icons/upload.js +1 -1
- package/dist/renderEntry.js +2 -2
- package/dist/state/modals.d.ts +14 -2
- package/package.json +35 -21
- package/dist/components/UpdateCheck.d.ts +0 -1
- package/dist/components/UpdateCheck.js +0 -79
- package/dist/esm/chunk-3netyjd9.js +0 -99793
package/dist/esm/renderEntry.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
BACKGROUND_HEX,
|
|
3
3
|
TRANSPARENT,
|
|
4
4
|
WHITE
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./index-k426ye99.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__require,
|
|
8
8
|
__toESM
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./index-rcv7qkt5.mjs";
|
|
10
10
|
|
|
11
11
|
// src/renderEntry.tsx
|
|
12
12
|
import { useContext, useEffect, useRef, useState } from "react";
|
|
@@ -170,7 +170,7 @@ var renderContent = (Root) => {
|
|
|
170
170
|
logLevel: window.remotion_logLevel ?? "info",
|
|
171
171
|
numberOfAudioTags: 0,
|
|
172
172
|
audioLatencyHint: window.remotion_audioLatencyHint ?? "playback",
|
|
173
|
-
previewSampleRate: window.
|
|
173
|
+
previewSampleRate: window.remotion_sampleRate,
|
|
174
174
|
_experimentalKeepAudioContextAlive: false,
|
|
175
175
|
children: /* @__PURE__ */ jsxs(Internals.RenderAssetManagerProvider, {
|
|
176
176
|
collectAssets: null,
|
|
@@ -198,7 +198,7 @@ var renderContent = (Root) => {
|
|
|
198
198
|
logLevel: window.remotion_logLevel ?? "info",
|
|
199
199
|
numberOfAudioTags: 0,
|
|
200
200
|
audioLatencyHint: window.remotion_audioLatencyHint ?? "playback",
|
|
201
|
-
previewSampleRate: window.
|
|
201
|
+
previewSampleRate: window.remotion_sampleRate,
|
|
202
202
|
_experimentalKeepAudioContextAlive: false,
|
|
203
203
|
children: /* @__PURE__ */ jsx(Internals.RenderAssetManagerProvider, {
|
|
204
204
|
collectAssets: null,
|
|
@@ -215,7 +215,7 @@ var renderContent = (Root) => {
|
|
|
215
215
|
renderToDOM(/* @__PURE__ */ jsx("div", {
|
|
216
216
|
children: /* @__PURE__ */ jsx(DelayedSpinner, {})
|
|
217
217
|
}));
|
|
218
|
-
import("./
|
|
218
|
+
import("./internals.mjs").then(({ StudioInternals }) => {
|
|
219
219
|
window.remotion_isStudio = true;
|
|
220
220
|
window.remotion_isReadOnlyStudio = true;
|
|
221
221
|
window.remotion_inputProps = "{}";
|
package/dist/helpers/colors.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare const WHITE_ALPHA_60 = "rgba(255, 255, 255, 0.6)";
|
|
|
33
33
|
export declare const WHITE_ALPHA_70 = "rgba(255, 255, 255, 0.7)";
|
|
34
34
|
export declare const WHITE_ALPHA_72 = "rgba(255, 255, 255, 0.72)";
|
|
35
35
|
export declare const WHITE_ALPHA_80 = "rgba(255, 255, 255, 0.8)";
|
|
36
|
+
export declare const WHITE_ALPHA_90 = "rgba(255, 255, 255, 0.9)";
|
|
36
37
|
export declare const BLACK_ALPHA_10 = "rgba(0, 0, 0, 0.1)";
|
|
37
38
|
export declare const BLACK_ALPHA_28 = "rgba(0, 0, 0, 0.28)";
|
|
38
39
|
export declare const BLACK_ALPHA_30 = "rgba(0, 0, 0, 0.3)";
|
package/dist/helpers/colors.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.getBackgroundFromHoverState = 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;
|
|
3
|
+
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_90 = 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.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_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_NEGATIVE_START_BORDER_COLOR = exports.TIMELINE_NEGATIVE_START_BACKGROUND_COLOR = exports.TIMELINE_BACKGROUND_COLOR = 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 = exports.BLUE_DISABLED = void 0;
|
|
5
|
+
exports.getBackgroundFromHoverState = 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 = exports.FOCUS_BOX_SHADOW = void 0;
|
|
6
6
|
exports.BLACK = 'black';
|
|
7
7
|
exports.WHITE = 'white';
|
|
8
8
|
exports.RED = 'red';
|
|
@@ -38,6 +38,7 @@ exports.WHITE_ALPHA_60 = 'rgba(255, 255, 255, 0.6)';
|
|
|
38
38
|
exports.WHITE_ALPHA_70 = 'rgba(255, 255, 255, 0.7)';
|
|
39
39
|
exports.WHITE_ALPHA_72 = 'rgba(255, 255, 255, 0.72)';
|
|
40
40
|
exports.WHITE_ALPHA_80 = 'rgba(255, 255, 255, 0.8)';
|
|
41
|
+
exports.WHITE_ALPHA_90 = 'rgba(255, 255, 255, 0.9)';
|
|
41
42
|
exports.BLACK_ALPHA_10 = 'rgba(0, 0, 0, 0.1)';
|
|
42
43
|
exports.BLACK_ALPHA_28 = 'rgba(0, 0, 0, 0.28)';
|
|
43
44
|
exports.BLACK_ALPHA_30 = 'rgba(0, 0, 0, 0.3)';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type DragAwareDoubleClickTracker = {
|
|
2
|
-
readonly beginPointerGesture: () => void;
|
|
2
|
+
readonly beginPointerGesture: (event: Pick<PointerEvent, 'button'>) => void;
|
|
3
3
|
readonly endPointerGesture: (wasDragged: boolean) => void;
|
|
4
4
|
readonly consumePointerGestureWasDragged: () => boolean;
|
|
5
|
+
readonly acceptClickAsDoubleClick: (event: Pick<MouseEvent, 'button' | 'detail'>) => boolean;
|
|
5
6
|
};
|
|
6
7
|
export declare const createDragAwareDoubleClickTracker: () => DragAwareDoubleClickTracker;
|
|
@@ -3,9 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createDragAwareDoubleClickTracker = void 0;
|
|
4
4
|
const createDragAwareDoubleClickTracker = () => {
|
|
5
5
|
let pointerGestureWasDragged = false;
|
|
6
|
+
let previousPointerButton = null;
|
|
7
|
+
let currentPointerButton = null;
|
|
6
8
|
return {
|
|
7
|
-
beginPointerGesture: () => {
|
|
9
|
+
beginPointerGesture: (event) => {
|
|
8
10
|
pointerGestureWasDragged = false;
|
|
11
|
+
previousPointerButton = currentPointerButton;
|
|
12
|
+
currentPointerButton = event.button;
|
|
9
13
|
},
|
|
10
14
|
endPointerGesture: (wasDragged) => {
|
|
11
15
|
pointerGestureWasDragged = wasDragged;
|
|
@@ -15,6 +19,13 @@ const createDragAwareDoubleClickTracker = () => {
|
|
|
15
19
|
pointerGestureWasDragged = false;
|
|
16
20
|
return wasDragged;
|
|
17
21
|
},
|
|
22
|
+
acceptClickAsDoubleClick: (event) => {
|
|
23
|
+
return (event.button === 0 &&
|
|
24
|
+
event.detail > 0 &&
|
|
25
|
+
event.detail % 2 === 0 &&
|
|
26
|
+
(event.detail > 2 ||
|
|
27
|
+
(previousPointerButton === 0 && currentPointerButton === 0)));
|
|
28
|
+
},
|
|
18
29
|
};
|
|
19
30
|
};
|
|
20
31
|
exports.createDragAwareDoubleClickTracker = createDragAwareDoubleClickTracker;
|
|
@@ -34,6 +34,10 @@ const getAssetPreviewMetadata = ({ canvasContent, metadata, }) => {
|
|
|
34
34
|
: 30;
|
|
35
35
|
return {
|
|
36
36
|
asset: canvasContent.asset,
|
|
37
|
+
src: (0, add_asset_cache_bust_1.addAssetCacheBust)({
|
|
38
|
+
src: (0, remotion_1.staticFile)(canvasContent.asset),
|
|
39
|
+
fetchedAt: metadata.fetchedAt,
|
|
40
|
+
}),
|
|
37
41
|
width: dimensions.width,
|
|
38
42
|
height: dimensions.height,
|
|
39
43
|
fps,
|
|
@@ -49,6 +49,10 @@ const makeHoverableCSS = () => `
|
|
|
49
49
|
color: var(${COLOR_VARIABLE}, inherit);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
${hoverGroup} ${reveal} {
|
|
53
|
+
flex-shrink: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
52
56
|
@media (hover: hover) {
|
|
53
57
|
${hoverable}:hover {
|
|
54
58
|
background-color: var(${HOVER_BG_VARIABLE}, var(${BG_VARIABLE}, ${colors_1.TRANSPARENT}));
|
|
@@ -69,10 +73,14 @@ const makeHoverableCSS = () => `
|
|
|
69
73
|
|
|
70
74
|
${hoverGroup} ${reveal} {
|
|
71
75
|
opacity: 0;
|
|
76
|
+
width: 0;
|
|
77
|
+
overflow: hidden;
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
${hoverGroup}:hover ${reveal} {
|
|
75
81
|
opacity: 1;
|
|
82
|
+
width: auto;
|
|
83
|
+
overflow: visible;
|
|
76
84
|
}
|
|
77
85
|
}
|
|
78
86
|
`;
|
|
@@ -5,6 +5,7 @@ const remotion_1 = require("remotion");
|
|
|
5
5
|
const scroll_to_default_props_path_1 = require("../components/RenderModal/SchemaEditor/scroll-to-default-props-path");
|
|
6
6
|
const colors_1 = require("./colors");
|
|
7
7
|
const hoverable_1 = require("./hoverable");
|
|
8
|
+
const prism_vsc_dark_plus_1 = require("./prism-vsc-dark-plus");
|
|
8
9
|
const makeDefaultGlobalCSS = () => {
|
|
9
10
|
const dragAreaFactor = 2;
|
|
10
11
|
const fromMiddle = 50 / dragAreaFactor;
|
|
@@ -167,6 +168,7 @@ const injectCSS = () => {
|
|
|
167
168
|
if (injected) {
|
|
168
169
|
return;
|
|
169
170
|
}
|
|
171
|
+
remotion_1.Internals.CSSUtils.injectCSS(prism_vsc_dark_plus_1.prismVscDarkPlus);
|
|
170
172
|
remotion_1.Internals.CSSUtils.injectCSS(makeDefaultGlobalCSS());
|
|
171
173
|
injected = true;
|
|
172
174
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withRequiredAuxiliaryPackages = exports.TRANSFORMERS_PACKAGE = void 0;
|
|
4
|
+
const studio_shared_1 = require("@remotion/studio-shared");
|
|
5
|
+
exports.TRANSFORMERS_PACKAGE = '@huggingface/transformers';
|
|
6
|
+
const packagesRequiringTransformers = new Set([
|
|
7
|
+
'@remotion/whisper-webgpu',
|
|
8
|
+
'@remotion/video-matting',
|
|
9
|
+
]);
|
|
10
|
+
const withRequiredAuxiliaryPackages = (dependencies) => {
|
|
11
|
+
if (!dependencies.some((dependency) => packagesRequiringTransformers.has(dependency.name)) ||
|
|
12
|
+
dependencies.some((dependency) => dependency.name === exports.TRANSFORMERS_PACKAGE)) {
|
|
13
|
+
return [...dependencies];
|
|
14
|
+
}
|
|
15
|
+
const transformers = studio_shared_1.extraPackages.find((pkg) => pkg.name === exports.TRANSFORMERS_PACKAGE);
|
|
16
|
+
if (!transformers) {
|
|
17
|
+
throw new Error(`No recommended version found for ${exports.TRANSFORMERS_PACKAGE}`);
|
|
18
|
+
}
|
|
19
|
+
return [
|
|
20
|
+
...dependencies,
|
|
21
|
+
{ name: transformers.name, version: transformers.version },
|
|
22
|
+
];
|
|
23
|
+
};
|
|
24
|
+
exports.withRequiredAuxiliaryPackages = withRequiredAuxiliaryPackages;
|
|
@@ -6,6 +6,12 @@ export declare const startCapturedPointerSession: ({ event, captureTarget, onMov
|
|
|
6
6
|
onMove?: ((event: PointerEvent) => void) | undefined;
|
|
7
7
|
onEnd: (reason: PointerSessionEndReason, event: PointerEvent | null) => void;
|
|
8
8
|
}) => () => void;
|
|
9
|
+
export declare const startDeferredCapturedPointerSession: ({ event, captureTarget, onMove, onEnd, }: {
|
|
10
|
+
event: PointerSessionEvent;
|
|
11
|
+
captureTarget: Element;
|
|
12
|
+
onMove: (event: PointerEvent, capturePointer: () => void) => void;
|
|
13
|
+
onEnd: (reason: PointerSessionEndReason, event: PointerEvent | null) => void;
|
|
14
|
+
}) => () => void;
|
|
9
15
|
export declare const observePointerRelease: ({ event, onEnd, }: {
|
|
10
16
|
event: PointerSessionEvent;
|
|
11
17
|
onEnd: (reason: PointerSessionEndReason, event: PointerEvent | null) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.observePointerRelease = exports.startCapturedPointerSession = void 0;
|
|
3
|
+
exports.observePointerRelease = exports.startDeferredCapturedPointerSession = exports.startCapturedPointerSession = void 0;
|
|
4
4
|
const getButtonMask = (button) => {
|
|
5
5
|
if (button === 0) {
|
|
6
6
|
return 1;
|
|
@@ -14,10 +14,24 @@ const getButtonMask = (button) => {
|
|
|
14
14
|
return 1 << button;
|
|
15
15
|
};
|
|
16
16
|
const startPointerSession = ({ event, captureTarget, onMove, onEnd, }) => {
|
|
17
|
-
var _a;
|
|
18
17
|
const { pointerId } = event;
|
|
19
18
|
const buttonMask = getButtonMask(event.button);
|
|
20
19
|
let ended = false;
|
|
20
|
+
let activeCaptureTarget = null;
|
|
21
|
+
const capturePointer = (target) => {
|
|
22
|
+
var _a;
|
|
23
|
+
if (activeCaptureTarget !== null) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
activeCaptureTarget = target;
|
|
27
|
+
try {
|
|
28
|
+
(_a = target.setPointerCapture) === null || _a === void 0 ? void 0 : _a.call(target, pointerId);
|
|
29
|
+
}
|
|
30
|
+
catch (_b) {
|
|
31
|
+
// Capture is best-effort for detached targets.
|
|
32
|
+
}
|
|
33
|
+
target.addEventListener('lostpointercapture', handleLostPointerCapture);
|
|
34
|
+
};
|
|
21
35
|
const cleanup = () => {
|
|
22
36
|
var _a;
|
|
23
37
|
window.removeEventListener('pointermove', handleMove);
|
|
@@ -25,10 +39,10 @@ const startPointerSession = ({ event, captureTarget, onMove, onEnd, }) => {
|
|
|
25
39
|
window.removeEventListener('pointercancel', handleCancel);
|
|
26
40
|
window.removeEventListener('blur', handleBlur);
|
|
27
41
|
document.removeEventListener('visibilitychange', handleVisibilityChange);
|
|
28
|
-
|
|
29
|
-
if ((_a =
|
|
42
|
+
activeCaptureTarget === null || activeCaptureTarget === void 0 ? void 0 : activeCaptureTarget.removeEventListener('lostpointercapture', handleLostPointerCapture);
|
|
43
|
+
if ((_a = activeCaptureTarget === null || activeCaptureTarget === void 0 ? void 0 : activeCaptureTarget.hasPointerCapture) === null || _a === void 0 ? void 0 : _a.call(activeCaptureTarget, pointerId)) {
|
|
30
44
|
try {
|
|
31
|
-
|
|
45
|
+
activeCaptureTarget.releasePointerCapture(pointerId);
|
|
32
46
|
}
|
|
33
47
|
catch (_b) {
|
|
34
48
|
// The browser may already have released capture.
|
|
@@ -51,7 +65,7 @@ const startPointerSession = ({ event, captureTarget, onMove, onEnd, }) => {
|
|
|
51
65
|
end('buttons-released', moveEvent);
|
|
52
66
|
return;
|
|
53
67
|
}
|
|
54
|
-
onMove === null || onMove === void 0 ? void 0 : onMove(moveEvent);
|
|
68
|
+
onMove === null || onMove === void 0 ? void 0 : onMove(moveEvent, capturePointer);
|
|
55
69
|
}
|
|
56
70
|
function handleUp(upEvent) {
|
|
57
71
|
if (upEvent.pointerId === pointerId) {
|
|
@@ -77,14 +91,8 @@ const startPointerSession = ({ event, captureTarget, onMove, onEnd, }) => {
|
|
|
77
91
|
end('visibilitychange', null);
|
|
78
92
|
}
|
|
79
93
|
}
|
|
80
|
-
if (captureTarget) {
|
|
81
|
-
|
|
82
|
-
(_a = captureTarget.setPointerCapture) === null || _a === void 0 ? void 0 : _a.call(captureTarget, pointerId);
|
|
83
|
-
}
|
|
84
|
-
catch (_b) {
|
|
85
|
-
// Capture is best-effort for detached targets.
|
|
86
|
-
}
|
|
87
|
-
captureTarget.addEventListener('lostpointercapture', handleLostPointerCapture);
|
|
94
|
+
if (captureTarget !== null) {
|
|
95
|
+
capturePointer(captureTarget);
|
|
88
96
|
}
|
|
89
97
|
window.addEventListener('pointermove', handleMove);
|
|
90
98
|
window.addEventListener('pointerup', handleUp);
|
|
@@ -99,6 +107,20 @@ const startCapturedPointerSession = ({ event, captureTarget, onMove, onEnd, }) =
|
|
|
99
107
|
return startPointerSession({ event, captureTarget, onMove, onEnd });
|
|
100
108
|
};
|
|
101
109
|
exports.startCapturedPointerSession = startCapturedPointerSession;
|
|
110
|
+
// Use when a click must remain targeted at the element under the pointer, but
|
|
111
|
+
// an actual drag needs a stable capture target. Call `capturePointer()` from
|
|
112
|
+
// `onMove` once the movement qualifies as a drag.
|
|
113
|
+
const startDeferredCapturedPointerSession = ({ event, captureTarget, onMove, onEnd, }) => {
|
|
114
|
+
return startPointerSession({
|
|
115
|
+
event,
|
|
116
|
+
captureTarget: null,
|
|
117
|
+
onMove: (moveEvent, capturePointer) => {
|
|
118
|
+
onMove(moveEvent, () => capturePointer(captureTarget));
|
|
119
|
+
},
|
|
120
|
+
onEnd,
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
exports.startDeferredCapturedPointerSession = startDeferredCapturedPointerSession;
|
|
102
124
|
// Use when observing a gesture that started elsewhere. This deliberately does
|
|
103
125
|
// not capture the pointer from the element under it.
|
|
104
126
|
const observePointerRelease = ({ event, onEnd, }) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const prismVscDarkPlus = "pre[class*=\"language-\"],\ncode[class*=\"language-\"] {\n\tcolor: #d4d4d4;\n\tfont-size: 13px;\n\ttext-shadow: none;\n\tfont-family: Menlo, Monaco, Consolas, \"Andale Mono\", \"Ubuntu Mono\", \"Courier New\", monospace;\n\tdirection: ltr;\n\ttext-align: left;\n\twhite-space: pre;\n\tword-spacing: normal;\n\tword-break: normal;\n\tline-height: 1.5;\n\t-moz-tab-size: 4;\n\t-o-tab-size: 4;\n\ttab-size: 4;\n\t-webkit-hyphens: none;\n\t-moz-hyphens: none;\n\t-ms-hyphens: none;\n\thyphens: none;\n}\n\npre[class*=\"language-\"]::selection,\ncode[class*=\"language-\"]::selection,\npre[class*=\"language-\"] *::selection,\ncode[class*=\"language-\"] *::selection {\n\ttext-shadow: none;\n\tbackground: #264F78;\n}\n\n@media print {\n\tpre[class*=\"language-\"],\n\tcode[class*=\"language-\"] {\n\t\ttext-shadow: none;\n\t}\n}\n\npre[class*=\"language-\"] {\n\tpadding: 1em;\n\tmargin: .5em 0;\n\toverflow: auto;\n\tbackground: #1e1e1e;\n}\n\n:not(pre) > code[class*=\"language-\"] {\n\tpadding: .1em .3em;\n\tborder-radius: .3em;\n\tcolor: #db4c69;\n\tbackground: #1e1e1e;\n}\n/*********************************************************\n* Tokens\n*/\n.namespace {\n\topacity: .7;\n}\n\n.token.doctype .token.doctype-tag {\n\tcolor: #569CD6;\n}\n\n.token.doctype .token.name {\n\tcolor: #9cdcfe;\n}\n\n.token.comment,\n.token.prolog {\n\tcolor: #6a9955;\n}\n\n.token.punctuation,\n.language-html .language-css .token.punctuation,\n.language-html .language-javascript .token.punctuation {\n\tcolor: #d4d4d4;\n}\n\n.token.property,\n.token.tag,\n.token.boolean,\n.token.number,\n.token.constant,\n.token.symbol,\n.token.inserted,\n.token.unit {\n\tcolor: #b5cea8;\n}\n\n.token.selector,\n.token.attr-name,\n.token.string,\n.token.char,\n.token.builtin,\n.token.deleted {\n\tcolor: #ce9178;\n}\n\n.language-css .token.string.url {\n\ttext-decoration: underline;\n}\n\n.token.operator,\n.token.entity {\n\tcolor: #d4d4d4;\n}\n\n.token.operator.arrow {\n\tcolor: #569CD6;\n}\n\n.token.atrule {\n\tcolor: #ce9178;\n}\n\n.token.atrule .token.rule {\n\tcolor: #c586c0;\n}\n\n.token.atrule .token.url {\n\tcolor: #9cdcfe;\n}\n\n.token.atrule .token.url .token.function {\n\tcolor: #dcdcaa;\n}\n\n.token.atrule .token.url .token.punctuation {\n\tcolor: #d4d4d4;\n}\n\n.token.keyword {\n\tcolor: #569CD6;\n}\n\n.token.keyword.module,\n.token.keyword.control-flow {\n\tcolor: #c586c0;\n}\n\n.token.function,\n.token.function .token.maybe-class-name {\n\tcolor: #dcdcaa;\n}\n\n.token.regex {\n\tcolor: #d16969;\n}\n\n.token.important {\n\tcolor: #569cd6;\n}\n\n.token.italic {\n\tfont-style: italic;\n}\n\n.token.constant {\n\tcolor: #9cdcfe;\n}\n\n.token.class-name,\n.token.maybe-class-name {\n\tcolor: #4ec9b0;\n}\n\n.token.console {\n\tcolor: #9cdcfe;\n}\n\n.token.parameter {\n\tcolor: #9cdcfe;\n}\n\n.token.interpolation {\n\tcolor: #9cdcfe;\n}\n\n.token.punctuation.interpolation-punctuation {\n\tcolor: #569cd6;\n}\n\n.token.boolean {\n\tcolor: #569cd6;\n}\n\n.token.property,\n.token.variable,\n.token.imports .token.maybe-class-name,\n.token.exports .token.maybe-class-name {\n\tcolor: #9cdcfe;\n}\n\n.token.selector {\n\tcolor: #d7ba7d;\n}\n\n.token.escape {\n\tcolor: #d7ba7d;\n}\n\n.token.tag {\n\tcolor: #569cd6;\n}\n\n.token.tag .token.punctuation {\n\tcolor: #808080;\n}\n\n.token.cdata {\n\tcolor: #808080;\n}\n\n.token.attr-name {\n\tcolor: #9cdcfe;\n}\n\n.token.attr-value,\n.token.attr-value .token.punctuation {\n\tcolor: #ce9178;\n}\n\n.token.attr-value .token.punctuation.attr-equals {\n\tcolor: #d4d4d4;\n}\n\n.token.entity {\n\tcolor: #569cd6;\n}\n\n.token.namespace {\n\tcolor: #4ec9b0;\n}\n/*********************************************************\n* Language Specific\n*/\n\npre[class*=\"language-javascript\"],\ncode[class*=\"language-javascript\"],\npre[class*=\"language-jsx\"],\ncode[class*=\"language-jsx\"],\npre[class*=\"language-typescript\"],\ncode[class*=\"language-typescript\"],\npre[class*=\"language-tsx\"],\ncode[class*=\"language-tsx\"] {\n\tcolor: #9cdcfe;\n}\n\npre[class*=\"language-css\"],\ncode[class*=\"language-css\"] {\n\tcolor: #ce9178;\n}\n\npre[class*=\"language-html\"],\ncode[class*=\"language-html\"] {\n\tcolor: #d4d4d4;\n}\n\n.language-regex .token.anchor {\n\tcolor: #dcdcaa;\n}\n\n.language-html .token.punctuation {\n\tcolor: #808080;\n}\n/*********************************************************\n* Line highlighting\n*/\npre[class*=\"language-\"] > code[class*=\"language-\"] {\n\tposition: relative;\n\tz-index: 1;\n}\n\n.line-highlight.line-highlight {\n\tbackground: #f7ebc6;\n\tbox-shadow: inset 5px 0 0 #f7d87c;\n\tz-index: 0;\n}\n";
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.prismVscDarkPlus = void 0;
|
|
4
|
+
// Unmodified prism-themes@1.9.0/themes/prism-vsc-dark-plus.css, stored as a
|
|
5
|
+
// string for Studio’s CSS injection (including Browser Studio, which has no
|
|
6
|
+
// CSS loader).
|
|
7
|
+
/*
|
|
8
|
+
The MIT License (MIT)
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2015 PrismJS
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
|
29
|
+
*/
|
|
30
|
+
exports.prismVscDarkPlus = `pre[class*="language-"],
|
|
31
|
+
code[class*="language-"] {
|
|
32
|
+
color: #d4d4d4;
|
|
33
|
+
font-size: 13px;
|
|
34
|
+
text-shadow: none;
|
|
35
|
+
font-family: Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace;
|
|
36
|
+
direction: ltr;
|
|
37
|
+
text-align: left;
|
|
38
|
+
white-space: pre;
|
|
39
|
+
word-spacing: normal;
|
|
40
|
+
word-break: normal;
|
|
41
|
+
line-height: 1.5;
|
|
42
|
+
-moz-tab-size: 4;
|
|
43
|
+
-o-tab-size: 4;
|
|
44
|
+
tab-size: 4;
|
|
45
|
+
-webkit-hyphens: none;
|
|
46
|
+
-moz-hyphens: none;
|
|
47
|
+
-ms-hyphens: none;
|
|
48
|
+
hyphens: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
pre[class*="language-"]::selection,
|
|
52
|
+
code[class*="language-"]::selection,
|
|
53
|
+
pre[class*="language-"] *::selection,
|
|
54
|
+
code[class*="language-"] *::selection {
|
|
55
|
+
text-shadow: none;
|
|
56
|
+
background: #264F78;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media print {
|
|
60
|
+
pre[class*="language-"],
|
|
61
|
+
code[class*="language-"] {
|
|
62
|
+
text-shadow: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
pre[class*="language-"] {
|
|
67
|
+
padding: 1em;
|
|
68
|
+
margin: .5em 0;
|
|
69
|
+
overflow: auto;
|
|
70
|
+
background: #1e1e1e;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:not(pre) > code[class*="language-"] {
|
|
74
|
+
padding: .1em .3em;
|
|
75
|
+
border-radius: .3em;
|
|
76
|
+
color: #db4c69;
|
|
77
|
+
background: #1e1e1e;
|
|
78
|
+
}
|
|
79
|
+
/*********************************************************
|
|
80
|
+
* Tokens
|
|
81
|
+
*/
|
|
82
|
+
.namespace {
|
|
83
|
+
opacity: .7;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.token.doctype .token.doctype-tag {
|
|
87
|
+
color: #569CD6;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.token.doctype .token.name {
|
|
91
|
+
color: #9cdcfe;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.token.comment,
|
|
95
|
+
.token.prolog {
|
|
96
|
+
color: #6a9955;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.token.punctuation,
|
|
100
|
+
.language-html .language-css .token.punctuation,
|
|
101
|
+
.language-html .language-javascript .token.punctuation {
|
|
102
|
+
color: #d4d4d4;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.token.property,
|
|
106
|
+
.token.tag,
|
|
107
|
+
.token.boolean,
|
|
108
|
+
.token.number,
|
|
109
|
+
.token.constant,
|
|
110
|
+
.token.symbol,
|
|
111
|
+
.token.inserted,
|
|
112
|
+
.token.unit {
|
|
113
|
+
color: #b5cea8;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.token.selector,
|
|
117
|
+
.token.attr-name,
|
|
118
|
+
.token.string,
|
|
119
|
+
.token.char,
|
|
120
|
+
.token.builtin,
|
|
121
|
+
.token.deleted {
|
|
122
|
+
color: #ce9178;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.language-css .token.string.url {
|
|
126
|
+
text-decoration: underline;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.token.operator,
|
|
130
|
+
.token.entity {
|
|
131
|
+
color: #d4d4d4;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.token.operator.arrow {
|
|
135
|
+
color: #569CD6;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.token.atrule {
|
|
139
|
+
color: #ce9178;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.token.atrule .token.rule {
|
|
143
|
+
color: #c586c0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.token.atrule .token.url {
|
|
147
|
+
color: #9cdcfe;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.token.atrule .token.url .token.function {
|
|
151
|
+
color: #dcdcaa;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.token.atrule .token.url .token.punctuation {
|
|
155
|
+
color: #d4d4d4;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.token.keyword {
|
|
159
|
+
color: #569CD6;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.token.keyword.module,
|
|
163
|
+
.token.keyword.control-flow {
|
|
164
|
+
color: #c586c0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.token.function,
|
|
168
|
+
.token.function .token.maybe-class-name {
|
|
169
|
+
color: #dcdcaa;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.token.regex {
|
|
173
|
+
color: #d16969;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.token.important {
|
|
177
|
+
color: #569cd6;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.token.italic {
|
|
181
|
+
font-style: italic;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.token.constant {
|
|
185
|
+
color: #9cdcfe;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.token.class-name,
|
|
189
|
+
.token.maybe-class-name {
|
|
190
|
+
color: #4ec9b0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.token.console {
|
|
194
|
+
color: #9cdcfe;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.token.parameter {
|
|
198
|
+
color: #9cdcfe;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.token.interpolation {
|
|
202
|
+
color: #9cdcfe;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.token.punctuation.interpolation-punctuation {
|
|
206
|
+
color: #569cd6;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.token.boolean {
|
|
210
|
+
color: #569cd6;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.token.property,
|
|
214
|
+
.token.variable,
|
|
215
|
+
.token.imports .token.maybe-class-name,
|
|
216
|
+
.token.exports .token.maybe-class-name {
|
|
217
|
+
color: #9cdcfe;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.token.selector {
|
|
221
|
+
color: #d7ba7d;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.token.escape {
|
|
225
|
+
color: #d7ba7d;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.token.tag {
|
|
229
|
+
color: #569cd6;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.token.tag .token.punctuation {
|
|
233
|
+
color: #808080;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.token.cdata {
|
|
237
|
+
color: #808080;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.token.attr-name {
|
|
241
|
+
color: #9cdcfe;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.token.attr-value,
|
|
245
|
+
.token.attr-value .token.punctuation {
|
|
246
|
+
color: #ce9178;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.token.attr-value .token.punctuation.attr-equals {
|
|
250
|
+
color: #d4d4d4;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.token.entity {
|
|
254
|
+
color: #569cd6;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.token.namespace {
|
|
258
|
+
color: #4ec9b0;
|
|
259
|
+
}
|
|
260
|
+
/*********************************************************
|
|
261
|
+
* Language Specific
|
|
262
|
+
*/
|
|
263
|
+
|
|
264
|
+
pre[class*="language-javascript"],
|
|
265
|
+
code[class*="language-javascript"],
|
|
266
|
+
pre[class*="language-jsx"],
|
|
267
|
+
code[class*="language-jsx"],
|
|
268
|
+
pre[class*="language-typescript"],
|
|
269
|
+
code[class*="language-typescript"],
|
|
270
|
+
pre[class*="language-tsx"],
|
|
271
|
+
code[class*="language-tsx"] {
|
|
272
|
+
color: #9cdcfe;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
pre[class*="language-css"],
|
|
276
|
+
code[class*="language-css"] {
|
|
277
|
+
color: #ce9178;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
pre[class*="language-html"],
|
|
281
|
+
code[class*="language-html"] {
|
|
282
|
+
color: #d4d4d4;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.language-regex .token.anchor {
|
|
286
|
+
color: #dcdcaa;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.language-html .token.punctuation {
|
|
290
|
+
color: #808080;
|
|
291
|
+
}
|
|
292
|
+
/*********************************************************
|
|
293
|
+
* Line highlighting
|
|
294
|
+
*/
|
|
295
|
+
pre[class*="language-"] > code[class*="language-"] {
|
|
296
|
+
position: relative;
|
|
297
|
+
z-index: 1;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.line-highlight.line-highlight {
|
|
301
|
+
background: #f7ebc6;
|
|
302
|
+
box-shadow: inset 5px 0 0 #f7d87c;
|
|
303
|
+
z-index: 0;
|
|
304
|
+
}
|
|
305
|
+
`;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.takePendingSequenceNodePathMutations = exports.queueSequenceNodePathMutationFromApiResponse = exports.queueSequenceNodePathMutation = void 0;
|
|
4
|
+
const inserted_element_selection_1 = require("./inserted-element-selection");
|
|
4
5
|
const pendingMutations = [];
|
|
5
6
|
const seenMutationIds = new Set();
|
|
6
7
|
const queueSequenceNodePathMutation = (mutation) => {
|
|
@@ -9,6 +10,16 @@ const queueSequenceNodePathMutation = (mutation) => {
|
|
|
9
10
|
}
|
|
10
11
|
seenMutationIds.add(mutation.mutationId);
|
|
11
12
|
pendingMutations.push(mutation);
|
|
13
|
+
if (mutation.timelineSelection !== null) {
|
|
14
|
+
(0, inserted_element_selection_1.requestInsertedElementSelection)({
|
|
15
|
+
compositionId: mutation.timelineSelection.compositionId,
|
|
16
|
+
nodePath: {
|
|
17
|
+
absolutePath: mutation.timelineSelection.absolutePath,
|
|
18
|
+
nodePath: mutation.timelineSelection.nodePath,
|
|
19
|
+
},
|
|
20
|
+
notification: null,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
12
23
|
};
|
|
13
24
|
exports.queueSequenceNodePathMutation = queueSequenceNodePathMutation;
|
|
14
25
|
const queueSequenceNodePathMutationFromApiResponse = (response) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const slugifyName: (name: string) => string;
|