@equinor/mad-core 0.19.0 → 0.21.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 (57) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/authenticate.d.ts +1 -0
  3. package/dist/authenticate.js +11 -0
  4. package/dist/{chunk-GBEOV7WV.js → chunk-5HF72JIH.js} +2 -2
  5. package/dist/{chunk-BFOEM4OQ.js → chunk-B6AVRRLL.js} +45 -16
  6. package/dist/{chunk-MTJ75ZLM.js → chunk-DGIAXVWS.js} +2 -2
  7. package/dist/{chunk-CCWBP32I.js → chunk-LLYUBOEA.js} +5 -1
  8. package/dist/{chunk-VKFXR4QU.js → chunk-PQODWSOK.js} +1 -1
  9. package/dist/chunk-Q6MDFVOP.js +13 -0
  10. package/dist/chunk-R2XOBAJJ.js +27 -0
  11. package/dist/chunk-YBNZ6RXF.js +0 -0
  12. package/dist/{chunk-3QGEQ4LV.js → chunk-YMZLQKMK.js} +1 -1
  13. package/dist/{chunk-RSHKFTQY.js → chunk-YOYEOAPW.js} +4 -4
  14. package/dist/chunk-Z4YHNPXU.js +25 -0
  15. package/dist/{chunk-BVS4TEYU.js → chunk-ZJMIK3ZV.js} +4 -4
  16. package/dist/components/createCoreStackNavigator.d.ts +9 -9
  17. package/dist/components/createCoreStackNavigator.js +37 -33
  18. package/dist/components/index.js +40 -36
  19. package/dist/components/navigation/MadCoreSubHeader.js +5 -5
  20. package/dist/components/navigation/index.js +6 -6
  21. package/dist/components/navigation/navigation-creators.js +6 -6
  22. package/dist/components/screens/AboutScreen.js +2 -2
  23. package/dist/components/screens/LoginScreen.js +5 -3
  24. package/dist/components/screens/create-incident/CreateIncidentScreen.js +37 -33
  25. package/dist/components/screens/create-incident/createIncident.js +37 -33
  26. package/dist/components/screens/language/SelectLanguageScreen.js +4 -4
  27. package/dist/components/screens/release-notes/ReleaseNotesScreen.js +3 -3
  28. package/dist/components/screens/release-notes/WhatsNewScreen.js +7 -7
  29. package/dist/components/screens/settings/Section.js +1 -1
  30. package/dist/components/screens/settings/SettingsScreen.js +6 -6
  31. package/dist/components/screens/settings/index.js +7 -7
  32. package/dist/components/screens/settings/useSignOut.js +4 -4
  33. package/dist/components/service-message/ServiceMessageBanner.js +2 -2
  34. package/dist/hooks/index.js +2 -2
  35. package/dist/hooks/useNavigateFromLanguageSelectScreen.js +2 -2
  36. package/dist/hooks/useNavigateFromLoginScreen.js +2 -2
  37. package/dist/hooks/useNavigateFromWhatsNewScreen.js +2 -2
  38. package/dist/hooks/useScreenTitleFromDictionary.js +2 -2
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.js +50 -43
  41. package/dist/store/auth-session/auth-session.d.ts +4 -0
  42. package/dist/store/auth-session/auth-session.js +13 -0
  43. package/dist/store/auth-session/index.d.ts +1 -0
  44. package/dist/store/auth-session/index.js +14 -0
  45. package/dist/store/auth-session/resetCancelledSession.d.ts +1 -0
  46. package/dist/store/auth-session/resetCancelledSession.js +10 -0
  47. package/dist/utils/MadCoreProviders.js +1 -1
  48. package/dist/utils/createMadCoreNavigator.d.ts +6 -6
  49. package/dist/utils/createMadCoreNavigator.js +37 -33
  50. package/package.json +10 -5
  51. package/dist/{chunk-KB3M7X3Q.js → chunk-27KFGUGY.js} +3 -3
  52. package/dist/{chunk-HPDK6AZ3.js → chunk-4KSJR7E5.js} +3 -3
  53. package/dist/{chunk-PMQPVI37.js → chunk-4TVVFWGM.js} +3 -3
  54. package/dist/{chunk-3DTLRMAR.js → chunk-6QNZQ6OY.js} +3 -3
  55. package/dist/{chunk-JADYNBGN.js → chunk-HADLUP7M.js} +3 -3
  56. package/dist/{chunk-75UZ4BR5.js → chunk-INA5ANZO.js} +4 -4
  57. package/dist/{chunk-C7NJODNT.js → chunk-X33ICKCC.js} +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # @equinor/mad-core
