@motionscript/code 0.1.0-alpha.8 → 0.1.0

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/src/engine.ts CHANGED
@@ -1,21 +1,21 @@
1
- // The Code "engine": syntax highlighting, tokenizing, layout, diffing, and
2
- // transition/phase scheduling — kept separate from node.ts so `ms add code`
3
- // can copy just the node declaration and import this behind
4
- // `@motionscript/code` instead. What gets copied is whatever this
5
- // package's registry.json declares, which for this component is node.ts;
6
- // the docs site's registry builder enforces that anything it
7
- // reaches for is either copied alongside it or re-exported from here.
8
- export * from './transitions';
9
- export * from './layout';
10
- export { drawCode } from './render';
11
- export type { CodeCanvas, DrawCodeState } from './render';
12
- export { diffCode as defaultCodeDiff } from './diff';
13
- export type { CodeDiffStrategy, CodeEdit } from './diff';
14
- export { loadCodeLanguage, initSyntaxHighlighter, ensureHighlighter, registerCodeTheme, resolveTheme, canHighlight, normalizeSource } from './highlight';
15
- export { tokenizeCodeToIdLines } from './tokens';
16
- export type { IdLine, IdToken } from './tokens';
17
- export { DefaultHighlightStyle, GithubDarkStyle, GithubLightStyle, VscodeDarkStyle, VscodeLightStyle, BUILTIN_THEMES, compileStyle } from './style';
18
- export type { CodeHighlightStyle, CodeStyleRule, CodeTheme, CodeThemeName } from './style';
19
- export { TokenAdvanceCache } from './measure-cache';
20
- export { word, lines, rangeToCharOffsets, charOffsetsToRange, CodeRanges, CodeRangeChain } from './code-range';
21
- export type { CodeRange } from './code-range';
1
+ // The Code "engine": syntax highlighting, tokenizing, layout, diffing, and
2
+ // transition/phase scheduling — kept separate from node.ts so a copy of the node
3
+ // can take just its declaration and import this behind
4
+ // `@motionscript/code` instead. What gets copied is whatever this
5
+ // package's registry.json declares, which for this component is node.ts;
6
+ // src/tests/registry.test.ts checks that anything it
7
+ // reaches for is either copied alongside it or re-exported from here.
8
+ export * from './transitions';
9
+ export * from './layout';
10
+ export { drawCode } from './render';
11
+ export type { CodeCanvas, DrawCodeState } from './render';
12
+ export { diffCode as defaultCodeDiff } from './diff';
13
+ export type { CodeDiffStrategy, CodeEdit } from './diff';
14
+ export { loadCodeLanguage, initSyntaxHighlighter, ensureHighlighter, registerCodeTheme, resolveTheme, canHighlight, normalizeSource } from './highlight';
15
+ export { tokenizeCodeToIdLines } from './tokens';
16
+ export type { IdLine, IdToken } from './tokens';
17
+ export { DefaultHighlightStyle, GithubDarkStyle, GithubLightStyle, VscodeDarkStyle, VscodeLightStyle, BUILTIN_THEMES, compileStyle } from './style';
18
+ export type { CodeHighlightStyle, CodeStyleRule, CodeTheme, CodeThemeName } from './style';
19
+ export { TokenAdvanceCache } from './measure-cache';
20
+ export { word, lines, rangeToCharOffsets, charOffsetsToRange, CodeRanges, CodeRangeChain } from './code-range';
21
+ export type { CodeRange } from './code-range';