@prosekit/react 0.2.3 → 0.2.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.
@@ -10,6 +10,8 @@ import { AutocompleteListProps as AutocompleteListProps_2 } from '@prosekit/lit/
|
|
10
10
|
import { AutocompletePopover as AutocompletePopover_2 } from '@prosekit/lit/autocomplete-popover';
|
11
11
|
import { AutocompletePopoverProps as AutocompletePopoverProps_2 } from '@prosekit/lit/autocomplete-popover';
|
12
12
|
import { BaseNodeViewOptions } from '@prosekit/core';
|
13
|
+
import { BlockPopover as BlockPopover_2 } from '@prosekit/lit/block-popover';
|
14
|
+
import { BlockPopoverProps as BlockPopoverProps_2 } from '@prosekit/lit/block-popover';
|
13
15
|
import { ComboBox as ComboBox_2 } from '@prosekit/lit/combo-box';
|
14
16
|
import { ComboBoxInput as ComboBoxInput_2 } from '@prosekit/lit/combo-box-input';
|
15
17
|
import { ComboBoxInputProps as ComboBoxInputProps_2 } from '@prosekit/lit/combo-box-input';
|
@@ -26,6 +28,8 @@ import type { CoreNodeViewSpec } from '@prosemirror-adapter/core';
|
|
26
28
|
import type { CoreNodeViewUserOptions } from '@prosemirror-adapter/core';
|
27
29
|
import type { Decoration } from '@prosekit/pm/view';
|
28
30
|
import type { DecorationSource } from '@prosekit/pm/view';
|
31
|
+
import { DragHandle as DragHandle_2 } from '@prosekit/lit/drag-handle';
|
32
|
+
import { DragHandleProps as DragHandleProps_2 } from '@prosekit/lit/drag-handle';
|
29
33
|
import { Editor } from '@prosekit/core';
|
30
34
|
import type { EditorState } from '@prosekit/pm/state';
|
31
35
|
import type { EditorView } from '@prosekit/pm/view';
|
@@ -84,6 +88,10 @@ declare type AutocompletePopoverProps = React_2.PropsWithChildren<PropsWithClass
|
|
84
88
|
export { AutocompletePopoverProps }
|
85
89
|
export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
|
86
90
|
|
91
|
+
export declare const BlockPopover: React_2.ComponentType<BlockPopoverProps & React_2.RefAttributes<BlockPopover_2>>;
|
92
|
+
|
93
|
+
export declare type BlockPopoverProps = React_2.PropsWithChildren<PropsWithClassName<BlockPopoverProps_2>>;
|
94
|
+
|
87
95
|
export declare const ComboBox: React_2.ComponentType<ComboBoxProps & React_2.RefAttributes<ComboBox_2>>;
|
88
96
|
|
89
97
|
export declare const ComboBoxInput: React_2.ComponentType<ComboBoxInputProps & React_2.RefAttributes<ComboBoxInput_2>>;
|
@@ -128,6 +136,10 @@ export { defineReactNodeView as defineReactNodeView_alias_1 }
|
|
128
136
|
*/
|
129
137
|
export declare function defineReactNodeViewFactory(nodeViewFactory: NodeViewFactory): Extension<ExtensionTyping<string, string, CommandArgs>>;
|
130
138
|
|
139
|
+
export declare const DragHandle: React_2.ComponentType<DragHandleProps & React_2.RefAttributes<DragHandle_2>>;
|
140
|
+
|
141
|
+
export declare type DragHandleProps = React_2.PropsWithChildren<PropsWithClassName<DragHandleProps_2>>;
|
142
|
+
|
131
143
|
/**
|
132
144
|
* @internal
|
133
145
|
*/
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// src/components/block-popover.gen.ts
|
2
|
+
import { createComponent } from "@lit/react";
|
3
|
+
import { BlockPopover as BlockPopoverElement } from "@prosekit/lit/block-popover";
|
4
|
+
import React from "react";
|
5
|
+
var BlockPopoverInner = createComponent({
|
6
|
+
tagName: "prosekit-block-popover",
|
7
|
+
elementClass: BlockPopoverElement,
|
8
|
+
react: React,
|
9
|
+
displayName: "BlockPopoverInner"
|
10
|
+
});
|
11
|
+
var BlockPopover = React.forwardRef((props, ref) => {
|
12
|
+
return React.createElement(BlockPopoverInner, { ...props, ref });
|
13
|
+
});
|
14
|
+
BlockPopover.displayName = "BlockPopover";
|
15
|
+
export {
|
16
|
+
BlockPopover
|
17
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// src/components/drag-handle.gen.ts
|
2
|
+
import { createComponent } from "@lit/react";
|
3
|
+
import { DragHandle as DragHandleElement } from "@prosekit/lit/drag-handle";
|
4
|
+
import React from "react";
|
5
|
+
var DragHandleInner = createComponent({
|
6
|
+
tagName: "prosekit-drag-handle",
|
7
|
+
elementClass: DragHandleElement,
|
8
|
+
react: React,
|
9
|
+
displayName: "DragHandleInner"
|
10
|
+
});
|
11
|
+
var DragHandle = React.forwardRef((props, ref) => {
|
12
|
+
return React.createElement(DragHandleInner, { ...props, ref });
|
13
|
+
});
|
14
|
+
DragHandle.displayName = "DragHandle";
|
15
|
+
export {
|
16
|
+
DragHandle
|
17
|
+
};
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/react",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.2.
|
4
|
+
"version": "0.2.5",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -50,6 +50,11 @@
|
|
50
50
|
"import": "./dist/prosekit-react-autocomplete-popover.js",
|
51
51
|
"default": "./dist/prosekit-react-autocomplete-popover.js"
|
52
52
|
},
|
53
|
+
"./block-popover": {
|
54
|
+
"types": "./dist/prosekit-react-block-popover.d.ts",
|
55
|
+
"import": "./dist/prosekit-react-block-popover.js",
|
56
|
+
"default": "./dist/prosekit-react-block-popover.js"
|
57
|
+
},
|
53
58
|
"./combo-box": {
|
54
59
|
"types": "./dist/prosekit-react-combo-box.d.ts",
|
55
60
|
"import": "./dist/prosekit-react-combo-box.js",
|
@@ -70,6 +75,11 @@
|
|
70
75
|
"import": "./dist/prosekit-react-combo-box-list.js",
|
71
76
|
"default": "./dist/prosekit-react-combo-box-list.js"
|
72
77
|
},
|
78
|
+
"./drag-handle": {
|
79
|
+
"types": "./dist/prosekit-react-drag-handle.d.ts",
|
80
|
+
"import": "./dist/prosekit-react-drag-handle.js",
|
81
|
+
"default": "./dist/prosekit-react-drag-handle.js"
|
82
|
+
},
|
73
83
|
"./inline-popover": {
|
74
84
|
"types": "./dist/prosekit-react-inline-popover.d.ts",
|
75
85
|
"import": "./dist/prosekit-react-inline-popover.js",
|
@@ -95,9 +105,9 @@
|
|
95
105
|
"dist"
|
96
106
|
],
|
97
107
|
"dependencies": {
|
98
|
-
"@lit/react": "^1.0.
|
99
|
-
"@prosekit/core": "^0.
|
100
|
-
"@prosekit/lit": "^0.2.
|
108
|
+
"@lit/react": "^1.0.3",
|
109
|
+
"@prosekit/core": "^0.3.1",
|
110
|
+
"@prosekit/lit": "^0.2.5",
|
101
111
|
"@prosekit/pm": "^0.1.1",
|
102
112
|
"@prosemirror-adapter/core": "^0.2.6"
|
103
113
|
},
|
@@ -115,13 +125,13 @@
|
|
115
125
|
},
|
116
126
|
"devDependencies": {
|
117
127
|
"@prosekit/dev": "*",
|
118
|
-
"@types/react": "^18.2.
|
119
|
-
"@types/react-dom": "^18.2.
|
128
|
+
"@types/react": "^18.2.55",
|
129
|
+
"@types/react-dom": "^18.2.19",
|
120
130
|
"react": "^18.2.0",
|
121
131
|
"react-dom": "^18.2.0",
|
122
|
-
"tsup": "^8.0.
|
132
|
+
"tsup": "^8.0.2",
|
123
133
|
"typescript": "^5.3.3",
|
124
|
-
"vitest": "^1.2.
|
134
|
+
"vitest": "^1.2.2"
|
125
135
|
},
|
126
136
|
"scripts": {
|
127
137
|
"build:tsup": "tsup",
|
@@ -145,6 +155,9 @@
|
|
145
155
|
"autocomplete-popover": [
|
146
156
|
"./dist/prosekit-react-autocomplete-popover.d.ts"
|
147
157
|
],
|
158
|
+
"block-popover": [
|
159
|
+
"./dist/prosekit-react-block-popover.d.ts"
|
160
|
+
],
|
148
161
|
"combo-box": [
|
149
162
|
"./dist/prosekit-react-combo-box.d.ts"
|
150
163
|
],
|
@@ -157,6 +170,9 @@
|
|
157
170
|
"combo-box-list": [
|
158
171
|
"./dist/prosekit-react-combo-box-list.d.ts"
|
159
172
|
],
|
173
|
+
"drag-handle": [
|
174
|
+
"./dist/prosekit-react-drag-handle.d.ts"
|
175
|
+
],
|
160
176
|
"inline-popover": [
|
161
177
|
"./dist/prosekit-react-inline-popover.d.ts"
|
162
178
|
],
|