@uxf/cms 11.38.2 → 11.39.0

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/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.2",
3
+ "version": "11.39.0",
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.2",
36
- "@uxf/form": "11.38.1",
34
+ "@uxf/core-react": "11.38.3",
35
+ "@uxf/data-grid": "11.39.0",
36
+ "@uxf/form": "11.39.0",
37
37
  "@uxf/router": "11.32.0",
38
- "@uxf/ui": "11.38.1",
39
- "@uxf/wysiwyg": "11.38.1",
38
+ "@uxf/ui": "11.39.0",
39
+ "@uxf/wysiwyg": "11.39.0",
40
40
  "axios": "1.7.5",
41
41
  "axios-hooks": "5.0.2",
42
42
  "es6-error": "4.1.1",