@dovetail-v2/refine 0.1.5-alpha.2 → 0.1.5-alpha.3

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.
@@ -1,4 +1,4 @@
1
- import { j as jsxRuntimeExports } from "./index-ac7d0fe5.js";
1
+ import { j as jsxRuntimeExports } from "./index-23177c18.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { useRef, useEffect } from "react";
4
4
  import "i18next";
@@ -8135,14 +8135,14 @@ class K8sOpenAPI {
8135
8135
  });
8136
8136
  }
8137
8137
  }
8138
- function useApiGroupSchema(apiGroups) {
8138
+ function useApiGroupSchema() {
8139
8139
  const [state2, setState] = useState({
8140
8140
  schemas: null,
8141
8141
  schemasMap: {},
8142
8142
  loading: false,
8143
8143
  error: null
8144
8144
  });
8145
- const fetchSchema = useCallback(async () => {
8145
+ const fetchSchema = useCallback(async (apiGroups) => {
8146
8146
  setState((prev) => ({ ...prev, loading: true, error: null }));
8147
8147
  try {
8148
8148
  const results = await Promise.all(
@@ -8169,10 +8169,7 @@ function useApiGroupSchema(apiGroups) {
8169
8169
  } catch (e2) {
8170
8170
  setState((prev) => ({ ...prev, loading: false, error: e2 }));
8171
8171
  }
8172
- }, [apiGroups, state2.schemasMap]);
8173
- useEffect(() => {
8174
- fetchSchema();
8175
- }, [fetchSchema]);
8172
+ }, [state2.schemasMap]);
8176
8173
  return { ...state2, fetchSchema };
8177
8174
  }
8178
8175
  function useSchema(options) {
@@ -32112,7 +32109,7 @@ const Shell = React__default.forwardRef(function Shell2(props, ref) {
32112
32109
  });
32113
32110
  }
32114
32111
  }, [encode, send, props.fit]);
32115
- const debouncedFit = debounce(fit, 200);
32112
+ const debouncedFit = useCallback(() => debounce(fit, 200), [fit]);
32116
32113
  const flush = useCallback(() => {
32117
32114
  const backlog = backlogRef.current.slice();
32118
32115
  backlogRef.current = [];
@@ -32299,6 +32296,10 @@ const Shell = React__default.forwardRef(function Shell2(props, ref) {
32299
32296
  });
32300
32297
  fit();
32301
32298
  }, [fit]);
32299
+ const writeln = useCallback((data2) => {
32300
+ var _a;
32301
+ (_a = termInstanceRef.current) == null ? void 0 : _a.writeln(data2);
32302
+ }, []);
32302
32303
  useEffect(() => {
32303
32304
  const destroy = setupTerminal();
32304
32305
  return () => {
@@ -32334,8 +32335,9 @@ const Shell = React__default.forwardRef(function Shell2(props, ref) {
32334
32335
  getAllTerminalContents,
32335
32336
  setOptions,
32336
32337
  setLoading,
32337
- setError
32338
- }), [send, searchNext, searchPrevious, getAllTerminalContents, fit, clear, connect, setOptions]);
32338
+ setError,
32339
+ writeln
32340
+ }), [send, searchNext, searchPrevious, getAllTerminalContents, fit, clear, connect, setOptions, writeln]);
32339
32341
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
32340
32342
  ref: containerRef,
32341
32343
  className: ContainerStyle,
@@ -37339,7 +37341,7 @@ const Separator = () => {
37339
37341
  });
37340
37342
  };
