@prosekit/react 0.7.0-beta.2 → 0.7.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/editor-context.js +0 -2
- package/dist/editor-context.js.map +1 -1
- package/dist/prosekit-react-autocomplete.d.ts +12 -23
- package/dist/prosekit-react-autocomplete.d.ts.map +1 -1
- package/dist/prosekit-react-autocomplete.js +28 -12
- package/dist/prosekit-react-autocomplete.js.map +1 -1
- package/dist/prosekit-react-block-handle.d.ts +12 -23
- package/dist/prosekit-react-block-handle.d.ts.map +1 -1
- package/dist/prosekit-react-block-handle.js +28 -12
- package/dist/prosekit-react-block-handle.js.map +1 -1
- package/dist/prosekit-react-drop-indicator.d.ts +2 -5
- package/dist/prosekit-react-drop-indicator.d.ts.map +1 -1
- package/dist/prosekit-react-drop-indicator.js +13 -2
- package/dist/prosekit-react-drop-indicator.js.map +1 -1
- package/dist/prosekit-react-inline-popover.d.ts +9 -16
- package/dist/prosekit-react-inline-popover.d.ts.map +1 -1
- package/dist/prosekit-react-inline-popover.js +23 -8
- package/dist/prosekit-react-inline-popover.js.map +1 -1
- package/dist/prosekit-react-menu.d.ts +16 -31
- package/dist/prosekit-react-menu.d.ts.map +1 -1
- package/dist/prosekit-react-menu.js +38 -16
- package/dist/prosekit-react-menu.js.map +1 -1
- package/dist/prosekit-react-popover.d.ts +10 -19
- package/dist/prosekit-react-popover.d.ts.map +1 -1
- package/dist/prosekit-react-popover.js +25 -10
- package/dist/prosekit-react-popover.js.map +1 -1
- package/dist/prosekit-react-resizable.d.ts +6 -11
- package/dist/prosekit-react-resizable.d.ts.map +1 -1
- package/dist/prosekit-react-resizable.js +21 -6
- package/dist/prosekit-react-resizable.js.map +1 -1
- package/dist/prosekit-react-table-handle.d.ts +22 -45
- package/dist/prosekit-react-table-handle.d.ts.map +1 -1
- package/dist/prosekit-react-table-handle.js +57 -22
- package/dist/prosekit-react-table-handle.js.map +1 -1
- package/dist/prosekit-react-tooltip.d.ts +10 -19
- package/dist/prosekit-react-tooltip.d.ts.map +1 -1
- package/dist/prosekit-react-tooltip.js +25 -10
- package/dist/prosekit-react-tooltip.js.map +1 -1
- package/dist/prosekit-react.d.ts +0 -21
- package/dist/prosekit-react.d.ts.map +1 -1
- package/dist/prosekit-react.js +1 -26
- package/dist/prosekit-react.js.map +1 -1
- package/package.json +4 -4
- package/src/components/autocomplete/autocomplete-empty.gen.ts +2 -2
- package/src/components/autocomplete/autocomplete-item.gen.ts +2 -4
- package/src/components/autocomplete/autocomplete-popup.gen.ts +2 -4
- package/src/components/autocomplete/autocomplete-positioner.gen.ts +2 -2
- package/src/components/autocomplete/autocomplete-root.gen.ts +2 -4
- package/src/components/autocomplete/index.gen.ts +3 -5
- package/src/components/autocomplete/index.ts +2 -0
- package/src/components/block-handle/block-handle-add.gen.ts +2 -2
- package/src/components/block-handle/block-handle-draggable.gen.ts +2 -2
- package/src/components/block-handle/block-handle-popup.gen.ts +2 -2
- package/src/components/block-handle/block-handle-positioner.gen.ts +2 -2
- package/src/components/block-handle/block-handle-root.gen.ts +2 -4
- package/src/components/block-handle/index.gen.ts +1 -3
- package/src/components/block-handle/index.ts +2 -0
- package/src/components/drop-indicator/drop-indicator.gen.ts +2 -2
- package/src/components/drop-indicator/index.ts +2 -0
- package/src/components/inline-popover/index.gen.ts +1 -3
- package/src/components/inline-popover/index.ts +2 -0
- package/src/components/inline-popover/inline-popover-popup.gen.ts +2 -2
- package/src/components/inline-popover/inline-popover-positioner.gen.ts +2 -2
- package/src/components/inline-popover/inline-popover-root.gen.ts +3 -5
- package/src/components/menu/index.gen.ts +3 -5
- package/src/components/menu/index.ts +2 -0
- package/src/components/menu/menu-item.gen.ts +2 -4
- package/src/components/menu/menu-popup.gen.ts +2 -2
- package/src/components/menu/menu-positioner.gen.ts +2 -2
- package/src/components/menu/menu-root.gen.ts +2 -4
- package/src/components/menu/menu-submenu-root.gen.ts +2 -2
- package/src/components/menu/menu-submenu-trigger.gen.ts +2 -2
- package/src/components/menu/menu-trigger.gen.ts +2 -4
- package/src/components/popover/index.gen.ts +2 -4
- package/src/components/popover/index.ts +2 -0
- package/src/components/popover/popover-popup.gen.ts +2 -2
- package/src/components/popover/popover-positioner.gen.ts +2 -2
- package/src/components/popover/popover-root.gen.ts +2 -4
- package/src/components/popover/popover-trigger.gen.ts +2 -4
- package/src/components/resizable/index.gen.ts +1 -3
- package/src/components/resizable/index.ts +2 -0
- package/src/components/resizable/resizable-handle.gen.ts +2 -2
- package/src/components/resizable/resizable-root.gen.ts +2 -4
- package/src/components/table-handle/index.ts +2 -0
- package/src/components/table-handle/table-handle-column-menu-root.gen.ts +2 -2
- package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +2 -2
- package/src/components/table-handle/table-handle-column-popup.gen.ts +2 -2
- package/src/components/table-handle/table-handle-column-positioner.gen.ts +2 -2
- package/src/components/table-handle/table-handle-drag-preview.gen.ts +2 -2
- package/src/components/table-handle/table-handle-drop-indicator.gen.ts +2 -2
- package/src/components/table-handle/table-handle-root.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-menu-root.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-popup.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-positioner.gen.ts +2 -2
- package/src/components/tooltip/index.gen.ts +1 -3
- package/src/components/tooltip/index.ts +2 -0
- package/src/components/tooltip/tooltip-popup.gen.ts +2 -2
- package/src/components/tooltip/tooltip-positioner.gen.ts +2 -2
- package/src/components/tooltip/tooltip-root.gen.ts +2 -4
- package/src/components/tooltip/tooltip-trigger.gen.ts +2 -2
- package/src/index.ts +2 -0
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface AutocompletePositionerProps
|
|
13
|
+
export interface AutocompletePositionerProps {
|
|
14
14
|
/**
|
|
15
15
|
* The placement of the popover, relative to the text cursor.
|
|
16
16
|
*
|
|
@@ -148,4 +148,4 @@ function AutocompletePositionerComponent(props: AutocompletePositionerProps, for
|
|
|
148
148
|
*
|
|
149
149
|
* @public
|
|
150
150
|
*/
|
|
151
|
-
export const AutocompletePositioner: ForwardRefExoticComponent<AutocompletePositionerProps & RefAttributes<AutocompletePositionerElement>> = /* @__PURE__ */ forwardRef(AutocompletePositionerComponent);
|
|
151
|
+
export const AutocompletePositioner: ForwardRefExoticComponent<AutocompletePositionerProps & HTMLAttributes<AutocompletePositionerElement> & RefAttributes<AutocompletePositionerElement>> = /* @__PURE__ */ forwardRef(AutocompletePositionerComponent);
|
|
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface AutocompleteRootProps
|
|
15
|
+
export interface AutocompleteRootProps {
|
|
16
16
|
/**
|
|
17
17
|
* The ProseKit editor instance.
|
|
18
18
|
*
|
|
@@ -102,6 +102,4 @@ function AutocompleteRootComponent(props: AutocompleteRootProps, forwardedRef: F
|
|
|
102
102
|
*
|
|
103
103
|
* @public
|
|
104
104
|
*/
|
|
105
|
-
export const AutocompleteRoot: ForwardRefExoticComponent<AutocompleteRootProps & RefAttributes<AutocompleteRootElement>> = /* @__PURE__ */ forwardRef(AutocompleteRootComponent);
|
|
106
|
-
|
|
107
|
-
export type { AutocompleteRootEvents };
|
|
105
|
+
export const AutocompleteRoot: ForwardRefExoticComponent<AutocompleteRootProps & HTMLAttributes<AutocompleteRootElement> & RefAttributes<AutocompleteRootElement>> = /* @__PURE__ */ forwardRef(AutocompleteRootComponent);
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
export { AutocompleteEmpty, type AutocompleteEmptyProps } from './autocomplete-empty.gen.ts';
|
|
6
6
|
|
|
7
|
-
export { AutocompleteItem, type AutocompleteItemProps
|
|
7
|
+
export { AutocompleteItem, type AutocompleteItemProps } from './autocomplete-item.gen.ts';
|
|
8
8
|
|
|
9
|
-
export { AutocompletePopup, type AutocompletePopupProps
|
|
9
|
+
export { AutocompletePopup, type AutocompletePopupProps } from './autocomplete-popup.gen.ts';
|
|
10
10
|
|
|
11
11
|
export { AutocompletePositioner, type AutocompletePositionerProps } from './autocomplete-positioner.gen.ts';
|
|
12
12
|
|
|
13
|
-
export { AutocompleteRoot, type AutocompleteRootProps
|
|
14
|
-
|
|
15
|
-
export { OpenChangeEvent, QueryChangeEvent, SelectEvent, ValueChangeEvent, ValuesChangeEvent } from '@prosekit/web/autocomplete';
|
|
13
|
+
export { AutocompleteRoot, type AutocompleteRootProps } from './autocomplete-root.gen.ts';
|
|
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface BlockHandleAddProps
|
|
15
|
+
export interface BlockHandleAddProps {
|
|
16
16
|
/**
|
|
17
17
|
* The ProseKit editor instance.
|
|
18
18
|
*
|
|
@@ -57,4 +57,4 @@ function BlockHandleAddComponent(props: BlockHandleAddProps, forwardedRef: Forwa
|
|
|
57
57
|
*
|
|
58
58
|
* @public
|
|
59
59
|
*/
|
|
60
|
-
export const BlockHandleAdd: ForwardRefExoticComponent<BlockHandleAddProps & RefAttributes<BlockHandleAddElement>> = /* @__PURE__ */ forwardRef(BlockHandleAddComponent);
|
|
60
|
+
export const BlockHandleAdd: ForwardRefExoticComponent<BlockHandleAddProps & HTMLAttributes<BlockHandleAddElement> & RefAttributes<BlockHandleAddElement>> = /* @__PURE__ */ forwardRef(BlockHandleAddComponent);
|
|
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface BlockHandleDraggableProps
|
|
15
|
+
export interface BlockHandleDraggableProps {
|
|
16
16
|
/**
|
|
17
17
|
* The ProseKit editor instance.
|
|
18
18
|
*
|
|
@@ -57,4 +57,4 @@ function BlockHandleDraggableComponent(props: BlockHandleDraggableProps, forward
|
|
|
57
57
|
*
|
|
58
58
|
* @public
|
|
59
59
|
*/
|
|
60
|
-
export const BlockHandleDraggable: ForwardRefExoticComponent<BlockHandleDraggableProps & RefAttributes<BlockHandleDraggableElement>> = /* @__PURE__ */ forwardRef(BlockHandleDraggableComponent);
|
|
60
|
+
export const BlockHandleDraggable: ForwardRefExoticComponent<BlockHandleDraggableProps & HTMLAttributes<BlockHandleDraggableElement> & RefAttributes<BlockHandleDraggableElement>> = /* @__PURE__ */ forwardRef(BlockHandleDraggableComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface BlockHandlePopupProps
|
|
13
|
+
export interface BlockHandlePopupProps {}
|
|
14
14
|
|
|
15
15
|
function BlockHandlePopupComponent(props: BlockHandlePopupProps, forwardedRef: ForwardedRef<BlockHandlePopupElement>) {
|
|
16
16
|
registerBlockHandlePopupElement();
|
|
@@ -39,4 +39,4 @@ function BlockHandlePopupComponent(props: BlockHandlePopupProps, forwardedRef: F
|
|
|
39
39
|
*
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
export const BlockHandlePopup: ForwardRefExoticComponent<BlockHandlePopupProps & RefAttributes<BlockHandlePopupElement>> = /* @__PURE__ */ forwardRef(BlockHandlePopupComponent);
|
|
42
|
+
export const BlockHandlePopup: ForwardRefExoticComponent<BlockHandlePopupProps & HTMLAttributes<BlockHandlePopupElement> & RefAttributes<BlockHandlePopupElement>> = /* @__PURE__ */ forwardRef(BlockHandlePopupComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface BlockHandlePositionerProps
|
|
13
|
+
export interface BlockHandlePositionerProps {
|
|
14
14
|
/**
|
|
15
15
|
* The placement of the popover, relative to the hovered block.
|
|
16
16
|
*
|
|
@@ -166,4 +166,4 @@ function BlockHandlePositionerComponent(props: BlockHandlePositionerProps, forwa
|
|
|
166
166
|
*
|
|
167
167
|
* @public
|
|
168
168
|
*/
|
|
169
|
-
export const BlockHandlePositioner: ForwardRefExoticComponent<BlockHandlePositionerProps & RefAttributes<BlockHandlePositionerElement>> = /* @__PURE__ */ forwardRef(BlockHandlePositionerComponent);
|
|
169
|
+
export const BlockHandlePositioner: ForwardRefExoticComponent<BlockHandlePositionerProps & HTMLAttributes<BlockHandlePositionerElement> & RefAttributes<BlockHandlePositionerElement>> = /* @__PURE__ */ forwardRef(BlockHandlePositionerComponent);
|
|
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface BlockHandleRootProps
|
|
15
|
+
export interface BlockHandleRootProps {
|
|
16
16
|
/**
|
|
17
17
|
* The ProseKit editor instance.
|
|
18
18
|
*
|
|
@@ -77,6 +77,4 @@ function BlockHandleRootComponent(props: BlockHandleRootProps, forwardedRef: For
|
|
|
77
77
|
*
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
|
-
export const BlockHandleRoot: ForwardRefExoticComponent<BlockHandleRootProps & RefAttributes<BlockHandleRootElement>> = /* @__PURE__ */ forwardRef(BlockHandleRootComponent);
|
|
81
|
-
|
|
82
|
-
export type { BlockHandleRootEvents };
|
|
80
|
+
export const BlockHandleRoot: ForwardRefExoticComponent<BlockHandleRootProps & HTMLAttributes<BlockHandleRootElement> & RefAttributes<BlockHandleRootElement>> = /* @__PURE__ */ forwardRef(BlockHandleRootComponent);
|
|
@@ -10,6 +10,4 @@ export { BlockHandlePopup, type BlockHandlePopupProps } from './block-handle-pop
|
|
|
10
10
|
|
|
11
11
|
export { BlockHandlePositioner, type BlockHandlePositionerProps } from './block-handle-positioner.gen.ts';
|
|
12
12
|
|
|
13
|
-
export { BlockHandleRoot, type BlockHandleRootProps
|
|
14
|
-
|
|
15
|
-
export { BlockHandleStateChangeEvent } from '@prosekit/web/block-handle';
|
|
13
|
+
export { BlockHandleRoot, type BlockHandleRootProps } from './block-handle-root.gen.ts';
|
|
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface DropIndicatorProps
|
|
15
|
+
export interface DropIndicatorProps {
|
|
16
16
|
/**
|
|
17
17
|
* The ProseKit editor instance.
|
|
18
18
|
*
|
|
@@ -63,4 +63,4 @@ function DropIndicatorComponent(props: DropIndicatorProps, forwardedRef: Forward
|
|
|
63
63
|
*
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
export const DropIndicator: ForwardRefExoticComponent<DropIndicatorProps & RefAttributes<DropIndicatorElement>> = /* @__PURE__ */ forwardRef(DropIndicatorComponent);
|
|
66
|
+
export const DropIndicator: ForwardRefExoticComponent<DropIndicatorProps & HTMLAttributes<DropIndicatorElement> & RefAttributes<DropIndicatorElement>> = /* @__PURE__ */ forwardRef(DropIndicatorComponent);
|
|
@@ -6,6 +6,4 @@ export { InlinePopoverPopup, type InlinePopoverPopupProps } from './inline-popov
|
|
|
6
6
|
|
|
7
7
|
export { InlinePopoverPositioner, type InlinePopoverPositionerProps } from './inline-popover-positioner.gen.ts';
|
|
8
8
|
|
|
9
|
-
export { InlinePopoverRoot, type InlinePopoverRootProps
|
|
10
|
-
|
|
11
|
-
export { OpenChangeEvent } from '@prosekit/web/inline-popover';
|
|
9
|
+
export { InlinePopoverRoot, type InlinePopoverRootProps } from './inline-popover-root.gen.ts';
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface InlinePopoverPopupProps
|
|
13
|
+
export interface InlinePopoverPopupProps {}
|
|
14
14
|
|
|
15
15
|
function InlinePopoverPopupComponent(props: InlinePopoverPopupProps, forwardedRef: ForwardedRef<InlinePopoverPopupElement>) {
|
|
16
16
|
registerInlinePopoverPopupElement();
|
|
@@ -39,4 +39,4 @@ function InlinePopoverPopupComponent(props: InlinePopoverPopupProps, forwardedRe
|
|
|
39
39
|
*
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
export const InlinePopoverPopup: ForwardRefExoticComponent<InlinePopoverPopupProps & RefAttributes<InlinePopoverPopupElement>> = /* @__PURE__ */ forwardRef(InlinePopoverPopupComponent);
|
|
42
|
+
export const InlinePopoverPopup: ForwardRefExoticComponent<InlinePopoverPopupProps & HTMLAttributes<InlinePopoverPopupElement> & RefAttributes<InlinePopoverPopupElement>> = /* @__PURE__ */ forwardRef(InlinePopoverPopupComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface InlinePopoverPositionerProps
|
|
13
|
+
export interface InlinePopoverPositionerProps {
|
|
14
14
|
/**
|
|
15
15
|
* The initial placement of the floating element
|
|
16
16
|
*
|
|
@@ -172,4 +172,4 @@ function InlinePopoverPositionerComponent(props: InlinePopoverPositionerProps, f
|
|
|
172
172
|
*
|
|
173
173
|
* @public
|
|
174
174
|
*/
|
|
175
|
-
export const InlinePopoverPositioner: ForwardRefExoticComponent<InlinePopoverPositionerProps & RefAttributes<InlinePopoverPositionerElement>> = /* @__PURE__ */ forwardRef(InlinePopoverPositionerComponent);
|
|
175
|
+
export const InlinePopoverPositioner: ForwardRefExoticComponent<InlinePopoverPositionerProps & HTMLAttributes<InlinePopoverPositionerElement> & RefAttributes<InlinePopoverPositionerElement>> = /* @__PURE__ */ forwardRef(InlinePopoverPositionerComponent);
|
|
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface InlinePopoverRootProps
|
|
15
|
+
export interface InlinePopoverRootProps {
|
|
16
16
|
/**
|
|
17
17
|
* The ProseKit editor instance.
|
|
18
18
|
*
|
|
@@ -44,7 +44,7 @@ export interface InlinePopoverRootProps extends HTMLAttributes<InlinePopoverRoot
|
|
|
44
44
|
* @default false
|
|
45
45
|
*/
|
|
46
46
|
disabled?: InlinePopoverRootElementProps['disabled'];
|
|
47
|
-
/** */
|
|
47
|
+
/** Emitted when the open state of the popover changes. */
|
|
48
48
|
onOpenChange?: (event: InlinePopoverRootEvents['openChange']) => void;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -101,6 +101,4 @@ function InlinePopoverRootComponent(props: InlinePopoverRootProps, forwardedRef:
|
|
|
101
101
|
*
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
|
-
export const InlinePopoverRoot: ForwardRefExoticComponent<InlinePopoverRootProps & RefAttributes<InlinePopoverRootElement>> = /* @__PURE__ */ forwardRef(InlinePopoverRootComponent);
|
|
105
|
-
|
|
106
|
-
export type { InlinePopoverRootEvents };
|
|
104
|
+
export const InlinePopoverRoot: ForwardRefExoticComponent<InlinePopoverRootProps & HTMLAttributes<InlinePopoverRootElement> & RefAttributes<InlinePopoverRootElement>> = /* @__PURE__ */ forwardRef(InlinePopoverRootComponent);
|
|
@@ -2,18 +2,16 @@
|
|
|
2
2
|
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
export { MenuItem, type MenuItemProps
|
|
5
|
+
export { MenuItem, type MenuItemProps } from './menu-item.gen.ts';
|
|
6
6
|
|
|
7
7
|
export { MenuPopup, type MenuPopupProps } from './menu-popup.gen.ts';
|
|
8
8
|
|
|
9
9
|
export { MenuPositioner, type MenuPositionerProps } from './menu-positioner.gen.ts';
|
|
10
10
|
|
|
11
|
-
export { MenuRoot, type MenuRootProps
|
|
11
|
+
export { MenuRoot, type MenuRootProps } from './menu-root.gen.ts';
|
|
12
12
|
|
|
13
13
|
export { MenuSubmenuRoot, type MenuSubmenuRootProps } from './menu-submenu-root.gen.ts';
|
|
14
14
|
|
|
15
15
|
export { MenuSubmenuTrigger, type MenuSubmenuTriggerProps } from './menu-submenu-trigger.gen.ts';
|
|
16
16
|
|
|
17
|
-
export { MenuTrigger, type MenuTriggerProps
|
|
18
|
-
|
|
19
|
-
export { OpenChangeEvent, SelectEvent } from '@prosekit/web/menu';
|
|
17
|
+
export { MenuTrigger, type MenuTriggerProps } from './menu-trigger.gen.ts';
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface MenuItemProps
|
|
13
|
+
export interface MenuItemProps {
|
|
14
14
|
/**
|
|
15
15
|
* The unique value for this menu item.
|
|
16
16
|
*
|
|
@@ -84,6 +84,4 @@ function MenuItemComponent(props: MenuItemProps, forwardedRef: ForwardedRef<Menu
|
|
|
84
84
|
*
|
|
85
85
|
* @public
|
|
86
86
|
*/
|
|
87
|
-
export const MenuItem: ForwardRefExoticComponent<MenuItemProps & RefAttributes<MenuItemElement>> = /* @__PURE__ */ forwardRef(MenuItemComponent);
|
|
88
|
-
|
|
89
|
-
export type { MenuItemEvents };
|
|
87
|
+
export const MenuItem: ForwardRefExoticComponent<MenuItemProps & Omit<HTMLAttributes<MenuItemElement>, 'onSelect'> & RefAttributes<MenuItemElement>> = /* @__PURE__ */ forwardRef(MenuItemComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface MenuPopupProps
|
|
13
|
+
export interface MenuPopupProps {
|
|
14
14
|
/**
|
|
15
15
|
* By default, the MenuPopup element will listen for keydown events.
|
|
16
16
|
* You can pass a different element to listen for keydown events.
|
|
@@ -53,4 +53,4 @@ function MenuPopupComponent(props: MenuPopupProps, forwardedRef: ForwardedRef<Me
|
|
|
53
53
|
*
|
|
54
54
|
* @public
|
|
55
55
|
*/
|
|
56
|
-
export const MenuPopup: ForwardRefExoticComponent<MenuPopupProps & RefAttributes<MenuPopupElement>> = /* @__PURE__ */ forwardRef(MenuPopupComponent);
|
|
56
|
+
export const MenuPopup: ForwardRefExoticComponent<MenuPopupProps & HTMLAttributes<MenuPopupElement> & RefAttributes<MenuPopupElement>> = /* @__PURE__ */ forwardRef(MenuPopupComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface MenuPositionerProps
|
|
13
|
+
export interface MenuPositionerProps {
|
|
14
14
|
/**
|
|
15
15
|
* The initial placement of the floating element
|
|
16
16
|
*
|
|
@@ -173,4 +173,4 @@ function MenuPositionerComponent(props: MenuPositionerProps, forwardedRef: Forwa
|
|
|
173
173
|
*
|
|
174
174
|
* @public
|
|
175
175
|
*/
|
|
176
|
-
export const MenuPositioner: ForwardRefExoticComponent<MenuPositionerProps & RefAttributes<MenuPositionerElement>> = /* @__PURE__ */ forwardRef(MenuPositionerComponent);
|
|
176
|
+
export const MenuPositioner: ForwardRefExoticComponent<MenuPositionerProps & HTMLAttributes<MenuPositionerElement> & RefAttributes<MenuPositionerElement>> = /* @__PURE__ */ forwardRef(MenuPositionerComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface MenuRootProps
|
|
13
|
+
export interface MenuRootProps {
|
|
14
14
|
/**
|
|
15
15
|
* Whether the overlay is initially open.
|
|
16
16
|
* @default false
|
|
@@ -81,6 +81,4 @@ function MenuRootComponent(props: MenuRootProps, forwardedRef: ForwardedRef<Menu
|
|
|
81
81
|
*
|
|
82
82
|
* @public
|
|
83
83
|
*/
|
|
84
|
-
export const MenuRoot: ForwardRefExoticComponent<MenuRootProps & RefAttributes<MenuRootElement>> = /* @__PURE__ */ forwardRef(MenuRootComponent);
|
|
85
|
-
|
|
86
|
-
export type { MenuRootEvents };
|
|
84
|
+
export const MenuRoot: ForwardRefExoticComponent<MenuRootProps & HTMLAttributes<MenuRootElement> & RefAttributes<MenuRootElement>> = /* @__PURE__ */ forwardRef(MenuRootComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface MenuSubmenuRootProps
|
|
13
|
+
export interface MenuSubmenuRootProps {}
|
|
14
14
|
|
|
15
15
|
function MenuSubmenuRootComponent(props: MenuSubmenuRootProps, forwardedRef: ForwardedRef<MenuSubmenuRootElement>) {
|
|
16
16
|
registerMenuSubmenuRootElement();
|
|
@@ -39,4 +39,4 @@ function MenuSubmenuRootComponent(props: MenuSubmenuRootProps, forwardedRef: For
|
|
|
39
39
|
*
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
export const MenuSubmenuRoot: ForwardRefExoticComponent<MenuSubmenuRootProps & RefAttributes<MenuSubmenuRootElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuRootComponent);
|
|
42
|
+
export const MenuSubmenuRoot: ForwardRefExoticComponent<MenuSubmenuRootProps & HTMLAttributes<MenuSubmenuRootElement> & RefAttributes<MenuSubmenuRootElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuRootComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface MenuSubmenuTriggerProps
|
|
13
|
+
export interface MenuSubmenuTriggerProps {}
|
|
14
14
|
|
|
15
15
|
function MenuSubmenuTriggerComponent(props: MenuSubmenuTriggerProps, forwardedRef: ForwardedRef<MenuSubmenuTriggerElement>) {
|
|
16
16
|
registerMenuSubmenuTriggerElement();
|
|
@@ -39,4 +39,4 @@ function MenuSubmenuTriggerComponent(props: MenuSubmenuTriggerProps, forwardedRe
|
|
|
39
39
|
*
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
export const MenuSubmenuTrigger: ForwardRefExoticComponent<MenuSubmenuTriggerProps & RefAttributes<MenuSubmenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuTriggerComponent);
|
|
42
|
+
export const MenuSubmenuTrigger: ForwardRefExoticComponent<MenuSubmenuTriggerProps & HTMLAttributes<MenuSubmenuTriggerElement> & RefAttributes<MenuSubmenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuSubmenuTriggerComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface MenuTriggerProps
|
|
13
|
+
export interface MenuTriggerProps {
|
|
14
14
|
/**
|
|
15
15
|
* Whether the component should ignore user interaction.
|
|
16
16
|
*
|
|
@@ -72,6 +72,4 @@ function MenuTriggerComponent(props: MenuTriggerProps, forwardedRef: ForwardedRe
|
|
|
72
72
|
*
|
|
73
73
|
* @public
|
|
74
74
|
*/
|
|
75
|
-
export const MenuTrigger: ForwardRefExoticComponent<MenuTriggerProps & RefAttributes<MenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuTriggerComponent);
|
|
76
|
-
|
|
77
|
-
export type { MenuTriggerEvents };
|
|
75
|
+
export const MenuTrigger: ForwardRefExoticComponent<MenuTriggerProps & HTMLAttributes<MenuTriggerElement> & RefAttributes<MenuTriggerElement>> = /* @__PURE__ */ forwardRef(MenuTriggerComponent);
|
|
@@ -6,8 +6,6 @@ export { PopoverPopup, type PopoverPopupProps } from './popover-popup.gen.ts';
|
|
|
6
6
|
|
|
7
7
|
export { PopoverPositioner, type PopoverPositionerProps } from './popover-positioner.gen.ts';
|
|
8
8
|
|
|
9
|
-
export { PopoverRoot, type PopoverRootProps
|
|
9
|
+
export { PopoverRoot, type PopoverRootProps } from './popover-root.gen.ts';
|
|
10
10
|
|
|
11
|
-
export { PopoverTrigger, type PopoverTriggerProps
|
|
12
|
-
|
|
13
|
-
export { OpenChangeEvent } from '@prosekit/web/popover';
|
|
11
|
+
export { PopoverTrigger, type PopoverTriggerProps } from './popover-trigger.gen.ts';
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface PopoverPopupProps
|
|
13
|
+
export interface PopoverPopupProps {}
|
|
14
14
|
|
|
15
15
|
function PopoverPopupComponent(props: PopoverPopupProps, forwardedRef: ForwardedRef<PopoverPopupElement>) {
|
|
16
16
|
registerPopoverPopupElement();
|
|
@@ -39,4 +39,4 @@ function PopoverPopupComponent(props: PopoverPopupProps, forwardedRef: Forwarded
|
|
|
39
39
|
*
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
export const PopoverPopup: ForwardRefExoticComponent<PopoverPopupProps & RefAttributes<PopoverPopupElement>> = /* @__PURE__ */ forwardRef(PopoverPopupComponent);
|
|
42
|
+
export const PopoverPopup: ForwardRefExoticComponent<PopoverPopupProps & HTMLAttributes<PopoverPopupElement> & RefAttributes<PopoverPopupElement>> = /* @__PURE__ */ forwardRef(PopoverPopupComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface PopoverPositionerProps
|
|
13
|
+
export interface PopoverPositionerProps {
|
|
14
14
|
/**
|
|
15
15
|
* The strategy to use for positioning
|
|
16
16
|
*
|
|
@@ -173,4 +173,4 @@ function PopoverPositionerComponent(props: PopoverPositionerProps, forwardedRef:
|
|
|
173
173
|
*
|
|
174
174
|
* @public
|
|
175
175
|
*/
|
|
176
|
-
export const PopoverPositioner: ForwardRefExoticComponent<PopoverPositionerProps & RefAttributes<PopoverPositionerElement>> = /* @__PURE__ */ forwardRef(PopoverPositionerComponent);
|
|
176
|
+
export const PopoverPositioner: ForwardRefExoticComponent<PopoverPositionerProps & HTMLAttributes<PopoverPositionerElement> & RefAttributes<PopoverPositionerElement>> = /* @__PURE__ */ forwardRef(PopoverPositionerComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface PopoverRootProps
|
|
13
|
+
export interface PopoverRootProps {
|
|
14
14
|
/**
|
|
15
15
|
* Whether the popover should be modal.
|
|
16
16
|
* When true, the popover will trap focus and prevent interaction with the rest of the page.
|
|
@@ -88,6 +88,4 @@ function PopoverRootComponent(props: PopoverRootProps, forwardedRef: ForwardedRe
|
|
|
88
88
|
*
|
|
89
89
|
* @public
|
|
90
90
|
*/
|
|
91
|
-
export const PopoverRoot: ForwardRefExoticComponent<PopoverRootProps & RefAttributes<PopoverRootElement>> = /* @__PURE__ */ forwardRef(PopoverRootComponent);
|
|
92
|
-
|
|
93
|
-
export type { PopoverRootEvents };
|
|
91
|
+
export const PopoverRoot: ForwardRefExoticComponent<PopoverRootProps & HTMLAttributes<PopoverRootElement> & RefAttributes<PopoverRootElement>> = /* @__PURE__ */ forwardRef(PopoverRootComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface PopoverTriggerProps
|
|
13
|
+
export interface PopoverTriggerProps {
|
|
14
14
|
/**
|
|
15
15
|
* Whether the component should ignore user interaction.
|
|
16
16
|
* @default false
|
|
@@ -88,6 +88,4 @@ function PopoverTriggerComponent(props: PopoverTriggerProps, forwardedRef: Forwa
|
|
|
88
88
|
*
|
|
89
89
|
* @public
|
|
90
90
|
*/
|
|
91
|
-
export const PopoverTrigger: ForwardRefExoticComponent<PopoverTriggerProps & RefAttributes<PopoverTriggerElement>> = /* @__PURE__ */ forwardRef(PopoverTriggerComponent);
|
|
92
|
-
|
|
93
|
-
export type { PopoverTriggerEvents };
|
|
91
|
+
export const PopoverTrigger: ForwardRefExoticComponent<PopoverTriggerProps & HTMLAttributes<PopoverTriggerElement> & RefAttributes<PopoverTriggerElement>> = /* @__PURE__ */ forwardRef(PopoverTriggerComponent);
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
export { ResizableRoot, type ResizableRootProps
|
|
5
|
+
export { ResizableRoot, type ResizableRootProps } from './resizable-root.gen.ts';
|
|
6
6
|
|
|
7
7
|
export { ResizableHandle, type ResizableHandleProps } from './resizable-handle.gen.ts';
|
|
8
|
-
|
|
9
|
-
export { ResizeEndEvent, ResizeStartEvent } from '@prosekit/web/resizable';
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface ResizableHandleProps
|
|
13
|
+
export interface ResizableHandleProps {
|
|
14
14
|
/**
|
|
15
15
|
* The position of the handle.
|
|
16
16
|
*
|
|
@@ -52,4 +52,4 @@ function ResizableHandleComponent(props: ResizableHandleProps, forwardedRef: For
|
|
|
52
52
|
*
|
|
53
53
|
* @public
|
|
54
54
|
*/
|
|
55
|
-
export const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & RefAttributes<ResizableHandleElement>> = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
|
|
55
|
+
export const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & HTMLAttributes<ResizableHandleElement> & RefAttributes<ResizableHandleElement>> = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface ResizableRootProps
|
|
13
|
+
export interface ResizableRootProps {
|
|
14
14
|
/**
|
|
15
15
|
* The width of the resizable element.
|
|
16
16
|
*
|
|
@@ -86,6 +86,4 @@ function ResizableRootComponent(props: ResizableRootProps, forwardedRef: Forward
|
|
|
86
86
|
*
|
|
87
87
|
* @public
|
|
88
88
|
*/
|
|
89
|
-
export const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & RefAttributes<ResizableRootElement>> = /* @__PURE__ */ forwardRef(ResizableRootComponent);
|
|
90
|
-
|
|
91
|
-
export type { ResizableRootEvents };
|
|
89
|
+
export const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & HTMLAttributes<ResizableRootElement> & RefAttributes<ResizableRootElement>> = /* @__PURE__ */ forwardRef(ResizableRootComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface TableHandleColumnMenuRootProps
|
|
13
|
+
export interface TableHandleColumnMenuRootProps {
|
|
14
14
|
/**
|
|
15
15
|
* Whether the overlay is initially open.
|
|
16
16
|
* @default false
|
|
@@ -61,4 +61,4 @@ function TableHandleColumnMenuRootComponent(props: TableHandleColumnMenuRootProp
|
|
|
61
61
|
*
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
|
-
export const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & RefAttributes<TableHandleColumnMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);
|
|
64
|
+
export const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuRootComponent);
|
|
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface TableHandleColumnMenuTriggerProps
|
|
15
|
+
export interface TableHandleColumnMenuTriggerProps {
|
|
16
16
|
/**
|
|
17
17
|
* @default null
|
|
18
18
|
* @hidden
|
|
@@ -55,4 +55,4 @@ function TableHandleColumnMenuTriggerComponent(props: TableHandleColumnMenuTrigg
|
|
|
55
55
|
*
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
export const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & RefAttributes<TableHandleColumnMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);
|
|
58
|
+
export const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnMenuTriggerComponent);
|
|
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export interface TableHandleColumnPopupProps
|
|
13
|
+
export interface TableHandleColumnPopupProps {}
|
|
14
14
|
|
|
15
15
|
function TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, forwardedRef: ForwardedRef<TableHandleColumnPopupElement>) {
|
|
16
16
|
registerTableHandleColumnPopupElement();
|
|
@@ -39,4 +39,4 @@ function TableHandleColumnPopupComponent(props: TableHandleColumnPopupProps, for
|
|
|
39
39
|
*
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
export const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & RefAttributes<TableHandleColumnPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);
|
|
42
|
+
export const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPopupComponent);
|
|
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface TableHandleColumnPositionerProps
|
|
15
|
+
export interface TableHandleColumnPositionerProps {
|
|
16
16
|
/**
|
|
17
17
|
* The placement of the popover, relative to the hovered table cell.
|
|
18
18
|
*
|
|
@@ -196,4 +196,4 @@ function TableHandleColumnPositionerComponent(props: TableHandleColumnPositioner
|
|
|
196
196
|
*
|
|
197
197
|
* @public
|
|
198
198
|
*/
|
|
199
|
-
export const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & RefAttributes<TableHandleColumnPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);
|
|
199
|
+
export const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleColumnPositionerComponent);
|