@prosekit/preact 0.3.20 → 0.3.22

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.
@@ -30,10 +30,10 @@ function useEditor(options) {
30
30
  const forceUpdate = useForceUpdate();
31
31
  useEffect(() => {
32
32
  if (update) {
33
- const extension = union([
33
+ const extension = union(
34
34
  defineMountHandler(forceUpdate),
35
35
  defineUpdateHandler(forceUpdate)
36
- ]);
36
+ );
37
37
  return editor.use(extension);
38
38
  }
39
39
  }, [editor, update, forceUpdate]);
@@ -44,11 +44,10 @@ function useForceUpdate() {
44
44
  return dispatch;
45
45
  }
46
46
 
47
- // src/hooks/use-extension.ts
48
- import "@prosekit/core";
49
-
50
47
  // src/hooks/use-editor-extension.ts
51
- import { EditorNotFoundError } from "@prosekit/core";
48
+ import {
49
+ EditorNotFoundError
50
+ } from "@prosekit/core";
52
51
  import { useEffect as useEffect2 } from "preact/hooks";
53
52
  function useEditorExtension(editor, extension) {
54
53
  if (!editor) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/preact",
3
3
  "type": "module",
4
- "version": "0.3.20",
4
+ "version": "0.3.22",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -66,9 +66,9 @@
66
66
  ],
67
67
  "dependencies": {
68
68
  "react-merge-refs": "^2.1.1",
69
- "@prosekit/core": "^0.7.8",
70
- "@prosekit/web": "^0.3.9",
71
- "@prosekit/pm": "^0.1.8"
69
+ "@prosekit/core": "^0.7.9",
70
+ "@prosekit/pm": "^0.1.8",
71
+ "@prosekit/web": "^0.3.11"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "preact": ">= 10.11.0"
@@ -79,10 +79,10 @@
79
79
  }
80
80
  },
81
81
  "devDependencies": {
82
- "preact": "^10.23.1",
83
- "tsup": "^8.2.3",
84
- "typescript": "^5.5.3",
85
- "vitest": "^2.0.4",
82
+ "preact": "^10.23.2",
83
+ "tsup": "^8.2.4",
84
+ "typescript": "^5.5.4",
85
+ "vitest": "^2.0.5",
86
86
  "@prosekit/dev": "0.0.0"
87
87
  },
88
88
  "scripts": {