@equinor/fusion-framework-module-navigation 7.0.9 → 7.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/esm/NavigationConfigurator.js +2 -2
  2. package/dist/esm/NavigationConfigurator.js.map +1 -1
  3. package/dist/esm/NavigationProvider.js +2 -2
  4. package/dist/esm/NavigationProvider.js.map +1 -1
  5. package/dist/esm/enable-navigation.js +1 -1
  6. package/dist/esm/enable-navigation.js.map +1 -1
  7. package/dist/esm/index.js +7 -7
  8. package/dist/esm/index.js.map +1 -1
  9. package/dist/esm/lib/BaseHistory.js +1 -1
  10. package/dist/esm/lib/BaseHistory.js.map +1 -1
  11. package/dist/esm/lib/BrowserHistory.js +6 -6
  12. package/dist/esm/lib/BrowserHistory.js.map +1 -1
  13. package/dist/esm/lib/BrowserHistoryHashStack.js +2 -2
  14. package/dist/esm/lib/BrowserHistoryHashStack.js.map +1 -1
  15. package/dist/esm/lib/BrowserHistoryStack.js +1 -1
  16. package/dist/esm/lib/BrowserHistoryStack.js.map +1 -1
  17. package/dist/esm/lib/MemoryHistory.js +5 -5
  18. package/dist/esm/lib/MemoryHistory.js.map +1 -1
  19. package/dist/esm/lib/MemoryHistoryStack.js +1 -1
  20. package/dist/esm/lib/MemoryHistoryStack.js.map +1 -1
  21. package/dist/esm/lib/create-history.js +4 -4
  22. package/dist/esm/lib/create-history.js.map +1 -1
  23. package/dist/esm/lib/index.js +7 -7
  24. package/dist/esm/lib/index.js.map +1 -1
  25. package/dist/esm/lib/state/check-blockers.js +2 -2
  26. package/dist/esm/lib/state/check-blockers.js.map +1 -1
  27. package/dist/esm/lib/state/create-flow.js +1 -1
  28. package/dist/esm/lib/state/create-flow.js.map +1 -1
  29. package/dist/esm/lib/state/create-history-reducer.js +1 -1
  30. package/dist/esm/lib/state/create-history-reducer.js.map +1 -1
  31. package/dist/esm/lib/state/create-store.js +3 -3
  32. package/dist/esm/lib/state/create-store.js.map +1 -1
  33. package/dist/esm/lib/state/flow-creators.js +4 -4
  34. package/dist/esm/lib/state/flow-creators.js.map +1 -1
  35. package/dist/esm/lib/state/go.js +2 -2
  36. package/dist/esm/lib/state/go.js.map +1 -1
  37. package/dist/esm/lib/state/index.js +3 -3
  38. package/dist/esm/lib/state/index.js.map +1 -1
  39. package/dist/esm/lib/state/navigate.js +3 -3
  40. package/dist/esm/lib/state/navigate.js.map +1 -1
  41. package/dist/esm/lib/state/pop.js +2 -2
  42. package/dist/esm/lib/state/pop.js.map +1 -1
  43. package/dist/esm/lib/state/validate-current-location.js +2 -2
  44. package/dist/esm/lib/state/validate-current-location.js.map +1 -1
  45. package/dist/esm/lib/utils/index.js +5 -5
  46. package/dist/esm/lib/utils/index.js.map +1 -1
  47. package/dist/esm/lib/utils/path-to-string.js +1 -1
  48. package/dist/esm/lib/utils/path-to-string.js.map +1 -1
  49. package/dist/esm/lib/utils/path-to-url.js +3 -3
  50. package/dist/esm/lib/utils/path-to-url.js.map +1 -1
  51. package/dist/esm/lib/utils/resolve-browser-location.js +1 -1
  52. package/dist/esm/lib/utils/resolve-browser-location.js.map +1 -1
  53. package/dist/esm/lib/utils/resolve-hash-location.js +2 -2
  54. package/dist/esm/lib/utils/resolve-hash-location.js.map +1 -1
  55. package/dist/esm/lib/utils/resolve-path.js +1 -1
  56. package/dist/esm/lib/utils/resolve-path.js.map +1 -1
  57. package/dist/esm/lib/utils/resolve-window-location.js +1 -1
  58. package/dist/esm/lib/utils/resolve-window-location.js.map +1 -1
  59. package/dist/esm/module.js +3 -3
  60. package/dist/esm/module.js.map +1 -1
  61. package/dist/esm/version.js +1 -1
  62. package/dist/esm/version.js.map +1 -1
  63. package/dist/tsconfig.tsbuildinfo +1 -1
  64. package/dist/types/NavigateEvent.d.ts +3 -3
  65. package/dist/types/NavigatedEvent.d.ts +2 -2
  66. package/dist/types/NavigationConfigurator.d.ts +2 -2
  67. package/dist/types/NavigationConfigurator.interface.d.ts +1 -1
  68. package/dist/types/NavigationProvider.d.ts +3 -3
  69. package/dist/types/NavigationProvider.interface.d.ts +2 -2
  70. package/dist/types/enable-navigation.d.ts +1 -1
  71. package/dist/types/index.d.ts +11 -11
  72. package/dist/types/lib/BaseHistory.d.ts +2 -2
  73. package/dist/types/lib/BrowserHistory.d.ts +2 -2
  74. package/dist/types/lib/BrowserHistoryHashStack.d.ts +2 -2
  75. package/dist/types/lib/BrowserHistoryStack.d.ts +1 -1
  76. package/dist/types/lib/MemoryHistory.d.ts +2 -2
  77. package/dist/types/lib/MemoryHistoryStack.d.ts +1 -1
  78. package/dist/types/lib/ProxyHistory.d.ts +2 -2
  79. package/dist/types/lib/create-history.d.ts +2 -2
  80. package/dist/types/lib/index.d.ts +8 -8
  81. package/dist/types/lib/state/actions.d.ts +1 -1
  82. package/dist/types/lib/state/check-blockers.d.ts +1 -1
  83. package/dist/types/lib/state/create-flow.d.ts +1 -1
  84. package/dist/types/lib/state/create-history-reducer.d.ts +5 -5
  85. package/dist/types/lib/state/create-store.d.ts +4 -4
  86. package/dist/types/lib/state/flow-creators.d.ts +4 -4
  87. package/dist/types/lib/state/go.d.ts +1 -1
  88. package/dist/types/lib/state/history.state.d.ts +2 -2
  89. package/dist/types/lib/state/index.d.ts +4 -4
  90. package/dist/types/lib/state/navigate.d.ts +2 -2
  91. package/dist/types/lib/state/pop.d.ts +1 -1
  92. package/dist/types/lib/state/validate-current-location.d.ts +1 -1
  93. package/dist/types/lib/types.d.ts +1 -1
  94. package/dist/types/lib/utils/index.d.ts +5 -5
  95. package/dist/types/lib/utils/path-to-string.d.ts +1 -1
  96. package/dist/types/lib/utils/path-to-url.d.ts +1 -1
  97. package/dist/types/lib/utils/resolve-browser-location.d.ts +1 -1
  98. package/dist/types/lib/utils/resolve-hash-location.d.ts +1 -1
  99. package/dist/types/lib/utils/resolve-path.d.ts +1 -1
  100. package/dist/types/lib/utils/resolve-window-location.d.ts +1 -1
  101. package/dist/types/module.d.ts +2 -2
  102. package/dist/types/version.d.ts +1 -1
  103. package/package.json +14 -9
  104. package/CHANGELOG.md +0 -600
  105. package/src/NavigateEvent.ts +0 -47
  106. package/src/NavigatedEvent.ts +0 -35
  107. package/src/NavigationConfigurator.interface.ts +0 -41
  108. package/src/NavigationConfigurator.ts +0 -226
  109. package/src/NavigationProvider.interface.ts +0 -99
  110. package/src/NavigationProvider.ts +0 -436
  111. package/src/__tests__/BrowserHistory.test.ts +0 -151
  112. package/src/__tests__/HashHistory.test.ts +0 -121
  113. package/src/__tests__/MemoryHistory.test.ts +0 -185
  114. package/src/__tests__/NavigationProvider.test.ts +0 -302
  115. package/src/__tests__/ProxyHistory.test.ts +0 -149
  116. package/src/__tests__/setup.ts +0 -8
  117. package/src/enable-navigation.ts +0 -60
  118. package/src/index.ts +0 -51
  119. package/src/lib/BaseHistory.ts +0 -255
  120. package/src/lib/BrowserHistory.ts +0 -124
  121. package/src/lib/BrowserHistoryHashStack.ts +0 -57
  122. package/src/lib/BrowserHistoryStack.ts +0 -96
  123. package/src/lib/MemoryHistory.ts +0 -76
  124. package/src/lib/MemoryHistoryStack.ts +0 -118
  125. package/src/lib/ProxyHistory.ts +0 -145
  126. package/src/lib/create-history.ts +0 -58
  127. package/src/lib/index.ts +0 -33
  128. package/src/lib/state/actions.ts +0 -108
  129. package/src/lib/state/check-blockers.ts +0 -52
  130. package/src/lib/state/create-flow.ts +0 -36
  131. package/src/lib/state/create-history-reducer.ts +0 -77
  132. package/src/lib/state/create-store.ts +0 -39
  133. package/src/lib/state/flow-creators.ts +0 -7
  134. package/src/lib/state/go.ts +0 -20
  135. package/src/lib/state/history.state.ts +0 -14
  136. package/src/lib/state/index.ts +0 -4
  137. package/src/lib/state/navigate.ts +0 -58
  138. package/src/lib/state/pop.ts +0 -24
  139. package/src/lib/state/validate-current-location.ts +0 -33
  140. package/src/lib/types.ts +0 -190
  141. package/src/lib/utils/encode-trailing-whitespace.ts +0 -18
  142. package/src/lib/utils/has-protocol.ts +0 -21
  143. package/src/lib/utils/index.ts +0 -5
  144. package/src/lib/utils/path-to-string.ts +0 -24
  145. package/src/lib/utils/path-to-url.ts +0 -52
  146. package/src/lib/utils/resolve-browser-location.ts +0 -1
  147. package/src/lib/utils/resolve-hash-location.ts +0 -26
  148. package/src/lib/utils/resolve-path.ts +0 -22
  149. package/src/lib/utils/resolve-window-location.ts +0 -24
  150. package/src/module.ts +0 -80
  151. package/src/version.ts +0 -2
  152. package/tsconfig.json +0 -24
  153. package/vitest.config.ts +0 -14
