@prosekit/web 0.8.0-beta.3 → 0.8.0-beta.4
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/get-safe-editor-view.js +0 -2
- package/dist/get-safe-editor-view.js.map +1 -1
- package/dist/prosekit-web-autocomplete.d.ts +47 -19
- package/dist/prosekit-web-autocomplete.d.ts.map +1 -1
- package/dist/prosekit-web-autocomplete.js +47 -27
- package/dist/prosekit-web-autocomplete.js.map +1 -1
- package/dist/prosekit-web-block-handle.d.ts +43 -16
- package/dist/prosekit-web-block-handle.d.ts.map +1 -1
- package/dist/prosekit-web-block-handle.js +43 -33
- package/dist/prosekit-web-block-handle.js.map +1 -1
- package/dist/prosekit-web-drop-indicator.d.ts +3 -4
- package/dist/prosekit-web-drop-indicator.d.ts.map +1 -1
- package/dist/prosekit-web-drop-indicator.js +3 -3
- package/dist/prosekit-web-drop-indicator.js.map +1 -1
- package/dist/prosekit-web-inline-popover.d.ts +31 -10
- package/dist/prosekit-web-inline-popover.d.ts.map +1 -1
- package/dist/prosekit-web-inline-popover.js +31 -19
- package/dist/prosekit-web-inline-popover.js.map +1 -1
- package/dist/prosekit-web-menu.d.ts +121 -5
- package/dist/prosekit-web-menu.d.ts.map +1 -1
- package/dist/prosekit-web-menu.js +115 -10
- package/dist/prosekit-web-menu.js.map +1 -1
- package/dist/prosekit-web-popover.d.ts +64 -5
- package/dist/prosekit-web-popover.d.ts.map +1 -1
- package/dist/prosekit-web-popover.js +60 -7
- package/dist/prosekit-web-popover.js.map +1 -1
- package/dist/prosekit-web-resizable.d.ts +14 -7
- package/dist/prosekit-web-resizable.d.ts.map +1 -1
- package/dist/prosekit-web-resizable.js +14 -12
- package/dist/prosekit-web-resizable.js.map +1 -1
- package/dist/prosekit-web-table-handle.d.ts +73 -36
- package/dist/prosekit-web-table-handle.d.ts.map +1 -1
- package/dist/prosekit-web-table-handle.js +73 -65
- package/dist/prosekit-web-table-handle.js.map +1 -1
- package/dist/prosekit-web-tooltip.d.ts +61 -5
- package/dist/prosekit-web-tooltip.d.ts.map +1 -1
- package/dist/prosekit-web-tooltip.js +58 -7
- package/dist/prosekit-web-tooltip.js.map +1 -1
- package/dist/prosekit-web.d.ts +0 -3
- package/dist/prosekit-web.d.ts.map +1 -1
- package/dist/prosekit-web.js +0 -2
- package/dist/prosekit-web.js.map +1 -1
- package/dist/use-editor-extension.js +0 -2
- package/dist/use-editor-extension.js.map +1 -1
- package/dist/use-scrolling.js +0 -4
- package/dist/use-scrolling.js.map +1 -1
- package/package.json +7 -7
- package/src/components/autocomplete/autocomplete-empty.ts +3 -4
- package/src/components/autocomplete/autocomplete-item.ts +11 -1
- package/src/components/autocomplete/autocomplete-popup.ts +11 -1
- package/src/components/autocomplete/autocomplete-positioner.ts +17 -1
- package/src/components/autocomplete/autocomplete-root.ts +5 -1
- package/src/components/block-handle/block-handle-add.ts +3 -1
- package/src/components/block-handle/block-handle-draggable.ts +9 -1
- package/src/components/block-handle/block-handle-popup.ts +9 -1
- package/src/components/block-handle/block-handle-positioner.ts +17 -1
- package/src/components/block-handle/block-handle-root.ts +5 -1
- package/src/components/drop-indicator/drop-indicator.ts +3 -1
- package/src/components/inline-popover/inline-popover-popup.ts +9 -1
- package/src/components/inline-popover/inline-popover-positioner.ts +17 -1
- package/src/components/inline-popover/inline-popover-root.ts +5 -1
- package/src/components/menu/index.ts +140 -43
- package/src/components/popover/index.ts +76 -23
- package/src/components/resizable/resizable-handle.ts +3 -1
- package/src/components/resizable/resizable-root.ts +11 -1
- package/src/components/table-handle/table-handle-column-menu-root.ts +3 -1
- package/src/components/table-handle/table-handle-column-menu-trigger.ts +3 -1
- package/src/components/table-handle/table-handle-column-popup.ts +9 -1
- package/src/components/table-handle/table-handle-column-positioner.ts +17 -1
- package/src/components/table-handle/table-handle-drag-preview.ts +3 -1
- package/src/components/table-handle/table-handle-drop-indicator.ts +3 -1
- package/src/components/table-handle/table-handle-root.ts +3 -1
- package/src/components/table-handle/table-handle-row-menu-root.ts +3 -1
- package/src/components/table-handle/table-handle-row-menu-trigger.ts +3 -1
- package/src/components/table-handle/table-handle-row-popup.ts +9 -1
- package/src/components/table-handle/table-handle-row-positioner.ts +17 -1
- package/src/components/tooltip/index.ts +73 -22
|
@@ -14,30 +14,75 @@
|
|
|
14
14
|
```
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { registerCustomElement } from '@aria-ui/core'
|
|
18
|
-
import
|
|
17
|
+
import { registerCustomElement, type PropsDeclaration } from '@aria-ui/core'
|
|
18
|
+
import * as Base from '@aria-ui/elements/popover'
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
20
|
+
/**
|
|
21
|
+
* `<prosekit-popover-popup>` custom element.
|
|
22
|
+
*
|
|
23
|
+
* Properties: {@link PopoverPopupProps}
|
|
24
|
+
*
|
|
25
|
+
* Data attributes:
|
|
26
|
+
*
|
|
27
|
+
* | Attribute | Description |
|
|
28
|
+
* | --- | --- |
|
|
29
|
+
* | `data-state` | `"open"` when the popover is visible, `"closed"` otherwise |
|
|
30
|
+
*/
|
|
31
|
+
export class PopoverPopupElement extends Base.PopoverPopupElement {}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* `<prosekit-popover-positioner>` custom element.
|
|
35
|
+
*
|
|
36
|
+
* Properties: {@link PopoverPositionerProps}
|
|
37
|
+
*
|
|
38
|
+
* Data attributes:
|
|
39
|
+
*
|
|
40
|
+
* | Attribute | Description |
|
|
41
|
+
* | --- | --- |
|
|
42
|
+
* | `data-state` | `"open"` when the popover is visible, `"closed"` otherwise |
|
|
43
|
+
*
|
|
44
|
+
* CSS variables:
|
|
45
|
+
*
|
|
46
|
+
* | Variable | Description |
|
|
47
|
+
* | --- | --- |
|
|
48
|
+
* | `--transform-origin` | The coordinates that this element is anchored to. Useful for scale animations. |
|
|
49
|
+
*/
|
|
50
|
+
export class PopoverPositionerElement extends Base.PopoverPositionerElement {}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* `<prosekit-popover-root>` custom element.
|
|
54
|
+
*
|
|
55
|
+
* Properties: {@link PopoverRootProps}
|
|
56
|
+
*
|
|
57
|
+
* Events: {@link PopoverRootEvents}
|
|
58
|
+
*/
|
|
59
|
+
export class PopoverRootElement extends Base.PopoverRootElement {}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* `<prosekit-popover-trigger>` custom element.
|
|
63
|
+
*
|
|
64
|
+
* Properties: {@link PopoverTriggerProps}
|
|
65
|
+
*
|
|
66
|
+
* Events: {@link PopoverTriggerEvents}
|
|
67
|
+
*/
|
|
68
|
+
export class PopoverTriggerElement extends Base.PopoverTriggerElement {}
|
|
69
|
+
|
|
70
|
+
export interface PopoverPopupProps extends Base.PopoverPopupProps {}
|
|
71
|
+
export interface PopoverPositionerProps extends Base.PopoverPositionerProps {}
|
|
72
|
+
export interface PopoverRootProps extends Base.PopoverRootProps {}
|
|
73
|
+
export interface PopoverTriggerProps extends Base.PopoverTriggerProps {}
|
|
74
|
+
|
|
75
|
+
export interface PopoverRootEvents extends Base.PopoverRootEvents {}
|
|
76
|
+
export interface PopoverTriggerEvents extends Base.PopoverTriggerEvents {}
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const PopoverPopupPropsDeclaration: PropsDeclaration<PopoverPopupProps> = Base.PopoverPopupPropsDeclaration
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const PopoverPositionerPropsDeclaration: PropsDeclaration<PopoverPositionerProps> = Base.PopoverPositionerPropsDeclaration
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const PopoverRootPropsDeclaration: PropsDeclaration<PopoverRootProps> = Base.PopoverRootPropsDeclaration
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const PopoverTriggerPropsDeclaration: PropsDeclaration<PopoverTriggerProps> = Base.PopoverTriggerPropsDeclaration
|
|
41
86
|
|
|
42
87
|
export function registerPopoverRootElement(): void {
|
|
43
88
|
registerCustomElement('prosekit-popover-root', PopoverRootElement)
|
|
@@ -51,3 +96,11 @@ export function registerPopoverPopupElement(): void {
|
|
|
51
96
|
export function registerPopoverPositionerElement(): void {
|
|
52
97
|
registerCustomElement('prosekit-popover-positioner', PopoverPositionerElement)
|
|
53
98
|
}
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
OpenChangeEvent,
|
|
102
|
+
setupPopoverPopup,
|
|
103
|
+
setupPopoverPositioner,
|
|
104
|
+
setupPopoverRoot,
|
|
105
|
+
setupPopoverTrigger,
|
|
106
|
+
} from '@aria-ui/elements/popover'
|
|
@@ -118,7 +118,9 @@ const ResizableHandleElementBase: HostElementConstructor<ResizableHandleProps> =
|
|
|
118
118
|
)
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
121
|
+
* `<prosekit-resizable-handle>` custom element.
|
|
122
|
+
*
|
|
123
|
+
* Properties: {@link ResizableHandleProps}
|
|
122
124
|
*/
|
|
123
125
|
export class ResizableHandleElement extends ResizableHandleElementBase {}
|
|
124
126
|
|
|
@@ -168,7 +168,17 @@ const ResizableRootElementBase: HostElementConstructor<ResizableRootProps> = def
|
|
|
168
168
|
)
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
|
-
*
|
|
171
|
+
* `<prosekit-resizable-root>` custom element.
|
|
172
|
+
*
|
|
173
|
+
* Properties: {@link ResizableRootProps}
|
|
174
|
+
*
|
|
175
|
+
* Events: {@link ResizableRootEvents}
|
|
176
|
+
*
|
|
177
|
+
* Data attributes:
|
|
178
|
+
*
|
|
179
|
+
* | Attribute | Description |
|
|
180
|
+
* | --- | --- |
|
|
181
|
+
* | `data-resizing` | Present when the element is being resized |
|
|
172
182
|
*/
|
|
173
183
|
export class ResizableRootElement extends ResizableRootElementBase {}
|
|
174
184
|
|
|
@@ -41,7 +41,9 @@ const TableHandleColumnMenuRootElementBase: HostElementConstructor<TableHandleCo
|
|
|
41
41
|
)
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* `<prosekit-table-handle-column-menu-root>` custom element.
|
|
45
|
+
*
|
|
46
|
+
* Properties: {@link TableHandleColumnMenuRootProps}
|
|
45
47
|
*/
|
|
46
48
|
export class TableHandleColumnMenuRootElement extends TableHandleColumnMenuRootElementBase {}
|
|
47
49
|
|
|
@@ -95,7 +95,9 @@ const TableHandleColumnMenuTriggerElementBase: HostElementConstructor<TableHandl
|
|
|
95
95
|
)
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* `<prosekit-table-handle-column-menu-trigger>` custom element.
|
|
99
|
+
*
|
|
100
|
+
* Properties: {@link TableHandleColumnMenuTriggerProps}
|
|
99
101
|
*/
|
|
100
102
|
export class TableHandleColumnMenuTriggerElement extends TableHandleColumnMenuTriggerElementBase {}
|
|
101
103
|
|
|
@@ -34,7 +34,15 @@ const TableHandleColumnPopupElementBase: HostElementConstructor<TableHandleColum
|
|
|
34
34
|
)
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* `<prosekit-table-handle-column-popup>` custom element.
|
|
38
|
+
*
|
|
39
|
+
* Properties: {@link TableHandleColumnPopupProps}
|
|
40
|
+
*
|
|
41
|
+
* Data attributes:
|
|
42
|
+
*
|
|
43
|
+
* | Attribute | Description |
|
|
44
|
+
* | --- | --- |
|
|
45
|
+
* | `data-state` | `"open"` when visible, `"closed"` otherwise |
|
|
38
46
|
*/
|
|
39
47
|
export class TableHandleColumnPopupElement extends TableHandleColumnPopupElementBase {}
|
|
40
48
|
|
|
@@ -57,7 +57,23 @@ const TableHandleColumnPositionerElementBase: HostElementConstructor<TableHandle
|
|
|
57
57
|
)
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* `<prosekit-table-handle-column-positioner>` custom element.
|
|
61
|
+
*
|
|
62
|
+
* Properties: {@link TableHandleColumnPositionerProps}
|
|
63
|
+
*
|
|
64
|
+
* Data attributes:
|
|
65
|
+
*
|
|
66
|
+
* | Attribute | Description |
|
|
67
|
+
* | --- | --- |
|
|
68
|
+
* | `data-state` | `"open"` when visible, `"closed"` otherwise |
|
|
69
|
+
* | `data-side` | The side of the anchor element the positioner is on |
|
|
70
|
+
* | `data-align` | The alignment of the positioner relative to the anchor element |
|
|
71
|
+
*
|
|
72
|
+
* CSS variables:
|
|
73
|
+
*
|
|
74
|
+
* | Variable | Description |
|
|
75
|
+
* | --- | --- |
|
|
76
|
+
* | `--transform-origin` | The coordinates that this element is anchored to. Useful for scale animations. |
|
|
61
77
|
*/
|
|
62
78
|
export class TableHandleColumnPositionerElement extends TableHandleColumnPositionerElementBase {}
|
|
63
79
|
|
|
@@ -157,7 +157,9 @@ const TableHandleDragPreviewElementBase: HostElementConstructor<TableHandleDragP
|
|
|
157
157
|
)
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
|
-
*
|
|
160
|
+
* `<prosekit-table-handle-drag-preview>` custom element.
|
|
161
|
+
*
|
|
162
|
+
* Properties: {@link TableHandleDragPreviewProps}
|
|
161
163
|
*/
|
|
162
164
|
export class TableHandleDragPreviewElement extends TableHandleDragPreviewElementBase {}
|
|
163
165
|
|
|
@@ -154,7 +154,9 @@ const TableHandleDropIndicatorElementBase: HostElementConstructor<TableHandleDro
|
|
|
154
154
|
)
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
|
-
*
|
|
157
|
+
* `<prosekit-table-handle-drop-indicator>` custom element.
|
|
158
|
+
*
|
|
159
|
+
* Properties: {@link TableHandleDropIndicatorProps}
|
|
158
160
|
*/
|
|
159
161
|
export class TableHandleDropIndicatorElement extends TableHandleDropIndicatorElementBase {}
|
|
160
162
|
|
|
@@ -91,7 +91,9 @@ const TableHandleRootElementBase: HostElementConstructor<TableHandleRootProps> =
|
|
|
91
91
|
)
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* `<prosekit-table-handle-root>` custom element.
|
|
95
|
+
*
|
|
96
|
+
* Properties: {@link TableHandleRootProps}
|
|
95
97
|
*/
|
|
96
98
|
export class TableHandleRootElement extends TableHandleRootElementBase {}
|
|
97
99
|
|
|
@@ -41,7 +41,9 @@ const TableHandleRowMenuRootElementBase: HostElementConstructor<TableHandleRowMe
|
|
|
41
41
|
)
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* `<prosekit-table-handle-row-menu-root>` custom element.
|
|
45
|
+
*
|
|
46
|
+
* Properties: {@link TableHandleRowMenuRootProps}
|
|
45
47
|
*/
|
|
46
48
|
export class TableHandleRowMenuRootElement extends TableHandleRowMenuRootElementBase {}
|
|
47
49
|
|
|
@@ -95,7 +95,9 @@ const TableHandleRowMenuTriggerElementBase: HostElementConstructor<TableHandleRo
|
|
|
95
95
|
)
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* `<prosekit-table-handle-row-menu-trigger>` custom element.
|
|
99
|
+
*
|
|
100
|
+
* Properties: {@link TableHandleRowMenuTriggerProps}
|
|
99
101
|
*/
|
|
100
102
|
export class TableHandleRowMenuTriggerElement extends TableHandleRowMenuTriggerElementBase {}
|
|
101
103
|
|
|
@@ -32,7 +32,15 @@ const TableHandleRowPopupElementBase: HostElementConstructor<TableHandleRowPopup
|
|
|
32
32
|
)
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* `<prosekit-table-handle-row-popup>` custom element.
|
|
36
|
+
*
|
|
37
|
+
* Properties: {@link TableHandleRowPopupProps}
|
|
38
|
+
*
|
|
39
|
+
* Data attributes:
|
|
40
|
+
*
|
|
41
|
+
* | Attribute | Description |
|
|
42
|
+
* | --- | --- |
|
|
43
|
+
* | `data-state` | `"open"` when visible, `"closed"` otherwise |
|
|
36
44
|
*/
|
|
37
45
|
export class TableHandleRowPopupElement extends TableHandleRowPopupElementBase {}
|
|
38
46
|
|
|
@@ -57,7 +57,23 @@ const TableHandleRowPositionerElementBase: HostElementConstructor<TableHandleRow
|
|
|
57
57
|
)
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* `<prosekit-table-handle-row-positioner>` custom element.
|
|
61
|
+
*
|
|
62
|
+
* Properties: {@link TableHandleRowPositionerProps}
|
|
63
|
+
*
|
|
64
|
+
* Data attributes:
|
|
65
|
+
*
|
|
66
|
+
* | Attribute | Description |
|
|
67
|
+
* | --- | --- |
|
|
68
|
+
* | `data-state` | `"open"` when visible, `"closed"` otherwise |
|
|
69
|
+
* | `data-side` | The side of the anchor element the positioner is on |
|
|
70
|
+
* | `data-align` | The alignment of the positioner relative to the anchor element |
|
|
71
|
+
*
|
|
72
|
+
* CSS variables:
|
|
73
|
+
*
|
|
74
|
+
* | Variable | Description |
|
|
75
|
+
* | --- | --- |
|
|
76
|
+
* | `--transform-origin` | The coordinates that this element is anchored to. Useful for scale animations. |
|
|
61
77
|
*/
|
|
62
78
|
export class TableHandleRowPositionerElement extends TableHandleRowPositionerElementBase {}
|
|
63
79
|
|
|
@@ -14,29 +14,72 @@
|
|
|
14
14
|
```
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { registerCustomElement } from '@aria-ui/core'
|
|
18
|
-
import
|
|
17
|
+
import { registerCustomElement, type PropsDeclaration } from '@aria-ui/core'
|
|
18
|
+
import * as Base from '@aria-ui/elements/tooltip'
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
20
|
+
/**
|
|
21
|
+
* `<prosekit-tooltip-popup>` custom element.
|
|
22
|
+
*
|
|
23
|
+
* Properties: {@link TooltipPopupProps}
|
|
24
|
+
*
|
|
25
|
+
* Data attributes:
|
|
26
|
+
*
|
|
27
|
+
* | Attribute | Description |
|
|
28
|
+
* | --- | --- |
|
|
29
|
+
* | `data-state` | `"open"` when the tooltip is visible, `"closed"` otherwise |
|
|
30
|
+
*/
|
|
31
|
+
export class TooltipPopupElement extends Base.TooltipPopupElement {}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* `<prosekit-tooltip-positioner>` custom element.
|
|
35
|
+
*
|
|
36
|
+
* Properties: {@link TooltipPositionerProps}
|
|
37
|
+
*
|
|
38
|
+
* Data attributes:
|
|
39
|
+
*
|
|
40
|
+
* | Attribute | Description |
|
|
41
|
+
* | --- | --- |
|
|
42
|
+
* | `data-state` | `"open"` when the tooltip is visible, `"closed"` otherwise |
|
|
43
|
+
*
|
|
44
|
+
* CSS variables:
|
|
45
|
+
*
|
|
46
|
+
* | Variable | Description |
|
|
47
|
+
* | --- | --- |
|
|
48
|
+
* | `--transform-origin` | The coordinates that this element is anchored to. Useful for scale animations. |
|
|
49
|
+
*/
|
|
50
|
+
export class TooltipPositionerElement extends Base.TooltipPositionerElement {}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* `<prosekit-tooltip-root>` custom element.
|
|
54
|
+
*
|
|
55
|
+
* Properties: {@link TooltipRootProps}
|
|
56
|
+
*
|
|
57
|
+
* Events: {@link TooltipRootEvents}
|
|
58
|
+
*/
|
|
59
|
+
export class TooltipRootElement extends Base.TooltipRootElement {}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* `<prosekit-tooltip-trigger>` custom element.
|
|
63
|
+
*
|
|
64
|
+
* Properties: {@link TooltipTriggerProps}
|
|
65
|
+
*/
|
|
66
|
+
export class TooltipTriggerElement extends Base.TooltipTriggerElement {}
|
|
67
|
+
|
|
68
|
+
export interface TooltipPopupProps extends Base.TooltipPopupProps {}
|
|
69
|
+
export interface TooltipPositionerProps extends Base.TooltipPositionerProps {}
|
|
70
|
+
export interface TooltipRootProps extends Base.TooltipRootProps {}
|
|
71
|
+
export interface TooltipTriggerProps extends Base.TooltipTriggerProps {}
|
|
72
|
+
|
|
73
|
+
export interface TooltipRootEvents extends Base.TooltipRootEvents {}
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const TooltipPopupPropsDeclaration: PropsDeclaration<TooltipPopupProps> = Base.TooltipPopupPropsDeclaration
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const TooltipPositionerPropsDeclaration: PropsDeclaration<TooltipPositionerProps> = Base.TooltipPositionerPropsDeclaration
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const TooltipRootPropsDeclaration: PropsDeclaration<TooltipRootProps> = Base.TooltipRootPropsDeclaration
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const TooltipTriggerPropsDeclaration: PropsDeclaration<TooltipTriggerProps> = Base.TooltipTriggerPropsDeclaration
|
|
40
83
|
|
|
41
84
|
export function registerTooltipRootElement(): void {
|
|
42
85
|
registerCustomElement('prosekit-tooltip-root', TooltipRootElement)
|
|
@@ -50,3 +93,11 @@ export function registerTooltipPopupElement(): void {
|
|
|
50
93
|
export function registerTooltipPositionerElement(): void {
|
|
51
94
|
registerCustomElement('prosekit-tooltip-positioner', TooltipPositionerElement)
|
|
52
95
|
}
|
|
96
|
+
|
|
97
|
+
export {
|
|
98
|
+
OpenChangeEvent,
|
|
99
|
+
setupTooltipPopup,
|
|
100
|
+
setupTooltipPositioner,
|
|
101
|
+
setupTooltipRoot,
|
|
102
|
+
setupTooltipTrigger,
|
|
103
|
+
} from '@aria-ui/elements/tooltip'
|