react-simple-keyboard 3.8.250 → 3.8.252

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.
@@ -1,59 +1,59 @@
1
1
  import { KeyboardReactInterface } from "../interfaces";
2
2
  export declare const parseProps: (props: KeyboardReactInterface["options"]) => {
3
3
  theme: string;
4
- layout?: import("../interfaces").KeyboardLayoutObject | undefined;
5
- layoutName?: string | undefined;
4
+ layout?: import("../interfaces").KeyboardLayoutObject;
5
+ layoutName?: string;
6
6
  display?: {
7
7
  [button: string]: string;
8
- } | undefined;
9
- mergeDisplay?: boolean | undefined;
10
- buttonTheme?: import("../interfaces").KeyboardButtonTheme[] | undefined;
11
- buttonAttributes?: import("../interfaces").KeyboardButtonAttributes[] | undefined;
12
- debug?: boolean | undefined;
13
- newLineOnEnter?: boolean | undefined;
14
- tabCharOnTab?: boolean | undefined;
15
- inputName?: string | undefined;
8
+ };
9
+ mergeDisplay?: boolean;
10
+ buttonTheme?: import("../interfaces").KeyboardButtonTheme[];
11
+ buttonAttributes?: import("../interfaces").KeyboardButtonAttributes[];
12
+ debug?: boolean;
13
+ newLineOnEnter?: boolean;
14
+ tabCharOnTab?: boolean;
15
+ inputName?: string;
16
16
  maxLength?: any;
17
- syncInstanceInputs?: boolean | undefined;
18
- physicalKeyboardHighlight?: boolean | undefined;
19
- physicalKeyboardHighlightPress?: boolean | undefined;
20
- physicalKeyboardHighlightPressUseClick?: boolean | undefined;
21
- physicalKeyboardHighlightPressUsePointerEvents?: boolean | undefined;
22
- physicalKeyboardHighlightTextColor?: string | undefined;
23
- physicalKeyboardHighlightBgColor?: string | undefined;
24
- physicalKeyboardHighlightPreventDefault?: boolean | undefined;
25
- preventMouseDownDefault?: boolean | undefined;
26
- preventMouseUpDefault?: boolean | undefined;
27
- stopMouseDownPropagation?: boolean | undefined;
28
- stopMouseUpPropagation?: boolean | undefined;
29
- useButtonTag?: boolean | undefined;
30
- disableCaretPositioning?: boolean | undefined;
17
+ syncInstanceInputs?: boolean;
18
+ physicalKeyboardHighlight?: boolean;
19
+ physicalKeyboardHighlightPress?: boolean;
20
+ physicalKeyboardHighlightPressUseClick?: boolean;
21
+ physicalKeyboardHighlightPressUsePointerEvents?: boolean;
22
+ physicalKeyboardHighlightTextColor?: string;
23
+ physicalKeyboardHighlightBgColor?: string;
24
+ physicalKeyboardHighlightPreventDefault?: boolean;
25
+ preventMouseDownDefault?: boolean;
26
+ preventMouseUpDefault?: boolean;
27
+ stopMouseDownPropagation?: boolean;
28
+ stopMouseUpPropagation?: boolean;
29
+ useButtonTag?: boolean;
30
+ disableCaretPositioning?: boolean;
31
31
  inputPattern?: any;
32
- useTouchEvents?: boolean | undefined;
33
- autoUseTouchEvents?: boolean | undefined;
34
- useMouseEvents?: boolean | undefined;
35
- disableButtonHold?: boolean | undefined;
36
- rtl?: boolean | undefined;
37
- enableLayoutCandidates?: boolean | undefined;
32
+ useTouchEvents?: boolean;
33
+ autoUseTouchEvents?: boolean;
34
+ useMouseEvents?: boolean;
35
+ disableButtonHold?: boolean;
36
+ rtl?: boolean;
37
+ enableLayoutCandidates?: boolean;
38
38
  layoutCandidates?: {
39
39
  [key: string]: string;
40
- } | undefined;
40
+ };
41
41
  excludeFromLayout?: {
42
42
  [key: string]: string[];
43
- } | undefined;
44
- layoutCandidatesPageSize?: number | undefined;
45
- layoutCandidatesCaseSensitiveMatch?: boolean | undefined;
46
- disableCandidateNormalization?: boolean | undefined;
47
- enableLayoutCandidatesKeyPress?: boolean | undefined;
48
- updateCaretOnSelectionChange?: boolean | undefined;
49
- clickOnMouseDown?: boolean | undefined;
50
- onRender?: ((instance: import("../interfaces").SimpleKeyboard) => void) | undefined;
51
- onInit?: ((instance: import("../interfaces").SimpleKeyboard) => void) | undefined;
52
- onChange?: ((input: string, e?: MouseEvent | undefined) => any) | undefined;
53
- onChangeAll?: ((inputObj: import("../interfaces").KeyboardInput, e?: MouseEvent | undefined) => any) | undefined;
54
- onKeyPress?: ((button: string, e?: MouseEvent | undefined) => any) | undefined;
55
- onKeyReleased?: ((button: string, e?: MouseEvent | undefined) => any) | undefined;
56
- beforeInputUpdate?: ((instance: import("../interfaces").SimpleKeyboard) => void) | undefined;
57
- keyboardRef?: ((r: any) => void) | undefined;
43
+ };
44
+ layoutCandidatesPageSize?: number;
45
+ layoutCandidatesCaseSensitiveMatch?: boolean;
46
+ disableCandidateNormalization?: boolean;
47
+ enableLayoutCandidatesKeyPress?: boolean;
48
+ updateCaretOnSelectionChange?: boolean;
49
+ clickOnMouseDown?: boolean;
50
+ onRender?: (instance: import("../interfaces").SimpleKeyboard) => void;
51
+ onInit?: (instance: import("../interfaces").SimpleKeyboard) => void;
52
+ onChange?: (input: string, e?: MouseEvent) => any;
53
+ onChangeAll?: (inputObj: import("../interfaces").KeyboardInput, e?: MouseEvent) => any;
54
+ onKeyPress?: (button: string, e?: MouseEvent) => any;
55
+ onKeyReleased?: (button: string, e?: MouseEvent) => any;
56
+ beforeInputUpdate?: (instance: import("../interfaces").SimpleKeyboard) => void;
57
+ keyboardRef?: (r: any) => void;
58
58
  };
59
59
  export declare const changedProps: (prevProps: KeyboardReactInterface["options"], props: KeyboardReactInterface["options"]) => string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-simple-keyboard",
3
- "version": "3.8.250",
3
+ "version": "3.8.252",
4
4
  "description": "React.js Virtual Keyboard",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.modern.esm.js",
@@ -99,12 +99,12 @@
99
99
  "postcss-loader": "^8.2.1",
100
100
  "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
101
101
  "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
102
- "simple-keyboard": "^3.8.170",
102
+ "simple-keyboard": "^3.8.172",
103
103
  "style-loader": "^4.0.0",
104
104
  "terser-webpack-plugin": "^5.6.1",
105
- "typescript": "^4.9.5",
105
+ "typescript": "^6.0.3",
106
106
  "url-loader": "^4.1.1",
107
- "webpack": "^5.109.0",
107
+ "webpack": "^5.109.1",
108
108
  "webpack-cli": "^6.0.1",
109
109
  "webpack-dev-server": "4.13.3"
110
110
  },