@equinor/mad-core 0.9.10 → 0.9.11

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,11 @@
1
1
  # @equinor/mad-core
2
2
 
3
+ ## 0.9.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 435986a: The ticket number is now copyable in the `CreateIncidentScreen`
8
+
3
9
  ## 0.9.10
4
10
 
5
11
  ### Patch Changes
@@ -1,3 +1,6 @@
1
+ import {
2
+ SelectLanguageScreen
3
+ } from "./chunk-OG52JYYV.js";
1
4
  import {
2
5
  ReleaseNotesScreen
3
6
  } from "./chunk-6T6NE74H.js";
@@ -6,19 +9,16 @@ import {
6
9
  } from "./chunk-KL32BPEW.js";
7
10
  import {
8
11
  CreateIncidentScreen
9
- } from "./chunk-GPTLCPZG.js";
10
- import {
11
- SelectLanguageScreen
12
- } from "./chunk-OG52JYYV.js";
13
- import {
14
- AboutScreen
15
- } from "./chunk-JNNCA3V2.js";
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, `Ticket number: ${ticketNumber}`)), error && /* @__PURE__ */ React.createElement(View, { style: [styles.popupBox, styles.popupDanger] }, /* @__PURE__ */ React.createElement(Typography, null, `An error occurred creating your ticket: ${error}`)), /* @__PURE__ */ React.createElement(View, { style: styles.titleField }, /* @__PURE__ */ React.createElement(
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
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-ZLW2PMDL.js";
7
7
  import {
8
8
  createMadCoreNavigator
9
- } from "./chunk-CUCKZKO6.js";
9
+ } from "./chunk-BM4677Q6.js";
10
10
  import {
11
11
  setConfig
12
12
  } from "./chunk-5Q7ZXDFE.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreStackNavigator
3
- } from "../chunk-OJSZ4IAP.js";
3
+ } from "../chunk-VFZCRZKN.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-CUCKZKO6.js";
12
+ import "../chunk-BM4677Q6.js";
13
+ import "../chunk-OG52JYYV.js";
14
+ import "../chunk-L434TQRF.js";
13
15
  import "../chunk-6T6NE74H.js";
14
16
  import "../chunk-KL32BPEW.js";
15
- import "../chunk-GPTLCPZG.js";
17
+ import "../chunk-ZPXPIE5I.js";
18
+ import "../chunk-TMC6RSMM.js";
16
19
  import "../chunk-3WUJAVUO.js";
17
20
  import "../chunk-SNG5ADEI.js";
18
- import "../chunk-OG52JYYV.js";
19
- import "../chunk-L434TQRF.js";
20
- import "../chunk-ZPXPIE5I.js";
21
- import "../chunk-JNNCA3V2.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";
@@ -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-OJSZ4IAP.js";
19
+ } from "../chunk-VFZCRZKN.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-CUCKZKO6.js";
31
+ import "../chunk-BM4677Q6.js";
32
+ import "../chunk-OG52JYYV.js";
33
+ import "../chunk-L434TQRF.js";
32
34
  import "../chunk-6T6NE74H.js";
33
35
  import "../chunk-KL32BPEW.js";
34
- import "../chunk-GPTLCPZG.js";
36
+ import "../chunk-ZPXPIE5I.js";
37
+ import "../chunk-TMC6RSMM.js";
35
38
  import "../chunk-3WUJAVUO.js";
36
39
  import "../chunk-SNG5ADEI.js";
37
- import "../chunk-OG52JYYV.js";
38
- import "../chunk-L434TQRF.js";
39
- import "../chunk-ZPXPIE5I.js";
40
- import "../chunk-JNNCA3V2.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,6 +1,6 @@
1
1
  import {
2
2
  CreateIncidentScreen
3
- } from "../../../chunk-GPTLCPZG.js";
3
+ } from "../../../chunk-TMC6RSMM.js";
4
4
  import "../../../chunk-3WUJAVUO.js";
5
5
  import "../../../chunk-SNG5ADEI.js";
6
6
  import "../../../chunk-ZB37EIZB.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-OJSZ4IAP.js";
20
+ } from "./chunk-VFZCRZKN.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-CUCKZKO6.js";
32
+ import "./chunk-BM4677Q6.js";
33
+ import "./chunk-OG52JYYV.js";
34
+ import "./chunk-L434TQRF.js";
33
35
  import "./chunk-6T6NE74H.js";
34
36
  import "./chunk-KL32BPEW.js";
35
- import "./chunk-GPTLCPZG.js";
37
+ import "./chunk-ZPXPIE5I.js";
38
+ import "./chunk-TMC6RSMM.js";
36
39
  import "./chunk-3WUJAVUO.js";
37
40
  import "./chunk-SNG5ADEI.js";
38
- import "./chunk-OG52JYYV.js";
39
- import "./chunk-L434TQRF.js";
40
- import "./chunk-ZPXPIE5I.js";
41
- import "./chunk-JNNCA3V2.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-CUCKZKO6.js";
3
+ } from "../chunk-BM4677Q6.js";
4
+ import "../chunk-OG52JYYV.js";
5
+ import "../chunk-L434TQRF.js";
4
6
  import "../chunk-6T6NE74H.js";
5
7
  import "../chunk-KL32BPEW.js";
6
- import "../chunk-GPTLCPZG.js";
8
+ import "../chunk-ZPXPIE5I.js";
9
+ import "../chunk-TMC6RSMM.js";
7
10
  import "../chunk-3WUJAVUO.js";
8
11
  import "../chunk-SNG5ADEI.js";
9
- import "../chunk-OG52JYYV.js";
10
- import "../chunk-L434TQRF.js";
11
- import "../chunk-ZPXPIE5I.js";
12
- import "../chunk-JNNCA3V2.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/mad-core",
3
- "version": "0.9.10",
3
+ "version": "0.9.11",
4
4
  "description": "Core library for the Mobile App Delivery team",
5
5
  "type": "module",
6
6
  "scripts": {