@tristan2828/ui-foundation 4.136.0 → 4.137.0

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.
Files changed (163) hide show
  1. package/README.md +7 -6
  2. package/bin/ui-foundation.mjs +1 -1
  3. package/conventions/agents/spec-tester.md +3 -3
  4. package/conventions/docs/add-an-entity.md +722 -714
  5. package/conventions/docs/cell-patterns.md +206 -378
  6. package/conventions/docs/column-options.md +6 -12
  7. package/conventions/docs/design-language.md +293 -515
  8. package/conventions/docs/entity-plan-template.md +9 -7
  9. package/conventions/docs/reminders.md +12 -17
  10. package/conventions/docs/timed-screens.md +17 -20
  11. package/dist/components/app/action-error.js +1 -1
  12. package/dist/components/app/action-hint.js +1 -1
  13. package/dist/components/app/app-shell-bottom-bar.js +4 -4
  14. package/dist/components/app/app-shell-nav.d.ts +1 -1
  15. package/dist/components/app/app-shell-nav.js +1 -1
  16. package/dist/components/app/app-shell.d.ts +1 -1
  17. package/dist/components/app/app-shell.js +9 -9
  18. package/dist/components/app/board.d.ts +13 -13
  19. package/dist/components/app/board.js +3 -3
  20. package/dist/components/app/choice-buttons.d.ts +1 -1
  21. package/dist/components/app/data-table-tools.d.ts +3 -3
  22. package/dist/components/app/data-table.d.ts +11 -13
  23. package/dist/components/app/data-table.js +5 -5
  24. package/dist/components/app/date-field.js +1 -1
  25. package/dist/components/app/delete-action.d.ts +1 -1
  26. package/dist/components/app/delete-action.js +4 -4
  27. package/dist/components/app/edit-caret.js +1 -1
  28. package/dist/components/app/edit-in-place-presets.d.ts +4 -4
  29. package/dist/components/app/edit-in-place-store.d.ts +3 -3
  30. package/dist/components/app/edit-in-place-store.js +7 -7
  31. package/dist/components/app/editable-list.js +2 -3
  32. package/dist/components/app/editable-value.d.ts +2 -2
  33. package/dist/components/app/editable-value.js +20 -20
  34. package/dist/components/app/entity-form.js +2 -2
  35. package/dist/components/app/entity-view-facts.d.ts +12 -12
  36. package/dist/components/app/entity-view-facts.js +1 -1
  37. package/dist/components/app/entity-view.d.ts +16 -16
  38. package/dist/components/app/entity-view.js +28 -33
  39. package/dist/components/app/equal-items.js +4 -4
  40. package/dist/components/app/fact-extras.js +5 -5
  41. package/dist/components/app/field-rows.js +5 -5
  42. package/dist/components/app/fill-in-queue.js +2 -3
  43. package/dist/components/app/filter-bar.d.ts +1 -1
  44. package/dist/components/app/filter-date.js +1 -1
  45. package/dist/components/app/filter-name.js +1 -1
  46. package/dist/components/app/form-dialog.js +2 -2
  47. package/dist/components/app/form-leave-guard.js +2 -2
  48. package/dist/components/app/form-section.js +1 -1
  49. package/dist/components/app/icon-action.d.ts +1 -1
  50. package/dist/components/app/icon-action.js +2 -2
  51. package/dist/components/app/image-field.js +0 -1
  52. package/dist/components/app/keep-pencil-room.js +1 -1
  53. package/dist/components/app/key-stats.d.ts +3 -3
  54. package/dist/components/app/line-chart.d.ts +1 -1
  55. package/dist/components/app/line-chart.js +3 -3
  56. package/dist/components/app/list-editor-rows.js +1 -1
  57. package/dist/components/app/list-editor.js +1 -1
  58. package/dist/components/app/list-header.d.ts +6 -6
  59. package/dist/components/app/list-header.js +8 -8
  60. package/dist/components/app/markdown.js +30 -37
  61. package/dist/components/app/milkdown-editor.js +37 -62
  62. package/dist/components/app/module-card.js +6 -7
  63. package/dist/components/app/month-calendar.d.ts +46 -0
  64. package/dist/components/app/month-calendar.js +160 -0
  65. package/dist/components/app/month-day-field.js +0 -1
  66. package/dist/components/app/multi-choice.d.ts +1 -1
  67. package/dist/components/app/multi-choice.js +3 -3
  68. package/dist/components/app/multi-line-chart.js +1 -1
  69. package/dist/components/app/multi-pick.js +9 -10
  70. package/dist/components/app/multi-reference.js +2 -2
  71. package/dist/components/app/notes-outline.js +0 -1
  72. package/dist/components/app/notify.js +2 -2
  73. package/dist/components/app/offline-notice.js +1 -1
  74. package/dist/components/app/option-icon.js +1 -1
  75. package/dist/components/app/option-select.d.ts +1 -1
  76. package/dist/components/app/overview-page.d.ts +2 -2
  77. package/dist/components/app/overview-page.js +1 -1
  78. package/dist/components/app/page-trail-context.js +1 -1
  79. package/dist/components/app/pill-filter.d.ts +2 -2
  80. package/dist/components/app/prose-look.js +1 -1
  81. package/dist/components/app/rating-input.js +1 -1
  82. package/dist/components/app/rating-score.js +1 -1
  83. package/dist/components/app/record-dialog.js +25 -40
  84. package/dist/components/app/recurrence-field.js +6 -6
  85. package/dist/components/app/reference-combobox.js +1 -2
  86. package/dist/components/app/rich-text-box-anchor.js +0 -1
  87. package/dist/components/app/rich-text-edges.js +2 -2
  88. package/dist/components/app/rich-text-editor.d.ts +2 -3
  89. package/dist/components/app/rich-text-editor.js +19 -32
  90. package/dist/components/app/rich-text-empty-paragraph.d.ts +6 -7
  91. package/dist/components/app/rich-text-empty-paragraph.js +6 -7
  92. package/dist/components/app/rich-text-floating-toolbar.js +0 -1
  93. package/dist/components/app/rich-text-formats.js +2 -2
  94. package/dist/components/app/rich-text-input-rules.js +1 -2
  95. package/dist/components/app/rich-text-keyboard-bar.js +6 -7
  96. package/dist/components/app/rich-text-node-views.js +1 -2
  97. package/dist/components/app/rich-text-shortcuts.js +8 -8
  98. package/dist/components/app/rich-text-slash-menu.js +22 -12
  99. package/dist/components/app/rich-text-slash.d.ts +2 -2
  100. package/dist/components/app/rich-text-slash.js +2 -2
  101. package/dist/components/app/rich-text-table-grips.d.ts +1 -1
  102. package/dist/components/app/rich-text-table-grips.js +1 -2
  103. package/dist/components/app/rich-text-tasks.d.ts +1 -1
  104. package/dist/components/app/rich-text-tasks.js +1 -1
  105. package/dist/components/app/rich-text-touch.js +1 -1
  106. package/dist/components/app/search-palette.js +1 -2
  107. package/dist/components/app/secondary-filters.js +2 -3
  108. package/dist/components/app/session-view.js +1 -1
  109. package/dist/components/app/stacked-area-chart.js +1 -1
  110. package/dist/components/app/step-track.d.ts +1 -1
  111. package/dist/components/app/step-track.js +3 -3
  112. package/dist/components/app/widget-card.js +26 -30
  113. package/dist/components/app/widget-layout-sheet.js +1 -1
  114. package/dist/components/ui/calendar.js +2 -2
  115. package/dist/components/ui/combobox.d.ts +1 -1
  116. package/dist/components/ui/combobox.js +2 -2
  117. package/dist/components/ui/field.d.ts +1 -1
  118. package/dist/components/ui/field.js +6 -6
  119. package/dist/components/ui/skeleton.js +1 -1
  120. package/dist/components/ui/sonner.js +1 -1
  121. package/dist/components/ui/tabs.js +1 -1
  122. package/dist/error-reporting/reporter.d.ts +1 -1
  123. package/dist/error-reporting/reporter.js +1 -1
  124. package/dist/hooks/table-url-changes.d.ts +2 -2
  125. package/dist/hooks/table-url-changes.js +5 -6
  126. package/dist/hooks/use-action.js +1 -1
  127. package/dist/hooks/use-record-update.js +1 -1
  128. package/dist/hooks/use-table-url-state.d.ts +1 -1
  129. package/dist/hooks/use-table-url-state.js +2 -2
  130. package/dist/index.d.ts +1 -0
  131. package/dist/index.js +3 -2
  132. package/dist/lib/audio-cues.js +2 -2
  133. package/dist/lib/connection.js +1 -1
  134. package/dist/lib/date-filter.js +1 -1
  135. package/dist/lib/entity-view-tab.js +1 -1
  136. package/dist/lib/field-rows.js +2 -2
  137. package/dist/lib/form-errors.d.ts +1 -1
  138. package/dist/lib/form-errors.js +1 -1
  139. package/dist/lib/keep-audio-alive.js +1 -1
  140. package/dist/lib/line-chart-layout.js +3 -3
  141. package/dist/lib/markdown-inline.js +0 -2
  142. package/dist/lib/markdown-merge.js +2 -2
  143. package/dist/lib/markdown-table-widths.js +1 -1
  144. package/dist/lib/markdown-table.js +1 -2
  145. package/dist/lib/markdown-toggle.js +1 -1
  146. package/dist/lib/page-leaving.js +1 -1
  147. package/dist/lib/recurrence-format.d.ts +2 -2
  148. package/dist/lib/recurrence-format.js +1 -1
  149. package/dist/lib/recurrence-phrase.d.ts +1 -1
  150. package/dist/lib/recurrence-phrase.js +2 -2
  151. package/dist/lib/recurrence.d.ts +1 -1
  152. package/dist/lib/recurrence.js +2 -2
  153. package/dist/lib/stale-chunk-reload.js +1 -1
  154. package/dist/lib/status-kinds.d.ts +1 -1
  155. package/dist/lib/status-kinds.js +2 -2
  156. package/dist/mocks/start-worker.js +2 -2
  157. package/dist/routes/login.js +1 -1
  158. package/dist/testing/index.d.ts +7 -4
  159. package/dist/testing/index.js +10 -13
  160. package/package.json +1 -1
  161. package/styles/index.css +3 -3
  162. package/styles/theme.css +14 -20
  163. package/vite/pwa.js +1 -1
