@equinor/mad-core 0.0.4 → 0.2.0

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.
Files changed (117) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/chunk-3XUVY5MJ.js +16 -0
  3. package/dist/chunk-6GFARWDK.js +30 -0
  4. package/dist/chunk-AEGDSD6N.js +10 -0
  5. package/dist/chunk-AFYA4V5E.js +23 -0
  6. package/dist/{chunk-PEFOX6JA.js → chunk-AM5E5CYS.js} +7 -19
  7. package/dist/chunk-BIMOM43W.js +9 -0
  8. package/dist/chunk-BZZTCMAD.js +23 -0
  9. package/dist/{chunk-KXAIAYE4.js → chunk-CMKIUYX7.js} +17 -11
  10. package/dist/chunk-DCUF7ZWX.js +15 -0
  11. package/dist/chunk-DL54DMGO.js +19 -0
  12. package/dist/{chunk-E36MLVBD.js → chunk-DWAJZVKH.js} +1 -1
  13. package/dist/{chunk-5QALP2TZ.js → chunk-FCPT6WB6.js} +31 -17
  14. package/dist/{chunk-FQWPBBPB.js → chunk-GSC3O7TW.js} +1 -1
  15. package/dist/chunk-HGT5ZUYL.js +25 -0
  16. package/dist/{chunk-TLJLKQRN.js → chunk-LNJRCADN.js} +42 -41
  17. package/dist/{chunk-3LDWV3SJ.js → chunk-P636GRYJ.js} +18 -18
  18. package/dist/chunk-PBCPR4ZO.js +8 -0
  19. package/dist/chunk-QDRLODML.js +61 -0
  20. package/dist/chunk-RJEUW53E.js +50 -0
  21. package/dist/chunk-SQXXB44S.js +43 -0
  22. package/dist/chunk-UJAEFWFH.js +44 -0
  23. package/dist/chunk-UOMVB65Y.js +53 -0
  24. package/dist/{chunk-FIFUL4JE.js → chunk-V4QL2TIA.js} +20 -4
  25. package/dist/{chunk-FUGJZRIR.js → chunk-VXUERD3Z.js} +5 -5
  26. package/dist/{chunk-HOPDSUAE.js → chunk-XHOURLLU.js} +5 -3
  27. package/dist/chunk-YY3XXUD6.js +23 -0
  28. package/dist/chunk-ZGFKUVSZ.js +360 -0
  29. package/dist/{chunk-AGAXO3NW.js → chunk-ZXZ2FEIU.js} +5 -1
  30. package/dist/components/AnnouncementsProvider.js +2 -2
  31. package/dist/components/ErrorBoundary.d.ts +3 -0
  32. package/dist/components/ErrorBoundary.js +7 -0
  33. package/dist/components/NavigationContainer.d.ts +3 -0
  34. package/dist/components/NavigationContainer.js +7 -0
  35. package/dist/components/createCoreStackNavigator.d.ts +1 -1
  36. package/dist/components/createCoreStackNavigator.js +29 -17
  37. package/dist/components/index.d.ts +3 -0
  38. package/dist/components/index.js +47 -24
  39. package/dist/components/navigation/MadCoreSubHeader.d.ts +2 -0
  40. package/dist/components/navigation/MadCoreSubHeader.js +7 -0
  41. package/dist/components/navigation/index.d.ts +1 -0
  42. package/dist/components/navigation/index.js +11 -0
  43. package/dist/components/navigation/navigation-creators.d.ts +30 -0
  44. package/dist/components/navigation/navigation-creators.js +10 -0
  45. package/dist/components/screens/AboutScreen.js +8 -2
  46. package/dist/components/screens/CreateIncidentScreen.js +1 -1
  47. package/dist/components/screens/LoginScreen.js +10 -9
  48. package/dist/components/screens/language/SelectLanguageScreen.d.ts +2 -0
  49. package/dist/components/screens/language/SelectLanguageScreen.js +20 -0
  50. package/dist/components/screens/language/components/SelectLanguageCellGroup.d.ts +7 -0
  51. package/dist/components/screens/language/components/SelectLanguageCellGroup.js +12 -0
  52. package/dist/components/screens/release-notes/ChangeLog.js +2 -3
  53. package/dist/components/screens/release-notes/ReleaseNotesScreen.js +17 -2
  54. package/dist/components/screens/release-notes/WhatsNewScreen.js +14 -10
  55. package/dist/components/screens/release-notes/fetchReleaseNotes.d.ts +1 -0
  56. package/dist/components/screens/release-notes/fetchReleaseNotes.js +4 -2
  57. package/dist/components/screens/settings/Section.js +3 -3
  58. package/dist/components/screens/settings/SettingsScreen.js +11 -9
  59. package/dist/components/screens/settings/index.js +12 -10
  60. package/dist/components/screens/settings/renderCell.js +1 -1
  61. package/dist/components/screens/settings/useSignOut.js +3 -3
  62. package/dist/hooks/UseReleaseNotes.d.ts +6 -0
  63. package/dist/hooks/UseReleaseNotes.js +17 -0
  64. package/dist/hooks/index.js +7 -5
  65. package/dist/hooks/useAccountOrDemoAccount.js +1 -1
  66. package/dist/hooks/useCoreStackNavigation.d.ts +2 -1
  67. package/dist/hooks/useCoreStackNavigation.js +6 -4
  68. package/dist/hooks/useScreenTitleFromDictionary.d.ts +2 -0
  69. package/dist/hooks/useScreenTitleFromDictionary.js +13 -0
  70. package/dist/index.d.ts +2 -0
  71. package/dist/index.js +58 -26
  72. package/dist/language/types.d.ts +2 -0
  73. package/dist/language/types.js +0 -0
  74. package/dist/language/useDictionary.d.ts +2 -0
  75. package/dist/language/useDictionary.js +11 -0
  76. package/dist/store/demo-mode/demo-mode.js +1 -1
  77. package/dist/store/demo-mode/index.js +1 -1
  78. package/dist/store/language/index.d.ts +0 -1
  79. package/dist/store/language/index.js +6 -9
  80. package/dist/store/language/language.d.ts +3 -2
  81. package/dist/store/language/language.js +6 -5
  82. package/dist/store/mad-config/hooks.d.ts +13 -3
  83. package/dist/store/mad-config/hooks.js +7 -3
  84. package/dist/store/mad-config/index.js +7 -4
  85. package/dist/store/mad-config/mad-config.js +1 -1
  86. package/dist/store/release-notes/index.js +1 -1
  87. package/dist/store/release-notes/release-notes.js +1 -1
  88. package/dist/store/storage.js +1 -1
  89. package/dist/types.d.ts +19 -1
  90. package/dist/utils/createMadCoreNavigator.d.ts +2 -2
  91. package/dist/utils/createMadCoreNavigator.js +25 -16
  92. package/dist/utils/dateUtils.js +1 -1
  93. package/dist/utils/getFinalSettingsConfig.js +1 -1
  94. package/dist/utils/getNavigationRouteForLoginScreen.d.ts +2 -1
  95. package/dist/utils/getNavigationRouteForLoginScreen.js +8 -2
  96. package/dist/utils/getNavigationRouteForSelectLanguageScreen.d.ts +2 -0
  97. package/dist/utils/getNavigationRouteForSelectLanguageScreen.js +7 -0
  98. package/dist/utils/getNavigationRouteForWhatsNewScreen.d.ts +2 -0
  99. package/dist/utils/getNavigationRouteForWhatsNewScreen.js +12 -0
  100. package/dist/utils/getPremadeSettings.d.ts +2 -1
  101. package/dist/utils/getPremadeSettings.js +2 -2
  102. package/dist/utils/getRedirectUriFromAuthConfig.d.ts +2 -0
  103. package/dist/utils/getRedirectUriFromAuthConfig.js +7 -0
  104. package/dist/utils/madCommonUtils.js +1 -1
  105. package/package.json +13 -12
  106. package/dist/chunk-35THIGVH.js +0 -42
  107. package/dist/chunk-4VKFRNU7.js +0 -10
  108. package/dist/chunk-CXOQFGMM.js +0 -50
  109. package/dist/chunk-J53YLHKZ.js +0 -15
  110. package/dist/chunk-K2H37TUR.js +0 -7
  111. package/dist/chunk-VBEIVB4R.js +0 -10
  112. package/dist/chunk-XYNA7G2L.js +0 -62
  113. package/dist/store/language/supported-languages.d.ts +0 -11
  114. package/dist/store/language/supported-languages.js +0 -7
  115. /package/dist/{chunk-635YONGY.js → chunk-2GCLIPZP.js} +0 -0
  116. /package/dist/{chunk-USETLDR7.js → chunk-5LTGZQUP.js} +0 -0
  117. /package/dist/{chunk-UTXWRAEE.js → chunk-BZK6J33D.js} +0 -0
