@equinor/mad-core 0.18.0 → 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 +33 -0
- package/dist/{chunk-T4TC3AQN.js → chunk-3QGEQ4LV.js} +1 -1
- package/dist/{chunk-CKXK5IBT.js → chunk-BFOEM4OQ.js} +2 -2
- package/dist/{chunk-V6VOTEDJ.js → chunk-BVS4TEYU.js} +1 -1
- package/dist/{chunk-W6XH3GOY.js → chunk-GBEOV7WV.js} +3 -4
- package/dist/{chunk-KEFHOMOW.js → chunk-HYW645OK.js} +2 -2
- package/dist/components/OfflineBanner.js +1 -1
- package/dist/components/createCoreStackNavigator.d.ts +1631 -4
- package/dist/components/createCoreStackNavigator.js +5 -5
- package/dist/components/index.js +5 -5
- package/dist/components/navigation/MadCoreSubHeader.js +2 -2
- package/dist/components/navigation/index.js +3 -3
- package/dist/components/navigation/navigation-creators.d.ts +3 -3
- package/dist/components/navigation/navigation-creators.js +3 -3
- package/dist/components/screens/create-incident/CreateIncidentScreen.js +5 -5
- package/dist/components/screens/create-incident/createIncident.js +5 -5
- package/dist/components/screens/release-notes/WhatsNewScreen.js +1 -1
- package/dist/index.js +5 -5
- package/dist/utils/createMadCoreNavigator.d.ts +1062 -2
- package/dist/utils/createMadCoreNavigator.js +5 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
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
|
+
|
|
24
|
+
## 0.18.1
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- 481f3aa: Ok button issue fix. Moved OK button in scrollview
|
|
29
|
+
- Updated dependencies [481f3aa]
|
|
30
|
+
- @equinor/mad-components@0.25.4
|
|
31
|
+
- @equinor/mad-navigation@0.7.4
|
|
32
|
+
- @equinor/mad-insights@0.3.4
|
|
33
|
+
- @equinor/mad-toast@0.4.4
|
|
34
|
+
- @equinor/mad-auth@0.6.4
|
|
35
|
+
|
|
3
36
|
## 0.18.0
|
|
4
37
|
|
|
5
38
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
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";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
createNativeStackNavigator,
|
|
15
15
|
createStackNavigator
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3QGEQ4LV.js";
|
|
17
17
|
import {
|
|
18
18
|
AboutScreen
|
|
19
19
|
} from "./chunk-PMQPVI37.js";
|
|
@@ -74,7 +74,7 @@ var WhatsNewScreen = () => {
|
|
|
74
74
|
if (!release) {
|
|
75
75
|
return /* @__PURE__ */ React.createElement(View, { style: styles.spinnerContainer }, /* @__PURE__ */ React.createElement(CircularProgress, null));
|
|
76
76
|
}
|
|
77
|
-
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(ScrollView, null, /* @__PURE__ */ React.createElement(Cell, { style: styles.scrollContainer }, /* @__PURE__ */ React.createElement(Typography, { style: styles.versionHeader }, release.version), /* @__PURE__ */ React.createElement(Typography, { style: styles.subtitleHeader }, getShortDate(new Date(release.releaseDate))), /* @__PURE__ */ React.createElement(ChangeLog, { release }))
|
|
77
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(ScrollView, null, /* @__PURE__ */ React.createElement(Cell, { style: styles.scrollContainer }, /* @__PURE__ */ React.createElement(Typography, { style: styles.versionHeader }, release.version), /* @__PURE__ */ React.createElement(Typography, { style: styles.subtitleHeader }, getShortDate(new Date(release.releaseDate))), /* @__PURE__ */ React.createElement(ChangeLog, { release })), /* @__PURE__ */ React.createElement(View, { style: styles.footer }, /* @__PURE__ */ React.createElement(
|
|
78
78
|
Button,
|
|
79
79
|
{
|
|
80
80
|
title: "OK",
|
|
@@ -85,7 +85,7 @@ var WhatsNewScreen = () => {
|
|
|
85
85
|
},
|
|
86
86
|
style: { width: 81 }
|
|
87
87
|
}
|
|
88
|
-
)));
|
|
88
|
+
))));
|
|
89
89
|
};
|
|
90
90
|
var whatsNewStyles = EDSStyleSheet.create((theme) => ({
|
|
91
91
|
spinnerContainer: {
|
|
@@ -95,8 +95,7 @@ var whatsNewStyles = EDSStyleSheet.create((theme) => ({
|
|
|
95
95
|
},
|
|
96
96
|
container: {
|
|
97
97
|
flex: 1,
|
|
98
|
-
paddingTop: theme.geometry.dimension.cell.minHeight
|
|
99
|
-
justifyContent: "space-between"
|
|
98
|
+
paddingTop: theme.geometry.dimension.cell.minHeight
|
|
100
99
|
},
|
|
101
100
|
scrollContainer: {
|
|
102
101
|
justifyContent: "center",
|
|
@@ -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 });
|