@amazon-devices/react-navigation__native 7.0.9000000000 → 8.0.9000000000-rn-83

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 (232) hide show
  1. package/SystemBundles/c0d77be093c9724f49566be215c67240e6443c16760f772a745108ddaef15503.bundle +9117 -0
  2. package/SystemBundles/c0d77be093c9724f49566be215c67240e6443c16760f772a745108ddaef15503.map +3543 -0
  3. package/SystemModules/amzn__react-navigation__native-8.modules.txt +24 -0
  4. package/SystemModules/amzn__react-navigation__native-8.private.modules.txt +77 -0
  5. package/SystemModules/keplerscript-system-bundle-config.json +4 -4
  6. package/kepler-compatibility.json +2 -2
  7. package/lib/module/Link.js +31 -10
  8. package/lib/module/Link.js.map +1 -1
  9. package/lib/module/LinkingContext.js +7 -3
  10. package/lib/module/LinkingContext.js.map +1 -1
  11. package/lib/module/LocaleDirContext.js +6 -0
  12. package/lib/module/LocaleDirContext.js.map +1 -0
  13. package/lib/module/NavigationContainer.js +87 -59
  14. package/lib/module/NavigationContainer.js.map +1 -1
  15. package/lib/module/ServerContainer.js +20 -10
  16. package/lib/module/ServerContainer.js.map +1 -1
  17. package/lib/module/ServerContext.js +3 -2
  18. package/lib/module/ServerContext.js.map +1 -1
  19. package/lib/module/UnhandledLinkingContext.js +14 -0
  20. package/lib/module/UnhandledLinkingContext.js.map +1 -0
  21. package/lib/module/__stubs__/createStackNavigator.js +18 -0
  22. package/lib/module/__stubs__/createStackNavigator.js.map +1 -0
  23. package/lib/module/__stubs__/window.js +75 -0
  24. package/lib/module/__stubs__/window.js.map +1 -0
  25. package/lib/module/createMemoryHistory.js +19 -17
  26. package/lib/module/createMemoryHistory.js.map +1 -1
  27. package/lib/module/createStaticNavigation.js +54 -0
  28. package/lib/module/createStaticNavigation.js.map +1 -0
  29. package/lib/module/extractPathFromURL.js +6 -5
  30. package/lib/module/extractPathFromURL.js.map +1 -1
  31. package/lib/module/index.js +18 -13
  32. package/lib/module/index.js.map +1 -1
  33. package/lib/module/package.json +1 -0
  34. package/lib/module/theming/DarkTheme.js +6 -3
  35. package/lib/module/theming/DarkTheme.js.map +1 -1
  36. package/lib/module/theming/DefaultTheme.js +6 -3
  37. package/lib/module/theming/DefaultTheme.js.map +1 -1
  38. package/lib/module/theming/fonts.js +61 -0
  39. package/lib/module/theming/fonts.js.map +1 -0
  40. package/lib/module/types.js +2 -0
  41. package/lib/module/types.js.map +1 -1
  42. package/lib/module/useBackButton.js +3 -1
  43. package/lib/module/useBackButton.js.map +1 -1
  44. package/lib/module/useBackButton.native.js +3 -1
  45. package/lib/module/useBackButton.native.js.map +1 -1
  46. package/lib/module/useDocumentTitle.js +6 -4
  47. package/lib/module/useDocumentTitle.js.map +1 -1
  48. package/lib/module/useDocumentTitle.native.js +4 -2
  49. package/lib/module/useDocumentTitle.native.js.map +1 -1
  50. package/lib/module/useLinkBuilder.js +71 -40
  51. package/lib/module/useLinkBuilder.js.map +1 -1
  52. package/lib/module/useLinkProps.js +41 -36
  53. package/lib/module/useLinkProps.js.map +1 -1
  54. package/lib/module/useLinkTo.js +18 -28
  55. package/lib/module/useLinkTo.js.map +1 -1
  56. package/lib/module/useLinking.js +47 -19
  57. package/lib/module/useLinking.js.map +1 -1
  58. package/lib/module/useLinking.native.js +33 -28
  59. package/lib/module/useLinking.native.js.map +1 -1
  60. package/lib/module/useLocale.js +18 -0
  61. package/lib/module/useLocale.js.map +1 -0
  62. package/lib/module/useRoutePath.js +30 -0
  63. package/lib/module/useRoutePath.js.map +1 -0
  64. package/lib/module/useScrollToTop.js +11 -7
  65. package/lib/module/useScrollToTop.js.map +1 -1
  66. package/lib/module/useThenable.js +4 -1
  67. package/lib/module/useThenable.js.map +1 -1
  68. package/lib/typescript/package.json +1 -0
  69. package/lib/typescript/src/Link.d.ts +8 -10
  70. package/lib/typescript/src/Link.d.ts.map +1 -1
  71. package/lib/typescript/src/LinkingContext.d.ts +2 -3
  72. package/lib/typescript/src/LinkingContext.d.ts.map +1 -1
  73. package/lib/typescript/src/LocaleDirContext.d.ts +4 -0
  74. package/lib/typescript/src/LocaleDirContext.d.ts.map +1 -0
  75. package/lib/typescript/src/NavigationContainer.d.ts +36 -13
  76. package/lib/typescript/src/NavigationContainer.d.ts.map +1 -1
  77. package/lib/typescript/src/ServerContainer.d.ts +2 -3
  78. package/lib/typescript/src/ServerContainer.d.ts.map +1 -1
  79. package/lib/typescript/src/ServerContext.d.ts +1 -2
  80. package/lib/typescript/src/ServerContext.d.ts.map +1 -1
  81. package/lib/typescript/src/UnhandledLinkingContext.d.ts +6 -0
  82. package/lib/typescript/src/UnhandledLinkingContext.d.ts.map +1 -0
  83. package/lib/typescript/src/__stubs__/createStackNavigator.d.ts +13 -0
  84. package/lib/typescript/src/__stubs__/createStackNavigator.d.ts.map +1 -0
  85. package/lib/typescript/src/{__mocks__ → __stubs__}/window.d.ts +5 -6
  86. package/lib/typescript/src/__stubs__/window.d.ts.map +1 -0
  87. package/lib/typescript/src/createMemoryHistory.d.ts +1 -1
  88. package/lib/typescript/src/createMemoryHistory.d.ts.map +1 -1
  89. package/lib/typescript/src/createStaticNavigation.d.ts +34 -0
  90. package/lib/typescript/src/createStaticNavigation.d.ts.map +1 -0
  91. package/lib/typescript/src/extractPathFromURL.d.ts +1 -1
  92. package/lib/typescript/src/extractPathFromURL.d.ts.map +1 -1
  93. package/lib/typescript/src/index.d.ts +15 -12
  94. package/lib/typescript/src/index.d.ts.map +1 -1
  95. package/lib/typescript/src/theming/DarkTheme.d.ts +1 -2
  96. package/lib/typescript/src/theming/DarkTheme.d.ts.map +1 -1
  97. package/lib/typescript/src/theming/DefaultTheme.d.ts +1 -2
  98. package/lib/typescript/src/theming/DefaultTheme.d.ts.map +1 -1
  99. package/lib/typescript/src/theming/fonts.d.ts +53 -0
  100. package/lib/typescript/src/theming/fonts.d.ts.map +1 -0
  101. package/lib/typescript/src/types.d.ts +35 -3
  102. package/lib/typescript/src/types.d.ts.map +1 -1
  103. package/lib/typescript/src/useBackButton.d.ts +1 -2
  104. package/lib/typescript/src/useBackButton.d.ts.map +1 -1
  105. package/lib/typescript/src/useBackButton.native.d.ts +1 -1
  106. package/lib/typescript/src/useBackButton.native.d.ts.map +1 -1
  107. package/lib/typescript/src/useDocumentTitle.d.ts +1 -1
  108. package/lib/typescript/src/useDocumentTitle.d.ts.map +1 -1
  109. package/lib/typescript/src/useDocumentTitle.native.d.ts +1 -1
  110. package/lib/typescript/src/useDocumentTitle.native.d.ts.map +1 -1
  111. package/lib/typescript/src/useLinkBuilder.d.ts +97 -3
  112. package/lib/typescript/src/useLinkBuilder.d.ts.map +1 -1
  113. package/lib/typescript/src/useLinkProps.d.ts +23 -10
  114. package/lib/typescript/src/useLinkProps.d.ts.map +1 -1
  115. package/lib/typescript/src/useLinkTo.d.ts +6 -8
  116. package/lib/typescript/src/useLinkTo.d.ts.map +1 -1
  117. package/lib/typescript/src/useLinking.d.ts +5 -46
  118. package/lib/typescript/src/useLinking.d.ts.map +1 -1
  119. package/lib/typescript/src/useLinking.native.d.ts +11 -29
  120. package/lib/typescript/src/useLinking.native.d.ts.map +1 -1
  121. package/lib/typescript/src/useLocale.d.ts +7 -0
  122. package/lib/typescript/src/useLocale.d.ts.map +1 -0
  123. package/lib/typescript/src/useRoutePath.d.ts +7 -0
  124. package/lib/typescript/src/useRoutePath.d.ts.map +1 -0
  125. package/lib/typescript/src/useScrollToTop.d.ts +2 -2
  126. package/lib/typescript/src/useScrollToTop.d.ts.map +1 -1
  127. package/lib/typescript/src/useThenable.d.ts +1 -1
  128. package/lib/typescript/src/useThenable.d.ts.map +1 -1
  129. package/oss-attribution/attribution.txt +50 -0
  130. package/oss-attribution/licenseInfos.json +18 -0
  131. package/package.json +97 -1
  132. package/src/Link.tsx +36 -20
  133. package/src/LinkingContext.tsx +9 -5
  134. package/src/LocaleDirContext.tsx +7 -0
  135. package/src/NavigationContainer.tsx +128 -69
  136. package/src/ServerContainer.tsx +4 -3
  137. package/src/ServerContext.tsx +1 -3
  138. package/src/UnhandledLinkingContext.tsx +18 -0
  139. package/src/__stubs__/createStackNavigator.tsx +46 -0
  140. package/src/{__mocks__ → __stubs__}/window.tsx +8 -8
  141. package/src/createMemoryHistory.tsx +16 -11
  142. package/src/createStaticNavigation.tsx +109 -0
  143. package/src/extractPathFromURL.tsx +3 -3
  144. package/src/index.tsx +15 -12
  145. package/src/theming/DarkTheme.tsx +3 -3
  146. package/src/theming/DefaultTheme.tsx +3 -3
  147. package/src/theming/fonts.tsx +63 -0
  148. package/src/types.tsx +49 -3
  149. package/src/useBackButton.native.tsx +2 -2
  150. package/src/useBackButton.tsx +2 -2
  151. package/src/useDocumentTitle.native.tsx +2 -2
  152. package/src/useDocumentTitle.tsx +2 -2
  153. package/src/useLinkBuilder.tsx +100 -55
  154. package/src/useLinkProps.tsx +80 -50
  155. package/src/useLinkTo.tsx +13 -53
  156. package/src/useLinking.native.tsx +33 -31
  157. package/src/useLinking.tsx +70 -23
  158. package/src/useLocale.tsx +18 -0
  159. package/src/useRoutePath.tsx +34 -0
  160. package/src/useScrollToTop.tsx +16 -12
  161. package/src/useThenable.tsx +2 -1
  162. package/SystemBundles/41869b563992545ca95a9a2f729e958cbdcada7391919e8e02112d791754072a.bundle +0 -14508
  163. package/SystemBundles/41869b563992545ca95a9a2f729e958cbdcada7391919e8e02112d791754072a.map +0 -5157
  164. package/SystemModules/amzn__react-navigation__native-7.modules.txt +0 -76
  165. package/SystemModules/amzn__react-navigation__native-7.private.modules.txt +0 -100
  166. package/THIRD_PARTY_NOTICES.txt +0 -24
  167. package/lib/commonjs/Link.js +0 -50
  168. package/lib/commonjs/Link.js.map +0 -1
  169. package/lib/commonjs/LinkingContext.js +0 -15
  170. package/lib/commonjs/LinkingContext.js.map +0 -1
  171. package/lib/commonjs/NavigationContainer.js +0 -109
  172. package/lib/commonjs/NavigationContainer.js.map +0 -1
  173. package/lib/commonjs/ServerContainer.js +0 -54
  174. package/lib/commonjs/ServerContainer.js.map +0 -1
  175. package/lib/commonjs/ServerContext.js +0 -12
  176. package/lib/commonjs/ServerContext.js.map +0 -1
  177. package/lib/commonjs/createMemoryHistory.js +0 -220
  178. package/lib/commonjs/createMemoryHistory.js.map +0 -1
  179. package/lib/commonjs/extractPathFromURL.js +0 -25
  180. package/lib/commonjs/extractPathFromURL.js.map +0 -1
  181. package/lib/commonjs/index.js +0 -129
  182. package/lib/commonjs/index.js.map +0 -1
  183. package/lib/commonjs/theming/DarkTheme.js +0 -19
  184. package/lib/commonjs/theming/DarkTheme.js.map +0 -1
  185. package/lib/commonjs/theming/DefaultTheme.js +0 -19
  186. package/lib/commonjs/theming/DefaultTheme.js.map +0 -1
  187. package/lib/commonjs/theming/ThemeContext.js +0 -15
  188. package/lib/commonjs/theming/ThemeContext.js.map +0 -1
  189. package/lib/commonjs/theming/ThemeProvider.js +0 -20
  190. package/lib/commonjs/theming/ThemeProvider.js.map +0 -1
  191. package/lib/commonjs/theming/useTheme.js +0 -16
  192. package/lib/commonjs/theming/useTheme.js.map +0 -1
  193. package/lib/commonjs/types.js +0 -6
  194. package/lib/commonjs/types.js.map +0 -1
  195. package/lib/commonjs/useBackButton.js +0 -11
  196. package/lib/commonjs/useBackButton.js.map +0 -1
  197. package/lib/commonjs/useBackButton.native.js +0 -27
  198. package/lib/commonjs/useBackButton.native.js.map +0 -1
  199. package/lib/commonjs/useDocumentTitle.js +0 -32
  200. package/lib/commonjs/useDocumentTitle.js.map +0 -1
  201. package/lib/commonjs/useDocumentTitle.native.js +0 -10
  202. package/lib/commonjs/useDocumentTitle.native.js.map +0 -1
  203. package/lib/commonjs/useLinkBuilder.js +0 -63
  204. package/lib/commonjs/useLinkBuilder.js.map +0 -1
  205. package/lib/commonjs/useLinkProps.js +0 -97
  206. package/lib/commonjs/useLinkProps.js.map +0 -1
  207. package/lib/commonjs/useLinkTo.js +0 -45
  208. package/lib/commonjs/useLinkTo.js.map +0 -1
  209. package/lib/commonjs/useLinking.js +0 -303
  210. package/lib/commonjs/useLinking.js.map +0 -1
  211. package/lib/commonjs/useLinking.native.js +0 -152
  212. package/lib/commonjs/useLinking.native.js.map +0 -1
  213. package/lib/commonjs/useScrollToTop.js +0 -95
  214. package/lib/commonjs/useScrollToTop.js.map +0 -1
  215. package/lib/commonjs/useThenable.js +0 -41
  216. package/lib/commonjs/useThenable.js.map +0 -1
  217. package/lib/module/theming/ThemeContext.js +0 -6
  218. package/lib/module/theming/ThemeContext.js.map +0 -1
  219. package/lib/module/theming/ThemeProvider.js +0 -11
  220. package/lib/module/theming/ThemeProvider.js.map +0 -1
  221. package/lib/module/theming/useTheme.js +0 -7
  222. package/lib/module/theming/useTheme.js.map +0 -1
  223. package/lib/typescript/src/__mocks__/window.d.ts.map +0 -1
  224. package/lib/typescript/src/theming/ThemeContext.d.ts +0 -5
  225. package/lib/typescript/src/theming/ThemeContext.d.ts.map +0 -1
  226. package/lib/typescript/src/theming/ThemeProvider.d.ts +0 -9
  227. package/lib/typescript/src/theming/ThemeProvider.d.ts.map +0 -1
  228. package/lib/typescript/src/theming/useTheme.d.ts +0 -2
  229. package/lib/typescript/src/theming/useTheme.d.ts.map +0 -1
  230. package/src/theming/ThemeContext.tsx +0 -10
  231. package/src/theming/ThemeProvider.tsx +0 -15
  232. package/src/theming/useTheme.tsx +0 -9
