@uxf/cms 11.124.0 → 11.126.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/README.md CHANGED
@@ -121,35 +121,35 @@ export default restrictedPage(DashboardPage, { allowedRole: ["ROLE_ROOT"] });
121
121
 
122
122
  Import paths resolve by filesystem to the compiled output (there is no `exports` map). This is an overview of the main areas, not an exhaustive list of every submodule.
123
123
 
124
- | Import path | Provides |
125
- | --- | --- |
126
- | `@uxf/cms/context/cms-provider` | `CmsProvider` — the `swr` provider. |
127
- | `@uxf/cms/ui` | Re-exports `UiContextProvider`, `useComponentContext` from `@uxf/ui/context`. |
128
- | `@uxf/cms/api` | Typed request functions against `/api/cms/*` (`login`, `getLoggedUser`, `contentGet` / `contentCreate` / `contentUpdate`, `getFormSchema` / `getFormValues` / `saveFormValues`, `dataGridSchemaGet`, `autocomplete`, `userConfigGet` / `userConfigSave`, …) and their request/response types. |
129
- | `@uxf/cms/api/swr` | SWR hooks (`useCmsMeQuery`, `useCmsUserConfigQuery`, `useCmsUserConfigUpdateMutation`) and the `ApiError` class. |
130
- | `@uxf/cms/security/restricted-page` | `restrictedPage` — role-gated page wrapper. |
131
- | `@uxf/cms/security/use-logged-user` | `useLoggedUser` — current-user SWR hook. |
132
- | `@uxf/cms/pages/login-page` | `LoginPage` factory. |
133
- | `@uxf/cms/pages/forgotten-password-page` | `ForgottenPasswordPage` factory. |
134
- | `@uxf/cms/pages/renew-password-page` | `RenewPasswordPage` factory. |
135
- | `@uxf/cms/pages/invite-user-page` | `InviteUserPage` factory. |
136
- | `@uxf/cms/pages/content-builder` | `ContentBuilderPage`, `ContentField` and content mapping helpers. |
137
- | `@uxf/cms/pages/grid-page` | `GridPage` factory (deprecated — prefer a project-specific `DataGrid`). |
138
- | `@uxf/cms/forms/login-form` | `LoginForm`. |
139
- | `@uxf/cms/forms/forgotten-password-form` | `ForgottenPasswordForm`. |
140
- | `@uxf/cms/forms/renew-password-form` | `RenewPasswordForm`. |
141
- | `@uxf/cms/forms/invite-user-form` | `InviteUserForm`. |
142
- | `@uxf/cms/forms/change-password-form` | `ChangePasswordForm`. |
143
- | `@uxf/cms/forms/components/wysiwyg-input` | `WysiwygInput` — `@uxf/form`-bound WYSIWYG field. |
144
- | `@uxf/cms/content-builder` | `ContentBuilder`, `ContentBuilderRoot`, `mapContentResponseToFormData`, `mapFormDataToContentRequest`. |
145
- | `@uxf/cms/lib/layout` | `Layout`, `Breadcrumbs` — the admin shell. |
146
- | `@uxf/cms/lib/login-layout` | `LoginLayout`. |
147
- | `@uxf/cms/lib/menu` | `Menu` and the menu-item factory (`createSection`, `createLink`, `createTableLink`, `createExternalLink`, `createUserMenu`, `createSuperSection`, `createCustomContent`). |
148
- | `@uxf/cms/lib/api` | `createAxiosInstance` — the axios client factory used by `@uxf/cms/api`. |
149
- | `@uxf/cms/config` | `container` — a small DI registry the app populates (route resolver, active-route hook, logged-user hooks, notification service) for `@uxf/cms` internals to consume. |
150
- | `@uxf/cms/ui/avatar` · `@uxf/cms/ui/widget` · `@uxf/cms/ui/copy-to-clipboard` · `@uxf/cms/ui/copy-to-clipboard-button` | `Avatar`, `Widget`, `CopyToClipboard`, `CopyToClipboardButton`. |
151
- | `@uxf/cms/utils/tailwind.config` | The Tailwind preset. |
152
- | `@uxf/cms/errors/*` | `BadRequestError`, `ForbiddenError`, `NetworkError`, `UnauthorizedError`, `ValidationError` (one class per file). |
124
+ | Import path | Provides |
125
+ | ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
126
+ | `@uxf/cms/context/cms-provider` | `CmsProvider` — the `swr` provider. |
127
+ | `@uxf/cms/ui` | Re-exports `UiContextProvider`, `useComponentContext` from `@uxf/ui/context`. |
128
+ | `@uxf/cms/api` | Typed request functions against `/api/cms/*` (`login`, `getLoggedUser`, `contentGet` / `contentCreate` / `contentUpdate`, `getFormSchema` / `getFormValues` / `saveFormValues`, `dataGridSchemaGet`, `autocomplete`, `userConfigGet` / `userConfigSave`, …) and their request/response types. |
129
+ | `@uxf/cms/api/swr` | SWR hooks (`useCmsMeQuery`, `useCmsUserConfigQuery`, `useCmsUserConfigUpdateMutation`) and the `ApiError` class. |
130
+ | `@uxf/cms/security/restricted-page` | `restrictedPage` — role-gated page wrapper. |
131
+ | `@uxf/cms/security/use-logged-user` | `useLoggedUser` — current-user SWR hook. |
132
+ | `@uxf/cms/pages/login-page` | `LoginPage` factory. |
133
+ | `@uxf/cms/pages/forgotten-password-page` | `ForgottenPasswordPage` factory. |
134
+ | `@uxf/cms/pages/renew-password-page` | `RenewPasswordPage` factory. |
135
+ | `@uxf/cms/pages/invite-user-page` | `InviteUserPage` factory. |
136
+ | `@uxf/cms/pages/content-builder` | `ContentBuilderPage`, `ContentField` and content mapping helpers. |
137
+ | `@uxf/cms/pages/grid-page` | `GridPage` factory (deprecated — prefer a project-specific `DataGrid`). |
138
+ | `@uxf/cms/forms/login-form` | `LoginForm`. |
139
+ | `@uxf/cms/forms/forgotten-password-form` | `ForgottenPasswordForm`. |
140
+ | `@uxf/cms/forms/renew-password-form` | `RenewPasswordForm`. |
141
+ | `@uxf/cms/forms/invite-user-form` | `InviteUserForm`. |
142
+ | `@uxf/cms/forms/change-password-form` | `ChangePasswordForm`. |
143
+ | `@uxf/cms/forms/components/wysiwyg-input` | `WysiwygInput` — `@uxf/form`-bound WYSIWYG field. |
144
+ | `@uxf/cms/content-builder` | `ContentBuilder`, `ContentBuilderRoot`, `mapContentResponseToFormData`, `mapFormDataToContentRequest`. |
145
+ | `@uxf/cms/lib/layout` | `Layout`, `Breadcrumbs` — the admin shell. |
146
+ | `@uxf/cms/lib/login-layout` | `LoginLayout`. |
147
+ | `@uxf/cms/lib/menu` | `Menu` and the menu-item factory (`createSection`, `createLink`, `createTableLink`, `createExternalLink`, `createUserMenu`, `createSuperSection`, `createCustomContent`). |
148
+ | `@uxf/cms/lib/api` | `createAxiosInstance` — the axios client factory used by `@uxf/cms/api`. |
149
+ | `@uxf/cms/config` | `container` — a small DI registry the app populates (route resolver, active-route hook, logged-user hooks, notification service) for `@uxf/cms` internals to consume. |
150
+ | `@uxf/cms/ui/avatar` · `@uxf/cms/ui/widget` · `@uxf/cms/ui/copy-to-clipboard` · `@uxf/cms/ui/copy-to-clipboard-button` | `Avatar`, `Widget`, `CopyToClipboard`, `CopyToClipboardButton`. |
151
+ | `@uxf/cms/utils/tailwind.config` | The Tailwind preset. |
152
+ | `@uxf/cms/errors/*` | `BadRequestError`, `ForbiddenError`, `NetworkError`, `UnauthorizedError`, `ValidationError` (one class per file). |
153
153
 
