@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.
Files changed (102) hide show
  1. package/dist/editor-context.js +0 -2
  2. package/dist/editor-context.js.map +1 -1
  3. package/dist/prosekit-react-autocomplete.d.ts +12 -23
  4. package/dist/prosekit-react-autocomplete.d.ts.map +1 -1
  5. package/dist/prosekit-react-autocomplete.js +28 -12
  6. package/dist/prosekit-react-autocomplete.js.map +1 -1
  7. package/dist/prosekit-react-block-handle.d.ts +12 -23
  8. package/dist/prosekit-react-block-handle.d.ts.map +1 -1
  9. package/dist/prosekit-react-block-handle.js +28 -12
  10. package/dist/prosekit-react-block-handle.js.map +1 -1
  11. package/dist/prosekit-react-drop-indicator.d.ts +2 -5
  12. package/dist/prosekit-react-drop-indicator.d.ts.map +1 -1
  13. package/dist/prosekit-react-drop-indicator.js +13 -2
  14. package/dist/prosekit-react-drop-indicator.js.map +1 -1
  15. package/dist/prosekit-react-inline-popover.d.ts +9 -16
  16. package/dist/prosekit-react-inline-popover.d.ts.map +1 -1
  17. package/dist/prosekit-react-inline-popover.js +23 -8
  18. package/dist/prosekit-react-inline-popover.js.map +1 -1
  19. package/dist/prosekit-react-menu.d.ts +16 -31
  20. package/dist/prosekit-react-menu.d.ts.map +1 -1
  21. package/dist/prosekit-react-menu.js +38 -16
  22. package/dist/prosekit-react-menu.js.map +1 -1
  23. package/dist/prosekit-react-popover.d.ts +10 -19
  24. package/dist/prosekit-react-popover.d.ts.map +1 -1
  25. package/dist/prosekit-react-popover.js +25 -10
  26. package/dist/prosekit-react-popover.js.map +1 -1
  27. package/dist/prosekit-react-resizable.d.ts +6 -11
  28. package/dist/prosekit-react-resizable.d.ts.map +1 -1
  29. package/dist/prosekit-react-resizable.js +21 -6
  30. package/dist/prosekit-react-resizable.js.map +1 -1
  31. package/dist/prosekit-react-table-handle.d.ts +22 -45
  32. package/dist/prosekit-react-table-handle.d.ts.map +1 -1
  33. package/dist/prosekit-react-table-handle.js +57 -22
  34. package/dist/prosekit-react-table-handle.js.map +1 -1
  35. package/dist/prosekit-react-tooltip.d.ts +10 -19
  36. package/dist/prosekit-react-tooltip.d.ts.map +1 -1
  37. package/dist/prosekit-react-tooltip.js +25 -10
  38. package/dist/prosekit-react-tooltip.js.map +1 -1
  39. package/dist/prosekit-react.d.ts +0 -21
  40. package/dist/prosekit-react.d.ts.map +1 -1
  41. package/dist/prosekit-react.js +1 -26
  42. package/dist/prosekit-react.js.map +1 -1
  43. package/package.json +4 -4
  44. package/src/components/autocomplete/autocomplete-empty.gen.ts +2 -2
  45. package/src/components/autocomplete/autocomplete-item.gen.ts +2 -4
  46. package/src/components/autocomplete/autocomplete-popup.gen.ts +2 -4
  47. package/src/components/autocomplete/autocomplete-positioner.gen.ts +2 -2
  48. package/src/components/autocomplete/autocomplete-root.gen.ts +2 -4
  49. package/src/components/autocomplete/index.gen.ts +3 -5
  50. package/src/components/autocomplete/index.ts +2 -0
  51. package/src/components/block-handle/block-handle-add.gen.ts +2 -2
  52. package/src/components/block-handle/block-handle-draggable.gen.ts +2 -2
  53. package/src/components/block-handle/block-handle-popup.gen.ts +2 -2
  54. package/src/components/block-handle/block-handle-positioner.gen.ts +2 -2
  55. package/src/components/block-handle/block-handle-root.gen.ts +2 -4
  56. package/src/components/block-handle/index.gen.ts +1 -3
  57. package/src/components/block-handle/index.ts +2 -0
  58. package/src/components/drop-indicator/drop-indicator.gen.ts +2 -2
  59. package/src/components/drop-indicator/index.ts +2 -0
  60. package/src/components/inline-popover/index.gen.ts +1 -3
  61. package/src/components/inline-popover/index.ts +2 -0
  62. package/src/components/inline-popover/inline-popover-popup.gen.ts +2 -2
  63. package/src/components/inline-popover/inline-popover-positioner.gen.ts +2 -2
  64. package/src/components/inline-popover/inline-popover-root.gen.ts +3 -5
  65. package/src/components/menu/index.gen.ts +3 -5
  66. package/src/components/menu/index.ts +2 -0
  67. package/src/components/menu/menu-item.gen.ts +2 -4
  68. package/src/components/menu/menu-popup.gen.ts +2 -2
  69. package/src/components/menu/menu-positioner.gen.ts +2 -2
  70. package/src/components/menu/menu-root.gen.ts +2 -4
  71. package/src/components/menu/menu-submenu-root.gen.ts +2 -2
  72. package/src/components/menu/menu-submenu-trigger.gen.ts +2 -2
  73. package/src/components/menu/menu-trigger.gen.ts +2 -4
  74. package/src/components/popover/index.gen.ts +2 -4
  75. package/src/components/popover/index.ts +2 -0
  76. package/src/components/popover/popover-popup.gen.ts +2 -2
  77. package/src/components/popover/popover-positioner.gen.ts +2 -2
  78. package/src/components/popover/popover-root.gen.ts +2 -4
  79. package/src/components/popover/popover-trigger.gen.ts +2 -4
  80. package/src/components/resizable/index.gen.ts +1 -3
  81. package/src/components/resizable/index.ts +2 -0
  82. package/src/components/resizable/resizable-handle.gen.ts +2 -2
  83. package/src/components/resizable/resizable-root.gen.ts +2 -4
  84. package/src/components/table-handle/index.ts +2 -0
  85. package/src/components/table-handle/table-handle-column-menu-root.gen.ts +2 -2
  86. package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +2 -2
  87. package/src/components/table-handle/table-handle-column-popup.gen.ts +2 -2
  88. package/src/components/table-handle/table-handle-column-positioner.gen.ts +2 -2
  89. package/src/components/table-handle/table-handle-drag-preview.gen.ts +2 -2
  90. package/src/components/table-handle/table-handle-drop-indicator.gen.ts +2 -2
  91. package/src/components/table-handle/table-handle-root.gen.ts +2 -2
  92. package/src/components/table-handle/table-handle-row-menu-root.gen.ts +2 -2
  93. package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +2 -2
  94. package/src/components/table-handle/table-handle-row-popup.gen.ts +2 -2
  95. package/src/components/table-handle/table-handle-row-positioner.gen.ts +2 -2
  96. package/src/components/tooltip/index.gen.ts +1 -3
  97. package/src/components/tooltip/index.ts +2 -0
  98. package/src/components/tooltip/tooltip-popup.gen.ts +2 -2
  99. package/src/components/tooltip/tooltip-positioner.gen.ts +2 -2
  100. package/src/components/tooltip/tooltip-root.gen.ts +2 -4
  101. package/src/components/tooltip/tooltip-trigger.gen.ts +2 -2
  102. package/src/index.ts +2 -0
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TableHandleDragPreviewProps extends HTMLAttributes<TableHandleDragPreviewElement> {
15
+ export interface TableHandleDragPreviewProps {
16
16
  /**
17
17
  * @default null
18
18
  * @hidden
@@ -55,4 +55,4 @@ function TableHandleDragPreviewComponent(props: TableHandleDragPreviewProps, for
55
55
  *
56
56
  * @public
57
57
  */
58
- export const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & RefAttributes<TableHandleDragPreviewElement>> = /* @__PURE__ */ forwardRef(TableHandleDragPreviewComponent);
58
+ export const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & HTMLAttributes<TableHandleDragPreviewElement> & RefAttributes<TableHandleDragPreviewElement>> = /* @__PURE__ */ forwardRef(TableHandleDragPreviewComponent);
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TableHandleDropIndicatorProps extends HTMLAttributes<TableHandleDropIndicatorElement> {
15
+ export interface TableHandleDropIndicatorProps {
16
16
  /**
17
17
  * @default null
18
18
  * @hidden
@@ -55,4 +55,4 @@ function TableHandleDropIndicatorComponent(props: TableHandleDropIndicatorProps,
55
55
  *
56
56
  * @public
57
57
  */
58
- export const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & RefAttributes<TableHandleDropIndicatorElement>> = /* @__PURE__ */ forwardRef(TableHandleDropIndicatorComponent);
58
+ export const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & HTMLAttributes<TableHandleDropIndicatorElement> & RefAttributes<TableHandleDropIndicatorElement>> = /* @__PURE__ */ forwardRef(TableHandleDropIndicatorComponent);
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TableHandleRootProps extends HTMLAttributes<TableHandleRootElement> {
15
+ export interface TableHandleRootProps {
16
16
  /**
17
17
  * The ProseKit editor instance.
18
18
  *
@@ -57,4 +57,4 @@ function TableHandleRootComponent(props: TableHandleRootProps, forwardedRef: For
57
57
  *
58
58
  * @public
59
59
  */
60
- export const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & RefAttributes<TableHandleRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRootComponent);
60
+ export const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & HTMLAttributes<TableHandleRootElement> & RefAttributes<TableHandleRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRootComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface TableHandleRowMenuRootProps extends HTMLAttributes<TableHandleRowMenuRootElement> {
13
+ export interface TableHandleRowMenuRootProps {
14
14
  /**
15
15
  * Whether the overlay is initially open.
16
16
  * @default false
@@ -61,4 +61,4 @@ function TableHandleRowMenuRootComponent(props: TableHandleRowMenuRootProps, for
61
61
  *
62
62
  * @public
63
63
  */
64
- export const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & RefAttributes<TableHandleRowMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuRootComponent);
64
+ export const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & HTMLAttributes<TableHandleRowMenuRootElement> & RefAttributes<TableHandleRowMenuRootElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuRootComponent);
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TableHandleRowMenuTriggerProps extends HTMLAttributes<TableHandleRowMenuTriggerElement> {
15
+ export interface TableHandleRowMenuTriggerProps {
16
16
  /**
17
17
  * @default null
18
18
  * @hidden
@@ -55,4 +55,4 @@ function TableHandleRowMenuTriggerComponent(props: TableHandleRowMenuTriggerProp
55
55
  *
56
56
  * @public
57
57
  */
58
- export const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & RefAttributes<TableHandleRowMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuTriggerComponent);
58
+ export const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & HTMLAttributes<TableHandleRowMenuTriggerElement> & RefAttributes<TableHandleRowMenuTriggerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowMenuTriggerComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface TableHandleRowPopupProps extends HTMLAttributes<TableHandleRowPopupElement> {}
13
+ export interface TableHandleRowPopupProps {}
14
14
 
15
15
  function TableHandleRowPopupComponent(props: TableHandleRowPopupProps, forwardedRef: ForwardedRef<TableHandleRowPopupElement>) {
16
16
  registerTableHandleRowPopupElement();
@@ -39,4 +39,4 @@ function TableHandleRowPopupComponent(props: TableHandleRowPopupProps, forwarded
39
39
  *
40
40
  * @public
41
41
  */
42
- export const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & RefAttributes<TableHandleRowPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPopupComponent);
42
+ export const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & HTMLAttributes<TableHandleRowPopupElement> & RefAttributes<TableHandleRowPopupElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPopupComponent);
@@ -12,7 +12,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
12
12
  *
13
13
  * @public
14
14
  */
15
- export interface TableHandleRowPositionerProps extends HTMLAttributes<TableHandleRowPositionerElement> {
15
+ export interface TableHandleRowPositionerProps {
16
16
  /**
17
17
  * The placement of the popover, relative to the hovered table cell.
18
18
  *
@@ -196,4 +196,4 @@ function TableHandleRowPositionerComponent(props: TableHandleRowPositionerProps,
196
196
  *
197
197
  * @public
198
198
  */
199
- export const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & RefAttributes<TableHandleRowPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPositionerComponent);
199
+ export const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & HTMLAttributes<TableHandleRowPositionerElement> & RefAttributes<TableHandleRowPositionerElement>> = /* @__PURE__ */ forwardRef(TableHandleRowPositionerComponent);
@@ -6,8 +6,6 @@ export { TooltipPopup, type TooltipPopupProps } from './tooltip-popup.gen.ts';
6
6
 
7
7
  export { TooltipPositioner, type TooltipPositionerProps } from './tooltip-positioner.gen.ts';
8
8
 
9
- export { TooltipRoot, type TooltipRootProps, type TooltipRootEvents } from './tooltip-root.gen.ts';
9
+ export { TooltipRoot, type TooltipRootProps } from './tooltip-root.gen.ts';
10
10
 
11
11
  export { TooltipTrigger, type TooltipTriggerProps } from './tooltip-trigger.gen.ts';
12
-
13
- export { OpenChangeEvent } from '@prosekit/web/tooltip';
@@ -21,4 +21,6 @@ import {
21
21
  ```
22
22
  */
23
23
 
24
+ 'use client'
25
+
24
26
  export * from './index.gen.ts'
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface TooltipPopupProps extends HTMLAttributes<TooltipPopupElement> {}
13
+ export interface TooltipPopupProps {}
14
14
 
15
15
  function TooltipPopupComponent(props: TooltipPopupProps, forwardedRef: ForwardedRef<TooltipPopupElement>) {
16
16
  registerTooltipPopupElement();
@@ -39,4 +39,4 @@ function TooltipPopupComponent(props: TooltipPopupProps, forwardedRef: Forwarded
39
39
  *
40
40
  * @public
41
41
  */
42
- export const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & RefAttributes<TooltipPopupElement>> = /* @__PURE__ */ forwardRef(TooltipPopupComponent);
42
+ export const TooltipPopup: ForwardRefExoticComponent<TooltipPopupProps & HTMLAttributes<TooltipPopupElement> & RefAttributes<TooltipPopupElement>> = /* @__PURE__ */ forwardRef(TooltipPopupComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface TooltipPositionerProps extends HTMLAttributes<TooltipPositionerElement> {
13
+ export interface TooltipPositionerProps {
14
14
  /**
15
15
  * The strategy to use for positioning
16
16
  *
@@ -173,4 +173,4 @@ function TooltipPositionerComponent(props: TooltipPositionerProps, forwardedRef:
173
173
  *
174
174
  * @public
175
175
  */
176
- export const TooltipPositioner: ForwardRefExoticComponent<TooltipPositionerProps & RefAttributes<TooltipPositionerElement>> = /* @__PURE__ */ forwardRef(TooltipPositionerComponent);
176
+ export const TooltipPositioner: ForwardRefExoticComponent<TooltipPositionerProps & HTMLAttributes<TooltipPositionerElement> & RefAttributes<TooltipPositionerElement>> = /* @__PURE__ */ forwardRef(TooltipPositionerComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface TooltipRootProps extends HTMLAttributes<TooltipRootElement> {
13
+ export interface TooltipRootProps {
14
14
  /**
15
15
  * Whether the overlay is initially open.
16
16
  * @default false
@@ -81,6 +81,4 @@ function TooltipRootComponent(props: TooltipRootProps, forwardedRef: ForwardedRe
81
81
  *
82
82
  * @public
83
83
  */
84
- export const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & RefAttributes<TooltipRootElement>> = /* @__PURE__ */ forwardRef(TooltipRootComponent);
85
-
86
- export type { TooltipRootEvents };
84
+ export const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & HTMLAttributes<TooltipRootElement> & RefAttributes<TooltipRootElement>> = /* @__PURE__ */ forwardRef(TooltipRootComponent);
@@ -10,7 +10,7 @@ import { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type
10
10
  *
11
11
  * @public
12
12
  */
13
- export interface TooltipTriggerProps extends HTMLAttributes<TooltipTriggerElement> {
13
+ export interface TooltipTriggerProps {
14
14
  /**
15
15
  * Whether the component should ignore user interaction.
16
16
  * @default false
@@ -61,4 +61,4 @@ function TooltipTriggerComponent(props: TooltipTriggerProps, forwardedRef: Forwa
61
61
  *
62
62
  * @public
63
63
  */
64
- export const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & RefAttributes<TooltipTriggerElement>> = /* @__PURE__ */ forwardRef(TooltipTriggerComponent);
64
+ export const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & HTMLAttributes<TooltipTriggerElement> & RefAttributes<TooltipTriggerElement>> = /* @__PURE__ */ forwardRef(TooltipTriggerComponent);
package/src/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ 'use client'
2
+
1
3
  export { ProseKit, type ProseKitProps } from './components/prosekit.ts'
2
4
  export {
3
5
  defineReactMarkView,