shiki 3.2.1 → 3.2.2

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/themes.d.mts CHANGED
@@ -1,7 +1,8 @@
1
- import { BundledThemeInfo, DynamicImportThemeRegistration } from '@shikijs/types';
1
+ import { BundledThemeInfo, DynamicImportThemeRegistration } from '@shikijs/core';
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' | 'gruvbox-dark-hard' | 'gruvbox-dark-medium' | 'gruvbox-dark-soft' | 'gruvbox-light-hard' | 'gruvbox-light-medium' | 'gruvbox-light-soft' | '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';
5
5
  declare const bundledThemes: Record<BundledTheme, DynamicImportThemeRegistration>;
6
6
 
7
- export { type BundledTheme, bundledThemes, bundledThemesInfo };
7
+ export { bundledThemes, bundledThemesInfo };
8
+ export type { BundledTheme };
@@ -160,6 +160,15 @@ 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
+
163
172
  // ## Abstract nodes
164
173
 
165
174
  /**
@@ -332,4 +341,4 @@ interface Text extends Literal {
332
341
  */
333
342
  interface TextData extends Data {}
334
343
 
335
- export type { Root as R };
344
+ export type { Element as E, Nodes as N, Root as R, RootContent as a };
package/dist/types.d.mts CHANGED
@@ -2,8 +2,10 @@ import { BundledLanguage } from './langs.mjs';
2
2
  import { BundledTheme } from './themes.mjs';
3
3
  export * from '@shikijs/core/types';
4
4
  import '@shikijs/types';
5
+ import '@shikijs/core';
5
6
 
6
7
  type BuiltinLanguage = BundledLanguage;
7
8
  type BuiltinTheme = BundledTheme;
8
9
 
9
- export { type BuiltinLanguage, type BuiltinTheme, BundledLanguage, BundledTheme };
10
+ export { BundledLanguage, BundledTheme };
11
+ export type { BuiltinLanguage, BuiltinTheme };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shiki",
3
3
  "type": "module",
4
- "version": "3.2.1",
4
+ "version": "3.2.2",
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/core": "3.2.1",
52
- "@shikijs/engine-javascript": "3.2.1",
53
- "@shikijs/engine-oniguruma": "3.2.1",
54
- "@shikijs/themes": "3.2.1",
55
- "@shikijs/langs": "3.2.1",
56
- "@shikijs/types": "3.2.1"
51
+ "@shikijs/core": "3.2.2",
52
+ "@shikijs/engine-javascript": "3.2.2",
53
+ "@shikijs/themes": "3.2.2",
54
+ "@shikijs/engine-oniguruma": "3.2.2",
55
+ "@shikijs/types": "3.2.2",
56
+ "@shikijs/langs": "3.2.2"
57
57
  },
58
58
  "devDependencies": {
59
59
  "rollup-plugin-copy": "^3.5.0",
60
- "tm-grammars": "^1.23.2",
61
- "tm-themes": "^1.10.1",
60
+ "tm-grammars": "^1.23.10",
61
+ "tm-themes": "^1.10.3",
62
62
  "vscode-oniguruma": "1.7.0"
63
63
  },
64
64
  "scripts": {