@prosekit/react 0.5.2 → 0.6.0
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-react-autocomplete.d.ts +1 -1
- package/dist/prosekit-react-block-handle.d.ts +1 -1
- package/dist/prosekit-react-drop-indicator.d.ts +13 -0
- package/dist/prosekit-react-drop-indicator.js +9 -0
- package/dist/prosekit-react-inline-popover.d.ts +1 -1
- package/dist/prosekit-react-popover.d.ts +1 -1
- package/dist/prosekit-react-resizable.d.ts +1 -1
- package/dist/prosekit-react-table-handle.d.ts +16 -2
- package/dist/prosekit-react-table-handle.js +10 -2
- package/dist/prosekit-react-tooltip.d.ts +1 -1
- package/dist/prosekit-react.d.ts +1 -1
- package/package.json +21 -13
|
@@ -31,4 +31,4 @@ declare const AutocompleteList: ForwardRefExoticComponent<AutocompleteListProps
|
|
|
31
31
|
interface AutocompletePopoverProps extends Partial<CreateProps<AutocompletePopoverProps$1, AutocompletePopoverEvents>> {}
|
|
32
32
|
declare const AutocompletePopover: ForwardRefExoticComponent<AutocompletePopoverProps & RefAttributes<AutocompletePopoverElement> & HTMLAttributes<AutocompletePopoverElement>>;
|
|
33
33
|
//#endregion
|
|
34
|
-
export { AutocompleteEmpty, AutocompleteEmptyProps, AutocompleteItem, AutocompleteItemProps, AutocompleteList, AutocompleteListProps, AutocompletePopover, AutocompletePopoverProps };
|
|
34
|
+
export { AutocompleteEmpty, type AutocompleteEmptyProps, AutocompleteItem, type AutocompleteItemProps, AutocompleteList, type AutocompleteListProps, AutocompletePopover, type AutocompletePopoverProps };
|
|
@@ -24,4 +24,4 @@ declare const BlockHandleDraggable: ForwardRefExoticComponent<BlockHandleDraggab
|
|
|
24
24
|
interface BlockHandlePopoverProps extends Partial<CreateProps<BlockHandlePopoverProps$1, BlockHandlePopoverEvents>> {}
|
|
25
25
|
declare const BlockHandlePopover: ForwardRefExoticComponent<BlockHandlePopoverProps & RefAttributes<BlockHandlePopoverElement> & HTMLAttributes<BlockHandlePopoverElement>>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { BlockHandleAdd, BlockHandleAddProps, BlockHandleDraggable, BlockHandleDraggableProps, BlockHandlePopover, BlockHandlePopoverProps };
|
|
27
|
+
export { BlockHandleAdd, type BlockHandleAddProps, BlockHandleDraggable, type BlockHandleDraggableProps, BlockHandlePopover, type BlockHandlePopoverProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CreateProps } from "./create-props-CkTwd_m_.js";
|
|
2
|
+
import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
|
|
3
|
+
import { DropIndicatorElement, DropIndicatorEvents, DropIndicatorProps as DropIndicatorProps$1 } from "@prosekit/web/drop-indicator";
|
|
4
|
+
|
|
5
|
+
//#region src/components/drop-indicator/drop-indicator.gen.d.ts
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Props for the {@link DropIndicator} component.
|
|
9
|
+
*/
|
|
10
|
+
interface DropIndicatorProps extends Partial<CreateProps<DropIndicatorProps$1, DropIndicatorEvents>> {}
|
|
11
|
+
declare const DropIndicator: ForwardRefExoticComponent<DropIndicatorProps & RefAttributes<DropIndicatorElement> & HTMLAttributes<DropIndicatorElement>>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { DropIndicator, type DropIndicatorProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./editor-context-Cci4uqN_.js";
|
|
2
|
+
import { createComponent } from "./create-component-CBvs05W1.js";
|
|
3
|
+
import { dropIndicatorEvents, dropIndicatorProps } from "@prosekit/web/drop-indicator";
|
|
4
|
+
|
|
5
|
+
//#region src/components/drop-indicator/drop-indicator.gen.ts
|
|
6
|
+
const DropIndicator = createComponent("prosekit-drop-indicator", "DropIndicator", Object.keys(dropIndicatorProps), Object.keys(dropIndicatorEvents));
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { DropIndicator };
|
|
@@ -10,4 +10,4 @@ import { InlinePopoverElement, InlinePopoverEvents, InlinePopoverProps as Inline
|
|
|
10
10
|
interface InlinePopoverProps extends Partial<CreateProps<InlinePopoverProps$1, InlinePopoverEvents>> {}
|
|
11
11
|
declare const InlinePopover: ForwardRefExoticComponent<InlinePopoverProps & RefAttributes<InlinePopoverElement> & HTMLAttributes<InlinePopoverElement>>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { InlinePopover, InlinePopoverProps };
|
|
13
|
+
export { InlinePopover, type InlinePopoverProps };
|
|
@@ -24,4 +24,4 @@ declare const PopoverRoot: ForwardRefExoticComponent<PopoverRootProps & RefAttri
|
|
|
24
24
|
interface PopoverTriggerProps extends Partial<CreateProps<PopoverTriggerProps$1, PopoverTriggerEvents>> {}
|
|
25
25
|
declare const PopoverTrigger: ForwardRefExoticComponent<PopoverTriggerProps & RefAttributes<PopoverTriggerElement> & HTMLAttributes<PopoverTriggerElement>>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { PopoverContent, PopoverContentProps, PopoverRoot, PopoverRootProps, PopoverTrigger, PopoverTriggerProps };
|
|
27
|
+
export { PopoverContent, type PopoverContentProps, PopoverRoot, type PopoverRootProps, PopoverTrigger, type PopoverTriggerProps };
|
|
@@ -17,4 +17,4 @@ declare const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps &
|
|
|
17
17
|
interface ResizableRootProps extends Partial<CreateProps<ResizableRootProps$1, ResizableRootEvents>> {}
|
|
18
18
|
declare const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & RefAttributes<ResizableRootElement> & HTMLAttributes<ResizableRootElement>>;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { ResizableHandle, ResizableHandleProps, ResizableRoot, ResizableRootProps };
|
|
20
|
+
export { ResizableHandle, type ResizableHandleProps, ResizableRoot, type ResizableRootProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateProps } from "./create-props-CkTwd_m_.js";
|
|
2
2
|
import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
|
|
3
|
-
import { TableHandleColumnRootElement, TableHandleColumnRootEvents, TableHandleColumnRootProps as TableHandleColumnRootProps$1, TableHandleColumnTriggerElement, TableHandleColumnTriggerEvents, TableHandleColumnTriggerProps as TableHandleColumnTriggerProps$1, TableHandlePopoverContentElement, TableHandlePopoverContentEvents, TableHandlePopoverContentProps as TableHandlePopoverContentProps$1, TableHandlePopoverItemElement, TableHandlePopoverItemEvents, TableHandlePopoverItemProps as TableHandlePopoverItemProps$1, TableHandleRootElement, TableHandleRootEvents, TableHandleRootProps as TableHandleRootProps$1, TableHandleRowRootElement, TableHandleRowRootEvents, TableHandleRowRootProps as TableHandleRowRootProps$1, TableHandleRowTriggerElement, TableHandleRowTriggerEvents, TableHandleRowTriggerProps as TableHandleRowTriggerProps$1 } from "@prosekit/web/table-handle";
|
|
3
|
+
import { TableHandleColumnRootElement, TableHandleColumnRootEvents, TableHandleColumnRootProps as TableHandleColumnRootProps$1, TableHandleColumnTriggerElement, TableHandleColumnTriggerEvents, TableHandleColumnTriggerProps as TableHandleColumnTriggerProps$1, TableHandleDragPreviewElement, TableHandleDragPreviewEvents, TableHandleDragPreviewProps as TableHandleDragPreviewProps$1, TableHandleDropIndicatorElement, TableHandleDropIndicatorEvents, TableHandleDropIndicatorProps as TableHandleDropIndicatorProps$1, TableHandlePopoverContentElement, TableHandlePopoverContentEvents, TableHandlePopoverContentProps as TableHandlePopoverContentProps$1, TableHandlePopoverItemElement, TableHandlePopoverItemEvents, TableHandlePopoverItemProps as TableHandlePopoverItemProps$1, TableHandleRootElement, TableHandleRootEvents, TableHandleRootProps as TableHandleRootProps$1, TableHandleRowRootElement, TableHandleRowRootEvents, TableHandleRowRootProps as TableHandleRowRootProps$1, TableHandleRowTriggerElement, TableHandleRowTriggerEvents, TableHandleRowTriggerProps as TableHandleRowTriggerProps$1 } from "@prosekit/web/table-handle";
|
|
4
4
|
|
|
5
5
|
//#region src/components/table-handle/table-handle-column-root.gen.d.ts
|
|
6
6
|
|
|
@@ -17,6 +17,20 @@ declare const TableHandleColumnRoot: ForwardRefExoticComponent<TableHandleColumn
|
|
|
17
17
|
interface TableHandleColumnTriggerProps extends Partial<CreateProps<TableHandleColumnTriggerProps$1, TableHandleColumnTriggerEvents>> {}
|
|
18
18
|
declare const TableHandleColumnTrigger: ForwardRefExoticComponent<TableHandleColumnTriggerProps & RefAttributes<TableHandleColumnTriggerElement> & HTMLAttributes<TableHandleColumnTriggerElement>>;
|
|
19
19
|
//#endregion
|
|
20
|
+
//#region src/components/table-handle/table-handle-drag-preview.gen.d.ts
|
|
21
|
+
/**
|
|
22
|
+
* Props for the {@link TableHandleDragPreview} component.
|
|
23
|
+
*/
|
|
24
|
+
interface TableHandleDragPreviewProps extends Partial<CreateProps<TableHandleDragPreviewProps$1, TableHandleDragPreviewEvents>> {}
|
|
25
|
+
declare const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & RefAttributes<TableHandleDragPreviewElement> & HTMLAttributes<TableHandleDragPreviewElement>>;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/table-handle/table-handle-drop-indicator.gen.d.ts
|
|
28
|
+
/**
|
|
29
|
+
* Props for the {@link TableHandleDropIndicator} component.
|
|
30
|
+
*/
|
|
31
|
+
interface TableHandleDropIndicatorProps extends Partial<CreateProps<TableHandleDropIndicatorProps$1, TableHandleDropIndicatorEvents>> {}
|
|
32
|
+
declare const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & RefAttributes<TableHandleDropIndicatorElement> & HTMLAttributes<TableHandleDropIndicatorElement>>;
|
|
33
|
+
//#endregion
|
|
20
34
|
//#region src/components/table-handle/table-handle-popover-content.gen.d.ts
|
|
21
35
|
/**
|
|
22
36
|
* Props for the {@link TableHandlePopoverContent} component.
|
|
@@ -52,4 +66,4 @@ declare const TableHandleRowRoot: ForwardRefExoticComponent<TableHandleRowRootPr
|
|
|
52
66
|
interface TableHandleRowTriggerProps extends Partial<CreateProps<TableHandleRowTriggerProps$1, TableHandleRowTriggerEvents>> {}
|
|
53
67
|
declare const TableHandleRowTrigger: ForwardRefExoticComponent<TableHandleRowTriggerProps & RefAttributes<TableHandleRowTriggerElement> & HTMLAttributes<TableHandleRowTriggerElement>>;
|
|
54
68
|
//#endregion
|
|
55
|
-
export { TableHandleColumnRoot, TableHandleColumnRootProps, TableHandleColumnTrigger, TableHandleColumnTriggerProps, TableHandlePopoverContent, TableHandlePopoverContentProps, TableHandlePopoverItem, TableHandlePopoverItemProps, TableHandleRoot, TableHandleRootProps, TableHandleRowRoot, TableHandleRowRootProps, TableHandleRowTrigger, TableHandleRowTriggerProps };
|
|
69
|
+
export { TableHandleColumnRoot, type TableHandleColumnRootProps, TableHandleColumnTrigger, type TableHandleColumnTriggerProps, TableHandleDragPreview, type TableHandleDragPreviewProps, TableHandleDropIndicator, type TableHandleDropIndicatorProps, TableHandlePopoverContent, type TableHandlePopoverContentProps, TableHandlePopoverItem, type TableHandlePopoverItemProps, TableHandleRoot, type TableHandleRootProps, TableHandleRowRoot, type TableHandleRowRootProps, TableHandleRowTrigger, type TableHandleRowTriggerProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./editor-context-Cci4uqN_.js";
|
|
2
2
|
import { createComponent } from "./create-component-CBvs05W1.js";
|
|
3
|
-
import { tableHandleColumnRootEvents, tableHandleColumnRootProps, tableHandleColumnTriggerEvents, tableHandleColumnTriggerProps, tableHandlePopoverContentEvents, tableHandlePopoverContentProps, tableHandlePopoverItemEvents, tableHandlePopoverItemProps, tableHandleRootEvents, tableHandleRootProps, tableHandleRowRootEvents, tableHandleRowRootProps, tableHandleRowTriggerEvents, tableHandleRowTriggerProps } from "@prosekit/web/table-handle";
|
|
3
|
+
import { tableHandleColumnRootEvents, tableHandleColumnRootProps, tableHandleColumnTriggerEvents, tableHandleColumnTriggerProps, tableHandleDragPreviewEvents, tableHandleDragPreviewProps, tableHandleDropIndicatorEvents, tableHandleDropIndicatorProps, tableHandlePopoverContentEvents, tableHandlePopoverContentProps, tableHandlePopoverItemEvents, tableHandlePopoverItemProps, tableHandleRootEvents, tableHandleRootProps, tableHandleRowRootEvents, tableHandleRowRootProps, tableHandleRowTriggerEvents, tableHandleRowTriggerProps } from "@prosekit/web/table-handle";
|
|
4
4
|
|
|
5
5
|
//#region src/components/table-handle/table-handle-column-root.gen.ts
|
|
6
6
|
const TableHandleColumnRoot = createComponent("prosekit-table-handle-column-root", "TableHandleColumnRoot", Object.keys(tableHandleColumnRootProps), Object.keys(tableHandleColumnRootEvents));
|
|
@@ -9,6 +9,14 @@ const TableHandleColumnRoot = createComponent("prosekit-table-handle-column-root
|
|
|
9
9
|
//#region src/components/table-handle/table-handle-column-trigger.gen.ts
|
|
10
10
|
const TableHandleColumnTrigger = createComponent("prosekit-table-handle-column-trigger", "TableHandleColumnTrigger", Object.keys(tableHandleColumnTriggerProps), Object.keys(tableHandleColumnTriggerEvents));
|
|
11
11
|
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/table-handle/table-handle-drag-preview.gen.ts
|
|
14
|
+
const TableHandleDragPreview = createComponent("prosekit-table-handle-drag-preview", "TableHandleDragPreview", Object.keys(tableHandleDragPreviewProps), Object.keys(tableHandleDragPreviewEvents));
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/table-handle/table-handle-drop-indicator.gen.ts
|
|
18
|
+
const TableHandleDropIndicator = createComponent("prosekit-table-handle-drop-indicator", "TableHandleDropIndicator", Object.keys(tableHandleDropIndicatorProps), Object.keys(tableHandleDropIndicatorEvents));
|
|
19
|
+
|
|
12
20
|
//#endregion
|
|
13
21
|
//#region src/components/table-handle/table-handle-popover-content.gen.ts
|
|
14
22
|
const TableHandlePopoverContent = createComponent("prosekit-table-handle-popover-content", "TableHandlePopoverContent", Object.keys(tableHandlePopoverContentProps), Object.keys(tableHandlePopoverContentEvents));
|
|
@@ -30,4 +38,4 @@ const TableHandleRowRoot = createComponent("prosekit-table-handle-row-root", "Ta
|
|
|
30
38
|
const TableHandleRowTrigger = createComponent("prosekit-table-handle-row-trigger", "TableHandleRowTrigger", Object.keys(tableHandleRowTriggerProps), Object.keys(tableHandleRowTriggerEvents));
|
|
31
39
|
|
|
32
40
|
//#endregion
|
|
33
|
-
export { TableHandleColumnRoot, TableHandleColumnTrigger, TableHandlePopoverContent, TableHandlePopoverItem, TableHandleRoot, TableHandleRowRoot, TableHandleRowTrigger };
|
|
41
|
+
export { TableHandleColumnRoot, TableHandleColumnTrigger, TableHandleDragPreview, TableHandleDropIndicator, TableHandlePopoverContent, TableHandlePopoverItem, TableHandleRoot, TableHandleRowRoot, TableHandleRowTrigger };
|
|
@@ -24,4 +24,4 @@ declare const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & RefAttri
|
|
|
24
24
|
interface TooltipTriggerProps extends Partial<CreateProps<TooltipTriggerProps$1, TooltipTriggerEvents>> {}
|
|
25
25
|
declare const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & RefAttributes<TooltipTriggerElement> & HTMLAttributes<TooltipTriggerElement>>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { TooltipContent, TooltipContentProps, TooltipRoot, TooltipRootProps, TooltipTrigger, TooltipTriggerProps };
|
|
27
|
+
export { TooltipContent, type TooltipContentProps, TooltipRoot, type TooltipRootProps, TooltipTrigger, type TooltipTriggerProps };
|
package/dist/prosekit-react.d.ts
CHANGED
|
@@ -163,4 +163,4 @@ type PropsWithClassName<P = unknown> = P & {
|
|
|
163
163
|
className?: string | undefined;
|
|
164
164
|
};
|
|
165
165
|
//#endregion
|
|
166
|
-
export { PropsWithClassName, ProseKit, ProseKitProps, ReactMarkViewComponent, ReactMarkViewOptions, ReactMarkViewProps, ReactNodeViewComponent, ReactNodeViewOptions, ReactNodeViewProps, UseEditorDerivedOptions, UseExtensionOptions, defineReactMarkView, defineReactNodeView, useDocChange, useEditor, useEditorDerivedValue, useExtension, useKeymap, useStateUpdate };
|
|
166
|
+
export { type PropsWithClassName, ProseKit, type ProseKitProps, type ReactMarkViewComponent, type ReactMarkViewOptions, type ReactMarkViewProps, type ReactNodeViewComponent, type ReactNodeViewOptions, type ReactNodeViewProps, type UseEditorDerivedOptions, type UseExtensionOptions, defineReactMarkView, defineReactNodeView, useDocChange, useEditor, useEditorDerivedValue, useExtension, useKeymap, useStateUpdate };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosekit/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "React components and utilities for ProseKit",
|
|
7
7
|
"author": {
|
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
"types": "./dist/prosekit-react-block-handle.d.ts",
|
|
39
39
|
"default": "./dist/prosekit-react-block-handle.js"
|
|
40
40
|
},
|
|
41
|
+
"./drop-indicator": {
|
|
42
|
+
"types": "./dist/prosekit-react-drop-indicator.d.ts",
|
|
43
|
+
"default": "./dist/prosekit-react-drop-indicator.js"
|
|
44
|
+
},
|
|
41
45
|
"./inline-popover": {
|
|
42
46
|
"types": "./dist/prosekit-react-inline-popover.d.ts",
|
|
43
47
|
"default": "./dist/prosekit-react-inline-popover.js"
|
|
@@ -65,9 +69,9 @@
|
|
|
65
69
|
"dependencies": {
|
|
66
70
|
"@prosemirror-adapter/core": "^0.4.0",
|
|
67
71
|
"@prosemirror-adapter/react": "^0.4.1",
|
|
68
|
-
"@prosekit/core": "^0.8.
|
|
69
|
-
"@prosekit/
|
|
70
|
-
"@prosekit/
|
|
72
|
+
"@prosekit/core": "^0.8.3",
|
|
73
|
+
"@prosekit/web": "^0.7.0",
|
|
74
|
+
"@prosekit/pm": "^0.1.11"
|
|
71
75
|
},
|
|
72
76
|
"peerDependencies": {
|
|
73
77
|
"react": ">= 18.2.0",
|
|
@@ -82,15 +86,15 @@
|
|
|
82
86
|
}
|
|
83
87
|
},
|
|
84
88
|
"devDependencies": {
|
|
85
|
-
"@types/react": "^19.1.
|
|
86
|
-
"@types/react-dom": "^19.1.
|
|
87
|
-
"react": "^19.1.
|
|
88
|
-
"react-dom": "^19.1.
|
|
89
|
-
"tsdown": "^0.
|
|
89
|
+
"@types/react": "^19.1.9",
|
|
90
|
+
"@types/react-dom": "^19.1.7",
|
|
91
|
+
"react": "^19.1.1",
|
|
92
|
+
"react-dom": "^19.1.1",
|
|
93
|
+
"tsdown": "^0.13.1",
|
|
90
94
|
"typescript": "~5.8.3",
|
|
91
|
-
"vitest": "^3.2.
|
|
92
|
-
"@prosekit/config-
|
|
93
|
-
"@prosekit/config-
|
|
95
|
+
"vitest": "^3.2.4",
|
|
96
|
+
"@prosekit/config-vitest": "0.0.0",
|
|
97
|
+
"@prosekit/config-tsdown": "0.0.0"
|
|
94
98
|
},
|
|
95
99
|
"publishConfig": {
|
|
96
100
|
"dev": {}
|
|
@@ -104,7 +108,8 @@
|
|
|
104
108
|
"prosekit-react-popover": "./src/components/popover/index.gen.ts",
|
|
105
109
|
"prosekit-react-resizable": "./src/components/resizable/index.gen.ts",
|
|
106
110
|
"prosekit-react-table-handle": "./src/components/table-handle/index.gen.ts",
|
|
107
|
-
"prosekit-react-tooltip": "./src/components/tooltip/index.gen.ts"
|
|
111
|
+
"prosekit-react-tooltip": "./src/components/tooltip/index.gen.ts",
|
|
112
|
+
"prosekit-react-drop-indicator": "./src/components/drop-indicator/index.gen.ts"
|
|
108
113
|
}
|
|
109
114
|
},
|
|
110
115
|
"scripts": {
|
|
@@ -123,6 +128,9 @@
|
|
|
123
128
|
"block-handle": [
|
|
124
129
|
"./dist/prosekit-react-block-handle.d.ts"
|
|
125
130
|
],
|
|
131
|
+
"drop-indicator": [
|
|
132
|
+
"./dist/prosekit-react-drop-indicator.d.ts"
|
|
133
|
+
],
|
|
126
134
|
"inline-popover": [
|
|
127
135
|
"./dist/prosekit-react-inline-popover.d.ts"
|
|
128
136
|
],
|