@prosekit/preact 0.0.7 → 0.0.9

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.
@@ -0,0 +1,140 @@
1
+ import type { AutocompleteEmptyProps as AutocompleteEmptyProps_2 } from '@prosekit/lit/components/autocomplete-empty';
2
+ import type { AutocompleteItemProps as AutocompleteItemProps_2 } from '@prosekit/lit/components/autocomplete-item';
3
+ import type { AutocompleteListProps as AutocompleteListProps_2 } from '@prosekit/lit/components/autocomplete-list';
4
+ import type { AutocompletePopoverProps as AutocompletePopoverProps_2 } from '@prosekit/lit/components/autocomplete-popover';
5
+ import type { CodeBlockPopoverProps as CodeBlockPopoverProps_2 } from '@prosekit/lit/components/code-block-popover';
6
+ import type { ComboBoxInputProps as ComboBoxInputProps_2 } from '@prosekit/lit/components/combo-box-input';
7
+ import type { ComboBoxItemProps as ComboBoxItemProps_2 } from '@prosekit/lit/components/combo-box-item';
8
+ import type { ComboBoxListProps as ComboBoxListProps_2 } from '@prosekit/lit/components/combo-box-list';
9
+ import type { ComboBoxProps as ComboBoxProps_2 } from '@prosekit/lit/components/combo-box';
10
+ import { ComponentChildren } from 'preact';
11
+ import { ComponentType } from 'preact';
12
+ import { Context } from 'preact';
13
+ import { Editor } from '@prosekit/core';
14
+ import { Extension } from '@prosekit/core';
15
+ import { Keymap } from '@prosekit/core';
16
+ import { Options } from 'tsup';
17
+ import { PopoverOptions } from '@prosekit/lit/components/autocomplete-popover';
18
+ import { UserProjectConfigExport } from 'vitest/dist/config.js';
19
+
20
+ declare const AutocompleteEmpty: ComponentType<AutocompleteEmptyProps>;
21
+ export { AutocompleteEmpty }
22
+ export { AutocompleteEmpty as AutocompleteEmpty_alias_1 }
23
+
24
+ declare type AutocompleteEmptyProps = {
25
+ class?: string;
26
+ children?: ComponentChildren;
27
+ } & AutocompleteEmptyProps_2;
28
+ export { AutocompleteEmptyProps }
29
+ export { AutocompleteEmptyProps as AutocompleteEmptyProps_alias_1 }
30
+
31
+ declare const AutocompleteItem: ComponentType<AutocompleteItemProps>;
32
+ export { AutocompleteItem }
33
+ export { AutocompleteItem as AutocompleteItem_alias_1 }
34
+
35
+ declare type AutocompleteItemProps = {
36
+ class?: string;
37
+ children?: ComponentChildren;
38
+ } & AutocompleteItemProps_2;
39
+ export { AutocompleteItemProps }
40
+ export { AutocompleteItemProps as AutocompleteItemProps_alias_1 }
41
+
42
+ declare const AutocompleteList: ComponentType<AutocompleteListProps>;
43
+ export { AutocompleteList }
44
+ export { AutocompleteList as AutocompleteList_alias_1 }
45
+
46
+ declare type AutocompleteListProps = {
47
+ class?: string;
48
+ children?: ComponentChildren;
49
+ } & AutocompleteListProps_2;
50
+ export { AutocompleteListProps }
51
+ export { AutocompleteListProps as AutocompleteListProps_alias_1 }
52
+
53
+ declare const AutocompletePopover: ComponentType<AutocompletePopoverProps>;
54
+ export { AutocompletePopover }
55
+ export { AutocompletePopover as AutocompletePopover_alias_1 }
56
+
57
+ declare type AutocompletePopoverProps = {
58
+ class?: string;
59
+ children?: ComponentChildren;
60
+ } & AutocompletePopoverProps_2;
61
+ export { AutocompletePopoverProps }
62
+ export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
63
+
64
+ export declare const CodeBlockPopover: ComponentType<CodeBlockPopoverProps>;
65
+
66
+ export declare type CodeBlockPopoverProps = {
67
+ class?: string;
68
+ children?: ComponentChildren;
69
+ } & CodeBlockPopoverProps_2;
70
+
71
+ export declare const ComboBox: ComponentType<ComboBoxProps>;
72
+
73
+ export declare const ComboBoxInput: ComponentType<ComboBoxInputProps>;
74
+
75
+ export declare type ComboBoxInputProps = {
76
+ class?: string;
77
+ children?: ComponentChildren;
78
+ } & ComboBoxInputProps_2;
79
+
80
+ export declare const ComboBoxItem: ComponentType<ComboBoxItemProps>;
81
+
82
+ export declare type ComboBoxItemProps = {
83
+ class?: string;
84
+ children?: ComponentChildren;
85
+ } & ComboBoxItemProps_2;
86
+
87
+ export declare const ComboBoxList: ComponentType<ComboBoxListProps>;
88
+
89
+ export declare type ComboBoxListProps = {
90
+ class?: string;
91
+ children?: ComponentChildren;
92
+ } & ComboBoxListProps_2;
93
+
94
+ export declare type ComboBoxProps = {
95
+ class?: string;
96
+ children?: ComponentChildren;
97
+ } & ComboBoxProps_2;
98
+
99
+ export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
100
+
101
+ export declare const default_alias_1: UserProjectConfigExport;
102
+
103
+ export declare interface EditorContext {
104
+ editor: Editor;
105
+ }
106
+
107
+ export declare const editorContext: Context<EditorContext | null>;
108
+
109
+ export { PopoverOptions }
110
+
111
+ declare const ProseKit: ComponentType<ProseKitProps>;
112
+ export { ProseKit }
113
+ export { ProseKit as ProseKit_alias_1 }
114
+
115
+ declare interface ProseKitProps {
116
+ editor: Editor;
117
+ children?: ComponentChildren;
118
+ }
119
+ export { ProseKitProps }
120
+ export { ProseKitProps as ProseKitProps_alias_1 }
121
+
122
+ declare function useEditor<E extends Extension = any>(): Editor<E>;
123
+ export { useEditor }
124
+ export { useEditor as useEditor_alias_1 }
125
+
126
+ declare function useExtension({ extension }: UseExtensionProps): void;
127
+ export { useExtension }
128
+ export { useExtension as useExtension_alias_1 }
129
+
130
+ declare interface UseExtensionProps<T extends Extension = Extension> {
131
+ extension: T;
132
+ }
133
+
134
+ declare function useKeymap({ keymap }: {
135
+ keymap: Keymap;
136
+ }): void;
137
+ export { useKeymap }
138
+ export { useKeymap as useKeymap_alias_1 }
139
+
140
+ export { }
@@ -1,10 +1,2 @@
1
- import { AutocompleteEmptyProps as AutocompleteEmptyProps$1 } from '@prosekit/lit/components/autocomplete-empty';
2
- import { ComponentChildren, ComponentType } from 'preact';
3
-
4
- type AutocompleteEmptyProps = {
5
- class?: string;
6
- children?: ComponentChildren;
7
- } & AutocompleteEmptyProps$1;
8
- declare const AutocompleteEmpty: ComponentType<AutocompleteEmptyProps>;
9
-
10
- export { AutocompleteEmpty, AutocompleteEmptyProps };
1
+ export { AutocompleteEmpty_alias_1 as AutocompleteEmpty } from './_tsup-dts-rollup';
2
+ export { AutocompleteEmptyProps_alias_1 as AutocompleteEmptyProps } from './_tsup-dts-rollup';
@@ -1,10 +1,2 @@
1
- import { AutocompleteItemProps as AutocompleteItemProps$1 } from '@prosekit/lit/components/autocomplete-item';
2
- import { ComponentChildren, ComponentType } from 'preact';
3
-
4
- type AutocompleteItemProps = {
5
- class?: string;
6
- children?: ComponentChildren;
7
- } & AutocompleteItemProps$1;
8
- declare const AutocompleteItem: ComponentType<AutocompleteItemProps>;
9
-
10
- export { AutocompleteItem, AutocompleteItemProps };
1
+ export { AutocompleteItem_alias_1 as AutocompleteItem } from './_tsup-dts-rollup';
2
+ export { AutocompleteItemProps_alias_1 as AutocompleteItemProps } from './_tsup-dts-rollup';
@@ -1,10 +1,2 @@
1
- import { AutocompleteListProps as AutocompleteListProps$1 } from '@prosekit/lit/components/autocomplete-list';
2
- import { ComponentChildren, ComponentType } from 'preact';
3
-
4
- type AutocompleteListProps = {
5
- class?: string;
6
- children?: ComponentChildren;
7
- } & AutocompleteListProps$1;
8
- declare const AutocompleteList: ComponentType<AutocompleteListProps>;
9
-
10
- export { AutocompleteList, AutocompleteListProps };
1
+ export { AutocompleteList_alias_1 as AutocompleteList } from './_tsup-dts-rollup';
2
+ export { AutocompleteListProps_alias_1 as AutocompleteListProps } from './_tsup-dts-rollup';
@@ -1,11 +1,3 @@
1
- import { AutocompletePopoverProps as AutocompletePopoverProps$1 } from '@prosekit/lit/components/autocomplete-popover';
2
- export { PopoverOptions } from '@prosekit/lit/components/autocomplete-popover';
3
- import { ComponentChildren, ComponentType } from 'preact';
4
-
5
- type AutocompletePopoverProps = {
6
- class?: string;
7
- children?: ComponentChildren;
8
- } & AutocompletePopoverProps$1;
9
- declare const AutocompletePopover: ComponentType<AutocompletePopoverProps>;
10
-
11
- export { AutocompletePopover, AutocompletePopoverProps };
1
+ export { PopoverOptions } from './_tsup-dts-rollup';
2
+ export { AutocompletePopover_alias_1 as AutocompletePopover } from './_tsup-dts-rollup';
3
+ export { AutocompletePopoverProps_alias_1 as AutocompletePopoverProps } from './_tsup-dts-rollup';
@@ -1,10 +1,2 @@
1
- import { CodeBlockPopoverProps as CodeBlockPopoverProps$1 } from '@prosekit/lit/components/code-block-popover';
2
- import { ComponentChildren, ComponentType } from 'preact';
3
-
4
- type CodeBlockPopoverProps = {
5
- class?: string;
6
- children?: ComponentChildren;
7
- } & CodeBlockPopoverProps$1;
8
- declare const CodeBlockPopover: ComponentType<CodeBlockPopoverProps>;
9
-
10
- export { CodeBlockPopover, CodeBlockPopoverProps };
1
+ export { CodeBlockPopoverProps } from './_tsup-dts-rollup';
2
+ export { CodeBlockPopover } from './_tsup-dts-rollup';
@@ -1,10 +1,2 @@
1
- import { ComboBoxInputProps as ComboBoxInputProps$1 } from '@prosekit/lit/components/combo-box-input';
2
- import { ComponentChildren, ComponentType } from 'preact';
3
-
4
- type ComboBoxInputProps = {
5
- class?: string;
6
- children?: ComponentChildren;
7
- } & ComboBoxInputProps$1;
8
- declare const ComboBoxInput: ComponentType<ComboBoxInputProps>;
9
-
10
- export { ComboBoxInput, ComboBoxInputProps };
1
+ export { ComboBoxInputProps } from './_tsup-dts-rollup';
2
+ export { ComboBoxInput } from './_tsup-dts-rollup';
@@ -1,10 +1,2 @@
1
- import { ComboBoxItemProps as ComboBoxItemProps$1 } from '@prosekit/lit/components/combo-box-item';
2
- import { ComponentChildren, ComponentType } from 'preact';
3
-
4
- type ComboBoxItemProps = {
5
- class?: string;
6
- children?: ComponentChildren;
7
- } & ComboBoxItemProps$1;
8
- declare const ComboBoxItem: ComponentType<ComboBoxItemProps>;
9
-
10
- export { ComboBoxItem, ComboBoxItemProps };
1
+ export { ComboBoxItemProps } from './_tsup-dts-rollup';
2
+ export { ComboBoxItem } from './_tsup-dts-rollup';
@@ -1,10 +1,2 @@
1
- import { ComboBoxListProps as ComboBoxListProps$1 } from '@prosekit/lit/components/combo-box-list';
2
- import { ComponentChildren, ComponentType } from 'preact';
3
-
4
- type ComboBoxListProps = {
5
- class?: string;
6
- children?: ComponentChildren;
7
- } & ComboBoxListProps$1;
8
- declare const ComboBoxList: ComponentType<ComboBoxListProps>;
9
-
10
- export { ComboBoxList, ComboBoxListProps };
1
+ export { ComboBoxListProps } from './_tsup-dts-rollup';
2
+ export { ComboBoxList } from './_tsup-dts-rollup';
@@ -1,10 +1,2 @@
1
- import { ComboBoxProps as ComboBoxProps$1 } from '@prosekit/lit/components/combo-box';
2
- import { ComponentChildren, ComponentType } from 'preact';
3
-
4
- type ComboBoxProps = {
5
- class?: string;
6
- children?: ComponentChildren;
7
- } & ComboBoxProps$1;
8
- declare const ComboBox: ComponentType<ComboBoxProps>;
9
-
10
- export { ComboBox, ComboBoxProps };
1
+ export { ComboBoxProps } from './_tsup-dts-rollup';
2
+ export { ComboBox } from './_tsup-dts-rollup';
@@ -1,21 +1,5 @@
1
- import { Editor, Extension, Keymap } from '@prosekit/core';
2
- import { ComponentChildren, ComponentType } from 'preact';
3
-
4
- interface ProseKitProps {
5
- editor: Editor;
6
- children?: ComponentChildren;
7
- }
8
- declare const ProseKit: ComponentType<ProseKitProps>;
9
-
10
- declare function useEditor<E extends Extension = any>(): Editor<E>;
11
-
12
- interface UseExtensionProps<T extends Extension = Extension> {
13
- extension: T;
14
- }
15
- declare function useExtension({ extension }: UseExtensionProps): void;
16
-
17
- declare function useKeymap({ keymap }: {
18
- keymap: Keymap;
19
- }): void;
20
-
21
- export { ProseKit, ProseKitProps, useEditor, useExtension, useKeymap };
1
+ export { ProseKit } from './_tsup-dts-rollup';
2
+ export { ProseKitProps } from './_tsup-dts-rollup';
3
+ export { useEditor } from './_tsup-dts-rollup';
4
+ export { useExtension } from './_tsup-dts-rollup';
5
+ export { useKeymap } from './_tsup-dts-rollup';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/preact",
3
3
  "type": "module",
4
- "version": "0.0.7",
4
+ "version": "0.0.9",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -80,8 +80,8 @@
80
80
  "dist"
81
81
  ],
82
82
  "dependencies": {
83
- "@prosekit/core": "^0.0.7",
84
- "@prosekit/lit": "^0.0.10"
83
+ "@prosekit/core": "^0.0.9",
84
+ "@prosekit/lit": "^0.0.12"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "preact": ">= 9.0.0"
@@ -93,10 +93,10 @@
93
93
  },
94
94
  "devDependencies": {
95
95
  "@prosekit/dev": "*",
96
- "preact": "^10.16.0",
96
+ "preact": "^10.17.1",
97
97
  "tsup": "^7.2.0",
98
- "typescript": "^5.1.6",
99
- "vitest": "^0.34.1"
98
+ "typescript": "^5.2.2",
99
+ "vitest": "^0.34.3"
100
100
  },
101
101
  "scripts": {
102
102
  "build:tsup": "tsup",