@uiwwsw/virtual-keyboard 0.7.1 → 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.
@@ -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 {};
@@ -3,4 +3,4 @@ export type { KeypadLayout, Viewport };
3
3
  export declare function VirtualKeypad({ layout, viewport, }: {
4
4
  layout: KeypadLayout;
5
5
  viewport: Viewport;
6
- }): import("react").ReactPortal;
6
+ }): import("react").ReactPortal | null;
@@ -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(): "dark" | "light";
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.1",
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": "bun build src/index.ts --outdir dist --target browser --format esm --external react --external react-dom && tsc -p tsconfig.build.json",
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
+ }