@@ -0,0 +1,24 @@
1
+ node_modules/@amzn/react-navigation__native_8/lib/module/index.js:064a8a0da599487437e5
2
+ node_modules/@amzn/react-navigation__native_8/lib/module/theming/DarkTheme.js:15de5a737514592b18ba
3
+ node_modules/@amzn/react-navigation__native_8/lib/module/theming/fonts.js:653cd8342c813b0c8248
4
+ node_modules/@amzn/react-navigation__native_8/lib/module/theming/DefaultTheme.js:06eacef2819f940f84ba
5
+ node_modules/@amzn/react-navigation__native_8/lib/module/Link.js:85ee28d9d9459b18bd39
6
+ node_modules/@amzn/react-navigation__native_8/lib/module/useLinkProps.js:4760aa590aa6228c8568
7
+ node_modules/@amzn/react-navigation__native_8/lib/module/LinkingContext.js:3250dfb2c1f8a58a2687
8
+ node_modules/@amzn/react-navigation__native_8/lib/module/LocaleDirContext.js:463cee79c8388629d274
9
+ node_modules/@amzn/react-navigation__native_8/lib/module/NavigationContainer.js:13699e0537cc52048b18
10
+ node_modules/@amzn/react-navigation__native_8/lib/module/useBackButton.native.js:0cee20c5e50f6b28034b
11
+ node_modules/@amzn/react-navigation__native_8/lib/module/useDocumentTitle.native.js:db920d1d7d331da71fde
12
+ node_modules/@amzn/react-navigation__native_8/lib/module/useLinking.native.js:3b4272af8355de52b135
13
+ node_modules/@amzn/react-navigation__native_8/lib/module/extractPathFromURL.js:974896e036add3db2fa4
14
+ node_modules/@amzn/react-navigation__native_8/lib/module/useThenable.js:3cc3b349a3bb8d3544d4
15
+ node_modules/@amzn/react-navigation__native_8/lib/module/UnhandledLinkingContext.js:3de0b24cff595287ff37
16
+ node_modules/@amzn/react-navigation__native_8/lib/module/ServerContainer.js:1c373a1b438f914cef47
17
+ node_modules/@amzn/react-navigation__native_8/lib/module/ServerContext.js:65c69f77fa5fb519d0f2
18
+ node_modules/@amzn/react-navigation__native_8/lib/module/createStaticNavigation.js:ff77f65c9c89d0179c8a
19
+ node_modules/@amzn/react-navigation__native_8/lib/module/useLinkBuilder.js:841e7b7226da097f7254
20
+ node_modules/@amzn/react-navigation__native_8/lib/module/useLinkTo.js:c61ea8b2f1abb373e522
21
+ node_modules/@amzn/react-navigation__native_8/lib/module/useLocale.js:7d1edf48823501888746
22
+ node_modules/@amzn/react-navigation__native_8/lib/module/useRoutePath.js:01120ae9a2a6a336b976
23
+ node_modules/@amzn/react-navigation__native_8/lib/module/useScrollToTop.js:f86d3d8081329d24ccb0
24
+ node_modules/@amzn/react-navigation__native_8/lib/module/types.js:b184b5d77b31fddc34a2
@@ -0,0 +1,77 @@
1
+ node_modules/@babel/runtime_7.29.2/helpers/interopRequireDefault.js:d3b57c8ff490ba8c7c47
2
+ node_modules/@babel/runtime_7.29.2/helpers/classCallCheck.js:2bfb5e99807ec81b822f
3
+ node_modules/@babel/runtime_7.29.2/helpers/createClass.js:cc42269051bc9ff17a63
4
+ node_modules/@babel/runtime_7.29.2/helpers/toPropertyKey.js:7519d1b9ea0de500d604
5
+ node_modules/@babel/runtime_7.29.2/helpers/toPrimitive.js:6c47e04d255cdfb1533c
6
+ node_modules/@babel/runtime_7.29.2/helpers/typeof.js:7b6247ce00695d888c36
7
+ node_modules/@babel/runtime_7.29.2/helpers/possibleConstructorReturn.js:80a4a0ee188e065108c9
8
+ node_modules/@babel/runtime_7.29.2/helpers/assertThisInitialized.js:7a9699b26019ae7270f5
9
+ node_modules/@babel/runtime_7.29.2/helpers/getPrototypeOf.js:9c829ff5032996ffdc8e
10
+ node_modules/@babel/runtime_7.29.2/helpers/get.js:659b028086c2c6f074a3
11
+ node_modules/@babel/runtime_7.29.2/helpers/superPropBase.js:263943b885b53437e9e0
12
+ node_modules/@babel/runtime_7.29.2/helpers/inherits.js:3ebfecb28bc5857801a2
13
+ node_modules/@babel/runtime_7.29.2/helpers/setPrototypeOf.js:ea37d1dec222e5845b2b
14
+ node_modules/@babel/runtime_7.29.2/helpers/classPrivateFieldLooseBase.js:8e4a72d63eec1bceb909
15
+ node_modules/@babel/runtime_7.29.2/helpers/classPrivateFieldLooseKey.js:3998b40f87a7681fa397
16
+ node_modules/invariant_2.2.4/browser.js:fd099686726b2dfb6f66
17
+ node_modules/@babel/runtime_7.29.2/helpers/slicedToArray.js:8972a767e9133b0e3a28
18
+ node_modules/@babel/runtime_7.29.2/helpers/arrayWithHoles.js:ee99881fa9643e7bd96f
19
+ node_modules/@babel/runtime_7.29.2/helpers/iterableToArrayLimit.js:1847ec9d510321afd855
20
+ node_modules/@babel/runtime_7.29.2/helpers/unsupportedIterableToArray.js:0c30490eff100ca51d7c
21
+ node_modules/@babel/runtime_7.29.2/helpers/arrayLikeToArray.js:93f664c5afc3b3c0ffb9
22
+ node_modules/@babel/runtime_7.29.2/helpers/nonIterableRest.js:9ef80b625777ecb8d705
23
+ node_modules/@react-native/normalize-colors_0.83.0/index.js:e8e087936fed8afe0814
24
+ node_modules/@babel/runtime_7.29.2/helpers/objectWithoutProperties.js:54be67f13f7547a51521
25
+ node_modules/@babel/runtime_7.29.2/helpers/objectWithoutPropertiesLoose.js:ae112a2672a8a53f82e5
26
+ node_modules/nullthrows_1.1.1/nullthrows.js:afd4874b36ccd4e13961
27
+ node_modules/@react-native/assets-registry_0.83.0/registry.js:5ff9e23a9ba5a1a1e0ac
28
+ node_modules/@react-native/assets-registry_0.83.0/path-support.js:fb4eb45d6b2fc494317c
29
+ node_modules/@babel/runtime_7.29.2/helpers/wrapNativeSuper.js:b510ad86a9e18c7a79b6
30
+ node_modules/@babel/runtime_7.29.2/helpers/isNativeFunction.js:74c2adc9de6e582a35f1
31
+ node_modules/@babel/runtime_7.29.2/helpers/construct.js:d66ad0c399283f558869
32
+ node_modules/@babel/runtime_7.29.2/helpers/isNativeReflectConstruct.js:22840e4117f5dbcb3b06
33
+ node_modules/promise_8.3.0/setimmediate/es6-extensions.js:a7846fdeffeb1ebf6241
34
+ node_modules/promise_8.3.0/setimmediate/core.js:890f60fa94d3f6854a19
35
+ node_modules/promise_8.3.0/setimmediate/finally.js:15bc4ccb25fc2d0c4428
36
+ node_modules/stacktrace-parser_0.1.11/dist/stack-trace-parser.cjs.js:aa725aa4c0b37e1add33
37
+ node_modules/regenerator-runtime_0.13.11/runtime.js:af823d9710c534173a4d
38
+ node_modules/base64-js_1.5.1/index.js:71af70f51435e3e1b37b
39
+ node_modules/whatwg-fetch_3.6.20/dist/fetch.umd.js:ca4b0363146267ef3e77
40
+ node_modules/abort-controller_3.0.0/dist/abort-controller.js:ea8fcbd647aab1cfcdaa
41
+ node_modules/event-target-shim_5.0.1/dist/event-target-shim.js:2bd3f165b1ed6b916de7
42
+ node_modules/scheduler_0.27.0/index.native.js:ec9ec59f48073ee6e9f5
43
+ node_modules/scheduler_0.27.0/cjs/scheduler.native.production.js:d8f1930d0c79328207a3
44
+ node_modules/@babel/runtime_7.29.2/helpers/readOnlyError.js:b769be1a7481ccdab905
45
+ node_modules/@react-native/virtualized-lists_0.83.0/index.js:a7726730afdc356adbe4
46
+ node_modules/@react-native/virtualized-lists_0.83.0/Lists/VirtualizeUtils.js:d0ff6d3d1f2c9580ab13
47
+ node_modules/@react-native/virtualized-lists_0.83.0/Lists/VirtualizedList.js:8d139349672eea405ffb
48
+ node_modules/@react-native/virtualized-lists_0.83.0/Utilities/clamp.js:a78a6606e498a2fdbf2d
49
+ node_modules/@react-native/virtualized-lists_0.83.0/Utilities/infoLog.js:017b2813127d2e7f4d70
50
+ node_modules/@react-native/virtualized-lists_0.83.0/Lists/ChildListCollection.js:9c3630060e6e634bfb8b
51
+ node_modules/@react-native/virtualized-lists_0.83.0/Lists/FillRateHelper.js:c1e83141f045b25e26fc
52
+ node_modules/@react-native/virtualized-lists_0.83.0/Lists/ListMetricsAggregator.js:480fcd792bed2eb457f3
53
+ node_modules/@react-native/virtualized-lists_0.83.0/Lists/StateSafePureComponent.js:fd4823cbe6aa108a7d62
54
+ node_modules/@react-native/virtualized-lists_0.83.0/Lists/ViewabilityHelper.js:a44a41089be71f9f7b1e
55
+ node_modules/@react-native/virtualized-lists_0.83.0/Lists/VirtualizedListCellRenderer.js:8aa7cf31c704a4a85db2
56
+ node_modules/@react-native/virtualized-lists_0.83.0/Lists/VirtualizedListContext.js:4b89f56515b0628d3446
57
+ node_modules/@react-native/virtualized-lists_0.83.0/Lists/VirtualizedListProps.js:516cf3cf4ecb4e256407
58
+ node_modules/@react-native/virtualized-lists_0.83.0/Lists/CellRenderMask.js:95aa36c0870d6d5cfdb1
59
+ node_modules/@react-native/virtualized-lists_0.83.0/Lists/VirtualizedSectionList.js:cb8631f113fda0d4a92c
60
+ node_modules/memoize-one_5.2.1/dist/memoize-one.cjs.js:d381691ed29bec5a2050
61
+ node_modules/@babel/runtime_7.29.2/helpers/asyncToGenerator.js:37d2d0df8e62891cc30d
62
+ node_modules/use-latest-callback_0.2.6/esm.mjs:62095b319443680fd483
63
+ node_modules/use-latest-callback_0.2.6/lib/src/index.js:7beabb432668b871cb05
64
+ node_modules/nanoid_3.3.11/non-secure/index.js:f9dacdfad56c8f57acc2
65
+ node_modules/react-is_19.2.4/index.js:fd262cb0c7ae63a2fa43
66
+ node_modules/react-is_19.2.4/cjs/react-is.production.js:b974eb2711f62a443eb9
67
+ node_modules/query-string_7.1.3/index.js:ff0fc26247fd2f6e2bc9
68
+ node_modules/strict-uri-encode_2.0.0/index.js:6c76b37f74c115e29e96
69
+ node_modules/decode-uri-component_0.2.2/index.js:b39ee987403b752f74b9
70
+ node_modules/split-on-first_1.1.0/index.js:67acda24cfcd7581ec59
71
+ node_modules/filter-obj_1.1.0/index.js:5f6f1050a714764e298b
72
+ node_modules/escape-string-regexp_4.0.0/index.js:c8bebab0d5f6b23cde75
73
+ node_modules/fast-deep-equal_3.1.3/index.js:c83c5e51638a2455a863
74
+ node_modules/use-sync-external-store_1.6.0/with-selector.js:42f26a1e78127d02f0b6
75
+ node_modules/use-sync-external-store_1.6.0/cjs/use-sync-external-store-with-selector.production.js:8bf9fe02a55e6d587c8f
76
+ node_modules/@babel/runtime_7.29.2/helpers/toArray.js:faa875ac6e1fab533258
77
+ node_modules/@babel/runtime_7.29.2/helpers/iterableToArray.js:a557e0618dee554f2e2b
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "@amzn/react-navigation__native": {
3
- "nameOnDevice": "index.amzn__react-navigation__native-7.hermes.bundle",
4
- "modulesPath": "amzn__react-navigation__native-7.modules.txt",
5
- "privateModulesPath": "amzn__react-navigation__native-7.private.modules.txt"
3
+ "nameOnDevice": "index.amzn__react-navigation__native-8.hermes.bundle",
4
+ "modulesPath": "amzn__react-navigation__native-8.modules.txt",
5
+ "privateModulesPath": "amzn__react-navigation__native-8.private.modules.txt"
6
6
  }
