mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 20:07:34 +00:00
The engine starts after hydration and its own chunk, so a reader who scrolls at once carries the first sections through the viewport before anything watches them, and they never reported $view (hanzo.ai's products, models and pareto in the funnel gate). On a page freshly opened at its top, a laid-out section wholly above the viewport at install has passed through it; it is reported once with passed: true and no ratio. A fragment, a reload or a back/forward restores the scroll, so nothing is inferred there.
89 lines
2.3 KiB
JSON
89 lines
2.3 KiB
JSON
{
|
|
"name": "@hanzo/observe",
|
|
"version": "0.1.17",
|
|
"description": "Hanzo Observe — default-on interaction capture for React. Watches every click/input/nav/visibility across the tree, annotates each with a semantic hierarchy (component path / role / data-testid / aria) auto-derived from the DOM, and emits it through @hanzo/event to the ONE entry point (POST /v1/event). Privacy-gated (input redaction) and fail-soft by default; ships a real-time event stream hook for session playback.",
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org/",
|
|
"access": "public",
|
|
"scope": "@hanzo"
|
|
},
|
|
"author": "Hanzo AI <[email protected]>",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.ts",
|
|
"sideEffects": false,
|
|
"files": [
|
|
"dist",
|
|
"src",
|
|
"README.md"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/hanzoai/ui.git",
|
|
"directory": "pkg/observe"
|
|
},
|
|
"keywords": [
|
|
"analytics",
|
|
"autocapture",
|
|
"session-replay",
|
|
"telemetry",
|
|
"semantic",
|
|
"react",
|
|
"observability",
|
|
"hanzo"
|
|
],
|
|
"scripts": {
|
|
"prepublishOnly": "node ../../scripts/guard-publish.mjs",
|
|
"build": "tsup && tsc --emitDeclarationOnly --declaration --outDir dist && node ../../scripts/dts.mjs",
|
|
"dev": "tsup --watch",
|
|
"test": "vitest run",
|
|
"typecheck": "tsc --noEmit",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.cts",
|
|
"default": "./dist/index.cjs"
|
|
}
|
|
},
|
|
"./react": {
|
|
"import": {
|
|
"types": "./dist/react.d.ts",
|
|
"default": "./dist/react.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/react.d.cts",
|
|
"default": "./dist/react.cjs"
|
|
}
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@hanzo/event": "workspace:^"
|
|
},
|
|
"peerDependencies": {
|
|
"react": ">=19.2.8"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"react": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:",
|
|
"happy-dom": "catalog:",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"tsup": "catalog:",
|
|
"typescript": "catalog:",
|
|
"vitest": "catalog:"
|
|
}
|
|
}
|