@amazon-devices/react-navigation__native 2.0.1758683737
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/LICENSE +7 -0
- package/README.md +5 -0
- package/SystemBundles/6132afb62bda3afb78ba1a1aca51924df73e9dbcc77106aa0f97a0ef68b04ebb.bundle +15196 -0
- package/SystemBundles/6132afb62bda3afb78ba1a1aca51924df73e9dbcc77106aa0f97a0ef68b04ebb.map +1 -0
- package/SystemModules/amzn__react-navigation__native-2.modules.txt +76 -0
- package/SystemModules/amzn__react-navigation__native-2.private.modules.txt +101 -0
- package/SystemModules/keplerscript-system-bundle-config.json +7 -0
- package/THIRD_PARTY_NOTICES.txt +24 -0
- package/kepler-compatibility.json +8 -0
- package/kepler-transformed-package-info.json +3 -0
- package/lib/commonjs/Link.js +50 -0
- package/lib/commonjs/Link.js.map +1 -0
- package/lib/commonjs/LinkingContext.js +15 -0
- package/lib/commonjs/LinkingContext.js.map +1 -0
- package/lib/commonjs/NavigationContainer.js +109 -0
- package/lib/commonjs/NavigationContainer.js.map +1 -0
- package/lib/commonjs/ServerContainer.js +54 -0
- package/lib/commonjs/ServerContainer.js.map +1 -0
- package/lib/commonjs/ServerContext.js +12 -0
- package/lib/commonjs/ServerContext.js.map +1 -0
- package/lib/commonjs/createMemoryHistory.js +220 -0
- package/lib/commonjs/createMemoryHistory.js.map +1 -0
- package/lib/commonjs/extractPathFromURL.js +25 -0
- package/lib/commonjs/extractPathFromURL.js.map +1 -0
- package/lib/commonjs/index.js +129 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/theming/DarkTheme.js +19 -0
- package/lib/commonjs/theming/DarkTheme.js.map +1 -0
- package/lib/commonjs/theming/DefaultTheme.js +19 -0
- package/lib/commonjs/theming/DefaultTheme.js.map +1 -0
- package/lib/commonjs/theming/ThemeContext.js +15 -0
- package/lib/commonjs/theming/ThemeContext.js.map +1 -0
- package/lib/commonjs/theming/ThemeProvider.js +20 -0
- package/lib/commonjs/theming/ThemeProvider.js.map +1 -0
- package/lib/commonjs/theming/useTheme.js +16 -0
- package/lib/commonjs/theming/useTheme.js.map +1 -0
- package/lib/commonjs/types.js +6 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/commonjs/useBackButton.js +11 -0
- package/lib/commonjs/useBackButton.js.map +1 -0
- package/lib/commonjs/useBackButton.native.js +27 -0
- package/lib/commonjs/useBackButton.native.js.map +1 -0
- package/lib/commonjs/useDocumentTitle.js +32 -0
- package/lib/commonjs/useDocumentTitle.js.map +1 -0
- package/lib/commonjs/useDocumentTitle.native.js +10 -0
- package/lib/commonjs/useDocumentTitle.native.js.map +1 -0
- package/lib/commonjs/useLinkBuilder.js +63 -0
- package/lib/commonjs/useLinkBuilder.js.map +1 -0
- package/lib/commonjs/useLinkProps.js +97 -0
- package/lib/commonjs/useLinkProps.js.map +1 -0
- package/lib/commonjs/useLinkTo.js +45 -0
- package/lib/commonjs/useLinkTo.js.map +1 -0
- package/lib/commonjs/useLinking.js +303 -0
- package/lib/commonjs/useLinking.js.map +1 -0
- package/lib/commonjs/useLinking.native.js +152 -0
- package/lib/commonjs/useLinking.native.js.map +1 -0
- package/lib/commonjs/useScrollToTop.js +95 -0
- package/lib/commonjs/useScrollToTop.js.map +1 -0
- package/lib/commonjs/useThenable.js +41 -0
- package/lib/commonjs/useThenable.js.map +1 -0
- package/lib/module/Link.js +41 -0
- package/lib/module/Link.js.map +1 -0
- package/lib/module/LinkingContext.js +7 -0
- package/lib/module/LinkingContext.js.map +1 -0
- package/lib/module/NavigationContainer.js +100 -0
- package/lib/module/NavigationContainer.js.map +1 -0
- package/lib/module/ServerContainer.js +45 -0
- package/lib/module/ServerContainer.js.map +1 -0
- package/lib/module/ServerContext.js +4 -0
- package/lib/module/ServerContext.js.map +1 -0
- package/lib/module/createMemoryHistory.js +214 -0
- package/lib/module/createMemoryHistory.js.map +1 -0
- package/lib/module/extractPathFromURL.js +18 -0
- package/lib/module/extractPathFromURL.js.map +1 -0
- package/lib/module/index.js +15 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/theming/DarkTheme.js +13 -0
- package/lib/module/theming/DarkTheme.js.map +1 -0
- package/lib/module/theming/DefaultTheme.js +13 -0
- package/lib/module/theming/DefaultTheme.js.map +1 -0
- package/lib/module/theming/ThemeContext.js +6 -0
- package/lib/module/theming/ThemeContext.js.map +1 -0
- package/lib/module/theming/ThemeProvider.js +11 -0
- package/lib/module/theming/ThemeProvider.js.map +1 -0
- package/lib/module/theming/useTheme.js +7 -0
- package/lib/module/theming/useTheme.js.map +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/useBackButton.js +5 -0
- package/lib/module/useBackButton.js.map +1 -0
- package/lib/module/useBackButton.native.js +19 -0
- package/lib/module/useBackButton.native.js.map +1 -0
- package/lib/module/useDocumentTitle.js +24 -0
- package/lib/module/useDocumentTitle.js.map +1 -0
- package/lib/module/useDocumentTitle.native.js +4 -0
- package/lib/module/useDocumentTitle.native.js.map +1 -0
- package/lib/module/useLinkBuilder.js +54 -0
- package/lib/module/useLinkBuilder.js.map +1 -0
- package/lib/module/useLinkProps.js +88 -0
- package/lib/module/useLinkProps.js.map +1 -0
- package/lib/module/useLinkTo.js +36 -0
- package/lib/module/useLinkTo.js.map +1 -0
- package/lib/module/useLinking.js +292 -0
- package/lib/module/useLinking.js.map +1 -0
- package/lib/module/useLinking.native.js +143 -0
- package/lib/module/useLinking.native.js.map +1 -0
- package/lib/module/useScrollToTop.js +87 -0
- package/lib/module/useScrollToTop.js.map +1 -0
- package/lib/module/useThenable.js +33 -0
- package/lib/module/useThenable.js.map +1 -0
- package/lib/typescript/src/Link.d.ts +24 -0
- package/lib/typescript/src/Link.d.ts.map +1 -0
- package/lib/typescript/src/LinkingContext.d.ts +8 -0
- package/lib/typescript/src/LinkingContext.d.ts.map +1 -0
- package/lib/typescript/src/NavigationContainer.d.ts +26 -0
- package/lib/typescript/src/NavigationContainer.d.ts.map +1 -0
- package/lib/typescript/src/ServerContainer.d.ts +15 -0
- package/lib/typescript/src/ServerContainer.d.ts.map +1 -0
- package/lib/typescript/src/ServerContext.d.ts +10 -0
- package/lib/typescript/src/ServerContext.d.ts.map +1 -0
- package/lib/typescript/src/__mocks__/window.d.ts +19 -0
- package/lib/typescript/src/__mocks__/window.d.ts.map +1 -0
- package/lib/typescript/src/createMemoryHistory.d.ts +25 -0
- package/lib/typescript/src/createMemoryHistory.d.ts.map +1 -0
- package/lib/typescript/src/extractPathFromURL.d.ts +2 -0
- package/lib/typescript/src/extractPathFromURL.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +15 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/theming/DarkTheme.d.ts +4 -0
- package/lib/typescript/src/theming/DarkTheme.d.ts.map +1 -0
- package/lib/typescript/src/theming/DefaultTheme.d.ts +4 -0
- package/lib/typescript/src/theming/DefaultTheme.d.ts.map +1 -0
- package/lib/typescript/src/theming/ThemeContext.d.ts +5 -0
- package/lib/typescript/src/theming/ThemeContext.d.ts.map +1 -0
- package/lib/typescript/src/theming/ThemeProvider.d.ts +9 -0
- package/lib/typescript/src/theming/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/theming/useTheme.d.ts +2 -0
- package/lib/typescript/src/theming/useTheme.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +127 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/useBackButton.d.ts +4 -0
- package/lib/typescript/src/useBackButton.d.ts.map +1 -0
- package/lib/typescript/src/useBackButton.native.d.ts +4 -0
- package/lib/typescript/src/useBackButton.native.d.ts.map +1 -0
- package/lib/typescript/src/useDocumentTitle.d.ts +8 -0
- package/lib/typescript/src/useDocumentTitle.d.ts.map +1 -0
- package/lib/typescript/src/useDocumentTitle.native.d.ts +2 -0
- package/lib/typescript/src/useDocumentTitle.native.d.ts.map +1 -0
- package/lib/typescript/src/useLinkBuilder.d.ts +6 -0
- package/lib/typescript/src/useLinkBuilder.d.ts.map +1 -0
- package/lib/typescript/src/useLinkProps.d.ts +21 -0
- package/lib/typescript/src/useLinkProps.d.ts.map +1 -0
- package/lib/typescript/src/useLinkTo.d.ts +9 -0
- package/lib/typescript/src/useLinkTo.d.ts.map +1 -0
- package/lib/typescript/src/useLinking.d.ts +55 -0
- package/lib/typescript/src/useLinking.d.ts.map +1 -0
- package/lib/typescript/src/useLinking.native.d.ts +51 -0
- package/lib/typescript/src/useLinking.native.d.ts.map +1 -0
- package/lib/typescript/src/useScrollToTop.d.ts +27 -0
- package/lib/typescript/src/useScrollToTop.d.ts.map +1 -0
- package/lib/typescript/src/useThenable.d.ts +2 -0
- package/lib/typescript/src/useThenable.d.ts.map +1 -0
- package/package.json +1 -0
- package/src/Link.tsx +53 -0
- package/src/LinkingContext.tsx +12 -0
- package/src/NavigationContainer.tsx +152 -0
- package/src/ServerContainer.tsx +56 -0
- package/src/ServerContext.tsx +14 -0
- package/src/__mocks__/window.tsx +77 -0
- package/src/createMemoryHistory.tsx +224 -0
- package/src/extractPathFromURL.tsx +29 -0
- package/src/index.tsx +14 -0
- package/src/theming/DarkTheme.tsx +15 -0
- package/src/theming/DefaultTheme.tsx +15 -0
- package/src/theming/ThemeContext.tsx +10 -0
- package/src/theming/ThemeProvider.tsx +15 -0
- package/src/theming/useTheme.tsx +9 -0
- package/src/types.tsx +145 -0
- package/src/useBackButton.native.tsx +33 -0
- package/src/useBackButton.tsx +11 -0
- package/src/useDocumentTitle.native.tsx +3 -0
- package/src/useDocumentTitle.tsx +41 -0
- package/src/useLinkBuilder.tsx +82 -0
- package/src/useLinkProps.tsx +126 -0
- package/src/useLinkTo.tsx +71 -0
- package/src/useLinking.native.tsx +215 -0
- package/src/useLinking.tsx +395 -0
- package/src/useScrollToTop.tsx +116 -0
- package/src/useThenable.tsx +41 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/Link.js:5e6c6b63ef828d6b41e5
|
|
2
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/useLinkProps.js:d4a7d822fe0b7b0a3604
|
|
3
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/LinkingContext.js:8c8c08f2534fa34f561a
|
|
4
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/useLinkTo.js:8d75dc5464877fd23afe
|
|
5
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/NavigationContainer.js:dadb1057ba1e065bbb7a
|
|
6
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/theming/DefaultTheme.js:d200c562466a343ddca4
|
|
7
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/theming/ThemeProvider.js:30985a16a27004d5b96b
|
|
8
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/theming/ThemeContext.js:1ab17c024fe29fd2a063
|
|
9
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/useBackButton.native.js:527aeada9fee0432ff8a
|
|
10
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/useDocumentTitle.native.js:a79bb34f38df5d231f3e
|
|
11
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/useLinking.native.js:bd046a99c3897da790e7
|
|
12
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/extractPathFromURL.js:c5c9650c62e068f044a5
|
|
13
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/useThenable.js:3c5dfd7f8ce4c01f7b71
|
|
14
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/ServerContainer.js:71d42a0d5c039b801e74
|
|
15
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/ServerContext.js:84c358b6b7c4a94eaf93
|
|
16
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/createMemoryHistory.js:cfd0edb47efb316566c0
|
|
17
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/index.js:e51e050282d6cde44873
|
|
18
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/theming/DarkTheme.js:759d0058c64dd13a843b
|
|
19
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/theming/useTheme.js:a72ec9f145c2df475c26
|
|
20
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/types.js:f8bd1ea58edbd53e99b6
|
|
21
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/useLinkBuilder.js:f4f2dfde73bc3d669670
|
|
22
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/useScrollToTop.js:846be0d34522f354deaa
|
|
23
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/useBackButton.js:2b4440b38e2c6242b80b
|
|
24
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/useDocumentTitle.js:073b09facaea52c52ac9
|
|
25
|
+
node_modules/@amzn/react-navigation__native_2/lib/commonjs/useLinking.js:9e653c9407308ede62e3
|
|
26
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/Link.js:e79bb02438a8e6928c1f
|
|
27
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/useLinkProps.js:c87d0452072874700391
|
|
28
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/LinkingContext.js:42212f40802f6cd4c82b
|
|
29
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/useLinkTo.js:5aa06942cde975cc8448
|
|
30
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/NavigationContainer.js:f6918b89a45871e39940
|
|
31
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/theming/DefaultTheme.js:0189cdaa31f1f00b9ef9
|
|
32
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/theming/ThemeProvider.js:74004cbb40f16f8db31e
|
|
33
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/theming/ThemeContext.js:47950fd99a14aa2b3272
|
|
34
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/useBackButton.native.js:19b75a718bb337e50044
|
|
35
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/useDocumentTitle.native.js:18594b97b040e080d215
|
|
36
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/useLinking.native.js:02595db79d72da903a5c
|
|
37
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/extractPathFromURL.js:9f7715c8b99dcb158c72
|
|
38
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/useThenable.js:c361bf1d493f7eab7bf0
|
|
39
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/ServerContainer.js:87fd351871f40a6154fc
|
|
40
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/ServerContext.js:bfe723113d557e0fbd89
|
|
41
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/createMemoryHistory.js:21ff0bfeb6cd165735bd
|
|
42
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/index.js:46d81f5b439a3da12e5f
|
|
43
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/theming/DarkTheme.js:849539a6750efaeb0fc5
|
|
44
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/theming/useTheme.js:33d8eb9ff5d5bc81dd04
|
|
45
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/types.js:7868ec8d6a80be215ed8
|
|
46
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/useLinkBuilder.js:f3dd4a174978a037f798
|
|
47
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/useScrollToTop.js:977fd17ff04e2c847c99
|
|
48
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/useBackButton.js:e4db0019dea17e0afeb4
|
|
49
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/useDocumentTitle.js:28f7fa8b343f6811aa04
|
|
50
|
+
node_modules/@amzn/react-navigation__native_2/lib/module/useLinking.js:7a789a572e292f04dc07
|
|
51
|
+
node_modules/@amzn/react-navigation__native_2/src/Link.tsx:64bd732a652fe02fb81b
|
|
52
|
+
node_modules/@amzn/react-navigation__native_2/src/useLinkProps.tsx:da9892ff236519863054
|
|
53
|
+
node_modules/@amzn/react-navigation__native_2/src/LinkingContext.tsx:f79fc794b9f3e2bda83c
|
|
54
|
+
node_modules/@amzn/react-navigation__native_2/src/useLinkTo.tsx:96029e3b203022b0eb77
|
|
55
|
+
node_modules/@amzn/react-navigation__native_2/src/NavigationContainer.tsx:2871f0ba127d5eea826d
|
|
56
|
+
node_modules/@amzn/react-navigation__native_2/src/theming/DefaultTheme.tsx:ddf1f504593d75dc845a
|
|
57
|
+
node_modules/@amzn/react-navigation__native_2/src/theming/ThemeProvider.tsx:69e6a099d6e41b76f1b5
|
|
58
|
+
node_modules/@amzn/react-navigation__native_2/src/theming/ThemeContext.tsx:f21b5d92d041bef016ce
|
|
59
|
+
node_modules/@amzn/react-navigation__native_2/src/useBackButton.native.tsx:b7560b039bc49cb1c105
|
|
60
|
+
node_modules/@amzn/react-navigation__native_2/src/useDocumentTitle.native.tsx:12f993235027f989aec2
|
|
61
|
+
node_modules/@amzn/react-navigation__native_2/src/useLinking.native.tsx:253afee244fcfea81482
|
|
62
|
+
node_modules/@amzn/react-navigation__native_2/src/extractPathFromURL.tsx:0b5b86aa46530c4bf1ba
|
|
63
|
+
node_modules/@amzn/react-navigation__native_2/src/useThenable.tsx:8b899ebfc8b5b144b262
|
|
64
|
+
node_modules/@amzn/react-navigation__native_2/src/ServerContainer.tsx:b4187b4a9c4cc80e57a0
|
|
65
|
+
node_modules/@amzn/react-navigation__native_2/src/ServerContext.tsx:a06fc2cf501e2d489ec6
|
|
66
|
+
node_modules/@amzn/react-navigation__native_2/src/__mocks__/window.tsx:a8d73eb3704622b9b982
|
|
67
|
+
node_modules/@amzn/react-navigation__native_2/src/createMemoryHistory.tsx:be3db08fe941dfe3879e
|
|
68
|
+
node_modules/@amzn/react-navigation__native_2/src/index.tsx:6f91054f38514f419633
|
|
69
|
+
node_modules/@amzn/react-navigation__native_2/src/theming/DarkTheme.tsx:93b92d58dea4a7017850
|
|
70
|
+
node_modules/@amzn/react-navigation__native_2/src/theming/useTheme.tsx:3be7d8ea7fd726bf9325
|
|
71
|
+
node_modules/@amzn/react-navigation__native_2/src/types.tsx:5a1c639845376117b1fd
|
|
72
|
+
node_modules/@amzn/react-navigation__native_2/src/useLinkBuilder.tsx:b003b7327f0528b55be0
|
|
73
|
+
node_modules/@amzn/react-navigation__native_2/src/useScrollToTop.tsx:d6a11f76715a12ff4c03
|
|
74
|
+
node_modules/@amzn/react-navigation__native_2/src/useBackButton.tsx:7aafbb1887563860fa99
|
|
75
|
+
node_modules/@amzn/react-navigation__native_2/src/useDocumentTitle.tsx:9622bc02a7e48d6868a2
|
|
76
|
+
node_modules/@amzn/react-navigation__native_2/src/useLinking.tsx:8b404db2b6de2eb3c9af
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
node_modules/@react-native/js-polyfills_0.72.1/console.js:c081be8f6c0109dd350f
|
|
2
|
+
node_modules/@react-native/js-polyfills_0.72.1/error-guard.js:057b32c72f7f399723ba
|
|
3
|
+
node_modules/@react-native/js-polyfills_0.72.1/Object.es8.js:a9bf7d37774d7198840b
|
|
4
|
+
node_modules/@babel/runtime_7.26.0/helpers/interopRequireDefault.js:e13c8413f9a5de8e772f
|
|
5
|
+
node_modules/@babel/runtime_7.26.0/helpers/toConsumableArray.js:c8d9faa50529497e8550
|
|
6
|
+
node_modules/@babel/runtime_7.26.0/helpers/arrayWithoutHoles.js:fedf38594225d61ce364
|
|
7
|
+
node_modules/@babel/runtime_7.26.0/helpers/arrayLikeToArray.js:790be5d6822a112c9007
|
|
8
|
+
node_modules/@babel/runtime_7.26.0/helpers/iterableToArray.js:caf268f6252e2825d074
|
|
9
|
+
node_modules/@babel/runtime_7.26.0/helpers/unsupportedIterableToArray.js:bb86eb755213422b1850
|
|
10
|
+
node_modules/@babel/runtime_7.26.0/helpers/nonIterableSpread.js:e82afc4c0fee49992755
|
|
11
|
+
node_modules/@babel/runtime_7.26.0/helpers/classCallCheck.js:7ba3d97b9a1c7b5d2869
|
|
12
|
+
node_modules/@babel/runtime_7.26.0/helpers/createClass.js:51a05661f80df8a7ec74
|
|
13
|
+
node_modules/@babel/runtime_7.26.0/helpers/toPropertyKey.js:83653ba9ba6a6acbaf3f
|
|
14
|
+
node_modules/@babel/runtime_7.26.0/helpers/toPrimitive.js:44d8868b36ed13d4848c
|
|
15
|
+
node_modules/@babel/runtime_7.26.0/helpers/typeof.js:9beefbd2b38f15e68c8e
|
|
16
|
+
node_modules/invariant_2.2.4/browser.js:fd099686726b2dfb6f66
|
|
17
|
+
node_modules/@babel/runtime_7.26.0/helpers/slicedToArray.js:483ae341f8ec81c793b7
|
|
18
|
+
node_modules/@babel/runtime_7.26.0/helpers/arrayWithHoles.js:783a1c105475cee3e6c5
|
|
19
|
+
node_modules/@babel/runtime_7.26.0/helpers/iterableToArrayLimit.js:848b0a42822f8876517a
|
|
20
|
+
node_modules/@babel/runtime_7.26.0/helpers/nonIterableRest.js:7df430fde83911c4a777
|
|
21
|
+
node_modules/nullthrows_1.1.1/nullthrows.js:afd4874b36ccd4e13961
|
|
22
|
+
node_modules/@babel/runtime_7.26.0/helpers/possibleConstructorReturn.js:1a2fe3e5fa067fc0a581
|
|
23
|
+
node_modules/@babel/runtime_7.26.0/helpers/assertThisInitialized.js:8fb490053e9935245ab2
|
|
24
|
+
node_modules/@babel/runtime_7.26.0/helpers/getPrototypeOf.js:9f001f493a532727260d
|
|
25
|
+
node_modules/@babel/runtime_7.26.0/helpers/inherits.js:106616352dc94f6a631a
|
|
26
|
+
node_modules/@babel/runtime_7.26.0/helpers/setPrototypeOf.js:b3795059b892586ade34
|
|
27
|
+
node_modules/@babel/runtime_7.26.0/helpers/readOnlyError.js:1ce02919a2278f04e7f0
|
|
28
|
+
node_modules/@babel/runtime_7.26.0/helpers/wrapNativeSuper.js:eb04c83a2c7f1c2f7a42
|
|
29
|
+
node_modules/@babel/runtime_7.26.0/helpers/isNativeFunction.js:3ce4e050494cfa1d5417
|
|
30
|
+
node_modules/@babel/runtime_7.26.0/helpers/construct.js:bc6843521062ed051490
|
|
31
|
+
node_modules/@babel/runtime_7.26.0/helpers/isNativeReflectConstruct.js:8962e626888f4268c6fc
|
|
32
|
+
node_modules/stacktrace-parser_0.1.10/dist/stack-trace-parser.cjs.js:189d72d0eb41570f5e74
|
|
33
|
+
node_modules/promise_8.3.0/setimmediate/finally.js:15bc4ccb25fc2d0c4428
|
|
34
|
+
node_modules/promise_8.3.0/setimmediate/core.js:890f60fa94d3f6854a19
|
|
35
|
+
node_modules/promise_8.3.0/setimmediate/es6-extensions.js:a7846fdeffeb1ebf6241
|
|
36
|
+
node_modules/regenerator-runtime_0.13.11/runtime.js:af823d9710c534173a4d
|
|
37
|
+
node_modules/@babel/runtime_7.26.0/helpers/get.js:4b1a4e373780ac89a3a3
|
|
38
|
+
node_modules/@babel/runtime_7.26.0/helpers/superPropBase.js:b7261b01f9f721400840
|
|
39
|
+
node_modules/event-target-shim_5.0.1/dist/event-target-shim.js:2bd3f165b1ed6b916de7
|
|
40
|
+
node_modules/base64-js_1.5.1/index.js:71af70f51435e3e1b37b
|
|
41
|
+
node_modules/whatwg-fetch_3.6.20/dist/fetch.umd.js:ca4b0363146267ef3e77
|
|
42
|
+
node_modules/@babel/runtime_7.26.0/helpers/objectWithoutProperties.js:288fc9023aadbf916360
|
|
43
|
+
node_modules/@babel/runtime_7.26.0/helpers/objectWithoutPropertiesLoose.js:227b8be7a5ddac0008f4
|
|
44
|
+
node_modules/abort-controller_3.0.0/dist/abort-controller.js:ea8fcbd647aab1cfcdaa
|
|
45
|
+
node_modules/@react-native/normalize-colors_0.72.0/index.js:bab9017c6ff43bb4a95b
|
|
46
|
+
node_modules/@babel/runtime_7.26.0/helpers/defineProperty.js:f08cf7e9c32002e6bb9e
|
|
47
|
+
node_modules/@react-native/assets-registry_0.72.0/registry.js:05d58bec2a6d939f08d8
|
|
48
|
+
node_modules/@react-native/assets-registry_0.72.0/path-support.js:914260cfb55fe13c431c
|
|
49
|
+
node_modules/scheduler_0.24.0-canary-efb381bbf-20230505/index.native.js:d57407eff7026d491c8a
|
|
50
|
+
node_modules/scheduler_0.24.0-canary-efb381bbf-20230505/cjs/scheduler.native.production.min.js:9daefd1335ff675770cb
|
|
51
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/index.js:4b5aec8d0b1af0b13fc9
|
|
52
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedColorPropType.js:0ff2848f3ff6f1a02356
|
|
53
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedEdgeInsetsPropType.js:e113bc2a6b8133e753f1
|
|
54
|
+
node_modules/prop-types_15.8.1/index.js:385f56cce85bf58dda18
|
|
55
|
+
node_modules/prop-types_15.8.1/factoryWithThrowingShims.js:211f6d600f40629e26d0
|
|
56
|
+
node_modules/prop-types_15.8.1/lib/ReactPropTypesSecret.js:3ac224506c12c2b4339c
|
|
57
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedImagePropType.js:9f1779357aba412bb49f
|
|
58
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedViewPropTypes.js:6a37ec0494ff683c49f2
|
|
59
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedViewAccessibility.js:dc269c006cd52aa8a392
|
|
60
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedStyleSheetPropType.js:ecd8893ff4b33ee73955
|
|
61
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/deprecatedCreateStrictShapeTypeChecker.js:2c266ae4211321471d0d
|
|
62
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedViewStylePropTypes.js:b0bd5168a69d8a903511
|
|
63
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedLayoutPropTypes.js:fdc284a1196df7b8b1c7
|
|
64
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedShadowPropTypesIOS.js:c694fefe532e4748da9d
|
|
65
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedTransformPropTypes.js:1dd7395967b3c81dc0f2
|
|
66
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedImageSourcePropType.js:00fed86b64880bf848bf
|
|
67
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedImageStylePropTypes.js:0b77c2d463c8dbef3508
|
|
68
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedPointPropType.js:792d53fa12840d39c921
|
|
69
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedTextInputPropTypes.js:a287f54379336e9f732c
|
|
70
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedTextPropTypes.js:14b8482f38362fa2f8cd
|
|
71
|
+
node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedTextStylePropTypes.js:41bd16fe8e2d1af40264
|
|
72
|
+
node_modules/memoize-one_5.2.1/dist/memoize-one.cjs.js:d381691ed29bec5a2050
|
|
73
|
+
node_modules/@react-native/virtualized-lists_0.72.8/index.js:27b237d1799650306cb9
|
|
74
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizeUtils.js:a26dbe2a3afa21c3cf22
|
|
75
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizedList.js:c4b46015e44050527820
|
|
76
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Interaction/Batchinator.js:1953ac0cbf7ac32b33d6
|
|
77
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Utilities/clamp.js:a30729068ebd0dea58f8
|
|
78
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Utilities/infoLog.js:4fd7218f700134f011e9
|
|
79
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Lists/ChildListCollection.js:718d6cdfb3fb081a232d
|
|
80
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Lists/FillRateHelper.js:3e01a5bc929e85870fe5
|
|
81
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Lists/StateSafePureComponent.js:04ffc79d4da370644bce
|
|
82
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Lists/ViewabilityHelper.js:8bafab90a37cab64b100
|
|
83
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizedListCellRenderer.js:ce5f423367f40f3628a8
|
|
84
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizedListContext.js:e6b1ef1f5b720d640981
|
|
85
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Lists/CellRenderMask.js:de5ab026f9499640d730
|
|
86
|
+
node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizedSectionList.js:d2355175ff6609a3def1
|
|
87
|
+
node_modules/@babel/runtime_7.26.0/helpers/asyncToGenerator.js:ea48108a6867e7ab71ad
|
|
88
|
+
node_modules/use-sync-external-store_1.2.2/shim/index.native.js:f1b3855a69d8eff82434
|
|
89
|
+
node_modules/use-sync-external-store_1.2.2/cjs/use-sync-external-store-shim.native.production.min.js:5d8c3034f885ee036c2b
|
|
90
|
+
node_modules/@babel/runtime_7.26.0/helpers/classPrivateFieldLooseKey.js:7f66c94a6a95aa0d133b
|
|
91
|
+
node_modules/@babel/runtime_7.26.0/helpers/classPrivateFieldLooseBase.js:ad166880e439eedd808a
|
|
92
|
+
node_modules/nanoid_3.1.23/non-secure/index.js:e03db9aacb1ee503cd26
|
|
93
|
+
node_modules/query-string_7.1.3/index.js:ff0fc26247fd2f6e2bc9
|
|
94
|
+
node_modules/strict-uri-encode_2.0.0/index.js:6c76b37f74c115e29e96
|
|
95
|
+
node_modules/decode-uri-component_0.2.2/index.js:b39ee987403b752f74b9
|
|
96
|
+
node_modules/split-on-first_1.1.0/index.js:67acda24cfcd7581ec59
|
|
97
|
+
node_modules/filter-obj_1.1.0/index.js:5f6f1050a714764e298b
|
|
98
|
+
node_modules/escape-string-regexp_4.0.0/index.js:c8bebab0d5f6b23cde75
|
|
99
|
+
node_modules/use-latest-callback_0.1.6/lib/index.js:6e9cf0716929115a1392
|
|
100
|
+
node_modules/escape-string-regexp_4.0.0/index.js:c8bebab0d5f6b23cde75
|
|
101
|
+
node_modules/fast-deep-equal_3.1.3/index.js:c83c5e51638a2455a863
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
License from package.json:
|
|
2
|
+
========================================
|
|
3
|
+
|
|
4
|
+
MIT License
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2017 React Navigation Contributors
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
SOFTWARE.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"versions": {
|
|
3
|
+
"2.0.0": "/com.amazon.kepler.navigation__native_2@INavigation__Native_0",
|
|
4
|
+
"2.0.1756406152": "/com.amazon.kepler.navigation__native_2@INavigation__Native_0",
|
|
5
|
+
"2.0.1758654000": "/com.amazon.kepler.navigation__native_2@INavigation__Native_0",
|
|
6
|
+
"2.0.1758683737": "/com.amazon.kepler.navigation__native_2@INavigation__Native_0"
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = Link;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _useLinkProps = _interopRequireDefault(require("./useLinkProps"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
+
/**
|
|
14
|
+
* Component to render link to another screen using a path.
|
|
15
|
+
* Uses an anchor tag on the web.
|
|
16
|
+
*
|
|
17
|
+
* @param props.to Absolute path to screen (e.g. `/feeds/hot`).
|
|
18
|
+
* @param props.action Optional action to use for in-page navigation. By default, the path is parsed to an action based on linking config.
|
|
19
|
+
* @param props.children Child elements to render the content.
|
|
20
|
+
*/
|
|
21
|
+
function Link({
|
|
22
|
+
to,
|
|
23
|
+
action,
|
|
24
|
+
...rest
|
|
25
|
+
}) {
|
|
26
|
+
const props = (0, _useLinkProps.default)({
|
|
27
|
+
to,
|
|
28
|
+
action
|
|
29
|
+
});
|
|
30
|
+
const onPress = e => {
|
|
31
|
+
if ('onPress' in rest) {
|
|
32
|
+
var _rest$onPress;
|
|
33
|
+
(_rest$onPress = rest.onPress) === null || _rest$onPress === void 0 || _rest$onPress.call(rest, e);
|
|
34
|
+
}
|
|
35
|
+
props.onPress(e);
|
|
36
|
+
};
|
|
37
|
+
return /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
38
|
+
...props,
|
|
39
|
+
...rest,
|
|
40
|
+
..._reactNative.Platform.select({
|
|
41
|
+
web: {
|
|
42
|
+
onClick: onPress
|
|
43
|
+
},
|
|
44
|
+
default: {
|
|
45
|
+
onPress
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=Link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_useLinkProps","_interopRequireDefault","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Link","to","action","rest","props","useLinkProps","onPress","_rest$onPress","createElement","Text","Platform","select","web","onClick"],"sourceRoot":"../../src","sources":["Link.tsx"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAC,sBAAA,CAAAH,OAAA;AAA0C,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,C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,aAAA,GAAAJ,IAAI,CAACG,OAAO,cAAAC,aAAA,eAAZA,aAAA,CAAAV,IAAA,CAAAM,IAAI,EAAWvB,CAAC,CAAC;IACnB;IAEAwB,KAAK,CAACE,OAAO,CAAC1B,CAAC,CAAC;EAClB,CAAC;EAED,oBAAON,KAAK,CAACkC,aAAa,CAACC,iBAAI,EAAE;IAC/B,GAAGL,KAAK;IACR,GAAGD,IAAI;IACP,GAAGO,qBAAQ,CAACC,MAAM,CAAC;MACjBC,GAAG,EAAE;QAAEC,OAAO,EAAEP;MAAQ,CAAQ;MAChCxB,OAAO,EAAE;QAAEwB;MAAQ;IACrB,CAAC;EACH,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
+
const LinkingContext = /*#__PURE__*/React.createContext({
|
|
11
|
+
options: undefined
|
|
12
|
+
});
|
|
13
|
+
LinkingContext.displayName = 'LinkingContext';
|
|
14
|
+
var _default = exports.default = LinkingContext;
|
|
15
|
+
//# sourceMappingURL=LinkingContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","LinkingContext","createContext","options","undefined","displayName","_default","exports"],"sourceRoot":"../../src","sources":["LinkingContext.tsx"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAI/B,MAAMW,cAAc,gBAAGvB,KAAK,CAACwB,aAAa,CAEvC;EAAEC,OAAO,EAAEC;AAAU,CAAC,CAAC;AAE1BH,cAAc,CAACI,WAAW,GAAG,gBAAgB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAApB,OAAA,GAE/Bc,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNavigation__core = require("@amazon-devices/react-navigation__core");
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _LinkingContext = _interopRequireDefault(require("./LinkingContext"));
|
|
10
|
+
var _DefaultTheme = _interopRequireDefault(require("./theming/DefaultTheme"));
|
|
11
|
+
var _ThemeProvider = _interopRequireDefault(require("./theming/ThemeProvider"));
|
|
12
|
+
var _useBackButton = _interopRequireDefault(require("./useBackButton"));
|
|
13
|
+
var _useDocumentTitle = _interopRequireDefault(require("./useDocumentTitle"));
|
|
14
|
+
var _useLinking = _interopRequireDefault(require("./useLinking"));
|
|
15
|
+
var _useThenable = _interopRequireDefault(require("./useThenable"));
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
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); }
|
|
20
|
+
global.REACT_NAVIGATION_DEVTOOLS = new WeakMap();
|
|
21
|
+
/**
|
|
22
|
+
* Container component which holds the navigation state designed for React Native apps.
|
|
23
|
+
* This should be rendered at the root wrapping the whole app.
|
|
24
|
+
*
|
|
25
|
+
* @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()`).
|
|
26
|
+
* @param props.onReady Callback which is called after the navigation tree mounts.
|
|
27
|
+
* @param props.onStateChange Callback which is called with the latest navigation state when it changes.
|
|
28
|
+
* @param props.theme Theme object for the navigators.
|
|
29
|
+
* @param props.linking Options for deep linking. Deep link handling is enabled when this prop is provided, unless `linking.enabled` is `false`.
|
|
30
|
+
* @param props.fallback Fallback component to render until we have finished getting initial state when linking is enabled. Defaults to `null`.
|
|
31
|
+
* @param props.documentTitle Options to configure the document title on Web. Updating document title is handled by default unless `documentTitle.enabled` is `false`.
|
|
32
|
+
* @param props.children Child elements to render the content.
|
|
33
|
+
* @param props.ref Ref object which refers to the navigation object containing helper methods.
|
|
34
|
+
*/
|
|
35
|
+
function NavigationContainerInner({
|
|
36
|
+
theme = _DefaultTheme.default,
|
|
37
|
+
linking,
|
|
38
|
+
fallback = null,
|
|
39
|
+
documentTitle,
|
|
40
|
+
onReady,
|
|
41
|
+
...rest
|
|
42
|
+
}, ref) {
|
|
43
|
+
const isLinkingEnabled = linking ? linking.enabled !== false : false;
|
|
44
|
+
if (linking !== null && linking !== void 0 && linking.config) {
|
|
45
|
+
(0, _reactNavigation__core.validatePathConfig)(linking.config);
|
|
46
|
+
}
|
|
47
|
+
const refContainer = React.useRef(null);
|
|
48
|
+
(0, _useBackButton.default)(refContainer);
|
|
49
|
+
(0, _useDocumentTitle.default)(refContainer, documentTitle);
|
|
50
|
+
const {
|
|
51
|
+
getInitialState
|
|
52
|
+
} = (0, _useLinking.default)(refContainer, {
|
|
53
|
+
independent: rest.independent,
|
|
54
|
+
enabled: isLinkingEnabled,
|
|
55
|
+
prefixes: [],
|
|
56
|
+
...linking
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// Add additional linking related info to the ref
|
|
60
|
+
// This will be used by the devtools
|
|
61
|
+
React.useEffect(() => {
|
|
62
|
+
if (refContainer.current) {
|
|
63
|
+
REACT_NAVIGATION_DEVTOOLS.set(refContainer.current, {
|
|
64
|
+
get linking() {
|
|
65
|
+
return {
|
|
66
|
+
...linking,
|
|
67
|
+
enabled: isLinkingEnabled,
|
|
68
|
+
prefixes: (linking === null || linking === void 0 ? void 0 : linking.prefixes) ?? [],
|
|
69
|
+
getStateFromPath: (linking === null || linking === void 0 ? void 0 : linking.getStateFromPath) ?? _reactNavigation__core.getStateFromPath,
|
|
70
|
+
getPathFromState: (linking === null || linking === void 0 ? void 0 : linking.getPathFromState) ?? _reactNavigation__core.getPathFromState,
|
|
71
|
+
getActionFromState: (linking === null || linking === void 0 ? void 0 : linking.getActionFromState) ?? _reactNavigation__core.getActionFromState
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
const [isResolved, initialState] = (0, _useThenable.default)(getInitialState);
|
|
78
|
+
React.useImperativeHandle(ref, () => refContainer.current);
|
|
79
|
+
const linkingContext = React.useMemo(() => ({
|
|
80
|
+
options: linking
|
|
81
|
+
}), [linking]);
|
|
82
|
+
const isReady = rest.initialState != null || !isLinkingEnabled || isResolved;
|
|
83
|
+
const onReadyRef = React.useRef(onReady);
|
|
84
|
+
React.useEffect(() => {
|
|
85
|
+
onReadyRef.current = onReady;
|
|
86
|
+
});
|
|
87
|
+
React.useEffect(() => {
|
|
88
|
+
if (isReady) {
|
|
89
|
+
var _onReadyRef$current;
|
|
90
|
+
(_onReadyRef$current = onReadyRef.current) === null || _onReadyRef$current === void 0 || _onReadyRef$current.call(onReadyRef);
|
|
91
|
+
}
|
|
92
|
+
}, [isReady]);
|
|
93
|
+
if (!isReady) {
|
|
94
|
+
// This is temporary until we have Suspense for data-fetching
|
|
95
|
+
// Then the fallback will be handled by a parent `Suspense` component
|
|
96
|
+
return fallback;
|
|
97
|
+
}
|
|
98
|
+
return /*#__PURE__*/React.createElement(_LinkingContext.default.Provider, {
|
|
99
|
+
value: linkingContext
|
|
100
|
+
}, /*#__PURE__*/React.createElement(_ThemeProvider.default, {
|
|
101
|
+
value: theme
|
|
102
|
+
}, /*#__PURE__*/React.createElement(_reactNavigation__core.BaseNavigationContainer, _extends({}, rest, {
|
|
103
|
+
initialState: rest.initialState == null ? initialState : rest.initialState,
|
|
104
|
+
ref: refContainer
|
|
105
|
+
}))));
|
|
106
|
+
}
|
|
107
|
+
const NavigationContainer = /*#__PURE__*/React.forwardRef(NavigationContainerInner);
|
|
108
|
+
var _default = exports.default = NavigationContainer;
|
|
109
|
+
//# sourceMappingURL=NavigationContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNavigation__core","require","React","_interopRequireWildcard","_LinkingContext","_interopRequireDefault","_DefaultTheme","_ThemeProvider","_useBackButton","_useDocumentTitle","_useLinking","_useThenable","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","global","REACT_NAVIGATION_DEVTOOLS","NavigationContainerInner","theme","DefaultTheme","linking","fallback","documentTitle","onReady","rest","ref","isLinkingEnabled","enabled","config","validatePathConfig","refContainer","useRef","useBackButton","useDocumentTitle","getInitialState","useLinking","independent","prefixes","useEffect","current","getStateFromPath","getPathFromState","getActionFromState","isResolved","initialState","useThenable","useImperativeHandle","linkingContext","useMemo","options","isReady","onReadyRef","_onReadyRef$current","createElement","Provider","value","BaseNavigationContainer","NavigationContainer","forwardRef","_default","exports"],"sourceRoot":"../../src","sources":["NavigationContainer.tsx"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAUA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,cAAA,GAAAF,sBAAA,CAAAJ,OAAA;AAEA,IAAAO,cAAA,GAAAH,sBAAA,CAAAJ,OAAA;AACA,IAAAQ,iBAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,WAAA,GAAAL,sBAAA,CAAAJ,OAAA;AACA,IAAAU,YAAA,GAAAN,sBAAA,CAAAJ,OAAA;AAAwC,SAAAI,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAA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AM,gBAC1BvC,KAAA,CAAA0E,aAAA,CAAC5E,sBAAA,CAAA+E,uBAAuB,EAAA/C,QAAA,KAClBe,IAAI;IACRoB,YAAY,EACVpB,IAAI,CAACoB,YAAY,IAAI,IAAI,GAAGA,YAAY,GAAGpB,IAAI,CAACoB,YACjD;IACDnB,GAAG,EAAEK;EAAa,EACnB,CACY,CACQ,CAAC;AAE9B;AAEA,MAAM2B,mBAAmB,gBAAG9E,KAAK,CAAC+E,UAAU,CAACzC,wBAAwB,CAM9C;AAAC,IAAA0C,QAAA,GAAAC,OAAA,CAAArE,OAAA,GAETkE,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNavigation__core = require("@amazon-devices/react-navigation__core");
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _ServerContext = _interopRequireDefault(require("./ServerContext"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
+
/**
|
|
14
|
+
* Container component for server rendering.
|
|
15
|
+
*
|
|
16
|
+
* @param props.location Location object to base the initial URL for SSR.
|
|
17
|
+
* @param props.children Child elements to render the content.
|
|
18
|
+
* @param props.ref Ref object which contains helper methods.
|
|
19
|
+
*/
|
|
20
|
+
var _default = exports.default = /*#__PURE__*/React.forwardRef(function ServerContainer({
|
|
21
|
+
children,
|
|
22
|
+
location
|
|
23
|
+
}, ref) {
|
|
24
|
+
React.useEffect(() => {
|
|
25
|
+
console.error("'ServerContainer' should only be used on the server with 'react-dom/server' for SSR.");
|
|
26
|
+
}, []);
|
|
27
|
+
const current = {};
|
|
28
|
+
if (ref) {
|
|
29
|
+
const value = {
|
|
30
|
+
getCurrentOptions() {
|
|
31
|
+
return current.options;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// We write to the `ref` during render instead of `React.useImperativeHandle`
|
|
36
|
+
// This is because `useImperativeHandle` will update the ref after 'commit',
|
|
37
|
+
// and there's no 'commit' phase during SSR.
|
|
38
|
+
// Mutating ref during render is unsafe in concurrent mode, but we don't care about it for SSR.
|
|
39
|
+
if (typeof ref === 'function') {
|
|
40
|
+
ref(value);
|
|
41
|
+
} else {
|
|
42
|
+
// @ts-expect-error: the TS types are incorrect and say that ref.current is readonly
|
|
43
|
+
ref.current = value;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return /*#__PURE__*/React.createElement(_ServerContext.default.Provider, {
|
|
47
|
+
value: {
|
|
48
|
+
location
|
|
49
|
+
}
|
|
50
|
+
}, /*#__PURE__*/React.createElement(_reactNavigation__core.CurrentRenderContext.Provider, {
|
|
51
|
+
value: current
|
|
52
|
+
}, children));
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=ServerContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNavigation__core","require","React","_interopRequireWildcard","_ServerContext","_interopRequireDefault","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_default","exports","forwardRef","ServerContainer","children","location","ref","useEffect","console","error","current","value","getCurrentOptions","options","createElement","Provider","CurrentRenderContext"],"sourceRoot":"../../src","sources":["ServerContainer.tsx"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAAmE,SAAAI,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAAA,oBAAAe,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAe,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAd,CAAA,EAAAe,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP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ule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
+
const ServerContext = /*#__PURE__*/React.createContext(undefined);
|
|
11
|
+
var _default = exports.default = ServerContext;
|
|
12
|
+
//# sourceMappingURL=ServerContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ServerContext","createContext","undefined","_default","exports"],"sourceRoot":"../../src","sources":["ServerContext.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAA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