154
154
  ## Gotchas
155
155
 
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Default = Default;
7
+ const react_1 = __importDefault(require("react"));
7
8
  const content_builder_1 = require("@uxf/cms/content-builder");
8
9
  const use_content_builder_form_api_1 = require("@uxf/cms/content-builder/use-content-builder-form-api");
9
10
  const people_1 = require("@uxf/cms/pages/content-builder/content/people");
10
11
  const wysiwyg_1 = require("@uxf/cms/pages/content-builder/content/wysiwyg");
11
- const react_1 = __importDefault(require("react"));
12
12
  const Contents = [wysiwyg_1.Wysiwyg, people_1.People];
13
13
  function Default() {
14
14
  const formApi = (0, use_content_builder_form_api_1.useContentBuilderFormApi)({
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ContentBuilderBasicForm = ContentBuilderBasicForm;
7
- const translations_1 = require("@uxf/core-react/translations");
8
7
  const is_empty_1 = require("@uxf/core/utils/is-empty");
9
8
  const is_nil_1 = require("@uxf/core/utils/is-nil");
10
9
  const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
11
10
  const slugify_1 = require("@uxf/core/utils/slugify");
11
+ const translations_1 = require("@uxf/core-react/translations");
12
12
  const checkbox_input_1 = require("@uxf/form/checkbox-input");
13
13
  const combobox_1 = require("@uxf/form/combobox");
14
14
  const datetime_picker_input_1 = require("@uxf/form/datetime-picker-input");
@@ -34,12 +34,12 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.WysiwygInput = WysiwygInput;
37
- const use_input_focus_1 = require("@uxf/core-react/hooks/use-input-focus");
38
- const translations_1 = require("@uxf/core-react/translations");
39
37
  const classes_1 = require("@uxf/core/constants/classes");
40
38
  const cx_1 = require("@uxf/core/utils/cx");
41
39
  const file_1 = require("@uxf/core/utils/file");
42
40
  const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
41
+ const use_input_focus_1 = require("@uxf/core-react/hooks/use-input-focus");
42
+ const translations_1 = require("@uxf/core-react/translations");
43
43
  const form_component_1 = require("@uxf/ui/form-component");
44
44
  const wysiwyg_1 = require("@uxf/wysiwyg");
45
45
  const create_all_plugins_with_ui_1 = require("@uxf/wysiwyg/create-all-plugins-with-ui");
@@ -34,10 +34,10 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.UserMenu = void 0;
37
- const translations_1 = require("@uxf/core-react/translations");
38
37
  const classes_1 = require("@uxf/core/constants/classes");
39
38
  const empty_array_1 = require("@uxf/core/constants/empty-array");
40
39
  const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
40
+ const translations_1 = require("@uxf/core-react/translations");
41
41
  const icon_1 = require("@uxf/ui/icon");
42
42
  const react_1 = __importStar(require("react"));
43
43
  const avatar_1 = require("../../../ui/avatar");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/cms",
3
- "version": "11.124.0",
3
+ "version": "11.126.0",
4
4
  "description": "UXF Cms",
5
5
  "author": "UXFans <dev@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/cms#readme",
@@ -32,14 +32,14 @@
32
32
  "@dnd-kit/sortable": "^10.0.0",
33
33
  "@dnd-kit/utilities": "^3.2.2",
34
34
  "@floating-ui/react": "^0.27.20",
35
- "@uxf/core": "11.124.0",
36
- "@uxf/core-react": "11.124.0",
37
- "@uxf/data-grid": "11.124.0",
38
- "@uxf/form": "11.124.0",
39
- "@uxf/router": "11.124.0",
40
- "@uxf/styles": "11.124.0",
41
- "@uxf/ui": "11.124.0",
42
- "@uxf/wysiwyg": "11.124.0",
35
+ "@uxf/core": "11.126.0",
36
+ "@uxf/core-react": "11.126.0",
37
+ "@uxf/data-grid": "11.126.0",
38
+ "@uxf/form": "11.126.0",
39
+ "@uxf/router": "11.126.0",
40
+ "@uxf/styles": "11.126.0",
41
+ "@uxf/ui": "11.126.0",
42
+ "@uxf/wysiwyg": "11.126.0",
43
43
  "axios": "^1.19.0",
44
44
  "axios-hooks": "^5.1.1",
45
45
  "next": ">=13.2.0",
@@ -56,20 +56,21 @@
56
56
  "@types/node": "24",
57
57
  "@types/react": "18.3.31",
58
58
  "@types/react-dom": "18.3.7",
59
- "@uxf/core": "11.124.0",
60
- "@uxf/core-react": "11.124.0",
61
- "@uxf/data-grid": "11.124.0",
62
- "@uxf/form": "11.124.0",
63
- "@uxf/router": "11.124.0",
64
- "@uxf/styles": "11.124.0",
65
- "@uxf/ui": "11.124.0",
66
- "@uxf/wysiwyg": "11.124.0",
59
+ "@uxf/core": "11.126.0",
60
+ "@uxf/core-react": "11.126.0",
61
+ "@uxf/data-grid": "11.126.0",
62
+ "@uxf/form": "11.126.0",
63
+ "@uxf/router": "11.126.0",
64
+ "@uxf/styles": "11.126.0",
65
+ "@uxf/ui": "11.126.0",
66
+ "@uxf/wysiwyg": "11.126.0",
67
67
  "axios": "^1.19.0",
68
68
  "axios-hooks": "^5.1.1",
69
69
  "next": "16.3.0",
70
70
  "react": "18.3.1",
71
71
  "react-dom": "18.3.1",
72
72
  "react-hook-form": "^7.85.0",
73
- "swr": "^2.5.0"
73
+ "swr": "^2.5.0",
74
+ "tsx": "4.23.12"
74
75
  }
75
76
  }
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FormRootFields = FormRootFields;
7
- const hide_1 = require("@uxf/core-react/components/hide");
8
7
  const upload_file_1 = require("@uxf/core/api/upload-file");
9
8
  const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
9
+ const hide_1 = require("@uxf/core-react/components/hide");
10
10
  const checkbox_input_1 = require("@uxf/form/checkbox-input");
11
11
  const combobox_1 = require("@uxf/form/combobox/combobox");
12
12
  const datetime_picker_input_1 = require("@uxf/form/datetime-picker-input");
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FeatureSection = void 0;
7
- const translations_1 = require("@uxf/core-react/translations");
8
7
  const upload_file_1 = require("@uxf/core/api/upload-file");
8
+ const translations_1 = require("@uxf/core-react/translations");
9
9
  const file_input_1 = require("@uxf/form/file-input");
10
10
  const text_input_1 = require("@uxf/form/text-input");
11
11
  const button_1 = require("@uxf/ui/button");
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.People = void 0;
7
- const translations_1 = require("@uxf/core-react/translations");
8
7
  const upload_file_1 = require("@uxf/core/api/upload-file");
8
+ const translations_1 = require("@uxf/core-react/translations");
9
9
  const file_input_1 = require("@uxf/form/file-input");
10
10
  const text_input_1 = require("@uxf/form/text-input");
11
11
  const textarea_1 = require("@uxf/form/textarea");
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.DetailsVisibilityProvider = exports.useDetailsVisibilityControls = exports.useDetailsVisibilityForSection = void 0;
37
- const global_context_1 = require("@uxf/core-react/global-context");
38
37
  const noop_1 = require("@uxf/core/utils/noop");
38
+ const global_context_1 = require("@uxf/core-react/global-context");
39
39
  const react_1 = __importStar(require("react"));
40
40
  const detailsVisibilityContext = (0, global_context_1.createGlobalContext)("cms/content-builder/details-visibility", [[], noop_1.noop, true, noop_1.noop]);
41
41
  const useDetailsVisibility = () => (0, react_1.useContext)(detailsVisibilityContext);
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ErrorContent = ErrorContent;
7
7
  exports.restrictedPage = restrictedPage;
8
- const translations_1 = require("@uxf/core-react/translations");
9
8
  const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
9
+ const translations_1 = require("@uxf/core-react/translations");
10
10
  const button_1 = require("@uxf/ui/button");
11
11
  const loader_1 = require("@uxf/ui/loader");
12
12
  const react_1 = __importDefault(require("react"));
@@ -114,11 +114,11 @@
114
114
  "unknown-error": "Vyskytla se chyba",
115
115
  "forbidden": "Pro tuto stránku nemáte oprávnění."
116
116
  },
