@etsoo/react 1.7.49 → 1.7.51

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.
@@ -13,3 +13,11 @@ export interface ICustomFieldReact<V, D extends CustomFieldData = CustomFieldDat
13
13
  export type CustomFieldReactProps<V, D extends CustomFieldData = CustomFieldData> = CustomFieldProps<D, V> & {
14
14
  mref: React.Ref<CustomFieldRef<V>>;
15
15
  };
16
+ /**
17
+ * React custom field renderer collection
18
+ * React自定义字段渲染结果集合
19
+ */
20
+ export type CustomFieldReactCollection<D extends CustomFieldData> = Record<string, [
21
+ React.RefObject<CustomFieldRef<unknown>>,
22
+ D
23
+ ]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.7.49",
3
+ "version": "1.7.51",
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.93",
53
+ "@etsoo/appscript": "^1.4.94",
54
54
  "@etsoo/notificationbase": "^1.1.42",
55
55
  "@etsoo/shared": "^1.2.40",
56
56
  "react": "^18.3.1",
@@ -24,3 +24,12 @@ export type CustomFieldReactProps<
24
24
  > = CustomFieldProps<D, V> & {
25
25
  mref: React.Ref<CustomFieldRef<V>>;
26
26
  };
27
+
28
+ /**
29
+ * React custom field renderer collection
30
+ * React自定义字段渲染结果集合
31
+ */
32
+ export type CustomFieldReactCollection<D extends CustomFieldData> = Record<
33
+ string,
34
+ [React.RefObject<CustomFieldRef<unknown>>, D]
35
+ >;