@@ -81,7 +81,6 @@ function stateAt(state, tablePos, cell) {
81
81
  }
82
82
  // How far either side of a column's right edge the pointer can be to take it.
83
83
  const EDGE_REACH = 6;
84
- // How much Narrower and Wider change a column.
85
84
  const WIDTH_STEP = 16;
86
85
  // The column whose right edge is nearest a point within the table, if one's in reach.
87
86
  function edgeAt(table, box, x, y) {
@@ -323,7 +322,7 @@ export function TableGrips({ view, caret, getPos, frame, box, table, readOnly, o
323
322
  const rowColor = there && tableColorEnabled(there, 'row');
324
323
  const finalFocus = () => text() ?? true;
325
324
  const grip = 'pointer-events-auto absolute flex items-center justify-center rounded-sm border border-border bg-muted text-muted-foreground shadow-xs outline-none hover:bg-primary hover:text-primary-foreground data-popup-open:bg-primary data-popup-open:text-primary-foreground ' +
326
- // On a touch screen, an invisible 40px square round each takes the tap (review F11).
325
+ // On a touch screen, an invisible 40px square round each takes the tap.
327
326
  "pointer-coarse:before:absolute pointer-coarse:before:top-1/2 pointer-coarse:before:left-1/2 pointer-coarse:before:size-10 pointer-coarse:before:-translate-1/2 pointer-coarse:before:content-['']";
328
327
  return (_jsxs(_Fragment, { children: [!phone && (_jsxs("div", { ref: edgeHandle, hidden: true, "aria-hidden": "true", "data-slot": "rich-text-table-column-edge", className: "pointer-events-auto absolute z-10 flex w-3 -translate-x-1/2 cursor-col-resize touch-none justify-center", onPointerDown: startDrag, onDoubleClick: () => edge !== null && onWidth(edge, null), children: [_jsx("span", { className: "h-full w-0.5 bg-primary" }), drag && (_jsx("span", { "data-slot": "rich-text-table-column-size", className: "absolute bottom-full mb-1 rounded-sm bg-primary px-1.5 font-mono text-xs whitespace-nowrap text-primary-foreground tabular-nums", children: drag.label }))] })), _jsxs(DropdownMenu, { open: open === 'column' || open === 'cell', onOpenChange: openMenu('column'), children: [_jsx(DropdownMenuTrigger, { tabIndex: -1, "aria-label": menuCell ? `Column: ${columnName(menuCell.column)}` : 'Column', ref: columnGrip, "data-slot": "rich-text-table-column-grip", className: cn(grip, 'h-3.5 w-6 -translate-x-1/2 -translate-y-1/2'), children: _jsx(GripHorizontalIcon, { "aria-hidden": "true", className: "size-3" }) }), _jsx(DropdownMenuContent, { className: "w-56", "data-rich-text-menu": "", finalFocus: finalFocus, children: open === 'cell' ? (_jsxs(_Fragment, { children: [menuCell && menuCell.row > 0 && (_jsxs(_Fragment, { children: [colorGroup('cell', 'Cell Colour'), _jsx(DropdownMenuSeparator, {})] })), _jsxs(DropdownMenuGroup, { children: [_jsx(DropdownMenuLabel, { children: "Row" }), items(ROW_ITEMS)] }), _jsx(DropdownMenuSeparator, {}), columnItems(false, menuCell ? `Column: ${columnName(menuCell.column)}` : 'Column')] })) : (columnItems(true)) })] }), _jsxs(DropdownMenu, { open: open === 'row', onOpenChange: openMenu('row'), children: [_jsx(DropdownMenuTrigger, { tabIndex: -1, "aria-label": menuCell ? (menuCell.row === 0 ? 'Header Row' : `Row ${menuCell.row}`) : 'Row', ref: rowGrip, "data-slot": "rich-text-table-row-grip", className: cn(grip, 'h-6 w-3.5 -translate-x-1/2 -translate-y-1/2'), children: _jsx(GripVerticalIcon, { "aria-hidden": "true", className: "size-3" }) }), _jsxs(DropdownMenuContent, { className: "w-56", "data-rich-text-menu": "", finalFocus: finalFocus, children: [_jsx(DropdownMenuGroup, { children: items(ROW_ITEMS) }), rowColor && (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), colorGroup('row', 'Colour Row')] }))] })] })] }));
