@equinor/mad-core 0.3.3 → 0.3.5

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,25 @@
1
1
  # @equinor/mad-core
2
2
 
3
+ ## 0.3.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 37c7524: `What's new Screen`: ok button should now be available regardless of release note
8
+ length
9
+ - Updated dependencies [1fe9f1b]
10
+ - @equinor/mad-components@0.9.0
11
+ - @equinor/mad-auth@0.1.5
12
+
13
+ ## 0.3.4
14
+
15
+ ### Patch Changes
16
+
17
+ - 0d6c310: update color scheme for feedback and added deprecation
18
+ - Updated dependencies [a5607df]
19
+ - Updated dependencies [0d6c310]
20
+ - @equinor/mad-components@0.8.6
21
+ - @equinor/mad-auth@0.1.4
22
+
3
23
  ## 0.3.3
4
24
 
5
25
  ### Patch Changes
package/README.md CHANGED
@@ -1,3 +1,449 @@
1
- # MAD CORE
1
+ _`@equinor/mad-core` is a package made for the mad team in Equinor. It is opinionated and will not
2
+ work well for other teams. If you work in Equinor and would like to use this package, please contact
3
+ us!_
2
4
 
3
- This package is not yet ready for use. It is a work in progress
5
+ ### Introduction
6
+
7
+ `@equinor/mad-core` is designed to handle the general requirements for your react native app, so
8
+ that you can focus on your app's core functionality. It provides:
9
+
10
+ - Authentication system, including a login screen and easy authentication for your needs
11
+ - Release notes. No need to worry about displaying release-notes. `mad-core` handles everything
12
+ for you. If the app version is greater than the last time the user used it, a "What's
13
+ New"-screen will be displayed automatically.
14
+ - Language support. If you set your app to support multiple languages, the app will prompt the
15
+ user to select language. Language will also be provided as a setting in the Settings screen if
16
+ multiple languages are supported.
17
+ - Settings Screen. The Settings Screen will provide a lot of your common needs, depending on your
18
+ config. Your app-specific needs should also be easy to add.
19
+ - Application Insights tracking. We provide methods for tracking events in your app. We have also
20
+ added tracking to some of our screens, a `NavigationContainer` you can use to automatically
21
+ track navigation, and a `ErrorBoundary` you can use for user-friendly crash handling, as well as
22
+ crash tracking.
23
+ - Service Message. Any planned maintenance? Just create a service message in the service portal,
24
+ and the message will be displayed in the app automatically.
25
+ - Environment banner. Don't know which environment you're in? Don't worry, we will display the
26
+ information to you
27
+ - About screen. Detailed information about the app. App version, environment endpoints, etc. Wow!
28
+ Amazing!
29
+ - Create incident screen. For creating a new incident in service-now. Available in a
30
+ settings-screen near you!
31
+ - Probably more, but it's hard to keep track of everything. Do you know of anything that should be
32
+ added here? Create an issue!
33
+
34
+ ### Implementation
35
+
36
+ _note: this package is new. Expect bugs. Expect lacking documentation. If you have any issues,
37
+ PLEASE create an issue. We want to make this great, but it's impossible to make it great without
38
+ your input_
39
+
40
+ #### Step 1: Installation
41
+
42
+ Install `react-native-msal` from [this repository](https://github.com/equinor/react-native-msal/).
43
+ This is a fork maintained by the mad-team. Always install the newest commit. To install it, add this
44
+ to your `package.json`:
45
+
46
+ ```json
47
+ "dependencies": {
48
+ "react-native-msal": "github:equinor/react-native-msal#NEWEST_COMMIT_HASH_HERE",
49
+ }
50
+ ```
51
+
52
+ And then run `npm install`.
53
+
54
+ Next, install `@equinor/mad-core` and it's peer dependencies
55
+ `@react-native-async-storage/async-storage`, `@react-navigation/native`, and
56
+ `react-native-gesture-handler`. _note: Any issues with installation? Do you suspect some
57
+ peer-dependencies are missing? Create an issue!_
58
+
59
+ #### Step 2: Create a config
60
+
61
+ Create a `mad.config.ts` file (name of the file can be anything, but we have used this naming
62
+ convention when developing this package). Use the `MadConfig` type from `@equinor/mad-core` for type
63
+ safety:
64
+
65
+ ```ts
66
+ import { MadConfig } from "@equinor/mad-core";
67
+ import Logo from "./assets/images/icon.png";
68
+ import { ImageSourcePropType } from "react-native";
69
+ import { getBuildNumber, getAppSpecificEndpoints } from "./settings";
70
+
71
+ export const config: MadConfig = {
72
+ appVersion: "1.0.0",
73
+ servicePortalName: "Chronicles",
74
+ currentEnvironment: "prod",
75
+ language: {
76
+ supportedLanguages: [
77
+ { code: "en", name: "English" },
78
+ { code: "nb", name: "Norwegian" },
79
+ { code: "pt", name: "Portuguese" },
80
+ ],
81
+ skipOnboarding: false,
82
+ },
83
+ authentication: {
84
+ redirectUri: "msauth.com.equinor.mad.chronicles://auth",
85
+ redirectUriWeb: "http://localhost:8081",
86
+ clientId: "49222fe1-4e0a-4310-9e81-1a2c3eb9b2ed",
87
+ scopes: ["0a429637-3fe1-4452-bd95-c87923ba340b/user_impersonation"],
88
+ },
89
+ login: {
90
+ title: "Chronicles",
91
+ logo: Logo as ImageSourcePropType,
92
+ },
93
+ applicationInsights: {
94
+ instrumentationKey: "f1859360-4aa2-425f-b494-2d7320de6832",
95
+ longTermLog: { instrumentationKey: "e91835aa-bcc2-41dd-a79d-352f0df23e1b" },
96
+ },
97
+ serviceNow: "SERVICE_NOW_CONFIGURATION_ITEM",
98
+ about: {
99
+ endpoints: getAppSpecificEndpoints(),
100
+ buildNumber: getBuildNumber(),
101
+ },
102
+ };
103
+ ```
104
+
105
+ You can also set environment specific values for each field. The config supports `dev`, `test`,
106
+ `qa`, `prod`. The correct values will be picked based on `currentEnvironment`. Example from
107
+ `Chronicles`:
108
+
109
+ ```ts
110
+ import { MadConfig } from "@equinor/mad-core";
111
+ import Logo from "./assets/images/icon.png";
112
+ import { ImageSourcePropType } from "react-native";
113
+ import { getBuildNumber } from "./settings";
114
+
115
+ export const config: MadConfig = {
116
+ appVersion: "1.0.0",
117
+ servicePortalName: "Chronicles",
118
+ currentEnvironment: "prod",
119
+ serviceNow: "MAD",
120
+ language: {
121
+ supportedLanguages: [
122
+ { code: "en", name: "English" },
123
+ { code: "nb", name: "Norwegian" },
124
+ { code: "pt", name: "Portuguese" },
125
+ ],
126
+ skipOnboarding: false,
127
+ },
128
+ authentication: {
129
+ prod: {
130
+ redirectUri: "msauth.com.equinor.mad.chronicles://auth",
131
+ redirectUriWeb: "http://localhost:8081",
132
+ clientId: "49222fe1-4e0a-4310-9e81-1a2c3eb9b2ed",
133
+ scopes: ["0a429637-3fe1-4452-bd95-c87923ba340b/user_impersonation"],
134
+ },
135
+ test: {
136
+ redirectUri: "msauth.com.equinor.mad.chronicles://auth",
137
+ redirectUriWeb: "http://localhost:8081",
138
+ clientId: "49222fe1-4e0a-4310-9e81-1a2c3eb9b2ed",
139
+ scopes: ["830a7388-cd89-4e25-a631-bd615bf225a4/user_impersonation"],
140
+ },
141
+ },
142
+ login: {
143
+ title: "Chronicles",
144
+ logo: Logo as ImageSourcePropType,
145
+ },
146
+ applicationInsights: {
147
+ instrumentationKey: "f1859360-4aa2-425f-b494-2d7320de6832",
148
+ longTermLog: { instrumentationKey: "e91835aa-bcc2-41dd-a79d-352f0df23e1b" },
149
+ },
150
+ about: {
151
+ endpoints: [],
152
+ buildNumber: getBuildNumber(),
153
+ },
154
+ };
155
+ ```
156
+
157
+ | key | required? | explanation |
158
+ | --------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
159
+ | `appVersion` | true | Your app's current version. Used to figure out whether the app should display what's new, and which release notes version to fetch |
160
+ | `servicePortalName` | true | The name of the app in the service portal. Used to figure out which release notes and service messages to fetch |
161
+ | `currentEnvironment` | true | The environment of the app. Used to display environment banner, and to select the correct service message and release notes endpoint. Also used to pick correct values from config |
162
+ | `language` | true | language config. See [language](#language-config) |
163
+ | `authentication` | true | authentication config. See [authentication](#authentication-config) |
164
+ | `login` | true | login screen config. See [login](#login-config) |
165
+ | `applicationInsights` | true | application insights config. See [application insights](#application-insights-config) |
166
+ | `serviceNow` | false | Configuration item in Service Now. Used for create incident screen. If not provided, we won't add create incident screen to the stack |
167
+ | `about` | false | about screen config. If not provided, we won't add about screen to the stack. See [about](#about-config) |
168
+
169
+ ###### Language config
170
+
171
+ | key | required? | explanation |
172
+ | --------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
173
+ | `supportedLanguages` | true | an array of supported languages. The language object should contain `code` and `name`. `mad-core` supports Norwegian (`no`, `nb`), english (`en`) and Portuguese (`pt`). If you use any other languages, the common screens will be in english. If you need more language support, create an issue! |
174
+ | `defaultLanguageCode` | false | The default language of the app. This is the language the app will use if the user has not selected a language. If default language is not provided, the app will use the first language in the `supportedLanguages` array |
175
+ | `skipOnboarding` | false | Set this to true if you don't want to force the user to set their preferred language the first time they start the app |
176
+
177
+ ###### Authentication config
178
+
179
+ | key | required? | explanation |
180
+ | ---------------- | --------- | ------------------------------------------------------------------------------------- |
181
+ | `clientId` | true | The application's client id |
182
+ | `redirectUri` | true | The application's redirect uri |
183
+ | `redirectUriWeb` | false | The application's redirect uri for web. This is required if your app has web support. |
184
+ | `scopes` | true | an array of scopes to use when logging in |
185
+
186
+ ###### Login config
187
+
188
+ | key | required? | explanation |
189
+ | ------- | --------- | -------------------------------------------------------------------------------- |
190
+ | `title` | true | The title of the application. Will be displayed on the login screen |
191
+ | `logo` | true | The logo of the application. Will be displayed in the middle of the login screen |
192
+
193
+ ###### Application Insights config
194
+
195
+ | key | required? | explanation |
196
+ | ------------------------------------------ | --------- | ------------------------------------------------------------------------------------------------- |
197
+ | `instrumentationKey` or `connectionString` | true | used to connect to the right resource in Azure |
198
+ | `longTermLog` | false | used to define long term log config. It should contain `instrumentationKey` or `connectionString` |
199
+
200
+ ###### About config
201
+
202
+ | key | required? | explanation |
203
+ | ------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------- |
204
+ | `endpoints` | true | The endpoints used by the application. The endpoints used by `mad-core` is added automatically. Will be displayed at the about-screen |
205
+ | `buildNumber` | true | The build number of the application. Will be displayed at the about-screen |
206
+
207
+ #### Step 3: use `createCoreStackNavigator`
208
+
209
+ Next step is replacing your topmost `createStackNavigator`/`createNativeStackNavigator` with
210
+ `createCoreStackNavigator` from `@equinor/mad-core`. It takes one argument: The config you created
211
+ in step 2. You use it the same way you would a normal `Stack`.
212
+
213
+ ```tsx
214
+ import { createCoreStackNavigator } from "@equinor/mad-core";
215
+ import { config } from "path/to/mad.config.ts";
216
+ import { RootStackParamList } from "path/to/paramList.ts";
217
+
218
+ const RootStack = createCoreStackNavigator<RootStackParamList>(config);
219
+ ```
220
+
221
+ If you have leftover screens from `mad-expo-core` in the stack, they should be removed.
222
+ `createCoreStackNavigator` will add similar screens for you behind the scenes.
223
+
224
+ **Important:** Your main screen's route should be called `"Root"`. This is the screen we will
225
+ navigate to once login/whatsnew/onboarding is finished. If this is a limitation in your app, please
226
+ create an issue!
227
+
228
+ `SettingsScreen` also has to be added manually. This is because you most likely have app-specific
229
+ settings you want to hook up to the settings screen.
230
+
231
+ If you don't have any app-specific settings, you can just add `SettingsScreen` from
232
+ `@equinor/mad-core` with name `"Settings"`. If you do have app-specific settings you want to add, we
233
+ suggest creating a wrapper component that passes in the props you need to `SettingsScreen`.
234
+
235
+ Example stack:
236
+
237
+ ```tsx
238
+ const CoreStack = createCoreStackNavigator<RootStackParamList>(config);
239
+ function RootNavigator() {
240
+ return (
241
+ <CoreStack.Navigator>
242
+ <CoreStack.Screen
243
+ name="Root"
244
+ component={BottomTabNavigator}
245
+ options={{ headerShown: false }}
246
+ />
247
+ <CoreStack.Screen
248
+ name="NotFound"
249
+ component={NotFoundScreen}
250
+ options={{ title: "Oops!" }}
251
+ />
252
+ <CoreStack.Screen name="Settings" component={SampleSettingsScreen} />
253
+ </CoreStack.Navigator>
254
+ );
255
+ }
256
+ ```
257
+
258
+ SampleSettingsScreen:
259
+
260
+ ```tsx
261
+ import React from "react";
262
+ import { SettingsScreen, SettingsScreenConfiguration } from "@equinor/mad-core";
263
+
264
+ export const SampleSettingsScreen = () => {
265
+ const appSpecificSettingsConfig: SettingsScreenConfiguration = [
266
+ {
267
+ items: [
268
+ {
269
+ name: "navigation",
270
+ title: "navigation",
271
+ onPress: () => undefined,
272
+ iconName: "abacus",
273
+ },
274
+ {
275
+ name: "button",
276
+ title: "Button",
277
+ onPress: () => undefined,
278
+ iconName: "abacus",
279
+ color: "primary",
280
+ },
281
+ {
282
+ name: "switch",
283
+ title: "Test",
284
+ onChange: () => undefined,
285
+ isActive: true,
286
+ iconName: "abacus",
287
+ },
288
+ ],
289
+ },
290
+ ];
291
+
292
+ return <SettingsScreen config={appSpecificSettingsConfig} />;
293
+ };
294
+ ```
295
+
296
+ #### Step 4: replace `createStackNavigator`/`createNativeStackNavigator`/`createBottomTabsNavigator`/`NavigationContainer` imports
297
+
298
+ In order for us to display environment banners and service messages on all screens, you need to
299
+ import `createNativeStackNavigator`/`createBottomTabsNavigator` from `@equinor/mad-core` instead of
300
+ `react-navigation`. Currently we don't support other navigators. Do you need support for other
301
+ navigators? Create an issue!
302
+
303
+ By default environment banners and service messages should display if the screen header is
304
+ displayed. If you need to override this behaviour, you can use the `customSubHeaderShown` option.
305
+ For more information on using `customSubHeaderShown`, refer to `@equinor/mad-navigation`'s
306
+ documentation.
307
+
308
+ Using `@equinor/mad-core`'s `NavigationContainer` is optional, but it adds application insights
309
+ navigation tracking for you automatically, which is a nice feature to have!
310
+
311
+ ```tsx
312
+ import {
313
+ createBottomTabNavigator,
314
+ createNativeStackNavigator,
315
+ createCoreStackNavigator,
316
+ NavigationContainer,
317
+ } from "@equinor/mad-core";
318
+ ```
319
+
320
+ #### Step 5: Implement a way to access the settings screen
321
+
322
+ How the user navigates to settings, is up to the app itself. One common approach is to add a button
323
+ in your main screen's `headerRight` position.
324
+
325
+ ```tsx
326
+ import React from "react";
327
+ import { Button } from "@equinor/mad-components";
328
+ import { useCoreStackNavigation } from "@equinor/mad-core";
329
+ import { View } from "react-native";
330
+
331
+ export type GoToSettingsButtonProps = { marginRight?: number };
332
+
333
+ export function GoToSettingsButton({ marginRight }: GoToSettingsButtonProps) {
334
+ const navigation = useCoreStackNavigation();
335
+ return (
336
+ <View style={{ marginRight }}>
337
+ <Button.Icon
338
+ name="cog-outline"
339
+ variant="ghost"
340
+ onPress={() => navigation.navigate("Settings")}
341
+ />
342
+ </View>
343
+ );
344
+ }
345
+ ```
346
+
347
+ Results:
348
+
349
+ <p align="center">
350
+ <img src="../../assets/settings-button-example.png">
351
+ </p>
352
+ <br />
353
+
354
+ #### Step 6 (optional): Add `ErrorBoundary`
355
+
356
+ `@equinor/mad-core` provides an `ErrorBoundary` component that automatically logs crashes to
357
+ Application Insights. It gives the user a more user-friendly crash behaviour, and gives you
358
+ information about why the app crashes.
359
+
360
+ _note: The error boundary might not catch native code related crashes. It should almost always catch
361
+ javascript-related crashes, though._
362
+
363
+ `ErrorBoundary` should be as far up your stack as possible, in `App.tsx`:
364
+
365
+ ```tsx
366
+ export default function App() {
367
+ const isLoadingComplete = useCachedResources();
368
+ const [hasLoadedEds] = useEDS();
369
+ const colorScheme = useColorScheme();
370
+
371
+ if (!isLoadingComplete || !hasLoadedEds) {
372
+ return null;
373
+ }
374
+ return (
375
+ <ErrorBoundary>
376
+ <QueryClientProvider client={queryClient}>
377
+ <SpeakUpSessionProvider>
378
+ <EDSProvider colorScheme="light" density="tablet">
379
+ <SafeAreaProvider>
380
+ <Navigation colorScheme={colorScheme} />
381
+ <StatusBar style="dark" />
382
+ </SafeAreaProvider>
383
+ </EDSProvider>
384
+ </SpeakUpSessionProvider>
385
+ </QueryClientProvider>
386
+ </ErrorBoundary>
387
+ );
388
+ }
389
+ ```
390
+
391
+ #### Step 7: implement `useLanguage`
392
+
393
+ _note: If your app only supports one language, you can skip this step_
394
+
395
+ If you have language related state in your app, we recommend removing it, and use `useLanguage` from
396
+ `@equinor/mad-core` instead.
397
+
398
+ ```tsx
399
+ const { language } = useLanguage();
400
+ ```
401
+
402
+ This hook will give you information about which language the app is currently using.
403
+
404
+ One way to implement this, is to create a `useDictionary` hook, to select which json file to read
405
+ static text from.
406
+
407
+ ```tsx
408
+ import { useLanguage } from "@equinor/mad-core";
409
+ import * as no from "../resources/language/no.json";
410
+ import * as en from "../resources/language/en.json";
411
+
412
+ export const useDictionary = () => {
413
+ const { language } = useLanguage();
414
+ switch (language.code) {
415
+ case "no":
416
+ return no;
417
+ default:
418
+ return en;
419
+ }
420
+ };
421
+ ```
422
+
423
+ ```tsx
424
+ const Example = () => {
425
+ const dictionary = useDictionary();
426
+ return <Typography>{dictionary.example}</Typography>;
427
+ };
428
+ ```
429
+
430
+ While `@equinor/mad-core` should handle language selection for you, you can always add code to
431
+ select language by using `setSelectedLanguage` from `@equinor/mad-core`. You also have access to
432
+ `getLanguage` and `getIsLanguageSelected`, if you need access to those methods in contexts where the
433
+ `useLanguage` hook cannot be used.
434
+
435
+ #### Step 8: Implement demo mode
436
+
437
+ Demo mode is handled for you in `@equinor/mad-core`. You should delete your old demo state, and use
438
+ `getIsDemoModeEnabled` or `useDemoMode` from `@equinor/mad-core` instead. `@equinor/mad-core` should
439
+ handle this state for you. However, if you need access to setting the demo mode state, you can use
440
+ `enableDemoMode` and `disableDemoMode`.
441
+
442
+ #### Step 9: replace imports from `mad-expo-core`
443
+
444
+ The final step is to replace imports from `mad-expo-core`, and import them from `@equinor/mad-core`
445
+ instead. If you want to replace components, you should look for equivalent components in
446
+ `@equinor/mad-components`. Otherwise, you should be able to find `authenticateSilently`, and
447
+ application insights related items like `track`, `metricStatus`, `metricKeys`,
448
+ `addTelemetryInitializer`, etc in `@equinor/mad-core`. If anything is missing, and you think it
449
+ should be there, create an issue!
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-C5H36AGQ.js";
4
4
  import {
5
5
  createMadCoreNavigator
6
- } from "./chunk-EPKAICSZ.js";
6
+ } from "./chunk-MF3E3QK6.js";
7
7
  import {
8
8
  setConfig
9
9
  } from "./chunk-7PHV3YNH.js";
@@ -87,13 +87,12 @@ var WhatsNewScreen = () => {
87
87
  };
88
88
  var whatsNewStyles = EDSStyleSheet.create((theme) => ({
89
89
  spinnerContainer: {
90
- display: "flex",
91
90
  height: "100%",
92
91
  justifyContent: "center",
93
92
  alignItems: "center"
94
93
  },
95
94
  container: {
96
- display: "flex",
95
+ flex: 1,
97
96
  paddingTop: theme.geometry.dimension.cell.minHeight,
98
97
  justifyContent: "space-between"
99
98
  },
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk-STRJ5XYK.js";
7
7
  import {
8
8
  WhatsNewScreen
9
- } from "./chunk-F4CPVOUK.js";
9
+ } from "./chunk-H4EDM663.js";
10
10
  import {
11
11
  CreateIncidentScreen
12
- } from "./chunk-GVBIOTF2.js";
12
+ } from "./chunk-Z2N6DISW.js";
13
13
  import {
14
14
  LoginScreen
15
15
  } from "./chunk-ATHPQPDV.js";
@@ -132,10 +132,10 @@ var createIncidentStyles = EDSStyleSheet.create((theme) => ({
132
132
  borderRadius: 4
133
133
  },
134
134
  popupDanger: {
135
- borderColor: theme.colors.interactive.danger
135
+ borderColor: theme.colors.feedback.danger
136
136
  },
137
137
  popupSuccess: {
138
- borderColor: theme.colors.interactive.success
138
+ borderColor: theme.colors.feedback.success
139
139
  }
140
140
  }));
141
141
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreStackNavigator
3
- } from "../chunk-YAOO3R3L.js";
3
+ } from "../chunk-4CZK2IEY.js";
4
4
  import "../chunk-2GCLIPZP.js";
5
5
  import "../chunk-C5H36AGQ.js";
6
6
  import "../chunk-LFCWKD5B.js";
@@ -8,14 +8,14 @@ import "../chunk-ILRFXZQ6.js";
8
8
  import "../chunk-ZSUFR7LK.js";
9
9
  import "../chunk-YWPELSTX.js";
10
10
  import "../chunk-SHKOH7MA.js";
11
- import "../chunk-EPKAICSZ.js";
11
+ import "../chunk-MF3E3QK6.js";
12
12
  import "../chunk-EFVAFRZ4.js";
13
13
  import "../chunk-GLFZI3WS.js";
14
14
  import "../chunk-STRJ5XYK.js";
15
- import "../chunk-F4CPVOUK.js";
15
+ import "../chunk-H4EDM663.js";
16
16
  import "../chunk-CIMA2GQQ.js";
17
17
  import "../chunk-UVQ3Z5PG.js";
18
- import "../chunk-GVBIOTF2.js";
18
+ import "../chunk-Z2N6DISW.js";
19
19
  import "../chunk-5IS2WJYY.js";
20
20
  import "../chunk-CAOQCE6W.js";
21
21
  import "../chunk-ATHPQPDV.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "../chunk-W3LMT7N4.js";
17
17
  import {
18
18
  createCoreStackNavigator
19
- } from "../chunk-YAOO3R3L.js";
19
+ } from "../chunk-4CZK2IEY.js";
20
20
  import "../chunk-2GCLIPZP.js";
21
21
  import {
22
22
  createBottomTabNavigator,
@@ -27,14 +27,14 @@ import "../chunk-ILRFXZQ6.js";
27
27
  import "../chunk-ZSUFR7LK.js";
28
28
  import "../chunk-YWPELSTX.js";
29
29
  import "../chunk-SHKOH7MA.js";
30
- import "../chunk-EPKAICSZ.js";
30
+ import "../chunk-MF3E3QK6.js";
31
31
  import "../chunk-EFVAFRZ4.js";
32
32
  import "../chunk-GLFZI3WS.js";
33
33
  import "../chunk-STRJ5XYK.js";
34
- import "../chunk-F4CPVOUK.js";
34
+ import "../chunk-H4EDM663.js";
35
35
  import "../chunk-CIMA2GQQ.js";
36
36
  import "../chunk-UVQ3Z5PG.js";
37
- import "../chunk-GVBIOTF2.js";
37
+ import "../chunk-Z2N6DISW.js";
38
38
  import "../chunk-5IS2WJYY.js";
39
39
  import "../chunk-CAOQCE6W.js";
40
40
  import "../chunk-ATHPQPDV.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CreateIncidentScreen
3
- } from "../../../chunk-GVBIOTF2.js";
3
+ } from "../../../chunk-Z2N6DISW.js";
4
4
  import "../../../chunk-5IS2WJYY.js";
