@motionscript/code 0.1.0-alpha.0 → 0.1.0-alpha.10

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 (65) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/NOTICE +49 -0
  3. package/README.md +148 -50
  4. package/dist/browser/THIRD_PARTY_LICENSES.txt +431 -0
  5. package/dist/browser/index.js +10 -7
  6. package/dist/browser/index.js.map +3 -3
  7. package/dist/browser/manifest.json +85 -3
  8. package/dist/code-range.d.ts +7 -1
  9. package/dist/code-range.d.ts.map +1 -1
  10. package/dist/code-range.js +9 -1
  11. package/dist/code-range.js.map +1 -1
  12. package/dist/diff.d.ts +14 -0
  13. package/dist/diff.d.ts.map +1 -1
  14. package/dist/diff.js +134 -2
  15. package/dist/diff.js.map +1 -1
  16. package/dist/engine.d.ts +2 -2
  17. package/dist/engine.d.ts.map +1 -1
  18. package/dist/engine.js +4 -4
  19. package/dist/engine.js.map +1 -1
  20. package/dist/highlight.d.ts +10 -2
  21. package/dist/highlight.d.ts.map +1 -1
  22. package/dist/highlight.js +40 -6
  23. package/dist/highlight.js.map +1 -1
  24. package/dist/layout.d.ts +1 -1
  25. package/dist/layout.d.ts.map +1 -1
  26. package/dist/layout.js.map +1 -1
  27. package/dist/measure-cache.d.ts +2 -2
  28. package/dist/measure-cache.d.ts.map +1 -1
  29. package/dist/measure-cache.js +0 -0
  30. package/dist/measure-cache.js.map +1 -1
  31. package/dist/node.d.ts +275 -281
  32. package/dist/node.d.ts.map +1 -1
  33. package/dist/node.js +634 -700
  34. package/dist/node.js.map +1 -1
  35. package/dist/nodes.d.ts +6 -9
  36. package/dist/nodes.d.ts.map +1 -1
  37. package/dist/nodes.js +7 -9
  38. package/dist/nodes.js.map +1 -1
  39. package/dist/render.d.ts +10 -3
  40. package/dist/render.d.ts.map +1 -1
  41. package/dist/render.js +60 -1
  42. package/dist/render.js.map +1 -1
  43. package/dist/style.d.ts +3 -3
  44. package/dist/style.d.ts.map +1 -1
  45. package/dist/style.js +10 -6
  46. package/dist/style.js.map +1 -1
  47. package/dist/tokens.d.ts.map +1 -1
  48. package/dist/tokens.js +5 -1
  49. package/dist/tokens.js.map +1 -1
  50. package/dist/transitions.d.ts +19 -1
  51. package/dist/transitions.d.ts.map +1 -1
  52. package/dist/transitions.js.map +1 -1
  53. package/package.json +7 -4
  54. package/src/code-range.ts +10 -1
  55. package/src/diff.ts +137 -2
  56. package/src/engine.ts +5 -5
  57. package/src/highlight.ts +54 -5
  58. package/src/layout.ts +1 -1
  59. package/src/measure-cache.ts +0 -0
  60. package/src/node.ts +767 -747
  61. package/src/nodes.ts +8 -10
  62. package/src/render.ts +71 -3
  63. package/src/style.ts +11 -7
  64. package/src/tokens.ts +5 -1
  65. package/src/transitions.ts +21 -1
