@dovetail-v2/refine 0.0.61 → 0.0.62

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-ff0b07db.js";
1
+ import { j as jsxRuntimeExports } from "./index-3bdfc94a.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { useRef, useEffect } from "react";
4
4
  import "i18next";
@@ -22141,7 +22141,7 @@ function useForm$1(props = {}) {
22141
22141
  _formControl.current.formState = getProxyFormState(formState, control);
22142
22142
  return _formControl.current;
22143
22143
  }
22144
- const RefineFormContent_pacjk7 = "";
22144
+ const RefineFormContent_1jki0fx = "";
22145
22145
  const RefineFormContent = (props) => {
22146
22146
  var _a, _b, _c, _d;
22147
22147
  const {
@@ -22910,11 +22910,10 @@ const useForm = ({
22910
22910
  };
22911
22911
  };
22912
22912
  const useRefineForm = (props) => {
22913
- var _a, _b;
22913
+ var _a;
22914
22914
  const { config, id, refineProps } = props;
22915
22915
  const [responseErrorMsg, setResponseErrorMsg] = useState("");
22916
22916
  const i18n2 = useTranslation();
22917
- console.log("config.formConfig?.useFormProps", (_a = config.formConfig) == null ? void 0 : _a.useFormProps);
22918
22917
  const result = useForm({
22919
22918
  mode: "onSubmit",
22920
22919
  reValidateMode: "onChange",
@@ -22942,15 +22941,15 @@ const useRefineForm = (props) => {
22942
22941
  ...refineProps
22943
22942
  },
22944
22943
  defaultValues: config == null ? void 0 : config.initValue,
22945
- ...(_b = config.formConfig) == null ? void 0 : _b.useFormProps
22944
+ ...(_a = config.formConfig) == null ? void 0 : _a.useFormProps
22946
22945
  });
22947
22946
  useEffect(() => {
22948
- var _a2, _b2;
22947
+ var _a2, _b;
22949
22948
  const response = (_a2 = result.refineCore.mutationResult.error) == null ? void 0 : _a2.response;
22950
22949
  if (response && !(response == null ? void 0 : response.bodyUsed)) {
22951
- (_b2 = response.json) == null ? void 0 : _b2.call(response).then((body) => {
22952
- var _a3, _b3;
22953
- setResponseErrorMsg(((_b3 = (_a3 = config.formConfig) == null ? void 0 : _a3.formatError) == null ? void 0 : _b3.call(_a3, body)) || body.message);
22950
+ (_b = response.json) == null ? void 0 : _b.call(response).then((body) => {
22951
+ var _a3, _b2;
22952
+ setResponseErrorMsg(((_b2 = (_a3 = config.formConfig) == null ? void 0 : _a3.formatError) == null ? void 0 : _b2.call(_a3, body)) || body.message);
22954
22953
  });
22955
22954
  }
22956
22955
  }, [config.formConfig, result]);
@@ -22964,7 +22963,7 @@ const Separator = () => {
22964
22963
  });
22965
22964
  };
22966
22965
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
22967
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-0413ec6d.js"));
22966
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-a7e5cc24.js"));
22968
22967
  const YamlEditorComponent = forwardRef(
22969
22968
  function YamlEditorComponent2(props, ref) {
22970
22969
  const {
@@ -23661,10 +23660,10 @@ function YamlForm(props) {
23661
23660
  })
23662
23661
  });
23663
23662
  }
23664
- const FormModal_1h2it3o = "";
23665
- const FullscreenModalStyle = "f1nltbcu";
23666
- const MaxWidthModalStyle = "m1qgcca6";
23667
- const FormDescStyle = "f1tl3wq2";
23663
+ const FormModal_5bl3dp = "";
23664
+ const FormDescStyle = "f1nltbcu";
23665
+ const FullscreenModalStyle = "f1qgcca6";
23666
+ const MaxWidthModalStyle = "m1tl3wq2";
23668
23667
  const ErrorStyle = "exjt4uc";
23669
23668
  function FormModal(props) {
23670
23669
  var _a, _b, _c, _d, _e;
package/dist/refine.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b7, bL, A, aA, aC, ak, bn, aK, H, bB, bp, au, x, C, h, bP, an, aO, Z, bR, a1, a8, b_, ac, bq, bo, c1, aq, aU, v, ai, aZ, c0, bM, b1, D, aH, b3, b$, aI, ay, ba, bO, bQ, bz, al, a2, q, p, bS, I, aR, ax, s, br, bU, ap, aQ, ad, ae, U, af, aB, aj, a_, b2, V, M, bA, b6, N, J, c, az, Q, b9, aW, aV, bT, bl, f, bt, X, P, aM, t, _, bk, aJ, bY, bX, aF, aS, o, ao, aL, w, aT, aG, c5, bN, b4, bb, bc, am, R, a0, a6, a5, b5, a3, bZ, a4, a9, g, bG, bJ, bF, bE, bH, bI, bC, bu, bx, by, bw, bv, bs, bd, ar, aP, ag, l, bg, k, aD, c4, n, bh, aE, m, aw, aN, i, c3, at, av, aY, aX, as, S, b0, a$, c2, bD, bm, bi, bj, Y, bW, $, W, bV, a7, ab, aa, e, bK, ah, be, y, K, d, T, O, L, r, b, B, z, E, F, u, b8, G, bf, a } from "./index-ff0b07db.js";
1
+ import { b7, bL, A, aA, aC, ak, bn, aK, H, bB, bp, au, x, C, h, bP, an, aO, Z, bR, a1, a8, b_, ac, bq, bo, c1, aq, aU, v, ai, aZ, c0, bM, b1, D, aH, b3, b$, aI, ay, ba, bO, bQ, bz, al, a2, q, p, bS, I, aR, ax, s, br, bU, ap, aQ, ad, ae, U, af, aB, aj, a_, b2, V, M, bA, b6, N, J, c, az, Q, b9, aW, aV, bT, bl, f, bt, X, P, aM, t, _, bk, aJ, bY, bX, aF, aS, o, ao, aL, w, aT, aG, c5, bN, b4, bb, bc, am, R, a0, a6, a5, b5, a3, bZ, a4, a9, g, bG, bJ, bF, bE, bH, bI, bC, bu, bx, by, bw, bv, bs, bd, ar, aP, ag, l, bg, k, aD, c4, n, bh, aE, m, aw, aN, i, c3, at, av, aY, aX, as, S, b0, a$, c2, bD, bm, bi, bj, Y, bW, $, W, bV, a7, ab, aa, e, bK, ah, be, y, K, d, T, O, L, r, b, B, z, E, F, u, b8, G, bf, a } from "./index-3bdfc94a.js";
2
2
  import "@cloudtower/eagle";
3
3
  import "@refinedev/core";
4
4
  import "@cloudtower/icons-react";
@@ -22147,7 +22147,7 @@ var __publicField = (obj, key, value) => {
22147
22147
  _formControl.current.formState = getProxyFormState(formState, control);
22148
22148
  return _formControl.current;
22149
22149
  }
22150
- const RefineFormContent_pacjk7 = "";
22150
+ const RefineFormContent_1jki0fx = "";
22151
22151
  const RefineFormContent = (props) => {
22152
22152
  var _a, _b, _c, _d;
22153
22153
  const {
@@ -22916,11 +22916,10 @@ var __publicField = (obj, key, value) => {
22916
22916
  };
22917
22917
  };
22918
22918
  const useRefineForm = (props) => {
22919
- var _a, _b;
22919
+ var _a;
22920
22920
  const { config, id, refineProps } = props;
22921
22921
  const [responseErrorMsg, setResponseErrorMsg] = React.useState("");
22922
22922
  const i18n2 = useTranslation();
22923
- console.log("config.formConfig?.useFormProps", (_a = config.formConfig) == null ? void 0 : _a.useFormProps);
22924
22923
  const result = useForm({
22925
22924
  mode: "onSubmit",
22926
22925
  reValidateMode: "onChange",
@@ -22948,15 +22947,15 @@ var __publicField = (obj, key, value) => {
22948
22947
  ...refineProps
22949
22948
  },
22950
22949
  defaultValues: config == null ? void 0 : config.initValue,
22951
- ...(_b = config.formConfig) == null ? void 0 : _b.useFormProps
22950
+ ...(_a = config.formConfig) == null ? void 0 : _a.useFormProps
22952
22951
  });
22953
22952
  React.useEffect(() => {
22954
- var _a2, _b2;
22953
+ var _a2, _b;
22955
22954
  const response = (_a2 = result.refineCore.mutationResult.error) == null ? void 0 : _a2.response;
22956
22955
  if (response && !(response == null ? void 0 : response.bodyUsed)) {
22957
- (_b2 = response.json) == null ? void 0 : _b2.call(response).then((body) => {
22958
- var _a3, _b3;
22959
- setResponseErrorMsg(((_b3 = (_a3 = config.formConfig) == null ? void 0 : _a3.formatError) == null ? void 0 : _b3.call(_a3, body)) || body.message);
22956
+ (_b = response.json) == null ? void 0 : _b.call(response).then((body) => {
22957
+ var _a3, _b2;
22958
+ setResponseErrorMsg(((_b2 = (_a3 = config.formConfig) == null ? void 0 : _a3.formatError) == null ? void 0 : _b2.call(_a3, body)) || body.message);
22960
22959
  });
22961
22960
  }
22962
22961
  }, [config.formConfig, result]);
@@ -23667,10 +23666,10 @@ var __publicField = (obj, key, value) => {
23667
23666
  })
23668
23667
  });
23669
23668
  }
23670
- const FormModal_1h2it3o = "";
23671
- const FullscreenModalStyle = "f1nltbcu";
23672
- const MaxWidthModalStyle = "m1qgcca6";
23673
- const FormDescStyle = "f1tl3wq2";
23669
+ const FormModal_5bl3dp = "";
23670
+ const FormDescStyle = "f1nltbcu";
23671
+ const FullscreenModalStyle = "f1qgcca6";
23672
+ const MaxWidthModalStyle = "m1tl3wq2";
23674
23673
  const ErrorStyle = "exjt4uc";
23675
23674
  function FormModal(props) {
23676
23675
  var _a, _b, _c, _d, _e;
package/dist/style.css CHANGED
@@ -1525,13 +1525,13 @@
1525
1525
  .c154n7ie{max-width:144px;}
1526
1526
  .c1c9j4da{width:100%;}
1527
1527
  .cjxv8cf{color:rgba(44,56,82,0.6);}
1528
- .c1xsnuvk{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;max-width:656px;width:100%;margin:0 auto;}
1528
+ .c1xsnuvk{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;max-width:648px;width:100%;margin:0 auto;}
1529
1529
  .s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
1530
1530
 
1531
1531
  .e1guqlj2{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-bottom:16px;}
1532
- .f1nltbcu.ant-modal.fullscreen .ant-modal-header{padding:60px 128px 32px 128px;}.f1nltbcu.ant-modal.fullscreen .ant-modal-body{padding:0 128px;}.f1nltbcu.ant-modal.fullscreen .ant-modal-footer .footer-content{margin:0 128px;}
1533
- .m1qgcca6 .ant-modal-header{max-width:648px;width:100%;padding:60px 0 32px 0 !important;margin:auto;}.m1qgcca6 .ant-modal-body{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;padding:0 4px !important;margin:auto;}.m1qgcca6 .ant-modal-footer .footer-content{max-width:648px;width:100%;margin:auto !important;}
1534
- .f1tl3wq2{margin-bottom:16px;}
1532
+ .f1nltbcu{margin-bottom:16px;}
1533
+ .f1qgcca6.ant-modal.fullscreen .ant-modal-header{padding:60px 128px 32px 128px;}.f1qgcca6.ant-modal.fullscreen .ant-modal-body{padding:0 128px;}.f1qgcca6.ant-modal.fullscreen .ant-modal-footer .footer-content{margin:0 128px;}
1534
+ .m1tl3wq2 .ant-modal-header{max-width:648px;width:100%;padding:60px 0 32px 0 !important;margin:auto;}.m1tl3wq2 .ant-modal-body{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;padding:0 4px !important;margin:auto;}.m1tl3wq2 .ant-modal-footer .footer-content{max-width:648px;width:100%;margin:auto !important;}.m1tl3wq2 .f1nltbcu{max-width:648px;width:100%;margin-left:auto;margin-right:auto;}
1535
1535
  .exjt4uc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;}
1536
1536
  .c1pvtlkp{width:100%;}
1537
1537
  .wfg6u6g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.wfg6u6g .usage-text{width:50px;text-align:right;}.wfg6u6g .usage-bar{height:12px;width:100px;position:relative;border-radius:2px;}.wfg6u6g .request-anchor{position:absolute;left:10%;top:-3px;height:18px;width:2px;background:#777;z-index:9;}.wfg6u6g .usage-fill-bar{position:absolute;left:0;top:0;height:100%;background:rgba(0,128,255,0.6);z-index:7;}.wfg6u6g .request-bar{position:absolute;left:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar{position:absolute;right:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar.no-limit{background:linear-gradient(to right,#d8deeb 50%,#d8deeb 50%);background-size:4px 100%;}.wfg6u6g .request-to-limit-bar.no-limit.exceed-request{background:linear-gradient(to right,#d8deeb 50%,rgba(0,128,255,0.6) 50%);background-size:4px 100%;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",