@prosekit/solid 0.3.19 → 0.3.21

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.
@@ -36,10 +36,10 @@ function useEditor(options) {
36
36
  const [depend, forceUpdate] = useForceUpdate();
37
37
  createEffect(() => {
38
38
  if (update) {
39
- const extension = union([
39
+ const extension = union(
40
40
  defineMountHandler(forceUpdate),
41
41
  defineUpdateHandler(forceUpdate)
42
- ]);
42
+ );
43
43
  return editor.use(extension);
44
44
  }
45
45
  }, [editor, update, forceUpdate]);
@@ -52,11 +52,10 @@ function useForceUpdate() {
52
52
  return createSignal(void 0, { equals: false });
53
53
  }
54
54
 
55
- // src/hooks/use-extension.ts
56
- import "@prosekit/core";
57
-
58
55
  // src/hooks/use-editor-extension.ts
59
- import { EditorNotFoundError } from "@prosekit/core";
56
+ import {
57
+ EditorNotFoundError
58
+ } from "@prosekit/core";
60
59
  import { createEffect as createEffect2, onCleanup } from "solid-js";
61
60
 
62
61
  // src/utils/to-value.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/solid",
3
3
  "type": "module",
4
- "version": "0.3.19",
4
+ "version": "0.3.21",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -65,9 +65,9 @@
65
65
  "dist"
66
66
  ],
67
67
  "dependencies": {
68
- "@prosekit/core": "^0.7.8",
69
- "@prosekit/web": "^0.3.9",
70
- "@prosekit/pm": "^0.1.8"
68
+ "@prosekit/pm": "^0.1.8",
69
+ "@prosekit/core": "^0.7.9",
70
+ "@prosekit/web": "^0.3.11"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "solid-js": ">= 1.7.0"
@@ -78,10 +78,10 @@
78
78
  }
79
79
  },
80
80
  "devDependencies": {
81
- "solid-js": "^1.8.19",
82
- "tsup": "^8.2.3",
83
- "typescript": "^5.5.3",
84
- "vitest": "^2.0.4",
81
+ "solid-js": "^1.8.21",
82
+ "tsup": "^8.2.4",
83
+ "typescript": "^5.5.4",
84
+ "vitest": "^2.0.5",
85
85
  "@prosekit/dev": "0.0.0"
86
86
  },
87
87
  "scripts": {