basalt-ui 2.11.1 → 2.12.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 (78) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +16 -0
  3. package/MIGRATING.md +24 -12
  4. package/README.md +2 -0
  5. package/agent/rules/basalt-mantine.md +1 -1
  6. package/agent/skills/basalt-app/SKILL.md +1 -1
  7. package/dist/cli/doctor-upgrade.d.ts +2 -3
  8. package/dist/cli/doctor-upgrade.d.ts.map +1 -1
  9. package/dist/cli/doctor-upgrade.js +71 -26
  10. package/dist/cli/index.d.ts +3 -1
  11. package/dist/cli/index.d.ts.map +1 -1
  12. package/dist/cli/index.js +3 -1
  13. package/dist/cli/sync.d.ts.map +1 -1
  14. package/dist/cli/sync.js +2 -1
  15. package/dist/commands/command-stash.d.ts +15 -0
  16. package/dist/commands/command-stash.d.ts.map +1 -0
  17. package/dist/commands/command-stash.js +31 -0
  18. package/dist/commands/define-commands.d.ts +2 -3
  19. package/dist/commands/define-commands.d.ts.map +1 -1
  20. package/dist/commands/define-commands.js +9 -7
  21. package/dist/commands/define-overlays.d.ts +6 -12
  22. package/dist/commands/define-overlays.d.ts.map +1 -1
  23. package/dist/commands/define-overlays.js +28 -34
  24. package/dist/commands/projectors.js +1 -1
  25. package/dist/provider/hotkeys.d.ts +2 -6
  26. package/dist/provider/hotkeys.d.ts.map +1 -1
  27. package/dist/provider/hotkeys.js +10 -15
  28. package/dist/provider/index.d.ts +5 -3
  29. package/dist/provider/index.d.ts.map +1 -1
  30. package/dist/provider/index.js +12 -35
  31. package/dist/provider/modals-mount.d.ts +16 -0
  32. package/dist/provider/modals-mount.d.ts.map +1 -0
  33. package/dist/provider/modals-mount.js +42 -0
  34. package/dist/provider/notifier.d.ts +22 -0
  35. package/dist/provider/notifier.d.ts.map +1 -0
  36. package/dist/provider/notifier.js +36 -0
  37. package/dist/provider/route-transition.d.ts +1 -1
  38. package/dist/provider/route-transition.d.ts.map +1 -1
  39. package/dist/provider/route-transition.js +1 -1
  40. package/dist/provider/slots.d.ts +25 -0
  41. package/dist/provider/slots.d.ts.map +1 -0
  42. package/dist/provider/slots.js +29 -0
  43. package/dist/provider/spotlight-actions.d.ts +1 -1
  44. package/dist/provider/spotlight-actions.d.ts.map +1 -1
  45. package/dist/provider/spotlight-actions.js +2 -3
  46. package/dist/provider/spotlight-mount.d.ts +3 -0
  47. package/dist/provider/spotlight-mount.d.ts.map +1 -0
  48. package/dist/provider/spotlight-mount.js +26 -0
  49. package/dist/router-tanstack/nav-stash.d.ts +24 -0
  50. package/dist/router-tanstack/nav-stash.d.ts.map +1 -0
  51. package/dist/router-tanstack/nav-stash.js +23 -0
  52. package/dist/router-tanstack/nav.d.ts +5 -15
  53. package/dist/router-tanstack/nav.d.ts.map +1 -1
  54. package/dist/router-tanstack/nav.js +6 -16
  55. package/dist/router-tanstack/use-nav.js +1 -1
  56. package/dist/surfaces.d.ts +1 -1
  57. package/dist/surfaces.js +1 -1
  58. package/llms.txt +4 -4
  59. package/package.json +2 -2
  60. package/src/cli/doctor-upgrade.ts +101 -35
  61. package/src/cli/index.ts +5 -3
  62. package/src/cli/sync.ts +2 -2
  63. package/src/commands/command-stash.ts +44 -0
  64. package/src/commands/define-commands.ts +10 -17
  65. package/src/commands/define-overlays.ts +40 -68
  66. package/src/commands/projectors.ts +1 -1
  67. package/src/provider/hotkeys.ts +14 -22
  68. package/src/provider/index.tsx +28 -52
  69. package/src/provider/modals-mount.tsx +66 -0
  70. package/src/provider/notifier.ts +52 -0
  71. package/src/provider/route-transition.ts +1 -1
  72. package/src/provider/slots.ts +59 -0
  73. package/src/provider/spotlight-actions.tsx +3 -4
  74. package/src/provider/spotlight-mount.tsx +33 -0
  75. package/src/router-tanstack/nav-stash.ts +41 -0
  76. package/src/router-tanstack/nav.ts +11 -31
  77. package/src/router-tanstack/use-nav.ts +1 -1
  78. package/src/surfaces.ts +1 -1
