@prosekit/preact 0.2.4 → 0.2.5

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.
@@ -2,12 +2,14 @@ import type { AutocompleteEmptyProps as AutocompleteEmptyProps_2 } from '@prosek
2
2
  import type { AutocompleteItemProps as AutocompleteItemProps_2 } from '@prosekit/lit/autocomplete-item';
3
3
  import type { AutocompleteListProps as AutocompleteListProps_2 } from '@prosekit/lit/autocomplete-list';
4
4
  import type { AutocompletePopoverProps as AutocompletePopoverProps_2 } from '@prosekit/lit/autocomplete-popover';
5
+ import type { BlockPopoverProps as BlockPopoverProps_2 } from '@prosekit/lit/block-popover';
5
6
  import type { ComboBoxInputProps as ComboBoxInputProps_2 } from '@prosekit/lit/combo-box-input';
6
7
  import type { ComboBoxItemProps as ComboBoxItemProps_2 } from '@prosekit/lit/combo-box-item';
7
8
  import type { ComboBoxListProps as ComboBoxListProps_2 } from '@prosekit/lit/combo-box-list';
8
9
  import type { ComboBoxProps as ComboBoxProps_2 } from '@prosekit/lit/combo-box';
9
10
  import { ComponentChildren } from 'preact';
10
11
  import { ComponentType } from 'preact';
12
+ import type { DragHandleProps as DragHandleProps_2 } from '@prosekit/lit/drag-handle';
11
13
  import { Editor } from '@prosekit/core';
12
14
  import type { EditorState } from '@prosekit/pm/state';
13
15
  import { Extension } from '@prosekit/core';
@@ -54,6 +56,10 @@ declare type AutocompletePopoverProps = PropsWithChildren<PropsWithClass<Autocom
54
56
  export { AutocompletePopoverProps }
55
57
  export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
56
58
 
59
+ export declare const BlockPopover: ComponentType<BlockPopoverProps>;
60
+
61
+ export declare type BlockPopoverProps = PropsWithChildren<PropsWithClass<BlockPopoverProps_2>>;
62
+
57
63
  export declare const ComboBox: ComponentType<ComboBoxProps>;
58
64
 
59
65
  export declare const ComboBoxInput: ComponentType<ComboBoxInputProps>;
@@ -78,6 +84,10 @@ export declare const default_alias_1: {
78
84
  };
79
85
  };
80
86
 
87
+ export declare const DragHandle: ComponentType<DragHandleProps>;
88
+
89
+ export declare type DragHandleProps = PropsWithChildren<PropsWithClass<DragHandleProps_2>>;
90
+
81
91
  /**
82
92
  * @internal
83
93
  */
@@ -0,0 +1,2 @@
1
+ export { BlockPopoverProps } from './_tsup-dts-rollup';
2
+ export { BlockPopover } from './_tsup-dts-rollup';
@@ -0,0 +1,9 @@
1
+ // src/components/block-popover.gen.ts
2
+ import "@prosekit/lit/block-popover";
3
+ import { h } from "preact";
4
+ var BlockPopover = (props) => {
5
+ return h("prosekit-block-popover", props);
6
+ };
7
+ export {
8
+ BlockPopover
9
+ };
@@ -0,0 +1,2 @@
1
+ export { DragHandleProps } from './_tsup-dts-rollup';
2
+ export { DragHandle } from './_tsup-dts-rollup';
@@ -0,0 +1,9 @@
1
+ // src/components/drag-handle.gen.ts
2
+ import "@prosekit/lit/drag-handle";
3
+ import { h } from "preact";
4
+ var DragHandle = (props) => {
5
+ return h("prosekit-drag-handle", props);
6
+ };
7
+ export {
8
+ DragHandle
9
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/preact",
3
3
  "type": "module",
4
- "version": "0.2.4",
4
+ "version": "0.2.5",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -50,6 +50,11 @@
50
50
  "import": "./dist/prosekit-preact-autocomplete-popover.js",
51
51
  "default": "./dist/prosekit-preact-autocomplete-popover.js"
52
52
  },
53
+ "./block-popover": {
54
+ "types": "./dist/prosekit-preact-block-popover.d.ts",
55
+ "import": "./dist/prosekit-preact-block-popover.js",
56
+ "default": "./dist/prosekit-preact-block-popover.js"
57
+ },
53
58
  "./combo-box": {
54
59
  "types": "./dist/prosekit-preact-combo-box.d.ts",
55
60
  "import": "./dist/prosekit-preact-combo-box.js",
@@ -70,6 +75,11 @@
70
75
  "import": "./dist/prosekit-preact-combo-box-list.js",
71
76
  "default": "./dist/prosekit-preact-combo-box-list.js"
72
77
  },
78
+ "./drag-handle": {
79
+ "types": "./dist/prosekit-preact-drag-handle.d.ts",
80
+ "import": "./dist/prosekit-preact-drag-handle.js",
81
+ "default": "./dist/prosekit-preact-drag-handle.js"
82
+ },
73
83
  "./inline-popover": {
74
84
  "types": "./dist/prosekit-preact-inline-popover.d.ts",
75
85
  "import": "./dist/prosekit-preact-inline-popover.js",
@@ -95,8 +105,8 @@
95
105
  "dist"
96
106
  ],
97
107
  "dependencies": {
98
- "@prosekit/core": "^0.3.0",
99
- "@prosekit/lit": "^0.2.2",
108
+ "@prosekit/core": "^0.3.1",
109
+ "@prosekit/lit": "^0.2.5",
100
110
  "@prosekit/pm": "^0.1.1"
101
111
  },
102
112
  "peerDependencies": {
@@ -109,8 +119,8 @@
109
119
  },
110
120
  "devDependencies": {
111
121
  "@prosekit/dev": "*",
112
- "preact": "^10.19.3",
113
- "tsup": "^8.0.1",
122
+ "preact": "^10.19.4",
123
+ "tsup": "^8.0.2",
114
124
  "typescript": "^5.3.3",
115
125
  "vitest": "^1.2.2"
116
126
  },
@@ -136,6 +146,9 @@
136
146
  "autocomplete-popover": [
137
147
  "./dist/prosekit-preact-autocomplete-popover.d.ts"
138
148
  ],
149
+ "block-popover": [
150
+ "./dist/prosekit-preact-block-popover.d.ts"
151
+ ],
139
152
  "combo-box": [
140
153
  "./dist/prosekit-preact-combo-box.d.ts"
141
154
  ],
@@ -148,6 +161,9 @@
148
161
  "combo-box-list": [
149
162
  "./dist/prosekit-preact-combo-box-list.d.ts"
150
163
  ],
164
+ "drag-handle": [
165
+ "./dist/prosekit-preact-drag-handle.d.ts"
166
+ ],
151
167
  "inline-popover": [
152
168
  "./dist/prosekit-preact-inline-popover.d.ts"
153
169
  ],