@uiwwsw/virtual-keyboard 2.1.0 → 2.2.1
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 +73 -0
- package/README.md +18 -2
- package/dist/index.js +839 -622
- package/dist/types/components/Context.d.ts +2 -0
- package/dist/types/components/Provider.d.ts +3 -1
- package/dist/types/uiLanguage.d.ts +3 -0
- package/package.json +5 -4
|
@@ -6,8 +6,10 @@ export interface InputEditingStatus {
|
|
|
6
6
|
selectionLength: number;
|
|
7
7
|
hasValue: boolean;
|
|
8
8
|
message: string;
|
|
9
|
+
pasting: boolean;
|
|
9
10
|
}
|
|
10
11
|
interface VirtualInputContextValue {
|
|
12
|
+
locale: "ko" | "en";
|
|
11
13
|
inputRef: RefObject<VirtualInputHandle | null>;
|
|
12
14
|
onFocus: (id: string, target: HTMLElement, policy: InputPolicy) => void;
|
|
13
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.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "dist/types/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"dev": "vite",
|
|
44
|
-
"build": "tsc -b && vite build",
|
|
44
|
+
"build": "tsc -b && vite build && node scripts/build-demo-seo.mjs",
|
|
45
45
|
"build-package": "vite build --mode library && tsc -p tsconfig.build.json",
|
|
46
46
|
"lint": "eslint . --max-warnings 0",
|
|
47
47
|
"test": "vitest run",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"typescript": "~5.8.3",
|
|
80
80
|
"typescript-eslint": "^8.34.1",
|
|
81
81
|
"vite": "^7.0.0",
|
|
82
|
-
"vitest": "^
|
|
82
|
+
"vitest": "^5.0.5"
|
|
83
83
|
},
|
|
84
84
|
"description": "Accessible React virtual keyboard with Korean composition and configurable input policies.",
|
|
85
85
|
"sideEffects": false,
|
|
@@ -89,5 +89,6 @@
|
|
|
89
89
|
"repository": {
|
|
90
90
|
"type": "git",
|
|
91
91
|
"url": "git+https://github.com/uiwwsw/virtual-keyboard.git"
|
|
92
|
-
}
|
|
92
|
+
},
|
|
93
|
+
"homepage": "https://virtual-keyboard-uiwwsw.vercel.app/"
|
|
93
94
|
}
|