mirror of
https://github.com/lockin-bot/react-telegram.git
synced 2026-01-12 15:13:56 +08:00
- Replace context-based state management with useSyncExternalStore - Add immer for immutable state updates - Implement selector-based API for better performance - Add TgProvider to track current chat context - Strong typing support with TgGlobalState interface 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"name": "@react-telegram/examples",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Examples for React Telegram",
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "bun run src/example-bot.tsx",
|
|
"counter": "bun run src/example.tsx",
|
|
"typed": "bun run src/typed-example.tsx",
|
|
"input": "bun run src/input-example.tsx",
|
|
"quiz": "bun run src/quiz-bot.tsx",
|
|
"autodelete": "bun run src/input-autodelete-demo.tsx",
|
|
"br-demo": "bun run src/br-demo.tsx",
|
|
"persist": "bun run src/persist-todo-bot.tsx",
|
|
"spa": "bun run src/spa-todo-bot.tsx",
|
|
"test": "vitest",
|
|
"test:ui": "vitest --ui"
|
|
},
|
|
"dependencies": {
|
|
"@react-telegram/core": "workspace:*",
|
|
"@react-telegram/mtcute-adapter": "workspace:*",
|
|
"@types/uuid": "^10.0.0",
|
|
"mobx": "^6.13.7",
|
|
"mobx-persist-store": "^1.1.8",
|
|
"mobx-react-lite": "^4.1.0",
|
|
"react": "^19.1.0",
|
|
"react-router-dom": "^7.6.3",
|
|
"uuid": "^11.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/react": "^16.3.0",
|
|
"@testing-library/react-hooks": "^8.0.1",
|
|
"@types/react": "npm:pure-react-types@^0.1.4",
|
|
"@vitest/ui": "^3.2.4",
|
|
"happy-dom": "^18.0.1",
|
|
"typescript": "^5",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
} |