@remotion/cli 3.0.22 → 4.0.0-2x.1

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.
Files changed (105) hide show
  1. package/dist/chalk/index.d.ts +58 -0
  2. package/dist/chalk/index.js +138 -0
  3. package/dist/chalk/symbols.d.ts +111 -0
  4. package/dist/chalk/symbols.js +75 -0
  5. package/dist/chalk/utilities.d.ts +2 -0
  6. package/dist/chalk/utilities.js +37 -0
  7. package/dist/code-frame.d.ts +1 -1
  8. package/dist/code-frame.js +5 -8
  9. package/dist/download-progress.d.ts +1 -1
  10. package/dist/editor/components/CompositionSelectorItem.d.ts +1 -1
  11. package/dist/editor/components/FramePersistor.d.ts +1 -1
  12. package/dist/editor/components/GlobalKeybindings.d.ts +1 -1
  13. package/dist/editor/components/InitialCompositionLoader.d.ts +2 -2
  14. package/dist/editor/components/Menu/MenuItem.d.ts +1 -1
  15. package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -1
  16. package/dist/editor/components/Menu/SubMenu.d.ts +2 -2
  17. package/dist/editor/components/NewComposition/CancelButton.d.ts +2 -1
  18. package/dist/editor/components/NewComposition/InputDragger.d.ts +2 -1
  19. package/dist/editor/components/NewComposition/MenuContent.d.ts +1 -1
  20. package/dist/editor/components/NewComposition/NewComposition.d.ts +1 -1
  21. package/dist/editor/components/NewComposition/new-comp-layout.d.ts +1 -1
  22. package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +1 -1
  23. package/dist/editor/components/PlaybackRatePersistor.d.ts +1 -1
  24. package/dist/editor/components/Preview.d.ts +1 -1
  25. package/dist/editor/components/SizeSelector.d.ts +1 -1
  26. package/dist/editor/components/Splitter/SplitterContainer.d.ts +1 -1
  27. package/dist/editor/components/Thumbnail.d.ts +1 -1
  28. package/dist/editor/components/Timeline/TimelineList.d.ts +2 -2
  29. package/dist/editor/components/Timeline/TimelineListItem.d.ts +2 -2
  30. package/dist/editor/components/Timeline/TimelineSequence.d.ts +1 -1
  31. package/dist/editor/components/Timeline/TimelineTracks.d.ts +2 -2
  32. package/dist/editor/components/Timeline/is-collapsed.d.ts +2 -2
  33. package/dist/editor/components/UpdateCheck.d.ts +1 -1
  34. package/dist/editor/components/UpdateModal/UpdateModal.d.ts +1 -1
  35. package/dist/editor/helpers/calculate-timeline.d.ts +2 -2
  36. package/dist/editor/helpers/create-folder-tree.d.ts +2 -2
  37. package/dist/editor/helpers/get-sequence-visible-range.d.ts +1 -1
  38. package/dist/editor/helpers/get-timeline-nestedness.d.ts +1 -1
  39. package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +1 -1
  40. package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +1 -1
  41. package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +1 -1
  42. package/dist/editor/helpers/is-composition-still.d.ts +1 -1
  43. package/dist/editor/helpers/use-keybinding.d.ts +1 -1
  44. package/dist/editor/helpers/validate-new-comp-data.d.ts +1 -1
  45. package/dist/editor/icons/film.d.ts +2 -1
  46. package/dist/editor/icons/folder.d.ts +2 -1
  47. package/dist/editor/icons/jump-to-start.d.ts +1 -1
  48. package/dist/editor/icons/lock.d.ts +2 -1
  49. package/dist/editor/icons/pause.d.ts +2 -1
  50. package/dist/editor/icons/play.d.ts +2 -1
  51. package/dist/editor/icons/step-back.d.ts +2 -1
  52. package/dist/editor/icons/step-forward.d.ts +2 -1
  53. package/dist/editor/icons/still.d.ts +2 -1
  54. package/dist/editor/icons/timeline.d.ts +2 -1
  55. package/dist/editor/icons/timelineInOutPointer.d.ts +2 -1
  56. package/dist/editor/state/folders.d.ts +1 -1
  57. package/dist/editor/state/modals.d.ts +2 -2
  58. package/dist/editor/state/preview-size.d.ts +1 -1
  59. package/dist/get-cli-options.d.ts +2 -2
  60. package/dist/get-composition-id.d.ts +1 -1
  61. package/dist/get-filename.d.ts +1 -1
  62. package/dist/image-formats.d.ts +2 -1
  63. package/dist/index.d.ts +52 -11
  64. package/dist/index.js +2 -5
  65. package/dist/log.js +4 -7
  66. package/dist/parse-command-line.d.ts +1 -1
  67. package/dist/preview-server/dev-middleware/compatible-api.d.ts +2 -2
  68. package/dist/preview-server/dev-middleware/get-paths.d.ts +1 -1
  69. package/dist/preview-server/dev-middleware/index.d.ts +2 -2
  70. package/dist/preview-server/dev-middleware/middleware.d.ts +2 -2
  71. package/dist/preview-server/dev-middleware/ready.d.ts +2 -2
  72. package/dist/preview-server/dev-middleware/setup-hooks.d.ts +1 -1
  73. package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +1 -1
  74. package/dist/preview-server/dev-middleware/types.d.ts +1 -1
  75. package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +1 -1
  76. package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +2 -2
  77. package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +1 -1
  78. package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +1 -1
  79. package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +0 -6
  80. package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +0 -8
  81. package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +0 -9
  82. package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +1 -1
  83. package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +1 -1
  84. package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +1 -1
  85. package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +1 -1
  86. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +1 -1
  87. package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +1 -1
  88. package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +1 -1
  89. package/dist/preview-server/hot-middleware/client.d.ts +1 -1
  90. package/dist/preview-server/hot-middleware/index.d.ts +2 -2
  91. package/dist/preview-server/hot-middleware/process-update.d.ts +1 -1
  92. package/dist/preview-server/hot-middleware/types.d.ts +1 -1
  93. package/dist/preview-server/routes.d.ts +1 -1
  94. package/dist/preview-server/serve-static.d.ts +1 -1
  95. package/dist/preview-server/start-server.d.ts +1 -1
  96. package/dist/preview-server/update-available.d.ts +1 -1
  97. package/dist/print-error.js +5 -8
  98. package/dist/print-help.js +8 -11
  99. package/dist/progress-bar.d.ts +2 -2
  100. package/dist/progress-bar.js +4 -7
  101. package/dist/render.js +4 -4
  102. package/dist/setup-cache.d.ts +1 -1
  103. package/dist/still.js +3 -3
  104. package/dist/warn-about-ffmpeg-version.d.ts +1 -1
  105. package/package.json +8 -9