@@ -0,0 +1,360 @@
1
+ import {
2
+ getConfig,
3
+ useMadConfig
4
+ } from "./chunk-ZSTTHIEF.js";
5
+ import {
6
+ getPremadeSettings
7
+ } from "./chunk-P636GRYJ.js";
8
+ import {
9
+ getRedirectUriFromAuthConfig
10
+ } from "./chunk-DCUF7ZWX.js";
11
+ import {
12
+ createStorage
13
+ } from "./chunk-2OMVVDBU.js";
14
+ import {
15
+ __export,
16
+ __spreadValues
17
+ } from "./chunk-BZK6J33D.js";
18
+
19
+ // src/store/language/language.ts
20
+ import { create } from "zustand";
21
+ import { devtools, persist } from "zustand/middleware";
22
+
23
+ // src/static/language/en.json
24
+ var en_exports = {};
25
+ __export(en_exports, {
26
+ common: () => common,
27
+ createIncident: () => createIncident,
28
+ default: () => en_default,
29
+ information: () => information,
30
+ language: () => language,
31
+ login: () => login,
32
+ releaseNotes: () => releaseNotes,
33
+ serviceMessage: () => serviceMessage,
34
+ settings: () => settings
35
+ });
36
+ var login = {
37
+ logIn: "Log in",
38
+ demo: "Demo"
39
+ };
40
+ var releaseNotes = {
41
+ whatsNew: "What's new",
42
+ releaseNotes: "Release notes"
43
+ };
44
+ var createIncident = {
45
+ title: "Create incident in ServiceNow",
46
+ info: "We collect information about your device as part of our incident handling process. By submitting, you agree to share the following information:",
47
+ placeholderTitle: "Write a title for the ServiceNow ticket",
48
+ placeholderDescription: "Write a complete description of your issue. You do not need to provide information about your device",
49
+ created1: "Incident ",
50
+ created2: " created.",
51
+ error: "An error occurred creating your ticket: "
52
+ };
53
+ var information = {
54
+ user: "User",
55
+ deviceBrand: "Device brand",
56
+ device: "Device",
57
+ OS: "Operating system",
58
+ timezone: "Timezone",
59
+ locale: "Locale"
60
+ };
61
+ var language = {
62
+ language: "Language",
63
+ English: "English",
64
+ Norwegian: "Norwegian"
65
+ };
66
+ var settings = {
67
+ title: "Settings",
68
+ aboutApp: "About App",
69
+ feedback: "Feedback",
70
+ loggedInAs: "Logged in as:",
71
+ language: "Language",
72
+ logOut: "Log out",
73
+ back: "Back"
74
+ };
75
+ var serviceMessage = {
76
+ couldNotRetrieve: "Could not retrieve service message"
77
+ };
78
+ var common = {
79
+ submit: "Submit",
80
+ ok: "OK",
81
+ done: "Done",
82
+ save: "Save"
83
+ };
84
+ var en_default = {
85
+ login,
86
+ releaseNotes,
87
+ createIncident,
88
+ information,
89
+ language,
90
+ settings,
91
+ serviceMessage,
92
+ common
93
+ };
94
+
95
+ // src/static/language/nb.json
96
+ var nb_exports = {};
97
+ __export(nb_exports, {
98
+ common: () => common2,
99
+ createIncident: () => createIncident2,
100
+ default: () => nb_default,
101
+ information: () => information2,
102
+ language: () => language2,
103
+ login: () => login2,
104
+ releaseNotes: () => releaseNotes2,
105
+ serviceMessage: () => serviceMessage2,
106
+ settings: () => settings2
107
+ });
108
+ var login2 = {
109
+ logIn: "Logg inn",
110
+ demo: "Demo"
111
+ };
112
+ var releaseNotes2 = {
113
+ whatsNew: "Hva er nytt",
114
+ releaseNotes: "Utgivelsesnotater"
115
+ };
116
+ var createIncident2 = {
117
+ title: "Opprett sak i ServiceNow",
118
+ info: "Vi samler inn informasjon om din enhet som en del av v\xE5r saksbehandlingsprosess. Ved \xE5 sende inn samtykker du i \xE5 dele f\xF8lgende informasjon:",
119
+ placeholderTitle: "Skriv inn sakstittel",
120
+ placeholderDescription: "Skriv inn en komplett beskrivelse av saken din. Du trenger ikke oppgi informasjon om din brukerenhet.",
121
+ created1: "Sak ",
122
+ created2: " opprettet.",
123
+ error: "En feil oppstod ved opprettelse av din sak: "
124
+ };
125
+ var information2 = {
126
+ user: "Bruker",
127
+ deviceBrand: "Enhetsmerke",
128
+ device: "Enhet",
129
+ OS: "Operativsystem",
130
+ timezone: "Tidssone",
131
+ locale: "Omr\xE5de"
132
+ };
133
+ var language2 = {
134
+ language: "Spr\xE5k",
135
+ English: "Engelsk",
136
+ Norwegian: "Norsk"
137
+ };
138
+ var settings2 = {
139
+ title: "Innstillinger",
140
+ aboutApp: "Om Appen",
141
+ feedback: "Gi tilbakemelding",
142
+ loggedInAs: "Logget inn som:",
143
+ language: "Spr\xE5k",
144
+ logOut: "Logg av",
145
+ back: "Tilbake"
146
+ };
147
+ var serviceMessage2 = {
148
+ couldNotRetrieve: "Kunne ikke hente tjenestemelding"
149
+ };
150
+ var common2 = {
151
+ submit: "Velg",
152
+ ok: "OK",
153
+ done: "Ferdig",
154
+ save: "Lagre"
155
+ };
156
+ var nb_default = {
157
+ login: login2,
158
+ releaseNotes: releaseNotes2,
159
+ createIncident: createIncident2,
160
+ information: information2,
161
+ language: language2,
162
+ settings: settings2,
163
+ serviceMessage: serviceMessage2,
164
+ common: common2
165
+ };
166
+
167
+ // src/static/language/pt.json
168
+ var pt_exports = {};
169
+ __export(pt_exports, {
170
+ common: () => common3,
171
+ createIncident: () => createIncident3,
172
+ default: () => pt_default,
173
+ information: () => information3,
174
+ language: () => language3,
175
+ login: () => login3,
176
+ releaseNotes: () => releaseNotes3,
177
+ serviceMessage: () => serviceMessage3,
178
+ settings: () => settings3
179
+ });
180
+ var login3 = {
181
+ logIn: "Conecte-se",
182
+ demo: "Demonstra\xE7\xE3o"
183
+ };
184
+ var releaseNotes3 = {
185
+ whatsNew: "What's new",
186
+ releaseNotes: "Notas de lan\xE7amento"
187
+ };
188
+ var createIncident3 = {
189
+ title: "Criar incidente no ServiceNow",
190
+ info: "Coletamos informa\xE7\xF5es sobre seu dispositivo como parte do nosso processo de tratamento de incidentes. Ao enviar, voc\xEA concorda em compartilhar as seguintes informa\xE7\xF5es:",
191
+ placeholderTitle: "Escreva um t\xEDtulo para o chamado no ServiceNow",
192
+ placeholderDescription: "Escreva uma descri\xE7\xE3o completa do seu problema. Voc\xEA n\xE3o precisa fornecer informa\xE7\xF5es sobre seu dispositivo",
193
+ created1: "Incidente ",
194
+ created2: " criado.",
195
+ error: "Ocorreu um erro ao criar seu chamado: "
196
+ };
197
+ var information3 = {
198
+ user: "Usu\xE1rio",
199
+ deviceBrand: "Marca do dispositivo",
200
+ device: "Dispositivo",
201
+ OS: "Sistema operacional",
202
+ timezone: "Fuso hor\xE1rio",
203
+ locale: "Localidade"
204
+ };
205
+ var language3 = {
206
+ language: "Idioma",
207
+ English: "Ingl\xEAs",
208
+ Norwegian: "Noruegu\xEAs"
209
+ };
210
+ var settings3 = {
211
+ title: "Configura\xE7\xF5es",
212
+ aboutApp: "Sobre o aplicativo",
213
+ feedback: "Deixar feedback",
214
+ loggedInAs: "Conectado com:",
215
+ language: "Idioma",
216
+ logOut: "Sair",
217
+ back: "Voltar"
218
+ };
219
+ var serviceMessage3 = {
220
+ couldNotRetrieve: "N\xE3o foi poss\xEDvel recuperar a mensagem de servi\xE7o"
221
+ };
222
+ var common3 = {
223
+ submit: "Enviar",
224
+ ok: "OK",
225
+ done: "Feito",
226
+ save: "Salvar"
227
+ };
228
+ var pt_default = {
229
+ login: login3,
230
+ releaseNotes: releaseNotes3,
231
+ createIncident: createIncident3,
232
+ information: information3,
233
+ language: language3,
234
+ settings: settings3,
235
+ serviceMessage: serviceMessage3,
236
+ common: common3
237
+ };
238
+
239
+ // src/language/useDictionary.ts
240
+ var useDictionary = () => {
241
+ const { language: language4 } = useLanguage();
242
+ switch (language4.code) {
243
+ case "no":
244
+ case "nb":
245
+ return withEnglishFallback(nb_exports);
246
+ case "pt":
247
+ return withEnglishFallback(pt_exports);
248
+ default:
249
+ return en_exports;
250
+ }
251
+ };
252
+ var withEnglishFallback = (dictionary) => __spreadValues(__spreadValues({}, en_exports), dictionary);
253
+
254
+ // src/store/mad-config/hooks.ts
255
+ var useAuthConfig = () => {
256
+ const { authentication } = useMadConfig();
257
+ const { clientId, scopes } = authentication;
258
+ const redirectUri = getRedirectUriFromAuthConfig(authentication);
259
+ return {
260
+ clientId,
261
+ scopes,
262
+ redirectUri
263
+ };
264
+ };
265
+ var useLoginScreenConfig = () => {
266
+ const config = useMadConfig();
267
+ return config.login;
268
+ };
269
+ var useAppVersion = () => {
270
+ const config = useMadConfig();
271
+ return config.appVersion;
272
+ };
273
+ var useEnvironment = () => {
274
+ const config = useMadConfig();
275
+ return config.environment;
276
+ };
277
+ var useServicePortalName = () => {
278
+ const config = useMadConfig();
279
+ return config.servicePortalName;
280
+ };
281
+ var useAbout = () => {
282
+ const config = useMadConfig();
283
+ return config.about;
284
+ };
285
+ var useSettingsScreenPremadeConfig = () => {
286
+ const config = useMadConfig();
287
+ const dictionary = useDictionary();
288
+ const premadeSettings = getPremadeSettings(config, dictionary);
289
+ return premadeSettings;
290
+ };
291
+
292
+ // src/store/language/language.ts
293
+ var getSupportedLanguages = () => getConfig().language.supportedLanguages;
294
+ var getDefaultLanguage = () => {
295
+ const supportedLanguages = getSupportedLanguages();
296
+ const defaultLanguageCode = getConfig().language.defaultLanguageCode;
297
+ if (supportedLanguages.length === 0)
298
+ throw new Error("There are no supported languages");
299
+ if (!defaultLanguageCode)
300
+ return supportedLanguages[0];
301
+ const defaultLanguage = supportedLanguages.find(
302
+ (language4) => language4.code === defaultLanguageCode
303
+ );
304
+ if (!defaultLanguage)
305
+ throw new Error("defaultLanguageCode was not found within supported languages");
306
+ return defaultLanguage;
307
+ };
308
+ var useLanguageStore = create()(
309
+ devtools(
310
+ persist(
311
+ (set, get) => ({
312
+ selectedLanguage: null,
313
+ setSelectedLanguage: (code) => {
314
+ const supportedLanguages = getSupportedLanguages();
315
+ set(() => {
316
+ var _a;
317
+ return {
318
+ selectedLanguage: (_a = supportedLanguages.find((language4) => language4.code === code)) != null ? _a : null
319
+ };
320
+ });
321
+ },
322
+ getLanguage: () => {
323
+ const { selectedLanguage } = get();
324
+ return selectedLanguage != null ? selectedLanguage : getDefaultLanguage();
325
+ },
326
+ getIsLanguageSelected: () => {
327
+ const { selectedLanguage } = get();
328
+ return !!selectedLanguage;
329
+ }
330
+ }),
331
+ {
332
+ name: "language",
333
+ storage: createStorage()
334
+ }
335
+ ),
336
+ { name: "core/language" }
337
+ )
338
+ );
339
+ var useLanguage = () => {
340
+ const store = useLanguageStore();
341
+ const language4 = store.getLanguage();
342
+ const { setSelectedLanguage: setSelectedLanguage2 } = store;
343
+ return { language: language4, getDefaultLanguage, setSelectedLanguage: setSelectedLanguage2, getSupportedLanguages };
344
+ };
345
+ var { getLanguage, setSelectedLanguage, getIsLanguageSelected } = useLanguageStore.getState();
346
+
347
+ export {
348
+ useLanguage,
349
+ getLanguage,
350
+ setSelectedLanguage,
351
+ getIsLanguageSelected,
352
+ useDictionary,
353
+ useAuthConfig,
354
+ useLoginScreenConfig,
355
+ useAppVersion,
356
+ useEnvironment,
357
+ useServicePortalName,
358
+ useAbout,
359
+ useSettingsScreenPremadeConfig
360
+ };
@@ -1,3 +1,7 @@
1
+ import {
2
+ getNavigationRouteForWhatsNewScreen
3
+ } from "./chunk-BZZTCMAD.js";
4
+
1
5
  // src/utils/getNavigationRouteForLoginScreen.ts