@@ -1,6 +1,6 @@
1
1
  import { FrameworkEvent, type FrameworkEventInit } from '@equinor/fusion-framework-module-event';
2
- import type { INavigationProvider } from './NavigationProvider.interface';
3
- import type { NavigationUpdate, Path } from './lib/types';
2
+ import type { INavigationProvider } from './NavigationProvider.interface.js';
3
+ import type { NavigationUpdate, Path } from './lib/types.js';
4
4
  /** Event detail for navigation events (before navigation). */
5
5
  export interface NavigateEventDetail {
6
6
  /** The target path or location to navigate to */
@@ -31,6 +31,6 @@ declare module '@equinor/fusion-framework-module-event' {
31
31
  /** Event emitted before navigation occurs, can be canceled to prevent navigation */
32
32
  onNavigate: NavigateEvent;
33
33
  /** Event emitted after navigation occurs */
34
- onNavigated: import('./NavigatedEvent').NavigatedEvent;
34
+ onNavigated: import('./NavigatedEvent.js').NavigatedEvent;
35
35
  }
36
36
  }
@@ -1,6 +1,6 @@
1
1
  import { FrameworkEvent, type FrameworkEventInit } from '@equinor/fusion-framework-module-event';
2
- import type { INavigationProvider } from './NavigationProvider.interface';
3
- import type { Action, NavigationUpdate } from './lib/types';
2
+ import type { INavigationProvider } from './NavigationProvider.interface.js';
3
+ import type { Action, NavigationUpdate } from './lib/types.js';
4
4
  /** Event detail for navigated events (after navigation). */
