@generaltranslation/react-core 1.7.0 → 1.7.2
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/CHANGELOG.md +22 -0
- package/README.md +2 -2
- package/dist/errors-dir/createErrors.d.ts +1 -0
- package/dist/errors-dir/createErrors.d.ts.map +1 -1
- package/dist/index.cjs.min.cjs +3 -3
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.esm.min.mjs +3 -3
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/internal/addGTIdentifier.d.ts.map +1 -1
- package/dist/internal/removeInjectedT.d.ts +11 -0
- package/dist/internal/removeInjectedT.d.ts.map +1 -0
- package/dist/internal.cjs.min.cjs +3 -3
- package/dist/internal.cjs.min.cjs.map +1 -1
- package/dist/internal.d.ts +3 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.esm.min.mjs +3 -3
- package/dist/internal.esm.min.mjs.map +1 -1
- package/dist/rendering/renderTranslatedChildren.d.ts.map +1 -1
- package/dist/types-dir/types.d.ts +8 -3
- package/dist/types-dir/types.d.ts.map +1 -1
- package/dist/types.d.ts +24 -4
- package/dist/types.d.ts.map +1 -1
- package/dist/variables/Derive.d.ts +11 -2
- package/dist/variables/Derive.d.ts.map +1 -1
- package/dist/variables/_getVariableProps.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderTranslatedChildren.d.ts","sourceRoot":"","sources":["../../src/rendering/renderTranslatedChildren.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EACL,cAAc,EAEd,kBAAkB,EAClB,cAAc,
|
|
1
|
+
{"version":3,"file":"renderTranslatedChildren.d.ts","sourceRoot":"","sources":["../../src/rendering/renderTranslatedChildren.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EACL,cAAc,EAEd,kBAAkB,EAClB,cAAc,EAGf,MAAM,oBAAoB,CAAC;AAiH5B,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,MAAM,EACN,MAAM,EACN,OAAgC,EAChC,cAAc,GACf,EAAE;IACD,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,EAAE,cAAc,CAAC;CAChC,GAAG,SAAS,CA+IZ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Variable, VariableTransformationSuffix, TransformationPrefix, GTProp, VariableType } from 'generaltranslation/types';
|
|
1
|
+
import { Variable, VariableTransformationSuffix, TransformationPrefix, GTProp, VariableType, InjectionType } from 'generaltranslation/types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export type { GTFunctionType, MFunctionType, InlineTranslationOptions, DictionaryTranslationOptions, RuntimeTranslationOptions, } from 'gt-i18n/types';
|
|
4
4
|
/**
|
|
@@ -6,6 +6,7 @@ export type { GTFunctionType, MFunctionType, InlineTranslationOptions, Dictionar
|
|
|
6
6
|
*/
|
|
7
7
|
export type GTTag = {
|
|
8
8
|
id: number;
|
|
9
|
+
injectionType: InjectionType;
|
|
9
10
|
transformation?: TransformationPrefix;
|
|
10
11
|
branches?: Record<string, TaggedChildren>;
|
|
11
12
|
variableType?: VariableTransformationSuffix;
|
|
@@ -35,6 +36,8 @@ export type FlattenedDictionary = {
|
|
|
35
36
|
};
|
|
36
37
|
/**
|
|
37
38
|
* Translated content types
|
|
39
|
+
* TODO: move these types to JsxElement etc from generaltranslation/types
|
|
40
|
+
* remember to omit the t property (tag name) from the translated element
|
|
38
41
|
*/
|
|
39
42
|
export type TranslatedElement = {
|
|
40
43
|
i?: number;
|
|
@@ -62,6 +65,7 @@ export type LocalesDictionary = {
|
|
|
62
65
|
export type CustomLoader = (locale: string) => Promise<any>;
|
|
63
66
|
export type RenderMethod = 'skeleton' | 'replace' | 'default';
|
|
64
67
|
export type VariableProps = {
|
|
68
|
+
/** Whether the variable was automatically injected by the compiler */
|
|
65
69
|
variableType: VariableType;
|
|
66
70
|
variableValue: any;
|
|
67
71
|
variableOptions: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | (Intl.RelativeTimeFormatOptions & {
|
|
@@ -69,10 +73,11 @@ export type VariableProps = {
|
|
|
69
73
|
baseDate?: Date;
|
|
70
74
|
});
|
|
71
75
|
variableName: string;
|
|
76
|
+
injectionType: InjectionType;
|
|
72
77
|
};
|
|
73
|
-
export type RenderVariable = ({ variableType, variableValue, variableOptions, locales, }: Omit<VariableProps, 'variableName'> & {
|
|
78
|
+
export type RenderVariable = ({ variableType, variableValue, variableOptions, locales, injectionType, }: Omit<VariableProps, 'variableName'> & {
|
|
74
79
|
locales: string[];
|
|
75
|
-
}) => React.
|
|
80
|
+
}) => React.ReactNode;
|
|
76
81
|
export type _Message = {
|
|
77
82
|
message: string;
|
|
78
83
|
$id?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types-dir/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,4BAA4B,EAC5B,oBAAoB,EACpB,MAAM,EACN,YAAY,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types-dir/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,4BAA4B,EAC5B,oBAAoB,EACpB,MAAM,EACN,YAAY,EACZ,aAAa,EACd,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,YAAY,EACV,cAAc,EACd,aAAa,EACb,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,aAAa,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Ac,CAAC,GAAG;IACvC,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,KAAK,KAAK,CAAC,SAAS,CAAC;AAEtB,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,QAAQ,EAAE,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
import { GTProp, Variable, VariableType, JsxChildren, CustomMapping } from 'generaltranslation/types';
|
|
1
|
+
import { GTProp, Variable, VariableType, InjectionType, TransformationPrefix, VariableTransformationSuffix, JsxChildren, CustomMapping } from 'generaltranslation/types';
|
|
2
2
|
export { GTProp } from 'generaltranslation/types';
|
|
3
3
|
import React, { ReactNode } from 'react';
|
|
4
4
|
import { GT } from 'generaltranslation';
|
|
5
5
|
import { InlineTranslationOptions, DictionaryTranslationOptions } from 'gt-i18n/types';
|
|
6
6
|
export { DictionaryTranslationOptions, GTFunctionType, InlineTranslationOptions, MFunctionType, RuntimeTranslationOptions } from 'gt-i18n/types';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* TaggedElement is a React element with a GTProp property.
|
|
10
|
+
*/
|
|
11
|
+
type GTTag = {
|
|
12
|
+
id: number;
|
|
13
|
+
injectionType: InjectionType;
|
|
14
|
+
transformation?: TransformationPrefix;
|
|
15
|
+
branches?: Record<string, TaggedChildren>;
|
|
16
|
+
variableType?: VariableTransformationSuffix;
|
|
17
|
+
};
|
|
18
|
+
type TaggedElementProps = Record<string, any> & {
|
|
19
|
+
'data-_gt': GTTag;
|
|
20
|
+
};
|
|
21
|
+
type TaggedElement = React.ReactElement<TaggedElementProps>;
|
|
22
|
+
type TaggedChild = Exclude<React.ReactNode, React.ReactElement> | TaggedElement;
|
|
23
|
+
type TaggedChildren = TaggedChild[] | TaggedChild;
|
|
8
24
|
/**
|
|
9
25
|
* For dictionaries, we have Entry and MetaEntry
|
|
10
26
|
*/
|
|
@@ -24,6 +40,8 @@ type FlattenedDictionary = {
|
|
|
24
40
|
};
|
|
25
41
|
/**
|
|
26
42
|
* Translated content types
|
|
43
|
+
* TODO: move these types to JsxElement etc from generaltranslation/types
|
|
44
|
+
* remember to omit the t property (tag name) from the translated element
|
|
27
45
|
*/
|
|
28
46
|
type TranslatedElement = {
|
|
29
47
|
i?: number;
|
|
@@ -51,6 +69,7 @@ type LocalesDictionary = {
|
|
|
51
69
|
type CustomLoader = (locale: string) => Promise<any>;
|
|
52
70
|
type RenderMethod = 'skeleton' | 'replace' | 'default';
|
|
53
71
|
type VariableProps = {
|
|
72
|
+
/** Whether the variable was automatically injected by the compiler */
|
|
54
73
|
variableType: VariableType;
|
|
55
74
|
variableValue: any;
|
|
56
75
|
variableOptions: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | (Intl.RelativeTimeFormatOptions & {
|
|
@@ -58,10 +77,11 @@ type VariableProps = {
|
|
|
58
77
|
baseDate?: Date;
|
|
59
78
|
});
|
|
60
79
|
variableName: string;
|
|
80
|
+
injectionType: InjectionType;
|
|
61
81
|
};
|
|
62
|
-
type RenderVariable = ({ variableType, variableValue, variableOptions, locales, }: Omit<VariableProps, 'variableName'> & {
|
|
82
|
+
type RenderVariable = ({ variableType, variableValue, variableOptions, locales, injectionType, }: Omit<VariableProps, 'variableName'> & {
|
|
63
83
|
locales: string[];
|
|
64
|
-
}) => React.
|
|
84
|
+
}) => React.ReactNode;
|
|
65
85
|
type _Message = {
|
|
66
86
|
message: string;
|
|
67
87
|
$id?: string;
|
|
@@ -230,4 +250,4 @@ type InternalGTProviderProps = {
|
|
|
230
250
|
[key: string]: any;
|
|
231
251
|
};
|
|
232
252
|
|
|
233
|
-
export type { AuthFromEnvParams, AuthFromEnvReturn, CustomLoader, Dictionary, DictionaryContent, DictionaryEntry, DictionaryObject, Entry, FlattenedDictionary, GTConfig, GTContextType, InternalGTProviderProps, LocaleSelectorProps, LocalesDictionary, MetaEntry as Metadata, RegionSelectorProps, RenderMethod, RenderVariable, TranslatedChildren, Translations, UseDetermineLocaleParams, UseDetermineLocaleReturn, UseEnableI18nParams, UseEnableI18nReturn, UseRegionStateParams, UseRegionStateReturn, VariableProps, _Message, _Messages };
|
|
253
|
+
export type { AuthFromEnvParams, AuthFromEnvReturn, CustomLoader, Dictionary, DictionaryContent, DictionaryEntry, DictionaryObject, Entry, FlattenedDictionary, GTConfig, GTContextType, InternalGTProviderProps, LocaleSelectorProps, LocalesDictionary, MetaEntry as Metadata, RegionSelectorProps, RenderMethod, RenderVariable, TaggedChildren, TranslatedChildren, Translations, UseDetermineLocaleParams, UseDetermineLocaleReturn, UseEnableI18nParams, UseEnableI18nReturn, UseRegionStateParams, UseRegionStateReturn, VariableProps, _Message, _Messages };
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EACL,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,SAAS,EACT,KAAK,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,SAAS,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EACL,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,YA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';
|
|
|
21
21
|
* @param {T extends React.ReactNode} children - Derived content to render.
|
|
22
22
|
* @returns {T} The result of the function invocation.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
declare function Derive<T extends React.ReactNode>({ children }: {
|
|
25
25
|
children: T;
|
|
26
26
|
}): T;
|
|
27
|
+
declare namespace Derive {
|
|
28
|
+
var _gtt: string;
|
|
29
|
+
}
|
|
27
30
|
/**
|
|
28
31
|
* @deprecated Use `<Derive>` instead.
|
|
29
32
|
*
|
|
@@ -48,5 +51,11 @@ export declare function Derive<T extends React.ReactNode>({ children, }: {
|
|
|
48
51
|
* @param {T extends React.ReactNode} children - Derived content to render.
|
|
49
52
|
* @returns {T} The result of the function invocation.
|
|
50
53
|
*/
|
|
51
|
-
|
|
54
|
+
declare function Static<T extends React.ReactNode>(props: {
|
|
55
|
+
children: T;
|
|
56
|
+
}): T;
|
|
57
|
+
declare namespace Static {
|
|
58
|
+
var _gtt: string;
|
|
59
|
+
}
|
|
60
|
+
export { Derive, Static };
|
|
52
61
|
//# sourceMappingURL=Derive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Derive.d.ts","sourceRoot":"","sources":["../../src/variables/Derive.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,
|
|
1
|
+
{"version":3,"file":"Derive.d.ts","sourceRoot":"","sources":["../../src/variables/Derive.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAS,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,CAAC,CAAA;CAAE,GAAG,CAAC,CAE3E;kBAFQ,MAAM;;;AAIf;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAS,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE;IAAE,QAAQ,EAAE,CAAC,CAAA;CAAE,GAAG,CAAC,CAEpE;kBAFQ,MAAM;;;AAQf,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_getVariableProps.d.ts","sourceRoot":"","sources":["../../src/variables/_getVariableProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAI1D,KAAK,oBAAoB,GAAG;IAC1B,UAAU,EAAE,KAAK,GAAG;QAClB,cAAc,EAAE,UAAU,CAAC;KAC5B,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,oBAAoB,CAU/B;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,KAAK,EAAE,oBAAoB,GAC1B,aAAa,
|
|
1
|
+
{"version":3,"file":"_getVariableProps.d.ts","sourceRoot":"","sources":["../../src/variables/_getVariableProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAI1D,KAAK,oBAAoB,GAAG;IAC1B,UAAU,EAAE,KAAK,GAAG;QAClB,cAAc,EAAE,UAAU,CAAC;KAC5B,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,oBAAoB,CAU/B;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,KAAK,EAAE,oBAAoB,GAC1B,aAAa,CAqCf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@generaltranslation/react-core",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "A pure React library for internationalization",
|
|
5
5
|
"main": "./dist/index.cjs.min.cjs",
|
|
6
6
|
"module": "./dist/index.esm.min.mjs",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"react": ">=16.8.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@generaltranslation/supported-locales": "2.0.
|
|
17
|
-
"generaltranslation": "8.2.
|
|
18
|
-
"gt-i18n": "0.7.
|
|
16
|
+
"@generaltranslation/supported-locales": "2.0.60",
|
|
17
|
+
"generaltranslation": "8.2.2",
|
|
18
|
+
"gt-i18n": "0.7.10"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|