146 lines
5.2 KiB
JSON
146 lines
5.2 KiB
JSON
{
|
|
"name": "@suaveplan/react-audio-stream",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Stream-tier React surface for the Suaveplan audio family — session-core foundation (chunk A). Provides StreamSession (FSM lifecycle), InterruptionClassifier, StreamSourcePlugin, error codes, and OTel instruments. Transports, hooks, components, and transport-share land in chunks B/C/D.",
|
|
"license": "MIT",
|
|
"author": "Suaveplan Team",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"./session": {
|
|
"import": {
|
|
"types": "./dist/session/index.d.ts",
|
|
"default": "./dist/session/index.js"
|
|
}
|
|
},
|
|
"./error-codes": {
|
|
"import": {
|
|
"types": "./dist/error-codes/index.d.ts",
|
|
"default": "./dist/error-codes/index.js"
|
|
}
|
|
},
|
|
"./transports": {
|
|
"import": {
|
|
"types": "./dist/transports/index.d.ts",
|
|
"default": "./dist/transports/index.js"
|
|
}
|
|
},
|
|
"./transports/webrtc": {
|
|
"import": {
|
|
"types": "./dist/transports/webrtc/index.d.ts",
|
|
"default": "./dist/transports/webrtc/index.js"
|
|
}
|
|
},
|
|
"./transports/websocket": {
|
|
"import": {
|
|
"types": "./dist/transports/websocket/index.d.ts",
|
|
"default": "./dist/transports/websocket/index.js"
|
|
}
|
|
},
|
|
"./transports/trystero": {
|
|
"import": {
|
|
"types": "./dist/transports/trystero/index.d.ts",
|
|
"default": "./dist/transports/trystero/index.js"
|
|
}
|
|
},
|
|
"./provider": {
|
|
"import": {
|
|
"types": "./dist/provider/index.d.ts",
|
|
"default": "./dist/provider/index.js"
|
|
}
|
|
},
|
|
"./hooks": {
|
|
"import": {
|
|
"types": "./dist/hooks/index.d.ts",
|
|
"default": "./dist/hooks/index.js"
|
|
}
|
|
},
|
|
"./components": {
|
|
"import": {
|
|
"types": "./dist/components/index.d.ts",
|
|
"default": "./dist/components/index.js"
|
|
}
|
|
},
|
|
"./transport-share": {
|
|
"import": {
|
|
"types": "./dist/transport-share/index.d.ts",
|
|
"default": "./dist/transport-share/index.js"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
"lint": "bunx biome check src/ tests/",
|
|
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/ tests/",
|
|
"format": "bunx biome format --write --max-diagnostics 500 src/ tests/",
|
|
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/ tests/",
|
|
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
|
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
|
},
|
|
"dependencies": {
|
|
"@suaveplan/audio-fx-plugin-base": "workspace:^",
|
|
"@suaveplan/audio-transport": "workspace:^",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/events": "workspace:^",
|
|
"@suaveplan/fsm": "workspace:^",
|
|
"@suaveplan/opentelemetry": "workspace:^",
|
|
"@suaveplan/react-audio": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"@opentelemetry/api": "catalog:observability",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms",
|
|
"zustand": "catalog:state",
|
|
"@suaveplan/network-transport-websockets": "workspace:^",
|
|
"@suaveplan/retry": "workspace:^"
|
|
},
|
|
"optionalDependencies": {
|
|
"@suaveplan/network-discovery-trystero": "workspace:^",
|
|
"@suaveplan/audio-codec-ffmpeg-wasm": "workspace:^"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@suaveplan/testing": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:testing",
|
|
"@types/react-dom": "catalog:testing",
|
|
"@testing-library/jest-dom": "catalog:testing",
|
|
"@testing-library/react": "catalog:testing",
|
|
"@testing-library/user-event": "catalog:testing",
|
|
"@vitejs/plugin-react": "catalog:testing",
|
|
"@vitest/coverage-istanbul": "catalog:testing",
|
|
"fast-check": "catalog:testing",
|
|
"happy-dom": "catalog:testing",
|
|
"react": "catalog:testing",
|
|
"react-dom": "catalog:testing",
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:build",
|
|
"vite-plugin-dts": "catalog:build",
|
|
"vitest": "catalog:testing"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://npmjs.fq.io/",
|
|
"access": "public"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src",
|
|
"README.md"
|
|
]
|
|
}
|