2
2
 
3
+ ## 0.21.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6a0179e: Updating minor versions since we are upgrading to Expo 57
8
+
9
+ ### Patch Changes
10
+
11
+ - 030b1d0: jest plugin preset updated
12
+ - 030b1d0: Packages upgraded to support expo 57
13
+ - fd0806d: Root Modal component updated
14
+ - Updated dependencies [030b1d0]
15
+ - Updated dependencies [030b1d0]
16
+ - Updated dependencies [fd0806d]
17
+ - Updated dependencies [6a0179e]
18
+ - @equinor/mad-components@0.26.0
19
+ - @equinor/mad-navigation@0.8.0
20
+ - @equinor/mad-insights@0.4.0
21
+ - @equinor/mad-toast@0.5.0
22
+ - @equinor/mad-auth@0.8.0
23
+
24
+ ## 0.20.0
25
+
26
+ ### Minor Changes
27
+
28
+ - d060502: Add a high-level `authenticate` function that falls back from silent to interactive
29
+ authentication.
30
+
31
+ `authenticateSilently` now remains silent and returns `null` when stored refresh credentials are
32
+ expired or invalid. Consumers that may prompt the user should use `authenticate`, exported by
33
+ both `@equinor/mad-auth` and `@equinor/mad-core`. Interactive resource authentication preserves
34
+ the OIDC scopes needed to replace invalid refresh credentials, and concurrent callers share a
35
+ single browser prompt.
36
+
37
+ Native consumers can be notified when the interactive fallback is cancelled or dismissed,
38
+ including when the authorization provider returns an explicit user-cancellation response. MAD
39
+ Core uses this signal to clear the unusable session and reset its navigator to the login screen
40
+ without retaining protected route history.
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [d060502]
45
+ - @equinor/mad-auth@0.7.0
46
+
3
47
  ## 0.19.0
4
48
 
5
49
  ### Minor Changes
@@ -0,0 +1 @@
1
+ export declare const authenticate: (scopes: string[]) => Promise<import("@equinor/mad-auth").MadAuthenticationResult | null>;
@@ -0,0 +1,11 @@
1
+ import {
2
+ authenticate
3
+ } from "./chunk-Q6MDFVOP.js";
4
+ import "./chunk-Z4YHNPXU.js";
5
+ import "./chunk-R2XOBAJJ.js";
6
+ import "./chunk-CCVKLLIO.js";
7
+ import "./chunk-UZ6YMQV2.js";
8
+ import "./chunk-CWMXXUWU.js";
9
+ export {
10
+ authenticate
11
+ };
@@ -9,10 +9,10 @@ import {
9
9
  } from "./chunk-5BVQKJQB.js";
10
10
  import {
11
11
  useNavigateFromWhatsNewScreen
12
- } from "./chunk-C7NJODNT.js";
12
+ } from "./chunk-X33ICKCC.js";
13
13
  import {
14
14
  useScreenTitleFromDictionary
15
- } from "./chunk-KB3M7X3Q.js";
15
+ } from "./chunk-27KFGUGY.js";
16
16
  import {
17
17
  whats_new_exports
18
18
  } from "./chunk-4DXH3SPN.js";
@@ -1,25 +1,25 @@
1
+ import {
2
+ SelectLanguageScreen
3
+ } from "./chunk-DGIAXVWS.js";
4
+ import {
5
+ ReleaseNotesScreen
6
+ } from "./chunk-PQODWSOK.js";
1
7
  import {
2
8
  WhatsNewScreen
3
- } from "./chunk-GBEOV7WV.js";
9
+ } from "./chunk-5HF72JIH.js";
4
10
  import {
5
11
  UserInfo
6
12
  } from "./chunk-3WUJAVUO.js";