package/AGENTS.md CHANGED
@@ -21,7 +21,7 @@ and `./package.json` are **not exports** (`llms.txt` still ships in the tarball
21
21
  | `basalt-ui/vite` | build-tooling | basaltViteConfig(opts) — Vite preset for basalt-ui consumer apps; basaltAppPlugin(opts) — PWA head, manifest, and icon metadata derived from the token palette |
22
22
  | `basalt-ui/format` | headless | integer/money/percent/durationClock/relativeTime/weekday/km/kcal — Intl-backed, Mantine-free, React-free formatting; the chart layer formats through the same implementation |
23
23
  | `basalt-ui/forms` | mantine-coupled | Mantine form layer: useBasaltForm + inputProps/fieldKey (two calls — a spread `key` is a React 19 warning), on @mantine/form |
24
- | `basalt-ui/commands` | mantine-coupled | defineCommands (typed command bus), defineOverlays/overlays (a form dialog is a registered overlay opened with overlays.open), setColorScheme, toggleSidebar, ShortcutsHelp, defineNotifications/emit/NotificationBell (emit only accepts kinds registered in defineNotifications; folded in from ./notifications); BasaltProvider mounts Spotlight, Modals and Notifications |
24
+ | `basalt-ui/commands` | mantine-coupled | defineCommands (typed command bus), defineOverlays/overlays (a form dialog is a registered overlay opened with overlays.open), setColorScheme, toggleSidebar, ShortcutsHelp, defineNotifications/emit/NotificationBell (emit only accepts kinds registered in defineNotifications; folded in from ./notifications); BasaltProvider mounts Notifications; Spotlight mounts once defineNav/defineCommands ran, Modals once defineOverlays/overlays.confirm ran |
25
25
  | `basalt-ui/table` | mantine-coupled | BasaltDataTable and createColumnHelper: a data table over TanStack Table v9, rendered with Mantine |
26
26
  | `basalt-ui/agent` | mantine-coupled | Streaming-chat surface: aiSdkTransport, useAgentThreadRuns, parseAgentPart, the open part-registry types, the consumer-owned thread contracts (AgentThread/ThreadsStore/ChatMessage), and the Mantine chat UI folded in from ./agent-chat (ThreadFeed, ThreadFeedRow, Composer, ToolChip). motion is subpath-required: the chat UI imports it eagerly |
27
27
  | `basalt-ui/content` | mantine-coupled | Prose (article/chat typography), Callout, TableOfContents (given a containerRef it collects the id-bearing h2/h3 under that one container — levels changes which — on mount and on every DOM childList change, so it reads the slug ids `Markdown` gives every heading; `Prose` sets no ids and an explicit items list replaces collection), Markdown (react-markdown + remark-gfm, optional peers; `streaming` is a rendering mode ONLY — `contentTrust` is the independent security input, and any surface rendering agent/model output must pin `contentTrust="untrusted"`, the sole input to the image-origin allowlist; `fenceRenderers` extends fenced-block rendering — settledOnly/FenceRenderer/FenceRenderers; `sanitizeSchema` is an additions-only SanitizeSchemaExtension merged over the default via mergeSanitizeSchema; shiki code blocks, beautiful-mermaid diagrams and the remend streaming repair load lazily from optional peers), ArticleLayout (docs-page frame), GuideLink (contextual-help link) — the content/prose surface |
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # [2.12.0](https://github.com/jkrumm/basalt-ui/compare/v2.11.1...v2.12.0) (2026-10-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * accept a pathless-layout provider and read the router context from types ([a57f4f5](https://github.com/jkrumm/basalt-ui/commit/a57f4f549b82bad0981155baac0d6544d507fc56))
7
+ * close cancels pending overlays, live counters share one helper ([474712e](https://github.com/jkrumm/basalt-ui/commit/474712e71d8fb877cdb415163df0ad4e5725c1cd))
8
+ * count provider tags, not files, and share the Start provider hint ([2293494](https://github.com/jkrumm/basalt-ui/commit/2293494b46086f1142bcaa9e9e6918ee694089a4))
9
+ * slot review — nav stash leaf, shared notifier, late overlay open ([5ad739d](https://github.com/jkrumm/basalt-ui/commit/5ad739db8ff06e71eb3a66a49b6fc29e300ba051))
10
+ * tie the Start root-context check to the exported root route ([aefc446](https://github.com/jkrumm/basalt-ui/commit/aefc4465fbb2bee72f4d2ef4cd643d1e6c71dc5e))
11
+
12
+
13
+ ### Features
14
+
15
+ * provider bundles Spotlight, modals, hotkeys only when defined ([37c3477](https://github.com/jkrumm/basalt-ui/commit/37c347743a83db4b291173cf0238f37d6aa2fb42))
16
+
1
17
  ## [2.11.1](https://github.com/jkrumm/basalt-ui/compare/v2.11.0...v2.11.1) (2026-10-15)
2
18
 
3
19
 
package/MIGRATING.md CHANGED
@@ -66,18 +66,18 @@ There is one row per SURFACE, not per export, and a surface earns a row once any
66
66
  shipped lefthook preset both changed in 1.30.0 with no row that owned them — which is how a
67
67
  consumer read this index, found nothing, and diffed a KPI row that had silently gone 4-up → 2-up.
68
68
 
69
- | Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.1.0 | 2.2.0 | 2.3.0 | 2.4.0 | 2.5.0 | 2.6.0 | 2.6.1 | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.8.0 | 2.8.1 | 2.9.0 | 2.9.1 | 2.10.0 | 2.11.0 | 2.11.1 | Unreleased |
70
- | ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
71
- | **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — |
72
- | **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BandSpan.absentFraction` + `absentState` (§ 2.8.0) | — | — | — | — | — | — | — |
73
- | **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltProvider` embedded mode, `spotlight` (§ 2.8.0) | — | — | — | — | — | — | — |
74
- | **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
75
- | **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — |
76
- | **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
77
- | **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — |
78
- | **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
79
- | **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `doctor`: CSS + forced dropped subpaths, `oxlint-floor`, Start wiring (§ 2.8.0) | — | § 1.x compatibility layer removed | — | — | — | — | — |
80
- | **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — |
69
+ | Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.1.0 | 2.2.0 | 2.3.0 | 2.4.0 | 2.5.0 | 2.6.0 | 2.6.1 | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.8.0 | 2.8.1 | 2.9.0 | 2.9.1 | 2.10.0 | 2.11.0 | 2.11.1 | 2.12.0 | Unreleased |
70
+ | ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
71
+ | **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — |
72
+ | **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BandSpan.absentFraction` + `absentState` (§ 2.8.0) | — | — | — | — | — | — | — | — |
73
+ | **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltProvider` embedded mode, `spotlight` (§ 2.8.0) | — | — | — | — | — | — | — | — |
74
+ | **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
75
+ | **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — |
76
+ | **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
77
+ | **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — |
78
+ | **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
79
+ | **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `doctor`: CSS + forced dropped subpaths, `oxlint-floor`, Start wiring (§ 2.8.0) | — | § 1.x compatibility layer removed | — | — | — | — | — | — |
80
+ | **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — |
81
81
 
82
82
  ---
83
83
 
@@ -1046,6 +1046,18 @@ The `basalt-ui/router-tanstack` subpath is **removed** in 2.x, not moved: an imp
1046
1046
  _Nothing yet. Author the next section under this heading as `## Unreleased — <title>`; the
1047
1047
  release renames it and opens a new one here._
1048
1048
 
1049
+ ## 2.12.0 — the provider bundles only what the app defines; Start wiring accepts a pathless layout
1050
+
1051
+ - **`ModalsProvider` is a sibling of the router, not its wrapper, and mounts only once `defineOverlays`, `overlays.open` or `overlays.confirm` asked for it.** `BasaltProvider` no longer imports `@mantine/modals`; the define call registers the mount, so a late call (a lazily loaded route) mounts it beside the app without re-parenting or remounting the tree. `useModals()` / `openContextModal` context is therefore **no longer provided**: a component calling `useModals()` throws "outside of context". **Opt-out: use the imperative `modals.*` / `overlays.*` API. Do NOT mount a second `ModalsProvider` while `defineOverlays` / `overlays` are in use** — Mantine's modals ride a window event bus, so every mounted `ModalsProvider` answers one `modals.open`, and you get two dialogs (pinned in `slots.test.tsx`).
1052
+ - **`overlays.open` / `overlays.confirm` may wait for the mount.** The first call after the define registers the mount and waits for the provider to commit it: a tick normally, up to 5 s while a `BasaltProvider` is mounted and busy. With no `BasaltProvider` mounted, `confirm` rejects after 500 ms (as before, now delayed) and `open` warns in dev.
1053
+ - **Spotlight mounts only when the app calls `defineNav` or `defineCommands`.** Nav entries and commands are what the palette lists; an app defining neither ships none of `@mantine/spotlight`. `spotlight={false}` still suppresses the mount. The dev dock's three `dev.*` palette commands now appear only in an app that defines nav or commands. **Opt-out: call `defineNav` or `defineCommands` (even `defineCommands({})`).**
1054
+ - **Command shortcuts bind through `defineCommands`.** It registers the hotkey binder when any command has a `shortcut`, and rebinds if `defineCommands` runs again; `@tanstack/react-hotkeys` is no longer reachable from `BasaltProvider`, so an app with no shortcuts neither ships nor loads it (it was a ~15 KB gzip dynamic chunk that bundle-graph size bars counted). **Opt-out: none.**
1055
+ - **Measured:** an embedded `<BasaltProvider spotlight={false}>` with no defines, peers bundled and every chunk counted, dropped from 190544 B to 166834 B gzip (`scripts/check-budgets.ts` gates it).
1056
+ - **`doctor` accepts the Start provider in a pathless layout.** `<BasaltProvider>` may sit in `__root.tsx` or in `src/routes/_<name>.tsx` / `_<name>/route.tsx` at any depth (a landing kept at 0 JS mounts it in the layout). Exactly one `<BasaltProvider>` tag across the root and the layouts is allowed; a second one, even in the same file, fails naming the file. `router=` on the provider is rejected in a layout file too, as it was in the root. **Opt-out: none.**
1057
+ - **New `app-wiring` fail: an untyped Start root route.** A root that exports `Route = createRootRoute(` has no `queryClient` in its router context, which the embedded provider reads. Fix: `export const Route = createRootRouteWithContext<BasaltRouterContext>()({ … })` (`import type { BasaltRouterContext } from 'basalt-ui'`) and pass the `QueryClient` in `createRouter({ context })`. A re-export, wrapper or missing `Route` export is not judged. `doctor` exits non-zero on it. **Opt-out: none.**
1058
+ - **The `src/router.tsx` "never mentions queryClient" warning is gone.** The root route's declared type replaces the text heuristic; delete any `ignore if you build it elsewhere` note you kept for it.
1059
+ - **Docs: the `motion` peer is `^14.1.0`.** It was exact-pinned at `14.1.0`; any 14.x ≥ 14.1.0 now satisfies it. **Opt-out: none.**
1060
+
1049
1061
  ## 2.11.1 — lone points, end labels and axis ticks render cleanly
1050
1062
 
1051
1063
  - **`Lines` draws a lone point.** A series with one finite value (a one-point window, or a value between nulls) drew nothing: a path of one point has no length. It now draws a dot in the series colour, at every isolated finite row (`gaps: 'connect'` bridges the nulls, so only a series with a single finite row is lone there). A point the series' own `getMarker` marks is not doubled. Delete any `getMarker` you added to make a single run visible. **Opt-out: none.**
package/README.md CHANGED
@@ -705,6 +705,8 @@ strict flags), `react-app` (`base` + DOM/JSX libs) and `node` (`base` + Node typ
705
705
  { "extends": "basalt-ui/configs/tsconfig.react-app.json" }
706
706
  ```
707
707
 
708
+ `tsc` checks every file in the program with the program's options, so a workspace package imported from source is checked under the preset's flags and no compiler option excludes it. Give each package its own tsconfig and link them with TS project references (`references` + `composite: true`), or consume the package's built `.d.ts`.
709
+
708
710
  `.oxfmtrc.json` has no `extends` of its own — copy `configs/oxfmt.json` verbatim (`basalt-ui init`
709
711
  does this for you).
710
712
 
@@ -18,7 +18,7 @@ paths:
18
18
 
19
19
  ## Provider
20
20
 
21
- - Mount once: `createBasaltRouter({ routeTree })`, then `<BasaltProvider router={router} />`; in a router you do not own (TanStack Start root route) pass `children` instead, with `context.queryClient`. `spotlight={false}` for an app with its own Cmd+K. It owns Mantine, Query, modals, notifications and Spotlight. [type BasaltProvider]
21
+ - Mount once: `createBasaltRouter({ routeTree })`, then `<BasaltProvider router={router} />`; in a router you do not own (TanStack Start root route) pass `children` instead, with `context.queryClient`. `spotlight={false}` for an app with its own Cmd+K. It owns Mantine, Query and notifications; Spotlight mounts once `defineNav`/`defineCommands` ran, `ModalsProvider` (a sibling, no `useModals()` context) once `defineOverlays`/`overlays.confirm` ran. [type BasaltProvider]
22
22
  - Never pass `cssVariablesResolver` to `BasaltProvider`; retune with `theme={createBasaltTheme(...)}`. [type BasaltProvider]
23
23
  - Read and write the color scheme with `useMantineColorScheme()` only. [check-theme localstorage-theme]
24
24
 
@@ -9,7 +9,7 @@ Procedure only; the law is `.claude/rules/basalt-*.md`.
9
9
  ## Scaffold
10
10
 
11
11
  1. `bun add basalt-ui && bunx basalt-ui init` (the only `bunx` call; use `./node_modules/.bin/basalt-ui` after).
12
- 2. Check the seeded `src/main.tsx` (`init` writes it when absent; on a TanStack Start app it seeds none: render `<BasaltProvider><Outlet /></BasaltProvider>` with no `router` in the root route component, `context.queryClient` set in `getRouter()`); `spotlight={false}` drops Basalt's Cmd+K for an app with its own. `basalt-ui/styles.css` is the only stylesheet import:
12
+ 2. Check the seeded `src/main.tsx` (`init` writes it when absent; on a TanStack Start app it seeds none: render `<BasaltProvider><Outlet /></BasaltProvider>` with no `router` in the root route component or a pathless layout, `context.queryClient` set in `getRouter()`); `spotlight={false}` drops Basalt's Cmd+K for an app with its own. `basalt-ui/styles.css` is the only stylesheet import:
13
13
 
14
14
  ```tsx
15
15
  // @check
@@ -26,9 +26,8 @@ export declare function oxlintFloorCheck(cwd: string): Check;
26
26
  */
27
27
  export declare function seedTsconfigExtends(cwd: string): string | null;
28
28
  /**
29
- * Warnings for a Start app's embedded provider; heuristics, not proofs. A `{...spread}` on the tag
30
- * could carry a `router`; `src/router.tsx` never mentioning `queryClient` means the embedded
31
- * provider will find no `context.queryClient`. Empty when there is nothing to judge.
29
+ * Warnings for a Start app's embedded provider; heuristics, not proofs. A `{...spread}` on a tag
30
+ * could carry a `router`. Empty when there is nothing to judge.
32
31
  */
33
32
  export declare function startWiringWarnings(cwd: string): string[];
34
33
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"doctor-upgrade.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-upgrade.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAY5C,MAAM,MAAM,KAAK,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAA;AA6B9D,wEAAwE;AACxE,eAAO,MAAM,YAAY,GAAI,GAAG,MAAM,KAAG,MACc,CAAA;AA+CvD,uFAAuF;AACvF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAqBpD;AA+CD,4FAA4F;AAC5F,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,KAAK,CAsBhF;AA2DD,mGAAmG;AACnG,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,Y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MAAM,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAQ9E,CAAA;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,GAAG,KAAK,CAsB/F"}
@@ -1,8 +1,8 @@
1
- import { writeFileSync } from "node:fs";
1
+ import { readdirSync, writeFileSync } from "node:fs";
2
2
  import { createRequire } from "node:module";
3
3
  import { dirname, relative, resolve } from "node:path";
4
4
  import { BASALT_CONFIG_KEYS, RETIRED_CONFIG_KEYS, shellConfigError } from "./config.js";
5
- import { parseJsonc, routerSeedDest, scannableFiles } from "./index.js";
5
+ import { START_PROVIDER_HINT, parseJsonc, routerSeedDest, scannableFiles } from "./index.js";
6
6
  import {
7
7
  appEntry,
8
8
  callsIn,
@@ -271,42 +271,87 @@ function providerTags(src) {
271
271
  });
272
272
  }
273
273
  const carriesRouter = (tag) => /(^|\s)router\s*=/.test(tag.attrs);
274
- function startWiring(cwd) {
275
- const root = routerSeedDest("", "root");
276
- const text = readIfExists(resolve(cwd, root));
277
- const tags = providerTags(text ?? "");
278
- const mounting = tags.some(carriesRouter);
279
- if (!mounting && tags.length > 0) return null;
280
- const problem = text === null ? "does not exist" : mounting ? "passes router= to BasaltProvider, which mounts a second router inside Start" : "does not render <BasaltProvider>";
281
- return {
282
- fail: `app-wiring: ${root} ${problem} (TanStack Start app). Fix: render <BasaltProvider><Outlet /></BasaltProvider> in the root route component.`
274
+ const PATHLESS_LAYOUT = /(^|\/)(_[^_./][^./]*\.[jt]sx|_[^_./][^./]*\/route\.[jt]sx)$/;
275
+ function filesUnder(cwd, rel) {
276
+ let entries;
277
+ try {
278
+ entries = readdirSync(resolve(cwd, rel), { withFileTypes: true });
279
+ } catch {
280
+ return [];
281
+ }
282
+ return entries.flatMap(
283
+ (e) => e.isDirectory() ? filesUnder(cwd, `${rel}/${e.name}`) : [`${rel}/${e.name}`]
284
+ );
285
+ }
286
+ function startProviderFiles(cwd) {
287
+ const rootFile = routerSeedDest("", "root");
288
+ const routesDir = dirname(rootFile);
289
+ const load = (file) => {
290
+ const text = readIfExists(resolve(cwd, file));
291
+ return { file, text, tags: providerTags(text ?? "") };
283
292
  };
293
+ const layouts = filesUnder(cwd, routesDir).filter((f) => PATHLESS_LAYOUT.test(f.slice(routesDir.length + 1))).toSorted();
294
+ return { root: load(rootFile), layouts: layouts.map(load) };
284
295
  }
285
- function startWiringWarnings(cwd) {
286
- if (!isStartApp(cwd, "")) return [];
287
- const out = [];
288
- const root = readIfExists(resolve(cwd, routerSeedDest("", "root")));
289
- if (root !== null && providerTags(root).some((t) => t.spread)) {
290
- out.push(
291
- "app-wiring: <BasaltProvider {...spread}> in the root route could pass router=, which mounts a second router inside Start (heuristic: the spread is not followed)."
296
+ function rootRouteKind(src) {
297
+ const kind = /\bexport\s+const\s+Route\s*(?::[^=]+)?=\s*(createRootRouteWithContext|createRootRoute)\b/.exec(
298
+ tokenize(src).code
299
+ )?.[1];
300
+ if (kind === void 0) return null;
301
+ return kind === "createRootRoute" ? "untyped" : "typed";
302
+ }
303
+ const fail = (problem, fix) => ({
304
+ fail: `app-wiring: ${problem} (TanStack Start app). Fix: ${fix}.`
305
+ });
306
+ function startWiring(cwd) {
307
+ const { root, layouts } = startProviderFiles(cwd);
308
+ const withTags = [root, ...layouts].filter((f) => f.tags.length > 0);
309
+ const mounting = withTags.find((f) => f.tags.some(carriesRouter));
310
+ if (mounting) {
311
+ return fail(
312
+ `${mounting.file} passes router= to BasaltProvider, which mounts a second router inside Start`,
313
+ START_PROVIDER_HINT
292
314
  );
293
315
  }
294
- const router = readIfExists(resolve(cwd, "src/router.tsx"));
295
- if (router !== null && !/queryClient/.test(router)) {
296
- out.push(
297
- "app-wiring: src/router.tsx never mentions queryClient \u2014 embedded BasaltProvider needs context.queryClient on the Start router (heuristic text check; ignore if you build it elsewhere)."
316
+ const [first] = withTags;
317
+ if (first === void 0) {
318
+ const problem = root.text === null ? `${root.file} does not exist and no pathless layout renders <BasaltProvider>` : `neither ${root.file} nor a pathless layout (src/routes/_<name>.tsx, _<name>/route.tsx) renders <BasaltProvider>`;
319
+ return fail(problem, START_PROVIDER_HINT);
320
+ }
321
+ const tagCount = withTags.reduce((n, f) => n + f.tags.length, 0);
322
+ if (tagCount > 1) {
323
+ return fail(
324
+ `${withTags.map((f) => f.file).join(" and ")} render ${tagCount} <BasaltProvider> tags; the extra ones nest a duplicate Query/Mantine tree`,
325
+ "keep one"
298
326
  );
299
327
  }
300
- return out;
328
+ if (root.text === null) {
329
+ return fail(
330
+ `${root.file} does not exist, so the provider in ${first.file} has no root route context`,
331
+ "create it with `export const Route = createRootRouteWithContext<BasaltRouterContext>()({ \u2026 })`"
332
+ );
333
+ }
334
+ if (rootRouteKind(root.text) !== "untyped") return null;
335
+ return fail(
336
+ `${root.file} exports a Route built with createRootRoute(), so its router context has no queryClient, which the embedded BasaltProvider reads from context.queryClient`,
337
+ "`createRootRouteWithContext<BasaltRouterContext>()({ \u2026 })` (import type { BasaltRouterContext } from 'basalt-ui') and pass the QueryClient in createRouter({ context })"
338
+ );
339
+ }
340
+ function startWiringWarnings(cwd) {
341
+ if (!isStartApp(cwd, "")) return [];
342
+ const { root, layouts } = startProviderFiles(cwd);
343
+ return [root, ...layouts].filter((f) => f.tags.some((t) => t.spread)).map(
344
+ (f) => `app-wiring: <BasaltProvider {...spread}> in ${f.file} could pass router=, which mounts a second router inside Start (heuristic: the spread is not followed).`
345
+ );
301
346
  }
302
347
  const BASALT_SHELL_TAG = /<BasaltShell\b/g;
303
348
  function shellDeclarationFindings(cwd, cfg) {
304
- const fail = shellConfigError(cfg);
349
+ const fail2 = shellConfigError(cfg);
305
350
  if (cfg.shell !== false || !callsIn(cwd, appEntry(cwd), BASALT_SHELL_TAG)) {
306
- return { fail, warnings: [] };
351
+ return { fail: fail2, warnings: [] };
307
352
  }
308
353
  return {
309
- fail,
354
+ fail: fail2,
310
355
  warnings: ["declared basalt.shell: false but the app renders BasaltShell \u2014 drop the key."]
311
356
  };
312
357
  }
@@ -211,7 +211,9 @@ export declare const ROUTER_SEED_DESTS: {
211
211
  export declare function routerSeedDest(appRel: string, seed: keyof typeof ROUTER_SEED_DESTS): string;
212
212
  /** The router seeds' dests for an app dir (`main.tsx`, `nav.tsx`, `__root.tsx`). */
213
213
  export declare function routerSeedDests(appRel: string): string[];
214
- export declare const START_APP_NOTE: string;
214
+ /** Where a Start app's embedded provider goes (doctor, init and sync all say it). */
215
+ export declare const START_PROVIDER_HINT = "render <BasaltProvider><Outlet /></BasaltProvider> in the root route component or a pathless layout";
216
+ export declare const START_APP_NOTE = "TanStack Start app \u2014 no main.tsx/nav.tsx/__root.tsx seeded (Start owns the router); render <BasaltProvider><Outlet /></BasaltProvider> in the root route component or a pathless layout.";
215
217
  /**
216
218
  * The router seeds an app does not get, for `init` and `sync`: why (`start` | `code-routed` |
217
219
  * `shell-less` | null) and which dests. A tokens-only consumer gets none of them either; so does an
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,WAAW,EAA4B,MAAM,UAAU,CAAA;AACrE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE3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S,EAAE,CAAA;AAClG,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACzC,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA"}
package/dist/cli/index.js CHANGED
@@ -346,7 +346,8 @@ function routerSeedDests(appRel) {
346
346
  (seed) => routerSeedDest(appRel, seed)
347
347
  );
348
348
  }
349
- const START_APP_NOTE = "TanStack Start app \u2014 no main.tsx/nav.tsx/__root.tsx seeded (Start owns the router); render <BasaltProvider><Outlet /></BasaltProvider> in your root route component.";
349
+ const START_PROVIDER_HINT = "render <BasaltProvider><Outlet /></BasaltProvider> in the root route component or a pathless layout";
350
+ const START_APP_NOTE = `TanStack Start app \u2014 no main.tsx/nav.tsx/__root.tsx seeded (Start owns the router); ${START_PROVIDER_HINT}.`;
350
351
  function routerSeedPlan(cwd, appRel, tokensOnly = false) {
351
352
  const detected = tokensOnly ? null : routerSeedSkip(cwd, appRel);
352
353
  const skip = detected ?? (!tokensOnly && readBasaltConfig(cwd).shell === false ? "shell-less" : null);
@@ -981,6 +982,7 @@ export {
981
982
  SKILL_NAMES,
982
983
  SKIP,
983
984
  START_APP_NOTE,
985
+ START_PROVIDER_HINT,
984
986
  basaltBinCommand,
985
987
  basaltPresetEntry,
986
988
  checkTheme,
@@ -1 +1 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/cli/sync.ts"],"names":[],"mappings":"AA4CA,gGAAgG;AAChG,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAGjE;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,mGAAmG;IACnG,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAC1B,CAAA;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAKrF;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,IAAI,GAAE,WAAgB,EAAE,aAAa,GAAE,MAAsB,GAAG,MAAM,CAoP1F"}
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/cli/sync.ts"],"names":[],"mappings":"AA6CA,gGAAgG;AAChG,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAGjE;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,mGAAmG;IACnG,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAC1B,CAAA;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAKrF;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,IAAI,GAAE,WAAgB,EAAE,aAAa,GAAE,MAAsB,GAAG,MAAM,CAmP1F"}
package/dist/cli/sync.js CHANGED
@@ -34,6 +34,7 @@ import {
34
34
  sha256,
35
35
  shippedAssetPath,
36
36
  START_APP_NOTE,
37
+ START_PROVIDER_HINT,
37
38
  unitState,
38
39
  writeFileEnsuringDir,
39
40
  writeUnit
@@ -148,7 +149,7 @@ function sync(opts = {}, invocationCwd = process.cwd()) {
148
149
  const stale = startSkippedSeeds.filter((d) => isTracked(d) && existsSync(resolve(cwd, d)));
149
150
  const mounting = stale.filter((d) => !d.endsWith("nav.tsx"));
150
151
  const inert = stale.filter((d) => d.endsWith("nav.tsx"));
151
- const embedded = "Delete them and render <BasaltProvider><Outlet /></BasaltProvider> in the Start root route (embedded mode).";
152
+ const embedded = `Delete them and ${START_PROVIDER_HINT} (embedded mode).`;
152
153
  if (mounting.length > 0) {
153
154
  console.error(
154
155
  `\u26A0 basalt-ui sync: ${mounting.join(", ")} mount a second router inside this TanStack Start app; left untouched. ${embedded}`
@@ -0,0 +1,15 @@
1
+ import type { Command, CommandMap } from './define-commands.js';
2
+ /** @internal — `defineCommands` only. The last call wins; readers subscribed via {@link subscribeCommands} re-read. */
3
+ export declare function setActiveCommands(spec: CommandMap): void;
4
+ /** @internal — test isolation only. */
5
+ export declare function resetCommandStash(): void;
6
+ /** @internal — exposed to the provider and projectors.ts to iterate the runtime stash. Returns a readonly view. */
7
+ export declare function getActiveCommands(): Readonly<CommandMap>;
8
+ /** @internal — `useSyncExternalStore` subscribe for a late `defineCommands` (a lazily loaded route). */
9
+ export declare const subscribeCommands: (listener: () => void) => () => void;
10
+ /**
11
+ * Runs a command, swallowing a sync throw or async rejection so a failing command never becomes an
12
+ * unhandled rejection (which the provider would report as a `window.error`). Dev logs it.
13
+ */
14
+ export declare function runCommandSafely(cmd: Command): void;
15
+ //# sourceMappingURL=command-stash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-stash.d.ts","sourceRoot":"","sources":["../../src/commands/command-stash.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAK5D,uHAAuH;AACvH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAGxD;AAED,uCAAuC;AACvC,wBAAgB,iBAAiB,IAAI,IAAI,CAExC;AAED,mHAAmH;AACnH,wBAAgB,iBAAiB,IAAI,QAAQ,CAAC,UAAU,CAAC,CAExD;AAED,wGAAwG;AACxG,eAAO,MAAM,iBAAiB,sCAAkB,CAAA;AAEhD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CASnD"}
@@ -0,0 +1,31 @@
1
+ import { createNotifier } from "../provider/notifier.js";
2
+ let activeCommands = {};
3
+ const store = createNotifier();
4
+ function setActiveCommands(spec) {
5
+ activeCommands = spec;
6
+ store.notify();
7
+ }
8
+ function resetCommandStash() {
9
+ setActiveCommands({});
10
+ }
11
+ function getActiveCommands() {
12
+ return activeCommands;
13
+ }
14
+ const subscribeCommands = store.subscribe;
15
+ function runCommandSafely(cmd) {
16
+ const report = (error) => {
17
+ if (process.env.NODE_ENV !== "production") console.error("[basalt] command failed", error);
18
+ };
19
+ try {
20
+ Promise.resolve(cmd.run()).catch(report);
21
+ } catch (error) {
22
+ report(error);
23
+ }
24
+ }
25
+ export {
26
+ getActiveCommands,
27
+ resetCommandStash,
28
+ runCommandSafely,
29
+ setActiveCommands,
30
+ subscribeCommands
31
+ };
@@ -94,7 +94,8 @@ export type CommandId = Extract<keyof Commands, string>;
94
94
  * keys so the id union is exact after augmenting BasaltRegister.
95
95
  *
96
96
  * Stashes the runtime map so the provider resolves commands at runtime (type augmentation is
97
- * erased; the stash is the live source).
97
+ * erased; the stash is the live source), and registers the provider mounts that need it: Spotlight,
98
+ * plus the hotkey binder when any command has a `shortcut`. Nothing else pulls those into a bundle.
98
99
  *
99
100
  * @example
100
101
  * export const COMMANDS = defineCommands({
@@ -118,7 +119,5 @@ export declare function defineCommands<const T extends CommandMap>(spec: T): T;
118
119
  * // Then include saveCmd in a defineCommands({ 'file:save': saveCmd }) call to register it.
119
120
  */
120
121
  export declare function defineCommand(cmd: Command): Command;
121
- /** @internal — exposed to the provider and projectors.ts to iterate the runtime stash. Returns a readonly view. */
122
- export declare function getActiveCommands(): Readonly<CommandMap>;
123
122
  export {};
124
123
  //# sourceMappingURL=define-commands.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"define-commands.d.ts","sourceRoot":"","sources":["../../src/commands/define-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAA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let activeCommands = {};
1
+ import { HotkeyBinder } from "../provider/hotkeys.js";
2
+ import { registerSlot } from "../provider/slots.js";
3
+ import { SpotlightMount } from "../provider/spotlight-mount.js";
4
+ import { setActiveCommands } from "./command-stash.js";
2
5
  function defineCommands(spec) {
3
- activeCommands = spec;
6
+ setActiveCommands(spec);
7
+ registerSlot("spotlight", SpotlightMount);
8
+ if (Object.values(spec).some((c) => c.shortcut !== void 0))
9
+ registerSlot("hotkeys", HotkeyBinder);
4
10
  return spec;
5
11
  }
6
12
  function defineCommand(cmd) {
7
13
  return cmd;
8
14
  }
9
- function getActiveCommands() {
10
- return activeCommands;
11
- }
12
15
  export {
13
16
  defineCommand,
14
- defineCommands,
15
- getActiveCommands
17
+ defineCommands
16
18
  };
@@ -8,7 +8,8 @@
8
8
  * A form dialog is an entry whose `render` returns the form; open it from a row action with
9
9
  * `overlays.open('id', props)` and put its component in a `*-modal.tsx`.
10
10
  *
11
- * Uses @mantine/modals under the hood. ModalsProvider must be mounted (BasaltProvider does this).
11
+ * Uses @mantine/modals under the hood. Calling `defineOverlays` registers the `ModalsProvider` mount
12
+ * (a sibling of the router, in `BasaltProvider`) — an app that defines none ships none of the peer.
12
13
  *
13
14
  * @example
14
15
  * // overlays.ts (app-side)
@@ -30,13 +31,6 @@
30
31
  */
31
32
  import type { ReactNode } from 'react';
32
33
  import type { Slot } from '../register.js';
33
- /**
34
- * Internal — `BasaltProvider` declares its `ModalsProvider` as live for as long as it is mounted,
35
- * and gets back the function that retracts it. There is no way to detect the provider from outside
36
- * React (its context is only readable through `useModals()`, and `confirm` is an imperative call),
37
- * so the registration is explicit. Not on the `./commands` barrel.
38
- */
39
- export declare function registerModalsProvider(): () => void;
40
34
  /**
41
35
  * A single registered overlay. The per-overlay props type P is the consumer's own payload.
42
36
  *
@@ -137,10 +131,10 @@ export type ConfirmDeleteOptions = {
137
131
  * other exit (cancel, escape, click-outside, the close button). `onConfirm`/`onCancel` fire exactly
138
132
  * once each at most, before the promise settles.
139
133
  *
140
- * Rejects with a named `[basalt]` error when the modals layer cannot serve the dialog — the
141
- * `@mantine/modals` peer is absent, or no `ModalsProvider` is registered as live (see
142
- * {@link registerModalsProvider}). Both would otherwise leave the promise pending forever: the
143
- * imperative API is a window event bus with nothing subscribed.
134
+ * The first call registers the modals mount and waits for the `BasaltProvider` to commit it — a tick
135
+ * normally, up to 5 s while a provider is mounted and busy. Rejects with a named `[basalt]` error when
136
+ * no `BasaltProvider` is mounted (after a 500 ms grace for one mounting now): the imperative API is a
137
+ * window event bus, and with nothing subscribed the promise would stay pending forever.
144
138
  *
145
139
  * @example
146
140
  * if (await overlays.confirm({ title: 'Discard draft?', onConfirm: () => reset() })) navigate('/')
@@ -1 +1 @@
1
- {"version":3,"file":"define-overlays.d.ts","sourceRoot":"","sources":["../../src/commands/define-overlays.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AA+BvC;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,IAAI,CAUnD;AAID;;;;;;;;GAQG;AAEH,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACjD,yDAAyD;IACzD,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,iDAAiD;IACjD,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAA;CAChC,CAAA;AAED;;;;;;;GAOG;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAA;AAIrD,wEAAwE;AACxE,KAAK,QAAQ,GAAG,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA;AAE5C;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,O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