2
6
  var getNavigationRouteForLoginScreen = ({
3
7
  appVersion,
@@ -8,7 +12,7 @@ var getNavigationRouteForLoginScreen = ({
8
12
  return "WhatsNew";
9
13
  if (!lastDisplayedReleaseNotesVersion || lastDisplayedReleaseNotesVersion < appVersion)
10
14
  return "WhatsNew";
11
- return "Root";
15
+ return getNavigationRouteForWhatsNewScreen();
12
16
  };
13
17
  var _getNavigationRouteForLoginScreenPure = {};
14
18
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AnnouncementsProvider
3
- } from "../chunk-FQWPBBPB.js";
4
- import "../chunk-UTXWRAEE.js";
3
+ } from "../chunk-GSC3O7TW.js";
4
+ import "../chunk-BZK6J33D.js";
5
5
  export {
6
6
  AnnouncementsProvider
7
7
  };
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ErrorBoundaryProps } from "@equinor/mad-components";
3
+ export declare const ErrorBoundary: (props: ErrorBoundaryProps) => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import {
2
+ ErrorBoundary
3
+ } from "../chunk-YY3XXUD6.js";
4
+ import "../chunk-BZK6J33D.js";
5
+ export {
6
+ ErrorBoundary
7
+ };
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { NavigationContainerProps } from "@equinor/mad-navigation";
3
+ export declare const NavigationContainer: <T extends object>(props: NavigationContainerProps<T>) => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import {
2
+ NavigationContainer
3
+ } from "../chunk-HGT5ZUYL.js";
4
+ import "../chunk-BZK6J33D.js";
5
+ export {
6
+ NavigationContainer
7
+ };
@@ -26,7 +26,7 @@ export declare const createCoreStackNavigator: (config: MadConfig) => {
26
26
  route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
27
27
  navigation: any;
28
28
  }) => import("@equinor/mad-navigation").MadNativeStackNavigationOptions) | undefined;
