shiki 3.0.0 → 3.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/dist/core-unwasm.d.mts +1 -492
- package/dist/core.d.mts +1 -1
- package/dist/engine-oniguruma.d.mts +1 -83
- package/dist/index.d.mts +74 -1
- package/dist/textmate.d.mts +711 -1
- package/dist/themes.d.mts +1 -1
- package/dist/types/index.d.d.mts +1 -10
- package/dist/types.d.mts +0 -1
- package/package.json +9 -9
package/dist/themes.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BundledThemeInfo, DynamicImportThemeRegistration } from '@shikijs/
|
|
1
|
+
import { BundledThemeInfo, DynamicImportThemeRegistration } from '@shikijs/types';
|
|
2
2
|
|
|
3
3
|
declare const bundledThemesInfo: BundledThemeInfo[];
|
|
4
4
|
type BundledTheme = 'andromeeda' | 'aurora-x' | 'ayu-dark' | 'catppuccin-frappe' | 'catppuccin-latte' | 'catppuccin-macchiato' | 'catppuccin-mocha' | 'dark-plus' | 'dracula' | 'dracula-soft' | 'everforest-dark' | 'everforest-light' | 'github-dark' | 'github-dark-default' | 'github-dark-dimmed' | 'github-dark-high-contrast' | 'github-light' | 'github-light-default' | 'github-light-high-contrast' | 'houston' | 'kanagawa-dragon' | 'kanagawa-lotus' | 'kanagawa-wave' | 'laserwave' | 'light-plus' | 'material-theme' | 'material-theme-darker' | 'material-theme-lighter' | 'material-theme-ocean' | 'material-theme-palenight' | 'min-dark' | 'min-light' | 'monokai' | 'night-owl' | 'nord' | 'one-dark-pro' | 'one-light' | 'plastic' | 'poimandres' | 'red' | 'rose-pine' | 'rose-pine-dawn' | 'rose-pine-moon' | 'slack-dark' | 'slack-ochin' | 'snazzy-light' | 'solarized-dark' | 'solarized-light' | 'synthwave-84' | 'tokyo-night' | 'vesper' | 'vitesse-black' | 'vitesse-dark' | 'vitesse-light';
|
package/dist/types/index.d.d.mts
CHANGED
|
@@ -160,15 +160,6 @@ interface RootContentMap {
|
|
|
160
160
|
text: Text;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
/**
|
|
164
|
-
* Union of registered hast nodes.
|
|
165
|
-
*
|
|
166
|
-
* To register custom hast nodes, add them to {@link RootContentMap} and other
|
|
167
|
-
* places where relevant.
|
|
168
|
-
* They will be automatically added here.
|
|
169
|
-
*/
|
|
170
|
-
type Nodes = Root | RootContent;
|
|
171
|
-
|
|
172
163
|
// ## Abstract nodes
|
|
173
164
|
|
|
174
165
|
/**
|
|
@@ -341,4 +332,4 @@ interface Text extends Literal {
|
|
|
341
332
|
*/
|
|
342
333
|
interface TextData extends Data {}
|
|
343
334
|
|
|
344
|
-
export type {
|
|
335
|
+
export type { Root as R };
|
package/dist/types.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shiki",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"description": "A beautiful Syntax Highlighter.",
|
|
6
6
|
"author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@shikijs/vscode-textmate": "^10.0.2",
|
|
50
50
|
"@types/hast": "^3.0.4",
|
|
51
|
-
"@shikijs/
|
|
52
|
-
"@shikijs/
|
|
53
|
-
"@shikijs/
|
|
54
|
-
"@shikijs/
|
|
55
|
-
"@shikijs/
|
|
56
|
-
"@shikijs/types": "3.
|
|
51
|
+
"@shikijs/engine-javascript": "3.1.0",
|
|
52
|
+
"@shikijs/core": "3.1.0",
|
|
53
|
+
"@shikijs/langs": "3.1.0",
|
|
54
|
+
"@shikijs/engine-oniguruma": "3.1.0",
|
|
55
|
+
"@shikijs/themes": "3.1.0",
|
|
56
|
+
"@shikijs/types": "3.1.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"rollup-plugin-copy": "^3.5.0",
|
|
60
|
-
"tm-grammars": "^1.22.
|
|
61
|
-
"tm-themes": "^1.9.
|
|
60
|
+
"tm-grammars": "^1.22.18",
|
|
61
|
+
"tm-themes": "^1.9.13",
|
|
62
62
|
"vscode-oniguruma": "1.7.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|