@prosekit/preact 0.1.2 → 0.1.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.
@@ -17,7 +17,8 @@ import { Options } from 'tsup';
|
|
17
17
|
import { PopoverOptions } from '@prosekit/lit/autocomplete-popover';
|
18
18
|
import type { PopoverProps as PopoverProps_2 } from '@prosekit/lit/popover';
|
19
19
|
import { Priority } from '@prosekit/core';
|
20
|
-
import {
|
20
|
+
import type { ResizableHandleProps as ResizableHandleProps_2 } from '@prosekit/lit/resizable-handle';
|
21
|
+
import type { ResizableProps as ResizableProps_2 } from '@prosekit/lit/resizable';
|
21
22
|
|
22
23
|
declare const AutocompleteEmpty: ComponentType<AutocompleteEmptyProps>;
|
23
24
|
export { AutocompleteEmpty }
|
@@ -69,7 +70,11 @@ export declare type ComboBoxProps = PropsWithChildren<PropsWithClass<ComboBoxPro
|
|
69
70
|
|
70
71
|
export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
71
72
|
|
72
|
-
export declare const default_alias_1:
|
73
|
+
export declare const default_alias_1: {
|
74
|
+
test: {
|
75
|
+
environment: "jsdom";
|
76
|
+
};
|
77
|
+
};
|
73
78
|
|
74
79
|
export declare interface EditorContext {
|
75
80
|
editor: Editor;
|
@@ -117,6 +122,14 @@ declare interface ProseKitProps {
|
|
117
122
|
export { ProseKitProps }
|
118
123
|
export { ProseKitProps as ProseKitProps_alias_1 }
|
119
124
|
|
125
|
+
export declare const Resizable: ComponentType<ResizableProps>;
|
126
|
+
|
127
|
+
export declare const ResizableHandle: ComponentType<ResizableHandleProps>;
|
128
|
+
|
129
|
+
export declare type ResizableHandleProps = PropsWithChildren<PropsWithClass<ResizableHandleProps_2>>;
|
130
|
+
|
131
|
+
export declare type ResizableProps = PropsWithChildren<PropsWithClass<ResizableProps_2>>;
|
132
|
+
|
120
133
|
declare function useEditor<E extends Extension = any>(): Editor<E>;
|
121
134
|
export { useEditor }
|
122
135
|
export { useEditor as useEditor_alias_1 }
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/preact",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.1.
|
4
|
+
"version": "0.1.4",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -79,14 +79,24 @@
|
|
79
79
|
"types": "./dist/prosekit-preact-popover.d.ts",
|
80
80
|
"import": "./dist/prosekit-preact-popover.js",
|
81
81
|
"default": "./dist/prosekit-preact-popover.js"
|
82
|
+
},
|
83
|
+
"./resizable": {
|
84
|
+
"types": "./dist/prosekit-preact-resizable.d.ts",
|
85
|
+
"import": "./dist/prosekit-preact-resizable.js",
|
86
|
+
"default": "./dist/prosekit-preact-resizable.js"
|
87
|
+
},
|
88
|
+
"./resizable-handle": {
|
89
|
+
"types": "./dist/prosekit-preact-resizable-handle.d.ts",
|
90
|
+
"import": "./dist/prosekit-preact-resizable-handle.js",
|
91
|
+
"default": "./dist/prosekit-preact-resizable-handle.js"
|
82
92
|
}
|
83
93
|
},
|
84
94
|
"files": [
|
85
95
|
"dist"
|
86
96
|
],
|
87
97
|
"dependencies": {
|
88
|
-
"@prosekit/core": "^0.
|
89
|
-
"@prosekit/lit": "^0.1.
|
98
|
+
"@prosekit/core": "^0.2.2",
|
99
|
+
"@prosekit/lit": "^0.1.7"
|
90
100
|
},
|
91
101
|
"peerDependencies": {
|
92
102
|
"preact": ">= 9.0.0"
|
@@ -98,10 +108,10 @@
|
|
98
108
|
},
|
99
109
|
"devDependencies": {
|
100
110
|
"@prosekit/dev": "*",
|
101
|
-
"preact": "^10.19.
|
111
|
+
"preact": "^10.19.3",
|
102
112
|
"tsup": "^8.0.1",
|
103
|
-
"typescript": "^5.3.
|
104
|
-
"vitest": "^
|
113
|
+
"typescript": "^5.3.3",
|
114
|
+
"vitest": "^1.1.3"
|
105
115
|
},
|
106
116
|
"scripts": {
|
107
117
|
"build:tsup": "tsup",
|
@@ -142,6 +152,12 @@
|
|
142
152
|
],
|
143
153
|
"popover": [
|
144
154
|
"./dist/prosekit-preact-popover.d.ts"
|
155
|
+
],
|
156
|
+
"resizable": [
|
157
|
+
"./dist/prosekit-preact-resizable.d.ts"
|
158
|
+
],
|
159
|
+
"resizable-handle": [
|
160
|
+
"./dist/prosekit-preact-resizable-handle.d.ts"
|
145
161
|
]
|
146
162
|
}
|
147
163
|
}
|