mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 13:51:19 +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).
9 lines
165 B
TypeScript
9 lines
165 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'happy-dom',
|
|
include: ['src/**/*.test.{ts,tsx}'],
|
|
},
|
|
})
|