package/dist/node.d.ts CHANGED
@@ -1,37 +1,9 @@
1
- import { RenderContext2D, RenderPass2D, Clip, EasingFunction, NodeConfig, Size2D, SizeConstraints, Node2D, Node2DProps, MeasureContext2D, InsetsResolved, InsetsProps, type AssetScope, type Command, type CommandArgs, type Node, type TweenStepper, type Vector2 } from "@motionscript/core";
2
- import { CodeRange, type CodeDiffStrategy, type CodePhaseStrategy, CodeTheme } from "./engine.js";
1
+ import { type NodeOf, type NormalizedColor, type Color as _Color, type Node2D as _Node2D, type Node2DProps as _Node2DProps } from "@motionscript/sdk";
2
+ import { type CodeDiffStrategy, type CodePhaseStrategy, type CodeRange, type CodeTheme, type DimTransition, type IdLine, type RowBand, type RowsTransition, type StructuralTransition } from "./engine.js";
3
3
  /**
4
- * A listing and nothing else — no paint slots, and no box behind the tokens.
5
- *
6
- * It did carry a `fill`/`overlay`/`stroke`/`shadow` set and the corner radius
7
- * that shaped them, so a block could draw its own panel. That was one node doing
8
- * two jobs, and the second one is a `Rect`'s: a listing set on a card is a `Code`
9
- * inside a hugging `Rect`, which tracks the block's size for the same reason
10
- * every other hugging container tracks its child's. What is left here is the
11
- * listing — its source, how it is coloured, the face it is set in, and the space
12
- * it keeps around itself.
13
- */
14
- export interface CodeProps extends Node2DProps {
15
- code: string;
16
- language: string;
17
- fontSize: number;
18
- fontFamily: string;
19
- /** A built-in/registered theme name (e.g. `'github-dark'`), or a {@link CodeHighlightStyle} object. */
20
- theme: CodeTheme;
21
- lineHeight: number;
22
- letterSpacing: number;
23
- showLineNumbers: boolean;
24
- lineNumberGap: number;
25
- padding: InsetsProps;
26
- }
27
- /**
28
- * Construction-time-only options: pluggable engine behavior, set once when
29
- * the node is created. Deliberately *not* part of {@link CodeProps} — every
30
- * `@property` field accepts either a value or a zero-arg reactive binding
31
- * (`value | (() => value)`, see `PropInputs`), and the node's own reactive
32
- * write path (`_writeProp`) treats any function value as the latter. A
33
- * strategy *is* a function, so it can't be told apart from a binding that
34
- * computes one — it has to stay outside the reactive prop system entirely.
4
+ * Which token became which across an edit, and when each part of it happens.
5
+ * Arguments of {@link defineCode}: a strategy is a function, which a prop would
6
+ * take for a binding, so it is part of the component's definition instead.
35
7
  */
