@jsenv/navi 0.30.1 → 0.30.4
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/dev/jsenv_navi.js +289 -119
- package/dist/dev/jsenv_navi.js.map +15 -13
- package/dist/jsenv_navi.js +289 -119
- package/dist/jsenv_navi.js.map +15 -13
- package/docs/dialog_shape.md +3 -0
- package/docs/navigation.md +10 -7
- package/docs/scroll.md +8 -0
- package/package.json +1 -1
package/docs/dialog_shape.md
CHANGED
|
@@ -55,6 +55,9 @@ covers anything else behind that sheet. Once back on top it answers the screen
|
|
|
55
55
|
as it is: at once when the focus landed on a field, since the keyboard stays;
|
|
56
56
|
once the keyboard has left otherwise, so it never jumps up and back down. What
|
|
57
57
|
sits under a non-modal dialog is still usable, and keeps following the keyboard.
|
|
58
|
+
A `layer="top"` `Popover` covered by a modal dialog is held the same way, but it
|
|
59
|
+
holds nothing itself: it may be anchored inside what is below it, and what is
|
|
60
|
+
below rising is what carries a field in the popover above the keyboard.
|
|
58
61
|
|
|
59
62
|
## One dialog, two shapes
|
|
60
63
|
|
package/docs/navigation.md
CHANGED
|
@@ -578,19 +578,22 @@ so, and a page brought in stands where the reader is looking; what is lost is
|
|
|
578
578
|
**The URL can say where the hand is heading, not where the reader is.** For a page
|
|
579
579
|
that is not there yet, a page of a window or a tab never visited, it changes once
|
|
580
580
|
the hand has really pulled, and comes back if the page is let go of. A tab already
|
|
581
|
-
built waits for the
|
|
582
|
-
|
|
583
|
-
|
|
581
|
+
built waits for the finger to lift. A link to a page of the row answers for the page
|
|
582
|
+
held while the hand holds it, whatever the URL says. A counter, a title or a
|
|
583
|
+
breadcrumb around the box reads `routeTravelSettledPageSignal` first, or it moves
|
|
584
|
+
for a pull that goes nowhere:
|
|
584
585
|
|
|
585
586
|
```jsx
|
|
586
587
|
const settledPage = routeTravelSettledPageSignal.value;
|
|
587
588
|
const shownId = settledPage ? settledPage.params.gameId : currentId;
|
|
588
589
|
```
|
|
589
590
|
|
|
590
|
-
It holds the `{ route, params }` the hand set off from, and is `null`
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
591
|
+
It holds the `{ route, params }` the hand set off from, and is `null` from the moment
|
|
592
|
+
a lifted finger leaves the row moving, the URL being the truth again: the row is only
|
|
593
|
+
playing out what the browser decided. A trackpad has no lift, so there it lasts until
|
|
594
|
+
the row has come to rest, and a tab already built waits for that too. A tab pressed
|
|
595
|
+
holds nothing, and `null` is all it ever reads. One signal for the document: on a
|
|
596
|
+
page with several boxes, `route` says which row it is.
|
|
594
597
|
|
|
595
598
|
`RouteTravel` is for pages that form a ROW the finger can push; pages related
|
|
596
599
|
pair by pair are animated with `defineRouteTransition`, and a given pair by one
|
package/docs/scroll.md
CHANGED
|
@@ -254,6 +254,14 @@ list warns in dev when the second is missing:
|
|
|
254
254
|
A row selected during the search does not hold the view: emptying the search
|
|
255
255
|
takes the list back to where it was, which may be nowhere near that row.
|
|
256
256
|
|
|
257
|
+
The offset is given back once, in the frame after the search empties, and then
|
|
258
|
+
forgotten. A list under a `display: none` at that moment cannot scroll, so it has
|
|
259
|
+
nowhere to put it: shown again, it stands at its start, and the `navi_scroll` of
|
|
260
|
+
that restore carries no `item`. It does not wait to be shown, because the user
|
|
261
|
+
may have moved on by then, and an old offset would surprise them more than the
|
|
262
|
+
start of the list. A list that is only out of view still gets its offset back. To
|
|
263
|
+
keep the place across a hide, empty the search once the list is shown again.
|
|
264
|
+
|
|
257
265
|
### Loading: two different situations
|
|
258
266
|
|
|
259
267
|
`loading` (with `loadingFallback`, `loadingSkeletonCount`, `renderSkeleton`)
|