@dovetail-v2/refine 0.0.1 → 0.0.2
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.
|
@@ -7274,7 +7274,7 @@ const ErrorMsgStyle = "eh2qjnl";
|
|
|
7274
7274
|
const ErrorWrapperStyle = "e19q2bnp";
|
|
7275
7275
|
const YamlEditorStyle = "y16u5v3w";
|
|
7276
7276
|
const MonacoYamlEditor$2 = React.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$1));
|
|
7277
|
-
const MonacoYamlDiffEditor = React.lazy(() => import("./MonacoYamlDiffEditor.
|
|
7277
|
+
const MonacoYamlDiffEditor = React.lazy(() => import("./MonacoYamlDiffEditor.a7832cec.js"));
|
|
7278
7278
|
const YamlEditorComponent = forwardRef(
|
|
7279
7279
|
function YamlEditorComponent2(props, ref) {
|
|
7280
7280
|
const {
|
|
@@ -9098,7 +9098,7 @@ const ResourceCRUD = (props) => {
|
|
|
9098
9098
|
var _a, _b;
|
|
9099
9099
|
const formatter = config.formatter || ((v2) => new ResourceModel(v2));
|
|
9100
9100
|
return /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [
|
|
9101
|
-
/* @__PURE__ */ jsxRuntime.exports.jsx(Route, { path:
|
|
9101
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Route, { path: `${urlPrefix}/${config.name}`, exact: true, children: /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
9102
9102
|
ResourceList,
|
|
9103
9103
|
{
|
|
9104
9104
|
name: config.kind,
|
|
@@ -9107,7 +9107,7 @@ const ResourceCRUD = (props) => {
|
|
|
9107
9107
|
Dropdown: config.Dropdown
|
|
9108
9108
|
}
|
|
9109
9109
|
) }),
|
|
9110
|
-
/* @__PURE__ */ jsxRuntime.exports.jsx(Route, { path:
|
|
9110
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Route, { path: `${urlPrefix}/${config.name}/show`, children: /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
9111
9111
|
ResourceShow,
|
|
9112
9112
|
{
|
|
9113
9113
|
formatter,
|
|
@@ -9115,8 +9115,8 @@ const ResourceCRUD = (props) => {
|
|
|
9115
9115
|
Dropdown: config.Dropdown
|
|
9116
9116
|
}
|
|
9117
9117
|
) }),
|
|
9118
|
-
/* @__PURE__ */ jsxRuntime.exports.jsx(Route, { path:
|
|
9119
|
-
/* @__PURE__ */ jsxRuntime.exports.jsx(Route, { path:
|
|
9118
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Route, { path: `${urlPrefix}/${config.name}/create`, children: /* @__PURE__ */ jsxRuntime.exports.jsx(ResourceForm, { config }) }),
|
|
9119
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Route, { path: `${urlPrefix}/${config.name}/edit`, children: /* @__PURE__ */ jsxRuntime.exports.jsx(ResourceForm, { config }) })
|
|
9120
9120
|
] });
|
|
9121
9121
|
}) });
|
|
9122
9122
|
};
|
|
@@ -9784,10 +9784,10 @@ const Dovetail = (props) => {
|
|
|
9784
9784
|
parent: c.parent,
|
|
9785
9785
|
label: `${c.kind}s`
|
|
9786
9786
|
},
|
|
9787
|
-
list:
|
|
9788
|
-
show:
|
|
9789
|
-
create:
|
|
9790
|
-
edit:
|
|
9787
|
+
list: `${urlPrefix}/${c.name}`,
|
|
9788
|
+
show: `${urlPrefix}/${c.name}/show`,
|
|
9789
|
+
create: `${urlPrefix}/${c.name}/create`,
|
|
9790
|
+
edit: `${urlPrefix}/${c.name}/edit`
|
|
9791
9791
|
};
|
|
9792
9792
|
}),
|
|
9793
9793
|
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Layout, { children: /* @__PURE__ */ jsxRuntime.exports.jsxs(Switch, { children: [
|
package/dist/refine.js
CHANGED
package/dist/refine.umd.cjs
CHANGED
|
@@ -9113,7 +9113,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9113
9113
|
var _a, _b;
|
|
9114
9114
|
const formatter = config.formatter || ((v2) => new ResourceModel(v2));
|
|
9115
9115
|
return /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [
|
|
9116
|
-
/* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.Route, { path:
|
|
9116
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.Route, { path: `${urlPrefix}/${config.name}`, exact: true, children: /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
9117
9117
|
ResourceList,
|
|
9118
9118
|
{
|
|
9119
9119
|
name: config.kind,
|
|
@@ -9122,7 +9122,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9122
9122
|
Dropdown: config.Dropdown
|
|
9123
9123
|
}
|
|
9124
9124
|
) }),
|
|
9125
|
-
/* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.Route, { path:
|
|
9125
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.Route, { path: `${urlPrefix}/${config.name}/show`, children: /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
9126
9126
|
ResourceShow,
|
|
9127
9127
|
{
|
|
9128
9128
|
formatter,
|
|
@@ -9130,8 +9130,8 @@ var __publicField = (obj, key, value) => {
|
|
|
9130
9130
|
Dropdown: config.Dropdown
|
|
9131
9131
|
}
|
|
9132
9132
|
) }),
|
|
9133
|
-
/* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.Route, { path:
|
|
9134
|
-
/* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.Route, { path:
|
|
9133
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.Route, { path: `${urlPrefix}/${config.name}/create`, children: /* @__PURE__ */ jsxRuntime.exports.jsx(ResourceForm, { config }) }),
|
|
9134
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.Route, { path: `${urlPrefix}/${config.name}/edit`, children: /* @__PURE__ */ jsxRuntime.exports.jsx(ResourceForm, { config }) })
|
|
9135
9135
|
] });
|
|
9136
9136
|
}) });
|
|
9137
9137
|
};
|
|
@@ -9799,10 +9799,10 @@ var __publicField = (obj, key, value) => {
|
|
|
9799
9799
|
parent: c.parent,
|
|
9800
9800
|
label: `${c.kind}s`
|
|
9801
9801
|
},
|
|
9802
|
-
list:
|
|
9803
|
-
show:
|
|
9804
|
-
create:
|
|
9805
|
-
edit:
|
|
9802
|
+
list: `${urlPrefix}/${c.name}`,
|
|
9803
|
+
show: `${urlPrefix}/${c.name}/show`,
|
|
9804
|
+
create: `${urlPrefix}/${c.name}/create`,
|
|
9805
|
+
edit: `${urlPrefix}/${c.name}/edit`
|
|
9806
9806
|
};
|
|
9807
9807
|
}),
|
|
9808
9808
|
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Layout, { children: /* @__PURE__ */ jsxRuntime.exports.jsxs(reactRouterDom.Switch, { children: [
|