@prosekit/react 0.0.8 → 0.0.10
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/prosekit-react-components-code-block-popover.d.ts +11 -0
- package/dist/prosekit-react-components-code-block-popover.js +16 -0
- package/dist/prosekit-react-components-combo-box-input.d.ts +11 -0
- package/dist/prosekit-react-components-combo-box-input.js +16 -0
- package/dist/prosekit-react-components-combo-box-item.d.ts +11 -0
- package/dist/prosekit-react-components-combo-box-item.js +16 -0
- package/dist/prosekit-react-components-combo-box-list.d.ts +11 -0
- package/dist/prosekit-react-components-combo-box-list.js +16 -0
- package/dist/prosekit-react-components-combo-box.d.ts +11 -0
- package/dist/prosekit-react-components-combo-box.js +16 -0
- package/package.json +47 -7
@@ -0,0 +1,11 @@
|
|
1
|
+
import { SimplifyUnion } from '@prosekit/core';
|
2
|
+
import { CodeBlockPopoverProps as CodeBlockPopoverProps$1 } from '@prosekit/lit/components/code-block-popover';
|
3
|
+
import React, { ComponentType } from 'react';
|
4
|
+
|
5
|
+
type CodeBlockPopoverProps = SimplifyUnion<{
|
6
|
+
className?: string;
|
7
|
+
children?: React.ReactNode;
|
8
|
+
} & CodeBlockPopoverProps$1>;
|
9
|
+
declare const CodeBlockPopover: ComponentType<CodeBlockPopoverProps>;
|
10
|
+
|
11
|
+
export { CodeBlockPopover, CodeBlockPopoverProps };
|
@@ -0,0 +1,16 @@
|
|
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(CodeBlockPopoverComponent, props);
|
13
|
+
};
|
14
|
+
export {
|
15
|
+
CodeBlockPopover
|
16
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { SimplifyUnion } from '@prosekit/core';
|
2
|
+
import { ComboBoxInputProps as ComboBoxInputProps$1 } from '@prosekit/lit/components/combo-box-input';
|
3
|
+
import React, { ComponentType } from 'react';
|
4
|
+
|
5
|
+
type ComboBoxInputProps = SimplifyUnion<{
|
6
|
+
className?: string;
|
7
|
+
children?: React.ReactNode;
|
8
|
+
} & ComboBoxInputProps$1>;
|
9
|
+
declare const ComboBoxInput: ComponentType<ComboBoxInputProps>;
|
10
|
+
|
11
|
+
export { ComboBoxInput, ComboBoxInputProps };
|
@@ -0,0 +1,16 @@
|
|
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(ComboBoxInputComponent, props);
|
13
|
+
};
|
14
|
+
export {
|
15
|
+
ComboBoxInput
|
16
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { SimplifyUnion } from '@prosekit/core';
|
2
|
+
import { ComboBoxItemProps as ComboBoxItemProps$1 } from '@prosekit/lit/components/combo-box-item';
|
3
|
+
import React, { ComponentType } from 'react';
|
4
|
+
|
5
|
+
type ComboBoxItemProps = SimplifyUnion<{
|
6
|
+
className?: string;
|
7
|
+
children?: React.ReactNode;
|
8
|
+
} & ComboBoxItemProps$1>;
|
9
|
+
declare const ComboBoxItem: ComponentType<ComboBoxItemProps>;
|
10
|
+
|
11
|
+
export { ComboBoxItem, ComboBoxItemProps };
|
@@ -0,0 +1,16 @@
|
|
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(ComboBoxItemComponent, props);
|
13
|
+
};
|
14
|
+
export {
|
15
|
+
ComboBoxItem
|
16
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { SimplifyUnion } from '@prosekit/core';
|
2
|
+
import { ComboBoxListProps as ComboBoxListProps$1 } from '@prosekit/lit/components/combo-box-list';
|
3
|
+
import React, { ComponentType } from 'react';
|
4
|
+
|
5
|
+
type ComboBoxListProps = SimplifyUnion<{
|
6
|
+
className?: string;
|
7
|
+
children?: React.ReactNode;
|
8
|
+
} & ComboBoxListProps$1>;
|
9
|
+
declare const ComboBoxList: ComponentType<ComboBoxListProps>;
|
10
|
+
|
11
|
+
export { ComboBoxList, ComboBoxListProps };
|
@@ -0,0 +1,16 @@
|
|
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(ComboBoxListComponent, props);
|
13
|
+
};
|
14
|
+
export {
|
15
|
+
ComboBoxList
|
16
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { SimplifyUnion } from '@prosekit/core';
|
2
|
+
import { ComboBoxProps as ComboBoxProps$1 } from '@prosekit/lit/components/combo-box';
|
3
|
+
import React, { ComponentType } from 'react';
|
4
|
+
|
5
|
+
type ComboBoxProps = SimplifyUnion<{
|
6
|
+
className?: string;
|
7
|
+
children?: React.ReactNode;
|
8
|
+
} & ComboBoxProps$1>;
|
9
|
+
declare const ComboBox: ComponentType<ComboBoxProps>;
|
10
|
+
|
11
|
+
export { ComboBox, ComboBoxProps };
|
@@ -0,0 +1,16 @@
|
|
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(ComboBoxComponent, props);
|
13
|
+
};
|
14
|
+
export {
|
15
|
+
ComboBox
|
16
|
+
};
|
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.10",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -49,15 +49,40 @@
|
|
49
49
|
"types": "./dist/prosekit-react-components-autocomplete-popover.d.ts",
|
50
50
|
"import": "./dist/prosekit-react-components-autocomplete-popover.js",
|
51
51
|
"default": "./dist/prosekit-react-components-autocomplete-popover.js"
|
52
|
+
},
|
53
|
+
"./components/code-block-popover": {
|
54
|
+
"types": "./dist/prosekit-react-components-code-block-popover.d.ts",
|
55
|
+
"import": "./dist/prosekit-react-components-code-block-popover.js",
|
56
|
+
"default": "./dist/prosekit-react-components-code-block-popover.js"
|
57
|
+
},
|
58
|
+
"./components/combo-box": {
|
59
|
+
"types": "./dist/prosekit-react-components-combo-box.d.ts",
|
60
|
+
"import": "./dist/prosekit-react-components-combo-box.js",
|
61
|
+
"default": "./dist/prosekit-react-components-combo-box.js"
|
62
|
+
},
|
63
|
+
"./components/combo-box-input": {
|
64
|
+
"types": "./dist/prosekit-react-components-combo-box-input.d.ts",
|
65
|
+
"import": "./dist/prosekit-react-components-combo-box-input.js",
|
66
|
+
"default": "./dist/prosekit-react-components-combo-box-input.js"
|
67
|
+
},
|
68
|
+
"./components/combo-box-item": {
|
69
|
+
"types": "./dist/prosekit-react-components-combo-box-item.d.ts",
|
70
|
+
"import": "./dist/prosekit-react-components-combo-box-item.js",
|
71
|
+
"default": "./dist/prosekit-react-components-combo-box-item.js"
|
72
|
+
},
|
73
|
+
"./components/combo-box-list": {
|
74
|
+
"types": "./dist/prosekit-react-components-combo-box-list.d.ts",
|
75
|
+
"import": "./dist/prosekit-react-components-combo-box-list.js",
|
76
|
+
"default": "./dist/prosekit-react-components-combo-box-list.js"
|
52
77
|
}
|
53
78
|
},
|
54
79
|
"files": [
|
55
80
|
"dist"
|
56
81
|
],
|
57
82
|
"dependencies": {
|
58
|
-
"@lit-labs/react": "
|
59
|
-
"@prosekit/core": "^0.0.
|
60
|
-
"@prosekit/lit": "^0.0.
|
83
|
+
"@lit-labs/react": "^2.0.1",
|
84
|
+
"@prosekit/core": "^0.0.7",
|
85
|
+
"@prosekit/lit": "^0.0.10"
|
61
86
|
},
|
62
87
|
"peerDependencies": {
|
63
88
|
"react": ">= 17.0.0",
|
@@ -73,13 +98,13 @@
|
|
73
98
|
},
|
74
99
|
"devDependencies": {
|
75
100
|
"@prosekit/dev": "*",
|
76
|
-
"@types/react": "^18.2.
|
101
|
+
"@types/react": "^18.2.20",
|
77
102
|
"@types/react-dom": "^18.2.7",
|
78
103
|
"react": "^18.2.0",
|
79
104
|
"react-dom": "^18.2.0",
|
80
|
-
"tsup": "^7.
|
105
|
+
"tsup": "^7.2.0",
|
81
106
|
"typescript": "^5.1.6",
|
82
|
-
"vitest": "^0.
|
107
|
+
"vitest": "^0.34.1"
|
83
108
|
},
|
84
109
|
"scripts": {
|
85
110
|
"build:tsup": "tsup",
|
@@ -102,6 +127,21 @@
|
|
102
127
|
],
|
103
128
|
"components/autocomplete-popover": [
|
104
129
|
"./dist/prosekit-react-components-autocomplete-popover.d.ts"
|
130
|
+
],
|
131
|
+
"components/code-block-popover": [
|
132
|
+
"./dist/prosekit-react-components-code-block-popover.d.ts"
|
133
|
+
],
|
134
|
+
"components/combo-box": [
|
135
|
+
"./dist/prosekit-react-components-combo-box.d.ts"
|
136
|
+
],
|
137
|
+
"components/combo-box-input": [
|
138
|
+
"./dist/prosekit-react-components-combo-box-input.d.ts"
|
139
|
+
],
|
140
|
+
"components/combo-box-item": [
|
141
|
+
"./dist/prosekit-react-components-combo-box-item.d.ts"
|
142
|
+
],
|
143
|
+
"components/combo-box-list": [
|
144
|
+
"./dist/prosekit-react-components-combo-box-list.d.ts"
|
105
145
|
]
|
106
146
|
}
|
107
147
|
}
|