7
- }
7
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "versions": {
3
- "7.0.0": "/com.amazon.kepler.navigation__native_7@INavigation__Native_0",
4
- "7.0.9000000000": "/com.amazon.kepler.navigation__native_7@INavigation__Native_0"
3
+ "8.0.0": "/com.amazon.kepler.navigation__native_8@INavigation__Native_0",
4
+ "8.0.9000000000": "/com.amazon.kepler.navigation__native_8@INavigation__Native_0"
5
5
  }
6
6
  }
@@ -1,29 +1,47 @@
1
+ "use strict";
2
+
3
+ import { useTheme } from '@amazon-devices/react-navigation__core';
1
4
  import * as React from 'react';
2
5
  import { Platform, Text } from 'react-native';
3
- import useLinkProps from './useLinkProps';
6
+ import { useLinkProps } from "./useLinkProps.js";
4
7
  /**
5
8
  * Component to render link to another screen using a path.
6
9
  * Uses an anchor tag on the web.
7
10
  *
8
- * @param props.to Absolute path to screen (e.g. `/feeds/hot`).
11
+ * @param props.screen Name of the screen to navigate to (e.g. `'Feeds'`).
12
+ * @param props.params Params to pass to the screen to navigate to (e.g. `{ sort: 'hot' }`).
13
+ * @param props.href Optional absolute path to use for the href (e.g. `/feeds/hot`).
9
14
  * @param props.action Optional action to use for in-page navigation. By default, the path is parsed to an action based on linking config.
10
15
  * @param props.children Child elements to render the content.
11
16
  */