5
5
  import "../../../chunk-CAOQCE6W.js";
6
6
  import "../../../chunk-RFYZGBU4.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WhatsNewScreen
3
- } from "../../../chunk-F4CPVOUK.js";
3
+ } from "../../../chunk-H4EDM663.js";
4
4
  import "../../../chunk-CIMA2GQQ.js";
5
5
  import "../../../chunk-UVQ3Z5PG.js";
6
6
  import "../../../chunk-5BVQKJQB.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-YAOO3R3L.js";
20
+ } from "./chunk-4CZK2IEY.js";
21
21
  import "./chunk-2GCLIPZP.js";
22
22
  import {
23
23
  createBottomTabNavigator,
@@ -28,14 +28,14 @@ import "./chunk-ILRFXZQ6.js";
28
28
  import "./chunk-ZSUFR7LK.js";
29
29
  import "./chunk-YWPELSTX.js";
30
30
  import "./chunk-SHKOH7MA.js";
31
- import "./chunk-EPKAICSZ.js";
31
+ import "./chunk-MF3E3QK6.js";
32
32
  import "./chunk-EFVAFRZ4.js";
33
33
  import "./chunk-GLFZI3WS.js";
34
34
  import "./chunk-STRJ5XYK.js";
35
- import "./chunk-F4CPVOUK.js";
35
+ import "./chunk-H4EDM663.js";
36
36
  import "./chunk-CIMA2GQQ.js";
37
37
  import "./chunk-UVQ3Z5PG.js";
38
- import "./chunk-GVBIOTF2.js";
38
+ import "./chunk-Z2N6DISW.js";
39
39
  import "./chunk-5IS2WJYY.js";
40
40
  import "./chunk-CAOQCE6W.js";
41
41
  import "./chunk-ATHPQPDV.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createMadCoreNavigator
3
- } from "../chunk-EPKAICSZ.js";
3
+ } from "../chunk-MF3E3QK6.js";
4
4
  import "../chunk-EFVAFRZ4.js";
5
5
  import "../chunk-GLFZI3WS.js";
6
6
  import "../chunk-STRJ5XYK.js";
7
- import "../chunk-F4CPVOUK.js";
7
+ import "../chunk-H4EDM663.js";
8
8
  import "../chunk-CIMA2GQQ.js";
9
9
  import "../chunk-UVQ3Z5PG.js";
10
- import "../chunk-GVBIOTF2.js";
10
+ import "../chunk-Z2N6DISW.js";
11
11
  import "../chunk-5IS2WJYY.js";
12
12
  import "../chunk-CAOQCE6W.js";
13
13
  import "../chunk-ATHPQPDV.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/mad-core",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Core library for the Mobile App Delivery team",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -35,8 +35,8 @@
35
35
  "react-native-render-html": "6.3.4",
36
36
  "showdown": "2.1.0",
37
37
  "zustand": "^4.4.1",
38
- "@equinor/mad-auth": "0.1.3",
39
- "@equinor/mad-components": "0.8.5",
38
+ "@equinor/mad-auth": "0.1.5",
39
+ "@equinor/mad-components": "0.9.0",
40
40
  "@equinor/mad-insights": "0.1.1",
41
41
  "@equinor/mad-navigation": "0.2.1"
42
42
  },