@uxf/cms 11.57.0 → 11.58.1
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/swr.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Schema } from "@uxf/data-grid";
|
2
2
|
import { SWRConfiguration } from "swr";
|
3
3
|
import { SWRMutationConfiguration, SWRMutationResponse } from "swr/mutation";
|
4
|
+
type SWRConfigurationWithOptionalFallback<Options> = Options extends SWRConfiguration & Required<Pick<SWRConfiguration, "fallbackData">> ? Omit<Options, "fallbackData"> & Pick<Partial<Options>, "fallbackData"> : Options;
|
4
5
|
export declare class ApiError extends Error {
|
5
6
|
readonly code: string;
|
6
7
|
readonly statusCode: number;
|
@@ -51,7 +52,7 @@ export declare const useCmsUserConfigQuery: <T extends SWRConfiguration<Mixed, A
|
|
51
52
|
};
|
52
53
|
} & {
|
53
54
|
skip?: boolean;
|
54
|
-
}, options?: T) => import("swr").SWRResponse<any, ApiError, T>;
|
55
|
+
}, options?: SWRConfigurationWithOptionalFallback<T>) => import("swr").SWRResponse<any, ApiError, T>;
|
55
56
|
export declare const useCmsUserConfigUpdateMutation: (config: {
|
56
57
|
path: {
|
57
58
|
name: XString;
|
@@ -59,11 +60,11 @@ export declare const useCmsUserConfigUpdateMutation: (config: {
|
|
59
60
|
}, options?: SWRMutationConfiguration<Mixed, ApiError, string, Mixed> | undefined) => SWRMutationResponse<Mixed, ApiError, string, Mixed>;
|
60
61
|
export declare const useCmsMeQuery: <T extends SWRConfiguration<CMSUserResponse, ApiError>>(config?: {
|
61
62
|
skip?: boolean;
|
62
|
-
}, options?: T) => import("swr").SWRResponse<CMSUserResponse, ApiError, T>;
|
63
|
+
}, options?: SWRConfigurationWithOptionalFallback<T>) => import("swr").SWRResponse<CMSUserResponse, ApiError, T>;
|
63
64
|
/** @deprecated will be removed - schemas are generated */
|
64
65
|
export declare const useCmsTablesQuery: <T extends SWRConfiguration<Record<string, Metadata>, ApiError>>(config?: {
|
65
66
|
skip?: boolean;
|
66
|
-
}, options?: T) => import("swr").SWRResponse<Record<string, Metadata>, ApiError, T>;
|
67
|
+
}, options?: SWRConfigurationWithOptionalFallback<T>) => import("swr").SWRResponse<Record<string, Metadata>, ApiError, T>;
|
67
68
|
/** @deprecated will be removed - schemas are generated */
|
68
69
|
export declare const useDatagridGetSchemaQuery: <T extends SWRConfiguration<Schema<any>, ApiError>>(config: {
|
69
70
|
path: {
|
@@ -71,5 +72,5 @@ export declare const useDatagridGetSchemaQuery: <T extends SWRConfiguration<Sche
|
|
71
72
|
};
|
72
73
|
} & {
|
73
74
|
skip?: boolean;
|
74
|
-
}, options?: T) => import("swr").SWRResponse<Schema<any>, ApiError, T>;
|
75
|
+
}, options?: SWRConfigurationWithOptionalFallback<T>) => import("swr").SWRResponse<Schema<any>, ApiError, T>;
|
75
76
|
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uxf/cms",
|
3
|
-
"version": "11.
|
3
|
+
"version": "11.58.1",
|
4
4
|
"description": "UXF Cms",
|
5
5
|
"author": "UXFans <dev@uxf.cz>",
|
6
6
|
"homepage": "https://gitlab.com/uxf-npm/cms#readme",
|
@@ -30,13 +30,13 @@
|
|
30
30
|
"@dnd-kit/utilities": "3.2.2",
|
31
31
|
"@floating-ui/react": "0.26.28",
|
32
32
|
"@redux-devtools/extension": "3.3.0",
|
33
|
-
"@uxf/core": "11.
|
34
|
-
"@uxf/core-react": "11.
|
35
|
-
"@uxf/data-grid": "11.
|
36
|
-
"@uxf/form": "11.
|
33
|
+
"@uxf/core": "11.58.0",
|
34
|
+
"@uxf/core-react": "11.58.1",
|
35
|
+
"@uxf/data-grid": "11.58.1",
|
36
|
+
"@uxf/form": "11.58.1",
|
37
37
|
"@uxf/router": "11.49.1",
|
38
|
-
"@uxf/ui": "11.
|
39
|
-
"@uxf/wysiwyg": "11.
|
38
|
+
"@uxf/ui": "11.58.1",
|
39
|
+
"@uxf/wysiwyg": "11.58.1",
|
40
40
|
"axios": "1.7.5",
|
41
41
|
"axios-hooks": "5.0.2",
|
42
42
|
"es6-error": "4.1.1",
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"react-hook-form": "7.53.0",
|
45
45
|
"react-redux": "8.1.3",
|
46
46
|
"redux": "4.2.1",
|
47
|
-
"swr": "2.
|
47
|
+
"swr": "2.3.3"
|
48
48
|
},
|
49
49
|
"peerDependencies": {
|
50
50
|
"next": ">=13.2.0",
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.ContentHeader = void 0;
|
27
|
-
const use_clickable_props_1 = require("@uxf/core-react/
|
27
|
+
const use_clickable_props_1 = require("@uxf/core-react/clickable/use-clickable-props");
|
28
28
|
const icon_1 = require("@uxf/ui/icon");
|
29
29
|
const icon_button_1 = require("@uxf/ui/icon-button");
|
30
30
|
const react_1 = __importStar(require("react"));
|
@@ -99,7 +99,7 @@ function GridPageComponent(props) {
|
|
99
99
|
(props.onRemove ? 1 : 0);
|
100
100
|
const actionCell = (_f = (_e = props.ui) === null || _e === void 0 ? void 0 : _e.actionCell) !== null && _f !== void 0 ? _f : (actionColumnButtonsCount > 0
|
101
101
|
? {
|
102
|
-
width: actionColumnButtonsCount * 40,
|
102
|
+
width: actionColumnButtonsCount * 40 + 8,
|
103
103
|
Component: (actionCellProps) => {
|
104
104
|
var _a, _b, _c, _d, _e, _f;
|
105
105
|
const buttons = (0, build_array_1.buildArray)()
|