@prosekit/web 0.5.0 → 0.5.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/prosekit-web-autocomplete.js +5 -3
- package/dist/prosekit-web-block-handle.js +8 -2
- package/dist/prosekit-web-inline-popover.js +3 -1
- package/dist/prosekit-web-popover.js +4 -1
- package/dist/prosekit-web-table-handle.js +11 -3
- package/dist/prosekit-web-tooltip.js +4 -1
- package/package.json +9 -9
|
@@ -62,7 +62,9 @@ function useAutocompleteItem(element, { state, emit }) {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
// src/components/autocomplete/autocomplete-item/types.ts
|
|
65
|
-
import {
|
|
65
|
+
import {
|
|
66
|
+
listboxItemEvents
|
|
67
|
+
} from "@aria-ui/listbox";
|
|
66
68
|
var autocompleteItemProps = {
|
|
67
69
|
value: {
|
|
68
70
|
default: ""
|
|
@@ -92,8 +94,8 @@ import {
|
|
|
92
94
|
useListbox
|
|
93
95
|
} from "@aria-ui/listbox/elements";
|
|
94
96
|
import {
|
|
95
|
-
Priority,
|
|
96
97
|
defineDOMEventHandler,
|
|
98
|
+
Priority,
|
|
97
99
|
withPriority
|
|
98
100
|
} from "@prosekit/core";
|
|
99
101
|
function useAutocompleteList(element, { state, emit }) {
|
|
@@ -211,8 +213,8 @@ import {
|
|
|
211
213
|
import { useOverlayPositionerState } from "@aria-ui/overlay/elements";
|
|
212
214
|
import { usePresence } from "@aria-ui/presence";
|
|
213
215
|
import {
|
|
214
|
-
Priority as Priority2,
|
|
215
216
|
defineKeymap,
|
|
217
|
+
Priority as Priority2,
|
|
216
218
|
withPriority as withPriority2
|
|
217
219
|
} from "@prosekit/core";
|
|
218
220
|
import {
|
|
@@ -60,7 +60,10 @@ import {
|
|
|
60
60
|
useEffect,
|
|
61
61
|
useEventListener as useEventListener2
|
|
62
62
|
} from "@aria-ui/core";
|
|
63
|
-
import {
|
|
63
|
+
import {
|
|
64
|
+
Fragment,
|
|
65
|
+
Slice
|
|
66
|
+
} from "@prosekit/pm/model";
|
|
64
67
|
import { NodeSelection } from "@prosekit/pm/state";
|
|
65
68
|
function useBlockHandleDraggable(host, { state }) {
|
|
66
69
|
const context = blockPopoverContext.consume(host);
|
|
@@ -149,7 +152,10 @@ import { useOverlayPositionerState } from "@aria-ui/overlay/elements";
|
|
|
149
152
|
import { usePresence } from "@aria-ui/presence";
|
|
150
153
|
|
|
151
154
|
// src/components/block-handle/block-handle-popover/pointer-move.ts
|
|
152
|
-
import {
|
|
155
|
+
import {
|
|
156
|
+
defineDOMEventHandler,
|
|
157
|
+
union
|
|
158
|
+
} from "@prosekit/core";
|
|
153
159
|
|
|
154
160
|
// src/utils/throttle.ts
|
|
155
161
|
function throttle(callback, wait) {
|
|
@@ -34,7 +34,9 @@ function useEditorUpdateEvent(host, editor, handler) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
// src/hooks/use-keymap.ts
|
|
37
|
-
import {
|
|
37
|
+
import {
|
|
38
|
+
defineKeymap
|
|
39
|
+
} from "@prosekit/core";
|
|
38
40
|
function useKeymap(host, editor, keymap) {
|
|
39
41
|
const extension = defineKeymap(keymap);
|
|
40
42
|
return useEditorExtension(host, editor, extension);
|
|
@@ -26,7 +26,10 @@ import { defineCustomElement as defineCustomElement2, registerCustomElement as r
|
|
|
26
26
|
import { usePopoverRoot } from "@aria-ui/popover/elements";
|
|
27
27
|
|
|
28
28
|
// src/components/popover/popover-root/types.ts
|
|
29
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
popoverRootEvents,
|
|
31
|
+
popoverRootProps
|
|
32
|
+
} from "@aria-ui/popover/elements";
|
|
30
33
|
|
|
31
34
|
// src/components/popover/popover-root/element.gen.ts
|
|
32
35
|
var PopoverRootElement = class extends defineCustomElement2({
|
|
@@ -250,13 +250,18 @@ import {
|
|
|
250
250
|
createSignal as createSignal4,
|
|
251
251
|
useEffect as useEffect3
|
|
252
252
|
} from "@aria-ui/core";
|
|
253
|
-
import {
|
|
253
|
+
import {
|
|
254
|
+
defineDOMEventHandler as defineDOMEventHandler2
|
|
255
|
+
} from "@prosekit/core";
|
|
254
256
|
|
|
255
257
|
// src/hooks/use-editor-typing.ts
|
|
256
258
|
import {
|
|
257
259
|
createSignal as createSignal3
|
|
258
260
|
} from "@aria-ui/core";
|
|
259
|
-
import {
|
|
261
|
+
import {
|
|
262
|
+
defineDOMEventHandler,
|
|
263
|
+
union
|
|
264
|
+
} from "@prosekit/core";
|
|
260
265
|
function useEditorTyping(host, editor) {
|
|
261
266
|
const typing = createSignal3(false);
|
|
262
267
|
const handleKeypress = () => {
|
|
@@ -274,7 +279,10 @@ function useEditorTyping(host, editor) {
|
|
|
274
279
|
}
|
|
275
280
|
|
|
276
281
|
// src/components/table-handle/utils.ts
|
|
277
|
-
import {
|
|
282
|
+
import {
|
|
283
|
+
cellAround,
|
|
284
|
+
TableMap
|
|
285
|
+
} from "prosemirror-tables";
|
|
278
286
|
function isHoveringCellInfoEqual(a, b) {
|
|
279
287
|
if (!a && !b) return true;
|
|
280
288
|
if (!a || !b) return false;
|
|
@@ -26,7 +26,10 @@ import { defineCustomElement as defineCustomElement2, registerCustomElement as r
|
|
|
26
26
|
import { useTooltipRoot } from "@aria-ui/tooltip/elements";
|
|
27
27
|
|
|
28
28
|
// src/components/tooltip/tooltip-root/types.ts
|
|
29
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
tooltipRootEvents,
|
|
31
|
+
tooltipRootProps
|
|
32
|
+
} from "@aria-ui/tooltip/elements";
|
|
30
33
|
|
|
31
34
|
// src/components/tooltip/tooltip-root/element.gen.ts
|
|
32
35
|
var TooltipRootElement = class extends defineCustomElement2({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosekit/web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ocavue",
|
|
@@ -78,19 +78,19 @@
|
|
|
78
78
|
"@aria-ui/popover": "^0.0.23",
|
|
79
79
|
"@aria-ui/presence": "^0.0.16",
|
|
80
80
|
"@aria-ui/tooltip": "^0.0.25",
|
|
81
|
-
"@floating-ui/dom": "^1.6.
|
|
82
|
-
"@zag-js/dom-query": "^0.
|
|
81
|
+
"@floating-ui/dom": "^1.6.12",
|
|
82
|
+
"@zag-js/dom-query": "^0.78.3",
|
|
83
83
|
"just-map-values": "^3.2.0",
|
|
84
84
|
"just-omit": "^2.2.0",
|
|
85
|
-
"prosemirror-tables": "^1.6.
|
|
86
|
-
"@prosekit/
|
|
87
|
-
"@prosekit/
|
|
88
|
-
"@prosekit/
|
|
85
|
+
"prosemirror-tables": "^1.6.1",
|
|
86
|
+
"@prosekit/core": "^0.7.14",
|
|
87
|
+
"@prosekit/extensions": "^0.7.23",
|
|
88
|
+
"@prosekit/pm": "^0.1.9"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"tsup": "^8.3.5",
|
|
92
|
-
"typescript": "
|
|
93
|
-
"vitest": "^2.1.
|
|
92
|
+
"typescript": "~5.6.3",
|
|
93
|
+
"vitest": "^2.1.8",
|
|
94
94
|
"@prosekit/dev": "0.0.0"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|