@dovetail-v2/refine 0.3.11-alpha.0 → 0.3.11-alpha.1

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.
@@ -6,7 +6,7 @@ const monaco = require("monaco-editor");
6
6
  const monacoYaml = require("monaco-yaml");
7
7
  const React = require("react");
8
8
  const ReactDOM = require("react-dom");
9
- const refine = require("./index-5f852639.cjs");
9
+ const refine = require("./index-e5d37dbf.cjs");
10
10
  require("dayjs");
11
11
  require("i18next");
12
12
  require("@refinedev/core");
@@ -4,7 +4,7 @@ import * as monaco from "monaco-editor";
4
4
  import { setDiagnosticsOptions } from "monaco-yaml";
5
5
  import { useRef, useEffect } from "react";
6
6
  import ReactDOM from "react-dom";
7
- import { Y as YamlEditorStyle } from "./index-b0baca56.js";
7
+ import { Y as YamlEditorStyle } from "./index-4f353f96.js";
8
8
  import "dayjs";
9
9
  import "i18next";
10
10
  import "@refinedev/core";
@@ -12982,7 +12982,7 @@ const PodLogTab = (i18n2, apiUrl) => ({
12982
12982
  ]
12983
12983
  });
12984
12984
  const NetworkPolicyRulesViewer_r6jity = "";
12985
- const MonacoYamlEditor$1 = lazy(() => import("./MonacoYamlEditor-abd8cd52.js"));
12985
+ const MonacoYamlEditor$1 = lazy(() => import("./MonacoYamlEditor-e113425c.js"));
12986
12986
  const EditorStyle$1 = "e1cjl2b8";
