@equinor/mad-core 0.7.1 → 0.7.2
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 +8 -0
- package/dist/{chunk-RIWMGRXW.js → chunk-ARFGD2IL.js} +1 -1
- package/dist/{chunk-N443DTFE.js → chunk-CRICOQIB.js} +2 -2
- package/dist/{chunk-2OQBD2JH.js → chunk-FBRFCQOV.js} +1 -1
- package/dist/{chunk-2MPM3JZD.js → chunk-GBLKZ47S.js} +1 -1
- package/dist/{chunk-QCUUIP5W.js → chunk-GBOOMGQT.js} +1 -1
- package/dist/{chunk-H5ZG24IA.js → chunk-GZ724MTU.js} +2 -1
- package/dist/{chunk-MGETTUQA.js → chunk-N5UAX7DA.js} +4 -2
- package/dist/{chunk-JYYVDGBI.js → chunk-TR4KTTGP.js} +1 -1
- package/dist/{chunk-VFLAXR3V.js → chunk-UATWXG2H.js} +1 -1
- package/dist/{chunk-LSCWXRAR.js → chunk-UIH6RSIN.js} +5 -5
- package/dist/{chunk-C3VF3WPU.js → chunk-YTG27LZT.js} +1 -1
- package/dist/components/createCoreStackNavigator.js +10 -10
- package/dist/components/index.js +11 -11
- package/dist/components/screens/AboutScreen.js +1 -1
- package/dist/components/screens/LoginScreen.js +1 -1
- package/dist/components/screens/create-incident/CreateIncidentScreen.js +2 -2
- package/dist/components/screens/release-notes/ReleaseNotesScreen.js +3 -3
- package/dist/components/screens/release-notes/WhatsNewScreen.js +2 -2
- package/dist/components/screens/release-notes/fetchReleaseNotes.js +1 -1
- package/dist/components/screens/settings/Section.js +1 -1
- package/dist/components/screens/settings/SettingsScreen.js +2 -2
- package/dist/components/screens/settings/index.js +2 -2
- package/dist/hooks/UseReleaseNotes.js +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useAccountOrDemoAccount.js +1 -1
- package/dist/index.js +15 -12
- package/dist/store/mad-config/hooks.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/createMadCoreNavigator.js +9 -9
- package/package.json +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -25,7 +25,7 @@ var LoginScreen = ({
|
|
|
25
25
|
onAuthenticationSuccessful,
|
|
26
26
|
onAuthenticationFailed
|
|
27
27
|
}) => {
|
|
28
|
-
var _a;
|
|
28
|
+
var _a, _b;
|
|
29
29
|
const dictionary = useDictionary();
|
|
30
30
|
const authConfig = useAuthConfig();
|
|
31
31
|
const navigate = useNavigateFromLoginScreen();
|
|
@@ -62,7 +62,7 @@ var LoginScreen = ({
|
|
|
62
62
|
style: styles.fill,
|
|
63
63
|
onPress: () => setDemoPressCount((count) => count + 1)
|
|
64
64
|
}
|
|
65
|
-
)), /* @__PURE__ */ React.createElement(View, { style: styles.buttonContainer }, getConfig().experimental.useExpoAuthSession ? /* @__PURE__ */ React.createElement(ExpoAuthSession.LoginButton, __spreadValues({}, loginButtonProps)) : /* @__PURE__ */ React.createElement(LoginButton, __spreadValues({}, loginButtonProps)), shouldDisplayDemoButton && /* @__PURE__ */ React.createElement(
|
|
65
|
+
)), /* @__PURE__ */ React.createElement(View, { style: styles.buttonContainer }, ((_b = getConfig().experimental) == null ? void 0 : _b.useExpoAuthSession) ? /* @__PURE__ */ React.createElement(ExpoAuthSession.LoginButton, __spreadValues({}, loginButtonProps)) : /* @__PURE__ */ React.createElement(LoginButton, __spreadValues({}, loginButtonProps)), shouldDisplayDemoButton && /* @__PURE__ */ React.createElement(
|
|
66
66
|
Button,
|
|
67
67
|
{
|
|
68
68
|
testID: "demo-button",
|
|
@@ -20,7 +20,7 @@ var AboutScreen = () => {
|
|
|
20
20
|
const appVersion = useAppVersion();
|
|
21
21
|
const about = useAbout();
|
|
22
22
|
const experimentalFeatures = useExperimentalFeatures();
|
|
23
|
-
const authenticationMethod = experimentalFeatures.useExpoAuthSession ? "Expo" : "MSAL";
|
|
23
|
+
const authenticationMethod = (experimentalFeatures == null ? void 0 : experimentalFeatures.useExpoAuthSession) ? "Expo" : "MSAL";
|
|
24
24
|
const endpoints = [getMadCommonBaseUrl(environment)].concat((_a = about == null ? void 0 : about.endpoints) != null ? _a : []);
|
|
25
25
|
return /* @__PURE__ */ React.createElement(
|
|
26
26
|
ScrollView,
|
|
@@ -13,10 +13,11 @@ var MAD_DEMO_USER = {
|
|
|
13
13
|
identifier: "-1"
|
|
14
14
|
};
|
|
15
15
|
var useAccountOrDemoAccount = () => {
|
|
16
|
+
var _a;
|
|
16
17
|
const demoMode = useDemoMode();
|
|
17
18
|
const msalAccount = useAccount();
|
|
18
19
|
const expoAccount = ExpoAuthSession.useAccount();
|
|
19
|
-
const account = getConfig().experimental.useExpoAuthSession ? expoAccount : msalAccount;
|
|
20
|
+
const account = ((_a = getConfig().experimental) == null ? void 0 : _a.useExpoAuthSession) ? expoAccount : msalAccount;
|
|
20
21
|
if (demoMode.isEnabled)
|
|
21
22
|
return MAD_DEMO_USER;
|
|
22
23
|
return account;
|
|
@@ -12,9 +12,10 @@ import {
|
|
|
12
12
|
// src/components/screens/release-notes/fetchReleaseNotes.ts
|
|
13
13
|
import { authenticateSilently, ExpoAuthSession } from "@equinor/mad-auth";
|
|
14
14
|
var fetchReleaseNotes = (env, servicePortalName, appVersion) => __async(void 0, null, function* () {
|
|
15
|
+
var _a;
|
|
15
16
|
const scopes = getMadCommonScopes(env);
|
|
16
17
|
const baseUrl = getMadCommonBaseUrl(env);
|
|
17
|
-
const authenticationResponse = getConfig().experimental.useExpoAuthSession ? yield ExpoAuthSession.authenticateSilently(scopes) : yield authenticateSilently(scopes);
|
|
18
|
+
const authenticationResponse = ((_a = getConfig().experimental) == null ? void 0 : _a.useExpoAuthSession) ? yield ExpoAuthSession.authenticateSilently(scopes) : yield authenticateSilently(scopes);
|
|
18
19
|
if (!authenticationResponse)
|
|
19
20
|
throw new Error("Unable to authenticate silently");
|
|
20
21
|
const fetchResponse = yield fetch(`${baseUrl}/ReleaseNote/${servicePortalName}/${appVersion}`, {
|
|
@@ -26,9 +27,10 @@ var fetchReleaseNotes = (env, servicePortalName, appVersion) => __async(void 0,
|
|
|
26
27
|
return yield fetchResponse.json();
|
|
27
28
|
});
|
|
28
29
|
var fetchAllReleaseNotes = (env, servicePortalName) => __async(void 0, null, function* () {
|
|
30
|
+
var _a;
|
|
29
31
|
const scopes = getMadCommonScopes(env);
|
|
30
32
|
const baseUrl = getMadCommonBaseUrl(env);
|
|
31
|
-
const authenticationResponse = getConfig().experimental.useExpoAuthSession ? yield ExpoAuthSession.authenticateSilently(scopes) : yield authenticateSilently(scopes);
|
|
33
|
+
const authenticationResponse = ((_a = getConfig().experimental) == null ? void 0 : _a.useExpoAuthSession) ? yield ExpoAuthSession.authenticateSilently(scopes) : yield authenticateSilently(scopes);
|
|
32
34
|
if (!authenticationResponse)
|
|
33
35
|
throw new Error("Unable to authenticate silently");
|
|
34
36
|
const fetchResponse = yield fetch(`${baseUrl}/ReleaseNote/${servicePortalName}/`, {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ReleaseNotesScreen
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ARFGD2IL.js";
|
|
4
4
|
import {
|
|
5
5
|
WhatsNewScreen
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YTG27LZT.js";
|
|
7
7
|
import {
|
|
8
8
|
CreateIncidentScreen
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TR4KTTGP.js";
|
|
10
10
|
import {
|
|
11
11
|
SelectLanguageScreen
|
|
12
12
|
} from "./chunk-LYU7NQBB.js";
|
|
13
13
|
import {
|
|
14
14
|
AboutScreen
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GBOOMGQT.js";
|
|
16
16
|
import {
|
|
17
17
|
LoginScreen
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CRICOQIB.js";
|
|
19
19
|
import {
|
|
20
20
|
ServiceMessageProvider
|
|
21
21
|
} from "./chunk-GZ3KABVU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreStackNavigator
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-UATWXG2H.js";
|
|
4
4
|
import "../chunk-2GCLIPZP.js";
|
|
5
5
|
import "../chunk-JD2JILBG.js";
|
|
6
6
|
import "../chunk-4RTYLHRV.js";
|
|
@@ -9,27 +9,27 @@ import "../chunk-ZSUFR7LK.js";
|
|
|
9
9
|
import "../chunk-YWPELSTX.js";
|
|
10
10
|
import "../chunk-SHKOH7MA.js";
|
|
11
11
|
import "../chunk-3BM4S2GG.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-UIH6RSIN.js";
|
|
13
|
+
import "../chunk-ARFGD2IL.js";
|
|
14
|
+
import "../chunk-YTG27LZT.js";
|
|
15
|
+
import "../chunk-TR4KTTGP.js";
|
|
16
16
|
import "../chunk-3WUJAVUO.js";
|
|
17
17
|
import "../chunk-CAOQCE6W.js";
|
|
18
18
|
import "../chunk-LYU7NQBB.js";
|
|
19
19
|
import "../chunk-SSSTWTHP.js";
|
|
20
20
|
import "../chunk-YZEMCMKV.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-GBOOMGQT.js";
|
|
22
|
+
import "../chunk-CRICOQIB.js";
|
|
23
23
|
import "../chunk-GZ3KABVU.js";
|
|
24
24
|
import "../chunk-K77ZZUJO.js";
|
|
25
25
|
import "../chunk-RGJ4RWVB.js";
|
|
26
26
|
import "../chunk-OCWASWDK.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-GBLKZ47S.js";
|
|
28
28
|
import "../chunk-GHWLQBHQ.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-N5UAX7DA.js";
|
|
30
30
|
import "../chunk-RFYZGBU4.js";
|
|
31
31
|
import "../chunk-GUKC6UGZ.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-GZ724MTU.js";
|
|
33
33
|
import "../chunk-YH46KAXB.js";
|
|
34
34
|
import "../chunk-ZWS33QDE.js";
|
|
35
35
|
import "../chunk-TXG7T62C.js";
|
package/dist/components/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "../chunk-JYWP44JR.js";
|
|
|
2
2
|
import "../chunk-AK7PA4BE.js";
|
|
3
3
|
import {
|
|
4
4
|
SettingsScreen
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-FBRFCQOV.js";
|
|
6
6
|
import "../chunk-J6NKU4OS.js";
|
|
7
7
|
import "../chunk-YKLMUKP4.js";
|
|
8
8
|
import "../chunk-3OKLIPZ5.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "../chunk-FW4GVJC7.js";
|
|
17
17
|
import {
|
|
18
18
|
createCoreStackNavigator
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-UATWXG2H.js";
|
|
20
20
|
import "../chunk-2GCLIPZP.js";
|
|
21
21
|
import {
|
|
22
22
|
createBottomTabNavigator,
|
|
@@ -28,29 +28,29 @@ import "../chunk-ZSUFR7LK.js";
|
|
|
28
28
|
import "../chunk-YWPELSTX.js";
|
|
29
29
|
import "../chunk-SHKOH7MA.js";
|
|
30
30
|
import "../chunk-3BM4S2GG.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-UIH6RSIN.js";
|
|
32
|
+
import "../chunk-ARFGD2IL.js";
|
|
33
|
+
import "../chunk-YTG27LZT.js";
|
|
34
|
+
import "../chunk-TR4KTTGP.js";
|
|
35
35
|
import "../chunk-3WUJAVUO.js";
|
|
36
36
|
import "../chunk-CAOQCE6W.js";
|
|
37
37
|
import "../chunk-LYU7NQBB.js";
|
|
38
38
|
import "../chunk-SSSTWTHP.js";
|
|
39
39
|
import "../chunk-YZEMCMKV.js";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-GBOOMGQT.js";
|
|
41
41
|
import {
|
|
42
42
|
LoginScreen
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-CRICOQIB.js";
|
|
44
44
|
import "../chunk-GZ3KABVU.js";
|
|
45
45
|
import "../chunk-K77ZZUJO.js";
|
|
46
46
|
import "../chunk-RGJ4RWVB.js";
|
|
47
47
|
import "../chunk-OCWASWDK.js";
|
|
48
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-GBLKZ47S.js";
|
|
49
49
|
import "../chunk-GHWLQBHQ.js";
|
|
50
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-N5UAX7DA.js";
|
|
51
51
|
import "../chunk-RFYZGBU4.js";
|
|
52
52
|
import "../chunk-GUKC6UGZ.js";
|
|
53
|
-
import "../chunk-
|
|
53
|
+
import "../chunk-GZ724MTU.js";
|
|
54
54
|
import "../chunk-YH46KAXB.js";
|
|
55
55
|
import "../chunk-ZWS33QDE.js";
|
|
56
56
|
import "../chunk-TXG7T62C.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateIncidentScreen
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-TR4KTTGP.js";
|
|
4
4
|
import "../../../chunk-3WUJAVUO.js";
|
|
5
5
|
import "../../../chunk-CAOQCE6W.js";
|
|
6
6
|
import "../../../chunk-RFYZGBU4.js";
|
|
7
7
|
import "../../../chunk-GUKC6UGZ.js";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-GZ724MTU.js";
|
|
9
9
|
import "../../../chunk-RVKZULYD.js";
|
|
10
10
|
import "../../../chunk-CCVKLLIO.js";
|
|
11
11
|
import "../../../chunk-UZ6YMQV2.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ReleaseNotesScreen
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-ARFGD2IL.js";
|
|
4
4
|
import "../../../chunk-YZEMCMKV.js";
|
|
5
5
|
import "../../../chunk-OCWASWDK.js";
|
|
6
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-GBLKZ47S.js";
|
|
7
7
|
import "../../../chunk-GHWLQBHQ.js";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-N5UAX7DA.js";
|
|
9
9
|
import "../../../chunk-RFYZGBU4.js";
|
|
10
10
|
import "../../../chunk-RVKZULYD.js";
|
|
11
11
|
import "../../../chunk-CCVKLLIO.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WhatsNewScreen
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-YTG27LZT.js";
|
|
4
4
|
import "../../../chunk-YZEMCMKV.js";
|
|
5
5
|
import "../../../chunk-OCWASWDK.js";
|
|
6
6
|
import "../../../chunk-GHWLQBHQ.js";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-N5UAX7DA.js";
|
|
8
8
|
import "../../../chunk-RFYZGBU4.js";
|
|
9
9
|
import "../../../chunk-UVQ3Z5PG.js";
|
|
10
10
|
import "../../../chunk-5BVQKJQB.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "../../../chunk-YKLMUKP4.js";
|
|
4
4
|
import "../../../chunk-3OKLIPZ5.js";
|
|
5
5
|
import "../../../chunk-GUKC6UGZ.js";
|
|
6
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-GZ724MTU.js";
|
|
7
7
|
import "../../../chunk-RVKZULYD.js";
|
|
8
8
|
import "../../../chunk-CCVKLLIO.js";
|
|
9
9
|
import "../../../chunk-UZ6YMQV2.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SettingsScreen
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-FBRFCQOV.js";
|
|
4
4
|
import "../../../chunk-J6NKU4OS.js";
|
|
5
5
|
import "../../../chunk-YKLMUKP4.js";
|
|
6
6
|
import "../../../chunk-3OKLIPZ5.js";
|
|
7
7
|
import "../../../chunk-7SJM4NDH.js";
|
|
8
8
|
import "../../../chunk-GUKC6UGZ.js";
|
|
9
|
-
import "../../../chunk-
|
|
9
|
+
import "../../../chunk-GZ724MTU.js";
|
|
10
10
|
import "../../../chunk-RVKZULYD.js";
|
|
11
11
|
import "../../../chunk-CCVKLLIO.js";
|
|
12
12
|
import "../../../chunk-UZ6YMQV2.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../chunk-AK7PA4BE.js";
|
|
2
2
|
import {
|
|
3
3
|
SettingsScreen
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-FBRFCQOV.js";
|
|
5
5
|
import "../../../chunk-J6NKU4OS.js";
|
|
6
6
|
import "../../../chunk-YKLMUKP4.js";
|
|
7
7
|
import "../../../chunk-3OKLIPZ5.js";
|
|
8
8
|
import "../../../chunk-5GBNULIT.js";
|
|
9
9
|
import "../../../chunk-7SJM4NDH.js";
|
|
10
10
|
import "../../../chunk-GUKC6UGZ.js";
|
|
11
|
-
import "../../../chunk-
|
|
11
|
+
import "../../../chunk-GZ724MTU.js";
|
|
12
12
|
import "../../../chunk-RVKZULYD.js";
|
|
13
13
|
import "../../../chunk-CCVKLLIO.js";
|
|
14
14
|
import "../../../chunk-UZ6YMQV2.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useReleaseNotes
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-GBLKZ47S.js";
|
|
4
4
|
import "../chunk-GHWLQBHQ.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-N5UAX7DA.js";
|
|
6
6
|
import "../chunk-RFYZGBU4.js";
|
|
7
7
|
import "../chunk-RVKZULYD.js";
|
|
8
8
|
import "../chunk-CCVKLLIO.js";
|
package/dist/hooks/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./chunk-JYWP44JR.js";
|
|
|
3
3
|
import "./chunk-AK7PA4BE.js";
|
|
4
4
|
import {
|
|
5
5
|
SettingsScreen
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FBRFCQOV.js";
|
|
7
7
|
import "./chunk-J6NKU4OS.js";
|
|
8
8
|
import "./chunk-YKLMUKP4.js";
|
|
9
9
|
import "./chunk-3OKLIPZ5.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-FW4GVJC7.js";
|
|
18
18
|
import {
|
|
19
19
|
createCoreStackNavigator
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UATWXG2H.js";
|
|
21
21
|
import "./chunk-2GCLIPZP.js";
|
|
22
22
|
import {
|
|
23
23
|
createBottomTabNavigator,
|
|
@@ -29,33 +29,33 @@ import "./chunk-ZSUFR7LK.js";
|
|
|
29
29
|
import "./chunk-YWPELSTX.js";
|
|
30
30
|
import "./chunk-SHKOH7MA.js";
|
|
31
31
|
import "./chunk-3BM4S2GG.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-UIH6RSIN.js";
|
|
33
|
+
import "./chunk-ARFGD2IL.js";
|
|
34
|
+
import "./chunk-YTG27LZT.js";
|
|
35
|
+
import "./chunk-TR4KTTGP.js";
|
|
36
36
|
import "./chunk-3WUJAVUO.js";
|
|
37
37
|
import "./chunk-CAOQCE6W.js";
|
|
38
38
|
import "./chunk-LYU7NQBB.js";
|
|
39
39
|
import "./chunk-SSSTWTHP.js";
|
|
40
40
|
import "./chunk-YZEMCMKV.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-GBOOMGQT.js";
|
|
42
42
|
import {
|
|
43
43
|
LoginScreen
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-CRICOQIB.js";
|
|
45
45
|
import "./chunk-GZ3KABVU.js";
|
|
46
46
|
import "./chunk-K77ZZUJO.js";
|
|
47
47
|
import {
|
|
48
48
|
getDefaultScreenOptionsForLoginScreen
|
|
49
49
|
} from "./chunk-RGJ4RWVB.js";
|
|
50
50
|
import "./chunk-OCWASWDK.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-GBLKZ47S.js";
|
|
52
52
|
import "./chunk-GHWLQBHQ.js";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-N5UAX7DA.js";
|
|
54
54
|
import "./chunk-RFYZGBU4.js";
|
|
55
55
|
import "./chunk-GUKC6UGZ.js";
|
|
56
56
|
import {
|
|
57
57
|
useAccountOrDemoAccount
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-GZ724MTU.js";
|
|
59
59
|
import "./chunk-YH46KAXB.js";
|
|
60
60
|
import "./chunk-ZWS33QDE.js";
|
|
61
61
|
import "./chunk-TXG7T62C.js";
|
|
@@ -116,7 +116,10 @@ import {
|
|
|
116
116
|
authenticateInteractively as msalAuthenticateInteractively,
|
|
117
117
|
ExpoAuthSession
|
|
118
118
|
} from "@equinor/mad-auth";
|
|
119
|
-
var hasExpoAuthSession = () =>
|
|
119
|
+
var hasExpoAuthSession = () => {
|
|
120
|
+
var _a;
|
|
121
|
+
return (_a = getConfig().experimental) == null ? void 0 : _a.useExpoAuthSession;
|
|
122
|
+
};
|
|
120
123
|
var authenticateSilently = (scopes) => hasExpoAuthSession() ? ExpoAuthSession.authenticateSilently(scopes) : msalAuthenticateSilently(scopes);
|
|
121
124
|
var getAccount = () => __async(void 0, null, function* () {
|
|
122
125
|
return hasExpoAuthSession() ? Promise.resolve(ExpoAuthSession.getAccount()) : msalGetAccount();
|
|
@@ -22,7 +22,7 @@ export declare const useAbout: () => {
|
|
|
22
22
|
} | undefined;
|
|
23
23
|
export declare const useExperimentalFeatures: () => {
|
|
24
24
|
useExpoAuthSession?: boolean | undefined;
|
|
25
|
-
};
|
|
25
|
+
} | undefined;
|
|
26
26
|
export declare const useServiceNow: () => string | undefined;
|
|
27
27
|
export declare const useNavigateToMainRoute: () => () => void;
|
|
28
28
|
export declare const useSettingsScreenPremadeConfig: () => {
|
package/dist/types.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export type MadConfig<ParamList extends ParamListBase | void = void> = {
|
|
|
98
98
|
/**
|
|
99
99
|
* Experimental features can be toggled to activate new functionality that are in beta.
|
|
100
100
|
*/
|
|
101
|
-
experimental
|
|
101
|
+
experimental?: {
|
|
102
102
|
useExpoAuthSession?: boolean;
|
|
103
103
|
};
|
|
104
104
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMadCoreNavigator
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-UIH6RSIN.js";
|
|
4
|
+
import "../chunk-ARFGD2IL.js";
|
|
5
|
+
import "../chunk-YTG27LZT.js";
|
|
6
|
+
import "../chunk-TR4KTTGP.js";
|
|
7
7
|
import "../chunk-3WUJAVUO.js";
|
|
8
8
|
import "../chunk-CAOQCE6W.js";
|
|
9
9
|
import "../chunk-LYU7NQBB.js";
|
|
10
10
|
import "../chunk-SSSTWTHP.js";
|
|
11
11
|
import "../chunk-YZEMCMKV.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-GBOOMGQT.js";
|
|
13
|
+
import "../chunk-CRICOQIB.js";
|
|
14
14
|
import "../chunk-GZ3KABVU.js";
|
|
15
15
|
import "../chunk-K77ZZUJO.js";
|
|
16
16
|
import "../chunk-RGJ4RWVB.js";
|
|
17
17
|
import "../chunk-OCWASWDK.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-GBLKZ47S.js";
|
|
19
19
|
import "../chunk-GHWLQBHQ.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-N5UAX7DA.js";
|
|
21
21
|
import "../chunk-RFYZGBU4.js";
|
|
22
22
|
import "../chunk-GUKC6UGZ.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-GZ724MTU.js";
|
|
24
24
|
import "../chunk-YH46KAXB.js";
|
|
25
25
|
import "../chunk-ZWS33QDE.js";
|
|
26
26
|
import "../chunk-TXG7T62C.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/mad-core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Core library for the Mobile App Delivery team",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -43,8 +43,6 @@
|
|
|
43
43
|
"@equinor/mad-insights": "*",
|
|
44
44
|
"@equinor/mad-navigation": "*",
|
|
45
45
|
"@react-navigation/elements": "1.3.21",
|
|
46
|
-
"expo-auth-session": "~5.0.2",
|
|
47
|
-
"expo-crypto": "~12.4.1",
|
|
48
46
|
"markdown-it": "^14.0.0",
|
|
49
47
|
"react-native-markdown-display": "^7.0.2",
|
|
50
48
|
"zustand": "^4.4.1"
|