7
- import {
8
- SelectLanguageScreen
9
- } from "./chunk-MTJ75ZLM.js";
10
- import {
11
- ReleaseNotesScreen
12
- } from "./chunk-VKFXR4QU.js";
13
13
  import {
14
14
  createNativeStackNavigator,
15
15
  createStackNavigator
16
- } from "./chunk-3QGEQ4LV.js";
16
+ } from "./chunk-YMZLQKMK.js";
17
17
  import {
18
18
  AboutScreen
19
- } from "./chunk-PMQPVI37.js";
19
+ } from "./chunk-4TVVFWGM.js";
20
20
  import {
21
21
  LoginScreen
22
- } from "./chunk-CCWBP32I.js";
22
+ } from "./chunk-LLYUBOEA.js";
23
23
  import {
24
24
  initiateAuthenticationClient
25
25
  } from "./chunk-5O4PAUNU.js";
@@ -29,6 +29,9 @@ import {
29
29
  import {
30
30
  getDefaultScreenOptionsForLoginScreen
31
31
  } from "./chunk-RGJ4RWVB.js";
32
+ import {
33
+ useAuthSessionGeneration
34
+ } from "./chunk-R2XOBAJJ.js";
32
35
  import {
33
36
  getMadCommonBaseUrl,
34
37
  getMadCommonScopes
@@ -199,15 +202,28 @@ var createIncidentStyles = EDSStyleSheet.create((theme) => ({
199
202
  var createMadCoreNativeStackNavigator = (Stack) => {
200
203
  function MadCoreNavigator(props) {
201
204
  const config = useMadConfig();
205
+ const authSessionGeneration = useAuthSessionGeneration();
202
206
  if (!config) return null;
203
- return /* @__PURE__ */ React2.createElement(MadCoreProviders, { config, type: "native-stack" }, /* @__PURE__ */ React2.createElement(Stack.Navigator, __spreadProps(__spreadValues({}, props), { initialRouteName: CoreRoutes.LOGIN }), config.login.addScreenManually !== true && /* @__PURE__ */ React2.createElement(
207
+ return /* @__PURE__ */ React2.createElement(MadCoreProviders, { config, type: "native-stack" }, /* @__PURE__ */ React2.createElement(Stack.Navigator, __spreadProps(__spreadValues({}, props), { initialRouteName: CoreRoutes.LOGIN }), /* @__PURE__ */ React2.createElement(Stack.Group, { navigationKey: `auth-session-${authSessionGeneration}` }, config.login.addScreenManually !== true && /* @__PURE__ */ React2.createElement(
204
208
  Stack.Screen,
205
209
  {
206
210
  name: CoreRoutes.LOGIN,
207
211
  component: LoginScreen,
208
212
  options: getDefaultScreenOptionsForLoginScreen()
209
213
  }
210
- ), /* @__PURE__ */ React2.createElement(Stack.Screen, { name: CoreRoutes.RELEASE_NOTES, component: ReleaseNotesScreen }), /* @__PURE__ */ React2.createElement(Stack.Screen, { name: CoreRoutes.WHATS_NEW, component: WhatsNewScreen }), config.about && /* @__PURE__ */ React2.createElement(Stack.Screen, { name: CoreRoutes.ABOUT, component: AboutScreen }), config.serviceNow && /* @__PURE__ */ React2.createElement(Stack.Screen, { name: CoreRoutes.FEEDBACK, component: CreateIncidentScreen }), config.language.supportedLanguages.length > 1 && /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(
214
+ ), /* @__PURE__ */ React2.createElement(
215
+ Stack.Screen,
216
+ {
217
+ name: CoreRoutes.RELEASE_NOTES,
218
+ component: ReleaseNotesScreen
219
+ }
220
+ ), /* @__PURE__ */ React2.createElement(Stack.Screen, { name: CoreRoutes.WHATS_NEW, component: WhatsNewScreen }), config.about && /* @__PURE__ */ React2.createElement(Stack.Screen, { name: CoreRoutes.ABOUT, component: AboutScreen }), config.serviceNow && /* @__PURE__ */ React2.createElement(
221
+ Stack.Screen,
222
+ {
223
+ name: CoreRoutes.FEEDBACK,
224
+ component: CreateIncidentScreen
225
+ }
226
+ ), config.language.supportedLanguages.length > 1 && /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(
211
227
  Stack.Screen,
212
228
  {
213
229
  name: CoreRoutes.SELECT_LANGUAGE,
@@ -220,22 +236,35 @@ var createMadCoreNativeStackNavigator = (Stack) => {
220
236
  component: SelectLanguageScreen,
221
237
  options: { headerBackVisible: false }
222
238
  }
223
- )), props.children));
239
+ )), props.children)));
224
240
  }
225
241
  return MadCoreNavigator;
226
242
  };
227
243
  var createMadCoreStackNavigator = (Stack) => {
228
244
  function MadCoreNavigator(props) {
229
245
  const config = useMadConfig();
246
+ const authSessionGeneration = useAuthSessionGeneration();
230
247
  if (!config) return null;
231
- return /* @__PURE__ */ React2.createElement(MadCoreProviders, { config, type: "stack" }, /* @__PURE__ */ React2.createElement(Stack.Navigator, __spreadProps(__spreadValues({}, props), { initialRouteName: CoreRoutes.LOGIN }), config.login.addScreenManually !== true && /* @__PURE__ */ React2.createElement(
248
+ return /* @__PURE__ */ React2.createElement(MadCoreProviders, { config, type: "stack" }, /* @__PURE__ */ React2.createElement(Stack.Navigator, __spreadProps(__spreadValues({}, props), { initialRouteName: CoreRoutes.LOGIN }), /* @__PURE__ */ React2.createElement(Stack.Group, { navigationKey: `auth-session-${authSessionGeneration}` }, config.login.addScreenManually !== true && /* @__PURE__ */ React2.createElement(
232
249
  Stack.Screen,
233
250
  {
234
251
  name: CoreRoutes.LOGIN,
235
252
  component: LoginScreen,
236
253
  options: getDefaultScreenOptionsForLoginScreen()
237
254
  }
238
- ), /* @__PURE__ */ React2.createElement(Stack.Screen, { name: CoreRoutes.RELEASE_NOTES, component: ReleaseNotesScreen }), /* @__PURE__ */ React2.createElement(Stack.Screen, { name: CoreRoutes.WHATS_NEW, component: WhatsNewScreen }), config.about && /* @__PURE__ */ React2.createElement(Stack.Screen, { name: CoreRoutes.ABOUT, component: AboutScreen }), config.serviceNow && /* @__PURE__ */ React2.createElement(Stack.Screen, { name: CoreRoutes.FEEDBACK, component: CreateIncidentScreen }), config.language.supportedLanguages.length > 1 && /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(
255
+ ), /* @__PURE__ */ React2.createElement(
256
+ Stack.Screen,
257
+ {
258
+ name: CoreRoutes.RELEASE_NOTES,
259
+ component: ReleaseNotesScreen
260
+ }
261
+ ), /* @__PURE__ */ React2.createElement(Stack.Screen, { name: CoreRoutes.WHATS_NEW, component: WhatsNewScreen }), config.about && /* @__PURE__ */ React2.createElement(Stack.Screen, { name: CoreRoutes.ABOUT, component: AboutScreen }), config.serviceNow && /* @__PURE__ */ React2.createElement(
262
+ Stack.Screen,
263
+ {
264
+ name: CoreRoutes.FEEDBACK,
265
+ component: CreateIncidentScreen
266
+ }
267
+ ), config.language.supportedLanguages.length > 1 && /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(
239
268
  Stack.Screen,
240
269
  {
241
270
  name: CoreRoutes.SELECT_LANGUAGE,
@@ -248,7 +277,7 @@ var createMadCoreStackNavigator = (Stack) => {
248
277
  component: SelectLanguageScreen,
249
278
  options: { headerLeft: () => null }
250
279
  }
251
- )), props.children));
280
+ )), props.children)));
252
281
  }
253
282
  return MadCoreNavigator;
254
283
  };
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-FF6LGZNJ.js";
4
4
  import {
5
5
  useScreenTitleFromDictionary
6
- } from "./chunk-KB3M7X3Q.js";
6
+ } from "./chunk-27KFGUGY.js";
7
7
  import {
8
8
  useNavigateFromLanguageSelectScreen
9
- } from "./chunk-75UZ4BR5.js";
9
+ } from "./chunk-INA5ANZO.js";
10
10
  import {
11
11
  useDictionary,
12
12
  useLanguage
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  useNavigateFromLoginScreen
3
- } from "./chunk-JADYNBGN.js";
3
+ } from "./chunk-HADLUP7M.js";
4
+ import {
5
+ rearmAuthSession
6
+ } from "./chunk-R2XOBAJJ.js";
4
7
  import {
5
8
  useAuthConfig,
6
9
  useDictionary,
@@ -32,6 +35,7 @@ var LoginScreen = ({
32
35
  const resizeMode = Platform.OS === "web" ? "contain" : "cover";
33
36
  const loginButtonProps = __spreadProps(__spreadValues({}, authConfig), {
34
37
  onAuthenticationSuccessful: (result, type) => {
38
+ rearmAuthSession();
35
39
  setUsername(result.account.username, result.account.identifier);
36
40
  if (type === "AUTOMATIC") {
37
41
  void track(metricKeys.AUTHENTICATION_AUTOMATIC);
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-OCWASWDK.js";
7
7
  import {
8
8
  useScreenTitleFromDictionary
9
- } from "./chunk-KB3M7X3Q.js";
9
+ } from "./chunk-27KFGUGY.js";
10
10
  import {
11
11
  useReleaseNotes
12
12
  } from "./chunk-4T3WL5EN.js";
@@ -0,0 +1,13 @@
1
+ import {
2
+ resetCancelledSession
3
+ } from "./chunk-Z4YHNPXU.js";
4
+
5
+ // src/authenticate.ts
6
+ import { ExpoAuthSession } from "@equinor/mad-auth";
7
+ var authenticate = (scopes) => ExpoAuthSession.authenticate(scopes, {
8
+ onAuthenticationCancelled: resetCancelledSession
9
+ });
10
+
11
+ export {
12
+ authenticate
13
+ };
@@ -0,0 +1,27 @@
1
+ // src/store/auth-session/auth-session.ts
2
+ import { create } from "zustand";
3
+ import { devtools } from "zustand/middleware";
4
+ var useAuthSessionStore = create()(
5
+ devtools(
6
+ (set) => ({
7
+ generation: 0,
8
+ invalidated: false,
9
+ invalidate: () => set(
10
+ (state) => state.invalidated ? state : { generation: state.generation + 1, invalidated: true }
11
+ ),
12
+ rearm: () => set({ invalidated: false })
13
+ }),
14
+ { name: "core/auth-session" }
15
+ )
16
+ );
17
+ var useAuthSessionGeneration = () => useAuthSessionStore((state) => state.generation);
18
+ var getIsAuthSessionInvalidated = () => useAuthSessionStore.getState().invalidated;
19
+ var invalidateAuthSession = () => useAuthSessionStore.getState().invalidate();
20
+ var rearmAuthSession = () => useAuthSessionStore.getState().rearm();
21
+
22
+ export {
23
+ useAuthSessionGeneration,
24
+ getIsAuthSessionInvalidated,
25
+ invalidateAuthSession,
26
+ rearmAuthSession
27
+ };
File without changes
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MadCoreSubHeader
3
- } from "./chunk-BVS4TEYU.js";
3
+ } from "./chunk-ZJMIK3ZV.js";
4
4
 
5
5
  // src/components/navigation/navigation-creators.ts
6
6
  import {
@@ -1,15 +1,15 @@
1
+ import {
2
+ useSignOut
3
+ } from "./chunk-4KSJR7E5.js";
1
4
  import {
2
5
  SettingsSection
3
6
  } from "./chunk-YKLMUKP4.js";
4
- import {
5
- useSignOut
6
- } from "./chunk-HPDK6AZ3.js";
7
7
  import {
8
8
  getFinalSettingsConfig
9
9
  } from "./chunk-QLL6LKDN.js";
10
10
  import {
11
11
  useScreenTitleFromDictionary
12
- } from "./chunk-KB3M7X3Q.js";
12
+ } from "./chunk-27KFGUGY.js";
13
13
  import {
14
14
  useAccountOrDemoAccount
15
15
  } from "./chunk-LEWQGDM7.js";
@@ -0,0 +1,25 @@
1
+ import {
2
+ getIsAuthSessionInvalidated,
3
+ invalidateAuthSession
4
+ } from "./chunk-R2XOBAJJ.js";
5
+ import {
6
+ disableDemoMode
7
+ } from "./chunk-UZ6YMQV2.js";
8
+
9
+ // src/store/auth-session/resetCancelledSession.ts
10
+ import { ExpoAuthSession } from "@equinor/mad-auth";
11
+ var cancelledSessionReset = null;
12
+ var resetCancelledSession = () => {
13
+ if (cancelledSessionReset) return cancelledSessionReset;
14
+ if (getIsAuthSessionInvalidated()) return Promise.resolve();
15
+ disableDemoMode();
16
+ invalidateAuthSession();
17
+ cancelledSessionReset = Promise.resolve().then(() => ExpoAuthSession.signOut()).then(() => void 0).catch(() => void 0).finally(() => {
18
+ cancelledSessionReset = null;
19
+ });
20
+ return cancelledSessionReset;
21
+ };
22
+
23
+ export {
24
+ resetCancelledSession
25
+ };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ServiceMessageBanner
3
- } from "./chunk-3DTLRMAR.js";
4
- import {
5
- EnvironmentBanner
6
- } from "./chunk-URFHQEDR.js";
3
+ } from "./chunk-6QNZQ6OY.js";
7
4
  import {
8
5
  OfflineBanner
9
6
  } from "./chunk-HYW645OK.js";
7
+ import {
8
+ EnvironmentBanner
9
+ } from "./chunk-URFHQEDR.js";
10
10
 
11
11
  // src/components/navigation/MadCoreSubHeader.tsx
12
12
  import React from "react";
@@ -110,7 +110,7 @@ export declare const createStackCoreNavigator: <T extends ParamListBase>(config:
110
110
  keyboardHandlingEnabled?: boolean;
111
111
  freezeOnBlur?: boolean;
112
112
  autoHideHomeIndicator?: boolean;
113
- } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/stack").StackNavigationEventMap>, import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>>>;
113
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/stack").StackNavigationEventMap>, { [Name in keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>]: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, Name>; }[keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>]>>;
114
114
  children: React.ReactNode;
115
115
  }) => React.ReactElement) | undefined;
