@tolgee/core 5.19.2 → 5.19.3-prerelease.a08fc0b3.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.
@@ -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
- getTextXPath: () => string;
82
- getAttributeXPath: WrapperAttributeXPathGetter;
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.2",
3
+ "version": "5.19.3-prerelease.a08fc0b3.0",
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": "1066bd54b2dbdeed62ac4bdabbbd01258fe6f0d7"
72
+ "gitHead": "17c5550769fc45f3d654ae37278edc917f8ac5a5"
73
73
  }
@@ -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
- getTextXPath: () => string;
122
- getAttributeXPath: WrapperAttributeXPathGetter;
116
+ testTextNode: (node: Text) => boolean;
117
+ testAttribute: (node: Attr) => boolean;
123
118
  };
124
119
 
125
120
  export type FormatterMiddlewareFormatParams = {