@jsenv/navi 0.29.518 → 0.29.520
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 +65 -47
- package/dist/dev/jsenv_navi.js.map +10 -10
- package/dist/jsenv_navi.js +65 -47
- package/dist/jsenv_navi.js.map +10 -10
- package/docs/interactions.md +2 -3
- package/docs/network_policy.md +3 -2
- package/docs/popup_open.md +8 -16
- package/package.json +1 -1
package/docs/interactions.md
CHANGED
|
@@ -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.
|
|
413
|
-
|
|
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
|
package/docs/network_policy.md
CHANGED
|
@@ -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
|
|
143
|
-
takes
|
|
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
|
|
package/docs/popup_open.md
CHANGED
|
@@ -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
|
-
**
|
|
661
|
-
A read-only `Picker` still opens, to be read, and hands its popup that same
|
|
662
|
-
read-only
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
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
|
|