@brett_lamy/ui 5.15.0 → 5.15.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 (118) hide show
  1. package/dist/components/call-stack.d.ts +26 -0
  2. package/dist/components/call-stack.d.ts.map +1 -0
  3. package/dist/components/call-stack.js +236 -0
  4. package/dist/components/code-editor-window.d.ts +191 -0
  5. package/dist/components/code-editor-window.d.ts.map +1 -0
  6. package/dist/components/code-editor-window.js +1474 -0
  7. package/dist/components/code-editor.d.ts +213 -0
  8. package/dist/components/code-editor.d.ts.map +1 -0
  9. package/dist/components/code-editor.js +484 -0
  10. package/dist/components/file-upload.d.ts +1 -1
  11. package/dist/components/file-upload.d.ts.map +1 -1
  12. package/dist/components/file-upload.js +1 -1
  13. package/dist/components/filter-input.d.ts +1 -1
  14. package/dist/components/filter-input.d.ts.map +1 -1
  15. package/dist/components/filter-input.js +1 -1
  16. package/dist/components/filter.d.ts +1 -1
  17. package/dist/components/filter.d.ts.map +1 -1
  18. package/dist/components/filter.js +1 -1
  19. package/dist/components/log-list.d.ts +95 -0
  20. package/dist/components/log-list.d.ts.map +1 -0
  21. package/dist/components/log-list.js +549 -0
  22. package/dist/components/object-tree.d.ts +30 -0
  23. package/dist/components/object-tree.d.ts.map +1 -0
  24. package/dist/components/object-tree.js +415 -0
  25. package/dist/components/object-value.d.ts +13 -0
  26. package/dist/components/object-value.d.ts.map +1 -0
  27. package/dist/components/object-value.js +69 -0
  28. package/dist/components/request-table.d.ts +78 -0
  29. package/dist/components/request-table.d.ts.map +1 -0
  30. package/dist/components/request-table.js +697 -0
  31. package/dist/components/spreadsheet.d.ts +1 -1
  32. package/dist/components/spreadsheet.d.ts.map +1 -1
  33. package/dist/components/spreadsheet.js +1 -1
  34. package/dist/components/syntax-highlighting.d.ts +45 -77
  35. package/dist/components/syntax-highlighting.d.ts.map +1 -1
  36. package/dist/components/syntax-highlighting.js +36 -275
  37. package/dist/components/terminal.d.ts +62 -0
  38. package/dist/components/terminal.d.ts.map +1 -0
  39. package/dist/components/terminal.js +172 -0
  40. package/dist/components/trace-timeline.d.ts +97 -0
  41. package/dist/components/trace-timeline.d.ts.map +1 -0
  42. package/dist/components/trace-timeline.js +850 -0
  43. package/dist/components/tree.d.ts.map +1 -1
  44. package/dist/components/tree.js +99 -91
  45. package/dist/components/video-preview.d.ts +1 -1
  46. package/dist/components/video-preview.d.ts.map +1 -1
  47. package/dist/components/video-preview.js +1 -1
  48. package/dist/components/video-timeline.d.ts +1 -1
  49. package/dist/components/video-timeline.d.ts.map +1 -1
  50. package/dist/components/video-timeline.js +1 -1
  51. package/dist/components/workspace.d.ts.map +1 -1
  52. package/dist/components/workspace.js +1 -1
  53. package/dist/index.css +1 -1
  54. package/dist/index.d.ts +45 -11
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +119 -100
  57. package/dist/lib/call-stack-model.d.ts +75 -0
  58. package/dist/lib/call-stack-model.d.ts.map +1 -0
  59. package/dist/lib/call-stack-model.js +114 -0
  60. package/dist/lib/code-document.d.ts +229 -0
  61. package/dist/lib/code-document.d.ts.map +1 -0
  62. package/dist/lib/code-document.js +727 -0
  63. package/dist/lib/code-editor-gpu.d.ts +9 -0
  64. package/dist/lib/code-editor-gpu.d.ts.map +1 -0
  65. package/dist/lib/code-editor-gpu.js +23 -0
  66. package/dist/lib/code-editor-model.d.ts +371 -0
  67. package/dist/lib/code-editor-model.d.ts.map +1 -0
  68. package/dist/lib/code-editor-model.js +1105 -0
  69. package/dist/lib/{file-upload.d.ts → file-upload-model.d.ts} +1 -1
  70. package/dist/lib/file-upload-model.d.ts.map +1 -0
  71. package/dist/lib/{file-upload.js → file-upload-model.js} +1 -1
  72. package/dist/lib/{filter.d.ts → filter-model.d.ts} +1 -1
  73. package/dist/lib/filter-model.d.ts.map +1 -0
  74. package/dist/lib/{filter.js → filter-model.js} +1 -1
  75. package/dist/lib/filter-query.d.ts +1 -1
  76. package/dist/lib/filter-query.d.ts.map +1 -1
  77. package/dist/lib/filter-query.js +1 -1
  78. package/dist/lib/log-list-model.d.ts +132 -0
  79. package/dist/lib/log-list-model.d.ts.map +1 -0
  80. package/dist/lib/log-list-model.js +214 -0
  81. package/dist/lib/log-list-window.d.ts +121 -0
  82. package/dist/lib/log-list-window.d.ts.map +1 -0
  83. package/dist/lib/log-list-window.js +245 -0
  84. package/dist/lib/object-tree-model.d.ts +162 -0
  85. package/dist/lib/object-tree-model.d.ts.map +1 -0
  86. package/dist/lib/object-tree-model.js +347 -0
  87. package/dist/lib/object-tree-value.d.ts +139 -0
  88. package/dist/lib/object-tree-value.d.ts.map +1 -0
  89. package/dist/lib/object-tree-value.js +410 -0
  90. package/dist/lib/request-table-model.d.ts +85 -0
  91. package/dist/lib/request-table-model.d.ts.map +1 -0
  92. package/dist/lib/request-table-model.js +105 -0
  93. package/dist/lib/{spreadsheet.d.ts → spreadsheet-model.d.ts} +1 -1
  94. package/dist/lib/spreadsheet-model.d.ts.map +1 -0
  95. package/dist/lib/{spreadsheet.js → spreadsheet-model.js} +1 -1
  96. package/dist/lib/syntax.d.ts +19 -7
  97. package/dist/lib/syntax.d.ts.map +1 -1
  98. package/dist/lib/syntax.js +54 -50
  99. package/dist/lib/terminal-line.d.ts +155 -0
  100. package/dist/lib/terminal-line.d.ts.map +1 -0
  101. package/dist/lib/terminal-line.js +463 -0
  102. package/dist/lib/trace-timeline-draw.d.ts +109 -0
  103. package/dist/lib/trace-timeline-draw.d.ts.map +1 -0
  104. package/dist/lib/trace-timeline-draw.js +252 -0
  105. package/dist/lib/trace-timeline-model.d.ts +324 -0
  106. package/dist/lib/trace-timeline-model.d.ts.map +1 -0
  107. package/dist/lib/trace-timeline-model.js +510 -0
  108. package/dist/lib/video-render.d.ts +1 -1
  109. package/dist/lib/video-render.d.ts.map +1 -1
  110. package/dist/lib/video-render.js +1 -1
  111. package/dist/lib/{video-timeline.d.ts → video-timeline-model.d.ts} +1 -1
  112. package/dist/lib/video-timeline-model.d.ts.map +1 -0
  113. package/dist/lib/{video-timeline.js → video-timeline-model.js} +1 -1
  114. package/package.json +4 -1
  115. package/dist/lib/file-upload.d.ts.map +0 -1
  116. package/dist/lib/filter.d.ts.map +0 -1
  117. package/dist/lib/spreadsheet.d.ts.map +0 -1
  118. package/dist/lib/video-timeline.d.ts.map +0 -1
