@dovetail-v2/refine 0.0.32 → 0.0.34

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.
Files changed (68) hide show
  1. package/dist/{MonacoYamlDiffEditor-6563a22b.js → MonacoYamlDiffEditor-799d6dfe.js} +5 -3
  2. package/dist/{index-3d05d4c7.js → index-3113dd7a.js} +11985 -7646
  3. package/dist/refine.js +171 -133
  4. package/dist/refine.umd.cjs +13116 -8930
  5. package/dist/style.css +75 -42
  6. package/lib/src/components/DurationTime/index.d.ts +6 -0
  7. package/lib/src/components/Form/FormModal.d.ts +9 -0
  8. package/lib/src/components/Form/RefineFormContent.d.ts +12 -0
  9. package/lib/src/components/Form/RefineFormPage.d.ts +7 -0
  10. package/lib/src/components/Form/YamlForm.d.ts +26 -0
  11. package/lib/src/components/Form/index.d.ts +7 -4
  12. package/lib/src/components/Form/type.d.ts +17 -0
  13. package/lib/src/components/Form/useRefineForm.d.ts +10 -0
  14. package/lib/src/components/Form/useYamlForm.d.ts +51 -0
  15. package/lib/src/components/FormErrorAlert/index.d.ts +1 -0
  16. package/lib/src/components/FormWidgets/KeyValueListWidget.d.ts +6 -0
  17. package/lib/src/components/FormWidgets/MetadataForm.d.ts +2 -0
  18. package/lib/src/components/FormWidgets/NameInputWidget.d.ts +51 -0
  19. package/lib/src/components/FormWidgets/NamespaceSelectWidget.d.ts +9 -0
  20. package/lib/src/components/FormWidgets/index.d.ts +4 -0
  21. package/lib/src/components/FormWidgets/widget.d.ts +5 -0
  22. package/lib/src/components/ImageNames/index.d.ts +1 -0
  23. package/lib/src/components/KeyValue/KeyValue.d.ts +6 -5
  24. package/lib/src/components/KeyValue/KeyValueAnnotation.d.ts +6 -0
  25. package/lib/src/components/KeyValue/KeyValueSecret.d.ts +5 -0
  26. package/lib/src/components/KeyValue/index.d.ts +2 -0
  27. package/lib/src/components/ListPage/index.d.ts +0 -1
  28. package/lib/src/components/NamespacesFilter/index.d.ts +6 -2
  29. package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +2 -1
  30. package/lib/src/components/PodSelectorTable/index.d.ts +6 -0
  31. package/lib/src/components/PortsTable/index.d.ts +7 -0
  32. package/lib/src/components/ReplicasDropdown/index.d.ts +9 -0
  33. package/lib/src/components/ResourceCRUD/list/index.d.ts +3 -7
  34. package/lib/src/components/ResourceCRUD/show/index.d.ts +3 -7
  35. package/lib/src/components/ServiceComponents/index.d.ts +4 -1
  36. package/lib/src/components/ShowContent/ShowContent.d.ts +5 -0
  37. package/lib/src/components/ShowContent/fields.d.ts +19 -12
  38. package/lib/src/components/ShowContent/groups.d.ts +14 -3
  39. package/lib/src/components/ShowContent/tabs.d.ts +1 -8
  40. package/lib/src/components/StateTag/StateTag.d.ts +1 -0
  41. package/lib/src/components/Table/TableToolBar.d.ts +1 -1
  42. package/lib/src/components/Table/index.d.ts +1 -0
  43. package/lib/src/components/Time/index.d.ts +1 -1
  44. package/lib/src/components/ValueDisplay/index.d.ts +9 -0
  45. package/lib/src/components/WorkloadDropdown/index.d.ts +2 -2
  46. package/lib/src/components/WorkloadReplicas/index.d.ts +13 -3
  47. package/lib/src/components/YamlForm/index.d.ts +4 -0
  48. package/lib/src/components/index.d.ts +2 -3
  49. package/lib/src/constants/k8s.d.ts +289 -89
  50. package/lib/src/constants/state.d.ts +2 -1
  51. package/lib/src/hooks/index.d.ts +1 -1
  52. package/lib/src/hooks/useDeleteModal/useDeleteModal.d.ts +1 -2
  53. package/lib/src/hooks/useEagleForm.d.ts +2 -1
  54. package/lib/src/hooks/useEagleTable/columns.d.ts +8 -2
  55. package/lib/src/hooks/useEagleTable/useEagleTable.d.ts +4 -0
  56. package/lib/src/hooks/useOpenForm.d.ts +3 -0
  57. package/lib/src/i18n.d.ts +168 -15
  58. package/lib/src/locales/en-US/index.d.ts +104 -1
  59. package/lib/src/locales/zh-CN/index.d.ts +64 -14
  60. package/lib/src/models/daemonset-model.d.ts +3 -1
  61. package/lib/src/models/deployment-model.d.ts +1 -1
  62. package/lib/src/models/ingress-model.d.ts +5 -3
  63. package/lib/src/models/job-model.d.ts +2 -0
  64. package/lib/src/models/statefulset-model.d.ts +1 -1
  65. package/lib/src/pages/deployments/index.d.ts +0 -1
  66. package/lib/src/types/resource.d.ts +12 -3
  67. package/package.json +6 -4
  68. package/dist/MonacoYamlEditor-a6e20f8c.js +0 -167
