@uxf/cms 11.73.0 → 11.74.1

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.
Files changed (50) hide show
  1. package/content-builder/content-builder-header.js +3 -1
  2. package/content-builder/content-builder.js +5 -3
  3. package/content-builder/forms/content-builder-basic-form.js +10 -8
  4. package/content-builder/forms/content-builder-seo-form.js +8 -6
  5. package/content-builder/translations.d.ts +127 -0
  6. package/content-builder/translations.js +128 -0
  7. package/forms/change-password-form/change-password-form.js +9 -4
  8. package/forms/change-password-form/translations.d.ts +35 -0
  9. package/forms/change-password-form/translations.js +36 -0
  10. package/forms/forgotten-password-form/forgotten-password-form.js +4 -2
  11. package/forms/forgotten-password-form/translations.d.ts +17 -0
  12. package/forms/forgotten-password-form/translations.js +18 -0
  13. package/forms/invite-user-form/invite-user-form.js +7 -5
  14. package/forms/invite-user-form/translations.d.ts +35 -0
  15. package/forms/invite-user-form/translations.js +36 -0
  16. package/forms/login-form/login-form.js +5 -3
  17. package/forms/login-form/translations.d.ts +23 -0
  18. package/forms/login-form/translations.js +24 -0
  19. package/forms/renew-password-form/renew-password-form.js +8 -3
  20. package/forms/renew-password-form/translations.d.ts +29 -0
  21. package/forms/renew-password-form/translations.js +30 -0
  22. package/lib/menu/ui/translations.d.ts +17 -0
  23. package/lib/menu/ui/translations.js +18 -0
  24. package/lib/menu/ui/user-menu.js +3 -1
  25. package/package.json +6 -6
  26. package/pages/content-builder/components/header.js +3 -1
  27. package/pages/content-builder/content/feature-section.js +17 -14
  28. package/pages/content-builder/content/gallery.js +6 -4
  29. package/pages/content-builder/content/hero-section.js +10 -6
  30. package/pages/content-builder/content/people.js +19 -15
  31. package/pages/content-builder/content/wysiwyg.js +9 -5
  32. package/pages/content-builder/content-header.js +4 -2
  33. package/pages/grid-page/grid-page.js +3 -1
  34. package/pages/translations.d.ts +93 -0
  35. package/pages/translations.js +94 -0
  36. package/security/restricted-page.d.ts +2 -1
  37. package/security/restricted-page.js +7 -5
  38. package/security/translations.d.ts +29 -0
  39. package/security/translations.js +30 -0
  40. package/translations/translations.d.ts +429 -0
  41. package/translations/translations.js +31 -0
  42. package/ui/copy-to-clipboard/copy-to-clipboard.js +4 -2
  43. package/ui/copy-to-clipboard/translations.d.ts +17 -0
  44. package/ui/copy-to-clipboard/translations.js +18 -0
  45. package/ui/copy-to-clipboard-button/copy-to-clipboard-button.js +6 -2
  46. package/ui/copy-to-clipboard-button/translations.d.ts +17 -0
  47. package/ui/copy-to-clipboard-button/translations.js +18 -0
  48. package/utils/remove-confirm-handler.js +10 -5
  49. package/utils/translations.d.ts +23 -0
  50. package/utils/translations.js +24 -0
