@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 +1 -1
- package/context/cms-provider.d.ts +6 -1
- package/context/cms-provider.js +3 -2
- package/package.json +6 -6
package/api/index.d.ts
CHANGED
@@ -1,2 +1,7 @@
|
|
1
1
|
import { PropsWithChildren, ReactNode } from "react";
|
2
|
-
|
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 {};
|
package/context/cms-provider.js
CHANGED
@@ -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
|
9
|
+
const fetcher = (input) => fetch(input).then((res) => res.json());
|
10
10
|
function CmsProvider(props) {
|
11
|
-
|
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.
|
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.
|
35
|
-
"@uxf/data-grid": "11.
|
36
|
-
"@uxf/form": "11.
|
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.
|
39
|
-
"@uxf/wysiwyg": "11.
|
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",
|