@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.
@@ -1,4 +1,4 @@
1
- import { j as jsxRuntime } from "./index.e18b90a8.js";
1
+ import { j as jsxRuntime } from "./index.01461ca8.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { useRef, useEffect } from "react";
4
4
  import "@refinedev/core";
@@ -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.7f3aa6a3.js"));
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
- const ResourceForm = ({ config }) => {
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.e18b90a8.js";
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";
@@ -10034,7 +10034,8 @@ var __publicField = (obj, key, value) => {
10034
10034
  })
10035
10035
  });
10036
10036
  }
10037
- const ResourceForm = ({ config }) => {
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
- import { FormProps } from 'antd/lib/form';
2
- import React from 'react';
3
- import { ResourceConfig } from '../../../types';
4
- type Props = {
5
- config: ResourceConfig;
6
- } & FormProps;
7
- export declare const ResourceForm: React.FC<Props>;
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: Resource) => Model;
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",