@equinor/mad-core 0.5.18 → 0.6.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 +14 -0
- package/dist/{chunk-BZXMMVCP.js → chunk-5J3FTNVE.js} +3 -3
- package/dist/{chunk-CTKF2XI6.js → chunk-5TJVZFPL.js} +1 -1
- package/dist/{chunk-N3LFRIS6.js → chunk-CEFUB5I4.js} +1 -1
- package/dist/{chunk-Q7W5QIMF.js → chunk-LSA52JU5.js} +1 -1
- package/dist/{chunk-3KVW6DEX.js → chunk-U6GW6ZHM.js} +2 -0
- package/dist/chunk-YZEMCMKV.js +38 -0
- package/dist/components/createCoreStackNavigator.js +6 -6
- package/dist/components/index.js +6 -6
- package/dist/components/screens/LoginScreen.js +1 -1
- package/dist/components/screens/release-notes/ChangeLog.js +1 -1
- package/dist/components/screens/release-notes/ReleaseNotesScreen.js +2 -2
- package/dist/components/screens/release-notes/WhatsNewScreen.js +2 -2
- package/dist/index.js +6 -6
- package/dist/utils/createMadCoreNavigator.js +5 -5
- package/package.json +63 -63
- package/dist/chunk-CIMA2GQQ.js +0 -58
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @equinor/mad-core
|
|
2
2
|
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 13fbceb: add testID to demo button and the invisible pressable used to display the demo button
|
|
8
|
+
- Updated dependencies [13fbceb]
|
|
9
|
+
- @equinor/mad-components@0.14.2
|
|
10
|
+
|
|
11
|
+
## 0.6.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 6fa6d98: use react-native-markdown-display for release notes
|
|
16
|
+
|
|
3
17
|
## 0.5.18
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ReleaseNotesScreen
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CEFUB5I4.js";
|
|
4
4
|
import {
|
|
5
5
|
WhatsNewScreen
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LSA52JU5.js";
|
|
7
7
|
import {
|
|
8
8
|
CreateIncidentScreen
|
|
9
9
|
} from "./chunk-BVFOO2RO.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-UD3DA4FR.js";
|
|
16
16
|
import {
|
|
17
17
|
LoginScreen
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-U6GW6ZHM.js";
|
|
19
19
|
import {
|
|
20
20
|
ServiceMessageProvider
|
|
21
21
|
} from "./chunk-LTQGTI3K.js";
|
|
@@ -33,6 +33,7 @@ var LoginScreen = ({
|
|
|
33
33
|
return /* @__PURE__ */ React.createElement(EDSProvider, { colorScheme: "light", density: "tablet" }, /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(Image, { source: splash, resizeMode, style: styles.fill }), /* @__PURE__ */ React.createElement(View, { style: styles.secretHitboxContainer }, /* @__PURE__ */ React.createElement(
|
|
34
34
|
Pressable,
|
|
35
35
|
{
|
|
36
|
+
testID: "enable-demo-button",
|
|
36
37
|
style: styles.fill,
|
|
37
38
|
onPress: () => setDemoPressCount((count) => count + 1)
|
|
38
39
|
}
|
|
@@ -62,6 +63,7 @@ var LoginScreen = ({
|
|
|
62
63
|
), shouldDisplayDemoButton && /* @__PURE__ */ React.createElement(
|
|
63
64
|
Button,
|
|
64
65
|
{
|
|
66
|
+
testID: "demo-button",
|
|
65
67
|
title: dictionary.login.demo,
|
|
66
68
|
variant: "outlined",
|
|
67
69
|
onPress: () => {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__spreadProps,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk-WEAGW6MQ.js";
|
|
5
|
+
|
|
6
|
+
// src/components/screens/release-notes/ChangeLog.tsx
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { View } from "react-native";
|
|
9
|
+
import { EDSStyleSheet, useStyles } from "@equinor/mad-components";
|
|
10
|
+
import Markdown from "react-native-markdown-display";
|
|
11
|
+
var ChangeLog = ({ release }) => {
|
|
12
|
+
const styles = useStyles(changeLogStyles);
|
|
13
|
+
return /* @__PURE__ */ React.createElement(View, null, /* @__PURE__ */ React.createElement(Markdown, { style: styles }, release.releaseNote));
|
|
14
|
+
};
|
|
15
|
+
var changeLogStyles = EDSStyleSheet.create((theme) => ({
|
|
16
|
+
text: __spreadProps(__spreadValues({}, theme.typography.basic.p), {
|
|
17
|
+
color: theme.colors.text.primary
|
|
18
|
+
}),
|
|
19
|
+
bullet_list: {
|
|
20
|
+
display: "flex",
|
|
21
|
+
alignItems: "flex-start",
|
|
22
|
+
marginVertical: theme.spacing.textField.paddingVertical,
|
|
23
|
+
listStyleType: "square"
|
|
24
|
+
},
|
|
25
|
+
list_item: {
|
|
26
|
+
marginHorizontal: theme.spacing.textField.paddingHorizontal,
|
|
27
|
+
paddingBottom: theme.spacing.textField.paddingVertical
|
|
28
|
+
},
|
|
29
|
+
bullet_list_icon: __spreadProps(__spreadValues({}, theme.typography.basic.p), {
|
|
30
|
+
fontSize: 48,
|
|
31
|
+
lineHeight: 40,
|
|
32
|
+
color: theme.colors.text.primary
|
|
33
|
+
})
|
|
34
|
+
}));
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
ChangeLog
|
|
38
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreStackNavigator
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-5TJVZFPL.js";
|
|
4
4
|
import "../chunk-2GCLIPZP.js";
|
|
5
5
|
import "../chunk-TOCPQ2JB.js";
|
|
6
6
|
import "../chunk-Y4F6JPUK.js";
|
|
@@ -9,17 +9,17 @@ import "../chunk-ZSUFR7LK.js";
|
|
|
9
9
|
import "../chunk-YWPELSTX.js";
|
|
10
10
|
import "../chunk-SHKOH7MA.js";
|
|
11
11
|
import "../chunk-GOYAFKM3.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-5J3FTNVE.js";
|
|
13
|
+
import "../chunk-CEFUB5I4.js";
|
|
14
|
+
import "../chunk-LSA52JU5.js";
|
|
15
15
|
import "../chunk-BVFOO2RO.js";
|
|
16
16
|
import "../chunk-3WUJAVUO.js";
|
|
17
17
|
import "../chunk-CAOQCE6W.js";
|
|
18
18
|
import "../chunk-ZADB3VIP.js";
|
|
19
19
|
import "../chunk-OXXEF5WL.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-YZEMCMKV.js";
|
|
21
21
|
import "../chunk-UD3DA4FR.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-U6GW6ZHM.js";
|
|
23
23
|
import "../chunk-LTQGTI3K.js";
|
|
24
24
|
import "../chunk-7NTWLQ7J.js";
|
|
25
25
|
import "../chunk-RGJ4RWVB.js";
|
package/dist/components/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "../chunk-W3LMT7N4.js";
|
|
17
17
|
import {
|
|
18
18
|
createCoreStackNavigator
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-5TJVZFPL.js";
|
|
20
20
|
import "../chunk-2GCLIPZP.js";
|
|
21
21
|
import {
|
|
22
22
|
createBottomTabNavigator,
|
|
@@ -28,19 +28,19 @@ import "../chunk-ZSUFR7LK.js";
|
|
|
28
28
|
import "../chunk-YWPELSTX.js";
|
|
29
29
|
import "../chunk-SHKOH7MA.js";
|
|
30
30
|
import "../chunk-GOYAFKM3.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-5J3FTNVE.js";
|
|
32
|
+
import "../chunk-CEFUB5I4.js";
|
|
33
|
+
import "../chunk-LSA52JU5.js";
|
|
34
34
|
import "../chunk-BVFOO2RO.js";
|
|
35
35
|
import "../chunk-3WUJAVUO.js";
|
|
36
36
|
import "../chunk-CAOQCE6W.js";
|
|
37
37
|
import "../chunk-ZADB3VIP.js";
|
|
38
38
|
import "../chunk-OXXEF5WL.js";
|
|
39
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-YZEMCMKV.js";
|
|
40
40
|
import "../chunk-UD3DA4FR.js";
|
|
41
41
|
import {
|
|
42
42
|
LoginScreen
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-U6GW6ZHM.js";
|
|
44
44
|
import "../chunk-LTQGTI3K.js";
|
|
45
45
|
import "../chunk-7NTWLQ7J.js";
|
|
46
46
|
import "../chunk-RGJ4RWVB.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ReleaseNotesScreen
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-CEFUB5I4.js";
|
|
4
|
+
import "../../../chunk-YZEMCMKV.js";
|
|
5
5
|
import "../../../chunk-OCWASWDK.js";
|
|
6
6
|
import "../../../chunk-VYI4KBQO.js";
|
|
7
7
|
import "../../../chunk-GHWLQBHQ.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WhatsNewScreen
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-LSA52JU5.js";
|
|
4
|
+
import "../../../chunk-YZEMCMKV.js";
|
|
5
5
|
import "../../../chunk-OCWASWDK.js";
|
|
6
6
|
import "../../../chunk-GHWLQBHQ.js";
|
|
7
7
|
import "../../../chunk-KBEPONRV.js";
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-W3LMT7N4.js";
|
|
18
18
|
import {
|
|
19
19
|
createCoreStackNavigator
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5TJVZFPL.js";
|
|
21
21
|
import "./chunk-2GCLIPZP.js";
|
|
22
22
|
import {
|
|
23
23
|
createBottomTabNavigator,
|
|
@@ -29,19 +29,19 @@ import "./chunk-ZSUFR7LK.js";
|
|
|
29
29
|
import "./chunk-YWPELSTX.js";
|
|
30
30
|
import "./chunk-SHKOH7MA.js";
|
|
31
31
|
import "./chunk-GOYAFKM3.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-5J3FTNVE.js";
|
|
33
|
+
import "./chunk-CEFUB5I4.js";
|
|
34
|
+
import "./chunk-LSA52JU5.js";
|
|
35
35
|
import "./chunk-BVFOO2RO.js";
|
|
36
36
|
import "./chunk-3WUJAVUO.js";
|
|
37
37
|
import "./chunk-CAOQCE6W.js";
|
|
38
38
|
import "./chunk-ZADB3VIP.js";
|
|
39
39
|
import "./chunk-OXXEF5WL.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-YZEMCMKV.js";
|
|
41
41
|
import "./chunk-UD3DA4FR.js";
|
|
42
42
|
import {
|
|
43
43
|
LoginScreen
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-U6GW6ZHM.js";
|
|
45
45
|
import "./chunk-LTQGTI3K.js";
|
|
46
46
|
import "./chunk-7NTWLQ7J.js";
|
|
47
47
|
import {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMadCoreNavigator
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-5J3FTNVE.js";
|
|
4
|
+
import "../chunk-CEFUB5I4.js";
|
|
5
|
+
import "../chunk-LSA52JU5.js";
|
|
6
6
|
import "../chunk-BVFOO2RO.js";
|
|
7
7
|
import "../chunk-3WUJAVUO.js";
|
|
8
8
|
import "../chunk-CAOQCE6W.js";
|
|
9
9
|
import "../chunk-ZADB3VIP.js";
|
|
10
10
|
import "../chunk-OXXEF5WL.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-YZEMCMKV.js";
|
|
12
12
|
import "../chunk-UD3DA4FR.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-U6GW6ZHM.js";
|
|
14
14
|
import "../chunk-LTQGTI3K.js";
|
|
15
15
|
import "../chunk-7NTWLQ7J.js";
|
|
16
16
|
import "../chunk-RGJ4RWVB.js";
|
package/package.json
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
2
|
+
"name": "@equinor/mad-core",
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "Core library for the Mobile App Delivery team",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsup-node && echo '\n ⚙️ Generating typescript declarations..' && tsc --project tsconfig.json --emitDeclarationOnly --declaration",
|
|
8
|
+
"test": "jest",
|
|
9
|
+
"dev": "tsup-node --watch --clean=false",
|
|
10
|
+
"lint": "eslint src/",
|
|
11
|
+
"clean": "rm -rf node_modules/ && rm -rf dist/"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"react native",
|
|
15
|
+
"mad",
|
|
16
|
+
"expo",
|
|
17
|
+
"equinor"
|
|
18
|
+
],
|
|
19
|
+
"author": {
|
|
20
|
+
"name": "Equinor Mobile App Delivery team (MAD)"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/equinor/mad/issues"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/equinor/mad/",
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"@react-native-async-storage/async-storage": "*",
|
|
31
|
+
"@react-navigation/native": "^6.1.8",
|
|
32
|
+
"expo-device": ">=5.4.0",
|
|
33
|
+
"expo-localization": ">=14.3.0",
|
|
34
|
+
"react": ">=18.0",
|
|
35
|
+
"react-dom": ">=18.0",
|
|
36
|
+
"react-native": ">=0.70",
|
|
37
|
+
"react-native-gesture-handler": "^2.14.0",
|
|
38
|
+
"react-native-msal": "*"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@equinor/mad-auth": "*",
|
|
42
|
+
"@equinor/mad-components": "*",
|
|
43
|
+
"@equinor/mad-insights": "*",
|
|
44
|
+
"@equinor/mad-navigation": "*",
|
|
45
|
+
"@react-navigation/elements": "1.3.21",
|
|
46
|
+
"markdown-it": "^14.0.0",
|
|
47
|
+
"react-native-markdown-display": "^7.0.2",
|
|
48
|
+
"zustand": "^4.4.1"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@babel/core": "^7.21.4",
|
|
52
|
+
"@equinor/eslint-config-mad": "*",
|
|
53
|
+
"@testing-library/jest-native": "^5.4.3",
|
|
54
|
+
"@testing-library/react": "^14.0.0",
|
|
55
|
+
"@testing-library/react-native": "^12.3.0",
|
|
56
|
+
"@types/showdown": "^2.0.0",
|
|
57
|
+
"react-test-renderer": "18.1.0"
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"CODE_OF_CONDUCT.md",
|
|
61
|
+
"LICENSE",
|
|
62
|
+
"CHANGELOG.md",
|
|
63
|
+
"dist"
|
|
64
|
+
]
|
|
65
65
|
}
|
package/dist/chunk-CIMA2GQQ.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__spreadProps,
|
|
3
|
-
__spreadValues
|
|
4
|
-
} from "./chunk-WEAGW6MQ.js";
|
|
5
|
-
|
|
6
|
-
// src/components/screens/release-notes/ChangeLog.tsx
|
|
7
|
-
import React, { useMemo, useState } from "react";
|
|
8
|
-
import { View } from "react-native";
|
|
9
|
-
import RenderHtml, { defaultSystemFonts } from "react-native-render-html";
|
|
10
|
-
import * as showdown from "showdown";
|
|
11
|
-
import { EDSStyleSheet, useStyles } from "@equinor/mad-components";
|
|
12
|
-
var converter = new showdown.Converter();
|
|
13
|
-
var systemFonts = [...defaultSystemFonts, "Equinor-Regular"];
|
|
14
|
-
var ChangeLog = ({ release }) => {
|
|
15
|
-
const styles = useStyles(changeLogStyles);
|
|
16
|
-
const [width, setWidth] = useState(0);
|
|
17
|
-
const html = useMemo(() => ({ html: converter.makeHtml(release.releaseNote) }), [release]);
|
|
18
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
19
|
-
View,
|
|
20
|
-
{
|
|
21
|
-
onLayout: (event) => {
|
|
22
|
-
const { width: width2 } = event.nativeEvent.layout;
|
|
23
|
-
setWidth(width2);
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
/* @__PURE__ */ React.createElement(
|
|
27
|
-
RenderHtml,
|
|
28
|
-
{
|
|
29
|
-
contentWidth: width,
|
|
30
|
-
source: html,
|
|
31
|
-
systemFonts,
|
|
32
|
-
tagsStyles: {
|
|
33
|
-
ul: styles.list,
|
|
34
|
-
// @ts-expect-error Type Mismatch between react-native TextStyle and react-native-render-html
|
|
35
|
-
li: styles.listItems
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
));
|
|
40
|
-
};
|
|
41
|
-
var changeLogStyles = EDSStyleSheet.create((theme) => ({
|
|
42
|
-
list: {
|
|
43
|
-
display: "flex",
|
|
44
|
-
listStyleType: "square",
|
|
45
|
-
alignItems: "flex-start",
|
|
46
|
-
paddingLeft: theme.spacing.container.paddingHorizontal,
|
|
47
|
-
marginVertical: theme.spacing.textField.paddingVertical,
|
|
48
|
-
color: theme.colors.text.primary
|
|
49
|
-
},
|
|
50
|
-
listItems: __spreadProps(__spreadValues({}, theme.typography.paragraph.body_short), {
|
|
51
|
-
marginHorizontal: theme.spacing.textField.paddingHorizontal,
|
|
52
|
-
paddingBottom: theme.spacing.textField.paddingVertical
|
|
53
|
-
})
|
|
54
|
-
}));
|
|
55
|
-
|
|
56
|
-
export {
|
|
57
|
-
ChangeLog
|
|
58
|
-
};
|