@remotion/cli 3.0.0-lambda.295 → 3.0.0-lambda.338
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/ansi/ansi-diff.d.ts +11 -11
- package/dist/ansi/ansi-diff.d.ts.map +1 -1
- package/dist/ansi/ansi-diff.js +117 -117
- package/dist/ansi/ansi-diff.js.map +1 -1
- package/dist/cycle-browser-tabs.d.ts +7 -0
- package/dist/cycle-browser-tabs.d.ts.map +1 -0
- package/dist/cycle-browser-tabs.js +24 -0
- package/dist/cycle-browser-tabs.js.map +1 -0
- package/dist/editor/components/ErrorOverlay.d.ts +9 -0
- package/dist/editor/components/ErrorOverlay.d.ts.map +1 -0
- package/dist/editor/components/ErrorOverlay.js +22 -0
- package/dist/editor/components/ErrorOverlay.js.map +1 -0
- package/dist/editor/components/Errors/ErrorDisplay.d.ts +12 -0
- package/dist/editor/components/Errors/ErrorDisplay.d.ts.map +1 -0
- package/dist/editor/components/Errors/ErrorDisplay.js +43 -0
- package/dist/editor/components/Errors/ErrorDisplay.js.map +1 -0
- package/dist/editor/components/Errors/ErrorOverlay.d.ts +9 -0
- package/dist/editor/components/Errors/ErrorOverlay.d.ts.map +1 -0
- package/dist/editor/components/Errors/ErrorOverlay.js +22 -0
- package/dist/editor/components/Errors/ErrorOverlay.js.map +1 -0
- package/dist/editor/components/Errors/stack-frame.d.ts +46 -0
- package/dist/editor/components/Errors/stack-frame.d.ts.map +1 -0
- package/dist/editor/components/Errors/stack-frame.js +82 -0
- package/dist/editor/components/Errors/stack-frame.js.map +1 -0
- package/dist/editor/components/FramePersister.d.ts +4 -0
- package/dist/editor/components/FramePersister.d.ts.map +1 -0
- package/dist/editor/components/FramePersister.js +28 -0
- package/dist/editor/components/FramePersister.js.map +1 -0
- package/dist/editor/components/MediaVolumeSlider.d.ts +3 -0
- package/dist/editor/components/MediaVolumeSlider.d.ts.map +1 -0
- package/dist/editor/components/MediaVolumeSlider.js +113 -0
- package/dist/editor/components/MediaVolumeSlider.js.map +1 -0
- package/dist/editor/components/Menu/Checkmark.d.ts +2 -0
- package/dist/editor/components/Menu/Checkmark.d.ts.map +1 -0
- package/dist/editor/components/Menu/Checkmark.js +11 -0
- package/dist/editor/components/Menu/Checkmark.js.map +1 -0
- package/dist/editor/components/Menu/is-menu-click.d.ts +1 -0
- package/dist/editor/components/Menu/is-menu-click.d.ts.map +1 -0
- package/dist/editor/components/Menu/is-menu-click.js +2 -0
- package/dist/editor/components/Menu/is-menu-click.js.map +1 -0
- package/dist/editor/components/NewComposition/LazyLoadNewComposition.d.ts +6 -0
- package/dist/editor/components/NewComposition/LazyLoadNewComposition.d.ts.map +1 -0
- package/dist/editor/components/NewComposition/LazyLoadNewComposition.js +32 -0
- package/dist/editor/components/NewComposition/LazyLoadNewComposition.js.map +1 -0
- package/dist/editor/components/NewComposition.d.ts +3 -0
- package/dist/editor/components/NewComposition.d.ts.map +1 -0
- package/dist/editor/components/NewComposition.js +47 -0
- package/dist/editor/components/NewComposition.js.map +1 -0
- package/dist/editor/components/NewSequence.d.ts +3 -0
- package/dist/editor/components/NewSequence.d.ts.map +1 -0
- package/dist/editor/components/NewSequence.js +47 -0
- package/dist/editor/components/NewSequence.js.map +1 -0
- package/dist/editor/components/Spacing.d.ts +7 -0
- package/dist/editor/components/Spacing.d.ts.map +1 -0
- package/dist/editor/components/Spacing.js +18 -0
- package/dist/editor/components/Spacing.js.map +1 -0
- package/dist/editor/components/Timeline/LoopIndicator.d.ts +5 -0
- package/dist/editor/components/Timeline/LoopIndicator.d.ts.map +1 -0
- package/dist/editor/components/Timeline/LoopIndicator.js +37 -0
- package/dist/editor/components/Timeline/LoopIndicator.js.map +1 -0
- package/dist/editor/components/UpdateCheck.d.ts +2 -3
- package/dist/editor/components/UpdateCheck.d.ts.map +1 -1
- package/dist/editor/components/UpdateCheck.js.map +1 -1
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts.map +1 -1
- package/dist/editor/components/UpdateModal/UpdateModal.js +7 -1
- package/dist/editor/components/UpdateModal/UpdateModal.js.map +1 -1
- package/dist/editor/helpers/isCompositionStill.d.ts +1 -0
- package/dist/editor/helpers/isCompositionStill.d.ts.map +1 -0
- package/dist/editor/helpers/isCompositionStill.js +2 -0
- package/dist/editor/helpers/isCompositionStill.js.map +1 -0
- package/dist/editor/helpers/validate-composition-name.d.ts +3 -0
- package/dist/editor/helpers/validate-composition-name.d.ts.map +1 -0
- package/dist/editor/helpers/validate-composition-name.js +15 -0
- package/dist/editor/helpers/validate-composition-name.js.map +1 -0
- package/dist/editor/hooks/get-el-size.d.ts +8 -0
- package/dist/editor/hooks/get-el-size.d.ts.map +1 -0
- package/dist/editor/hooks/get-el-size.js +43 -0
- package/dist/editor/hooks/get-el-size.js.map +1 -0
- package/dist/editor/icons/fast-back.d.ts +3 -0
- package/dist/editor/icons/fast-back.d.ts.map +1 -0
- package/dist/editor/icons/fast-back.js +9 -0
- package/dist/editor/icons/fast-back.js.map +1 -0
- package/dist/editor/icons/fast-forward.d.ts +3 -0
- package/dist/editor/icons/fast-forward.d.ts.map +1 -0
- package/dist/editor/icons/fast-forward.js +9 -0
- package/dist/editor/icons/fast-forward.js.map +1 -0
- package/dist/editor/state/global-menu-id.d.ts +4 -0
- package/dist/editor/state/global-menu-id.d.ts.map +1 -0
- package/dist/editor/state/global-menu-id.js +11 -0
- package/dist/editor/state/global-menu-id.js.map +1 -0
- package/dist/editor/state/menu-selection.d.ts +8 -0
- package/dist/editor/state/menu-selection.d.ts.map +1 -0
- package/dist/editor/state/menu-selection.js +14 -0
- package/dist/editor/state/menu-selection.js.map +1 -0
- package/dist/get-cli-options.d.ts +3 -0
- package/dist/get-cli-options.d.ts.map +1 -1
- package/dist/get-cli-options.js +9 -0
- package/dist/get-cli-options.js.map +1 -1
- package/dist/handle-common-errors.d.ts.map +1 -1
- package/dist/handle-common-errors.js +4 -0
- package/dist/handle-common-errors.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/parse-command-line.d.ts +6 -1
- package/dist/parse-command-line.d.ts.map +1 -1
- package/dist/parse-command-line.js +18 -0
- package/dist/parse-command-line.js.map +1 -1
- package/dist/previewEntry.js +1 -1
- package/dist/previewEntry.js.map +1 -1
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +12 -2
- package/dist/render.js.map +1 -1
- package/dist/still.d.ts.map +1 -1
- package/dist/still.js +6 -1
- package/dist/still.js.map +1 -1
- package/dist/upgrade.d.ts.map +1 -1
- package/dist/upgrade.js +23 -24
- package/dist/upgrade.js.map +1 -1
- package/package.json +7 -7
- package/dist/editor/components/IFrameWrapper.d.ts +0 -6
- package/dist/editor/components/IFrameWrapper.d.ts.map +0 -1
- package/dist/editor/components/IFrameWrapper.js +0 -19
- package/dist/editor/components/IFrameWrapper.js.map +0 -1
- package/dist/editor/components/KeyboardShortcuts.d.ts +0 -1
- package/dist/editor/components/KeyboardShortcuts.d.ts.map +0 -1
- package/dist/editor/components/KeyboardShortcuts.js +0 -2
- package/dist/editor/components/KeyboardShortcuts.js.map +0 -1
- package/dist/editor/components/NewComposition/ModalHeader.d.ts +0 -3
- package/dist/editor/components/NewComposition/ModalHeader.d.ts.map +0 -1
- package/dist/editor/components/NewComposition/ModalHeader.js +0 -29
- package/dist/editor/components/NewComposition/ModalHeader.js.map +0 -1
- package/dist/editor/helpers/css-reset.d.ts +0 -3
- package/dist/editor/helpers/css-reset.d.ts.map +0 -1
- package/dist/editor/helpers/css-reset.js +0 -9
- package/dist/editor/helpers/css-reset.js.map +0 -1
- package/dist/empty-audio.d.ts +0 -2
- package/dist/empty-audio.d.ts.map +0 -1
- package/dist/empty-audio.js +0 -5
- package/dist/empty-audio.js.map +0 -1
- package/dist/homepage/homepage.d.ts +0 -3
- package/dist/homepage/homepage.d.ts.map +0 -1
- package/dist/homepage/homepage.js +0 -9
- package/dist/homepage/homepage.js.map +0 -1
package/dist/ansi/ansi-diff.d.ts
CHANGED
|
@@ -13,14 +13,14 @@ export declare class AnsiDiff {
|
|
|
13
13
|
_lines: Line[];
|
|
14
14
|
constructor(opts?: Options);
|
|
15
15
|
resize: (opts: Options) => void;
|
|
16
|
-
toString
|
|
17
|
-
update
|
|
18
|
-
moveTo?: [number, number]
|
|
19
|
-
}
|
|
20
|
-
_clearDown
|
|
21
|
-
_newline
|
|
22
|
-
_write
|
|
23
|
-
_moveTo
|
|
16
|
+
toString(): string | null;
|
|
17
|
+
update(buffer: string | Buffer, opts?: {
|
|
18
|
+
moveTo?: [number, number];
|
|
19
|
+
}): Buffer;
|
|
20
|
+
_clearDown(y: number): void;
|
|
21
|
+
_newline(): void;
|
|
22
|
+
_write(line: Line): void;
|
|
23
|
+
_moveTo(x: number, y: number): void;
|
|
24
24
|
_push: (buf: Buffer) => void;
|
|
25
25
|
}
|
|
26
26
|
declare class Line {
|
|
@@ -33,9 +33,9 @@ declare class Line {
|
|
|
33
33
|
length: number;
|
|
34
34
|
newline: boolean;
|
|
35
35
|
constructor(str: string, y: number, nl: boolean, term: AnsiDiff);
|
|
36
|
-
diffLeft
|
|
37
|
-
diffRight
|
|
38
|
-
toBuffer
|
|
36
|
+
diffLeft(other: Line): number;
|
|
37
|
+
diffRight(other: Line): number;
|
|
38
|
+
toBuffer(): Buffer;
|
|
39
39
|
}
|
|
40
40
|
export {};
|
|
41
41
|
//# sourceMappingURL=ansi-diff.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ansi-diff.d.ts","sourceRoot":"","sources":["../../src/ansi/ansi-diff.ts"],"names":[],"mappings":";AAKA,aAAK,OAAO,GAAG;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AAEjD,qBAAa,QAAQ;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO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Z,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;gBACL,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ;IAe/D,QAAQ,CAAC,KAAK,EAAE,IAAI;IASpB,SAAS,CAAC,KAAK,EAAE,IAAI;IAUrB,QAAQ;CAGR"}
|
package/dist/ansi/ansi-diff.js
CHANGED
|
@@ -26,103 +26,6 @@ class AnsiDiff {
|
|
|
26
26
|
this.y = last.y + last.height;
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
this.toString = () => {
|
|
30
|
-
return this._buffer;
|
|
31
|
-
};
|
|
32
|
-
this.update = (buffer, opts) => {
|
|
33
|
-
this._buffer = Buffer.isBuffer(buffer) ? buffer.toString() : buffer;
|
|
34
|
-
const other = this._buffer;
|
|
35
|
-
const oldLines = this._lines;
|
|
36
|
-
const lines = split(other, this);
|
|
37
|
-
this._lines = lines;
|
|
38
|
-
this._out = [];
|
|
39
|
-
const min = Math.min(lines.length, oldLines.length);
|
|
40
|
-
let i = 0;
|
|
41
|
-
let a;
|
|
42
|
-
let b;
|
|
43
|
-
let scrub = false;
|
|
44
|
-
for (; i < min; i++) {
|
|
45
|
-
a = lines[i];
|
|
46
|
-
b = oldLines[i];
|
|
47
|
-
if (same(a, b))
|
|
48
|
-
continue;
|
|
49
|
-
// if x === width there is an edgecase with inline diffing
|
|
50
|
-
// easiest solution is just not to do it then! :)
|
|
51
|
-
if (!scrub && this.x !== this.width && inlineDiff(a, b)) {
|
|
52
|
-
const left = a.diffLeft(b);
|
|
53
|
-
const right = a.diffRight(b);
|
|
54
|
-
const slice = a.raw.slice(left, right ? -right : a.length);
|
|
55
|
-
if (left + right > 4 && left + slice.length < this.width - 1) {
|
|
56
|
-
this._moveTo(left, a.y);
|
|
57
|
-
this._push(Buffer.from(slice));
|
|
58
|
-
this.x += slice.length;
|
|
59
|
-
continue;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
this._moveTo(0, a.y);
|
|
63
|
-
this._write(a);
|
|
64
|
-
if (a.y !== b.y || a.height !== b.height)
|
|
65
|
-
scrub = true;
|
|
66
|
-
if (b.length > a.length || scrub)
|
|
67
|
-
this._push(CLEAR_LINE);
|
|
68
|
-
if (a.newline)
|
|
69
|
-
this._newline();
|
|
70
|
-
}
|
|
71
|
-
for (; i < lines.length; i++) {
|
|
72
|
-
a = lines[i];
|
|
73
|
-
this._moveTo(0, a.y);
|
|
74
|
-
this._write(a);
|
|
75
|
-
if (scrub)
|
|
76
|
-
this._push(CLEAR_LINE);
|
|
77
|
-
if (a.newline)
|
|
78
|
-
this._newline();
|
|
79
|
-
}
|
|
80
|
-
const oldLast = top(oldLines);
|
|
81
|
-
const last = top(lines);
|
|
82
|
-
if (oldLast &&
|
|
83
|
-
(!last || last.y + last.height < oldLast.y + oldLast.height)) {
|
|
84
|
-
this._clearDown(oldLast.y + oldLast.height);
|
|
85
|
-
}
|
|
86
|
-
if (opts === null || opts === void 0 ? void 0 : opts.moveTo) {
|
|
87
|
-
this._moveTo(opts.moveTo[0], opts.moveTo[1]);
|
|
88
|
-
}
|
|
89
|
-
else if (last) {
|
|
90
|
-
this._moveTo(last.remainder, last.y + last.height);
|
|
91
|
-
}
|
|
92
|
-
return Buffer.concat(this._out);
|
|
93
|
-
};
|
|
94
|
-
this._clearDown = (y) => {
|
|
95
|
-
let { x } = this;
|
|
96
|
-
for (let i = this.y; i <= y; i++) {
|
|
97
|
-
this._moveTo(x, i);
|
|
98
|
-
this._push(CLEAR_LINE);
|
|
99
|
-
x = 0;
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
this._newline = () => {
|
|
103
|
-
this._push(NEWLINE);
|
|
104
|
-
this.x = 0;
|
|
105
|
-
this.y++;
|
|
106
|
-
};
|
|
107
|
-
this._write = (line) => {
|
|
108
|
-
this._out.push(line.toBuffer());
|
|
109
|
-
this.x = line.remainder;
|
|
110
|
-
this.y += line.height;
|
|
111
|
-
};
|
|
112
|
-
this._moveTo = (x, y) => {
|
|
113
|
-
const dx = x - this.x;
|
|
114
|
-
const dy = y - this.y;
|
|
115
|
-
if (dx > 0)
|
|
116
|
-
this._push(moveRight(dx));
|
|
117
|
-
else if (dx < 0)
|
|
118
|
-
this._push(moveLeft(-dx));
|
|
119
|
-
if (dy > 0)
|
|
120
|
-
this._push(moveDown(dy));
|
|
121
|
-
else if (dy < 0)
|
|
122
|
-
this._push(moveUp(-dy));
|
|
123
|
-
this.x = x;
|
|
124
|
-
this.y = y;
|
|
125
|
-
};
|
|
126
29
|
this._push = (buf) => {
|
|
127
30
|
this._out.push(buf);
|
|
128
31
|
};
|
|
@@ -134,6 +37,103 @@ class AnsiDiff {
|
|
|
134
37
|
this._out = [];
|
|
135
38
|
this._lines = [];
|
|
136
39
|
}
|
|
40
|
+
toString() {
|
|
41
|
+
return this._buffer;
|
|
42
|
+
}
|
|
43
|
+
update(buffer, opts) {
|
|
44
|
+
this._buffer = Buffer.isBuffer(buffer) ? buffer.toString() : buffer;
|
|
45
|
+
const other = this._buffer;
|
|
46
|
+
const oldLines = this._lines;
|
|
47
|
+
const lines = split(other, this);
|
|
48
|
+
this._lines = lines;
|
|
49
|
+
this._out = [];
|
|
50
|
+
const min = Math.min(lines.length, oldLines.length);
|
|
51
|
+
let i = 0;
|
|
52
|
+
let a;
|
|
53
|
+
let b;
|
|
54
|
+
let scrub = false;
|
|
55
|
+
for (; i < min; i++) {
|
|
56
|
+
a = lines[i];
|
|
57
|
+
b = oldLines[i];
|
|
58
|
+
if (same(a, b))
|
|
59
|
+
continue;
|
|
60
|
+
// if x === width there is an edgecase with inline diffing
|
|
61
|
+
// easiest solution is just not to do it then! :)
|
|
62
|
+
if (!scrub && this.x !== this.width && inlineDiff(a, b)) {
|
|
63
|
+
const left = a.diffLeft(b);
|
|
64
|
+
const right = a.diffRight(b);
|
|
65
|
+
const slice = a.raw.slice(left, right ? -right : a.length);
|
|
66
|
+
if (left + right > 4 && left + slice.length < this.width - 1) {
|
|
67
|
+
this._moveTo(left, a.y);
|
|
68
|
+
this._push(Buffer.from(slice));
|
|
69
|
+
this.x += slice.length;
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
this._moveTo(0, a.y);
|
|
74
|
+
this._write(a);
|
|
75
|
+
if (a.y !== b.y || a.height !== b.height)
|
|
76
|
+
scrub = true;
|
|
77
|
+
if (b.length > a.length || scrub)
|
|
78
|
+
this._push(CLEAR_LINE);
|
|
79
|
+
if (a.newline)
|
|
80
|
+
this._newline();
|
|
81
|
+
}
|
|
82
|
+
for (; i < lines.length; i++) {
|
|
83
|
+
a = lines[i];
|
|
84
|
+
this._moveTo(0, a.y);
|
|
85
|
+
this._write(a);
|
|
86
|
+
if (scrub)
|
|
87
|
+
this._push(CLEAR_LINE);
|
|
88
|
+
if (a.newline)
|
|
89
|
+
this._newline();
|
|
90
|
+
}
|
|
91
|
+
const oldLast = top(oldLines);
|
|
92
|
+
const last = top(lines);
|
|
93
|
+
if (oldLast &&
|
|
94
|
+
(!last || last.y + last.height < oldLast.y + oldLast.height)) {
|
|
95
|
+
this._clearDown(oldLast.y + oldLast.height);
|
|
96
|
+
}
|
|
97
|
+
if (opts === null || opts === void 0 ? void 0 : opts.moveTo) {
|
|
98
|
+
this._moveTo(opts.moveTo[0], opts.moveTo[1]);
|
|
99
|
+
}
|
|
100
|
+
else if (last) {
|
|
101
|
+
this._moveTo(last.remainder, last.y + last.height);
|
|
102
|
+
}
|
|
103
|
+
return Buffer.concat(this._out);
|
|
104
|
+
}
|
|
105
|
+
_clearDown(y) {
|
|
106
|
+
let { x } = this;
|
|
107
|
+
for (let i = this.y; i <= y; i++) {
|
|
108
|
+
this._moveTo(x, i);
|
|
109
|
+
this._push(CLEAR_LINE);
|
|
110
|
+
x = 0;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
_newline() {
|
|
114
|
+
this._push(NEWLINE);
|
|
115
|
+
this.x = 0;
|
|
116
|
+
this.y++;
|
|
117
|
+
}
|
|
118
|
+
_write(line) {
|
|
119
|
+
this._out.push(line.toBuffer());
|
|
120
|
+
this.x = line.remainder;
|
|
121
|
+
this.y += line.height;
|
|
122
|
+
}
|
|
123
|
+
_moveTo(x, y) {
|
|
124
|
+
const dx = x - this.x;
|
|
125
|
+
const dy = y - this.y;
|
|
126
|
+
if (dx > 0)
|
|
127
|
+
this._push(moveRight(dx));
|
|
128
|
+
else if (dx < 0)
|
|
129
|
+
this._push(moveLeft(-dx));
|
|
130
|
+
if (dy > 0)
|
|
131
|
+
this._push(moveDown(dy));
|
|
132
|
+
else if (dy < 0)
|
|
133
|
+
this._push(moveUp(-dy));
|
|
134
|
+
this.x = x;
|
|
135
|
+
this.y = y;
|
|
136
|
+
}
|
|
137
137
|
}
|
|
138
138
|
exports.AnsiDiff = AnsiDiff;
|
|
139
139
|
function same(a, b) {
|
|
@@ -147,26 +147,6 @@ function top(list) {
|
|
|
147
147
|
}
|
|
148
148
|
class Line {
|
|
149
149
|
constructor(str, y, nl, term) {
|
|
150
|
-
this.diffLeft = (other) => {
|
|
151
|
-
let left = 0;
|
|
152
|
-
for (; left < this.length; left++) {
|
|
153
|
-
if (this.raw[left] !== other.raw[left])
|
|
154
|
-
return left;
|
|
155
|
-
}
|
|
156
|
-
return left;
|
|
157
|
-
};
|
|
158
|
-
this.diffRight = (other) => {
|
|
159
|
-
let right = 0;
|
|
160
|
-
for (; right < this.length; right++) {
|
|
161
|
-
const r = this.length - right - 1;
|
|
162
|
-
if (this.raw[r] !== other.raw[r])
|
|
163
|
-
return right;
|
|
164
|
-
}
|
|
165
|
-
return right;
|
|
166
|
-
};
|
|
167
|
-
this.toBuffer = () => {
|
|
168
|
-
return Buffer.from(this.raw);
|
|
169
|
-
};
|
|
170
150
|
this.y = y;
|
|
171
151
|
this.width = term.width;
|
|
172
152
|
this.parts = (0, ansi_split_1.splitAnsi)(str);
|
|
@@ -180,6 +160,26 @@ class Line {
|
|
|
180
160
|
this.remainder = this.width;
|
|
181
161
|
}
|
|
182
162
|
}
|
|
163
|
+
diffLeft(other) {
|
|
164
|
+
let left = 0;
|
|
165
|
+
for (; left < this.length; left++) {
|
|
166
|
+
if (this.raw[left] !== other.raw[left])
|
|
167
|
+
return left;
|
|
168
|
+
}
|
|
169
|
+
return left;
|
|
170
|
+
}
|
|
171
|
+
diffRight(other) {
|
|
172
|
+
let right = 0;
|
|
173
|
+
for (; right < this.length; right++) {
|
|
174
|
+
const r = this.length - right - 1;
|
|
175
|
+
if (this.raw[r] !== other.raw[r])
|
|
176
|
+
return right;
|
|
177
|
+
}
|
|
178
|
+
return right;
|
|
179
|
+
}
|
|
180
|
+
toBuffer() {
|
|
181
|
+
return Buffer.from(this.raw);
|
|
182
|
+
}
|
|
183
183
|
}
|
|
184
184
|
function inlineDiff(a, b) {
|
|
185
185
|
return (a.length === b.length &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ansi-diff.js","sourceRoot":"","sources":["../../src/ansi/ansi-diff.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAEvC,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AACzD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAIlC,MAAa,QAAQ;IASpB,YAAY,IAAc;QAW1B,WAAM,GAAG,CAAC,IAAa,EAAE,EAAE;YAC1B,IAAI,CAAC,IAAI;gBAAE,IAAI,GAAG,EAAE,CAAC;YAErB,IAAI,IAAI,CAAC,KAAK;gBAAE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YACxC,IAAI,IAAI,CAAC,MAAM;gBAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAE3C,IAAI,IAAI,CAAC,OAAO;gBAAE,IAAI,CAAC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B,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAS,SAAS,CAAC,CAAS;IAC3B,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAS,QAAQ,CAAC,CAAS;IAC1B,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAS,MAAM,CAAC,KAAe;IAC9B,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QACzC,GAAG,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;KACvB;IAED,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,SAAS,KAAK,CAAC,CAAS;IACvB,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RenderInternals } from '@remotion/renderer';
|
|
2
|
+
declare type Await<T> = T extends PromiseLike<infer U> ? U : T;
|
|
3
|
+
export declare const cycleBrowserTabs: (openedBrowser: Await<ReturnType<typeof RenderInternals.openBrowser>>) => {
|
|
4
|
+
stopCycling: () => void;
|
|
5
|
+
};
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=cycle-browser-tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cycle-browser-tabs.d.ts","sourceRoot":"","sources":["../src/cycle-browser-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAGnD,aAAK,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,WAAW,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEvD,eAAO,MAAM,gBAAgB,kBACb,MAAM,WAAW,OAAO,gBAAgB,WAAW,CAAC,CAAC;;CAmBpE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cycleBrowserTabs = void 0;
|
|
4
|
+
const log_1 = require("./log");
|
|
5
|
+
const cycleBrowserTabs = (openedBrowser) => {
|
|
6
|
+
let i = 0;
|
|
7
|
+
const interval = setInterval(() => {
|
|
8
|
+
openedBrowser
|
|
9
|
+
.pages()
|
|
10
|
+
.then((pages) => {
|
|
11
|
+
const currentPage = pages[i % pages.length];
|
|
12
|
+
i++;
|
|
13
|
+
if (!currentPage.isClosed()) {
|
|
14
|
+
currentPage.bringToFront();
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
.catch((err) => log_1.Log.error(err));
|
|
18
|
+
}, 100);
|
|
19
|
+
return {
|
|
20
|
+
stopCycling: () => clearInterval(interval),
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
exports.cycleBrowserTabs = cycleBrowserTabs;
|
|
24
|
+
//# sourceMappingURL=cycle-browser-tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cycle-browser-tabs.js","sourceRoot":"","sources":["../src/cycle-browser-tabs.ts"],"names":[],"mappings":";;;AACA,+BAA0B;AAInB,MAAM,gBAAgB,GAAG,CAC/B,aAAoE,EACnE,EAAE;IACH,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE;QACjC,aAAa;aACX,KAAK,EAAE;aACP,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;YACf,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;YAC5C,CAAC,EAAE,CAAC;YACJ,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE;gBAC5B,WAAW,CAAC,YAAY,EAAE,CAAC;aAC3B;QACF,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAClC,CAAC,EAAE,GAAG,CAAC,CAAC;IAER,OAAO;QACN,WAAW,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC;KAC1C,CAAC;AACH,CAAC,CAAC;AApBW,QAAA,gBAAgB,oBAoB3B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ErrorRecord } from '../react-overlay/listen-to-runtime-errors';
|
|
3
|
+
declare type SetErrors = {
|
|
4
|
+
setErrors: (errs: ErrorRecord[]) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const setErrorsRef: React.RefObject<SetErrors>;
|
|
7
|
+
export declare const Overlay: React.FC;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ErrorOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorOverlay.d.ts","sourceRoot":"","sources":["../../../src/editor/components/ErrorOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAC,WAAW,EAAC,MAAM,2CAA2C,CAAC;AAGtE,aAAK,SAAS,GAAG;IAChB,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,YAAY,4BAAyB,CAAC;AAEnD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAwB3B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Overlay = exports.setErrorsRef = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const remotion_1 = require("remotion");
|
|
7
|
+
const ErrorDisplay_1 = require("./ErrorDisplay");
|
|
8
|
+
exports.setErrorsRef = (0, react_1.createRef)();
|
|
9
|
+
const Overlay = () => {
|
|
10
|
+
const [errors, setErrors] = (0, react_1.useState)([]);
|
|
11
|
+
(0, react_1.useImperativeHandle)(exports.setErrorsRef, () => {
|
|
12
|
+
return { setErrors };
|
|
13
|
+
}, []);
|
|
14
|
+
if (errors.length === 0) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, Object.assign({ style: { backgroundColor: '#1f2428', overflow: 'auto', color: 'white' } }, { children: errors.map((err) => {
|
|
18
|
+
return (0, jsx_runtime_1.jsx)(ErrorDisplay_1.ErrorDisplay, { display: err }, err.error.stack);
|
|
19
|
+
}) }), void 0));
|
|
20
|
+
};
|
|
21
|
+
exports.Overlay = Overlay;
|
|
22
|
+
//# sourceMappingURL=ErrorOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorOverlay.js","sourceRoot":"","sources":["../../../src/editor/components/ErrorOverlay.tsx"],"names":[],"mappings":";;;;AAAA,iCAAsE;AACtE,uCAAsC;AAEtC,iDAA4C;AAM/B,QAAA,YAAY,GAAG,IAAA,iBAAS,GAAa,CAAC;AAE5C,MAAM,OAAO,GAAa,GAAG,EAAE;IACrC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAgB,EAAE,CAAC,CAAC;IAExD,IAAA,2BAAmB,EAClB,oBAAY,EACZ,GAAG,EAAE;QACJ,OAAO,EAAC,SAAS,EAAC,CAAC;IACpB,CAAC,EACD,EAAE,CACF,CAAC;IAEF,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QACxB,OAAO,IAAI,CAAC;KACZ;IAED,OAAO,CACN,uBAAC,uBAAY,kBACZ,KAAK,EAAE,EAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAC,gBAEpE,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YACnB,OAAO,uBAAC,2BAAY,IAAuB,OAAO,EAAE,GAAG,IAA7B,GAAG,CAAC,KAAK,CAAC,KAAK,CAAkB,CAAC;QAC7D,CAAC,CAAC,YACY,CACf,CAAC;AACH,CAAC,CAAC;AAxBW,QAAA,OAAO,WAwBlB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type ErrorRecord = {
|
|
3
|
+
error: Error;
|
|
4
|
+
unhandledRejection: boolean;
|
|
5
|
+
contextSize: number;
|
|
6
|
+
stackFrames: StackFrame[];
|
|
7
|
+
};
|
|
8
|
+
import { StackFrame } from './stack-frame';
|
|
9
|
+
export declare const ErrorDisplay: React.FC<{
|
|
10
|
+
display: ErrorRecord;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=ErrorDisplay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorDisplay.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/Errors/ErrorDisplay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,oBAAY,WAAW,GAAG;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,kBAAkB,EAAE,OAAO,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC1B,CAAC;AAEF,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AA4BzC,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IACnC,OAAO,EAAE,WAAW,CAAC;CACrB,CAuCA,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorDisplay = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const container = {
|
|
6
|
+
width: '100%',
|
|
7
|
+
maxWidth: 1000,
|
|
8
|
+
marginLeft: 'auto',
|
|
9
|
+
marginRight: 'auto',
|
|
10
|
+
fontFamily: 'sans-serif',
|
|
11
|
+
paddingTop: '5vh',
|
|
12
|
+
};
|
|
13
|
+
const title = {
|
|
14
|
+
fontSize: '1.5em',
|
|
15
|
+
fontWeight: 'bold',
|
|
16
|
+
};
|
|
17
|
+
const stack = {
|
|
18
|
+
backgroundColor: 'black',
|
|
19
|
+
marginTop: 17,
|
|
20
|
+
};
|
|
21
|
+
const stackLine = {
|
|
22
|
+
paddingTop: 8,
|
|
23
|
+
paddingBottom: 8,
|
|
24
|
+
paddingLeft: 14,
|
|
25
|
+
paddingRight: 14,
|
|
26
|
+
};
|
|
27
|
+
const ErrorDisplay = ({ display }) => {
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: container }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ style: title }, { children: [display.error.name, ": ", display.error.message] }), void 0), (0, jsx_runtime_1.jsx)("div", Object.assign({ style: stack }, { children: display.stackFrames.map((s, i) => {
|
|
29
|
+
var _a;
|
|
30
|
+
return (
|
|
31
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
32
|
+
(0, jsx_runtime_1.jsxs)("div", Object.assign({ style: stackLine }, { children: [(0, jsx_runtime_1.jsx)("div", { children: s.functionName }, void 0), (0, jsx_runtime_1.jsxs)("div", { children: [s._originalFileName, ":", s.columnNumber] }, void 0), (0, jsx_runtime_1.jsx)("div", { children: (_a = s._originalScriptCode) === null || _a === void 0 ? void 0 : _a.map((s, j) => {
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ style: {
|
|
34
|
+
fontFamily: 'monospace',
|
|
35
|
+
whiteSpace: 'pre',
|
|
36
|
+
tabSize: 2,
|
|
37
|
+
color: s.highlight ? 'red' : 'inherit',
|
|
38
|
+
} }, { children: s.content }), j));
|
|
39
|
+
}) }, void 0)] }), i));
|
|
40
|
+
}) }), void 0)] }), void 0));
|
|
41
|
+
};
|
|
42
|
+
exports.ErrorDisplay = ErrorDisplay;
|
|
43
|
+
//# sourceMappingURL=ErrorDisplay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorDisplay.js","sourceRoot":"","sources":["../../../../src/editor/components/Errors/ErrorDisplay.tsx"],"names":[],"mappings":";;;;AAWA,MAAM,SAAS,GAAwB;IACtC,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,KAAK;CACjB,CAAC;AAEF,MAAM,KAAK,GAAwB;IAClC,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,MAAM;CAClB,CAAC;AAEF,MAAM,KAAK,GAAwB;IAClC,eAAe,EAAE,OAAO;IACxB,SAAS,EAAE,EAAE;CACb,CAAC;AAEF,MAAM,SAAS,GAAwB;IACtC,UAAU,EAAE,CAAC;IACb,aAAa,EAAE,CAAC;IAChB,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,YAAY,GAEpB,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE;IAClB,OAAO,CACN,+CAAK,KAAK,EAAE,SAAS,iBACpB,+CAAK,KAAK,EAAE,KAAK,iBACf,OAAO,CAAC,KAAK,CAAC,IAAI,QAAI,OAAO,CAAC,KAAK,CAAC,OAAO,aACvC,EACN,8CAAK,KAAK,EAAE,KAAK,gBACf,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;;oBACjC,OAAO;oBACN,oDAAoD;oBACpD,+CAAa,KAAK,EAAE,SAAS,iBAC5B,0CAAM,CAAC,CAAC,YAAY,WAAO,EAC3B,4CACE,CAAC,CAAC,iBAAiB,OAAG,CAAC,CAAC,YAAY,YAChC,EACN,0CACE,MAAA,CAAC,CAAC,mBAAmB,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;oCACpC,OAAO,CACN,8CAGC,KAAK,EAAE;4CACN,UAAU,EAAE,WAAW;4CACvB,UAAU,EAAE,KAAK;4CACjB,OAAO,EAAE,CAAC;4CACV,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;yCACtC,gBAEA,CAAC,CAAC,OAAO,KARL,CAAC,CASD,CACN,CAAC;gCACH,CAAC,CAAC,WACG,MAtBG,CAAC,CAuBL,CACN,CAAC;gBACH,CAAC,CAAC,YACG,aACD,CACN,CAAC;AACH,CAAC,CAAC;AAzCW,QAAA,YAAY,gBAyCvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ErrorRecord } from './ErrorDisplay';
|
|
3
|
+
declare type SetErrors = {
|
|
4
|
+
setErrors: (errs: ErrorRecord[]) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const setErrorsRef: React.RefObject<SetErrors>;
|
|
7
|
+
export declare const Overlay: React.FC;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ErrorOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorOverlay.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/Errors/ErrorOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAe,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAEzD,aAAK,SAAS,GAAG;IAChB,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,YAAY,4BAAyB,CAAC;AAEnD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAwB3B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Overlay = exports.setErrorsRef = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const remotion_1 = require("remotion");
|
|
7
|
+
const ErrorDisplay_1 = require("./ErrorDisplay");
|
|
8
|
+
exports.setErrorsRef = (0, react_1.createRef)();
|
|
9
|
+
const Overlay = () => {
|
|
10
|
+
const [errors, setErrors] = (0, react_1.useState)([]);
|
|
11
|
+
(0, react_1.useImperativeHandle)(exports.setErrorsRef, () => {
|
|
12
|
+
return { setErrors };
|
|
13
|
+
}, []);
|
|
14
|
+
if (errors.length === 0) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, Object.assign({ style: { backgroundColor: '#1f2428', overflow: 'auto', color: 'white' } }, { children: errors.map((err) => {
|
|
18
|
+
return (0, jsx_runtime_1.jsx)(ErrorDisplay_1.ErrorDisplay, { display: err }, err.error.stack);
|
|
19
|
+
}) }), void 0));
|
|
20
|
+
};
|
|
21
|
+
exports.Overlay = Overlay;
|
|
22
|
+
//# sourceMappingURL=ErrorOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorOverlay.js","sourceRoot":"","sources":["../../../../src/editor/components/Errors/ErrorOverlay.tsx"],"names":[],"mappings":";;;;AAAA,iCAAsE;AACtE,uCAAsC;AACtC,iDAAyD;AAM5C,QAAA,YAAY,GAAG,IAAA,iBAAS,GAAa,CAAC;AAE5C,MAAM,OAAO,GAAa,GAAG,EAAE;IACrC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAgB,EAAE,CAAC,CAAC;IAExD,IAAA,2BAAmB,EAClB,oBAAY,EACZ,GAAG,EAAE;QACJ,OAAO,EAAC,SAAS,EAAC,CAAC;IACpB,CAAC,EACD,EAAE,CACF,CAAC;IAEF,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QACxB,OAAO,IAAI,CAAC;KACZ;IAED,OAAO,CACN,uBAAC,uBAAY,kBACZ,KAAK,EAAE,EAAC,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAC,gBAEpE,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YACnB,OAAO,uBAAC,2BAAY,IAAuB,OAAO,EAAE,GAAG,IAA7B,GAAG,CAAC,KAAK,CAAC,KAAK,CAAkB,CAAC;QAC7D,CAAC,CAAC,YACY,CACf,CAAC;AACH,CAAC,CAAC;AAxBW,QAAA,OAAO,WAwBlB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
/** A container holding a script line. */
|
|
8
|
+
export declare class ScriptLine {
|
|
9
|
+
/** The line number of this line of source. */
|
|
10
|
+
lineNumber: number;
|
|
11
|
+
/** The content (or value) of this line of source. */
|
|
12
|
+
content: string;
|
|
13
|
+
/** Whether or not this line should be highlighted. Particularly useful for error reporting with context. */
|
|
14
|
+
highlight: boolean;
|
|
15
|
+
constructor(lineNumber: number, content: string, highlight?: boolean);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A representation of a stack frame.
|
|
19
|
+
*/
|
|
20
|
+
export declare class StackFrame {
|
|
21
|
+
functionName: string | null;
|
|
22
|
+
fileName: string | null;
|
|
23
|
+
lineNumber: number | null;
|
|
24
|
+
columnNumber: number | null;
|
|
25
|
+
_originalFunctionName: string | null;
|
|
26
|
+
_originalFileName: string | null;
|
|
27
|
+
_originalLineNumber: number | null;
|
|
28
|
+
_originalColumnNumber: number | null;
|
|
29
|
+
_scriptCode: ScriptLine[] | null;
|
|
30
|
+
_originalScriptCode: ScriptLine[] | null;
|
|
31
|
+
constructor(functionName?: string | null, fileName?: string | null, lineNumber?: number | null, columnNumber?: number | null, scriptCode?: ScriptLine[] | null, sourceFunctionName?: string | null, sourceFileName?: string | null, sourceLineNumber?: number | null, sourceColumnNumber?: number | null, sourceScriptCode?: ScriptLine[] | null);
|
|
32
|
+
/**
|
|
33
|
+
* Returns the name of this function.
|
|
34
|
+
*/
|
|
35
|
+
getFunctionName(): string;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the source of the frame.
|
|
38
|
+
* This contains the file name, line number, and column number when available.
|
|
39
|
+
*/
|
|
40
|
+
getSource(): string;
|
|
41
|
+
/**
|
|
42
|
+
* Returns a pretty version of this stack frame.
|
|
43
|
+
*/
|
|
44
|
+
toString(): string;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=stack-frame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack-frame.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/Errors/stack-frame.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,yCAAyC;AACzC,qBAAa,UAAU;IACtB,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,4GAA4G;IAC5G,SAAS,EAAE,OAAO,CAAC;gBAEP,UAAU,EAAE,MAAM,EAAE,OAAO,E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