package/lib/src/i18n.d.ts CHANGED
@@ -18,7 +18,110 @@ export declare const resources: {
18
18
  retry: string;
19
19
  create_resource: string;
20
20
  edit_resource: string;
21
- status: string;
21
+ state: string;
22
+ name: string;
23
+ pod: string;
24
+ cancel: string;
25
+ delete: string;
26
+ create: string;
27
+ confirm_delete_text: string;
28
+ edit: string;
29
+ namespace: string;
30
+ image: string;
31
+ created_time: string;
32
+ label: string;
33
+ annotation: string;
34
+ type: string;
35
+ event: string;
36
+ reason: string;
37
+ object: string;
38
+ note: string;
39
+ condition: string;
40
+ download_yaml: string;
41
+ detail: string;
42
+ restarts: string;
43
+ updated_time: string;
44
+ message: string;
45
+ save: string;
46
+ more: string;
47
+ workload: string;
48
+ all_namespaces: string;
49
+ empty: string;
50
+ schedule: string;
51
+ lastScheduleTime: string;
52
+ duration: string;
53
+ started: string;
54
+ init_container: string;
55
+ regular_container: string;
56
+ container: string;
57
+ redeploy: string;
58
+ data: string;
59
+ suspend: string;
60
+ resume: string;
61
+ clusterIp: string;
62
+ sessionAffinity: string;
63
+ log: string;
64
+ select_container: string;
65
+ wrap: string;
66
+ resume_log: string;
67
+ log_new_lines: string;
68
+ ready: string;
69
+ updating: string;
70
+ completed: string;
71
+ failed: string;
72
+ suspended: string;
73
+ running: string;
74
+ terminating: string;
75
+ terminated: string;
76
+ succeeded: string;
77
+ unknown: string;
78
+ pending: string;
79
+ waiting: string;
80
+ sec: string;
81
+ min: string;
82
+ hr: string;
83
+ day: string;
84
+ expand: string;
85
+ fold: string;
86
+ rule: string;
87
+ default_backend: string;
88
+ ingress_class: string;
89
+ port: string;
90
+ pod_ready_num: string;
91
+ pod_replicas_num: string;
92
+ edit_replicas: string;
93
+ cert: string;
94
+ dns_record: string;
95
+ port_mapping: string;
96
+ out_cluster_access: string;
97
+ in_cluster_access: string;
98
+ fail_get_detail: string;
99
+ basic_info: string;
100
+ pod_selector: string;
101
+ ingress_rule: string;
102
+ egress_rule: string;
103
+ ip_address: string;
104
+ last_seen: string;
105
+ service_port: string;
106
+ pod_port: string;
107
+ node_port: string;
108
+ protocol: string;
109
+ key: string;
110
+ value: string;
111
+ path_type: string;
112
+ path: string;
113
+ backend: string;
114
+ belong_to_node: string;
115
+ true: string;
116
+ false: string;
117
+ warning: string;
118
+ normal: string;
119
+ delete_tip: string;
120
+ delete_resource: string;
121
+ password: string;
122
+ username: string;
123
+ host: string;
124
+ no_resource: string;
22
125
  };
