@dovetail-v2/refine 0.4.2-beta.0 → 0.4.4

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 (44) hide show
  1. package/dist/{PodShell-43c7028e.cjs → PodShell-a335b2b2.cjs} +4 -2
  2. package/dist/{PodShell-76331418.js → PodShell-a6ed3498.js} +4 -2
  3. package/dist/components/CopyButton/index.d.ts +7 -0
  4. package/dist/components/EditMetadataForm/LabelFormatPopover.d.ts +0 -1
  5. package/dist/components/Form/ExtraSubmitFooter.d.ts +23 -0
  6. package/dist/components/Form/FormModal.d.ts +1 -1
  7. package/dist/components/Form/RawYamlFormModal.d.ts +1 -1
  8. package/dist/components/Form/RefineFormContainer.d.ts +1 -1
  9. package/dist/components/Form/useReactHookForm.d.ts +1 -2
  10. package/dist/components/Form/useRefineForm.d.ts +1 -1
  11. package/dist/components/FormWidgets/NameInputWidget.d.ts +0 -48
  12. package/dist/components/KeyValueTableForm/FormatRulePopover.d.ts +7 -0
  13. package/dist/components/KeyValueTableForm/index.d.ts +3 -1
  14. package/dist/components/ServiceComponents/index.d.ts +10 -0
  15. package/dist/components/Shell/ShellToolbar.d.ts +1 -1
  16. package/dist/components/ShowContent/fields.d.ts +4 -0
  17. package/dist/components/index.d.ts +2 -3
  18. package/dist/contexts/component.d.ts +14 -5
  19. package/dist/contexts/index.d.ts +1 -0
  20. package/dist/hooks/use409Retry.d.ts +68 -0
  21. package/dist/hooks/useDeleteModal/index.d.ts +1 -0
  22. package/dist/hooks/useEagleTable/columns.d.ts +5 -4
  23. package/dist/hooks/useOpenForm.d.ts +1 -1
  24. package/dist/hooks/useSubmitForm.d.ts +1 -1
  25. package/dist/hooks/useTableData.d.ts +1 -1
  26. package/dist/i18n.d.ts +31 -0
  27. package/dist/{index-31874f77.cjs → index-053ee180.cjs} +1 -1
  28. package/dist/{index-ab97826a.js → index-d7bc2ee6.js} +1 -1
  29. package/dist/index.d.ts +0 -1
  30. package/dist/locales/en-US/index.d.ts +15 -0
  31. package/dist/locales/zh-CN/index.d.ts +16 -0
  32. package/dist/models/daemonset-model.d.ts +0 -3
  33. package/dist/models/statefulset-model.d.ts +0 -3
  34. package/dist/models/workload-base-model.d.ts +3 -0
  35. package/dist/models/workload-model.d.ts +3 -0
  36. package/dist/pages/deployments/form/index.d.ts +2 -1
  37. package/dist/plugins/model-plugin.d.ts +1 -1
  38. package/dist/refine.cjs +1607 -1333
  39. package/dist/refine.js +1611 -1337
  40. package/dist/shell.cjs +1 -1
  41. package/dist/shell.js +1 -1
  42. package/dist/style.css +268 -121
  43. package/dist/types/resource.d.ts +33 -9
  44. package/package.json +18 -7
package/dist/shell.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-31874f77.cjs");
3
+ const index = require("./index-053ee180.cjs");
4
4
  const common = require("./common-1eb43414.cjs");
5
5
  require("@cloudtower/eagle");
6
6
  require("@xterm/addon-canvas");
package/dist/shell.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S } from "./index-ab97826a.js";
1
+ import { S } from "./index-d7bc2ee6.js";
2
2
  import { S as S2 } from "./common-241b21f8.js";
3
3
  import "@cloudtower/eagle";
4
4
  import "@xterm/addon-canvas";
package/dist/style.css CHANGED
@@ -960,30 +960,9 @@
960
960
  /* box shadow */
961
961
  /* fisheye */
