@equinor/mad-core 0.3.1 → 0.3.3
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 +19 -0
- package/dist/{chunk-A3ND5QVK.js → chunk-2BXHQTFH.js} +1 -1
- package/dist/chunk-5IS2WJYY.js +25 -0
- package/dist/{chunk-7OT26KNA.js → chunk-5XZ4EIWK.js} +5 -5
- package/dist/{chunk-UAKBRWHM.js → chunk-6ZEGA36S.js} +1 -1
- package/dist/{chunk-6UN2PRPB.js → chunk-7IV7JAIC.js} +1 -1
- package/dist/{chunk-ZX726IIW.js → chunk-7PHV3YNH.js} +146 -67
- package/dist/{chunk-PEPYP4GH.js → chunk-ATHPQPDV.js} +2 -2
- package/dist/{chunk-KBY2EXL7.js → chunk-C5H36AGQ.js} +1 -1
- package/dist/chunk-CAOQCE6W.js +31 -0
- package/dist/{chunk-MPPFRLAL.js → chunk-EFVAFRZ4.js} +3 -3
- package/dist/chunk-EPKAICSZ.js +77 -0
- package/dist/{chunk-FOAO6U65.js → chunk-F4CPVOUK.js} +7 -7
- package/dist/{chunk-SGPMP2PN.js → chunk-F4WSVD6D.js} +1 -1
- package/dist/{chunk-2DFV2HBY.js → chunk-GLFZI3WS.js} +1 -1
- package/dist/chunk-GVBIOTF2.js +144 -0
- package/dist/{chunk-FXJGDKLB.js → chunk-ILRFXZQ6.js} +4 -4
- package/dist/{chunk-PX7SPACG.js → chunk-IUZOOXOV.js} +2 -4
- package/dist/{chunk-T6J6HWJK.js → chunk-KGULNU2L.js} +3 -3
- package/dist/{chunk-BBDX2JPC.js → chunk-LFCWKD5B.js} +1 -1
- package/dist/chunk-MCVFE22N.js +15 -0
- package/dist/{chunk-ANFSTFWV.js → chunk-STRJ5XYK.js} +4 -4
- package/dist/{chunk-DCUF7ZWX.js → chunk-VJD2P6SF.js} +1 -2
- package/dist/{chunk-5RW7M3DD.js → chunk-WV6VNU2T.js} +1 -1
- package/dist/{chunk-O2G2ZKO7.js → chunk-YAOO3R3L.js} +4 -4
- package/dist/components/EnvironmentProvider.d.ts +2 -0
- package/dist/components/EnvironmentProvider.js +11 -0
- package/dist/components/createCoreStackNavigator.d.ts +35 -34
- package/dist/components/createCoreStackNavigator.js +30 -27
- package/dist/components/index.js +33 -30
- package/dist/components/navigation/MadCoreSubHeader.js +7 -8
- package/dist/components/navigation/index.js +8 -9
- package/dist/components/navigation/navigation-creators.js +8 -9
- package/dist/components/screens/AboutScreen.js +3 -4
- package/dist/components/screens/LoginScreen.js +5 -6
- package/dist/components/screens/create-incident/CreateIncidentScreen.js +19 -0
- package/dist/components/screens/create-incident/UserInfo.d.ts +7 -0
- package/dist/components/screens/create-incident/UserInfo.js +7 -0
- package/dist/components/screens/create-incident/createIncident.d.ts +16 -0
- package/dist/components/screens/create-incident/createIncident.js +8 -0
- package/dist/components/screens/language/SelectLanguageScreen.js +5 -6
- package/dist/components/screens/language/components/SelectLanguageCellGroup.js +3 -4
- package/dist/components/screens/release-notes/ReleaseNotesScreen.js +6 -7
- package/dist/components/screens/release-notes/WhatsNewScreen.js +8 -9
- package/dist/components/screens/settings/SettingsScreen.js +5 -6
- package/dist/components/screens/settings/index.js +6 -7
- package/dist/components/service-message/ServiceMessageBanner.js +6 -7
- package/dist/components/service-message/ServiceMessageProvider.js +4 -5
- package/dist/components/service-message/hooks/useFetchServiceMessage.js +3 -4
- package/dist/hooks/UseReleaseNotes.js +3 -4
- package/dist/hooks/useScreenTitleFromDictionary.js +3 -4
- package/dist/index.js +41 -33
- package/dist/language/useDictionary.js +2 -3
- package/dist/store/index.d.ts +1 -0
- package/dist/store/index.js +11 -6
- package/dist/store/language/index.js +2 -3
- package/dist/store/language/language.js +2 -3
- package/dist/store/mad-config/hooks.d.ts +4 -4
- package/dist/store/mad-config/hooks.js +4 -3
- package/dist/store/mad-config/index.js +11 -7
- package/dist/store/mad-config/mad-config.d.ts +5 -3
- package/dist/store/mad-config/mad-config.js +8 -1
- package/dist/types.d.ts +24 -17
- package/dist/utils/createEnvironmentProxy.d.ts +9 -0
- package/dist/utils/createEnvironmentProxy.js +10 -0
- package/dist/utils/createMadCoreNavigator.d.ts +3 -3
- package/dist/utils/createMadCoreNavigator.js +25 -22
- package/dist/utils/getNavigationRouteForLoginScreen.js +4 -5
- package/dist/utils/getNavigationRouteForWhatsNewScreen.js +3 -4
- package/dist/utils/getPremadeSettings.d.ts +3 -3
- package/dist/utils/getRedirectUriFromAuthConfig.d.ts +1 -2
- package/dist/utils/getRedirectUriFromAuthConfig.js +1 -1
- package/package.json +9 -7
- package/dist/chunk-6O3V4Z6G.js +0 -56
- package/dist/chunk-GCBWBANV.js +0 -10
- package/dist/chunk-ZSTTHIEF.js +0 -34
- package/dist/components/screens/CreateIncidentScreen.js +0 -7
- /package/dist/{chunk-G5W3HK4A.js → chunk-RVKZULYD.js} +0 -0
- /package/dist/components/screens/{CreateIncidentScreen.d.ts → create-incident/CreateIncidentScreen.d.ts} +0 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UserInfo
|
|
3
|
+
} from "./chunk-5IS2WJYY.js";
|
|
4
|
+
import {
|
|
5
|
+
createIncident
|
|
6
|
+
} from "./chunk-CAOQCE6W.js";
|
|
7
|
+
import {
|
|
8
|
+
useAccountOrDemoAccount
|
|
9
|
+
} from "./chunk-EQYL7INQ.js";
|
|
10
|
+
import {
|
|
11
|
+
useEnvironment,
|
|
12
|
+
useServiceNow
|
|
13
|
+
} from "./chunk-7PHV3YNH.js";
|
|
14
|
+
|
|
15
|
+
// src/components/screens/create-incident/CreateIncidentScreen.tsx
|
|
16
|
+
import React, { useState } from "react";
|
|
17
|
+
import {
|
|
18
|
+
Button,
|
|
19
|
+
Cell,
|
|
20
|
+
EDSStyleSheet,
|
|
21
|
+
TextField,
|
|
22
|
+
Typography,
|
|
23
|
+
useStyles
|
|
24
|
+
} from "@equinor/mad-components";
|
|
25
|
+
import { View, LayoutAnimation } from "react-native";
|
|
26
|
+
import * as Device from "expo-device";
|
|
27
|
+
import * as Localization from "expo-localization";
|
|
28
|
+
var CreateIncidentScreen = () => {
|
|
29
|
+
const styles = useStyles(createIncidentStyles);
|
|
30
|
+
const account = useAccountOrDemoAccount();
|
|
31
|
+
const serviceNowConfigurationItem = useServiceNow();
|
|
32
|
+
const environment = useEnvironment();
|
|
33
|
+
const [error, setError] = useState(null);
|
|
34
|
+
const [ticketNumber, setTicketNumber] = useState(void 0);
|
|
35
|
+
const [ticketTitle, setTicketTitle] = useState(void 0);
|
|
36
|
+
const [ticketDescription, setTicketDescription] = useState(void 0);
|
|
37
|
+
const [isSending, setIsSending] = useState(false);
|
|
38
|
+
const onSubmit = () => {
|
|
39
|
+
setIsSending(true);
|
|
40
|
+
const data = {
|
|
41
|
+
callerEmail: account == null ? void 0 : account.username,
|
|
42
|
+
title: ticketTitle,
|
|
43
|
+
description: createDescription()
|
|
44
|
+
};
|
|
45
|
+
createIncident(data, environment, serviceNowConfigurationItem).then((response) => {
|
|
46
|
+
LayoutAnimation.configureNext({
|
|
47
|
+
duration: 500,
|
|
48
|
+
update: {
|
|
49
|
+
type: LayoutAnimation.Types.easeInEaseOut
|
|
50
|
+
},
|
|
51
|
+
create: {
|
|
52
|
+
type: LayoutAnimation.Types.easeInEaseOut,
|
|
53
|
+
property: LayoutAnimation.Properties.opacity
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
if (response.result.details.number) {
|
|
57
|
+
setTicketNumber(response.result.details.number);
|
|
58
|
+
} else {
|
|
59
|
+
setError(response);
|
|
60
|
+
}
|
|
61
|
+
setTicketDescription(void 0);
|
|
62
|
+
setTicketTitle(void 0);
|
|
63
|
+
setIsSending(false);
|
|
64
|
+
}).catch(setError).finally(() => setIsSending(false));
|
|
65
|
+
};
|
|
66
|
+
const createDescription = () => {
|
|
67
|
+
let description = "";
|
|
68
|
+
description += `User: ${account == null ? void 0 : account.username}
|
|
69
|
+
`;
|
|
70
|
+
description += `Device Brand: ${Device.brand}
|
|
71
|
+
`;
|
|
72
|
+
description += `Device: ${Device.deviceName}
|
|
73
|
+
`;
|
|
74
|
+
description += `Operating System: ${Device.osVersion}
|
|
75
|
+
`;
|
|
76
|
+
description += `Time Zone: ${Localization.timezone}
|
|
77
|
+
`;
|
|
78
|
+
description += `Locale: ${Localization.locale}
|
|
79
|
+
`;
|
|
80
|
+
return `${description}
|
|
81
|
+
${ticketDescription}`;
|
|
82
|
+
};
|
|
83
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__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 }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Device Brand", infoValue: Device.brand }), /* @__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: Localization.timezone }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Area", infoValue: Localization.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(
|
|
84
|
+
TextField,
|
|
85
|
+
{
|
|
86
|
+
onChange: setTicketTitle,
|
|
87
|
+
value: ticketTitle,
|
|
88
|
+
placeholder: "Write a title for the Service Now ticket",
|
|
89
|
+
disabled: isSending
|
|
90
|
+
}
|
|
91
|
+
)), /* @__PURE__ */ React.createElement(View, { style: styles.titleField }, /* @__PURE__ */ React.createElement(
|
|
92
|
+
TextField,
|
|
93
|
+
{
|
|
94
|
+
multiline: true,
|
|
95
|
+
onChange: setTicketDescription,
|
|
96
|
+
placeholder: "Write a complete description of your issue. You do not need to provide information about your device.",
|
|
97
|
+
value: ticketDescription,
|
|
98
|
+
disabled: isSending
|
|
99
|
+
}
|
|
100
|
+
)), /* @__PURE__ */ React.createElement(View, { style: styles.buttonContainer }, /* @__PURE__ */ React.createElement(
|
|
101
|
+
Button,
|
|
102
|
+
{
|
|
103
|
+
disabled: !ticketTitle || !ticketDescription || isSending,
|
|
104
|
+
onPress: onSubmit,
|
|
105
|
+
style: { width: 81 },
|
|
106
|
+
title: "Send"
|
|
107
|
+
}
|
|
108
|
+
))));
|
|
109
|
+
};
|
|
110
|
+
var createIncidentStyles = EDSStyleSheet.create((theme) => ({
|
|
111
|
+
container: {
|
|
112
|
+
display: "flex",
|
|
113
|
+
paddingVertical: theme.geometry.dimension.cell.minHeight
|
|
114
|
+
},
|
|
115
|
+
topTextContainer: {
|
|
116
|
+
paddingBottom: theme.geometry.dimension.cell.minHeight
|
|
117
|
+
},
|
|
118
|
+
titleField: {
|
|
119
|
+
marginVertical: theme.spacing.textField.paddingVertical * 3
|
|
120
|
+
},
|
|
121
|
+
multiTextField: {
|
|
122
|
+
height: theme.geometry.dimension.dialog.minHeight
|
|
123
|
+
},
|
|
124
|
+
buttonContainer: {
|
|
125
|
+
flexDirection: "row",
|
|
126
|
+
justifyContent: "flex-end"
|
|
127
|
+
},
|
|
128
|
+
popupBox: {
|
|
129
|
+
padding: 24,
|
|
130
|
+
marginTop: 16,
|
|
131
|
+
borderWidth: 2,
|
|
132
|
+
borderRadius: 4
|
|
133
|
+
},
|
|
134
|
+
popupDanger: {
|
|
135
|
+
borderColor: theme.colors.interactive.danger
|
|
136
|
+
},
|
|
137
|
+
popupSuccess: {
|
|
138
|
+
borderColor: theme.colors.interactive.success
|
|
139
|
+
}
|
|
140
|
+
}));
|
|
141
|
+
|
|
142
|
+
export {
|
|
143
|
+
CreateIncidentScreen
|
|
144
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DisableableSwipeable
|
|
3
|
+
} from "./chunk-ZSUFR7LK.js";
|
|
1
4
|
import {
|
|
2
5
|
ExpansionToggle
|
|
3
6
|
} from "./chunk-YWPELSTX.js";
|
|
4
7
|
import {
|
|
5
8
|
resolveMessageFromServiceMessage
|
|
6
9
|
} from "./chunk-SHKOH7MA.js";
|
|
7
|
-
import {
|
|
8
|
-
DisableableSwipeable
|
|
9
|
-
} from "./chunk-ZSUFR7LK.js";
|
|
10
10
|
import {
|
|
11
11
|
useServiceMessageState
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7IV7JAIC.js";
|
|
13
13
|
import {
|
|
14
14
|
__spreadProps,
|
|
15
15
|
__spreadValues
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
getConfig,
|
|
2
3
|
getIsLanguageSelected
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
getConfig
|
|
6
|
-
} from "./chunk-ZSTTHIEF.js";
|
|
4
|
+
} from "./chunk-7PHV3YNH.js";
|
|
7
5
|
|
|
8
6
|
// src/utils/getNavigationRouteForWhatsNewScreen.ts
|
|
9
7
|
var getNavigationRouteForWhatsNewScreen = () => {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-RFYZGBU4.js";
|
|
4
4
|
import {
|
|
5
5
|
getConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7PHV3YNH.js";
|
|
7
7
|
|
|
8
8
|
// src/components/service-message/hooks/useFetchServiceMessage.ts
|
|
9
9
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -16,8 +16,8 @@ var useFetchServiceMessage = () => {
|
|
|
16
16
|
const lastInterval = useRef();
|
|
17
17
|
useEffect(() => {
|
|
18
18
|
function fetchServiceMessage() {
|
|
19
|
-
const {
|
|
20
|
-
fetch(`${getMadCommonBaseUrl(
|
|
19
|
+
const { currentEnvironment, servicePortalName } = getConfig();
|
|
20
|
+
fetch(`${getMadCommonBaseUrl(currentEnvironment)}/ServiceMessage/${servicePortalName}`).then(
|
|
21
21
|
(res) => res.json().then((data) => {
|
|
22
22
|
if (!data.message)
|
|
23
23
|
return;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useEnvironment
|
|
3
|
+
} from "./chunk-7PHV3YNH.js";
|
|
4
|
+
|
|
5
|
+
// src/components/EnvironmentProvider.tsx
|
|
6
|
+
import { EnvironmentProvider as ProvideEnvironment } from "@equinor/mad-components";
|
|
7
|
+
import React from "react";
|
|
8
|
+
function EnvironmentProvider(props) {
|
|
9
|
+
const environment = useEnvironment();
|
|
10
|
+
return /* @__PURE__ */ React.createElement(ProvideEnvironment, { currentEnvironment: environment }, props.children);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
EnvironmentProvider
|
|
15
|
+
};
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
getShortDate
|
|
6
6
|
} from "./chunk-OCWASWDK.js";
|
|
7
|
-
import {
|
|
8
|
-
useScreenTitleFromDictionary
|
|
9
|
-
} from "./chunk-UAKBRWHM.js";
|
|
10
7
|
import {
|
|
11
8
|
useReleaseNotes
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2BXHQTFH.js";
|
|
10
|
+
import {
|
|
11
|
+
useScreenTitleFromDictionary
|
|
12
|
+
} from "./chunk-6ZEGA36S.js";
|
|
13
13
|
|
|
14
14
|
// src/components/screens/release-notes/ReleaseNotesScreen.tsx
|
|
15
15
|
import React from "react";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// src/utils/getRedirectUriFromAuthConfig.ts
|
|
2
2
|
import { Platform } from "react-native";
|
|
3
|
-
var getRedirectUriFromAuthConfig = (
|
|
4
|
-
const { redirectUriWeb, redirectUri } = authConfig;
|
|
3
|
+
var getRedirectUriFromAuthConfig = (clientId, redirectUri, redirectUriWeb) => {
|
|
5
4
|
if (Platform.OS === "web") {
|
|
6
5
|
if (!redirectUriWeb)
|
|
7
6
|
throw new Error("Looks like you started your application for web, but you have not registered a redirect URI for web. Please add a 'redirectUriWeb' to your mad config");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createNativeStackNavigator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C5H36AGQ.js";
|
|
4
4
|
import {
|
|
5
5
|
createMadCoreNavigator
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EPKAICSZ.js";
|
|
7
7
|
import {
|
|
8
8
|
setConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7PHV3YNH.js";
|
|
10
10
|
import {
|
|
11
11
|
__spreadProps,
|
|
12
12
|
__spreadValues
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
var createCoreStackNavigator = (config) => {
|
|
17
17
|
setConfig(config);
|
|
18
18
|
const Stack = createNativeStackNavigator();
|
|
19
|
-
const Navigator = createMadCoreNavigator(Stack
|
|
19
|
+
const Navigator = createMadCoreNavigator(Stack);
|
|
20
20
|
return __spreadProps(__spreadValues({}, Stack), { Navigator });
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EnvironmentProvider
|
|
3
|
+
} from "../chunk-MCVFE22N.js";
|
|
4
|
+
import "../chunk-7PHV3YNH.js";
|
|
5
|
+
import "../chunk-P636GRYJ.js";
|
|
6
|
+
import "../chunk-VJD2P6SF.js";
|
|
7
|
+
import "../chunk-2OMVVDBU.js";
|
|
8
|
+
import "../chunk-WEAGW6MQ.js";
|
|
9
|
+
export {
|
|
10
|
+
EnvironmentProvider
|
|
11
|
+
};
|
|
@@ -1,57 +1,58 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CoreStackParamListBase, MadConfig } from "../types";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { ParamListBase } from "@react-navigation/native";
|
|
4
|
+
export declare const createCoreStackNavigator: <T extends ParamListBase>(config: MadConfig) => {
|
|
5
|
+
Navigator: (props: Omit<Omit<import("@react-navigation/native").DefaultRouterOptions<string> & {
|
|
5
6
|
id?: string | undefined;
|
|
6
7
|
children: import("react").ReactNode;
|
|
7
8
|
screenListeners?: Partial<{
|
|
8
|
-
transitionStart: import("@react-navigation/
|
|
9
|
-
transitionEnd: import("@react-navigation/
|
|
10
|
-
focus: import("@react-navigation/
|
|
11
|
-
blur: import("@react-navigation/
|
|
12
|
-
state: import("@react-navigation/
|
|
13
|
-
beforeRemove: import("@react-navigation/
|
|
9
|
+
transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
|
|
10
|
+
transitionEnd: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionEnd">;
|
|
11
|
+
focus: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "focus">;
|
|
12
|
+
blur: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
|
|
13
|
+
state: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
|
|
14
|
+
beforeRemove: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
|
|
14
15
|
}> | ((props: {
|
|
15
|
-
route: import("@react-navigation/
|
|
16
|
+
route: import("@react-navigation/native").RouteProp<ParamListBase, string>;
|
|
16
17
|
navigation: any;
|
|
17
18
|
}) => Partial<{
|
|
18
|
-
transitionStart: import("@react-navigation/
|
|
19
|
-
transitionEnd: import("@react-navigation/
|
|
20
|
-
focus: import("@react-navigation/
|
|
21
|
-
blur: import("@react-navigation/
|
|
22
|
-
state: import("@react-navigation/
|
|
23
|
-
beforeRemove: import("@react-navigation/
|
|
19
|
+
transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
|
|
20
|
+
transitionEnd: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionEnd">;
|
|
21
|
+
focus: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "focus">;
|
|
22
|
+
blur: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
|
|
23
|
+
state: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
|
|
24
|
+
beforeRemove: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
|
|
24
25
|
}>) | undefined;
|
|
25
26
|
screenOptions?: import("@equinor/mad-navigation").MadNativeStackNavigationOptions | ((props: {
|
|
26
|
-
route: import("@react-navigation/
|
|
27
|
+
route: import("@react-navigation/native").RouteProp<ParamListBase, string>;
|
|
27
28
|
navigation: any;
|
|
28
29
|
}) => import("@equinor/mad-navigation").MadNativeStackNavigationOptions) | undefined;
|
|
29
|
-
} & import("@react-navigation/
|
|
30
|
+
} & import("@react-navigation/native").StackRouterOptions & import("@equinor/mad-navigation/dist/_internal/types").MadCustomFactoryProps, "id" | "children" | "initialRouteName" | "screenListeners" | "screenOptions"> & import("@react-navigation/native").DefaultRouterOptions<string> & {
|
|
30
31
|
id?: string | undefined;
|
|
31
32
|
children: import("react").ReactNode;
|
|
32
33
|
screenListeners?: Partial<{
|
|
33
|
-
transitionStart: import("@react-navigation/
|
|
34
|
-
transitionEnd: import("@react-navigation/
|
|
35
|
-
focus: import("@react-navigation/
|
|
36
|
-
blur: import("@react-navigation/
|
|
37
|
-
state: import("@react-navigation/
|
|
38
|
-
beforeRemove: import("@react-navigation/
|
|
34
|
+
transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
|
|
35
|
+
transitionEnd: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionEnd">;
|
|
36
|
+
focus: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "focus">;
|
|
37
|
+
blur: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
|
|
38
|
+
state: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
|
|
39
|
+
beforeRemove: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
|
|
39
40
|
}> | ((props: {
|
|
40
|
-
route: import("@react-navigation/
|
|
41
|
+
route: import("@react-navigation/native").RouteProp<ParamListBase, string>;
|
|
41
42
|
navigation: any;
|
|
42
43
|
}) => Partial<{
|
|
43
|
-
transitionStart: import("@react-navigation/
|
|
44
|
-
transitionEnd: import("@react-navigation/
|
|
45
|
-
focus: import("@react-navigation/
|
|
46
|
-
blur: import("@react-navigation/
|
|
47
|
-
state: import("@react-navigation/
|
|
48
|
-
beforeRemove: import("@react-navigation/
|
|
44
|
+
transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionStart">;
|
|
45
|
+
transitionEnd: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "transitionEnd">;
|
|
46
|
+
focus: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "focus">;
|
|
47
|
+
blur: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "blur">;
|
|
48
|
+
state: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "state">;
|
|
49
|
+
beforeRemove: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap, "beforeRemove">;
|
|
49
50
|
}>) | undefined;
|
|
50
51
|
screenOptions?: import("@equinor/mad-navigation").MadNativeStackNavigationOptions | ((props: {
|
|
51
|
-
route: import("@react-navigation/
|
|
52
|
+
route: import("@react-navigation/native").RouteProp<ParamListBase, string>;
|
|
52
53
|
navigation: any;
|
|
53
54
|
}) => import("@equinor/mad-navigation").MadNativeStackNavigationOptions) | undefined;
|
|
54
|
-
}, "initialRouteName">) => import("react").JSX.Element;
|
|
55
|
-
Group: import("react").ComponentType<import("@react-navigation/
|
|
56
|
-
Screen: <RouteName extends keyof CoreStackParamListBase>(_: import("@react-navigation/
|
|
55
|
+
}, "initialRouteName">) => import("react").JSX.Element | null;
|
|
56
|
+
Group: import("react").ComponentType<import("@react-navigation/native").RouteGroupConfig<CoreStackParamListBase & T, import("@equinor/mad-navigation").MadNativeStackNavigationOptions>>;
|
|
57
|
+
Screen: <RouteName extends keyof CoreStackParamListBase | keyof T>(_: import("@react-navigation/native").RouteConfig<CoreStackParamListBase & T, RouteName, import("@react-navigation/native").StackNavigationState<ParamListBase>, import("@equinor/mad-navigation").MadNativeStackNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap>) => null;
|
|
57
58
|
};
|
|
@@ -1,45 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreStackNavigator
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YAOO3R3L.js";
|
|
4
4
|
import "../chunk-2GCLIPZP.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-C5H36AGQ.js";
|
|
6
|
+
import "../chunk-LFCWKD5B.js";
|
|
7
|
+
import "../chunk-ILRFXZQ6.js";
|
|
8
|
+
import "../chunk-ZSUFR7LK.js";
|
|
8
9
|
import "../chunk-YWPELSTX.js";
|
|
9
10
|
import "../chunk-SHKOH7MA.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-FOAO6U65.js";
|
|
16
|
-
import "../chunk-UVQ3Z5PG.js";
|
|
11
|
+
import "../chunk-EPKAICSZ.js";
|
|
12
|
+
import "../chunk-EFVAFRZ4.js";
|
|
13
|
+
import "../chunk-GLFZI3WS.js";
|
|
14
|
+
import "../chunk-STRJ5XYK.js";
|
|
15
|
+
import "../chunk-F4CPVOUK.js";
|
|
17
16
|
import "../chunk-CIMA2GQQ.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-UVQ3Z5PG.js";
|
|
18
|
+
import "../chunk-GVBIOTF2.js";
|
|
19
|
+
import "../chunk-5IS2WJYY.js";
|
|
20
|
+
import "../chunk-CAOQCE6W.js";
|
|
21
|
+
import "../chunk-ATHPQPDV.js";
|
|
23
22
|
import "../chunk-5BVQKJQB.js";
|
|
23
|
+
import "../chunk-7IV7JAIC.js";
|
|
24
|
+
import "../chunk-KGULNU2L.js";
|
|
25
|
+
import "../chunk-F4WSVD6D.js";
|
|
24
26
|
import "../chunk-OCWASWDK.js";
|
|
25
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-WV6VNU2T.js";
|
|
28
|
+
import "../chunk-IUZOOXOV.js";
|
|
26
29
|
import "../chunk-AEGDSD6N.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-GUKC6UGZ.js";
|
|
29
|
-
import "../chunk-EQYL7INQ.js";
|
|
30
|
-
import "../chunk-UAKBRWHM.js";
|
|
31
|
-
import "../chunk-BIMOM43W.js";
|
|
32
|
-
import "../chunk-GSOAYETS.js";
|
|
33
|
-
import "../chunk-A3ND5QVK.js";
|
|
30
|
+
import "../chunk-2BXHQTFH.js";
|
|
34
31
|
import "../chunk-GHWLQBHQ.js";
|
|
35
32
|
import "../chunk-KBEPONRV.js";
|
|
36
33
|
import "../chunk-RFYZGBU4.js";
|
|
34
|
+
import "../chunk-GUKC6UGZ.js";
|
|
35
|
+
import "../chunk-EQYL7INQ.js";
|
|
36
|
+
import "../chunk-6ZEGA36S.js";
|
|
37
|
+
import "../chunk-BIMOM43W.js";
|
|
38
|
+
import "../chunk-RVKZULYD.js";
|
|
37
39
|
import "../chunk-CCVKLLIO.js";
|
|
38
40
|
import "../chunk-UZ6YMQV2.js";
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-GSOAYETS.js";
|
|
42
|
+
import "../chunk-MCVFE22N.js";
|
|
43
|
+
import "../chunk-7PHV3YNH.js";
|
|
42
44
|
import "../chunk-P636GRYJ.js";
|
|
45
|
+
import "../chunk-VJD2P6SF.js";
|
|
43
46
|
import "../chunk-2OMVVDBU.js";
|
|
44
47
|
import "../chunk-WEAGW6MQ.js";
|
|
45
48
|
export {
|
package/dist/components/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunk-5LTGZQUP.js";
|
|
2
2
|
import "../chunk-AK7PA4BE.js";
|
|
3
|
+
import "../chunk-5GBNULIT.js";
|
|
3
4
|
import {
|
|
4
5
|
SettingsScreen
|
|
5
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-5XZ4EIWK.js";
|
|
7
|
+
import "../chunk-4IS74K75.js";
|
|
6
8
|
import "../chunk-DWAJZVKH.js";
|
|
7
9
|
import "../chunk-DOHQX5XC.js";
|
|
8
|
-
import "../chunk-5GBNULIT.js";
|
|
9
|
-
import "../chunk-4IS74K75.js";
|
|
10
10
|
import "../chunk-7SJM4NDH.js";
|
|
11
11
|
import {
|
|
12
12
|
ErrorBoundary
|
|
@@ -16,49 +16,52 @@ import {
|
|
|
16
16
|
} from "../chunk-W3LMT7N4.js";
|
|
17
17
|
import {
|
|
18
18
|
createCoreStackNavigator
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-YAOO3R3L.js";
|
|
20
20
|
import "../chunk-2GCLIPZP.js";
|
|
21
21
|
import {
|
|
22
22
|
createBottomTabNavigator,
|
|
23
23
|
createNativeStackNavigator
|
|
24
|
-
} from "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
24
|
+
} from "../chunk-C5H36AGQ.js";
|
|
25
|
+
import "../chunk-LFCWKD5B.js";
|
|
26
|
+
import "../chunk-ILRFXZQ6.js";
|
|
27
|
+
import "../chunk-ZSUFR7LK.js";
|
|
27
28
|
import "../chunk-YWPELSTX.js";
|
|
28
29
|
import "../chunk-SHKOH7MA.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-FOAO6U65.js";
|
|
35
|
-
import "../chunk-UVQ3Z5PG.js";
|
|
30
|
+
import "../chunk-EPKAICSZ.js";
|
|
31
|
+
import "../chunk-EFVAFRZ4.js";
|
|
32
|
+
import "../chunk-GLFZI3WS.js";
|
|
33
|
+
import "../chunk-STRJ5XYK.js";
|
|
34
|
+
import "../chunk-F4CPVOUK.js";
|
|
36
35
|
import "../chunk-CIMA2GQQ.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-UVQ3Z5PG.js";
|
|
37
|
+
import "../chunk-GVBIOTF2.js";
|
|
38
|
+
import "../chunk-5IS2WJYY.js";
|
|
39
|
+
import "../chunk-CAOQCE6W.js";
|
|
40
|
+
import "../chunk-ATHPQPDV.js";
|
|
42
41
|
import "../chunk-5BVQKJQB.js";
|
|
42
|
+
import "../chunk-7IV7JAIC.js";
|
|
43
|
+
import "../chunk-KGULNU2L.js";
|
|
44
|
+
import "../chunk-F4WSVD6D.js";
|
|
43
45
|
import "../chunk-OCWASWDK.js";
|
|
44
|
-
import "../chunk-
|
|
46
|
+
import "../chunk-WV6VNU2T.js";
|
|
47
|
+
import "../chunk-IUZOOXOV.js";
|
|
45
48
|
import "../chunk-AEGDSD6N.js";
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-GUKC6UGZ.js";
|
|
48
|
-
import "../chunk-EQYL7INQ.js";
|
|
49
|
-
import "../chunk-UAKBRWHM.js";
|
|
50
|
-
import "../chunk-BIMOM43W.js";
|
|
51
|
-
import "../chunk-GSOAYETS.js";
|
|
52
|
-
import "../chunk-A3ND5QVK.js";
|
|
49
|
+
import "../chunk-2BXHQTFH.js";
|
|
53
50
|
import "../chunk-GHWLQBHQ.js";
|
|
54
51
|
import "../chunk-KBEPONRV.js";
|
|
55
52
|
import "../chunk-RFYZGBU4.js";
|
|
53
|
+
import "../chunk-GUKC6UGZ.js";
|
|
54
|
+
import "../chunk-EQYL7INQ.js";
|
|
55
|
+
import "../chunk-6ZEGA36S.js";
|
|
56
|
+
import "../chunk-BIMOM43W.js";
|
|
57
|
+
import "../chunk-RVKZULYD.js";
|
|
56
58
|
import "../chunk-CCVKLLIO.js";
|
|
57
59
|
import "../chunk-UZ6YMQV2.js";
|
|
58
|
-
import "../chunk-
|
|
59
|
-
import "../chunk-
|
|
60
|
-
import "../chunk-
|
|
60
|
+
import "../chunk-GSOAYETS.js";
|
|
61
|
+
import "../chunk-MCVFE22N.js";
|
|
62
|
+
import "../chunk-7PHV3YNH.js";
|
|
61
63
|
import "../chunk-P636GRYJ.js";
|
|
64
|
+
import "../chunk-VJD2P6SF.js";
|
|
62
65
|
import "../chunk-2OMVVDBU.js";
|
|
63
66
|
import "../chunk-WEAGW6MQ.js";
|
|
64
67
|
export {
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MadCoreSubHeader
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-LFCWKD5B.js";
|
|
4
|
+
import "../../chunk-ILRFXZQ6.js";
|
|
5
|
+
import "../../chunk-ZSUFR7LK.js";
|
|
5
6
|
import "../../chunk-YWPELSTX.js";
|
|
6
7
|
import "../../chunk-SHKOH7MA.js";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-T6J6HWJK.js";
|
|
8
|
+
import "../../chunk-7IV7JAIC.js";
|
|
9
|
+
import "../../chunk-KGULNU2L.js";
|
|
10
10
|
import "../../chunk-RFYZGBU4.js";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-ZSTTHIEF.js";
|
|
13
|
-
import "../../chunk-DCUF7ZWX.js";
|
|
11
|
+
import "../../chunk-7PHV3YNH.js";
|
|
14
12
|
import "../../chunk-P636GRYJ.js";
|
|
13
|
+
import "../../chunk-VJD2P6SF.js";
|
|
15
14
|
import "../../chunk-2OMVVDBU.js";
|
|
16
15
|
import "../../chunk-WEAGW6MQ.js";
|
|
17
16
|
export {
|
|
@@ -2,19 +2,18 @@ import "../../chunk-2GCLIPZP.js";
|
|
|
2
2
|
import {
|
|
3
3
|
createBottomTabNavigator,
|
|
4
4
|
createNativeStackNavigator
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-C5H36AGQ.js";
|
|
6
|
+
import "../../chunk-LFCWKD5B.js";
|
|
7
|
+
import "../../chunk-ILRFXZQ6.js";
|
|
8
|
+
import "../../chunk-ZSUFR7LK.js";
|
|
8
9
|
import "../../chunk-YWPELSTX.js";
|
|
9
10
|
import "../../chunk-SHKOH7MA.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-T6J6HWJK.js";
|
|
11
|
+
import "../../chunk-7IV7JAIC.js";
|
|
12
|
+
import "../../chunk-KGULNU2L.js";
|
|
13
13
|
import "../../chunk-RFYZGBU4.js";
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-ZSTTHIEF.js";
|
|
16
|
-
import "../../chunk-DCUF7ZWX.js";
|
|
14
|
+
import "../../chunk-7PHV3YNH.js";
|
|
17
15
|
import "../../chunk-P636GRYJ.js";
|
|
16
|
+
import "../../chunk-VJD2P6SF.js";
|
|
18
17
|
import "../../chunk-2OMVVDBU.js";
|
|
19
18
|
import "../../chunk-WEAGW6MQ.js";
|
|
20
19
|
export {
|