@dovetail-v2/refine 0.2.8 → 0.2.9
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.
- package/dist/{MonacoYamlEditor-2c3897de.cjs → MonacoYamlEditor-743591b0.cjs} +1 -1
- package/dist/{MonacoYamlEditor-c8ef62dc.js → MonacoYamlEditor-90733472.js} +1 -1
- package/dist/{index-6e832950.js → index-0d6858da.js} +22 -7
- package/dist/{index-92ab679c.cjs → index-e19759fc.cjs} +22 -7
- package/dist/refine.cjs +1 -1
- package/dist/refine.js +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ const monaco = require("monaco-editor");
|
|
|
5
5
|
const monacoYaml = require("monaco-yaml");
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const ReactDOM = require("react-dom");
|
|
8
|
-
const refine = require("./index-
|
|
8
|
+
const refine = require("./index-e19759fc.cjs");
|
|
9
9
|
require("dayjs");
|
|
10
10
|
require("i18next");
|
|
11
11
|
require("@refinedev/core");
|
|
@@ -3,7 +3,7 @@ import * as monaco from "monaco-editor";
|
|
|
3
3
|
import { setDiagnosticsOptions } from "monaco-yaml";
|
|
4
4
|
import { useRef, useEffect } from "react";
|
|
5
5
|
import ReactDOM from "react-dom";
|
|
6
|
-
import { Y as YamlEditorStyle } from "./index-
|
|
6
|
+
import { Y as YamlEditorStyle } from "./index-0d6858da.js";
|
|
7
7
|
import "dayjs";
|
|
8
8
|
import "i18next";
|
|
9
9
|
import "@refinedev/core";
|
|
@@ -10680,17 +10680,32 @@ const ResourceLink = (props) => {
|
|
|
10680
10680
|
const {
|
|
10681
10681
|
resourceKind: resourceName,
|
|
10682
10682
|
namespace: namespace2,
|
|
10683
|
-
name:
|
|
10683
|
+
name: name2,
|
|
10684
10684
|
uid,
|
|
10685
10685
|
displayName
|
|
10686
10686
|
} = props;
|
|
10687
10687
|
const navigation = useNavigation();
|
|
10688
10688
|
const go = useGo();
|
|
10689
|
+
const {
|
|
10690
|
+
data: data2
|
|
10691
|
+
} = useCan({
|
|
10692
|
+
resource: resourceName,
|
|
10693
|
+
action: AccessControlAuth.Read,
|
|
10694
|
+
params: {
|
|
10695
|
+
namespace: namespace2
|
|
10696
|
+
}
|
|
10697
|
+
});
|
|
10698
|
+
const isCanRead = data2 == null ? void 0 : data2.can;
|
|
10699
|
+
if (!isCanRead) {
|
|
10700
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
10701
|
+
children: name2
|
|
10702
|
+
});
|
|
10703
|
+
}
|
|
10689
10704
|
const onClick = () => {
|
|
10690
10705
|
go({
|
|
10691
10706
|
to: navigation.showUrl(resourceName, ""),
|
|
10692
10707
|
query: {
|
|
10693
|
-
id: namespace2 ? `${namespace2}/${
|
|
10708
|
+
id: namespace2 ? `${namespace2}/${name2}` : name2,
|
|
10694
10709
|
uid
|
|
10695
10710
|
},
|
|
10696
10711
|
options: {
|
|
@@ -10698,11 +10713,11 @@ const ResourceLink = (props) => {
|
|
|
10698
10713
|
}
|
|
10699
10714
|
});
|
|
10700
10715
|
};
|
|
10701
|
-
return
|
|
10716
|
+
return name2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
|
|
10702
10717
|
className: LinkStyle,
|
|
10703
10718
|
onClick,
|
|
10704
|
-
title: displayName ||
|
|
10705
|
-
children: displayName ||
|
|
10719
|
+
title: displayName || name2,
|
|
10720
|
+
children: displayName || name2
|
|
10706
10721
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10707
10722
|
value: ""
|
|
10708
10723
|
});
|
|
@@ -12667,7 +12682,7 @@ const PodLogTab = (i18n2) => ({
|
|
|
12667
12682
|
]
|
|
12668
12683
|
});
|
|
12669
12684
|
const NetworkPolicyRulesViewer_r6jity = "";
|
|
12670
|
-
const MonacoYamlEditor$1 = lazy(() => import("./MonacoYamlEditor-
|
|
12685
|
+
const MonacoYamlEditor$1 = lazy(() => import("./MonacoYamlEditor-90733472.js"));
|
|
12671
12686
|
const EditorStyle$1 = "e1cjl2b8";
|
|
12672
12687
|
const NetworkPolicyRulesViewer = ({
|
|
12673
12688
|
ingressOrEgress,
|
|
@@ -16091,7 +16106,7 @@ const PlainCodeStyle = "pqch97v";
|
|
|
16091
16106
|
const ErrorMsgStyle = "eh2qjnl";
|
|
16092
16107
|
const ErrorWrapperStyle = "e19q2bnp";
|
|
16093
16108
|
const YamlEditorStyle = "y16u5v3w";
|
|
16094
|
-
const MonacoYamlEditor = React__default.lazy(() => import("./MonacoYamlEditor-
|
|
16109
|
+
const MonacoYamlEditor = React__default.lazy(() => import("./MonacoYamlEditor-90733472.js"));
|
|
16095
16110
|
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-7de94ad2.js"));
|
|
16096
16111
|
const YamlEditorComponent = forwardRef(
|
|
16097
16112
|
function YamlEditorComponent2(props, ref) {
|
|
@@ -10697,17 +10697,32 @@ const ResourceLink = (props) => {
|
|
|
10697
10697
|
const {
|
|
10698
10698
|
resourceKind: resourceName,
|
|
10699
10699
|
namespace: namespace2,
|
|
10700
|
-
name:
|
|
10700
|
+
name: name2,
|
|
10701
10701
|
uid,
|
|
10702
10702
|
displayName
|
|
10703
10703
|
} = props;
|
|
10704
10704
|
const navigation = core.useNavigation();
|
|
10705
10705
|
const go = core.useGo();
|
|
10706
|
+
const {
|
|
10707
|
+
data: data2
|
|
10708
|
+
} = core.useCan({
|
|
10709
|
+
resource: resourceName,
|
|
10710
|
+
action: AccessControlAuth.Read,
|
|
10711
|
+
params: {
|
|
10712
|
+
namespace: namespace2
|
|
10713
|
+
}
|
|
10714
|
+
});
|
|
10715
|
+
const isCanRead = data2 == null ? void 0 : data2.can;
|
|
10716
|
+
if (!isCanRead) {
|
|
10717
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx("span", {
|
|
10718
|
+
children: name2
|
|
10719
|
+
});
|
|
10720
|
+
}
|
|
10706
10721
|
const onClick = () => {
|
|
10707
10722
|
go({
|
|
10708
10723
|
to: navigation.showUrl(resourceName, ""),
|
|
10709
10724
|
query: {
|
|
10710
|
-
id: namespace2 ? `${namespace2}/${
|
|
10725
|
+
id: namespace2 ? `${namespace2}/${name2}` : name2,
|
|
10711
10726
|
uid
|
|
10712
10727
|
},
|
|
10713
10728
|
options: {
|
|
@@ -10715,11 +10730,11 @@ const ResourceLink = (props) => {
|
|
|
10715
10730
|
}
|
|
10716
10731
|
});
|
|
10717
10732
|
};
|
|
10718
|
-
return
|
|
10733
|
+
return name2 ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Link, {
|
|
10719
10734
|
className: LinkStyle,
|
|
10720
10735
|
onClick,
|
|
10721
|
-
title: displayName ||
|
|
10722
|
-
children: displayName ||
|
|
10736
|
+
title: displayName || name2,
|
|
10737
|
+
children: displayName || name2
|
|
10723
10738
|
}) : /* @__PURE__ */ common.jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10724
10739
|
value: ""
|
|
10725
10740
|
});
|
|
@@ -12684,7 +12699,7 @@ const PodLogTab = (i18n2) => ({
|
|
|
12684
12699
|
]
|
|
12685
12700
|
});
|
|
12686
12701
|
const NetworkPolicyRulesViewer_r6jity = "";
|
|
12687
|
-
const MonacoYamlEditor$1 = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlEditor-
|
|
12702
|
+
const MonacoYamlEditor$1 = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlEditor-743591b0.cjs")));
|
|
12688
12703
|
const EditorStyle$1 = "e1cjl2b8";
|
|
12689
12704
|
const NetworkPolicyRulesViewer = ({
|
|
12690
12705
|
ingressOrEgress,
|
|
@@ -16108,7 +16123,7 @@ const PlainCodeStyle = "pqch97v";
|
|
|
16108
16123
|
const ErrorMsgStyle = "eh2qjnl";
|
|
16109
16124
|
const ErrorWrapperStyle = "e19q2bnp";
|
|
16110
16125
|
const YamlEditorStyle = "y16u5v3w";
|
|
16111
|
-
const MonacoYamlEditor = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlEditor-
|
|
16126
|
+
const MonacoYamlEditor = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlEditor-743591b0.cjs")));
|
|
16112
16127
|
const MonacoYamlDiffEditor = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlDiffEditor-7a07db88.cjs")));
|
|
16113
16128
|
const YamlEditorComponent = React.forwardRef(
|
|
16114
16129
|
function YamlEditorComponent2(props, ref) {
|
package/dist/refine.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const refine = require("./index-
|
|
3
|
+
const refine = require("./index-e19759fc.cjs");
|
|
4
4
|
require("./common-1eb43414.cjs");
|
|
5
5
|
require("@cloudtower/eagle");
|
|
6
6
|
require("@refinedev/core");
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bP, cD, A, aY, a_, aH, cb, bm, a3, cp, cd, aS, U, C, k, cJ, aK, br, ae, cL, ak, ar, cU, az, ce, cc, cX, aO, by, x, aF, bF, cW, cE, bI, D, b3, au, bL, at, av, a2, ca, c9, cV, bk, aW, cG, af, bS, cI, cH, cK, cn, aI, al, t, s, cM, I, bv, aV, v, O, bg, bi, cf, cO, aN, bu, as, aA, aB, aa, aC, aZ, aG, bG, bJ, ab, d5, co, cy, bO, N, a4, g, aX, a8, bR, bA, bz, cN, c2, d0, i, c$, aL, bs, ch, M, bc, bd, bq, J, be, K, bf, E, b7, cB, B, b6, H, ba, F, b8, G, b9, L, c3, bb, cA, ac, d3, d2, P, bo, w, ag, aj, c1, bl, cS, cR, b1, bw, c7, c6, q, aM, bn, y, bx, b2, d4, z, cr, cF, bM, bU, bV, d7, aJ, R, ai, ap, ao, bN, am, cT, c5, an, cC, c8, bj, bC, aw, j, T, Q, bh, cu, cx, ct, cs, cv, cw, cq, ci, cl, cm, ck, cj, cg, cz, bW, aP, bt, aD, n, bZ, m, a$, c_, p, b_, b0, o, aU, bp, l, cZ, aR, aT, bE, bD, aQ, S, bH, cY, d1, b4, b5, bB, bK, c4, b$, c0, ad, a1, cQ, ah, W, cP, aq, ay, ax, h, aE, bX, V, a5, d, da, d9, dc, de, d6, a9, dd, d8, bT, db, a7, a6, r, a, c, e, Z, X, _, f, $, u, bQ, a0, bY, b } from "./index-
|
|
1
|
+
import { bP, cD, A, aY, a_, aH, cb, bm, a3, cp, cd, aS, U, C, k, cJ, aK, br, ae, cL, ak, ar, cU, az, ce, cc, cX, aO, by, x, aF, bF, cW, cE, bI, D, b3, au, bL, at, av, a2, ca, c9, cV, bk, aW, cG, af, bS, cI, cH, cK, cn, aI, al, t, s, cM, I, bv, aV, v, O, bg, bi, cf, cO, aN, bu, as, aA, aB, aa, aC, aZ, aG, bG, bJ, ab, d5, co, cy, bO, N, a4, g, aX, a8, bR, bA, bz, cN, c2, d0, i, c$, aL, bs, ch, M, bc, bd, bq, J, be, K, bf, E, b7, cB, B, b6, H, ba, F, b8, G, b9, L, c3, bb, cA, ac, d3, d2, P, bo, w, ag, aj, c1, bl, cS, cR, b1, bw, c7, c6, q, aM, bn, y, bx, b2, d4, z, cr, cF, bM, bU, bV, d7, aJ, R, ai, ap, ao, bN, am, cT, c5, an, cC, c8, bj, bC, aw, j, T, Q, bh, cu, cx, ct, cs, cv, cw, cq, ci, cl, cm, ck, cj, cg, cz, bW, aP, bt, aD, n, bZ, m, a$, c_, p, b_, b0, o, aU, bp, l, cZ, aR, aT, bE, bD, aQ, S, bH, cY, d1, b4, b5, bB, bK, c4, b$, c0, ad, a1, cQ, ah, W, cP, aq, ay, ax, h, aE, bX, V, a5, d, da, d9, dc, de, d6, a9, dd, d8, bT, db, a7, a6, r, a, c, e, Z, X, _, f, $, u, bQ, a0, bY, b } from "./index-0d6858da.js";
|
|
2
2
|
import "./common-feae5742.js";
|
|
3
3
|
import "@cloudtower/eagle";
|
|
4
4
|
import "@refinedev/core";
|