@prosekit/preact 0.2.6 → 0.2.7

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.
@@ -16,7 +16,10 @@ import { Extension } from '@prosekit/core';
16
16
  import type { InlinePopoverProps as InlinePopoverProps_2 } from '@prosekit/lit/inline-popover';
17
17
  import { Keymap } from '@prosekit/core';
18
18
  import { Options } from 'tsup';
19
+ import type { PopoverContentProps as PopoverContentProps_2 } from '@prosekit/lit/popover-content';
19
20
  import type { PopoverProps as PopoverProps_2 } from '@prosekit/lit/popover';
21
+ import type { PopoverRootProps as PopoverRootProps_2 } from '@prosekit/lit/popover-root';
22
+ import type { PopoverTriggerProps as PopoverTriggerProps_2 } from '@prosekit/lit/popover-trigger';
20
23
  import { PositioningOptions } from '@prosekit/lit/autocomplete-popover';
21
24
  import { Priority } from '@prosekit/core';
22
25
  import type { ProseMirrorNode } from '@prosekit/pm/model';
@@ -99,8 +102,20 @@ export declare type InlinePopoverProps = PropsWithChildren<PropsWithClass<Inline
99
102
 
100
103
  export declare const Popover: ComponentType<PopoverProps>;
101
104
 
105
+ export declare const PopoverContent: ComponentType<PopoverContentProps>;
106
+
107
+ export declare type PopoverContentProps = PropsWithChildren<PropsWithClass<PopoverContentProps_2>>;
108
+
102
109
  export declare type PopoverProps = PropsWithChildren<PropsWithClass<PopoverProps_2>>;
103
110
 
111
+ export declare const PopoverRoot: ComponentType<PopoverRootProps>;
112
+
113
+ export declare type PopoverRootProps = PropsWithChildren<PropsWithClass<PopoverRootProps_2>>;
114
+
115
+ export declare const PopoverTrigger: ComponentType<PopoverTriggerProps>;
116
+
117
+ export declare type PopoverTriggerProps = PropsWithChildren<PropsWithClass<PopoverTriggerProps_2>>;
118
+
104
119
  export { PositioningOptions }
105
120
 
106
121
  /**
@@ -0,0 +1,2 @@
1
+ export { PopoverContentProps } from './_tsup-dts-rollup';
2
+ export { PopoverContent } from './_tsup-dts-rollup';
@@ -0,0 +1,9 @@
1
+ // src/components/popover-content.gen.ts
2
+ import "@prosekit/lit/popover-content";
3
+ import { h } from "preact";
4
+ var PopoverContent = (props) => {
5
+ return h("prosekit-popover-content", props);
6
+ };
7
+ export {
8
+ PopoverContent
9
+ };
@@ -0,0 +1,2 @@
1
+ export { PopoverRootProps } from './_tsup-dts-rollup';
2
+ export { PopoverRoot } from './_tsup-dts-rollup';
@@ -0,0 +1,9 @@
1
+ // src/components/popover-root.gen.ts
2
+ import "@prosekit/lit/popover-root";
3
+ import { h } from "preact";
4
+ var PopoverRoot = (props) => {
5
+ return h("prosekit-popover-root", props);
6
+ };
7
+ export {
8
+ PopoverRoot
9
+ };
@@ -0,0 +1,2 @@
1
+ export { PopoverTriggerProps } from './_tsup-dts-rollup';
2
+ export { PopoverTrigger } from './_tsup-dts-rollup';
@@ -0,0 +1,9 @@
1
+ // src/components/popover-trigger.gen.ts
2
+ import "@prosekit/lit/popover-trigger";
3
+ import { h } from "preact";
4
+ var PopoverTrigger = (props) => {
5
+ return h("prosekit-popover-trigger", props);
6
+ };
7
+ export {
8
+ PopoverTrigger
9
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/preact",
3
3
  "type": "module",
4
- "version": "0.2.6",
4
+ "version": "0.2.7",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -90,6 +90,21 @@
90
90
  "import": "./dist/prosekit-preact-popover.js",
91
91
  "default": "./dist/prosekit-preact-popover.js"
92
92
  },
93
+ "./popover-content": {
94
+ "types": "./dist/prosekit-preact-popover-content.d.ts",
95
+ "import": "./dist/prosekit-preact-popover-content.js",
96
+ "default": "./dist/prosekit-preact-popover-content.js"
97
+ },
98
+ "./popover-root": {
99
+ "types": "./dist/prosekit-preact-popover-root.d.ts",
100
+ "import": "./dist/prosekit-preact-popover-root.js",
101
+ "default": "./dist/prosekit-preact-popover-root.js"
102
+ },
103
+ "./popover-trigger": {
104
+ "types": "./dist/prosekit-preact-popover-trigger.d.ts",
105
+ "import": "./dist/prosekit-preact-popover-trigger.js",
106
+ "default": "./dist/prosekit-preact-popover-trigger.js"
107
+ },
93
108
  "./resizable": {
94
109
  "types": "./dist/prosekit-preact-resizable.d.ts",
95
110
  "import": "./dist/prosekit-preact-resizable.js",
@@ -106,8 +121,8 @@
106
121
  ],
107
122
  "dependencies": {
108
123
  "@prosekit/core": "^0.4.0",
109
- "@prosekit/lit": "^0.2.6",
110
- "@prosekit/pm": "^0.1.1"
124
+ "@prosekit/lit": "^0.2.8",
125
+ "@prosekit/pm": "^0.1.2"
111
126
  },
112
127
  "peerDependencies": {
113
128
  "preact": ">= 9.0.0"
@@ -119,10 +134,10 @@
119
134
  },
120
135
  "devDependencies": {
121
136
  "@prosekit/dev": "*",
122
- "preact": "^10.19.4",
137
+ "preact": "^10.20.1",
123
138
  "tsup": "^8.0.2",
124
- "typescript": "^5.3.3",
125
- "vitest": "^1.2.2"
139
+ "typescript": "^5.4.3",
140
+ "vitest": "^1.4.0"
126
141
  },
127
142
  "scripts": {
128
143
  "build:tsup": "tsup",
@@ -170,6 +185,15 @@
170
185
  "popover": [
171
186
  "./dist/prosekit-preact-popover.d.ts"
172
187
  ],
188
+ "popover-content": [
189
+ "./dist/prosekit-preact-popover-content.d.ts"
190
+ ],
191
+ "popover-root": [
192
+ "./dist/prosekit-preact-popover-root.d.ts"
193
+ ],
194
+ "popover-trigger": [
195
+ "./dist/prosekit-preact-popover-trigger.d.ts"
196
+ ],
173
197
  "resizable": [
174
198
  "./dist/prosekit-preact-resizable.d.ts"
175
199
  ],