@uxf/wysiwyg 11.79.0 → 11.80.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/package.json +4 -4
- package/translations.d.ts +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/wysiwyg",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.80.0",
|
|
4
4
|
"description": "UXF Wysiwyg editor",
|
|
5
5
|
"author": "Robin Dvorak <dvorak@uxf.cz>",
|
|
6
6
|
"homepage": "https://gitlab.com/uxf-npm/wysiwyg",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@udecode/plate-reset-node": "20.7.2",
|
|
26
26
|
"@udecode/plate-select": "20.7.2",
|
|
27
27
|
"@udecode/plate-trailing-block": "20.7.2",
|
|
28
|
-
"@uxf/core": "11.
|
|
29
|
-
"@uxf/core-react": "11.
|
|
30
|
-
"@uxf/ui": "11.
|
|
28
|
+
"@uxf/core": "11.80.0",
|
|
29
|
+
"@uxf/core-react": "11.80.0",
|
|
30
|
+
"@uxf/ui": "11.80.0",
|
|
31
31
|
"slate": "0.90.0",
|
|
32
32
|
"slate-history": "0.86.0",
|
|
33
33
|
"slate-hyperscript": "0.77.0",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TranslationsPaths } from "@uxf/core-react/translations/types";
|
|
2
|
+
import uiTranslations from "@uxf/ui/translations/translations";
|
|
3
|
+
import wysiwygTranslations from "@uxf/wysiwyg/translations/translations";
|
|
4
|
+
|
|
5
|
+
type uiTypes = typeof uiTranslations;
|
|
6
|
+
type wysiwygTypes = typeof wysiwygTranslations;
|
|
7
|
+
|
|
8
|
+
type TranslationsKeys = TranslationsPaths<uiTypes & wysiwygTypes>;
|
|
9
|
+
|
|
10
|
+
type TypeSafeTranslate = (key: TranslationsKeys, options?: Record<string, any>) => string;
|
|
11
|
+
|
|
12
|
+
declare module "@uxf/core-react/translations" {
|
|
13
|
+
export function useUxfTranslation(): TypeSafeTranslate;
|
|
14
|
+
}
|