@zh-keyboard/react 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +220 -0
- package/dist/App.d.ts +2 -0
- package/dist/components/CandidateBar.d.ts +10 -0
- package/dist/components/CandidateList.d.ts +7 -0
- package/dist/components/CandidateSelection.d.ts +8 -0
- package/dist/components/HandwritingInput.d.ts +8 -0
- package/dist/components/KeyboardBase.d.ts +11 -0
- package/dist/components/NumericKeyboard.d.ts +8 -0
- package/dist/components/SymbolKeyboard.d.ts +8 -0
- package/dist/components/ZhKeyboard.d.ts +13 -0
- package/dist/hooks/useActiveElement.d.ts +6 -0
- package/dist/lib.d.ts +4 -0
- package/dist/main.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/utils/handwriting.d.ts +11 -0
- package/dist/utils/useHandwritingRecognizer.d.ts +3 -0
- package/dist/zh-keyboard-react.js +5401 -0
- package/dist/zh-keyboard-react.js.map +1 -0
- package/dist/zh-keyboard-react.umd.cjs +49 -0
- package/dist/zh-keyboard-react.umd.cjs.map +1 -0
- package/package.json +56 -0
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zh-keyboard/react",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "基于React的中文虚拟键盘组件",
|
|
6
|
+
"author": "dusionlike",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"keyboard",
|
|
9
|
+
"chinese",
|
|
10
|
+
"virtual-keyboard",
|
|
11
|
+
"react",
|
|
12
|
+
"component",
|
|
13
|
+
"键盘",
|
|
14
|
+
"中文",
|
|
15
|
+
"虚拟键盘",
|
|
16
|
+
"拼音",
|
|
17
|
+
"手写"
|
|
18
|
+
],
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/lib.d.ts",
|
|
22
|
+
"import": "./dist/zh-keyboard-react.js",
|
|
23
|
+
"require": "./dist/zh-keyboard-react.umd.cjs"
|
|
24
|
+
},
|
|
25
|
+
"./style.css": "./dist/style.css"
|
|
26
|
+
},
|
|
27
|
+
"main": "./dist/zh-keyboard-react.umd.cjs",
|
|
28
|
+
"module": "./dist/zh-keyboard-react.js",
|
|
29
|
+
"types": "./dist/lib.d.ts",
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@reactuses/core": "^6.0.3",
|
|
35
|
+
"classnames": "^2.5.1",
|
|
36
|
+
"react": "^19.1.0",
|
|
37
|
+
"react-dom": "^19.1.0",
|
|
38
|
+
"@zh-keyboard/core": "0.1.0",
|
|
39
|
+
"@zh-keyboard/recognizer": "0.1.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/react": "^19.1.2",
|
|
43
|
+
"@types/react-dom": "^19.1.2",
|
|
44
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
45
|
+
"sass-embedded": "^1.86.3",
|
|
46
|
+
"typescript": "~5.8.3",
|
|
47
|
+
"vite": "^6.3.5",
|
|
48
|
+
"vite-plugin-dts": "^4.5.3"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"dev": "vite --host",
|
|
52
|
+
"build": "tsc -b && vite build",
|
|
53
|
+
"lint": "eslint .",
|
|
54
|
+
"preview": "vite preview"
|
|
55
|
+
}
|
|
56
|
+
}
|