@amazon-devices/react-navigation__native 7.0.9000000000 → 8.0.9000000000-rn-83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SystemBundles/c0d77be093c9724f49566be215c67240e6443c16760f772a745108ddaef15503.bundle +9117 -0
- package/SystemBundles/c0d77be093c9724f49566be215c67240e6443c16760f772a745108ddaef15503.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 -2
- 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/oss-attribution/attribution.txt +50 -0
- package/oss-attribution/licenseInfos.json +18 -0
- package/package.json +97 -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/41869b563992545ca95a9a2f729e958cbdcada7391919e8e02112d791754072a.bundle +0 -14508
- package/SystemBundles/41869b563992545ca95a9a2f729e958cbdcada7391919e8e02112d791754072a.map +0 -5157
- package/SystemModules/amzn__react-navigation__native-7.modules.txt +0 -76
- package/SystemModules/amzn__react-navigation__native-7.private.modules.txt +0 -100
- 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
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
1
|
+
export { createStaticNavigation } from './createStaticNavigation';
|
|
2
|
+
export { Link } from './Link';
|
|
3
|
+
export { LinkingContext } from './LinkingContext';
|
|
4
|
+
export { LocaleDirContext } from './LocaleDirContext';
|
|
5
|
+
export { NavigationContainer } from './NavigationContainer';
|
|
6
|
+
export { ServerContainer } from './ServerContainer';
|
|
7
|
+
export { DarkTheme } from './theming/DarkTheme';
|
|
8
|
+
export { DefaultTheme } from './theming/DefaultTheme';
|
|
9
9
|
export * from './types';
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
10
|
+
export { UnhandledLinkingContext as UNSTABLE_UnhandledLinkingContext } from './UnhandledLinkingContext';
|
|
11
|
+
export { useLinkBuilder } from './useLinkBuilder';
|
|
12
|
+
export { type LinkProps, useLinkProps } from './useLinkProps';
|
|
13
|
+
export { useLinkTo } from './useLinkTo';
|
|
14
|
+
export { useLocale } from './useLocale';
|
|
15
|
+
export { useRoutePath } from './useRoutePath';
|
|
16
|
+
export { useScrollToTop } from './useScrollToTop';
|
|
14
17
|
export * from '@amazon-devices/react-navigation__core';
|
|
15
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,uBAAuB,IAAI,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AACxG,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,cAAc,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DarkTheme.d.ts","sourceRoot":"","sources":["../../../../src/theming/DarkTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"DarkTheme.d.ts","sourceRoot":"","sources":["../../../../src/theming/DarkTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,eAAO,MAAM,SAAS,EAAE,KAWvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultTheme.d.ts","sourceRoot":"","sources":["../../../../src/theming/DefaultTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultTheme.d.ts","sourceRoot":"","sources":["../../../../src/theming/DefaultTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const fonts: {
|
|
2
|
+
readonly regular: {
|
|
3
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
4
|
+
readonly fontWeight: "400";
|
|
5
|
+
};
|
|
6
|
+
readonly medium: {
|
|
7
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
8
|
+
readonly fontWeight: "500";
|
|
9
|
+
};
|
|
10
|
+
readonly bold: {
|
|
11
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
12
|
+
readonly fontWeight: "600";
|
|
13
|
+
};
|
|
14
|
+
readonly heavy: {
|
|
15
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
16
|
+
readonly fontWeight: "700";
|
|
17
|
+
};
|
|
18
|
+
} | {
|
|
19
|
+
readonly regular: {
|
|
20
|
+
readonly fontFamily: "System";
|
|
21
|
+
readonly fontWeight: "400";
|
|
22
|
+
};
|
|
23
|
+
readonly medium: {
|
|
24
|
+
readonly fontFamily: "System";
|
|
25
|
+
readonly fontWeight: "500";
|
|
26
|
+
};
|
|
27
|
+
readonly bold: {
|
|
28
|
+
readonly fontFamily: "System";
|
|
29
|
+
readonly fontWeight: "600";
|
|
30
|
+
};
|
|
31
|
+
readonly heavy: {
|
|
32
|
+
readonly fontFamily: "System";
|
|
33
|
+
readonly fontWeight: "700";
|
|
34
|
+
};
|
|
35
|
+
} | {
|
|
36
|
+
readonly regular: {
|
|
37
|
+
readonly fontFamily: "sans-serif";
|
|
38
|
+
readonly fontWeight: "normal";
|
|
39
|
+
};
|
|
40
|
+
readonly medium: {
|
|
41
|
+
readonly fontFamily: "sans-serif-medium";
|
|
42
|
+
readonly fontWeight: "normal";
|
|
43
|
+
};
|
|
44
|
+
readonly bold: {
|
|
45
|
+
readonly fontFamily: "sans-serif";
|
|
46
|
+
readonly fontWeight: "600";
|
|
47
|
+
};
|
|
48
|
+
readonly heavy: {
|
|
49
|
+
readonly fontFamily: "sans-serif";
|
|
50
|
+
readonly fontWeight: "700";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=fonts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../../src/theming/fonts.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDkC,CAAC"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import type { getActionFromState as getActionFromStateDefault, getPathFromState as getPathFromStateDefault, getStateFromPath as getStateFromPathDefault, PathConfigMap, Route } from '@amazon-devices/react-navigation__core';
|
|
2
|
-
|
|
2
|
+
declare global {
|
|
3
|
+
namespace ReactNavigation {
|
|
4
|
+
interface Theme extends NativeTheme {
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
type FontStyle = {
|
|
9
|
+
fontFamily: string;
|
|
10
|
+
fontWeight: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
11
|
+
};
|
|
12
|
+
interface NativeTheme {
|
|
3
13
|
dark: boolean;
|
|
4
14
|
colors: {
|
|
5
15
|
primary: string;
|
|
@@ -9,7 +19,15 @@ export type Theme = {
|
|
|
9
19
|
border: string;
|
|
10
20
|
notification: string;
|
|
11
21
|
};
|
|
12
|
-
|
|
22
|
+
fonts: {
|
|
23
|
+
regular: FontStyle;
|
|
24
|
+
medium: FontStyle;
|
|
25
|
+
bold: FontStyle;
|
|
26
|
+
heavy: FontStyle;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export type Theme = NativeTheme;
|
|
30
|
+
export type LocaleDirection = 'ltr' | 'rtl';
|
|
13
31
|
export type LinkingOptions<ParamList extends {}> = {
|
|
14
32
|
/**
|
|
15
33
|
* Whether deep link handling should be enabled.
|
|
@@ -66,8 +84,21 @@ export type LinkingOptions<ParamList extends {}> = {
|
|
|
66
84
|
* ```
|
|
67
85
|
*/
|
|
68
86
|
config?: {
|
|
69
|
-
|
|
87
|
+
/**
|
|
88
|
+
* Path string to match against for the whole navigation tree.
|
|
89
|
+
* It's not possible to specify params here since this doesn't belong to a screen.
|
|
90
|
+
* This is useful when the whole app is under a specific path.
|
|
91
|
+
* e.g. all of the screens are under `/admin` in `https://example.com/admin`
|
|
92
|
+
*/
|
|
93
|
+
path?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Path configuration for child screens.
|
|
96
|
+
*/
|
|
70
97
|
screens: PathConfigMap<ParamList>;
|
|
98
|
+
/**
|
|
99
|
+
* Name of the initial route to use for the root navigator.
|
|
100
|
+
*/
|
|
101
|
+
initialRouteName?: keyof ParamList;
|
|
71
102
|
};
|
|
72
103
|
/**
|
|
73
104
|
* Custom function to get the initial URL used for linking.
|
|
@@ -124,4 +155,5 @@ export type DocumentTitleOptions = {
|
|
|
124
155
|
export type ServerContainerRef = {
|
|
125
156
|
getCurrentOptions(): Record<string, any> | undefined;
|
|
126
157
|
};
|
|
158
|
+
export {};
|
|
127
159
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,yBAAyB,EAC/C,gBAAgB,IAAI,uBAAuB,EAC3C,gBAAgB,IAAI,uBAAuB,EAC3C,aAAa,EACb,KAAK,EACN,MAAM,8BAA8B,CAAC;AAEtC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,yBAAyB,EAC/C,gBAAgB,IAAI,uBAAuB,EAC3C,gBAAgB,IAAI,uBAAuB,EAC3C,aAAa,EACb,KAAK,EACN,MAAM,8BAA8B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,eAAe,CAAC;QACxB,UAAU,KAAM,SAAQ,WAAW;SAAG;KACvC;CACF;AAED,KAAK,SAAS,GAAG;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EACN,QAAQ,GACR,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;CACX,CAAC;AAEF,UAAU,WAAW;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,KAAK,EAAE;QACL,OAAO,EAAE,SAAS,CAAC;QACnB,MAAM,EAAE,SAAS,CAAC;QAClB,IAAI,EAAE,SAAS,CAAC;QAChB,KAAK,EAAE,SAAS,CAAC;KAClB,CAAC;CACH;AAED,MAAM,MAAM,KAAK,GAAG,WAAW,CAAC;AAEhC,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,KAAK,CAAC;AAE5C,MAAM,MAAM,cAAc,CAAC,SAAS,SAAS,EAAE,IAAI;IACjD;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAClC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE;QACP;;;;;WAKG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QAClC;;WAEG;QACH,gBAAgB,CAAC,EAAE,MAAM,SAAS,CAAC;KACpC,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,EAAE,MACZ,MAAM,GACN,IAAI,GACJ,SAAS,GACT,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IACvC;;;;;;;;;;;;;;;;;;OAkBG;IACH,SAAS,CAAC,EAAE,CACV,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,KAC5B,SAAS,GAAG,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IACrC;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,uBAAuB,CAAC;IAClD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,uBAAuB,CAAC;IAClD;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,yBAAyB,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,CACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,EACxC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,KAC7B,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { NavigationContainerRef, ParamListBase } from '@amazon-devices/react-navigation__core';
|
|
3
|
-
export
|
|
2
|
+
export declare function useBackButton(_: React.RefObject<NavigationContainerRef<ParamListBase> | null>): void;
|
|
4
3
|
//# sourceMappingURL=useBackButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBackButton.d.ts","sourceRoot":"","sources":["../../../src/useBackButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useBackButton.d.ts","sourceRoot":"","sources":["../../../src/useBackButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,8BAA8B,CAAC;AAEtC,wBAAgB,aAAa,CAC3B,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,QAIjE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { NavigationContainerRef, ParamListBase } from '@amazon-devices/react-navigation__core';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export
|
|
3
|
+
export declare function useBackButton(ref: React.RefObject<NavigationContainerRef<ParamListBase> | null>): void;
|
|
4
4
|
//# sourceMappingURL=useBackButton.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBackButton.native.d.ts","sourceRoot":"","sources":["../../../src/useBackButton.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,
|
|
1
|
+
{"version":3,"file":"useBackButton.native.d.ts","sourceRoot":"","sources":["../../../src/useBackButton.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,wBAAgB,aAAa,CAC3B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,QAwBnE"}
|
|
@@ -4,5 +4,5 @@ import type { DocumentTitleOptions } from './types';
|
|
|
4
4
|
/**
|
|
5
5
|
* Set the document title for the active screen
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export declare function useDocumentTitle(ref: React.RefObject<NavigationContainerRef<ParamListBase> | null>, { enabled, formatter, }?: DocumentTitleOptions): void;
|
|
8
8
|
//# sourceMappingURL=useDocumentTitle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDocumentTitle.d.ts","sourceRoot":"","sources":["../../../src/useDocumentTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"useDocumentTitle.d.ts","sourceRoot":"","sources":["../../../src/useDocumentTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,EAClE,EACE,OAAc,EACd,SAA6D,GAC9D,GAAE,oBAAyB,QAwB7B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function useDocumentTitle(): void;
|
|
2
2
|
//# sourceMappingURL=useDocumentTitle.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDocumentTitle.native.d.ts","sourceRoot":"","sources":["../../../src/useDocumentTitle.native.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useDocumentTitle.native.d.ts","sourceRoot":"","sources":["../../../src/useDocumentTitle.native.tsx"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,SAE/B"}
|
|
@@ -1,6 +1,100 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Helpers to build href or action based on the linking options.
|
|
3
|
+
*
|
|
4
|
+
* @returns `buildHref` to build an `href` for screen and `buildAction` to build an action from an `href`.
|
|
4
5
|
*/
|
|
5
|
-
export
|
|
6
|
+
export declare function useLinkBuilder(): {
|
|
7
|
+
buildHref: (name: string, params?: object) => string | undefined;
|
|
8
|
+
buildAction: (href: string) => {
|
|
9
|
+
type: "NAVIGATE";
|
|
10
|
+
payload: {
|
|
11
|
+
name: string;
|
|
12
|
+
params?: import("@amazon-devices/react-navigation__core").NavigatorScreenParams<Readonly<{
|
|
13
|
+
key: string;
|
|
14
|
+
index: number;
|
|
15
|
+
routeNames: string[];
|
|
16
|
+
history?: unknown[];
|
|
17
|
+
routes: import("@amazon-devices/react-navigation__core").NavigationRoute<import("@amazon-devices/react-navigation__core").ParamListBase, string>[];
|
|
18
|
+
type: string;
|
|
19
|
+
stale: false;
|
|
20
|
+
}>>;
|
|
21
|
+
path?: string;
|
|
22
|
+
};
|
|
23
|
+
} | {
|
|
24
|
+
type: "GO_BACK";
|
|
25
|
+
source?: string;
|
|
26
|
+
target?: string;
|
|
27
|
+
} | {
|
|
28
|
+
type: "NAVIGATE";
|
|
29
|
+
payload: {
|
|
30
|
+
name: string;
|
|
31
|
+
params?: object;
|
|
32
|
+
path?: string;
|
|
33
|
+
merge?: boolean;
|
|
34
|
+
pop?: boolean;
|
|
35
|
+
};
|
|
36
|
+
source?: string;
|
|
37
|
+
target?: string;
|
|
38
|
+
} | {
|
|
39
|
+
type: "NAVIGATE_DEPRECATED";
|
|
40
|
+
payload: {
|
|
41
|
+
name: string;
|
|
42
|
+
params?: object;
|
|
43
|
+
merge?: boolean;
|
|
44
|
+
};
|
|
45
|
+
source?: string;
|
|
46
|
+
target?: string;
|
|
47
|
+
} | {
|
|
48
|
+
type: "SET_PARAMS";
|
|
49
|
+
payload: {
|
|
50
|
+
params?: object;
|
|
51
|
+
};
|
|
52
|
+
source?: string;
|
|
53
|
+
target?: string;
|
|
54
|
+
} | {
|
|
55
|
+
type: "REPLACE_PARAMS";
|
|
56
|
+
payload: {
|
|
57
|
+
params?: object;
|
|
58
|
+
};
|
|
59
|
+
source?: string;
|
|
60
|
+
target?: string;
|
|
61
|
+
} | {
|
|
62
|
+
type: "PRELOAD";
|
|
63
|
+
payload: {
|
|
64
|
+
name: string;
|
|
65
|
+
params?: object;
|
|
66
|
+
};
|
|
67
|
+
source?: string;
|
|
68
|
+
target?: string;
|
|
69
|
+
} | {
|
|
70
|
+
readonly type: "RESET";
|
|
71
|
+
readonly payload: (Readonly<{
|
|
72
|
+
key: string;
|
|
73
|
+
index: number;
|
|
74
|
+
routeNames: string[];
|
|
75
|
+
history?: unknown[];
|
|
76
|
+
routes: import("@amazon-devices/react-navigation__core").NavigationRoute<import("@amazon-devices/react-navigation__core").ParamListBase, string>[];
|
|
77
|
+
type: string;
|
|
78
|
+
stale: false;
|
|
79
|
+
}> | import("@amazon-devices/react-navigation__core").PartialState<Readonly<{
|
|
80
|
+
key: string;
|
|
81
|
+
index: number;
|
|
82
|
+
routeNames: string[];
|
|
83
|
+
history?: unknown[];
|
|
84
|
+
routes: import("@amazon-devices/react-navigation__core").NavigationRoute<import("@amazon-devices/react-navigation__core").ParamListBase, string>[];
|
|
85
|
+
type: string;
|
|
86
|
+
stale: false;
|
|
87
|
+
}>> | (Omit<Readonly<{
|
|
88
|
+
key: string;
|
|
89
|
+
index: number;
|
|
90
|
+
routeNames: string[];
|
|
91
|
+
history?: unknown[];
|
|
92
|
+
routes: import("@amazon-devices/react-navigation__core").NavigationRoute<import("@amazon-devices/react-navigation__core").ParamListBase, string>[];
|
|
93
|
+
type: string;
|
|
94
|
+
stale: false;
|
|
95
|
+
}>, "routes"> & {
|
|
96
|
+
routes: Omit<import("@amazon-devices/react-navigation__core").Route<string>, "key">[];
|
|
97
|
+
})) | undefined;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
6
100
|
//# sourceMappingURL=useLinkBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinkBuilder.d.ts","sourceRoot":"","sources":["../../../src/useLinkBuilder.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLinkBuilder.d.ts","sourceRoot":"","sources":["../../../src/useLinkBuilder.tsx"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,wBAAgB,cAAc;sBAcnB,MAAM,WAAW,MAAM;wBAmEvB,MAAM;;;;;;;;;;;;;;;;;;;;;;;kBArFhB,CAAC;gBAAuB,CAAA;iBAAuB,CAAC;eAE9C,CAAC;;;;;;;;kBAGmC,CAAC;iBAAuB,CAAC;;;;;;;kBAQ9C,CAAC;;;;;;;kBAEiC,CAAC;;;;;;;;kBAa/C,CALN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoFC"}
|
|
@@ -1,21 +1,34 @@
|
|
|
1
|
-
import { NavigationAction } from '@amazon-devices/react-navigation__core';
|
|
1
|
+
import { type NavigationAction } from '@amazon-devices/react-navigation__core';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { GestureResponderEvent } from 'react-native';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
to: To<ParamList>;
|
|
3
|
+
import { type GestureResponderEvent } from 'react-native';
|
|
4
|
+
export type LinkProps<ParamList extends ReactNavigation.RootParamList, RouteName extends keyof ParamList = keyof ParamList> = ({
|
|
5
|
+
href?: string;
|
|
7
6
|
action?: NavigationAction;
|
|
7
|
+
} & {
|
|
8
|
+
[Screen in keyof ParamList]: undefined extends ParamList[Screen] ? {
|
|
9
|
+
screen: Screen;
|
|
10
|
+
params?: ParamList[Screen];
|
|
11
|
+
} : {
|
|
12
|
+
screen: Screen;
|
|
13
|
+
params: ParamList[Screen];
|
|
14
|
+
};
|
|
15
|
+
}[RouteName]) | {
|
|
16
|
+
href?: string;
|
|
17
|
+
action: NavigationAction;
|
|
18
|
+
screen?: undefined;
|
|
19
|
+
params?: undefined;
|
|
8
20
|
};
|
|
9
21
|
/**
|
|
10
22
|
* Hook to get props for an anchor tag so it can work with in page navigation.
|
|
11
23
|
*
|
|
12
|
-
* @param props.
|
|
24
|
+
* @param props.screen Name of the screen to navigate to (e.g. `'Feeds'`).
|
|
25
|
+
* @param props.params Params to pass to the screen to navigate to (e.g. `{ sort: 'hot' }`).
|
|
26
|
+
* @param props.href Optional absolute path to use for the href (e.g. `/feeds/hot`).
|
|
13
27
|
* @param props.action Optional action to use for in-page navigation. By default, the path is parsed to an action based on linking config.
|
|
14
28
|
*/
|
|
15
|
-
export
|
|
16
|
-
href: string;
|
|
17
|
-
|
|
29
|
+
export declare function useLinkProps<ParamList extends ReactNavigation.RootParamList>({ screen, params, href, action, }: LinkProps<ParamList>): {
|
|
30
|
+
href: string | undefined;
|
|
31
|
+
role: "link";
|
|
18
32
|
onPress: (e?: React.MouseEvent<HTMLAnchorElement, MouseEvent> | GestureResponderEvent) => void;
|
|
19
33
|
};
|
|
20
|
-
export {};
|
|
21
34
|
//# sourceMappingURL=useLinkProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinkProps.d.ts","sourceRoot":"","sources":["../../../src/useLinkProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,
|
|
1
|
+
{"version":3,"file":"useLinkProps.d.ts","sourceRoot":"","sources":["../../../src/useLinkProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EAKtB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,qBAAqB,EAAY,MAAM,cAAc,CAAC;AAIpE,MAAM,MAAM,SAAS,CACnB,SAAS,SAAS,eAAe,CAAC,aAAa,EAC/C,SAAS,SAAS,MAAM,SAAS,GAAG,MAAM,SAAS,IAEjD,CAAC;IACC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B,GAAG;KACD,MAAM,IAAI,MAAM,SAAS,GAAG,SAAS,SAAS,SAAS,CAAC,MAAM,CAAC,GAC5D;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;KAAE,GAC9C;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;KAAE;CAClD,CAAC,SAAS,CAAC,CAAC,GACb;IACE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AA+BN;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,SAAS,SAAS,eAAe,CAAC,aAAa,EAAE,EAC5E,MAAM,EACN,MAAM,EACN,IAAI,EACJ,MAAM,GACP,EAAE,SAAS,CAAC,SAAS,CAAC;;;kBAMf,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG,qBAAqB;EA0E9E"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
});
|
|
8
|
-
export default function useLinkTo<ParamList extends ReactNavigation.RootParamList>(): (to: To<ParamList>) => void;
|
|
1
|
+
/**
|
|
2
|
+
* Helper to navigate to a screen using a href based on the linking options.
|
|
3
|
+
*
|
|
4
|
+
* @returns function that receives the href to navigate to.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useLinkTo(): (href: string) => void;
|
|
9
7
|
//# sourceMappingURL=useLinkTo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinkTo.d.ts","sourceRoot":"","sources":["../../../src/useLinkTo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLinkTo.d.ts","sourceRoot":"","sources":["../../../src/useLinkTo.tsx"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,SAAS,WAKd,MAAM,UAehB"}
|
|
@@ -1,55 +1,14 @@
|
|
|
1
|
-
import { NavigationContainerRef, ParamListBase } from '@amazon-devices/react-navigation__core';
|
|
1
|
+
import { getStateFromPath as getStateFromPathDefault, type NavigationContainerRef, type ParamListBase } from '@amazon-devices/react-navigation__core';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import type { LinkingOptions } from './types';
|
|
4
|
+
type ResultState = ReturnType<typeof getStateFromPathDefault>;
|
|
4
5
|
/**
|
|
5
6
|
* Run async function in series as it's called.
|
|
6
7
|
*/
|
|
7
8
|
export declare const series: (cb: () => Promise<void>) => () => void;
|
|
8
|
-
type Options = LinkingOptions<ParamListBase
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export default function useLinking(ref: React.RefObject<NavigationContainerRef<ParamListBase>>, { independent, enabled, config, getStateFromPath, getPathFromState, getActionFromState, }: Options): {
|
|
12
|
-
getInitialState: () => PromiseLike<(Partial<Omit<Readonly<{
|
|
13
|
-
key: string;
|
|
14
|
-
index: number;
|
|
15
|
-
routeNames: string[];
|
|
16
|
-
history?: unknown[] | undefined;
|
|
17
|
-
routes: (Readonly<{
|
|
18
|
-
key: string;
|
|
19
|
-
name: string;
|
|
20
|
-
path?: string | undefined;
|
|
21
|
-
}> & Readonly<{
|
|
22
|
-
params?: Readonly<object | undefined>;
|
|
23
|
-
}> & {
|
|
24
|
-
state?: Readonly<any> | import("@amazon-devices/react-navigation__core").PartialState<Readonly<any>> | undefined;
|
|
25
|
-
})[];
|
|
26
|
-
type: string;
|
|
27
|
-
stale: false;
|
|
28
|
-
}>, "stale" | "routes">> & Readonly<{
|
|
29
|
-
stale?: true | undefined;
|
|
30
|
-
routes: import("@amazon-devices/react-navigation__core").PartialRoute<import("@amazon-devices/react-navigation__core").Route<string, object | undefined>>[];
|
|
31
|
-
}> & {
|
|
32
|
-
state?: (Partial<Omit<Readonly<{
|
|
33
|
-
key: string;
|
|
34
|
-
index: number;
|
|
35
|
-
routeNames: string[];
|
|
36
|
-
history?: unknown[] | undefined;
|
|
37
|
-
routes: (Readonly<{
|
|
38
|
-
key: string;
|
|
39
|
-
name: string;
|
|
40
|
-
path?: string | undefined;
|
|
41
|
-
}> & Readonly<{
|
|
42
|
-
params?: Readonly<object | undefined>;
|
|
43
|
-
}> & {
|
|
44
|
-
state?: Readonly<any> | import("@amazon-devices/react-navigation__core").PartialState<Readonly<any>> | undefined;
|
|
45
|
-
})[];
|
|
46
|
-
type: string;
|
|
47
|
-
stale: false;
|
|
48
|
-
}>, "stale" | "routes">> & Readonly<{
|
|
49
|
-
stale?: true | undefined;
|
|
50
|
-
routes: import("@amazon-devices/react-navigation__core").PartialRoute<import("@amazon-devices/react-navigation__core").Route<string, object | undefined>>[];
|
|
51
|
-
}> & any) | undefined;
|
|
52
|
-
}) | undefined>;
|
|
9
|
+
type Options = LinkingOptions<ParamListBase>;
|
|
10
|
+
export declare function useLinking(ref: React.RefObject<NavigationContainerRef<ParamListBase> | null>, { enabled, config, getStateFromPath, getPathFromState, getActionFromState, }: Options, onUnhandledLinking: (lastUnhandledLining: string | undefined) => void): {
|
|
11
|
+
getInitialState: () => PromiseLike<ResultState | undefined>;
|
|
53
12
|
};
|
|
54
13
|
export {};
|
|
55
14
|
//# sourceMappingURL=useLinking.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinking.d.ts","sourceRoot":"","sources":["../../../src/useLinking.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useLinking.d.ts","sourceRoot":"","sources":["../../../src/useLinking.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,gBAAgB,IAAI,uBAAuB,EAC3C,KAAK,sBAAsB,EAE3B,KAAK,aAAa,EAEnB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AA0C9D;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,IAAI,MAAM,OAAO,CAAC,IAAI,CAAC,eAO7C,CAAC;AAIF,KAAK,OAAO,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAE7C,wBAAgB,UAAU,CACxB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,EAClE,EACE,OAAc,EACd,MAAM,EACN,gBAA0C,EAC1C,gBAA0C,EAC1C,kBAA8C,GAC/C,EAAE,OAAO,EACV,kBAAkB,EAAE,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI;2BAmGhD,WAAW,CAAC,WAAW,GAAG,SAAS,CAAC;EAkQ1D"}
|
|
@@ -1,50 +1,32 @@
|
|
|
1
|
-
import { NavigationContainerRef, ParamListBase } from '@amazon-devices/react-navigation__core';
|
|
1
|
+
import { type NavigationContainerRef, type ParamListBase } from '@amazon-devices/react-navigation__core';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import type { LinkingOptions } from './types';
|
|
4
|
-
type Options = LinkingOptions<ParamListBase
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
export default function useLinking(ref: React.RefObject<NavigationContainerRef<ParamListBase>>, { independent, enabled, prefixes, filter, config, getInitialURL, subscribe, getStateFromPath, getActionFromState, }: Options): {
|
|
4
|
+
type Options = LinkingOptions<ParamListBase>;
|
|
5
|
+
export declare function useLinking(ref: React.RefObject<NavigationContainerRef<ParamListBase> | null>, { enabled, prefixes, filter, config, getInitialURL, subscribe, getStateFromPath, getActionFromState, }: Options, onUnhandledLinking: (lastUnhandledLining: string | undefined) => void): {
|
|
8
6
|
getInitialState: () => PromiseLike<(Partial<Omit<Readonly<{
|
|
9
7
|
key: string;
|
|
10
8
|
index: number;
|
|
11
9
|
routeNames: string[];
|
|
12
|
-
history?: unknown[]
|
|
13
|
-
routes: (
|
|
14
|
-
key: string;
|
|
15
|
-
name: string;
|
|
16
|
-
path?: string | undefined;
|
|
17
|
-
}> & Readonly<{
|
|
18
|
-
params?: Readonly<object | undefined>;
|
|
19
|
-
}> & {
|
|
20
|
-
state?: Readonly<any> | import("@amazon-devices/react-navigation__core").PartialState<Readonly<any>> | undefined;
|
|
21
|
-
})[];
|
|
10
|
+
history?: unknown[];
|
|
11
|
+
routes: import("@amazon-devices/react-navigation__core").NavigationRoute<ParamListBase, string>[];
|
|
22
12
|
type: string;
|
|
23
13
|
stale: false;
|
|
24
14
|
}>, "stale" | "routes">> & Readonly<{
|
|
25
|
-
stale?: true
|
|
15
|
+
stale?: true;
|
|
26
16
|
routes: import("@amazon-devices/react-navigation__core").PartialRoute<import("@amazon-devices/react-navigation__core").Route<string, object | undefined>>[];
|
|
27
17
|
}> & {
|
|
28
|
-
state?:
|
|
18
|
+
state?: Partial<Omit<Readonly<{
|
|
29
19
|
key: string;
|
|
30
20
|
index: number;
|
|
31
21
|
routeNames: string[];
|
|
32
|
-
history?: unknown[]
|
|
33
|
-
routes: (
|
|
34
|
-
key: string;
|
|
35
|
-
name: string;
|
|
36
|
-
path?: string | undefined;
|
|
37
|
-
}> & Readonly<{
|
|
38
|
-
params?: Readonly<object | undefined>;
|
|
39
|
-
}> & {
|
|
40
|
-
state?: Readonly<any> | import("@amazon-devices/react-navigation__core").PartialState<Readonly<any>> | undefined;
|
|
41
|
-
})[];
|
|
22
|
+
history?: unknown[];
|
|
23
|
+
routes: import("@amazon-devices/react-navigation__core").NavigationRoute<ParamListBase, string>[];
|
|
42
24
|
type: string;
|
|
43
25
|
stale: false;
|
|
44
26
|
}>, "stale" | "routes">> & Readonly<{
|
|
45
|
-
stale?: true
|
|
27
|
+
stale?: true;
|
|
46
28
|
routes: import("@amazon-devices/react-navigation__core").PartialRoute<import("@amazon-devices/react-navigation__core").Route<string, object | undefined>>[];
|
|
47
|
-
}> & any
|
|
29
|
+
}> & /*elided*/ any;
|
|
48
30
|
}) | undefined>;
|
|
49
31
|
};
|
|
50
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinking.native.d.ts","sourceRoot":"","sources":["../../../src/useLinking.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,sBAAsB,
|
|
1
|
+
{"version":3,"file":"useLinking.native.d.ts","sourceRoot":"","sources":["../../../src/useLinking.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAEnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C,KAAK,OAAO,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAI7C,wBAAgB,UAAU,CACxB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,EAClE,EACE,OAAc,EACd,QAAQ,EACR,MAAM,EACN,MAAM,EACN,aAQI,EACJ,SAmBC,EACD,gBAA0C,EAC1C,kBAA8C,GAC/C,EAAE,OAAO,EACV,kBAAkB,EAAE,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;EA8JtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLocale.d.ts","sourceRoot":"","sources":["../../../src/useLocale.tsx"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,SAAS;;EAUxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRoutePath.d.ts","sourceRoot":"","sources":["../../../src/useRoutePath.tsx"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,YAAY,uBAuB3B"}
|
|
@@ -11,7 +11,7 @@ type ScrollableView = {
|
|
|
11
11
|
scrollTo(options: ScrollOptions): void;
|
|
12
12
|
} | {
|
|
13
13
|
scrollToOffset(options: {
|
|
14
|
-
offset
|
|
14
|
+
offset: number;
|
|
15
15
|
animated?: boolean;
|
|
16
16
|
}): void;
|
|
17
17
|
} | {
|
|
@@ -22,6 +22,6 @@ type ScrollableWrapper = {
|
|
|
22
22
|
} | {
|
|
23
23
|
getNode(): ScrollableView;
|
|
24
24
|
} | ScrollableView;
|
|
25
|
-
export
|
|
25
|
+
export declare function useScrollToTop(ref: React.RefObject<ScrollableWrapper>): void;
|
|
26
26
|
export {};
|
|
27
27
|
//# sourceMappingURL=useScrollToTop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollToTop.d.ts","sourceRoot":"","sources":["../../../src/useScrollToTop.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useScrollToTop.d.ts","sourceRoot":"","sources":["../../../src/useScrollToTop.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,KAAK,aAAa,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEpE,KAAK,cAAc,GACf;IAAE,WAAW,IAAI,IAAI,CAAA;CAAE,GACvB;IAAE,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAAA;CAAE,GAC1C;IAAE,cAAc,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,GACzE;IAAE,uBAAuB,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAAA;CAAE,CAAC;AAE9D,KAAK,iBAAiB,GAClB;IAAE,kBAAkB,IAAI,KAAK,CAAC,SAAS,GAAG,UAAU,CAAA;CAAE,GACtD;IAAE,OAAO,IAAI,cAAc,CAAA;CAAE,GAC7B,cAAc,CAAC;AA8BnB,wBAAgB,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,QAoErE"}
|