torch-glare-mcp 1.3.0 → 1.3.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.
@@ -11,7 +11,22 @@ keywords: [data-views, layout, table, kanban, inbox, tree, multi-view, filter, s
11
11
 
12
12
  ## Installation
13
13
 
14
- The component is part of `torch-glare`. It depends on `@radix-ui/react-slider`, `react-day-picker`, `lucide-react`, and `vaul` (all already vendored by the library). No extra install needed.
14
+ ```bash
15
+ npx torch-glare@latest add DataViews
16
+ ```
17
+
18
+ The CLI transitively installs everything DataViews imports — the sibling views,
19
+ the `DataViewCard` layout, the `useDataViewsState` hook, the `dataViews` utils,
20
+ and the `TreeFolder` component — plus the 3rd-party deps it uses
21
+ (`@radix-ui/react-slider`, `react-day-picker`, `lucide-react`, `vaul`).
22
+
23
+ > **Badge version:** DataViews uses the current Badge API
24
+ > (`color` / `badgeStyle` / `showIcon`). If your project vendored an older
25
+ > `Badge.tsx` (with `variant` / `isSelected`), refresh it with
26
+ > `npx torch-glare@latest add Badge --force` and migrate call sites
27
+ > (`variant=` → `color=`, `isSelected`+`onUnselect` → `isClosable`+`onClose`).
28
+ > The Badge also needs `mapping-color-system-v4` tokens
29
+ > (`--background-presentation-badge-{color}-{subtle|solid}`) in your CSS.
15
30
 
16
31
  ## Import
17
32
 
@@ -140,6 +155,8 @@ Inbox auto-detects `isRead`, `isStarred`, `hasAttachment`, `priority`. Override
140
155
  | `views` | `ViewVisibility` | all on (tree auto) | Per-view toggle: `{ table?, kanban?, inbox?, tree? }`. Omitted keys default to `true` (Tree auto-hides without hierarchy). |
141
156
  | `kanbanGroupBy` | `string` | `"status"` | Dot-path to the field used for Kanban columns. |
142
157
  | `inboxConfig` | `InboxConfig` | auto-detected | Map of starred/read/attachment/priority field paths for Inbox. |
158
+ | `inboxItemHref` | `(item, id) => string` | — | When set, each Inbox row becomes a link to the returned href. |
159
+ | `inboxLinkComponent` | `ElementType` | `"a"` | Component used to render Inbox item links when `inboxItemHref` is set. Pass your router's link (Next.js `Link`, React Router `Link`) for client-side navigation; defaults to a plain `<a>` (full-page nav). |
143
160
  | `treeConfig` | `TreeConfig` | auto-detected | `childrenField`, `parentField`, `idField`, `nodeLabel`, `defaultExpanded`. |
144
161
  | `filterState` | `FilterState` | uncontrolled | Controlled filter state. Pair with `onFilterChange`. |
145
162
  | `onFilterChange` | `(state: FilterState) => void` | — | Fires when any filter changes. When provided, the layout is controlled. |