@dovetail-v2/refine 0.2.6 → 0.2.7

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-d9e1f169.js";
1
+ import { j as jsxRuntimeExports } from "./index-e2ac90c3.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { useRef, useEffect } from "react";
4
4
  import "dayjs";
@@ -1,4 +1,4 @@
1
- import { j as jsxRuntimeExports, c as cx_default, Y as YamlEditorStyle } from "./index-d9e1f169.js";
1
+ import { j as jsxRuntimeExports, c as cx_default, Y as YamlEditorStyle } from "./index-e2ac90c3.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { setDiagnosticsOptions } from "monaco-yaml";
4
4
  import { useRef, useEffect } from "react";
@@ -778,6 +778,8 @@ const succeeded_state$1 = "Succeeded";
778
778
  const unknown_state$1 = "Unknown";
779
779
  const pending_state$1 = "Pending";
780
780
  const waiting_state$1 = "Waiting";
781
+ const active_state$1 = "Active";
782
+ const deleting_state$1 = "Deleting";
781
783
  const expand$1 = "Expand";
782
784
  const fold$1 = "Collapse";
783
785
  const rule$1 = "Rule";
@@ -1017,6 +1019,8 @@ const dovetail$1 = {
1017
1019
  unknown_state: unknown_state$1,
1018
1020
  pending_state: pending_state$1,
1019
1021
  waiting_state: waiting_state$1,
1022
+ active_state: active_state$1,
1023
+ deleting_state: deleting_state$1,
1020
1024
  expand: expand$1,
1021
1025
  fold: fold$1,
1022
1026
  rule: rule$1,
@@ -1268,6 +1272,8 @@ const terminated_state = "已终止";
1268
1272
  const unknown_state = "未知";
1269
1273
  const pending_state = "待处理";
1270
1274
  const waiting_state = "等待中";
1275
+ const active_state = "活跃";
1276
+ const deleting_state = "删除中";
1271
1277
  const create_resource = "创建{{resource}}";
1272
1278
  const edit_resource = "编辑{{resource}}";
1273
1279
  const sec = "秒";
@@ -1506,6 +1512,8 @@ const dovetail = {
1506
1512
  unknown_state,
1507
1513
  pending_state,
1508
1514
  waiting_state,
1515
+ active_state,
1516
+ deleting_state,
1509
1517
  create_resource,
1510
1518
  edit_resource,
1511
1519
  sec,
@@ -10209,6 +10217,8 @@ var ResourceState = /* @__PURE__ */ ((ResourceState2) => {
10209
10217
  ResourceState2["BOUND"] = "bound";
10210
10218
  ResourceState2["RELEASED"] = "released";
10211
10219
  ResourceState2["LOST"] = "lost";
10220
+ ResourceState2["ACTIVE"] = "active";
10221
+ ResourceState2["DELETING"] = "deleting";
10212
10222
  return ResourceState2;
10213
10223
  })(ResourceState || {});
10214
10224
  function matchSelector(pod2, selector, namespace2 = "default") {
@@ -11891,7 +11901,9 @@ const StateTag = (props) => {
11891
11901
  [ResourceState.AVAILABLE]: "blue",
11892
11902
  [ResourceState.BOUND]: "green",
11893
11903
  [ResourceState.RELEASED]: "gray",
11894
- [ResourceState.LOST]: "red"
11904
+ [ResourceState.LOST]: "red",
11905
+ [ResourceState.ACTIVE]: "green",
11906
+ [ResourceState.DELETING]: "loading"
11895
11907
  };
11896
11908
  const finalColorMap = (customResourceStateMap == null ? void 0 : customResourceStateMap.color) || defaultStateMap;
11897
11909
  const finalTextMap = customResourceStateMap == null ? void 0 : customResourceStateMap.text;
@@ -13625,7 +13637,7 @@ const PodLogTab = (i18n2) => ({
13625
13637
  ]
13626
13638
  });
13627
13639
  const NetworkPolicyRulesViewer_r6jity = "";
13628
- const MonacoYamlEditor$1 = lazy(() => import("./MonacoYamlEditor-9a71461b.js"));
13640
+ const MonacoYamlEditor$1 = lazy(() => import("./MonacoYamlEditor-7071a8ae.js"));
13629
13641
  const EditorStyle$1 = "e1cjl2b8";
13630
13642
  const NetworkPolicyRulesViewer = ({
13631
13643
  ingressOrEgress,
@@ -17720,8 +17732,8 @@ const PlainCodeStyle = "pqch97v";
17720
17732
  const ErrorMsgStyle = "eh2qjnl";
17721
17733
  const ErrorWrapperStyle = "e19q2bnp";
17722
17734
  const YamlEditorStyle = "y16u5v3w";
17723
- const MonacoYamlEditor = React__default.lazy(() => import("./MonacoYamlEditor-9a71461b.js"));
17724
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-a6fe7989.js"));
17735
+ const MonacoYamlEditor = React__default.lazy(() => import("./MonacoYamlEditor-7071a8ae.js"));
17736
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-ae04bff7.js"));
17725
17737
  const YamlEditorComponent = forwardRef(
17726
17738
  function YamlEditorComponent2(props, ref) {
17727
17739
  const {
package/dist/refine.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bR, cH, A, a_, b0, aJ, cf, bo, a5, ct, ch, aU, X, C, m, cN, aM, bt, ag, cP, am, at, cY, aB, ci, cg, c$, aQ, bA, z, aH, bH, c_, cI, bK, D, b5, aw, bN, av, ax, a4, ce, cd, cZ, bm, aY, cK, ah, bU, cM, cL, cO, cr, aK, an, w, v, cQ, I, bx, aX, x, T, bi, bk, cj, cS, aP, bw, au, aC, aD, ac, aE, a$, aI, bI, bL, ad, d9, cs, cC, bQ, N, a6, h, aZ, aa, bT, bC, bB, cR, c4, d4, k, d3, aN, bu, cl, Q, be, bf, bs, L, bg, M, bh, G, b9, cF, F, b8, K, bc, H, ba, J, bb, O, c5, bd, cE, ae, d7, d6, P, bq, y, ai, al, c3, bn, cW, cV, b3, by, cb, ca, t, aO, bp, B, bz, b4, d8, E, cv, cJ, bO, bW, bX, db, aL, R, ak, ar, aq, bP, ao, cX, c7, ap, cG, cc, bl, bE, ay, l, V, U, bj, cy, cB, cx, cw, cz, cA, cu, cm, cp, cq, co, cn, ck, cD, bY, aR, bv, aF, p, b$, o, b1, d2, s, c0, b2, q, aW, br, n, d1, aT, aV, c9, bG, bF, c8, aS, S, bJ, d0, d5, b6, b7, bD, bM, c6, c1, c2, af, a3, cU, aj, W, cT, as, aA, az, i, aG, bZ, Z, a7, d, de, dd, dg, di, da, ab, dh, dc, bV, df, a9, a8, r, a, e, f, $, _, a0, g, a1, u, bS, a2, b_, b } from "./index-d9e1f169.js";
1
+ import { bR, cH, A, a_, b0, aJ, cf, bo, a5, ct, ch, aU, X, C, m, cN, aM, bt, ag, cP, am, at, cY, aB, ci, cg, c$, aQ, bA, z, aH, bH, c_, cI, bK, D, b5, aw, bN, av, ax, a4, ce, cd, cZ, bm, aY, cK, ah, bU, cM, cL, cO, cr, aK, an, w, v, cQ, I, bx, aX, x, T, bi, bk, cj, cS, aP, bw, au, aC, aD, ac, aE, a$, aI, bI, bL, ad, d9, cs, cC, bQ, N, a6, h, aZ, aa, bT, bC, bB, cR, c4, d4, k, d3, aN, bu, cl, Q, be, bf, bs, L, bg, M, bh, G, b9, cF, F, b8, K, bc, H, ba, J, bb, O, c5, bd, cE, ae, d7, d6, P, bq, y, ai, al, c3, bn, cW, cV, b3, by, cb, ca, t, aO, bp, B, bz, b4, d8, E, cv, cJ, bO, bW, bX, db, aL, R, ak, ar, aq, bP, ao, cX, c7, ap, cG, cc, bl, bE, ay, l, V, U, bj, cy, cB, cx, cw, cz, cA, cu, cm, cp, cq, co, cn, ck, cD, bY, aR, bv, aF, p, b$, o, b1, d2, s, c0, b2, q, aW, br, n, d1, aT, aV, c9, bG, bF, c8, aS, S, bJ, d0, d5, b6, b7, bD, bM, c6, c1, c2, af, a3, cU, aj, W, cT, as, aA, az, i, aG, bZ, Z, a7, d, de, dd, dg, di, da, ab, dh, dc, bV, df, a9, a8, r, a, e, f, $, _, a0, g, a1, u, bS, a2, b_, b } from "./index-e2ac90c3.js";
2
2
  import "@cloudtower/eagle";
3
3
  import "@refinedev/core";
4
4
  import "react";
@@ -775,6 +775,8 @@ var __publicField = (obj, key, value) => {
775
775
  const unknown_state$1 = "Unknown";
776
776
  const pending_state$1 = "Pending";
777
777
  const waiting_state$1 = "Waiting";
778
+ const active_state$1 = "Active";
779
+ const deleting_state$1 = "Deleting";
778
780
  const expand$1 = "Expand";
779
781
  const fold$1 = "Collapse";
780
782
  const rule$1 = "Rule";
@@ -1014,6 +1016,8 @@ var __publicField = (obj, key, value) => {
1014
1016
  unknown_state: unknown_state$1,
1015
1017
  pending_state: pending_state$1,
1016
1018
  waiting_state: waiting_state$1,
1019
+ active_state: active_state$1,
1020
+ deleting_state: deleting_state$1,
1017
1021
  expand: expand$1,
1018
1022
  fold: fold$1,
1019
1023
  rule: rule$1,
@@ -1265,6 +1269,8 @@ var __publicField = (obj, key, value) => {
1265
1269
  const unknown_state = "未知";
1266
1270
  const pending_state = "待处理";
1267
1271
  const waiting_state = "等待中";
1272
+ const active_state = "活跃";
1273
+ const deleting_state = "删除中";
1268
1274
  const create_resource = "创建{{resource}}";
1269
1275
  const edit_resource = "编辑{{resource}}";
1270
1276
  const sec = "秒";
@@ -1503,6 +1509,8 @@ var __publicField = (obj, key, value) => {
1503
1509
  unknown_state,
1504
1510
  pending_state,
1505
1511
  waiting_state,
1512
+ active_state,
1513
+ deleting_state,
1506
1514
  create_resource,
1507
1515
  edit_resource,
1508
1516
  sec,
@@ -10206,6 +10214,8 @@ var __publicField = (obj, key, value) => {
10206
10214
  ResourceState2["BOUND"] = "bound";
10207
10215
  ResourceState2["RELEASED"] = "released";
10208
10216
  ResourceState2["LOST"] = "lost";
10217
+ ResourceState2["ACTIVE"] = "active";
10218
+ ResourceState2["DELETING"] = "deleting";
10209
10219
  return ResourceState2;
10210
10220
  })(ResourceState || {});
10211
10221
  function matchSelector(pod2, selector, namespace2 = "default") {
@@ -11888,7 +11898,9 @@ var __publicField = (obj, key, value) => {
11888
11898
  [ResourceState.AVAILABLE]: "blue",
11889
11899
  [ResourceState.BOUND]: "green",
11890
11900
  [ResourceState.RELEASED]: "gray",
11891
- [ResourceState.LOST]: "red"
11901
+ [ResourceState.LOST]: "red",
11902
+ [ResourceState.ACTIVE]: "green",
11903
+ [ResourceState.DELETING]: "loading"
11892
11904
  };
11893
11905
  const finalColorMap = (customResourceStateMap == null ? void 0 : customResourceStateMap.color) || defaultStateMap;
11894
11906
  const finalTextMap = customResourceStateMap == null ? void 0 : customResourceStateMap.text;
@@ -16,5 +16,7 @@ export declare enum ResourceState {
16
16
  AVAILABLE = "available",
17
17
  BOUND = "bound",
18
18
  RELEASED = "released",
19
- LOST = "lost"
19
+ LOST = "lost",
20
+ ACTIVE = "active",
21
+ DELETING = "deleting"
20
22
  }
package/lib/i18n.d.ts CHANGED
@@ -64,6 +64,8 @@ export declare const resources: {
64
64
  unknown_state: string;
65
65
  pending_state: string;
66
66
  waiting_state: string;
67
+ active_state: string;
68
+ deleting_state: string;
67
69
  expand: string;
68
70
  fold: string;
69
71
  rule: string;
@@ -316,6 +318,8 @@ export declare const resources: {
316
318
  unknown_state: string;
317
319
  pending_state: string;
318
320
  waiting_state: string;
321
+ active_state: string;
322
+ deleting_state: string;
319
323
  create_resource: string;
320
324
  edit_resource: string;
321
325
  sec: string;
@@ -61,6 +61,8 @@ declare const _default: {
61
61
  unknown_state: string;
62
62
  pending_state: string;
63
63
  waiting_state: string;
64
+ active_state: string;
65
+ deleting_state: string;
64
66
  expand: string;
65
67
  fold: string;
66
68
  rule: string;
@@ -69,6 +69,8 @@ declare const _default: {
69
69
  unknown_state: string;
70
70
  pending_state: string;
71
71
  waiting_state: string;
72
+ active_state: string;
73
+ deleting_state: string;
72
74
  create_resource: string;
73
75
  edit_resource: string;
74
76
  sec: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",