@jsenv/navi 0.29.518 → 0.29.519

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.
@@ -409,9 +409,8 @@ this element's to block.
409
409
  A greyed cross that still removes is worse than no cross — hence the default.
410
410
  `"ignore"` is the other extreme and the caller owns it: answering "read-only" to
411
411
  a gesture that was never going to write says nothing true, so use it only when
412
- that is really the case. navi's `<Dialog.Close />` is one — leaving what a
413
- read-only picker opened writes nothing to it — and a hand-written cross must say
414
- the same, or it refuses the way out (see
412
+ that is really the case. A way out needs no claim: a button saying `--navi-close`
413
+ or `--navi-cancel` with no action is not reached by the zone at all (see
415
414
  [popup_open.md](./popup_open.md#the-close-cross)).
416
415
 
417
416
  Busy is not on the list because busy does not block: it is the read-only a
@@ -139,8 +139,9 @@ stays pressable — a travel between slides or a step back in a wizard
139
139
  "Cancel", `ButtonCopyToClipboard`) — and so is a way out (`--navi-close`,
140
140
  `--navi-cancel`). The same goes for what a held control holds: a `Link` in the
141
141
  popup of a held `Picker` still leads to its page. The form's own read-only and
142
- busy state hold them all the same; `whenSelfInteractionsBlocked="ignore"` is what
143
- takes a button out of those too.
142
+ busy state hold them all the same, a way out apart;
143
+ `whenSelfInteractionsBlocked="ignore"` is what takes any other button out of those
144
+ too.
144
145
 
145
146
  ## Holding writes while reads go out
146
147
 
@@ -657,22 +657,14 @@ The text of the row is the popup's title, and so its name (see
657
657
 
658
658
  ### It is the way out, so the state around it does not reach it
659
659
 
660
- **A close button written by hand refuses the press inside a read-only control.**
661
- A read-only `Picker` still opens, to be read, and hands its popup that same
662
- read-only. Closing writes nothing to the picker, and `<Dialog.Close />` says so
663
- (`whenSelfInteractionsBlocked="ignore"`, see
664
- [interactions.md](./interactions.md#where-the-zone-blocks-does-it-write-to-the-control-it-sits-in));
665
- a `<Button command="--navi-close" />` does not, wears the read-only it was
666
- handed, and answers a press aimed at the way out with "this action is not
667
- available right now". The same holds for a disabled zone and for a form busy
668
- sending: the way out of a popup is never held by the state of what the popup
669
- belongs to. A cross that really has to be hand-written carries the claim itself:
670
-
671
- ```jsx
672
- <Button command="--navi-close" icon whenSelfInteractionsBlocked="ignore">
673
- …
674
- </Button>
675
- ```
660
+ **The way out of a popup is never held by the state of what the popup belongs
661
+ to.** A read-only `Picker` still opens, to be read, and hands its popup that same
662
+ read-only, yet closing writes nothing to the picker. So a button or a link saying
663
+ `--navi-close` or `--navi-cancel`, with no `action` of its own, stays pressable
664
+ in a read-only, disabled or busy zone, written by hand or not, the same as
665
+ `<Dialog.Close />`. The picker agrees: one that turns read-only, disabled or busy
666
+ while its popup is open still lets it close, `openWhileReadOnly={false}` included,
667
+ since that prop is about opening.
676
668
 
677
669
  ### It asks, it does not force
678
670
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/navi",
3
- "version": "0.29.518",
3
+ "version": "0.29.519",
4
4
  "type": "module",
5
5
  "description": "Library of components including navigation to create frontend applications",
6
6
  "repository": {