@uxf/cms 11.21.4 → 11.22.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/index.d.ts +1 -8
- package/config/container.d.ts +2 -1
- package/forms/utils/on-upload-dropzone-file.d.ts +1 -1
- package/forms/utils/on-upload-file.d.ts +1 -1
- package/package.json +8 -8
- package/pages/content-builder/components/form-root-fields.js +27 -6
- package/pages/content-builder/content/feature-section.d.ts +1 -1
- package/pages/content-builder/content/gallery.d.ts +1 -1
- package/pages/content-builder/content/people.d.ts +1 -1
- package/pages/content-builder/types.d.ts +2 -1
package/api/index.d.ts
CHANGED
@@ -1,13 +1,6 @@
|
|
1
|
+
import { FileResponse } from "@uxf/core/types";
|
1
2
|
import { Schema } from "@uxf/data-grid";
|
2
3
|
export type VisibilityLevel = "PUBLIC" | "PUBLIC_WITHOUT_SITEMAP" | "PRIVATE";
|
3
|
-
export interface FileResponse {
|
4
|
-
id: number;
|
5
|
-
name: string;
|
6
|
-
uuid: string;
|
7
|
-
extension: string;
|
8
|
-
namespace: string | null;
|
9
|
-
type?: string;
|
10
|
-
}
|
11
4
|
export interface ContentSeoResponse {
|
12
5
|
name: string | null;
|
13
6
|
title: string;
|
package/config/container.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
import { FileResponse } from "@uxf/core/types";
|
1
2
|
import { FunctionParametersGenerator } from "@uxf/router";
|
2
3
|
import { NextPageContext } from "next";
|
3
4
|
import { LinkProps } from "next/link";
|
4
5
|
import { ReactNode } from "react";
|
5
|
-
import UserResponse
|
6
|
+
import UserResponse from "../api";
|
6
7
|
export interface NotificationServiceInterface {
|
7
8
|
info: (message: ReactNode) => void;
|
8
9
|
success: (message: ReactNode) => void;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { FileResponse } from "@uxf/
|
1
|
+
import { FileResponse } from "@uxf/core/types";
|
2
2
|
export declare const onUploadDropzoneFile: (file: File) => Promise<FileResponse>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { FileResponse } from "@uxf/
|
1
|
+
import { FileResponse } from "@uxf/core/types";
|
2
2
|
export declare const onUploadFile: (file: File, namespace?: string) => Promise<FileResponse>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uxf/cms",
|
3
|
-
"version": "11.
|
3
|
+
"version": "11.22.0",
|
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.9",
|
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.
|
37
|
-
"@uxf/router": "11.
|
38
|
-
"@uxf/ui": "11.
|
39
|
-
"@uxf/wysiwyg": "11.
|
33
|
+
"@uxf/core": "11.22.0",
|
34
|
+
"@uxf/core-react": "11.22.0",
|
35
|
+
"@uxf/data-grid": "11.22.0",
|
36
|
+
"@uxf/form": "11.22.0",
|
37
|
+
"@uxf/router": "11.22.0",
|
38
|
+
"@uxf/ui": "11.22.0",
|
39
|
+
"@uxf/wysiwyg": "11.22.0",
|
40
40
|
"axios": "1.6.7",
|
41
41
|
"axios-hooks": "5.0.2",
|
42
42
|
"es6-error": "4.1.1",
|
@@ -1,6 +1,26 @@
|
|
1
1
|
"use strict";
|
2
|
-
var
|
3
|
-
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
4
24
|
};
|
5
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
26
|
exports.FormRootFields = void 0;
|
@@ -13,7 +33,7 @@ const select_1 = require("@uxf/form/select");
|
|
13
33
|
const text_input_1 = require("@uxf/form/text-input");
|
14
34
|
const textarea_1 = require("@uxf/form/textarea");
|
15
35
|
const tabs_1 = require("@uxf/ui/tabs");
|
16
|
-
const react_1 =
|
36
|
+
const react_1 = __importStar(require("react"));
|
17
37
|
const api_1 = require("../../../api");
|
18
38
|
const on_upload_file_1 = require("../../../forms/utils/on-upload-file");
|
19
39
|
const options = [
|
@@ -25,9 +45,10 @@ const FormRootFields = (props) => {
|
|
25
45
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
26
46
|
// eslint-disable-next-line react/destructuring-assignment
|
27
47
|
const { children, config, id, control } = props;
|
48
|
+
const [activeTab, setActiveTab] = (0, react_1.useState)("basic");
|
28
49
|
return (react_1.default.createElement("div", { className: "pb-2 pt-4" },
|
29
|
-
react_1.default.createElement(tabs_1.Tabs,
|
30
|
-
react_1.default.createElement(tabs_1.Tabs.Panel, {
|
50
|
+
react_1.default.createElement(tabs_1.Tabs, { value: activeTab, onChange: setActiveTab },
|
51
|
+
react_1.default.createElement(tabs_1.Tabs.Panel, { name: "basic", label: "Z\u00E1kladn\u00ED" },
|
31
52
|
react_1.default.createElement("div", { className: "space-y-8 px-4 pb-4" },
|
32
53
|
config.allowedTypes && (react_1.default.createElement("div", null,
|
33
54
|
react_1.default.createElement(select_1.Select, { name: "type", label: "Typ", options: config.allowedTypes, isReadOnly: !!id, isRequired: true, control: control }))),
|
@@ -49,7 +70,7 @@ const FormRootFields = (props) => {
|
|
49
70
|
react_1.default.createElement(checkbox_input_1.CheckboxInput, { name: "active", label: "Aktivn\u00ED", control: control })),
|
50
71
|
react_1.default.createElement("div", null,
|
51
72
|
react_1.default.createElement(select_1.Select, { name: "visibilityLevel", label: "Viditelnost", options: options, isRequired: true, control: control })))),
|
52
|
-
react_1.default.createElement(tabs_1.Tabs.Panel, {
|
73
|
+
react_1.default.createElement(tabs_1.Tabs.Panel, { name: "seo", label: "SEO" },
|
53
74
|
react_1.default.createElement("div", { className: "space-y-8 px-4 pb-4" },
|
54
75
|
react_1.default.createElement("div", null,
|
55
76
|
react_1.default.createElement(text_input_1.TextInput, { name: "seo.name", label: "Slug", helperText: "Slug = unik\u00E1tn\u00ED koncovka URL adresy", control: control })),
|
@@ -1,5 +1,5 @@
|
|
1
|
+
import { FileResponse } from "@uxf/core/types";
|
1
2
|
import { WysiwygContent } from "@uxf/wysiwyg";
|
2
|
-
import { FileResponse } from "../../../api";
|
3
3
|
import { Content, ContentComponent, ContentProps } from "../types";
|
4
4
|
export type FeatureSectionFormData = {
|
5
5
|
title: string;
|
@@ -1,8 +1,9 @@
|
|
1
|
+
import { FileResponse } from "@uxf/core/types";
|
1
2
|
import { SelectProps } from "@uxf/form/select";
|
2
3
|
import { NextPageContext } from "next";
|
3
4
|
import { FC, PropsWithChildren, ReactNode } from "react";
|
4
5
|
import { Control, ControllerRenderProps } from "react-hook-form";
|
5
|
-
import { ContentResponse, ContentTagResponse
|
6
|
+
import { ContentResponse, ContentTagResponse } from "../../api";
|
6
7
|
export type VisibilityLevel = "PUBLIC" | "PUBLIC_WITHOUT_SITEMAP" | "PRIVATE";
|
7
8
|
export interface ContentProps {
|
8
9
|
title: ReactNode;
|