12
- export default function Link({
13
- to,
17
+ export function Link({
18
+ screen,
19
+ params,
14
20
  action,
21
+ href,
22
+ style,
15
23
  ...rest
16
24
  }) {
25
+ const {
26
+ colors,
27
+ fonts
28
+ } = useTheme();
29
+ // @ts-expect-error: This is already type-checked by the prop types
17
30
  const props = useLinkProps({
18
- to,
19
- action
31
+ screen,
32
+ params,
33
+ action,
34
+ href
20
35
  });
21
36
  const onPress = e => {
22
37
  if ('onPress' in rest) {
23
- var _rest$onPress;
24
- (_rest$onPress = rest.onPress) === null || _rest$onPress === void 0 || _rest$onPress.call(rest, e);
38
+ rest.onPress?.(e);
39
+ }
40
+
41
+ // Let user prevent default behavior
42
+ if (!e.defaultPrevented) {
43
+ props.onPress(e);
25
44
  }
26
- props.onPress(e);
27
45
  };
28
46
  return /*#__PURE__*/React.createElement(Text, {
29
47
  ...props,
@@ -35,7 +53,10 @@ export default function Link({
35
53
  default: {
36
54
  onPress
37
55
  }
38
- })
56
+ }),
57
+ style: [{
58
+ color: colors.primary
59
+ }, fonts.regular, style]
39
60
  });
40
61
  }
