@prosekit/react 0.0.17 → 0.0.19
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.
@@ -28,7 +28,9 @@ import type { ForwardRefExoticComponent } from 'react';
|
|
28
28
|
import { Keymap } from '@prosekit/core';
|
29
29
|
import type { NodeViewContext } from '@prosemirror-adapter/react';
|
30
30
|
import { Options } from 'tsup';
|
31
|
+
import { Popover as Popover_2 } from '@prosekit/lit/popover';
|
31
32
|
import { PopoverOptions } from '@prosekit/lit/autocomplete-popover';
|
33
|
+
import { PopoverProps as PopoverProps_2 } from '@prosekit/lit/popover';
|
32
34
|
import type { PropsWithoutRef } from 'react';
|
33
35
|
import { default as React_2 } from 'react';
|
34
36
|
import type { RefAttributes } from 'react';
|
@@ -134,8 +136,15 @@ export declare interface EditorContext {
|
|
134
136
|
|
135
137
|
export declare const editorContext: Context<EditorContext | null>;
|
136
138
|
|
139
|
+
export declare const Popover: ForwardRefExoticComponent<PropsWithoutRef<PopoverProps> & RefAttributes<Popover_2>>;
|
140
|
+
|
137
141
|
export { PopoverOptions }
|
138
142
|
|
143
|
+
export declare type PopoverProps = SimplifyUnion<{
|
144
|
+
className?: string;
|
145
|
+
children?: React_2.ReactNode;
|
146
|
+
} & PopoverProps_2>;
|
147
|
+
|
139
148
|
declare const ProseKit: ComponentType<ProseKitProps>;
|
140
149
|
export { ProseKit }
|
141
150
|
export { ProseKit as ProseKit_alias_1 }
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// src/components/popover.gen.ts
|
2
|
+
import { createComponent } from "@lit/react";
|
3
|
+
import { Popover as PopoverElement } from "@prosekit/lit/popover";
|
4
|
+
import React from "react";
|
5
|
+
var PopoverInner = createComponent({
|
6
|
+
tagName: "prosekit-popover",
|
7
|
+
elementClass: PopoverElement,
|
8
|
+
react: React,
|
9
|
+
displayName: "PopoverInner"
|
10
|
+
});
|
11
|
+
var Popover = React.forwardRef((props, ref) => {
|
12
|
+
return React.createElement(PopoverInner, { ...props, ref });
|
13
|
+
});
|
14
|
+
Popover.displayName = "Popover";
|
15
|
+
export {
|
16
|
+
Popover
|
17
|
+
};
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/react",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.19",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -74,6 +74,11 @@
|
|
74
74
|
"types": "./dist/prosekit-react-combo-box-list.d.ts",
|
75
75
|
"import": "./dist/prosekit-react-combo-box-list.js",
|
76
76
|
"default": "./dist/prosekit-react-combo-box-list.js"
|
77
|
+
},
|
78
|
+
"./popover": {
|
79
|
+
"types": "./dist/prosekit-react-popover.d.ts",
|
80
|
+
"import": "./dist/prosekit-react-popover.js",
|
81
|
+
"default": "./dist/prosekit-react-popover.js"
|
77
82
|
}
|
78
83
|
},
|
79
84
|
"files": [
|
@@ -81,8 +86,8 @@
|
|
81
86
|
],
|
82
87
|
"dependencies": {
|
83
88
|
"@lit/react": "^1.0.0",
|
84
|
-
"@prosekit/core": "^0.0.
|
85
|
-
"@prosekit/lit": "^0.0.
|
89
|
+
"@prosekit/core": "^0.0.15",
|
90
|
+
"@prosekit/lit": "^0.0.19",
|
86
91
|
"@prosemirror-adapter/react": "^0.2.6"
|
87
92
|
},
|
88
93
|
"peerDependencies": {
|
@@ -143,6 +148,9 @@
|
|
143
148
|
],
|
144
149
|
"combo-box-list": [
|
145
150
|
"./dist/prosekit-react-combo-box-list.d.ts"
|
151
|
+
],
|
152
|
+
"popover": [
|
153
|
+
"./dist/prosekit-react-popover.d.ts"
|
146
154
|
]
|
147
155
|
}
|
148
156
|
}
|