@prosekit/web 0.3.9 → 0.3.11
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.
|
@@ -9,13 +9,14 @@ import { defaultTooltipRootProps } from '@aria-ui/tooltip';
|
|
|
9
9
|
import { defaultTooltipTriggerProps } from '@aria-ui/tooltip';
|
|
10
10
|
import { Editor } from '@prosekit/core';
|
|
11
11
|
import type { EditorView } from '@prosekit/pm/view';
|
|
12
|
+
import type { EmptyObject } from '@aria-ui/core';
|
|
12
13
|
import { Extension } from '@prosekit/core';
|
|
13
14
|
import { ExtensionTyping } from '@prosekit/core';
|
|
14
15
|
import { FocusChangeHandler } from '@prosekit/core';
|
|
15
16
|
import { Keymap } from '@prosekit/core';
|
|
16
17
|
import { ListboxProps } from '@aria-ui/listbox';
|
|
17
18
|
import { Options } from 'tsup';
|
|
18
|
-
import
|
|
19
|
+
import { OverlayPositionerProps } from '@aria-ui/overlay';
|
|
19
20
|
import type { Placement } from '@floating-ui/dom';
|
|
20
21
|
import { PopoverContentProps } from '@aria-ui/popover';
|
|
21
22
|
import { PopoverRootProps } from '@aria-ui/popover';
|
|
@@ -24,7 +25,7 @@ import type { ProseMirrorNode } from '@prosekit/pm/model';
|
|
|
24
25
|
import { ReadonlySignal } from '@aria-ui/core';
|
|
25
26
|
import type { ReferenceElement } from '@floating-ui/dom';
|
|
26
27
|
import { SignalState } from '@aria-ui/core';
|
|
27
|
-
import
|
|
28
|
+
import { TooltipContentProps } from '@aria-ui/tooltip';
|
|
28
29
|
import { TooltipRootProps } from '@aria-ui/tooltip';
|
|
29
30
|
import { TooltipTriggerProps } from '@aria-ui/tooltip';
|
|
30
31
|
import { Union } from '@prosekit/core';
|
|
@@ -47,7 +48,7 @@ declare const AutocompleteEmptyElement_base: {
|
|
|
47
48
|
prototype: HTMLElement;
|
|
48
49
|
};
|
|
49
50
|
|
|
50
|
-
declare interface AutocompleteEmptyProps {
|
|
51
|
+
declare interface AutocompleteEmptyProps extends EmptyObject {
|
|
51
52
|
}
|
|
52
53
|
export { AutocompleteEmptyProps }
|
|
53
54
|
export { AutocompleteEmptyProps as AutocompleteEmptyProps_alias_1 }
|
|
@@ -187,7 +187,9 @@ defineCustomElement("prosekit-autocomplete-list", AutocompleteListElement);
|
|
|
187
187
|
import { ElementBuilder as ElementBuilder4 } from "@aria-ui/core";
|
|
188
188
|
|
|
189
189
|
// src/components/autocomplete/autocomplete-popover/props.ts
|
|
190
|
-
import {
|
|
190
|
+
import {
|
|
191
|
+
defaultOverlayPositionerProps
|
|
192
|
+
} from "@aria-ui/overlay";
|
|
191
193
|
var body = typeof document !== "undefined" && document.querySelector("body");
|
|
192
194
|
var defaultBoundary = body || "clippingAncestors";
|
|
193
195
|
var defaultAutocompletePopoverProps = Object.freeze({
|
|
@@ -79,7 +79,9 @@ defineCustomElement("prosekit-block-drag-handle", BlockDragHandleElement);
|
|
|
79
79
|
import { ElementBuilder as ElementBuilder2 } from "@aria-ui/core";
|
|
80
80
|
|
|
81
81
|
// src/components/block-handle/block-popover/props.ts
|
|
82
|
-
import {
|
|
82
|
+
import {
|
|
83
|
+
defaultOverlayPositionerProps
|
|
84
|
+
} from "@aria-ui/overlay";
|
|
83
85
|
var defaultBlockPopoverProps = Object.freeze({
|
|
84
86
|
...defaultOverlayPositionerProps,
|
|
85
87
|
editor: null,
|
|
@@ -165,11 +167,11 @@ function defineElementHoverHandler(handler) {
|
|
|
165
167
|
}
|
|
166
168
|
handler(element, element, node, pos);
|
|
167
169
|
};
|
|
168
|
-
return union(
|
|
170
|
+
return union(
|
|
169
171
|
defineDOMEventHandler("pointermove", throttle(handlePointerEvent, 200)),
|
|
170
172
|
defineDOMEventHandler("pointerout", handlePointerEvent),
|
|
171
173
|
defineDOMEventHandler("keypress", () => handler(null, null, null, null))
|
|
172
|
-
|
|
174
|
+
);
|
|
173
175
|
}
|
|
174
176
|
|
|
175
177
|
// src/components/block-handle/block-popover/state.ts
|
|
@@ -9,7 +9,9 @@ import {
|
|
|
9
9
|
import { ElementBuilder } from "@aria-ui/core";
|
|
10
10
|
|
|
11
11
|
// src/components/inline-popover/inline-popover/props.ts
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
defaultOverlayPositionerProps
|
|
14
|
+
} from "@aria-ui/overlay";
|
|
13
15
|
var defaultInlinePopoverProps = Object.freeze({
|
|
14
16
|
...defaultOverlayPositionerProps,
|
|
15
17
|
editor: null,
|
|
@@ -50,7 +52,9 @@ function useEditorFocusChangeEvent(host, editor, handler) {
|
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
// src/hooks/use-editor-update-event.ts
|
|
53
|
-
import {
|
|
55
|
+
import {
|
|
56
|
+
defineUpdateHandler
|
|
57
|
+
} from "@prosekit/core";
|
|
54
58
|
function useEditorUpdateEvent(host, editor, handler) {
|
|
55
59
|
const extension = defineUpdateHandler(handler);
|
|
56
60
|
useEditorExtension(host, editor, extension);
|
|
@@ -6,7 +6,9 @@ import {
|
|
|
6
6
|
import { ElementBuilder } from "@aria-ui/core";
|
|
7
7
|
|
|
8
8
|
// src/components/tooltip/tooltip-content/props.ts
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
defaultTooltipContentProps as defaultProps
|
|
11
|
+
} from "@aria-ui/tooltip";
|
|
10
12
|
var defaultTooltipContentProps = {
|
|
11
13
|
...defaultProps,
|
|
12
14
|
shift: true,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosekit/web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.11",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ocavue",
|
|
@@ -66,23 +66,23 @@
|
|
|
66
66
|
],
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@aria-ui/collection": "^0.0.3",
|
|
69
|
-
"@aria-ui/core": "^0.0.
|
|
70
|
-
"@aria-ui/listbox": "^0.0.
|
|
71
|
-
"@aria-ui/overlay": "^0.0.
|
|
72
|
-
"@aria-ui/popover": "^0.0.
|
|
73
|
-
"@aria-ui/presence": "^0.0.
|
|
74
|
-
"@aria-ui/tooltip": "^0.0.
|
|
75
|
-
"@floating-ui/dom": "^1.6.
|
|
76
|
-
"@zag-js/dom-query": "^0.
|
|
69
|
+
"@aria-ui/core": "^0.0.18",
|
|
70
|
+
"@aria-ui/listbox": "^0.0.18",
|
|
71
|
+
"@aria-ui/overlay": "^0.0.19",
|
|
72
|
+
"@aria-ui/popover": "^0.0.20",
|
|
73
|
+
"@aria-ui/presence": "^0.0.14",
|
|
74
|
+
"@aria-ui/tooltip": "^0.0.22",
|
|
75
|
+
"@floating-ui/dom": "^1.6.10",
|
|
76
|
+
"@zag-js/dom-query": "^0.65.0",
|
|
77
77
|
"just-omit": "^2.2.0",
|
|
78
|
-
"@prosekit/core": "^0.7.
|
|
79
|
-
"@prosekit/extensions": "^0.7.
|
|
78
|
+
"@prosekit/core": "^0.7.9",
|
|
79
|
+
"@prosekit/extensions": "^0.7.11",
|
|
80
80
|
"@prosekit/pm": "^0.1.8"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"tsup": "^8.2.
|
|
84
|
-
"typescript": "^5.5.
|
|
85
|
-
"vitest": "^2.0.
|
|
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": {
|