29
- } & import("@react-navigation/routers").StackRouterOptions, "children" | "id" | "initialRouteName" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
29
+ } & import("@react-navigation/routers").StackRouterOptions & import("@equinor/mad-navigation/dist/_internal/types").MadCustomFactoryProps, "children" | "id" | "initialRouteName" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
30
30
  id?: string | undefined;
31
31
  children: import("react").ReactNode;
32
32
  screenListeners?: Partial<{
@@ -1,29 +1,41 @@
1
1
  import {
2
2
  createCoreStackNavigator
3
- } from "../chunk-HOPDSUAE.js";
4
- import "../chunk-CXOQFGMM.js";
5
- import "../chunk-4VKFRNU7.js";
6
- import "../chunk-TLJLKQRN.js";
7
- import "../chunk-FIFUL4JE.js";
3
+ } from "../chunk-XHOURLLU.js";
4
+ import "../chunk-2GCLIPZP.js";
5
+ import "../chunk-3XUVY5MJ.js";
6
+ import "../chunk-PBCPR4ZO.js";
7
+ import "../chunk-UOMVB65Y.js";
8
+ import "../chunk-SQXXB44S.js";
9
+ import "../chunk-DL54DMGO.js";
10
+ import "../chunk-QDRLODML.js";
11
+ import "../chunk-LNJRCADN.js";
12
+ import "../chunk-AM5E5CYS.js";
8
13
  import "../chunk-UVQ3Z5PG.js";
