foldkit-richtext-code-shiki 0.2.3 → 0.2.4

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/index.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { CodeTokenizer } from "foldkit-richtext";
2
2
  import { HighlighterCore } from "shiki/core";
3
- //#region src/shiki.d.ts
4
3
  /**
5
4
  * The tokenizer for one language the highlighter has loaded. It throws here, when it is made,
6
5
  * if the language or any theme is missing, rather than on the first render. Adjacent pieces of
@@ -10,5 +9,4 @@ import { HighlighterCore } from "shiki/core";
10
9
  export declare const shikiTokenizer: (highlighter: HighlighterCore, language: string) => CodeTokenizer;
11
10
  /** A tokenizer for every language the highlighter has loaded, under each of its names. */
12
11
  export declare const shikiTokenizers: (highlighter: HighlighterCore) => ReadonlyMap<string, CodeTokenizer>;
13
- //#endregion
14
12
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/shiki.ts"],"mappings":";;;;;;;;;qBAyDa,iBAAc,aAAiB,iBAAe,qBAAqB;;qBAiDnE,kBAAe,aAAiB,oBAAkB,oBAAoB"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/shiki.ts"],"mappings":";;;;;;;;qBAyDa,iBAAc,aAAiB,iBAAe,qBAAqB;;qBAiDnE,kBAAe,aAAiB,oBAAkB,oBAAoB"}
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/shiki.ts
1
+ // src/shiki.ts
2
2
  /**
3
3
  * Which kind a scope stack reads as, first match wins. The order is the point: a JSON key sits
4
4
  * inside `string` and carries `support.type.property-name`, so property must be tried before
@@ -88,7 +88,6 @@ const shikiTokenizer = (highlighter, language) => {
88
88
  };
89
89
  /** A tokenizer for every language the highlighter has loaded, under each of its names. */
90
90
  const shikiTokenizers = (highlighter) => new Map(highlighter.getLoadedLanguages().map((language) => [language, shikiTokenizer(highlighter, language)]));
91
- //#endregion
92
91
  export { shikiTokenizer, shikiTokenizers };
93
92
 
94
93
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foldkit-richtext-code-shiki",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Shiki grammars as foldkit-richtext code tokenizers, producing syntax decorations.",
5
5
  "keywords": [
6
6
  "foldkit",
@@ -39,14 +39,14 @@
39
39
  "LICENSE"
40
40
  ],
41
41
  "dependencies": {
42
- "foldkit-richtext": "0.5.1"
42
+ "foldkit-richtext": "0.5.2"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "effect": "^4.0.0",
46
46
  "shiki": "^4.4.3"
47
47
  },
48
48
  "devDependencies": {
49
- "effect": "^4.0.4",
49
+ "effect": "^4.0.5",
50
50
  "shiki": "4.5.0",
51
51
  "tsdown": "^0.23.1",
52
52
  "typescript": "7.0.2"