@soffits/dsh-card-board 0.17.1 → 0.17.2
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 +4 -0
- package/client.js +6 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.17.2
|
|
4
|
+
|
|
5
|
+
An opened row's detail buttons show their labels (a chat button said nothing but its icon).
|
|
6
|
+
|
|
3
7
|
## 0.17.1
|
|
4
8
|
|
|
5
9
|
Tapping a row that has a `detail` opens it again. The row is itself a button (`role=button`), and the check that keeps a tap on one of a row's own buttons from opening it counted the row too, so no row ever opened.
|
package/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @soffits/dsh-card-board 0.17.
|
|
1
|
+
/* @soffits/dsh-card-board 0.17.2: built by scripts/build.mjs from src/client/. Do not edit. */
|
|
2
2
|
window.__ModuleLoader__.load({
|
|
3
3
|
id: "@soffits/dsh-card-board",
|
|
4
4
|
factory: (require) => {
|
|
@@ -1516,11 +1516,11 @@ function Card({ entry, live, boardId, assistant, tracks, active, locale, t, pres
|
|
|
1516
1516
|
const askName = assistant ? t("action.chatNamed", { name: assistant }) : void 0;
|
|
1517
1517
|
const named = (list) => assistant ? list?.map((action) => action.kind === "chat" && action.label === void 0 ? { ...action, label: askName } : action) : list;
|
|
1518
1518
|
const onPress = (target) => (action, extra) => press(action, extra, { card: entry.id, ...target }, target.row === void 0 ? void 0 : card.data.rows?.[target.row]);
|
|
1519
|
-
const rowActions = actions && ((row, list, part2) => (0, import_react10.createElement)(actions.ActionBar, {
|
|
1519
|
+
const rowActions = actions && ((row, list, part2, compact = true) => (0, import_react10.createElement)(actions.ActionBar, {
|
|
1520
1520
|
actions: named(list),
|
|
1521
1521
|
part: part2,
|
|
1522
1522
|
states: statesOf(entry.presses, row),
|
|
1523
|
-
compact
|
|
1523
|
+
compact,
|
|
1524
1524
|
about: about(row, rowLine(row)),
|
|
1525
1525
|
onPress: onPress({ row })
|
|
1526
1526
|
}));
|
|
@@ -1576,11 +1576,12 @@ function Card({ entry, live, boardId, assistant, tracks, active, locale, t, pres
|
|
|
1576
1576
|
rowControls: { ...rowControls, kept: [], press: (_, action) => rowControls.press(index, action), state: (_, id) => rowControls.state(index, id), latest: (_, id) => rowControls.latest(index, id) }
|
|
1577
1577
|
}),
|
|
1578
1578
|
(0, import_react10.createElement)(DetailParts, { detail: target.detail, locale, t }),
|
|
1579
|
+
// The opened row has room, so its detail's buttons say what they do.
|
|
1579
1580
|
rowActions && opened2.length > 0 && (0, import_react10.createElement)(
|
|
1580
1581
|
"footer",
|
|
1581
1582
|
{ className: "cb-cardActions" },
|
|
1582
|
-
opened2.some((action) => action.kind === "step") && rowActions(index, opened2, "steps"),
|
|
1583
|
-
rowActions(index, opened2, "buttons")
|
|
1583
|
+
opened2.some((action) => action.kind === "step") && rowActions(index, opened2, "steps", false),
|
|
1584
|
+
rowActions(index, opened2, "buttons", false)
|
|
1584
1585
|
)
|
|
1585
1586
|
);
|
|
1586
1587
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soffits/dsh-card-board",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"description": "A data-driven card board for DeepSeek Harness: scripts write small JSON cards, the Web UI shows each person the boards they may see.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|