@uiwwsw/virtual-keyboard 2.0.1 → 2.2.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.
@@ -6,6 +6,7 @@ export interface InputEditingStatus {
6
6
  selectionLength: number;
7
7
  hasValue: boolean;
8
8
  message: string;
9
+ pasting: boolean;
9
10
  }
10
11
  interface VirtualInputContextValue {
11
12
  inputRef: RefObject<VirtualInputHandle | null>;
@@ -0,0 +1,7 @@
1
+ import { type EditingState } from "./editing.js";
2
+ /** Apply only the browser's changed range, retaining untouched text and input policies. */
3
+ export declare function nativeEdit(previous: EditingState, value: string, selection: {
4
+ start: number;
5
+ end: number;
6
+ backward: boolean;
7
+ }, sanitize: (value: string) => string, filter: (value: string) => boolean, maxLength?: number): EditingState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uiwwsw/virtual-keyboard",
3
- "version": "2.0.1",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "types": "dist/types/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -1,6 +0,0 @@
1
- /** Read only selections owned by this input; never adopt a selection elsewhere. */
2
- export declare function readDOMSelection(text: HTMLElement): {
3
- anchor: number;
4
- caret: number;
5
- } | null;
6
- export declare function writeDOMSelection(text: HTMLElement, anchor: number, caret: number): void;