@@ -0,0 +1,58 @@
1
+ declare type Style = {
2
+ codes: [number, number];
3
+ name: string;
4
+ wrap?: (input: string, newline: boolean) => string;
5
+ };
6
+ declare type Method = (str: string) => string;
7
+ declare type Colors = {
8
+ enabled: boolean;
9
+ visible: boolean;
10
+ styles: Record<string, Style>;
11
+ keys: Record<string, string[]>;
12
+ alias?: (name: string, col: string) => void;
13
+ };
14
+ declare type ColorsWithMethods = Colors & {
15
+ reset: Method;
16
+ bold: Method;
17
+ dim: Method;
18
+ italic: Method;
19
+ underline: Method;
20
+ inverse: Method;
21
+ hidden: Method;
22
+ strikethrough: Method;
23
+ black: Method;
24
+ red: Method;
25
+ green: Method;
26
+ yellow: Method;
27
+ blue: Method;
28
+ magenta: Method;
29
+ cyan: Method;
30
+ white: Method;
31
+ gray: Method;
32
+ bgBlack: Method;
33
+ bgRed: Method;
34
+ bgGreen: Method;
35
+ bgYellow: Method;
36
+ bgBlue: Method;
37
+ bgMagenta: Method;
38
+ bgCyan: Method;
39
+ bgWhite: Method;
40
+ blackBright: Method;
41
+ redBright: Method;
42
+ greenBright: Method;
43
+ yellowBright: Method;
44
+ blueBright: Method;
45
+ magentaBright: Method;
46
+ cyanBright: Method;
47
+ whiteBright: Method;
48
+ bgBlackBright: Method;
49
+ bgRedBright: Method;
50
+ bgGreenBright: Method;
51
+ bgYellowBright: Method;
52
+ bgBlueBright: Method;
53
+ bgMagentaBright: Method;
54
+ bgCyanBright: Method;
55
+ bgWhiteBright: Method;
56
+ };
57
+ export declare const chalk: ColorsWithMethods;
58
+ export {};
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chalk = void 0;
4
+ const hasColor = () => {
5
+ if (typeof process !== 'undefined') {
6
+ return process.env.FORCE_COLOR !== '0';
7
+ }
8
+ return false;
9
+ };
10
+ exports.chalk = (() => {
11
+ const colors = {
12
+ enabled: hasColor(),
13
+ visible: true,
14
+ styles: {},
15
+ keys: {},
16
+ };
17
+ const ansi = (st) => {
18
+ const open = `\u001b[${st.codes[0]}m`;
19
+ const close = `\u001b[${st.codes[1]}m`;
20
+ const regex = new RegExp(`\\u001b\\[${st.codes[1]}m`, 'g');
21
+ st.wrap = (input, newline) => {
22
+ if (input.includes(close))
23
+ input = input.replace(regex, close + open);
24
+ const output = open + input + close;
25
+ // see https://github.com/chalk/chalk/pull/92, thanks to the
26
+ // chalk contributors for this fix. However, we've confirmed that
27
+ // this issue is also present in Windows terminals
28
+ return newline ? output.replace(/\r*\n/g, `${close}$&${open}`) : output;
29
+ };
30
+ return st;
31
+ };
32
+ const wrap = (sty, input, newline) => {
33
+ var _a;
34
+ return (_a = sty.wrap) === null || _a === void 0 ? void 0 : _a.call(sty, input, newline);
35
+ };
36
+ const style = (input, stack) => {
37
+ if (input === '' || input === null || input === undefined)
38
+ return '';
39
+ if (colors.enabled === false)
40
+ return input;
41
+ if (colors.visible === false)
42
+ return '';
43
+ let str = String(input);
44
+ const nl = str.includes('\n');
45
+ let n = stack.length;
46
+ while (n-- > 0)
47
+ str = wrap(colors.styles[stack[n]], str, nl);
48
+ return str;
49
+ };
50
+ const define = (name, codes, type) => {
51
+ colors.styles[name] = ansi({ name, codes });
52
+ const keys = colors.keys[type] || (colors.keys[type] = []);
53
+ keys.push(name);
54
+ Reflect.defineProperty(colors, name, {
55
+ configurable: true,
56
+ enumerable: true,
57
+ set(value) {
58
+ var _a;
59
+ (_a = colors.alias) === null || _a === void 0 ? void 0 : _a.call(colors, name, value);
60
+ },
61
+ get() {
62
+ const color = (input) => style(input, color.stack);
63
+ Reflect.setPrototypeOf(color, colors);
64
+ color.stack = this.stack ? this.stack.concat(name) : [name];
65
+ return color;
66
+ },
67
+ });
68
+ };
69
+ define('reset', [0, 0], 'modifier');
70
+ define('bold', [1, 22], 'modifier');
71
+ define('dim', [2, 22], 'modifier');
72
+ define('italic', [3, 23], 'modifier');
73
+ define('underline', [4, 24], 'modifier');
74
+ define('inverse', [7, 27], 'modifier');
75
+ define('hidden', [8, 28], 'modifier');
76
+ define('strikethrough', [9, 29], 'modifier');
77
+ define('black', [30, 39], 'color');
78
+ define('red', [31, 39], 'color');
79
+ define('green', [32, 39], 'color');
80
+ define('yellow', [33, 39], 'color');
81
+ define('blue', [34, 39], 'color');
82
+ define('magenta', [35, 39], 'color');
83
+ define('cyan', [36, 39], 'color');
84
+ define('white', [37, 39], 'color');
85
+ define('gray', [90, 39], 'color');
86
+ define('grey', [90, 39], 'color');
87
+ define('bgBlack', [40, 49], 'bg');
88
+ define('bgRed', [41, 49], 'bg');
89
+ define('bgGreen', [42, 49], 'bg');
90
+ define('bgYellow', [43, 49], 'bg');
91
+ define('bgBlue', [44, 49], 'bg');
92
+ define('bgMagenta', [45, 49], 'bg');
93
+ define('bgCyan', [46, 49], 'bg');
94
+ define('bgWhite', [47, 49], 'bg');
95
+ define('blackBright', [90, 39], 'bright');
96
+ define('redBright', [91, 39], 'bright');
97
+ define('greenBright', [92, 39], 'bright');
98
+ define('yellowBright', [93, 39], 'bright');
99
+ define('blueBright', [94, 39], 'bright');
100
+ define('magentaBright', [95, 39], 'bright');
101
+ define('cyanBright', [96, 39], 'bright');
102
+ define('whiteBright', [97, 39], 'bright');
103
+ define('bgBlackBright', [100, 49], 'bgBright');
104
+ define('bgRedBright', [101, 49], 'bgBright');
105
+ define('bgGreenBright', [102, 49], 'bgBright');
106
+ define('bgYellowBright', [103, 49], 'bgBright');
107
+ define('bgBlueBright', [104, 49], 'bgBright');
108
+ define('bgMagentaBright', [105, 49], 'bgBright');
109
+ define('bgCyanBright', [106, 49], 'bgBright');
110
+ define('bgWhiteBright', [107, 49], 'bgBright');
111
+ colors.alias = (name, color) => {
112
+ // @ts-expect-error
113
+ const fn = colors[color];
114
+ if (typeof fn !== 'function') {
115
+ throw new TypeError('Expected alias to be the name of an existing color (string) or a function');
116
+ }
117
+ if (!fn.stack) {
118
+ Reflect.defineProperty(fn, 'name', { value: name });
119
+ colors.styles[name] = fn;
120
+ fn.stack = [name];
121
+ }
122
+ Reflect.defineProperty(colors, name, {
123
+ configurable: true,
124
+ enumerable: true,
125
+ set(value) {
126
+ var _a;
127
+ (_a = colors.alias) === null || _a === void 0 ? void 0 : _a.call(colors, name, value);
128
+ },
129
+ get() {
130
+ const col = (input) => style(input, col.stack);
131
+ Reflect.setPrototypeOf(col, colors);
132
+ col.stack = this.stack ? this.stack.concat(fn.stack) : fn.stack;
133
+ return col;
134
+ },
135
+ });
136
+ };
137
+ return colors;
138
+ })();
@@ -0,0 +1,111 @@
1
+ declare const isHyper: boolean;
2
+ declare const isWindows: boolean;
3
+ declare const isLinux: boolean;
4
+ declare const common: {
5
+ ballotDisabled: string;
6
+ ballotOff: string;
7
+ ballotOn: string;
8
+ bullet: string;
9
+ bulletWhite: string;
10
+ fullBlock: string;
11
+ heart: string;
12
+ identicalTo: string;
13
+ line: string;
14
+ mark: string;
15
+ middot: string;
16
+ minus: string;
17
+ multiplication: string;
18
+ obelus: string;
19
+ pencilDownRight: string;
20
+ pencilRight: string;
21
+ pencilUpRight: string;
22
+ percent: string;
23
+ pilcrow2: string;
24
+ pilcrow: string;
25
+ plusMinus: string;
26
+ question: string;
27
+ section: string;
28
+ starsOff: string;
29
+ starsOn: string;
30
+ upDownArrow: string;
31
+ };
32
+ declare const windows: {
33
+ check: string;
34
+ cross: string;
35
+ ellipsisLarge: string;
36
+ ellipsis: string;
37
+ info: string;
38
+ questionSmall: string;
39
+ pointer: string;
40
+ pointerSmall: string;
41
+ radioOff: string;
42
+ radioOn: string;
43
+ warning: string;
44
+ ballotDisabled: string;
45
+ ballotOff: string;
46
+ ballotOn: string;
47
+ bullet: string;
48
+ bulletWhite: string;
49
+ fullBlock: string;
50
+ heart: string;
51
+ identicalTo: string;
52
+ line: string;
53
+ mark: string;
54
+ middot: string;
55
+ minus: string;
56
+ multiplication: string;
57
+ obelus: string;
58
+ pencilDownRight: string;
59
+ pencilRight: string;
60
+ pencilUpRight: string;
61
+ percent: string;
62
+ pilcrow2: string;
63
+ pilcrow: string;
64
+ plusMinus: string;
65
+ question: string;
66
+ section: string;
67
+ starsOff: string;
68
+ starsOn: string;
69
+ upDownArrow: string;
70
+ };
71
+ declare const other: {
72
+ ballotCross: string;
73
+ check: string;
74
+ cross: string;
75
+ ellipsisLarge: string;
76
+ ellipsis: string;
77
+ info: string;
78
+ questionFull: string;
79
+ questionSmall: string;
80
+ pointer: string;
81
+ pointerSmall: string;
82
+ radioOff: string;
83
+ radioOn: string;
84
+ warning: string;
85
+ ballotDisabled: string;
86
+ ballotOff: string;
87
+ ballotOn: string;
88
+ bullet: string;
89
+ bulletWhite: string;
90
+ fullBlock: string;
91
+ heart: string;
92
+ identicalTo: string;
93
+ line: string;
94
+ mark: string;
95
+ middot: string;
96
+ minus: string;
97
+ multiplication: string;
98
+ obelus: string;
99
+ pencilDownRight: string;
100
+ pencilRight: string;
101
+ pencilUpRight: string;
102
+ percent: string;
103
+ pilcrow2: string;
104
+ pilcrow: string;
105
+ plusMinus: string;
106
+ question: string;
107
+ section: string;
108
+ starsOff: string;
109
+ starsOn: string;
110
+ upDownArrow: string;
111
+ };
@@ -0,0 +1,75 @@
1
+ 'use strict';
2
+ const isHyper = typeof process !== 'undefined' && process.env.TERM_PROGRAM === 'Hyper';
3
+ const isWindows = typeof process !== 'undefined' && process.platform === 'win32';
4
+ const isLinux = typeof process !== 'undefined' && process.platform === 'linux';
5
+ const common = {
6
+ ballotDisabled: '☒',
7
+ ballotOff: '☐',
8
+ ballotOn: '☑',
9
+ bullet: '•',
10
+ bulletWhite: '◦',
11
+ fullBlock: '█',
12
+ heart: '❤',
13
+ identicalTo: '≡',
14
+ line: '─',
15
+ mark: '※',
16
+ middot: '·',
17
+ minus: '-',
18
+ multiplication: '×',
19
+ obelus: '÷',
20
+ pencilDownRight: '✎',
21
+ pencilRight: '✏',
22
+ pencilUpRight: '✐',
23
+ percent: '%',
24
+ pilcrow2: '❡',
25
+ pilcrow: '¶',
26
+ plusMinus: '±',
27
+ question: '?',
28
+ section: '§',
29
+ starsOff: '☆',
30
+ starsOn: '★',
31
+ upDownArrow: '↕',
32
+ };
33
+ const windows = {
34
+ ...common,
35
+ check: '√',
36
+ cross: '×',
37
+ ellipsisLarge: '...',
38
+ ellipsis: '...',
39
+ info: 'i',
40
+ questionSmall: '?',
41
+ pointer: '>',
42
+ pointerSmall: '»',
43
+ radioOff: '( )',
44
+ radioOn: '(*)',
45
+ warning: '‼',
46
+ };
47
+ const other = {
48
+ ...common,
49
+ ballotCross: '✘',
50
+ check: '✔',
51
+ cross: '✖',
52
+ ellipsisLarge: '⋯',
53
+ ellipsis: '…',
54
+ info: 'ℹ',
55
+ questionFull: '?',
56
+ questionSmall: '﹖',
57
+ pointer: isLinux ? '▸' : '❯',
58
+ pointerSmall: isLinux ? '‣' : '›',
59
+ radioOff: '◯',
60
+ radioOn: '◉',
61
+ warning: '⚠',
62
+ };
63
+ module.exports = isWindows && !isHyper ? windows : other;
64
+ Reflect.defineProperty(module.exports, 'common', {
65
+ enumerable: false,
66
+ value: common,
67
+ });
68
+ Reflect.defineProperty(module.exports, 'windows', {
69
+ enumerable: false,
70
+ value: windows,
71
+ });
72
+ Reflect.defineProperty(module.exports, 'other', {
73
+ enumerable: false,
74
+ value: other,
75
+ });
@@ -0,0 +1,2 @@
1
+ export declare function stringReplaceAll(string: string, substring: string, replacer: string): string;
2
+ export declare function stringEncaseCRLFWithFirstIndex(string: string, prefix: string, postfix: string, index: number): string;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stringEncaseCRLFWithFirstIndex = exports.stringReplaceAll = void 0;
4
+ function stringReplaceAll(string, substring, replacer) {
5
+ let index = string.indexOf(substring);
6
+ if (index === -1) {
7
+ return string;
8
+ }
9
+ const substringLength = substring.length;
10
+ let endIndex = 0;
11
+ let returnValue = '';
12
+ do {
13
+ returnValue += string.slice(endIndex, index) + substring + replacer;
14
+ endIndex = index + substringLength;
15
+ index = string.indexOf(substring, endIndex);
16
+ } while (index !== -1);
17
+ returnValue += string.slice(endIndex);
18
+ return returnValue;
19
+ }
20
+ exports.stringReplaceAll = stringReplaceAll;
21
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
22
+ let endIndex = 0;
23
+ let returnValue = '';
24
+ do {
25
+ const gotCR = string[index - 1] === '\r';
26
+ returnValue +=
27
+ string.slice(endIndex, gotCR ? index - 1 : index) +
28
+ prefix +
29
+ (gotCR ? '\r\n' : '\n') +
30
+ postfix;
31
+ endIndex = index + 1;
32
+ index = string.indexOf('\n', endIndex);
33
+ } while (index !== -1);
34
+ returnValue += string.slice(endIndex);
35
+ return returnValue;
36
+ }
37
+ exports.stringEncaseCRLFWithFirstIndex = stringEncaseCRLFWithFirstIndex;
@@ -1,2 +1,2 @@
1
- import { ErrorWithStackFrame } from '@remotion/renderer';
1
+ import type { ErrorWithStackFrame } from '@remotion/renderer';
2
2
  export declare const printCodeFrameAndStack: (err: ErrorWithStackFrame) => void;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.printCodeFrameAndStack = void 0;
