gt-react-native 10.19.15 → 10.19.17

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 (175) hide show
  1. package/dist/commonjs/NativeGtReactNative.js +9 -7
  2. package/dist/commonjs/NativeGtReactNative.js.map +1 -1
  3. package/dist/commonjs/_virtual/_rolldown/runtime.js +23 -0
  4. package/dist/commonjs/errors-dir/constants.js +5 -6
  5. package/dist/commonjs/errors-dir/constants.js.map +1 -1
  6. package/dist/commonjs/errors-dir/errors.js +12 -7
  7. package/dist/commonjs/errors-dir/errors.js.map +1 -1
  8. package/dist/commonjs/errors-dir/warnings.js +34 -15
  9. package/dist/commonjs/errors-dir/warnings.js.map +1 -1
  10. package/dist/commonjs/index.js +35 -194
  11. package/dist/commonjs/internal.js +3 -13
  12. package/dist/commonjs/plugin-dir/index.js +35 -51
  13. package/dist/commonjs/plugin-dir/index.js.map +1 -1
  14. package/dist/commonjs/plugin-dir/types.js +24 -9
  15. package/dist/commonjs/plugin-dir/types.js.map +1 -1
  16. package/dist/commonjs/plugin-dir/utils/resolveLocales.js +52 -69
  17. package/dist/commonjs/plugin-dir/utils/resolveLocales.js.map +1 -1
  18. package/dist/commonjs/plugin.js +5 -13
  19. package/dist/commonjs/provider/GTProvider.js +22 -20
  20. package/dist/commonjs/provider/GTProvider.js.map +1 -1
  21. package/dist/commonjs/provider/hooks/locale/useDetermineLocale.js +96 -160
  22. package/dist/commonjs/provider/hooks/locale/useDetermineLocale.js.map +1 -1
  23. package/dist/commonjs/provider/hooks/useRegionState.js +32 -44
  24. package/dist/commonjs/provider/hooks/useRegionState.js.map +1 -1
  25. package/dist/commonjs/tools/testLocalePolyfill.js +125 -146
  26. package/dist/commonjs/tools/testLocalePolyfill.js.map +1 -1
  27. package/dist/commonjs/types/config.js +1 -6
  28. package/dist/commonjs/utils/getNativeLocales.js +36 -51
  29. package/dist/commonjs/utils/getNativeLocales.js.map +1 -1
  30. package/dist/commonjs/utils/nativeStore.js +37 -42
  31. package/dist/commonjs/utils/nativeStore.js.map +1 -1
  32. package/dist/commonjs/utils/utils.js +10 -14
  33. package/dist/commonjs/utils/utils.js.map +1 -1
  34. package/dist/module/NativeGtReactNative.d.ts.map +1 -0
  35. package/dist/module/NativeGtReactNative.js +5 -3
  36. package/dist/module/NativeGtReactNative.js.map +1 -1
  37. package/dist/module/errors-dir/constants.d.ts.map +1 -0
  38. package/dist/module/errors-dir/constants.js +4 -2
  39. package/dist/module/errors-dir/constants.js.map +1 -1
  40. package/dist/module/errors-dir/errors.d.ts.map +1 -0
  41. package/dist/module/errors-dir/errors.js +11 -3
  42. package/dist/module/errors-dir/errors.js.map +1 -1
  43. package/dist/{typescript/commonjs/src → module}/errors-dir/warnings.d.ts +1 -1
  44. package/dist/module/errors-dir/warnings.d.ts.map +1 -0
  45. package/dist/module/errors-dir/warnings.js +31 -11
  46. package/dist/module/errors-dir/warnings.js.map +1 -1
  47. package/dist/module/index.d.ts.map +1 -0
  48. package/dist/module/index.js +2 -5
  49. package/dist/module/internal.d.ts.map +1 -0
  50. package/dist/module/internal.js +2 -4
  51. package/dist/module/plugin-dir/index.d.ts.map +1 -0
  52. package/dist/module/plugin-dir/index.js +28 -45
  53. package/dist/module/plugin-dir/index.js.map +1 -1
  54. package/dist/{typescript/commonjs/src → module}/plugin-dir/types.d.ts +1 -1
  55. package/dist/module/plugin-dir/types.d.ts.map +1 -0
  56. package/dist/module/plugin-dir/types.js +22 -5
  57. package/dist/module/plugin-dir/types.js.map +1 -1
  58. package/dist/{typescript/commonjs/src → module}/plugin-dir/utils/resolveLocales.d.ts +1 -1
  59. package/dist/module/plugin-dir/utils/resolveLocales.d.ts.map +1 -0
  60. package/dist/module/plugin-dir/utils/resolveLocales.js +46 -62
  61. package/dist/module/plugin-dir/utils/resolveLocales.js.map +1 -1
  62. package/dist/module/plugin.d.ts.map +1 -0
  63. package/dist/module/plugin.js +2 -4
  64. package/dist/module/provider/GTProvider.d.ts.map +1 -0
  65. package/dist/module/provider/GTProvider.js +15 -14
  66. package/dist/module/provider/GTProvider.js.map +1 -1
  67. package/dist/module/provider/hooks/locale/useDetermineLocale.d.ts.map +1 -0
  68. package/dist/module/provider/hooks/locale/useDetermineLocale.js +91 -153
  69. package/dist/module/provider/hooks/locale/useDetermineLocale.js.map +1 -1
  70. package/dist/module/provider/hooks/useRegionState.d.ts.map +1 -0
  71. package/dist/module/provider/hooks/useRegionState.js +29 -39
  72. package/dist/module/provider/hooks/useRegionState.js.map +1 -1
  73. package/dist/module/tools/testLocalePolyfill.d.ts.map +1 -0
  74. package/dist/module/tools/testLocalePolyfill.js +124 -143
  75. package/dist/module/tools/testLocalePolyfill.js.map +1 -1
  76. package/dist/{typescript/commonjs/src → module}/types/config.d.ts +4 -4
  77. package/dist/module/types/config.d.ts.map +1 -0
  78. package/dist/module/types/config.js +0 -3
  79. package/dist/module/utils/getNativeLocales.d.ts.map +1 -0
  80. package/dist/module/utils/getNativeLocales.js +35 -48
  81. package/dist/module/utils/getNativeLocales.js.map +1 -1
  82. package/dist/module/utils/nativeStore.d.ts.map +1 -0
  83. package/dist/module/utils/nativeStore.js +35 -38
  84. package/dist/module/utils/nativeStore.js.map +1 -1
  85. package/dist/module/utils/utils.d.ts.map +1 -0
  86. package/dist/module/utils/utils.js +10 -11
  87. package/dist/module/utils/utils.js.map +1 -1
  88. package/package.json +15 -36
  89. package/src/errors-dir/errors.ts +8 -1
  90. package/src/errors-dir/warnings.ts +30 -9
  91. package/src/plugin-dir/types.ts +4 -1
  92. package/src/plugin-dir/utils/resolveLocales.ts +4 -1
  93. package/src/provider/hooks/locale/useDetermineLocale.ts +7 -3
  94. package/src/types/config.ts +4 -3
  95. package/src/utils/getNativeLocales.ts +7 -2
  96. package/dist/commonjs/index.js.map +0 -1
  97. package/dist/commonjs/internal.js.map +0 -1
  98. package/dist/commonjs/package.json +0 -1
  99. package/dist/commonjs/plugin.js.map +0 -1
  100. package/dist/commonjs/types/config.js.map +0 -1
  101. package/dist/module/index.js.map +0 -1
  102. package/dist/module/internal.js.map +0 -1
  103. package/dist/module/package.json +0 -1
  104. package/dist/module/plugin.js.map +0 -1
  105. package/dist/module/types/config.js.map +0 -1
  106. package/dist/typescript/commonjs/package.json +0 -1
  107. package/dist/typescript/commonjs/src/NativeGtReactNative.d.ts.map +0 -1
  108. package/dist/typescript/commonjs/src/errors-dir/constants.d.ts.map +0 -1
  109. package/dist/typescript/commonjs/src/errors-dir/errors.d.ts.map +0 -1
  110. package/dist/typescript/commonjs/src/errors-dir/warnings.d.ts.map +0 -1
  111. package/dist/typescript/commonjs/src/index.d.ts.map +0 -1
  112. package/dist/typescript/commonjs/src/internal.d.ts.map +0 -1
  113. package/dist/typescript/commonjs/src/plugin-dir/index.d.ts.map +0 -1
  114. package/dist/typescript/commonjs/src/plugin-dir/types.d.ts.map +0 -1
  115. package/dist/typescript/commonjs/src/plugin-dir/utils/resolveLocales.d.ts.map +0 -1
  116. package/dist/typescript/commonjs/src/plugin.d.ts.map +0 -1
  117. package/dist/typescript/commonjs/src/provider/GTProvider.d.ts.map +0 -1
  118. package/dist/typescript/commonjs/src/provider/hooks/locale/useDetermineLocale.d.ts.map +0 -1
  119. package/dist/typescript/commonjs/src/provider/hooks/useRegionState.d.ts.map +0 -1
  120. package/dist/typescript/commonjs/src/tools/testLocalePolyfill.d.ts.map +0 -1
  121. package/dist/typescript/commonjs/src/types/config.d.ts.map +0 -1
  122. package/dist/typescript/commonjs/src/utils/getNativeLocales.d.ts.map +0 -1
  123. package/dist/typescript/commonjs/src/utils/nativeStore.d.ts.map +0 -1
  124. package/dist/typescript/commonjs/src/utils/utils.d.ts.map +0 -1
  125. package/dist/typescript/module/package.json +0 -1
  126. package/dist/typescript/module/src/NativeGtReactNative.d.ts +0 -10
  127. package/dist/typescript/module/src/NativeGtReactNative.d.ts.map +0 -1
  128. package/dist/typescript/module/src/errors-dir/constants.d.ts +0 -2
  129. package/dist/typescript/module/src/errors-dir/constants.d.ts.map +0 -1
  130. package/dist/typescript/module/src/errors-dir/errors.d.ts +0 -2
  131. package/dist/typescript/module/src/errors-dir/errors.d.ts.map +0 -1
  132. package/dist/typescript/module/src/errors-dir/warnings.d.ts +0 -5
  133. package/dist/typescript/module/src/errors-dir/warnings.d.ts.map +0 -1
  134. package/dist/typescript/module/src/index.d.ts +0 -5
  135. package/dist/typescript/module/src/index.d.ts.map +0 -1
  136. package/dist/typescript/module/src/internal.d.ts +0 -2
  137. package/dist/typescript/module/src/internal.d.ts.map +0 -1
  138. package/dist/typescript/module/src/plugin-dir/index.d.ts +0 -6
  139. package/dist/typescript/module/src/plugin-dir/index.d.ts.map +0 -1
  140. package/dist/typescript/module/src/plugin-dir/types.d.ts +0 -13
  141. package/dist/typescript/module/src/plugin-dir/types.d.ts.map +0 -1
  142. package/dist/typescript/module/src/plugin-dir/utils/resolveLocales.d.ts +0 -13
  143. package/dist/typescript/module/src/plugin-dir/utils/resolveLocales.d.ts.map +0 -1
  144. package/dist/typescript/module/src/plugin.d.ts +0 -2
  145. package/dist/typescript/module/src/plugin.d.ts.map +0 -1
  146. package/dist/typescript/module/src/provider/GTProvider.d.ts +0 -4
  147. package/dist/typescript/module/src/provider/GTProvider.d.ts.map +0 -1
  148. package/dist/typescript/module/src/provider/hooks/locale/useDetermineLocale.d.ts +0 -4
  149. package/dist/typescript/module/src/provider/hooks/locale/useDetermineLocale.d.ts.map +0 -1
  150. package/dist/typescript/module/src/provider/hooks/useRegionState.d.ts +0 -3
  151. package/dist/typescript/module/src/provider/hooks/useRegionState.d.ts.map +0 -1
  152. package/dist/typescript/module/src/tools/testLocalePolyfill.d.ts +0 -8
  153. package/dist/typescript/module/src/tools/testLocalePolyfill.d.ts.map +0 -1
  154. package/dist/typescript/module/src/types/config.d.ts +0 -30
  155. package/dist/typescript/module/src/types/config.d.ts.map +0 -1
  156. package/dist/typescript/module/src/utils/getNativeLocales.d.ts +0 -10
  157. package/dist/typescript/module/src/utils/getNativeLocales.d.ts.map +0 -1
  158. package/dist/typescript/module/src/utils/nativeStore.d.ts +0 -16
  159. package/dist/typescript/module/src/utils/nativeStore.d.ts.map +0 -1
  160. package/dist/typescript/module/src/utils/utils.d.ts +0 -3
  161. package/dist/typescript/module/src/utils/utils.d.ts.map +0 -1
  162. /package/dist/{typescript/commonjs/src → module}/NativeGtReactNative.d.ts +0 -0
  163. /package/dist/{typescript/commonjs/src → module}/errors-dir/constants.d.ts +0 -0
  164. /package/dist/{typescript/commonjs/src → module}/errors-dir/errors.d.ts +0 -0
  165. /package/dist/{typescript/commonjs/src → module}/index.d.ts +0 -0
  166. /package/dist/{typescript/commonjs/src → module}/internal.d.ts +0 -0
  167. /package/dist/{typescript/commonjs/src → module}/plugin-dir/index.d.ts +0 -0
  168. /package/dist/{typescript/commonjs/src → module}/plugin.d.ts +0 -0
  169. /package/dist/{typescript/commonjs/src → module}/provider/GTProvider.d.ts +0 -0
  170. /package/dist/{typescript/commonjs/src → module}/provider/hooks/locale/useDetermineLocale.d.ts +0 -0
  171. /package/dist/{typescript/commonjs/src → module}/provider/hooks/useRegionState.d.ts +0 -0
  172. /package/dist/{typescript/commonjs/src → module}/tools/testLocalePolyfill.d.ts +0 -0
  173. /package/dist/{typescript/commonjs/src → module}/utils/getNativeLocales.d.ts +0 -0
  174. /package/dist/{typescript/commonjs/src → module}/utils/nativeStore.d.ts +0 -0
  175. /package/dist/{typescript/commonjs/src → module}/utils/utils.d.ts +0 -0
@@ -1,16 +0,0 @@
1
- /**
2
- * Native store interface, used to replace cookie behavior from gt-react
3
- */
4
- /**
5
- * Get a value from the native store
6
- * @param key - The key to get the value for
7
- * @returns The value for the key
8
- */
9
- export declare function nativeStoreGet(key: string): string | null;
10
- /**
11
- * Set a value in the native store
12
- * @param key - The key to set the value for
13
- * @param value - The value to set
14
- */
15
- export declare function nativeStoreSet(key: string, value: string): void;
16
- //# sourceMappingURL=nativeStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nativeStore.d.ts","sourceRoot":"","sources":["../../../../../src/utils/nativeStore.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAUzD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAW/D"}
@@ -1,3 +0,0 @@
1
- import type { AuthFromEnvParams, AuthFromEnvReturn } from '@generaltranslation/react-core/types';
2
- export declare function readAuthFromEnv(params: AuthFromEnvParams): AuthFromEnvReturn;
3
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,sCAAsC,CAAC;AAE9C,wBAAgB,eAAe,CAAC,MAAM,EAAE,iBAAiB,GAAG,iBAAiB,CAM5E"}