329
328
  }
@@ -7,7 +7,7 @@ export declare const taskInputRule: import("@milkdown/utils").$InputRule;
7
7
  */
8
8
  export declare function splitTaskItem(state: EditorState, dispatch: (tr: Transaction) => void): boolean;
9
9
  /**
10
- * A task item's box in its hit area (review F11): the box as drawn, in a
10
+ * A task item's box in its hit area: the box as drawn, in a
11
11
  * label whose invisible 40px square, on a touch screen, takes the tap
12
12
  * (a press on a label is its checkbox's), and the item's row 40px tall
13
13
  * there, so two items' squares never overlap. A laptop is unchanged.
@@ -71,7 +71,7 @@ export function splitTaskItem(state, dispatch) {
71
71
  return true;
72
72
  }
73
73
  /**
74
- * A task item's box in its hit area (review F11): the box as drawn, in a
74
+ * A task item's box in its hit area: the box as drawn, in a
75
75
  * label whose invisible 40px square, on a touch screen, takes the tap
76
76
  * (a press on a label is its checkbox's), and the item's row 40px tall
77
77
  * there, so two items' squares never overlap. A laptop is unchanged.
@@ -1,4 +1,4 @@
1
- // Whether the editor is on a touch screen (review F11): where its toolbar
1
+ // Whether the editor is on a touch screen: where its toolbar
2
2
  // is the bar pinned to the keyboard (rich-text-keyboard-bar.tsx), the
3
3
  // floating bar over selected words gives way to the system's own, and the
4
4
  // slash menu is capped to what the keyboard leaves visible.
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // Search in AppShell's bar (#N6): a box in the header (a button on a
2
+ // Search in AppShell's bar: a box in the header (a button on a
3
3
  // phone) and Ctrl K (⌘K on a Mac) open a palette that finds a page or a
4
4
  // record by name, and Enter opens it. Before you type it lists the
5
5
  // records you opened lately (useRecentRecord), then the first pages.
@@ -18,7 +18,6 @@ import { groupRecords, matchPages, readRecentRecords, searchPages, } from '../..
18
18
  import { Button } from '../ui/button.js';
19
19
  import { Dialog, DialogContent, DialogDescription, DialogTitle } from '../ui/dialog.js';
20
20
  import { Spinner } from '../ui/spinner.js';
21
- // How long typing pauses before findRecords is asked.
22
21
  const SEARCH_DELAY_MS = 150;
23
22
  const PAGES_BEFORE_TYPING = 5;
24
23
  const PAGES_MATCHED = 6;
@@ -1,8 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  // A table toolbar's less-used filters behind one "Filters" button, so a
3
- // table with many filters still starts near the top of the page (issue
4
- // #93). The primary filters (search, status, whatever most visits use)
5
- // stay in the toolbar; this goes beside them, holding the rest:
3
+ // table with many filters still starts near the top of the page. The primary filters (search, status, whatever most
4
+ // visits use) stay in the toolbar; this goes beside them, holding the rest:
6
5
  //
7
6
  // - The button says how many of its filters are on ("Filters 2", named
8
7
  // "Filters, 2 active"), and opens them in a popover, or a sheet from the
@@ -9,7 +9,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  // fullscreen and quietly isn't there where the browser can't (iOS Safari
10
10
  // on a phone), and keepAwake, which holds a screen wake lock while open.
11
11
  // `dark` renders the view in the dark theme whatever the app's (the dark
12
- // stage, #253): the dark tokens are scoped to the view, so the page under
12
+ // stage): the dark tokens are scoped to the view, so the page under
13
13
  // it keeps its own. SessionStage, below, is the stage under the header.
14
14
  // Recipes for its states in Playwright: docs/foundation/timed-screens.md.
15
15
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- // Parts of a whole over time (4.132): several amounts that add up to a
2
+ // Parts of a whole over time: several amounts that add up to a
3
3
  // total, each a category (a portfolio by asset class), stacked from zero
4
4
  // so the top edge is the total and both the growth and the mix show.
5
5
  // MultiLineChart's sibling, plain SVG the same way: each band is its own
@@ -59,7 +59,7 @@ export declare function StepName({ step, number, title, attention, current, }: {
59
59
  current?: boolean;
60
60
  }): import("react").JSX.Element;
61
61
  /**
62
- * A read-only row of numbered steps (4.128): the stepper look's marks
62
+ * A read-only row of numbered steps: the stepper look's marks
63
63
  * without its panels, for showing where a sequence is (a list card's
64
64
  * phases), with a `caption` under the current step.
65
65
  *
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // A row of numbered steps joined by a line, each done, current or upcoming:
3
- // the marks of `EqualItems look="stepper"` (4.127), on their own and read
4
- // only (4.128). For a display of where a sequence is (a list card showing a
3
+ // the marks of `EqualItems look="stepper"`, on their own and read
4
+ // only. For a display of where a sequence is (a list card showing a
5
5
  // program's phases, a caption such as "Day 12" under the current one),
6
6
  // where nothing is picked and no panel shows.
7
7
  //
@@ -61,7 +61,7 @@ function useOverflows(rowRef) {
61
61
  return overflows;
62
62
  }
63
63
  /**
64
- * A read-only row of numbered steps (4.128): the stepper look's marks
64
+ * A read-only row of numbered steps: the stepper look's marks
65
65
  * without its panels, for showing where a sequence is (a list card's
66
66
  * phases), with a `caption` under the current step.
67
67
  *
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // A small titled card on a hub page (issue #121): a few rows from one part
3
- // of the app, loaded on their own. It owns the four required states the
4
- // way DataTable and EntityView do, so every widget on a page skeletons,
5
- // empties and fails alike:
2
+ // A small titled card on a hub page: a few rows from one part of the app,
3
+ // loaded on their own. It owns the four required states the way DataTable
4
+ // and EntityView do, so every widget on a page skeletons, empties and
5
+ // fails alike:
6
6
  //
7
7
  // - loading: `skeletonRows` rows shaped like the list's, so the card
8
8
  // keeps its height when the data arrives;
@@ -16,33 +16,32 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
16
16
  // outline and its landmarks. Height follows content (`self-start` in a
17
17
  // grid), so a short widget doesn't stretch to its tallest neighbour.
18
18
  //
19
- // `collapsible` (#233) folds a card to its header, for a hub with more
20
- // widgets than a phone screen holds: a chevron button at the header's end
21
- // (named by the title, `aria-expanded`, `aria-controls` the body), the
22
- // header's link still there while folded. With `storageKey` the choice is
19
+ // `collapsible` folds a card to its header, for a hub with more widgets
20
+ // than a phone screen holds: a chevron button at the header's end (named
21
+ // by the title, `aria-expanded`, `aria-controls` the body), the header's
22
+ // link still there while folded. With `storageKey` the choice is
23
23
  // remembered on this device (useRememberedFlag: localStorage, in memory
24
24
  // where that's blocked). The body is hidden, not unmounted, so whatever
25
25
  // the app keeps in it stays put.
26
26
  //
27
- // `summary` (#263) is one short value a folded card shows in its header
28
- // ("3", "Due today"), so a hub of folded cards still reads at a glance.
29
- // It follows the card's state: a small skeleton while loading, a muted
30
- // dash ("Couldn't load" to a screen reader) on an error, `emptySummary`
31
- // (or nothing) when empty. Opened, the summary goes and the body shows,
32
- // the error in it as before. The chevron is described by it.
27
+ // `summary` is one short value a folded card shows in its header ("3",
28
+ // "Due today"). It follows the card's state: a small skeleton while
29
+ // loading, a muted dash ("Couldn't load" to a screen reader) on an error,
30
+ // `emptySummary` (or nothing) when empty. Opened, the summary goes and the
31
+ // body shows. The chevron is described by it.
33
32
  //
34
- // WidgetCardGroup (#263) makes its cards an accordion: every card in it
35
- // folds, opening one folds the others, and a click anywhere on a header
36
- // (not on its link or another control) toggles it; the chevron stays the
33
+ // WidgetCardGroup makes its cards an accordion: every card in it folds,
34
+ // opening one folds the others, and a click anywhere on a header (not on
35
+ // its link or another control) toggles it; the chevron stays the
37
36
  // keyboard's way in. `accordion="mobile"` does that only below the
38
37
  // sidebar's breakpoint (useIsMobile), so a desktop hub keeps each card's
39
38
  // own `collapsible`. While the accordion is on it owns the folding and a
40
39
  // card's `storageKey` is left alone.
41
40
  //
42
41
  // The header's link is an app route (`to`) or, for a widget about a
43
- // service outside the app, its address (`href`, #248): that one opens in a
44
- // new tab, with the outside-link mark and a screen reader's "(opens in a
45
- // new tab)", as WidgetListItem's `href` does.
42
+ // service outside the app, its address (`href`): that one opens in a new
43
+ // tab, with the outside-link mark and a screen reader's "(opens in a new
44
+ // tab)", as WidgetListItem's `href` does.
46
45
  //
47
46
  // WidgetList and WidgetListItem are the common body: rows with dividers,
48
47
  // each a primary link (or plain text) truncated to one line, an optional
@@ -51,18 +50,15 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
51
50
  // function and it gets the id to put in `aria-labelledby`.
52
51
  //
53
52
  // One card anatomy (overview standard O4), shared with OverviewPage's
54
- // parts so the hub's widgets and an overview's parts read alike: `to`
55
- // makes the title the link to everything the card sums up, with a
56
- // chevron after it; `value` is its headline in the numeric type, `line`
57
- // one muted line under it, and `freshness` how old the number is
53
+ // parts: `to` makes the title the link to everything the card sums up,
54
+ // with a chevron after it; `value` is its headline in the numeric type,
55
+ // `line` one muted line under it, and `freshness` how old the number is
58
56
  // (Freshness) at the body's end. A folded card shows `value` as its
59
- // summary when no `summary` is given. All optional: a card without them
60
- // is drawn as before, and its folding on a phone is unchanged.
57
+ // summary when no `summary` is given. All optional.
61
58
  //
62
- // Under data-density="compact" (#224) the card's padding drops to 12px and
63
- // a row's to 4px, for a dense hub; text stays at type-body. On a phone a
64
- // compact row is 44px tall and its link fills that height, so it stays a
65
- // finger's target.
59
+ // Under data-density="compact" the card's padding drops to 12px and a
60
+ // row's to 4px; text stays at type-body. On a phone a compact row is 44px
61
+ // tall and its link fills that height, so it stays a finger's target.
66
62
  import { createContext, useContext, useId, useState } from 'react';
67
63
  import { Link } from 'react-router';
68
64
  import { ChevronDownIcon, ChevronRightIcon, ExternalLinkIcon } from 'lucide-react';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // A hub page's Customize sheet (#263): every card the page has, in the
2
+ // A hub page's Customize sheet: every card the page has, in the
3
3
  // person's order, each row with Up and Down buttons and a Show switch,
4
4
  // and Reset at the foot. It edits a useWidgetLayout, which keeps the
5
5
  // order (on this device by default) and which the page renders its cards
@@ -69,11 +69,11 @@ function CalendarDayButton({ className, day, modifiers, locale, ...props }) {
69
69
  ref.current?.focus();
70
70
  }, [modifiers.focused]);
71
71
  return (_jsx(Button
72
- // Patched (ui-foundation, #157): upstream makes this ref but never
72
+ // Patched (ui-foundation): upstream makes this ref but never
73
73
  // passes it, so the effect above focused nothing and the arrow keys
74
74
  // moved react-day-picker's focused day without moving focus.
75
75
  , {
76
- // Patched (ui-foundation, #157): upstream makes this ref but never
76
+ // Patched (ui-foundation): upstream makes this ref but never
77
77
  // passes it, so the effect above focused nothing and the arrow keys
78
78
  // moved react-day-picker's focused day without moving focus.
79
79
  ref: ref, variant: "ghost", size: "icon", "data-day": day.date.toLocaleDateString(locale?.code), "data-selected-single": modifiers.selected &&
@@ -18,7 +18,7 @@ declare function ComboboxSeparator({ className, ...props }: ComboboxPrimitive.Se
18
18
  declare function ComboboxChips({ className, ...props }: React.ComponentPropsWithRef<typeof ComboboxPrimitive.Chips> & ComboboxPrimitive.Chips.Props): React.JSX.Element;
19
19
  declare function ComboboxChip({ className, children, showRemove, removeLabel, ...props }: ComboboxPrimitive.Chip.Props & {
20
20
  showRemove?: boolean;
21
- /** The chip's words, naming its remove button ("Remove <words>") when its children aren't plain text (ui-foundation, 4.130). */
21
+ /** The chip's words, naming its remove button ("Remove <words>") when its children aren't plain text (ui-foundation). */
22
22
  removeLabel?: string;
