@prosekit/solid 0.1.4 → 0.1.5
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/_tsup-dts-rollup.d.ts +10 -0
- package/dist/prosekit-solid-resizable-handle.d.ts +2 -0
- package/dist/prosekit-solid-resizable-handle.js +13 -0
- package/dist/prosekit-solid-resizable.d.ts +2 -0
- package/dist/prosekit-solid-resizable.js +13 -0
- package/dist/prosekit-solid.js +1 -1
- package/package.json +21 -5
@@ -18,6 +18,8 @@ import { ParentProps } from 'solid-js';
|
|
18
18
|
import { PopoverOptions } from '@prosekit/lit/autocomplete-popover';
|
19
19
|
import type { PopoverProps as PopoverProps_2 } from '@prosekit/lit/popover';
|
20
20
|
import { Priority } from '@prosekit/core';
|
21
|
+
import type { ResizableHandleProps as ResizableHandleProps_2 } from '@prosekit/lit/resizable-handle';
|
22
|
+
import type { ResizableProps as ResizableProps_2 } from '@prosekit/lit/resizable';
|
21
23
|
|
22
24
|
declare const AutocompleteEmpty: Component<AutocompleteEmptyProps>;
|
23
25
|
export { AutocompleteEmpty }
|
@@ -121,6 +123,14 @@ declare type ProseKitProps = ParentProps<{
|
|
121
123
|
export { ProseKitProps }
|
122
124
|
export { ProseKitProps as ProseKitProps_alias_1 }
|
123
125
|
|
126
|
+
export declare const Resizable: Component<ResizableProps>;
|
127
|
+
|
128
|
+
export declare const ResizableHandle: Component<ResizableHandleProps>;
|
129
|
+
|
130
|
+
export declare type ResizableHandleProps = PropsWithChildren<PropsWithClass<ResizableHandleProps_2>>;
|
131
|
+
|
132
|
+
export declare type ResizableProps = PropsWithChildren<PropsWithClass<ResizableProps_2>>;
|
133
|
+
|
124
134
|
declare function useEditor<E extends Extension = any>(options?: {
|
125
135
|
update?: boolean;
|
126
136
|
}): () => Editor<E>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import {
|
2
|
+
forceProps
|
3
|
+
} from "./chunk-RLHZTH3K.js";
|
4
|
+
|
5
|
+
// src/components/resizable-handle.gen.ts
|
6
|
+
import "@prosekit/lit/resizable-handle";
|
7
|
+
import html from "solid-js/html";
|
8
|
+
var ResizableHandle = (props) => {
|
9
|
+
return html`<prosekit-resizable-handle ...${forceProps(props)} />`;
|
10
|
+
};
|
11
|
+
export {
|
12
|
+
ResizableHandle
|
13
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import {
|
2
|
+
forceProps
|
3
|
+
} from "./chunk-RLHZTH3K.js";
|
4
|
+
|
5
|
+
// src/components/resizable.gen.ts
|
6
|
+
import "@prosekit/lit/resizable";
|
7
|
+
import html from "solid-js/html";
|
8
|
+
var Resizable = (props) => {
|
9
|
+
return html`<prosekit-resizable ...${forceProps(props)} />`;
|
10
|
+
};
|
11
|
+
export {
|
12
|
+
Resizable
|
13
|
+
};
|
package/dist/prosekit-solid.js
CHANGED
@@ -24,7 +24,7 @@ import {
|
|
24
24
|
ProseKitError,
|
25
25
|
defineUpdateHandler
|
26
26
|
} from "@prosekit/core";
|
27
|
-
import {
|
27
|
+
import { createEffect, createSignal, useContext } from "solid-js";
|
28
28
|
function useEditor(options) {
|
29
29
|
var _a;
|
30
30
|
const update = (_a = options == null ? void 0 : options.update) != null ? _a : false;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/solid",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.1.
|
4
|
+
"version": "0.1.5",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -79,14 +79,24 @@
|
|
79
79
|
"types": "./dist/prosekit-solid-popover.d.ts",
|
80
80
|
"import": "./dist/prosekit-solid-popover.js",
|
81
81
|
"default": "./dist/prosekit-solid-popover.js"
|
82
|
+
},
|
83
|
+
"./resizable": {
|
84
|
+
"types": "./dist/prosekit-solid-resizable.d.ts",
|
85
|
+
"import": "./dist/prosekit-solid-resizable.js",
|
86
|
+
"default": "./dist/prosekit-solid-resizable.js"
|
87
|
+
},
|
88
|
+
"./resizable-handle": {
|
89
|
+
"types": "./dist/prosekit-solid-resizable-handle.d.ts",
|
90
|
+
"import": "./dist/prosekit-solid-resizable-handle.js",
|
91
|
+
"default": "./dist/prosekit-solid-resizable-handle.js"
|
82
92
|
}
|
83
93
|
},
|
84
94
|
"files": [
|
85
95
|
"dist"
|
86
96
|
],
|
87
97
|
"dependencies": {
|
88
|
-
"@prosekit/core": "^0.2.
|
89
|
-
"@prosekit/lit": "^0.1.
|
98
|
+
"@prosekit/core": "^0.2.2",
|
99
|
+
"@prosekit/lit": "^0.1.7"
|
90
100
|
},
|
91
101
|
"peerDependencies": {
|
92
102
|
"solid-js": ">= 1.7.0"
|
@@ -98,10 +108,10 @@
|
|
98
108
|
},
|
99
109
|
"devDependencies": {
|
100
110
|
"@prosekit/dev": "*",
|
101
|
-
"solid-js": "^1.8.
|
111
|
+
"solid-js": "^1.8.8",
|
102
112
|
"tsup": "^8.0.1",
|
103
113
|
"typescript": "^5.3.3",
|
104
|
-
"vitest": "^1.1.
|
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-solid-popover.d.ts"
|
155
|
+
],
|
156
|
+
"resizable": [
|
157
|
+
"./dist/prosekit-solid-resizable.d.ts"
|
158
|
+
],
|
159
|
+
"resizable-handle": [
|
160
|
+
"./dist/prosekit-solid-resizable-handle.d.ts"
|
145
161
|
]
|
146
162
|
}
|
147
163
|
}
|