@equinor/mad-core 0.15.0 → 0.16.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,18 @@
1
1
  # @equinor/mad-core
2
2
 
3
+ ## 0.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6264746: re-rendering and ok button issue fix
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [6264746]
12
+ - @equinor/mad-components@0.24.0
13
+ - @equinor/mad-auth@0.5.0
14
+ - @equinor/mad-toast@0.3.1
15
+
3
16
  ## 0.15.0
4
17
 
5
18
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WhatsNewScreen
3
- } from "./chunk-OAVRCDCP.js";
3
+ } from "./chunk-R7OP3SMW.js";
4
4
  import {
5
5
  UserInfo
6
6
  } from "./chunk-3WUJAVUO.js";
@@ -42,7 +42,8 @@ import {
42
42
  Typography,
43
43
  useStyles
44
44
  } from "@equinor/mad-components";
45
- import { ScrollView, View } from "react-native";
45
+ import { SafeAreaView, ScrollView, View } from "react-native";
46
+ import { useIsFocused } from "@react-navigation/native";
46
47
  var WhatsNewScreen = () => {
47
48
  useScreenTitleFromDictionary((dic) => dic.releaseNotes.whatsNew);
48
49
  const styles = useStyles(whatsNewStyles);
@@ -50,6 +51,7 @@ var WhatsNewScreen = () => {
50
51
  const releaseNotesVersion = useReleaseNotesVersion();
51
52
  const servicePortalName = useServicePortalName();
52
53
  const navigate = useNavigateFromWhatsNewScreen();
54
+ const isFocused = useIsFocused();
53
55
  const demoMode = useDemoMode();
54
56
  const appVersion = useAppVersion();
55
57
  const [release, setRelease] = useState(null);
@@ -66,13 +68,13 @@ var WhatsNewScreen = () => {
66
68
  fetchReleaseNotes(environment, servicePortalName, appVersion).then(setRelease).catch(setError).finally(disableIsFetching);
67
69
  }
68
70
  }, [demoMode.isEnabled, environment, servicePortalName, appVersion]);
69
- if (error || !isFetching && !release) {
71
+ if (isFocused && (error || !isFetching && !release)) {
70
72
  navigate();
71
73
  }
72
74
  if (!release) {
73
75
  return /* @__PURE__ */ React.createElement(View, { style: styles.spinnerContainer }, /* @__PURE__ */ React.createElement(CircularProgress, null));
74
76
  }
75
- 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(SafeAreaView, { 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(
76
78
  Button,
77
79
  {
78
80
  title: "OK",
@@ -2,8 +2,8 @@ import {
2
2
  createCoreStackNavigator,
3
3
  createNativeStackCoreNavigator,
4
4
  createStackCoreNavigator
5
- } from "../chunk-ANDIOEIN.js";
6
- import "../chunk-OAVRCDCP.js";
5
+ } from "../chunk-PMIW6V75.js";
6
+ import "../chunk-R7OP3SMW.js";
7
7
  import "../chunk-AK7PA4BE.js";
8
8
  import "../chunk-YTQLIYLS.js";
9
9
  import "../chunk-YKLMUKP4.js";
@@ -2,8 +2,8 @@ import {
2
2
  createCoreStackNavigator,
3
3
  createNativeStackCoreNavigator,
4
4
  createStackCoreNavigator
5
- } from "../chunk-ANDIOEIN.js";
6
- import "../chunk-OAVRCDCP.js";
5
+ } from "../chunk-PMIW6V75.js";
6
+ import "../chunk-R7OP3SMW.js";
7
7
  import "../chunk-AK7PA4BE.js";
8
8
  import {
9
9
  SettingsScreen
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CreateIncidentScreen
3
- } from "../../../chunk-ANDIOEIN.js";
4
- import "../../../chunk-OAVRCDCP.js";
3
+ } from "../../../chunk-PMIW6V75.js";
4
+ import "../../../chunk-R7OP3SMW.js";
5
5
  import "../../../chunk-AK7PA4BE.js";
6
6
  import "../../../chunk-YTQLIYLS.js";
7
7
  import "../../../chunk-YKLMUKP4.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createIncident
3
- } from "../../../chunk-ANDIOEIN.js";
4
- import "../../../chunk-OAVRCDCP.js";
3
+ } from "../../../chunk-PMIW6V75.js";
4
+ import "../../../chunk-R7OP3SMW.js";
5
5
  import "../../../chunk-AK7PA4BE.js";
6
6
  import "../../../chunk-YTQLIYLS.js";
7
7
  import "../../../chunk-YKLMUKP4.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WhatsNewScreen
3
- } from "../../../chunk-OAVRCDCP.js";
3
+ } from "../../../chunk-R7OP3SMW.js";
4
4
  import "../../../chunk-XLQYZR5C.js";
5
5
  import "../../../chunk-OCWASWDK.js";
6
6
  import "../../../chunk-UVQ3Z5PG.js";
package/dist/index.js CHANGED
@@ -20,8 +20,8 @@ import {
20
20
  trackCustom,
21
21
  trackLongTerm,
22
22
  trackShortTerm
23
- } from "./chunk-ANDIOEIN.js";
24
- import "./chunk-OAVRCDCP.js";
23
+ } from "./chunk-PMIW6V75.js";
24
+ import "./chunk-R7OP3SMW.js";
25
25
  import "./chunk-AK7PA4BE.js";
26
26
  import {
27
27
  SettingsScreen
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createMadCoreNativeStackNavigator,
3
3
  createMadCoreStackNavigator
4
- } from "../chunk-ANDIOEIN.js";
5
- import "../chunk-OAVRCDCP.js";
4
+ } from "../chunk-PMIW6V75.js";
5
+ import "../chunk-R7OP3SMW.js";
6
6
  import "../chunk-AK7PA4BE.js";
7
7
  import "../chunk-YTQLIYLS.js";
8
8
  import "../chunk-YKLMUKP4.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@equinor/mad-core",
3
3
  "description": "Core library for the Mobile App Delivery team",
4
- "version": "0.15.0",
4
+ "version": "0.16.0",
5
5
  "author": {
6
6
  "name": "Equinor Mobile App Delivery team (MAD)"
7
7
  },