7
- const chalk_1 = __importDefault(require("chalk"));
8
4
  const remotion_1 = require("remotion");
5
+ const chalk_1 = require("./chalk");
9
6
  const log_1 = require("./log");
10
7
  const makeFileName = (firstFrame) => {
11
8
  return [
@@ -24,12 +21,12 @@ const printCodeFrame = (frame) => {
24
21
  }
25
22
  log_1.Log.info();
26
23
  const longestLineNumber = Math.max(...frame.originalScriptCode.map((script) => script.lineNumber)).toString().length;
27
- log_1.Log.info('at', chalk_1.default.underline(makeFileName(frame)));
24
+ log_1.Log.info('at', chalk_1.chalk.underline(makeFileName(frame)));
28
25
  const alignLeftAmount = Math.min(...frame.originalScriptCode.map((c) => c.content.length - c.content.trimStart().length));
29
26
  log_1.Log.info(`${frame.originalScriptCode
30
27
  .map((c) => {
31
28
  const content = `${String(c.lineNumber).padStart(longestLineNumber, ' ')} | ${c.content.substring(alignLeftAmount)}`;
32
- return c.highlight ? content : chalk_1.default.gray(content);
29
+ return c.highlight ? content : chalk_1.chalk.gray(content);
33
30
  })
34
31
  .join('\n')}`);
35
32
  };
@@ -38,7 +35,7 @@ const logLine = (frame) => {
38
35
  if (!fileName) {
39
36
  return;
40
37
  }
41
- log_1.Log.info(chalk_1.default.gray(['at', frame.originalFunctionName, `${chalk_1.default.blueBright(`(${fileName})`)}`]
38
+ log_1.Log.info(chalk_1.chalk.gray(['at', frame.originalFunctionName, `${chalk_1.chalk.blueBright(`(${fileName})`)}`]
42
39
  .filter(remotion_1.Internals.truthy)
43
40
  .join(' ')));
44
41
  };
@@ -49,7 +46,7 @@ const printCodeFrameAndStack = (err) => {
49
46
  return;
50
47
  }
51
48
  const firstFrame = err.symbolicatedStackFrames[0];
52
- log_1.Log.error(chalk_1.default.bgRed(chalk_1.default.white(` ${err.name} `)), err.message);
49
+ log_1.Log.error(chalk_1.chalk.bgRed(chalk_1.chalk.white(` ${err.name} `)), err.message);
53
50
  printCodeFrame(firstFrame);
54
51
  log_1.Log.info();
55
52
  for (const frame of err.symbolicatedStackFrames) {
@@ -1,2 +1,2 @@
1
- import { DownloadProgress } from './progress-bar';
1
+ import type { DownloadProgress } from './progress-bar';
2
2
  export declare const makeMultiDownloadProgress: (progresses: DownloadProgress[]) => string | null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TComposition } from 'remotion';
2
+ import type { TComposition } from 'remotion';
3
3
  export declare type CompositionSelectorItemType = {
4
4
  key: string;
5
5
  type: 'composition';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export declare const getCurrentCompositionFromUrl: () => string;
3
3
  export declare const persistCurrentFrame: (frame: number) => void;
4
4
  export declare const getFrameForComposition: (composition: string) => number;
@@ -1,2 +1,2 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export declare const GlobalKeybindings: React.FC;
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { TComposition } from 'remotion';
1
+ import type React from 'react';
2
+ import type { TComposition } from 'remotion';
3
3
  export declare const useSelectComposition: () => (c: TComposition) => void;
4
4
  export declare const InitialCompositionLoader: React.FC;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ComboboxValue } from '../NewComposition/ComboBox';
2
+ import type { ComboboxValue } from '../NewComposition/ComboBox';
3
3
  export declare type MenuId = 'remotion' | 'file' | 'view' | 'help';
4
4
  export declare type Menu = {
5
5
  id: MenuId;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SubMenu } from '../NewComposition/ComboBox';
2
+ import type { SubMenu } from '../NewComposition/ComboBox';
3
3
  export declare const MENU_SUBMENU_BUTTON_CLASS_NAME = "remotion-submenu-button";
4
4
  export declare type SubMenuActivated = false | 'with-mouse' | 'without-mouse';
5
5
  export declare const MenuSubItem: React.FC<{
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { SubMenu } from '../NewComposition/ComboBox';
3
- import { SubMenuActivated } from './MenuSubItem';
2
+ import type { SubMenu } from '../NewComposition/ComboBox';
3
+ import type { SubMenuActivated } from './MenuSubItem';
4
4
  export declare const SubMenuComponent: React.FC<{
5
5
  portalStyle: React.CSSProperties;
6
6
  subMenu: SubMenu;
@@ -1,4 +1,5 @@
1
- import React, { SVGProps } from 'react';
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
2
3
  export declare const CancelButton: React.FC<SVGProps<SVGSVGElement> & {
3
4
  onPress: () => void;
4
5
  }>;
@@ -1,4 +1,5 @@
1
- import React, { InputHTMLAttributes } from 'react';
1
+ import type { InputHTMLAttributes } from 'react';
2
+ import React from 'react';
2
3
  declare type Props = InputHTMLAttributes<HTMLInputElement> & {
3
4
  onValueChange: (newVal: number) => void;
4
5
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ComboboxValue } from './ComboBox';
2
+ import type { ComboboxValue } from './ComboBox';
3
3
  export declare const MenuContent: React.FC<{
4
4
  values: ComboboxValue[];
5
5
  onHide: () => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CompType } from '../../state/modals';
2
+ import type { CompType } from '../../state/modals';
3
3
  declare const NewComposition: React.FC<{
4
4
  initialCompType: CompType;
5
5
  }>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export declare const leftLabel: React.CSSProperties;
3
3
  export declare const inputArea: React.CSSProperties;
4
4
  export declare const rightLabel: React.CSSProperties;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export declare const PlaybackKeyboardShortcutsManager: React.FC<{
3
3
  setPlaybackRate: React.Dispatch<React.SetStateAction<number>>;
4
4
  }>;
@@ -1,2 +1,2 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export declare const PlaybackRatePersistor: React.FC;
@@ -1,4 +1,4 @@
1
- import { Size } from '@remotion/player';
1
+ import type { Size } from '@remotion/player';
2
2
  import React from 'react';
3
3
  export declare const VideoPreview: React.FC<{
4
4
  canvasSize: Size;
@@ -1,4 +1,4 @@
1
- import { PreviewSize } from '@remotion/player';
1
+ import type { PreviewSize } from '@remotion/player';
2
2
  import React from 'react';
3
3
  export declare const commonPreviewSizes: PreviewSize[];
4
4
  export declare const getPreviewSizeLabel: (previewSize: PreviewSize) => "100%" | "50%" | "25%" | "Fit" | undefined;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SplitterOrientation } from './SplitterContext';
2
+ import type { SplitterOrientation } from './SplitterContext';
3
3
  export declare const SplitterContainer: React.FC<{
4
4
  orientation: SplitterOrientation;
5
5
  maxFlex: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TComposition } from 'remotion';
2
+ import type { TComposition } from 'remotion';
3
3
  export declare const Thumbnail: React.FC<{
4
4
  composition: TComposition<unknown>;
5
5
  targetHeight: number;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { TrackWithHash } from '../../helpers/get-timeline-sequence-sort-key';
3
- import { TimelineActionState, TimelineViewState } from './timeline-state-reducer';
2
+ import type { TrackWithHash } from '../../helpers/get-timeline-sequence-sort-key';
3
+ import type { TimelineActionState, TimelineViewState } from './timeline-state-reducer';
4
4
  export declare const TimelineList: React.FC<{
5
5
  timeline: TrackWithHash[];
6
6
  viewState: TimelineViewState;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { TSequence } from 'remotion';
3
- import { TimelineActionState } from './timeline-state-reducer';
2
+ import type { TSequence } from 'remotion';
3
+ import type { TimelineActionState } from './timeline-state-reducer';
4
4
  export declare const TimelineListItem: React.FC<{
5
5
  sequence: TSequence;
6
6
  nestedDepth: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TSequence } from 'remotion';
2
+ import type { TSequence } from 'remotion';
3
3
  export declare const TimelineSequence: React.FC<{
4
4
  s: TSequence;
5
5
  fps: number;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { TrackWithHash } from '../../helpers/get-timeline-sequence-sort-key';
3
- import { TimelineViewState } from './timeline-state-reducer';
2
+ import type { TrackWithHash } from '../../helpers/get-timeline-sequence-sort-key';
3
+ import type { TimelineViewState } from './timeline-state-reducer';
4
4
  export declare const TimelineTracks: React.FC<{
5
5
  timeline: TrackWithHash[];
6
6
  fps: number;