@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.
- package/dist/esm/NavigationConfigurator.js +2 -2
- package/dist/esm/NavigationConfigurator.js.map +1 -1
- package/dist/esm/NavigationProvider.js +2 -2
- package/dist/esm/NavigationProvider.js.map +1 -1
- package/dist/esm/enable-navigation.js +1 -1
- package/dist/esm/enable-navigation.js.map +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/BaseHistory.js +1 -1
- package/dist/esm/lib/BaseHistory.js.map +1 -1
- package/dist/esm/lib/BrowserHistory.js +6 -6
- package/dist/esm/lib/BrowserHistory.js.map +1 -1
- package/dist/esm/lib/BrowserHistoryHashStack.js +2 -2
- package/dist/esm/lib/BrowserHistoryHashStack.js.map +1 -1
- package/dist/esm/lib/BrowserHistoryStack.js +1 -1
- package/dist/esm/lib/BrowserHistoryStack.js.map +1 -1
- package/dist/esm/lib/MemoryHistory.js +5 -5
- package/dist/esm/lib/MemoryHistory.js.map +1 -1
- package/dist/esm/lib/MemoryHistoryStack.js +1 -1
- package/dist/esm/lib/MemoryHistoryStack.js.map +1 -1
- package/dist/esm/lib/create-history.js +4 -4
- package/dist/esm/lib/create-history.js.map +1 -1
- package/dist/esm/lib/index.js +7 -7
- package/dist/esm/lib/index.js.map +1 -1
- package/dist/esm/lib/state/check-blockers.js +2 -2
- package/dist/esm/lib/state/check-blockers.js.map +1 -1
- package/dist/esm/lib/state/create-flow.js +1 -1
- package/dist/esm/lib/state/create-flow.js.map +1 -1
- package/dist/esm/lib/state/create-history-reducer.js +1 -1
- package/dist/esm/lib/state/create-history-reducer.js.map +1 -1
- package/dist/esm/lib/state/create-store.js +3 -3
- package/dist/esm/lib/state/create-store.js.map +1 -1
- package/dist/esm/lib/state/flow-creators.js +4 -4
- package/dist/esm/lib/state/flow-creators.js.map +1 -1
- package/dist/esm/lib/state/go.js +2 -2
- package/dist/esm/lib/state/go.js.map +1 -1
- package/dist/esm/lib/state/index.js +3 -3
- package/dist/esm/lib/state/index.js.map +1 -1
- package/dist/esm/lib/state/navigate.js +3 -3
- package/dist/esm/lib/state/navigate.js.map +1 -1
- package/dist/esm/lib/state/pop.js +2 -2
- package/dist/esm/lib/state/pop.js.map +1 -1
- package/dist/esm/lib/state/validate-current-location.js +2 -2
- package/dist/esm/lib/state/validate-current-location.js.map +1 -1
- package/dist/esm/lib/utils/index.js +5 -5
- package/dist/esm/lib/utils/index.js.map +1 -1
- package/dist/esm/lib/utils/path-to-string.js +1 -1
- package/dist/esm/lib/utils/path-to-string.js.map +1 -1
- package/dist/esm/lib/utils/path-to-url.js +3 -3
- package/dist/esm/lib/utils/path-to-url.js.map +1 -1
- package/dist/esm/lib/utils/resolve-browser-location.js +1 -1
- package/dist/esm/lib/utils/resolve-browser-location.js.map +1 -1
- package/dist/esm/lib/utils/resolve-hash-location.js +2 -2
- package/dist/esm/lib/utils/resolve-hash-location.js.map +1 -1
- package/dist/esm/lib/utils/resolve-path.js +1 -1
- package/dist/esm/lib/utils/resolve-path.js.map +1 -1
- package/dist/esm/lib/utils/resolve-window-location.js +1 -1
- package/dist/esm/lib/utils/resolve-window-location.js.map +1 -1
- package/dist/esm/module.js +3 -3
- package/dist/esm/module.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/NavigateEvent.d.ts +3 -3
- package/dist/types/NavigatedEvent.d.ts +2 -2
- package/dist/types/NavigationConfigurator.d.ts +2 -2
- package/dist/types/NavigationConfigurator.interface.d.ts +1 -1
- package/dist/types/NavigationProvider.d.ts +3 -3
- package/dist/types/NavigationProvider.interface.d.ts +2 -2
- package/dist/types/enable-navigation.d.ts +1 -1
- package/dist/types/index.d.ts +11 -11
- package/dist/types/lib/BaseHistory.d.ts +2 -2
- package/dist/types/lib/BrowserHistory.d.ts +2 -2
- package/dist/types/lib/BrowserHistoryHashStack.d.ts +2 -2
- package/dist/types/lib/BrowserHistoryStack.d.ts +1 -1
- package/dist/types/lib/MemoryHistory.d.ts +2 -2
- package/dist/types/lib/MemoryHistoryStack.d.ts +1 -1
- package/dist/types/lib/ProxyHistory.d.ts +2 -2
- package/dist/types/lib/create-history.d.ts +2 -2
- package/dist/types/lib/index.d.ts +8 -8
- package/dist/types/lib/state/actions.d.ts +1 -1
- package/dist/types/lib/state/check-blockers.d.ts +1 -1
- package/dist/types/lib/state/create-flow.d.ts +1 -1
- package/dist/types/lib/state/create-history-reducer.d.ts +5 -5
- package/dist/types/lib/state/create-store.d.ts +4 -4
- package/dist/types/lib/state/flow-creators.d.ts +4 -4
- package/dist/types/lib/state/go.d.ts +1 -1
- package/dist/types/lib/state/history.state.d.ts +2 -2
- package/dist/types/lib/state/index.d.ts +4 -4
- package/dist/types/lib/state/navigate.d.ts +2 -2
- package/dist/types/lib/state/pop.d.ts +1 -1
- package/dist/types/lib/state/validate-current-location.d.ts +1 -1
- package/dist/types/lib/types.d.ts +1 -1
- package/dist/types/lib/utils/index.d.ts +5 -5
- package/dist/types/lib/utils/path-to-string.d.ts +1 -1
- package/dist/types/lib/utils/path-to-url.d.ts +1 -1
- package/dist/types/lib/utils/resolve-browser-location.d.ts +1 -1
- package/dist/types/lib/utils/resolve-hash-location.d.ts +1 -1
- package/dist/types/lib/utils/resolve-path.d.ts +1 -1
- package/dist/types/lib/utils/resolve-window-location.d.ts +1 -1
- package/dist/types/module.d.ts +2 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +14 -9
- package/CHANGELOG.md +0 -600
- package/src/NavigateEvent.ts +0 -47
- package/src/NavigatedEvent.ts +0 -35
- package/src/NavigationConfigurator.interface.ts +0 -41
- package/src/NavigationConfigurator.ts +0 -226
- package/src/NavigationProvider.interface.ts +0 -99
- package/src/NavigationProvider.ts +0 -436
- package/src/__tests__/BrowserHistory.test.ts +0 -151
- package/src/__tests__/HashHistory.test.ts +0 -121
- package/src/__tests__/MemoryHistory.test.ts +0 -185
- package/src/__tests__/NavigationProvider.test.ts +0 -302
- package/src/__tests__/ProxyHistory.test.ts +0 -149
- package/src/__tests__/setup.ts +0 -8
- package/src/enable-navigation.ts +0 -60
- package/src/index.ts +0 -51
- package/src/lib/BaseHistory.ts +0 -255
- package/src/lib/BrowserHistory.ts +0 -124
- package/src/lib/BrowserHistoryHashStack.ts +0 -57
- package/src/lib/BrowserHistoryStack.ts +0 -96
- package/src/lib/MemoryHistory.ts +0 -76
- package/src/lib/MemoryHistoryStack.ts +0 -118
- package/src/lib/ProxyHistory.ts +0 -145
- package/src/lib/create-history.ts +0 -58
- package/src/lib/index.ts +0 -33
- package/src/lib/state/actions.ts +0 -108
- package/src/lib/state/check-blockers.ts +0 -52
- package/src/lib/state/create-flow.ts +0 -36
- package/src/lib/state/create-history-reducer.ts +0 -77
- package/src/lib/state/create-store.ts +0 -39
- package/src/lib/state/flow-creators.ts +0 -7
- package/src/lib/state/go.ts +0 -20
- package/src/lib/state/history.state.ts +0 -14
- package/src/lib/state/index.ts +0 -4
- package/src/lib/state/navigate.ts +0 -58
- package/src/lib/state/pop.ts +0 -24
- package/src/lib/state/validate-current-location.ts +0 -33
- package/src/lib/types.ts +0 -190
- package/src/lib/utils/encode-trailing-whitespace.ts +0 -18
- package/src/lib/utils/has-protocol.ts +0 -21
- package/src/lib/utils/index.ts +0 -5
- package/src/lib/utils/path-to-string.ts +0 -24
- package/src/lib/utils/path-to-url.ts +0 -52
- package/src/lib/utils/resolve-browser-location.ts +0 -1
- package/src/lib/utils/resolve-hash-location.ts +0 -26
- package/src/lib/utils/resolve-path.ts +0 -22
- package/src/lib/utils/resolve-window-location.ts +0 -24
- package/src/module.ts +0 -80
- package/src/version.ts +0 -2
- package/tsconfig.json +0 -24
- 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
|
/**
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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,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,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,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("
|
|
86
|
-
options: import("
|
|
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,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,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 +1 @@
|
|
|
1
|
-
export { resolveWindowLocation } from './resolve-window-location';
|
|
1
|
+
export { resolveWindowLocation } from './resolve-window-location.js';
|
package/dist/types/module.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "7.0.
|
|
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.
|
|
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
|
}
|