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.
Files changed (169) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/dist/client.cjs.min.cjs +17 -16
  3. package/dist/client.cjs.min.cjs.map +1 -0
  4. package/dist/client.d.ts +7 -740
  5. package/dist/client.d.ts.map +1 -1
  6. package/dist/client.esm.min.mjs +17 -16
  7. package/dist/client.esm.min.mjs.map +1 -0
  8. package/dist/errors-dir/constants.d.ts +2 -0
  9. package/dist/errors-dir/constants.d.ts.map +1 -0
  10. package/dist/index.cjs.min.cjs +21 -3
  11. package/dist/index.cjs.min.cjs.map +1 -0
  12. package/dist/index.d.ts +4 -23
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.esm.min.mjs +21 -3
  15. package/dist/index.esm.min.mjs.map +1 -0
  16. package/dist/internal.cjs.min.cjs +17 -16
  17. package/dist/internal.cjs.min.cjs.map +1 -0
  18. package/dist/internal.d.ts +5 -31
  19. package/dist/internal.d.ts.map +1 -1
  20. package/dist/internal.esm.min.mjs +17 -16
  21. package/dist/internal.esm.min.mjs.map +1 -0
  22. package/dist/provider/ClientProvider.d.ts +1 -1
  23. package/dist/provider/ClientProvider.d.ts.map +1 -1
  24. package/dist/provider/GTProvider.d.ts +3 -23
  25. package/dist/provider/GTProvider.d.ts.map +1 -1
  26. package/dist/provider/helpers/isSSREnabled.d.ts.map +1 -1
  27. package/dist/provider/hooks/locales/useDetermineLocale.d.ts +2 -9
  28. package/dist/provider/hooks/locales/useDetermineLocale.d.ts.map +1 -1
  29. package/dist/types/config.d.ts +23 -41
  30. package/dist/types/config.d.ts.map +1 -1
  31. package/dist/utils/utils.d.ts +2 -6
  32. package/dist/utils/utils.d.ts.map +1 -1
  33. package/package.json +5 -18
  34. package/dist/branches/Branch.d.ts +0 -34
  35. package/dist/branches/Branch.d.ts.map +0 -1
  36. package/dist/branches/plurals/Plural.d.ts +0 -38
  37. package/dist/branches/plurals/Plural.d.ts.map +0 -1
  38. package/dist/branches/plurals/getPluralBranch.d.ts +0 -9
  39. package/dist/branches/plurals/getPluralBranch.d.ts.map +0 -1
  40. package/dist/config.cjs.min.cjs +0 -30
  41. package/dist/config.d.ts +0 -4
  42. package/dist/config.d.ts.map +0 -1
  43. package/dist/config.esm.min.mjs +0 -30
  44. package/dist/dictionaries/collectUntranslatedEntries.d.ts +0 -17
  45. package/dist/dictionaries/collectUntranslatedEntries.d.ts.map +0 -1
  46. package/dist/dictionaries/getDictionaryEntry.d.ts +0 -4
  47. package/dist/dictionaries/getDictionaryEntry.d.ts.map +0 -1
  48. package/dist/dictionaries/getEntryAndMetadata.d.ts +0 -6
  49. package/dist/dictionaries/getEntryAndMetadata.d.ts.map +0 -1
  50. package/dist/dictionaries/getSubtree.d.ts +0 -18
  51. package/dist/dictionaries/getSubtree.d.ts.map +0 -1
  52. package/dist/dictionaries/indexDict.d.ts +0 -15
  53. package/dist/dictionaries/indexDict.d.ts.map +0 -1
  54. package/dist/dictionaries/injectAndMerge.d.ts +0 -9
  55. package/dist/dictionaries/injectAndMerge.d.ts.map +0 -1
  56. package/dist/dictionaries/injectEntry.d.ts +0 -18
  57. package/dist/dictionaries/injectEntry.d.ts.map +0 -1
  58. package/dist/dictionaries/injectFallbacks.d.ts +0 -17
  59. package/dist/dictionaries/injectFallbacks.d.ts.map +0 -1
  60. package/dist/dictionaries/injectHashes.d.ts +0 -11
  61. package/dist/dictionaries/injectHashes.d.ts.map +0 -1
  62. package/dist/dictionaries/injectTranslations.d.ts +0 -20
  63. package/dist/dictionaries/injectTranslations.d.ts.map +0 -1
  64. package/dist/dictionaries/isDictionaryEntry.d.ts +0 -8
  65. package/dist/dictionaries/isDictionaryEntry.d.ts.map +0 -1
  66. package/dist/dictionaries/loadDictionaryHelper.d.ts +0 -3
  67. package/dist/dictionaries/loadDictionaryHelper.d.ts.map +0 -1
  68. package/dist/dictionaries/mergeDictionaries.d.ts +0 -3
  69. package/dist/dictionaries/mergeDictionaries.d.ts.map +0 -1
  70. package/dist/dictionaries/stripMetadataFromEntries.d.ts +0 -6
  71. package/dist/dictionaries/stripMetadataFromEntries.d.ts.map +0 -1
  72. package/dist/errors/createErrors.d.ts +0 -33
  73. package/dist/errors/createErrors.d.ts.map +0 -1
  74. package/dist/hooks/useDefaultLocale.d.ts +0 -13
  75. package/dist/hooks/useDefaultLocale.d.ts.map +0 -1
  76. package/dist/hooks/useGTClass.d.ts +0 -23
  77. package/dist/hooks/useGTClass.d.ts.map +0 -1
  78. package/dist/hooks/useLocale.d.ts +0 -11
  79. package/dist/hooks/useLocale.d.ts.map +0 -1
  80. package/dist/hooks/useLocaleDirection.d.ts +0 -14
  81. package/dist/hooks/useLocaleDirection.d.ts.map +0 -1
  82. package/dist/hooks/useLocaleSelector.d.ts +0 -42
  83. package/dist/hooks/useLocaleSelector.d.ts.map +0 -1
  84. package/dist/hooks/useLocales.d.ts +0 -11
  85. package/dist/hooks/useLocales.d.ts.map +0 -1
  86. package/dist/hooks/useRegion.d.ts +0 -20
  87. package/dist/hooks/useRegion.d.ts.map +0 -1
  88. package/dist/hooks/useRegionSelector.d.ts +0 -82
  89. package/dist/hooks/useRegionSelector.d.ts.map +0 -1
  90. package/dist/hooks/useSetLocale.d.ts +0 -12
  91. package/dist/hooks/useSetLocale.d.ts.map +0 -1
  92. package/dist/internal/addGTIdentifier.d.ts +0 -4
  93. package/dist/internal/addGTIdentifier.d.ts.map +0 -1
  94. package/dist/internal/flattenDictionary.d.ts +0 -11
  95. package/dist/internal/flattenDictionary.d.ts.map +0 -1
  96. package/dist/internal/writeChildrenAsObjects.d.ts +0 -10
  97. package/dist/internal/writeChildrenAsObjects.d.ts.map +0 -1
  98. package/dist/messages/messages.d.ts +0 -43
  99. package/dist/messages/messages.d.ts.map +0 -1
  100. package/dist/promises/dangerouslyUsable.d.ts +0 -37
  101. package/dist/promises/dangerouslyUsable.d.ts.map +0 -1
  102. package/dist/promises/reactHasUse.d.ts +0 -2
  103. package/dist/promises/reactHasUse.d.ts.map +0 -1
  104. package/dist/provider/GTContext.d.ts +0 -4
  105. package/dist/provider/GTContext.d.ts.map +0 -1
  106. package/dist/provider/config/defaultProps.d.ts +0 -4
  107. package/dist/provider/config/defaultProps.d.ts.map +0 -1
  108. package/dist/provider/helpers/validateString.d.ts +0 -6
  109. package/dist/provider/helpers/validateString.d.ts.map +0 -1
  110. package/dist/provider/hooks/locales/useLocaleState.d.ts +0 -16
  111. package/dist/provider/hooks/locales/useLocaleState.d.ts.map +0 -1
  112. package/dist/provider/hooks/translation/useCreateInternalUseGTFunction.d.ts +0 -18
  113. package/dist/provider/hooks/translation/useCreateInternalUseGTFunction.d.ts.map +0 -1
  114. package/dist/provider/hooks/translation/useCreateInternalUseTranslationsFunction.d.ts +0 -4
  115. package/dist/provider/hooks/translation/useCreateInternalUseTranslationsFunction.d.ts.map +0 -1
  116. package/dist/provider/hooks/translation/useCreateInternalUseTranslationsObjFunction.d.ts +0 -4
  117. package/dist/provider/hooks/translation/useCreateInternalUseTranslationsObjFunction.d.ts.map +0 -1
  118. package/dist/provider/hooks/useErrorChecks.d.ts +0 -9
  119. package/dist/provider/hooks/useErrorChecks.d.ts.map +0 -1
  120. package/dist/provider/hooks/useLoadDictionary.d.ts +0 -15
  121. package/dist/provider/hooks/useLoadDictionary.d.ts.map +0 -1
  122. package/dist/provider/hooks/useLoadTranslations.d.ts +0 -17
  123. package/dist/provider/hooks/useLoadTranslations.d.ts.map +0 -1
  124. package/dist/provider/hooks/useRuntimeTranslation.d.ts +0 -23
  125. package/dist/provider/hooks/useRuntimeTranslation.d.ts.map +0 -1
  126. package/dist/rendering/defaultRenderSettings.d.ts +0 -6
  127. package/dist/rendering/defaultRenderSettings.d.ts.map +0 -1
  128. package/dist/rendering/getGTTag.d.ts +0 -3
  129. package/dist/rendering/getGTTag.d.ts.map +0 -1
  130. package/dist/rendering/isVariableObject.d.ts +0 -3
  131. package/dist/rendering/isVariableObject.d.ts.map +0 -1
  132. package/dist/rendering/renderDefaultChildren.d.ts +0 -8
  133. package/dist/rendering/renderDefaultChildren.d.ts.map +0 -1
  134. package/dist/rendering/renderSkeleton.d.ts +0 -8
  135. package/dist/rendering/renderSkeleton.d.ts.map +0 -1
  136. package/dist/rendering/renderTranslatedChildren.d.ts +0 -9
  137. package/dist/rendering/renderTranslatedChildren.d.ts.map +0 -1
  138. package/dist/rendering/renderVariable.d.ts +0 -4
  139. package/dist/rendering/renderVariable.d.ts.map +0 -1
  140. package/dist/translation/hooks/useGT.d.ts +0 -20
  141. package/dist/translation/hooks/useGT.d.ts.map +0 -1
  142. package/dist/translation/hooks/useMessages.d.ts +0 -19
  143. package/dist/translation/hooks/useMessages.d.ts.map +0 -1
  144. package/dist/translation/hooks/useTranslations.d.ts +0 -17
  145. package/dist/translation/hooks/useTranslations.d.ts.map +0 -1
  146. package/dist/translation/inline/T.d.ts +0 -42
  147. package/dist/translation/inline/T.d.ts.map +0 -1
  148. package/dist/types/context.d.ts +0 -30
  149. package/dist/types/context.d.ts.map +0 -1
  150. package/dist/types/runtime.d.ts +0 -20
  151. package/dist/types/runtime.d.ts.map +0 -1
  152. package/dist/types/types.d.ts +0 -90
  153. package/dist/types/types.d.ts.map +0 -1
  154. package/dist/utils/cookies.d.ts +0 -9
  155. package/dist/utils/cookies.d.ts.map +0 -1
  156. package/dist/utils/fetchTranslations.d.ts +0 -9
  157. package/dist/utils/fetchTranslations.d.ts.map +0 -1
  158. package/dist/variables/Currency.d.ts +0 -30
  159. package/dist/variables/Currency.d.ts.map +0 -1
  160. package/dist/variables/DateTime.d.ts +0 -29
  161. package/dist/variables/DateTime.d.ts.map +0 -1
  162. package/dist/variables/Num.d.ts +0 -31
  163. package/dist/variables/Num.d.ts.map +0 -1
  164. package/dist/variables/Var.d.ts +0 -32
  165. package/dist/variables/Var.d.ts.map +0 -1
  166. package/dist/variables/_getVariableProps.d.ts +0 -11
  167. package/dist/variables/_getVariableProps.d.ts.map +0 -1
  168. package/dist/variables/getVariableName.d.ts +0 -10
  169. 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