@prosekit/preact 0.4.17 → 0.5.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-preact-autocomplete.d.ts +1 -1
- package/dist/prosekit-preact-block-handle.d.ts +1 -1
- package/dist/prosekit-preact-drop-indicator.d.ts +13 -0
- package/dist/prosekit-preact-drop-indicator.js +9 -0
- package/dist/prosekit-preact-inline-popover.d.ts +1 -1
- package/dist/prosekit-preact-popover.d.ts +1 -1
- package/dist/prosekit-preact-resizable.d.ts +1 -1
- package/dist/prosekit-preact-table-handle.d.ts +1 -1
- package/dist/prosekit-preact-tooltip.d.ts +1 -1
- package/dist/prosekit-preact.d.ts +1 -1
- package/package.json +14 -6
|
@@ -31,4 +31,4 @@ declare const AutocompleteList: ForwardRefExoticComponent<Partial<AutocompleteLi
|
|
|
31
31
|
interface AutocompletePopoverProps extends Partial<CreateProps<AutocompletePopoverProps$1, AutocompletePopoverEvents>> {}
|
|
32
32
|
declare const AutocompletePopover: ForwardRefExoticComponent<Partial<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<Partial<BlockHandl
|
|
|
24
24
|
interface BlockHandlePopoverProps extends Partial<CreateProps<BlockHandlePopoverProps$1, BlockHandlePopoverEvents>> {}
|
|
25
25
|
declare const BlockHandlePopover: ForwardRefExoticComponent<Partial<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 "preact/compat";
|
|
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<Partial<DropIndicatorProps> & RefAttributes<DropIndicatorElement> & HTMLAttributes<DropIndicatorElement>>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { DropIndicator, type DropIndicatorProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./editor-context-imq7MdJr.js";
|
|
2
|
+
import { createComponent } from "./create-component-D7yDR5ux.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<Partial<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<Partial<PopoverRootProps> &
|
|
|
24
24
|
interface PopoverTriggerProps extends Partial<CreateProps<PopoverTriggerProps$1, PopoverTriggerEvents>> {}
|
|
25
25
|
declare const PopoverTrigger: ForwardRefExoticComponent<Partial<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<Partial<ResizableHandle
|
|
|
17
17
|
interface ResizableRootProps extends Partial<CreateProps<ResizableRootProps$1, ResizableRootEvents>> {}
|
|
18
18
|
declare const ResizableRoot: ForwardRefExoticComponent<Partial<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<Partial<TableHandleR
|
|
|
66
66
|
interface TableHandleRowTriggerProps extends Partial<CreateProps<TableHandleRowTriggerProps$1, TableHandleRowTriggerEvents>> {}
|
|
67
67
|
declare const TableHandleRowTrigger: ForwardRefExoticComponent<Partial<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<Partial<TooltipRootProps> &
|
|
|
24
24
|
interface TooltipTriggerProps extends Partial<CreateProps<TooltipTriggerProps$1, TooltipTriggerEvents>> {}
|
|
25
25
|
declare const TooltipTrigger: ForwardRefExoticComponent<Partial<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 };
|
|
@@ -82,4 +82,4 @@ type PropsWithChildren<P = unknown> = P & {
|
|
|
82
82
|
children?: ComponentChildren | undefined;
|
|
83
83
|
};
|
|
84
84
|
//#endregion
|
|
85
|
-
export { PropsWithChildren, PropsWithClass, ProseKit, ProseKitProps, UseExtensionOptions, useDocChange, useEditor, useExtension, useKeymap, useStateUpdate };
|
|
85
|
+
export { type PropsWithChildren, type PropsWithClass, ProseKit, type ProseKitProps, type UseExtensionOptions, useDocChange, useEditor, useExtension, useKeymap, useStateUpdate };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosekit/preact",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Preact components and utilities for ProseKit",
|
|
7
7
|
"author": {
|
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
"types": "./dist/prosekit-preact-block-handle.d.ts",
|
|
39
39
|
"default": "./dist/prosekit-preact-block-handle.js"
|
|
40
40
|
},
|
|
41
|
+
"./drop-indicator": {
|
|
42
|
+
"types": "./dist/prosekit-preact-drop-indicator.d.ts",
|
|
43
|
+
"default": "./dist/prosekit-preact-drop-indicator.js"
|
|
44
|
+
},
|
|
41
45
|
"./inline-popover": {
|
|
42
46
|
"types": "./dist/prosekit-preact-inline-popover.d.ts",
|
|
43
47
|
"default": "./dist/prosekit-preact-inline-popover.js"
|
|
@@ -64,8 +68,8 @@
|
|
|
64
68
|
],
|
|
65
69
|
"dependencies": {
|
|
66
70
|
"@prosekit/core": "^0.8.3",
|
|
67
|
-
"@prosekit/
|
|
68
|
-
"@prosekit/
|
|
71
|
+
"@prosekit/web": "^0.7.0",
|
|
72
|
+
"@prosekit/pm": "^0.1.11"
|
|
69
73
|
},
|
|
70
74
|
"peerDependencies": {
|
|
71
75
|
"preact": ">= 10.11.0"
|
|
@@ -76,8 +80,8 @@
|
|
|
76
80
|
}
|
|
77
81
|
},
|
|
78
82
|
"devDependencies": {
|
|
79
|
-
"preact": "^10.
|
|
80
|
-
"tsdown": "^0.
|
|
83
|
+
"preact": "^10.27.0",
|
|
84
|
+
"tsdown": "^0.13.1",
|
|
81
85
|
"typescript": "~5.8.3",
|
|
82
86
|
"vitest": "^3.2.4",
|
|
83
87
|
"@prosekit/config-tsdown": "0.0.0",
|
|
@@ -95,7 +99,8 @@
|
|
|
95
99
|
"prosekit-preact-popover": "./src/components/popover/index.gen.ts",
|
|
96
100
|
"prosekit-preact-resizable": "./src/components/resizable/index.gen.ts",
|
|
97
101
|
"prosekit-preact-table-handle": "./src/components/table-handle/index.gen.ts",
|
|
98
|
-
"prosekit-preact-tooltip": "./src/components/tooltip/index.gen.ts"
|
|
102
|
+
"prosekit-preact-tooltip": "./src/components/tooltip/index.gen.ts",
|
|
103
|
+
"prosekit-preact-drop-indicator": "./src/components/drop-indicator/index.gen.ts"
|
|
99
104
|
}
|
|
100
105
|
},
|
|
101
106
|
"scripts": {
|
|
@@ -114,6 +119,9 @@
|
|
|
114
119
|
"block-handle": [
|
|
115
120
|
"./dist/prosekit-preact-block-handle.d.ts"
|
|
116
121
|
],
|
|
122
|
+
"drop-indicator": [
|
|
123
|
+
"./dist/prosekit-preact-drop-indicator.d.ts"
|
|
124
|
+
],
|
|
117
125
|
"inline-popover": [
|
|
118
126
|
"./dist/prosekit-preact-inline-popover.d.ts"
|
|
119
127
|
],
|