@prosekit/react 0.5.3 → 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 +1 -1
- package/dist/prosekit-react-tooltip.d.ts +1 -1
- package/dist/prosekit-react.d.ts +1 -1
- package/package.json +20 -12
|
@@ -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 };
|
|
@@ -66,4 +66,4 @@ declare const TableHandleRowRoot: ForwardRefExoticComponent<TableHandleRowRootPr
|
|
|
66
66
|
interface TableHandleRowTriggerProps extends Partial<CreateProps<TableHandleRowTriggerProps$1, TableHandleRowTriggerEvents>> {}
|
|
67
67
|
declare const TableHandleRowTrigger: ForwardRefExoticComponent<TableHandleRowTriggerProps & RefAttributes<TableHandleRowTriggerElement> & HTMLAttributes<TableHandleRowTriggerElement>>;
|
|
68
68
|
//#endregion
|
|
69
|
-
export { TableHandleColumnRoot, TableHandleColumnRootProps, TableHandleColumnTrigger, TableHandleColumnTriggerProps, TableHandleDragPreview, TableHandleDragPreviewProps, TableHandleDropIndicator, TableHandleDropIndicatorProps, 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 };
|
|
@@ -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/
|
|
69
|
-
"@prosekit/web": "^0.
|
|
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
95
|
"vitest": "^3.2.4",
|
|
92
|
-
"@prosekit/config-
|
|
93
|
-
"@prosekit/config-
|
|
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
|
],
|