stx-router 0.2.741 → 0.2.743
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/client.js +5 -0
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -1293,6 +1293,11 @@ function routerSource() {
|
|
|
1293
1293
|
return fetch(url,init);
|
|
1294
1294
|
}
|
|
1295
1295
|
function navigate(url,pushState,force){
|
|
1296
|
+
// Tenant shells can keep their explicit scope on links and programmatic
|
|
1297
|
+
// navigation before the cache key, request and history entry are chosen.
|
|
1298
|
+
var destination={url:url};
|
|
1299
|
+
window.dispatchEvent(new CustomEvent('stx:before-navigate',{detail:destination}));
|
|
1300
|
+
url=destination.url;
|
|
1296
1301
|
releaseScrollHold();
|
|
1297
1302
|
winSnap=undefined;
|
|
1298
1303
|
var ctx=navCtxNext||{};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stx-router",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.743",
|
|
5
5
|
"description": "File-based router for STX — .stx template discovery, nested layouts, typed route params, middleware, and client-side SPA navigation.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|