@uiwwsw/virtual-keyboard 0.7.0 → 0.7.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/dist/index.js +2 -1847
- package/dist/types/components/Context.d.ts +1 -1
- package/dist/types/components/Keypad.d.ts +1 -1
- package/dist/types/hooks/useKeypadInteraction.d.ts +2 -1
- package/dist/types/hooks/useShadowDom.d.ts +2 -2
- package/dist/types/hooks/useSystemTheme.d.ts +1 -1
- package/dist/types/utils/parseKeyInput.test.d.ts +1 -0
- package/package.json +6 -4
|
@@ -13,6 +13,6 @@ interface VirtualInputContextValue {
|
|
|
13
13
|
toggleShift: () => void;
|
|
14
14
|
toggleKorean: () => void;
|
|
15
15
|
}
|
|
16
|
-
export declare const VirtualInputContext: import("react").Context<VirtualInputContextValue>;
|
|
16
|
+
export declare const VirtualInputContext: import("react").Context<VirtualInputContextValue | null>;
|
|
17
17
|
export declare function useVirtualInputContext(): VirtualInputContextValue;
|
|
18
18
|
export {};
|
|
@@ -13,13 +13,14 @@ type VirtualInputContextType = {
|
|
|
13
13
|
toggleKorean: () => void;
|
|
14
14
|
shift: boolean;
|
|
15
15
|
};
|
|
16
|
-
export declare function useKeypadInteraction({ inputRef, toggleShift, toggleKorean, shift, getTransformedValue, keyBoundsRef }: VirtualInputContextType & {
|
|
16
|
+
export declare function useKeypadInteraction({ inputRef, toggleShift, toggleKorean, shift, getTransformedValue, keyBoundsRef, calculateLayout, }: VirtualInputContextType & {
|
|
17
17
|
getTransformedValue: (cell: {
|
|
18
18
|
label?: string;
|
|
19
19
|
value: string;
|
|
20
20
|
type?: string;
|
|
21
21
|
}) => string;
|
|
22
22
|
keyBoundsRef: React.MutableRefObject<KeyBounds[]>;
|
|
23
|
+
calculateLayout: () => KeyBounds[];
|
|
23
24
|
}): {
|
|
24
25
|
activePresses: import("react").RefObject<Map<number, ActivePress>>;
|
|
25
26
|
handlePointerDown: (e: React.PointerEvent<HTMLCanvasElement>) => void;
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* @returns shadowRoot: 생성된 ShadowRoot 인스턴스
|
|
5
5
|
*/
|
|
6
6
|
export declare function useShadowDom<T extends HTMLElement>(): {
|
|
7
|
-
containerRef: import("react").Dispatch<import("react").SetStateAction<T>>;
|
|
8
|
-
shadowRoot: ShadowRoot;
|
|
7
|
+
containerRef: import("react").Dispatch<import("react").SetStateAction<T | null | undefined>>;
|
|
8
|
+
shadowRoot: ShadowRoot | null;
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useSystemTheme(): "
|
|
1
|
+
export declare function useSystemTheme(): "light" | "dark";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uiwwsw/virtual-keyboard",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "dist/types/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -43,8 +43,9 @@
|
|
|
43
43
|
"scripts": {
|
|
44
44
|
"dev": "vite",
|
|
45
45
|
"build": "tsc -b && vite build",
|
|
46
|
-
"build-package": "
|
|
46
|
+
"build-package": "tsc -p tsconfig.build.json && cp src/index.ts dist/index.js",
|
|
47
47
|
"lint": "eslint .",
|
|
48
|
+
"test": "vitest run",
|
|
48
49
|
"preview": "vite preview"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
@@ -65,6 +66,7 @@
|
|
|
65
66
|
"globals": "^16.2.0",
|
|
66
67
|
"typescript": "~5.8.3",
|
|
67
68
|
"typescript-eslint": "^8.34.1",
|
|
68
|
-
"vite": "^7.0.0"
|
|
69
|
+
"vite": "^7.0.0",
|
|
70
|
+
"vitest": "^3.2.4"
|
|
69
71
|
}
|
|
70
|
-
}
|
|
72
|
+
}
|