9
- import "../chunk-PEFOX6JA.js";
10
- import "../chunk-VBEIVB4R.js";
14
+ import "../chunk-RJEUW53E.js";
11
15
  import "../chunk-GCBWBANV.js";
12
- import "../chunk-5QALP2TZ.js";
16
+ import "../chunk-FCPT6WB6.js";
13
17
  import "../chunk-5BVQKJQB.js";
14
- import "../chunk-USETLDR7.js";
15
- import "../chunk-35THIGVH.js";
16
- import "../chunk-ZSTTHIEF.js";
17
- import "../chunk-2OMVVDBU.js";
18
18
  import "../chunk-OCWASWDK.js";
19
- import "../chunk-AGAXO3NW.js";
20
- import "../chunk-3LDWV3SJ.js";
19
+ import "../chunk-ZXZ2FEIU.js";
20
+ import "../chunk-AEGDSD6N.js";
21
+ import "../chunk-BZZTCMAD.js";
22
+ import "../chunk-GUKC6UGZ.js";
23
+ import "../chunk-EQYL7INQ.js";
24
+ import "../chunk-AFYA4V5E.js";
25
+ import "../chunk-BIMOM43W.js";
26
+ import "../chunk-GSC3O7TW.js";
27
+ import "../chunk-UJAEFWFH.js";
28
+ import "../chunk-6GFARWDK.js";
29
+ import "../chunk-V4QL2TIA.js";
21
30
  import "../chunk-RFYZGBU4.js";
