@jsenv/navi 0.29.51 → 0.29.52

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/docs/scroll.md CHANGED
@@ -158,6 +158,11 @@ picked up then. When it is still not the box you mean, say so explicitly with
158
158
  it asks for the row BY NAME, then puts it back by MEASURING it, so it lands
159
159
  where it was even if rows were inserted before it, and whatever the screen it
160
160
  was saved on. That is "reopen a thread where I left it", already provided.
161
+ `offset` is counted from where the row lands on its own — past the scroller's
162
+ `scroll-padding` (the room a fixed bar publishes) and the row's own
163
+ `scroll-margin` (the sticky header, the group label above it) — so `offset: 0`
164
+ is exactly where `scrollIntoView()` would put it and none of that room has to
165
+ be restated as a number.
161
166
  - **`scrolled`** is the controlled form of the same thing — same pair as
162
167
  `open`/`defaultOpen` elsewhere in navi. The list goes back there every time it
163
168
  changes, even after the user scrolled.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/navi",
3
- "version": "0.29.51",
3
+ "version": "0.29.52",
4
4
  "type": "module",
5
5
  "description": "Library of components including navigation to create frontend applications",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "prepublishOnly": "npm run build"
30
30
  },
31
31
  "dependencies": {
32
- "@jsenv/dom": "0.17.16",
32
+ "@jsenv/dom": "0.17.17",
33
33
  "@jsenv/humanize": "1.7.8",
34
34
  "@jsenv/validity": "0.4.2"
35
35
  },