@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 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
  MadCoreSubHeader
3
- } from "./chunk-V6VOTEDJ.js";
3
+ } from "./chunk-BVS4TEYU.js";
4
4
 
5
5
  // src/components/navigation/navigation-creators.ts
6
6
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WhatsNewScreen
3
- } from "./chunk-W6XH3GOY.js";
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-T4TC3AQN.js";
16
+ } from "./chunk-3QGEQ4LV.js";
17
17
  import {
18
18
  AboutScreen
19
19
  } from "./chunk-PMQPVI37.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-URFHQEDR.js";
7
7
  import {
8
8
  OfflineBanner
9
- } from "./chunk-KEFHOMOW.js";
9
+ } from "./chunk-HYW645OK.js";
10
10
 
11
11
  // src/components/navigation/MadCoreSubHeader.tsx
12
12
  import React from "react";
@@ -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 }))), /* @__PURE__ */ React.createElement(View, { style: styles.footer }, /* @__PURE__ */ React.createElement(
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 { useNetInfo } from "@react-native-community/netinfo";
8
+ import { useNetworkState } from "expo-network";
9
9
  var OfflineBanner = () => {
10
- const { isConnected } = useNetInfo();
10
+ const { isConnected } = useNetworkState();
11
11
  const isOfflineBannerEnabled = getIsOfflineBannerEnabled();
12
12
  if (!isOfflineBannerEnabled) return null;
13
13
  return /* @__PURE__ */ React.createElement(ImportedOfflineBanner, { isConnected });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OfflineBanner
3
- } from "../chunk-KEFHOMOW.js";
3
+ } from "../chunk-HYW645OK.js";
4
4
  import "../chunk-HZWBAKKL.js";
5
5
  import "../chunk-HI7H4ACL.js";
6
6
  import "../chunk-H73RAAWS.js";