basalt-ui 2.9.0 → 2.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/MIGRATING.md +35 -12
- package/configs/oxlint.json +4 -0
- package/dist/cli/config.d.ts +10 -0
- package/dist/cli/config.d.ts.map +1 -1
- package/dist/cli/config.js +7 -2
- package/dist/cli/doctor-upgrade.d.ts +9 -0
- package/dist/cli/doctor-upgrade.d.ts.map +1 -1
- package/dist/cli/doctor-upgrade.js +14 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +4 -0
- package/dist/cli/index.d.ts +3 -2
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +4 -2
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +6 -0
- package/dist/cli/router-wiring.d.ts +4 -2
- package/dist/cli/router-wiring.d.ts.map +1 -1
- package/dist/cli/router-wiring.js +2 -0
- package/dist/cli/sync.d.ts.map +1 -1
- package/dist/cli/sync.js +11 -4
- package/llms.txt +2 -2
- package/package.json +1 -1
- package/src/cli/config.ts +17 -1
- package/src/cli/doctor-upgrade.ts +23 -1
- package/src/cli/doctor.ts +4 -0
- package/src/cli/index.ts +8 -4
- package/src/cli/init.ts +7 -0
- package/src/cli/router-wiring.ts +6 -2
- package/src/cli/sync.ts +19 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [2.9.1](https://github.com/jkrumm/basalt-ui/compare/v2.9.0...v2.9.1) (2026-10-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* declare shell-less apps with basalt.shell, scope the route override ([0ea148d](https://github.com/jkrumm/basalt-ui/commit/0ea148d8949a37a65e91b5d0cf9ffaa04c6f98c7))
|
|
7
|
+
* route files lint clean under the shipped preset ([a51c1ee](https://github.com/jkrumm/basalt-ui/commit/a51c1ee4e9f6c1b9d81902e74d87340be73caaaa))
|
|
8
|
+
* shell-less apps get no nav seed ([9944893](https://github.com/jkrumm/basalt-ui/commit/994489391b46ee944acb57032de99746aae35019))
|
|
9
|
+
|
|
1
10
|
# [2.9.0](https://github.com/jkrumm/basalt-ui/compare/v2.8.1...v2.9.0) (2026-10-15)
|
|
2
11
|
|
|
3
12
|
|
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 | 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 | 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,10 @@ 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.9.1
|
|
1050
|
+
|
|
1051
|
+
_Nothing to migrate in this release._
|
|
1052
|
+
|
|
1049
1053
|
## 2.9.0 — 1.x compatibility layer removed
|
|
1050
1054
|
|
|
1051
1055
|
2.x carried leftovers of the 1.x line; each one is gone, and each has one replacement. **Opt-out: none — use the replacement.** The 1.x → 2.0 upgrade tooling (`RETIRED_RULE_IDS`, the retired-lint-rules and dropped-subpath fixes, the older `unknown-vx-token` removals) is unchanged.
|
|
@@ -1079,6 +1083,25 @@ release renames it and opens a new one here._
|
|
|
1079
1083
|
|
|
1080
1084
|
`NumberFilter`'s stepper pill prints a value `.labels()` names — `createSearchStore(…).labels({ minDuration: { 0: 'Any' } })` reads "Any" at the default (a number field's `options` now lists exactly the labelled values); unlabelled, it prints the number as before — nothing to migrate.
|
|
1081
1085
|
|
|
1086
|
+
New config key `basalt.shell: false` (default `true`) for an app that never renders `BasaltShell`: `init`/`sync` then place neither `src/lib/nav.tsx` nor `src/routes/__root.tsx` (the root route imports the nav module) and retire a tracked entry with a notice, leaving the file yours; `doctor` warns if the app still renders `<BasaltShell`. Declared, not inferred.
|
|
1087
|
+
|
|
1088
|
+
The shipped oxlint preset turns `react(only-export-components)` off under `**/routes/**` and `__root.tsx`: the TanStack router plugin owns fast refresh for route files, and `allowExportNames: ['Route']` alone still warned on the file's local component. Other files keep the warning.
|
|
1089
|
+
|
|
1090
|
+
tsconfig: the preset's `exactOptionalPropertyTypes` rejects `x | undefined` for Mantine props typed without `| undefined` (`c`, `td`, `pl`, `style`). Spread conditionally:
|
|
1091
|
+
|
|
1092
|
+
```tsx
|
|
1093
|
+
<Text {...(color !== undefined && { c: color })} {...(style !== undefined && { style })} />
|
|
1094
|
+
```
|
|
1095
|
+
|
|
1096
|
+
lint: the 2.x preset's `react/refs` errors on the render-time `ref.current = value` latest-value pattern. Write it in an effect, or read it through `useEffectEvent`:
|
|
1097
|
+
|
|
1098
|
+
```tsx
|
|
1099
|
+
useEffect(() => {
|
|
1100
|
+
latest.current = value
|
|
1101
|
+
}) // instead of `latest.current = value` in render
|
|
1102
|
+
const onTick = useEffectEvent(() => handler(value)) // or: no ref at all, call from effects
|
|
1103
|
+
```
|
|
1104
|
+
|
|
1082
1105
|
## 2.8.1 — boot paint follows the stored scheme
|
|
1083
1106
|
|
|
1084
1107
|
`basaltAppPlugin` now injects a tiny inline head script that reads Mantine's stored color scheme
|
package/configs/oxlint.json
CHANGED
package/dist/cli/config.d.ts
CHANGED
|
@@ -11,6 +11,14 @@ export type BasaltConfig = {
|
|
|
11
11
|
* { app: 'apps/dashboard' }
|
|
12
12
|
*/
|
|
13
13
|
app?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Declares the app renders no `BasaltShell` (a one-page app on `BasaltProvider` + `PageBar`).
|
|
16
|
+
* `false` stops `init`/`sync` placing the nav and root-route seeds — they are a pair, the root
|
|
17
|
+
* route imports the nav module — and retires their manifest entries. Default: `true`. Declared,
|
|
18
|
+
* never inferred: a heuristic over the app's imports mis-reads aliased and deeply nested shells.
|
|
19
|
+
* `doctor` warns when `false` is declared and the entry's imports render `<BasaltShell`.
|
|
20
|
+
*/
|
|
21
|
+
shell?: boolean;
|
|
14
22
|
/** Source roots to scan. Default: `['src']`. Set explicitly for a monorepo layout. */
|
|
15
23
|
roots?: string[];
|
|
16
24
|
/** Files exempt from the scan (they ARE the palette source). Default: argo's exempt set. */
|
|
@@ -175,6 +183,8 @@ export declare const DEFAULT_ROOTS: string[];
|
|
|
175
183
|
* "matches zero files" break this derivation exists to prevent.
|
|
176
184
|
*/
|
|
177
185
|
export declare function resolveRoots(cfg: BasaltConfig): string[];
|
|
186
|
+
/** A clear message when `basalt.shell` is set to something other than a boolean, else null. */
|
|
187
|
+
export declare function shellConfigError(cfg: BasaltConfig): string | null;
|
|
178
188
|
/** Every `BasaltConfig` key, as data for `doctor`'s `config-keys` (a test pins it to the type). */
|
|
179
189
|
export declare const BASALT_CONFIG_KEYS: (keyof BasaltConfig)[];
|
|
180
190
|
/** Keys removed from `BasaltConfig`, with the reason `doctor` prints. */
|
package/dist/cli/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/cli/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExD,yEAAyE;AACzE,MAAM,MAAM,YAAY,GAAG;IACzB;;;;;;;;OAQG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAA;IACnC;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,uGAAuG;IACvG,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB;wFACoF;IACpF,QAAQ,CAAC,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iB,CAAA;AAE3C;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,EAAE,CAExD;AAED,+FAA+F;AAC/F,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,GAAG,IAAI,CAKjE;AAED,mGAAmG;AACnG,eAAO,MAAM,kBAAkB,EAIf,CAAC,MAAM,YAAY,CAAC,EAAE,CAAA;AAEtC,yEAAyE;AACzE,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEhE,CAAA"}
|
package/dist/cli/config.js
CHANGED
|
@@ -11,7 +11,11 @@ const DEFAULT_ROOTS = [DEFAULT_ROOT];
|
|
|
11
11
|
function resolveRoots(cfg) {
|
|
12
12
|
return cfg.roots?.length ? cfg.roots : DEFAULT_ROOTS;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
function shellConfigError(cfg) {
|
|
15
|
+
const shell = cfg.shell;
|
|
16
|
+
return shell === void 0 || typeof shell === "boolean" ? null : `basalt.shell must be a boolean (true | false), got ${JSON.stringify(shell)}.`;
|
|
17
|
+
}
|
|
18
|
+
const BASALT_CONFIG_KEYS = "app shell roots exempt profile include spacingSteps severity forbiddenAccents accentHue rawRadius rawSurface cardWithBorder offSystemSurfaceVar mantineShadeIndex rawHtmlLayout inlineSpacing inlineDisplay rawMotionValue rawFormControl sub16InputFont seriesModulePath exemptRules aiMajorSkewReason".split(" ");
|
|
15
19
|
const RETIRED_CONFIG_KEYS = {
|
|
16
20
|
chartMissingAriaLabel: "its guard kind is gone in 2.0 (`ariaLabel` is required on a chart now)"
|
|
17
21
|
};
|
|
@@ -22,5 +26,6 @@ export {
|
|
|
22
26
|
RETIRED_CONFIG_KEYS,
|
|
23
27
|
exemptRulePaths,
|
|
24
28
|
exemptRuleReason,
|
|
25
|
-
resolveRoots
|
|
29
|
+
resolveRoots,
|
|
30
|
+
shellConfigError
|
|
26
31
|
};
|
|
@@ -31,6 +31,15 @@ export declare function seedTsconfigExtends(cwd: string): string | null;
|
|
|
31
31
|
* provider will find no `context.queryClient`. Empty when there is nothing to judge.
|
|
32
32
|
*/
|
|
33
33
|
export declare function startWiringWarnings(cwd: string): string[];
|
|
34
|
+
/**
|
|
35
|
+
* `basalt.shell: false` is a declaration, never a heuristic — but a declaration can go stale: warn
|
|
36
|
+
* when a module reachable from the entry renders `<BasaltShell` (JSX open tag, outside literals),
|
|
37
|
+
* and fail on a non-boolean value. Empty when `shell` is not `false`.
|
|
38
|
+
*/
|
|
39
|
+
export declare function shellDeclarationFindings(cwd: string, cfg: BasaltConfig): {
|
|
40
|
+
fail: string | null;
|
|
41
|
+
warnings: string[];
|
|
42
|
+
};
|
|
34
43
|
/**
|
|
35
44
|
* `app-wiring`: the entry module `index.html` loads (default src/main.tsx) mounts `BasaltProvider`
|
|
36
45
|
* on a `createBasaltRouter` router (called in the entry or a module it imports), and the router tree
|
|
@@ -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;
|
|
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+Cv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AE,OAAO,EAAE,aAAa,GAAG,KAAK,CAsB/F"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { writeFileSync } from "node:fs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { dirname, relative, resolve } from "node:path";
|
|
4
|
-
import { BASALT_CONFIG_KEYS, RETIRED_CONFIG_KEYS } from "./config.js";
|
|
4
|
+
import { BASALT_CONFIG_KEYS, RETIRED_CONFIG_KEYS, shellConfigError } from "./config.js";
|
|
5
5
|
import { parseJsonc, routerSeedDest, scannableFiles } from "./index.js";
|
|
6
6
|
import {
|
|
7
7
|
appEntry,
|
|
8
|
+
callsIn,
|
|
8
9
|
hasRouteTree,
|
|
9
10
|
hasRouter,
|
|
10
11
|
isCodeRoutedApp,
|
|
@@ -298,6 +299,17 @@ function startWiringWarnings(cwd) {
|
|
|
298
299
|
}
|
|
299
300
|
return out;
|
|
300
301
|
}
|
|
302
|
+
const BASALT_SHELL_TAG = /<BasaltShell\b/g;
|
|
303
|
+
function shellDeclarationFindings(cwd, cfg) {
|
|
304
|
+
const fail = shellConfigError(cfg);
|
|
305
|
+
if (cfg.shell !== false || !callsIn(cwd, appEntry(cwd), BASALT_SHELL_TAG)) {
|
|
306
|
+
return { fail, warnings: [] };
|
|
307
|
+
}
|
|
308
|
+
return {
|
|
309
|
+
fail,
|
|
310
|
+
warnings: ["declared basalt.shell: false but the app renders BasaltShell \u2014 drop the key."]
|
|
311
|
+
};
|
|
312
|
+
}
|
|
301
313
|
function appWiringCheck(cwd) {
|
|
302
314
|
return guarded("app-wiring", () => {
|
|
303
315
|
if (isStartApp(cwd, "")) return startWiring(cwd);
|
|
@@ -404,6 +416,7 @@ export {
|
|
|
404
416
|
oxlintFloorCheck,
|
|
405
417
|
retiredLintRulesCheck,
|
|
406
418
|
seedTsconfigExtends,
|
|
419
|
+
shellDeclarationFindings,
|
|
407
420
|
startWiringWarnings,
|
|
408
421
|
subpathPeersCheck,
|
|
409
422
|
tsconfigBaseCheck,
|
package/dist/cli/doctor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AA8DA,MAAM,MAAM,YAAY,GAAG;IACzB,+CAA+C;IAC/C,YAAY,EAAE,MAAM,CAAA;IACpB,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AA2BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,MAAM,CAAC,aAAa,GAAE,MAAsB,EAAE,KAAK,GAAE,MAAM,EAAO,GAAG,MAAM,CA+T1F"}
|
package/dist/cli/doctor.js
CHANGED
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
import { resolveRoots } from "./config.js";
|
|
32
32
|
import {
|
|
33
33
|
appWiringCheck,
|
|
34
|
+
shellDeclarationFindings,
|
|
34
35
|
startWiringWarnings,
|
|
35
36
|
droppedSubpathsCheck,
|
|
36
37
|
exactPeersCheck,
|
|
@@ -289,6 +290,9 @@ basalt-ui doctor \u2014 ${cwd}
|
|
|
289
290
|
]
|
|
290
291
|
]);
|
|
291
292
|
for (const line of startWiringWarnings(appDir)) warn(line);
|
|
293
|
+
const shell = shellDeclarationFindings(appDir, cfg);
|
|
294
|
+
if (shell.fail !== null) fail(shell.fail);
|
|
295
|
+
for (const line of shell.warnings) warn(line);
|
|
292
296
|
}
|
|
293
297
|
lines.push("");
|
|
294
298
|
if (result.hardFailures === 0 && result.warnings === 0 && result.skipped === 0) {
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -213,8 +213,9 @@ export declare function routerSeedDest(appRel: string, seed: keyof typeof ROUTER
|
|
|
213
213
|
export declare function routerSeedDests(appRel: string): string[];
|
|
214
214
|
export declare const START_APP_NOTE: string;
|
|
215
215
|
/**
|
|
216
|
-
* The router seeds an app does not get, for `init` and `sync`: why (`start` | `code-routed` |
|
|
217
|
-
* and which dests. A tokens-only consumer gets none of them either
|
|
216
|
+
* The router seeds an app does not get, for `init` and `sync`: why (`start` | `code-routed` |
|
|
217
|
+
* `shell-less` | null) and which dests. A tokens-only consumer gets none of them either; so does an
|
|
218
|
+
* app that declares `basalt.shell: false` — the nav and root seeds are a pair, so the whole set goes.
|
|
218
219
|
*/
|
|
219
220
|
export declare function routerSeedPlan(cwd: string, appRel: string, tokensOnly?: boolean): {
|
|
220
221
|
skip: RouterSeedSkip;
|
package/dist/cli/index.d.ts.map
CHANGED
|
@@ -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;AAE3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AA+B5C,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,GAAG,WAAW,CAiBzF;AAwBD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,YAAY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AAW,EAAE,MAAM,QAAQ,CAAA;AACzC,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/cli/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import { guardHook } from "./guard-hook.js";
|
|
|
20
20
|
import { COMMAND_OPTIONS, USAGE, unknownFlag } from "./help.js";
|
|
21
21
|
import { init } from "./init.js";
|
|
22
22
|
import { sync } from "./sync.js";
|
|
23
|
-
import { CODE_ROUTED_NOTE, routerSeedSkip } from "./router-wiring.js";
|
|
23
|
+
import { CODE_ROUTED_NOTE, SHELL_LESS_NOTE, routerSeedSkip } from "./router-wiring.js";
|
|
24
24
|
import { hasDependency, readIfExists, readPackageJson } from "./source-text.js";
|
|
25
25
|
import { fontsCss, normalizeColorFunctions, tokensCss } from "./tokens-css.js";
|
|
26
26
|
import { DEFAULT_ROOT, exemptRulePaths, resolveRoots } from "./config.js";
|
|
@@ -348,11 +348,13 @@ function routerSeedDests(appRel) {
|
|
|
348
348
|
}
|
|
349
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.";
|
|
350
350
|
function routerSeedPlan(cwd, appRel, tokensOnly = false) {
|
|
351
|
-
const
|
|
351
|
+
const detected = tokensOnly ? null : routerSeedSkip(cwd, appRel);
|
|
352
|
+
const skip = detected ?? (!tokensOnly && readBasaltConfig(cwd).shell === false ? "shell-less" : null);
|
|
352
353
|
return { skip, skipped: new Set(tokensOnly || skip !== null ? routerSeedDests(appRel) : []) };
|
|
353
354
|
}
|
|
354
355
|
function seedSkipNote(skip) {
|
|
355
356
|
if (skip === "start") return START_APP_NOTE;
|
|
357
|
+
if (skip === "shell-less") return SHELL_LESS_NOTE;
|
|
356
358
|
return skip === "code-routed" ? CODE_ROUTED_NOTE : null;
|
|
357
359
|
}
|
|
358
360
|
const appRelative = (root, dir) => relativePosix(root, dir).replace(/^\.\/?/, "");
|
package/dist/cli/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAmB,aAAa,EAAE,MAAM,SAAS,CAAA;AA6D7D,yGAAyG;AACzG,wBAAgB,IAAI,CAAC,GAAG,GAAE,MAAsB,EAAE,aAAa,GAAE,aAAkB,GAAG,MAAM,CAoM3F"}
|
package/dist/cli/init.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
import { deriveSpacing } from "../tokens/core.js";
|
|
4
|
+
import { shellConfigError } from "./config.js";
|
|
4
5
|
import {
|
|
5
6
|
MANIFEST_PATH,
|
|
6
7
|
declaredProfile,
|
|
@@ -48,6 +49,11 @@ function init(cwd = process.cwd(), scaffoldFlags = {}) {
|
|
|
48
49
|
`\u26A0 basalt-ui init: basalt-ui does not resolve from ${cwd} or any directory above it \u2014 the seeded \`extends\` paths and CI steps are being written against the repo root by assumption. Install basalt-ui here (or at the repo root) and re-run \`basalt-ui init\` so they resolve.`
|
|
49
50
|
);
|
|
50
51
|
}
|
|
52
|
+
const shellError = shellConfigError(readBasaltConfig(cwd));
|
|
53
|
+
if (shellError !== null) {
|
|
54
|
+
console.error(`\u2716 basalt-ui init: ${shellError}`);
|
|
55
|
+
return 1;
|
|
56
|
+
}
|
|
51
57
|
const appError = resolvePlacement(cwd).appError;
|
|
52
58
|
if (appError !== null) {
|
|
53
59
|
console.error(`\u2716 basalt-ui init: ${appError}`);
|
|
@@ -26,12 +26,14 @@ export declare function isCodeRoutedApp(cwd: string, appRel: string): boolean;
|
|
|
26
26
|
/** A TanStack Start app owns its router, so its router seeds give way to an in-tree `<BasaltProvider>`. */
|
|
27
27
|
export declare function isStartApp(cwd: string, appRel: string): boolean;
|
|
28
28
|
/** Why an app's router seeds are not placed (see `routerSeedSkip`). */
|
|
29
|
-
export type RouterSeedSkip = 'start' | 'code-routed' | null;
|
|
29
|
+
export type RouterSeedSkip = 'start' | 'code-routed' | 'shell-less' | null;
|
|
30
30
|
export declare const CODE_ROUTED_NOTE = "code-routed app (createBasaltRouter, no route-tree plugin or routeTree.gen) \u2014 no main.tsx/nav.tsx/__root.tsx seeded.";
|
|
31
31
|
/**
|
|
32
32
|
* Why an app's router seeds (main/nav/__root) are not placed: `start` (Start owns the router, and
|
|
33
|
-
* wins when both apply) or `code-routed` (no generated tree to assume); null when they are.
|
|
33
|
+
* wins when both apply) or `code-routed` (no generated tree to assume); null when they are. The
|
|
34
|
+
* declared `shell: false` (`shell-less`) is applied by `routerSeedPlan`, which reads the config.
|
|
34
35
|
*/
|
|
35
36
|
export declare function routerSeedSkip(cwd: string, appRel: string): RouterSeedSkip;
|
|
37
|
+
export declare const SHELL_LESS_NOTE = "`basalt.shell: false` \u2014 no main.tsx/nav.tsx/__root.tsx seeded; the app owns its root route (or has none).";
|
|
36
38
|
export {};
|
|
37
39
|
//# sourceMappingURL=router-wiring.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router-wiring.d.ts","sourceRoot":"","sources":["../../src/cli/router-wiring.ts"],"names":[],"mappings":"AAOA,OAAO,EAA+B,QAAQ,EAAE,MAAM,eAAe,CAAA;AAuErE,oGAAoG;AACpG,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG5C;AAED,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAEzC;;;;GAIG;AACH,wBAAgB,OAAO,CACrB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAqBT;AAED,wHAAwH;AACxH,wBAAgB,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AE,CAErD;AAED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAQhE;AAED,mFAAmF;AACnF,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAEnF;AAOD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAMpE;AAED,2GAA2G;AAC3G,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAE/D;AAED,uEAAuE;AACvE,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,aAAa,GAAG,YAAY,GAAG,IAAI,CAAA;AAE1E,eAAO,MAAM,gBAAgB,8HAC2F,CAAA;AAExH;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAG1E;AAED,eAAO,MAAM,eAAe,mHACiF,CAAA"}
|
|
@@ -102,8 +102,10 @@ function routerSeedSkip(cwd, appRel) {
|
|
|
102
102
|
if (isStartApp(cwd, appRel)) return "start";
|
|
103
103
|
return isCodeRoutedApp(cwd, appRel) ? "code-routed" : null;
|
|
104
104
|
}
|
|
105
|
+
const SHELL_LESS_NOTE = "`basalt.shell: false` \u2014 no main.tsx/nav.tsx/__root.tsx seeded; the app owns its root route (or has none).";
|
|
105
106
|
export {
|
|
106
107
|
CODE_ROUTED_NOTE,
|
|
108
|
+
SHELL_LESS_NOTE,
|
|
107
109
|
appEntry,
|
|
108
110
|
callOf,
|
|
109
111
|
callsIn,
|
package/dist/cli/sync.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/cli/sync.ts"],"names":[],"mappings":"
|
|
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"}
|
package/dist/cli/sync.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
import { deriveSpacing } from "../tokens/core.js";
|
|
4
|
+
import { shellConfigError } from "./config.js";
|
|
4
5
|
import {
|
|
5
6
|
MANIFEST_PATH,
|
|
6
7
|
basaltPresetEntry,
|
|
@@ -63,6 +64,11 @@ function sync(opts = {}, invocationCwd = process.cwd()) {
|
|
|
63
64
|
);
|
|
64
65
|
return 0;
|
|
65
66
|
}
|
|
67
|
+
const shellError = shellConfigError(readBasaltConfig(cwd));
|
|
68
|
+
if (shellError !== null) {
|
|
69
|
+
console.error(`\u2716 basalt-ui sync: ${shellError}`);
|
|
70
|
+
return 1;
|
|
71
|
+
}
|
|
66
72
|
const appError = resolvePlacement(cwd).appError;
|
|
67
73
|
if (appError !== null) {
|
|
68
74
|
console.error(`\u2716 basalt-ui sync: ${appError}`);
|
|
@@ -130,11 +136,12 @@ function sync(opts = {}, invocationCwd = process.cwd()) {
|
|
|
130
136
|
});
|
|
131
137
|
staleForCheck += pruned.removed.length + pruned.drifted.length;
|
|
132
138
|
const isTracked = (d) => manifest.files[d] !== void 0;
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
139
|
+
const retiredBecause = seedSkip === "code-routed" ? "code-routed app" : seedSkip === "shell-less" ? "basalt.shell: false" : null;
|
|
140
|
+
const retiredSeeds = retiredBecause === null ? [] : [...skipped].filter(isTracked);
|
|
141
|
+
if (retiredSeeds.length > 0 && !opts.check) {
|
|
142
|
+
for (const d of retiredSeeds) delete manifest.files[d];
|
|
136
143
|
console.error(
|
|
137
|
-
`\u26A0 basalt-ui sync:
|
|
144
|
+
`\u26A0 basalt-ui sync: ${retiredBecause} \u2014 dropped ${retiredSeeds.join(", ")} from the manifest (any file is yours).`
|
|
138
145
|
);
|
|
139
146
|
}
|
|
140
147
|
const startSkippedSeeds = seedSkip === "start" ? [...skipped] : [];
|
package/llms.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# basalt-ui v2.9.
|
|
1
|
+
# basalt-ui v2.9.1
|
|
2
2
|
# Opinionated framework for Mantine-based React apps — theme, app shell, TanStack Charts, toolchain presets
|
|
3
3
|
#
|
|
4
4
|
# Entry points: use the exact import specifier below; do not guess.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# A subpath's `Install:` line is its required peers; `OptionalPeers:` are import()-only, install on use.
|
|
14
14
|
|
|
15
15
|
Package: basalt-ui
|
|
16
|
-
Version: 2.9.
|
|
16
|
+
Version: 2.9.1
|
|
17
17
|
|
|
18
18
|
## basalt-ui
|
|
19
19
|
Import: import { ... } from 'basalt-ui'
|
package/package.json
CHANGED
package/src/cli/config.ts
CHANGED
|
@@ -14,6 +14,14 @@ export type BasaltConfig = {
|
|
|
14
14
|
* { app: 'apps/dashboard' }
|
|
15
15
|
*/
|
|
16
16
|
app?: string
|
|
17
|
+
/**
|
|
18
|
+
* Declares the app renders no `BasaltShell` (a one-page app on `BasaltProvider` + `PageBar`).
|
|
19
|
+
* `false` stops `init`/`sync` placing the nav and root-route seeds — they are a pair, the root
|
|
20
|
+
* route imports the nav module — and retires their manifest entries. Default: `true`. Declared,
|
|
21
|
+
* never inferred: a heuristic over the app's imports mis-reads aliased and deeply nested shells.
|
|
22
|
+
* `doctor` warns when `false` is declared and the entry's imports render `<BasaltShell`.
|
|
23
|
+
*/
|
|
24
|
+
shell?: boolean
|
|
17
25
|
/** Source roots to scan. Default: `['src']`. Set explicitly for a monorepo layout. */
|
|
18
26
|
roots?: string[]
|
|
19
27
|
/** Files exempt from the scan (they ARE the palette source). Default: argo's exempt set. */
|
|
@@ -189,9 +197,17 @@ export function resolveRoots(cfg: BasaltConfig): string[] {
|
|
|
189
197
|
return cfg.roots?.length ? cfg.roots : DEFAULT_ROOTS
|
|
190
198
|
}
|
|
191
199
|
|
|
200
|
+
/** A clear message when `basalt.shell` is set to something other than a boolean, else null. */
|
|
201
|
+
export function shellConfigError(cfg: BasaltConfig): string | null {
|
|
202
|
+
const shell: unknown = cfg.shell
|
|
203
|
+
return shell === undefined || typeof shell === 'boolean'
|
|
204
|
+
? null
|
|
205
|
+
: `basalt.shell must be a boolean (true | false), got ${JSON.stringify(shell)}.`
|
|
206
|
+
}
|
|
207
|
+
|
|
192
208
|
/** Every `BasaltConfig` key, as data for `doctor`'s `config-keys` (a test pins it to the type). */
|
|
193
209
|
export const BASALT_CONFIG_KEYS = (
|
|
194
|
-
'app roots exempt profile include spacingSteps severity forbiddenAccents accentHue rawRadius rawSurface ' +
|
|
210
|
+
'app shell roots exempt profile include spacingSteps severity forbiddenAccents accentHue rawRadius rawSurface ' +
|
|
195
211
|
'cardWithBorder offSystemSurfaceVar mantineShadeIndex rawHtmlLayout inlineSpacing inlineDisplay ' +
|
|
196
212
|
'rawMotionValue rawFormControl sub16InputFont seriesModulePath exemptRules aiMajorSkewReason'
|
|
197
213
|
).split(' ') as (keyof BasaltConfig)[]
|
|
@@ -6,12 +6,13 @@ import { writeFileSync } from 'node:fs'
|
|
|
6
6
|
import { createRequire } from 'node:module'
|
|
7
7
|
import { dirname, relative, resolve } from 'node:path'
|
|
8
8
|
|
|
9
|
-
import { BASALT_CONFIG_KEYS, RETIRED_CONFIG_KEYS } from './config'
|
|
9
|
+
import { BASALT_CONFIG_KEYS, RETIRED_CONFIG_KEYS, shellConfigError } from './config'
|
|
10
10
|
import type { BasaltConfig } from './config'
|
|
11
11
|
import { parseJsonc, routerSeedDest, scannableFiles } from './index'
|
|
12
12
|
import type { BasaltInstall } from './index'
|
|
13
13
|
import {
|
|
14
14
|
appEntry,
|
|
15
|
+
callsIn,
|
|
15
16
|
hasRouteTree,
|
|
16
17
|
hasRouter,
|
|
17
18
|
isCodeRoutedApp,
|
|
@@ -451,6 +452,27 @@ export function startWiringWarnings(cwd: string): string[] {
|
|
|
451
452
|
return out
|
|
452
453
|
}
|
|
453
454
|
|
|
455
|
+
const BASALT_SHELL_TAG = /<BasaltShell\b/g
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* `basalt.shell: false` is a declaration, never a heuristic — but a declaration can go stale: warn
|
|
459
|
+
* when a module reachable from the entry renders `<BasaltShell` (JSX open tag, outside literals),
|
|
460
|
+
* and fail on a non-boolean value. Empty when `shell` is not `false`.
|
|
461
|
+
*/
|
|
462
|
+
export function shellDeclarationFindings(
|
|
463
|
+
cwd: string,
|
|
464
|
+
cfg: BasaltConfig,
|
|
465
|
+
): { fail: string | null; warnings: string[] } {
|
|
466
|
+
const fail = shellConfigError(cfg)
|
|
467
|
+
if (cfg.shell !== false || !callsIn(cwd, appEntry(cwd), BASALT_SHELL_TAG)) {
|
|
468
|
+
return { fail, warnings: [] }
|
|
469
|
+
}
|
|
470
|
+
return {
|
|
471
|
+
fail,
|
|
472
|
+
warnings: ['declared basalt.shell: false but the app renders BasaltShell — drop the key.'],
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
454
476
|
/**
|
|
455
477
|
* `app-wiring`: the entry module `index.html` loads (default src/main.tsx) mounts `BasaltProvider`
|
|
456
478
|
* on a `createBasaltRouter` router (called in the entry or a module it imports), and the router tree
|
package/src/cli/doctor.ts
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
import { resolveRoots } from './config'
|
|
38
38
|
import {
|
|
39
39
|
appWiringCheck,
|
|
40
|
+
shellDeclarationFindings,
|
|
40
41
|
startWiringWarnings,
|
|
41
42
|
droppedSubpathsCheck,
|
|
42
43
|
exactPeersCheck,
|
|
@@ -414,6 +415,9 @@ export function doctor(invocationCwd: string = process.cwd(), flags: string[] =
|
|
|
414
415
|
],
|
|
415
416
|
])
|
|
416
417
|
for (const line of startWiringWarnings(appDir)) warn(line)
|
|
418
|
+
const shell = shellDeclarationFindings(appDir, cfg)
|
|
419
|
+
if (shell.fail !== null) fail(shell.fail)
|
|
420
|
+
for (const line of shell.warnings) warn(line)
|
|
417
421
|
}
|
|
418
422
|
|
|
419
423
|
// ── Report ──────────────────────────────────────────────────────────────────
|
package/src/cli/index.ts
CHANGED
|
@@ -29,7 +29,7 @@ import { guardHook } from './guard-hook'
|
|
|
29
29
|
import { COMMAND_OPTIONS, USAGE, unknownFlag } from './help'
|
|
30
30
|
import { init } from './init'
|
|
31
31
|
import { sync } from './sync'
|
|
32
|
-
import { CODE_ROUTED_NOTE, routerSeedSkip } from './router-wiring'
|
|
32
|
+
import { CODE_ROUTED_NOTE, SHELL_LESS_NOTE, routerSeedSkip } from './router-wiring'
|
|
33
33
|
import type { RouterSeedSkip } from './router-wiring'
|
|
34
34
|
import { hasDependency, readIfExists, readPackageJson } from './source-text'
|
|
35
35
|
import { fontsCss, normalizeColorFunctions, tokensCss } from './tokens-css'
|
|
@@ -666,21 +666,25 @@ export const START_APP_NOTE =
|
|
|
666
666
|
'<BasaltProvider><Outlet /></BasaltProvider> in your root route component.'
|
|
667
667
|
|
|
668
668
|
/**
|
|
669
|
-
* The router seeds an app does not get, for `init` and `sync`: why (`start` | `code-routed` |
|
|
670
|
-
* and which dests. A tokens-only consumer gets none of them either
|
|
669
|
+
* The router seeds an app does not get, for `init` and `sync`: why (`start` | `code-routed` |
|
|
670
|
+
* `shell-less` | null) and which dests. A tokens-only consumer gets none of them either; so does an
|
|
671
|
+
* app that declares `basalt.shell: false` — the nav and root seeds are a pair, so the whole set goes.
|
|
671
672
|
*/
|
|
672
673
|
export function routerSeedPlan(
|
|
673
674
|
cwd: string,
|
|
674
675
|
appRel: string,
|
|
675
676
|
tokensOnly = false,
|
|
676
677
|
): { skip: RouterSeedSkip; skipped: Set<string> } {
|
|
677
|
-
const
|
|
678
|
+
const detected = tokensOnly ? null : routerSeedSkip(cwd, appRel)
|
|
679
|
+
const skip =
|
|
680
|
+
detected ?? (!tokensOnly && readBasaltConfig(cwd).shell === false ? 'shell-less' : null)
|
|
678
681
|
return { skip, skipped: new Set(tokensOnly || skip !== null ? routerSeedDests(appRel) : []) }
|
|
679
682
|
}
|
|
680
683
|
|
|
681
684
|
/** The note `init` prints for a router-seed skip, or null when nothing was skipped. */
|
|
682
685
|
export function seedSkipNote(skip: RouterSeedSkip): string | null {
|
|
683
686
|
if (skip === 'start') return START_APP_NOTE
|
|
687
|
+
if (skip === 'shell-less') return SHELL_LESS_NOTE
|
|
684
688
|
return skip === 'code-routed' ? CODE_ROUTED_NOTE : null
|
|
685
689
|
}
|
|
686
690
|
|
package/src/cli/init.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { existsSync } from 'node:fs'
|
|
|
7
7
|
import { resolve } from 'node:path'
|
|
8
8
|
|
|
9
9
|
import { deriveSpacing } from '../tokens/core'
|
|
10
|
+
import { shellConfigError } from './config'
|
|
10
11
|
import type { MergeLintResult, ScaffoldFlags } from './index'
|
|
11
12
|
import {
|
|
12
13
|
MANIFEST_PATH,
|
|
@@ -83,6 +84,12 @@ export function init(cwd: string = process.cwd(), scaffoldFlags: ScaffoldFlags =
|
|
|
83
84
|
)
|
|
84
85
|
}
|
|
85
86
|
|
|
87
|
+
const shellError = shellConfigError(readBasaltConfig(cwd))
|
|
88
|
+
if (shellError !== null) {
|
|
89
|
+
console.error(`✖ basalt-ui init: ${shellError}`)
|
|
90
|
+
return 1
|
|
91
|
+
}
|
|
92
|
+
|
|
86
93
|
const appError = resolvePlacement(cwd).appError
|
|
87
94
|
if (appError !== null) {
|
|
88
95
|
console.error(`✖ basalt-ui init: ${appError}`)
|
package/src/cli/router-wiring.ts
CHANGED
|
@@ -170,16 +170,20 @@ export function isStartApp(cwd: string, appRel: string): boolean {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
/** Why an app's router seeds are not placed (see `routerSeedSkip`). */
|
|
173
|
-
export type RouterSeedSkip = 'start' | 'code-routed' | null
|
|
173
|
+
export type RouterSeedSkip = 'start' | 'code-routed' | 'shell-less' | null
|
|
174
174
|
|
|
175
175
|
export const CODE_ROUTED_NOTE =
|
|
176
176
|
'code-routed app (createBasaltRouter, no route-tree plugin or routeTree.gen) — no main.tsx/nav.tsx/__root.tsx seeded.'
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
179
|
* Why an app's router seeds (main/nav/__root) are not placed: `start` (Start owns the router, and
|
|
180
|
-
* wins when both apply) or `code-routed` (no generated tree to assume); null when they are.
|
|
180
|
+
* wins when both apply) or `code-routed` (no generated tree to assume); null when they are. The
|
|
181
|
+
* declared `shell: false` (`shell-less`) is applied by `routerSeedPlan`, which reads the config.
|
|
181
182
|
*/
|
|
182
183
|
export function routerSeedSkip(cwd: string, appRel: string): RouterSeedSkip {
|
|
183
184
|
if (isStartApp(cwd, appRel)) return 'start'
|
|
184
185
|
return isCodeRoutedApp(cwd, appRel) ? 'code-routed' : null
|
|
185
186
|
}
|
|
187
|
+
|
|
188
|
+
export const SHELL_LESS_NOTE =
|
|
189
|
+
'`basalt.shell: false` — no main.tsx/nav.tsx/__root.tsx seeded; the app owns its root route (or has none).'
|
package/src/cli/sync.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { existsSync } from 'node:fs'
|
|
|
3
3
|
import { resolve } from 'node:path'
|
|
4
4
|
|
|
5
5
|
import { deriveSpacing } from '../tokens/core'
|
|
6
|
+
import { shellConfigError } from './config'
|
|
6
7
|
import {
|
|
7
8
|
MANIFEST_PATH,
|
|
8
9
|
basaltPresetEntry,
|
|
@@ -100,6 +101,12 @@ export function sync(opts: SyncOptions = {}, invocationCwd: string = process.cwd
|
|
|
100
101
|
return 0
|
|
101
102
|
}
|
|
102
103
|
|
|
104
|
+
const shellError = shellConfigError(readBasaltConfig(cwd))
|
|
105
|
+
if (shellError !== null) {
|
|
106
|
+
console.error(`✖ basalt-ui sync: ${shellError}`)
|
|
107
|
+
return 1
|
|
108
|
+
}
|
|
109
|
+
|
|
103
110
|
const appError = resolvePlacement(cwd).appError
|
|
104
111
|
if (appError !== null) {
|
|
105
112
|
console.error(`✖ basalt-ui sync: ${appError}`)
|
|
@@ -200,13 +207,20 @@ export function sync(opts: SyncOptions = {}, invocationCwd: string = process.cwd
|
|
|
200
207
|
})
|
|
201
208
|
staleForCheck += pruned.removed.length + pruned.drifted.length
|
|
202
209
|
|
|
203
|
-
// A code-routed app takes no router seeds: their manifest entries go
|
|
210
|
+
// A code-routed or declared shell-less app takes no router seeds: their manifest entries go
|
|
211
|
+
// (so the next sync does not resurrect them); any file stays the consumer's.
|
|
204
212
|
const isTracked = (d: string): boolean => manifest.files[d] !== undefined
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
|
|
213
|
+
const retiredBecause =
|
|
214
|
+
seedSkip === 'code-routed'
|
|
215
|
+
? 'code-routed app'
|
|
216
|
+
: seedSkip === 'shell-less'
|
|
217
|
+
? 'basalt.shell: false'
|
|
218
|
+
: null
|
|
219
|
+
const retiredSeeds = retiredBecause === null ? [] : [...skipped].filter(isTracked)
|
|
220
|
+
if (retiredSeeds.length > 0 && !opts.check) {
|
|
221
|
+
for (const d of retiredSeeds) delete manifest.files[d]
|
|
208
222
|
console.error(
|
|
209
|
-
`⚠ basalt-ui sync:
|
|
223
|
+
`⚠ basalt-ui sync: ${retiredBecause} — dropped ${retiredSeeds.join(', ')} from the manifest (any file is yours).`,
|
|
210
224
|
)
|
|
211
225
|
}
|
|
212
226
|
|