117
- "uxf-cms-copy-to-clipboard-button": {
117
+ "uxf-cms-copy-to-clipboard": {
118
118
  "text-copied": "Text zkopírován",
119
119
  "copy-failed": "Nepodařilo se zkopírovat text"
120
120
  },
121
- "uxf-cms-copy-to-clipboard": {
121
+ "uxf-cms-copy-to-clipboard-button": {
122
122
  "text-copied": "Text zkopírován",
123
123
  "copy-failed": "Nepodařilo se zkopírovat text"
124
124
  },
@@ -72,11 +72,11 @@
72
72
  "unknown-error": "Ein Fehler ist aufgetreten",
73
73
  "forbidden": "Sie haben keine Berechtigung für diese Seite."
74
74
  },
75
- "uxf-cms-copy-to-clipboard-button": {
75
+ "uxf-cms-copy-to-clipboard": {
76
76
  "text-copied": "Text kopiert",
77
77
  "copy-failed": "Fehler beim Kopieren des Textes"
78
78
  },
79
- "uxf-cms-copy-to-clipboard": {
79
+ "uxf-cms-copy-to-clipboard-button": {
80
80
  "text-copied": "Text kopiert",
81
81
  "copy-failed": "Fehler beim Kopieren des Textes"
82
82
  },
@@ -72,11 +72,11 @@
72
72
  "unknown-error": "An error occurred",
73
73
  "forbidden": "You don't have permission for this page."
74
74
  },
75
- "uxf-cms-copy-to-clipboard-button": {
75
+ "uxf-cms-copy-to-clipboard": {
76
76
  "text-copied": "Text copied",
77
77
  "copy-failed": "Failed to copy text"
78
78
  },
79
- "uxf-cms-copy-to-clipboard": {
79
+ "uxf-cms-copy-to-clipboard-button": {
80
80
  "text-copied": "Text copied",
81
81
  "copy-failed": "Failed to copy text"
82
82
  },
@@ -72,11 +72,11 @@
72
72
  "unknown-error": "Vyskytla sa chyba",
73
73
  "forbidden": "Pre túto stránku nemáte oprávnenie."
74
74
  },
75
- "uxf-cms-copy-to-clipboard-button": {
75
+ "uxf-cms-copy-to-clipboard": {
76
76
  "text-copied": "Text skopírovaný",
77
77
  "copy-failed": "Nepodarilo sa skopírovať text"
78
78
  },
79
- "uxf-cms-copy-to-clipboard": {
79
+ "uxf-cms-copy-to-clipboard-button": {
80
80
  "text-copied": "Text skopírovaný",
81
81
  "copy-failed": "Nepodarilo sa skopírovať text"
82
82
  },
@@ -13,8 +13,8 @@ const translations_7 = __importDefault(require("@uxf/cms/forms/renew-password-fo
13
13
  const translations_8 = __importDefault(require("@uxf/cms/lib/menu/ui/translations"));
14
14
  const translations_9 = __importDefault(require("@uxf/cms/pages/translations"));
15
15
  const translations_10 = __importDefault(require("@uxf/cms/security/translations"));
16
- const translations_11 = __importDefault(require("@uxf/cms/ui/copy-to-clipboard-button/translations"));
17
- const translations_12 = __importDefault(require("@uxf/cms/ui/copy-to-clipboard/translations"));
16
+ const translations_11 = __importDefault(require("@uxf/cms/ui/copy-to-clipboard/translations"));
17
+ const translations_12 = __importDefault(require("@uxf/cms/ui/copy-to-clipboard-button/translations"));
18
18
  const translations_13 = __importDefault(require("@uxf/cms/utils/translations"));
19
19
  exports.default = {
20
20
  ...translations_1.default,
@@ -26,8 +26,8 @@ exports.default = {
26
26
  ...translations_7.default,
27
27
  ...translations_8.default,
28
28
  ...translations_13.default,
29
- ...translations_11.default,
30
29
  ...translations_12.default,
30
+ ...translations_11.default,
31
31
  ...translations_9.default,
32
32
  ...translations_10.default,
33
33
  };
@@ -34,9 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.CopyToClipboard = void 0;
37
- const translations_1 = require("@uxf/core-react/translations");
38
37
  const copy_to_clipboard_1 = require("@uxf/core/utils/copy-to-clipboard");
39
38
  const noop_1 = require("@uxf/core/utils/noop");
39
+ const translations_1 = require("@uxf/core-react/translations");
40
40
  const button_1 = require("@uxf/ui/button");
41
41
  const flash_messages_service_1 = require("@uxf/ui/flash-messages/flash-messages-service");
42
42
  const icon_1 = require("@uxf/ui/icon");
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.CopyToClipboardButton = void 0;
37
- const translations_1 = require("@uxf/core-react/translations");
38
37
  const copy_to_clipboard_1 = require("@uxf/core/utils/copy-to-clipboard");
38
+ const translations_1 = require("@uxf/core-react/translations");
39
39
  const button_1 = require("@uxf/ui/button");
40
40
  const flash_messages_service_1 = require("@uxf/ui/flash-messages/flash-messages-service");
41
41
  const icon_1 = require("@uxf/ui/icon");