@@ -0,0 +1,9 @@
1
+ import { CodeHighlight } from './code-editor-model';
2
+ import { SyntaxEngine } from './syntax';
3
+ export interface GpuCodeHighlightOptions {
4
+ /** `auto` (default): the GPU on a hardware adapter, else the fallback. See `SyntaxEngine`. */
5
+ engine?: SyntaxEngine;
6
+ }
7
+ /** A `highlight` for CodeEditor that lexes on the GPU. Text shows plain until the answer arrives, usually a frame later. */
8
+ export declare function createGpuCodeHighlight({ engine }?: GpuCodeHighlightOptions): CodeHighlight;
9
+ //# sourceMappingURL=code-editor-gpu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-editor-gpu.d.ts","sourceRoot":"","sources":["../../src/lib/code-editor-gpu.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAA4B,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAE3E,MAAM,WAAW,uBAAuB;IACtC,8FAA8F;IAC9F,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,4HAA4H;AAC5H,wBAAgB,sBAAsB,CAAC,EAAE,MAAe,EAAE,GAAE,uBAA4B,GAAG,aAAa,CA0BvG"}
@@ -0,0 +1,23 @@
1
+ import { lexSyntax as e, tokenizeLines as t } from "./syntax.js";
2
+ //#region src/lib/code-editor-gpu.ts
3
+ function n({ engine: n = "auto" } = {}) {
4
+ let r = null, i = () => {
5
+ let i = r ?? [];
6
+ r = null;
7
+ let a = `${i.map((e) => e.text).join("\n")}\n`;
8
+ e(a, n).then(({ spans: e }) => {
9
+ let n = t(a, e);
10
+ i.forEach((e, t) => e.resolve(n[t] ?? null));
11
+ }, () => {
12
+ for (let e of i) e.resolve(null);
13
+ });
14
+ };
15
+ return (e) => new Promise((t) => {
16
+ r || (r = [], queueMicrotask(i)), r.push({
17
+ text: e,
18
+ resolve: t
19
+ });
20
+ });
21
+ }
22
+ //#endregion
23
+ export { n as createGpuCodeHighlight };
@@ -0,0 +1,371 @@
1
+ import { CodeToken, CodeTokenType } from './syntax';
2
+ export type { CodeToken, CodeTokenType } from './syntax';
3
+ /** The lines an edit touched: `[fromLine, oldEndLine]` before it is `[fromLine, newEndLine]` after. The offsets say where on
4
+ those first and last lines. */
5
+ export interface LineEdit {
6
+ fromLine: number;
7
+ oldEndLine: number;
8
+ newEndLine: number;
9
+ fromOffset: number;
10
+ oldEndOffset: number;
11
+ newEndOffset: number;
12
+ }
13
+ /** How many cells a code point takes on its own: 0 for marks that sit on the cell before, 1, or 2. A tab has no fixed
14
+ width, so callers handle it first. */
15
+ export declare function codePointCells(cp: number): number;
16
+ /** A line's grid: where each code unit lands. A line of plain characters needs no storage at all; anything else keeps
17
+ a mark per kilobyte, so any position is found by a binary search and a short walk, on a megabyte line too. */
18
+ export declare class LineMetrics {
19
+ readonly text: string;
20
+ readonly tabSize: number;
21
+ /** Every code unit is one cell, so offset and cell are the same number. */
22
+ readonly plain: boolean;
23
+ /** Cells across the whole line. */
24
+ readonly cells: number;
25
+ /** Pairs of [offset, cell], at cluster starts. */
26
+ private marks;
27
+ private markCount;
28
+ constructor(text: string, tabSize?: number, known?: {
29
+ plain: boolean;
30
+ cells: number;
31
+ marks: Int32Array | null;
32
+ markCount: number;
33
+ });
34
+ /** The grid of `text`, which is this line with `removed` code units at `start` replaced by `inserted`. On a long line this
35
+ is what keeps typing cheap: the grid before the edit stands, a short walk finds where the old and new grids agree again,
36
+ and the rest moves by a constant. A tab absorbs a shift that isn't a multiple of the tab size, because a tab always
37
+ ends on a stop: past the first one, the shift is a multiple and every later tab keeps its width. */
38
+ edited(text: string, start: number, removed: number, inserted: string): LineMetrics;
39
+ /** The last mark at or before `value` in the pair's `field` (0: offset, 1: cell). */
40
+ private markBefore;
41
+ /** The cell a code unit starts in. An offset inside a cluster gives the cluster's first cell. */
42
+ cellAt(offset: number): number;
43
+ /** The start of the cluster covering `cell`; the line's length past its end. Always a cluster boundary, so a window
44
+ cut here never splits a surrogate pair from itself or a mark from its base. */
45
+ offsetAt(cell: number): number;
46
+ /** The cluster boundary nearest to a position on the grid: where a click lands. `cell` can be fractional. */
47
+ nearest(cell: number): number;
48
+ /** The next cluster boundary after `offset`. */
49
+ after(offset: number): number;
50
+ /** The cluster boundary before `offset`. */
51
+ before(offset: number): number;
52
+ }
53
+ export declare const DEFAULT_TAB_SIZE = 2;
54
+ /** What the DOM gets for a range of a line. A string is a run of text; a box is held to its cells, because a fallback
55
+ font's idea of a character's width isn't the grid's. */
56
+ export type DisplayPiece = string | {
57
+ text: string;
58
+ cells: number;
59
+ control?: boolean;
60
+ rtl?: boolean;
61
+ };
62
+ /** The text to draw for `[start, end)`: tabs as the spaces they span from where they are on the line, and anything that
63
+ could leave the grid in a box. `start` and `end` are offsets at cluster boundaries. */
64
+ export declare function displayPieces(metrics: LineMetrics, start: number, end: number): DisplayPiece[];
65
+ /** Horizontal windows start and end on multiples of this many cells. */
66
+ export declare const TILE_CELLS = 128;
67
+ /** Rows kept past each edge of what's visible. */
68
+ export declare const ROW_OVERSCAN = 8;
69
+ export interface Span {
70
+ /** First, inclusive. */
71
+ start: number;
72
+ /** Last, exclusive. */
73
+ end: number;
74
+ }
75
+ export declare function visibleRows(scrollY: number, height: number, lineHeight: number, rowCount: number): Span;
76
+ /** The rows to render: the same as before while everything visible is still in it. */
77
+ export declare function nextRowWindow(current: Span | null, visible: Span, rowCount: number, overscan?: number): Span;
78
+ export declare function visibleCells(scrollX: number, width: number, cellWidth: number): Span;
79
+ /** The cells to render on every long line: the same as before while everything visible is still in it. */
80
+ export declare function nextCellWindow(current: Span | null, visible: Span): Span;
81
+ /** Where to put the DOM's zero: rows and cells are drawn relative to a multiple of `every`, so the numbers in the DOM
82
+ stay small however far down the file you are, and only change once in a long while. */
83
+ export declare const originOf: (value: number, every: number) => number;
84
+ export declare const MAX_SCROLL_SIZE = 16000000;
85
+ export declare const physicalSize: (virtual: number) => number;
86
+ /** Physical scroll position to virtual, exact at both ends of the range. */
87
+ export declare function toVirtualScroll(physical: number, virtualSize: number, client: number): number;
88
+ export declare function toPhysicalScroll(virtual: number, virtualSize: number, client: number): number;
89
+ export type CodeEditorAlign = 'start' | 'center' | 'end' | 'nearest';
90
+ /** Where to scroll to put `[position, position + size)` at `align` in a view of `client` px. `margin` keeps `nearest`
91
+ off the very edge. */
92
+ export declare function alignedScroll(position: number, size: number, client: number, current: number, align: CodeEditorAlign, margin?: number): number;
93
+ /** Where to scroll to bring something into view for a reader following along: nowhere if it's already well inside, and
94
+ otherwise a third of the way into the view, so what comes next is visible too. */
95
+ export declare function revealScroll(position: number, size: number, client: number, current: number, margin: number): number;
96
+ export interface RowLocation {
97
+ /** Index of the line. */
98
+ line: number;
99
+ /** Which of the line's rows, from 0. */
100
+ part: number;
101
+ }
102
+ export interface RowMap {
103
+ readonly rowCount: number;
104
+ rowOfLine(line: number): number;
105
+ locate(row: number): RowLocation;
106
+ }
107
+ export declare function identityRowMap(lineCount: number): RowMap;
108
+ /** The rows of lines with `cellCounts[i]` cells at `cols` cells to a row. An unknown line (0 cells) is one row. */
109
+ export declare function wrapRowMap(cellCounts: Uint32Array, cols: number): RowMap;
110
+ /** The part of a line a wrapped row shows. A wide character that doesn't fit stays on the row it started on. */
111
+ export declare function wrappedSpan(metrics: LineMetrics, part: number, cols: number): Span;
112
+ export interface CodePosition {
113
+ /** Index of the line. */
114
+ line: number;
115
+ /** UTF-16 code units from the start of the line. */
116
+ offset: number;
117
+ }
118
+ export interface CodeSelection {
119
+ anchor: CodePosition;
120
+ focus: CodePosition;
121
+ }
122
+ export declare const comparePositions: (a: CodePosition, b: CodePosition) => number;
123
+ export declare function orderedSelection(selection: CodeSelection): {
124
+ from: CodePosition;
125
+ to: CodePosition;
126
+ };
127
+ export declare const isCollapsed: (selection: CodeSelection) => boolean;
128
+ /** Copy stops here. Past it a clipboard write stalls the browser, and a string this long is rarely what anyone wanted. */
129
+ export declare const MAX_COPY_LENGTH: number;
130
+ /** The selected text, as the source has it: tabs stay tabs, and lines join with `\n`. */
131
+ export declare function selectionText(selection: CodeSelection, getLine: (index: number) => string, limit?: number): {
132
+ text: string;
133
+ truncated: boolean;
134
+ };
135
+ export type SelectionKey = 'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown' | 'Home' | 'End';
136
+ /** Where the moving end of a selection goes for a key: by clusters along a line and across its ends, and to the same
137
+ place on the grid up and down. */
138
+ export declare function movePosition(position: CodePosition, key: SelectionKey, metricsOf: (line: number) => LineMetrics, lineCount: number): CodePosition;
139
+ /** The cells a selection covers on a line, with one more if it runs on past the line's end. */
140
+ export declare function selectionCells(ordered: {
141
+ from: CodePosition;
142
+ to: CodePosition;
143
+ }, line: number, metrics: LineMetrics): Span | null;
144
+ export type SelectionGranularity = 'char' | 'word' | 'line';
145
+ /** A selection as a drag extends it: by characters from a point, or by whole words or lines from what the double or triple
146
+ click selected. */
147
+ export declare function extendSelection(base: CodeSelection, to: CodePosition, granularity: SelectionGranularity, getLine: (index: number) => string, lineCount: number): CodeSelection;
148
+ export declare const isWordCode: (c: number) => boolean;
149
+ /** The word, or run of spaces, or single other character at `offset`: what a double click selects. */
150
+ export declare function wordAt(text: string, offset: number): Span;
151
+ /** The markers with a column in `[start, end)`: a line of a bundle can have tens of thousands, so the window's few are
152
+ found by binary search. `end` past the line's length includes markers past its end. */
153
+ export declare function markersInRange<T extends {
154
+ column: number;
155
+ }>(markers: readonly T[], start: number, end: number): readonly T[];
156
+ /** The part of `tokens` (which start at offset `base`) inside `[start, end)`. */
157
+ export declare function clipTokens(tokens: readonly CodeToken[], base: number, start: number, end: number): CodeToken[];
158
+ /** Where the lexer is. Plain data: copied to resume at a checkpoint or at a line that starts inside a comment. */
159
+ export interface LexState {
160
+ mode: number;
161
+ /** A `/` here would start a regular expression. */
162
+ regexAllowed: boolean;
163
+ /** For each `${` still open, how many braces were open inside it before the current one. */
164
+ templates: readonly number[];
165
+ /** Braces open inside the current `${`. */
166
+ depth: number;
167
+ }
168
+ export declare const LEX_START: LexState;
169
+ export type LexEmit = (start: number, end: number, type: CodeTokenType) => void;
170
+ /** Lexes `text` from `from` until at least `to`, starting in `state`, and returns where it stopped and the state there.
171
+ It stops at `to` exactly inside a comment or string, and at the end of the token otherwise. `emit` gets every labelled
172
+ span; nothing is emitted for plain text. */
173
+ export declare function lexRange(text: string, from: number, to: number, state: LexState, emit: LexEmit | null): {
174
+ offset: number;
175
+ state: LexState;
176
+ };
177
+ /** Lines past this length are "long": highlighted a window at a time. */
178
+ export declare const LONG_LINE = 4096;
179
+ /** The state a line leaves for the next. */
180
+ export declare function nextLineState(text: string, state: LexState): LexState;
181
+ /** Tokens for a single line on its own: for hosts who want the default labels without the editor's state. */
182
+ export declare function lexCodeLine(text: string, state?: LexState): CodeToken[];
183
+ export interface CodeLexerOptions {
184
+ lineCount: number;
185
+ getLine: (index: number) => string;
186
+ /** A span of lines turned out to start in a different state than was assumed when they were drawn. */
187
+ onInvalidate?: (from: number, to: number) => void;
188
+ }
189
+ /** The default lexer as the editor uses it: any range of any line, right, in about the time it takes to read a few
190
+ kilobytes. Multi-line comments and template literals are found by `scan`, a pass over the file that runs in slices.
191
+
192
+ After an edit the pass starts again from the edited line, in the state that line starts in, and stops as soon as a later
193
+ line starts in the same state it did before: from there on nothing can differ. Typing `/*` at the top of a file is the
194
+ one edit that has to go all the way down, and it does that in slices too. */
195
+ export declare class CodeLexer {
196
+ private lineCount;
197
+ private getLine;
198
+ private onInvalidate?;
199
+ /** Line-start states as runs: `runStarts[k]` is the first line with `runStates[k]`. */
200
+ private runStarts;
201
+ private runStates;
202
+ /** Lines up to and including this have a known start state. */
203
+ private scanned;
204
+ private scannedChars;
205
+ private scanState;
206
+ /** The first line of a stretch that doesn't start plain, while the pass is inside one. */
207
+ private pendingRun;
208
+ private longLines;
209
+ /** What was recorded past an edit, in the new numbering, until the pass catches up with it: runs as above, up to and
210
+ including line `aheadEnd`, which started in `aheadEndState`. */
211
+ private aheadStarts;
212
+ private aheadStates;
213
+ private aheadEnd;
214
+ private aheadEndState;
215
+ /** The pass can't stop before this line: an earlier edit is still working its way through what's before it. */
216
+ private convergeFrom;
217
+ /** The lines the pass has found starting differently since it last said so. */
218
+ private dirtyFrom;
219
+ private dirtyTo;
220
+ constructor({ lineCount, getLine, onInvalidate }: CodeLexerOptions);
221
+ /** Advances the pass over the file until `deadline()` says stop. True while there is more to do. */
222
+ scan(deadline: () => boolean): boolean;
223
+ private pushRun;
224
+ /** The state recorded for a line past the pass. */
225
+ private aheadAt;
226
+ /** The pass is back in step at this line: everything recorded past it stands. */
227
+ private rejoin;
228
+ private dropAhead;
229
+ private closeRun;
230
+ private flushDirty;
231
+ /** Follows an edit: lines shift, and the pass goes back to the edited line. Run `scan` to bring the states up to date. */
232
+ edit({ fromLine, oldEndLine, newEndLine, fromOffset, oldEndOffset, newEndOffset }: LineEdit): void;
233
+ /** The state a line starts in, as far as the pass has got: past that, what it started in before the last edit, and with
234
+ nothing known, it's assumed to start plain. */
235
+ stateAtLine(line: number): LexState;
236
+ /** Tokens for a whole short line. */
237
+ lineTokens(line: number, text: string): CodeToken[];
238
+ private longLine;
239
+ /** Tokens for `[start, end)` of a long line, or `null` if `deadline()` said stop before the lexer got that far. */
240
+ rangeTokens(line: number, text: string, start: number, end: number, deadline: () => boolean): CodeToken[] | null;
241
+ }
242
+ export interface CodeHighlightContext {
243
+ /** Where `text` starts in the line: 0 unless the line is long. */
244
+ offset: number;
245
+ /** The whole line. It's only a reference, but it can be a megabyte: don't walk it on every call. */
246
+ line: string;
247
+ /** `text` is a window on a long line, not all of it. */
248
+ partial: boolean;
249
+ }
250
+ /** Labels a line, or the part of a long line that's on screen. It can answer later, with a promise; the text shows plain
251
+ until then. `null` means leave it plain. */
252
+ export type CodeHighlight = (text: string, lineIndex: number, context: CodeHighlightContext) => readonly CodeToken[] | Promise<readonly CodeToken[] | null | undefined> | null | undefined;
253
+ /** What a store asks for tokens. `undefined` means "out of time, ask me again". */
254
+ export type TokenProducer = (lineIndex: number, text: string, start: number, end: number, deadline: () => boolean) => readonly CodeToken[] | Promise<readonly CodeToken[] | null | undefined> | null | undefined;
255
+ export declare function hostProducer(highlight: CodeHighlight): TokenProducer;
256
+ export declare function lexerProducer(lexer: CodeLexer): TokenProducer;
257
+ /** How long a frame may spend highlighting before the rest shows plain and catches up in the next one. */
258
+ export declare const HIGHLIGHT_BUDGET_MS = 6;
259
+ export interface CodeTokenStoreOptions {
260
+ produce: TokenProducer;
261
+ getText: (lineIndex: number) => string;
262
+ /** Run this soon, and not during this frame's rendering if it can be helped. */
263
+ schedule: (run: () => void) => void;
264
+ now?: () => number;
265
+ }
266
+ /** Tokens by line, worked out as rows ask for them, and never for longer than a frame can spare. */
267
+ export declare class CodeTokenStore {
268
+ private produce;
269
+ private getText;
270
+ private schedule;
271
+ private now;
272
+ private cache;
273
+ private versions;
274
+ private listeners;
275
+ private queue;
276
+ private inflight;
277
+ private scheduled;
278
+ private notifying;
279
+ private dirty;
280
+ /** Time highlighting may still take in this frame, and when the current piece of work started. */
281
+ private budget;
282
+ private workStart;
283
+ private working;
284
+ private keepFrom;
285
+ private keepTo;
286
+ constructor({ produce, getText, schedule, now }: CodeTokenStoreOptions);
287
+ /** How much is waiting to be worked out, or for an answer. */
288
+ get pending(): number;
289
+ /** Starts the time a frame may spend, and says which lines still matter to work that's waiting. */
290
+ beginFrame(keepFrom: number, keepTo: number, budget?: number): void;
291
+ private outOfTime;
292
+ subscribe: (listener: () => void) => () => void;
293
+ /** Changes when this line's tokens do. */
294
+ version: (line: number) => number;
295
+ private bump;
296
+ private flushSoon;
297
+ private remember;
298
+ /** Works out one entry now, if it can. */
299
+ private fill;
300
+ /** The tokens for `[start, end)`. `null`: draw it plain for now (if there's more coming, the line's version changes). */
301
+ read(line: number, text: string, start: number, end: number): readonly CodeToken[] | null;
302
+ private pumpSoon;
303
+ /** Does waiting work for one slice of time. */
304
+ pump(budget?: number): void;
305
+ /** Follows an edit: forgets the lines it touched, and moves what's below them. Rows on the touched lines draw again because
306
+ their text changed, so there's nothing to announce. */
307
+ edit({ fromLine, oldEndLine, newEndLine }: LineEdit): void;
308
+ /** Tells rows now about any tokens that changed, rather than a frame from now. */
309
+ flushNow(): void;
310
+ /** Forgets what was worked out for these lines, for rows that are up now. */
311
+ invalidate(from: number, to: number): void;
312
+ }
313
+ export interface LineSource {
314
+ readonly count: number;
315
+ /** The text of a line, by index. */
316
+ get: (index: number) => string;
317
+ }
318
+ /** A line's text and grid, kept for the lines in use: a host's `getLine` might be doing work, and a long line's grid is. */
319
+ export declare class LineCache {
320
+ readonly source: LineSource;
321
+ readonly tabSize: number;
322
+ private metrics;
323
+ constructor(source: LineSource, tabSize: number);
324
+ text(line: number): string;
325
+ /** The grid of a line if it's already known. */
326
+ peek(line: number): LineMetrics | undefined;
327
+ get(line: number): LineMetrics;
328
+ /** Follows an edit: forgets the lines it touched and moves what's below them. A long line edited in place keeps most of its
329
+ grid. */
330
+ edit({ fromLine, oldEndLine, newEndLine, fromOffset, oldEndOffset, newEndOffset }: LineEdit): void;
331
+ }
332
+ /** Cells on a line, without keeping its grid. */
333
+ export declare function lineCells(text: string, tabSize: number): number;
334
+ /** A source's lines, split where JS engines count a new line: not only at `\\n`. For positions from an engine to land on
335
+ the line it means. An editor's text splits with `splitEditorLines` (lib/code-document), which keeps U+2028 in the line. */
336
+ export declare function splitCodeLines(source: string): string[];
337
+ /** A pass over the file for what can't be known from the lines on screen: the widest line, for the scrollbar, and with
338
+ wrapping on, how many rows each line takes. It runs in slices. */
339
+ export declare class LineScanner {
340
+ private source;
341
+ private tabSize;
342
+ /** Cells per line, with room to grow, when something needs them all: wrapping. */
343
+ private counts;
344
+ private next;
345
+ private chars;
346
+ /** The widest line so far. */
347
+ maxCells: number;
348
+ constructor(source: LineSource, tabSize: number, keepCounts: boolean);
349
+ /** How many lines the pass has been through. */
350
+ get reached(): number;
351
+ /** Cells per line, once the pass has got to them. */
352
+ get cellCounts(): Uint32Array | null;
353
+ /** Follows an edit, which has already happened in the source. Lines the pass has been past are measured again; it'll get
354
+ to the rest. */
355
+ edit({ fromLine, oldEndLine, newEndLine }: LineEdit): void;
356
+ /** Advances until `deadline()` says stop. True while there is more to do. */
357
+ run(deadline: () => boolean): boolean;
358
+ }
359
+ /** The most lines a read-only text puts in the page. */
360
+ export declare const MAX_PAGE_LINES = 5000;
361
+ /** The longest line a read-only text puts in the page, in UTF-16 code units. */
362
+ export declare const MAX_PAGE_LINE_LENGTH: number;
363
+ /** The most text a read-only text puts in the page, in UTF-16 code units. */
364
+ export declare const MAX_PAGE_CHARS: number;
365
+ /** Whether a text is too big to put in the page. */
366
+ export declare function tooBigForPage(text: string): boolean;
367
+ /** A line number, an inclusive `[from, to]` pair, or a string like `"3-5"` / `"3"`. */
368
+ export type CodeLineRange = number | readonly [number, number] | string;
369
+ /** The line numbers a list of ranges covers. */
370
+ export declare function lineSet(ranges: readonly CodeLineRange[] | null | undefined): Set<number>;
371
+ //# sourceMappingURL=code-editor-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-editor-model.d.ts","sourceRoot":"","sources":["../../src/lib/code-editor-model.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7D,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7D;kCACkC;AAClC,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAA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