@etsoo/react 1.7.47 → 1.7.49
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.
|
@@ -4,12 +4,12 @@ import { CustomFieldData, CustomFieldProps, CustomFieldRef, ICustomField } from
|
|
|
4
4
|
* React custom field interface
|
|
5
5
|
* React自定义字段接口
|
|
6
6
|
*/
|
|
7
|
-
export interface ICustomFieldReact<D extends CustomFieldData = CustomFieldData> extends ICustomField<D, React.JSX.Element> {
|
|
7
|
+
export interface ICustomFieldReact<V, D extends CustomFieldData = CustomFieldData> extends ICustomField<V, D, CustomFieldReactProps<V, D>, React.JSX.Element> {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* React custom field props
|
|
11
11
|
* React自定义字段属性
|
|
12
12
|
*/
|
|
13
|
-
export type CustomFieldReactProps<D extends CustomFieldData = CustomFieldData> = CustomFieldProps<D> & {
|
|
14
|
-
mref: React.Ref<CustomFieldRef
|
|
13
|
+
export type CustomFieldReactProps<V, D extends CustomFieldData = CustomFieldData> = CustomFieldProps<D, V> & {
|
|
14
|
+
mref: React.Ref<CustomFieldRef<V>>;
|
|
15
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/react",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.49",
|
|
4
4
|
"description": "TypeScript ReactJs UI Independent Framework",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@emotion/css": "^11.11.2",
|
|
51
51
|
"@emotion/react": "^11.11.4",
|
|
52
52
|
"@emotion/styled": "^11.11.5",
|
|
53
|
-
"@etsoo/appscript": "^1.4.
|
|
53
|
+
"@etsoo/appscript": "^1.4.93",
|
|
54
54
|
"@etsoo/notificationbase": "^1.1.42",
|
|
55
55
|
"@etsoo/shared": "^1.2.40",
|
|
56
56
|
"react": "^18.3.1",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"react-window": "^1.8.10"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@babel/cli": "^7.24.
|
|
63
|
-
"@babel/core": "^7.24.
|
|
64
|
-
"@babel/plugin-transform-runtime": "^7.24.
|
|
65
|
-
"@babel/preset-env": "^7.24.
|
|
66
|
-
"@babel/runtime-corejs3": "^7.24.
|
|
62
|
+
"@babel/cli": "^7.24.6",
|
|
63
|
+
"@babel/core": "^7.24.6",
|
|
64
|
+
"@babel/plugin-transform-runtime": "^7.24.6",
|
|
65
|
+
"@babel/preset-env": "^7.24.6",
|
|
66
|
+
"@babel/runtime-corejs3": "^7.24.6",
|
|
67
67
|
"@testing-library/jest-dom": "^6.4.5",
|
|
68
68
|
"@testing-library/react": "^15.0.7",
|
|
69
69
|
"@types/jest": "^29.5.12",
|
|
@@ -9,14 +9,18 @@ import {
|
|
|
9
9
|
* React custom field interface
|
|
10
10
|
* React自定义字段接口
|
|
11
11
|
*/
|
|
12
|
-
export interface ICustomFieldReact<
|
|
13
|
-
|
|
12
|
+
export interface ICustomFieldReact<
|
|
13
|
+
V,
|
|
14
|
+
D extends CustomFieldData = CustomFieldData
|
|
15
|
+
> extends ICustomField<V, D, CustomFieldReactProps<V, D>, React.JSX.Element> {}
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* React custom field props
|
|
17
19
|
* React自定义字段属性
|
|
18
20
|
*/
|
|
19
|
-
export type CustomFieldReactProps<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
export type CustomFieldReactProps<
|
|
22
|
+
V,
|
|
23
|
+
D extends CustomFieldData = CustomFieldData
|
|
24
|
+
> = CustomFieldProps<D, V> & {
|
|
25
|
+
mref: React.Ref<CustomFieldRef<V>>;
|
|
26
|
+
};
|