@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/CHANGELOG.md +6 -0
- package/LICENSE +201 -201
- package/NOTICE +49 -49
- package/README.md +175 -176
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/manifest.json +1 -1
- package/dist/code-range.js.map +1 -1
- package/dist/diff.js.map +1 -1
- package/dist/engine.js +3 -3
- package/dist/engine.js.map +1 -1
- package/dist/highlight.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/layout.js.map +1 -1
- package/dist/node.js.map +1 -1
- package/dist/nodes.js.map +1 -1
- package/dist/render.js.map +1 -1
- package/dist/style.js.map +1 -1
- package/dist/tokens.js.map +1 -1
- package/dist/transitions.js.map +1 -1
- package/package.json +4 -4
- package/registry.json +6 -6
- package/src/code-range.ts +165 -165
- package/src/diff.ts +351 -351
- package/src/engine.ts +21 -21
- package/src/highlight.ts +340 -340
- package/src/index.ts +3 -3
- package/src/layout.ts +157 -157
- package/src/node.ts +854 -854
- package/src/nodes.ts +16 -16
- package/src/render.ts +315 -315
- package/src/style.ts +255 -255
- package/src/tokens.ts +79 -79
- package/src/transitions.ts +204 -204
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
|
|
3
|
-
// can
|
|
4
|
-
// `@motionscript/code` instead. What gets copied is whatever this
|
|
5
|
-
// package's registry.json declares, which for this component is node.ts;
|
|
6
|
-
//
|
|
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';
|