gt-react 10.7.0-alpha.2 → 10.7.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/CHANGELOG.md +121 -0
- package/dist/client.cjs.min.cjs +17 -16
- package/dist/client.cjs.min.cjs.map +1 -0
- package/dist/client.d.ts +7 -740
- package/dist/client.d.ts.map +1 -1
- package/dist/client.esm.min.mjs +17 -16
- package/dist/client.esm.min.mjs.map +1 -0
- package/dist/errors-dir/constants.d.ts +2 -0
- package/dist/errors-dir/constants.d.ts.map +1 -0
- package/dist/index.cjs.min.cjs +21 -3
- package/dist/index.cjs.min.cjs.map +1 -0
- package/dist/index.d.ts +4 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.min.mjs +21 -3
- package/dist/index.esm.min.mjs.map +1 -0
- package/dist/internal.cjs.min.cjs +17 -16
- package/dist/internal.cjs.min.cjs.map +1 -0
- package/dist/internal.d.ts +5 -31
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.esm.min.mjs +17 -16
- package/dist/internal.esm.min.mjs.map +1 -0
- package/dist/provider/ClientProvider.d.ts +1 -1
- package/dist/provider/ClientProvider.d.ts.map +1 -1
- package/dist/provider/GTProvider.d.ts +3 -23
- package/dist/provider/GTProvider.d.ts.map +1 -1
- package/dist/provider/helpers/isSSREnabled.d.ts.map +1 -1
- package/dist/provider/hooks/locales/useDetermineLocale.d.ts +2 -9
- package/dist/provider/hooks/locales/useDetermineLocale.d.ts.map +1 -1
- package/dist/types/config.d.ts +23 -41
- package/dist/types/config.d.ts.map +1 -1
- package/dist/utils/utils.d.ts +2 -6
- package/dist/utils/utils.d.ts.map +1 -1
- package/package.json +5 -18
- package/dist/branches/Branch.d.ts +0 -34
- package/dist/branches/Branch.d.ts.map +0 -1
- package/dist/branches/plurals/Plural.d.ts +0 -38
- package/dist/branches/plurals/Plural.d.ts.map +0 -1
- package/dist/branches/plurals/getPluralBranch.d.ts +0 -9
- package/dist/branches/plurals/getPluralBranch.d.ts.map +0 -1
- package/dist/config.cjs.min.cjs +0 -30
- package/dist/config.d.ts +0 -4
- package/dist/config.d.ts.map +0 -1
- package/dist/config.esm.min.mjs +0 -30
- package/dist/dictionaries/collectUntranslatedEntries.d.ts +0 -17
- package/dist/dictionaries/collectUntranslatedEntries.d.ts.map +0 -1
- package/dist/dictionaries/getDictionaryEntry.d.ts +0 -4
- package/dist/dictionaries/getDictionaryEntry.d.ts.map +0 -1
- package/dist/dictionaries/getEntryAndMetadata.d.ts +0 -6
- package/dist/dictionaries/getEntryAndMetadata.d.ts.map +0 -1
- package/dist/dictionaries/getSubtree.d.ts +0 -18
- package/dist/dictionaries/getSubtree.d.ts.map +0 -1
- package/dist/dictionaries/indexDict.d.ts +0 -15
- package/dist/dictionaries/indexDict.d.ts.map +0 -1
- package/dist/dictionaries/injectAndMerge.d.ts +0 -9
- package/dist/dictionaries/injectAndMerge.d.ts.map +0 -1
- package/dist/dictionaries/injectEntry.d.ts +0 -18
- package/dist/dictionaries/injectEntry.d.ts.map +0 -1
- package/dist/dictionaries/injectFallbacks.d.ts +0 -17
- package/dist/dictionaries/injectFallbacks.d.ts.map +0 -1
- package/dist/dictionaries/injectHashes.d.ts +0 -11
- package/dist/dictionaries/injectHashes.d.ts.map +0 -1
- package/dist/dictionaries/injectTranslations.d.ts +0 -20
- package/dist/dictionaries/injectTranslations.d.ts.map +0 -1
- package/dist/dictionaries/isDictionaryEntry.d.ts +0 -8
- package/dist/dictionaries/isDictionaryEntry.d.ts.map +0 -1
- package/dist/dictionaries/loadDictionaryHelper.d.ts +0 -3
- package/dist/dictionaries/loadDictionaryHelper.d.ts.map +0 -1
- package/dist/dictionaries/mergeDictionaries.d.ts +0 -3
- package/dist/dictionaries/mergeDictionaries.d.ts.map +0 -1
- package/dist/dictionaries/stripMetadataFromEntries.d.ts +0 -6
- package/dist/dictionaries/stripMetadataFromEntries.d.ts.map +0 -1
- package/dist/errors/createErrors.d.ts +0 -33
- package/dist/errors/createErrors.d.ts.map +0 -1
- package/dist/hooks/useDefaultLocale.d.ts +0 -13
- package/dist/hooks/useDefaultLocale.d.ts.map +0 -1
- package/dist/hooks/useGTClass.d.ts +0 -23
- package/dist/hooks/useGTClass.d.ts.map +0 -1
- package/dist/hooks/useLocale.d.ts +0 -11
- package/dist/hooks/useLocale.d.ts.map +0 -1
- package/dist/hooks/useLocaleDirection.d.ts +0 -14
- package/dist/hooks/useLocaleDirection.d.ts.map +0 -1
- package/dist/hooks/useLocaleSelector.d.ts +0 -42
- package/dist/hooks/useLocaleSelector.d.ts.map +0 -1
- package/dist/hooks/useLocales.d.ts +0 -11
- package/dist/hooks/useLocales.d.ts.map +0 -1
- package/dist/hooks/useRegion.d.ts +0 -20
- package/dist/hooks/useRegion.d.ts.map +0 -1
- package/dist/hooks/useRegionSelector.d.ts +0 -82
- package/dist/hooks/useRegionSelector.d.ts.map +0 -1
- package/dist/hooks/useSetLocale.d.ts +0 -12
- package/dist/hooks/useSetLocale.d.ts.map +0 -1
- package/dist/internal/addGTIdentifier.d.ts +0 -4
- package/dist/internal/addGTIdentifier.d.ts.map +0 -1
- package/dist/internal/flattenDictionary.d.ts +0 -11
- package/dist/internal/flattenDictionary.d.ts.map +0 -1
- package/dist/internal/writeChildrenAsObjects.d.ts +0 -10
- package/dist/internal/writeChildrenAsObjects.d.ts.map +0 -1
- package/dist/messages/messages.d.ts +0 -43
- package/dist/messages/messages.d.ts.map +0 -1
- package/dist/promises/dangerouslyUsable.d.ts +0 -37
- package/dist/promises/dangerouslyUsable.d.ts.map +0 -1
- package/dist/promises/reactHasUse.d.ts +0 -2
- package/dist/promises/reactHasUse.d.ts.map +0 -1
- package/dist/provider/GTContext.d.ts +0 -4
- package/dist/provider/GTContext.d.ts.map +0 -1
- package/dist/provider/config/defaultProps.d.ts +0 -4
- package/dist/provider/config/defaultProps.d.ts.map +0 -1
- package/dist/provider/helpers/validateString.d.ts +0 -6
- package/dist/provider/helpers/validateString.d.ts.map +0 -1
- package/dist/provider/hooks/locales/useLocaleState.d.ts +0 -16
- package/dist/provider/hooks/locales/useLocaleState.d.ts.map +0 -1
- package/dist/provider/hooks/translation/useCreateInternalUseGTFunction.d.ts +0 -18
- package/dist/provider/hooks/translation/useCreateInternalUseGTFunction.d.ts.map +0 -1
- package/dist/provider/hooks/translation/useCreateInternalUseTranslationsFunction.d.ts +0 -4
- package/dist/provider/hooks/translation/useCreateInternalUseTranslationsFunction.d.ts.map +0 -1
- package/dist/provider/hooks/translation/useCreateInternalUseTranslationsObjFunction.d.ts +0 -4
- package/dist/provider/hooks/translation/useCreateInternalUseTranslationsObjFunction.d.ts.map +0 -1
- package/dist/provider/hooks/useErrorChecks.d.ts +0 -9
- package/dist/provider/hooks/useErrorChecks.d.ts.map +0 -1
- package/dist/provider/hooks/useLoadDictionary.d.ts +0 -15
- package/dist/provider/hooks/useLoadDictionary.d.ts.map +0 -1
- package/dist/provider/hooks/useLoadTranslations.d.ts +0 -17
- package/dist/provider/hooks/useLoadTranslations.d.ts.map +0 -1
- package/dist/provider/hooks/useRuntimeTranslation.d.ts +0 -23
- package/dist/provider/hooks/useRuntimeTranslation.d.ts.map +0 -1
- package/dist/rendering/defaultRenderSettings.d.ts +0 -6
- package/dist/rendering/defaultRenderSettings.d.ts.map +0 -1
- package/dist/rendering/getGTTag.d.ts +0 -3
- package/dist/rendering/getGTTag.d.ts.map +0 -1
- package/dist/rendering/isVariableObject.d.ts +0 -3
- package/dist/rendering/isVariableObject.d.ts.map +0 -1
- package/dist/rendering/renderDefaultChildren.d.ts +0 -8
- package/dist/rendering/renderDefaultChildren.d.ts.map +0 -1
- package/dist/rendering/renderSkeleton.d.ts +0 -8
- package/dist/rendering/renderSkeleton.d.ts.map +0 -1
- package/dist/rendering/renderTranslatedChildren.d.ts +0 -9
- package/dist/rendering/renderTranslatedChildren.d.ts.map +0 -1
- package/dist/rendering/renderVariable.d.ts +0 -4
- package/dist/rendering/renderVariable.d.ts.map +0 -1
- package/dist/translation/hooks/useGT.d.ts +0 -20
- package/dist/translation/hooks/useGT.d.ts.map +0 -1
- package/dist/translation/hooks/useMessages.d.ts +0 -19
- package/dist/translation/hooks/useMessages.d.ts.map +0 -1
- package/dist/translation/hooks/useTranslations.d.ts +0 -17
- package/dist/translation/hooks/useTranslations.d.ts.map +0 -1
- package/dist/translation/inline/T.d.ts +0 -42
- package/dist/translation/inline/T.d.ts.map +0 -1
- package/dist/types/context.d.ts +0 -30
- package/dist/types/context.d.ts.map +0 -1
- package/dist/types/runtime.d.ts +0 -20
- package/dist/types/runtime.d.ts.map +0 -1
- package/dist/types/types.d.ts +0 -90
- package/dist/types/types.d.ts.map +0 -1
- package/dist/utils/cookies.d.ts +0 -9
- package/dist/utils/cookies.d.ts.map +0 -1
- package/dist/utils/fetchTranslations.d.ts +0 -9
- package/dist/utils/fetchTranslations.d.ts.map +0 -1
- package/dist/variables/Currency.d.ts +0 -30
- package/dist/variables/Currency.d.ts.map +0 -1
- package/dist/variables/DateTime.d.ts +0 -29
- package/dist/variables/DateTime.d.ts.map +0 -1
- package/dist/variables/Num.d.ts +0 -31
- package/dist/variables/Num.d.ts.map +0 -1
- package/dist/variables/Var.d.ts +0 -32
- package/dist/variables/Var.d.ts.map +0 -1
- package/dist/variables/_getVariableProps.d.ts +0 -11
- package/dist/variables/_getVariableProps.d.ts.map +0 -1
- package/dist/variables/getVariableName.d.ts +0 -10
- package/dist/variables/getVariableName.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,126 @@
|
|
|
1
1
|
# gt-react
|
|
2
2
|
|
|
3
|
+
## 10.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#788](https://github.com/generaltranslation/gt/pull/788) [`99e4648`](https://github.com/generaltranslation/gt/commit/99e46486ae2046c689e0045372d63c4eb3dc5d48) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - More information: https://https://generaltranslation.com/en-US/blog/gt-next_v6_8_0
|
|
8
|
+
|
|
9
|
+
feat: static component
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`99e4648`](https://github.com/generaltranslation/gt/commit/99e46486ae2046c689e0045372d63c4eb3dc5d48), [`fee5d4a`](https://github.com/generaltranslation/gt/commit/fee5d4a3d0fd20e0928eebb83201a87289265719)]:
|
|
14
|
+
- @generaltranslation/react-core@1.1.0
|
|
15
|
+
- generaltranslation@8.0.0
|
|
16
|
+
- @generaltranslation/supported-locales@2.0.23
|
|
17
|
+
|
|
18
|
+
## 10.6.16
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`3da05a1`](https://github.com/generaltranslation/gt/commit/3da05a12a37a62ace3c7e321aa2fed5a4af52ad9)]:
|
|
23
|
+
- generaltranslation@7.9.1
|
|
24
|
+
- @generaltranslation/react-core@1.0.9
|
|
25
|
+
- @generaltranslation/supported-locales@2.0.22
|
|
26
|
+
|
|
27
|
+
## 10.6.15
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`93881f1`](https://github.com/generaltranslation/gt/commit/93881f159455a9bbc13d14e7fec9befa60998ba3)]:
|
|
32
|
+
- generaltranslation@7.9.0
|
|
33
|
+
- @generaltranslation/react-core@1.0.8
|
|
34
|
+
- @generaltranslation/supported-locales@2.0.21
|
|
35
|
+
|
|
36
|
+
## 10.6.14
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- [#782](https://github.com/generaltranslation/gt/pull/782) [`155fc2c`](https://github.com/generaltranslation/gt/commit/155fc2c987078b2ffc12c55abb65bb7ff16eb09b) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - fix: only throw errors in development for invalid icu strings
|
|
41
|
+
|
|
42
|
+
- Updated dependencies [[`155fc2c`](https://github.com/generaltranslation/gt/commit/155fc2c987078b2ffc12c55abb65bb7ff16eb09b)]:
|
|
43
|
+
- @generaltranslation/react-core@1.0.7
|
|
44
|
+
|
|
45
|
+
## 10.6.13
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [[`7434c15`](https://github.com/generaltranslation/gt/commit/7434c1503c2a62bdb90d4058f903a56331276365)]:
|
|
50
|
+
- generaltranslation@7.8.0
|
|
51
|
+
- @generaltranslation/react-core@1.0.6
|
|
52
|
+
- @generaltranslation/supported-locales@2.0.20
|
|
53
|
+
|
|
54
|
+
## 10.6.12
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- Updated dependencies [[`08dc642`](https://github.com/generaltranslation/gt/commit/08dc642bcbcc46d83b8ee6312200bc64a1fb84e3)]:
|
|
59
|
+
- @generaltranslation/react-core@1.0.5
|
|
60
|
+
|
|
61
|
+
## 10.6.11
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- [#761](https://github.com/generaltranslation/gt/pull/761) [`1499720`](https://github.com/generaltranslation/gt/commit/149972082ec9ce02953cdbb3290e9a0364e58a33) Thanks [@archie-mckenzie](https://github.com/archie-mckenzie)! - refactor: msg() function now returns plain text
|
|
66
|
+
|
|
67
|
+
- Updated dependencies [[`1499720`](https://github.com/generaltranslation/gt/commit/149972082ec9ce02953cdbb3290e9a0364e58a33)]:
|
|
68
|
+
- @generaltranslation/react-core@1.0.4
|
|
69
|
+
|
|
70
|
+
## 10.6.10
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- Updated dependencies [[`7ba2e84`](https://github.com/generaltranslation/gt/commit/7ba2e8412b608aa3415f4865dc26adbbd3daa236)]:
|
|
75
|
+
- generaltranslation@7.7.3
|
|
76
|
+
- @generaltranslation/react-core@1.0.3
|
|
77
|
+
- @generaltranslation/supported-locales@2.0.19
|
|
78
|
+
|
|
79
|
+
## 10.6.9
|
|
80
|
+
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- Updated dependencies [[`20ec920`](https://github.com/generaltranslation/gt/commit/20ec920ecf3fb04e464f281400429c68f3c1a701)]:
|
|
84
|
+
- generaltranslation@7.7.2
|
|
85
|
+
- @generaltranslation/react-core@1.0.2
|
|
86
|
+
- @generaltranslation/supported-locales@2.0.18
|
|
87
|
+
|
|
88
|
+
## 10.6.8
|
|
89
|
+
|
|
90
|
+
### Patch Changes
|
|
91
|
+
|
|
92
|
+
- Updated dependencies [[`7114780`](https://github.com/generaltranslation/gt/commit/71147803bf3e4cf21556ffb9b5f77756e283a32a)]:
|
|
93
|
+
- generaltranslation@7.7.1
|
|
94
|
+
- @generaltranslation/react-core@1.0.1
|
|
95
|
+
- @generaltranslation/supported-locales@2.0.17
|
|
96
|
+
|
|
97
|
+
## 10.6.7
|
|
98
|
+
|
|
99
|
+
### Patch Changes
|
|
100
|
+
|
|
101
|
+
- [#746](https://github.com/generaltranslation/gt/pull/746) [`83a5b26`](https://github.com/generaltranslation/gt/commit/83a5b26cc70f9a7378bbcafbf6c035462598fc8a) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - refactor: modularize gt-react package
|
|
102
|
+
|
|
103
|
+
- Updated dependencies [[`83a5b26`](https://github.com/generaltranslation/gt/commit/83a5b26cc70f9a7378bbcafbf6c035462598fc8a)]:
|
|
104
|
+
- @generaltranslation/react-core@1.0.0
|
|
105
|
+
|
|
106
|
+
## 10.6.6
|
|
107
|
+
|
|
108
|
+
### Patch Changes
|
|
109
|
+
|
|
110
|
+
- Updated dependencies [[`5208937`](https://github.com/generaltranslation/gt/commit/520893719480b40774ccd749fe73727cf490f46c)]:
|
|
111
|
+
- generaltranslation@7.7.0
|
|
112
|
+
- @generaltranslation/supported-locales@2.0.16
|
|
113
|
+
|
|
114
|
+
## 10.6.5
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- [#737](https://github.com/generaltranslation/gt/pull/737) [`ed93e41`](https://github.com/generaltranslation/gt/commit/ed93e419e9547e6f2353d99f896702016f8ba751) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - fix: buffer not available on browser for react
|
|
119
|
+
|
|
120
|
+
- Updated dependencies [[`ed93e41`](https://github.com/generaltranslation/gt/commit/ed93e419e9547e6f2353d99f896702016f8ba751)]:
|
|
121
|
+
- generaltranslation@7.6.5
|
|
122
|
+
- @generaltranslation/supported-locales@2.0.15
|
|
123
|
+
|
|
3
124
|
## 10.6.4
|
|
4
125
|
|
|
5
126
|
### Patch Changes
|