@equinor/fusion-framework-plugin-context-navigation 1.0.0 → 1.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/dist/esm/__tests__/create-path-adapter.test.js +31 -0
- package/dist/esm/__tests__/create-path-adapter.test.js.map +1 -0
- package/dist/esm/adapters/create-path-adapter.js +9 -6
- package/dist/esm/adapters/create-path-adapter.js.map +1 -1
- package/dist/esm/utils/url/index.js +1 -0
- package/dist/esm/utils/url/index.js.map +1 -1
- package/dist/esm/utils/url/resolve-route-tail.js +21 -0
- package/dist/esm/utils/url/resolve-route-tail.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/__tests__/create-path-adapter.test.d.ts +2 -0
- package/dist/types/__tests__/create-path-adapter.test.d.ts.map +1 -0
- package/dist/types/adapters/create-path-adapter.d.ts.map +1 -1
- package/dist/types/utils/url/index.d.ts +1 -0
- package/dist/types/utils/url/index.d.ts.map +1 -1
- package/dist/types/utils/url/resolve-route-tail.d.ts +14 -0
- package/dist/types/utils/url/resolve-route-tail.d.ts.map +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-path-adapter.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/create-path-adapter.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-path-adapter.d.ts","sourceRoot":"","sources":["../../../src/adapters/create-path-adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAA4B,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"create-path-adapter.d.ts","sourceRoot":"","sources":["../../../src/adapters/create-path-adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAA4B,MAAM,SAAS,CAAC;AAQlF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,IAAI,wBAAwB,CA2E5D"}
|
|
@@ -4,5 +4,6 @@ export { buildAppRoute } from './build-app-route';
|
|
|
4
4
|
export { CONTEXT_QUERY_PARAM_KEY, UUID_PATTERN } from '../../constants';
|
|
5
5
|
export { stripContextQueryParam } from './strip-context-query-param';
|
|
6
6
|
export { resolveContextIdFromUrl } from './resolve-context-id-from-url';
|
|
7
|
+
export { resolveRouteTail } from './resolve-route-tail';
|
|
7
8
|
export { buildContextUrlForStrategy } from './build-context-url-for-strategy';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/url/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/url/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AppRouteMatch } from './parse-app-route';
|
|
2
|
+
/**
|
|
3
|
+
* Reconstructs the full sub-route tail from a parsed app route.
|
|
4
|
+
*
|
|
5
|
+
* `contextId` is a positional capture, not a verified context — when the URL has
|
|
6
|
+
* no active context that slot actually holds a route name (e.g. "settings" in
|
|
7
|
+
* `/apps/app/settings/general`). Folding it back into the tail prevents it from
|
|
8
|
+
* being silently discarded when a real context id is substituted into that slot.
|
|
9
|
+
*
|
|
10
|
+
* @param match - The `contextId`/`rest` segments from `parseAppRoute`.
|
|
11
|
+
* @returns The full sub-route tail, or `undefined` when there is none.
|
|
12
|
+
*/
|
|
13
|
+
export declare const resolveRouteTail: (match: Pick<AppRouteMatch, 'contextId' | 'rest'>) => string | undefined;
|
|
14
|
+
//# sourceMappingURL=resolve-route-tail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-route-tail.d.ts","sourceRoot":"","sources":["../../../../src/utils/url/resolve-route-tail.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,UACpB,IAAI,CAAC,aAAa,EAAE,WAAW,GAAG,MAAM,CAAC,KAC/C,MAAM,GAAG,SAOX,CAAC"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-plugin-context-navigation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Adapter-based context-to-URL reconciler for Fusion Framework portals",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"rxjs": "^7.8.1",
|
|
28
|
-
"@equinor/fusion-framework-module": "^6.1.2",
|
|
29
28
|
"@equinor/fusion-framework-module-app": "^8.0.4",
|
|
29
|
+
"@equinor/fusion-framework-module": "^6.1.2",
|
|
30
30
|
"@equinor/fusion-framework-module-event": "^6.0.1",
|
|
31
|
-
"@equinor/fusion-framework-module-
|
|
32
|
-
"@equinor/fusion-framework-module-
|
|
31
|
+
"@equinor/fusion-framework-module-context": "^8.0.3",
|
|
32
|
+
"@equinor/fusion-framework-module-navigation": "^7.0.7"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"rxjs": "^7.8.1",
|
|
36
36
|
"typescript": "^7.0.2",
|
|
37
37
|
"vitest": "^4.1.10",
|
|
38
|
-
"@equinor/fusion-framework-module": "^6.1.2",
|
|
39
|
-
"@equinor/fusion-framework-module-context": "^8.0.3",
|
|
40
38
|
"@equinor/fusion-framework-module-app": "^8.0.4",
|
|
41
39
|
"@equinor/fusion-framework-module-event": "^6.0.1",
|
|
42
|
-
"@equinor/fusion-framework-module
|
|
40
|
+
"@equinor/fusion-framework-module": "^6.1.2",
|
|
41
|
+
"@equinor/fusion-framework-module-navigation": "^7.0.7",
|
|
42
|
+
"@equinor/fusion-framework-module-context": "^8.0.3"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
45
|
"dist"
|