Files
ui/pkg/data/package.json
d9eae42187 @hanzo/data 1.4.8: a table that remounts keeps its empty line in view (#325)
1.4.7 sized the loading and empty cells to the frame through the scroll
view's onLayout. react-native-web's onLayout is one ResizeObserver shared by
every view, set to observe a view once when it mounts, and a table that
remounts (a list going from loading to empty, as the CRM's does) came back
never measured: on crm.hanzo.ai at 375px "No people yet." sat at the middle
of 1,484px of columns. On the web the table now watches its own scroll element
with a ResizeObserver tied to that element; onLayout stays for native.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-16 23:06:07 -08:00

82 lines
2.5 KiB
JSON

{
"name": "@hanzo/data",
"version": "1.4.8",
"type": "module",
"description": "Hanzo Data — cross-platform, metadata-driven data-app components (typed fields, record table, kanban board, record detail, saved views) on @hanzo/gui. The universal object/field/record/view layer that powers any Base-backed CRM, CMS, or commerce app on web, native (iOS), and desktop.",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./table/logic": {
"types": "./dist/table/logic.d.ts",
"import": "./dist/table/logic.js",
"require": "./dist/table/logic.cjs",
"default": "./dist/table/logic.js"
},
"./board/logic": {
"types": "./dist/board/logic.d.ts",
"import": "./dist/board/logic.js",
"require": "./dist/board/logic.cjs",
"default": "./dist/board/logic.js"
},
"./view/logic": {
"types": "./dist/view/logic.d.ts",
"import": "./dist/view/logic.js",
"require": "./dist/view/logic.cjs",
"default": "./dist/view/logic.js"
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"sideEffects": [
"**/registerDefaults.js",
"**/registerDefaults.cjs",
"**/index.js",
"**/index.cjs"
],
"files": [
"dist",
"NOTICE",
"LICENSE-MIT"
],
"scripts": {
"prepublishOnly": "node ../../scripts/guard-publish.mjs",
"build": "rm -rf dist dist-cjs types && tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.json --noCheck && node ../ui/scripts/postbuild.mjs . theme,table/logic,board/logic,view/logic,view/types,field/types,field/registry,field/coerce,field/calling,field/regions",
"clean": "rm -rf dist dist-cjs types",
"prepack": "pnpm run build",
"tc": "tsc --noEmit",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@hanzogui/lucide-icons-2": "catalog:"
},
"peerDependencies": {
"@hanzo/gui": ">=8.3.5",
"@hanzo/ui": ">=8.28.0",
"react": ">=19.2.8"
},
"devDependencies": {
"@hanzo/gui": "catalog:",
"@hanzo/ui": "workspace:^",
"@hanzogui/config": "catalog:",
"@hanzogui/core": "catalog:",
"@hanzogui/web": "catalog:",
"@types/react": "catalog:",
"react": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
},
"publishConfig": {
"access": "public"
},
"license": "MIT",
"author": "Hanzo AI <[email protected]>"
}