prosemirror-highlight 0.11.0 → 0.11.1

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/README.md CHANGED
@@ -103,7 +103,7 @@ export const lowlightPlugin = createHighlightPlugin({ parser })
103
103
  <summary>Static loading of all languages</summary>
104
104
 
105
105
  ```ts
106
- import { refractor } from 'refractor'
106
+ import { refractor } from 'refractor/lib/all'
107
107
 
108
108
  import { createHighlightPlugin } from 'prosemirror-highlight'
109
109
  import { createParser } from 'prosemirror-highlight/refractor'
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Node } from 'prosemirror-model';
2
2
  import { Transaction, Plugin } from 'prosemirror-state';
3
3
  import { Decoration, DecorationSet } from 'prosemirror-view';
4
- import { P as Parser, L as LanguageExtractor } from './types-D9kxOI8-.js';
4
+ import { P as Parser, L as LanguageExtractor } from './types-CwiCqY6X.js';
5
5
 
6
6
  /**
7
7
  * Represents a cache of doc positions to the node and decorations at that position
@@ -1,5 +1,5 @@
1
1
  import { Root } from 'hast';
2
- import { P as Parser } from './types-D9kxOI8-.js';
2
+ import { P as Parser } from './types-CwiCqY6X.js';
3
3
  import 'prosemirror-model';
4
4
  import 'prosemirror-view';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { Refractor } from 'refractor/lib/core';
2
- import { P as Parser } from './types-D9kxOI8-.js';
2
+ import { P as Parser } from './types-CwiCqY6X.js';
3
3
  import 'prosemirror-model';
4
4
  import 'prosemirror-view';
5
5
 
package/dist/shiki.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Highlighter, CodeToTokensOptions, BundledLanguage, BundledTheme } from 'shiki';
2
- import { P as Parser } from './types-D9kxOI8-.js';
2
+ import { P as Parser } from './types-CwiCqY6X.js';
3
3
  import 'prosemirror-model';
4
4
  import 'prosemirror-view';
5
5
 
@@ -1,4 +1,4 @@
1
- import { P as Parser } from './types-D9kxOI8-.js';
1
+ import { P as Parser } from './types-CwiCqY6X.js';
2
2
  import 'prosemirror-model';
3
3
  import 'prosemirror-view';
4
4
 
@@ -3,8 +3,9 @@ import { Decoration } from 'prosemirror-view';
3
3
 
4
4
  /**
5
5
  * A function that parses the text content of a code block node and returns an
6
- * array of decorations. If the underlying syntax highlighter is still loading,
7
- * you can return a promise that will be resolved when the highlighter is ready.
6
+ * array of ProseMirror decorations. If the underlying syntax highlighter is
7
+ * still loading, you can return a promise that will be resolved when the
8
+ * highlighter is ready.
8
9
  */
9
10
  type Parser = (options: {
10
11
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prosemirror-highlight",
3
3
  "type": "module",
4
- "version": "0.11.0",
4
+ "version": "0.11.1",
5
5
  "description": "A ProseMirror plugin to highlight code blocks",
6
6
  "author": "ocavue <ocavue@gmail.com>",
7
7
  "license": "MIT",
@@ -59,8 +59,8 @@
59
59
  "prosemirror-transform": "^1.8.0",
60
60
  "prosemirror-view": "^1.32.4",
61
61
  "refractor": "^4.8.1",
62
- "shiki": "^1.9.0",
63
- "sugar-high": "^0.6.1"
62
+ "shiki": "^1.9.0 || ^2.0.0",
63
+ "sugar-high": "^0.6.1 || ^0.7.0 || ^0.8.0"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
66
  "@types/hast": {
@@ -111,11 +111,11 @@
111
111
  "prosemirror-transform": "^1.10.2",
112
112
  "prosemirror-view": "^1.37.0",
113
113
  "refractor": "^4.8.1",
114
- "shiki": "^1.24.0",
115
- "sugar-high": "^0.7.5",
114
+ "shiki": "^2.0.0",
115
+ "sugar-high": "^0.8.2",
116
116
  "tsup": "^8.3.5",
117
117
  "typescript": "^5.6.3",
118
- "vite": "^5.4.11",
118
+ "vite": "^6.0.5",
119
119
  "vitest": "^2.1.8"
120
120
  },
121
121
  "renovate": {