23
23
  }): React.JSX.Element;
24
24
  declare function ComboboxChipsInput({ className, ...props }: ComboboxPrimitive.Input.Props): React.JSX.Element;
@@ -48,12 +48,12 @@ function ComboboxChips({ className, ...props }) {
48
48
  }
49
49
  function ComboboxChip({ className, children, showRemove = true, removeLabel, ...props }) {
50
50
  return (_jsxs(ComboboxPrimitive.Chip, { "data-slot": "combobox-chip", className: cn("flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm bg-muted px-1.5 text-xs font-medium whitespace-nowrap text-foreground has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pr-0", className), ...props, children: [children, showRemove && (_jsx(ComboboxPrimitive.ChipRemove
51
- // Patched (ui-foundation, Phase G): upstream's icon-only remove
51
+ // Patched (ui-foundation): upstream's icon-only remove
52
52
  // button has no accessible name — a critical axe violation. Name
53
53
  // it after the chip ("Remove fragile") when the chip is plain text.
54
54
  , { "aria-label": removeLabel !== undefined ? `Remove ${removeLabel}` : typeof children === "string" ? `Remove ${children}` : "Remove", render: _jsx(Button, { variant: "ghost", size: "icon-xs" }), className: "-ml-1 opacity-50 hover:opacity-100", "data-slot": "combobox-chip-remove", children: _jsx(XIcon, { className: "pointer-events-none" }) }))] }));
55
55
  }
