stx-router 0.2.386 → 0.2.388
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 +3 -2
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -877,9 +877,10 @@ function routerSource() {
|
|
|
877
877
|
function tokenState(){var state={};state[SCROLL_TOKEN]=scrollToken;return state}
|
|
878
878
|
|
|
879
879
|
// Second arg accepts the legacy pushState boolean OR an options object
|
|
880
|
-
// { replace }. Callers inside this file still pass the boolean.
|
|
880
|
+
// { replace, instant }. Callers inside this file still pass the boolean.
|
|
881
|
+
// instant is what data-stx-transition="none" is to a link: no cross-fade.
|
|
881
882
|
function navigate(url,pushState,force){
|
|
882
|
-
if(pushState&&typeof pushState==='object')pushState=pushState.replace?'replace':true
|
|
883
|
+
if(pushState&&typeof pushState==='object'){if(pushState.instant)instantNext=true;pushState=pushState.replace?'replace':true}
|
|
883
884
|
// Lang-picker passes force=true with an already-localized path (/en/...).
|
|
884
885
|
// Re-localizing would map it back to the *current* locale and no-op.
|
|
885
886
|
if(!force) url=withCurrentLocale(url);
|
package/dist/types.d.ts
CHANGED
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.388",
|
|
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",
|