37341
37343
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
37342
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-d4280e1a.js"));
37344
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-51dbf887.js"));
37343
37345
  const YamlEditorComponent = forwardRef(
37344
37346
  function YamlEditorComponent2(props, ref) {
37345
37347
  const {
@@ -39413,7 +39415,7 @@ export {
39413
39415
  dnsSubDomainRules as Z,
39414
39416
  rfc1123LabelRules as _,
39415
39417
  useApiGroupSchema as a,
39416
- EventsTab as a$,
39418
+ PVAccessModeField as a$,
39417
39419
  NamespaceSelectWidget as a0,
39418
39420
  namespaceRules as a1,
39419
39421
  KeyValueListWidget as a2,
@@ -39421,175 +39423,176 @@ export {
39421
39423
  PageShow as a4,
39422
39424
  Time as a5,
39423
39425
  ConditionsTable as a6,
39424
- PodContainersTable as a7,
39425
- WorkloadDropdown as a8,
39426
- ReplicasDropdown as a9,
39427
- JobsField as aA,
39428
- DataField as aB,
39429
- SecretDataField as aC,
39430
- StartTimeField as aD,
39431
- ServiceTypeField as aE,
39432
- ClusterIpField as aF,
39433
- SessionAffinityField as aG,
39434
- ServicePodsField as aH,
39435
- IngressRulesTableTabField as aI,
39436
- EventsTableTabField as aJ,
39437
- NamespaceField as aK,
39438
- AgeField as aL,
39439
- LabelsField as aM,
39440
- AnnotationsField as aN,
39441
- ServiceInnerClusterAccessField as aO,
39442
- ServiceOutClusterAccessField as aP,
39443
- PodSelectorField as aQ,
39444
- PortsTableField as aR,
39445
- DurationField as aS,
39446
- StorageClassProvisionerField as aT,
39447
- StorageClassPvField as aU,
39448
- PVCapacityField as aV,
39449
- PVCStorageField as aW,
39450
- PVStorageClassField as aX,
39451
- PVPhaseField as aY,
39452
- PVVolumeModeField as aZ,
39453
- PVAccessModeField as a_,
39454
- PodDropdown as aa,
39455
- CreateButton as ab,
39456
- ImageNames as ac,
39457
- ResourceList as ad,
39458
- ResourceShow as ae,
39459
- ResourceForm as af,
39460
- ResourceCRUD as ag,
39461
- WorkloadPodsTable as ah,
39462
- CronJobDropdown as ai,
39463
- K8sDropdown as aj,
39464
- ResourceUsageBar as ak,
39465
- WorkloadReplicasForm as al,
39466
- WorkloadReplicas as am,
39467
- CronjobJobsTable as an,
39468
- KeyValue as ao,
39469
- KeyValueAnnotation as ap,
39470
- KeyValueSecret as aq,
39471
- Separator as ar,
39472
- YamlEditorComponent as as,
39473
- DeleteButton as at,
39474
- Layout as au,
39475
- AreaType as av,
39476
- ImageField as aw,
39477
- ReplicaField as ax,
39478
- ConditionsField as ay,
39479
- PodsField as az,
39426
+ FormErrorAlert as a7,
39427
+ PodContainersTable as a8,
39428
+ WorkloadDropdown as a9,
39429
+ PodsField as aA,
39430
+ JobsField as aB,
39431
+ DataField as aC,
39432
+ SecretDataField as aD,
39433
+ StartTimeField as aE,
39434
+ ServiceTypeField as aF,
39435
+ ClusterIpField as aG,
39436
+ SessionAffinityField as aH,
39437
+ ServicePodsField as aI,
39438
+ IngressRulesTableTabField as aJ,
39439
+ EventsTableTabField as aK,
39440
+ NamespaceField as aL,
39441
+ AgeField as aM,
39442
+ LabelsField as aN,
39443
+ AnnotationsField as aO,
39444
+ ServiceInnerClusterAccessField as aP,
39445
+ ServiceOutClusterAccessField as aQ,
39446
+ PodSelectorField as aR,
39447
+ PortsTableField as aS,
39448
+ DurationField as aT,
39449
+ StorageClassProvisionerField as aU,
39450
+ StorageClassPvField as aV,
39451
+ PVCapacityField as aW,
39452
+ PVCStorageField as aX,
39453
+ PVStorageClassField as aY,
39454
+ PVPhaseField as aZ,
39455
+ PVVolumeModeField as a_,
39456
+ ReplicasDropdown as aa,
39457
+ PodDropdown as ab,
39458
+ CreateButton as ac,
39459
+ ImageNames as ad,
39460
+ ResourceList as ae,
39461
+ ResourceShow as af,
39462
+ ResourceForm as ag,
39463
+ ResourceCRUD as ah,
39464
+ WorkloadPodsTable as ai,
39465
+ CronJobDropdown as aj,
39466
+ K8sDropdown as ak,
39467
+ ResourceUsageBar as al,
39468
+ WorkloadReplicasForm as am,
39469
+ WorkloadReplicas as an,
39470
+ CronjobJobsTable as ao,
39471
+ KeyValue as ap,
39472
+ KeyValueAnnotation as aq,
39473
+ KeyValueSecret as ar,
39474
+ Separator as as,
39475
+ YamlEditorComponent as at,
39476
+ DeleteButton as au,
39477
+ Layout as av,
39478
+ AreaType as aw,
39479
+ ImageField as ax,
39480
+ ReplicaField as ay,
39481
+ ConditionsField as az,
39480
39482
  useSchema as b,
39481
- NETWORK_POLICY_INIT_VALUE as b$,
39482
- PodLogTab as b0,
39483
- BasicGroup as b1,
39484
- PodsGroup as b2,
39485
- PodContainersGroup as b3,
39486
- ServicePodsGroup as b4,
39487
- ConditionsGroup as b5,
39488
- SecretDataGroup as b6,
39489
- JobsGroup as b7,
39490
- IngressRulesGroup as b8,
39491
- PodSelectorGroup as b9,
39492
- ServiceInClusterAccessComponent as bA,
39493
- ServiceOutClusterAccessComponent as bB,
39494
- Tags as bC,
39495
- TextTags as bD,
39496
- PodLog as bE,
39497
- NetworkPolicyRulesViewer as bF,
39498
- PVPhaseDisplay as bG,
39499
- PVVolumeModeDisplay as bH,
39500
- Tabs as bI,
39501
- ResourceSelect as bJ,
39502
- SocketStatus as bK,
39503
- Shell as bL,
39504
- PodShellModal as bM,
39505
- PodShell as bN,
39506
- BASE_INIT_VALUE as bO,
39507
- DEPLOYMENT_INIT_VALUE as bP,
39508
- CRONJOB_INIT_VALUE as bQ,
39509
- DAEMONSET_INIT_VALUE as bR,
39510
- JOB_INIT_VALUE as bS,
39511
- STATEFULSET_INIT_VALUE as bT,
39512
- POD_INIT_VALUE as bU,
39513
- SERVICE_CLUSTER_IP_INIT_VALUE as bV,
39514
- SERVICE_NODE_PORT_INIT_VALUE as bW,
39515
- SERVICE_LOAD_BALANCER_INIT_VALUE as bX,
39516
- SERVICE_EXTERNAL_NAME_INIT_VALUE as bY,
39517
- SERVICE_HEADLESS_INIT_VALUE as bZ,
39518
- INGRESS_INIT_VALUE as b_,
39519
- PortsGroup as ba,
39520
- DataGroup as bb,
39521
- NetworkPolicyIngressRulesGroup as bc,
39522
- NetworkPolicyEgressRulesGroup as bd,
39523
- StorageClassPvGroup as be,
39524
- ShowGroupComponent as bf,
39525
- ShowContent as bg,
39526
- DeleteManyButton as bh,
39527
- ListPage as bi,
39528
- StateTagStyle as bj,
39529
- StateTag as bk,
39530
- DrawerShow as bl,
39531
- Menu as bm,
39532
- EditButton as bn,
39533
- ReferenceLink as bo,
39534
- ResourceLink as bp,
39535
- NS_STORE_KEY as bq,
39536
- ALL_NS as br,
39537
- useNamespacesFilter as bs,
39538
- NamespacesFilter as bt,
39539
- FormModal as bu,
39540
- RefineFormContent as bv,
39541
- RefineFormPage as bw,
39542
- SchemaStrategy as bx,
39543
- YamlForm as by,
39544
- useRefineForm as bz,
39483
+ INGRESS_INIT_VALUE as b$,
39484
+ EventsTab as b0,
39485
+ PodLogTab as b1,
39486
+ BasicGroup as b2,
39487
+ PodsGroup as b3,
39488
+ PodContainersGroup as b4,
39489
+ ServicePodsGroup as b5,
39490
+ ConditionsGroup as b6,
39491
+ SecretDataGroup as b7,
39492
+ JobsGroup as b8,
39493
+ IngressRulesGroup as b9,
39494
+ useRefineForm as bA,
39495
+ ServiceInClusterAccessComponent as bB,
39496
+ ServiceOutClusterAccessComponent as bC,
39497
+ Tags as bD,
39498
+ TextTags as bE,
39499
+ PodLog as bF,
39500
+ NetworkPolicyRulesViewer as bG,
39501
+ PVPhaseDisplay as bH,
39502
+ PVVolumeModeDisplay as bI,
39503
+ Tabs as bJ,
39504
+ ResourceSelect as bK,
39505
+ SocketStatus as bL,
39506
+ Shell as bM,
39507
+ PodShellModal as bN,
39508
+ PodShell as bO,
39509
+ BASE_INIT_VALUE as bP,
39510
+ DEPLOYMENT_INIT_VALUE as bQ,
39511
+ CRONJOB_INIT_VALUE as bR,
39512
+ DAEMONSET_INIT_VALUE as bS,
39513
+ JOB_INIT_VALUE as bT,
39514
+ STATEFULSET_INIT_VALUE as bU,
39515
+ POD_INIT_VALUE as bV,
39516
+ SERVICE_CLUSTER_IP_INIT_VALUE as bW,
39517
+ SERVICE_NODE_PORT_INIT_VALUE as bX,
39518
+ SERVICE_LOAD_BALANCER_INIT_VALUE as bY,
39519
+ SERVICE_EXTERNAL_NAME_INIT_VALUE as bZ,
39520
+ SERVICE_HEADLESS_INIT_VALUE as b_,
39521
+ PodSelectorGroup as ba,
39522
+ PortsGroup as bb,
39523
+ DataGroup as bc,
39524
+ NetworkPolicyIngressRulesGroup as bd,
39525
+ NetworkPolicyEgressRulesGroup as be,
39526
+ StorageClassPvGroup as bf,
39527
+ ShowGroupComponent as bg,
39528
+ ShowContent as bh,
39529
+ DeleteManyButton as bi,
39530
+ ListPage as bj,
39531
+ StateTagStyle as bk,
39532
+ StateTag as bl,
39533
+ DrawerShow as bm,
39534
+ Menu as bn,
39535
+ EditButton as bo,
39536
+ ReferenceLink as bp,
39537
+ ResourceLink as bq,
39538
+ NS_STORE_KEY as br,
39539
+ ALL_NS as bs,
39540
+ useNamespacesFilter as bt,
39541
+ NamespacesFilter as bu,
39542
+ FormModal as bv,
39543
+ RefineFormContent as bw,
39544
+ RefineFormPage as bx,
39545
+ SchemaStrategy as by,
39546
+ YamlForm as bz,
39545
39547
  useDeleteModal as c,
39546
- CONFIG_MAP_INIT_VALUE as c0,
39547
- SERVER_INSTANCE_INIT_VALUE as c1,
39548
- TIMESTAMP_LABEL as c2,
39549
- SECRET_OPAQUE_INIT_VALUE as c3,
39550
- SECRET_IMAGE_REPO_INIT_VALUE as c4,
39551
- SECRET_BASIC_AUTH_INIT_VALUE as c5,
39552
- SECRET_SSH_AUTH_INIT_VALUE as c6,
39553
- SECRET_TLS_INIT_VALUE as c7,
39554
- SECRET_CUSTOM_INIT_VALUE as c8,
39555
- NODE_INIT_VALUE as c9,
39556
- StorageClassModel as cA,
39557
- PersistentVolumeModel as cB,
39558
- PersistentVolumeClaimModel as cC,
39559
- ProviderPlugins as cD,
39560
- ModelPlugin as cE,
39561
- modelPlugin as cF,
39562
- RelationPlugin as cG,
39563
- relationPlugin as cH,
39564
- generateValueFromSchema as cI,
39565
- generateSchemaTypeValue as cJ,
39566
- resolveRef as cK,
39567
- STORAGE_CLASS_INIT_VALUE as ca,
39568
- WorkloadState as cb,
39569
- AccessControlAuth as cc,
39570
- Dovetail as cd,
39571
- RESOURCE_GROUP as ce,
39572
- FormType as cf,
39573
- ComponentContext as cg,
39574
- GlobalStoreContext as ch,
39575
- ConfigsContext as ci,
39576
- IngressModel as cj,
39577
- NetworkPolicyModel as ck,
39578
- JobModel as cl,
39579
- WorkloadModel as cm,
39580
- WorkloadBaseModel as cn,
39581
- PodModel as co,
39582
- PodMetricsModel as cp,
39583
- ResourceModel as cq,
39584
- CronJobModel as cr,
39585
- EventModel as cs,
39586
- DeploymentModel as ct,
39587
- DaemonSetModel as cu,
39588
- StatefulSetModel as cv,
39589
- ServiceTypeEnum as cw,
39590
- ServiceModel as cx,
39591
- NodeRole as cy,
39592
- NodeModel as cz,
39548
+ NETWORK_POLICY_INIT_VALUE as c0,
39549
+ CONFIG_MAP_INIT_VALUE as c1,
39550
+ SERVER_INSTANCE_INIT_VALUE as c2,
39551
+ TIMESTAMP_LABEL as c3,
39552
+ SECRET_OPAQUE_INIT_VALUE as c4,
39553
+ SECRET_IMAGE_REPO_INIT_VALUE as c5,
39554
+ SECRET_BASIC_AUTH_INIT_VALUE as c6,
39555
+ SECRET_SSH_AUTH_INIT_VALUE as c7,
39556
+ SECRET_TLS_INIT_VALUE as c8,
39557
+ SECRET_CUSTOM_INIT_VALUE as c9,
39558
+ NodeModel as cA,
39559
+ StorageClassModel as cB,
39560
+ PersistentVolumeModel as cC,
39561
+ PersistentVolumeClaimModel as cD,
39562
+ ProviderPlugins as cE,
39563
+ ModelPlugin as cF,
39564
+ modelPlugin as cG,
39565
+ RelationPlugin as cH,
39566
+ relationPlugin as cI,
39567
+ generateValueFromSchema as cJ,
39568
+ generateSchemaTypeValue as cK,
39569
+ resolveRef as cL,
39570
+ NODE_INIT_VALUE as ca,
39571
+ STORAGE_CLASS_INIT_VALUE as cb,
39572
+ WorkloadState as cc,
39573
+ AccessControlAuth as cd,
39574
+ Dovetail as ce,
39575
+ RESOURCE_GROUP as cf,
39576
+ FormType as cg,
39577
+ ComponentContext as ch,
39578
+ GlobalStoreContext as ci,
39579
+ ConfigsContext as cj,
39580
+ IngressModel as ck,
39581
+ NetworkPolicyModel as cl,
39582
+ JobModel as cm,
39583
+ WorkloadModel as cn,
39584
+ WorkloadBaseModel as co,
39585
+ PodModel as cp,
39586
+ PodMetricsModel as cq,
39587
+ ResourceModel as cr,
39588
+ CronJobModel as cs,
39589
+ EventModel as ct,
39590
+ DeploymentModel as cu,
39591
+ DaemonSetModel as cv,
39592
+ StatefulSetModel as cw,
39593
+ ServiceTypeEnum as cx,
39594
+ ServiceModel as cy,
39595
+ NodeRole as cz,
39593
39596
  dovetailRefineI18n as d,
39594
39597
  NameSpaceColumnRenderer as e,
39595
39598
  WorkloadRestartsColumnRenderer as f,
package/dist/refine.js CHANGED
@@ -1,4 +1,4 @@
1
- import { br, cc, A, aL, aN, av, bO, b1, X, c0, bQ, aF, J, C, i, cg, ay, b5, a6, ci, ab, ai, cr, an, bR, bP, cu, aB, bb, w, at, bh, ct, cd, bl, D, aS, bn, cs, a$, aJ, bu, cf, ch, b_, aw, ac, s, q, cj, I, b8, aI, t, bS, cl, aA, b7, aj, ao, ap, a2, aq, aM, au, bi, bm, a3, M, cE, b$, c9, bq, N, Y, e, aK, a0, bt, bd, bc, ck, bF, cz, g, cy, bU, H, a_, B, aW, z, aV, F, bG, aY, E, aX, G, bH, aZ, a4, cC, cB, P, b3, v, a7, aa, bE, b0, cp, co, aQ, b9, bN, bM, p, az, b2, x, ba, aR, cD, y, ce, bo, bv, bw, cG, ax, R, a9, ag, af, bp, ad, cq, bJ, ae, ak, h, c5, c8, c4, c3, c6, c7, c1, bV, bY, bZ, bX, bW, bT, ca, bx, aC, b6, ar, m, bA, l, aO, cx, o, bB, aP, n, aH, b4, k, cw, aE, aG, bL, bg, bf, bK, aD, S, bk, bj, cv, cA, aT, aU, be, c2, bI, bC, bD, a5, V, cn, a8, W, cm, ah, am, al, f, cb, as, by, K, Z, d, cJ, cI, cF, a1, cH, cK, $, _, r, a, c, O, L, Q, T, u, bs, U, bz, b } from "./index-ac7d0fe5.js";
1
+ import { bs, cd, A, aM, aO, aw, bP, b2, X, c1, bR, aG, J, C, i, ch, az, b6, a6, cj, ac, aj, cs, ao, bS, bQ, cv, aC, bc, w, au, bi, cu, ce, bm, D, aT, bo, ct, b0, aK, a7, bv, cg, ci, b$, ax, ad, s, q, ck, I, b9, aJ, t, bT, cm, aB, b8, ak, ap, aq, a2, ar, aN, av, bj, bn, a3, M, cF, c0, ca, br, N, Y, e, aL, a0, bu, be, bd, cl, bG, cA, g, cz, bV, H, a$, B, aX, z, aW, F, bH, aZ, E, aY, G, bI, a_, a4, cD, cC, P, b4, v, a8, ab, bF, b1, cq, cp, aR, ba, bO, bN, p, aA, b3, x, bb, aS, cE, y, cf, bp, bw, bx, cH, ay, R, aa, ah, ag, bq, ae, cr, bK, af, al, h, c6, c9, c5, c4, c7, c8, c2, bW, bZ, b_, bY, bX, bU, cb, by, aD, b7, as, m, bB, l, aP, cy, o, bC, aQ, n, aI, b5, k, cx, aF, aH, bM, bh, bg, bL, aE, S, bl, bk, cw, cB, aU, aV, bf, c3, bJ, bD, bE, a5, V, co, a9, W, cn, ai, an, am, f, cc, at, bz, K, Z, d, cK, cJ, cG, a1, cI, cL, $, _, r, a, c, O, L, Q, T, u, bt, U, bA, b } from "./index-23177c18.js";
2
2
  import "@cloudtower/eagle";
3
3
  import "@refinedev/core";
4
4
  import "react";
@@ -15,220 +15,221 @@ import "monaco-yaml";
15
15
  import "react-dom";
16
16
  import "antd";
17
17
  export {
18
- br as ALL_NS,
19
- cc as AccessControlAuth,
18
+ bs as ALL_NS,
19
+ cd as AccessControlAuth,
20
20
  A as AgeColumnRenderer,
21
- aL as AgeField,
22
- aN as AnnotationsField,
23
- av as AreaType,
24
- bO as BASE_INIT_VALUE,
25
- b1 as BasicGroup,
21
+ aM as AgeField,
22
+ aO as AnnotationsField,
23
+ aw as AreaType,
24
+ bP as BASE_INIT_VALUE,
25
+ b2 as BasicGroup,
26
26
  X as Breadcrumb,
27
- c0 as CONFIG_MAP_INIT_VALUE,
28
- bQ as CRONJOB_INIT_VALUE,
29
- aF as ClusterIpField,
27
+ c1 as CONFIG_MAP_INIT_VALUE,
28
+ bR as CRONJOB_INIT_VALUE,
29
+ aG as ClusterIpField,
30
30
  J as ColumnKeys,
31
31
  C as CommonSorter,
32
32
  i as CompletionsCountColumnRenderer,
33
- cg as ComponentContext,
34
- ay as ConditionsField,
35
- b5 as ConditionsGroup,
33
+ ch as ComponentContext,
34
+ az as ConditionsField,
35
+ b6 as ConditionsGroup,
36
36
  a6 as ConditionsTable,
37
- ci as ConfigsContext,
38
- ab as CreateButton,
39
- ai as CronJobDropdown,
40
- cr as CronJobModel,
41
- an as CronjobJobsTable,
42
- bR as DAEMONSET_INIT_VALUE,
43
- bP as DEPLOYMENT_INIT_VALUE,
44
- cu as DaemonSetModel,
45
- aB as DataField,
46
- bb as DataGroup,
37
+ cj as ConfigsContext,
38
+ ac as CreateButton,
39
+ aj as CronJobDropdown,
40
+ cs as CronJobModel,
41
+ ao as CronjobJobsTable,
42
+ bS as DAEMONSET_INIT_VALUE,
43
+ bQ as DEPLOYMENT_INIT_VALUE,
44
+ cv as DaemonSetModel,
45
+ aC as DataField,
46
+ bc as DataGroup,
47
47
  w as DataKeysColumnRenderer,
48
- at as DeleteButton,
49
- bh as DeleteManyButton,
50
- ct as DeploymentModel,
51
- cd as Dovetail,
52
- bl as DrawerShow,
48
+ au as DeleteButton,
49
+ bi as DeleteManyButton,
50
+ cu as DeploymentModel,
51
+ ce as Dovetail,
52
+ bm as DrawerShow,
53
53
  D as DurationColumnRenderer,
54
- aS as DurationField,
55
- bn as EditButton,
56
- cs as EventModel,
57
- a$ as EventsTab,
58
- aJ as EventsTableTabField,
59
- bu as FormModal,
60
- cf as FormType,
61
- ch as GlobalStoreContext,
62
- b_ as INGRESS_INIT_VALUE,
63
- aw as ImageField,
64
- ac as ImageNames,
54
+ aT as DurationField,
55
+ bo as EditButton,
56
+ ct as EventModel,
57
+ b0 as EventsTab,
58
+ aK as EventsTableTabField,
59
+ a7 as FormErrorAlert,
60
+ bv as FormModal,
61
+ cg as FormType,
62
+ ci as GlobalStoreContext,
63
+ b$ as INGRESS_INIT_VALUE,
64
+ ax as ImageField,
65
+ ad as ImageNames,
65
66
  s as IngressClassColumnRenderer,
66
67
  q as IngressDefaultBackendColumnRenderer,
67
- cj as IngressModel,
68
+ ck as IngressModel,
68
69
  I as IngressRulesColumnRenderer,
69
- b8 as IngressRulesGroup,
70
- aI as IngressRulesTableTabField,
70
+ b9 as IngressRulesGroup,
71
+ aJ as IngressRulesTableTabField,
71
72
  t as IngressTlsColumnRenderer,
72
- bS as JOB_INIT_VALUE,
73
- cl as JobModel,
74
- aA as JobsField,
75
- b7 as JobsGroup,
76
- aj as K8sDropdown,
77
- ao as KeyValue,
78
- ap as KeyValueAnnotation,
73
+ bT as JOB_INIT_VALUE,
74
+ cm as JobModel,
75
+ aB as JobsField,
76
+ b8 as JobsGroup,
77
+ ak as K8sDropdown,
78
+ ap as KeyValue,
79
+ aq as KeyValueAnnotation,
79
80
  a2 as KeyValueListWidget,
80
- aq as KeyValueSecret,
81
- aM as LabelsField,
82
- au as Layout,
83
- bi as ListPage,
84
- bm as Menu,
81
+ ar as KeyValueSecret,
82
+ aN as LabelsField,
83
+ av as Layout,
84
+ bj as ListPage,
85
+ bn as Menu,
85
86
  a3 as MetadataForm,
86
87
  M as ModalStyle,
87
- cE as ModelPlugin,
88
- b$ as NETWORK_POLICY_INIT_VALUE,
89
- c9 as NODE_INIT_VALUE,
90
- bq as NS_STORE_KEY,
88
+ cF as ModelPlugin,
89
+ c0 as NETWORK_POLICY_INIT_VALUE,
90
+ ca as NODE_INIT_VALUE,
91
+ br as NS_STORE_KEY,
91
92
  N as NameColumnRenderer,
92
93
  Y as NameInputWidget,
93
94
  e as NameSpaceColumnRenderer,
94
- aK as NamespaceField,
95
+ aL as NamespaceField,
95
96
  a0 as NamespaceSelectWidget,
96
- bt as NamespacesFilter,
97
- bd as NetworkPolicyEgressRulesGroup,
98
- bc as NetworkPolicyIngressRulesGroup,
99
- ck as NetworkPolicyModel,
100
- bF as NetworkPolicyRulesViewer,
101
- cz as NodeModel,
97
+ bu as NamespacesFilter,
98
+ be as NetworkPolicyEgressRulesGroup,
99
+ bd as NetworkPolicyIngressRulesGroup,
100
+ cl as NetworkPolicyModel,
101
+ bG as NetworkPolicyRulesViewer,
102
+ cA as NodeModel,
102
103
  g as NodeNameColumnRenderer,
103
- cy as NodeRole,
104
- bU as POD_INIT_VALUE,
104
+ cz as NodeRole,
105
+ bV as POD_INIT_VALUE,
105
106
  H as PVAccessModeColumnRenderer,
106
- a_ as PVAccessModeField,
107
+ a$ as PVAccessModeField,
107
108
  B as PVCStorageColumnRenderer,
108
- aW as PVCStorageField,
109
+ aX as PVCStorageField,
109
110
  z as PVCapacityColumnRenderer,
110
- aV as PVCapacityField,
111
+ aW as PVCapacityField,
111
112
  F as PVPhaseColumnRenderer,
112
- bG as PVPhaseDisplay,
113
- aY as PVPhaseField,
113
+ bH as PVPhaseDisplay,
114
+ aZ as PVPhaseField,
114
115
  E as PVStorageClassColumnRenderer,
115
- aX as PVStorageClassField,
116
+ aY as PVStorageClassField,
116
117
  G as PVVolumeModeColumnRenderer,
117
- bH as PVVolumeModeDisplay,
118
- aZ as PVVolumeModeField,
118
+ bI as PVVolumeModeDisplay,
119
+ a_ as PVVolumeModeField,
119
120
  a4 as PageShow,
120
- cC as PersistentVolumeClaimModel,
121
- cB as PersistentVolumeModel,
121
+ cD as PersistentVolumeClaimModel,
122
+ cC as PersistentVolumeModel,
122
123
  P as PlainTextNameColumnRenderer,
123
- b3 as PodContainersGroup,
124
+ b4 as PodContainersGroup,
124
125
  v as PodContainersNumColumnRenderer,
125
- a7 as PodContainersTable,
126
- aa as PodDropdown,
127
- bE as PodLog,
128
- b0 as PodLogTab,
129
- cp as PodMetricsModel,
130
- co as PodModel,
131
- aQ as PodSelectorField,
132
- b9 as PodSelectorGroup,
133
- bN as PodShell,
134
- bM as PodShellModal,
126
+ a8 as PodContainersTable,
127
+ ab as PodDropdown,
128
+ bF as PodLog,
129
+ b1 as PodLogTab,
130
+ cq as PodMetricsModel,
131
+ cp as PodModel,
132
+ aR as PodSelectorField,
133
+ ba as PodSelectorGroup,
134
+ bO as PodShell,
135
+ bN as PodShellModal,
135
136
  p as PodWorkloadColumnRenderer,
136
- az as PodsField,
137
- b2 as PodsGroup,
137
+ aA as PodsField,
138
+ b3 as PodsGroup,
138
139
  x as PortMappingColumnRenderer,
139
- ba as PortsGroup,
140
- aR as PortsTableField,
141
- cD as ProviderPlugins,
140
+ bb as PortsGroup,
141
+ aS as PortsTableField,
142
+ cE as ProviderPlugins,
142
143
  y as ProvisionerColumnRenderer,
143
- ce as RESOURCE_GROUP,
144
- bo as ReferenceLink,
145
- bv as RefineFormContent,
146
- bw as RefineFormPage,
147
- cG as RelationPlugin,
148
- ax as ReplicaField,
144
+ cf as RESOURCE_GROUP,
145
+ bp as ReferenceLink,
146
+ bw as RefineFormContent,
147
+ bx as RefineFormPage,
148
+ cH as RelationPlugin,
149
+ ay as ReplicaField,
149
150
  R as ReplicasColumnRenderer,
150
- a9 as ReplicasDropdown,
151
- ag as ResourceCRUD,
152
- af as ResourceForm,
153
- bp as ResourceLink,
154
- ad as ResourceList,
155
- cq as ResourceModel,
156
- bJ as ResourceSelect,
157
- ae as ResourceShow,
158
- ak as ResourceUsageBar,
151
+ aa as ReplicasDropdown,
152
+ ah as ResourceCRUD,
153
+ ag as ResourceForm,
154
+ bq as ResourceLink,
155
+ ae as ResourceList,
156
+ cr as ResourceModel,
157
+ bK as ResourceSelect,
158
+ af as ResourceShow,
159
+ al as ResourceUsageBar,
159
160
  h as RestartCountColumnRenderer,
160
- c5 as SECRET_BASIC_AUTH_INIT_VALUE,
161
- c8 as SECRET_CUSTOM_INIT_VALUE,
162
- c4 as SECRET_IMAGE_REPO_INIT_VALUE,
163
- c3 as SECRET_OPAQUE_INIT_VALUE,
164
- c6 as SECRET_SSH_AUTH_INIT_VALUE,
165
- c7 as SECRET_TLS_INIT_VALUE,
166
- c1 as SERVER_INSTANCE_INIT_VALUE,
167
- bV as SERVICE_CLUSTER_IP_INIT_VALUE,
168
- bY as SERVICE_EXTERNAL_NAME_INIT_VALUE,
169
- bZ as SERVICE_HEADLESS_INIT_VALUE,
170
- bX as SERVICE_LOAD_BALANCER_INIT_VALUE,
171
- bW as SERVICE_NODE_PORT_INIT_VALUE,
172
- bT as STATEFULSET_INIT_VALUE,
173
- ca as STORAGE_CLASS_INIT_VALUE,
174
- bx as SchemaStrategy,
175
- aC as SecretDataField,
176
- b6 as SecretDataGroup,
177
- ar as Separator,
161
+ c6 as SECRET_BASIC_AUTH_INIT_VALUE,
162
+ c9 as SECRET_CUSTOM_INIT_VALUE,
163
+ c5 as SECRET_IMAGE_REPO_INIT_VALUE,
164
+ c4 as SECRET_OPAQUE_INIT_VALUE,
165
+ c7 as SECRET_SSH_AUTH_INIT_VALUE,
166
+ c8 as SECRET_TLS_INIT_VALUE,
167
+ c2 as SERVER_INSTANCE_INIT_VALUE,
168
+ bW as SERVICE_CLUSTER_IP_INIT_VALUE,
169
+ bZ as SERVICE_EXTERNAL_NAME_INIT_VALUE,
170
+ b_ as SERVICE_HEADLESS_INIT_VALUE,
171
+ bY as SERVICE_LOAD_BALANCER_INIT_VALUE,
172
+ bX as SERVICE_NODE_PORT_INIT_VALUE,
173
+ bU as STATEFULSET_INIT_VALUE,
174
+ cb as STORAGE_CLASS_INIT_VALUE,
175
+ by as SchemaStrategy,
176
+ aD as SecretDataField,
177
+ b7 as SecretDataGroup,
178
+ as as Separator,
178
179
  m as ServiceInClusterAccessColumnRenderer,
179
- bA as ServiceInClusterAccessComponent,
180
+ bB as ServiceInClusterAccessComponent,
180
181
  l as ServiceInClusterAccessTitle,
181
- aO as ServiceInnerClusterAccessField,
182
- cx as ServiceModel,
182
+ aP as ServiceInnerClusterAccessField,
183
+ cy as ServiceModel,
183
184
  o as ServiceOutClusterAccessColumnRenderer,
184
- bB as ServiceOutClusterAccessComponent,
185
- aP as ServiceOutClusterAccessField,
185
+ bC as ServiceOutClusterAccessComponent,
186
+ aQ as ServiceOutClusterAccessField,
186
187
  n as ServiceOutClusterAccessTitle,
187
- aH as ServicePodsField,
188
- b4 as ServicePodsGroup,
188
+ aI as ServicePodsField,
189
+ b5 as ServicePodsGroup,
189
190
  k as ServiceTypeColumnRenderer,
190
- cw as ServiceTypeEnum,
191
- aE as ServiceTypeField,
192
- aG as SessionAffinityField,
193
- bL as Shell,
194
- bg as ShowContent,
195
- bf as ShowGroupComponent,
196
- bK as SocketStatus,
197
- aD as StartTimeField,
191
+ cx as ServiceTypeEnum,
192
+ aF as ServiceTypeField,
193
+ aH as SessionAffinityField,
194
+ bM as Shell,
195
+ bh as ShowContent,
196
+ bg as ShowGroupComponent,
197
+ bL as SocketStatus,
198
+ aE as StartTimeField,
198
199
  S as StateDisplayColumnRenderer,
199
- bk as StateTag,
200
- bj as StateTagStyle,
201
- cv as StatefulSetModel,
202
- cA as StorageClassModel,
203
- aT as StorageClassProvisionerField,
204
- aU as StorageClassPvField,
205
- be as StorageClassPvGroup,
206
- c2 as TIMESTAMP_LABEL,
207
- bI as Tabs,
208
- bC as Tags,
209
- bD as TextTags,
200
+ bl as StateTag,
201
+ bk as StateTagStyle,
202
+ cw as StatefulSetModel,
203
+ cB as StorageClassModel,
204
+ aU as StorageClassProvisionerField,
205
+ aV as StorageClassPvField,
206
+ bf as StorageClassPvGroup,
207
+ c3 as TIMESTAMP_LABEL,
208
+ bJ as Tabs,
209
+ bD as Tags,
210
+ bE as TextTags,
210
211
  a5 as Time,
211
212
  V as ValueDisplay,
212
- cn as WorkloadBaseModel,
213
- a8 as WorkloadDropdown,
213
+ co as WorkloadBaseModel,
214
+ a9 as WorkloadDropdown,
214
215
  W as WorkloadImageColumnRenderer,
215
- cm as WorkloadModel,
216
- ah as WorkloadPodsTable,
217
- am as WorkloadReplicas,
218
- al as WorkloadReplicasForm,
216
+ cn as WorkloadModel,
217
+ ai as WorkloadPodsTable,
218
+ an as WorkloadReplicas,
219
+ am as WorkloadReplicasForm,
219
220
  f as WorkloadRestartsColumnRenderer,
220
- cb as WorkloadState,
221
- as as YamlEditorComponent,
222
- by as YamlForm,
221
+ cc as WorkloadState,
222
+ at as YamlEditorComponent,
223
+ bz as YamlForm,
223
224
  K as addDefaultRenderToColumns,
224
225
  Z as dnsSubDomainRules,
225
226
  d as dovetailRefineI18n,
226
- cJ as generateSchemaTypeValue,
227
- cI as generateValueFromSchema,
228
- cF as modelPlugin,
227
+ cK as generateSchemaTypeValue,
228
+ cJ as generateValueFromSchema,
229
+ cG as modelPlugin,
229
230
  a1 as namespaceRules,
230
- cH as relationPlugin,
231
- cK as resolveRef,
231
+ cI as relationPlugin,
232
+ cL as resolveRef,
232
233
  $ as rfc1035LabelRules,
233
234
  _ as rfc1123LabelRules,
234
235
  r as routerProvider,
@@ -239,8 +240,8 @@ export {
239
240
  Q as useEdit,
240
241
  T as useGlobalStore,
241
242
  u as useNamespaceRefineFilter,
242
- bs as useNamespacesFilter,
243
+ bt as useNamespacesFilter,
243
244
  U as useOpenForm,
244
- bz as useRefineForm,
245
+ bA as useRefineForm,
245
246
  b as useSchema
246
247
  };
@@ -8141,14 +8141,14 @@ var __publicField = (obj, key, value) => {
8141
8141
  });
8142
8142
  }
8143
8143
  }
8144
- function useApiGroupSchema(apiGroups) {
8144
+ function useApiGroupSchema() {
8145
8145
  const [state2, setState] = React.useState({
8146
8146
  schemas: null,
8147
8147
  schemasMap: {},
8148
8148
  loading: false,
8149
8149
  error: null
8150
8150
  });
8151
- const fetchSchema = React.useCallback(async () => {
8151
+ const fetchSchema = React.useCallback(async (apiGroups) => {
8152
8152
  setState((prev) => ({ ...prev, loading: true, error: null }));
8153
8153
  try {
8154
8154
  const results = await Promise.all(
@@ -8175,10 +8175,7 @@ var __publicField = (obj, key, value) => {
8175
8175
  } catch (e2) {
8176
8176
  setState((prev) => ({ ...prev, loading: false, error: e2 }));
8177
8177
  }
8178
- }, [apiGroups, state2.schemasMap]);
8179
- React.useEffect(() => {
8180
- fetchSchema();
8181
- }, [fetchSchema]);
8178
+ }, [state2.schemasMap]);
8182
8179
  return { ...state2, fetchSchema };
8183
8180
  }
8184
8181
  function useSchema(options) {
@@ -32118,7 +32115,7 @@ WARNING: This link could potentially be dangerous`)) {
32118
32115
  });
32119
32116
  }
32120
32117
  }, [encode, send, props.fit]);
32121
- const debouncedFit = lodashEs.debounce(fit, 200);
32118
+ const debouncedFit = React.useCallback(() => lodashEs.debounce(fit, 200), [fit]);
32122
32119
  const flush = React.useCallback(() => {
32123
32120
  const backlog = backlogRef.current.slice();
32124
32121
  backlogRef.current = [];
@@ -32305,6 +32302,10 @@ WARNING: This link could potentially be dangerous`)) {
32305
32302
  });
32306
32303
  fit();
32307
32304
  }, [fit]);
32305
+ const writeln = React.useCallback((data2) => {
32306
+ var _a;
32307
+ (_a = termInstanceRef.current) == null ? void 0 : _a.writeln(data2);
32308
+ }, []);
32308
32309
  React.useEffect(() => {
32309
32310
  const destroy = setupTerminal();
32310
32311
  return () => {
@@ -32340,8 +32341,9 @@ WARNING: This link could potentially be dangerous`)) {
32340
32341
  getAllTerminalContents,
32341
32342
  setOptions,
32342
32343
  setLoading,
32343
- setError
32344
- }), [send, searchNext, searchPrevious, getAllTerminalContents, fit, clear, connect, setOptions]);
32344
+ setError,
32345
+ writeln
32346
+ }), [send, searchNext, searchPrevious, getAllTerminalContents, fit, clear, connect, setOptions, writeln]);
32345
32347
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
32346
32348
  ref: containerRef,
32347
32349
  className: ContainerStyle,
@@ -39470,6 +39472,7 @@ WARNING: This link could potentially be dangerous`)) {
39470
39472
  exports2.EventModel = EventModel;
39471
39473
  exports2.EventsTab = EventsTab;
39472
39474
  exports2.EventsTableTabField = EventsTableTabField;
39475
+ exports2.FormErrorAlert = FormErrorAlert;
39473
39476
  exports2.FormModal = FormModal;
39474
39477
  exports2.FormType = FormType;
39475
39478
  exports2.GlobalStoreContext = GlobalStoreContext;
@@ -44,6 +44,7 @@ export interface ShellHandler {
44
44
  setOptions: (options: Record<string, unknown>) => void;
45
45
  setLoading: (loading: boolean) => void;
46
46
  setError: (error: unknown) => void;
47
+ writeln: (data: string) => void;
47
48
  }
48
49
  export declare const Shell: React.ForwardRefExoticComponent<{
49
50
  url: string;
@@ -4,6 +4,7 @@ export * from './PageShow';
4
4
  export * from './Time';
5
5
  export * from './ConditionsTable';
6
6
  export * from './FormLayout';
7
+ export * from './FormErrorAlert';
7
8
  export * from './PodContainersTable';
8
9
  export * from './WorkloadDropdown';
9
10
  export * from './ReplicasDropdown';
@@ -10,8 +10,8 @@ type UseSchemaResult = {
10
10
  error: Error | null;
11
11
  fetchSchema: () => void;
12
12
  };
13
- export declare function useApiGroupSchema(apiGroups: string[]): {
14
- fetchSchema: () => Promise<void>;
13
+ export declare function useApiGroupSchema(): {
14
+ fetchSchema: (apiGroups: string[]) => Promise<void>;
15
15
  schemas: JSONSchema7[] | null;
16
16
  schemasMap: Record<string, JSONSchema7[]>;
17
17
  loading: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.1.5-alpha.2",
3
+ "version": "0.1.5-alpha.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -78,8 +78,8 @@
78
78
  "vite-plugin-commonjs": "^0.10.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "@cloudtower/eagle": "^0.31.7",
82
- "@cloudtower/icons-react": "^0.31.7",
81
+ "@cloudtower/eagle": "^0.31.8",
82
+ "@cloudtower/icons-react": "^0.31.8",
83
83
  "@refinedev/core": "^4.47.2",
84
84
  "antd": "4.5.0",
85
85
  "i18next": "^23.2.3",