23
126
  };
24
127
  'zh-CN': {
@@ -36,15 +139,14 @@ export declare const resources: {
36
139
  cancel: string;
37
140
  delete: string;
38
141
  create: string;
142
+ delete_resource: string;
39
143
  confirm_delete_text: string;
144
+ delete_tip: string;
40
145
  edit: string;
41
146
  namespace: string;
42
147
  name: string;
43
148
  state: string;
44
- status: string;
45
- phase: string;
46
149
  image: string;
47
- replicas: string;
48
150
  created_time: string;
49
151
  label: string;
50
152
  annotation: string;
@@ -56,36 +158,28 @@ export declare const resources: {
56
158
  condition: string;
57
159
  download_yaml: string;
58
160
  detail: string;
59
- node_name: string;
60
161
  restarts: string;
61
162
  updated_time: string;
62
163
  message: string;
63
164
  save: string;
64
- more: string;
65
165
  workload: string;
66
166
  all_namespaces: string;
67
167
  empty: string;
68
168
  schedule: string;
69
169
  lastScheduleTime: string;
70
170
  duration: string;
71
- completions: string;
72
171
  started: string;
73
172
  init_container: string;
173
+ regular_container: string;
74
174
  container: string;
75
175
  redeploy: string;
76
176
  data: string;
77
177
  suspend: string;
78
178
  resume: string;
79
- cluster: string;
80
- storage: string;
81
- network: string;
82
179
  clusterIp: string;
83
180
  sessionAffinity: string;
84
181
  log: string;
85
182
  select_container: string;
86
- wrap: string;
87
- resume_log: string;
88
- log_new_lines: string;
89
183
  fetch_schema_fail: string;
90
184
  obtain_data_error: string;
91
185
  retry: string;
@@ -97,6 +191,7 @@ export declare const resources: {
97
191
  running: string;
98
192
  terminating: string;
99
193
  succeeded: string;
194
+ terminated: string;
100
195
  unknown: string;
101
196
  pending: string;
102
197
  waiting: string;
@@ -110,7 +205,6 @@ export declare const resources: {
110
205
  fold: string;
111
206
  rule: string;
112
207
  default_backend: string;
113
- ingress_rule_type: string;
114
208
  ingress_class: string;
115
209
  port: string;
116
210
  pod_ready_num: string;
@@ -121,9 +215,68 @@ export declare const resources: {
121
215
  port_mapping: string;
122
216
  out_cluster_access: string;
123
217
  in_cluster_access: string;
124
- any_node_ip: string;
125
218
  fail_get_detail: string;
126
219
  basic_info: string;
220
+ pod: string;
221
+ pod_num: string;
222
+ pod_selector: string;
223
+ ingress_rule: string;
224
+ egress_rule: string;
225
+ ip_address: string;
226
+ last_seen: string;
227
+ service_port: string;
228
+ pod_port: string;
229
+ node_port: string;
230
+ protocol: string;
231
+ key: string;
232
+ value: string;
233
+ show_data_value: string;
234
+ hide_data_value: string;
235
+ path_type: string;
236
+ path: string;
237
+ backend: string;
238
+ belong_to_node: string;
239
+ please_input: string;
240
+ create_failed: string;
241
+ create_failed_tip: string;
242
+ save_failed: string;
243
+ save_failed_tip: string;
244
+ completion_num_tooltip: string;
245
+ ready_num_tooltip: string;
246
+ true: string;
247
+ false: string;
248
+ warning: string;
249
+ normal: string;
250
+ realtime_log: string;
251
+ previous_log: string;
252
+ auto_wrap: string;
253
+ name_can_not_be_empty: string;
254
+ password: string;
255
+ username: string;
256
+ host: string;
257
+ container_num: string;
258
+ edit_resource_success: string;
259
+ redeploy_success_toast: string;
260
+ redeploy_failed_toast: string;
261
+ pause_success_toast: string;
262
+ pause_failed_toast: string;
263
+ resume_success_toast: string;
264
+ resume_failed_toast: string;
265
+ delete_success_toast: string;
266
+ delete_failed_toast: string;
267
+ create_success_toast: string;
268
+ save_yaml_success_toast: string;
269
+ save_replicas_success_toast: string;
270
+ save_replicas_failed_toast: string;
271
+ no_resource: string;
272
+ port_mapping_title_tooltip: string;
273
+ in_cluster_desc: string;
274
+ in_cluster_ip_desc: string;
275
+ in_cluster_external_name_desc: string;
276
+ out_cluster_ip_desc: string;
277
+ out_cluster_node_port_desc: string;
278
+ out_cluster_lb_desc: string;
279
+ out_external_name_desc: string;
127
280
  };
128
281
  };
129
282
  };
@@ -15,7 +15,110 @@ declare const _default: {
15
15
  retry: string;
16
16
  create_resource: string;
17
17
  edit_resource: string;
18
- status: string;
18
+ state: string;
19
+ name: string;
20
+ pod: string;
21
+ cancel: string;
22
+ delete: string;
23
+ create: string;
24
+ confirm_delete_text: string;
25
+ edit: string;
26
+ namespace: string;
27
+ image: string;
28
+ created_time: string;
29
+ label: string;
30
+ annotation: string;
31
+ type: string;
32
+ event: string;
33
+ reason: string;
34
+ object: string;
35
+ note: string;
36
+ condition: string;
37
+ download_yaml: string;
38
+ detail: string;
39
+ restarts: string;
40
+ updated_time: string;
41
+ message: string;
42
+ save: string;
43
+ more: string;
44
+ workload: string;
45
+ all_namespaces: string;
46
+ empty: string;
47
+ schedule: string;
48
+ lastScheduleTime: string;
49
+ duration: string;
50
+ started: string;
51
+ init_container: string;
52
+ regular_container: string;
53
+ container: string;
54
+ redeploy: string;
55
+ data: string;
56
+ suspend: string;
57
+ resume: string;
58
+ clusterIp: string;
59
+ sessionAffinity: string;
60
+ log: string;
61
+ select_container: string;
62
+ wrap: string;
63
+ resume_log: string;
64
+ log_new_lines: string;
65
+ ready: string;
66
+ updating: string;
67
+ completed: string;
68
+ failed: string;
69
+ suspended: string;
70
+ running: string;
71
+ terminating: string;
72
+ terminated: string;
73
+ succeeded: string;
74
+ unknown: string;
75
+ pending: string;
76
+ waiting: string;
77
+ sec: string;
78
+ min: string;
79
+ hr: string;
80
+ day: string;
81
+ expand: string;
82
+ fold: string;
83
+ rule: string;
84
+ default_backend: string;
85
+ ingress_class: string;
86
+ port: string;
87
+ pod_ready_num: string;
88
+ pod_replicas_num: string;
89
+ edit_replicas: string;
90
+ cert: string;
91
+ dns_record: string;
92
+ port_mapping: string;
93
+ out_cluster_access: string;
94
+ in_cluster_access: string;
95
+ fail_get_detail: string;
96
+ basic_info: string;
97
+ pod_selector: string;
98
+ ingress_rule: string;
99
+ egress_rule: string;
100
+ ip_address: string;
101
+ last_seen: string;
102
+ service_port: string;
103
+ pod_port: string;
104
+ node_port: string;
105
+ protocol: string;
106
+ key: string;
107
+ value: string;
108
+ path_type: string;
109
+ path: string;
110
+ backend: string;
111
+ belong_to_node: string;
112
+ true: string;
113
+ false: string;
114
+ warning: string;
115
+ normal: string;
116
+ delete_tip: string;
117
+ delete_resource: string;
118
+ password: string;
119
+ username: string;
120
+ host: string;
121
+ no_resource: string;
19
122
  };
20
123
  };
21
124
  export default _default;
@@ -13,15 +13,14 @@ declare const _default: {
13
13
  cancel: string;
14
14
  delete: string;
15
15
  create: string;
16
+ delete_resource: string;
16
17
  confirm_delete_text: string;
18
+ delete_tip: string;
17
19
  edit: string;
18
20
  namespace: string;
19
21
  name: string;
20
22
  state: string;
21
- status: string;
22
- phase: string;
23
23
  image: string;
24
- replicas: string;
25
24
  created_time: string;
26
25
  label: string;
27
26
  annotation: string;
@@ -33,36 +32,28 @@ declare const _default: {
33
32
  condition: string;
34
33
  download_yaml: string;
35
34
  detail: string;
36
- node_name: string;
37
35
  restarts: string;
38
36
  updated_time: string;
39
37
  message: string;
40
38
  save: string;
41
- more: string;
42
39
  workload: string;
43
40
  all_namespaces: string;
44
41
  empty: string;
45
42
  schedule: string;
46
43
  lastScheduleTime: string;
47
44
  duration: string;
48
- completions: string;
49
45
  started: string;
50
46
  init_container: string;
47
+ regular_container: string;
51
48
  container: string;
52
49
  redeploy: string;
53
50
  data: string;
54
51
  suspend: string;
55
52
  resume: string;
56
- cluster: string;
57
- storage: string;
58
- network: string;
59
53
  clusterIp: string;
60
54
  sessionAffinity: string;
61
55
  log: string;
62
56
  select_container: string;
63
- wrap: string;
64
- resume_log: string;
65
- log_new_lines: string;
66
57
  fetch_schema_fail: string;
67
58
  obtain_data_error: string;
68
59
  retry: string;
@@ -74,6 +65,7 @@ declare const _default: {
74
65
  running: string;
75
66
  terminating: string;
76
67
  succeeded: string;
68
+ terminated: string;
77
69
  unknown: string;
78
70
  pending: string;
79
71
  waiting: string;
@@ -87,7 +79,6 @@ declare const _default: {
87
79
  fold: string;
88
80
  rule: string;
89
81
  default_backend: string;
90
- ingress_rule_type: string;
91
82
  ingress_class: string;
92
83
  port: string;
93
84
  pod_ready_num: string;
@@ -98,9 +89,68 @@ declare const _default: {
98
89
  port_mapping: string;
99
90
  out_cluster_access: string;
100
91
  in_cluster_access: string;
101
- any_node_ip: string;
102
92
  fail_get_detail: string;
103
93
  basic_info: string;
94
+ pod: string;
95
+ pod_num: string;
96
+ pod_selector: string;
97
+ ingress_rule: string;
98
+ egress_rule: string;
99
+ ip_address: string;
100
+ last_seen: string;
101
+ service_port: string;
102
+ pod_port: string;
103
+ node_port: string;
104
+ protocol: string;
105
+ key: string;
106
+ value: string;
107
+ show_data_value: string;
108
+ hide_data_value: string;
109
+ path_type: string;
110
+ path: string;
111
+ backend: string;
112
+ belong_to_node: string;
113
+ please_input: string;
114
+ create_failed: string;
115
+ create_failed_tip: string;
116
+ save_failed: string;
117
+ save_failed_tip: string;
118
+ completion_num_tooltip: string;
119
+ ready_num_tooltip: string;
120
+ true: string;
121
+ false: string;
122
+ warning: string;
123
+ normal: string;
124
+ realtime_log: string;
125
+ previous_log: string;
126
+ auto_wrap: string;
127
+ name_can_not_be_empty: string;
128
+ password: string;
129
+ username: string;
130
+ host: string;
131
+ container_num: string;
132
+ edit_resource_success: string;
133
+ redeploy_success_toast: string;
134
+ redeploy_failed_toast: string;
135
+ pause_success_toast: string;
136
+ pause_failed_toast: string;
137
+ resume_success_toast: string;
138
+ resume_failed_toast: string;
139
+ delete_success_toast: string;
140
+ delete_failed_toast: string;
141
+ create_success_toast: string;
142
+ save_yaml_success_toast: string;
143
+ save_replicas_success_toast: string;
144
+ save_replicas_failed_toast: string;
145
+ no_resource: string;
146
+ port_mapping_title_tooltip: string;
147
+ in_cluster_desc: string;
148
+ in_cluster_ip_desc: string;
149
+ in_cluster_external_name_desc: string;
150
+ out_cluster_ip_desc: string;
151
+ out_cluster_node_port_desc: string;
152
+ out_cluster_lb_desc: string;
153
+ out_external_name_desc: string;
104
154
  };
105
155
  };
106
156
  export default _default;
@@ -9,6 +9,8 @@ export declare class DaemonSetModel extends WorkloadModel {
9
9
  spec?: RequiredDaemonSet['spec'];
10
10
  status?: RequiredDaemonSet['status'];
11
11
  constructor(_rawYaml: RequiredDaemonSet, _globalStore: GlobalStore);
12
- get stateDisplay(): WorkloadState.UPDATEING | WorkloadState.READY;
12
+ get stateDisplay(): WorkloadState.UPDATING | WorkloadState.READY;
13
+ get replicas(): number;
14
+ get readyReplicas(): number;
13
15
  }
14
16
  export {};
@@ -9,6 +9,6 @@ export declare class DeploymentModel extends WorkloadModel {
9
9
  spec?: RequiredDeployment['spec'];
10
10
  status?: RequiredDeployment['status'];
11
11
  constructor(_rawYaml: RequiredDeployment, _globalStore: GlobalStore);
12
- get stateDisplay(): WorkloadState.UPDATEING | WorkloadState.READY;
12
+ get stateDisplay(): WorkloadState.UPDATING | WorkloadState.READY;
13
13
  }
14
14
  export {};
@@ -2,17 +2,19 @@ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
2
  import type { Ingress } from 'kubernetes-types/networking/v1';
3
3
  import { ResourceModel } from './resource-model';
4
4
  type IngressTypes = Required<Ingress> & Unstructured;
5
- type RuleItem = {
6
- serviceName: string;
5
+ export type RuleItem = {
6
+ serviceName?: string;
7
+ resourceName?: string;
7
8
  fullPath: string;
8
9
  pathType: string;
9
10
  host?: string;
10
- servicePort?: number;
11
+ servicePort?: number | string;
11
12
  };
12
13
  export declare class IngressModel extends ResourceModel<IngressTypes> {
13
14
  _rawYaml: IngressTypes;
14
15
  _globalStore: GlobalStore;
15
16
  flattenedRules: RuleItem[];
16
17
  constructor(_rawYaml: IngressTypes, _globalStore: GlobalStore);
18
+ private getFullPath;
17
19
  }
18
20
  export {};
@@ -14,6 +14,8 @@ export declare class JobModel extends WorkloadBaseModel {
14
14
  private getRestarts;
15
15
  get duration(): number;
16
16
  get completionsDisplay(): string;
17
+ get succeeded(): number;
18
+ get completions(): number | undefined;
17
19
  get stateDisplay(): WorkloadState.COMPLETED | WorkloadState.FAILED | WorkloadState.SUSPENDED | WorkloadState.RUNNING;
18
20
  }
19
21
  export {};
@@ -9,6 +9,6 @@ export declare class StatefulSetModel extends WorkloadModel {
9
9
  spec?: RequiredStatefulSet['spec'];
10
10
  status?: RequiredStatefulSet['status'];
11
11
  constructor(_rawYaml: RequiredStatefulSet, _globalStore: GlobalStore);
12
- get stateDisplay(): WorkloadState.UPDATEING | WorkloadState.READY;
12
+ get stateDisplay(): WorkloadState.UPDATING | WorkloadState.READY;
13
13
  }
14
14
  export {};
@@ -1,3 +1,2 @@
1
- export * from './create';
2
1
  export * from './list';
3
2
  export * from './show';
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { FormModalProps } from 'src/components/FormModal';
2
+ import { Unstructured } from 'k8s-api-provider';
3
+ import { YamlFormProps } from '../components';
4
+ import { RefineFormField } from '../components/Form';
3
5
  import { ShowConfig } from '../components/ShowContent';
4
6
  import { Column } from '../components/Table';
5
7
  import { ResourceModel } from '../models';
@@ -24,15 +26,22 @@ export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
24
26
  basePath: string;
25
27
  apiVersion: string;
26
28
  label: string;
29
+ description?: string;
27
30
  parent?: RESOURCE_GROUP;
28
31
  formatter?: (v: Model) => Model;
29
32
  initValue?: Record<string, unknown>;
30
33
  columns?: () => Column<Model>[];
34
+ noShow?: boolean;
31
35
  showConfig?: () => ShowConfig<Model>;
32
36
  Dropdown?: React.FC<{
33
37
  record: Model;
34
38
  }>;
35
- formType?: FormType;
36
- FormModal?: React.FC<FormModalProps>;
37
39
  isCustom?: boolean;
40
+ formConfig?: {
41
+ fields?: RefineFormField[];
42
+ renderForm?: (props: YamlFormProps) => React.ReactNode;
43
+ formType?: FormType;
44
+ transformInitValues?: (values: Unstructured) => Unstructured;
45
+ transformApplyValues?: (values: Unstructured) => Unstructured;
46
+ };
38
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -14,8 +14,9 @@
14
14
  "@cloudtower/icons-react": "^0.27.73",
15
15
  "@patternfly/react-core": "^5.1.1",
16
16
  "@patternfly/react-log-viewer": "^5.0.0",
17
- "@refinedev/core": "^4.38.0",
18
- "@refinedev/inferencer": "^4.5.4",
17
+ "@refinedev/core": "^4.47.2",
18
+ "@refinedev/inferencer": "^4.5.20",
19
+ "@refinedev/react-hook-form": "^4.8.14",
19
20
  "antd": "4.5.0",
20
21
  "dayjs": "^1.11.10",
21
22
  "i18next": "^23.2.3",
@@ -29,6 +30,7 @@
29
30
  "qs": "6.11.2",
30
31
  "react": "^16.12.0",
31
32
  "react-dom": "^16.12.0",
33
+ "react-hook-form": "^7.50.1",
32
34
  "react-router-dom": "^5.1.2",
33
35
  "sunflower-antd": "^1.0.0-beta.3",
34
36
  "usehooks-ts": "^2.9.1"
@@ -69,7 +71,7 @@
69
71
  "peerDependencies": {
70
72
  "@cloudtower/eagle": "^0.27.73",
71
73
  "@cloudtower/icons-react": "^0.27.73",
72
- "@refinedev/core": "^4.38.0",
74
+ "@refinedev/core": "^4.47.2",
73
75
  "antd": "4.5.0",
74
76
  "i18next": "^23.2.3",
75
77
  "react": "^16.12.0",