12987
12987
  const NetworkPolicyRulesViewer = ({
12988
12988
  ingressOrEgress,
@@ -15253,7 +15253,7 @@ const PlainCodeStyle = "pqch97v";
15253
15253
  const ErrorMsgStyle = "eh2qjnl";
15254
15254
  const ErrorWrapperStyle = "e19q2bnp";
15255
15255
  const YamlEditorStyle = "y16u5v3w";
15256
- const MonacoYamlEditor = React.lazy(() => import("./MonacoYamlEditor-abd8cd52.js"));
15256
+ const MonacoYamlEditor = React.lazy(() => import("./MonacoYamlEditor-e113425c.js"));
15257
15257
  const MonacoYamlDiffEditor = React.lazy(() => import("./MonacoYamlDiffEditor-9232e9fc.js"));
15258
15258
  const YamlEditorComponent = forwardRef(
15259
15259
  function YamlEditorComponent2(props, ref) {
@@ -16229,7 +16229,7 @@ function ConfirmModal({
16229
16229
  });
16230
16230
  }
16231
16231
  function FormModal(props) {
16232
- var _a, _b, _c;
16232
+ var _a, _b, _c, _d;
16233
16233
  const {
16234
16234
  resource: resourceFromProps,
16235
16235
  id,
@@ -16284,11 +16284,11 @@ function FormModal(props) {
16284
16284
  return "";
16285
16285
  }, [isError, id, i18n2]);
16286
16286
  const title = useMemo(() => {
16287
- var _a2, _b2, _c2, _d;
16287
+ var _a2, _b2, _c2, _d2;
16288
16288
  if (typeof ((_a2 = config.formConfig) == null ? void 0 : _a2.formTitle) === "string")
16289
16289
  return (_b2 = config.formConfig) == null ? void 0 : _b2.formTitle;
16290
16290
  if (typeof ((_c2 = config.formConfig) == null ? void 0 : _c2.formTitle) === "function") {
16291
- return (_d = config.formConfig) == null ? void 0 : _d.formTitle(action);
16291
+ return (_d2 = config.formConfig) == null ? void 0 : _d2.formTitle(action);
16292
16292
  }
16293
16293
  const label2 = config.displayName || (config == null ? void 0 : config.kind);
16294
16294
  return i18n2.t(id ? "dovetail.edit_resource" : "dovetail.create_resource", {
@@ -16296,11 +16296,11 @@ function FormModal(props) {
16296
16296
  });
16297
16297
  }, [action, config.formConfig, config.displayName, config == null ? void 0 : config.kind, i18n2, id]);
16298
16298
  const desc = useMemo(() => {
16299
- var _a2, _b2, _c2, _d;
16299
+ var _a2, _b2, _c2, _d2;
16300
16300
  if (typeof ((_a2 = config.formConfig) == null ? void 0 : _a2.formDesc) === "string")
16301
16301
  return (_b2 = config.formConfig) == null ? void 0 : _b2.formDesc;
16302
16302
  if (typeof ((_c2 = config.formConfig) == null ? void 0 : _c2.formDesc) === "function") {
16303
- return (_d = config.formConfig) == null ? void 0 : _d.formDesc(action);
16303
+ return (_d2 = config.formConfig) == null ? void 0 : _d2.formDesc(action);
16304
16304
  }
16305
16305
  return "";
16306
16306
  }, [action, config.formConfig]);
@@ -16387,10 +16387,9 @@ function FormModal(props) {
16387
16387
  onOk,
16388
16388
  okButtonProps: {
16389
16389
  ...omit$1(saveButtonProps, "onClick"),
16390
- children: (_c = config.formConfig) == null ? void 0 : _c.saveButtonText,
16391
- size: "middle"
16390
+ children: (_c = config.formConfig) == null ? void 0 : _c.saveButtonText
16392
16391
  },
16393
- okText,
16392
+ okText: ((_d = config.formConfig) == null ? void 0 : _d.saveButtonText) || okText,
16394
16393
  destroyOnClose: true,
16395
16394
  destroyOtherStep: true,
16396
16395
  ...modalProps,
@@ -17054,7 +17053,11 @@ function SelectMatchLabelButton(props) {
17054
17053
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(Popover, {
17055
17054
  trigger: "click",
17056
17055
  visible: popoverVisible,
17057
- onVisibleChange: setPopoverVisible,
17056
+ onVisibleChange: (newPopoverVisible) => {
17057
+ if (disabled)
17058
+ return;
17059
+ setPopoverVisible(newPopoverVisible);
17060
+ },
17058
17061
  overlayClassName: PopoverOverlayStyle,
17059
17062
  content: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
17060
17063
  className: PopoverContentStyle,
@@ -12983,7 +12983,7 @@ const PodLogTab = (i18n2, apiUrl) => ({
12983
12983
  ]
12984
12984
  });
12985
12985
  const NetworkPolicyRulesViewer_r6jity = "";
12986
- const MonacoYamlEditor$1 = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlEditor-1e515ede.cjs")));
12986
+ const MonacoYamlEditor$1 = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlEditor-88c3e93a.cjs")));
12987
12987
  const EditorStyle$1 = "e1cjl2b8";
12988
12988
  const NetworkPolicyRulesViewer = ({
12989
12989
  ingressOrEgress,
@@ -15254,7 +15254,7 @@ const PlainCodeStyle = "pqch97v";
15254
15254
  const ErrorMsgStyle = "eh2qjnl";
15255
15255
  const ErrorWrapperStyle = "e19q2bnp";
15256
15256
  const YamlEditorStyle = "y16u5v3w";
15257
- const MonacoYamlEditor = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlEditor-1e515ede.cjs")));
15257
+ const MonacoYamlEditor = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlEditor-88c3e93a.cjs")));
15258
15258
  const MonacoYamlDiffEditor = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlDiffEditor-7a07db88.cjs")));
15259
15259
  const YamlEditorComponent = React.forwardRef(
15260
15260
  function YamlEditorComponent2(props, ref) {
@@ -16230,7 +16230,7 @@ function ConfirmModal({
16230
16230
  });
16231
16231
  }
16232
16232
  function FormModal(props) {
16233
- var _a, _b, _c;
16233
+ var _a, _b, _c, _d;
16234
16234
  const {
16235
16235
  resource: resourceFromProps,
16236
16236
  id,
@@ -16285,11 +16285,11 @@ function FormModal(props) {
16285
16285
  return "";
16286
16286
  }, [isError, id, i18n2]);
16287
16287
  const title = React.useMemo(() => {
16288
- var _a2, _b2, _c2, _d;
16288
+ var _a2, _b2, _c2, _d2;
16289
16289
  if (typeof ((_a2 = config.formConfig) == null ? void 0 : _a2.formTitle) === "string")
16290
16290
  return (_b2 = config.formConfig) == null ? void 0 : _b2.formTitle;
16291
16291
  if (typeof ((_c2 = config.formConfig) == null ? void 0 : _c2.formTitle) === "function") {
16292
- return (_d = config.formConfig) == null ? void 0 : _d.formTitle(action);
16292
+ return (_d2 = config.formConfig) == null ? void 0 : _d2.formTitle(action);
16293
16293
  }
16294
16294
  const label2 = config.displayName || (config == null ? void 0 : config.kind);
16295
16295
  return i18n2.t(id ? "dovetail.edit_resource" : "dovetail.create_resource", {
@@ -16297,11 +16297,11 @@ function FormModal(props) {
16297
16297
  });
16298
16298
  }, [action, config.formConfig, config.displayName, config == null ? void 0 : config.kind, i18n2, id]);
16299
16299
  const desc = React.useMemo(() => {
16300
- var _a2, _b2, _c2, _d;
16300
+ var _a2, _b2, _c2, _d2;
16301
16301
  if (typeof ((_a2 = config.formConfig) == null ? void 0 : _a2.formDesc) === "string")
16302
16302
  return (_b2 = config.formConfig) == null ? void 0 : _b2.formDesc;
16303
16303
  if (typeof ((_c2 = config.formConfig) == null ? void 0 : _c2.formDesc) === "function") {
16304
- return (_d = config.formConfig) == null ? void 0 : _d.formDesc(action);
16304
+ return (_d2 = config.formConfig) == null ? void 0 : _d2.formDesc(action);
16305
16305
  }
16306
16306
  return "";
16307
16307
  }, [action, config.formConfig]);
@@ -16388,10 +16388,9 @@ function FormModal(props) {
16388
16388
  onOk,
16389
16389
  okButtonProps: {
16390
16390
  ...lodashEs.omit(saveButtonProps, "onClick"),
16391
- children: (_c = config.formConfig) == null ? void 0 : _c.saveButtonText,
16392
- size: "middle"
16391
+ children: (_c = config.formConfig) == null ? void 0 : _c.saveButtonText
16393
16392
  },
16394
- okText,
16393
+ okText: ((_d = config.formConfig) == null ? void 0 : _d.saveButtonText) || okText,
16395
16394
  destroyOnClose: true,
16396
16395
  destroyOtherStep: true,
16397
16396
  ...modalProps,
@@ -17055,7 +17054,11 @@ function SelectMatchLabelButton(props) {
17055
17054
  children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Popover, {
17056
17055
  trigger: "click",
17057
17056
  visible: popoverVisible,
17058
- onVisibleChange: setPopoverVisible,
17057
+ onVisibleChange: (newPopoverVisible) => {
17058
+ if (disabled)
17059
+ return;
17060
+ setPopoverVisible(newPopoverVisible);
17061
+ },
17059
17062
  overlayClassName: PopoverOverlayStyle,
17060
17063
  content: /* @__PURE__ */ common.jsxRuntimeExports.jsxs("div", {
17061
17064
  className: PopoverContentStyle,
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-5f852639.cjs");
3
+ const refine = require("./index-e5d37dbf.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 { bS, cQ, A, aX, aZ, aG, co, bl, bE, a2, cC, cq, aR, T, C, j, cW, aJ, bq, ad, cY, aj, aq, d6, ay, cr, cp, d9, aN, bx, w, aE, bG, d8, cR, bJ, D, b2, at, cl, bM, bO, bN, as, ck, au, a1, ce, cd, d7, bj, aV, cT, ae, c0, bV, cV, cU, cX, cA, aH, ak, s, q, cZ, I, bu, aU, t, M, bf, bh, cs, c$, aM, bt, ar, az, aA, a9, aB, cf, aY, aF, bH, cg, bK, aa, dj, cB, cL, bR, N, a3, g, aW, a7, bU, bz, by, c_, c6, de, i, ci, dd, cm, cn, aK, br, cu, L, bb, bc, bp, H, bd, J, be, B, b6, cO, z, b5, G, b9, E, b7, F, b8, K, c7, ba, cN, ab, dh, dg, P, bn, v, af, ai, c5, bk, d3, d2, b0, bv, cb, ca, p, aL, bm, x, ch, bw, b1, di, y, cE, cS, bP, bX, bY, dl, aI, d5, h, ah, ao, an, bQ, al, d4, c9, am, cP, cc, bi, bB, av, R, Q, O, bg, cH, cK, cG, cF, cI, cJ, cD, cv, cy, cz, cx, cw, ct, cM, bZ, aO, bs, cj, aC, m, c1, l, a_, dc, o, c2, a$, n, aT, bo, k, db, aQ, aS, bC, bF, bD, aP, S, bI, da, df, b3, b4, bA, bL, c8, c3, c4, ac, dx, a0, d1, ag, W, d0, ap, ax, aw, aD, b_, U, a4, d, dp, dn, dr, du, dt, dk, a8, ds, dm, bW, dq, a6, a5, r, a, c, e, X, V, Z, f, _, u, bT, $, b$, b, dB, dy, dz, dA, dD, dC, dv, dw } from "./index-b0baca56.js";
1
+ import { bS, cQ, A, aX, aZ, aG, co, bl, bE, a2, cC, cq, aR, T, C, j, cW, aJ, bq, ad, cY, aj, aq, d6, ay, cr, cp, d9, aN, bx, w, aE, bG, d8, cR, bJ, D, b2, at, cl, bM, bO, bN, as, ck, au, a1, ce, cd, d7, bj, aV, cT, ae, c0, bV, cV, cU, cX, cA, aH, ak, s, q, cZ, I, bu, aU, t, M, bf, bh, cs, c$, aM, bt, ar, az, aA, a9, aB, cf, aY, aF, bH, cg, bK, aa, dj, cB, cL, bR, N, a3, g, aW, a7, bU, bz, by, c_, c6, de, i, ci, dd, cm, cn, aK, br, cu, L, bb, bc, bp, H, bd, J, be, B, b6, cO, z, b5, G, b9, E, b7, F, b8, K, c7, ba, cN, ab, dh, dg, P, bn, v, af, ai, c5, bk, d3, d2, b0, bv, cb, ca, p, aL, bm, x, ch, bw, b1, di, y, cE, cS, bP, bX, bY, dl, aI, d5, h, ah, ao, an, bQ, al, d4, c9, am, cP, cc, bi, bB, av, R, Q, O, bg, cH, cK, cG, cF, cI, cJ, cD, cv, cy, cz, cx, cw, ct, cM, bZ, aO, bs, cj, aC, m, c1, l, a_, dc, o, c2, a$, n, aT, bo, k, db, aQ, aS, bC, bF, bD, aP, S, bI, da, df, b3, b4, bA, bL, c8, c3, c4, ac, dx, a0, d1, ag, W, d0, ap, ax, aw, aD, b_, U, a4, d, dp, dn, dr, du, dt, dk, a8, ds, dm, bW, dq, a6, a5, r, a, c, e, X, V, Z, f, _, u, bT, $, b$, b, dB, dy, dz, dA, dD, dC, dv, dw } from "./index-4f353f96.js";
2
2
  import "./common-241b21f8.js";
3
3
  import "@cloudtower/eagle";
4
4
  import "@refinedev/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.3.11-alpha.0",
3
+ "version": "0.3.11-alpha.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",