Files
ui/pkgs/canvas/package.json
zeekayandHanzo Dev 1e5664bf21 ui: Grid gains a column cap, and this package stops splitting the gui train
Grid `max` — the missing half of `min`. A single auto-fill floor cannot say
"2-up on a phone, 4-up on a desktop": 2-up at 390px needs a ~170px floor, and
that same floor yields SIX columns at 1280. `max` raises the floor to one-Mth of
the row so auto-fill cannot fit an (M+1)th track, and below that width the max()
picks the min again and the grid wraps normally — so the cap costs nothing on
small screens. That is why it is expressed as a floor and not a breakpoint.
Proven: remove the cap and 1280px comes back FIVE columns.

@hanzogui/* ranges move to the 8.1 train. The @hanzogui packages pin each other
EXACTLY ([email protected] -> [email protected], no caret), so one stale range here dragged a
whole second generation in beside a consumer's. Both typecheck, both build, then
the config singleton lives in one copy and the components read the other, and
the app dies on prerender with `Missing theme.` — hanzo.ai hit that and had to
state the invariant by hand in a pnpm.overrides block. The invariant belongs in
the package that caused it.

The whole train moved together, including pkgs/canvas and pkgs/dashboard:
bumping this package alone SPLIT the monorepo the same way, and the ~30 "prop
does not exist" errors that produced were the split wearing a mask, not an API
change.

The consumer harness now asserts ONE copy of @hanzogui/web in the installed app,
before any test runs. Mutation-proven the honest way: the first attempt "passed"
because `pnpm pack` had failed and the check never ran — the real proof pins an
older @hanzogui/web in the consumer and watches the diagnostic name both
versions.

NOT changed: `gui-config.d.ts` ending `}, "default">`. That was reported as a
latent declaration defect; it is not one. `InferGuiConfig`'s eighth parameter IS
`ExtractAnimationDriverKeys<E>`, so `"default"` is the correct resolution for a
config whose animations object has one driver named `default`. An honest lib
check (skipLibCheck off) reports zero errors in that file. Changing it would
have made it wrong.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-04 20:22:35 -07:00

80 lines
2.0 KiB
JSON

{
"name": "@hanzo/canvas",
"version": "0.2.2",
"type": "module",
"description": "Railway-grade PaaS project canvas \u2014 a pannable/zoomable board of service nodes with live status, metric sparklines, deploy timelines, an environment switcher, and a service detail drawer. Host-agnostic @hanzo/gui React surface, brand/white-label aware, shared by every Hanzo console (hanzo/lux/zoo).",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./src/index.ts",
"default": "./src/index.ts"
},
"./pure": {
"types": "./src/pure.ts",
"default": "./src/pure.ts"
}
},
"main": "./src/index.ts",
"module": "./src/index.ts",
"types": "./src/index.ts",
"sideEffects": false,
"files": [
"src",
"dist",
"README.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "git+https://github.com/hanzoai/ui.git",
"directory": "pkgs/canvas"
},
"keywords": [
"paas",
"canvas",
"railway",
"service-map",
"deployments",
"dashboard",
"hanzo",
"hanzo-ai",
"hanzoai",
"gui",
"react"
],
"scripts": {
"tc": "tsc --noEmit",
"typecheck": "tsc --noEmit",
"build": "tsc --outDir dist --declaration --emitDeclarationOnly false --module ESNext --moduleResolution bundler --jsx react-jsx --esModuleInterop true --skipLibCheck true --sourceMap true",
"test": "bun test"
},
"peerDependencies": {
"@hanzo/gui": ">=8.0.0",
"@xyflow/react": ">=12",
"react": ">=19",
"react-dom": ">=19"
},
"peerDependenciesMeta": {
"@xyflow/react": {
"optional": true
}
},
"devDependencies": {
"@hanzo/gui": "8.1.0",
"@hanzogui/config": "8.1.0",
"@hanzogui/core": "8.1.0",
"@hanzogui/web": "8.1.0",
"@types/react": "^19.1.10",
"@types/react-dom": "^19.1.7",
"@xyflow/react": "^12.11.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"typescript": "^5.7.2"
},
"publishConfig": {
"access": "public"
},
"license": "MIT",
"author": "Hanzo AI <[email protected]>"
}