react-simple-keyboard 3.4.43 → 3.4.47

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,7 +13,7 @@ export interface KeyboardReactInterface extends SimpleKeyboard {
13
13
  * - Renders the rows and buttons
14
14
  * - Handles button functionality
15
15
  */
16
- export class SimpleKeyboard {
16
+ export interface SimpleKeyboard {
17
17
  input: KeyboardInput;
18
18
  options: KeyboardOptions;
19
19
  utilities: any;
@@ -46,7 +46,7 @@ export class SimpleKeyboard {
46
46
  * Creates an instance of SimpleKeyboard
47
47
  * @param {Array} params If first parameter is a string, it is considered the container class. The second parameter is then considered the options object. If first parameter is an object, it is considered the options object.
48
48
  */
49
- constructor(selectorOrOptions?: string | HTMLDivElement | KeyboardOptions, keyboardOptions?: KeyboardOptions);
49
+ constructor: (selectorOrOptions?: string | HTMLDivElement | KeyboardOptions, keyboardOptions?: KeyboardOptions) => any
50
50
  /**
51
51
  * parseParams
52
52
  */
@@ -287,13 +287,13 @@ export class SimpleKeyboard {
287
287
  /**
288
288
  * Physical Keyboard Service
289
289
  */
290
- export class PhysicalKeyboard {
290
+ export interface PhysicalKeyboard {
291
291
  getOptions: () => KeyboardOptions;
292
292
  dispatch: any;
293
293
  /**
294
294
  * Creates an instance of the PhysicalKeyboard service
295
295
  */
296
- constructor({ dispatch, getOptions }: PhysicalKeyboardParams);
296
+ constructor: ({ dispatch, getOptions }: PhysicalKeyboardParams) => any
297
297
  handleHighlightKeyDown(event: KeyboardEvent): void;
298
298
  handleHighlightKeyUp(event: KeyboardEvent): void;
299
299
  /**
@@ -519,12 +519,12 @@ export interface KeyboardOptions {
519
519
  */
520
520
  [name: string]: any;
521
521
  }
522
- export class CandidateBox {
522
+ export interface CandidateBox {
523
523
  utilities: Utilities;
524
524
  candidateBoxElement: HTMLDivElement;
525
525
  pageIndex: number;
526
526
  pageSize: number;
527
- constructor({ utilities }: CandidateBoxParams);
527
+ constructor: ({ utilities }: CandidateBoxParams) => any
528
528
  destroy(): void;
529
529
  show({ candidateValue, targetElement, onSelect, }: CandidateBoxShowParams): void;
530
530
  renderPage({ candidateListPages, targetElement, pageIndex, nbPages, onItemSelected, }: CandidateBoxRenderParams): void;
@@ -532,7 +532,7 @@ export class CandidateBox {
532
532
  /**
533
533
  * Utility Service
534
534
  */
535
- export class Utilities {
535
+ export interface Utilities {
536
536
  getOptions: () => KeyboardOptions;
537
537
  getCaretPosition: () => number | null;
538
538
  getCaretPositionEnd: () => number | null;
@@ -541,7 +541,7 @@ export class Utilities {
541
541
  /**
542
542
  * Creates an instance of the Utility service
543
543
  */
544
- constructor({ getOptions, getCaretPosition, getCaretPositionEnd, dispatch, }: UtilitiesParams);
544
+ constructor: ({ getOptions, getCaretPosition, getCaretPositionEnd, dispatch, }: UtilitiesParams) => any
545
545
  /**
546
546
  * Retrieve button type
547
547
  *
@@ -703,7 +703,6 @@ export class Utilities {
703
703
  /**
704
704
  * Bind all methods in a given class
705
705
  */
706
- static bindMethods(myClass: any, instance: any): void;
707
706
  /**
708
707
  * Transforms an arbitrary string to camelCase
709
708
  *
@@ -717,5 +716,4 @@ export class Utilities {
717
716
  /**
718
717
  * Reusable empty function
719
718
  */
720
- static noop: () => void;
721
719
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-simple-keyboard",
3
- "version": "3.4.43",
3
+ "version": "3.4.47",
4
4
  "description": "React.js Virtual Keyboard",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -42,7 +42,7 @@
42
42
  "license": "MIT",
43
43
  "devDependencies": {
44
44
  "@babel/cli": "^7.16.8",
45
- "@babel/core": "^7.16.10",
45
+ "@babel/core": "^7.16.12",
46
46
  "@babel/plugin-proposal-class-properties": "^7.16.7",
47
47
  "@babel/plugin-transform-typescript": "^7.15.0",
48
48
  "@babel/preset-env": "^7.16.11",
@@ -78,13 +78,13 @@
78
78
  "prettier-webpack-plugin": "^1.2.0",
79
79
  "react": "^16.14.0 || ^17.0.0",
80
80
  "react-dom": "^16.14.0 || ^17.0.0",
81
- "simple-keyboard": "3.4.32",
81
+ "simple-keyboard": "3.4.35",
82
82
  "style-loader": "^3.2.1",
83
83
  "terser-webpack-plugin": "^5.3.0",
84
84
  "typescript": "^4.5.5",
85
85
  "url-loader": "^4.1.1",
86
86
  "webpack": "^5.40.0",
87
- "webpack-cli": "^4.9.1",
87
+ "webpack-cli": "^4.9.2",
88
88
  "webpack-dev-server": "4.7.3"
89
89
  },
90
90
  "peerDependencies": {