@remotion/cli 3.0.22 → 3.0.25
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/chalk/index.d.ts +58 -0
- package/dist/chalk/index.js +138 -0
- package/dist/chalk/symbols.d.ts +111 -0
- package/dist/chalk/symbols.js +75 -0
- package/dist/chalk/utilities.d.ts +2 -0
- package/dist/chalk/utilities.js +37 -0
- package/dist/code-frame.d.ts +1 -1
- package/dist/code-frame.js +5 -8
- package/dist/download-progress.d.ts +1 -1
- package/dist/editor/components/CompositionSelectorItem.d.ts +1 -1
- package/dist/editor/components/FramePersistor.d.ts +1 -1
- package/dist/editor/components/GlobalKeybindings.d.ts +1 -1
- package/dist/editor/components/InitialCompositionLoader.d.ts +2 -2
- package/dist/editor/components/Menu/MenuItem.d.ts +1 -1
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -1
- package/dist/editor/components/Menu/SubMenu.d.ts +2 -2
- package/dist/editor/components/NewComposition/CancelButton.d.ts +2 -1
- package/dist/editor/components/NewComposition/InputDragger.d.ts +2 -1
- package/dist/editor/components/NewComposition/MenuContent.d.ts +1 -1
- package/dist/editor/components/NewComposition/NewComposition.d.ts +1 -1
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts +1 -1
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +1 -1
- package/dist/editor/components/PlaybackRatePersistor.d.ts +1 -1
- package/dist/editor/components/Preview.d.ts +1 -1
- package/dist/editor/components/SizeSelector.d.ts +1 -1
- package/dist/editor/components/Splitter/SplitterContainer.d.ts +1 -1
- package/dist/editor/components/Thumbnail.d.ts +1 -1
- package/dist/editor/components/Timeline/TimelineList.d.ts +2 -2
- package/dist/editor/components/Timeline/TimelineListItem.d.ts +2 -2
- package/dist/editor/components/Timeline/TimelineSequence.d.ts +1 -1
- package/dist/editor/components/Timeline/TimelineTracks.d.ts +2 -2
- package/dist/editor/components/Timeline/is-collapsed.d.ts +2 -2
- package/dist/editor/components/UpdateCheck.d.ts +1 -1
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts +1 -1
- package/dist/editor/helpers/calculate-timeline.d.ts +2 -2
- package/dist/editor/helpers/create-folder-tree.d.ts +2 -2
- package/dist/editor/helpers/get-sequence-visible-range.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-nestedness.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +1 -1
- package/dist/editor/helpers/is-composition-still.d.ts +1 -1
- package/dist/editor/helpers/use-keybinding.d.ts +1 -1
- package/dist/editor/helpers/validate-new-comp-data.d.ts +1 -1
- package/dist/editor/icons/film.d.ts +2 -1
- package/dist/editor/icons/folder.d.ts +2 -1
- package/dist/editor/icons/jump-to-start.d.ts +1 -1
- package/dist/editor/icons/lock.d.ts +2 -1
- package/dist/editor/icons/pause.d.ts +2 -1
- package/dist/editor/icons/play.d.ts +2 -1
- package/dist/editor/icons/step-back.d.ts +2 -1
- package/dist/editor/icons/step-forward.d.ts +2 -1
- package/dist/editor/icons/still.d.ts +2 -1
- package/dist/editor/icons/timeline.d.ts +2 -1
- package/dist/editor/icons/timelineInOutPointer.d.ts +2 -1
- package/dist/editor/state/folders.d.ts +1 -1
- package/dist/editor/state/modals.d.ts +2 -2
- package/dist/editor/state/preview-size.d.ts +1 -1
- package/dist/get-cli-options.d.ts +2 -2
- package/dist/get-composition-id.d.ts +1 -1
- package/dist/get-filename.d.ts +1 -1
- package/dist/image-formats.d.ts +2 -1
- package/dist/index.d.ts +52 -11
- package/dist/index.js +2 -5
- package/dist/log.js +4 -7
- package/dist/parse-command-line.d.ts +1 -1
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +2 -2
- package/dist/preview-server/dev-middleware/get-paths.d.ts +1 -1
- package/dist/preview-server/dev-middleware/index.d.ts +2 -2
- package/dist/preview-server/dev-middleware/middleware.d.ts +2 -2
- package/dist/preview-server/dev-middleware/ready.d.ts +2 -2
- package/dist/preview-server/dev-middleware/setup-hooks.d.ts +1 -1
- package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +1 -1
- package/dist/preview-server/dev-middleware/types.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +2 -2
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +0 -6
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +0 -8
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +0 -9
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +1 -1
- package/dist/preview-server/hot-middleware/client.d.ts +1 -1
- package/dist/preview-server/hot-middleware/index.d.ts +2 -2
- package/dist/preview-server/hot-middleware/process-update.d.ts +1 -1
- package/dist/preview-server/hot-middleware/types.d.ts +1 -1
- package/dist/preview-server/routes.d.ts +1 -1
- package/dist/preview-server/serve-static.d.ts +1 -1
- package/dist/preview-server/start-server.d.ts +1 -1
- package/dist/preview-server/update-available.d.ts +1 -1
- package/dist/print-error.js +5 -8
- package/dist/print-help.js +8 -11
- package/dist/progress-bar.d.ts +2 -2
- package/dist/progress-bar.js +4 -7
- package/dist/render.js +4 -4
- package/dist/setup-cache.d.ts +1 -1
- package/dist/still.js +3 -3
- package/dist/warn-about-ffmpeg-version.d.ts +1 -1
- package/package.json +8 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TrackWithHash } from '../../helpers/get-timeline-sequence-sort-key';
|
|
2
|
-
import { TimelineViewState } from './timeline-state-reducer';
|
|
1
|
+
import type { TrackWithHash } from '../../helpers/get-timeline-sequence-sort-key';
|
|
2
|
+
import type { TimelineViewState } from './timeline-state-reducer';
|
|
3
3
|
export declare const isTrackCollapsed: (hash: string, viewState: TimelineViewState) => boolean;
|
|
4
4
|
export declare const isTrackHidden: (track: TrackWithHash, allTracks: TrackWithHash[], viewState: TimelineViewState) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PackageManager } from '../../preview-server/get-package-manager';
|
|
2
|
+
import type { PackageManager } from '../../preview-server/get-package-manager';
|
|
3
3
|
export declare type UpdateInfo = {
|
|
4
4
|
currentVersion: string;
|
|
5
5
|
latestVersion: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TSequence } from 'remotion';
|
|
2
|
-
import { TrackWithHash } from './get-timeline-sequence-sort-key';
|
|
1
|
+
import type { TSequence } from 'remotion';
|
|
2
|
+
import type { TrackWithHash } from './get-timeline-sequence-sort-key';
|
|
3
3
|
export declare type SequenceWithOverlap = {
|
|
4
4
|
sequence: TSequence;
|
|
5
5
|
overlaps: TSequence[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TComposition, TFolder } from 'remotion';
|
|
2
|
-
import { CompositionSelectorItemType } from '../components/CompositionSelectorItem';
|
|
1
|
+
import type { TComposition, TFolder } from 'remotion';
|
|
2
|
+
import type { CompositionSelectorItemType } from '../components/CompositionSelectorItem';
|
|
3
3
|
export declare const splitParentIntoNameAndParent: (name: string | null) => {
|
|
4
4
|
name: string | null;
|
|
5
5
|
parent: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TSequence } from 'remotion';
|
|
1
|
+
import type { TSequence } from 'remotion';
|
|
2
2
|
export declare const getCascadedStart: (sequence: TSequence, sequences: TSequence[]) => number;
|
|
3
3
|
export declare const getTimelineVisibleStart: (sequence: TSequence, sequences: TSequence[]) => number;
|
|
4
4
|
export declare const getTimelineVisibleDuration: (sequence: TSequence, sequences: TSequence[]) => number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TSequence } from 'remotion';
|
|
1
|
+
import type { TSequence } from 'remotion';
|
|
2
2
|
export declare const getTimelineNestedLevel: (sequence: TSequence, allSequences: TSequence[], depth: number) => number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TComposition } from 'remotion';
|
|
1
|
+
import type { TComposition } from 'remotion';
|
|
2
2
|
export declare const SEQUENCE_BORDER_WIDTH = 1;
|
|
3
3
|
export declare const getTimelineSequenceLayout: ({ durationInFrames, startFrom, maxMediaDuration, startFromMedia, video, windowWidth, }: {
|
|
4
4
|
durationInFrames: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TComposition } from 'remotion';
|
|
1
|
+
import type { TComposition } from 'remotion';
|
|
2
2
|
export declare const isCompositionStill: (comp: TComposition) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyEventType } from '../state/keybindings';
|
|
1
|
+
import type { KeyEventType } from '../state/keybindings';
|
|
2
2
|
export declare const useKeybinding: () => {
|
|
3
3
|
registerKeybinding: (event: KeyEventType, key: string, callback: (e: KeyboardEvent) => void) => {
|
|
4
4
|
unregister: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TComposition } from 'remotion';
|
|
1
|
+
import type { TComposition } from 'remotion';
|
|
2
2
|
export declare const validateCompositionName: (compName: string, compositions: TComposition<unknown>[]) => string | null;
|
|
3
3
|
export declare const validateCompositionDimension: (dimension: 'Width' | 'Height', value: string) => string | null;
|
|
4
4
|
export declare const validateCompositionDuration: (value: string) => string | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SVGProps } from 'react';
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
2
|
export declare const JumpToStart: React.FC<SVGProps<SVGSVGElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ExpandedFoldersState } from '../helpers/persist-open-folders';
|
|
2
|
+
import type { ExpandedFoldersState } from '../helpers/persist-open-folders';
|
|
3
3
|
declare type TFolderContext = {
|
|
4
4
|
foldersExpanded: ExpandedFoldersState;
|
|
5
5
|
setFoldersExpanded: React.Dispatch<React.SetStateAction<ExpandedFoldersState>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { UpdateInfo } from '../components/UpdateCheck';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { UpdateInfo } from '../components/UpdateCheck';
|
|
3
3
|
export declare type CompType = 'composition' | 'still';
|
|
4
4
|
export declare type ModalState = {
|
|
5
5
|
type: 'new-comp';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChromiumOptions } from '@remotion/renderer';
|
|
2
|
-
import { BrowserExecutable, FrameRange } from 'remotion';
|
|
1
|
+
import type { ChromiumOptions } from '@remotion/renderer';
|
|
2
|
+
import type { BrowserExecutable, FrameRange } from 'remotion';
|
|
3
3
|
export declare const getCliOptions: (options: {
|
|
4
4
|
isLambda: boolean;
|
|
5
5
|
type: 'still' | 'series' | 'get-compositions';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TCompMetadata } from 'remotion';
|
|
1
|
+
import type { TCompMetadata } from 'remotion';
|
|
2
2
|
export declare const getCompositionId: (comps: TCompMetadata[]) => string;
|
package/dist/get-filename.d.ts
CHANGED
package/dist/image-formats.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,62 @@
|
|
|
1
1
|
/// <reference types="minimist" />
|
|
2
|
-
import chalk from 'chalk';
|
|
3
2
|
export declare const cli: () => Promise<void>;
|
|
4
3
|
export * from './render';
|
|
5
4
|
export declare const CliInternals: {
|
|
6
5
|
createOverwriteableCliOutput: (quiet: boolean) => {
|
|
7
6
|
update: (up: string) => boolean;
|
|
8
7
|
};
|
|
9
|
-
chalk:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
chalk: {
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
visible: boolean;
|
|
11
|
+
styles: Record<string, {
|
|
12
|
+
codes: [number, number];
|
|
13
|
+
name: string;
|
|
14
|
+
wrap?: ((input: string, newline: boolean) => string) | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
keys: Record<string, string[]>;
|
|
17
|
+
alias?: ((name: string, col: string) => void) | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
reset: (str: string) => string;
|
|
20
|
+
bold: (str: string) => string;
|
|
21
|
+
dim: (str: string) => string;
|
|
22
|
+
italic: (str: string) => string;
|
|
23
|
+
underline: (str: string) => string;
|
|
24
|
+
inverse: (str: string) => string;
|
|
25
|
+
hidden: (str: string) => string;
|
|
26
|
+
strikethrough: (str: string) => string;
|
|
27
|
+
black: (str: string) => string;
|
|
28
|
+
red: (str: string) => string;
|
|
29
|
+
green: (str: string) => string;
|
|
30
|
+
yellow: (str: string) => string;
|
|
31
|
+
blue: (str: string) => string;
|
|
32
|
+
magenta: (str: string) => string;
|
|
33
|
+
cyan: (str: string) => string;
|
|
34
|
+
white: (str: string) => string;
|
|
35
|
+
gray: (str: string) => string;
|
|
36
|
+
bgBlack: (str: string) => string;
|
|
37
|
+
bgRed: (str: string) => string;
|
|
38
|
+
bgGreen: (str: string) => string;
|
|
39
|
+
bgYellow: (str: string) => string;
|
|
40
|
+
bgBlue: (str: string) => string;
|
|
41
|
+
bgMagenta: (str: string) => string;
|
|
42
|
+
bgCyan: (str: string) => string;
|
|
43
|
+
bgWhite: (str: string) => string;
|
|
44
|
+
blackBright: (str: string) => string;
|
|
45
|
+
redBright: (str: string) => string;
|
|
46
|
+
greenBright: (str: string) => string;
|
|
47
|
+
yellowBright: (str: string) => string;
|
|
48
|
+
blueBright: (str: string) => string;
|
|
49
|
+
magentaBright: (str: string) => string;
|
|
50
|
+
cyanBright: (str: string) => string;
|
|
51
|
+
whiteBright: (str: string) => string;
|
|
52
|
+
bgBlackBright: (str: string) => string;
|
|
53
|
+
bgRedBright: (str: string) => string;
|
|
54
|
+
bgGreenBright: (str: string) => string;
|
|
55
|
+
bgYellowBright: (str: string) => string;
|
|
56
|
+
bgBlueBright: (str: string) => string;
|
|
57
|
+
bgMagentaBright: (str: string) => string;
|
|
58
|
+
bgCyanBright: (str: string) => string;
|
|
59
|
+
bgWhiteBright: (str: string) => string;
|
|
19
60
|
};
|
|
20
61
|
makeProgressBar: (percentage: number) => string;
|
|
21
62
|
Log: {
|
package/dist/index.js
CHANGED
|
@@ -13,12 +13,9 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
17
|
exports.CliInternals = exports.cli = void 0;
|
|
21
|
-
const chalk_1 =
|
|
18
|
+
const chalk_1 = require("./chalk");
|
|
22
19
|
const check_version_1 = require("./check-version");
|
|
23
20
|
const compositions_1 = require("./compositions");
|
|
24
21
|
const get_cli_options_1 = require("./get-cli-options");
|
|
@@ -91,7 +88,7 @@ exports.cli = cli;
|
|
|
91
88
|
__exportStar(require("./render"), exports);
|
|
92
89
|
exports.CliInternals = {
|
|
93
90
|
createOverwriteableCliOutput: progress_bar_1.createOverwriteableCliOutput,
|
|
94
|
-
chalk: chalk_1.
|
|
91
|
+
chalk: chalk_1.chalk,
|
|
95
92
|
makeProgressBar: make_progress_bar_1.makeProgressBar,
|
|
96
93
|
Log: log_1.Log,
|
|
97
94
|
loadConfigFile: load_config_1.loadConfigFile,
|
package/dist/log.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
4
|
exports.Log = void 0;
|
|
8
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
9
5
|
const remotion_1 = require("remotion");
|
|
6
|
+
const chalk_1 = require("./chalk");
|
|
10
7
|
exports.Log = {
|
|
11
8
|
verbose: (...args) => {
|
|
12
9
|
if (remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose')) {
|
|
13
|
-
return console.log(chalk_1.
|
|
10
|
+
return console.log(...args.map((a) => chalk_1.chalk.blueBright(a)));
|
|
14
11
|
}
|
|
15
12
|
},
|
|
16
13
|
info: (...args) => {
|
|
@@ -20,12 +17,12 @@ exports.Log = {
|
|
|
20
17
|
},
|
|
21
18
|
warn: (...args) => {
|
|
22
19
|
if (remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'warn')) {
|
|
23
|
-
return console.warn(chalk_1.
|
|
20
|
+
return console.warn(...args.map((a) => chalk_1.chalk.yellow(a)));
|
|
24
21
|
}
|
|
25
22
|
},
|
|
26
23
|
error: (...args) => {
|
|
27
24
|
if (remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'error')) {
|
|
28
|
-
return console.error(chalk_1.
|
|
25
|
+
return console.error(...args.map((a) => chalk_1.chalk.red(a)));
|
|
29
26
|
}
|
|
30
27
|
},
|
|
31
28
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import minimist from 'minimist';
|
|
2
|
-
import { BrowserExecutable, Codec, FfmpegExecutable, ImageFormat, OpenGlRenderer, PixelFormat, ProResProfile } from 'remotion';
|
|
2
|
+
import type { BrowserExecutable, Codec, FfmpegExecutable, ImageFormat, OpenGlRenderer, PixelFormat, ProResProfile } from 'remotion';
|
|
3
3
|
export declare type CommandLineOptions = {
|
|
4
4
|
['browser-executable']: BrowserExecutable;
|
|
5
5
|
['ffmpeg-executable']: FfmpegExecutable;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
/// <reference types="node" />
|
|
4
|
-
import { ReadStream } from 'fs';
|
|
5
|
-
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
|
+
import type { ReadStream } from 'fs';
|
|
5
|
+
import type { IncomingMessage, ServerResponse } from 'http';
|
|
6
6
|
export declare function setHeaderForResponse(res: ServerResponse, name: string, value: string | number): void;
|
|
7
7
|
export declare function send(req: IncomingMessage, res: ServerResponse, bufferOtStream: ReadStream | string | Buffer, byteLength: number): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { webpack } from '@remotion/bundler';
|
|
2
|
-
import { MiddleWare } from './middleware';
|
|
1
|
+
import type { webpack } from '@remotion/bundler';
|
|
2
|
+
import type { MiddleWare } from './middleware';
|
|
3
3
|
export declare const wdm: (compiler: webpack.Compiler) => MiddleWare;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { IncomingMessage, ServerResponse } from 'http';
|
|
3
|
-
import { DevMiddlewareContext } from './types';
|
|
2
|
+
import type { IncomingMessage, ServerResponse } from 'http';
|
|
3
|
+
import type { DevMiddlewareContext } from './types';
|
|
4
4
|
export declare function getFilenameFromUrl(context: DevMiddlewareContext, url: string | undefined): string | undefined;
|
|
5
5
|
export declare function getValueContentRangeHeader(type: string, size: number, range?: {
|
|
6
6
|
start: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { webpack } from '@remotion/bundler';
|
|
2
|
-
import { DevMiddlewareContext } from './types';
|
|
1
|
+
import type { webpack } from '@remotion/bundler';
|
|
2
|
+
import type { DevMiddlewareContext } from './types';
|
|
3
3
|
export declare function ready(context: DevMiddlewareContext, callback: (stats: webpack.Stats | undefined) => undefined | Promise<void>): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DevMiddlewareContext } from './types';
|
|
1
|
+
import type { DevMiddlewareContext } from './types';
|
|
2
2
|
export declare function setupHooks(context: DevMiddlewareContext): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DevMiddlewareContext } from './types';
|
|
1
|
+
import type { DevMiddlewareContext } from './types';
|
|
2
2
|
export declare function setupOutputFileSystem(context: DevMiddlewareContext): void;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import { ReactFrame } from './proxy-console';
|
|
7
|
+
import type { ReactFrame } from './proxy-console';
|
|
8
8
|
export declare function massageWarning(warning: string, frames: ReactFrame[]): {
|
|
9
9
|
message: string;
|
|
10
10
|
stack: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SymbolicatedStackFrame } from '../utils/stack-frame';
|
|
2
|
-
import { ErrorLocation } from './map-error-to-react-stack';
|
|
1
|
+
import type { SymbolicatedStackFrame } from '../utils/stack-frame';
|
|
2
|
+
import type { ErrorLocation } from './map-error-to-react-stack';
|
|
3
3
|
export declare const resolveFileSource: (location: ErrorLocation, contextLines: number) => Promise<SymbolicatedStackFrame>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import { ScriptLine } from './stack-frame';
|
|
7
|
+
import type { ScriptLine } from './stack-frame';
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @param {number} line The line number to provide context around.
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
1
|
import { SourceMapConsumer } from 'source-map';
|
|
8
2
|
export declare const getOriginalPosition: (source_map: SourceMapConsumer, line: number, column: number) => {
|
|
9
3
|
source: string | null;
|
|
@@ -4,14 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getSourceMap = exports.getOriginalPosition = void 0;
|
|
7
|
-
/* eslint-disable no-eq-null */
|
|
8
|
-
/* eslint-disable eqeqeq */
|
|
9
|
-
/**
|
|
10
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
7
|
const source_map_1 = require("source-map");
|
|
16
8
|
const getOriginalPosition = (source_map, line, column) => {
|
|
17
9
|
const result = source_map.originalPositionFor({
|
|
@@ -28,15 +28,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.launchEditor = exports.guessEditor = exports.getDisplayNameForEditor = void 0;
|
|
31
|
-
/*
|
|
32
|
-
Source code adapted from https://github.com/facebook/create-react-app/tree/main/packages/react-error-overlay and refactored in Typescript. This file is MIT-licensed.
|
|
33
|
-
*/
|
|
34
|
-
/**
|
|
35
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/
|
|
40
31
|
const child_process_1 = __importStar(require("child_process"));
|
|
41
32
|
const fs_1 = __importDefault(require("fs"));
|
|
42
33
|
const os_1 = __importDefault(require("os"));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SomeStackFrame } from './stack-frame';
|
|
1
|
+
import type { SomeStackFrame } from './stack-frame';
|
|
2
2
|
export declare const parseError: (error: Error | string | string[], contextLines: number) => Promise<SomeStackFrame[]>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SomeStackFrame, SymbolicatedStackFrame } from './stack-frame';
|
|
1
|
+
import type { SomeStackFrame, SymbolicatedStackFrame } from './stack-frame';
|
|
2
2
|
export declare const unmap: (frames: SomeStackFrame[], contextLines: number) => Promise<SymbolicatedStackFrame[]>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AskOnDiscord = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const DISCORD_LINK = 'https://
|
|
5
|
+
const DISCORD_LINK = 'https://remotion.dev/discord';
|
|
6
6
|
const react_1 = require("react");
|
|
7
7
|
const Button_1 = require("./Button");
|
|
8
8
|
const AskOnDiscord = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SymbolicatedStackFrame } from '../react-overlay/utils/stack-frame';
|
|
2
|
+
import type { SymbolicatedStackFrame } from '../react-overlay/utils/stack-frame';
|
|
3
3
|
export declare const OpenInEditor: React.FC<{
|
|
4
4
|
stack: SymbolicatedStackFrame;
|
|
5
5
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SymbolicatedStackFrame } from '../react-overlay/utils/stack-frame';
|
|
2
|
+
import type { SymbolicatedStackFrame } from '../react-overlay/utils/stack-frame';
|
|
3
3
|
export declare const StackElement: React.FC<{
|
|
4
4
|
s: SymbolicatedStackFrame;
|
|
5
5
|
lineNumberWidth: number;
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* https://github.com/webpack-contrib/webpack-hot-middleware#readme
|
|
4
4
|
* and rewritten in TypeScript. This file is MIT licensed
|
|
5
5
|
*/
|
|
6
|
-
import { webpack } from '@remotion/bundler';
|
|
7
|
-
import { IncomingMessage, ServerResponse } from 'http';
|
|
6
|
+
import type { webpack } from '@remotion/bundler';
|
|
7
|
+
import type { IncomingMessage, ServerResponse } from 'http';
|
|
8
8
|
export declare const webpackHotMiddleware: (compiler: webpack.Compiler) => (req: IncomingMessage, res: ServerResponse, next: () => void) => void;
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
* c0afdf9c6abc1dd70707c594e473802a566f7b6e/hot/only-dev-server.js
|
|
9
9
|
* Original copyright Tobias Koppers @sokra (MIT license)
|
|
10
10
|
*/
|
|
11
|
-
import { HotMiddlewareOptions, ModuleMap } from './types';
|
|
11
|
+
import type { HotMiddlewareOptions, ModuleMap } from './types';
|
|
12
12
|
export declare const processUpdate: (hash: string | undefined, moduleMap: ModuleMap, options: HotMiddlewareOptions) => void;
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
6
6
|
* MIT Licensed
|
|
7
7
|
*/
|
|
8
|
-
import { IncomingMessage, ServerResponse } from 'http';
|
|
8
|
+
import type { IncomingMessage, ServerResponse } from 'http';
|
|
9
9
|
export declare const serveStatic: (root: string, hash: string, req: IncomingMessage, res: ServerResponse) => Promise<void>;
|