5
5
  export interface NavigatedEventDetail {
6
6
  /** The navigation action that occurred (PUSH, POP, REPLACE) */
@@ -2,8 +2,8 @@ import { type ObservableInput } from 'rxjs';
2
2
  import { BaseConfigBuilder, type ConfigBuilderCallback, type ConfigBuilderCallbackArgs } from '@equinor/fusion-framework-module';
3
3
  import type { ITelemetryProvider } from '@equinor/fusion-framework-module-telemetry';
4
4
  import type { IEventModuleProvider } from '@equinor/fusion-framework-module-event';
5
- import type { INavigationConfigurator } from './NavigationConfigurator.interface';
6
- import type { History } from './lib/types';
5
+ import type { INavigationConfigurator } from './NavigationConfigurator.interface.js';
6
+ import type { History } from './lib/types.js';
7
7
  /**
8
8
  * Configurator class for navigation module settings.
9
9
  * Extends BaseConfigBuilder to provide fluent configuration API with Zod validation.
@@ -1,4 +1,4 @@
1
- import type { History } from './lib/types';
1
+ import type { History } from './lib/types.js';
2
2
  import type { ITelemetryProvider } from '@equinor/fusion-framework-module-telemetry';
3
3
  import type { IEventModuleProvider } from '@equinor/fusion-framework-module-event';
4
4
  /**
@@ -1,9 +1,9 @@
1
1
  import { type AgnosticRouteObject } from '@remix-run/router';
2
2
  import type { Observable } from 'rxjs';
3
3
  import { BaseModuleProvider, type BaseModuleProviderCtorArgs } from '@equinor/fusion-framework-module/provider';
4
- import type { INavigationProvider } from './NavigationProvider.interface';
5
- import type { INavigationConfigurator } from './NavigationConfigurator.interface';
6
- import type { History, NavigateOptions, NavigationUpdate, Path, To } from './lib/types';
4
+ import type { INavigationProvider } from './NavigationProvider.interface.js';
5
+ import type { INavigationConfigurator } from './NavigationConfigurator.interface.js';
6
+ import type { History, NavigateOptions, NavigationUpdate, Path, To } from './lib/types.js';
7
7
  /**
8
8
  * Navigation provider implementation.
9
9
  *
@@ -1,6 +1,6 @@
1
1
  import type { AgnosticRouteObject, Router } from '@remix-run/router';
2
- import type { History, NavigateOptions } from './lib/types';
3
- import type { Action, Path, To } from './lib/types';
2
+ import type { History, NavigateOptions } from './lib/types.js';
3
+ import type { Action, Path, To } from './lib/types.js';
4
4
  import type { Observable } from 'rxjs';
5
5
  import type { IModuleProvider } from '@equinor/fusion-framework-module';
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import type { IModulesConfigurator, ModuleConfigType } from '@equinor/fusion-framework-module';
2
- import { type NavigationModule } from './module';
2
+ import { type NavigationModule } from './module.js';
3
3
  /**
4
4
  * Helper function to enable the navigation module.
5
5
  *
@@ -21,17 +21,17 @@
21
21
  *
22
22
  * @packageDocumentation
23
23
  */
24
- export type { INavigationConfigurator } from './NavigationConfigurator.interface';
25
- export { NavigationConfigurator } from './NavigationConfigurator';
26
- export { NavigationModule, module, moduleKey } from './module';
27
- export { enableNavigation } from './enable-navigation';
28
- export type { INavigationProvider } from './NavigationProvider.interface';
29
- export { NavigationProvider } from './NavigationProvider';
30
- export { createHistory } from './lib/create-history';
31
- export { NavigateEvent, type NavigateEventDetail } from './NavigateEvent';
32
- export { NavigatedEvent, type NavigatedEventDetail } from './NavigatedEvent';
33
- export type { Path, To, Location, History, NavigationBlocker, NavigationListener, } from './lib/types';
24
+ export type { INavigationConfigurator } from './NavigationConfigurator.interface.js';
25
+ export { NavigationConfigurator } from './NavigationConfigurator.js';
26
+ export { NavigationModule, module, moduleKey } from './module.js';
27
+ export { enableNavigation } from './enable-navigation.js';
28
+ export type { INavigationProvider } from './NavigationProvider.interface.js';
29
+ export { NavigationProvider } from './NavigationProvider.js';
30
+ export { createHistory } from './lib/create-history.js';
31
+ export { NavigateEvent, type NavigateEventDetail } from './NavigateEvent.js';
32
+ export { NavigatedEvent, type NavigatedEventDetail } from './NavigatedEvent.js';
33
+ export type { Path, To, Location, History, NavigationBlocker, NavigationListener, } from './lib/types.js';
34
34
  /**
35
35
  * @deprecated Use {@link History} instead.
36
36
  */
37
- export type { History as INavigator } from './lib';
37
+ export type { History as INavigator } from './lib/index.js';
@@ -1,6 +1,6 @@
1
1
  import { Subscription } from 'rxjs';
2
- import type { Actions, HistoryState } from './state';
3
- import type { NavigateOptions, NavigationListener, Path, To, History, NavigationBlocker } from './types';
2
+ import type { Actions, HistoryState } from './state/index.js';
3
+ import type { NavigateOptions, NavigationListener, Path, To, History, NavigationBlocker } from './types.js';
4
4
  /**
5
5
  * Abstract base class for history implementations.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { BaseHistory } from './BaseHistory';
2
- import { type HistoryStack, type NavigationBlocker } from './types';
1
+ import { BaseHistory } from './BaseHistory.js';
2
+ import { type HistoryStack, type NavigationBlocker } from './types.js';
3
3
  /**
4
4
  * Constructor for a HistoryStack implementation.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { BrowserHistoryStack } from './BrowserHistoryStack';
2
- import type { Location, To } from './types';
1
+ import { BrowserHistoryStack } from './BrowserHistoryStack.js';
2
+ import type { Location, To } from './types.js';
3
3
  /**
4
4
  * Browser history hash stack implementation using hash-based routing.
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { HistoryStack, Location, To } from './types';
1
+ import type { HistoryStack, Location, To } from './types.js';
2
2
  /**
3
3
  * Browser history stack implementation using the native History API.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { type To, type NavigationUpdate } from './types';
2
- import { BaseHistory } from './BaseHistory';
1
+ import { type To, type NavigationUpdate } from './types.js';
2
+ import { BaseHistory } from './BaseHistory.js';
3
3
  /**
4
4
  * Options for configuring a MemoryHistory instance.
5
5
  */
@@ -1,4 +1,4 @@
1
- import type { HistoryStack, Location, LocationState, To } from './types';
1
+ import type { HistoryStack, Location, LocationState, To } from './types.js';
2
2
  /**
3
3
  * Memory-based history stack implementation.
4
4
  *
@@ -1,6 +1,6 @@
1
1
  import type { Observable } from 'rxjs';
2
- import type { History, NavigateOptions, NavigationBlocker, NavigationListener, NavigationUpdate, Path, To } from './types';
3
- import type { Actions } from './state/actions';
2
+ import type { History, NavigateOptions, NavigationBlocker, NavigationListener, NavigationUpdate, Path, To } from './types.js';
3
+ import type { Actions } from './state/actions.js';
4
4
  /**
5
5
  * A lightweight proxy that delegates every {@link History} operation to an
6
6
  * underlying target instance.
@@ -1,5 +1,5 @@
1
- import { MemoryHistory, type MemoryHistoryOptions } from './MemoryHistory';
2
- import { BrowserHistory, type BrowserHistoryOptions } from './BrowserHistory';
1
+ import { MemoryHistory, type MemoryHistoryOptions } from './MemoryHistory.js';
2
+ import { BrowserHistory, type BrowserHistoryOptions } from './BrowserHistory.js';
3
3
  type HistoryCtorMap = {
4
4
  memory: (options?: MemoryHistoryOptions) => MemoryHistory;
5
5
  browser: (options?: Omit<BrowserHistoryOptions, 'stack'>) => BrowserHistory;
@@ -7,11 +7,11 @@
7
7
  *
8
8
  * @packageDocumentation
9
9
  */
10
- export { BaseHistory } from './BaseHistory';
11
- export { BrowserHistory } from './BrowserHistory';
12
- export { MemoryHistory } from './MemoryHistory';
13
- export { ProxyHistory } from './ProxyHistory';
14
- export { BrowserHistoryStack } from './BrowserHistoryStack';
15
- export { BrowserHistoryHashStack as HashHistoryStack } from './BrowserHistoryHashStack';
16
- export { MemoryHistoryStack } from './MemoryHistoryStack';
17
- export type { Action, History, HistoryStack, Location, NavigateOptions, NavigationListener, NavigationUpdate, Path, To, } from './types';
10
+ export { BaseHistory } from './BaseHistory.js';
11
+ export { BrowserHistory } from './BrowserHistory.js';
12
+ export { MemoryHistory } from './MemoryHistory.js';
13
+ export { ProxyHistory } from './ProxyHistory.js';
14
+ export { BrowserHistoryStack } from './BrowserHistoryStack.js';
15
+ export { BrowserHistoryHashStack as HashHistoryStack } from './BrowserHistoryHashStack.js';
16
+ export { MemoryHistoryStack } from './MemoryHistoryStack.js';
17
+ export type { Action, History, HistoryStack, Location, NavigateOptions, NavigationListener, NavigationUpdate, Path, To, } from './types.js';
@@ -1,5 +1,5 @@
1
1
  import type { ActionTypes } from '@equinor/fusion-observable/actions';
2
- import type { To, NavigateOptions, NavigationBlocker, NavigationUpdate } from '../types';
2
+ import type { To, NavigateOptions, NavigationBlocker, NavigationUpdate } from '../types.js';
3
3
  /**
4
4
  * Navigation actions for history state management.
5
5
  */
@@ -1,3 +1,3 @@
1
- import type { HistoryFlowCreator } from './navigate';
1
+ import type { HistoryFlowCreator } from './navigate.js';
2
2
  /** Flow creator that gates navigation actions through registered blockers. */
3
3
  export declare const checkBlockers: HistoryFlowCreator;
@@ -1,4 +1,4 @@
1
- import type { HistoryFlowCreator } from './navigate';
1
+ import type { HistoryFlowCreator } from './navigate.js';
2
2
  /**
3
3
  * Creates a combined history flow from multiple flow creators.
4
4
  * @param flowCreators - Flow creators to combine.
@@ -1,4 +1,4 @@
1
- import type { LocationState, NavigationUpdate } from '../types';
1
+ import type { LocationState, NavigationUpdate } from '../types.js';
2
2
  /**
3
3
  * Creates a reducer for history state management.
4
4
  *
@@ -73,17 +73,17 @@ export declare const createHistoryReducer: (initial: NavigationUpdate | (() => L
73
73
  type: "navigation/navigationValidation::failure";
74
74
  } | {
75
75
  payload: {
76
- blocker: import("../types").NavigationBlocker;
76
+ blocker: import("../types.js").NavigationBlocker;
77
77
  };
78
78
  type: "navigation/addBlocker";
79
79
  } | {
80
80
  payload: {
81
- blocker: import("../types").NavigationBlocker;
81
+ blocker: import("../types.js").NavigationBlocker;
82
82
  };
83
83
  type: "navigation/removeBlocker";
84
84
  } | import("@equinor/fusion-observable").PayloadAction<{
85
- to: import("..").To;
86
- options: import("..").NavigateOptions;
85
+ to: import("../types.js").To;
86
+ options: import("../types.js").NavigateOptions;
87
87
  }, "navigation/navigate::request", {
88
88
  key: string;
89
89
  }, never>>;
@@ -1,8 +1,8 @@
1
1
  import { type ReducerWithInitialState } from '@equinor/fusion-observable';
2
- import { type Actions } from './actions';
3
- import type { HistoryFlowCreator } from './navigate';
4
- import type { HistoryStack, LocationState } from '../types';
5
- import type { HistoryState } from './history.state';
2
+ import { type Actions } from './actions.js';
3
+ import type { HistoryFlowCreator } from './navigate.js';
4
+ import type { HistoryStack, LocationState } from '../types.js';
5
+ import type { HistoryState } from './history.state.js';
6
6
  /**
7
7
  * Creates a history store with the specified stack and reducer.
8
8
  * @param stack - The history stack implementation.
@@ -1,7 +1,7 @@
1
1
  /** Collection of flow creators for history state management. */
2
2
  export declare const flowCreators: {
3
- navigate: import("./navigate").HistoryFlowCreator;
4
- go: import("./navigate").HistoryFlowCreator;
5
- pop: import("./navigate").HistoryFlowCreator;
6
- validateCurrentLocation: import("./navigate").HistoryFlowCreator;
3
+ navigate: import("./navigate.js").HistoryFlowCreator;
4
+ go: import("./navigate.js").HistoryFlowCreator;
5
+ pop: import("./navigate.js").HistoryFlowCreator;
6
+ validateCurrentLocation: import("./navigate.js").HistoryFlowCreator;
7
7
  };
@@ -1,3 +1,3 @@
1
- import type { HistoryFlowCreator } from './navigate';
1
+ import type { HistoryFlowCreator } from './navigate.js';
2
2
  /** Flow creator for handling go back and forward actions. */
3
3
  export declare const go: HistoryFlowCreator;
@@ -1,6 +1,6 @@
1
1
  import type { FlowState } from '@equinor/fusion-observable';
2
- import type { actions } from './actions';
3
- import type { HistoryStack, LocationState } from '../types';
2
+ import type { actions } from './actions.js';
3
+ import type { HistoryStack, LocationState } from '../types.js';
4
4
  /**
5
5
  * History state containing flow state and stack.
6
6
  */
@@ -1,4 +1,4 @@
1
- export { createStore } from './create-store';
2
- export type { HistoryState } from './history.state';
3
- export { createHistoryReducer } from './create-history-reducer';
4
- export { actions, type Actions } from './actions';
1
+ export { createStore } from './create-store.js';
2
+ export type { HistoryState } from './history.state.js';
3
+ export { createHistoryReducer } from './create-history-reducer.js';
4
+ export { actions, type Actions } from './actions.js';
@@ -1,6 +1,6 @@
1
1
  import type { Flow } from '@equinor/fusion-observable';
2
- import { type Actions } from './actions';
3
- import { type LocationState, type HistoryStack } from '../types';
2
+ import { type Actions } from './actions.js';
3
+ import { type LocationState, type HistoryStack } from '../types.js';
4
4
  /** History flow for processing navigation actions. */
5
5
  export type HistoryFlow = Flow<Actions, LocationState>;
6
6
  /** Factory function that creates a history flow from a stack. */
@@ -1,3 +1,3 @@
1
- import type { HistoryFlowCreator } from './navigate';
1
+ import type { HistoryFlowCreator } from './navigate.js';
2
2
  /** Flow creator for handling POP actions from browser navigation. */
3
3
  export declare const pop: HistoryFlowCreator;
@@ -1,3 +1,3 @@
1
- import type { HistoryFlowCreator } from './navigate';
1
+ import type { HistoryFlowCreator } from './navigate.js';
2
2
  /** Flow creator that validates the current stack location against reducer state. */
3
3
  export declare const validateCurrentLocation: HistoryFlowCreator;
@@ -1,5 +1,5 @@
1
1
  import type { Observable } from 'rxjs';
2
- import type { Actions } from './state/actions';
2
+ import type { Actions } from './state/actions.js';
3
3
  /**
4
4
  * Actions represent the type of change to a location value.
5
5
  */
@@ -1,5 +1,5 @@
1
- export { pathToString } from './path-to-string';
2
- export { pathToUrl } from './path-to-url';
3
- export { resolvePath } from './resolve-path';
4
- export { resolveWindowLocation } from './resolve-window-location';
5
- export { resolveHashLocation } from './resolve-hash-location';
1
+ export { pathToString } from './path-to-string.js';
2
+ export { pathToUrl } from './path-to-url.js';
3
+ export { resolvePath } from './resolve-path.js';
4
+ export { resolveWindowLocation } from './resolve-window-location.js';
5
+ export { resolveHashLocation } from './resolve-hash-location.js';
@@ -1,4 +1,4 @@
1
- import type { Path } from '../types';
1
+ import type { Path } from '../types.js';
2
2
  /**
3
3
  * Converts a Partial<Path> object to a path string.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { To } from '../types';
1
+ import type { To } from '../types.js';
2
2
  /**
3
3
  * Converts a path to a URL object.
4
4
  *
@@ -1 +1 @@
1
- export { resolveWindowLocation } from './resolve-window-location';
1
+ export { resolveWindowLocation } from './resolve-window-location.js';
@@ -1,4 +1,4 @@
1
- import type { Location } from '../types';
1
+ import type { Location } from '../types.js';
2
2
  /**
3
3
  * Resolves the current location from window.location.hash.
4
4
  * @param window - The window object to extract location from.
@@ -1,4 +1,4 @@
1
- import type { Path, To } from '../types';
1
+ import type { Path, To } from '../types.js';
2
2
  /**
3
3
  * Resolves a 'to' value into a Path object.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { Location } from '../types';
1
+ import type { Location } from '../types.js';
2
2
  /**
3
3
  * Resolves the current location from window.location.
4
4
  * @param window - The window object to extract location from.
@@ -1,6 +1,6 @@
1
1
  import { type Module } from '@equinor/fusion-framework-module';
2
- import { NavigationConfigurator } from './NavigationConfigurator';
3
- import type { INavigationProvider } from './NavigationProvider.interface';
2
+ import { NavigationConfigurator } from './NavigationConfigurator.js';
3
+ import type { INavigationProvider } from './NavigationProvider.interface.js';
4
4
  /**
5
5
  * Module key identifier for the navigation module.
6
6
  */
@@ -1 +1 @@
1
- export declare const version = "7.0.9";
1
+ export declare const version = "7.0.11";
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-module-navigation",
3
- "version": "7.0.9",
3
+ "version": "7.0.11",
4
4
  "description": "Navigation module for Fusion Framework providing routing and navigation capabilities using React Router 7",
5
+ "type": "module",
5
6
  "sideEffects": false,
6
7
  "main": "dist/esm/index.js",
7
8
  "types": "dist/types/index.d.ts",
@@ -22,6 +23,9 @@
22
23
  "keywords": [],
23
24
  "author": "",
24
25
  "license": "ISC",
26
+ "files": [
27
+ "dist"
28
+ ],
25
29
  "publishConfig": {
26
30
  "access": "public"
27
31
  },
@@ -36,22 +40,23 @@
36
40
  "zod": "^4.4.3"
37
41
  },
