@amazon-devices/react-navigation__native 7.0.1758683737 → 8.0.9000000000
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SystemBundles/0fc5c971c5cf41a0dab235bcc6d58e5c06d9aaff650fa9815b525f8b9bb70a03.bundle +9116 -0
- package/SystemBundles/0fc5c971c5cf41a0dab235bcc6d58e5c06d9aaff650fa9815b525f8b9bb70a03.map +3543 -0
- package/SystemModules/amzn__react-navigation__native-8.modules.txt +24 -0
- package/SystemModules/amzn__react-navigation__native-8.private.modules.txt +77 -0
- package/SystemModules/keplerscript-system-bundle-config.json +4 -4
- package/kepler-compatibility.json +2 -4
- package/lib/module/Link.js +31 -10
- package/lib/module/Link.js.map +1 -1
- package/lib/module/LinkingContext.js +7 -3
- package/lib/module/LinkingContext.js.map +1 -1
- package/lib/module/LocaleDirContext.js +6 -0
- package/lib/module/LocaleDirContext.js.map +1 -0
- package/lib/module/NavigationContainer.js +87 -59
- package/lib/module/NavigationContainer.js.map +1 -1
- package/lib/module/ServerContainer.js +20 -10
- package/lib/module/ServerContainer.js.map +1 -1
- package/lib/module/ServerContext.js +3 -2
- package/lib/module/ServerContext.js.map +1 -1
- package/lib/module/UnhandledLinkingContext.js +14 -0
- package/lib/module/UnhandledLinkingContext.js.map +1 -0
- package/lib/module/__stubs__/createStackNavigator.js +18 -0
- package/lib/module/__stubs__/createStackNavigator.js.map +1 -0
- package/lib/module/__stubs__/window.js +75 -0
- package/lib/module/__stubs__/window.js.map +1 -0
- package/lib/module/createMemoryHistory.js +19 -17
- package/lib/module/createMemoryHistory.js.map +1 -1
- package/lib/module/createStaticNavigation.js +54 -0
- package/lib/module/createStaticNavigation.js.map +1 -0
- package/lib/module/extractPathFromURL.js +6 -5
- package/lib/module/extractPathFromURL.js.map +1 -1
- package/lib/module/index.js +18 -13
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/theming/DarkTheme.js +6 -3
- package/lib/module/theming/DarkTheme.js.map +1 -1
- package/lib/module/theming/DefaultTheme.js +6 -3
- package/lib/module/theming/DefaultTheme.js.map +1 -1
- package/lib/module/theming/fonts.js +61 -0
- package/lib/module/theming/fonts.js.map +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -1
- package/lib/module/useBackButton.js +3 -1
- package/lib/module/useBackButton.js.map +1 -1
- package/lib/module/useBackButton.native.js +3 -1
- package/lib/module/useBackButton.native.js.map +1 -1
- package/lib/module/useDocumentTitle.js +6 -4
- package/lib/module/useDocumentTitle.js.map +1 -1
- package/lib/module/useDocumentTitle.native.js +4 -2
- package/lib/module/useDocumentTitle.native.js.map +1 -1
- package/lib/module/useLinkBuilder.js +71 -40
- package/lib/module/useLinkBuilder.js.map +1 -1
- package/lib/module/useLinkProps.js +41 -36
- package/lib/module/useLinkProps.js.map +1 -1
- package/lib/module/useLinkTo.js +18 -28
- package/lib/module/useLinkTo.js.map +1 -1
- package/lib/module/useLinking.js +47 -19
- package/lib/module/useLinking.js.map +1 -1
- package/lib/module/useLinking.native.js +33 -28
- package/lib/module/useLinking.native.js.map +1 -1
- package/lib/module/useLocale.js +18 -0
- package/lib/module/useLocale.js.map +1 -0
- package/lib/module/useRoutePath.js +30 -0
- package/lib/module/useRoutePath.js.map +1 -0
- package/lib/module/useScrollToTop.js +11 -7
- package/lib/module/useScrollToTop.js.map +1 -1
- package/lib/module/useThenable.js +4 -1
- package/lib/module/useThenable.js.map +1 -1
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/Link.d.ts +8 -10
- package/lib/typescript/src/Link.d.ts.map +1 -1
- package/lib/typescript/src/LinkingContext.d.ts +2 -3
- package/lib/typescript/src/LinkingContext.d.ts.map +1 -1
- package/lib/typescript/src/LocaleDirContext.d.ts +4 -0
- package/lib/typescript/src/LocaleDirContext.d.ts.map +1 -0
- package/lib/typescript/src/NavigationContainer.d.ts +36 -13
- package/lib/typescript/src/NavigationContainer.d.ts.map +1 -1
- package/lib/typescript/src/ServerContainer.d.ts +2 -3
- package/lib/typescript/src/ServerContainer.d.ts.map +1 -1
- package/lib/typescript/src/ServerContext.d.ts +1 -2
- package/lib/typescript/src/ServerContext.d.ts.map +1 -1
- package/lib/typescript/src/UnhandledLinkingContext.d.ts +6 -0
- package/lib/typescript/src/UnhandledLinkingContext.d.ts.map +1 -0
- package/lib/typescript/src/__stubs__/createStackNavigator.d.ts +13 -0
- package/lib/typescript/src/__stubs__/createStackNavigator.d.ts.map +1 -0
- package/lib/typescript/src/{__mocks__ → __stubs__}/window.d.ts +5 -6
- package/lib/typescript/src/__stubs__/window.d.ts.map +1 -0
- package/lib/typescript/src/createMemoryHistory.d.ts +1 -1
- package/lib/typescript/src/createMemoryHistory.d.ts.map +1 -1
- package/lib/typescript/src/createStaticNavigation.d.ts +34 -0
- package/lib/typescript/src/createStaticNavigation.d.ts.map +1 -0
- package/lib/typescript/src/extractPathFromURL.d.ts +1 -1
- package/lib/typescript/src/extractPathFromURL.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +15 -12
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/theming/DarkTheme.d.ts +1 -2
- package/lib/typescript/src/theming/DarkTheme.d.ts.map +1 -1
- package/lib/typescript/src/theming/DefaultTheme.d.ts +1 -2
- package/lib/typescript/src/theming/DefaultTheme.d.ts.map +1 -1
- package/lib/typescript/src/theming/fonts.d.ts +53 -0
- package/lib/typescript/src/theming/fonts.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +35 -3
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/useBackButton.d.ts +1 -2
- package/lib/typescript/src/useBackButton.d.ts.map +1 -1
- package/lib/typescript/src/useBackButton.native.d.ts +1 -1
- package/lib/typescript/src/useBackButton.native.d.ts.map +1 -1
- package/lib/typescript/src/useDocumentTitle.d.ts +1 -1
- package/lib/typescript/src/useDocumentTitle.d.ts.map +1 -1
- package/lib/typescript/src/useDocumentTitle.native.d.ts +1 -1
- package/lib/typescript/src/useDocumentTitle.native.d.ts.map +1 -1
- package/lib/typescript/src/useLinkBuilder.d.ts +97 -3
- package/lib/typescript/src/useLinkBuilder.d.ts.map +1 -1
- package/lib/typescript/src/useLinkProps.d.ts +23 -10
- package/lib/typescript/src/useLinkProps.d.ts.map +1 -1
- package/lib/typescript/src/useLinkTo.d.ts +6 -8
- package/lib/typescript/src/useLinkTo.d.ts.map +1 -1
- package/lib/typescript/src/useLinking.d.ts +5 -46
- package/lib/typescript/src/useLinking.d.ts.map +1 -1
- package/lib/typescript/src/useLinking.native.d.ts +11 -29
- package/lib/typescript/src/useLinking.native.d.ts.map +1 -1
- package/lib/typescript/src/useLocale.d.ts +7 -0
- package/lib/typescript/src/useLocale.d.ts.map +1 -0
- package/lib/typescript/src/useRoutePath.d.ts +7 -0
- package/lib/typescript/src/useRoutePath.d.ts.map +1 -0
- package/lib/typescript/src/useScrollToTop.d.ts +2 -2
- package/lib/typescript/src/useScrollToTop.d.ts.map +1 -1
- package/lib/typescript/src/useThenable.d.ts +1 -1
- package/lib/typescript/src/useThenable.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Link.tsx +36 -20
- package/src/LinkingContext.tsx +9 -5
- package/src/LocaleDirContext.tsx +7 -0
- package/src/NavigationContainer.tsx +128 -69
- package/src/ServerContainer.tsx +4 -3
- package/src/ServerContext.tsx +1 -3
- package/src/UnhandledLinkingContext.tsx +18 -0
- package/src/__stubs__/createStackNavigator.tsx +46 -0
- package/src/{__mocks__ → __stubs__}/window.tsx +8 -8
- package/src/createMemoryHistory.tsx +16 -11
- package/src/createStaticNavigation.tsx +109 -0
- package/src/extractPathFromURL.tsx +3 -3
- package/src/index.tsx +15 -12
- package/src/theming/DarkTheme.tsx +3 -3
- package/src/theming/DefaultTheme.tsx +3 -3
- package/src/theming/fonts.tsx +63 -0
- package/src/types.tsx +49 -3
- package/src/useBackButton.native.tsx +2 -2
- package/src/useBackButton.tsx +2 -2
- package/src/useDocumentTitle.native.tsx +2 -2
- package/src/useDocumentTitle.tsx +2 -2
- package/src/useLinkBuilder.tsx +100 -55
- package/src/useLinkProps.tsx +80 -50
- package/src/useLinkTo.tsx +13 -53
- package/src/useLinking.native.tsx +33 -31
- package/src/useLinking.tsx +70 -23
- package/src/useLocale.tsx +18 -0
- package/src/useRoutePath.tsx +34 -0
- package/src/useScrollToTop.tsx +16 -12
- package/src/useThenable.tsx +2 -1
- package/SystemBundles/8f36606502d3b658fa1ffc07fee4da0e39a8ce388742799c9ccdb66b39ef0362.bundle +0 -15196
- package/SystemBundles/8f36606502d3b658fa1ffc07fee4da0e39a8ce388742799c9ccdb66b39ef0362.map +0 -1
- package/SystemModules/amzn__react-navigation__native-7.modules.txt +0 -76
- package/SystemModules/amzn__react-navigation__native-7.private.modules.txt +0 -101
- package/THIRD_PARTY_NOTICES.txt +0 -24
- package/lib/commonjs/Link.js +0 -50
- package/lib/commonjs/Link.js.map +0 -1
- package/lib/commonjs/LinkingContext.js +0 -15
- package/lib/commonjs/LinkingContext.js.map +0 -1
- package/lib/commonjs/NavigationContainer.js +0 -109
- package/lib/commonjs/NavigationContainer.js.map +0 -1
- package/lib/commonjs/ServerContainer.js +0 -54
- package/lib/commonjs/ServerContainer.js.map +0 -1
- package/lib/commonjs/ServerContext.js +0 -12
- package/lib/commonjs/ServerContext.js.map +0 -1
- package/lib/commonjs/createMemoryHistory.js +0 -220
- package/lib/commonjs/createMemoryHistory.js.map +0 -1
- package/lib/commonjs/extractPathFromURL.js +0 -25
- package/lib/commonjs/extractPathFromURL.js.map +0 -1
- package/lib/commonjs/index.js +0 -129
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/theming/DarkTheme.js +0 -19
- package/lib/commonjs/theming/DarkTheme.js.map +0 -1
- package/lib/commonjs/theming/DefaultTheme.js +0 -19
- package/lib/commonjs/theming/DefaultTheme.js.map +0 -1
- package/lib/commonjs/theming/ThemeContext.js +0 -15
- package/lib/commonjs/theming/ThemeContext.js.map +0 -1
- package/lib/commonjs/theming/ThemeProvider.js +0 -20
- package/lib/commonjs/theming/ThemeProvider.js.map +0 -1
- package/lib/commonjs/theming/useTheme.js +0 -16
- package/lib/commonjs/theming/useTheme.js.map +0 -1
- package/lib/commonjs/types.js +0 -6
- package/lib/commonjs/types.js.map +0 -1
- package/lib/commonjs/useBackButton.js +0 -11
- package/lib/commonjs/useBackButton.js.map +0 -1
- package/lib/commonjs/useBackButton.native.js +0 -27
- package/lib/commonjs/useBackButton.native.js.map +0 -1
- package/lib/commonjs/useDocumentTitle.js +0 -32
- package/lib/commonjs/useDocumentTitle.js.map +0 -1
- package/lib/commonjs/useDocumentTitle.native.js +0 -10
- package/lib/commonjs/useDocumentTitle.native.js.map +0 -1
- package/lib/commonjs/useLinkBuilder.js +0 -63
- package/lib/commonjs/useLinkBuilder.js.map +0 -1
- package/lib/commonjs/useLinkProps.js +0 -97
- package/lib/commonjs/useLinkProps.js.map +0 -1
- package/lib/commonjs/useLinkTo.js +0 -45
- package/lib/commonjs/useLinkTo.js.map +0 -1
- package/lib/commonjs/useLinking.js +0 -303
- package/lib/commonjs/useLinking.js.map +0 -1
- package/lib/commonjs/useLinking.native.js +0 -152
- package/lib/commonjs/useLinking.native.js.map +0 -1
- package/lib/commonjs/useScrollToTop.js +0 -95
- package/lib/commonjs/useScrollToTop.js.map +0 -1
- package/lib/commonjs/useThenable.js +0 -41
- package/lib/commonjs/useThenable.js.map +0 -1
- package/lib/module/theming/ThemeContext.js +0 -6
- package/lib/module/theming/ThemeContext.js.map +0 -1
- package/lib/module/theming/ThemeProvider.js +0 -11
- package/lib/module/theming/ThemeProvider.js.map +0 -1
- package/lib/module/theming/useTheme.js +0 -7
- package/lib/module/theming/useTheme.js.map +0 -1
- package/lib/typescript/src/__mocks__/window.d.ts.map +0 -1
- package/lib/typescript/src/theming/ThemeContext.d.ts +0 -5
- package/lib/typescript/src/theming/ThemeContext.d.ts.map +0 -1
- package/lib/typescript/src/theming/ThemeProvider.d.ts +0 -9
- package/lib/typescript/src/theming/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/src/theming/useTheme.d.ts +0 -2
- package/lib/typescript/src/theming/useTheme.d.ts.map +0 -1
- package/src/theming/ThemeContext.tsx +0 -10
- package/src/theming/ThemeProvider.tsx +0 -15
- 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.28.6/helpers/interopRequireDefault.js:1658e9d806cecc7d513f
|
|
2
|
+
node_modules/@babel/runtime_7.28.6/helpers/classCallCheck.js:058f50a76315fc88ad5c
|
|
3
|
+
node_modules/@babel/runtime_7.28.6/helpers/createClass.js:0d1487bbdd0385fe6673
|
|
4
|
+
node_modules/@babel/runtime_7.28.6/helpers/toPropertyKey.js:48405da1a82590964a03
|
|
5
|
+
node_modules/@babel/runtime_7.28.6/helpers/toPrimitive.js:0f8abf3c8b18480a6d47
|
|
6
|
+
node_modules/@babel/runtime_7.28.6/helpers/typeof.js:13ae0d75f4934933ecaf
|
|
7
|
+
node_modules/@babel/runtime_7.28.6/helpers/possibleConstructorReturn.js:4aa94a74d7bb7221b923
|
|
8
|
+
node_modules/@babel/runtime_7.28.6/helpers/assertThisInitialized.js:25fb38428dda46d6800f
|
|
9
|
+
node_modules/@babel/runtime_7.28.6/helpers/getPrototypeOf.js:d2ca1962320a7fc595a6
|
|
10
|
+
node_modules/@babel/runtime_7.28.6/helpers/get.js:d8dcd13dae0a344bbc4a
|
|
11
|
+
node_modules/@babel/runtime_7.28.6/helpers/superPropBase.js:1f15365ae02704dfefe4
|
|
12
|
+
node_modules/@babel/runtime_7.28.6/helpers/inherits.js:c3969dfc5dcf704d89df
|
|
13
|
+
node_modules/@babel/runtime_7.28.6/helpers/setPrototypeOf.js:8b411d7eeb55832922af
|
|
14
|
+
node_modules/@babel/runtime_7.28.6/helpers/classPrivateFieldLooseBase.js:84b970236b4776e847c4
|
|
15
|
+
node_modules/@babel/runtime_7.28.6/helpers/classPrivateFieldLooseKey.js:c408e8c609dabd10913e
|
|
16
|
+
node_modules/invariant_2.2.4/browser.js:fd099686726b2dfb6f66
|
|
17
|
+
node_modules/@babel/runtime_7.28.6/helpers/slicedToArray.js:b5c3a0dfb06038f36d1a
|
|
18
|
+
node_modules/@babel/runtime_7.28.6/helpers/arrayWithHoles.js:3e4d5f17df2fc26aca06
|
|
19
|
+
node_modules/@babel/runtime_7.28.6/helpers/iterableToArrayLimit.js:7c9be9833a5bd1bcfc84
|
|
20
|
+
node_modules/@babel/runtime_7.28.6/helpers/unsupportedIterableToArray.js:41618dd1a0cab1d4d4b6
|
|
21
|
+
node_modules/@babel/runtime_7.28.6/helpers/arrayLikeToArray.js:b23f086000fa770c51b1
|
|
22
|
+
node_modules/@babel/runtime_7.28.6/helpers/nonIterableRest.js:7fc60d42dbf0dbb04c4b
|
|
23
|
+
node_modules/@react-native/normalize-colors_0.83.0/index.js:e8e087936fed8afe0814
|
|
24
|
+
node_modules/@babel/runtime_7.28.6/helpers/objectWithoutProperties.js:c4820e134611e601fe3c
|
|
25
|
+
node_modules/@babel/runtime_7.28.6/helpers/objectWithoutPropertiesLoose.js:2819355eb1660a78a270
|
|
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.28.6/helpers/wrapNativeSuper.js:583997f8f86d03f2b30d
|
|
30
|
+
node_modules/@babel/runtime_7.28.6/helpers/isNativeFunction.js:251a25cb216e38430b20
|
|
31
|
+
node_modules/@babel/runtime_7.28.6/helpers/construct.js:594614f416b5f1160b89
|
|
32
|
+
node_modules/@babel/runtime_7.28.6/helpers/isNativeReflectConstruct.js:f3459bbdfb4afe15ce21
|
|
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.28.6/helpers/readOnlyError.js:09c040dc0dcec28a54ae
|
|
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.28.6/helpers/asyncToGenerator.js:949e187ecf57bddc8118
|
|
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.28.6/helpers/toArray.js:5202c70f14a7aa8a5a52
|
|
77
|
+
node_modules/@babel/runtime_7.28.6/helpers/iterableToArray.js:20405258034baa50af5e
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@amzn/react-navigation__native": {
|
|
3
|
-
"nameOnDevice": "index.amzn__react-navigation__native-
|
|
4
|
-
"modulesPath": "amzn__react-navigation__native-
|
|
5
|
-
"privateModulesPath": "amzn__react-navigation__native-
|
|
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,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"versions": {
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"7.0.1758654000": "/com.amazon.kepler.navigation__native_7@INavigation__Native_0",
|
|
6
|
-
"7.0.1758683737": "/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"
|
|
7
5
|
}
|
|
8
6
|
}
|
package/lib/module/Link.js
CHANGED
|
@@ -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
|
|
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.
|
|
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
|
|
13
|
-
|
|
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
|
-
|
|
19
|
-
|
|
31
|
+
screen,
|
|
32
|
+
params,
|
|
33
|
+
action,
|
|
34
|
+
href
|
|
20
35
|
});
|
|
21
36
|
const onPress = e => {
|
|
22
37
|
if ('onPress' in rest) {
|
|
23
|
-
|
|
24
|
-
|
|
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
|
package/lib/module/Link.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","Text","useLinkProps","Link","
|
|
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
|
|
3
|
-
|
|
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","
|
|
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 @@
|
|
|
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
|
-
|
|
2
|
-
|
|
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
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
|
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:
|
|
60
|
-
getStateFromPath:
|
|
61
|
-
getPathFromState:
|
|
62
|
-
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
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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__*/
|
|
90
|
-
value:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
99
|
-
|
|
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","
|
|
1
|
+
{"version":3,"names":["BaseNavigationContainer","getActionFromState","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":"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","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
|
|
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
|
|
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
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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","
|
|
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,
|
|
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":[]}
|