@uxf/cms 11.31.2 → 11.33.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/index.js +22 -20
- package/config/container.js +3 -3
- package/context/cms-provider.d.ts +2 -2
- package/context/cms-provider.js +1 -2
- package/deprecated/redux/entities/selectors.js +3 -2
- package/deprecated/redux/redux-helper.js +1 -2
- package/forms/change-password-form/change-password-form.js +1 -1
- package/forms/components/wysiwyg-input/wysiwyg-input.js +8 -8
- package/forms/forgotten-password-form/forgotten-password-form.js +3 -3
- package/forms/invite-user-form/invite-user-form.js +7 -7
- package/forms/login-form/login-form.js +4 -4
- package/lib/api/create-axios-instance.d.ts +1 -1
- package/lib/api/create-axios-instance.js +1 -2
- package/lib/api/create-use-axios-request.d.ts +1 -1
- package/lib/layout/breadcrumbs.js +4 -2
- package/lib/layout/layout.js +3 -3
- package/lib/layout/sidebar.js +5 -5
- package/lib/layout/types.d.ts +9 -9
- package/lib/menu/factory.js +7 -8
- package/lib/menu/mobile-bar.js +6 -6
- package/lib/menu/model.js +4 -2
- package/lib/menu/ui/list-item/list-item.d.ts +1 -1
- package/lib/menu/ui/list-item/list-item.js +10 -10
- package/lib/menu/ui/menu-item.js +1 -1
- package/lib/menu/ui/sub-menu/sub-menu-item.js +1 -1
- package/lib/menu/ui/sub-menu/sub-menu-mobile.js +1 -1
- package/lib/menu/ui/sub-menu/sub-menu.js +1 -1
- package/lib/menu/ui/sub-menu/use-sub-menu.d.ts +7 -8
- package/lib/menu/ui/sub-menu/use-sub-menu.js +2 -3
- package/lib/menu/ui/user-menu.js +6 -4
- package/package.json +19 -19
- package/pages/content-builder/components/form-content.js +7 -7
- package/pages/content-builder/components/form-root-fields.js +20 -19
- package/pages/content-builder/components/form.js +2 -2
- package/pages/content-builder/components/header.js +1 -1
- package/pages/content-builder/content/feature-section.js +9 -9
- package/pages/content-builder/content/gallery.js +1 -1
- package/pages/content-builder/content/hero-section.js +4 -4
- package/pages/content-builder/content/people.js +9 -9
- package/pages/content-builder/content/wysiwyg.js +2 -2
- package/pages/content-builder/content-builder-page.js +2 -2
- package/pages/content-builder/content-field.js +12 -12
- package/pages/content-builder/content-header.js +4 -4
- package/pages/content-builder/context/details-visibility-context.js +2 -1
- package/pages/content-builder/mapper.js +5 -5
- package/pages/content-builder/types.d.ts +33 -33
- package/pages/forgotten-password-page/forgotten-password-page.js +1 -1
- package/pages/form-page/base-field.js +15 -15
- package/pages/form-page/field/content.js +1 -1
- package/pages/form-page/field-array.js +3 -3
- package/pages/form-page/form-page.d.ts +1 -1
- package/pages/form-page/form-page.js +3 -2
- package/pages/form-page/form.d.ts +1 -1
- package/pages/form-page/form.js +7 -8
- package/pages/form-page/mapper.js +2 -1
- package/pages/grid-page/get-initial-props-helper.js +2 -3
- package/pages/grid-page/grid-page.js +4 -3
- package/pages/grid-page/types.d.ts +12 -13
- package/pages/login-page/login-page.js +2 -1
- package/pages/renew-password-page/renew-password-page.js +1 -1
- package/security/use-logged-user.js +1 -2
- package/ui/avatar/get-avatar-user-letters.js +5 -4
- package/ui/copy-to-clipboard/copy-to-clipboard.js +3 -2
- package/utils/on-remove-confirm.js +1 -2
- package/utils/use-viewport-height.js +1 -2
@@ -25,6 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.CopyToClipboard = void 0;
|
27
27
|
const copy_to_clipboard_1 = require("@uxf/core/utils/copy-to-clipboard");
|
28
|
+
const noop_1 = require("@uxf/core/utils/noop");
|
28
29
|
const button_1 = require("@uxf/ui/button");
|
29
30
|
const flash_messages_service_1 = require("@uxf/ui/flash-messages/flash-messages-service");
|
30
31
|
const icon_1 = require("@uxf/ui/icon");
|
@@ -38,7 +39,7 @@ const CopyToClipboard = (props) => {
|
|
38
39
|
message: isCopied ? "Text zkopírován" : "Nepodařilo se zkopírovat text",
|
39
40
|
});
|
40
41
|
}, [props.value]);
|
41
|
-
return (react_1.default.createElement(text_input_1.TextInput, { isDisabled: props.disabled, label: props.label,
|
42
|
-
react_1.default.createElement(icon_1.Icon, { className: "w-4", name: "copy" })), value: props.value
|
42
|
+
return (react_1.default.createElement(text_input_1.TextInput, { isDisabled: props.disabled, label: props.label, name: props.name, onChange: noop_1.noop, rightAddon: react_1.default.createElement(button_1.Button, { className: "size-full rounded-l-none border-none", isDisabled: props.value === "", onClick: onCopy, variant: "secondary" },
|
43
|
+
react_1.default.createElement(icon_1.Icon, { className: "w-4", name: "copy" })), value: props.value }));
|
43
44
|
};
|
44
45
|
exports.CopyToClipboard = CopyToClipboard;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.onRemoveConfirm =
|
3
|
+
exports.onRemoveConfirm = onRemoveConfirm;
|
4
4
|
const message_1 = require("@uxf/ui/message");
|
5
5
|
function onRemoveConfirm() {
|
6
6
|
return new Promise((resolve) => {
|
@@ -16,4 +16,3 @@ function onRemoveConfirm() {
|
|
16
16
|
});
|
17
17
|
});
|
18
18
|
}
|
19
|
-
exports.onRemoveConfirm = onRemoveConfirm;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.useViewportHeight =
|
3
|
+
exports.useViewportHeight = useViewportHeight;
|
4
4
|
const react_1 = require("react");
|
5
5
|
function getHeight() {
|
6
6
|
var _a, _b;
|
@@ -26,4 +26,3 @@ function useViewportHeight(scrollLock) {
|
|
26
26
|
}, [scrollLock]);
|
27
27
|
return height;
|
28
28
|
}
|
29
|
-
exports.useViewportHeight = useViewportHeight;
|