@usableapp/cardds 0.7.24 → 0.7.25
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/lint/rules.mjs +6 -5
- 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.25 — 2026-09-29
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- `cardds check` / ESLint `screen.bar-with-sheet` judged a whole exported function, so a component returning one of two screens (a summary with a bar, a choice with a sheet) was flagged. Now judged per `<Screen>` (timebank, 2026-09-29).
|
|
9
|
+
|
|
5
10
|
## 0.7.24 — 2026-09-29
|
|
6
11
|
|
|
7
12
|
### Changed
|
package/lint/rules.mjs
CHANGED
|
@@ -101,11 +101,12 @@ export function checkSource(source, file, { classes = carddsClasses() } = {}) {
|
|
|
101
101
|
// 3 · the screen: the bar is the Screen's bottom, never after it, never pinned; a sheet finishes on its own foot
|
|
102
102
|
for (const m of text.matchAll(/<\/Screen>\s*(?:\{[^}]*\}\s*)*<(ActionBar|FloatBar)\b/g)) add('screen.bar-outside', 'error', m.index, `${m[1]} after </Screen>: pass it as <Screen bottom={…}> — the screen's column lays it.`);
|
|
103
103
|
for (const m of text.matchAll(/<(ActionBar|FloatBar)\b[^>]*style=\{\{[^}]*\bposition\b/g)) add('screen.bar-pinned', 'error', m.index, `${m[1]} with a hand-set position: the screen's flex column places the bar.`);
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
// per SCREEN, not per file or export: a component may return one of two screens (a summary with a bar, a choice with a sheet)
|
|
105
|
+
for (const m of text.matchAll(/<Screen\b/g)) {
|
|
106
|
+
const end = text.indexOf('</Screen>', m.index);
|
|
107
|
+
const screen = text.slice(m.index, end < 0 ? text.length : end);
|
|
108
|
+
if (/<Sheet\b/.test(screen) && /<ActionBar\b/.test(screen)) add('screen.bar-with-sheet', 'warn', m.index, 'a Sheet and an ActionBar on one Screen — a screen with a sheet finishes on the sheet\'s CardFoot, no bar.');
|
|
109
|
+
}
|
|
109
110
|
|
|
110
111
|
return findings.sort((a, b) => a.line - b.line);
|
|
111
112
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usableapp/cardds",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.25",
|
|
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.",
|