@equinor/fusion-framework-plugin-context-navigation 0.1.1 → 0.1.2
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/adapters/create-path-adapter.js +5 -1
- package/dist/esm/adapters/create-path-adapter.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/adapters/create-path-adapter.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +5 -5
|
@@ -37,11 +37,15 @@ export function createPathAdapter() {
|
|
|
37
37
|
* Accepts apps with explicit `'path'` strategy or no declared strategy
|
|
38
38
|
* (the path adapter serves as the system-wide default fallback).
|
|
39
39
|
*/
|
|
40
|
-
canHandle({ appContext, routingStrategy }) {
|
|
40
|
+
canHandle({ appContext, routingStrategy, currentURL }) {
|
|
41
41
|
// Custom generators mean the app owns its URL shape — the custom adapter handles it, not us
|
|
42
42
|
if (hasCustomContextGenerators(appContext)) {
|
|
43
43
|
return false;
|
|
44
44
|
}
|
|
45
|
+
// Not an app route (e.g. portal chrome) — nothing for this adapter to encode context into
|
|
46
|
+
if (!parseAppRoute(currentURL.pathname)) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
45
49
|
const declared = routingStrategy;
|
|
46
50
|
// App explicitly opted into path-segment routing — take ownership
|
|
47
51
|
if (declared === 'path') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-path-adapter.js","sourceRoot":"","sources":["../../../src/adapters/create-path-adapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,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