@@ -0,0 +1,429 @@
1
+ declare const _default: {
2
+ "uxf-cms-restricted-page": {
3
+ login: {
4
+ cs: string;
5
+ en: string;
6
+ sk: string;
7
+ de: string;
8
+ };
9
+ "login-required": {
10
+ cs: string;
11
+ en: string;
12
+ sk: string;
13
+ de: string;
14
+ };
15
+ "unknown-error": {
16
+ cs: string;
17
+ en: string;
18
+ sk: string;
19
+ de: string;
20
+ };
21
+ forbidden: {
22
+ cs: string;
23
+ en: string;
24
+ sk: string;
25
+ de: string;
26
+ };
27
+ };
28
+ "uxf-cms-pages-content-builder": {
29
+ components: {
30
+ "content-header": {
31
+ "confirm-delete-section": {
32
+ cs: string;
33
+ };
34
+ };
35
+ header: {
36
+ save: {
37
+ cs: string;
38
+ };
39
+ };
40
+ };
41
+ content: {
42
+ "hero-section": {
43
+ title: {
44
+ cs: string;
45
+ };
46
+ subtitle: {
47
+ cs: string;
48
+ };
49
+ };
50
+ "feature-section": {
51
+ title: {
52
+ cs: string;
53
+ };
54
+ subtitle: {
55
+ cs: string;
56
+ };
57
+ "add-feature": {
58
+ cs: string;
59
+ };
60
+ "confirm-delete-feature": {
61
+ cs: string;
62
+ };
63
+ "feature-title": {
64
+ cs: string;
65
+ };
66
+ "delete-feature": {
67
+ cs: string;
68
+ };
69
+ "feature-name": {
70
+ cs: string;
71
+ };
72
+ image: {
73
+ cs: string;
74
+ };
75
+ };
76
+ people: {
77
+ "confirm-delete-person": {
78
+ cs: string;
79
+ };
80
+ "person-title": {
81
+ cs: string;
82
+ };
83
+ "delete-person": {
84
+ cs: string;
85
+ };
86
+ name: {
87
+ cs: string;
88
+ };
89
+ image: {
90
+ cs: string;
91
+ };
92
+ description: {
93
+ cs: string;
94
+ };
95
+ text: {
96
+ cs: string;
97
+ };
98
+ phone: {
99
+ cs: string;
100
+ };
101
+ "add-person": {
102
+ cs: string;
103
+ };
104
+ };
105
+ wysiwyg: {
106
+ text: {
107
+ cs: string;
108
+ };
109
+ placeholder: {
110
+ cs: string;
111
+ };
112
+ };
113
+ };
114
+ "confirm-delete-section": {
115
+ cs: string;
116
+ };
117
+ };
118
+ "uxf-cms-copy-to-clipboard": {
119
+ "text-copied": {
120
+ cs: string;
121
+ en: string;
122
+ sk: string;
123
+ de: string;
124
+ };
125
+ "copy-failed": {
126
+ cs: string;
127
+ en: string;
128
+ sk: string;
129
+ de: string;
130
+ };
131
+ };
132
+ "uxf-cms-copy-to-clipboard-button": {
133
+ "text-copied": {
134
+ cs: string;
135
+ en: string;
136
+ sk: string;
137
+ de: string;
138
+ };
139
+ "copy-failed": {
140
+ cs: string;
141
+ en: string;
142
+ sk: string;
143
+ de: string;
144
+ };
145
+ };
146
+ "uxf-cms-remove-confirm-handler": {
147
+ cancel: {
148
+ cs: string;
149
+ en: string;
150
+ sk: string;
151
+ de: string;
152
+ };
153
+ "confirm-delete": {
154
+ cs: string;
155
+ en: string;
156
+ sk: string;
157
+ de: string;
158
+ };
159
+ "confirm-delete-message": {
160
+ cs: string;
161
+ en: string;
162
+ sk: string;
163
+ de: string;
164
+ };
165
+ };
166
+ "uxf-cms-user-menu": {
167
+ "default-user": {
168
+ cs: string;
169
+ en: string;
170
+ sk: string;
171
+ de: string;
172
+ };
173
+ "not-logged-in": {
174
+ cs: string;
175
+ en: string;
176
+ sk: string;
177
+ de: string;
178
+ };
179
+ };
180
+ "uxf-cms-renew-password-form": {
181
+ "new-password": {
182
+ cs: string;
183
+ en: string;
184
+ sk: string;
185
+ de: string;
186
+ };
187
+ "new-password-again": {
188
+ cs: string;
189
+ en: string;
190
+ sk: string;
191
+ de: string;
192
+ };
193
+ "passwords-must-match": {
194
+ cs: string;
195
+ en: string;
196
+ sk: string;
197
+ de: string;
198
+ };
199
+ "change-password": {
200
+ cs: string;
201
+ en: string;
202
+ sk: string;
203
+ de: string;
204
+ };
205
+ };
206
+ "uxf-cms-invite-user-form": {
207
+ save: {
208
+ cs: string;
209
+ en: string;
210
+ sk: string;
211
+ de: string;
212
+ };
213
+ name: {
214
+ cs: string;
215
+ en: string;
216
+ sk: string;
217
+ de: string;
218
+ };
219
+ surname: {
220
+ cs: string;
221
+ en: string;
222
+ sk: string;
223
+ de: string;
224
+ };
225
+ roles: {
226
+ cs: string;
227
+ en: string;
228
+ sk: string;
229
+ de: string;
230
+ };
231
+ "send-invitation": {
232
+ cs: string;
233
+ en: string;
234
+ sk: string;
235
+ de: string;
236
+ };
237
+ };
238
+ "uxf-cms-login-form": {
239
+ password: {
240
+ cs: string;
241
+ en: string;
242
+ sk: string;
243
+ de: string;
244
+ };
245
+ "forgot-password": {
246
+ cs: string;
247
+ en: string;
248
+ sk: string;
249
+ de: string;
250
+ };
251
+ login: {
252
+ cs: string;
253
+ en: string;
254
+ sk: string;
255
+ de: string;
256
+ };
257
+ };
258
+ "uxf-cms-forgotten-password-form": {
259
+ "reset-password": {
260
+ cs: string;
261
+ en: string;
262
+ sk: string;
263
+ de: string;
264
+ };
265
+ login: {
266
+ cs: string;
267
+ en: string;
268
+ sk: string;
269
+ de: string;
270
+ };
271
+ };
272
+ "uxf-cms-change-password-form": {
273
+ save: {
274
+ cs: string;
275
+ en: string;
276
+ sk: string;
277
+ de: string;
278
+ };
279
+ "original-password": {
280
+ cs: string;
281
+ en: string;
282
+ sk: string;
283
+ de: string;
284
+ };
285
+ "new-password": {
286
+ cs: string;
287
+ en: string;
288
+ sk: string;
289
+ de: string;
290
+ };
291
+ "new-password-again": {
292
+ cs: string;
293
+ en: string;
294
+ sk: string;
295
+ de: string;
296
+ };
297
+ "passwords-must-match": {
298
+ cs: string;
299
+ en: string;
300
+ sk: string;
301
+ de: string;
302
+ };
303
+ };
304
+ "uxf-cms-content-builder": {
305
+ header: {
306
+ save: {
307
+ cs: string;
308
+ en: string;
309
+ sk: string;
310
+ de: string;
311
+ };
312
+ };
313
+ settings: {
314
+ "default-title": {
315
+ cs: string;
316
+ en: string;
317
+ sk: string;
318
+ de: string;
319
+ };
320
+ settings: {
321
+ cs: string;
322
+ en: string;
323
+ sk: string;
324
+ de: string;
325
+ };
326
+ basic: {
327
+ cs: string;
328
+ en: string;
329
+ sk: string;
330
+ de: string;
331
+ };
332
+ };
333
+ "basic-form": {
334
+ title: {
335
+ cs: string;
336
+ en: string;
337
+ sk: string;
338
+ de: string;
339
+ };
340
+ perex: {
341
+ cs: string;
342
+ en: string;
343
+ sk: string;
344
+ de: string;
345
+ };
346
+ author: {
347
+ cs: string;
348
+ en: string;
349
+ sk: string;
350
+ de: string;
351
+ };
352
+ "main-image": {
353
+ cs: string;
354
+ en: string;
355
+ sk: string;
356
+ de: string;
357
+ };
358
+ active: {
359
+ cs: string;
360
+ en: string;
361
+ sk: string;
362
+ de: string;
363
+ };
364
+ "parent-article": {
365
+ cs: string;
366
+ en: string;
367
+ sk: string;
368
+ de: string;
369
+ };
370
+ "published-at": {
371
+ cs: string;
372
+ en: string;
373
+ sk: string;
374
+ de: string;
375
+ };
376
+ };
377
+ "seo-form": {
378
+ slug: {
379
+ cs: string;
380
+ en: string;
381
+ sk: string;
382
+ de: string;
383
+ };
384
+ "slug-helper": {
385
+ cs: string;
386
+ en: string;
387
+ sk: string;
388
+ de: string;
389
+ };
390
+ title: {
391
+ cs: string;
392
+ en: string;
393
+ sk: string;
394
+ de: string;
395
+ };
396
+ description: {
397
+ cs: string;
398
+ en: string;
399
+ sk: string;
400
+ de: string;
401
+ };
402
+ "og-title-helper": {
403
+ cs: string;
404
+ en: string;
405
+ sk: string;
406
+ de: string;
407
+ };
408
+ "og-description-helper": {
409
+ cs: string;
410
+ en: string;
411
+ sk: string;
412
+ de: string;
413
+ };
414
+ "og-image": {
415
+ cs: string;
416
+ en: string;
417
+ sk: string;
418
+ de: string;
419
+ };
420
+ "og-image-helper": {
421
+ cs: string;
422
+ en: string;
423
+ sk: string;
424
+ de: string;
425
+ };
426
+ };
427
+ };
428
+ };
429
+ export default _default;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const translations_1 = __importDefault(require("@uxf/cms/content-builder/translations"));
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"));
18
+ exports.default = {
19
+ ...translations_1.default,
20
+ ...translations_2.default,
21
+ ...translations_3.default,
22
+ ...translations_5.default,
23
+ ...translations_4.default,
24
+ ...translations_6.default,
25
+ ...translations_7.default,
26
+ ...translations_12.default,
27
+ ...translations_10.default,
28
+ ...translations_11.default,
29
+ ...translations_8.default,
30
+ ...translations_9.default,
31
+ };
@@ -24,6 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.CopyToClipboard = void 0;
27
+ const translations_1 = require("@uxf/core-react/translations");
27
28
  const copy_to_clipboard_1 = require("@uxf/core/utils/copy-to-clipboard");
