UNPKG

au-text-highlight

Version:

3行代码实现划词相关功能、关键字高亮、选区检测等功能。附带React版本划词popover组件。专为解决划词翻译,划词评论,web文本高亮等这类需求!目前再探索完善。

76 lines (75 loc) 1.99 kB
{ "name": "au-text-highlight", "type": "module", "version": "1.1.6", "description": "3行代码实现划词相关功能、关键字高亮、选区检测等功能。附带React版本划词popover组件。专为解决划词翻译,划词评论,web文本高亮等这类需求!目前再探索完善。", "author": "", "license": "ISC", "homepage": "https://github.com/xiaoFeng5210/au-text-highlight", "bugs": { "url": "https://github.com/xiaoFeng5210/au-text-highlight/issues" }, "keywords": [ "划词", "React组件", "划词评论", "划词翻译", "高亮", "文本匹配", "文本高亮", "关键字匹配", "关键字高亮" ], "main": "lib/bundle.cjs.js", "module": "lib/bundle.esm.js", "types": "lib/index.d.ts", "files": [ "LICENSE", "README-EN.md", "README.md", "lib" ], "scripts": { "dev": "rollup -c -w", "build": "rollup -c", "test": "vitest", "lint": "eslint .", "lint:fix": "eslint . --fix" }, "peerDependencies": { "classnames": "^2.3.1", "react": ">=16.8.0", "react-dom": ">=16.8.0", "react-is": "^18.0.0" }, "peerDependenciesMeta": { "react": { "optional": true }, "react-dom": { "optional": true } }, "devDependencies": { "@antfu/eslint-config": "^2.21.1", "@babel/core": "^7.28.0", "@babel/preset-react": "^7.27.1", "@babel/preset-typescript": "^7.27.1", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^26.0.1", "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^11.1.6", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", "eslint": "^9.5.0", "react": "^18.3.1", "react-dom": "^18.3.1", "rollup": "^4.18.0", "rollup-plugin-dts": "^6.1.1", "rollup-plugin-terser": "^7.0.2", "tslib": "^2.8.1", "typescript": "^5.5.2", "vitest": "^1.6.0" } }