@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.
Files changed (65) hide show
  1. package/api/index.js +22 -20
  2. package/config/container.js +3 -3
  3. package/context/cms-provider.d.ts +2 -2
  4. package/context/cms-provider.js +1 -2
  5. package/deprecated/redux/entities/selectors.js +3 -2
  6. package/deprecated/redux/redux-helper.js +1 -2
  7. package/forms/change-password-form/change-password-form.js +1 -1
  8. package/forms/components/wysiwyg-input/wysiwyg-input.js +8 -8
  9. package/forms/forgotten-password-form/forgotten-password-form.js +3 -3
  10. package/forms/invite-user-form/invite-user-form.js +7 -7
  11. package/forms/login-form/login-form.js +4 -4
  12. package/lib/api/create-axios-instance.d.ts +1 -1
  13. package/lib/api/create-axios-instance.js +1 -2
  14. package/lib/api/create-use-axios-request.d.ts +1 -1
  15. package/lib/layout/breadcrumbs.js +4 -2
  16. package/lib/layout/layout.js +3 -3
  17. package/lib/layout/sidebar.js +5 -5
  18. package/lib/layout/types.d.ts +9 -9
  19. package/lib/menu/factory.js +7 -8
  20. package/lib/menu/mobile-bar.js +6 -6
  21. package/lib/menu/model.js +4 -2
  22. package/lib/menu/ui/list-item/list-item.d.ts +1 -1
  23. package/lib/menu/ui/list-item/list-item.js +10 -10
  24. package/lib/menu/ui/menu-item.js +1 -1
  25. package/lib/menu/ui/sub-menu/sub-menu-item.js +1 -1
  26. package/lib/menu/ui/sub-menu/sub-menu-mobile.js +1 -1
  27. package/lib/menu/ui/sub-menu/sub-menu.js +1 -1
  28. package/lib/menu/ui/sub-menu/use-sub-menu.d.ts +7 -8
  29. package/lib/menu/ui/sub-menu/use-sub-menu.js +2 -3
  30. package/lib/menu/ui/user-menu.js +6 -4
  31. package/package.json +19 -19
  32. package/pages/content-builder/components/form-content.js +7 -7
  33. package/pages/content-builder/components/form-root-fields.js +20 -19
  34. package/pages/content-builder/components/form.js +2 -2
  35. package/pages/content-builder/components/header.js +1 -1
  36. package/pages/content-builder/content/feature-section.js +9 -9
  37. package/pages/content-builder/content/gallery.js +1 -1
  38. package/pages/content-builder/content/hero-section.js +4 -4
  39. package/pages/content-builder/content/people.js +9 -9
  40. package/pages/content-builder/content/wysiwyg.js +2 -2
  41. package/pages/content-builder/content-builder-page.js +2 -2
  42. package/pages/content-builder/content-field.js +12 -12
  43. package/pages/content-builder/content-header.js +4 -4
  44. package/pages/content-builder/context/details-visibility-context.js +2 -1
  45. package/pages/content-builder/mapper.js +5 -5
  46. package/pages/content-builder/types.d.ts +33 -33
  47. package/pages/forgotten-password-page/forgotten-password-page.js +1 -1
  48. package/pages/form-page/base-field.js +15 -15
  49. package/pages/form-page/field/content.js +1 -1
  50. package/pages/form-page/field-array.js +3 -3
  51. package/pages/form-page/form-page.d.ts +1 -1
  52. package/pages/form-page/form-page.js +3 -2
  53. package/pages/form-page/form.d.ts +1 -1
  54. package/pages/form-page/form.js +7 -8
  55. package/pages/form-page/mapper.js +2 -1
  56. package/pages/grid-page/get-initial-props-helper.js +2 -3
  57. package/pages/grid-page/grid-page.js +4 -3
  58. package/pages/grid-page/types.d.ts +12 -13
  59. package/pages/login-page/login-page.js +2 -1
  60. package/pages/renew-password-page/renew-password-page.js +1 -1
  61. package/security/use-logged-user.js +1 -2
  62. package/ui/avatar/get-avatar-user-letters.js +5 -4
  63. package/ui/copy-to-clipboard/copy-to-clipboard.js +3 -2
  64. package/utils/on-remove-confirm.js +1 -2
  65. 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, onChange: () => void null, rightAddon: react_1.default.createElement(button_1.Button, { className: "size-full rounded-l-none border-none", isDisabled: props.value === "", onClick: onCopy, variant: "secondary" },
42
- react_1.default.createElement(icon_1.Icon, { className: "w-4", name: "copy" })), value: props.value, name: props.name }));
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 = void 0;
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 = void 0;
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;