@jsenv/navi 0.29.484 → 0.29.486

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.
@@ -93,7 +93,10 @@ elsewhere and drops its translate, or it would land twice as far as the hand
93
93
  went. A handler that draws nothing (a token on a free canvas) leaves the position
94
94
  baked into the element; one whose draw comes later than its answer returns the
95
95
  promise of that draw. Something that changes WHILE it is dragged, or must never
96
- be translated, is [`moving`](#while-it-is-being-moved-moving).
96
+ be translated, is [`moving`](#while-it-is-being-moved-moving). A `transition` on
97
+ `translate` would animate every move of the hand, and the element would trail
98
+ behind it: a carried element transitions anything but `translate` — the way
99
+ back to its place navi animates itself.
97
100
 
98
101
  **Where it may go.** A `move` stays inside what one can SEE of its scroll
99
102
  container — the nearest ancestor whose `overflow` is `auto` or `scroll`, the
package/docs/i18n.md CHANGED
@@ -231,6 +231,19 @@ look up; the exhaustive list of keys and defaults is the registration block in
231
231
  registered by `@jsenv/humanize`. Both go into the one registry `naviI18n` is,
232
232
  so overriding either is the same call.
233
233
 
234
+ A key whose default holds forms — a message that counts characters, actions,
235
+ line breaks — is overridden with forms too, or the one string is said whatever
236
+ the count:
237
+
238
+ ```js
239
+ naviI18n.add("constraint.min_length.default", {
240
+ fr: {
241
+ 1: "Au moins [min] caractères (un seul pour l'instant).",
242
+ other: "Au moins [min] caractères ([count] pour l'instant).",
243
+ },
244
+ });
245
+ ```
246
+
234
247
  **Do not put application texts in `naviI18n`.** Key collisions aside, the two
235
248
  have different lifecycles: navi's keys come with the package version, the app's
236
249
  come with the app. The unit names it looks up are for rewording a unit navi or
@@ -784,6 +784,11 @@ scroll reads the same rule
784
784
  A link inside the popup follows the same rule: one to the same path with other
785
785
  search params leaves the popup open on the entry it pushes. A link whose press
786
786
  is a choice that ends the popup says so itself, with `command="--navi-close"`.
787
+ The close is part of the link's navigation: the popup is closed on the entry
788
+ the link leads to, and the entry it leaves still holds it open, so Back finds
789
+ it as the reader left it — what a link to another path gives without a command.
790
+ A press that navigates nowhere in this document (a modifier key asking for
791
+ another tab, a `target="_blank"`) closes it where it is.
787
792
 
788
793
  The two meet when the signal IS a route's: a search-param `stateSignal` given to
789
794
  `signal` puts the open state in the address itself, where a link can point at
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/navi",
3
- "version": "0.29.484",
3
+ "version": "0.29.486",
4
4
  "type": "module",
5
5
  "description": "Library of components including navigation to create frontend applications",
6
6
  "repository": {