22
- import "../chunk-FQWPBBPB.js";
23
31
  import "../chunk-CCVKLLIO.js";
24
32
  import "../chunk-UZ6YMQV2.js";
25
- import "../chunk-K2H37TUR.js";
26
- import "../chunk-UTXWRAEE.js";
33
+ import "../chunk-ZGFKUVSZ.js";
34
+ import "../chunk-ZSTTHIEF.js";
35
+ import "../chunk-P636GRYJ.js";
36
+ import "../chunk-DCUF7ZWX.js";
37
+ import "../chunk-2OMVVDBU.js";
38
+ import "../chunk-BZK6J33D.js";
27
39
  export {
28
40
  createCoreStackNavigator
29
41
  };
@@ -1,2 +1,5 @@
1
1
  export * from "./createCoreStackNavigator";
2
+ export * from "./NavigationContainer";
3
+ export * from "./ErrorBoundary";
4
+ export * from "./navigation";
2
5
  export * from "./screens/settings";
@@ -1,42 +1,65 @@
1
- import "../chunk-635YONGY.js";
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-KXAIAYE4.js";
6
- import "../chunk-E36MLVBD.js";
6
+ } from "../chunk-CMKIUYX7.js";
7
+ import "../chunk-VXUERD3Z.js";
8
+ import "../chunk-DWAJZVKH.js";
7
9
  import "../chunk-DOHQX5XC.js";
