mirror of
https://github.com/meshtastic/web.git
synced 2026-07-31 15:06:27 -04:00
Sweep covering several unrelated cohorts: - Delete dead `NewDeviceDialog.tsx` (commented-out in App.tsx, imports point at non-existent `@components/PageComponents/Connect/*`). - Add `better-result` to sdk-react deps so `useChat`/`useDirectChat`/ `useFavoriteNode`/`useIgnoreNode` resolve. - Fix `test-utils.tsx`: route at `routeTree.gen.ts` was never generated; re-export the existing `routeTree` constant from `routes.tsx` and pass the missing router context + DeviceWrapper deviceId. - Pre-existing `noUncheckedIndexedAccess` violations in `pskSchema.test.ts`, `x25519.ts`, `Table/index.tsx` + test, `useCopyToClipboard` (Timeout vs number) — non-null asserts where the index is guaranteed by the surrounding code, plus a defensive `if (!cell) return 0` in the table sort. - Immer `WritableDraft<T>` mismatches against SDK's `MeshDevice`/`Device` classes — cast through `Draft<X>` where the inferred recursive draft type can't represent SDK class internals. - `deviceStore.mock` updated for the `connectionPhase`/`connectionId` + setters added when the connection lifecycle was extracted. - `HeatmapLayer` accepts the `isVisible` prop everyone else's layer accepts. - `SNRTooltipProps.to` widened to `string | undefined` (single-node hover has no `to`). - Zod resolver returns `Record<string, never>` for the error-path values shape that react-hook-form expects. - Mock `NodeInfo` in `useFilterNode.test.ts` gains the `isMuted` proto field that landed upstream.
73 lines
1.6 KiB
JSON
73 lines
1.6 KiB
JSON
{
|
|
"name": "@meshtastic/sdk-react",
|
|
"version": "1.0.0",
|
|
"description": "React hooks + provider for @meshtastic/sdk. Signal-backed reactive state exposed as idiomatic hooks.",
|
|
"exports": {
|
|
".": "./mod.ts"
|
|
},
|
|
"type": "module",
|
|
"main": "./dist/mod.js",
|
|
"module": "./dist/mod.js",
|
|
"types": "./dist/mod.d.ts",
|
|
"license": "GPL-3.0-only",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/meshtastic/web.git",
|
|
"directory": "packages/sdk-react"
|
|
},
|
|
"tsdown": {
|
|
"entry": "mod.ts",
|
|
"platform": "neutral",
|
|
"target": "esnext",
|
|
"dts": true,
|
|
"format": [
|
|
"esm"
|
|
],
|
|
"splitting": false,
|
|
"sourcemap": false,
|
|
"minify": false,
|
|
"treeshake": true,
|
|
"report": false,
|
|
"clean": true
|
|
},
|
|
"jsrInclude": [
|
|
"mod.ts",
|
|
"src",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"jsrExclude": [
|
|
"src/**/*.test.ts",
|
|
"src/**/*.test.tsx",
|
|
"tests"
|
|
],
|
|
"files": [
|
|
"package.json",
|
|
"README.md",
|
|
"LICENSE",
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"preinstall": "npx only-allow pnpm",
|
|
"prepack": "cp ../../LICENSE ./LICENSE",
|
|
"clean": "rm -rf dist LICENSE",
|
|
"build:npm": "tsdown",
|
|
"publish:npm": "pnpm clean && pnpm build:npm && pnpm publish --access public --no-git-checks",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@meshtastic/sdk": "workspace:*",
|
|
"better-result": "^1.0.0"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18 || ^19"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/react": "^16.0.0",
|
|
"@types/react": "^19.0.0",
|
|
"jsdom": "^25.0.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0"
|
|
}
|
|
}
|