@equinor/fusion-framework-module-navigation 7.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/esm/NavigationConfigurator.js +29 -6
- package/dist/esm/NavigationConfigurator.js.map +1 -1
- package/dist/esm/lib/ProxyHistory.js +114 -0
- package/dist/esm/lib/ProxyHistory.js.map +1 -0
- package/dist/esm/lib/index.js +1 -0
- package/dist/esm/lib/index.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/NavigationConfigurator.d.ts +10 -1
- package/dist/types/lib/ProxyHistory.d.ts +68 -0
- package/dist/types/lib/index.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +5 -5
- package/src/NavigationConfigurator.ts +47 -15
- package/src/__tests__/ProxyHistory.test.ts +149 -0
- package/src/lib/ProxyHistory.ts +144 -0
- package/src/lib/index.ts +1 -0
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 7.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e97bba0: Add `ProxyHistory` to prevent shared `BrowserHistory` disposal when child apps tear down.
|
|
8
|
+
|
|
9
|
+
When a child app inherits the portal's history via `NavigationConfigurator`, the history is now
|
|
10
|
+
wrapped in a `ProxyHistory` that delegates all operations but keeps its own listener/blocker
|
|
11
|
+
teardown list. Disposing the proxy only cleans up proxy-owned subscriptions — the underlying
|
|
12
|
+
history remains intact.
|
|
13
|
+
|
|
14
|
+
`setHistory()` gains an optional `{ proxy }` flag (default: `true`) to control wrapping behavior.
|
|
15
|
+
|
|
16
|
+
Fixes: https://github.com/equinor/fusion-core-tasks/issues/1016
|
|
17
|
+
|
|
3
18
|
## 7.0.0
|
|
4
19
|
|
|
5
20
|
### Major Changes
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { of } from 'rxjs';
|
|
2
|
+
import { of, from } from 'rxjs';
|
|
3
|
+
import { map } from 'rxjs/operators';
|
|
3
4
|
import { BaseConfigBuilder, } from '@equinor/fusion-framework-module';
|
|
4
5
|
import { createHistory } from './lib/create-history';
|
|
6
|
+
import { ProxyHistory } from './lib/ProxyHistory';
|
|
5
7
|
/**
|
|
6
8
|
* Zod schema for navigation module configuration validation.
|
|
7
9
|
*
|
|
@@ -51,13 +53,16 @@ export class NavigationConfigurator extends BaseConfigBuilder {
|
|
|
51
53
|
this.setHistory(async (args) => {
|
|
52
54
|
const history = args.ref?.navigation?.history;
|
|
53
55
|
if (history) {
|
|
54
|
-
|
|
56
|
+
// Wrap the provided history in a ProxyHistory to ensure the module can manage its own teardowns without affecting the original instance.
|
|
57
|
+
return new ProxyHistory(history);
|
|
55
58
|
}
|
|
56
59
|
if (typeof window !== 'undefined') {
|
|
57
60
|
return createHistory('browser');
|
|
58
61
|
}
|
|
59
62
|
return createHistory('memory');
|
|
60
|
-
}
|
|
63
|
+
},
|
|
64
|
+
// Don't wrap the default history in a ProxyHistory since it's already owned by the module and will be properly disposed.
|
|
65
|
+
{ proxy: false });
|
|
61
66
|
}
|
|
62
67
|
/**
|
|
63
68
|
* @deprecated Use `setBasename()` method instead
|
|
@@ -93,12 +98,30 @@ export class NavigationConfigurator extends BaseConfigBuilder {
|
|
|
93
98
|
/**
|
|
94
99
|
* Sets a custom history instance for the navigation module.
|
|
95
100
|
*
|
|
101
|
+
* By default the resolved history is wrapped in a {@link ProxyHistory} so the
|
|
102
|
+
* module gets its own disposable handle without owning (or accidentally
|
|
103
|
+
* disposing) the original instance. Set `proxy` to `false` to use the
|
|
104
|
+
* history as-is.
|
|
105
|
+
*
|
|
96
106
|
* @param historyOrCallback - History instance or configuration callback
|
|
107
|
+
* @param options - Optional settings for history wrapping
|
|
108
|
+
* @param options.proxy - Wrap the history in a {@link ProxyHistory} (default: `true`)
|
|
97
109
|
* @returns The configurator instance for method chaining
|
|
98
110
|
*/
|
|
99
|
-
setHistory(historyOrCallback) {
|
|
100
|
-
const
|
|
101
|
-
|
|
111
|
+
setHistory(historyOrCallback, options) {
|
|
112
|
+
const { proxy = true } = options ?? {};
|
|
113
|
+
const resolve = typeof historyOrCallback === 'function'
|
|
114
|
+
? historyOrCallback
|
|
115
|
+
: // Normalize a direct instance to a callback for consistent handling.
|
|
116
|
+
async () => historyOrCallback;
|
|
117
|
+
if (proxy) {
|
|
118
|
+
// Wrap each emitted history in a ProxyHistory so dispose only tears down
|
|
119
|
+
// proxy-owned listeners/blockers, never the underlying history itself.
|
|
120
|
+
this._set('history', (args) => from(resolve(args)).pipe(map((history) => (history ? new ProxyHistory(history) : undefined))));
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
this._set('history', resolve);
|
|
124
|
+
}
|
|
102
125
|
return this;
|
|
103
126
|
}
|
|
104
127
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationConfigurator.js","sourceRoot":"","sources":["../../src/NavigationConfigurator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,EAAE,EAAwB,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"NavigationConfigurator.js","sourceRoot":"","sources":["../../src/NavigationConfigurator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAwB,MAAM,MAAM,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EACL,iBAAiB,GAIlB,MAAM,kCAAkC,CAAC;AAM1C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,oB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
|
+
* A lightweight proxy that delegates every {@link History} operation to an
|
|
4
|
+
* underlying target instance.
|
|
5
|
+
*
|
|
6
|
+
* Use this when you need to pass a conforming `History` object whose backing
|
|
7
|
+
* implementation can be swapped or is not yet available at construction time,
|
|
8
|
+
* or when you want a thin indirection layer without subclassing
|
|
9
|
+
* {@link BaseHistory}.
|
|
10
|
+
*
|
|
11
|
+
* The proxy does **not** own the underlying history; disposing it only tears
|
|
12
|
+
* down subscriptions and blockers registered through the proxy itself.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const browser = createHistory('browser');
|
|
17
|
+
* const proxy = new ProxyHistory(browser);
|
|
18
|
+
* proxy.push('/dashboard'); // delegates to browser.push
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export class ProxyHistory {
|
|
22
|
+
/** The underlying history instance all calls are forwarded to. */
|
|
23
|
+
#target;
|
|
24
|
+
/** Teardowns owned by this proxy, cleaned up on dispose. */
|
|
25
|
+
#teardowns = new Subscription();
|
|
26
|
+
/**
|
|
27
|
+
* @param target - The history instance to delegate all operations to
|
|
28
|
+
*/
|
|
29
|
+
constructor(target) {
|
|
30
|
+
this.#target = target;
|
|
31
|
+
}
|
|
32
|
+
/** @inheritdoc */
|
|
33
|
+
get state$() {
|
|
34
|
+
return this.#target.state$;
|
|
35
|
+
}
|
|
36
|
+
/** @inheritdoc */
|
|
37
|
+
get action$() {
|
|
38
|
+
return this.#target.action$;
|
|
39
|
+
}
|
|
40
|
+
/** @inheritdoc */
|
|
41
|
+
get action() {
|
|
42
|
+
return this.#target.action;
|
|
43
|
+
}
|
|
44
|
+
/** @inheritdoc */
|
|
45
|
+
get location() {
|
|
46
|
+
return this.#target.location;
|
|
47
|
+
}
|
|
48
|
+
/** @inheritdoc */
|
|
49
|
+
createHref(to) {
|
|
50
|
+
return this.#target.createHref(to);
|
|
51
|
+
}
|
|
52
|
+
/** @inheritdoc */
|
|
53
|
+
createURL(to) {
|
|
54
|
+
return this.#target.createURL(to);
|
|
55
|
+
}
|
|
56
|
+
/** @inheritdoc */
|
|
57
|
+
encodeLocation(to) {
|
|
58
|
+
return this.#target.encodeLocation(to);
|
|
59
|
+
}
|
|
60
|
+
/** @inheritdoc */
|
|
61
|
+
push(to, state) {
|
|
62
|
+
this.#target.push(to, state);
|
|
63
|
+
}
|
|
64
|
+
/** @inheritdoc */
|
|
65
|
+
replace(to, state) {
|
|
66
|
+
this.#target.replace(to, state);
|
|
67
|
+
}
|
|
68
|
+
/** @inheritdoc */
|
|
69
|
+
navigate(to, options) {
|
|
70
|
+
this.#target.navigate(to, options);
|
|
71
|
+
}
|
|
72
|
+
/** @inheritdoc */
|
|
73
|
+
go(delta) {
|
|
74
|
+
this.#target.go(delta);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Triggers a POP action on the underlying history to notify framework
|
|
78
|
+
* listeners (e.g. React Router) after programmatic navigation.
|
|
79
|
+
*
|
|
80
|
+
* Delegates to the target's `pop()` when it is a {@link BaseHistory}
|
|
81
|
+
* instance; otherwise this is a no-op.
|
|
82
|
+
*/
|
|
83
|
+
pop() {
|
|
84
|
+
if ('pop' in this.#target && typeof this.#target.pop === 'function') {
|
|
85
|
+
this.#target.pop();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/** @inheritdoc */
|
|
89
|
+
listen(listener) {
|
|
90
|
+
const unlisten = this.#target.listen(listener);
|
|
91
|
+
this.#teardowns.add(unlisten);
|
|
92
|
+
return () => {
|
|
93
|
+
unlisten();
|
|
94
|
+
this.#teardowns.remove(unlisten);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
/** @inheritdoc */
|
|
98
|
+
block(blocker) {
|
|
99
|
+
const unblock = this.#target.block(blocker);
|
|
100
|
+
this.#teardowns.add(unblock);
|
|
101
|
+
return () => {
|
|
102
|
+
unblock();
|
|
103
|
+
this.#teardowns.remove(unblock);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Disposes all listeners and blockers registered through this proxy.
|
|
108
|
+
* Does **not** dispose the underlying history.
|
|
109
|
+
*/
|
|
110
|
+
[Symbol.dispose]() {
|
|
111
|
+
this.#teardowns.unsubscribe();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=ProxyHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProxyHistory.js","sourceRoot":"","sources":["../../../src/lib/ProxyHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAepC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,YAAY;IACvB,kEAAkE;IACzD,OAAO,CAAU;IAE1B,4DAA4D;IACnD,UAAU,GAAG,IAAI,YAAY,EAAE,CAAC;IAEzC;;OAEG;IACH,YAAY,MAAe;QACzB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,kBAAkB;IAClB,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,kBAAkB;IAClB,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IAC9B,CAAC;IAED,kBAAkB;IAClB,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,kBAAkB;IAClB,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC/B,CAAC;IAED,kBAAkB;IAClB,UAAU,CAAC,EAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,kBAAkB;IAClB,SAAS,CAAC,EAAM;QACd,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACpC,CAAC;IAED,kBAAkB;IAClB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AK,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC7B,OAAO,GAAG,EAAE;YACV,OAAO,EAAE,CAAC;YACV,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC;QACd,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;CACF"}
|
package/dist/esm/lib/index.js
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
export { BaseHistory } from './BaseHistory';
|
|
12
12
|
export { BrowserHistory } from './BrowserHistory';
|
|
13
13
|
export { MemoryHistory } from './MemoryHistory';
|
|
14
|
+
export { ProxyHistory } from './ProxyHistory';
|
|
14
15
|
// History stacks
|
|
15
16
|
export { BrowserHistoryStack } from './BrowserHistoryStack';
|
|
16
17
|
export { BrowserHistoryHashStack as HashHistoryStack } from './BrowserHistoryHashStack';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,0BAA0B;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,0BAA0B;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,iBAAiB;AACjB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/esm/version.js
CHANGED