28
29
  const noop_1 = require("@uxf/core/utils/noop");
29
30
  const button_1 = require("@uxf/ui/button");
@@ -32,13 +33,14 @@ const icon_1 = require("@uxf/ui/icon");
32
33
  const text_input_1 = require("@uxf/ui/text-input");
33
34
  const react_1 = __importStar(require("react"));
34
35
  const CopyToClipboard = (props) => {
36
+ const t = (0, translations_1.useUxfTranslation)();
35
37
  const onCopy = (0, react_1.useCallback)(async () => {
36
38
  const isCopied = await (0, copy_to_clipboard_1.copyToClipboard)(props.value);
37
39
  (0, flash_messages_service_1.flashMessage)({
38
40
  variant: isCopied ? "success" : "error",
39
- message: isCopied ? "Text zkopírován" : "Nepodařilo se zkopírovat text",
41
+ message: isCopied ? t("uxf-cms-copy-to-clipboard:text-copied") : t("uxf-cms-copy-to-clipboard:copy-failed"),
40
42
  });
41
- }, [props.value]);
43
+ }, [props.value, t]);
42
44
  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
45
  react_1.default.createElement(icon_1.Icon, { className: "w-4", name: "copy" })), value: props.value }));
44
46
  };
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ "uxf-cms-copy-to-clipboard": {
3
+ "text-copied": {
4
+ cs: string;
5
+ en: string;
6
+ sk: string;
7
+ de: string;
8
+ };
9
+ "copy-failed": {
10
+ cs: string;
11
+ en: string;
12
+ sk: string;
13
+ de: string;
14
+ };
15
+ };
16
+ };
17
+ export default _default;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ "uxf-cms-copy-to-clipboard": {
5
+ "text-copied": {
6
+ cs: "Text zkopírován",
7
+ en: "Text copied",
8
+ sk: "Text skopírovaný",
9
+ de: "Text kopiert",
10
+ },
11
+ "copy-failed": {
12
+ cs: "Nepodařilo se zkopírovat text",
13
+ en: "Failed to copy text",
14
+ sk: "Nepodarilo sa skopírovať text",
15
+ de: "Fehler beim Kopieren des Textes",
16
+ },
17
+ },
18
+ };
@@ -24,6 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.CopyToClipboardButton = void 0;
27
+ const translations_1 = require("@uxf/core-react/translations");
27
28
  const copy_to_clipboard_1 = require("@uxf/core/utils/copy-to-clipboard");
