@jsenv/navi 0.29.512 → 0.29.513

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.
@@ -37105,6 +37105,10 @@ const releaseTransitionDestination = (owner) => {
37105
37105
  * inside its rectangle — which is where the hand thinks it pressed. The same
37106
37106
  * move route_travel.jsx makes for the box a finger reaches for mid-flight.
37107
37107
  *
37108
+ * A `RouteTravel` holds this too. It leaves the bars live, so a control there
37109
+ * gets its click on its own; what this serves is a control in the part of a bar
37110
+ * photographed for the travel (`data-navi-fixed-bar-overhang`, fixed_bar.jsx).
37111
+ *
37108
37112
  * ASKED FOR, never derived, and that is the whole safety of it: only the
37109
37113
  * application knows the control does not move. One that travels with the pages
37110
37114
  * has a rectangle where it WILL be, not where it is seen, and a press handed to
@@ -40440,7 +40444,8 @@ const css$16 = /* css */`.navi_route_travel {
40440
40444
  * root's name is dropped for that time (`view-transition-name: none`), so what
40441
40445
  * stands around the box — a tab row beside it — stays live and answers a press
40442
40446
  * mid-travel. The application's own rule for the root applies again the moment
40443
- * the travel is over.
40447
+ * the travel is over. What stands out of a `FixedBar` is the exception, when it
40448
+ * asks to stay over the pages (see `data-navi-fixed-bar-overhang` there).
40444
40449
  */
40445
40450
  const RouteTravel = ({
40446
40451
  routes: routesProp,
@@ -40562,6 +40567,10 @@ const RouteTravel = ({
40562
40567
  // transition_destination.js).
40563
40568
  nameForTravel(travel.element);
40564
40569
  holdTransitionDestination(travel, page.route.buildUrl(page.params));
40570
+ // The bars stay live, except what one of them has photographed on its own
40571
+ // (see fixed_bar.jsx), which is deaf like any picture and may have asked to
40572
+ // keep answering.
40573
+ holdTransitionPress(travel, travel.element);
40565
40574
  document.documentElement.setAttribute(TRAVEL_ATTRIBUTE, direction);
40566
40575
  document.documentElement.setAttribute(TRAVEL_AXIS_ATTRIBUTE, axis);
40567
40576
  if (scrub) {
@@ -40981,6 +40990,7 @@ const RouteTravel = ({
40981
40990
  document.documentElement.removeAttribute(TURNED_ATTRIBUTE);
40982
40991
  releaseTransitionWindow(travel);
40983
40992
  releaseTransitionDestination(travel);
40993
+ releaseTransitionPress(travel);
40984
40994
  }
40985
40995
  };
40986
40996
 
@@ -56457,7 +56467,8 @@ const LinkPseudoElements = ["::-navi-loader", "::-navi-indicator"];
56457
56467
  * press on it is aimed at what the reader can see. Say it there, and only
56458
56468
  * there: a control that TRAVELS with the pages has a rectangle where it will
56459
56469
  * be, not where it is seen, and a press handed to it fires something nobody
56460
- * aimed at.
56470
+ * aimed at. A `RouteTravel` honours it as well, for a control in the part of
56471
+ * a `FixedBar` it photographs (`data-navi-fixed-bar-overhang`).
56461
56472
  * @param {boolean} [props.replace] - Go to the destination by TAKING THE PLACE
56462
56473
  * of the current history entry instead of stacking onto it: the link stays a
56463
56474
  * link (an address, a middle click, the keyboard, `aria-current`), only the
@@ -59068,6 +59079,7 @@ const css$Y = /* css */`@layer navi {
59068
59079
  }
59069
59080
 
59070
59081
  .navi_fixed_bar_shadow {
59082
+ z-index: -1;
59071
59083
  border-radius: inherit;
59072
59084
  box-shadow: var(--navi-fixed-bar-shadow);
59073
59085
  pointer-events: none;
@@ -59096,13 +59108,13 @@ const css$Y = /* css */`@layer navi {
59096
59108
  }
59097
59109
 
59098
59110
  @supports (view-transition-name: match-element) {
59099
- :root[data-navi-route-travel] .navi_fixed_bar_shadow {
59111
+ :root[data-navi-route-travel] .navi_fixed_bar_shadow, :root[data-navi-route-travel] [data-navi-fixed-bar-overhang] {
59100
59112
  view-transition-name: match-element;
59101
- view-transition-class: navi_fixed_bar_shadow;
59113
+ view-transition-class: navi_fixed_bar_over_pages;
59102
59114
  }
59103
59115
  }
59104
59116
 
59105
- :root[data-navi-route-travel-turned]::view-transition-group(.navi_fixed_bar_shadow) {
59117
+ :root[data-navi-route-travel-turned]::view-transition-group(.navi_fixed_bar_over_pages) {
59106
59118
  display: block;
59107
59119
  }
59108
59120
  `;
@@ -59159,6 +59171,13 @@ const FixedBarStyleCSSVars = {
59159
59171
  * Takes no room. Prefer it to a `boxShadow` or a `filter` on the bar: those
59160
59172
  * are covered by the pages while a `RouteTravel` plays, this one stays over
59161
59173
  * them.
59174
+ *
59175
+ * A child standing out of the bar's box (a raised button, the notch around it)
59176
+ * wears `data-navi-fixed-bar-overhang`: unmarked, the pages of a `RouteTravel`
59177
+ * cover it wherever they have paint behind it. Marked, it stays over them, and
59178
+ * like anything photographed it is deaf for the length of the travel —
59179
+ * `pressableDuringRouteTransition` on a control inside it keeps that control
59180
+ * answering. The rest of the bar stays live.
59162
59181
  */
59163
59182
  const FixedBar = ({
59164
59183
  children,
@@ -62412,7 +62431,8 @@ const COMMAND_DEFAULT_PROPS_FACTORIES = {
62412
62431
  * button in a bar the two states share, standing exactly where its picture is
62413
62432
  * drawn — must still close it. What `<Link pressableDuringRouteTransition>`
62414
62433
  * says, for the other half of a toggle. Only for a control that does not
62415
- * travel with the pages.
62434
+ * travel with the pages. A `RouteTravel` honours it as well, for a control in
62435
+ * the part of a `FixedBar` it photographs (`data-navi-fixed-bar-overhang`).
62416
62436
  * @param {Function} [action] What the press runs: a button holds no value, so
62417
62437
  * every press is one call. Inside a `<Form>` or a group it carries the value
62418
62438
  * around it, merged over the action's bound params — a value that is not an