@prosekit/solid 0.4.6 → 0.4.8
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.
@@ -24,7 +24,6 @@ import { Component } from 'solid-js';
|
|
24
24
|
import { ContextProviderComponent } from 'solid-js';
|
25
25
|
import type { CoreMarkViewUserOptions } from '@prosemirror-adapter/core';
|
26
26
|
import type { CoreNodeViewUserOptions } from '@prosemirror-adapter/core';
|
27
|
-
import { config as default_alias_1 } from '@prosekit/dev/config-vitest';
|
28
27
|
import { Editor } from '@prosekit/core';
|
29
28
|
import type { EditorState } from '@prosekit/pm/state';
|
30
29
|
import { Extension } from '@prosekit/core';
|
@@ -36,7 +35,6 @@ import type { JSXElement } from 'solid-js';
|
|
36
35
|
import { Keymap } from '@prosekit/core';
|
37
36
|
import { MarkViewContextProps } from '@prosemirror-adapter/solid';
|
38
37
|
import { NodeViewContextProps } from '@prosemirror-adapter/solid';
|
39
|
-
import { Options } from 'tsup';
|
40
38
|
import { ParentProps } from 'solid-js';
|
41
39
|
import { PopoverContentElement } from '@prosekit/web/popover';
|
42
40
|
import { PopoverContentEvents } from '@prosekit/web/popover';
|
@@ -194,10 +192,6 @@ export declare type CreateProps<Props extends {
|
|
194
192
|
[EventName in keyof Events]: CustomEvent;
|
195
193
|
}> = Props & CreateEventProps<Events>;
|
196
194
|
|
197
|
-
export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
198
|
-
|
199
|
-
export { default_alias_1 }
|
200
|
-
|
201
195
|
/**
|
202
196
|
* Defines a mark view using a Solid component.
|
203
197
|
*
|
package/dist/prosekit-solid.js
CHANGED
@@ -66,8 +66,8 @@ function usePriorityExtension(extension, priority) {
|
|
66
66
|
// src/hooks/use-extension.ts
|
67
67
|
function useExtension(extension, options) {
|
68
68
|
useEditorExtension(
|
69
|
-
options
|
70
|
-
usePriorityExtension(extension, options
|
69
|
+
options?.editor,
|
70
|
+
usePriorityExtension(extension, options?.priority)
|
71
71
|
);
|
72
72
|
}
|
73
73
|
|
@@ -188,8 +188,7 @@ import {
|
|
188
188
|
createSignal
|
189
189
|
} from "solid-js";
|
190
190
|
function useEditor(options) {
|
191
|
-
|
192
|
-
const update = (_a = options == null ? void 0 : options.update) != null ? _a : false;
|
191
|
+
const update = options?.update ?? false;
|
193
192
|
const editor = useEditorContext();
|
194
193
|
if (!editor) {
|
195
194
|
throw new ProseKitError(
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/solid",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.4.
|
4
|
+
"version": "0.4.8",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -72,9 +72,9 @@
|
|
72
72
|
"dependencies": {
|
73
73
|
"@prosemirror-adapter/core": "^0.4.0",
|
74
74
|
"@prosemirror-adapter/solid": "^0.4.0",
|
75
|
-
"@prosekit/core": "^0.7.
|
76
|
-
"@prosekit/
|
77
|
-
"@prosekit/
|
75
|
+
"@prosekit/core": "^0.7.14",
|
76
|
+
"@prosekit/pm": "^0.1.9",
|
77
|
+
"@prosekit/web": "^0.5.3"
|
78
78
|
},
|
79
79
|
"peerDependencies": {
|
80
80
|
"solid-js": ">= 1.7.0"
|
@@ -87,13 +87,13 @@
|
|
87
87
|
"devDependencies": {
|
88
88
|
"solid-js": "^1.9.3",
|
89
89
|
"tsup": "^8.3.5",
|
90
|
-
"typescript": "~5.
|
90
|
+
"typescript": "~5.7.2",
|
91
91
|
"vitest": "^2.1.8",
|
92
92
|
"@prosekit/dev": "0.0.0"
|
93
93
|
},
|
94
94
|
"scripts": {
|
95
|
-
"build:
|
96
|
-
"build:
|
95
|
+
"build:tsc": "tsc -b tsconfig.json",
|
96
|
+
"build:tsup": "tsup"
|
97
97
|
},
|
98
98
|
"types": "./dist/prosekit-solid.d.ts",
|
99
99
|
"typesVersions": {
|