@prosekit/react 0.0.14 → 0.0.16
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.
- package/dist/_tsup-dts-rollup.d.ts +31 -19
- package/dist/prosekit-react-autocomplete-empty.js +17 -0
- package/dist/prosekit-react-autocomplete-item.js +17 -0
- package/dist/prosekit-react-autocomplete-list.js +17 -0
- package/dist/prosekit-react-autocomplete-popover.js +17 -0
- package/dist/prosekit-react-code-block-popover.js +17 -0
- package/dist/prosekit-react-combo-box-input.js +17 -0
- package/dist/prosekit-react-combo-box-item.js +17 -0
- package/dist/prosekit-react-combo-box-list.js +17 -0
- package/dist/prosekit-react-combo-box.js +17 -0
- package/dist/prosekit-react.js +4 -4
- package/package.json +61 -61
- package/dist/prosekit-react-components-autocomplete-empty.js +0 -20
- package/dist/prosekit-react-components-autocomplete-item.js +0 -20
- package/dist/prosekit-react-components-autocomplete-list.js +0 -20
- package/dist/prosekit-react-components-autocomplete-popover.js +0 -20
- package/dist/prosekit-react-components-code-block-popover.js +0 -20
- package/dist/prosekit-react-components-combo-box-input.js +0 -20
- package/dist/prosekit-react-components-combo-box-item.js +0 -20
- package/dist/prosekit-react-components-combo-box-list.js +0 -20
- package/dist/prosekit-react-components-combo-box.js +0 -20
- /package/dist/{prosekit-react-components-autocomplete-empty.d.ts → prosekit-react-autocomplete-empty.d.ts} +0 -0
- /package/dist/{prosekit-react-components-autocomplete-item.d.ts → prosekit-react-autocomplete-item.d.ts} +0 -0
- /package/dist/{prosekit-react-components-autocomplete-list.d.ts → prosekit-react-autocomplete-list.d.ts} +0 -0
- /package/dist/{prosekit-react-components-autocomplete-popover.d.ts → prosekit-react-autocomplete-popover.d.ts} +0 -0
- /package/dist/{prosekit-react-components-code-block-popover.d.ts → prosekit-react-code-block-popover.d.ts} +0 -0
- /package/dist/{prosekit-react-components-combo-box-input.d.ts → prosekit-react-combo-box-input.d.ts} +0 -0
- /package/dist/{prosekit-react-components-combo-box-item.d.ts → prosekit-react-combo-box-item.d.ts} +0 -0
- /package/dist/{prosekit-react-components-combo-box-list.d.ts → prosekit-react-combo-box-list.d.ts} +0 -0
- /package/dist/{prosekit-react-components-combo-box.d.ts → prosekit-react-combo-box.d.ts} +0 -0
@@ -1,26 +1,38 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
import {
|
3
|
+
import { AutocompleteEmpty as AutocompleteEmpty_2 } from '@prosekit/lit/autocomplete-empty';
|
4
|
+
import { AutocompleteEmptyProps as AutocompleteEmptyProps_2 } from '@prosekit/lit/autocomplete-empty';
|
5
|
+
import { AutocompleteItem as AutocompleteItem_2 } from '@prosekit/lit/autocomplete-item';
|
6
|
+
import { AutocompleteItemProps as AutocompleteItemProps_2 } from '@prosekit/lit/autocomplete-item';
|
7
|
+
import { AutocompleteList as AutocompleteList_2 } from '@prosekit/lit/autocomplete-list';
|
8
|
+
import { AutocompleteListProps as AutocompleteListProps_2 } from '@prosekit/lit/autocomplete-list';
|
9
|
+
import { AutocompletePopover as AutocompletePopover_2 } from '@prosekit/lit/autocomplete-popover';
|
10
|
+
import { AutocompletePopoverProps as AutocompletePopoverProps_2 } from '@prosekit/lit/autocomplete-popover';
|
11
|
+
import { CodeBlockPopover as CodeBlockPopover_2 } from '@prosekit/lit/code-block-popover';
|
12
|
+
import { CodeBlockPopoverProps as CodeBlockPopoverProps_2 } from '@prosekit/lit/code-block-popover';
|
13
|
+
import { ComboBox as ComboBox_2 } from '@prosekit/lit/combo-box';
|
14
|
+
import { ComboBoxInput as ComboBoxInput_2 } from '@prosekit/lit/combo-box-input';
|
15
|
+
import { ComboBoxInputProps as ComboBoxInputProps_2 } from '@prosekit/lit/combo-box-input';
|
16
|
+
import { ComboBoxItem as ComboBoxItem_2 } from '@prosekit/lit/combo-box-item';
|
17
|
+
import { ComboBoxItemProps as ComboBoxItemProps_2 } from '@prosekit/lit/combo-box-item';
|
18
|
+
import { ComboBoxList as ComboBoxList_2 } from '@prosekit/lit/combo-box-list';
|
19
|
+
import { ComboBoxListProps as ComboBoxListProps_2 } from '@prosekit/lit/combo-box-list';
|
20
|
+
import { ComboBoxProps as ComboBoxProps_2 } from '@prosekit/lit/combo-box';
|
12
21
|
import { ComponentType } from 'react';
|
13
22
|
import { Context } from 'react';
|
14
23
|
import { Editor } from '@prosekit/core';
|
15
24
|
import { Extension } from '@prosekit/core';
|
25
|
+
import type { ForwardRefExoticComponent } from 'react';
|
16
26
|
import { Keymap } from '@prosekit/core';
|
17
27
|
import { Options } from 'tsup';
|
18
|
-
import { PopoverOptions } from '@prosekit/lit/
|
28
|
+
import { PopoverOptions } from '@prosekit/lit/autocomplete-popover';
|
29
|
+
import type { PropsWithoutRef } from 'react';
|
19
30
|
import { default as React_2 } from 'react';
|
31
|
+
import type { RefAttributes } from 'react';
|
20
32
|
import type { SimplifyUnion } from '@prosekit/core';
|
21
33
|
import { UserProjectConfigExport } from 'vitest/dist/config.js';
|
22
34
|
|
23
|
-
declare const AutocompleteEmpty:
|
35
|
+
declare const AutocompleteEmpty: ForwardRefExoticComponent<PropsWithoutRef<AutocompleteEmptyProps> & RefAttributes<AutocompleteEmpty_2>>;
|
24
36
|
export { AutocompleteEmpty }
|
25
37
|
export { AutocompleteEmpty as AutocompleteEmpty_alias_1 }
|
26
38
|
|
@@ -31,7 +43,7 @@ declare type AutocompleteEmptyProps = SimplifyUnion<{
|
|
31
43
|
export { AutocompleteEmptyProps }
|
32
44
|
export { AutocompleteEmptyProps as AutocompleteEmptyProps_alias_1 }
|
33
45
|
|
34
|
-
declare const AutocompleteItem:
|
46
|
+
declare const AutocompleteItem: ForwardRefExoticComponent<PropsWithoutRef<AutocompleteItemProps> & RefAttributes<AutocompleteItem_2>>;
|
35
47
|
export { AutocompleteItem }
|
36
48
|
export { AutocompleteItem as AutocompleteItem_alias_1 }
|
37
49
|
|
@@ -42,7 +54,7 @@ declare type AutocompleteItemProps = SimplifyUnion<{
|
|
42
54
|
export { AutocompleteItemProps }
|
43
55
|
export { AutocompleteItemProps as AutocompleteItemProps_alias_1 }
|
44
56
|
|
45
|
-
declare const AutocompleteList:
|
57
|
+
declare const AutocompleteList: ForwardRefExoticComponent<PropsWithoutRef<AutocompleteListProps> & RefAttributes<AutocompleteList_2>>;
|
46
58
|
export { AutocompleteList }
|
47
59
|
export { AutocompleteList as AutocompleteList_alias_1 }
|
48
60
|
|
@@ -53,7 +65,7 @@ declare type AutocompleteListProps = SimplifyUnion<{
|
|
53
65
|
export { AutocompleteListProps }
|
54
66
|
export { AutocompleteListProps as AutocompleteListProps_alias_1 }
|
55
67
|
|
56
|
-
declare const AutocompletePopover:
|
68
|
+
declare const AutocompletePopover: ForwardRefExoticComponent<PropsWithoutRef<AutocompletePopoverProps> & RefAttributes<AutocompletePopover_2>>;
|
57
69
|
export { AutocompletePopover }
|
58
70
|
export { AutocompletePopover as AutocompletePopover_alias_1 }
|
59
71
|
|
@@ -64,30 +76,30 @@ declare type AutocompletePopoverProps = SimplifyUnion<{
|
|
64
76
|
export { AutocompletePopoverProps }
|
65
77
|
export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
|
66
78
|
|
67
|
-
export declare const CodeBlockPopover:
|
79
|
+
export declare const CodeBlockPopover: ForwardRefExoticComponent<PropsWithoutRef<CodeBlockPopoverProps> & RefAttributes<CodeBlockPopover_2>>;
|
68
80
|
|
69
81
|
export declare type CodeBlockPopoverProps = SimplifyUnion<{
|
70
82
|
className?: string;
|
71
83
|
children?: React_2.ReactNode;
|
72
84
|
} & CodeBlockPopoverProps_2>;
|
73
85
|
|
74
|
-
export declare const ComboBox:
|
86
|
+
export declare const ComboBox: ForwardRefExoticComponent<PropsWithoutRef<ComboBoxProps> & RefAttributes<ComboBox_2>>;
|
75
87
|
|
76
|
-
export declare const ComboBoxInput:
|
88
|
+
export declare const ComboBoxInput: ForwardRefExoticComponent<PropsWithoutRef<ComboBoxInputProps> & RefAttributes<ComboBoxInput_2>>;
|
77
89
|
|
78
90
|
export declare type ComboBoxInputProps = SimplifyUnion<{
|
79
91
|
className?: string;
|
80
92
|
children?: React_2.ReactNode;
|
81
93
|
} & ComboBoxInputProps_2>;
|
82
94
|
|
83
|
-
export declare const ComboBoxItem:
|
95
|
+
export declare const ComboBoxItem: ForwardRefExoticComponent<PropsWithoutRef<ComboBoxItemProps> & RefAttributes<ComboBoxItem_2>>;
|
84
96
|
|
85
97
|
export declare type ComboBoxItemProps = SimplifyUnion<{
|
86
98
|
className?: string;
|
87
99
|
children?: React_2.ReactNode;
|
88
100
|
} & ComboBoxItemProps_2>;
|
89
101
|
|
90
|
-
export declare const ComboBoxList:
|
102
|
+
export declare const ComboBoxList: ForwardRefExoticComponent<PropsWithoutRef<ComboBoxListProps> & RefAttributes<ComboBoxList_2>>;
|
91
103
|
|
92
104
|
export declare type ComboBoxListProps = SimplifyUnion<{
|
93
105
|
className?: string;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// src/components/autocomplete-empty.gen.ts
|
2
|
+
import { createComponent } from "@lit/react";
|
3
|
+
import { AutocompleteEmpty as AutocompleteEmptyElement } from "@prosekit/lit/autocomplete-empty";
|
4
|
+
import React from "react";
|
5
|
+
var AutocompleteEmptyInner = createComponent({
|
6
|
+
tagName: "prosekit-autocomplete-empty",
|
7
|
+
elementClass: AutocompleteEmptyElement,
|
8
|
+
react: React,
|
9
|
+
displayName: "AutocompleteEmptyInner"
|
10
|
+
});
|
11
|
+
var AutocompleteEmpty = React.forwardRef((props, ref) => {
|
12
|
+
return React.createElement(AutocompleteEmptyInner, { ...props, ref });
|
13
|
+
});
|
14
|
+
AutocompleteEmpty.displayName = "AutocompleteEmpty";
|
15
|
+
export {
|
16
|
+
AutocompleteEmpty
|
17
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// src/components/autocomplete-item.gen.ts
|
2
|
+
import { createComponent } from "@lit/react";
|
3
|
+
import { AutocompleteItem as AutocompleteItemElement } from "@prosekit/lit/autocomplete-item";
|
4
|
+
import React from "react";
|
5
|
+
var AutocompleteItemInner = createComponent({
|
6
|
+
tagName: "prosekit-autocomplete-item",
|
7
|
+
elementClass: AutocompleteItemElement,
|
8
|
+
react: React,
|
9
|
+
displayName: "AutocompleteItemInner"
|
10
|
+
});
|
11
|
+
var AutocompleteItem = React.forwardRef((props, ref) => {
|
12
|
+
return React.createElement(AutocompleteItemInner, { ...props, ref });
|
13
|
+
});
|
14
|
+
AutocompleteItem.displayName = "AutocompleteItem";
|
15
|
+
export {
|
16
|
+
AutocompleteItem
|
17
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// src/components/autocomplete-list.gen.ts
|
2
|
+
import { createComponent } from "@lit/react";
|
3
|
+
import { AutocompleteList as AutocompleteListElement } from "@prosekit/lit/autocomplete-list";
|
4
|
+
import React from "react";
|
5
|
+
var AutocompleteListInner = createComponent({
|
6
|
+
tagName: "prosekit-autocomplete-list",
|
7
|
+
elementClass: AutocompleteListElement,
|
8
|
+
react: React,
|
9
|
+
displayName: "AutocompleteListInner"
|
10
|
+
});
|
11
|
+
var AutocompleteList = React.forwardRef((props, ref) => {
|
12
|
+
return React.createElement(AutocompleteListInner, { ...props, ref });
|
13
|
+
});
|
14
|
+
AutocompleteList.displayName = "AutocompleteList";
|
15
|
+
export {
|
16
|
+
AutocompleteList
|
17
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// src/components/autocomplete-popover.gen.ts
|
2
|
+
import { createComponent } from "@lit/react";
|
3
|
+
import { AutocompletePopover as AutocompletePopoverElement } from "@prosekit/lit/autocomplete-popover";
|
4
|
+
import React from "react";
|
5
|
+
var AutocompletePopoverInner = createComponent({
|
6
|
+
tagName: "prosekit-autocomplete-popover",
|
7
|
+
elementClass: AutocompletePopoverElement,
|
8
|
+
react: React,
|
9
|
+
displayName: "AutocompletePopoverInner"
|
10
|
+
});
|
11
|
+
var AutocompletePopover = React.forwardRef((props, ref) => {
|
12
|
+
return React.createElement(AutocompletePopoverInner, { ...props, ref });
|
13
|
+
});
|
14
|
+
AutocompletePopover.displayName = "AutocompletePopover";
|
15
|
+
export {
|
16
|
+
AutocompletePopover
|
17
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// src/components/code-block-popover.gen.ts
|
2
|
+
import { createComponent } from "@lit/react";
|
3
|
+
import { CodeBlockPopover as CodeBlockPopoverElement } from "@prosekit/lit/code-block-popover";
|
4
|
+
import React from "react";
|
5
|
+
var CodeBlockPopoverInner = createComponent({
|
6
|
+
tagName: "prosekit-code-block-popover",
|
7
|
+
elementClass: CodeBlockPopoverElement,
|
8
|
+
react: React,
|
9
|
+
displayName: "CodeBlockPopoverInner"
|
10
|
+
});
|
11
|
+
var CodeBlockPopover = React.forwardRef((props, ref) => {
|
12
|
+
return React.createElement(CodeBlockPopoverInner, { ...props, ref });
|
13
|
+
});
|
14
|
+
CodeBlockPopover.displayName = "CodeBlockPopover";
|
15
|
+
export {
|
16
|
+
CodeBlockPopover
|
17
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// src/components/combo-box-input.gen.ts
|
2
|
+
import { createComponent } from "@lit/react";
|
3
|
+
import { ComboBoxInput as ComboBoxInputElement } from "@prosekit/lit/combo-box-input";
|
4
|
+
import React from "react";
|
5
|
+
var ComboBoxInputInner = createComponent({
|
6
|
+
tagName: "prosekit-combo-box-input",
|
7
|
+
elementClass: ComboBoxInputElement,
|
8
|
+
react: React,
|
9
|
+
displayName: "ComboBoxInputInner"
|
10
|
+
});
|
11
|
+
var ComboBoxInput = React.forwardRef((props, ref) => {
|
12
|
+
return React.createElement(ComboBoxInputInner, { ...props, ref });
|
13
|
+
});
|
14
|
+
ComboBoxInput.displayName = "ComboBoxInput";
|
15
|
+
export {
|
16
|
+
ComboBoxInput
|
17
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// src/components/combo-box-item.gen.ts
|
2
|
+
import { createComponent } from "@lit/react";
|
3
|
+
import { ComboBoxItem as ComboBoxItemElement } from "@prosekit/lit/combo-box-item";
|
4
|
+
import React from "react";
|
5
|
+
var ComboBoxItemInner = createComponent({
|
6
|
+
tagName: "prosekit-combo-box-item",
|
7
|
+
elementClass: ComboBoxItemElement,
|
8
|
+
react: React,
|
9
|
+
displayName: "ComboBoxItemInner"
|
10
|
+
});
|
11
|
+
var ComboBoxItem = React.forwardRef((props, ref) => {
|
12
|
+
return React.createElement(ComboBoxItemInner, { ...props, ref });
|
13
|
+
});
|
14
|
+
ComboBoxItem.displayName = "ComboBoxItem";
|
15
|
+
export {
|
16
|
+
ComboBoxItem
|
17
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// src/components/combo-box-list.gen.ts
|
2
|
+
import { createComponent } from "@lit/react";
|
3
|
+
import { ComboBoxList as ComboBoxListElement } from "@prosekit/lit/combo-box-list";
|
4
|
+
import React from "react";
|
5
|
+
var ComboBoxListInner = createComponent({
|
6
|
+
tagName: "prosekit-combo-box-list",
|
7
|
+
elementClass: ComboBoxListElement,
|
8
|
+
react: React,
|
9
|
+
displayName: "ComboBoxListInner"
|
10
|
+
});
|
11
|
+
var ComboBoxList = React.forwardRef((props, ref) => {
|
12
|
+
return React.createElement(ComboBoxListInner, { ...props, ref });
|
13
|
+
});
|
14
|
+
ComboBoxList.displayName = "ComboBoxList";
|
15
|
+
export {
|
16
|
+
ComboBoxList
|
17
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// src/components/combo-box.gen.ts
|
2
|
+
import { createComponent } from "@lit/react";
|
3
|
+
import { ComboBox as ComboBoxElement } from "@prosekit/lit/combo-box";
|
4
|
+
import React from "react";
|
5
|
+
var ComboBoxInner = createComponent({
|
6
|
+
tagName: "prosekit-combo-box",
|
7
|
+
elementClass: ComboBoxElement,
|
8
|
+
react: React,
|
9
|
+
displayName: "ComboBoxInner"
|
10
|
+
});
|
11
|
+
var ComboBox = React.forwardRef((props, ref) => {
|
12
|
+
return React.createElement(ComboBoxInner, { ...props, ref });
|
13
|
+
});
|
14
|
+
ComboBox.displayName = "ComboBox";
|
15
|
+
export {
|
16
|
+
ComboBox
|
17
|
+
};
|
package/dist/prosekit-react.js
CHANGED
@@ -16,7 +16,7 @@ var EditorContextProvider = editorContext.Provider;
|
|
16
16
|
// src/hooks/use-editor.ts
|
17
17
|
import {
|
18
18
|
ProseKitError,
|
19
|
-
|
19
|
+
defineEventHandler
|
20
20
|
} from "@prosekit/core";
|
21
21
|
import { useContext, useEffect, useReducer } from "react";
|
22
22
|
function useEditor(options) {
|
@@ -32,7 +32,7 @@ function useEditor(options) {
|
|
32
32
|
const forceUpdate = useForceUpdate();
|
33
33
|
useEffect(() => {
|
34
34
|
if (update) {
|
35
|
-
return editor.use(
|
35
|
+
return editor.use(defineEventHandler({ update: forceUpdate }));
|
36
36
|
}
|
37
37
|
}, [editor, update, forceUpdate]);
|
38
38
|
return editor;
|
@@ -51,10 +51,10 @@ function useExtension({ extension }) {
|
|
51
51
|
}
|
52
52
|
|
53
53
|
// src/hooks/use-keymap.ts
|
54
|
-
import {
|
54
|
+
import { defineKeymap } from "@prosekit/core";
|
55
55
|
import { useMemo } from "react";
|
56
56
|
function useKeymap({ keymap }) {
|
57
|
-
const extension = useMemo(() =>
|
57
|
+
const extension = useMemo(() => defineKeymap(keymap), [keymap]);
|
58
58
|
useExtension({ extension });
|
59
59
|
}
|
60
60
|
export {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/react",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.16",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -30,59 +30,59 @@
|
|
30
30
|
"import": "./dist/prosekit-react.js",
|
31
31
|
"default": "./dist/prosekit-react.js"
|
32
32
|
},
|
33
|
-
"./
|
34
|
-
"types": "./dist/prosekit-react-
|
35
|
-
"import": "./dist/prosekit-react-
|
36
|
-
"default": "./dist/prosekit-react-
|
33
|
+
"./autocomplete-empty": {
|
34
|
+
"types": "./dist/prosekit-react-autocomplete-empty.d.ts",
|
35
|
+
"import": "./dist/prosekit-react-autocomplete-empty.js",
|
36
|
+
"default": "./dist/prosekit-react-autocomplete-empty.js"
|
37
37
|
},
|
38
|
-
"./
|
39
|
-
"types": "./dist/prosekit-react-
|
40
|
-
"import": "./dist/prosekit-react-
|
41
|
-
"default": "./dist/prosekit-react-
|
38
|
+
"./autocomplete-item": {
|
39
|
+
"types": "./dist/prosekit-react-autocomplete-item.d.ts",
|
40
|
+
"import": "./dist/prosekit-react-autocomplete-item.js",
|
41
|
+
"default": "./dist/prosekit-react-autocomplete-item.js"
|
42
42
|
},
|
43
|
-
"./
|
44
|
-
"types": "./dist/prosekit-react-
|
45
|
-
"import": "./dist/prosekit-react-
|
46
|
-
"default": "./dist/prosekit-react-
|
43
|
+
"./autocomplete-list": {
|
44
|
+
"types": "./dist/prosekit-react-autocomplete-list.d.ts",
|
45
|
+
"import": "./dist/prosekit-react-autocomplete-list.js",
|
46
|
+
"default": "./dist/prosekit-react-autocomplete-list.js"
|
47
47
|
},
|
48
|
-
"./
|
49
|
-
"types": "./dist/prosekit-react-
|
50
|
-
"import": "./dist/prosekit-react-
|
51
|
-
"default": "./dist/prosekit-react-
|
48
|
+
"./autocomplete-popover": {
|
49
|
+
"types": "./dist/prosekit-react-autocomplete-popover.d.ts",
|
50
|
+
"import": "./dist/prosekit-react-autocomplete-popover.js",
|
51
|
+
"default": "./dist/prosekit-react-autocomplete-popover.js"
|
52
52
|
},
|
53
|
-
"./
|
54
|
-
"types": "./dist/prosekit-react-
|
55
|
-
"import": "./dist/prosekit-react-
|
56
|
-
"default": "./dist/prosekit-react-
|
53
|
+
"./code-block-popover": {
|
54
|
+
"types": "./dist/prosekit-react-code-block-popover.d.ts",
|
55
|
+
"import": "./dist/prosekit-react-code-block-popover.js",
|
56
|
+
"default": "./dist/prosekit-react-code-block-popover.js"
|
57
57
|
},
|
58
|
-
"./
|
59
|
-
"types": "./dist/prosekit-react-
|
60
|
-
"import": "./dist/prosekit-react-
|
61
|
-
"default": "./dist/prosekit-react-
|
58
|
+
"./combo-box": {
|
59
|
+
"types": "./dist/prosekit-react-combo-box.d.ts",
|
60
|
+
"import": "./dist/prosekit-react-combo-box.js",
|
61
|
+
"default": "./dist/prosekit-react-combo-box.js"
|
62
62
|
},
|
63
|
-
"./
|
64
|
-
"types": "./dist/prosekit-react-
|
65
|
-
"import": "./dist/prosekit-react-
|
66
|
-
"default": "./dist/prosekit-react-
|
63
|
+
"./combo-box-input": {
|
64
|
+
"types": "./dist/prosekit-react-combo-box-input.d.ts",
|
65
|
+
"import": "./dist/prosekit-react-combo-box-input.js",
|
66
|
+
"default": "./dist/prosekit-react-combo-box-input.js"
|
67
67
|
},
|
68
|
-
"./
|
69
|
-
"types": "./dist/prosekit-react-
|
70
|
-
"import": "./dist/prosekit-react-
|
71
|
-
"default": "./dist/prosekit-react-
|
68
|
+
"./combo-box-item": {
|
69
|
+
"types": "./dist/prosekit-react-combo-box-item.d.ts",
|
70
|
+
"import": "./dist/prosekit-react-combo-box-item.js",
|
71
|
+
"default": "./dist/prosekit-react-combo-box-item.js"
|
72
72
|
},
|
73
|
-
"./
|
74
|
-
"types": "./dist/prosekit-react-
|
75
|
-
"import": "./dist/prosekit-react-
|
76
|
-
"default": "./dist/prosekit-react-
|
73
|
+
"./combo-box-list": {
|
74
|
+
"types": "./dist/prosekit-react-combo-box-list.d.ts",
|
75
|
+
"import": "./dist/prosekit-react-combo-box-list.js",
|
76
|
+
"default": "./dist/prosekit-react-combo-box-list.js"
|
77
77
|
}
|
78
78
|
},
|
79
79
|
"files": [
|
80
80
|
"dist"
|
81
81
|
],
|
82
82
|
"dependencies": {
|
83
|
-
"@lit
|
84
|
-
"@prosekit/core": "^0.0.
|
85
|
-
"@prosekit/lit": "^0.0.
|
83
|
+
"@lit/react": "^1.0.0",
|
84
|
+
"@prosekit/core": "^0.0.12",
|
85
|
+
"@prosekit/lit": "^0.0.16"
|
86
86
|
},
|
87
87
|
"peerDependencies": {
|
88
88
|
"react": ">= 17.0.0",
|
@@ -98,13 +98,13 @@
|
|
98
98
|
},
|
99
99
|
"devDependencies": {
|
100
100
|
"@prosekit/dev": "*",
|
101
|
-
"@types/react": "^18.2.
|
102
|
-
"@types/react-dom": "^18.2.
|
101
|
+
"@types/react": "^18.2.28",
|
102
|
+
"@types/react-dom": "^18.2.13",
|
103
103
|
"react": "^18.2.0",
|
104
104
|
"react-dom": "^18.2.0",
|
105
105
|
"tsup": "^7.2.0",
|
106
106
|
"typescript": "^5.2.2",
|
107
|
-
"vitest": "^0.34.
|
107
|
+
"vitest": "^0.34.6"
|
108
108
|
},
|
109
109
|
"scripts": {
|
110
110
|
"build:tsup": "tsup",
|
@@ -116,32 +116,32 @@
|
|
116
116
|
".": [
|
117
117
|
"./dist/prosekit-react.d.ts"
|
118
118
|
],
|
119
|
-
"
|
120
|
-
"./dist/prosekit-react-
|
119
|
+
"autocomplete-empty": [
|
120
|
+
"./dist/prosekit-react-autocomplete-empty.d.ts"
|
121
121
|
],
|
122
|
-
"
|
123
|
-
"./dist/prosekit-react-
|
122
|
+
"autocomplete-item": [
|
123
|
+
"./dist/prosekit-react-autocomplete-item.d.ts"
|
124
124
|
],
|
125
|
-
"
|
126
|
-
"./dist/prosekit-react-
|
125
|
+
"autocomplete-list": [
|
126
|
+
"./dist/prosekit-react-autocomplete-list.d.ts"
|
127
127
|
],
|
128
|
-
"
|
129
|
-
"./dist/prosekit-react-
|
128
|
+
"autocomplete-popover": [
|
129
|
+
"./dist/prosekit-react-autocomplete-popover.d.ts"
|
130
130
|
],
|
131
|
-
"
|
132
|
-
"./dist/prosekit-react-
|
131
|
+
"code-block-popover": [
|
132
|
+
"./dist/prosekit-react-code-block-popover.d.ts"
|
133
133
|
],
|
134
|
-
"
|
135
|
-
"./dist/prosekit-react-
|
134
|
+
"combo-box": [
|
135
|
+
"./dist/prosekit-react-combo-box.d.ts"
|
136
136
|
],
|
137
|
-
"
|
138
|
-
"./dist/prosekit-react-
|
137
|
+
"combo-box-input": [
|
138
|
+
"./dist/prosekit-react-combo-box-input.d.ts"
|
139
139
|
],
|
140
|
-
"
|
141
|
-
"./dist/prosekit-react-
|
140
|
+
"combo-box-item": [
|
141
|
+
"./dist/prosekit-react-combo-box-item.d.ts"
|
142
142
|
],
|
143
|
-
"
|
144
|
-
"./dist/prosekit-react-
|
143
|
+
"combo-box-list": [
|
144
|
+
"./dist/prosekit-react-combo-box-list.d.ts"
|
145
145
|
]
|
146
146
|
}
|
147
147
|
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
// src/components/autocomplete-empty.gen.ts
|
2
|
-
import { createComponent } from "@lit-labs/react";
|
3
|
-
import { AutocompleteEmpty as AutocompleteEmptyElement } from "@prosekit/lit/components/autocomplete-empty";
|
4
|
-
import React from "react";
|
5
|
-
var AutocompleteEmptyComponent = createComponent({
|
6
|
-
tagName: "prosekit-autocomplete-empty",
|
7
|
-
elementClass: AutocompleteEmptyElement,
|
8
|
-
react: React,
|
9
|
-
displayName: "AutocompleteEmptyComponent"
|
10
|
-
});
|
11
|
-
var AutocompleteEmpty = (props) => {
|
12
|
-
return React.createElement(
|
13
|
-
AutocompleteEmptyComponent,
|
14
|
-
// The type in @lit-labs/react is not compatible to React.ReactNode
|
15
|
-
props
|
16
|
-
);
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
AutocompleteEmpty
|
20
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
// src/components/autocomplete-item.gen.ts
|
2
|
-
import { createComponent } from "@lit-labs/react";
|
3
|
-
import { AutocompleteItem as AutocompleteItemElement } from "@prosekit/lit/components/autocomplete-item";
|
4
|
-
import React from "react";
|
5
|
-
var AutocompleteItemComponent = createComponent({
|
6
|
-
tagName: "prosekit-autocomplete-item",
|
7
|
-
elementClass: AutocompleteItemElement,
|
8
|
-
react: React,
|
9
|
-
displayName: "AutocompleteItemComponent"
|
10
|
-
});
|
11
|
-
var AutocompleteItem = (props) => {
|
12
|
-
return React.createElement(
|
13
|
-
AutocompleteItemComponent,
|
14
|
-
// The type in @lit-labs/react is not compatible to React.ReactNode
|
15
|
-
props
|
16
|
-
);
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
AutocompleteItem
|
20
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
// src/components/autocomplete-list.gen.ts
|
2
|
-
import { createComponent } from "@lit-labs/react";
|
3
|
-
import { AutocompleteList as AutocompleteListElement } from "@prosekit/lit/components/autocomplete-list";
|
4
|
-
import React from "react";
|
5
|
-
var AutocompleteListComponent = createComponent({
|
6
|
-
tagName: "prosekit-autocomplete-list",
|
7
|
-
elementClass: AutocompleteListElement,
|
8
|
-
react: React,
|
9
|
-
displayName: "AutocompleteListComponent"
|
10
|
-
});
|
11
|
-
var AutocompleteList = (props) => {
|
12
|
-
return React.createElement(
|
13
|
-
AutocompleteListComponent,
|
14
|
-
// The type in @lit-labs/react is not compatible to React.ReactNode
|
15
|
-
props
|
16
|
-
);
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
AutocompleteList
|
20
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
// src/components/autocomplete-popover.gen.ts
|
2
|
-
import { createComponent } from "@lit-labs/react";
|
3
|
-
import { AutocompletePopover as AutocompletePopoverElement } from "@prosekit/lit/components/autocomplete-popover";
|
4
|
-
import React from "react";
|
5
|
-
var AutocompletePopoverComponent = createComponent({
|
6
|
-
tagName: "prosekit-autocomplete-popover",
|
7
|
-
elementClass: AutocompletePopoverElement,
|
8
|
-
react: React,
|
9
|
-
displayName: "AutocompletePopoverComponent"
|
10
|
-
});
|
11
|
-
var AutocompletePopover = (props) => {
|
12
|
-
return React.createElement(
|
13
|
-
AutocompletePopoverComponent,
|
14
|
-
// The type in @lit-labs/react is not compatible to React.ReactNode
|
15
|
-
props
|
16
|
-
);
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
AutocompletePopover
|
20
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
// src/components/code-block-popover.gen.ts
|
2
|
-
import { createComponent } from "@lit-labs/react";
|
3
|
-
import { CodeBlockPopover as CodeBlockPopoverElement } from "@prosekit/lit/components/code-block-popover";
|
4
|
-
import React from "react";
|
5
|
-
var CodeBlockPopoverComponent = createComponent({
|
6
|
-
tagName: "prosekit-code-block-popover",
|
7
|
-
elementClass: CodeBlockPopoverElement,
|
8
|
-
react: React,
|
9
|
-
displayName: "CodeBlockPopoverComponent"
|
10
|
-
});
|
11
|
-
var CodeBlockPopover = (props) => {
|
12
|
-
return React.createElement(
|
13
|
-
CodeBlockPopoverComponent,
|
14
|
-
// The type in @lit-labs/react is not compatible to React.ReactNode
|
15
|
-
props
|
16
|
-
);
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
CodeBlockPopover
|
20
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
// src/components/combo-box-input.gen.ts
|
2
|
-
import { createComponent } from "@lit-labs/react";
|
3
|
-
import { ComboBoxInput as ComboBoxInputElement } from "@prosekit/lit/components/combo-box-input";
|
4
|
-
import React from "react";
|
5
|
-
var ComboBoxInputComponent = createComponent({
|
6
|
-
tagName: "prosekit-combo-box-input",
|
7
|
-
elementClass: ComboBoxInputElement,
|
8
|
-
react: React,
|
9
|
-
displayName: "ComboBoxInputComponent"
|
10
|
-
});
|
11
|
-
var ComboBoxInput = (props) => {
|
12
|
-
return React.createElement(
|
13
|
-
ComboBoxInputComponent,
|
14
|
-
// The type in @lit-labs/react is not compatible to React.ReactNode
|
15
|
-
props
|
16
|
-
);
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
ComboBoxInput
|
20
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
// src/components/combo-box-item.gen.ts
|
2
|
-
import { createComponent } from "@lit-labs/react";
|
3
|
-
import { ComboBoxItem as ComboBoxItemElement } from "@prosekit/lit/components/combo-box-item";
|
4
|
-
import React from "react";
|
5
|
-
var ComboBoxItemComponent = createComponent({
|
6
|
-
tagName: "prosekit-combo-box-item",
|
7
|
-
elementClass: ComboBoxItemElement,
|
8
|
-
react: React,
|
9
|
-
displayName: "ComboBoxItemComponent"
|
10
|
-
});
|
11
|
-
var ComboBoxItem = (props) => {
|
12
|
-
return React.createElement(
|
13
|
-
ComboBoxItemComponent,
|
14
|
-
// The type in @lit-labs/react is not compatible to React.ReactNode
|
15
|
-
props
|
16
|
-
);
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
ComboBoxItem
|
20
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
// src/components/combo-box-list.gen.ts
|
2
|
-
import { createComponent } from "@lit-labs/react";
|
3
|
-
import { ComboBoxList as ComboBoxListElement } from "@prosekit/lit/components/combo-box-list";
|
4
|
-
import React from "react";
|
5
|
-
var ComboBoxListComponent = createComponent({
|
6
|
-
tagName: "prosekit-combo-box-list",
|
7
|
-
elementClass: ComboBoxListElement,
|
8
|
-
react: React,
|
9
|
-
displayName: "ComboBoxListComponent"
|
10
|
-
});
|
11
|
-
var ComboBoxList = (props) => {
|
12
|
-
return React.createElement(
|
13
|
-
ComboBoxListComponent,
|
14
|
-
// The type in @lit-labs/react is not compatible to React.ReactNode
|
15
|
-
props
|
16
|
-
);
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
ComboBoxList
|
20
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
// src/components/combo-box.gen.ts
|
2
|
-
import { createComponent } from "@lit-labs/react";
|
3
|
-
import { ComboBox as ComboBoxElement } from "@prosekit/lit/components/combo-box";
|
4
|
-
import React from "react";
|
5
|
-
var ComboBoxComponent = createComponent({
|
6
|
-
tagName: "prosekit-combo-box",
|
7
|
-
elementClass: ComboBoxElement,
|
8
|
-
react: React,
|
9
|
-
displayName: "ComboBoxComponent"
|
10
|
-
});
|
11
|
-
var ComboBox = (props) => {
|
12
|
-
return React.createElement(
|
13
|
-
ComboBoxComponent,
|
14
|
-
// The type in @lit-labs/react is not compatible to React.ReactNode
|
15
|
-
props
|
16
|
-
);
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
ComboBox
|
20
|
-
};
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{prosekit-react-components-combo-box-input.d.ts → prosekit-react-combo-box-input.d.ts}
RENAMED
File without changes
|
/package/dist/{prosekit-react-components-combo-box-item.d.ts → prosekit-react-combo-box-item.d.ts}
RENAMED
File without changes
|
/package/dist/{prosekit-react-components-combo-box-list.d.ts → prosekit-react-combo-box-list.d.ts}
RENAMED
File without changes
|
File without changes
|