@prosekit/react 0.0.21 → 0.0.23

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.
@@ -25,6 +25,8 @@ import { Editor } from '@prosekit/core';
25
25
  import { Extension } from '@prosekit/core';
26
26
  import { ExtensionTyping } from '@prosekit/core';
27
27
  import type { ForwardRefExoticComponent } from 'react';
28
+ import { InlinePopover as InlinePopover_2 } from '@prosekit/lit/inline-popover';
29
+ import { InlinePopoverProps as InlinePopoverProps_2 } from '@prosekit/lit/inline-popover';
28
30
  import { Keymap } from '@prosekit/core';
29
31
  import type { NodeViewContext } from '@prosemirror-adapter/react';
30
32
  import { Options } from 'tsup';
@@ -136,6 +138,13 @@ export declare interface EditorContext {
136
138
 
137
139
  export declare const editorContext: Context<EditorContext | null>;
138
140
 
141
+ export declare const InlinePopover: ForwardRefExoticComponent<PropsWithoutRef<InlinePopoverProps> & RefAttributes<InlinePopover_2>>;
142
+
143
+ export declare type InlinePopoverProps = SimplifyUnion<{
144
+ className?: string;
145
+ children?: React_2.ReactNode;
146
+ } & InlinePopoverProps_2>;
147
+
139
148
  export declare const Popover: ForwardRefExoticComponent<PropsWithoutRef<PopoverProps> & RefAttributes<Popover_2>>;
140
149
 
141
150
  export { PopoverOptions }
@@ -0,0 +1,2 @@
1
+ export { InlinePopoverProps } from './_tsup-dts-rollup';
2
+ export { InlinePopover } from './_tsup-dts-rollup';
@@ -0,0 +1,17 @@
1
+ // src/components/inline-popover.gen.ts
2
+ import { createComponent } from "@lit/react";
3
+ import { InlinePopover as InlinePopoverElement } from "@prosekit/lit/inline-popover";
4
+ import React from "react";
5
+ var InlinePopoverInner = createComponent({
6
+ tagName: "prosekit-inline-popover",
7
+ elementClass: InlinePopoverElement,
8
+ react: React,
9
+ displayName: "InlinePopoverInner"
10
+ });
11
+ var InlinePopover = React.forwardRef((props, ref) => {
12
+ return React.createElement(InlinePopoverInner, { ...props, ref });
13
+ });
14
+ InlinePopover.displayName = "InlinePopover";
15
+ export {
16
+ InlinePopover
17
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/react",
3
3
  "type": "module",
4
- "version": "0.0.21",
4
+ "version": "0.0.23",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -75,6 +75,11 @@
75
75
  "import": "./dist/prosekit-react-combo-box-list.js",
76
76
  "default": "./dist/prosekit-react-combo-box-list.js"
77
77
  },
78
+ "./inline-popover": {
79
+ "types": "./dist/prosekit-react-inline-popover.d.ts",
80
+ "import": "./dist/prosekit-react-inline-popover.js",
81
+ "default": "./dist/prosekit-react-inline-popover.js"
82
+ },
78
83
  "./popover": {
79
84
  "types": "./dist/prosekit-react-popover.d.ts",
80
85
  "import": "./dist/prosekit-react-popover.js",
@@ -86,8 +91,8 @@
86
91
  ],
87
92
  "dependencies": {
88
93
  "@lit/react": "^1.0.1",
89
- "@prosekit/core": "^0.0.17",
90
- "@prosekit/lit": "^0.0.21",
94
+ "@prosekit/core": "^0.0.19",
95
+ "@prosekit/lit": "^0.0.23",
91
96
  "@prosemirror-adapter/react": "^0.2.6"
92
97
  },
93
98
  "peerDependencies": {
@@ -149,6 +154,9 @@
149
154
  "combo-box-list": [
150
155
  "./dist/prosekit-react-combo-box-list.d.ts"
151
156
  ],
157
+ "inline-popover": [
158
+ "./dist/prosekit-react-inline-popover.d.ts"
159
+ ],
152
160
  "popover": [
153
161
  "./dist/prosekit-react-popover.d.ts"
154
162
  ]