56
- // Patched (ui-foundation, issue #94): upstream's input always keeps 4rem,
56
+ // Patched (ui-foundation): upstream's input always keeps 4rem,
57
57
  // so chips that fit on one line still pushed it onto an empty second one
58
58
  // and the control stood twice as tall as a Select beside it. With chips
59
59
  // in and no focus it takes only what's left of the chips' line (none, if
@@ -23,7 +23,7 @@ declare function Field({ className, orientation, size, solo, kind, ...props }: R
23
23
  * A date or a number: two of a kind stay side by side on a phone.
24
24
  * `choice`: two to a row, side by side on a phone while both fit.
25
25
  * Found by itself for a date or number `<input>`, DateField (which
26
- * marks itself, 4.88) and ChoiceButtons; say it for a control of your own.
26
+ * marks itself) and ChoiceButtons; say it for a control of your own.
27
27
  */
28
28
  kind?: FieldKind;
29
29
  }): import("react").JSX.Element;
@@ -5,14 +5,14 @@ import { cn } from "cn";
5
5
  import { Label } from "./label.js";
6
6
  import { Separator } from "./separator.js";
7
7
  import { fieldRows } from "../../lib/field-rows.js";
8
- // The foundation's additions to shadcn's Field (4.85, the form standard):
8
+ // The foundation's additions to shadcn's Field (the form standard):
9
9
  //
10
10
  // - FieldGroup lays its fields out itself: consecutive short fields
11
11
  // (`<Field size="s" | "m" | "l">`) share a row, up to three, each as
12
12
  // wide as its size; `<Field solo>` keeps a short one alone
13
13
  // (lib/field-rows.ts has the rule). Below 48rem each takes its own row
14
- // but two dates or two numbers. A choice (a Field holding ChoiceButtons,
15
- // 4.98) shares a row only with another choice, and two choices stay side
14
+ // but two dates or two numbers. A choice (a Field holding ChoiceButtons)
15
+ // shares a row only with another choice, and two choices stay side
16
16
  // by side on a phone while both fit. The rows are worked out from the DOM, so
17
17
  // a Field inside the app's own component still counts.
18
18
  // - Compact: 14px between fields and 32px controls (40px under 48rem or
