gt-react 10.7.0-alpha.2 → 10.7.0-alpha.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.
Files changed (169) hide show
  1. package/CHANGELOG.md +97 -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,102 @@
1
1
  # gt-react
2
2
 
3
+ ## 10.6.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`93881f1`](https://github.com/generaltranslation/gt/commit/93881f159455a9bbc13d14e7fec9befa60998ba3)]:
8
+ - generaltranslation@7.9.0
9
+ - @generaltranslation/react-core@1.0.8
10
+ - @generaltranslation/supported-locales@2.0.21
11
+
12
+ ## 10.6.14
13
+
14
+ ### Patch Changes
15
+
16
+ - [#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
17
+
18
+ - Updated dependencies [[`155fc2c`](https://github.com/generaltranslation/gt/commit/155fc2c987078b2ffc12c55abb65bb7ff16eb09b)]:
19
+ - @generaltranslation/react-core@1.0.7
20
+
21
+ ## 10.6.13
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [[`7434c15`](https://github.com/generaltranslation/gt/commit/7434c1503c2a62bdb90d4058f903a56331276365)]:
26
+ - generaltranslation@7.8.0
27
+ - @generaltranslation/react-core@1.0.6
28
+ - @generaltranslation/supported-locales@2.0.20
29
+
30
+ ## 10.6.12
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies [[`08dc642`](https://github.com/generaltranslation/gt/commit/08dc642bcbcc46d83b8ee6312200bc64a1fb84e3)]:
35
+ - @generaltranslation/react-core@1.0.5
36
+
37
+ ## 10.6.11
38
+
39
+ ### Patch Changes
40
+
41
+ - [#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
42
+
43
+ - Updated dependencies [[`1499720`](https://github.com/generaltranslation/gt/commit/149972082ec9ce02953cdbb3290e9a0364e58a33)]:
44
+ - @generaltranslation/react-core@1.0.4
45
+
46
+ ## 10.6.10
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies [[`7ba2e84`](https://github.com/generaltranslation/gt/commit/7ba2e8412b608aa3415f4865dc26adbbd3daa236)]:
51
+ - generaltranslation@7.7.3
52
+ - @generaltranslation/react-core@1.0.3
53
+ - @generaltranslation/supported-locales@2.0.19
54
+
55
+ ## 10.6.9
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [[`20ec920`](https://github.com/generaltranslation/gt/commit/20ec920ecf3fb04e464f281400429c68f3c1a701)]:
60
+ - generaltranslation@7.7.2
61
+ - @generaltranslation/react-core@1.0.2
62
+ - @generaltranslation/supported-locales@2.0.18
63
+
64
+ ## 10.6.8
65
+
66
+ ### Patch Changes
67
+
68
+ - Updated dependencies [[`7114780`](https://github.com/generaltranslation/gt/commit/71147803bf3e4cf21556ffb9b5f77756e283a32a)]:
69
+ - generaltranslation@7.7.1
70
+ - @generaltranslation/react-core@1.0.1
71
+ - @generaltranslation/supported-locales@2.0.17
72
+
73
+ ## 10.6.7
74
+
75
+ ### Patch Changes
76
+
77
+ - [#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
78
+
79
+ - Updated dependencies [[`83a5b26`](https://github.com/generaltranslation/gt/commit/83a5b26cc70f9a7378bbcafbf6c035462598fc8a)]:
80
+ - @generaltranslation/react-core@1.0.0
81
+
82
+ ## 10.6.6
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [[`5208937`](https://github.com/generaltranslation/gt/commit/520893719480b40774ccd749fe73727cf490f46c)]:
87
+ - generaltranslation@7.7.0
88
+ - @generaltranslation/supported-locales@2.0.16
89
+
90
+ ## 10.6.5
91
+
92
+ ### Patch Changes
93
+
94
+ - [#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
95
+
96
+ - Updated dependencies [[`ed93e41`](https://github.com/generaltranslation/gt/commit/ed93e419e9547e6f2353d99f896702016f8ba751)]:
97
+ - generaltranslation@7.6.5
98
+ - @generaltranslation/supported-locales@2.0.15
99
+
3
100
  ## 10.6.4
4
101
 
5
102
  ### Patch Changes