116
116
  screenListeners?: Partial<{
@@ -295,7 +295,7 @@ export declare const createStackCoreNavigator: <T extends ParamListBase>(config:
295
295
  preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
296
296
  }>, "beforeRemove", true>;
297
297
  }> | ((props: {
298
- route: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>;
298
+ route: { [Name in keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>]: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, Name>; }[keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>];
299
299
  navigation: (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T];
300
300
  }) => Partial<{
301
301
  transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
@@ -513,7 +513,7 @@ export declare const createStackCoreNavigator: <T extends ParamListBase>(config:
513
513
  freezeOnBlur?: boolean;
514
514
  autoHideHomeIndicator?: boolean;
515
515
  } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | ((props: {
516
- route: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>;
516
+ route: { [Name in keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>]: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, Name>; }[keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>];
517
517
  navigation: (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T];
518
518
  theme: ReactNavigation.Theme;
519
519
  }) => Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
@@ -768,7 +768,7 @@ export declare const createNativeStackCoreNavigator: <T extends ParamListBase>(c
768
768
  }> & {
769
769
  type: "stack";
770
770
  preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
771
- }, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap>, import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>>>;
771
+ }, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap>, { [Name in keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>]: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, Name>; }[keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>]>>;
772
772
  children: React.ReactNode;
773
773
  }) => React.ReactElement) | undefined;
