@uxf/cms 11.119.2 → 11.121.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.
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ "uxf-cms-wysiwyg-input": {
3
+ validation: {
4
+ required: {
5
+ cs: string;
6
+ en: string;
7
+ sk: string;
8
+ de: string;
9
+ };
10
+ };
11
+ };
12
+ };
13
+ export default _default;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ "uxf-cms-wysiwyg-input": {
5
+ validation: {
6
+ required: {
7
+ cs: "Toto pole je povinné",
8
+ en: "This field is required",
9
+ sk: "Toto pole je povinné",
10
+ de: "Dieses Feld ist erforderlich",
11
+ },
12
+ },
13
+ },
14
+ };
@@ -35,6 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.WysiwygInput = WysiwygInput;
37
37
  const use_input_focus_1 = require("@uxf/core-react/hooks/use-input-focus");
38
+ const translations_1 = require("@uxf/core-react/translations");
38
39
  const classes_1 = require("@uxf/core/constants/classes");
39
40
  const cx_1 = require("@uxf/core/utils/cx");
40
41
  const file_1 = require("@uxf/core/utils/file");
@@ -47,12 +48,15 @@ const react_hook_form_1 = require("react-hook-form");
47
48
  const api_1 = require("../../../api");
48
49
  function WysiwygInput(props) {
49
50
  var _a, _b, _c, _d;
51
+ const t = (0, translations_1.useUxfTranslation)();
50
52
  const { field, fieldState } = (0, react_hook_form_1.useController)({
51
53
  control: props.control,
52
54
  defaultValue: props.defaultValue,
53
55
  name: props.name,
54
56
  rules: {
55
- required: props.isRequired ? props.requiredMessage || "Toto pole je povinné" : undefined,
57
+ required: props.isRequired
58
+ ? props.requiredMessage || t("uxf-cms-wysiwyg-input:validation.required")
59
+ : undefined,
56
60
  ...props.rules,
57
61
  },
58
62
  shouldUnregister: props.shouldUnregister,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/cms",
3
- "version": "11.119.2",
3
+ "version": "11.121.0",
4
4
  "description": "UXF Cms",
5
5
  "author": "UXFans <dev@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/cms#readme",
@@ -33,13 +33,13 @@
33
33
  "@dnd-kit/utilities": "^3.2.2",
34
34
  "@floating-ui/react": "^0.27.17",
35
35
  "@uxf/core": "11.114.0",
36
- "@uxf/core-react": "11.119.0",
37
- "@uxf/data-grid": "11.119.0",
38
- "@uxf/form": "11.119.0",
39
- "@uxf/router": "11.119.2",
36
+ "@uxf/core-react": "11.120.0",
37
+ "@uxf/data-grid": "11.121.0",
38
+ "@uxf/form": "11.121.0",
39
+ "@uxf/router": "11.120.0",
40
40
  "@uxf/styles": "11.114.0",
41
- "@uxf/ui": "11.119.0",
42
- "@uxf/wysiwyg": "11.119.0",
41
+ "@uxf/ui": "11.120.0",
42
+ "@uxf/wysiwyg": "11.120.0",
43
43
  "axios": "^1.13.4",
44
44
  "axios-hooks": "^5.1.1",
45
45
  "next": ">=13.2.0",
@@ -57,13 +57,13 @@
57
57
  "@types/react": "18.3.27",
58
58
  "@types/react-dom": "18.3.7",
59
59
  "@uxf/core": "11.114.0",
60
- "@uxf/core-react": "11.119.0",
61
- "@uxf/data-grid": "11.119.0",
62
- "@uxf/form": "11.119.0",
63
- "@uxf/router": "11.119.2",
60
+ "@uxf/core-react": "11.120.0",
61
+ "@uxf/data-grid": "11.121.0",
62
+ "@uxf/form": "11.121.0",
63
+ "@uxf/router": "11.120.0",
64
64
  "@uxf/styles": "11.114.0",
65
- "@uxf/ui": "11.119.0",
66
- "@uxf/wysiwyg": "11.119.0",
65
+ "@uxf/ui": "11.120.0",
66
+ "@uxf/wysiwyg": "11.120.0",
67
67
  "axios": "^1.13.4",
68
68
  "axios-hooks": "^5.1.1",
69
69
  "next": "16.1.6",
@@ -35,6 +35,11 @@
35
35
  "new-password-again": "Nové heslo znovu",
36
36
  "passwords-must-match": "Hesla musí být stejná"
37
37
  },
38
+ "uxf-cms-wysiwyg-input": {
39
+ "validation": {
40
+ "required": "Toto pole je povinné"
41
+ }
42
+ },
38
43
  "uxf-cms-forgotten-password-form": {
39
44
  "reset-password": "Obnovit heslo",
40
45
  "login": "Přihlásit"
@@ -35,6 +35,11 @@
35
35
  "new-password-again": "Neues Passwort wiederholen",
36
36
  "passwords-must-match": "Passwörter müssen übereinstimmen"
37
37
  },
38
+ "uxf-cms-wysiwyg-input": {
39
+ "validation": {
40
+ "required": "Dieses Feld ist erforderlich"
41
+ }
42
+ },
38
43
  "uxf-cms-forgotten-password-form": {
39
44
  "reset-password": "Passwort zurücksetzen",
40
45
  "login": "Anmelden"
@@ -35,6 +35,11 @@
35
35
  "new-password-again": "New password again",
36
36
  "passwords-must-match": "Passwords must match"
37
37
  },
38
+ "uxf-cms-wysiwyg-input": {
39
+ "validation": {
40
+ "required": "This field is required"
41
+ }
42
+ },
38
43
  "uxf-cms-forgotten-password-form": {
39
44
  "reset-password": "Reset password",
40
45
  "login": "Login"
@@ -35,6 +35,11 @@
35
35
  "new-password-again": "Nové heslo znovu",
36
36
  "passwords-must-match": "Heslá musia byť rovnaké"
37
37
  },
38
+ "uxf-cms-wysiwyg-input": {
39
+ "validation": {
40
+ "required": "Toto pole je povinné"
41
+ }
42
+ },
38
43
  "uxf-cms-forgotten-password-form": {
39
44
  "reset-password": "Obnoviť heslo",
40
45
  "login": "Prihlásiť"
@@ -269,6 +269,16 @@ declare const _default: {
269
269
  de: string;
270
270
  };
271
271
  };
272
+ "uxf-cms-wysiwyg-input": {
273
+ validation: {
274
+ required: {
275
+ cs: string;
276
+ en: string;
277
+ sk: string;
278
+ de: string;
279
+ };
280
+ };
281
+ };
272
282
  "uxf-cms-change-password-form": {
273
283
  save: {
274
284
  cs: string;
@@ -5,27 +5,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const translations_1 = __importDefault(require("@uxf/cms/content-builder/translations"));
7
7
  const translations_2 = __importDefault(require("@uxf/cms/forms/change-password-form/translations"));
8
- const translations_3 = __importDefault(require("@uxf/cms/forms/forgotten-password-form/translations"));
9
- const translations_4 = __importDefault(require("@uxf/cms/forms/invite-user-form/translations"));
10
- const translations_5 = __importDefault(require("@uxf/cms/forms/login-form/translations"));
11
- const translations_6 = __importDefault(require("@uxf/cms/forms/renew-password-form/translations"));
12
- const translations_7 = __importDefault(require("@uxf/cms/lib/menu/ui/translations"));
13
- const translations_8 = __importDefault(require("@uxf/cms/pages/translations"));
14
- const translations_9 = __importDefault(require("@uxf/cms/security/translations"));
15
- const translations_10 = __importDefault(require("@uxf/cms/ui/copy-to-clipboard-button/translations"));
16
- const translations_11 = __importDefault(require("@uxf/cms/ui/copy-to-clipboard/translations"));
17
- const translations_12 = __importDefault(require("@uxf/cms/utils/translations"));
8
+ const translations_3 = __importDefault(require("@uxf/cms/forms/components/wysiwyg-input/translations"));
9
+ const translations_4 = __importDefault(require("@uxf/cms/forms/forgotten-password-form/translations"));
10
+ const translations_5 = __importDefault(require("@uxf/cms/forms/invite-user-form/translations"));
11
+ const translations_6 = __importDefault(require("@uxf/cms/forms/login-form/translations"));
12
+ const translations_7 = __importDefault(require("@uxf/cms/forms/renew-password-form/translations"));
13
+ const translations_8 = __importDefault(require("@uxf/cms/lib/menu/ui/translations"));
14
+ const translations_9 = __importDefault(require("@uxf/cms/pages/translations"));
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"));
18
+ const translations_13 = __importDefault(require("@uxf/cms/utils/translations"));
18
19
  exports.default = {
19
20
  ...translations_1.default,
20
21
  ...translations_2.default,
21
22
  ...translations_3.default,
22
- ...translations_5.default,
23
23
  ...translations_4.default,
24
24
  ...translations_6.default,
25
+ ...translations_5.default,
25
26
  ...translations_7.default,
26
- ...translations_12.default,
27
- ...translations_10.default,
28
- ...translations_11.default,
29
27
  ...translations_8.default,
28
+ ...translations_13.default,
29
+ ...translations_11.default,
30
+ ...translations_12.default,
30
31
  ...translations_9.default,
32
+ ...translations_10.default,
31
33
  };