28
29
  const button_1 = require("@uxf/ui/button");
29
30
  const flash_messages_service_1 = require("@uxf/ui/flash-messages/flash-messages-service");
@@ -31,13 +32,16 @@ const icon_1 = require("@uxf/ui/icon");
31
32
  const react_1 = __importStar(require("react"));
32
33
  // eslint-disable-next-line react/destructuring-assignment
33
34
  const CopyToClipboardButton = ({ color = "default", size = "sm", textToCopy }) => {
35
+ const t = (0, translations_1.useUxfTranslation)();
34
36
  const onCopy = (0, react_1.useCallback)(async () => {
35
37
  const isCopied = await (0, copy_to_clipboard_1.copyToClipboard)(textToCopy);
36
38
  (0, flash_messages_service_1.flashMessage)({
37
- message: isCopied ? "Text zkopírován" : "Nepodařilo se zkopírovat text",
39
+ message: isCopied
40
+ ? t("uxf-cms-copy-to-clipboard-button:text-copied")
41
+ : t("uxf-cms-copy-to-clipboard-button:copy-failed"),
38
42
  variant: isCopied ? "success" : "error",
39
43
  });
40
- }, [textToCopy]);
44
+ }, [textToCopy, t]);
41
45
  return (react_1.default.createElement(button_1.Button, { color: color, onClick: onCopy, size: size },
42
46
  react_1.default.createElement(icon_1.Icon, { name: "copy" })));