38
42
  "devDependencies": {
43
+ "@equinor/fusion-framework-module": "^6.1.5",
44
+ "@equinor/fusion-framework-module-event": "^6.1.2",
45
+ "@equinor/fusion-framework-module-telemetry": "^7.2.0",
46
+ "@equinor/fusion-observable": "^9.2.4",
39
47
  "jsdom": "^30.0.1",
40
48
  "rxjs": "^7.8.1",
41
49
  "typescript": "^7.0.2",
42
- "vitest": "^4.1.10",
43
- "@equinor/fusion-framework-module": "^6.1.3",
44
- "@equinor/fusion-framework-module-event": "^6.1.0",
45
- "@equinor/fusion-observable": "^9.2.1",
46
- "@equinor/fusion-framework-module-telemetry": "^7.1.0"
50
+ "vitest": "^4.1.10"
47
51
  },
48
52
  "peerDependencies": {
53
+ "@equinor/fusion-framework-module": "^6.1.5",
54
+ "@equinor/fusion-observable": "^9.2.4",
49
55
  "@remix-run/router": "^1.0.0",
50
- "rxjs": "^7.0.0",
51
- "@equinor/fusion-framework-module": "^6.1.3",
52
- "@equinor/fusion-observable": "^9.2.1"
56
+ "rxjs": "^7.0.0"
53
57
  },
54
58
  "scripts": {
59
+ "prebuild": "node ../../../.github/scripts/generate-versions.mjs",
55
60
  "build": "tsc -b",
56
61
  "test": "vitest"
57
62
  }