774
774
  screenListeners?: Partial<{
@@ -933,7 +933,7 @@ export declare const createNativeStackCoreNavigator: <T extends ParamListBase>(c
933
933
  preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
934
934
  }>, "beforeRemove", true>;
935
935
  }> | ((props: {
936
- route: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>;
936
+ route: { [Name in keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>]: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, Name>; }[keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>];
937
937
  navigation: (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T];
938
938
  }) => Partial<{
939
939
  transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
@@ -1098,7 +1098,7 @@ export declare const createNativeStackCoreNavigator: <T extends ParamListBase>(c
1098
1098
  }>, "beforeRemove", true>;
1099
1099
  }>) | undefined;
1100
1100
  screenOptions?: (import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | ((props: {
1101
- route: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>;
1101
+ route: { [Name in keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>]: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, Name>; }[keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>];
1102
1102
  navigation: (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T];
1103
1103
  theme: ReactNavigation.Theme;
1104
1104
  }) => import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | undefined;
@@ -1225,7 +1225,7 @@ export declare const createCoreStackNavigator: <T extends ParamListBase>(config:
1225
1225
  }> & {
1226
1226
  type: "stack";
1227
1227
  preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1228
- }, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap>, import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>>>;
1228
+ }, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap>, { [Name in keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>]: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, Name>; }[keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>]>>;
1229
1229
  children: React.ReactNode;
1230
1230
  }) => React.ReactElement) | undefined;