@@ -29,11 +29,11 @@ function FieldLegend({ className, variant = "legend", ...props }) {
29
29
  }
30
30
  // What a Field holds, when it doesn't say (`kind`): a date or a number
31
31
  // box keeps its partner on a phone.
32
- // DateField marks its own box (`data-kind="date"`, 4.88).
32
+ // DateField marks its own box (`data-kind="date"`).
33
33
  const DATE_CONTROL = "input[type=date], [data-kind=date]";
34
34
  const NUMBER_CONTROL = "input[type=number], input[inputmode=numeric], input[inputmode=decimal]";
35
- // A row of choice buttons (ChoiceButtons, 4.98): two to a row (9C). A
36
- // ToggleGroup that is the field's own control (4.123) is one too; one
35
+ // A row of choice buttons (ChoiceButtons): two to a row (9C). A
36
+ // ToggleGroup that is the field's own control is one too; one
37
37
  // nested deeper (a RecurrenceField's weekdays) isn't.
38
38
  const CHOICE_CONTROL = "[data-slot=choice-buttons], :scope > [data-slot=toggle-group]";
39
39
  function kindOf(field) {
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { cn } from "cn";
4
- // `delay` (4.90, the dialogs and feedback standard D7): nothing shows for
4
+ // `delay` (the dialogs and feedback standard D7): nothing shows for
5
5
  // the first 300ms, so a fast load just appears instead of flashing grey
6
6
  // shapes; a slow one shows its shape after that. It keeps its room while
7
7
  // it waits (invisible, not absent), so nothing moves when it shows.
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // The app's toaster (4.90, the dialogs and feedback standard D5).
2
+ // The app's toaster (the dialogs and feedback standard D5).
3
3
  //
4
4
  // - Each icon in its tone's `*-text` shade (a green check, a red octagon,
5
5
  // an amber triangle, a blue i), through `--toast-icon-*` (styles/
@@ -22,7 +22,7 @@ function TabsList({ className, variant = "default", ...props }) {
22
22
  function TabsTrigger({ className, ...props }) {
23
23
  return (_jsx(TabsPrimitive.Tab, { "data-slot": "tabs-trigger", className: cn("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/75 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:rounded-b-none group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-primary/12 dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-primary/12", "data-active:bg-background group-data-[variant=default]/tabs-list:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:group-data-[variant=default]/tabs-list:data-active:text-foreground",
24
24
  // The line look (a page's sub-navigation, a record's tabs): the open
25
- // tab stands out (4.111): its name semibold in --primary-text (the
25
+ // tab stands out: its name semibold in --primary-text (the
26
26
  // primary where it's too faint for small text), a 3px primary line,
27
27
  // and a primary tint behind it, as a picked ChoiceButtons option
28
28
  // (bg-primary/12). A closed one is muted and medium weight. (A closed pill is the text
@@ -16,7 +16,7 @@ export declare function scrub(text: string, limit: number): string;
16
16
  /** `/widgets/7/edit` with `{ id: '7' }` → `/widgets/:id/edit`; a splat → `*`. */
17
17
  export declare function routePattern(pathname: string, params: Readonly<Record<string, string | undefined>>): string;
18
18
  /**
19
- * Whether an uncaught error can't be the app's (#205): `Script error.` with
19
+ * Whether an uncaught error can't be the app's: `Script error.` with
20
20
  * nothing else, or every frame of its stack (else the event's file) outside
21
21
  * the app's scripts. An error with no location at all is kept: a thrown
22
22
  * string may well be the app's.
@@ -84,7 +84,7 @@ function outsideAppScripts(url, page) {
84
84
  return parsed.origin === origin && !SCRIPT_FILE.test(parsed.pathname);
85
85
  }
86
86
  /**
87
- * Whether an uncaught error can't be the app's (#205): `Script error.` with
87
+ * Whether an uncaught error can't be the app's: `Script error.` with
88
88
  * nothing else, or every frame of its stack (else the event's file) outside
89
89
  * the app's scripts. An error with no location at all is kept: a thrown
90
90
  * string may well be the app's.
@@ -9,7 +9,7 @@ export type TableView<F extends string, M extends string> = {
9
9
  filters?: Partial<Record<F, string>>;
10
10
  multiFilters?: Partial<Record<M, string[]>>;
11
11
  /**
12
- * The part of the view the filter bar has no control for (4.105): a
12
+ * The part of the view the filter bar has no control for: a
13
13
  * computed rule the server applies, such as `{ overdue: 'true' }`. It's
14
14
  * in the URL like a filter and counts toward the view being on, but the
15
15
  * reader can't see or change it, so it lasts only while the view does:
@@ -43,7 +43,7 @@ export declare function paramsToUpdate(rendered: URLSearchParams, renderedPath:
43
43
  export declare function viewToUrlChanges<F extends string, M extends string>(filterNames: readonly F[], multiFilterNames: readonly M[], view: TableView<F, M>, asDefault?: boolean): UrlChanges;
44
44
  /**
45
45
  * The query parameter that says "no view, no filters" on a list with a
46
- * `defaultView` (4.105): `?view=none`. Without it a list's plain address
46
+ * `defaultView`: `?view=none`. Without it a list's plain address
47
47
  * is its default view, so clearing the last filter by hand writes it, or
48
48
  * the default view's filters would come straight back.
49
49
  */
@@ -34,7 +34,7 @@ export function paramsToUpdate(rendered, renderedPath, addressBar) {
34
34
  // A view is "this combination and nothing else": every filter and the sort
35
35
  // are set, and any the view doesn't name are cleared. Merging over the
36
36
  // current state instead would let a leftover filter silently show something
37
- // other than the view. Decided with the developer on 2026-09-28.
37
+ // other than the view.
38
38
  //
39
39
  // The view the list opens on (`asDefault`, useTableUrlState's
40
40
  // `defaultView`) is written as no filters at all, so the list's plain
@@ -46,7 +46,7 @@ export function viewToUrlChanges(filterNames, multiFilterNames, view, asDefault
46
46
  [NO_VIEW_PARAM]: null,
47
47
  ...Object.fromEntries(filterNames.map((name) => [name, own[name] ?? ''])),
48
48
  ...Object.fromEntries(multiFilterNames.map((name) => [name, asDefault ? [] : (view.multiFilters?.[name] ?? [])])),
49
- // The default view's sort is its plain address's (4.123): not written.
49
+ // The default view's sort is its plain address's: not written.
50
50
  sort: view.sort && !asDefault ? serializeSort(view.sort) : null,
51
51
  ...(view.group === undefined ? {} : { group: view.group || null }),
52
52
  page: null,
@@ -58,7 +58,7 @@ function viewFilters(view) {
58
58
  }
59
59
  /**
60
60
  * The query parameter that says "no view, no filters" on a list with a
61
- * `defaultView` (4.105): `?view=none`. Without it a list's plain address
61
+ * `defaultView`: `?view=none`. Without it a list's plain address
62
62
  * is its default view, so clearing the last filter by hand writes it, or
63
63
  * the default view's filters would come straight back.
64
64
  */
@@ -89,7 +89,7 @@ export function readFilterState(params, filterNames, multiFilterNames, defaultVi
89
89
  };
90
90
  }
91
91
  // The URL changes for the reader changing filters by hand (setFilter,
92
- // setFilters, setMultiFilter), 4.105:
92
+ // setFilters, setMultiFilter):
93
93
  // - every filter they didn't touch keeps the value the bar shows, even at
94
94
  // the plain address where those come from the default view, so their
95
95
  // change is the only change;
@@ -120,8 +120,7 @@ export function filterChanges(state, changes, ruleNames, hasDefault) {
120
120
  // nothing else", so adding or changing any filter returns the table to its
121
121
  // default columns: a view's columns are chosen for the records its filters
122
122
  // select, and would hide a field those other records fill. Sort and page
123
- // don't change which records are shown, so they don't count. Decided with
124
- // the developer on 2026-10-05.
123
+ // don't change which records are shown, so they don't count.
125
124
  export function activeViewOf(views, filters, multiFilters) {
126
125
  const sameItems = (a, b) => a.length === b.length && [...a].sort().every((item, index) => item === [...b].sort()[index]);
127
126
  const matches = (view) => Object.keys(filters).every((name) => filters[name] === (viewFilters(view)[name] ?? '')) &&
@@ -1,5 +1,5 @@
1
1
  // One action's run, its pending state and its error, kept beside the
2
- // button that started it (4.90, the dialogs and feedback standard D6).
2
+ // button that started it (the dialogs and feedback standard D6).
3
3
  //
4
4
  // const markRead = useAction(markReadMutation, { failed: "Couldn't mark The Long Walk as read" })
5
5
  // <Button onClick={() => markRead.run(book.id)} disabled={markRead.pending}>…</Button>
@@ -44,7 +44,7 @@
44
44
  // `onError` or `onSettled`, not `mutate(change, { onSuccess })`: TanStack
45
45
  // runs a `mutate()` callback only while the calling component is still
46
46
  // mounted, so a popover closed mid-save would skip it. These run on the
47
- // mutation, after the package's own cache work, either way (#250).
47
+ // mutation, after the package's own cache work, either way.
48
48
  import { hashKey, useMutation, useQueryClient, } from '@tanstack/react-query';
49
49
  import { toast } from 'sonner';
50
50
  import { refusalReason } from '../lib/refusal.js';
@@ -24,7 +24,7 @@ export type TableUrlStateOptions = {
24
24
  /** useTableUrlState's options, with the view the list opens on. */
25
25
  export type TableUrlStateViewOptions<V extends string> = TableUrlStateOptions & {
26
26
  /**
27
- * The view the list opens on (4.105): at the list's plain address its
27
+ * The view the list opens on: at the list's plain address its
28
28
  * filters fill the bar and its pill is pressed. Write that view's whole
29
29
  * meaning in its filters (`{ status: ['active', 'paused'] }`, not `{}`
30
30
  * with the server's default doing the rest), so the bar shows it.
@@ -18,7 +18,7 @@ const DEFAULT_PAGE_SIZES = [25, 50, 100];
18
18
  // counts as active); pass that view's `columns` to DataTable. A view is
19
19
  // pressed with applyView().
20
20
  //
21
- // Views fill the filters (4.105). A view's `filters` and `multiFilters` are
21
+ // Views fill the filters. A view's `filters` and `multiFilters` are
22
22
  // what the bar's controls show while it's on, so the bar says why rows are
23
23
  // hidden; write each view's whole meaning there. `defaultView` names the
24
24
  // view the list opens on: at the list's plain address (no filter in the
@@ -59,7 +59,7 @@ export function useTableUrlState(filterNames, multiFilterNames = [], views = {},
59
59
  const state = readFilterState(params, filterNames, multiFilterNames, fallback);
60
60
  const { filters, multiFilters } = state;
61
61
  // The URL's sort, else the default view's at the list's plain address
62
- // (4.123): pressing the default view writes no `?sort=`, as it writes no
62
+ //: pressing the default view writes no `?sort=`, as it writes no
63
63
  // filters, and its sort still holds.
64
64
  const urlSort = params.get('sort');
65
65
  const [sortField, sortDir] = (urlSort ?? '').split(':');
package/dist/index.d.ts CHANGED
@@ -97,6 +97,7 @@ export { LineChart, type LineChartMark, type LineChartPoint, type LineChartProps
97
97
  export { MultiLineChart, type ChartSeries, type ChartTone, type MultiLineChartProps, } from './components/app/multi-line-chart.js';
98
98
  export { StackedAreaChart, type StackedAreaChartProps, type StackedSeries, } from './components/app/stacked-area-chart.js';
99
99
  export type { StackedLayout } from './lib/line-chart-layout.js';
100
+ export { MonthCalendar, type MonthCalendarItem, type MonthCalendarProps, type MonthCalendarTone, } from './components/app/month-calendar.js';
100
101
  export { StepBar, type StepBarProps } from './components/app/step-bar.js';
101
102
  export { RatingStar, type RatingStarProps, type RatingStarValue } from './components/app/rating-star.js';
102
103
  export { RatingScore, type RatingScoreGlyph, type RatingScoreProps } from './components/app/rating-score.js';
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ export { KeyStats } from './components/app/key-stats.js';
31
31
  export { ActionHint } from './components/app/action-hint.js';
32
32
  export { StatusMark } from './components/app/status-mark.js';
33
33
  export { STATUS_KINDS, STATUS_KIND_ICONS, STATUS_KIND_LABELS, STATUS_KIND_TONES, } from './lib/status-kinds.js';
34
- // The record's empty value (4.96): a muted dash read as "Not set", for an
34
+ // The record's empty value: a muted dash read as "Not set", for an
35
35
  // app's own strips, summary lines and cells.
36
36
  export { EmptyText } from './components/app/empty-value.js';
37
37
  export { isEmptyValue } from './lib/empty-value.js';
@@ -43,7 +43,7 @@ export { usePrinting } from './components/app/print-context.js';
43
43
  export { RecordDialogRoute, RecordLink, } from './components/app/record-dialog.js';
44
44
  export { recordDialogState, useNewRecordDialog, useOpenRecord, useRecordDialog, } from './components/app/record-dialog-context.js';
45
45
  export { FormDialog } from './components/app/form-dialog.js';
46
- // The dialogs and feedback standard (4.90): one delete, toasts' words, an
46
+ // The dialogs and feedback standard: one delete, toasts' words, an
47
47
  // action's error beside it, a job's progress, and the offline bar.
48
48
  export { DeleteAction } from './components/app/delete-action.js';
49
49
  export { notify, doneMessage, pastTense } from './components/app/notify.js';
@@ -107,6 +107,7 @@ export { ProgressRing } from './components/app/progress-ring.js';
107
107
  export { LineChart, } from './components/app/line-chart.js';
108
108
  export { MultiLineChart, } from './components/app/multi-line-chart.js';
109
109
  export { StackedAreaChart, } from './components/app/stacked-area-chart.js';
110
+ export { MonthCalendar, } from './components/app/month-calendar.js';
110
111
  export { StepBar } from './components/app/step-bar.js';
111
112
  export { RatingStar } from './components/app/rating-star.js';
112
113
  export { RatingScore } from './components/app/rating-score.js';
@@ -8,7 +8,7 @@
8
8
  // here is a no-op where the browser can't make the sound
9
9
  // (docs/foundation/timed-screens.md "Sound").
10
10
  //
11
- // A chime can be booked ahead (`at`, #193): it's scheduled on the Web
11
+ // A chime can be booked ahead (`at`): it's scheduled on the Web
12
12
  // Audio clock, so it strikes on time in a background tab, whose timers
13
13
  // and frames the browser slows or stops. cancelCues() takes back every
14
14
  // booked strike that hasn't sounded yet (on pause, skip or leaving), so a
@@ -18,7 +18,7 @@
18
18
  // speaking, a call, the lock screen) and booked strikes go silent or late.
19
19
  // The context is resumed as soon as it stops, and once it runs again every
20
20
  // booking is taken back and onCuesRecovered() callbacks fire, so the screen
21
- // rebooks from where its run is now (#217). cuesInSync() catches the case
21
+ // rebooks from where its run is now. cuesInSync() catches the case
22
22
  // where no statechange came, by comparing the audio clock with Date.now().
23
23
  //
24
24
  // createAudioCues takes the browser's APIs, so the rules are unit tested
@@ -1,4 +1,4 @@
1
- // Whether the app can reach its server (4.90, the dialogs and feedback
1
+ // Whether the app can reach its server (the dialogs and feedback
2
2
  // standard D9): what OfflineNotice reads. Offline when the browser says so
3
3
  // (`navigator.onLine`, its `offline` event) or when a request couldn't get
4
4
  // an answer at all (safeFetch's network failure); online again when the
@@ -1,4 +1,4 @@
1
- // A list's date filter (4.110): FilterDate's value, as one string, so it
1
+ // A list's date filter: FilterDate's value, as one string, so it
2
2
  // lives in the URL like any single-value filter (useTableUrlState) and a
3
3
  // saved view can set it (`filters: { due: 'before-today' }`). It's either
4
4
  // a preset, read against today when the list loads, or a range of plain
@@ -1,4 +1,4 @@
1
- // EntityView's tabs (4.76, #303): the selected tab is `?tab=<slug>`, so a
1
+ // EntityView's tabs: the selected tab is `?tab=<slug>`, so a
2
2
  // screen can link straight to one (`/things/3?tab=${entityViewTabSlug('Used in')}`).
3
3
  /** A tab's name as it reads in the address: "Used in" is `used-in`. */
4
4
  export function entityViewTabSlug(name) {
@@ -1,4 +1,4 @@
1
- // Which fields of a form share a row (4.85, the form standard's F1),
1
+ // Which fields of a form share a row (the form standard's F1),
2
2
  // worked out from their order, never listed by hand. A field says how
3
3
  // much it holds (`Field size`); consecutive short ones share a row, up to
4
4
  // three, each as wide as its size: s 1, m 1.4, l 2.6 parts of the row.
@@ -12,7 +12,7 @@
12
12
  // numbers next to each other in a row, which stay side by side
13
13
  // (`phonePair`).
14
14
  //
15
- // A choice (4.98, record standard 9C: a Field holding ChoiceButtons, found
15
+ // A choice (record standard 9C: a Field holding ChoiceButtons, found
16
16
  // by itself) shares its row only with another choice, two to a row, so a
17
17
  // group of buttons has room to stay joined: three choices are two on a row
18
18
  // and the third on the next, and a choice beside a date starts a row of
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * How many problems react-hook-form's `formState.errors` hold: one per
3
- * field, one per list's own (`root`), however deep (4.85, EntityForm's
3
+ * field, one per list's own (`root`), however deep (EntityForm's
4
4
  * "N to fix").
5
5
  */
6
6
  export declare function countFormErrors(errors: unknown): number;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * How many problems react-hook-form's `formState.errors` hold: one per
3
- * field, one per list's own (`root`), however deep (4.85, EntityForm's
3
+ * field, one per list's own (`root`), however deep (EntityForm's
4
4
  * "N to fix").
5
5
  */
6
6
  export function countFormErrors(errors) {
@@ -1,4 +1,4 @@
1
- // Keeps a page's audio going with the phone locked (#217, #261). iOS pauses a
1
+ // Keeps a page's audio going with the phone locked. iOS pauses a
2
2
  // page's sound on the lock screen unless the page is playing media, so
3
3
  // keepAudioAlive() plays a silent looped track, which also puts the page's
4
4
  // title and a Pause and Play on the lock screen (the Media Session). It's