UNPKG

react-use-chat

Version:

一个用于构建对话式引导流程的 React Hook,支持单选、多选和嵌套分支处理

95 lines (94 loc) 2.47 kB
{ "name": "react-use-chat", "version": "1.2.0", "description": "一个用于构建对话式引导流程的 React Hook,支持单选、多选和嵌套分支处理", "main": "dist/index.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "files": [ "dist", "README.md", "LICENSE" ], "scripts": { "build": "rollup -c", "dev": "rollup -c -w", "test": "jest --passWithNoTests", "test:watch": "jest --watch", "lint": "eslint src --ext .ts,.tsx", "lint:fix": "eslint src --ext .ts,.tsx --fix", "type-check": "tsc --noEmit", "prepare": "npm run build", "example": "cd example && npm start", "clean": "rm -rf dist", "publish-npm": "npm publish --access public" }, "keywords": [ "react", "hook", "dialog", "conversation", "flow", "multi-select", "branching", "guided", "interactive", "typescript" ], "author": { "name": "JACKYZ", "email": "defaultjacky@gmail.com" }, "license": "MIT", "repository": { "type": "git", "url": "https://github.com/defaultjacky/react-use-dialog.git" }, "bugs": { "url": "https://github.com/defaultjacky/react-use-dialog/issues" }, "homepage": "https://github.com/defaultjacky/react-use-dialog#readme", "peerDependencies": { "react": ">=16.8.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-typescript": "^11.1.5", "@testing-library/jest-dom": "^6.1.5", "@testing-library/react": "^14.0.0", "@types/jest": "^29.5.8", "@types/react": "^18.2.38", "@typescript-eslint/eslint-plugin": "^6.12.0", "@typescript-eslint/parser": "^6.12.0", "eslint": "^8.54.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "react": "^18.2.0", "react-dom": "^18.2.0", "rollup": "^4.5.2", "rollup-plugin-dts": "^6.1.0", "ts-jest": "^29.1.1", "tslib": "^2.6.2", "typescript": "^5.2.2" }, "jest": { "preset": "ts-jest", "testEnvironment": "jsdom", "setupFilesAfterEnv": [ "<rootDir>/src/setupTests.ts" ], "moduleNameMapping": { "^@/(.*)$": "<rootDir>/src/$1" } }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "dependencies": { "react-use-chat": "^1.0.0" } }