@equinor/mad-core 0.10.2 → 0.11.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-4DFNW2IQ.js +98 -0
- package/dist/{chunk-LDHADSAI.js → chunk-5GNZJDSE.js} +2 -2
- package/dist/chunk-6LMMRQYQ.js +25 -0
- package/dist/{chunk-WP22W6IZ.js → chunk-7FO6SNUK.js} +1 -1
- package/dist/{chunk-4ZZKAQ7C.js → chunk-7HGZLLNX.js} +1 -1
- package/dist/chunk-BDKB5ELS.js +37 -0
- package/dist/{chunk-HN6FG72A.js → chunk-DIITQCRW.js} +1 -1
- package/dist/{chunk-UV3M2SNJ.js → chunk-DJMBVNB6.js} +2 -2
- package/dist/{chunk-6JEPMDC4.js → chunk-EOM477VC.js} +1 -1
- package/dist/{chunk-C5PTOP7U.js → chunk-F2IUXOBD.js} +6 -6
- package/dist/{chunk-SDKRNZRS.js → chunk-GARGEDTG.js} +1 -1
- package/dist/{chunk-2EBLJCZH.js → chunk-GEEFQMRN.js} +1 -1
- package/dist/{chunk-OZJ2PBO6.js → chunk-HH5WS6OQ.js} +4 -4
- package/dist/{chunk-ADBVMDRF.js → chunk-IHCNAGT7.js} +1 -1
- package/dist/{chunk-5TKF6KQO.js → chunk-JGQUMXF3.js} +8 -6
- package/dist/{chunk-CXXCHRHS.js → chunk-KEH6NBFE.js} +1 -1
- package/dist/{chunk-PWORULZD.js → chunk-PB3TI2RT.js} +1 -1
- package/dist/chunk-PP74MP4O.js +16 -0
- package/dist/{chunk-IWTCXKE2.js → chunk-SMWK2VYY.js} +2 -2
- package/dist/{chunk-4J43OC2B.js → chunk-STKI44UB.js} +4 -4
- package/dist/{chunk-Q4SX3UP3.js → chunk-SVBUWW4H.js} +1 -1
- package/dist/{chunk-6A7XY5VK.js → chunk-TWUGCMPQ.js} +2 -2
- package/dist/{chunk-5BWKCV3H.js → chunk-U5IJVQDO.js} +1 -1
- package/dist/chunk-W5OWK2YM.js +41 -0
- package/dist/{chunk-46UQWICK.js → chunk-WDZF2C5R.js} +1 -1
- package/dist/{chunk-3DWMQWGO.js → chunk-WQTC5TXE.js} +1 -1
- package/dist/{chunk-VWR2AFO7.js → chunk-WWF7QKDX.js} +1 -1
- package/dist/{chunk-7JHIDQQ7.js → chunk-YB3XJPRA.js} +6 -3
- package/dist/{chunk-7FBCK6I4.js → chunk-ZAJCJP22.js} +6 -2
- package/dist/{chunk-DC5ASEDD.js → chunk-ZIV7DVBA.js} +2 -2
- package/dist/components/CoreNavigatorTypeProvider.d.ts +8 -0
- package/dist/components/CoreNavigatorTypeProvider.js +9 -0
- package/dist/components/EnvironmentBanner.js +3 -3
- package/dist/components/EnvironmentProvider.js +3 -3
- package/dist/components/ToastEmitter.js +12 -3
- package/dist/components/createCoreStackNavigator.d.ts +153 -5
- package/dist/components/createCoreStackNavigator.js +36 -31
- package/dist/components/index.js +48 -41
- package/dist/components/navigation/MadCoreSubHeader.js +9 -8
- package/dist/components/navigation/index.js +14 -11
- package/dist/components/navigation/navigation-creators.d.ts +1 -0
- package/dist/components/navigation/navigation-creators.js +14 -11
- package/dist/components/screens/AboutScreen.js +4 -3
- package/dist/components/screens/LoginScreen.js +4 -4
- package/dist/components/screens/create-incident/CreateIncidentScreen.js +4 -4
- package/dist/components/screens/language/SelectLanguageScreen.js +6 -6
- package/dist/components/screens/language/components/SelectLanguageCellGroup.js +3 -3
- package/dist/components/screens/release-notes/ReleaseNotesScreen.js +6 -6
- package/dist/components/screens/release-notes/WhatsNewScreen.js +6 -6
- package/dist/components/screens/release-notes/fetchReleaseNotes.js +3 -3
- package/dist/components/screens/settings/Section.js +3 -3
- package/dist/components/screens/settings/SettingsScreen.js +6 -6
- package/dist/components/screens/settings/index.js +7 -7
- package/dist/components/screens/settings/useSignOut.js +4 -4
- package/dist/components/service-message/ServiceMessageBanner.js +7 -6
- package/dist/components/service-message/ServiceMessageProvider.js +4 -4
- package/dist/components/service-message/components/SwipeItem.d.ts +10 -0
- package/dist/components/service-message/components/SwipeItem.js +7 -0
- package/dist/components/service-message/hooks/useFetchServiceMessage.js +3 -3
- package/dist/hooks/UseReleaseNotes.js +4 -4
- package/dist/hooks/index.js +3 -3
- package/dist/hooks/useAccountOrDemoAccount.js +3 -3
- package/dist/hooks/useNavigateFromLanguageSelectScreen.js +3 -3
- package/dist/hooks/useNavigateFromLoginScreen.js +3 -3
- package/dist/hooks/useNavigateFromWhatsNewScreen.js +3 -3
- package/dist/hooks/useScreenTitleFromDictionary.js +3 -3
- package/dist/index.js +48 -41
- package/dist/language/useDictionary.js +2 -2
- package/dist/store/index.js +2 -2
- package/dist/store/language/index.js +2 -2
- package/dist/store/language/language.js +2 -2
- package/dist/store/mad-config/hooks.js +2 -2
- package/dist/store/mad-config/index.js +2 -2
- package/dist/store/mad-config/mad-config.js +2 -2
- package/dist/utils/MadCoreProviders.d.ts +9 -0
- package/dist/utils/MadCoreProviders.js +17 -0
- package/dist/utils/createEnvironmentProxy.js +2 -2
- package/dist/utils/createMadCoreNavigator.d.ts +119 -8
- package/dist/utils/createMadCoreNavigator.js +26 -24
- package/dist/utils/getDefaultScreenOptionsForLoginScreen.d.ts +4 -2
- package/dist/utils/initiateAuthenticationClient.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-DEVBLCRV.js +0 -17
- package/dist/chunk-LRACCJE4.js +0 -29
- package/dist/chunk-NE7MJB3C.js +0 -88
package/dist/chunk-NE7MJB3C.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SelectLanguageScreen
|
|
3
|
-
} from "./chunk-4J43OC2B.js";
|
|
4
|
-
import {
|
|
5
|
-
ReleaseNotesScreen
|
|
6
|
-
} from "./chunk-6A7XY5VK.js";
|
|
7
|
-
import {
|
|
8
|
-
WhatsNewScreen
|
|
9
|
-
} from "./chunk-C5PTOP7U.js";
|
|
10
|
-
import {
|
|
11
|
-
CreateIncidentScreen
|
|
12
|
-
} from "./chunk-DC5ASEDD.js";
|
|
13
|
-
import {
|
|
14
|
-
LoginScreen
|
|
15
|
-
} from "./chunk-LDHADSAI.js";
|
|
16
|
-
import {
|
|
17
|
-
ServiceMessageProvider
|
|
18
|
-
} from "./chunk-HN6FG72A.js";
|
|
19
|
-
import {
|
|
20
|
-
AboutScreen
|
|
21
|
-
} from "./chunk-7FBCK6I4.js";
|
|
22
|
-
import {
|
|
23
|
-
getDefaultScreenOptionsForLoginScreen
|
|
24
|
-
} from "./chunk-RGJ4RWVB.js";
|
|
25
|
-
import {
|
|
26
|
-
EnvironmentProvider
|
|
27
|
-
} from "./chunk-4ZZKAQ7C.js";
|
|
28
|
-
import {
|
|
29
|
-
useMadConfig
|
|
30
|
-
} from "./chunk-2EBLJCZH.js";
|
|
31
|
-
import {
|
|
32
|
-
CoreRoutes
|
|
33
|
-
} from "./chunk-UKAZW3CQ.js";
|
|
34
|
-
import {
|
|
35
|
-
ToastEmitter
|
|
36
|
-
} from "./chunk-DEVBLCRV.js";
|
|
37
|
-
import {
|
|
38
|
-
__spreadProps,
|
|
39
|
-
__spreadValues
|
|
40
|
-
} from "./chunk-CWMXXUWU.js";
|
|
41
|
-
|
|
42
|
-
// src/utils/createMadCoreNavigator.tsx
|
|
43
|
-
import React from "react";
|
|
44
|
-
import { AppInsightsInitializer } from "@equinor/mad-insights";
|
|
45
|
-
var createMadCoreNavigator = (Stack) => {
|
|
46
|
-
function MadCoreNavigator(props) {
|
|
47
|
-
const config = useMadConfig();
|
|
48
|
-
if (!config) return null;
|
|
49
|
-
return /* @__PURE__ */ React.createElement(AppInsightsInitializer, { config: config.applicationInsights }, /* @__PURE__ */ React.createElement(EnvironmentProvider, null, /* @__PURE__ */ React.createElement(ServiceMessageProvider, null, /* @__PURE__ */ React.createElement(Stack.Navigator, __spreadProps(__spreadValues({}, props), { initialRouteName: CoreRoutes.LOGIN }), config.login.addScreenManually !== true && /* @__PURE__ */ React.createElement(
|
|
50
|
-
Stack.Screen,
|
|
51
|
-
{
|
|
52
|
-
name: CoreRoutes.LOGIN,
|
|
53
|
-
component: LoginScreen,
|
|
54
|
-
options: getDefaultScreenOptionsForLoginScreen()
|
|
55
|
-
}
|
|
56
|
-
), /* @__PURE__ */ React.createElement(
|
|
57
|
-
Stack.Screen,
|
|
58
|
-
{
|
|
59
|
-
name: CoreRoutes.RELEASE_NOTES,
|
|
60
|
-
component: ReleaseNotesScreen
|
|
61
|
-
}
|
|
62
|
-
), /* @__PURE__ */ React.createElement(Stack.Screen, { name: CoreRoutes.WHATS_NEW, component: WhatsNewScreen }), config.about && /* @__PURE__ */ React.createElement(Stack.Screen, { name: CoreRoutes.ABOUT, component: AboutScreen }), config.serviceNow && /* @__PURE__ */ React.createElement(
|
|
63
|
-
Stack.Screen,
|
|
64
|
-
{
|
|
65
|
-
name: CoreRoutes.FEEDBACK,
|
|
66
|
-
component: CreateIncidentScreen
|
|
67
|
-
}
|
|
68
|
-
), config.language.supportedLanguages.length > 1 && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
69
|
-
Stack.Screen,
|
|
70
|
-
{
|
|
71
|
-
name: CoreRoutes.SELECT_LANGUAGE,
|
|
72
|
-
component: SelectLanguageScreen
|
|
73
|
-
}
|
|
74
|
-
), /* @__PURE__ */ React.createElement(
|
|
75
|
-
Stack.Screen,
|
|
76
|
-
{
|
|
77
|
-
name: CoreRoutes.SELECT_LANGUAGE_ONBOARDING,
|
|
78
|
-
component: SelectLanguageScreen,
|
|
79
|
-
options: { headerBackVisible: false }
|
|
80
|
-
}
|
|
81
|
-
)), props.children), /* @__PURE__ */ React.createElement(ToastEmitter, null))));
|
|
82
|
-
}
|
|
83
|
-
return MadCoreNavigator;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export {
|
|
87
|
-
createMadCoreNavigator
|
|
88
|
-
};
|