bun-plugin-stx 0.2.327 → 0.2.328
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.
|
@@ -1463,7 +1463,7 @@ else {
|
|
|
1463
1463
|
if(!target||!target.focus)return;
|
|
1464
1464
|
// The container is not naturally focusable. tabindex="-1" makes it
|
|
1465
1465
|
// programmatically focusable without inserting it into the tab order.
|
|
1466
|
-
if(!target.hasAttribute('tabindex'))target.setAttribute('tabindex','-1');
|
|
1466
|
+
if(!target.hasAttribute('tabindex')){target.setAttribute('tabindex','-1');target.setAttribute('data-stx-route-focus','')}
|
|
1467
1467
|
// preventScroll because scroll position is already decided just above \u2014
|
|
1468
1468
|
// focusing would otherwise fight scrollToTop and the hash scrollIntoView.
|
|
1469
1469
|
try{target.focus({preventScroll:true})}catch(e){try{target.focus()}catch(e2){}}
|
|
@@ -2656,7 +2656,10 @@ else {
|
|
|
2656
2656
|
var sanitize=function(v){return String(v).replace(/[;{}()"'\\\\<>\\n\\r\\t]/g,'')};
|
|
2657
2657
|
var pc=sanitize(o.progressColor);
|
|
2658
2658
|
var ph=sanitize(o.progressHeight);
|
|
2659
|
-
|
|
2659
|
+
// The container the router focuses after a navigation is not a
|
|
2660
|
+
// control, so it draws no focus ring: Safari drew one around the whole
|
|
2661
|
+
// page, a blue line along its bottom edge on every screen.
|
|
2662
|
+
var css='[data-stx-route-focus]:focus{outline:none}.stx-navigating{cursor:wait}.stx-navigating a,.stx-navigating button{pointer-events:none}#stx-router-progress{position:fixed;top:0;left:0;right:0;height:'+ph+';background:'+pc+';box-shadow:0 0 8px '+pc+',0 0 4px '+pc+';transform:scaleX(0);transform-origin:left;transition:transform .18s ease-out,opacity .26s ease;opacity:0;pointer-events:none;z-index:999999}';
|
|
2660
2663
|
if(o.viewTransitions&&'startViewTransition' in document){
|
|
2661
2664
|
var dur=(o.viewTransitionDuration||220)+'ms';
|
|
2662
2665
|
var ease=o.viewTransitionEasing||'cubic-bezier(0.16, 1, 0.3, 1)';
|
package/dist/serve.js
CHANGED
|
@@ -9791,7 +9791,7 @@ function __stxOverlay(errs){
|
|
|
9791
9791
|
rebuildDiscoveredPagePaths(kept);
|
|
9792
9792
|
await indexPageMiddleware(kept);
|
|
9793
9793
|
try {
|
|
9794
|
-
const { Router } = await import("./chunk-
|
|
9794
|
+
const { Router } = await import("./chunk-qwanqbhx.js");
|
|
9795
9795
|
const pagesDirs = patterns.map((p) => p.replace(/\/$/, "")).filter(Boolean);
|
|
9796
9796
|
const router = new Router(process19.cwd(), { pagesDirs, stateDir: stateDirName(), exclude: options.exclude });
|
|
9797
9797
|
if (!options.quiet)
|
package/package.json
CHANGED