8
- import "../chunk-5GBNULIT.js";
9
- import "../chunk-FUGJZRIR.js";
10
10
  import "../chunk-7SJM4NDH.js";
11
+ import {
12
+ ErrorBoundary
13
+ } from "../chunk-YY3XXUD6.js";
14
+ import {
15
+ NavigationContainer
16
+ } from "../chunk-HGT5ZUYL.js";
11
17
  import {
12
18
  createCoreStackNavigator
13
- } from "../chunk-HOPDSUAE.js";
14
- import "../chunk-CXOQFGMM.js";
15
- import "../chunk-4VKFRNU7.js";
16
- import "../chunk-TLJLKQRN.js";
17
- import "../chunk-FIFUL4JE.js";
19
+ } from "../chunk-XHOURLLU.js";
20
+ import "../chunk-2GCLIPZP.js";
21
+ import {
22
+ createBottomTabNavigator,
23
+ createNativeStackNavigator
24
+ } from "../chunk-3XUVY5MJ.js";
25
+ import "../chunk-PBCPR4ZO.js";
26
+ import "../chunk-UOMVB65Y.js";
27
+ import "../chunk-SQXXB44S.js";
28
+ import "../chunk-DL54DMGO.js";
29
+ import "../chunk-QDRLODML.js";
30
+ import "../chunk-LNJRCADN.js";
31
+ import "../chunk-AM5E5CYS.js";
18
32
  import "../chunk-UVQ3Z5PG.js";
19
- import "../chunk-PEFOX6JA.js";
20
- import "../chunk-VBEIVB4R.js";
33
+ import "../chunk-RJEUW53E.js";
21
34
  import "../chunk-GCBWBANV.js";
22
- import "../chunk-5QALP2TZ.js";
35
+ import "../chunk-FCPT6WB6.js";
23
36
  import "../chunk-5BVQKJQB.js";
24
- import "../chunk-USETLDR7.js";
25
- import "../chunk-35THIGVH.js";
26
- import "../chunk-ZSTTHIEF.js";
27
- import "../chunk-2OMVVDBU.js";
28
37
  import "../chunk-OCWASWDK.js";
29
- import "../chunk-AGAXO3NW.js";
30
- import "../chunk-3LDWV3SJ.js";
31
- import "../chunk-RFYZGBU4.js";
32
- import "../chunk-FQWPBBPB.js";
38
+ import "../chunk-ZXZ2FEIU.js";
39
+ import "../chunk-AEGDSD6N.js";
40
+ import "../chunk-BZZTCMAD.js";
33
41
  import "../chunk-GUKC6UGZ.js";
34
42
  import "../chunk-EQYL7INQ.js";
43
+ import "../chunk-AFYA4V5E.js";
44
+ import "../chunk-BIMOM43W.js";
45
+ import "../chunk-GSC3O7TW.js";
46
+ import "../chunk-UJAEFWFH.js";
47
+ import "../chunk-6GFARWDK.js";
48
+ import "../chunk-V4QL2TIA.js";
49
+ import "../chunk-RFYZGBU4.js";
35
50
  import "../chunk-CCVKLLIO.js";
36
51
  import "../chunk-UZ6YMQV2.js";
