@equinor/mad-core 0.15.0 → 0.16.1
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 +25 -0
- package/dist/{chunk-ANDIOEIN.js → chunk-PMIW6V75.js} +1 -1
- package/dist/{chunk-OAVRCDCP.js → chunk-R7OP3SMW.js} +5 -3
- package/dist/components/createCoreStackNavigator.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/screens/create-incident/CreateIncidentScreen.js +2 -2
- package/dist/components/screens/create-incident/createIncident.js +2 -2
- package/dist/components/screens/release-notes/WhatsNewScreen.js +1 -1
- package/dist/index.js +2 -2
- package/dist/utils/createMadCoreNavigator.js +2 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @equinor/mad-core
|
|
2
2
|
|
|
3
|
+
## 0.16.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7b2da29: peer dependencies patched to allow patch version upgrades
|
|
8
|
+
- Updated dependencies [7b2da29]
|
|
9
|
+
- @equinor/mad-components@0.24.1
|
|
10
|
+
- @equinor/mad-navigation@0.6.1
|
|
11
|
+
- @equinor/mad-insights@0.2.1
|
|
12
|
+
- @equinor/mad-toast@0.3.2
|
|
13
|
+
- @equinor/mad-auth@0.5.1
|
|
14
|
+
|
|
15
|
+
## 0.16.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- 6264746: re-rendering and ok button issue fix
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [6264746]
|
|
24
|
+
- @equinor/mad-components@0.24.0
|
|
25
|
+
- @equinor/mad-auth@0.5.0
|
|
26
|
+
- @equinor/mad-toast@0.3.1
|
|
27
|
+
|
|
3
28
|
## 0.15.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
|
@@ -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(
|
|
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-
|
|
6
|
-
import "../chunk-
|
|
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";
|
package/dist/components/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
createCoreStackNavigator,
|
|
3
3
|
createNativeStackCoreNavigator,
|
|
4
4
|
createStackCoreNavigator
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
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-
|
|
4
|
-
import "../../../chunk-
|
|
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-
|
|
4
|
-
import "../../../chunk-
|
|
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";
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMadCoreNativeStackNavigator,
|
|
3
3
|
createMadCoreStackNavigator
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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.
|
|
4
|
+
"version": "0.16.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Equinor Mobile App Delivery team (MAD)"
|
|
7
7
|
},
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"license": "MIT",
|
|
48
48
|
"main": "./dist/index.js",
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@react-native-async-storage/async-storage": "2.1.2",
|
|
50
|
+
"@react-native-async-storage/async-storage": "^2.1.2",
|
|
51
51
|
"@react-native-community/netinfo": "^11.4.1",
|
|
52
52
|
"@react-navigation/native": "^6.1.17",
|
|
53
|
-
"expo-device": "7.1.4",
|
|
54
|
-
"expo-localization": "16.1.6",
|
|
55
|
-
"react": "19.0.0",
|
|
56
|
-
"react-dom": "19.0.0",
|
|
57
|
-
"react-native": "0.79.5",
|
|
58
|
-
"react-native-gesture-handler": "
|
|
59
|
-
"react-native-safe-area-context": "5.4.0"
|
|
53
|
+
"expo-device": "^7.1.4",
|
|
54
|
+
"expo-localization": "^16.1.6",
|
|
55
|
+
"react": "^19.0.0",
|
|
56
|
+
"react-dom": "^19.0.0",
|
|
57
|
+
"react-native": "~0.79.5",
|
|
58
|
+
"react-native-gesture-handler": "^2.24.0",
|
|
59
|
+
"react-native-safe-area-context": "^5.4.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "tsup-node && echo '\n ⚙️ Generating typescript declarations..' && tsc --project tsconfig.json --emitDeclarationOnly --declaration",
|