@equinor/mad-core 0.18.1 → 0.19.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 +21 -0
- package/dist/{chunk-T4TC3AQN.js → chunk-3QGEQ4LV.js} +1 -1
- package/dist/{chunk-NYC63GQG.js → chunk-BFOEM4OQ.js} +6 -6
- package/dist/{chunk-V6VOTEDJ.js → chunk-BVS4TEYU.js} +1 -1
- package/dist/{chunk-GQ2R7AYC.js → chunk-CCWBP32I.js} +1 -1
- package/dist/{chunk-AXY3DL65.js → chunk-GBEOV7WV.js} +5 -5
- package/dist/{chunk-KEFHOMOW.js → chunk-HYW645OK.js} +2 -2
- package/dist/{chunk-DGIAXVWS.js → chunk-MTJ75ZLM.js} +2 -2
- package/dist/{chunk-WEJ4LF6M.js → chunk-RSHKFTQY.js} +2 -2
- package/dist/{chunk-PQODWSOK.js → chunk-VKFXR4QU.js} +1 -1
- package/dist/components/OfflineBanner.js +1 -1
- package/dist/components/createCoreStackNavigator.d.ts +1631 -4
- package/dist/components/createCoreStackNavigator.js +26 -26
- package/dist/components/index.js +28 -28
- package/dist/components/navigation/MadCoreSubHeader.js +3 -3
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/navigation/navigation-creators.d.ts +3 -3
- package/dist/components/navigation/navigation-creators.js +4 -4
- package/dist/components/screens/AboutScreen.js +2 -2
- package/dist/components/screens/LoginScreen.js +3 -3
- package/dist/components/screens/create-incident/CreateIncidentScreen.js +26 -26
- package/dist/components/screens/create-incident/createIncident.js +26 -26
- package/dist/components/screens/language/SelectLanguageScreen.js +4 -4
- package/dist/components/screens/release-notes/ReleaseNotesScreen.js +3 -3
- package/dist/components/screens/release-notes/WhatsNewScreen.js +7 -7
- package/dist/components/screens/settings/Section.js +1 -1
- package/dist/components/screens/settings/SettingsScreen.js +4 -4
- package/dist/components/screens/settings/index.js +4 -4
- package/dist/components/screens/settings/useSignOut.js +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/useNavigateFromLanguageSelectScreen.js +2 -2
- package/dist/hooks/useNavigateFromLoginScreen.js +2 -2
- package/dist/hooks/useNavigateFromWhatsNewScreen.js +2 -2
- package/dist/hooks/useScreenTitleFromDictionary.js +2 -2
- package/dist/index.js +33 -33
- package/dist/utils/MadCoreProviders.js +1 -1
- package/dist/utils/createMadCoreNavigator.d.ts +1062 -2
- package/dist/utils/createMadCoreNavigator.js +26 -26
- package/package.json +2 -2
- package/dist/{chunk-INA5ANZO.js → chunk-75UZ4BR5.js} +4 -4
- package/dist/{chunk-X33ICKCC.js → chunk-C7NJODNT.js} +3 -3
- package/dist/{chunk-4KSJR7E5.js → chunk-HPDK6AZ3.js} +3 -3
- package/dist/{chunk-HADLUP7M.js → chunk-JADYNBGN.js} +3 -3
- package/dist/{chunk-27KFGUGY.js → chunk-KB3M7X3Q.js} +3 -3
- package/dist/{chunk-4TVVFWGM.js → chunk-PMQPVI37.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @equinor/mad-core
|
|
2
2
|
|
|
3
|
+
## 0.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 28be313: Replace `@react-native-community/netinfo` peer dependency with `expo-network`. The
|
|
8
|
+
`OfflineBanner` component now uses `expo-network`'s `useNetworkState()` hook instead of
|
|
9
|
+
`useNetInfo()`.
|
|
10
|
+
|
|
11
|
+
**Migration:** Replace `@react-native-community/netinfo` with `expo-network` in your app's
|
|
12
|
+
dependencies.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- bb939ed: Type support added back for navigation factories
|
|
17
|
+
- Updated dependencies [bb939ed]
|
|
18
|
+
- @equinor/mad-components@0.25.5
|
|
19
|
+
- @equinor/mad-navigation@0.7.5
|
|
20
|
+
- @equinor/mad-insights@0.3.5
|
|
21
|
+
- @equinor/mad-toast@0.4.5
|
|
22
|
+
- @equinor/mad-auth@0.6.5
|
|
23
|
+
|
|
3
24
|
## 0.18.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WhatsNewScreen
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GBEOV7WV.js";
|
|
4
4
|
import {
|
|
5
5
|
UserInfo
|
|
6
6
|
} from "./chunk-3WUJAVUO.js";
|
|
7
7
|
import {
|
|
8
8
|
SelectLanguageScreen
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MTJ75ZLM.js";
|
|
10
10
|
import {
|
|
11
11
|
ReleaseNotesScreen
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VKFXR4QU.js";
|
|
13
13
|
import {
|
|
14
14
|
createNativeStackNavigator,
|
|
15
15
|
createStackNavigator
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3QGEQ4LV.js";
|
|
17
17
|
import {
|
|
18
18
|
AboutScreen
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PMQPVI37.js";
|
|
20
20
|
import {
|
|
21
21
|
LoginScreen
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CCWBP32I.js";
|
|
23
23
|
import {
|
|
24
24
|
initiateAuthenticationClient
|
|
25
25
|
} from "./chunk-5O4PAUNU.js";
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
getShortDate
|
|
6
6
|
} from "./chunk-OCWASWDK.js";
|
|
7
|
+
import {
|
|
8
|
+
useReleaseNotesVersion
|
|
9
|
+
} from "./chunk-5BVQKJQB.js";
|
|
7
10
|
import {
|
|
8
11
|
useNavigateFromWhatsNewScreen
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-C7NJODNT.js";
|
|
10
13
|
import {
|
|
11
14
|
useScreenTitleFromDictionary
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KB3M7X3Q.js";
|
|
13
16
|
import {
|
|
14
17
|
whats_new_exports
|
|
15
18
|
} from "./chunk-4DXH3SPN.js";
|
|
16
19
|
import {
|
|
17
20
|
fetchReleaseNotes
|
|
18
21
|
} from "./chunk-5FMD2ENO.js";
|
|
19
|
-
import {
|
|
20
|
-
useReleaseNotesVersion
|
|
21
|
-
} from "./chunk-5BVQKJQB.js";
|
|
22
22
|
import {
|
|
23
23
|
useDemoMode
|
|
24
24
|
} from "./chunk-UZ6YMQV2.js";
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
// src/components/OfflineBanner.tsx
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { OfflineBanner as ImportedOfflineBanner } from "@equinor/mad-components";
|
|
8
|
-
import {
|
|
8
|
+
import { useNetworkState } from "expo-network";
|
|
9
9
|
var OfflineBanner = () => {
|
|
10
|
-
const { isConnected } =
|
|
10
|
+
const { isConnected } = useNetworkState();
|
|
11
11
|
const isOfflineBannerEnabled = getIsOfflineBannerEnabled();
|
|
12
12
|
if (!isOfflineBannerEnabled) return null;
|
|
13
13
|
return /* @__PURE__ */ React.createElement(ImportedOfflineBanner, { isConnected });
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-FF6LGZNJ.js";
|
|
4
4
|
import {
|
|
5
5
|
useScreenTitleFromDictionary
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KB3M7X3Q.js";
|
|
7
7
|
import {
|
|
8
8
|
useNavigateFromLanguageSelectScreen
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-75UZ4BR5.js";
|
|
10
10
|
import {
|
|
11
11
|
useDictionary,
|
|
12
12
|
useLanguage
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-YKLMUKP4.js";
|
|
4
4
|
import {
|
|
5
5
|
useSignOut
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HPDK6AZ3.js";
|
|
7
7
|
import {
|
|
8
8
|
getFinalSettingsConfig
|
|
9
9
|
} from "./chunk-QLL6LKDN.js";
|
|
10
10
|
import {
|
|
11
11
|
useScreenTitleFromDictionary
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KB3M7X3Q.js";
|
|
13
13
|
import {
|
|
14
14
|
useAccountOrDemoAccount
|
|
15
15
|
} from "./chunk-LEWQGDM7.js";
|