41
62
  //# sourceMappingURL=Link.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Platform","Text","useLinkProps","Link","to","action","rest","props","onPress","e","_rest$onPress","call","createElement","select","web","onClick","default"],"sourceRoot":"../../src","sources":["Link.tsx"],"mappings":"AACA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAAgCC,QAAQ,EAAEC,IAAI,QAAmB,cAAc;AAE/E,OAAOC,YAAY,MAAM,gBAAgB;AAezC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,IAAIA,CAAkD;EAC5EC,EAAE;EACFC,MAAM;EACN,GAAGC;AACa,CAAC,EAAE;EACnB,MAAMC,KAAK,GAAGL,YAAY,CAAY;IAAEE,EAAE;IAAEC;EAAO,CAAC,CAAC;EAErD,MAAMG,OAAO,GACXC,CAA0E,IACvE;IACH,IAAI,SAAS,IAAIH,IAAI,EAAE;MAAA,IAAAI,aAAA;MACrB,CAAAA,aAAA,GAAAJ,IAAI,CAACE,OAAO,cAAAE,aAAA,eAAZA,aAAA,CAAAC,IAAA,CAAAL,IAAI,EAAWG,CAAC,CAAC;IACnB;IAEAF,KAAK,CAACC,OAAO,CAACC,CAAC,CAAC;EAClB,CAAC;EAED,oBAAOV,KAAK,CAACa,aAAa,CAACX,IAAI,EAAE;IAC/B,GAAGM,KAAK;IACR,GAAGD,IAAI;IACP,GAAGN,QAAQ,CAACa,MAAM,CAAC;MACjBC,GAAG,EAAE;QAAEC,OAAO,EAAEP;MAAQ,CAAQ;MAChCQ,OAAO,EAAE;QAAER;MAAQ;IACrB,CAAC;EACH,CAAC,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["useTheme","React","Platform","Text","useLinkProps","Link","screen","params","action","href","style","rest","colors","fonts","props","onPress","e","defaultPrevented","createElement","select","web","onClick","default","color","primary","regular"],"sourceRoot":"../../src","sources":["Link.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,8BAA8B;AACvD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAEEC,QAAQ,EACRC,IAAI,QAEC,cAAc;AAErB,SAAyBC,YAAY,QAAQ,mBAAgB;AAe7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAAkD;EACpEC,MAAM;EACNC,MAAM;EACNC,MAAM;EACNC,IAAI;EACJC,KAAK;EACL,GAAGC;AACa,CAAC,EAAE;EACnB,MAAM;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAGb,QAAQ,CAAC,CAAC;EACpC;EACA,MAAMc,KAAK,GAAGV,YAAY,CAAY;IAAEE,MAAM;IAAEC,MAAM;IAAEC,MAAM;IAAEC;EAAK,CAAC,CAAC;EAEvE,MAAMM,OAAO,GACXC,CAA0E,IACvE;IACH,IAAI,SAAS,IAAIL,IAAI,EAAE;MACrBA,IAAI,CAACI,OAAO,GAAGC,CAAC,CAAC;IACnB;;IAEA;IACA,IAAI,CAACA,CAAC,CAACC,gBAAgB,EAAE;MACvBH,KAAK,CAACC,OAAO,CAACC,CAAC,CAAC;IAClB;EACF,CAAC;EAED,oBAAOf,KAAK,CAACiB,aAAa,CAACf,IAAI,EAAE;IAC/B,GAAGW,KAAK;IACR,GAAGH,IAAI;IACP,GAAGT,QAAQ,CAACiB,MAAM,CAAC;MACjBC,GAAG,EAAE;QAAEC,OAAO,EAAEN;MAAQ,CAAQ;MAChCO,OAAO,EAAE;QAAEP;MAAQ;IACrB,CAAC,CAAC;IACFL,KAAK,EAAE,CAAC;MAAEa,KAAK,EAAEX,MAAM,CAACY;IAAQ,CAAC,EAAEX,KAAK,CAACY,OAAO,EAAEf,KAAK;EACzD,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -1,7 +1,11 @@
1
+ "use strict";
2
+
1
3
  import * as React from 'react';
