@prosekit/preact 0.0.13 → 0.0.15

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.
@@ -15,6 +15,7 @@ import { Extension } from '@prosekit/core';
15
15
  import { Keymap } from '@prosekit/core';
16
16
  import { Options } from 'tsup';
17
17
  import { PopoverOptions } from '@prosekit/lit/autocomplete-popover';
18
+ import type { PopoverProps as PopoverProps_2 } from '@prosekit/lit/popover';
18
19
  import { UserProjectConfigExport } from 'vitest/dist/config.js';
19
20
 
20
21
  declare const AutocompleteEmpty: ComponentType<AutocompleteEmptyProps>;
@@ -106,8 +107,15 @@ export declare interface EditorContext {
106
107
 
107
108
  export declare const editorContext: Context<EditorContext | null>;
108
109
 
110
+ export declare const Popover: ComponentType<PopoverProps>;
111
+
109
112
  export { PopoverOptions }
110
113
 
114
+ export declare type PopoverProps = {
115
+ class?: string;
116
+ children?: ComponentChildren;
117
+ } & PopoverProps_2;
118
+
111
119
  declare const ProseKit: ComponentType<ProseKitProps>;
112
120
  export { ProseKit }
113
121
  export { ProseKit as ProseKit_alias_1 }
@@ -0,0 +1,2 @@
1
+ export { PopoverProps } from './_tsup-dts-rollup';
2
+ export { Popover } from './_tsup-dts-rollup';
@@ -0,0 +1,9 @@
1
+ // src/components/popover.gen.ts
2
+ import "@prosekit/lit/popover";
3
+ import { h } from "preact";
4
+ var Popover = (props) => {
5
+ return h("prosekit-popover", props);
6
+ };
7
+ export {
8
+ Popover
9
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/preact",
3
3
  "type": "module",
4
- "version": "0.0.13",
4
+ "version": "0.0.15",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -74,14 +74,19 @@
74
74
  "types": "./dist/prosekit-preact-combo-box-list.d.ts",
75
75
  "import": "./dist/prosekit-preact-combo-box-list.js",
76
76
  "default": "./dist/prosekit-preact-combo-box-list.js"
77
+ },
78
+ "./popover": {
79
+ "types": "./dist/prosekit-preact-popover.d.ts",
80
+ "import": "./dist/prosekit-preact-popover.js",
81
+ "default": "./dist/prosekit-preact-popover.js"
77
82
  }
78
83
  },
79
84
  "files": [
80
85
  "dist"
81
86
  ],
82
87
  "dependencies": {
83
- "@prosekit/core": "^0.0.12",
84
- "@prosekit/lit": "^0.0.16"
88
+ "@prosekit/core": "^0.0.14",
89
+ "@prosekit/lit": "^0.0.18"
85
90
  },
86
91
  "peerDependencies": {
87
92
  "preact": ">= 9.0.0"
@@ -134,6 +139,9 @@
134
139
  ],
135
140
  "combo-box-list": [
136
141
  "./dist/prosekit-preact-combo-box-list.d.ts"
142
+ ],
143
+ "popover": [
144
+ "./dist/prosekit-preact-popover.d.ts"
137
145
  ]
138
146
  }
139
147
  }