@tolgee/core 5.19.2 → 5.19.3
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/lib/types/plugin.d.ts +2 -6
- package/package.json +2 -2
- package/src/types/plugin.ts +2 -7
package/lib/types/plugin.d.ts
CHANGED
|
@@ -37,10 +37,6 @@ export type Unwrapped = {
|
|
|
37
37
|
export type WrapperWrapProps = Pick<TranslatePropsInternal, 'key' | 'params' | 'defaultValue' | 'ns' | 'translation'>;
|
|
38
38
|
export type WrapperWrapFunction = (props: WrapperWrapProps) => string;
|
|
39
39
|
export type WrapperUnwrapFunction = (text: string) => Unwrapped;
|
|
40
|
-
export type WrapperAttributeXPathGetter = (props: {
|
|
41
|
-
tag: string;
|
|
42
|
-
attribute: string;
|
|
43
|
-
}) => string;
|
|
44
40
|
export type HighlightInterface = (key?: string, ns?: NsFallback) => Highlighter;
|
|
45
41
|
export type FindPositionsInterface = (key?: string, ns?: NsFallback) => KeyPosition[];
|
|
46
42
|
export type ObserverRunProps = {
|
|
@@ -78,8 +74,8 @@ export type DevCredentials = undefined | {
|
|
|
78
74
|
export type WrapperMiddleware = {
|
|
79
75
|
unwrap: WrapperUnwrapFunction;
|
|
80
76
|
wrap: WrapperWrapFunction;
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
testTextNode: (node: Text) => boolean;
|
|
78
|
+
testAttribute: (node: Attr) => boolean;
|
|
83
79
|
};
|
|
84
80
|
export type FormatterMiddlewareFormatParams = {
|
|
85
81
|
translation: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tolgee/core",
|
|
3
|
-
"version": "5.19.
|
|
3
|
+
"version": "5.19.3",
|
|
4
4
|
"description": "Library providing ability to translate messages directly in context of developed application.",
|
|
5
5
|
"main": "./dist/tolgee.cjs.js",
|
|
6
6
|
"module": "./dist/tolgee.esm.js",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
71
|
"sideEffects": false,
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "615694ba8c8229b6a4ae10af2f748edd08e62a0b"
|
|
73
73
|
}
|
package/src/types/plugin.ts
CHANGED
|
@@ -61,11 +61,6 @@ export type WrapperWrapProps = Pick<
|
|
|
61
61
|
export type WrapperWrapFunction = (props: WrapperWrapProps) => string;
|
|
62
62
|
export type WrapperUnwrapFunction = (text: string) => Unwrapped;
|
|
63
63
|
|
|
64
|
-
export type WrapperAttributeXPathGetter = (props: {
|
|
65
|
-
tag: string;
|
|
66
|
-
attribute: string;
|
|
67
|
-
}) => string;
|
|
68
|
-
|
|
69
64
|
export type HighlightInterface = (key?: string, ns?: NsFallback) => Highlighter;
|
|
70
65
|
export type FindPositionsInterface = (
|
|
71
66
|
key?: string,
|
|
@@ -118,8 +113,8 @@ export type DevCredentials =
|
|
|
118
113
|
export type WrapperMiddleware = {
|
|
119
114
|
unwrap: WrapperUnwrapFunction;
|
|
120
115
|
wrap: WrapperWrapFunction;
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
testTextNode: (node: Text) => boolean;
|
|
117
|
+
testAttribute: (node: Attr) => boolean;
|
|
123
118
|
};
|
|
124
119
|
|
|
125
120
|
export type FormatterMiddlewareFormatParams = {
|