@equinor/mad-core 0.9.10 → 0.9.12
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 +15 -0
- package/dist/{chunk-OJSZ4IAP.js → chunk-BE6LXCPW.js} +1 -1
- package/dist/{chunk-CUCKZKO6.js → chunk-GAKL37JH.js} +5 -5
- package/dist/{chunk-GPTLCPZG.js → chunk-TMC6RSMM.js} +7 -4
- package/dist/components/createCoreStackNavigator.js +7 -7
- package/dist/components/index.js +8 -8
- package/dist/components/screens/create-incident/CreateIncidentScreen.js +1 -1
- package/dist/components/screens/settings/index.js +1 -1
- package/dist/index.js +8 -8
- package/dist/utils/createMadCoreNavigator.js +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @equinor/mad-core
|
|
2
2
|
|
|
3
|
+
## 0.9.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c0aea8c]
|
|
8
|
+
- @equinor/mad-components@0.15.2
|
|
9
|
+
- @equinor/mad-auth@0.2.8
|
|
10
|
+
- @equinor/mad-toast@0.1.7
|
|
11
|
+
|
|
12
|
+
## 0.9.11
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 435986a: The ticket number is now copyable in the `CreateIncidentScreen`
|
|
17
|
+
|
|
3
18
|
## 0.9.10
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
WhatsNewScreen
|
|
6
6
|
} from "./chunk-KL32BPEW.js";
|
|
7
|
-
import {
|
|
8
|
-
CreateIncidentScreen
|
|
9
|
-
} from "./chunk-GPTLCPZG.js";
|
|
10
7
|
import {
|
|
11
8
|
SelectLanguageScreen
|
|
12
9
|
} from "./chunk-OG52JYYV.js";
|
|
13
10
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
11
|
+
CreateIncidentScreen
|
|
12
|
+
} from "./chunk-TMC6RSMM.js";
|
|
16
13
|
import {
|
|
17
14
|
LoginScreen
|
|
18
15
|
} from "./chunk-AQXI6FKQ.js";
|
|
19
16
|
import {
|
|
20
17
|
ServiceMessageProvider
|
|
21
18
|
} from "./chunk-WRQWW7QV.js";
|
|
19
|
+
import {
|
|
20
|
+
AboutScreen
|
|
21
|
+
} from "./chunk-JNNCA3V2.js";
|
|
22
22
|
import {
|
|
23
23
|
getDefaultScreenOptionsForLoginScreen
|
|
24
24
|
} from "./chunk-RGJ4RWVB.js";
|
|
@@ -13,7 +13,6 @@ import {
|
|
|
13
13
|
} from "./chunk-5Q7ZXDFE.js";
|
|
14
14
|
|
|
15
15
|
// src/components/screens/create-incident/CreateIncidentScreen.tsx
|
|
16
|
-
import React, { useState } from "react";
|
|
17
16
|
import {
|
|
18
17
|
Button,
|
|
19
18
|
Cell,
|
|
@@ -23,9 +22,10 @@ import {
|
|
|
23
22
|
Typography,
|
|
24
23
|
useStyles
|
|
25
24
|
} from "@equinor/mad-components";
|
|
26
|
-
import { View, LayoutAnimation, ScrollView, KeyboardAvoidingView, Platform } from "react-native";
|
|
27
25
|
import * as Device from "expo-device";
|
|
28
26
|
import * as Localization from "expo-localization";
|
|
27
|
+
import React, { useState } from "react";
|
|
28
|
+
import { KeyboardAvoidingView, LayoutAnimation, Platform, ScrollView, View } from "react-native";
|
|
29
29
|
var CreateIncidentScreen = () => {
|
|
30
30
|
var _a, _b, _c, _d;
|
|
31
31
|
const [error, setError] = useState(null);
|
|
@@ -91,7 +91,7 @@ ${ticketDescription}`;
|
|
|
91
91
|
keyboardVerticalOffset: 115,
|
|
92
92
|
style: styles.container
|
|
93
93
|
},
|
|
94
|
-
/* @__PURE__ */ React.createElement(ScrollView, { contentInsetAdjustmentBehavior: "automatic" }, /* @__PURE__ */ React.createElement(Spacer, null), /* @__PURE__ */ React.createElement(Cell, null, /* @__PURE__ */ React.createElement(View, { style: styles.topTextContainer }, /* @__PURE__ */ React.createElement(Typography, { variant: "h1" }, "Create ticket in ServiceNow"), /* @__PURE__ */ React.createElement(Typography, { group: "paragraph", variant: "body_short" }, "We collect information about your device as part of our feedback process. By submitting, you agree to share the following information:")), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "User", infoValue: account == null ? void 0 : account.username }), Platform.OS !== "web" && /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Device Brand", infoValue: Device.brand }), Platform.OS !== "web" && /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Device", infoValue: Device.deviceName }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Operating System", infoValue: Device.osVersion }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Time Zone", infoValue: timeZone }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Locale", infoValue: locale }), ticketNumber && /* @__PURE__ */ React.createElement(View, { style: [styles.popupBox, styles.popupSuccess] }, /* @__PURE__ */ React.createElement(Typography, null,
|
|
94
|
+
/* @__PURE__ */ React.createElement(ScrollView, { contentInsetAdjustmentBehavior: "automatic" }, /* @__PURE__ */ React.createElement(Spacer, null), /* @__PURE__ */ React.createElement(Cell, null, /* @__PURE__ */ React.createElement(View, { style: styles.topTextContainer }, /* @__PURE__ */ React.createElement(Typography, { variant: "h1" }, "Create ticket in ServiceNow"), /* @__PURE__ */ React.createElement(Typography, { group: "paragraph", variant: "body_short" }, "We collect information about your device as part of our feedback process. By submitting, you agree to share the following information:")), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "User", infoValue: account == null ? void 0 : account.username }), Platform.OS !== "web" && /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Device Brand", infoValue: Device.brand }), Platform.OS !== "web" && /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Device", infoValue: Device.deviceName }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Operating System", infoValue: Device.osVersion }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Time Zone", infoValue: timeZone }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Locale", infoValue: locale }), ticketNumber && /* @__PURE__ */ React.createElement(View, { style: [styles.popupBox, styles.popupSuccess] }, /* @__PURE__ */ React.createElement(Typography, null, "Ticket number: "), /* @__PURE__ */ React.createElement(Typography, { selectable: true }, ticketNumber)), error && /* @__PURE__ */ React.createElement(View, { style: [styles.popupBox, styles.popupDanger] }, /* @__PURE__ */ React.createElement(Typography, null, "An error occurred creating your ticket:"), /* @__PURE__ */ React.createElement(Typography, { selectable: true }, error instanceof Error ? error.message : "")), /* @__PURE__ */ React.createElement(View, { style: styles.titleField }, /* @__PURE__ */ React.createElement(
|
|
95
95
|
TextField,
|
|
96
96
|
{
|
|
97
97
|
onChange: setTicketTitle,
|
|
@@ -140,7 +140,10 @@ var createIncidentStyles = EDSStyleSheet.create((theme) => ({
|
|
|
140
140
|
padding: 24,
|
|
141
141
|
marginTop: 16,
|
|
142
142
|
borderWidth: 2,
|
|
143
|
-
borderRadius: 4
|
|
143
|
+
borderRadius: 4,
|
|
144
|
+
flexDirection: "row",
|
|
145
|
+
gap: 8,
|
|
146
|
+
flexWrap: "wrap"
|
|
144
147
|
},
|
|
145
148
|
popupDanger: {
|
|
146
149
|
borderColor: theme.colors.feedback.danger
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreStackNavigator
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BE6LXCPW.js";
|
|
4
4
|
import "../chunk-WUCGJV35.js";
|
|
5
5
|
import "../chunk-2GCLIPZP.js";
|
|
6
6
|
import "../chunk-ZLW2PMDL.js";
|
|
@@ -9,19 +9,19 @@ import "../chunk-VRSHTEZL.js";
|
|
|
9
9
|
import "../chunk-WLYQWDPT.js";
|
|
10
10
|
import "../chunk-YWPELSTX.js";
|
|
11
11
|
import "../chunk-SHKOH7MA.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-GAKL37JH.js";
|
|
13
13
|
import "../chunk-6T6NE74H.js";
|
|
14
14
|
import "../chunk-KL32BPEW.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-3WUJAVUO.js";
|
|
17
|
-
import "../chunk-SNG5ADEI.js";
|
|
15
|
+
import "../chunk-ZPXPIE5I.js";
|
|
18
16
|
import "../chunk-OG52JYYV.js";
|
|
19
17
|
import "../chunk-L434TQRF.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-TMC6RSMM.js";
|
|
19
|
+
import "../chunk-3WUJAVUO.js";
|
|
20
|
+
import "../chunk-SNG5ADEI.js";
|
|
22
21
|
import "../chunk-AQXI6FKQ.js";
|
|
23
22
|
import "../chunk-WRQWW7QV.js";
|
|
24
23
|
import "../chunk-B6LK3MOD.js";
|
|
24
|
+
import "../chunk-JNNCA3V2.js";
|
|
25
25
|
import "../chunk-OCWASWDK.js";
|
|
26
26
|
import "../chunk-RGJ4RWVB.js";
|
|
27
27
|
import "../chunk-CZAFV2L7.js";
|
package/dist/components/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunk-JYWP44JR.js";
|
|
2
2
|
import "../chunk-AK7PA4BE.js";
|
|
3
|
+
import "../chunk-5GBNULIT.js";
|
|
3
4
|
import {
|
|
4
5
|
SettingsScreen
|
|
5
6
|
} from "../chunk-QVU6TANN.js";
|
|
6
7
|
import "../chunk-73DTZ72P.js";
|
|
7
8
|
import "../chunk-YKLMUKP4.js";
|
|
8
9
|
import "../chunk-3OKLIPZ5.js";
|
|
9
|
-
import "../chunk-5GBNULIT.js";
|
|
10
10
|
import "../chunk-7SJM4NDH.js";
|
|
11
11
|
import {
|
|
12
12
|
ErrorBoundary
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "../chunk-ZWBWZKYN.js";
|
|
17
17
|
import {
|
|
18
18
|
createCoreStackNavigator
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-BE6LXCPW.js";
|
|
20
20
|
import "../chunk-WUCGJV35.js";
|
|
21
21
|
import "../chunk-2GCLIPZP.js";
|
|
22
22
|
import {
|
|
@@ -28,21 +28,21 @@ import "../chunk-VRSHTEZL.js";
|
|
|
28
28
|
import "../chunk-WLYQWDPT.js";
|
|
29
29
|
import "../chunk-YWPELSTX.js";
|
|
30
30
|
import "../chunk-SHKOH7MA.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-GAKL37JH.js";
|
|
32
32
|
import "../chunk-6T6NE74H.js";
|
|
33
33
|
import "../chunk-KL32BPEW.js";
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-3WUJAVUO.js";
|
|
36
|
-
import "../chunk-SNG5ADEI.js";
|
|
34
|
+
import "../chunk-ZPXPIE5I.js";
|
|
37
35
|
import "../chunk-OG52JYYV.js";
|
|
38
36
|
import "../chunk-L434TQRF.js";
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-TMC6RSMM.js";
|
|
38
|
+
import "../chunk-3WUJAVUO.js";
|
|
39
|
+
import "../chunk-SNG5ADEI.js";
|
|
41
40
|
import {
|
|
42
41
|
LoginScreen
|
|
43
42
|
} from "../chunk-AQXI6FKQ.js";
|
|
44
43
|
import "../chunk-WRQWW7QV.js";
|
|
45
44
|
import "../chunk-B6LK3MOD.js";
|
|
45
|
+
import "../chunk-JNNCA3V2.js";
|
|
46
46
|
import "../chunk-OCWASWDK.js";
|
|
47
47
|
import "../chunk-RGJ4RWVB.js";
|
|
48
48
|
import "../chunk-CZAFV2L7.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../chunk-AK7PA4BE.js";
|
|
2
|
+
import "../../../chunk-5GBNULIT.js";
|
|
2
3
|
import {
|
|
3
4
|
SettingsScreen
|
|
4
5
|
} from "../../../chunk-QVU6TANN.js";
|
|
5
6
|
import "../../../chunk-73DTZ72P.js";
|
|
6
7
|
import "../../../chunk-YKLMUKP4.js";
|
|
7
8
|
import "../../../chunk-3OKLIPZ5.js";
|
|
8
|
-
import "../../../chunk-5GBNULIT.js";
|
|
9
9
|
import "../../../chunk-7SJM4NDH.js";
|
|
10
10
|
import "../../../chunk-CZAFV2L7.js";
|
|
11
11
|
import "../../../chunk-GUKC6UGZ.js";
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./chunk-JYWP44JR.js";
|
|
2
2
|
import "./chunk-AK7PA4BE.js";
|
|
3
|
+
import "./chunk-5GBNULIT.js";
|
|
3
4
|
import {
|
|
4
5
|
SettingsScreen
|
|
5
6
|
} from "./chunk-QVU6TANN.js";
|
|
6
7
|
import "./chunk-73DTZ72P.js";
|
|
7
8
|
import "./chunk-YKLMUKP4.js";
|
|
8
9
|
import "./chunk-3OKLIPZ5.js";
|
|
9
|
-
import "./chunk-5GBNULIT.js";
|
|
10
10
|
import "./chunk-7SJM4NDH.js";
|
|
11
11
|
import "./chunk-6F4PWJZI.js";
|
|
12
12
|
import {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-ZWBWZKYN.js";
|
|
18
18
|
import {
|
|
19
19
|
createCoreStackNavigator
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BE6LXCPW.js";
|
|
21
21
|
import "./chunk-WUCGJV35.js";
|
|
22
22
|
import "./chunk-2GCLIPZP.js";
|
|
23
23
|
import {
|
|
@@ -29,21 +29,21 @@ import "./chunk-VRSHTEZL.js";
|
|
|
29
29
|
import "./chunk-WLYQWDPT.js";
|
|
30
30
|
import "./chunk-YWPELSTX.js";
|
|
31
31
|
import "./chunk-SHKOH7MA.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-GAKL37JH.js";
|
|
33
33
|
import "./chunk-6T6NE74H.js";
|
|
34
34
|
import "./chunk-KL32BPEW.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-3WUJAVUO.js";
|
|
37
|
-
import "./chunk-SNG5ADEI.js";
|
|
35
|
+
import "./chunk-ZPXPIE5I.js";
|
|
38
36
|
import "./chunk-OG52JYYV.js";
|
|
39
37
|
import "./chunk-L434TQRF.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-TMC6RSMM.js";
|
|
39
|
+
import "./chunk-3WUJAVUO.js";
|
|
40
|
+
import "./chunk-SNG5ADEI.js";
|
|
42
41
|
import {
|
|
43
42
|
LoginScreen
|
|
44
43
|
} from "./chunk-AQXI6FKQ.js";
|
|
45
44
|
import "./chunk-WRQWW7QV.js";
|
|
46
45
|
import "./chunk-B6LK3MOD.js";
|
|
46
|
+
import "./chunk-JNNCA3V2.js";
|
|
47
47
|
import "./chunk-OCWASWDK.js";
|
|
48
48
|
import {
|
|
49
49
|
getDefaultScreenOptionsForLoginScreen
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMadCoreNavigator
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-GAKL37JH.js";
|
|
4
4
|
import "../chunk-6T6NE74H.js";
|
|
5
5
|
import "../chunk-KL32BPEW.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-3WUJAVUO.js";
|
|
8
|
-
import "../chunk-SNG5ADEI.js";
|
|
6
|
+
import "../chunk-ZPXPIE5I.js";
|
|
9
7
|
import "../chunk-OG52JYYV.js";
|
|
10
8
|
import "../chunk-L434TQRF.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-TMC6RSMM.js";
|
|
10
|
+
import "../chunk-3WUJAVUO.js";
|
|
11
|
+
import "../chunk-SNG5ADEI.js";
|
|
13
12
|
import "../chunk-AQXI6FKQ.js";
|
|
14
13
|
import "../chunk-WRQWW7QV.js";
|
|
15
14
|
import "../chunk-B6LK3MOD.js";
|
|
15
|
+
import "../chunk-JNNCA3V2.js";
|
|
16
16
|
import "../chunk-OCWASWDK.js";
|
|
17
17
|
import "../chunk-RGJ4RWVB.js";
|
|
18
18
|
import "../chunk-CZAFV2L7.js";
|