@jsenv/navi 0.30.36 → 0.30.38
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 +69 -21
- package/dist/dev/jsenv_navi.js.map +5 -5
- package/dist/jsenv_navi.js +69 -21
- package/dist/jsenv_navi.js.map +5 -5
- package/docs/resource.md +4 -0
- package/docs/scroll.md +6 -0
- package/package.json +1 -1
package/docs/resource.md
CHANGED
|
@@ -536,6 +536,10 @@ const ORDER = resource("order", {
|
|
|
536
536
|
<Button action={ORDER.cancel.bindParams({ id })}>Cancel</Button>;
|
|
537
537
|
```
|
|
538
538
|
|
|
539
|
+
A write's name is its own: never a verb's, in any case (`post`, `Patch`,
|
|
540
|
+
`get_many`…), nor a member the resource already exposes (`store`, `one`,
|
|
541
|
+
`scopedMany`, `withParams`…). Declaring the resource throws otherwise.
|
|
542
|
+
|
|
539
543
|
`ORDER.cancel` is an action beside the verbs: its own loading and error on the
|
|
540
544
|
button that runs it, held by the network policy as its `verb`, and answered as
|
|
541
545
|
that verb is (a `PATCH` returns the item, which is upserted). Its `rerunOn` says
|
package/docs/scroll.md
CHANGED
|
@@ -756,6 +756,12 @@ browser, at no cost per element. Hand-written in JS the same suppression takes
|
|
|
756
756
|
three handlers — once `mouseenter` has been swallowed, only `mousemove` can
|
|
757
757
|
bring the hover back.
|
|
758
758
|
|
|
759
|
+
End the selector on what it styles, as `.my_row` does here. A rule ending on
|
|
760
|
+
`*` (`[navi-scrolling] *`, or `.my_row:is([navi-scrolling] *)`) gives Chrome
|
|
761
|
+
nothing to narrow to: it restyles every element under the scroller, the whole
|
|
762
|
+
document when the page scrolls, once as each scroll starts and again as it
|
|
763
|
+
stops.
|
|
764
|
+
|
|
759
765
|
The page scroll carries the attribute on `document.scrollingElement`, so an
|
|
760
766
|
ancestor rule covers it too. In JS the same fact reads as `isScrolling()` /
|
|
761
767
|
`isScrolling(element)`, or `scrollActivitySignal` to react to it.
|