@uiwwsw/virtual-keyboard 2.2.0 → 2.2.2
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/README.en.md +105 -0
- package/README.md +72 -176
- package/dist/index.js +789 -672
- package/dist/types/components/Context.d.ts +1 -0
- package/dist/types/components/Provider.d.ts +3 -1
- package/dist/types/uiLanguage.d.ts +3 -0
- package/package.json +17 -18
|
@@ -9,6 +9,7 @@ export interface InputEditingStatus {
|
|
|
9
9
|
pasting: boolean;
|
|
10
10
|
}
|
|
11
11
|
interface VirtualInputContextValue {
|
|
12
|
+
locale: "ko" | "en";
|
|
12
13
|
inputRef: RefObject<VirtualInputHandle | null>;
|
|
13
14
|
onFocus: (id: string, target: HTMLElement, policy: InputPolicy) => void;
|
|
14
15
|
onBlur: (event?: React.FocusEvent | boolean) => void;
|
|
@@ -2,10 +2,12 @@ import { type ReactNode } from "react";
|
|
|
2
2
|
import type { KeypadLayout } from "../types/keyboard.js";
|
|
3
3
|
export interface VirtualInputProviderProps {
|
|
4
4
|
children: ReactNode;
|
|
5
|
+
/** Language for keyboard labels and accessibility/status messages. */
|
|
6
|
+
locale?: "ko" | "en";
|
|
5
7
|
layout?: KeypadLayout;
|
|
6
8
|
defaultHangulMode?: boolean;
|
|
7
9
|
theme?: "light" | "dark";
|
|
8
10
|
/** auto: touch/mobile devices; always: also show on desktop; never: physical keys only. */
|
|
9
11
|
keyboardVisibility?: "auto" | "always" | "never";
|
|
10
12
|
}
|
|
11
|
-
export declare function VirtualInputProvider({ children, layout, defaultHangulMode, theme, keyboardVisibility, }: VirtualInputProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function VirtualInputProvider({ children, locale, layout, defaultHangulMode, theme, keyboardVisibility, }: VirtualInputProviderProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uiwwsw/virtual-keyboard",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "dist/types/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -10,21 +10,16 @@
|
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"keywords": [
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"input",
|
|
17
|
-
"custom",
|
|
18
|
-
"keyboard",
|
|
19
|
-
"폰번호 전용",
|
|
20
|
-
"숫자 전용",
|
|
21
|
-
"composition",
|
|
22
|
-
"IME",
|
|
13
|
+
"react",
|
|
14
|
+
"virtual-keyboard",
|
|
15
|
+
"on-screen-keyboard",
|
|
23
16
|
"hangul",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
17
|
+
"korean",
|
|
18
|
+
"한글",
|
|
19
|
+
"가상 키보드",
|
|
20
|
+
"es-hangul",
|
|
21
|
+
"input-mode",
|
|
22
|
+
"keypad"
|
|
28
23
|
],
|
|
29
24
|
"exports": {
|
|
30
25
|
".": {
|
|
@@ -41,7 +36,7 @@
|
|
|
41
36
|
},
|
|
42
37
|
"scripts": {
|
|
43
38
|
"dev": "vite",
|
|
44
|
-
"build": "tsc -b && vite build",
|
|
39
|
+
"build": "tsc -b && vite build && node scripts/build-demo-seo.mjs",
|
|
45
40
|
"build-package": "vite build --mode library && tsc -p tsconfig.build.json",
|
|
46
41
|
"lint": "eslint . --max-warnings 0",
|
|
47
42
|
"test": "vitest run",
|
|
@@ -79,9 +74,9 @@
|
|
|
79
74
|
"typescript": "~5.8.3",
|
|
80
75
|
"typescript-eslint": "^8.34.1",
|
|
81
76
|
"vite": "^7.0.0",
|
|
82
|
-
"vitest": "^
|
|
77
|
+
"vitest": "^5.0.5"
|
|
83
78
|
},
|
|
84
|
-
"description": "
|
|
79
|
+
"description": "React on-screen keyboard component with Korean two-set composition (via es-hangul), English, number and phone keypads, and input filters.",
|
|
85
80
|
"sideEffects": false,
|
|
86
81
|
"engines": {
|
|
87
82
|
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
|
@@ -89,5 +84,9 @@
|
|
|
89
84
|
"repository": {
|
|
90
85
|
"type": "git",
|
|
91
86
|
"url": "git+https://github.com/uiwwsw/virtual-keyboard.git"
|
|
87
|
+
},
|
|
88
|
+
"homepage": "https://virtual-keyboard-uiwwsw.vercel.app/",
|
|
89
|
+
"bugs": {
|
|
90
|
+
"url": "https://github.com/uiwwsw/virtual-keyboard/issues"
|
|
92
91
|
}
|
|
93
92
|
}
|