43
47
  };
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ "uxf-cms-copy-to-clipboard-button": {
3
+ "text-copied": {
4
+ cs: string;
5
+ en: string;
6
+ sk: string;
7
+ de: string;
8
+ };
9
+ "copy-failed": {
10
+ cs: string;
11
+ en: string;
12
+ sk: string;
13
+ de: string;
14
+ };
15
+ };
16
+ };
17
+ export default _default;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ "uxf-cms-copy-to-clipboard-button": {
5
+ "text-copied": {
6
+ cs: "Text zkopírován",
7
+ en: "Text copied",
8
+ sk: "Text skopírovaný",
9
+ de: "Text kopiert",
10
+ },
11
+ "copy-failed": {
12
+ cs: "Nepodařilo se zkopírovat text",
13
+ en: "Failed to copy text",
14
+ sk: "Nepodarilo sa skopírovať text",
15
+ de: "Fehler beim Kopieren des Textes",
16
+ },
17
+ },
18
+ };
@@ -4,23 +4,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.removeConfirmHandler = removeConfirmHandler;
7
+ const translations_1 = require("@uxf/core-react/translations");
7
8
  const button_1 = require("@uxf/ui/button");
8
9
  const modal_1 = require("@uxf/ui/modal");
9
10
  const modal_dialog_1 = require("@uxf/ui/modal-dialog/modal-dialog");
10
11
  const react_1 = __importDefault(require("react"));
11
12
  function removeConfirmHandler() {
12
13
  return new Promise((resolve) => {
13
- (0, modal_1.openModal)({
14
- isBackdropCloseDisabled: true,
15
- children: (react_1.default.createElement(modal_dialog_1.ModalDialog, { footer: react_1.default.createElement(react_1.default.Fragment, null,
14
+ const RemoveConfirmModal = () => {
15
+ const t = (0, translations_1.useUxfTranslation)();
16
+ return (react_1.default.createElement(modal_dialog_1.ModalDialog, { footer: react_1.default.createElement(react_1.default.Fragment, null,
16
17
  react_1.default.createElement(button_1.Button, { onClick: () => {
17
18
  resolve(false);
18
19
  (0, modal_1.closeModal)();
19
- } }, "Zru\u0161it"),
20
+ } }, t("uxf-cms-remove-confirm-handler:cancel")),
20
21
  react_1.default.createElement(button_1.Button, { color: "negative", onClick: () => {
21
22
  resolve(true);
22
23
  (0, modal_1.closeModal)();
23
- } }, "Ano, smazat")), title: "Opravdu chcete smazat tento soubor?", width: "sm" })),
24
+ } }, t("uxf-cms-remove-confirm-handler:confirm-delete"))), title: t("uxf-cms-remove-confirm-handler:confirm-delete-message"), width: "sm" }));
25
+ };
26
+ (0, modal_1.openModal)({
27
+ isBackdropCloseDisabled: true,
28
+ children: react_1.default.createElement(RemoveConfirmModal, null),
24
29
  });
25
30
  });
26
31
  }
@@ -0,0 +1,23 @@
1
+ declare const _default: {
2
+ "uxf-cms-remove-confirm-handler": {
3
+ cancel: {
4
+ cs: string;
5
+ en: string;
6
+ sk: string;
7
+ de: string;
8
+ };
9
+ "confirm-delete": {
10
+ cs: string;
11
+ en: string;
12
+ sk: string;
13
+ de: string;
14
+ };
15
+ "confirm-delete-message": {
16
+ cs: string;
17
+ en: string;
18
+ sk: string;
19
+ de: string;
20
+ };
21
+ };
22
+ };
23
+ export default _default;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ "uxf-cms-remove-confirm-handler": {
5
+ cancel: {
6
+ cs: "Zrušit",
7
+ en: "Cancel",
8
+ sk: "Zrušiť",
9
+ de: "Abbrechen",
10
+ },
11
+ "confirm-delete": {
12
+ cs: "Ano, smazat",
13
+ en: "Yes, delete",
14
+ sk: "Áno, zmazať",
15
+ de: "Ja, löschen",
16
+ },
17
+ "confirm-delete-message": {
18
+ cs: "Opravdu chcete smazat tento soubor?",
19
+ en: "Do you really want to delete this file?",
20
+ sk: "Naozaj chcete zmazať tento súbor?",
21
+ de: "Möchten Sie diese Datei wirklich löschen?",
22
+ },
23
+ },
24
+ };