2
- const LinkingContext = /*#__PURE__*/React.createContext({
3
- options: undefined
4
+ const MISSING_CONTEXT_ERROR = "Couldn't find a LinkingContext context.";
5
+ export const LinkingContext = /*#__PURE__*/React.createContext({
6
+ get options() {
7
+ throw new Error(MISSING_CONTEXT_ERROR);
8
+ }
4
9
  });
5
10
  LinkingContext.displayName = 'LinkingContext';
6
- export default LinkingContext;
7
11
  //# sourceMappingURL=LinkingContext.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","LinkingContext","createContext","options","undefined","displayName"],"sourceRoot":"../../src","sources":["LinkingContext.tsx"],"mappings":"AACA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAI9B,MAAMC,cAAc,gBAAGD,KAAK,CAACE,aAAa,CAEvC;EAAEC,OAAO,EAAEC;AAAU,CAAC,CAAC;AAE1BH,cAAc,CAACI,WAAW,GAAG,gBAAgB;AAE7C,eAAeJ,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["React","MISSING_CONTEXT_ERROR","LinkingContext","createContext","options","Error","displayName"],"sourceRoot":"../../src","sources":["LinkingContext.tsx"],"mappings":";;AACA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAI9B,MAAMC,qBAAqB,GAAG,yCAAyC;AAEvE,OAAO,MAAMC,cAAc,gBAAGF,KAAK,CAACG,aAAa,CAE9C;EACD,IAAIC,OAAOA,CAAA,EAAQ;IACjB,MAAM,IAAIC,KAAK,CAACJ,qBAAqB,CAAC;EACxC;AACF,CAAC,CAAC;AAEFC,cAAc,CAACI,WAAW,GAAG,gBAAgB","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ import * as React from 'react';
4
+ export const LocaleDirContext = /*#__PURE__*/React.createContext('ltr');
5
+ LocaleDirContext.displayName = 'LocaleDirContext';
6
+ //# sourceMappingURL=LocaleDirContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","LocaleDirContext","createContext","displayName"],"sourceRoot":"../../src","sources":["LocaleDirContext.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAI9B,OAAO,MAAMC,gBAAgB,gBAAGD,KAAK,CAACE,aAAa,CAAkB,KAAK,CAAC;AAE3ED,gBAAgB,CAACE,WAAW,GAAG,kBAAkB","ignoreList":[]}
@@ -1,52 +1,73 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import { BaseNavigationContainer, getActionFromState, getPathFromState, getStateFromPath, validatePathConfig } from '@amazon-devices/react-navigation__core';
1
+ "use strict";
2
+
3
+ import { BaseNavigationContainer, getActionFromState, getPathFromState, getStateFromPath, ThemeProvider, validatePathConfig } from '@amazon-devices/react-navigation__core';
3
4
  import * as React from 'react';
4
- import LinkingContext from './LinkingContext';
5
- import DefaultTheme from './theming/DefaultTheme';
6
- import ThemeProvider from './theming/ThemeProvider';
7
- import useBackButton from './useBackButton';
8
- import useDocumentTitle from './useDocumentTitle';
9
- import useLinking from './useLinking';
10
- import useThenable from './useThenable';
11
- global.REACT_NAVIGATION_DEVTOOLS = new WeakMap();
12
- /**
13
- * Container component which holds the navigation state designed for React Native apps.
14
- * This should be rendered at the root wrapping the whole app.
15
- *
16
- * @param props.initialState Initial state object for the navigation tree. When deep link handling is enabled, this will override deep links when specified. Make sure that you don't specify an `initialState` when there's a deep link (`Linking.getInitialURL()`).
17
- * @param props.onReady Callback which is called after the navigation tree mounts.
18
- * @param props.onStateChange Callback which is called with the latest navigation state when it changes.
19
- * @param props.theme Theme object for the navigators.
20
- * @param props.linking Options for deep linking. Deep link handling is enabled when this prop is provided, unless `linking.enabled` is `false`.
21
- * @param props.fallback Fallback component to render until we have finished getting initial state when linking is enabled. Defaults to `null`.
22
- * @param props.documentTitle Options to configure the document title on Web. Updating document title is handled by default unless `documentTitle.enabled` is `false`.
23
- * @param props.children Child elements to render the content.
24
- * @param props.ref Ref object which refers to the navigation object containing helper methods.
25
- */
5
+ import { I18nManager } from 'react-native';
6
+ import useLatestCallback from 'use-latest-callback';
7
+ import { LinkingContext } from "./LinkingContext.js";
8
+ import { LocaleDirContext } from "./LocaleDirContext.js";
9
+ import { DefaultTheme } from "./theming/DefaultTheme.js";
10
+ import { UnhandledLinkingContext } from "./UnhandledLinkingContext.js";
11
+ import { useBackButton } from './useBackButton';
12
+ import { useDocumentTitle } from './useDocumentTitle';
13
+ import { useLinking } from './useLinking';
14
+ import { useThenable } from "./useThenable.js";
15
+ import { jsx as _jsx } from "react/jsx-runtime";
16
+ globalThis.REACT_NAVIGATION_DEVTOOLS = new WeakMap();
26
17
  function NavigationContainerInner({
18
+ direction = I18nManager.getConstants().isRTL ? 'rtl' : 'ltr',
27
19
  theme = DefaultTheme,
28
20
  linking,
29
21
  fallback = null,
30
22
  documentTitle,
31
23
  onReady,
24
+ onStateChange,
32
25
  ...rest
33
26
  }, ref) {
34
27
  const isLinkingEnabled = linking ? linking.enabled !== false : false;
35
- if (linking !== null && linking !== void 0 && linking.config) {
28
+ if (linking?.config) {
36
29
  validatePathConfig(linking.config);
37
30
  }
38
31
  const refContainer = React.useRef(null);
39
32
  useBackButton(refContainer);
40
33
  useDocumentTitle(refContainer, documentTitle);
34
+ const [lastUnhandledLink, setLastUnhandledLink] = React.useState();
41
35
  const {
42
36
  getInitialState
43
37
  } = useLinking(refContainer, {
44
- independent: rest.independent,
45
38
  enabled: isLinkingEnabled,
46
39
  prefixes: [],
47
40
  ...linking
41
+ }, setLastUnhandledLink);
42
+ const linkingContext = React.useMemo(() => ({
43
+ options: linking
44
+ }), [linking]);
45
+ const unhandledLinkingContext = React.useMemo(() => ({
46
+ lastUnhandledLink,
47
+ setLastUnhandledLink
48
+ }), [lastUnhandledLink, setLastUnhandledLink]);
49
+ const onReadyForLinkingHandling = useLatestCallback(() => {
50
+ // If the screen path matches lastUnhandledLink, we do not track it
51
+ const path = refContainer.current?.getCurrentRoute()?.path;
52
+ setLastUnhandledLink(previousLastUnhandledLink => {
53
+ if (previousLastUnhandledLink === path) {
54
+ return undefined;
55
+ }
56
+ return previousLastUnhandledLink;
57
+ });
58
+ onReady?.();
59
+ });
60
+ const onStateChangeForLinkingHandling = useLatestCallback(state => {
61
+ // If the screen path matches lastUnhandledLink, we do not track it
62
+ const path = refContainer.current?.getCurrentRoute()?.path;
63
+ setLastUnhandledLink(previousLastUnhandledLink => {
64
+ if (previousLastUnhandledLink === path) {
65
+ return undefined;
66
+ }
67
+ return previousLastUnhandledLink;
68
+ });
69
+ onStateChange?.(state);
48
70
  });
49
-
50
71
  // Add additional linking related info to the ref
51
72
  // This will be used by the devtools
52
73
  React.useEffect(() => {
@@ -56,45 +77,52 @@ function NavigationContainerInner({
56
77
  return {
57
78
  ...linking,
58
79
  enabled: isLinkingEnabled,
59
- prefixes: (linking === null || linking === void 0 ? void 0 : linking.prefixes) ?? [],
60
- getStateFromPath: (linking === null || linking === void 0 ? void 0 : linking.getStateFromPath) ?? getStateFromPath,
61
- getPathFromState: (linking === null || linking === void 0 ? void 0 : linking.getPathFromState) ?? getPathFromState,
62
- getActionFromState: (linking === null || linking === void 0 ? void 0 : linking.getActionFromState) ?? getActionFromState
80
+ prefixes: linking?.prefixes ?? [],
81
+ getStateFromPath: linking?.getStateFromPath ?? getStateFromPath,
82
+ getPathFromState: linking?.getPathFromState ?? getPathFromState,
83
+ getActionFromState: linking?.getActionFromState ?? getActionFromState
63
84
  };
64
85
  }
65
86
  });
66
87
  }
67
88
  });
68
89
  const [isResolved, initialState] = useThenable(getInitialState);
90
+
91
+ // FIXME
92
+ // @ts-expect-error not sure why this is not working
69
93
  React.useImperativeHandle(ref, () => refContainer.current);
70
- const linkingContext = React.useMemo(() => ({
71
- options: linking
72
- }), [linking]);
73
- const isReady = rest.initialState != null || !isLinkingEnabled || isResolved;
74
- const onReadyRef = React.useRef(onReady);
75
- React.useEffect(() => {
76
- onReadyRef.current = onReady;
77
- });
78
- React.useEffect(() => {
79
- if (isReady) {
80
- var _onReadyRef$current;
81
- (_onReadyRef$current = onReadyRef.current) === null || _onReadyRef$current === void 0 || _onReadyRef$current.call(onReadyRef);
82
- }
83
- }, [isReady]);
84
- if (!isReady) {
85
- // This is temporary until we have Suspense for data-fetching
86
- // Then the fallback will be handled by a parent `Suspense` component
87
- return fallback;
94
+ const isLinkingReady = rest.initialState != null || !isLinkingEnabled || isResolved;
95
+ if (!isLinkingReady) {
96
+ return /*#__PURE__*/_jsx(LocaleDirContext.Provider, {
97
+ value: direction,
98
+ children: /*#__PURE__*/_jsx(ThemeProvider, {
99
+ value: theme,
100
+ children: fallback
101
+ })
102
+ });
88
103
  }
89
- return /*#__PURE__*/React.createElement(LinkingContext.Provider, {
90
- value: linkingContext
91
- }, /*#__PURE__*/React.createElement(ThemeProvider, {
92
- value: theme
93
- }, /*#__PURE__*/React.createElement(BaseNavigationContainer, _extends({}, rest, {
94
- initialState: rest.initialState == null ? initialState : rest.initialState,
95
- ref: refContainer
96
- }))));
104
+ return /*#__PURE__*/_jsx(LocaleDirContext.Provider, {
105
+ value: direction,
106
+ children: /*#__PURE__*/_jsx(UnhandledLinkingContext.Provider, {
107
+ value: unhandledLinkingContext,
108
+ children: /*#__PURE__*/_jsx(LinkingContext.Provider, {
109
+ value: linkingContext,
110
+ children: /*#__PURE__*/_jsx(BaseNavigationContainer, {
111
+ ...rest,
112
+ theme: theme,
113
+ onReady: onReadyForLinkingHandling,
114
+ onStateChange: onStateChangeForLinkingHandling,
115
+ initialState: rest.initialState == null ? initialState : rest.initialState,
116
+ ref: refContainer
117
+ })
118
+ })
119
+ })
120
+ });
97
121
  }
98
- const NavigationContainer = /*#__PURE__*/React.forwardRef(NavigationContainerInner);
99
- export default NavigationContainer;
122
+
123
+ /**
124
+ * Container component that manages the navigation state.
125
+ * This should be rendered at the root wrapping the whole app.
126
+ */
127
+ export const NavigationContainer = /*#__PURE__*/React.forwardRef(NavigationContainerInner);
100
128
  //# sourceMappingURL=NavigationContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseNavigationContainer","getActionFromState","getPathFromState","getStateFromPath","validatePathConfig","React","LinkingContext","DefaultTheme","ThemeProvider","useBackButton","useDocumentTitle","useLinking","useThenable","global","REACT_NAVIGATION_DEVTOOLS","WeakMap","NavigationContainerInner","theme","linking","fallback","documentTitle","onReady","rest","ref","isLinkingEnabled","enabled","config","refContainer","useRef","getInitialState","independent","prefixes","useEffect","current","set","isResolved","initialState","useImperativeHandle","linkingContext","useMemo","options","isReady","onReadyRef","_onReadyRef$current","call","createElement","Provider","value","_extends","NavigationContainer","forwardRef"],"sourceRoot":"../../src","sources":["NavigationContainer.tsx"],"mappings":";AAAA,SACEA,uBAAuB,EACvBC,kBAAkB,EAClBC,gBAAgB,EAChBC,gBAAgB,EAIhBC,kBAAkB,QACb,8BAA8B;AACrC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,OAAOC,YAAY,MAAM,wBAAwB;AACjD,OAAOC,aAAa,MAAM,yBAAyB;AAEnD,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,OAAOC,UAAU,MAAM,cAAc;AACrC,OAAOC,WAAW,MAAM,eAAe;AASvCC,MAAM,CAACC,yBAAyB,GAAG,IAAIC,OAAO,CAAC,CAAC;AAUhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,wBAAwBA,CAC/B;EACEC,KAAK,GAAGV,YAAY;EACpBW,OAAO;EACPC,QAAQ,GAAG,IAAI;EACfC,aAAa;EACbC,OAAO;EACP,GAAGC;AACiB,CAAC,EACvBC,GAA6D,EAC7D;EACA,MAAMC,gBAAgB,GAAGN,OAAO,GAAGA,OAAO,CAACO,OAAO,KAAK,KAAK,GAAG,KAAK;EAEpE,IAAIP,OAAO,aAAPA,OAAO,eAAPA,OAAO,C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getPathFromState","getStateFromPath","ThemeProvider","validatePathConfig","React","I18nManager","useLatestCallback","LinkingContext","LocaleDirContext","DefaultTheme","UnhandledLinkingContext","useBackButton","useDocumentTitle","useLinking","useThenable","jsx","_jsx","globalThis","REACT_NAVIGATION_DEVTOOLS","WeakMap","NavigationContainerInner","direction","getConstants","isRTL","theme","linking","fallback","documentTitle","onReady","onStateChange","rest","ref","isLinkingEnabled","enabled","config","refContainer","useRef","lastUnhandledLink","setLastUnhandledLink","useState","getInitialState","prefixes","linkingContext","useMemo","options","unhandledLinkingContext","onReadyForLinkingHandling","path","current","getCurrentRoute","previousLastUnhandledLink","undefined","onStateChangeForLinkingHandling","state","useEffect","set","isResolved","initialState","useImperativeHandle","isLinkingReady","Provider","value","children","NavigationContainer","forwardRef"],"sourceRoot":"../../src","sources":["NavigationContainer.tsx"],"mappings":";;AAAA,SACEA,uBAAuB,EACvBC,kBAAkB,EAClBC,gBAAgB,EAChBC,gBAAgB,EAKhBC,aAAa,EACbC,kBAAkB,QACb,8BAA8B;AACrC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,cAAc;AAC1C,OAAOC,iBAAiB,MAAM,qBAAqB;AAEnD,SAASC,cAAc,QAAQ,qBAAkB;AACjD,SAASC,gBAAgB,QAAQ,uBAAoB;AACrD,SAASC,YAAY,QAAQ,2BAAwB;AAMrD,SAASC,uBAAuB,QAAQ,8BAA2B;AACnE,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,WAAW,QAAQ,kBAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAS5CC,UAAU,CAACC,yBAAyB,GAAG,IAAIC,OAAO,CAAC,CAAC;AAmCpD,SAASC,wBAAwBA,CAC/B;EACEC,SAAS,GAAGhB,WAAW,CAACiB,YAAY,CAAC,CAAC,CAACC,KAAK,GAAG,KAAK,GAAG,KAA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ACzB,gBAAgB,IAAIwB,UAAU;EAE9D,IAAI,CAACG,cAAc,EAAE;IACnB,oBACE3C,IAAA,CAACR,gBAAgB,CAACoD,QAAQ;MAACC,KAAK,EAAExC,SAAU;MAAAyC,QAAA,eAC1C9C,IAAA,CAACd,aAAa;QAAC2D,KAAK,EAAErC,KAAM;QAAAsC,QAAA,EAAEpC;MAAQ,CAAgB;IAAC,CAC9B,CAAC;EAEhC;EAEA,oBACEV,IAAA,CAACR,gBAAgB,CAACoD,QAAQ;IAACC,KAAK,EAAExC,SAAU;IAAAyC,QAAA,eAC1C9C,IAAA,CAACN,uBAAuB,CAACkD,QAAQ;MAACC,KAAK,EAAEhB,uBAAwB;MAAAiB,QAAA,eAC/D9C,IAAA,CAACT,cAAc,CAACqD,QAAQ;QAACC,KAAK,EAAEnB,cAAe;QAAAoB,QAAA,eAC7C9C,IAAA,CAAClB,uBAAuB;UAAA,GAClBgC,IAAI;UACRN,KAAK,EAAEA,KAAM;UACbI,OAAO,EAAEkB,yBAA0B;UACnCjB,aAAa,EAAEuB,+BAAgC;UAC/CK,YAAY,EACV3B,IAAI,CAAC2B,YAAY,IAAI,IAAI,GAAGA,YAAY,GAAG3B,IAAI,CAAC2B,YACjD;UACD1B,GAAG,EAAEI;QAAa,CACnB;MAAC,CACqB;IAAC,CACM;EAAC,CACV,CAAC;AAEhC;;AAEA;AACA;AACA;AACA;AACA,OAAO,MAAM4B,mBAAmB,gBAAG3D,KAAK,CAAC4D,UAAU,CACjD5C,wBACF,CAIuB","ignoreList":[]}
@@ -1,6 +1,9 @@
1
+ "use strict";
2
+
1
3
  import { CurrentRenderContext } from '@amazon-devices/react-navigation__core';
2
4
  import * as React from 'react';
3
- import ServerContext from './ServerContext';
5
+ import { ServerContext } from "./ServerContext.js";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
4
7
  /**
5
8
  * Container component for server rendering.
6
9
  *
@@ -8,13 +11,15 @@ import ServerContext from './ServerContext';
8
11
  * @param props.children Child elements to render the content.
9
12
  * @param props.ref Ref object which contains helper methods.
10
13
  */
11
- export default /*#__PURE__*/React.forwardRef(function ServerContainer({
14
+ export const ServerContainer = /*#__PURE__*/React.forwardRef(function ServerContainer({
12
15
  children,
13
16
  location
14
17
  }, ref) {
15
18
  React.useEffect(() => {
16
19
  console.error("'ServerContainer' should only be used on the server with 'react-dom/server' for SSR.");
17
20
  }, []);
21
+
22
+ // eslint-disable-next-line @eslint-react/no-unstable-context-value
18
23
  const current = {};
19
24
  if (ref) {
20
25
  const value = {
@@ -30,16 +35,21 @@ export default /*#__PURE__*/React.forwardRef(function ServerContainer({
30
35
  if (typeof ref === 'function') {
31
36
  ref(value);
32
37
  } else {
33
- // @ts-expect-error: the TS types are incorrect and say that ref.current is readonly
34
38
  ref.current = value;
35
39
  }
36
40
  }
37
- return /*#__PURE__*/React.createElement(ServerContext.Provider, {
38
- value: {
39
- location
40
- }
41
- }, /*#__PURE__*/React.createElement(CurrentRenderContext.Provider, {
42
- value: current
43
- }, children));
41
+ return (
42
+ /*#__PURE__*/
43
+ // eslint-disable-next-line @eslint-react/no-unstable-context-value
44
+ _jsx(ServerContext.Provider, {
45
+ value: {
46
+ location
47
+ },
48
+ children: /*#__PURE__*/_jsx(CurrentRenderContext.Provider, {
49
+ value: current,
50
+ children: children
51
+ })
52
+ })
53
+ );
44
54
  });
45
55
  //# sourceMappingURL=ServerContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CurrentRenderContext","React","ServerContext","forwardRef","ServerContainer","children","location","ref","useEffect","console","error","current","value","getCurrentOptions","options","createElement","Provider"],"sourceRoot":"../../src","sources":["ServerContainer.tsx"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,8BAA8B;AACnE,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,OAAOC,aAAa,MAA6B,iBAAiB;AAOlE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAAeD,KAAK,CAACE,UAAU,CAAC,SAASC,eAAeA,CACtD;EAAEC,QAAQ;EAAEC;AAAgB,CAAC,EAC7BC,GAAkC,EAClC;EACAN,KAAK,CAACO,SAAS,CAAC,MAAM;IACpBC,OAAO,CAACC,KAAK,CACX,sFACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMC,OAA6B,GAAG,CAAC,CAAC;EAExC,IAAIJ,GAAG,EAAE;IACP,MAAMK,KAAK,GAAG;MACZC,iBAAiBA,CAAA,EAAG;QAClB,OAAOF,OAAO,CAACG,OAAO;MACxB;IACF,CAAC;;IAED;IACA;IACA;IACA;IACA,IAAI,OAAOP,GAAG,KAAK,UAAU,EAAE;MAC7BA,GAAG,CAACK,KAAK,CAAC;IACZ,CAAC,MAAM;MACL;MACAL,GAAG,CAACI,OAAO,GAAGC,KAAK;IACrB;EACF;EAEA,oBACEX,KAAA,CAAAc,aAAA,CAACb,aAAa,CAACc,QAAQ;IAACJ,KAAK,EAAE;MAAEN;IAAS;EAAE,gBAC1CL,KAAA,CAAAc,aAAA,CAACf,oBAAoB,CAACgB,QAAQ;IAACJ,KAAK,EAAED;EAAQ,GAC3CN,QAC4B,CACT,CAAC;AAE7B,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["CurrentRenderContext","React","ServerContext","jsx","_jsx","ServerContainer","forwardRef","children","location","ref","useEffect","console","error","current","value","getCurrentOptions","options","Provider"],"sourceRoot":"../../src","sources":["ServerContainer.tsx"],"mappings":";;AAAA,SAASA,oBAAoB,QAAQ,8BAA8B;AACnE,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,SAASC,aAAa,QAAgC,oBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,gBAAGJ,KAAK,CAACK,UAAU,CAAC,SAASD,eAAeA,CACtE;EAAEE,QAAQ;EAAEC;AAAgB,CAAC,EAC7BC,GAAkC,EAClC;EACAR,KAAK,CAACS,SAAS,CAAC,MAAM;IACpBC,OAAO,CAACC,KAAK,CACX,sFACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;;EAEN;EACA,MAAMC,OAA6B,GAAG,CAAC,CAAC;EAExC,IAAIJ,GAAG,EAAE;IACP,MAAMK,KAAK,GAAG;MACZC,iBAAiBA,CAAA,EAAG;QAClB,OAAOF,OAAO,CAACG,OAAO;MACxB;IACF,CAAC;;IAED;IACA;IACA;IACA;IACA,IAAI,OAAOP,GAAG,KAAK,UAAU,EAAE;MAC7BA,GAAG,CAACK,KAAK,CAAC;IACZ,CAAC,MAAM;MACLL,GAAG,CAACI,OAAO,GAAGC,KAAK;IACrB;EACF;EAEA;IAAA;IACE;IACAV,IAAA,CAACF,aAAa,CAACe,QAAQ;MAACH,KAAK,EAAE;QAAEN;MAAS,CAAE;MAAAD,QAAA,eAC1CH,IAAA,CAACJ,oBAAoB,CAACiB,QAAQ;QAACH,KAAK,EAAED,OAAQ;QAAAN,QAAA,EAC3CA;MAAQ,CACoB;IAAC,CACV;EAAC;AAE7B,CAAC,CAAC","ignoreList":[]}
@@ -1,4 +1,5 @@
1
+ "use strict";
2
+
1
3
  import * as React from 'react';
2
- const ServerContext = /*#__PURE__*/React.createContext(undefined);
3
- export default ServerContext;
4
+ export const ServerContext = /*#__PURE__*/React.createContext(undefined);
4
5
  //# sourceMappingURL=ServerContext.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","ServerContext","createContext","undefined"],"sourceRoot":"../../src","sources":["ServerContext.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAS9B,MAAMC,aAAa,gBAAGD,KAAK,CAACE,aAAa,CACvCC,SACF,CAAC;AAED,eAAeF,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["React","ServerContext","createContext","undefined"],"sourceRoot":"../../src","sources":["ServerContext.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAS9B,OAAO,MAAMC,aAAa,gBAAGD,KAAK,CAACE,aAAa,CAC9CC,SACF,CAAC","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ import * as React from 'react';
4
+ const MISSING_CONTEXT_ERROR = "Couldn't find an UnhandledLinkingContext context.";
5
+ export const UnhandledLinkingContext = /*#__PURE__*/React.createContext({
6
+ get lastUnhandledLink() {
7
+ throw new Error(MISSING_CONTEXT_ERROR);
8
+ },
9
+ get setLastUnhandledLink() {
10
+ throw new Error(MISSING_CONTEXT_ERROR);
11
+ }
12
+ });
13
+ UnhandledLinkingContext.displayName = 'UnhandledLinkingContext';
14
+ //# sourceMappingURL=UnhandledLinkingContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","MISSING_CONTEXT_ERROR","UnhandledLinkingContext","createContext","lastUnhandledLink","Error","setLastUnhandledLink","displayName"],"sourceRoot":"../../src","sources":["UnhandledLinkingContext.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,MAAMC,qBAAqB,GACzB,mDAAmD;AAErD,OAAO,MAAMC,uBAAuB,gBAAGF,KAAK,CAACG,aAAa,CAGvD;EACD,IAAIC,iBAAiBA,CAAA,EAAQ;IAC3B,MAAM,IAAIC,KAAK,CAACJ,qBAAqB,CAAC;EACxC,CAAC;EACD,IAAIK,oBAAoBA,CAAA,EAAQ;IAC9B,MAAM,IAAID,KAAK,CAACJ,qBAAqB,CAAC;EACxC;AACF,CAAC,CAAC;AAEFC,uBAAuB,CAACK,WAAW,GAAG,yBAAyB","ignoreList":[]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ import { createNavigatorFactory, StackRouter, useNavigationBuilder } from '@amazon-devices/react-navigation__core';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const StackNavigator = props => {
6
+ const {
7
+ state,
8
+ descriptors,
9
+ NavigationContent
10
+ } = useNavigationBuilder(StackRouter, props);
11
+ return /*#__PURE__*/_jsx(NavigationContent, {
12
+ children: descriptors[state.routes[state.index].key].render()
13
+ });
14
+ };
15
+ export function createStackNavigator() {
16
+ return createNavigatorFactory(StackNavigator)();
17
+ }
18
+ //# sourceMappingURL=createStackNavigator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createNavigatorFactory","StackRouter","useNavigationBuilder","jsx","_jsx","StackNavigator","props","state","descriptors","NavigationContent","children","routes","index","key","render","createStackNavigator"],"sourceRoot":"../../../src","sources":["__stubs__/createStackNavigator.tsx"],"mappings":";;AAAA,SACEA,sBAAsB,EAKtBC,WAAW,EAEXC,oBAAoB,QACf,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtC,MAAMC,cAAc,GAClBC,KAOC,IACE;EACH,MAAM;IAAEC,KAAK;IAAEC,WAAW;IAAEC;EAAkB,CAAC,GAAGP,oBAAoB,CACpED,WAAW,EACXK,KACF,CAAC;EAED,oBACEF,IAAA,CAACK,iBAAiB;IAAAC,QAAA,EACfF,WAAW,CAACD,KAAK,CAACI,MAAM,CAACJ,KAAK,CAACK,KAAK,CAAC,CAACC,GAAG,CAAC,CAACC,MAAM,CAAC;EAAC,CACnC,CAAC;AAExB,CAAC;AAED,OAAO,SAASC,oBAAoBA,CAAA,EAUjC;EACD,OAAOf,sBAAsB,CAACK,cAAc,CAAC,CAAC,CAAC;AACjD","ignoreList":[]}