37
- import "../chunk-K2H37TUR.js";
38
- import "../chunk-UTXWRAEE.js";
52
+ import "../chunk-ZGFKUVSZ.js";
53
+ import "../chunk-ZSTTHIEF.js";
54
+ import "../chunk-P636GRYJ.js";
55
+ import "../chunk-DCUF7ZWX.js";
56
+ import "../chunk-2OMVVDBU.js";
57
+ import "../chunk-BZK6J33D.js";
39
58
  export {
59
+ ErrorBoundary,
60
+ NavigationContainer,
40
61
  SettingsScreen,
41
- createCoreStackNavigator
62
+ createBottomTabNavigator,
63
+ createCoreStackNavigator,
64
+ createNativeStackNavigator
42
65
  };
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MadCoreSubHeader: () => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import {
2
+ MadCoreSubHeader
3
+ } from "../../chunk-PBCPR4ZO.js";
4
+ import "../../chunk-BZK6J33D.js";
5
+ export {
6
+ MadCoreSubHeader
7
+ };
@@ -0,0 +1 @@
1
+ export * from "./navigation-creators";
@@ -0,0 +1,11 @@
1
+ import "../../chunk-2GCLIPZP.js";
2
+ import {
3
+ createBottomTabNavigator,
4
+ createNativeStackNavigator
5
+ } from "../../chunk-3XUVY5MJ.js";
6
+ import "../../chunk-PBCPR4ZO.js";
7
+ import "../../chunk-BZK6J33D.js";
8
+ export {
9
+ createBottomTabNavigator,
10
+ createNativeStackNavigator
11
+ };
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ export declare const createBottomTabNavigator: <ParamList extends import("@react-navigation/routers").ParamListBase>() => import("@react-navigation/core").TypedNavigator<ParamList, import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>, import("@equinor/mad-navigation").MadBottomTabNavigationOptions, import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, ({ id, initialRouteName, backBehavior, children, screenListeners, screenOptions, sceneContainerStyle, customSubHeader, ...rest }: import("@react-navigation/routers").DefaultRouterOptions<string> & {
3
+ id?: string | undefined;
4
+ children: import("react").ReactNode;
5
+ screenListeners?: Partial<{
6
+ tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabPress">;
7
+ tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabLongPress">;
8
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "focus">;
9
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "blur">;
10
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "state">;
11
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "beforeRemove">;
12
+ }> | ((props: {
13
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
14
+ navigation: any;
15
+ }) => Partial<{
16
+ tabPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabPress">;
17
+ tabLongPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "tabLongPress">;
18
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "focus">;
19
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "blur">;
20
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "state">;
21
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/bottom-tabs").BottomTabNavigationEventMap, "beforeRemove">;
22
+ }>) | undefined;
23
+ screenOptions?: import("@equinor/mad-navigation").MadBottomTabNavigationOptions | ((props: {
24
+ route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
25
+ navigation: any;
26
+ }) => import("@equinor/mad-navigation").MadBottomTabNavigationOptions) | undefined;
27
+ } & import("@react-navigation/routers").DefaultRouterOptions & {
28
+ backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior | undefined;
29
+ } & import("@equinor/mad-navigation").BottomTabNavigationConfig & import("@equinor/mad-navigation/dist/_internal/types").MadCustomFactoryProps) => import("react").JSX.Element>;
30
+ export declare const createNativeStackNavigator: <ParamList extends import("@react-navigation/routers").ParamListBase>() => import("@react-navigation/core").TypedNavigator<ParamList, import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, import("@equinor/mad-navigation").MadNativeStackNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap, ({ id, initialRouteName, children, screenListeners, screenOptions, customSubHeader, ...rest }: import("@equinor/mad-navigation").NativeStackNavigatorProps) => import("react").JSX.Element>;
@@ -0,0 +1,10 @@
1
+ import {
2
+ createBottomTabNavigator,
3
+ createNativeStackNavigator
4
+ } from "../../chunk-3XUVY5MJ.js";
5
+ import "../../chunk-PBCPR4ZO.js";
6
+ import "../../chunk-BZK6J33D.js";
7
+ export {
8
+ createBottomTabNavigator,
9
+ createNativeStackNavigator
10
+ };
@@ -1,7 +1,13 @@
1
1
  import {
2
2
  AboutScreen
3
- } from "../../chunk-VBEIVB4R.js";
4
- import "../../chunk-UTXWRAEE.js";
3
+ } from "../../chunk-RJEUW53E.js";
4
+ import "../../chunk-RFYZGBU4.js";
5
+ import "../../chunk-ZGFKUVSZ.js";
6
+ import "../../chunk-ZSTTHIEF.js";
7
+ import "../../chunk-P636GRYJ.js";
8
+ import "../../chunk-DCUF7ZWX.js";
9
+ import "../../chunk-2OMVVDBU.js";
10
+ import "../../chunk-BZK6J33D.js";
5
11
  export {
6
12
  AboutScreen
7
13
  };