Files
ui/pkgs/canvas/package.json
zeekayandHanzo Dev 2d800d670a feat(ui): expose the 8 newest components via @hanzo/ui subpaths + publish lagging homes
Complete the one-surface pattern the @hanzo/ui/gitops subpath started: add thin
re-export subpaths so a console imports every recent component from the single
@hanzo/ui entry while each lives once in its home package (zero duplication,
optional peers — only pulled when the subpath is used):

  @hanzo/ui/canvas    -> @hanzo/canvas         (ProjectCanvas, ServiceNode, DeployTimeline, EnvSwitcher, ServiceDetailDrawer, ServiceStatusBadge)
  @hanzo/ui/wallet    -> @hanzo/ui-shadcn/wallet   (WalletMenu, injectedEvmAdapter [EIP-1193], walletAvailable, ensureEvmNetwork)
  @hanzo/ui/network   -> @hanzo/ui-shadcn/network  (NetworkSwitcher, useNetwork, configureNetworks, HANZO_NETWORKS)
  @hanzo/ui/billing   -> @hanzo/ui-shadcn/billing  (CreditModal)
  @hanzo/ui/dashboard -> @hanzo/dashboard
  @hanzo/ui/usage     -> @hanzo/usage          (UsageMeter, UsageProviderCard, UsageDashboard)

Together with the existing ./gitops and ./data subpaths that is the 8 newest
component kits reachable from @hanzo/ui. Bump @hanzo/ui 8.0.2 -> 8.0.3.

Publish the two lagging homes via ARC (pkgs/* -> publish.yml):
  @hanzo/canvas 0.2.0 -> 0.2.1  (npm was behind at 0.1.0)
  @hanzo/gitops 0.1.0 -> 0.1.1  (first publish)

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-15 17:59:40 -07:00

79 lines
2.0 KiB
JSON

{
"name": "@hanzo/canvas",
"version": "0.2.1",
"type": "module",
"description": "Railway-grade PaaS project canvas — 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": ">=7.2.2",
"@xyflow/react": ">=12",
"react": ">=19",
"react-dom": ">=19"
},
"peerDependenciesMeta": {
"@xyflow/react": {
"optional": true
}
},
"devDependencies": {
"@hanzo/gui": "7.3.0",
"@hanzogui/config": "7.3.0",
"@hanzogui/web": "7.3.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": "BSD-3-Clause",
"author": "Hanzo AI <[email protected]>"
}