@equinor/mad-core 0.0.4 → 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 +27 -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-6GFARWDK.js +30 -0
- package/dist/chunk-6SBQOSWK.js +355 -0
- package/dist/chunk-AEGDSD6N.js +10 -0
- package/dist/{chunk-PEFOX6JA.js → chunk-AM5E5CYS.js} +7 -19
- package/dist/chunk-BIMOM43W.js +9 -0
- package/dist/chunk-DCUF7ZWX.js +15 -0
- package/dist/chunk-DQ6CWJSW.js +53 -0
- package/dist/{chunk-HOPDSUAE.js → chunk-DTXV5LS2.js} +5 -3
- package/dist/{chunk-E36MLVBD.js → chunk-DWAJZVKH.js} +1 -1
- package/dist/{chunk-FQWPBBPB.js → chunk-GSC3O7TW.js} +1 -1
- package/dist/chunk-HGT5ZUYL.js +25 -0
- package/dist/chunk-JPK5SCA5.js +19 -0
- package/dist/{chunk-KXAIAYE4.js → chunk-LSEPBTCQ.js} +17 -11
- package/dist/chunk-MDOJ2W2G.js +23 -0
- package/dist/chunk-N4V52CSH.js +43 -0
- package/dist/{chunk-TLJLKQRN.js → chunk-NLLLEXHT.js} +42 -41
- package/dist/{chunk-3LDWV3SJ.js → chunk-P636GRYJ.js} +18 -18
- 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-FIFUL4JE.js → chunk-V4QL2TIA.js} +20 -4
- package/dist/{chunk-FUGJZRIR.js → chunk-VXUERD3Z.js} +5 -5
- package/dist/{chunk-5QALP2TZ.js → chunk-XR6K2TU2.js} +31 -17
- 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 +1 -1
- package/dist/components/createCoreStackNavigator.js +28 -16
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +46 -23
- 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.js +1 -1
- package/dist/components/screens/CreateIncidentScreen.js +1 -1
- package/dist/components/screens/LoginScreen.js +10 -9
- 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.js +2 -3
- package/dist/components/screens/release-notes/ReleaseNotesScreen.js +17 -2
- package/dist/components/screens/release-notes/WhatsNewScreen.js +14 -10
- 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.js +3 -3
- package/dist/components/screens/settings/SettingsScreen.js +11 -9
- package/dist/components/screens/settings/index.js +12 -10
- package/dist/components/screens/settings/renderCell.js +1 -1
- package/dist/components/screens/settings/useSignOut.js +3 -3
- package/dist/hooks/UseReleaseNotes.d.ts +6 -0
- package/dist/hooks/UseReleaseNotes.js +17 -0
- package/dist/hooks/index.js +7 -5
- package/dist/hooks/useAccountOrDemoAccount.js +1 -1
- 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 +1 -0
- package/dist/index.js +55 -25
- 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 -9
- package/dist/store/language/language.d.ts +3 -2
- package/dist/store/language/language.js +6 -5
- package/dist/store/mad-config/hooks.d.ts +9 -3
- package/dist/store/mad-config/hooks.js +5 -3
- package/dist/store/mad-config/index.js +5 -4
- package/dist/store/mad-config/mad-config.js +1 -1
- package/dist/store/release-notes/index.js +1 -1
- package/dist/store/release-notes/release-notes.js +1 -1
- package/dist/store/storage.js +1 -1
- package/dist/types.d.ts +19 -1
- package/dist/utils/createMadCoreNavigator.d.ts +2 -2
- package/dist/utils/createMadCoreNavigator.js +24 -15
- package/dist/utils/dateUtils.js +1 -1
- package/dist/utils/getFinalSettingsConfig.js +1 -1
- 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 +2 -1
- package/dist/utils/getPremadeSettings.js +2 -2
- 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-35THIGVH.js +0 -42
- package/dist/chunk-4VKFRNU7.js +0 -10
- package/dist/chunk-CXOQFGMM.js +0 -50
- package/dist/chunk-J53YLHKZ.js +0 -15
- 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-635YONGY.js → chunk-2GCLIPZP.js} +0 -0
- /package/dist/{chunk-USETLDR7.js → chunk-5LTGZQUP.js} +0 -0
- /package/dist/{chunk-UTXWRAEE.js → chunk-BZK6J33D.js} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useScreenTitleFromDictionary
|
|
3
|
+
} from "../chunk-MDOJ2W2G.js";
|
|
4
|
+
import "../chunk-BIMOM43W.js";
|
|
5
|
+
import "../chunk-6SBQOSWK.js";
|
|
6
|
+
import "../chunk-ZSTTHIEF.js";
|
|
7
|
+
import "../chunk-P636GRYJ.js";
|
|
8
|
+
import "../chunk-DCUF7ZWX.js";
|
|
9
|
+
import "../chunk-2OMVVDBU.js";
|
|
10
|
+
import "../chunk-BZK6J33D.js";
|
|
11
|
+
export {
|
|
12
|
+
useScreenTitleFromDictionary
|
|
13
|
+
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,49 +1,79 @@
|
|
|
1
1
|
import "./chunk-6F4PWJZI.js";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-5LTGZQUP.js";
|
|
3
3
|
import "./chunk-AK7PA4BE.js";
|
|
4
|
+
import "./chunk-5GBNULIT.js";
|
|
4
5
|
import {
|
|
5
6
|
SettingsScreen
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-LSEPBTCQ.js";
|
|
8
|
+
import "./chunk-VXUERD3Z.js";
|
|
9
|
+
import "./chunk-DWAJZVKH.js";
|
|
8
10
|
import "./chunk-DOHQX5XC.js";
|
|
9
|
-
import "./chunk-5GBNULIT.js";
|
|
10
|
-
import "./chunk-FUGJZRIR.js";
|
|
11
11
|
import "./chunk-7SJM4NDH.js";
|
|
12
|
+
import {
|
|
13
|
+
ErrorBoundary
|
|
14
|
+
} from "./chunk-YY3XXUD6.js";
|
|
15
|
+
import {
|
|
16
|
+
NavigationContainer
|
|
17
|
+
} from "./chunk-HGT5ZUYL.js";
|
|
12
18
|
import {
|
|
13
19
|
createCoreStackNavigator
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
} from "./chunk-DTXV5LS2.js";
|
|
21
|
+
import "./chunk-2GCLIPZP.js";
|
|
22
|
+
import {
|
|
23
|
+
createBottomTabNavigator,
|
|
24
|
+
createNativeStackNavigator
|
|
25
|
+
} from "./chunk-3XUVY5MJ.js";
|
|
26
|
+
import "./chunk-PBCPR4ZO.js";
|
|
27
|
+
import "./chunk-DQ6CWJSW.js";
|
|
28
|
+
import "./chunk-N4V52CSH.js";
|
|
29
|
+
import "./chunk-JPK5SCA5.js";
|
|
30
|
+
import "./chunk-4RNGXNYB.js";
|
|
31
|
+
import "./chunk-NLLLEXHT.js";
|
|
32
|
+
import "./chunk-AM5E5CYS.js";
|
|
19
33
|
import "./chunk-UVQ3Z5PG.js";
|
|
20
|
-
import "./chunk-PEFOX6JA.js";
|
|
21
34
|
import "./chunk-VBEIVB4R.js";
|
|
22
35
|
import "./chunk-GCBWBANV.js";
|
|
23
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-XR6K2TU2.js";
|
|
24
37
|
import "./chunk-5BVQKJQB.js";
|
|
25
|
-
import "./chunk-USETLDR7.js";
|
|
26
|
-
import "./chunk-35THIGVH.js";
|
|
27
|
-
import "./chunk-ZSTTHIEF.js";
|
|
28
|
-
import "./chunk-2OMVVDBU.js";
|
|
29
38
|
import "./chunk-OCWASWDK.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-FQWPBBPB.js";
|
|
39
|
+
import "./chunk-QXK5OE27.js";
|
|
40
|
+
import "./chunk-AEGDSD6N.js";
|
|
41
|
+
import "./chunk-T3WC3PE2.js";
|
|
34
42
|
import "./chunk-GUKC6UGZ.js";
|
|
35
43
|
import {
|
|
36
44
|
useAccountOrDemoAccount
|
|
37
45
|
} from "./chunk-EQYL7INQ.js";
|
|
46
|
+
import "./chunk-MDOJ2W2G.js";
|
|
47
|
+
import {
|
|
48
|
+
useCoreStackNavigation,
|
|
49
|
+
useCoreStackRoute
|
|
50
|
+
} from "./chunk-BIMOM43W.js";
|
|
51
|
+
import "./chunk-GSC3O7TW.js";
|
|
52
|
+
import "./chunk-5IIGFQQJ.js";
|
|
53
|
+
import "./chunk-6GFARWDK.js";
|
|
54
|
+
import "./chunk-V4QL2TIA.js";
|
|
55
|
+
import "./chunk-RFYZGBU4.js";
|
|
38
56
|
import "./chunk-CCVKLLIO.js";
|
|
39
57
|
import "./chunk-UZ6YMQV2.js";
|
|
40
|
-
import
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-6SBQOSWK.js";
|
|
59
|
+
import "./chunk-ZSTTHIEF.js";
|
|
60
|
+
import "./chunk-P636GRYJ.js";
|
|
61
|
+
import "./chunk-DCUF7ZWX.js";
|
|
62
|
+
import "./chunk-2OMVVDBU.js";
|
|
63
|
+
import "./chunk-BZK6J33D.js";
|
|
64
|
+
|
|
65
|
+
// src/index.ts
|
|
66
|
+
import { addTelemetryInitializer, Envelope } from "@equinor/mad-insights";
|
|
44
67
|
export {
|
|
68
|
+
Envelope,
|
|
69
|
+
ErrorBoundary,
|
|
70
|
+
NavigationContainer,
|
|
45
71
|
SettingsScreen,
|
|
72
|
+
addTelemetryInitializer,
|
|
73
|
+
createBottomTabNavigator,
|
|
46
74
|
createCoreStackNavigator,
|
|
75
|
+
createNativeStackNavigator,
|
|
47
76
|
useAccountOrDemoAccount,
|
|
48
|
-
useCoreStackNavigation
|
|
77
|
+
useCoreStackNavigation,
|
|
78
|
+
useCoreStackRoute
|
|
49
79
|
};
|
|
File without changes
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
+
getIsLanguageSelected,
|
|
2
3
|
getLanguage,
|
|
3
4
|
setSelectedLanguage,
|
|
4
5
|
useLanguage
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import {
|
|
7
|
-
CORE_SUPPORTED_LANGUAGES
|
|
8
|
-
} from "../../chunk-J53YLHKZ.js";
|
|
9
|
-
import "../../chunk-USETLDR7.js";
|
|
10
|
-
import "../../chunk-35THIGVH.js";
|
|
6
|
+
} from "../../chunk-6SBQOSWK.js";
|
|
11
7
|
import "../../chunk-ZSTTHIEF.js";
|
|
8
|
+
import "../../chunk-P636GRYJ.js";
|
|
9
|
+
import "../../chunk-DCUF7ZWX.js";
|
|
12
10
|
import "../../chunk-2OMVVDBU.js";
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-UTXWRAEE.js";
|
|
11
|
+
import "../../chunk-BZK6J33D.js";
|
|
15
12
|
export {
|
|
16
|
-
|
|
13
|
+
getIsLanguageSelected,
|
|
17
14
|
getLanguage,
|
|
18
15
|
setSelectedLanguage,
|
|
19
16
|
useLanguage
|
|
@@ -14,6 +14,7 @@ type LanguageState = {
|
|
|
14
14
|
* @returns {Language} selected language or default language
|
|
15
15
|
*/
|
|
16
16
|
getLanguage: () => Language;
|
|
17
|
+
getIsLanguageSelected: () => boolean;
|
|
17
18
|
};
|
|
18
19
|
export type UseLanguageReturnType = {
|
|
19
20
|
/**
|
|
@@ -30,10 +31,10 @@ export type UseLanguageReturnType = {
|
|
|
30
31
|
getDefaultLanguage: () => Language;
|
|
31
32
|
/**
|
|
32
33
|
* Set the user selected language of the app
|
|
33
|
-
* @param {
|
|
34
|
+
* @param {string} code - language code
|
|
34
35
|
*/
|
|
35
36
|
setSelectedLanguage: LanguageState["setSelectedLanguage"];
|
|
36
37
|
};
|
|
37
38
|
export declare const useLanguage: () => UseLanguageReturnType;
|
|
38
|
-
export declare const getLanguage: () => Language, setSelectedLanguage: (code: string) => void;
|
|
39
|
+
export declare const getLanguage: () => Language, setSelectedLanguage: (code: string) => void, getIsLanguageSelected: () => boolean;
|
|
39
40
|
export {};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
+
getIsLanguageSelected,
|
|
2
3
|
getLanguage,
|
|
3
4
|
setSelectedLanguage,
|
|
4
5
|
useLanguage
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-USETLDR7.js";
|
|
7
|
-
import "../../chunk-35THIGVH.js";
|
|
6
|
+
} from "../../chunk-6SBQOSWK.js";
|
|
8
7
|
import "../../chunk-ZSTTHIEF.js";
|
|
8
|
+
import "../../chunk-P636GRYJ.js";
|
|
9
|
+
import "../../chunk-DCUF7ZWX.js";
|
|
9
10
|
import "../../chunk-2OMVVDBU.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-UTXWRAEE.js";
|
|
11
|
+
import "../../chunk-BZK6J33D.js";
|
|
12
12
|
export {
|
|
13
|
+
getIsLanguageSelected,
|
|
13
14
|
getLanguage,
|
|
14
15
|
setSelectedLanguage,
|
|
15
16
|
useLanguage
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { MadConfig } from "../../types";
|
|
2
|
+
export type AuthConfig = {
|
|
3
|
+
clientId: MadConfig["authentication"]["clientId"];
|
|
4
|
+
scopes: MadConfig["authentication"]["scopes"];
|
|
5
|
+
/**
|
|
6
|
+
* resolved redirectUri. This can either be `redirectUri` or `redirectUriWeb` from the mad config, depending on which platform
|
|
7
|
+
* you're running on.
|
|
8
|
+
*/
|
|
3
9
|
redirectUri: string;
|
|
4
|
-
scopes?: string[] | undefined;
|
|
5
10
|
};
|
|
11
|
+
export declare const useAuthConfig: () => AuthConfig;
|
|
6
12
|
export declare const useLoginScreenConfig: () => {
|
|
7
13
|
title: string;
|
|
8
14
|
logo: import("react-native").ImageSourcePropType;
|
|
@@ -5,10 +5,12 @@ import {
|
|
|
5
5
|
useLoginScreenConfig,
|
|
6
6
|
useServicePortalName,
|
|
7
7
|
useSettingsScreenPremadeConfig
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-6SBQOSWK.js";
|
|
9
9
|
import "../../chunk-ZSTTHIEF.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-P636GRYJ.js";
|
|
11
|
+
import "../../chunk-DCUF7ZWX.js";
|
|
12
|
+
import "../../chunk-2OMVVDBU.js";
|
|
13
|
+
import "../../chunk-BZK6J33D.js";
|
|
12
14
|
export {
|
|
13
15
|
useAppVersion,
|
|
14
16
|
useAuthConfig,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../../chunk-USETLDR7.js";
|
|
2
1
|
import {
|
|
3
2
|
useAppVersion,
|
|
4
3
|
useAuthConfig,
|
|
@@ -6,14 +5,16 @@ import {
|
|
|
6
5
|
useLoginScreenConfig,
|
|
7
6
|
useServicePortalName,
|
|
8
7
|
useSettingsScreenPremadeConfig
|
|
9
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-6SBQOSWK.js";
|
|
10
9
|
import {
|
|
11
10
|
getConfig,
|
|
12
11
|
setConfig,
|
|
13
12
|
useMadConfig
|
|
14
13
|
} from "../../chunk-ZSTTHIEF.js";
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-P636GRYJ.js";
|
|
15
|
+
import "../../chunk-DCUF7ZWX.js";
|
|
16
|
+
import "../../chunk-2OMVVDBU.js";
|
|
17
|
+
import "../../chunk-BZK6J33D.js";
|
|
17
18
|
export {
|
|
18
19
|
getConfig,
|
|
19
20
|
setConfig,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
useReleaseNotesVersion
|
|
5
5
|
} from "../../chunk-5BVQKJQB.js";
|
|
6
6
|
import "../../chunk-2OMVVDBU.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-BZK6J33D.js";
|
|
8
8
|
export {
|
|
9
9
|
getLastDisplayedReleaseNotesVersion,
|
|
10
10
|
setLastDisplayedReleaseNotesVersion,
|
package/dist/store/storage.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EnvironmentContextProps } from "@equinor/mad-components";
|
|
2
2
|
import { ImageSourcePropType } from "react-native";
|
|
3
3
|
import { Language } from "./store/types";
|
|
4
|
+
import { AppInsightsInitConfig } from "@equinor/mad-insights";
|
|
4
5
|
export type MadConfig = {
|
|
5
6
|
/**
|
|
6
7
|
* Version of the app. Will be displayed in the about screen, and will be used for release notes
|
|
@@ -25,6 +26,10 @@ export type MadConfig = {
|
|
|
25
26
|
* If `defaultLanguageCode` is not provided, the first language in `supportedLanguages` will be considered default.
|
|
26
27
|
*/
|
|
27
28
|
defaultLanguageCode?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Core navigates to a language selection screen by default if needed. Set this to true if you want to override this behaviour
|
|
31
|
+
*/
|
|
32
|
+
skipOnboarding?: boolean;
|
|
28
33
|
};
|
|
29
34
|
authentication: {
|
|
30
35
|
/**
|
|
@@ -36,11 +41,18 @@ export type MadConfig = {
|
|
|
36
41
|
clientId: string;
|
|
37
42
|
/**
|
|
38
43
|
* Redirect uri of your application.
|
|
39
|
-
* You can find and modify your application's
|
|
44
|
+
* You can find and modify your application's registered redirect URIs in your application's
|
|
40
45
|
* App registration in Azure.
|
|
41
46
|
* @see https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
|
|
42
47
|
*/
|
|
43
48
|
redirectUri: string;
|
|
49
|
+
/**
|
|
50
|
+
* Redirect uri for the web wersion of your application
|
|
51
|
+
* You can find and modify your application's registered redirect URIs in your application's
|
|
52
|
+
* App registration in Azure.
|
|
53
|
+
* @see https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
|
|
54
|
+
*/
|
|
55
|
+
redirectUriWeb?: string;
|
|
44
56
|
/**
|
|
45
57
|
* Scope to use for interactive login. You can find information about your application's
|
|
46
58
|
* available scopes in your application's App registration in Azure.
|
|
@@ -58,6 +70,10 @@ export type MadConfig = {
|
|
|
58
70
|
*/
|
|
59
71
|
logo: ImageSourcePropType;
|
|
60
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* App insights config used for initializing application insights service(s)
|
|
75
|
+
*/
|
|
76
|
+
applicationInsights: AppInsightsInitConfig;
|
|
61
77
|
about?: {
|
|
62
78
|
/**
|
|
63
79
|
* Endpoints used by the app
|
|
@@ -75,6 +91,8 @@ export type MadConfig = {
|
|
|
75
91
|
export type CoreStackParamListBase = {
|
|
76
92
|
Login: undefined;
|
|
77
93
|
WhatsNew: undefined;
|
|
94
|
+
SelectLanguage: undefined;
|
|
95
|
+
SelectLanguageOnboarding: undefined;
|
|
78
96
|
ReleaseNotes: undefined;
|
|
79
97
|
Settings: undefined;
|
|
80
98
|
About: undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { createNativeStackNavigator } from "@equinor/mad-navigation";
|
|
3
2
|
import { ParamListBase } from "@react-navigation/native";
|
|
4
3
|
import { CoreStackParamListBase, MadConfig } from "../types";
|
|
4
|
+
import { createNativeStackNavigator } from "../components/navigation";
|
|
5
5
|
type GeneralFunction = (...args: any) => any;
|
|
6
6
|
type PropsOf<T extends GeneralFunction> = Parameters<T>[0];
|
|
7
7
|
type StackType = ReturnType<typeof createNativeStackNavigator>;
|
|
8
8
|
type NavigatorProps = PropsOf<StackType["Navigator"]>;
|
|
9
|
-
export declare const createMadCoreNavigator: <T extends ParamListBase>(Stack: import("@react-navigation/
|
|
9
|
+
export declare const createMadCoreNavigator: <T extends ParamListBase>(Stack: import("@react-navigation/native").TypedNavigator<T & CoreStackParamListBase, import("@react-navigation/native").StackNavigationState<ParamListBase>, import("@equinor/mad-navigation").MadNativeStackNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap, ({ id, initialRouteName, children, screenListeners, screenOptions, customSubHeader, ...rest }: import("@equinor/mad-navigation").NativeStackNavigatorProps) => React.JSX.Element>, config: MadConfig) => (props: Omit<NavigatorProps, "initialRouteName">) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,28 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMadCoreNavigator
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-DQ6CWJSW.js";
|
|
4
|
+
import "../chunk-N4V52CSH.js";
|
|
5
|
+
import "../chunk-JPK5SCA5.js";
|
|
6
|
+
import "../chunk-4RNGXNYB.js";
|
|
7
|
+
import "../chunk-NLLLEXHT.js";
|
|
8
|
+
import "../chunk-AM5E5CYS.js";
|
|
7
9
|
import "../chunk-UVQ3Z5PG.js";
|
|
8
|
-
import "../chunk-PEFOX6JA.js";
|
|
9
10
|
import "../chunk-VBEIVB4R.js";
|
|
10
11
|
import "../chunk-GCBWBANV.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-XR6K2TU2.js";
|
|
12
13
|
import "../chunk-5BVQKJQB.js";
|
|
13
|
-
import "../chunk-USETLDR7.js";
|
|
14
|
-
import "../chunk-35THIGVH.js";
|
|
15
|
-
import "../chunk-ZSTTHIEF.js";
|
|
16
|
-
import "../chunk-2OMVVDBU.js";
|
|
17
14
|
import "../chunk-OCWASWDK.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-QXK5OE27.js";
|
|
16
|
+
import "../chunk-AEGDSD6N.js";
|
|
17
|
+
import "../chunk-T3WC3PE2.js";
|
|
18
|
+
import "../chunk-GUKC6UGZ.js";
|
|
19
|
+
import "../chunk-EQYL7INQ.js";
|
|
20
|
+
import "../chunk-MDOJ2W2G.js";
|
|
21
|
+
import "../chunk-BIMOM43W.js";
|
|
22
|
+
import "../chunk-GSC3O7TW.js";
|
|
23
|
+
import "../chunk-5IIGFQQJ.js";
|
|
24
|
+
import "../chunk-6GFARWDK.js";
|
|
25
|
+
import "../chunk-V4QL2TIA.js";
|
|
20
26
|
import "../chunk-RFYZGBU4.js";
|
|
21
|
-
import "../chunk-FQWPBBPB.js";
|
|
22
27
|
import "../chunk-CCVKLLIO.js";
|
|
23
28
|
import "../chunk-UZ6YMQV2.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-6SBQOSWK.js";
|
|
30
|
+
import "../chunk-ZSTTHIEF.js";
|
|
31
|
+
import "../chunk-P636GRYJ.js";
|
|
32
|
+
import "../chunk-DCUF7ZWX.js";
|
|
33
|
+
import "../chunk-2OMVVDBU.js";
|
|
34
|
+
import "../chunk-BZK6J33D.js";
|
|
26
35
|
export {
|
|
27
36
|
createMadCoreNavigator
|
|
28
37
|
};
|
package/dist/utils/dateUtils.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { CoreStackParamListBase } from "../types";
|
|
1
2
|
export type GetNavigationRouteForLoginScreenOptions = {
|
|
2
3
|
appVersion: string;
|
|
3
4
|
lastDisplayedReleaseNotesVersion: string | null;
|
|
4
5
|
isDemoMode?: boolean;
|
|
5
6
|
};
|
|
6
|
-
export type GetNavigationRouteForLoginScreenReturnType =
|
|
7
|
+
export type GetNavigationRouteForLoginScreenReturnType = keyof CoreStackParamListBase;
|
|
7
8
|
export declare const getNavigationRouteForLoginScreen: ({ appVersion, lastDisplayedReleaseNotesVersion, isDemoMode, }: GetNavigationRouteForLoginScreenOptions) => GetNavigationRouteForLoginScreenReturnType;
|
|
8
9
|
export declare const _getNavigationRouteForLoginScreenPure: {};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
_getNavigationRouteForLoginScreenPure,
|
|
3
3
|
getNavigationRouteForLoginScreen
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-QXK5OE27.js";
|
|
5
|
+
import "../chunk-T3WC3PE2.js";
|
|
6
|
+
import "../chunk-6SBQOSWK.js";
|
|
7
|
+
import "../chunk-ZSTTHIEF.js";
|
|
8
|
+
import "../chunk-P636GRYJ.js";
|
|
9
|
+
import "../chunk-DCUF7ZWX.js";
|
|
10
|
+
import "../chunk-2OMVVDBU.js";
|
|
11
|
+
import "../chunk-BZK6J33D.js";
|
|
6
12
|
export {
|
|
7
13
|
_getNavigationRouteForLoginScreenPure,
|
|
8
14
|
getNavigationRouteForLoginScreen
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getNavigationRouteForWhatsNewScreen
|
|
3
|
+
} from "../chunk-T3WC3PE2.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
|
+
getNavigationRouteForWhatsNewScreen
|
|
12
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SettingsScreenSectionProps } from "../components/screens/settings/types";
|
|
2
|
+
import { CoreDictionary } from "../language/types";
|
|
2
3
|
import { MadConfig } from "../types";
|
|
3
4
|
export type PremadeSettings = ReturnType<typeof getPremadeSettings>;
|
|
4
|
-
export declare const getPremadeSettings: (config: MadConfig) => {
|
|
5
|
+
export declare const getPremadeSettings: (config: MadConfig, dictionary: CoreDictionary) => {
|
|
5
6
|
language: SettingsScreenSectionProps | undefined;
|
|
6
7
|
common: SettingsScreenSectionProps;
|
|
7
8
|
};
|