@dovetail-v2/refine 0.0.11 → 0.0.12
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/{MonacoYamlDiffEditor.7f3aa6a3.js → MonacoYamlDiffEditor.6b29d662.js} +1 -1
- package/dist/{index.e18b90a8.js → index.01461ca8.js} +4 -3
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +3 -2
- package/lib/src/components/ResourceCRUD/create/index.d.ts +7 -7
- package/lib/src/components/ResourceCRUD/show/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -9667,7 +9667,7 @@ const Separator = () => {
|
|
|
9667
9667
|
});
|
|
9668
9668
|
};
|
|
9669
9669
|
const MonacoYamlEditor = React.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
9670
|
-
const MonacoYamlDiffEditor = React.lazy(() => import("./MonacoYamlDiffEditor.
|
|
9670
|
+
const MonacoYamlDiffEditor = React.lazy(() => import("./MonacoYamlDiffEditor.6b29d662.js"));
|
|
9671
9671
|
const YamlEditorComponent = forwardRef(
|
|
9672
9672
|
function YamlEditorComponent2(props, ref) {
|
|
9673
9673
|
const {
|
|
@@ -10020,7 +10020,8 @@ function YamlForm(props) {
|
|
|
10020
10020
|
})
|
|
10021
10021
|
});
|
|
10022
10022
|
}
|
|
10023
|
-
|
|
10023
|
+
function ResourceForm(props) {
|
|
10024
|
+
const { config } = props;
|
|
10024
10025
|
return /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
10025
10026
|
YamlForm,
|
|
10026
10027
|
{
|
|
@@ -10032,7 +10033,7 @@ const ResourceForm = ({ config }) => {
|
|
|
10032
10033
|
}
|
|
10033
10034
|
}
|
|
10034
10035
|
);
|
|
10035
|
-
}
|
|
10036
|
+
}
|
|
10036
10037
|
const ResourceCRUD = (props) => {
|
|
10037
10038
|
const { configs, urlPrefix } = props;
|
|
10038
10039
|
const { i18n: i18n2 } = useTranslation();
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aa, A, ae, B, ag, f, C, e, X, s, w, G, ar, L, ah, af, $, Q, a3, as, a6, D, a8, U, I, ai, am, _, O, K, T, a4, a7, M, a9, N, k, b, o, ac, c, ak, q, P, t, ao, an, Z, at, V, R, E, z, x, ap, y, H, d, aj, a0, S, a2, a1, a5, al, ad, v, W, aq, F, J, Y, l, p, n, m, r, a, h, g, i, ab, u } from "./index.
|
|
1
|
+
import { aa, A, ae, B, ag, f, C, e, X, s, w, G, ar, L, ah, af, $, Q, a3, as, a6, D, a8, U, I, ai, am, _, O, K, T, a4, a7, M, a9, N, k, b, o, ac, c, ak, q, P, t, ao, an, Z, at, V, R, E, z, x, ap, y, H, d, aj, a0, S, a2, a1, a5, al, ad, v, W, aq, F, J, Y, l, p, n, m, r, a, h, g, i, ab, u } from "./index.01461ca8.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "js-yaml";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -10034,7 +10034,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10034
10034
|
})
|
|
10035
10035
|
});
|
|
10036
10036
|
}
|
|
10037
|
-
|
|
10037
|
+
function ResourceForm(props) {
|
|
10038
|
+
const { config } = props;
|
|
10038
10039
|
return /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
10039
10040
|
YamlForm,
|
|
10040
10041
|
{
|
|
@@ -10046,7 +10047,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10046
10047
|
}
|
|
10047
10048
|
}
|
|
10048
10049
|
);
|
|
10049
|
-
}
|
|
10050
|
+
}
|
|
10050
10051
|
const ResourceCRUD = (props) => {
|
|
10051
10052
|
const { configs, urlPrefix } = props;
|
|
10052
10053
|
const { i18n: i18n2 } = useTranslation();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
type Props = {
|
|
5
|
-
config: ResourceConfig
|
|
6
|
-
}
|
|
7
|
-
export declare
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Resource, ResourceConfig } from '../../../types';
|
|
3
|
+
import { ResourceModel } from '../../../model';
|
|
4
|
+
type Props<Raw extends Resource, Model extends ResourceModel> = {
|
|
5
|
+
config: ResourceConfig<Raw, Model>;
|
|
6
|
+
};
|
|
7
|
+
export declare function ResourceForm<Raw extends Resource, Model extends ResourceModel>(props: Props<Raw, Model>): JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -3,12 +3,12 @@ import React from 'react';
|
|
|
3
3
|
import { ResourceModel } from '../../../model';
|
|
4
4
|
import { Resource } from '../../../types';
|
|
5
5
|
import { ShowField } from '../../ShowContent';
|
|
6
|
-
type Props<Model extends ResourceModel> = IResourceComponentsProps & {
|
|
7
|
-
formatter: (v:
|
|
6
|
+
type Props<Raw extends Resource, Model extends ResourceModel> = IResourceComponentsProps & {
|
|
7
|
+
formatter: (v: Raw) => Model;
|
|
8
8
|
filedGroups: ShowField<Model>[][];
|
|
9
9
|
Dropdown?: React.FC<{
|
|
10
10
|
data: Model;
|
|
11
11
|
}>;
|
|
12
12
|
};
|
|
13
|
-
export declare function ResourceShow<Raw extends Resource, Model extends ResourceModel>(props: Props<Model>): JSX.Element;
|
|
13
|
+
export declare function ResourceShow<Raw extends Resource, Model extends ResourceModel>(props: Props<Raw, Model>): JSX.Element;
|
|
14
14
|
export {};
|