@remotion/studio 4.0.523 → 4.0.525
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/components/ActionTooltip.d.ts +11 -0
- package/dist/components/ActionTooltip.js +153 -0
- package/dist/components/AppLaunchButton.js +2 -0
- package/dist/components/AssetSelectorModal.d.ts +6 -0
- package/dist/components/AssetSelectorModal.js +174 -0
- package/dist/components/Canvas.js +18 -3
- package/dist/components/CheckboardToggle.js +8 -10
- package/dist/components/ColorPicker/AlphaSlider.js +1 -1
- package/dist/components/ColorPicker/HueSlider.js +1 -1
- package/dist/components/ColorPicker/SaturationValueArea.js +1 -1
- package/dist/components/CompositionSelector.js +1 -0
- package/dist/components/CompositionSelectorItem.js +1 -0
- package/dist/components/EditorGuides/Guide.js +1 -1
- package/dist/components/ElementInstallConfirmation.js +35 -62
- package/dist/components/FullscreenToggle.js +5 -8
- package/dist/components/GlobalKeybindings.js +71 -0
- package/dist/components/InspectorLocationCopy.js +1 -1
- package/dist/components/InspectorOpenInEditor.d.ts +1 -0
- package/dist/components/InspectorOpenInEditor.js +18 -15
- package/dist/components/InspectorPanel/CompositionInspectorHeader.js +6 -7
- package/dist/components/InspectorPanel/CompositionMetadata.js +1 -0
- package/dist/components/InspectorPanel/ElementLibraryButton.js +1 -0
- package/dist/components/InspectorPanel/SequenceInspectorHeader.js +4 -12
- package/dist/components/InspectorSequenceSection.js +23 -14
- package/dist/components/LazySyntaxHighlightedSource.d.ts +4 -0
- package/dist/components/LazySyntaxHighlightedSource.js +43 -0
- package/dist/components/LoopToggle.js +9 -2
- package/dist/components/Menu/MenuItem.js +1 -2
- package/dist/components/MenuBuildIndicator.js +1 -1
- package/dist/components/MenuToolbar.js +6 -4
- package/dist/components/Modals.js +2 -1
- package/dist/components/MuteToggle.d.ts +1 -0
- package/dist/components/MuteToggle.js +17 -6
- package/dist/components/NewComposition/CodemodFooter.js +1 -0
- package/dist/components/NewComposition/DeleteComposition.js +42 -6
- package/dist/components/NewComposition/DeleteFolder.js +1 -0
- package/dist/components/NewComposition/DuplicateComposition.js +5 -0
- package/dist/components/NewComposition/InputDragger.js +2 -2
- package/dist/components/NewComposition/NewComposition.d.ts +1 -0
- package/dist/components/NewComposition/NewComposition.js +5 -4
- package/dist/components/NewComposition/NewFolder.js +31 -6
- package/dist/components/NewComposition/RenameComposition.js +3 -2
- package/dist/components/NewComposition/RenameFolder.js +3 -4
- package/dist/components/NewComposition/SlugPreview.d.ts +7 -0
- package/dist/components/NewComposition/SlugPreview.js +18 -0
- package/dist/components/NewComposition/duplicate-composition-api.d.ts +3 -2
- package/dist/components/NewComposition/duplicate-composition-api.js +9 -2
- package/dist/components/Notifications/NotificationCenter.d.ts +1 -0
- package/dist/components/Notifications/NotificationCenter.js +22 -1
- package/dist/components/OutlineToggle.js +17 -10
- package/dist/components/PlayPause.js +7 -1
- package/dist/components/PlaybackKeyboardShortcutsManager.d.ts +2 -0
- package/dist/components/PlaybackKeyboardShortcutsManager.js +36 -1
- package/dist/components/PlaybackRateSelector.js +2 -2
- package/dist/components/Preview.js +0 -3
- package/dist/components/PreviewToolbar.js +4 -7
- package/dist/components/PreviewToolbarOverflowButton.js +10 -3
- package/dist/components/QuickSwitcher/QuickSwitcherContent.js +1 -1
- package/dist/components/RenderButton.js +40 -4
- package/dist/components/RenderModal/WebRenderModalBasic.js +1 -1
- package/dist/components/RenderModal/render-modals.js +3 -0
- package/dist/components/RenderQueue/CaptionQueueItem.js +2 -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/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.js +2 -1
- package/dist/components/RenderQueue/actions.d.ts +2 -1
- package/dist/components/RenderQueue/actions.js +2 -1
- package/dist/components/RulersAndGuidesToggle.js +8 -1
- package/dist/components/SegmentedButton.d.ts +1 -0
- package/dist/components/SegmentedButton.js +9 -3
- package/dist/components/SelectedOutlineElement.js +16 -6
- package/dist/components/SelectedOutlinePolygon.js +4 -2
- package/dist/components/SettingsButton.js +8 -6
- package/dist/components/SettingsContext.d.ts +8 -0
- package/dist/components/SettingsContext.js +57 -2
- package/dist/components/SettingsModal.js +4 -1
- package/dist/components/SettingsModalFooter.js +1 -1
- package/dist/components/SidebarCollapserControls.js +13 -16
- package/dist/components/SizeSelector.js +2 -2
- package/dist/components/SkillsSettings.js +35 -4
- package/dist/components/SnappingToggle.js +7 -8
- package/dist/components/Splitter/SplitterHandle.js +1 -2
- package/dist/components/StudioSettings.js +32 -18
- package/dist/components/SyntaxHighlightedSource.d.ts +5 -0
- package/dist/components/{HighlightedElementSource.js → SyntaxHighlightedSource.js} +2 -2
- package/dist/components/Tabs/vertical.d.ts +1 -1
- package/dist/components/Tabs/vertical.js +16 -2
- package/dist/components/Timeline/EasingEditorModal.js +2 -2
- package/dist/components/Timeline/Timeline.js +47 -39
- package/dist/components/Timeline/TimelineAssetField.js +148 -9
- package/dist/components/Timeline/TimelineDragHandler.js +1 -2
- package/dist/components/Timeline/TimelineEffectItem.d.ts +1 -0
- package/dist/components/Timeline/TimelineEffectItem.js +2 -2
- package/dist/components/Timeline/TimelineEffectPropItem.d.ts +1 -0
- package/dist/components/Timeline/TimelineEffectPropItem.js +2 -2
- package/dist/components/Timeline/TimelineExpandedRow.js +2 -2
- package/dist/components/Timeline/TimelineInOutDragHandler.js +1 -2
- package/dist/components/Timeline/TimelineLayerChildren.js +12 -9
- package/dist/components/Timeline/TimelineSchemaField.js +8 -1
- package/dist/components/Timeline/TimelineSelection.d.ts +3 -1
- package/dist/components/Timeline/TimelineSelection.js +32 -5
- package/dist/components/Timeline/TimelineSequence.js +6 -6
- package/dist/components/Timeline/TimelineSequenceItem.js +12 -10
- package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.js +3 -12
- package/dist/components/Timeline/TimelineTranslateField.js +25 -12
- package/dist/components/Timeline/TimelineZoomControls.js +2 -1
- package/dist/components/Timeline/get-sequence-context-menu-items.js +22 -6
- package/dist/components/Timeline/timeline-field-display-utils.js +12 -7
- package/dist/components/Timeline/timeline-translate-utils.d.ts +17 -0
- package/dist/components/Timeline/timeline-translate-utils.js +53 -12
- package/dist/components/Timeline/use-open-sequence-in-apps.d.ts +2 -0
- package/dist/components/Timeline/use-open-sequence-in-apps.js +17 -0
- package/dist/components/Timeline/use-timeline-asset-drop.js +17 -3
- package/dist/components/Timeline/use-timeline-keyframe-drag.js +4 -4
- package/dist/components/TimelineCombobox.d.ts +1 -0
- package/dist/components/TimelineCombobox.js +9 -4
- package/dist/components/TimelineInOutToggle.js +8 -15
- package/dist/components/UndoRedoButtons.js +11 -0
- package/dist/components/composition-menu-items.js +56 -2
- package/dist/components/folder-menu-items.js +44 -0
- package/dist/components/get-open-in-menu-items.js +1 -1
- package/dist/components/handle-drop.js +3 -2
- package/dist/components/import-assets.d.ts +24 -1
- package/dist/components/import-assets.js +3 -1
- package/dist/components/keyboard-shortcuts.d.ts +4 -4
- package/dist/components/keyboard-shortcuts.js +28 -9
- package/dist/error-overlay/remotion-overlay/CodeFrame.js +29 -18
- package/dist/esm/LazyModels-gfmpcy4h.mjs +11 -0
- package/dist/esm/LazyModels-m1rf06wh.mjs +11 -0
- package/dist/esm/{HighlightedElementSource-jfc66k4p.mjs → SyntaxHighlightedSource-3xks91rz.mjs} +4 -4
- package/dist/esm/{TranscriptionModal-916jqhry.mjs → TranscriptionModal-8pvrehg4.mjs} +7 -7
- package/dist/esm/{VideoMattingModal-2tm79s9b.mjs → VideoMattingModal-fefbzgka.mjs} +7 -7
- package/dist/esm/{index-xhe2m2qr.mjs → index-0x13f28h.mjs} +35 -13
- package/dist/esm/{index-sgtmgc4h.mjs → index-1089795y.mjs} +3 -3
- package/dist/esm/{index-hy4xcgty.mjs → index-41kqns5c.mjs} +5 -3
- package/dist/esm/{index-6cvm9a65.mjs → index-ggqpre9v.mjs} +2868 -2099
- package/dist/esm/{index-czwvnn9g.mjs → index-hbezgbbq.mjs} +1 -1
- package/dist/esm/{index-1x7bsdh6.mjs → index-jrw61pkj.mjs} +2 -2
- package/dist/esm/{index-jg13hf2g.mjs → index-k426ye99.mjs} +2 -1
- package/dist/esm/{index-te66vvrp.mjs → index-mww32xc8.mjs} +4 -4
- package/dist/esm/{index-x7t2y7ws.mjs → index-s848rffx.mjs} +6985 -5956
- package/dist/esm/{index-3hgr6gjx.mjs → index-tzxb8808.mjs} +1 -1
- package/dist/esm/{index-5qddp5h7.mjs → index-vsxrxfpj.mjs} +1 -1
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/internals.mjs +8 -8
- package/dist/esm/previewEntry.mjs +8 -8
- package/dist/esm/renderEntry.mjs +3 -3
- package/dist/helpers/colors.d.ts +1 -0
- package/dist/helpers/colors.js +4 -3
- package/dist/helpers/get-git-menu-item.d.ts +4 -0
- package/dist/helpers/get-git-menu-item.js +8 -1
- package/dist/helpers/get-sequence-double-click-action.d.ts +3 -3
- package/dist/helpers/get-sequence-double-click-action.js +2 -2
- package/dist/helpers/inject-css.js +2 -2
- package/dist/helpers/pointer-session.d.ts +1 -0
- package/dist/helpers/pointer-session.js +10 -1
- package/dist/helpers/prism-vsc-dark-plus.d.ts +1 -0
- package/dist/helpers/prism-vsc-dark-plus.js +305 -0
- package/dist/helpers/studio-runtime-config.d.ts +1 -1
- package/dist/helpers/use-create-composition.d.ts +1 -0
- package/dist/helpers/use-create-composition.js +17 -7
- package/dist/helpers/use-keybinding.d.ts +1 -1
- package/dist/helpers/use-keyboard-shortcut-label.d.ts +2 -2
- package/dist/helpers/use-media-metadata.js +5 -1
- package/dist/helpers/use-menu-structure.js +6 -2
- package/dist/helpers/use-rename-composition.d.ts +1 -0
- package/dist/helpers/use-rename-composition.js +16 -5
- package/dist/icons/skills.js +1 -1
- package/dist/renderEntry.js +2 -2
- package/dist/state/modals.d.ts +13 -1
- package/dist/state/z-index.js +1 -3
- package/package.json +20 -20
- package/dist/components/HighlightedElementSource.d.ts +0 -5
- package/dist/esm/LazyModels-2trdm224.mjs +0 -11
- package/dist/esm/LazyModels-fjb5ckaq.mjs +0 -11
- package/dist/helpers/prism-tomorrow.d.ts +0 -1
- package/dist/helpers/prism-tomorrow.js +0 -151
- /package/dist/esm/{resolve-composition-component-location-14148845.mjs → resolve-composition-component-location-bt2d6qxq.mjs} +0 -0
|
@@ -4,6 +4,8 @@ exports.useCreateComposition = exports.getUniqueCompositionName = void 0;
|
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const InitialCompositionLoader_1 = require("../components/InitialCompositionLoader");
|
|
6
6
|
const actions_1 = require("../components/RenderQueue/actions");
|
|
7
|
+
const slugify_name_1 = require("./slugify-name");
|
|
8
|
+
const url_state_1 = require("./url-state");
|
|
7
9
|
const validate_new_comp_data_1 = require("./validate-new-comp-data");
|
|
8
10
|
const toPascalCase = (value) => {
|
|
9
11
|
var _a;
|
|
@@ -33,10 +35,13 @@ const getUniqueCompositionName = (compositions) => {
|
|
|
33
35
|
exports.getUniqueCompositionName = getUniqueCompositionName;
|
|
34
36
|
const useCreateComposition = ({ compositions, durationInFrames, folderName, newId, parentName, selectedFrameRate, size, canvasCapture, }) => {
|
|
35
37
|
const selectComposition = (0, InitialCompositionLoader_1.useSelectComposition)();
|
|
36
|
-
const
|
|
38
|
+
const compositionId = (0, slugify_name_1.slugifyName)(newId);
|
|
39
|
+
const componentName = (0, react_1.useMemo)(() => toPascalCase(compositionId), [compositionId]);
|
|
37
40
|
const nameValidationMessage = (0, react_1.useMemo)(() => {
|
|
38
|
-
return
|
|
39
|
-
|
|
41
|
+
return compositionId
|
|
42
|
+
? (0, validate_new_comp_data_1.validateCompositionName)(compositionId, compositions)
|
|
43
|
+
: 'Enter an ID containing letters or numbers.';
|
|
44
|
+
}, [compositionId, compositions]);
|
|
40
45
|
const widthValidationMessage = (0, react_1.useMemo)(() => {
|
|
41
46
|
return (0, validate_new_comp_data_1.validateCompositionDimension)('Width', size.width);
|
|
42
47
|
}, [size.width]);
|
|
@@ -50,7 +55,7 @@ const useCreateComposition = ({ compositions, durationInFrames, folderName, newI
|
|
|
50
55
|
newFps: Number(selectedFrameRate),
|
|
51
56
|
newHeight: Number(size.height),
|
|
52
57
|
newWidth: Number(size.width),
|
|
53
|
-
newId,
|
|
58
|
+
newId: compositionId,
|
|
54
59
|
componentName,
|
|
55
60
|
componentImportPath: `./${componentName}`,
|
|
56
61
|
folderName,
|
|
@@ -68,9 +73,9 @@ const useCreateComposition = ({ compositions, durationInFrames, folderName, newI
|
|
|
68
73
|
}, [
|
|
69
74
|
canvasCapture,
|
|
70
75
|
componentName,
|
|
76
|
+
compositionId,
|
|
71
77
|
durationInFrames,
|
|
72
78
|
folderName,
|
|
73
|
-
newId,
|
|
74
79
|
parentName,
|
|
75
80
|
selectedFrameRate,
|
|
76
81
|
size.height,
|
|
@@ -85,18 +90,23 @@ const useCreateComposition = ({ compositions, durationInFrames, folderName, newI
|
|
|
85
90
|
dryRun: false,
|
|
86
91
|
signal,
|
|
87
92
|
symbolicatedStack,
|
|
93
|
+
undoRedoNavigation: {
|
|
94
|
+
undoRoute: (0, url_state_1.getRoute)(),
|
|
95
|
+
redoRoute: `/${compositionId}`,
|
|
96
|
+
},
|
|
88
97
|
});
|
|
89
98
|
if (result.success) {
|
|
90
99
|
selectComposition({
|
|
91
|
-
id:
|
|
100
|
+
id: compositionId,
|
|
92
101
|
folderName,
|
|
93
102
|
parentFolderName: parentName,
|
|
94
103
|
}, true);
|
|
95
104
|
}
|
|
96
105
|
return result;
|
|
97
|
-
}, [codemod,
|
|
106
|
+
}, [codemod, compositionId, folderName, parentName, selectComposition]);
|
|
98
107
|
return {
|
|
99
108
|
codemod,
|
|
109
|
+
compositionId,
|
|
100
110
|
createComposition,
|
|
101
111
|
heightValidationMessage,
|
|
102
112
|
nameValidationMessage,
|
|
@@ -8,7 +8,7 @@ export declare const useKeybinding: () => {
|
|
|
8
8
|
triggerIfInputFieldFocused: boolean;
|
|
9
9
|
keepRegisteredWhenNotHighestContext: boolean;
|
|
10
10
|
} & ({
|
|
11
|
-
action: "askAI" | "clearInOutPoints" | "copyEffectsAndValues" | "cutEffects" | "deleteSelection" | "duplicateSequences" | "enterFullscreen" | "goToFrame" | "jumpToBeginning" | "jumpToEnd" | "nextComposition" | "pauseAndReturnToPlaybackStart" | "pausePlayback" | "playForward" | "playPause" | "previousComposition" | "quickSwitcher" | "redo" | "render" | "resetZoom" | "reversePlayback" | "selectAllSequenceRows" | "selectOpacityProp" | "selectRotateProp" | "selectScaleProp" | "selectTranslateProp" | "setInPoint" | "setOutPoint" | "showKeyboardShortcuts" | "toggleBothSidebars" | "toggleCheckerboard" | "toggleLeftSidebar" | "toggleRightSidebar" | "toggleSnapping" | "undo" | "zoomIn" | "zoomOut";
|
|
11
|
+
action: "askAI" | "clearInOutPoints" | "copyEffectsAndValues" | "cutEffects" | "deleteSelection" | "duplicateSequences" | "enterFullscreen" | "goToFrame" | "jumpToBeginning" | "jumpToEnd" | "nextComposition" | "pauseAndReturnToPlaybackStart" | "pausePlayback" | "pickColor" | "playForward" | "playPause" | "previousComposition" | "quickSwitcher" | "redo" | "render" | "resetZoom" | "reversePlayback" | "selectAllSequenceRows" | "selectOpacityProp" | "selectRotateProp" | "selectScaleProp" | "selectTranslateProp" | "setInPoint" | "setOutPoint" | "showKeyboardShortcuts" | "toggleBothSidebars" | "toggleCheckerboard" | "toggleLeftSidebar" | "toggleLoop" | "toggleMute" | "toggleOutlines" | "toggleRightSidebar" | "toggleRulersAndGuides" | "toggleSnapping" | "undo" | "zoomIn" | "zoomOut";
|
|
12
12
|
key?: undefined;
|
|
13
13
|
commandCtrlKey?: undefined;
|
|
14
14
|
} | {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useKeyboardShortcutLabel: (action: "askAI" | "clearInOutPoints" | "copyEffectsAndValues" | "cutEffects" | "deleteSelection" | "duplicateSequences" | "enterFullscreen" | "goToFrame" | "jumpToBeginning" | "jumpToEnd" | "nextComposition" | "pauseAndReturnToPlaybackStart" | "pausePlayback" | "playForward" | "playPause" | "previousComposition" | "quickSwitcher" | "redo" | "render" | "resetZoom" | "reversePlayback" | "selectAllSequenceRows" | "selectOpacityProp" | "selectRotateProp" | "selectScaleProp" | "selectTranslateProp" | "setInPoint" | "setOutPoint" | "showKeyboardShortcuts" | "toggleBothSidebars" | "toggleCheckerboard" | "toggleLeftSidebar" | "toggleRightSidebar" | "toggleSnapping" | "undo" | "zoomIn" | "zoomOut") => string;
|
|
2
|
-
export declare const useKeyboardShortcutAriaKeyShortcuts: (action: "askAI" | "clearInOutPoints" | "copyEffectsAndValues" | "cutEffects" | "deleteSelection" | "duplicateSequences" | "enterFullscreen" | "goToFrame" | "jumpToBeginning" | "jumpToEnd" | "nextComposition" | "pauseAndReturnToPlaybackStart" | "pausePlayback" | "playForward" | "playPause" | "previousComposition" | "quickSwitcher" | "redo" | "render" | "resetZoom" | "reversePlayback" | "selectAllSequenceRows" | "selectOpacityProp" | "selectRotateProp" | "selectScaleProp" | "selectTranslateProp" | "setInPoint" | "setOutPoint" | "showKeyboardShortcuts" | "toggleBothSidebars" | "toggleCheckerboard" | "toggleLeftSidebar" | "toggleRightSidebar" | "toggleSnapping" | "undo" | "zoomIn" | "zoomOut") => string;
|
|
1
|
+
export declare const useKeyboardShortcutLabel: (action: "askAI" | "clearInOutPoints" | "copyEffectsAndValues" | "cutEffects" | "deleteSelection" | "duplicateSequences" | "enterFullscreen" | "goToFrame" | "jumpToBeginning" | "jumpToEnd" | "nextComposition" | "pauseAndReturnToPlaybackStart" | "pausePlayback" | "pickColor" | "playForward" | "playPause" | "previousComposition" | "quickSwitcher" | "redo" | "render" | "resetZoom" | "reversePlayback" | "selectAllSequenceRows" | "selectOpacityProp" | "selectRotateProp" | "selectScaleProp" | "selectTranslateProp" | "setInPoint" | "setOutPoint" | "showKeyboardShortcuts" | "toggleBothSidebars" | "toggleCheckerboard" | "toggleLeftSidebar" | "toggleLoop" | "toggleMute" | "toggleOutlines" | "toggleRightSidebar" | "toggleRulersAndGuides" | "toggleSnapping" | "undo" | "zoomIn" | "zoomOut") => string;
|
|
2
|
+
export declare const useKeyboardShortcutAriaKeyShortcuts: (action: "askAI" | "clearInOutPoints" | "copyEffectsAndValues" | "cutEffects" | "deleteSelection" | "duplicateSequences" | "enterFullscreen" | "goToFrame" | "jumpToBeginning" | "jumpToEnd" | "nextComposition" | "pauseAndReturnToPlaybackStart" | "pausePlayback" | "pickColor" | "playForward" | "playPause" | "previousComposition" | "quickSwitcher" | "redo" | "render" | "resetZoom" | "reversePlayback" | "selectAllSequenceRows" | "selectOpacityProp" | "selectRotateProp" | "selectScaleProp" | "selectTranslateProp" | "setInPoint" | "setOutPoint" | "showKeyboardShortcuts" | "toggleBothSidebars" | "toggleCheckerboard" | "toggleLeftSidebar" | "toggleLoop" | "toggleMute" | "toggleOutlines" | "toggleRightSidebar" | "toggleRulersAndGuides" | "toggleSnapping" | "undo" | "zoomIn" | "zoomOut") => string;
|
|
@@ -42,7 +42,11 @@ const getMediabunnyMetadata = async (src) => {
|
|
|
42
42
|
create: () => {
|
|
43
43
|
const createdInput = new mediabunny_1.Input({
|
|
44
44
|
formats: mediabunny_1.ALL_FORMATS,
|
|
45
|
-
source: new mediabunny_1.UrlSource(src
|
|
45
|
+
source: new mediabunny_1.UrlSource(src, {
|
|
46
|
+
handleUnhandledError: (error) => {
|
|
47
|
+
remotion_1.Internals.Log.warn({ logLevel: 'info', tag: '@remotion/studio' }, `A speculative fetch for "${src}" failed:`, error);
|
|
48
|
+
},
|
|
49
|
+
}),
|
|
46
50
|
});
|
|
47
51
|
return {
|
|
48
52
|
resource: createdInput,
|
|
@@ -256,6 +256,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
256
256
|
const goToFrameShortcut = (0, use_keyboard_shortcut_label_1.useKeyboardShortcutLabel)('goToFrame');
|
|
257
257
|
const renderShortcut = (0, use_keyboard_shortcut_label_1.useKeyboardShortcutLabel)('render');
|
|
258
258
|
const askAIShortcut = (0, use_keyboard_shortcut_label_1.useKeyboardShortcutLabel)('askAI');
|
|
259
|
+
const colorPickerShortcut = (0, use_keyboard_shortcut_label_1.useKeyboardShortcutLabel)('pickColor');
|
|
259
260
|
const showKeyboardShortcutsShortcut = (0, use_keyboard_shortcut_label_1.useKeyboardShortcutLabel)('showKeyboardShortcuts');
|
|
260
261
|
const studioAskAIEnabled = (0, studio_runtime_config_1.getStudioAskAIEnabled)();
|
|
261
262
|
const { setSidebarCollapsedState, sidebarCollapsedStateLeft, sidebarCollapsedStateRight, } = (0, react_1.useContext)(sidebar_1.SidebarContext);
|
|
@@ -329,7 +330,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
329
330
|
closeMenu();
|
|
330
331
|
setSelectedModal({
|
|
331
332
|
type: 'settings',
|
|
332
|
-
initialTab: browserStudioOperations === null ? '
|
|
333
|
+
initialTab: browserStudioOperations === null ? 'studio' : 'shortcuts',
|
|
333
334
|
initialPublicLicenseKey: (_b = (_a = window.remotion_renderDefaults) === null || _a === void 0 ? void 0 : _a.publicLicenseKey) !== null && _b !== void 0 ? _b : null,
|
|
334
335
|
});
|
|
335
336
|
},
|
|
@@ -823,7 +824,9 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
823
824
|
(0, pick_color_1.pickColor)();
|
|
824
825
|
},
|
|
825
826
|
leftItem: null,
|
|
826
|
-
keyHint:
|
|
827
|
+
keyHint: keyboardShortcutsDisabled
|
|
828
|
+
? null
|
|
829
|
+
: colorPickerShortcut || null,
|
|
827
830
|
subMenu: null,
|
|
828
831
|
type: 'item',
|
|
829
832
|
quickSwitcherLabel: 'Show Color Picker',
|
|
@@ -1057,6 +1060,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
|
|
|
1057
1060
|
keyboardShortcutsDisabled,
|
|
1058
1061
|
studioAskAIEnabled,
|
|
1059
1062
|
askAIShortcut,
|
|
1063
|
+
colorPickerShortcut,
|
|
1060
1064
|
checkerboardShortcut,
|
|
1061
1065
|
clearInOutPointsShortcut,
|
|
1062
1066
|
goToFrameShortcut,
|
|
@@ -5,6 +5,7 @@ export declare const useRenameComposition: ({ compositions, currentId, newId, }:
|
|
|
5
5
|
newId: string;
|
|
6
6
|
}) => {
|
|
7
7
|
codemod: RecastCodemod;
|
|
8
|
+
compositionId: string;
|
|
8
9
|
getValidationMessage: (value: string) => string | null;
|
|
9
10
|
renameComposition: ({ newCompositionId, signal, symbolicatedStack, }: {
|
|
10
11
|
newCompositionId: string;
|
|
@@ -3,43 +3,54 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useRenameComposition = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const actions_1 = require("../components/RenderQueue/actions");
|
|
6
|
+
const slugify_name_1 = require("./slugify-name");
|
|
6
7
|
const url_state_1 = require("./url-state");
|
|
7
8
|
const validate_new_comp_data_1 = require("./validate-new-comp-data");
|
|
8
9
|
const useRenameComposition = ({ compositions, currentId, newId, }) => {
|
|
9
10
|
const getValidationMessage = (0, react_1.useCallback)((value) => {
|
|
10
|
-
|
|
11
|
+
const slug = (0, slugify_name_1.slugifyName)(value);
|
|
12
|
+
if (slug === currentId) {
|
|
11
13
|
return null;
|
|
12
14
|
}
|
|
13
|
-
return
|
|
15
|
+
return slug
|
|
16
|
+
? (0, validate_new_comp_data_1.validateCompositionName)(slug, compositions)
|
|
17
|
+
: 'Enter an ID containing letters or numbers.';
|
|
14
18
|
}, [compositions, currentId]);
|
|
15
19
|
const getCodemod = (0, react_1.useCallback)((value) => {
|
|
16
20
|
return {
|
|
17
21
|
type: 'rename-composition',
|
|
18
22
|
idToRename: currentId,
|
|
19
|
-
newId: value,
|
|
23
|
+
newId: (0, slugify_name_1.slugifyName)(value),
|
|
20
24
|
};
|
|
21
25
|
}, [currentId]);
|
|
26
|
+
const compositionId = (0, slugify_name_1.slugifyName)(newId);
|
|
22
27
|
const validationMessage = (0, react_1.useMemo)(() => {
|
|
23
28
|
return getValidationMessage(newId);
|
|
24
29
|
}, [getValidationMessage, newId]);
|
|
25
30
|
const codemod = (0, react_1.useMemo)(() => {
|
|
26
31
|
return getCodemod(newId);
|
|
27
32
|
}, [getCodemod, newId]);
|
|
28
|
-
const valid = validationMessage === null && currentId !==
|
|
33
|
+
const valid = validationMessage === null && currentId !== compositionId;
|
|
29
34
|
const renameComposition = (0, react_1.useCallback)(async ({ newCompositionId, signal, symbolicatedStack, }) => {
|
|
35
|
+
const nextCompositionId = (0, slugify_name_1.slugifyName)(newCompositionId);
|
|
30
36
|
const result = await (0, actions_1.applyCodemod)({
|
|
31
37
|
codemod: getCodemod(newCompositionId),
|
|
32
38
|
dryRun: false,
|
|
33
39
|
signal,
|
|
34
40
|
symbolicatedStack,
|
|
41
|
+
undoRedoNavigation: {
|
|
42
|
+
undoRoute: (0, url_state_1.getRoute)(),
|
|
43
|
+
redoRoute: `/${nextCompositionId}`,
|
|
44
|
+
},
|
|
35
45
|
});
|
|
36
46
|
if (result.success) {
|
|
37
|
-
(0, url_state_1.pushUrl)(`/${
|
|
47
|
+
(0, url_state_1.pushUrl)(`/${nextCompositionId}`);
|
|
38
48
|
}
|
|
39
49
|
return result;
|
|
40
50
|
}, [getCodemod]);
|
|
41
51
|
return {
|
|
42
52
|
codemod,
|
|
53
|
+
compositionId,
|
|
43
54
|
getValidationMessage,
|
|
44
55
|
renameComposition,
|
|
45
56
|
valid,
|
package/dist/icons/skills.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.SkillsIcon = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const SkillsIcon = ({ color, ...props }) => {
|
|
6
6
|
return (jsx_runtime_1.jsxs("svg", { ...props, fill: "none", viewBox: "0 0 16 16", children: [
|
|
7
|
-
jsx_runtime_1.jsx("path", { d: "M8 0.9 14.05 4.35v7.3L8 15.1 1.95 11.65v-7.3L8 0.9Z", stroke: color, strokeLinejoin: "round", strokeWidth: "
|
|
7
|
+
jsx_runtime_1.jsx("path", { d: "M8 0.9 14.05 4.35v7.3L8 15.1 1.95 11.65v-7.3L8 0.9Z", stroke: color, strokeLinejoin: "round", strokeWidth: "0.85" }), jsx_runtime_1.jsx("path", { d: "m1.95 4.35 6.05 3.55 6.05-3.55M8 7.9v7.2M1.95 8 8 11.55 14.05 8", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "0.85" })
|
|
8
8
|
] }));
|
|
9
9
|
};
|
|
10
10
|
exports.SkillsIcon = SkillsIcon;
|
package/dist/renderEntry.js
CHANGED
|
@@ -187,13 +187,13 @@ const renderContent = (Root) => {
|
|
|
187
187
|
defaultPixelFormat: bundleMode.compositionDefaultPixelFormat,
|
|
188
188
|
defaultProResProfile: bundleMode.compositionDefaultProResProfile,
|
|
189
189
|
defaultSampleRate: bundleMode.compositionDefaultSampleRate,
|
|
190
|
-
}, initialCompositions: [], children: jsx_runtime_1.jsx(remotion_1.Internals.RemotionRootContexts, { frameState: null, audioEnabled: window.remotion_audioEnabled, videoEnabled: window.remotion_videoEnabled, logLevel: (_a = window.remotion_logLevel) !== null && _a !== void 0 ? _a : 'info', numberOfAudioTags: 0, audioLatencyHint: (_b = window.remotion_audioLatencyHint) !== null && _b !== void 0 ? _b : 'playback', previewSampleRate: window.
|
|
190
|
+
}, initialCompositions: [], children: jsx_runtime_1.jsx(remotion_1.Internals.RemotionRootContexts, { frameState: null, audioEnabled: window.remotion_audioEnabled, videoEnabled: window.remotion_videoEnabled, logLevel: (_a = window.remotion_logLevel) !== null && _a !== void 0 ? _a : 'info', numberOfAudioTags: 0, audioLatencyHint: (_b = window.remotion_audioLatencyHint) !== null && _b !== void 0 ? _b : 'playback', previewSampleRate: window.remotion_sampleRate, _experimentalKeepAudioContextAlive: false, children: jsx_runtime_1.jsxs(remotion_1.Internals.RenderAssetManagerProvider, { collectAssets: null, children: [
|
|
191
191
|
jsx_runtime_1.jsx(Root, {}), jsx_runtime_1.jsx(GetVideoComposition, { state: bundleMode })
|
|
192
192
|
] }) }) }));
|
|
193
193
|
renderToDOM(markup);
|
|
194
194
|
}
|
|
195
195
|
if (bundleMode.type === 'evaluation') {
|
|
196
|
-
const markup = (jsx_runtime_1.jsx(remotion_1.Internals.CompositionManagerProvider, { initialCanvasContent: null, onlyRenderComposition: null, currentCompositionMetadata: null, initialCompositions: [], children: jsx_runtime_1.jsx(remotion_1.Internals.RemotionRootContexts, { frameState: null, audioEnabled: window.remotion_audioEnabled, videoEnabled: window.remotion_videoEnabled, logLevel: (_c = window.remotion_logLevel) !== null && _c !== void 0 ? _c : 'info', numberOfAudioTags: 0, audioLatencyHint: (_d = window.remotion_audioLatencyHint) !== null && _d !== void 0 ? _d : 'playback', previewSampleRate: window.
|
|
196
|
+
const markup = (jsx_runtime_1.jsx(remotion_1.Internals.CompositionManagerProvider, { initialCanvasContent: null, onlyRenderComposition: null, currentCompositionMetadata: null, initialCompositions: [], children: jsx_runtime_1.jsx(remotion_1.Internals.RemotionRootContexts, { frameState: null, audioEnabled: window.remotion_audioEnabled, videoEnabled: window.remotion_videoEnabled, logLevel: (_c = window.remotion_logLevel) !== null && _c !== void 0 ? _c : 'info', numberOfAudioTags: 0, audioLatencyHint: (_d = window.remotion_audioLatencyHint) !== null && _d !== void 0 ? _d : 'playback', previewSampleRate: window.remotion_sampleRate, _experimentalKeepAudioContextAlive: false, children: jsx_runtime_1.jsx(remotion_1.Internals.RenderAssetManagerProvider, { collectAssets: null, children: jsx_runtime_1.jsx(Root, {}) }) }) }));
|
|
197
197
|
renderToDOM(markup);
|
|
198
198
|
}
|
|
199
199
|
if (bundleMode.type === 'index') {
|
package/dist/state/modals.d.ts
CHANGED
|
@@ -109,6 +109,18 @@ export type AddEffectModalState = {
|
|
|
109
109
|
nodePath: SequencePropsSubscriptionKey;
|
|
110
110
|
clientId: string;
|
|
111
111
|
};
|
|
112
|
+
export type AssetSelectionModalState = {
|
|
113
|
+
readonly type: 'asset-selection';
|
|
114
|
+
readonly assetType: 'audio' | 'video' | 'image';
|
|
115
|
+
readonly initialUrl: string | null;
|
|
116
|
+
readonly invocationTimestamp: number;
|
|
117
|
+
readonly assetSelection: {
|
|
118
|
+
readonly initialQuery: string;
|
|
119
|
+
readonly onSelectFile: () => void;
|
|
120
|
+
readonly onSelected: (asset: StaticFile) => void;
|
|
121
|
+
};
|
|
122
|
+
readonly onSelectedUrl: (url: string) => void;
|
|
123
|
+
};
|
|
112
124
|
export type TranscriptionModalState = {
|
|
113
125
|
type: 'transcribe';
|
|
114
126
|
src: string;
|
|
@@ -206,7 +218,7 @@ export type ModalState = {
|
|
|
206
218
|
type: 'element-library';
|
|
207
219
|
name: string;
|
|
208
220
|
url: string;
|
|
209
|
-
} | ElementInstallModalState | AddEffectModalState | TranscriptionModalState | VideoMattingModalState | ConfirmationDialogState | SvgImportDialogState;
|
|
221
|
+
} | ElementInstallModalState | AddEffectModalState | AssetSelectionModalState | TranscriptionModalState | VideoMattingModalState | ConfirmationDialogState | SvgImportDialogState;
|
|
210
222
|
export type SetSelectedModalContextType = {
|
|
211
223
|
setSelectedModal: React.Dispatch<React.SetStateAction<ModalState | null>>;
|
|
212
224
|
};
|
package/dist/state/z-index.js
CHANGED
|
@@ -81,9 +81,7 @@ const HigherZIndex = ({ children, onEscape, onOutsideClick, disabled, outsideCli
|
|
|
81
81
|
onEnd: (reason, upEvent) => {
|
|
82
82
|
var _a;
|
|
83
83
|
endPointerSession = null;
|
|
84
|
-
if ((reason
|
|
85
|
-
upEvent &&
|
|
86
|
-
!(0, input_dragger_click_lock_1.getClickLock)()) {
|
|
84
|
+
if ((0, pointer_session_1.isPointerSessionRelease)(reason, upEvent) && !(0, input_dragger_click_lock_1.getClickLock)()) {
|
|
87
85
|
const target = (_a = document.elementFromPoint(upEvent.clientX, upEvent.clientY)) !== null && _a !== void 0 ? _a : upEvent.target;
|
|
88
86
|
if (document.contains(target)) {
|
|
89
87
|
upEvent.stopPropagation();
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/studio",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.525",
|
|
7
7
|
"description": "APIs for interacting with the Remotion Studio",
|
|
8
8
|
"main": "dist",
|
|
9
9
|
"scripts": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@remotion/video-matting": "4.0.
|
|
24
|
-
"@remotion/whisper-webgpu": "4.0.
|
|
23
|
+
"@remotion/video-matting": "4.0.525",
|
|
24
|
+
"@remotion/whisper-webgpu": "4.0.525",
|
|
25
25
|
"react": ">=16.8.0",
|
|
26
26
|
"react-dom": ">=16.8.0"
|
|
27
27
|
},
|
|
@@ -35,32 +35,32 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
38
|
-
"@remotion/canvas": "4.0.
|
|
39
|
-
"@remotion/captions": "4.0.
|
|
40
|
-
"@remotion/media": "4.0.
|
|
41
|
-
"@remotion/media-utils": "4.0.
|
|
42
|
-
"@remotion/player": "4.0.
|
|
43
|
-
"@remotion/renderer": "4.0.
|
|
44
|
-
"@remotion/studio-codemods": "4.0.
|
|
45
|
-
"@remotion/studio-protocol": "4.0.
|
|
46
|
-
"@remotion/studio-shared": "4.0.
|
|
47
|
-
"@remotion/timeline-utils": "4.0.
|
|
48
|
-
"@remotion/web-renderer": "4.0.
|
|
49
|
-
"@remotion/zod-types": "4.0.
|
|
38
|
+
"@remotion/canvas": "4.0.525",
|
|
39
|
+
"@remotion/captions": "4.0.525",
|
|
40
|
+
"@remotion/media": "4.0.525",
|
|
41
|
+
"@remotion/media-utils": "4.0.525",
|
|
42
|
+
"@remotion/player": "4.0.525",
|
|
43
|
+
"@remotion/renderer": "4.0.525",
|
|
44
|
+
"@remotion/studio-codemods": "4.0.525",
|
|
45
|
+
"@remotion/studio-protocol": "4.0.525",
|
|
46
|
+
"@remotion/studio-shared": "4.0.525",
|
|
47
|
+
"@remotion/timeline-utils": "4.0.525",
|
|
48
|
+
"@remotion/web-renderer": "4.0.525",
|
|
49
|
+
"@remotion/zod-types": "4.0.525",
|
|
50
50
|
"@tanstack/react-virtual": "3.14.9",
|
|
51
|
-
"mediabunny": "1.
|
|
51
|
+
"mediabunny": "1.56.1",
|
|
52
52
|
"memfs": "3.4.3",
|
|
53
53
|
"open": "8.4.2",
|
|
54
54
|
"prismjs": "1.30.0",
|
|
55
|
-
"remotion": "4.0.
|
|
55
|
+
"remotion": "4.0.525",
|
|
56
56
|
"semver": "7.5.3",
|
|
57
57
|
"zod": "4.5.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@happy-dom/global-registrator": "14.5.1",
|
|
61
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
62
|
-
"@remotion/video-matting": "4.0.
|
|
63
|
-
"@remotion/whisper-webgpu": "4.0.
|
|
61
|
+
"@remotion/eslint-config-internal": "4.0.525",
|
|
62
|
+
"@remotion/video-matting": "4.0.525",
|
|
63
|
+
"@remotion/whisper-webgpu": "4.0.525",
|
|
64
64
|
"@testing-library/react": "16.1.0",
|
|
65
65
|
"@types/prismjs": "1.26.4",
|
|
66
66
|
"@types/semver": "7.5.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const prismTomorrow = "/**\n * prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML\n * Based on https://github.com/chriskempson/tomorrow-theme\n * @author Rose Pritchard\n */\n\ncode[class*=\"language-\"],\npre[class*=\"language-\"] {\n\tcolor: #ccc;\n\tbackground: none;\n\tfont-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n\tfont-size: 1em;\n\ttext-align: left;\n\twhite-space: pre;\n\tword-spacing: normal;\n\tword-break: normal;\n\tword-wrap: normal;\n\tline-height: 1.5;\n\n\t-moz-tab-size: 4;\n\t-o-tab-size: 4;\n\ttab-size: 4;\n\n\t-webkit-hyphens: none;\n\t-moz-hyphens: none;\n\t-ms-hyphens: none;\n\thyphens: none;\n\n}\n\n/* Code blocks */\npre[class*=\"language-\"] {\n\tpadding: 1em;\n\tmargin: .5em 0;\n\toverflow: auto;\n}\n\n:not(pre) > code[class*=\"language-\"],\npre[class*=\"language-\"] {\n\tbackground: #2d2d2d;\n}\n\n/* Inline code */\n:not(pre) > code[class*=\"language-\"] {\n\tpadding: .1em;\n\tborder-radius: .3em;\n\twhite-space: normal;\n}\n\n.token.comment,\n.token.block-comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n\tcolor: #999;\n}\n\n.token.punctuation {\n\tcolor: #ccc;\n}\n\n.token.tag,\n.token.attr-name,\n.token.namespace,\n.token.deleted {\n\tcolor: #e2777a;\n}\n\n.token.function-name {\n\tcolor: #6196cc;\n}\n\n.token.boolean,\n.token.number,\n.token.function {\n\tcolor: #f08d49;\n}\n\n.token.property,\n.token.class-name,\n.token.constant,\n.token.symbol {\n\tcolor: #f8c555;\n}\n\n.token.selector,\n.token.important,\n.token.atrule,\n.token.keyword,\n.token.builtin {\n\tcolor: #cc99cd;\n}\n\n.token.string,\n.token.char,\n.token.attr-value,\n.token.regex,\n.token.variable {\n\tcolor: #7ec699;\n}\n\n.token.operator,\n.token.entity,\n.token.url {\n\tcolor: #67cdcc;\n}\n\n.token.important,\n.token.bold {\n\tfont-weight: bold;\n}\n.token.italic {\n\tfont-style: italic;\n}\n\n.token.entity {\n\tcursor: help;\n}\n\n.token.inserted {\n\tcolor: green;\n}\n";
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.prismTomorrow = void 0;
|
|
4
|
-
// Unmodified prismjs@1.30.0/themes/prism-tomorrow.css, stored as a string for
|
|
5
|
-
// Studio’s CSS injection (including Browser Studio, which has no CSS loader).
|
|
6
|
-
/*
|
|
7
|
-
MIT LICENSE
|
|
8
|
-
|
|
9
|
-
Copyright (c) 2012 Lea Verou
|
|
10
|
-
|
|
11
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
-
in the Software without restriction, including without limitation the rights
|
|
14
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
-
furnished to do so, subject to the following conditions:
|
|
17
|
-
|
|
18
|
-
The above copyright notice and this permission notice shall be included in
|
|
19
|
-
all copies or substantial portions of the Software.
|
|
20
|
-
|
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
27
|
-
THE SOFTWARE.
|
|
28
|
-
*/
|
|
29
|
-
exports.prismTomorrow = `/**
|
|
30
|
-
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
|
|
31
|
-
* Based on https://github.com/chriskempson/tomorrow-theme
|
|
32
|
-
* @author Rose Pritchard
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
code[class*="language-"],
|
|
36
|
-
pre[class*="language-"] {
|
|
37
|
-
color: #ccc;
|
|
38
|
-
background: none;
|
|
39
|
-
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
40
|
-
font-size: 1em;
|
|
41
|
-
text-align: left;
|
|
42
|
-
white-space: pre;
|
|
43
|
-
word-spacing: normal;
|
|
44
|
-
word-break: normal;
|
|
45
|
-
word-wrap: normal;
|
|
46
|
-
line-height: 1.5;
|
|
47
|
-
|
|
48
|
-
-moz-tab-size: 4;
|
|
49
|
-
-o-tab-size: 4;
|
|
50
|
-
tab-size: 4;
|
|
51
|
-
|
|
52
|
-
-webkit-hyphens: none;
|
|
53
|
-
-moz-hyphens: none;
|
|
54
|
-
-ms-hyphens: none;
|
|
55
|
-
hyphens: none;
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* Code blocks */
|
|
60
|
-
pre[class*="language-"] {
|
|
61
|
-
padding: 1em;
|
|
62
|
-
margin: .5em 0;
|
|
63
|
-
overflow: auto;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
:not(pre) > code[class*="language-"],
|
|
67
|
-
pre[class*="language-"] {
|
|
68
|
-
background: #2d2d2d;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Inline code */
|
|
72
|
-
:not(pre) > code[class*="language-"] {
|
|
73
|
-
padding: .1em;
|
|
74
|
-
border-radius: .3em;
|
|
75
|
-
white-space: normal;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.token.comment,
|
|
79
|
-
.token.block-comment,
|
|
80
|
-
.token.prolog,
|
|
81
|
-
.token.doctype,
|
|
82
|
-
.token.cdata {
|
|
83
|
-
color: #999;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.token.punctuation {
|
|
87
|
-
color: #ccc;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.token.tag,
|
|
91
|
-
.token.attr-name,
|
|
92
|
-
.token.namespace,
|
|
93
|
-
.token.deleted {
|
|
94
|
-
color: #e2777a;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.token.function-name {
|
|
98
|
-
color: #6196cc;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.token.boolean,
|
|
102
|
-
.token.number,
|
|
103
|
-
.token.function {
|
|
104
|
-
color: #f08d49;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.token.property,
|
|
108
|
-
.token.class-name,
|
|
109
|
-
.token.constant,
|
|
110
|
-
.token.symbol {
|
|
111
|
-
color: #f8c555;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.token.selector,
|
|
115
|
-
.token.important,
|
|
116
|
-
.token.atrule,
|
|
117
|
-
.token.keyword,
|
|
118
|
-
.token.builtin {
|
|
119
|
-
color: #cc99cd;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.token.string,
|
|
123
|
-
.token.char,
|
|
124
|
-
.token.attr-value,
|
|
125
|
-
.token.regex,
|
|
126
|
-
.token.variable {
|
|
127
|
-
color: #7ec699;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.token.operator,
|
|
131
|
-
.token.entity,
|
|
132
|
-
.token.url {
|
|
133
|
-
color: #67cdcc;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.token.important,
|
|
137
|
-
.token.bold {
|
|
138
|
-
font-weight: bold;
|
|
139
|
-
}
|
|
140
|
-
.token.italic {
|
|
141
|
-
font-style: italic;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.token.entity {
|
|
145
|
-
cursor: help;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.token.inserted {
|
|
149
|
-
color: green;
|
|
150
|
-
}
|
|
151
|
-
`;
|