36
8
  export interface CodeStrategies {
37
9
  /** Decides which token became which across an edit. Defaults to `defaultCodeDiff`. */
@@ -39,255 +11,277 @@ export interface CodeStrategies {
39
11
  /** Decides when (in normalized transition time) each part of an edit happens. Defaults to `defaultCodePhases`. */
40
12
  phaseStrategy?: CodePhaseStrategy;
41
13
  }
42
- export declare class Code extends Node2D<CodeProps> {
43
- readonly code: string;
14
+ /** `code` part-way through a `to({ code })`: the source it leaves, the one it lands on, and how far along it is, eased. */
15
+ export interface CodeBlend {
16
+ readonly from: string;
17
+ readonly to: string;
18
+ readonly t: number;
19
+ }
20
+ /** What `code` holds: a source, or a {@link CodeBlend} while a `to({ code })` runs. */
21
+ export type CodeSource = string | CodeBlend;
22
+ /** A range argument: one range, several, or a chain that went through JSON as `{ list }`. */
23
+ export type CodeTarget = CodeRange | Iterable<CodeRange> | {
24
+ readonly list: CodeRange[];
25
+ };
26
+ /** What a structure was tokenized with: the grammar, the theme and whether the grammar had landed. */
27
+ export interface CodeTokenBasis {
44
28
  readonly language: string;
45
- readonly fontFamily: string;
46
29
  readonly theme: CodeTheme;
47
- readonly fontSize: number;
48
- readonly lineHeight: number;
49
- readonly letterSpacing: number;
50
- readonly showLineNumbers: boolean;
51
- readonly lineNumberGap: number;
52
- readonly padding: InsetsResolved;
53
- /** The settled structure. During an edit, the structure the edit lands on. */
54
- private tokenLines;
55
- private tokenized;
56
- private transitions;
57
- private advanceCache;
58
- private structureVersion;
59
- private layoutCacheKey;
60
- private layoutCache;
61
- private highlightDimOpacity;
62
- private highlightedIds;
63
- /**
64
- * Which token became which across an edit, and when each part of that
65
- * edit happens. Construction-time-only (see {@link CodeStrategies}) —
66
- * resolved once here rather than left as `?? defaultX` at every call site.
67
- */
68
- private readonly diffStrategy;
69
- private readonly phaseStrategy;
70
- constructor(props: NodeConfig<Code, CodeProps> & CodeStrategies);
71
- set(props: {
72
- [K in keyof CodeProps]?: CodeProps[K] | (() => CodeProps[K]);
73
- }): void;
74
- private tokenize;
75
- /**
76
- * Swap in a new settled structure, invalidating the layout cache.
77
- *
78
- * The one place `tokenLines` is written, because the cache key is a version
79
- * counter rather than a hash of the content — a write that skipped the bump
80
- * would keep serving the previous frame's geometry for the new listing.
81
- */
82
- private setLines;
83
- /**
84
- * The monospaced face this block measures and draws with, and the syntax
85
- * grammar it tokenizes with.
86
- *
87
- * Both belong to *layout*: token x positions are measured against the face,
88
- * and how many tokens there are depends on the grammar. Declared here, the
89
- * grammar goes on the timeline as an ordinary asset: `AssetManager.loadAt`
90
- * waits for it before the frame is laid out, so the first measurement is the
91
- * right one. Nothing is freed on eviction — parsers are cheap to keep
92
- * resident. The loader touches no node: `renderContent` re-tokenizes once
93
- * the grammar is there.
94
- */
95
- declareAssets(assets: AssetScope): void;
96
- private metrics;
97
- /** The structural edit currently in flight, if any. */
98
- private activeEdit;
99
- private settledLayout;
100
- /**
101
- * The one or two layouts this frame is drawn from.
102
- *
103
- * A settled frame has one. A frame inside an edit has two — where every
104
- * token was, and where it is going — and the frame is a point between them.
105
- * That is the whole reason an insert no longer piles its glyphs at the left
106
- * margin: a token's destination is *computed*, not approximated by collapsing
107
- * the advance of everything around it.
108
- *
109
- * Both endpoints are fixed for the edit's duration, so they are built once
110
- * and cached on the transition rather than rebuilt per frame.
111
- */
112
- private frameLayout;
113
- measure(constraints: SizeConstraints, scope: MeasureContext2D): Partial<Size2D>;
114
- protected renderContent(ctx: RenderPass2D): void;
115
- protected renderSelf(ctx: RenderContext2D): void;
116
- /** A listing holds a listing — `append`/`insert`/`erase` are how it grows. */
117
- protected acceptsChild(_child: Node): boolean;
118
- /**
119
- * The node's laid-out rect as a clip outline, so `clip` and any backdrop
120
- * effect are confined to the block rather than to nothing — a listing set on
121
- * a card is exactly where a backdrop blur is asked for.
122
- */
123
- protected clipSelf(): Clip;
124
- /**
125
- * A listing is grabbed by its **text**, line by ragged line, rather than by
126
- * the rectangle the lines were laid out in.
127
- *
128
- * The default narrows a node's grab region to the outline it declares, and
129
- * this node's outline is a box it no longer paints anything into. Code is
130
- * mostly whitespace: a ten-line snippet with one long line is a rectangle
131
- * that is largely empty, and in an editor every one of those empty pixels
132
- * swallows a click meant for whatever sits behind or beneath it. Short of the
133
- * text itself there is nothing there to have clicked.
134
- *
135
- * So the region is the union of the lines' own extents — each a line-height
136
- * slot as wide as that line's ink — plus the gutter where line numbers are
137
- * showing, since those are drawn glyphs too.
138
- *
139
- * Answered from the **cached** layout, which is what the last frame drew
140
- * from, because a hit test arrives with no measurement scope and text cannot
141
- * be measured without one. Where there is no usable cache — before the first
142
- * frame, or mid-edit, when the geometry is an interpolation of two structures
143
- * held on the transition — the box is the honest answer rather than a
144
- * silhouette measured against stale metrics.
145
- */
146
- protected hitTestSelf(local: Vector2, tolerance: number): boolean;
147
- /**
148
- * The layout a hit test may be answered from: the settled cache, and only
149
- * while it still matches the node's current metrics.
150
- *
151
- * The key is the one {@link settledLayout} writes minus its scope-dependent
152
- * half — every input to it (`metricsSignature`, the advance cache's own
153
- * signature) is readable without a measurer, which is precisely what makes
154
- * the check possible here.
155
- */
156
- private hitLayout;
157
- /**
158
- * Append `code` to the end of the listing.
159
- *
160
- * Stated as *what the source becomes*; {@link editTo} works out the rest —
161
- * which is why appending a line that closes a block re-highlights the lines
162
- * above it, instead of colouring the new text as its own program.
163
- */
164
- append(args: CommandArgs<{
165
- code: string;
166
- }> & {
167
- duration: number;
168
- }): Command<Record<string, never>>;
169
- /** Insert `code` above the listing. */
170
- prepend(args: CommandArgs<{
171
- code: string;
172
- }> & {
173
- duration: number;
174
- }): Command<Record<string, never>>;
175
- /**
176
- * Insert `code` at the given (line, col). Both are 1-indexed; col is the
177
- * column BEFORE which the new content is inserted (col=1 means start of
178
- * line). If `code` contains newlines, new lines are created in the middle
179
- * of the existing line.
180
- */
181
- insert(args: CommandArgs<{
182
- position: [number, number];
183
- code: string;
184
- }> & {
185
- duration: number;
186
- }): Command<Record<string, never>>;
187
- /**
188
- * Erase the code in `codeRange`.
189
- *
190
- * Named `erase` rather than `remove` because a `Code` is also a node, and
191
- * `Node.remove(child)` takes a child out of the tree. Two methods spelled
192
- * the same on one object, doing entirely different things, is worse than one
193
- * of them having a slightly less obvious name.
194
- *
195
- * A range that covers whole lines takes their line breaks with it, so the
196
- * rows below close up; a range inside a line takes only the characters, and
197
- * the rest of the line reflows around the hole.
198
- */
199
- erase(args: CommandArgs<{
200
- target: CodeRange;
201
- }> & {
202
- duration: number;
203
- }): Command<Record<string, never>>;
204
- /** Replace the code in `codeRange` with `replacement`. */
205
- replace(args: CommandArgs<{
206
- target: CodeRange;
207
- replacement: string;
208
- }> & {
209
- duration: number;
210
- }): Command<Record<string, never>>;
211
- /**
212
- * Highlight a range of code — or several at once (e.g.
213
- * `CodeRanges.lines(2).word(5, 1, 3)`) — highlighted as one set: tokens
214
- * within any of the ranges stay at opacity 1, tokens outside dim to
215
- * `dim`. Persistent — call resetHighlight() to undo, or call highlight()
216
- * again with a different range to cross-fade.
217
- */
218
- highlight(args: CommandArgs<{
219
- target: CodeRange | Iterable<CodeRange>;
220
- dim?: number;
221
- }> & {
222
- duration: number;
223
- }): Command<Record<string, never>>;
224
- /**
225
- * Fade all dimmed tokens back to opacity 1 and clear the persistent
226
- * highlight state.
227
- */
228
- resetHighlight(args: CommandArgs<Record<string, never>> & {
229
- duration: number;
230
- }): Command<Record<string, never>>;
231
- /**
232
- * Animate the listing to a new source.
233
- *
234
- * The engine behind every editing command, and behind `to({ code })`. Every
235
- * edit is expressed as the source it produces, tokenized, and then *diffed*
236
- * against what is on screen — so a token that survived the edit keeps its
237
- * identity and simply travels to its new column, and only what genuinely
238
- * changed is faded.
239
- *
240
- * The result runs in three phases (see `phaseStrategy`): what is leaving
241
- * fades out, what stays reflows, and only then does what is new arrive.
242
- * Playing them together is what made a replacement read as a cross-dissolve
243
- * of two unrelated listings rather than as an edit being made.
244
- */
245
- private editTo;
246
- /**
247
- * Put a dim transition on the stack, drive its progress, take it off and
248
- * commit at the end.
249
- *
250
- * A {@link Command} rather than a generator, which is what makes a listing
251
- * scrubbable: membership is a function of `t` (on the stack for `0 < t < 1`,
252
- * off it outside), `settle(done)` replaces the `finally` and takes *which
253
- * way*, and `progress` is assigned from `t` rather than accumulated.
254
- */
255
- private runDim;
256
- /**
257
- * Route a tweened `code` through the diff engine.
258
- *
259
- * `to({ code })` is the form an author reaches for first — it is how every
260
- * other prop is animated — and a bare string prop would otherwise land in the
261
- * generic tween's discrete-snap bucket and simply cut at the end. Intercepted
262
- * here it becomes the same three-phase edit the named commands produce, while
263
- * the rest of the step's props tween alongside it untouched.
264
- */
265
- _prepareStep(to: Partial<CodeProps>, duration: number, easing?: EasingFunction): TweenStepper;
266
- /**
267
- * Find every range matching the literal string `text` in the current
268
- * source. Multi-line matches are supported.
269
- */
270
- findAllRanges(text: string): CodeRange[];
271
- /** Find the `index`th range matching `text`. Returns null if not found. */
272
- findRangeAt(text: string, index: number): CodeRange | null;
273
- /** Find the first range matching `text`. Returns null if not found. */
274
- findFirstRange(text: string): CodeRange | null;
275
- private joinedSource;
276
- private lineLengths;
277
- /** Character offset of a 1-indexed (line, col), clamped into the document. */
278
- private offsetAt;
279
- /**
280
- * Resolve one or more CodeRanges to the set of token ids whose content
281
- * overlaps any of them. Tokens that partially overlap are included.
282
- */
283
- private tokenIdsInRanges;
284
- /**
285
- * Thin delegator: everything about *how* a frame is painted (settled or
286
- * mid structural-edit, entry/exit motion, colour cross-fade) lives in
287
- * `drawCode` (the engine's `render.ts`) as a pure function over plain
288
- * state — this just gathers that state from the node's own instance
289
- * fields and caches.
290
- */
291
- protected drawSelf(draw: RenderContext2D): void;
30
+ readonly highlighted: boolean;
31
+ }
32
+ /** A listing a command left behind: its source, its tokens, and the basis they were made on. */
33
+ export interface CodeListing {
34
+ readonly source: string;
35
+ readonly lines: IdLine[];
36
+ readonly basis: CodeTokenBasis;
37
+ }
38
+ export interface CodeEditFrame {
39
+ readonly transition: StructuralTransition;
40
+ readonly progress: number;
292
41
  }
42
+ /** The dim `highlight` leaves: what stays bright, what the rest dims to, and the cross-fade in flight. */
43
+ export interface CodeFocus {
44
+ readonly dim: number | null;
45
+ readonly ids: Set<number>;
46
+ readonly fade: DimTransition | null;
47
+ }
48
+ export interface CodeBanding {
49
+ readonly bands: RowBand[];
50
+ readonly fade: RowsTransition | null;
51
+ }
52
+ /**
53
+ * A `Code` whose edits are paired and timed by `strategies`. {@link Code} is
54
+ * the one with the defaults; a project wanting another hands its own to the
55
+ * engine in its place (the key is the same).
56
+ *
57
+ * A listing and nothing else: no paint slots, and no box behind the tokens. A
58
+ * listing set on a card is a `Code` inside a hugging `Rect`.
59
+ */
60
+ export declare function defineCode(strategies?: CodeStrategies): import("@motionscript/sdk").Component<"code", import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
61
+ readonly code: import("@motionscript/sdk").Type<string, CodeSource, false>;
62
+ readonly language: "typescript";
63
+ readonly fontFamily: "Fira Mono";
64
+ /** A built-in or registered theme name (e.g. `'github-dark'`), or a `CodeHighlightStyle` object. */
65
+ readonly theme: import("@motionscript/sdk").Type<CodeTheme, CodeTheme, false>;
66
+ readonly fontSize: 16;
67
+ readonly lineHeight: 1.6;
68
+ readonly letterSpacing: 1.1;
69
+ readonly showLineNumbers: false;
70
+ readonly lineNumberGap: 2;
71
+ readonly listing: import("@motionscript/sdk").Type<CodeListing | null, CodeListing | null, true>;
72
+ readonly edit: import("@motionscript/sdk").Type<CodeEditFrame | null, CodeEditFrame | null, true>;
73
+ readonly focus: import("@motionscript/sdk").Type<CodeFocus, CodeFocus, true>;
74
+ readonly banding: import("@motionscript/sdk").Type<CodeBanding, CodeBanding, true>;
75
+ }>, {
76
+ readonly append: {
77
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
78
+ };
79
+ readonly prepend: {
80
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
81
+ };
82
+ readonly insert: {
83
+ readonly position: import("@motionscript/sdk").Type<[number, number] | undefined, [number, number] | undefined, false>;
84
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
85
+ };
86
+ readonly remove: {
87
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
88
+ };
89
+ readonly replace: {
90
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
91
+ readonly replacement: import("@motionscript/sdk").Type<string, string, false>;
92
+ };
93
+ readonly highlight: {
94
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
95
+ readonly dim: import("@motionscript/sdk").Type<number, number, false>;
96
+ };
97
+ readonly resetHighlight: unknown;
98
+ readonly highlightRows: {
99
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
100
+ readonly color: import("@motionscript/sdk").Type<_Color, NormalizedColor, false>;
101
+ readonly radius: import("@motionscript/sdk").Type<number, number, false>;
102
+ };
103
+ readonly resetRowHighlight: unknown;
104
+ }, readonly [], _Node2D<_Node2DProps>, import("@motionscript/sdk").CallProps<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
105
+ readonly code: import("@motionscript/sdk").Type<string, CodeSource, false>;
106
+ readonly language: "typescript";
107
+ readonly fontFamily: "Fira Mono";
108
+ /** A built-in or registered theme name (e.g. `'github-dark'`), or a `CodeHighlightStyle` object. */
109
+ readonly theme: import("@motionscript/sdk").Type<CodeTheme, CodeTheme, false>;
110
+ readonly fontSize: 16;
111
+ readonly lineHeight: 1.6;
112
+ readonly letterSpacing: 1.1;
113
+ readonly showLineNumbers: false;
114
+ readonly lineNumberGap: 2;
115
+ readonly listing: import("@motionscript/sdk").Type<CodeListing | null, CodeListing | null, true>;
116
+ readonly edit: import("@motionscript/sdk").Type<CodeEditFrame | null, CodeEditFrame | null, true>;
117
+ readonly focus: import("@motionscript/sdk").Type<CodeFocus, CodeFocus, true>;
118
+ readonly banding: import("@motionscript/sdk").Type<CodeBanding, CodeBanding, true>;
119
+ }>, readonly [], import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
120
+ readonly code: import("@motionscript/sdk").Type<string, CodeSource, false>;
121
+ readonly language: "typescript";
122
+ readonly fontFamily: "Fira Mono";
123
+ /** A built-in or registered theme name (e.g. `'github-dark'`), or a `CodeHighlightStyle` object. */
124
+ readonly theme: import("@motionscript/sdk").Type<CodeTheme, CodeTheme, false>;
125
+ readonly fontSize: 16;
126
+ readonly lineHeight: 1.6;
127
+ readonly letterSpacing: 1.1;
128
+ readonly showLineNumbers: false;
129
+ readonly lineNumberGap: 2;
130
+ readonly listing: import("@motionscript/sdk").Type<CodeListing | null, CodeListing | null, true>;
131
+ readonly edit: import("@motionscript/sdk").Type<CodeEditFrame | null, CodeEditFrame | null, true>;
132
+ readonly focus: import("@motionscript/sdk").Type<CodeFocus, CodeFocus, true>;
133
+ readonly banding: import("@motionscript/sdk").Type<CodeBanding, CodeBanding, true>;
134
+ }>, {
135
+ readonly append: {
136
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
137
+ };
138
+ readonly prepend: {
139
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
140
+ };
141
+ readonly insert: {
142
+ readonly position: import("@motionscript/sdk").Type<[number, number] | undefined, [number, number] | undefined, false>;
143
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
144
+ };
145
+ readonly remove: {
146
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
147
+ };
148
+ readonly replace: {
149
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
150
+ readonly replacement: import("@motionscript/sdk").Type<string, string, false>;
151
+ };
152
+ readonly highlight: {
153
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
154
+ readonly dim: import("@motionscript/sdk").Type<number, number, false>;
155
+ };
156
+ readonly resetHighlight: unknown;
157
+ readonly highlightRows: {
158
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
159
+ readonly color: import("@motionscript/sdk").Type<_Color, NormalizedColor, false>;
160
+ readonly radius: import("@motionscript/sdk").Type<number, number, false>;
161
+ };
162
+ readonly resetRowHighlight: unknown;
163
+ }, _Node2D<_Node2DProps>>>>;
164
+ /**
165
+ * A syntax-highlighted listing whose edits animate token by token: each edit
166
+ * is diffed against what is on screen, so a token that survives travels to
167
+ * its new column and only what changed fades.
168
+ */
169
+ export declare const Code: import("@motionscript/sdk").Component<"code", import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
170
+ readonly code: import("@motionscript/sdk").Type<string, CodeSource, false>;
171
+ readonly language: "typescript";
172
+ readonly fontFamily: "Fira Mono";
173
+ /** A built-in or registered theme name (e.g. `'github-dark'`), or a `CodeHighlightStyle` object. */
174
+ readonly theme: import("@motionscript/sdk").Type<CodeTheme, CodeTheme, false>;
175
+ readonly fontSize: 16;
176
+ readonly lineHeight: 1.6;
177
+ readonly letterSpacing: 1.1;
178
+ readonly showLineNumbers: false;
179
+ readonly lineNumberGap: 2;
180
+ readonly listing: import("@motionscript/sdk").Type<CodeListing | null, CodeListing | null, true>;
181
+ readonly edit: import("@motionscript/sdk").Type<CodeEditFrame | null, CodeEditFrame | null, true>;
182
+ readonly focus: import("@motionscript/sdk").Type<CodeFocus, CodeFocus, true>;
183
+ readonly banding: import("@motionscript/sdk").Type<CodeBanding, CodeBanding, true>;
184
+ }>, {
185
+ readonly append: {
186
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
187
+ };
188
+ readonly prepend: {
189
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
190
+ };
191
+ readonly insert: {
192
+ readonly position: import("@motionscript/sdk").Type<[number, number] | undefined, [number, number] | undefined, false>;
193
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
194
+ };
195
+ readonly remove: {
196
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
197
+ };
198
+ readonly replace: {
199
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
200
+ readonly replacement: import("@motionscript/sdk").Type<string, string, false>;
201
+ };
202
+ readonly highlight: {
203
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
204
+ readonly dim: import("@motionscript/sdk").Type<number, number, false>;
205
+ };
206
+ readonly resetHighlight: unknown;
207
+ readonly highlightRows: {
208
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
209
+ readonly color: import("@motionscript/sdk").Type<_Color, NormalizedColor, false>;
210
+ readonly radius: import("@motionscript/sdk").Type<number, number, false>;
211
+ };
212
+ readonly resetRowHighlight: unknown;
213
+ }, readonly [], _Node2D<_Node2DProps>, import("@motionscript/sdk").CallProps<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
214
+ readonly code: import("@motionscript/sdk").Type<string, CodeSource, false>;
215
+ readonly language: "typescript";
216
+ readonly fontFamily: "Fira Mono";
217
+ /** A built-in or registered theme name (e.g. `'github-dark'`), or a `CodeHighlightStyle` object. */
218
+ readonly theme: import("@motionscript/sdk").Type<CodeTheme, CodeTheme, false>;
219
+ readonly fontSize: 16;
220
+ readonly lineHeight: 1.6;
221
+ readonly letterSpacing: 1.1;
222
+ readonly showLineNumbers: false;
223
+ readonly lineNumberGap: 2;
224
+ readonly listing: import("@motionscript/sdk").Type<CodeListing | null, CodeListing | null, true>;
225
+ readonly edit: import("@motionscript/sdk").Type<CodeEditFrame | null, CodeEditFrame | null, true>;
226
+ readonly focus: import("@motionscript/sdk").Type<CodeFocus, CodeFocus, true>;
227
+ readonly banding: import("@motionscript/sdk").Type<CodeBanding, CodeBanding, true>;
228
+ }>, readonly [], import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
229
+ readonly code: import("@motionscript/sdk").Type<string, CodeSource, false>;
230
+ readonly language: "typescript";
231
+ readonly fontFamily: "Fira Mono";
232
+ /** A built-in or registered theme name (e.g. `'github-dark'`), or a `CodeHighlightStyle` object. */
233
+ readonly theme: import("@motionscript/sdk").Type<CodeTheme, CodeTheme, false>;
234
+ readonly fontSize: 16;
235
+ readonly lineHeight: 1.6;
236
+ readonly letterSpacing: 1.1;
237
+ readonly showLineNumbers: false;
238
+ readonly lineNumberGap: 2;
239
+ readonly listing: import("@motionscript/sdk").Type<CodeListing | null, CodeListing | null, true>;
240
+ readonly edit: import("@motionscript/sdk").Type<CodeEditFrame | null, CodeEditFrame | null, true>;
241
+ readonly focus: import("@motionscript/sdk").Type<CodeFocus, CodeFocus, true>;
242
+ readonly banding: import("@motionscript/sdk").Type<CodeBanding, CodeBanding, true>;
243
+ }>, {
244
+ readonly append: {
245
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
246
+ };
247
+ readonly prepend: {
248
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
249
+ };
250
+ readonly insert: {
251
+ readonly position: import("@motionscript/sdk").Type<[number, number] | undefined, [number, number] | undefined, false>;
252
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
253
+ };
254
+ readonly remove: {
255
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
256
+ };
257
+ readonly replace: {
258
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
259
+ readonly replacement: import("@motionscript/sdk").Type<string, string, false>;
260
+ };
261
+ readonly highlight: {
262
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
263
+ readonly dim: import("@motionscript/sdk").Type<number, number, false>;
264
+ };
265
+ readonly resetHighlight: unknown;
266
+ readonly highlightRows: {
267
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
268
+ readonly color: import("@motionscript/sdk").Type<_Color, NormalizedColor, false>;
269
+ readonly radius: import("@motionscript/sdk").Type<number, number, false>;
270
+ };
271
+ readonly resetRowHighlight: unknown;
272
+ }, _Node2D<_Node2DProps>>>>;
273
+ export type Code = NodeOf<typeof Code>;
274
+ export type CodeProps = NonNullable<Parameters<typeof Code>[0]>;
275
+ /** What a listing shows now: its source, its token rows, and the edit in flight, if any. */
276
+ export declare function listingOf(code: Code): {
277
+ readonly source: string;
278
+ readonly lines: readonly IdLine[];
279
+ readonly edit: StructuralTransition | null;
280
+ };
281
+ /** Every range matching the literal `text` in `source`, in order and not overlapping. Multi-line matches are found too. */
282
+ export declare function findAllRanges(source: CodeSource, text: string): CodeRange[];
283
+ /** The `index`th range matching `text`, or `null`. */
284
+ export declare function findRangeAt(source: CodeSource, text: string, index: number): CodeRange | null;
285
+ /** The first range matching `text`, or `null`. */
286
+ export declare function findFirstRange(source: CodeSource, text: string): CodeRange | null;
293
287
  //# sourceMappingURL=node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,eAAe,EAAE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