962
962
  /* z-index */
963
- .b1vtjd4k.ant-btn.ant-btn-link {
964
- display: block;
965
- }
966
-
967
- .luro4rx.ant-btn-link.ant-btn {
968
- padding: 0;
969
- height: 18px;
970
- }
971
-
972
- .s1gydjqf.ant-btn-link.ant-btn {
973
- padding: 0;
974
- height: 18px;
975
- color: var(--blue-60) !important;
976
- }
977
- .s1gydjqf.ant-btn-link.ant-btn:hover {
978
- color: var(--blue-50) !important;
979
- }
980
-
981
- .dvp1i89 {
982
- display: inline-block;
983
- width: auto !important;
984
- height: 18px;
985
- line-height: 18px;
986
- border-bottom: 1px dashed rgba(107, 128, 167, 0.6);
963
+ .c1oll6q9 {
964
+ cursor: pointer;
965
+ margin: 1px 0;
987
966
  }/* // basic */
988
967
  /* FishEye Color Variables and Functions */
989
968
  /*
@@ -1031,76 +1010,37 @@
1031
1010
  /* box shadow */
1032
1011
  /* fisheye */
1033
1012
  /* z-index */
1034
- .t13a6vox {
1035
- flex-wrap: wrap;
1036
- max-width: 100%;
1037
- gap: 8px 0px;
1038
- margin-bottom: 4px;
1013
+ .b1vtjd4k.ant-btn.ant-btn-link {
1014
+ display: block;
1039
1015
  }
1040
1016
 
1041
- .t12ikbmp.ant-tag {
1042
- overflow: hidden;
1043
- text-overflow: ellipsis;
1044
- color: #1D326C;
1017
+ .luro4rx.ant-btn-link.ant-btn {
1018
+ padding: 0;
1019
+ height: 18px;
1045
1020
  }
1046
- .t12ikbmp.ant-tag.outside-tag {
1047
- border: 1px solid #A3B4CC;
1048
- background-color: #E4E9F2;
1021
+
1022
+ .s1gydjqf.ant-btn-link.ant-btn {
1023
+ padding: 0;
1024
+ height: 18px;
1025
+ color: var(--blue-60) !important;
1049
1026
  }
1050
- .t12ikbmp.ant-tag .inside-tag {
1051
- background-color: #CCD4E3;
1052
- }/* // basic */
1053
- /* FishEye Color Variables and Functions */
1054
- /*
1055
- --------------------------- Primary Color ---------------------------
1056
- */
1057
- /*
1058
- ---------------------------When necessary to add at any time---------------------------
1059
- */
1060
- /* computed */
1061
- /* blue */
1062
- /* green */
1063
- /* yellow */
1064
- /* red */
1065
- /* purple */
1066
- /* palette global token*/
1067
- /* color opaque */
1068
- /* color transparent */
1069
- /* blue transparent */
1070
- /* green transparent */
1071
- /* yellow transparent */
1072
- /* red transparent */
1073
- /* gray transparent */
1074
- /* white transparent */
1075
- /* gradient opaque */
1076
- /* blue radial gradient */
1077
- /* blue linear gradient */
1078
- /* green radial gradient */
1079
- /* yellow radial gradient */
1080
- /* red radial gradient */
1081
- /* gray radial gradient */
1082
- /* white to gray radial gradient */
1083
- /* white to gray linear gradient */
1084
- /* gradient transparent */
1085
- /* secondary palette */
1086
- /* purple radial gradient */
1087
- /* refine alias color */
1088
- /* text */
1089
- /* link */
1090
- /* fill */
1091
- /* fill element */
1092
- /* fill interaction */
1093
- /* stroke */
1094
- /* background */
1095
- /* dim */
1096
- /* box shadow */
1097
- /* fisheye */
1098
- /* z-index */
1099
- .t19ustft {
1027
+ .s1gydjqf.ant-btn-link.ant-btn:hover {
1028
+ color: var(--blue-50) !important;
1029
+ }
1030
+
1031
+ .dvp1i89 {
1100
1032
  display: inline-block;
1101
- line-height: 18px;
1033
+ width: auto !important;
1102
1034
  height: 18px;
1035
+ line-height: 18px;
1103
1036
  border-bottom: 1px dashed rgba(107, 128, 167, 0.6);
1037
+ }
1038
+
1039
+ .azmggeh {
1040
+ display: inline-flex;
1041
+ align-items: center;
1042
+ gap: 4px;
1043
+ vertical-align: top;
1104
1044
  }/* // basic */
1105
1045
  /* FishEye Color Variables and Functions */
1106
1046
  /*
@@ -1148,16 +1088,24 @@
1148
1088
  /* box shadow */
1149
1089
  /* fisheye */
1150
1090
  /* z-index */
1151
- .wwyz7ti.ant-btn.ant-btn.ant-btn-primary {
1152
- background-color: #fea008;
1153
- }
1154
- .wwyz7ti.ant-btn.ant-btn.ant-btn-primary:hover {
1155
- background-color: #feba33;
1091
+ .t13a6vox {
1092
+ flex-wrap: wrap;
1093
+ max-width: 100%;
1094
+ gap: 8px 0px;
1095
+ margin-bottom: 4px;
1156
1096
  }
1157
1097
 
1158
- .c1xsou5f.ant-btn {
1159
- border-radius: 6px;
1160
- border: 1px solid rgba(172, 186, 211, 0.6) !important;
1098
+ .t12ikbmp.ant-tag {
1099
+ overflow: hidden;
1100
+ text-overflow: ellipsis;
1101
+ color: #1d326c;
1102
+ }
1103
+ .t12ikbmp.ant-tag.outside-tag {
1104
+ border: 1px solid #a3b4cc;
1105
+ background-color: #e4e9f2;
1106
+ }
1107
+ .t12ikbmp.ant-tag .inside-tag {
1108
+ background-color: #ccd4e3;
1161
1109
  }/* // basic */
1162
1110
  /* FishEye Color Variables and Functions */
1163
1111
  /*
@@ -1205,9 +1153,11 @@
1205
1153
  /* box shadow */
1206
1154
  /* fisheye */
1207
1155
  /* z-index */
1208
- .n609wlp {
1209
- margin-top: 8px;
1210
- color: #2d3a56;
1156
+ .t19ustft {
1157
+ display: inline-block;
1158
+ line-height: 18px;
1159
+ height: 18px;
1160
+ border-bottom: 1px dashed rgba(107, 128, 167, 0.6);
1211
1161
  }/* // basic */
1212
1162
  /* FishEye Color Variables and Functions */
1213
1163
  /*
@@ -1873,6 +1823,78 @@
1873
1823
  /* box shadow */
1874
1824
  /* fisheye */
1875
1825
  /* z-index */
1826
+ .pmi0ggi {
1827
+ display: flex;
1828
+ align-items: center;
1829
+ width: 100%;
1830
+ min-width: 0;
1831
+ }
1832
+
1833
+ .p1gmjxeo {
1834
+ flex: 1 1 auto;
1835
+ min-width: 0;
1836
+ overflow: hidden;
1837
+ text-overflow: ellipsis;
1838
+ white-space: nowrap;
1839
+ }
1840
+ .p1gmjxeo > * {
1841
+ display: block;
1842
+ max-width: 100%;
1843
+ overflow: hidden;
1844
+ text-overflow: ellipsis;
1845
+ white-space: nowrap;
1846
+ }
1847
+
1848
+ .p1379cb5 {
1849
+ flex: 0 0 16px;
1850
+ margin-left: auto;
1851
+ }/* // basic */
1852
+ /* FishEye Color Variables and Functions */
1853
+ /*
1854
+ --------------------------- Primary Color ---------------------------
1855
+ */
1856
+ /*
1857
+ ---------------------------When necessary to add at any time---------------------------
1858
+ */
1859
+ /* computed */
1860
+ /* blue */
1861
+ /* green */
1862
+ /* yellow */
1863
+ /* red */
1864
+ /* purple */
1865
+ /* palette global token*/
1866
+ /* color opaque */
1867
+ /* color transparent */
1868
+ /* blue transparent */
1869
+ /* green transparent */
1870
+ /* yellow transparent */
1871
+ /* red transparent */
1872
+ /* gray transparent */
1873
+ /* white transparent */
1874
+ /* gradient opaque */
1875
+ /* blue radial gradient */
1876
+ /* blue linear gradient */
1877
+ /* green radial gradient */
1878
+ /* yellow radial gradient */
1879
+ /* red radial gradient */
1880
+ /* gray radial gradient */
1881
+ /* white to gray radial gradient */
1882
+ /* white to gray linear gradient */
1883
+ /* gradient transparent */
1884
+ /* secondary palette */
1885
+ /* purple radial gradient */
1886
+ /* refine alias color */
1887
+ /* text */
1888
+ /* link */
1889
+ /* fill */
1890
+ /* fill element */
1891
+ /* fill interaction */
1892
+ /* stroke */
1893
+ /* background */
1894
+ /* dim */
1895
+ /* box shadow */
1896
+ /* fisheye */
1897
+ /* z-index */
1876
1898
  .c8jy7dc {
1877
1899
  display: flex;
1878
1900
  padding: 8px 10px;
@@ -2068,47 +2090,35 @@
2068
2090
  /* box shadow */
2069
2091
  /* fisheye */
2070
2092
  /* z-index */
2071
- .p5jt6nm .ant-popover-inner {
2093
+ .f1eyh8ow .ant-popover-inner {
2072
2094
  border-radius: 8px;
2073
2095
  }
2074
- .p5jt6nm .ant-popover-innerntent {
2075
- padding: 12px;
2076
- }
2077
- .p5jt6nm .ant-popover-content > .ant-popover-arrow {
2096
+ .f1eyh8ow .ant-popover-content > .ant-popover-arrow {
2078
2097
  display: none;
2079
2098
  }
2080
- .p5jt6nm td.ant-table-cell {
2081
- vertical-align: middle;
2082
- }
2083
- .p5jt6nm .rule-list {
2084
- list-style: disc;
2085
- list-style-position: inside;
2086
- }
2087
- .p5jt6nm .ant-table {
2099
+ .f1eyh8ow .ant-table {
2088
2100
  font-size: 12px;
2089
2101
  line-height: 18px;
2090
2102
  }
2091
- .p5jt6nm .ant-table .ant-table-container {
2103
+ .f1eyh8ow .ant-table .ant-table-container {
2092
2104
  border: none !important;
2093
2105
  }
2094
- .p5jt6nm .ant-table .ant-table-thead {
2106
+ .f1eyh8ow .ant-table .ant-table-thead {
2095
2107
  font-weight: 700;
2096
2108
  }
2097
- .p5jt6nm .ant-table .ant-table-thead > tr > th {
2109
+ .f1eyh8ow .ant-table .ant-table-thead > tr > th {
2098
2110
  background: #fff;
2099
2111
  }
2100
- .p5jt6nm .ant-table thead > tr > th:last-child,
2101
- .p5jt6nm .ant-table tbody > tr > td:last-child {
2112
+ .f1eyh8ow .ant-table thead > tr > th:last-child,
2113
+ .f1eyh8ow .ant-table tbody > tr > td:last-child {
2102
2114
  border-right: none !important;
2103
2115
  }
2104
- .p5jt6nm .ant-table tbody > tr:last-child > td {
2116
+ .f1eyh8ow .ant-table tbody > tr:last-child > td {
2105
2117
  border-bottom: none;
2106
2118
  }
2107
- .p5jt6nm .ant-table .ant-table-cell {
2119
+ .f1eyh8ow .ant-table .ant-table-cell {
2108
2120
  padding: 4px 8px !important;
2109
- }
2110
- .p5jt6nm .ant-table li {
2111
- text-indent: 8px;
2121
+ vertical-align: middle;
2112
2122
  }/* // basic */
2113
2123
  /* FishEye Color Variables and Functions */
2114
2124
  /*
@@ -4376,6 +4386,63 @@
4376
4386
  /* box shadow */
4377
4387
  /* fisheye */
4378
4388
  /* z-index */
4389
+ .wwyz7ti.ant-btn.ant-btn.ant-btn-primary {
4390
+ background-color: #fea008;
4391
+ }
4392
+ .wwyz7ti.ant-btn.ant-btn.ant-btn-primary:hover {
4393
+ background-color: #feba33;
4394
+ }
4395
+
4396
+ .c1xsou5f.ant-btn {
4397
+ border-radius: 6px;
4398
+ border: 1px solid rgba(172, 186, 211, 0.6) !important;
4399
+ }/* // basic */
4400
+ /* FishEye Color Variables and Functions */
4401
+ /*
4402
+ --------------------------- Primary Color ---------------------------
4403
+ */
4404
+ /*
4405
+ ---------------------------When necessary to add at any time---------------------------
4406
+ */
4407
+ /* computed */
4408
+ /* blue */
4409
+ /* green */
4410
+ /* yellow */
4411
+ /* red */
4412
+ /* purple */
4413
+ /* palette global token*/
4414
+ /* color opaque */
4415
+ /* color transparent */
4416
+ /* blue transparent */
4417
+ /* green transparent */
4418
+ /* yellow transparent */
4419
+ /* red transparent */
4420
+ /* gray transparent */
4421
+ /* white transparent */
4422
+ /* gradient opaque */
4423
+ /* blue radial gradient */
4424
+ /* blue linear gradient */
4425
+ /* green radial gradient */
4426
+ /* yellow radial gradient */
4427
+ /* red radial gradient */
4428
+ /* gray radial gradient */
4429
+ /* white to gray radial gradient */
4430
+ /* white to gray linear gradient */
4431
+ /* gradient transparent */
4432
+ /* secondary palette */
4433
+ /* purple radial gradient */
4434
+ /* refine alias color */
4435
+ /* text */
4436
+ /* link */
4437
+ /* fill */
4438
+ /* fill element */
4439
+ /* fill interaction */
4440
+ /* stroke */
4441
+ /* background */
4442
+ /* dim */
4443
+ /* box shadow */
4444
+ /* fisheye */
4445
+ /* z-index */
4379
4446
  .fq4465w.ant-modal.fullscreen .ant-modal-header {
4380
4447
  padding: 60px 0 32px 0;
4381
4448
  max-width: var(--max-modal-width, 1024px);
@@ -4462,6 +4529,86 @@
4462
4529
  /* box shadow */
4463
4530
  /* fisheye */
4464
4531
  /* z-index */
4532
+ .f16wn4bu {
4533
+ display: flex;
4534
+ align-items: center;
4535
+ justify-content: space-between;
4536
+ width: 100%;
4537
+ }
4538
+
4539
+ .fk5l2b4 {
4540
+ display: flex;
4541
+ align-items: center;
4542
+ min-width: 0;
4543
+ }
4544
+
4545
+ .f1r3vl4u {
4546
+ display: flex;
4547
+ align-items: center;
4548
+ gap: 8px;
4549
+ }
4550
+
4551
+ .e1y8i1r4 {
4552
+ display: inline-flex;
4553
+ align-items: center;
4554
+ min-width: 0;
4555
+ color: var(--color-red-6);
4556
+ }
4557
+
4558
+ .e16fn5cj {
4559
+ flex: none;
4560
+ margin-right: 4px;
4561
+ }
4562
+
4563
+ .prji3wx {
4564
+ margin-right: 4px;
4565
+ }/* // basic */
4566
+ /* FishEye Color Variables and Functions */
4567
+ /*
4568
+ --------------------------- Primary Color ---------------------------
4569
+ */
4570
+ /*
4571
+ ---------------------------When necessary to add at any time---------------------------
4572
+ */
4573
+ /* computed */
4574
+ /* blue */
4575
+ /* green */
4576
+ /* yellow */
4577
+ /* red */
4578
+ /* purple */
4579
+ /* palette global token*/
4580
+ /* color opaque */
4581
+ /* color transparent */
4582
+ /* blue transparent */
4583
+ /* green transparent */
4584
+ /* yellow transparent */
4585
+ /* red transparent */
4586
+ /* gray transparent */
4587
+ /* white transparent */
4588
+ /* gradient opaque */
4589
+ /* blue radial gradient */
4590
+ /* blue linear gradient */
4591
+ /* green radial gradient */
4592
+ /* yellow radial gradient */
4593
+ /* red radial gradient */
4594
+ /* gray radial gradient */
4595
+ /* white to gray radial gradient */
4596
+ /* white to gray linear gradient */
4597
+ /* gradient transparent */
4598
+ /* secondary palette */
4599
+ /* purple radial gradient */
4600
+ /* refine alias color */
4601
+ /* text */
4602
+ /* link */
4603
+ /* fill */
4604
+ /* fill element */
4605
+ /* fill interaction */
4606
+ /* stroke */
4607
+ /* background */
4608
+ /* dim */
4609
+ /* box shadow */
4610
+ /* fisheye */
4611
+ /* z-index */
4465
4612
  .tdr270q {
4466
4613
  color: #00122e;
4467
4614
  padding: 7px 0;
@@ -45,11 +45,20 @@ export type RefineFormConfig<Model extends ResourceModel = ResourceModel> = {
45
45
  steps?: {
46
46
  title: string;
47
47
  }[];
48
+ /** 在指定步骤展示额外提交按钮,用于跳过后续可选步骤并复用当前表单提交链路。 */
49
+ extraSubmitButton?: {
50
+ /** 按钮生效的表单操作类型;不填则创建和编辑都生效。 */
51
+ action?: 'create' | 'edit';
52
+ /** 按钮出现的步骤索引,从 0 开始。 */
53
+ step: number;
54
+ /** 按钮文案;不填则使用当前表单默认提交文案。 */
55
+ text?: string;
56
+ };
48
57
  /**
49
- * 表单字段配置函数
50
- * @param props 包含记录和动作类型的配置对象
51
- * @returns 表单字段配置数组
52
- */
58
+ * 表单字段配置函数
59
+ * @param props 包含记录和动作类型的配置对象
60
+ * @returns 表单字段配置数组
61
+ */
53
62
  fields?: (props: {
54
63
  record?: Model;
55
64
  records: Model[];
@@ -69,9 +78,9 @@ export type RefineFormConfig<Model extends ResourceModel = ResourceModel> = {
69
78
  */
70
79
  labelWidth?: string;
71
80
  /**
72
- * 自定义表单渲染函数
73
- * @returns React节点
74
- */
81
+ * 自定义表单渲染函数
82
+ * @returns React节点
83
+ */
75
84
  renderForm?: () => React.ReactNode;
76
85
  };
77
86
  export type YamlFormConfig = {
@@ -120,7 +129,7 @@ export type CommonFormConfig<Model extends ResourceModel = ResourceModel> = {
120
129
  beforeSubmit?: (values: Record<string, unknown>, setErrors: (errors: string[]) => void) => Promise<Model['_rawYaml']>;
121
130
  /** 表单容器类型:页面形式或模态框形式
122
131
  * PAGE 或者 MODAL
123
- */
132
+ */
124
133
  formContainerType?: FormContainerType;
125
134
  /**
126
135
  * 表单标题,可以是字符串或根据操作类型返回不同标题的函数
@@ -149,6 +158,21 @@ export type CommonFormConfig<Model extends ResourceModel = ResourceModel> = {
149
158
  from: string[];
150
159
  to: string[];
151
160
  }[];
161
+ /**
162
+ * 自定义数据就绪检查(编辑模式下判断初始数据是否加载完成)
163
+ * 默认检查 metadata.name,非标准 K8s 资源可覆盖
164
+ */
165
+ isDataReady?: (formValues: Record<string, unknown>) => boolean;
166
+ /**
167
+ * 自定义成功 toast 消息
168
+ */
169
+ successMessage?: string | ((action: 'create' | 'edit') => string);
170
+ /**
171
+ * 自定义切换 YAML 模式时的提示 Alert 内容
172
+ * 设为 false 可隐藏 Alert,设为 string/ReactNode 可替换默认文案
173
+ * 默认显示 dovetail.change_form_mode_alert
174
+ */
175
+ changeModeAlert?: React.ReactNode | false;
152
176
  };
153
177
  export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
154
178
  /** 资源名称,用于 API 调用和路由。
@@ -165,7 +189,7 @@ export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
165
189
  basePath: string;
166
190
  /** Kubernetes API 版本,会影响请求 URL
167
191
  * 实际效果为:{apiUrl}{basePath}{apiVersion}{name}
168
- */
192
+ */
169
193
  apiVersion: string;
170
194
  /** 资源使用的 DataProvider 的名称 */
171
195
  dataProviderName?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.4.2-beta.0",
3
+ "version": "0.4.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -9,6 +9,20 @@
9
9
  "main": "./dist/refine.cjs",
10
10
  "module": "./dist/refine.js",
11
11
  "types": "./dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/refine.js",
15
+ "require": "./dist/refine.cjs",
16
+ "types": "./dist/index.d.ts"
17
+ },
18
+ "./shell": {
19
+ "import": "./dist/shell.js",
20
+ "require": "./dist/shell.cjs",
21
+ "types": "./dist/shell.d.ts"
22
+ },
23
+ "./dist/*": "./dist/*",
24
+ "./package.json": "./package.json"
25
+ },
12
26
  "dependencies": {
13
27
  "@cloudtower/eagle": "^490.0.1",
14
28
  "@cloudtower/icons-react": "^490.0.1",
@@ -30,7 +44,7 @@
30
44
  "dayjs": "^1.11.10",
31
45
  "i18next": "^23.2.3",
32
46
  "js-yaml": "^4.1.0",
33
- "k8s-api-provider": "^0.0.36",
47
+ "k8s-api-provider": "^0.0.37",
34
48
  "ky": "^0.33.3",
35
49
  "lodash-es": "^4.17.21",
36
50
  "mitt": "^3.0.1",
@@ -55,7 +69,6 @@
55
69
  "@linaria/react": "^4.5.4",
56
70
  "@linaria/utils": "^4.5.3",
57
71
  "@linaria/vite": "^4.5.4",
58
- "@playwright/test": "^1.39.0",
59
72
  "@refinedev/cli": "^2.9.0",
60
73
  "@rollup/pluginutils": "^4.2.1",
61
74
  "@tanstack/react-query": "^4.35.3",
@@ -82,10 +95,9 @@
82
95
  "eslint-plugin-react-refresh": "^0.3.4",
83
96
  "jest": "^29",
84
97
  "json-schema": "^0.4.0",
85
- "jest-environment-jsdom": "^30.0.0",
98
+ "jest-environment-jsdom": "^29.0.0",
86
99
  "kubernetes-types": "^1.26.0",
87
100
  "lodash": "^4.17.21",
88
- "prettier": "2.8.8",
89
101
  "sass": "1.51.0",
90
102
  "ts-jest": "^29",
91
103
  "vite": "^4.5.2",
@@ -109,8 +121,7 @@
109
121
  "preview": "refine start",
110
122
  "refine": "refine",
111
123
  "unit-test": "jest",
112
- "playwright-test": "npx playwright test --workers 1",
113
- "test": "pnpm unit-test && pnpm playwright-test",
124
+ "test": "pnpm unit-test",
114
125
  "lint": "eslint src --ext .ts,.tsx"
115
126
  },
116
127
  "browserslist": {