@uxf/cms 11.38.1 → 11.38.3

Sign up to get free protection for your applications and to get access to all the features.
package/api/index.d.ts CHANGED
@@ -73,7 +73,7 @@ export interface FieldSchemaResponse {
73
73
  editable: boolean;
74
74
  fields: FieldSchemaResponse[];
75
75
  options: Array<{
76
- id: string;
76
+ id: string | number;
77
77
  label: string;
78
78
  }> | null;
79
79
  }
@@ -1,2 +1,7 @@
1
1
  import { PropsWithChildren, ReactNode } from "react";
2
- export declare function CmsProvider(props: PropsWithChildren): ReactNode;
2
+ import { FetcherResponse } from "swr/_internal";
3
+ interface Props {
4
+ fetcher?: (arg: any) => FetcherResponse<any>;
5
+ }
6
+ export declare function CmsProvider(props: PropsWithChildren<Props>): ReactNode;
7
+ export {};
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CmsProvider = CmsProvider;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const swr_1 = require("swr");
9
- const fetcher = (input, init) => fetch(input, init).then((res) => res.json());
9
+ const fetcher = (input) => fetch(input).then((res) => res.json());
10
10
  function CmsProvider(props) {
11
- return react_1.default.createElement(swr_1.SWRConfig, { value: { provider: () => new Map(), fetcher } }, props.children);
11
+ var _a;
12
+ return (react_1.default.createElement(swr_1.SWRConfig, { value: { provider: () => new Map(), fetcher: (_a = props.fetcher) !== null && _a !== void 0 ? _a : fetcher } }, props.children));
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/cms",
3
- "version": "11.38.1",
3
+ "version": "11.38.3",
4
4
  "description": "UXF Cms",
5
5
  "author": "UXFans <dev@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/cms#readme",
@@ -31,12 +31,12 @@
31
31
  "@floating-ui/react": "0.26.23",
32
32
  "@redux-devtools/extension": "3.3.0",
33
33
  "@uxf/core": "11.35.0",
34
- "@uxf/core-react": "11.36.0",
35
- "@uxf/data-grid": "11.38.1",
36
- "@uxf/form": "11.38.1",
34
+ "@uxf/core-react": "11.38.3",
35
+ "@uxf/data-grid": "11.38.3",
36
+ "@uxf/form": "11.38.3",
37
37
  "@uxf/router": "11.32.0",
38
- "@uxf/ui": "11.38.1",
39
- "@uxf/wysiwyg": "11.38.1",
38
+ "@uxf/ui": "11.38.3",
39
+ "@uxf/wysiwyg": "11.38.3",
40
40
  "axios": "1.7.5",
41
41
  "axios-hooks": "5.0.2",
42
42
  "es6-error": "4.1.1",