@usableapp/cardds 0.7.28 → 0.7.29
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/CHANGELOG.md +5 -0
- package/dist/sheets/Sheet.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
> For: a project that consumes `@usableapp/cardds` and its AI — what changed between versions, written as before → after, so a screen can be brought up to date without reading the source. Newest first. A consumer never edits cardds; if something here leaves you without a way to do what you did before, report the gap.
|
|
4
4
|
|
|
5
|
+
## 0.7.29 — 2026-09-29
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- `Sheet`: lowered to peek by its handle and raised again, the field marked to take the cursor (`data-autofocus` — the open `SheetStep`'s first field, e.g. the first `Pin` cell) takes it back after the slide. Before: only the first arrival did; raised again, the cursor stayed on the handle (timebank login, Lh 2026-09-29). A field that already has the cursor keeps it. Nothing to change in a screen.
|
|
9
|
+
|
|
5
10
|
## 0.7.28 — 2026-09-29
|
|
6
11
|
|
|
7
12
|
### Added
|
package/dist/sheets/Sheet.js
CHANGED
|
@@ -80,7 +80,9 @@ export function Sheet({ state, defaultState = 'half', onStateChange, onSettled,
|
|
|
80
80
|
useEffect(() => {
|
|
81
81
|
if (current !== 'peek' && current !== 'away')
|
|
82
82
|
home.current = current;
|
|
83
|
-
|
|
83
|
+
const back = was.current === 'peek' && current !== 'peek' && current !== 'away' && !!ref.current?.querySelector('[data-autofocus]:not([inert] *)')
|
|
84
|
+
&& (!ref.current?.contains(document.activeElement) || document.activeElement === handleRef.current); // raised from peek by the handle: the marked field takes the cursor again (timebank login, Lh 2026-09-29) — never taken from a field that has it
|
|
85
|
+
if ((was.current === 'away' && current !== 'away') || back) { // it just came onto the screen: the cursor goes to what is marked to take it first (`data-autofocus` — a SheetSteps marks its open step's first field), else the handle, for the keyboard user
|
|
84
86
|
// …once it has finished sliding in (Lh 2026-09-24): the keyboard must not come up while the sheet still moves
|
|
85
87
|
const el = ref.current;
|
|
86
88
|
let done = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usableapp/cardds",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.29",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "card-first mobile design system, React-first: the components in src/ are thin wrappers over the CSS contract (css/*.css stays the only truth); gallery/ shows every story live (npm run dev), tests/ measures the geometry.",
|