mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 00:18:41 +00:00
Makes @hanzo/gui (Tamagui) / React Native and Tauri desktop emit the SAME canonical Events as the web — same semantic hierarchy, privacy gate, and ONE front door (POST /v1/event via @hanzo/event). - '.' (React/Tamagui): ObserveProvider + ObserveScope compose the semantic path from the React tree (no DOM); useObserve().press/changeText/event/screen wrap RN/Tamagui handlers; useEventStream for playback - './tauri' (react-free): bindTauri runs the @hanzo/observe DOM engine in the webview + forwards Tauri native events; @tauri-apps/api is a runtime-optional peer - pure emit/semantic/redact core reuses @hanzo/observe wireProps/labelFor/ sensitiveKey so native and web are byte-identical on the wire 19 tests green (semantic/emit/tauri + React mount via react-dom/client).
28 lines
753 B
JSON
28 lines
753 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
"jsx": "react-jsx",
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"emitDeclarationOnly": false,
|
|
"outDir": "./dist",
|
|
"rootDir": "./src",
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"allowJs": false,
|
|
"types": ["node"]
|
|
},
|
|
"include": ["src/**/*"],
|
|
"exclude": ["node_modules", "dist", "**/*.test.*", "**/*.spec.*"]
|
|
}
|