@equinor/mad-core 0.0.3 → 0.1.0
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/CHANGELOG.md +46 -0
- package/dist/chunk-3XUVY5MJ.js +16 -0
- package/dist/chunk-4RNGXNYB.js +61 -0
- package/dist/chunk-5IIGFQQJ.js +44 -0
- package/dist/chunk-5LTGZQUP.js +0 -0
- package/dist/chunk-6GFARWDK.js +30 -0
- package/dist/chunk-6SBQOSWK.js +355 -0
- package/dist/chunk-7SJM4NDH.js +12 -0
- package/dist/chunk-AEGDSD6N.js +10 -0
- package/dist/chunk-AK7PA4BE.js +0 -0
- package/dist/chunk-AM5E5CYS.js +58 -0
- package/dist/chunk-BIMOM43W.js +9 -0
- package/dist/chunk-DCUF7ZWX.js +15 -0
- package/dist/chunk-DOHQX5XC.js +50 -0
- package/dist/chunk-DQ6CWJSW.js +53 -0
- package/dist/{chunk-SDIKBCFE.js → chunk-DTXV5LS2.js} +5 -3
- package/dist/chunk-DWAJZVKH.js +19 -0
- package/dist/chunk-EQYL7INQ.js +22 -0
- package/dist/chunk-GCBWBANV.js +10 -0
- package/dist/{chunk-FQWPBBPB.js → chunk-GSC3O7TW.js} +1 -1
- package/dist/chunk-GUKC6UGZ.js +0 -0
- package/dist/chunk-HGT5ZUYL.js +25 -0
- package/dist/chunk-JPK5SCA5.js +19 -0
- package/dist/chunk-LSEPBTCQ.js +50 -0
- package/dist/chunk-MDOJ2W2G.js +23 -0
- package/dist/chunk-N4V52CSH.js +43 -0
- package/dist/chunk-NLLLEXHT.js +118 -0
- package/dist/chunk-P636GRYJ.js +41 -0
- package/dist/chunk-PBCPR4ZO.js +8 -0
- package/dist/{chunk-AGAXO3NW.js → chunk-QXK5OE27.js} +5 -1
- package/dist/chunk-T3WC3PE2.js +23 -0
- package/dist/chunk-UVQ3Z5PG.js +0 -0
- package/dist/{chunk-FIFUL4JE.js → chunk-V4QL2TIA.js} +20 -4
- package/dist/chunk-VBEIVB4R.js +10 -0
- package/dist/chunk-VXUERD3Z.js +36 -0
- package/dist/{chunk-QU6EUUQS.js → chunk-XR6K2TU2.js} +28 -14
- package/dist/chunk-YY3XXUD6.js +23 -0
- package/dist/components/AnnouncementsProvider.js +2 -2
- package/dist/components/ErrorBoundary.d.ts +3 -0
- package/dist/components/ErrorBoundary.js +7 -0
- package/dist/components/NavigationContainer.d.ts +3 -0
- package/dist/components/NavigationContainer.js +7 -0
- package/dist/components/createCoreStackNavigator.d.ts +7 -7
- package/dist/components/createCoreStackNavigator.js +30 -13
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +55 -15
- package/dist/components/navigation/MadCoreSubHeader.d.ts +2 -0
- package/dist/components/navigation/MadCoreSubHeader.js +7 -0
- package/dist/components/navigation/index.d.ts +1 -0
- package/dist/components/navigation/index.js +11 -0
- package/dist/components/navigation/navigation-creators.d.ts +30 -0
- package/dist/components/navigation/navigation-creators.js +10 -0
- package/dist/components/screens/AboutScreen.d.ts +2 -0
- package/dist/components/screens/AboutScreen.js +7 -0
- package/dist/components/screens/CreateIncidentScreen.d.ts +2 -0
- package/dist/components/screens/CreateIncidentScreen.js +7 -0
- package/dist/components/screens/LoginScreen.js +8 -6
- package/dist/components/screens/language/SelectLanguageScreen.d.ts +2 -0
- package/dist/components/screens/language/SelectLanguageScreen.js +20 -0
- package/dist/components/screens/language/components/SelectLanguageCellGroup.d.ts +7 -0
- package/dist/components/screens/language/components/SelectLanguageCellGroup.js +12 -0
- package/dist/components/screens/release-notes/ChangeLog.d.ts +2 -3
- package/dist/components/screens/release-notes/ChangeLog.js +2 -3
- package/dist/components/screens/release-notes/ReleaseNotesScreen.d.ts +2 -0
- package/dist/components/screens/release-notes/ReleaseNotesScreen.js +22 -0
- package/dist/components/screens/release-notes/WhatsNewScreen.js +14 -8
- package/dist/components/screens/release-notes/fetchReleaseNotes.d.ts +1 -0
- package/dist/components/screens/release-notes/fetchReleaseNotes.js +4 -2
- package/dist/components/screens/settings/Section.d.ts +3 -0
- package/dist/components/screens/settings/Section.js +13 -0
- package/dist/components/screens/settings/SettingsScreen.d.ts +15 -0
- package/dist/components/screens/settings/SettingsScreen.js +22 -0
- package/dist/components/screens/settings/index.d.ts +2 -0
- package/dist/components/screens/settings/index.js +24 -0
- package/dist/components/screens/settings/renderCell.d.ts +5 -0
- package/dist/components/screens/settings/renderCell.js +7 -0
- package/dist/components/screens/settings/types.d.ts +22 -0
- package/dist/components/screens/settings/types.js +1 -0
- package/dist/components/screens/settings/useSignOut.d.ts +1 -0
- package/dist/components/screens/settings/useSignOut.js +10 -0
- package/dist/hooks/UseReleaseNotes.d.ts +6 -0
- package/dist/hooks/UseReleaseNotes.js +17 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +16 -0
- package/dist/hooks/useAccountOrDemoAccount.d.ts +7 -0
- package/dist/hooks/useAccountOrDemoAccount.js +9 -0
- package/dist/hooks/useCoreStackNavigation.d.ts +2 -1
- package/dist/hooks/useCoreStackNavigation.js +6 -4
- package/dist/hooks/useScreenTitleFromDictionary.d.ts +2 -0
- package/dist/hooks/useScreenTitleFromDictionary.js +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +68 -15
- package/dist/language/types.d.ts +2 -0
- package/dist/language/types.js +0 -0
- package/dist/language/useDictionary.d.ts +2 -0
- package/dist/language/useDictionary.js +11 -0
- package/dist/store/demo-mode/demo-mode.js +1 -1
- package/dist/store/demo-mode/index.js +1 -1
- package/dist/store/language/index.d.ts +0 -1
- package/dist/store/language/index.js +6 -8
- package/dist/store/language/language.d.ts +3 -2
- package/dist/store/language/language.js +6 -4
- package/dist/store/mad-config/hooks.d.ts +13 -3
- package/dist/store/mad-config/hooks.js +9 -4
- package/dist/store/mad-config/index.js +9 -5
- package/dist/store/mad-config/mad-config.js +1 -1
- package/dist/store/release-notes/index.js +2 -1
- package/dist/store/release-notes/release-notes.js +1 -1
- package/dist/store/storage.js +1 -1
- package/dist/types.d.ts +32 -1
- package/dist/utils/createMadCoreNavigator.d.ts +2 -2
- package/dist/utils/createMadCoreNavigator.js +26 -12
- package/dist/utils/dateUtils.js +1 -1
- package/dist/utils/getFinalSettingsConfig.d.ts +3 -0
- package/dist/utils/getFinalSettingsConfig.js +7 -0
- package/dist/utils/getNavigationRouteForLoginScreen.d.ts +2 -1
- package/dist/utils/getNavigationRouteForLoginScreen.js +8 -2
- package/dist/utils/getNavigationRouteForSelectLanguageScreen.d.ts +2 -0
- package/dist/utils/getNavigationRouteForSelectLanguageScreen.js +7 -0
- package/dist/utils/getNavigationRouteForWhatsNewScreen.d.ts +2 -0
- package/dist/utils/getNavigationRouteForWhatsNewScreen.js +12 -0
- package/dist/utils/getPremadeSettings.d.ts +8 -0
- package/dist/utils/getPremadeSettings.js +7 -0
- package/dist/utils/getRedirectUriFromAuthConfig.d.ts +2 -0
- package/dist/utils/getRedirectUriFromAuthConfig.js +7 -0
- package/dist/utils/madCommonUtils.js +1 -1
- package/package.json +13 -12
- package/dist/chunk-3DI7YERU.js +0 -80
- package/dist/chunk-ICIPJG6P.js +0 -34
- package/dist/chunk-J53YLHKZ.js +0 -15
- package/dist/chunk-JPVO5SH5.js +0 -33
- package/dist/chunk-JRIQBUIT.js +0 -95
- package/dist/chunk-K2H37TUR.js +0 -7
- package/dist/chunk-XYNA7G2L.js +0 -62
- package/dist/store/language/supported-languages.d.ts +0 -11
- package/dist/store/language/supported-languages.js +0 -7
- /package/dist/{chunk-HAB34YS7.js → chunk-2GCLIPZP.js} +0 -0
- /package/dist/{chunk-USETLDR7.js → chunk-5GBNULIT.js} +0 -0
- /package/dist/{chunk-UTXWRAEE.js → chunk-BZK6J33D.js} +0 -0
|
@@ -3,30 +3,34 @@ import {
|
|
|
3
3
|
} from "./chunk-5BVQKJQB.js";
|
|
4
4
|
import {
|
|
5
5
|
getNavigationRouteForLoginScreen
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QXK5OE27.js";
|
|
7
|
+
import {
|
|
8
|
+
useCoreStackNavigation
|
|
9
|
+
} from "./chunk-BIMOM43W.js";
|
|
7
10
|
import {
|
|
8
11
|
enableDemoMode
|
|
9
12
|
} from "./chunk-UZ6YMQV2.js";
|
|
10
13
|
import {
|
|
11
14
|
useAppVersion,
|
|
12
15
|
useAuthConfig,
|
|
16
|
+
useDictionary,
|
|
13
17
|
useLoginScreenConfig
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
useCoreStackNavigation
|
|
17
|
-
} from "./chunk-K2H37TUR.js";
|
|
18
|
+
} from "./chunk-6SBQOSWK.js";
|
|
18
19
|
import {
|
|
19
20
|
__spreadProps,
|
|
20
21
|
__spreadValues
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BZK6J33D.js";
|
|
22
23
|
|
|
23
24
|
// src/components/screens/LoginScreen.tsx
|
|
24
25
|
import { Button, EDSStyleSheet, Typography, useStyles } from "@equinor/mad-components";
|
|
25
26
|
import React, { useState } from "react";
|
|
26
27
|
import { Image, Pressable, View } from "react-native";
|
|
27
28
|
import { LoginButton } from "@equinor/mad-auth";
|
|
29
|
+
import { metricKeys, metricStatus, track } from "@equinor/mad-insights";
|
|
28
30
|
var LoginScreen = () => {
|
|
31
|
+
var _a;
|
|
29
32
|
const styles = useStyles(theme);
|
|
33
|
+
const dictionary = useDictionary();
|
|
30
34
|
const authConfig = useAuthConfig();
|
|
31
35
|
const navigation = useCoreStackNavigation();
|
|
32
36
|
const appVersion = useAppVersion();
|
|
@@ -37,21 +41,31 @@ var LoginScreen = () => {
|
|
|
37
41
|
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(Typography, { variant: "h1" }, title), /* @__PURE__ */ React.createElement(Pressable, { onPress: () => setDemoPressCount((state) => state + 1) }, /* @__PURE__ */ React.createElement(Image, { source: logo, resizeMode: "contain", style: { height: 200, width: 200 } })), /* @__PURE__ */ React.createElement(View, { style: { gap: 8 } }, /* @__PURE__ */ React.createElement(
|
|
38
42
|
LoginButton,
|
|
39
43
|
__spreadProps(__spreadValues({}, authConfig), {
|
|
40
|
-
onAuthenticationSuccessful: () =>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
onAuthenticationSuccessful: (_, type) => {
|
|
45
|
+
if (type === "AUTOMATIC") {
|
|
46
|
+
void track(metricKeys.AUTHENTICATION_AUTOMATIC);
|
|
47
|
+
} else {
|
|
48
|
+
void track(metricKeys.AUTHENTICATION, metricStatus.SUCCESS);
|
|
49
|
+
}
|
|
50
|
+
navigation.navigate(
|
|
51
|
+
getNavigationRouteForLoginScreen({
|
|
52
|
+
appVersion,
|
|
53
|
+
lastDisplayedReleaseNotesVersion
|
|
54
|
+
})
|
|
55
|
+
);
|
|
56
|
+
},
|
|
57
|
+
onAuthenticationFailed: (error) => void track(metricKeys.AUTHENTICATION, metricStatus.FAILED, void 0, { error }),
|
|
58
|
+
title: dictionary.login.logIn,
|
|
46
59
|
enableAutomaticAuthentication: true,
|
|
47
|
-
scopes: authConfig.scopes
|
|
60
|
+
scopes: (_a = authConfig.scopes) != null ? _a : []
|
|
48
61
|
})
|
|
49
62
|
), shouldDisplayDemoButton && /* @__PURE__ */ React.createElement(
|
|
50
63
|
Button,
|
|
51
64
|
{
|
|
52
|
-
title:
|
|
65
|
+
title: dictionary.login.demo,
|
|
53
66
|
variant: "outlined",
|
|
54
67
|
onPress: () => {
|
|
68
|
+
void track(metricKeys.AUTHENTICATION_DEMO);
|
|
55
69
|
enableDemoMode();
|
|
56
70
|
navigation.navigate(
|
|
57
71
|
getNavigationRouteForLoginScreen({
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__spreadProps,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk-BZK6J33D.js";
|
|
5
|
+
|
|
6
|
+
// src/components/ErrorBoundary.tsx
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { ErrorBoundary as MadErrorBoundary } from "@equinor/mad-components";
|
|
9
|
+
import { trackCustom } from "@equinor/mad-insights";
|
|
10
|
+
var ErrorBoundary = (props) => /* @__PURE__ */ React.createElement(
|
|
11
|
+
MadErrorBoundary,
|
|
12
|
+
__spreadProps(__spreadValues({}, props), {
|
|
13
|
+
onError: (error, info) => {
|
|
14
|
+
var _a;
|
|
15
|
+
trackCustom(`${error.name} - ${error.message}`, { error, info });
|
|
16
|
+
(_a = props.onError) == null ? void 0 : _a.call(props, error, info);
|
|
17
|
+
}
|
|
18
|
+
})
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
ErrorBoundary
|
|
23
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { CoreStackParamListBase, MadConfig } from "../types";
|
|
3
3
|
export declare const createCoreStackNavigator: (config: MadConfig) => {
|
|
4
4
|
Navigator: (props: Omit<Omit<import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
5
|
-
id?: string;
|
|
5
|
+
id?: string | undefined;
|
|
6
6
|
children: import("react").ReactNode;
|
|
7
7
|
screenListeners?: Partial<{
|
|
8
8
|
transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
|
|
@@ -21,13 +21,13 @@ export declare const createCoreStackNavigator: (config: MadConfig) => {
|
|
|
21
21
|
blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
|
|
22
22
|
state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
|
|
23
23
|
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
|
|
24
|
-
}>);
|
|
24
|
+
}>) | undefined;
|
|
25
25
|
screenOptions?: import("@equinor/mad-navigation").MadNativeStackNavigationOptions | ((props: {
|
|
26
26
|
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
27
27
|
navigation: any;
|
|
28
|
-
}) => import("@equinor/mad-navigation").MadNativeStackNavigationOptions);
|
|
29
|
-
} & import("@react-navigation/routers").StackRouterOptions, "children" | "id" | "initialRouteName" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
30
|
-
id?: string;
|
|
28
|
+
}) => import("@equinor/mad-navigation").MadNativeStackNavigationOptions) | undefined;
|
|
29
|
+
} & import("@react-navigation/routers").StackRouterOptions & import("@equinor/mad-navigation/dist/_internal/types").MadCustomFactoryProps, "children" | "id" | "initialRouteName" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
30
|
+
id?: string | undefined;
|
|
31
31
|
children: import("react").ReactNode;
|
|
32
32
|
screenListeners?: Partial<{
|
|
33
33
|
transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
|
|
@@ -46,11 +46,11 @@ export declare const createCoreStackNavigator: (config: MadConfig) => {
|
|
|
46
46
|
blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
|
|
47
47
|
state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
|
|
48
48
|
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
|
|
49
|
-
}>);
|
|
49
|
+
}>) | undefined;
|
|
50
50
|
screenOptions?: import("@equinor/mad-navigation").MadNativeStackNavigationOptions | ((props: {
|
|
51
51
|
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
52
52
|
navigation: any;
|
|
53
|
-
}) => import("@equinor/mad-navigation").MadNativeStackNavigationOptions);
|
|
53
|
+
}) => import("@equinor/mad-navigation").MadNativeStackNavigationOptions) | undefined;
|
|
54
54
|
}, "initialRouteName">) => import("react").JSX.Element;
|
|
55
55
|
Group: import("react").ComponentType<import("@react-navigation/core").RouteGroupConfig<CoreStackParamListBase, import("@equinor/mad-navigation").MadNativeStackNavigationOptions>>;
|
|
56
56
|
Screen: <RouteName extends keyof CoreStackParamListBase>(_: import("@react-navigation/core").RouteConfig<CoreStackParamListBase, RouteName, import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, import("@equinor/mad-navigation").MadNativeStackNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap>) => null;
|
|
@@ -1,24 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreStackNavigator
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-DTXV5LS2.js";
|
|
4
|
+
import "../chunk-2GCLIPZP.js";
|
|
5
|
+
import "../chunk-3XUVY5MJ.js";
|
|
6
|
+
import "../chunk-PBCPR4ZO.js";
|
|
7
|
+
import "../chunk-DQ6CWJSW.js";
|
|
8
|
+
import "../chunk-N4V52CSH.js";
|
|
9
|
+
import "../chunk-JPK5SCA5.js";
|
|
10
|
+
import "../chunk-4RNGXNYB.js";
|
|
11
|
+
import "../chunk-NLLLEXHT.js";
|
|
12
|
+
import "../chunk-AM5E5CYS.js";
|
|
13
|
+
import "../chunk-UVQ3Z5PG.js";
|
|
14
|
+
import "../chunk-VBEIVB4R.js";
|
|
15
|
+
import "../chunk-GCBWBANV.js";
|
|
16
|
+
import "../chunk-XR6K2TU2.js";
|
|
17
|
+
import "../chunk-5BVQKJQB.js";
|
|
8
18
|
import "../chunk-OCWASWDK.js";
|
|
19
|
+
import "../chunk-QXK5OE27.js";
|
|
20
|
+
import "../chunk-AEGDSD6N.js";
|
|
21
|
+
import "../chunk-T3WC3PE2.js";
|
|
22
|
+
import "../chunk-GUKC6UGZ.js";
|
|
23
|
+
import "../chunk-EQYL7INQ.js";
|
|
24
|
+
import "../chunk-MDOJ2W2G.js";
|
|
25
|
+
import "../chunk-BIMOM43W.js";
|
|
26
|
+
import "../chunk-GSC3O7TW.js";
|
|
27
|
+
import "../chunk-5IIGFQQJ.js";
|
|
28
|
+
import "../chunk-6GFARWDK.js";
|
|
29
|
+
import "../chunk-V4QL2TIA.js";
|
|
9
30
|
import "../chunk-RFYZGBU4.js";
|
|
10
|
-
import "../chunk-QU6EUUQS.js";
|
|
11
|
-
import "../chunk-5BVQKJQB.js";
|
|
12
|
-
import "../chunk-AGAXO3NW.js";
|
|
13
31
|
import "../chunk-CCVKLLIO.js";
|
|
14
32
|
import "../chunk-UZ6YMQV2.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-JPVO5SH5.js";
|
|
33
|
+
import "../chunk-6SBQOSWK.js";
|
|
17
34
|
import "../chunk-ZSTTHIEF.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-P636GRYJ.js";
|
|
36
|
+
import "../chunk-DCUF7ZWX.js";
|
|
20
37
|
import "../chunk-2OMVVDBU.js";
|
|
21
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-BZK6J33D.js";
|
|
22
39
|
export {
|
|
23
40
|
createCoreStackNavigator
|
|
24
41
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -1,25 +1,65 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-5LTGZQUP.js";
|
|
2
|
+
import "../chunk-AK7PA4BE.js";
|
|
3
|
+
import "../chunk-5GBNULIT.js";
|
|
4
|
+
import {
|
|
5
|
+
SettingsScreen
|
|
6
|
+
} from "../chunk-LSEPBTCQ.js";
|
|
7
|
+
import "../chunk-VXUERD3Z.js";
|
|
8
|
+
import "../chunk-DWAJZVKH.js";
|
|
9
|
+
import "../chunk-DOHQX5XC.js";
|
|
10
|
+
import "../chunk-7SJM4NDH.js";
|
|
11
|
+
import {
|
|
12
|
+
ErrorBoundary
|
|
13
|
+
} from "../chunk-YY3XXUD6.js";
|
|
14
|
+
import {
|
|
15
|
+
NavigationContainer
|
|
16
|
+
} from "../chunk-HGT5ZUYL.js";
|
|
2
17
|
import {
|
|
3
18
|
createCoreStackNavigator
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
} from "../chunk-DTXV5LS2.js";
|
|
20
|
+
import "../chunk-2GCLIPZP.js";
|
|
21
|
+
import {
|
|
22
|
+
createBottomTabNavigator,
|
|
23
|
+
createNativeStackNavigator
|
|
24
|
+
} from "../chunk-3XUVY5MJ.js";
|
|
25
|
+
import "../chunk-PBCPR4ZO.js";
|
|
26
|
+
import "../chunk-DQ6CWJSW.js";
|
|
27
|
+
import "../chunk-N4V52CSH.js";
|
|
28
|
+
import "../chunk-JPK5SCA5.js";
|
|
29
|
+
import "../chunk-4RNGXNYB.js";
|
|
30
|
+
import "../chunk-NLLLEXHT.js";
|
|
31
|
+
import "../chunk-AM5E5CYS.js";
|
|
32
|
+
import "../chunk-UVQ3Z5PG.js";
|
|
33
|
+
import "../chunk-VBEIVB4R.js";
|
|
34
|
+
import "../chunk-GCBWBANV.js";
|
|
35
|
+
import "../chunk-XR6K2TU2.js";
|
|
36
|
+
import "../chunk-5BVQKJQB.js";
|
|
9
37
|
import "../chunk-OCWASWDK.js";
|
|
38
|
+
import "../chunk-QXK5OE27.js";
|
|
39
|
+
import "../chunk-AEGDSD6N.js";
|
|
40
|
+
import "../chunk-T3WC3PE2.js";
|
|
41
|
+
import "../chunk-GUKC6UGZ.js";
|
|
42
|
+
import "../chunk-EQYL7INQ.js";
|
|
43
|
+
import "../chunk-MDOJ2W2G.js";
|
|
44
|
+
import "../chunk-BIMOM43W.js";
|
|
45
|
+
import "../chunk-GSC3O7TW.js";
|
|
46
|
+
import "../chunk-5IIGFQQJ.js";
|
|
47
|
+
import "../chunk-6GFARWDK.js";
|
|
48
|
+
import "../chunk-V4QL2TIA.js";
|
|
10
49
|
import "../chunk-RFYZGBU4.js";
|
|
11
|
-
import "../chunk-QU6EUUQS.js";
|
|
12
|
-
import "../chunk-5BVQKJQB.js";
|
|
13
|
-
import "../chunk-AGAXO3NW.js";
|
|
14
50
|
import "../chunk-CCVKLLIO.js";
|
|
15
51
|
import "../chunk-UZ6YMQV2.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-JPVO5SH5.js";
|
|
52
|
+
import "../chunk-6SBQOSWK.js";
|
|
18
53
|
import "../chunk-ZSTTHIEF.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
54
|
+
import "../chunk-P636GRYJ.js";
|
|
55
|
+
import "../chunk-DCUF7ZWX.js";
|
|
21
56
|
import "../chunk-2OMVVDBU.js";
|
|
22
|
-
import "../chunk-
|
|
57
|
+
import "../chunk-BZK6J33D.js";
|
|
23
58
|
export {
|
|
24
|
-
|
|
59
|
+
ErrorBoundary,
|
|
60
|
+
NavigationContainer,
|
|
61
|
+
SettingsScreen,
|
|
62
|
+
createBottomTabNavigator,
|
|
63
|
+
createCoreStackNavigator,
|
|
64
|
+
createNativeStackNavigator
|
|
25
65
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./navigation-creators";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../../chunk-2GCLIPZP.js";
|
|
2
|
+
import {
|
|
3
|
+
createBottomTabNavigator,
|
|
4
|
+
createNativeStackNavigator
|
|
5
|
+
} from "../../chunk-3XUVY5MJ.js";
|
|
6
|
+
import "../../chunk-PBCPR4ZO.js";
|
|
7
|
+
import "../../chunk-BZK6J33D.js";
|
|
8
|
+
export {
|
|
9
|
+
createBottomTabNavigator,
|
|
10
|
+
createNativeStackNavigator
|
|
11
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const createBottomTabNavigator: <ParamList extends import("@react-navigation/routers").ParamListBase>() => import("@react-navigation/core").TypedNavigator<ParamList, import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>, import("@equinor/mad-navigation").MadBottomTabNavigationOptions, import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, ({ id, initialRouteName, backBehavior, children, screenListeners, screenOptions, sceneContainerStyle, customSubHeader, ...rest }: import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
3
|
+
id?: string | undefined;
|
|
4
|
+
children: import("react").ReactNode;
|
|
5
|
+
screenListeners?: Partial<{
|
|
6
|
+
tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabPress">;
|
|
7
|
+
tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabLongPress">;
|
|
8
|
+
focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "focus">;
|
|
9
|
+
blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "blur">;
|
|
10
|
+
state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "state">;
|
|
11
|
+
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "beforeRemove">;
|
|
12
|
+
}> | ((props: {
|
|
13
|
+
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
14
|
+
navigation: any;
|
|
15
|
+
}) => Partial<{
|
|
16
|
+
tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabPress">;
|
|
17
|
+
tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabLongPress">;
|
|
18
|
+
focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "focus">;
|
|
19
|
+
blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "blur">;
|
|
20
|
+
state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "state">;
|
|
21
|
+
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "beforeRemove">;
|
|
22
|
+
}>) | undefined;
|
|
23
|
+
screenOptions?: import("@equinor/mad-navigation").MadBottomTabNavigationOptions | ((props: {
|
|
24
|
+
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
25
|
+
navigation: any;
|
|
26
|
+
}) => import("@equinor/mad-navigation").MadBottomTabNavigationOptions) | undefined;
|
|
27
|
+
} & import("@react-navigation/routers").DefaultRouterOptions & {
|
|
28
|
+
backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior | undefined;
|
|
29
|
+
} & import("@equinor/mad-navigation").BottomTabNavigationConfig & import("@equinor/mad-navigation/dist/_internal/types").MadCustomFactoryProps) => import("react").JSX.Element>;
|
|
30
|
+
export declare const createNativeStackNavigator: <ParamList extends import("@react-navigation/routers").ParamListBase>() => import("@react-navigation/core").TypedNavigator<ParamList, import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, import("@equinor/mad-navigation").MadNativeStackNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap, ({ id, initialRouteName, children, screenListeners, screenOptions, customSubHeader, ...rest }: import("@equinor/mad-navigation").NativeStackNavigatorProps) => import("react").JSX.Element>;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoginScreen
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-XR6K2TU2.js";
|
|
4
4
|
import "../../chunk-5BVQKJQB.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-QXK5OE27.js";
|
|
6
|
+
import "../../chunk-T3WC3PE2.js";
|
|
7
|
+
import "../../chunk-BIMOM43W.js";
|
|
6
8
|
import "../../chunk-CCVKLLIO.js";
|
|
7
9
|
import "../../chunk-UZ6YMQV2.js";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-JPVO5SH5.js";
|
|
10
|
+
import "../../chunk-6SBQOSWK.js";
|
|
10
11
|
import "../../chunk-ZSTTHIEF.js";
|
|
11
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-P636GRYJ.js";
|
|
13
|
+
import "../../chunk-DCUF7ZWX.js";
|
|
12
14
|
import "../../chunk-2OMVVDBU.js";
|
|
13
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-BZK6J33D.js";
|
|
14
16
|
export {
|
|
15
17
|
LoginScreen
|
|
16
18
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SelectLanguageScreen
|
|
3
|
+
} from "../../../chunk-N4V52CSH.js";
|
|
4
|
+
import "../../../chunk-JPK5SCA5.js";
|
|
5
|
+
import "../../../chunk-AEGDSD6N.js";
|
|
6
|
+
import "../../../chunk-GUKC6UGZ.js";
|
|
7
|
+
import "../../../chunk-EQYL7INQ.js";
|
|
8
|
+
import "../../../chunk-MDOJ2W2G.js";
|
|
9
|
+
import "../../../chunk-BIMOM43W.js";
|
|
10
|
+
import "../../../chunk-CCVKLLIO.js";
|
|
11
|
+
import "../../../chunk-UZ6YMQV2.js";
|
|
12
|
+
import "../../../chunk-6SBQOSWK.js";
|
|
13
|
+
import "../../../chunk-ZSTTHIEF.js";
|
|
14
|
+
import "../../../chunk-P636GRYJ.js";
|
|
15
|
+
import "../../../chunk-DCUF7ZWX.js";
|
|
16
|
+
import "../../../chunk-2OMVVDBU.js";
|
|
17
|
+
import "../../../chunk-BZK6J33D.js";
|
|
18
|
+
export {
|
|
19
|
+
SelectLanguageScreen
|
|
20
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type SelectLanguageCellGroupProps = {
|
|
3
|
+
selectedLanguageCodeDraft: string;
|
|
4
|
+
setSelectedLanguageCodeDraft: (code: string) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const SelectLanguageCellGroup: ({ selectedLanguageCodeDraft, setSelectedLanguageCodeDraft }: SelectLanguageCellGroupProps) => React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SelectLanguageCellGroup
|
|
3
|
+
} from "../../../../chunk-JPK5SCA5.js";
|
|
4
|
+
import "../../../../chunk-6SBQOSWK.js";
|
|
5
|
+
import "../../../../chunk-ZSTTHIEF.js";
|
|
6
|
+
import "../../../../chunk-P636GRYJ.js";
|
|
7
|
+
import "../../../../chunk-DCUF7ZWX.js";
|
|
8
|
+
import "../../../../chunk-2OMVVDBU.js";
|
|
9
|
+
import "../../../../chunk-BZK6J33D.js";
|
|
10
|
+
export {
|
|
11
|
+
SelectLanguageCellGroup
|
|
12
|
+
};
|
|
@@ -6,9 +6,8 @@ export type Release = {
|
|
|
6
6
|
releaseNote: string;
|
|
7
7
|
releaseDate: string;
|
|
8
8
|
};
|
|
9
|
-
type
|
|
9
|
+
type ChangeLogProps = {
|
|
10
10
|
release: Release;
|
|
11
|
-
onPressAffirm: () => void;
|
|
12
11
|
};
|
|
13
|
-
export declare const ChangeLog: ({ release
|
|
12
|
+
export declare const ChangeLog: ({ release }: ChangeLogProps) => React.JSX.Element;
|
|
14
13
|
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ReleaseNotesScreen
|
|
3
|
+
} from "../../../chunk-4RNGXNYB.js";
|
|
4
|
+
import "../../../chunk-AM5E5CYS.js";
|
|
5
|
+
import "../../../chunk-OCWASWDK.js";
|
|
6
|
+
import "../../../chunk-MDOJ2W2G.js";
|
|
7
|
+
import "../../../chunk-BIMOM43W.js";
|
|
8
|
+
import "../../../chunk-5IIGFQQJ.js";
|
|
9
|
+
import "../../../chunk-6GFARWDK.js";
|
|
10
|
+
import "../../../chunk-V4QL2TIA.js";
|
|
11
|
+
import "../../../chunk-RFYZGBU4.js";
|
|
12
|
+
import "../../../chunk-CCVKLLIO.js";
|
|
13
|
+
import "../../../chunk-UZ6YMQV2.js";
|
|
14
|
+
import "../../../chunk-6SBQOSWK.js";
|
|
15
|
+
import "../../../chunk-ZSTTHIEF.js";
|
|
16
|
+
import "../../../chunk-P636GRYJ.js";
|
|
17
|
+
import "../../../chunk-DCUF7ZWX.js";
|
|
18
|
+
import "../../../chunk-2OMVVDBU.js";
|
|
19
|
+
import "../../../chunk-BZK6J33D.js";
|
|
20
|
+
export {
|
|
21
|
+
ReleaseNotesScreen
|
|
22
|
+
};
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WhatsNewScreen
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-NLLLEXHT.js";
|
|
4
|
+
import "../../../chunk-AM5E5CYS.js";
|
|
5
|
+
import "../../../chunk-UVQ3Z5PG.js";
|
|
6
|
+
import "../../../chunk-5BVQKJQB.js";
|
|
6
7
|
import "../../../chunk-OCWASWDK.js";
|
|
8
|
+
import "../../../chunk-GUKC6UGZ.js";
|
|
9
|
+
import "../../../chunk-EQYL7INQ.js";
|
|
10
|
+
import "../../../chunk-MDOJ2W2G.js";
|
|
11
|
+
import "../../../chunk-BIMOM43W.js";
|
|
12
|
+
import "../../../chunk-6GFARWDK.js";
|
|
13
|
+
import "../../../chunk-V4QL2TIA.js";
|
|
7
14
|
import "../../../chunk-RFYZGBU4.js";
|
|
8
|
-
import "../../../chunk-5BVQKJQB.js";
|
|
9
15
|
import "../../../chunk-CCVKLLIO.js";
|
|
10
16
|
import "../../../chunk-UZ6YMQV2.js";
|
|
11
|
-
import "../../../chunk-
|
|
12
|
-
import "../../../chunk-JPVO5SH5.js";
|
|
17
|
+
import "../../../chunk-6SBQOSWK.js";
|
|
13
18
|
import "../../../chunk-ZSTTHIEF.js";
|
|
14
|
-
import "../../../chunk-
|
|
19
|
+
import "../../../chunk-P636GRYJ.js";
|
|
20
|
+
import "../../../chunk-DCUF7ZWX.js";
|
|
15
21
|
import "../../../chunk-2OMVVDBU.js";
|
|
16
|
-
import "../../../chunk-
|
|
22
|
+
import "../../../chunk-BZK6J33D.js";
|
|
17
23
|
export {
|
|
18
24
|
WhatsNewScreen
|
|
19
25
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Release } from "./ChangeLog";
|
|
2
2
|
import { Environment } from "../../../types";
|
|
3
3
|
export declare const fetchReleaseNotes: (env: Environment, servicePortalName: string, appVersion: string) => Promise<Release>;
|
|
4
|
+
export declare const fetchAllReleaseNotes: (env: Environment, servicePortalName: string) => Promise<Release[]>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
+
fetchAllReleaseNotes,
|
|
2
3
|
fetchReleaseNotes
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-V4QL2TIA.js";
|
|
4
5
|
import "../../../chunk-RFYZGBU4.js";
|
|
5
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-BZK6J33D.js";
|
|
6
7
|
export {
|
|
8
|
+
fetchAllReleaseNotes,
|
|
7
9
|
fetchReleaseNotes
|
|
8
10
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SettingsSection
|
|
3
|
+
} from "../../../chunk-DWAJZVKH.js";
|
|
4
|
+
import "../../../chunk-DOHQX5XC.js";
|
|
5
|
+
import "../../../chunk-GUKC6UGZ.js";
|
|
6
|
+
import "../../../chunk-EQYL7INQ.js";
|
|
7
|
+
import "../../../chunk-BIMOM43W.js";
|
|
8
|
+
import "../../../chunk-CCVKLLIO.js";
|
|
9
|
+
import "../../../chunk-UZ6YMQV2.js";
|
|
10
|
+
import "../../../chunk-BZK6J33D.js";
|
|
11
|
+
export {
|
|
12
|
+
SettingsSection
|
|
13
|
+
};
|