1231
1231
  screenListeners?: Partial<{
@@ -1390,7 +1390,7 @@ export declare const createCoreStackNavigator: <T extends ParamListBase>(config:
1390
1390
  preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1391
1391
  }>, "beforeRemove", true>;
1392
1392
  }> | ((props: {
1393
- route: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>;
1393
+ route: { [Name in keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>]: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, Name>; }[keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>];
1394
1394
  navigation: (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T];
1395
1395
  }) => Partial<{
1396
1396
  transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
@@ -1555,7 +1555,7 @@ export declare const createCoreStackNavigator: <T extends ParamListBase>(config:
1555
1555
  }>, "beforeRemove", true>;
1556
1556
  }>) | undefined;
1557
1557
  screenOptions?: (import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | ((props: {
1558
- route: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>;
1558
+ route: { [Name in keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>]: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, Name>; }[keyof CoreStackParamListBase | Extract<Extract<keyof T, string>, string>];
1559
1559
  navigation: (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T];
1560
1560
  theme: ReactNavigation.Theme;
1561
1561
  }) => import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | undefined;
@@ -2,71 +2,75 @@ import {
2
2
  createCoreStackNavigator,
3
3
  createNativeStackCoreNavigator,
4
4
  createStackCoreNavigator
5
- } from "../chunk-BFOEM4OQ.js";
6
- import "../chunk-GBEOV7WV.js";
5
+ } from "../chunk-B6AVRRLL.js";
7
6
  import "../chunk-AK7PA4BE.js";
8
- import "../chunk-RSHKFTQY.js";
9
- import "../chunk-YKLMUKP4.js";
10
- import "../chunk-3OKLIPZ5.js";
11
7
  import "../chunk-5GBNULIT.js";
12
- import "../chunk-HPDK6AZ3.js";
13
- import "../chunk-3WUJAVUO.js";
14
- import "../chunk-MTJ75ZLM.js";
8
+ import "../chunk-DGIAXVWS.js";
15
9
  import "../chunk-FF6LGZNJ.js";
16
- import "../chunk-VKFXR4QU.js";
10
+ import "../chunk-PQODWSOK.js";
11
+ import "../chunk-5HF72JIH.js";
17
12
  import "../chunk-XLQYZR5C.js";
13
+ import "../chunk-YOYEOAPW.js";
14
+ import "../chunk-4KSJR7E5.js";
15
+ import "../chunk-YKLMUKP4.js";
16
+ import "../chunk-3OKLIPZ5.js";
17
+ import "../chunk-3WUJAVUO.js";
18
18
  import "../chunk-2GCLIPZP.js";
19
- import "../chunk-3QGEQ4LV.js";
20
- import "../chunk-PMQPVI37.js";
21
- import "../chunk-CCWBP32I.js";
19
+ import "../chunk-YMZLQKMK.js";
20
+ import "../chunk-4TVVFWGM.js";
21
+ import "../chunk-LLYUBOEA.js";
22
+ import "../chunk-YBNZ6RXF.js";
22
23
  import "../chunk-5O4PAUNU.js";
23
- import "../chunk-BVS4TEYU.js";
24
- import "../chunk-3DTLRMAR.js";
24
+ import "../chunk-ZJMIK3ZV.js";
25
+ import "../chunk-6QNZQ6OY.js";
26
+ import "../chunk-SHKOH7MA.js";
25
27
  import "../chunk-XJX4HQF2.js";
26
28
  import "../chunk-YWPELSTX.js";
27
29
  import "../chunk-BDKB5ELS.js";
28
- import "../chunk-SHKOH7MA.js";
29
30
  import "../chunk-7VZFSMNG.js";
30
31
  import "../chunk-PQGICZTY.js";
31
32
  import "../chunk-VGZMOIYS.js";
32
33
  import "../chunk-OCWASWDK.js";
33
34
  import "../chunk-RGJ4RWVB.js";
34
35
  import "../chunk-QLL6LKDN.js";
35
- import "../chunk-JADYNBGN.js";
36
+ import "../chunk-HYW645OK.js";
37
+ import "../chunk-DEVBLCRV.js";
38
+ import "../chunk-NA7ZYOXW.js";
39
+ import "../chunk-HADLUP7M.js";
36
40
  import "../chunk-UVQ3Z5PG.js";
37
41
  import "../chunk-5BVQKJQB.js";
38
42
  import "../chunk-A4OAMNA3.js";
39
- import "../chunk-C7NJODNT.js";
43
+ import "../chunk-X33ICKCC.js";
40
44
  import "../chunk-WEUFP6WW.js";
41
- import "../chunk-KB3M7X3Q.js";
42
- import "../chunk-DEVBLCRV.js";
43
- import "../chunk-NA7ZYOXW.js";
45
+ import "../chunk-HZWBAKKL.js";
46
+ import "../chunk-HI7H4ACL.js";
47
+ import "../chunk-H73RAAWS.js";
48
+ import "../chunk-27KFGUGY.js";
49
+ import "../chunk-PP74MP4O.js";
50
+ import "../chunk-URFHQEDR.js";
51
+ import "../chunk-ZSXJVU5B.js";
52
+ import "../chunk-LZVFDNET.js";
53
+ import "../chunk-XCK6ZFYO.js";
54
+ import "../chunk-Q6MDFVOP.js";
55
+ import "../chunk-Z4YHNPXU.js";
56
+ import "../chunk-R2XOBAJJ.js";
57
+ import "../chunk-6F4PWJZI.js";
44
58
  import "../chunk-4T3WL5EN.js";
45
59
  import "../chunk-4DXH3SPN.js";
46
60
  import "../chunk-5FMD2ENO.js";
47
61
  import "../chunk-LNJQIWAH.js";
48
62
  import "../chunk-GUKC6UGZ.js";
49
63
  import "../chunk-LEWQGDM7.js";
50
- import "../chunk-75UZ4BR5.js";
51
- import "../chunk-TGYT7TUP.js";
52
- import "../chunk-BIMOM43W.js";
53
- import "../chunk-6F4PWJZI.js";
54
- import "../chunk-PP74MP4O.js";
55
- import "../chunk-URFHQEDR.js";
56
- import "../chunk-ZSXJVU5B.js";
57
- import "../chunk-LZVFDNET.js";
58
- import "../chunk-XCK6ZFYO.js";
59
- import "../chunk-HYW645OK.js";
60
- import "../chunk-HZWBAKKL.js";
61
- import "../chunk-HI7H4ACL.js";
62
- import "../chunk-H73RAAWS.js";
63
64
  import "../chunk-CCVKLLIO.js";
64
65
  import "../chunk-UZ6YMQV2.js";
66
+ import "../chunk-INA5ANZO.js";
67
+ import "../chunk-TGYT7TUP.js";
65
68
  import "../chunk-WWNTKXBS.js";
66
69
  import "../chunk-45SUJ4GS.js";
67
70
  import "../chunk-MODG2KVN.js";
68
71
  import "../chunk-UKAZW3CQ.js";
69
72
  import "../chunk-2OMVVDBU.js";
73
+ import "../chunk-BIMOM43W.js";
70
74
  import "../chunk-CWMXXUWU.js";
71
75
  export {
72
76
  createCoreStackNavigator,