@prosekit/preact 0.0.18 → 0.0.20

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.
@@ -12,6 +12,7 @@ import { ComponentType } from 'preact';
12
12
  import { Context } from 'preact';
13
13
  import { Editor } from '@prosekit/core';
14
14
  import { Extension } from '@prosekit/core';
15
+ import type { InlinePopoverProps as InlinePopoverProps_2 } from '@prosekit/lit/inline-popover';
15
16
  import { Keymap } from '@prosekit/core';
16
17
  import { Options } from 'tsup';
17
18
  import { PopoverOptions } from '@prosekit/lit/autocomplete-popover';
@@ -107,6 +108,13 @@ export declare interface EditorContext {
107
108
 
108
109
  export declare const editorContext: Context<EditorContext | null>;
109
110
 
111
+ export declare const InlinePopover: ComponentType<InlinePopoverProps>;
112
+
113
+ export declare type InlinePopoverProps = {
114
+ class?: string;
115
+ children?: ComponentChildren;
116
+ } & InlinePopoverProps_2;
117
+
110
118
  export declare const Popover: ComponentType<PopoverProps>;
111
119
 
112
120
  export { PopoverOptions }
@@ -0,0 +1,2 @@
1
+ export { InlinePopoverProps } from './_tsup-dts-rollup';
2
+ export { InlinePopover } from './_tsup-dts-rollup';
@@ -0,0 +1,9 @@
1
+ // src/components/inline-popover.gen.ts
2
+ import "@prosekit/lit/inline-popover";
3
+ import { h } from "preact";
4
+ var InlinePopover = (props) => {
5
+ return h("prosekit-inline-popover", props);
6
+ };
7
+ export {
8
+ InlinePopover
9
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/preact",
3
3
  "type": "module",
4
- "version": "0.0.18",
4
+ "version": "0.0.20",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -75,6 +75,11 @@
75
75
  "import": "./dist/prosekit-preact-combo-box-list.js",
76
76
  "default": "./dist/prosekit-preact-combo-box-list.js"
77
77
  },
78
+ "./inline-popover": {
79
+ "types": "./dist/prosekit-preact-inline-popover.d.ts",
80
+ "import": "./dist/prosekit-preact-inline-popover.js",
81
+ "default": "./dist/prosekit-preact-inline-popover.js"
82
+ },
78
83
  "./popover": {
79
84
  "types": "./dist/prosekit-preact-popover.d.ts",
80
85
  "import": "./dist/prosekit-preact-popover.js",
@@ -85,8 +90,8 @@
85
90
  "dist"
86
91
  ],
87
92
  "dependencies": {
88
- "@prosekit/core": "^0.0.17",
89
- "@prosekit/lit": "^0.0.21"
93
+ "@prosekit/core": "^0.0.19",
94
+ "@prosekit/lit": "^0.0.23"
90
95
  },
91
96
  "peerDependencies": {
92
97
  "preact": ">= 9.0.0"
@@ -98,7 +103,7 @@
98
103
  },
99
104
  "devDependencies": {
100
105
  "@prosekit/dev": "*",
101
- "preact": "^10.18.1",
106
+ "preact": "^10.18.2",
102
107
  "tsup": "^7.2.0",
103
108
  "typescript": "^5.2.2",
104
109
  "vitest": "^0.34.6"
@@ -140,6 +145,9 @@
140
145
  "combo-box-list": [
141
146
  "./dist/prosekit-preact-combo-box-list.d.ts"
142
147
  ],
148
+ "inline-popover": [
149
+ "./dist/prosekit-preact-inline-popover.d.ts"
150
+ ],
143
151
  "popover": [
144
152
  "./dist/prosekit-preact-popover.d.ts"
145
153
  ]