react-simple-keyboard 3.3.40 → 3.4.1
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/build/{types/components → components}/Keyboard.d.ts +0 -0
- package/build/{types/components → components}/KeyboardModern.d.ts +0 -0
- package/build/css/index.css +2 -2
- package/build/{types/index.d.ts → index.d.ts} +0 -0
- package/build/index.js +2 -2
- package/build/{types/index.modern.d.ts → index.modern.d.ts} +0 -0
- package/build/index.modern.js +2 -2
- package/build/{types/interfaces.d.ts → interfaces.d.ts} +0 -0
- package/build/{types/polyfills.d.ts → polyfills.d.ts} +0 -0
- package/build/{types/services → services}/Utilities.d.ts +6 -6
- package/package.json +5 -5
- package/tsconfig.json +1 -1
|
File without changes
|
|
File without changes
|
package/build/css/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* react-simple-keyboard v3.
|
|
3
|
+
* react-simple-keyboard v3.4.1
|
|
4
4
|
* https://github.com/hodgef/react-simple-keyboard
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/*!
|
|
13
13
|
*
|
|
14
|
-
* simple-keyboard v3.
|
|
14
|
+
* simple-keyboard v3.4.1
|
|
15
15
|
* https://github.com/hodgef/simple-keyboard
|
|
16
16
|
*
|
|
17
17
|
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
|
|
File without changes
|
package/build/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* react-simple-keyboard v3.
|
|
3
|
+
* react-simple-keyboard v3.4.1
|
|
4
4
|
* https://github.com/hodgef/react-simple-keyboard
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactSimpleKeyboard=e(require("react")):t.ReactSimpleKeyboard=e(t.React)}(this,(function(t){return function(){var e={752:function(){"undefined"==typeof Element||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"undefined"!=typeof self&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){"use strict";if("Element"in t){var e="classList",n=t.Element.prototype,r=Object,o=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},i=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},a=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},s=function(t,e){if(""===e)throw new a("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new a("INVALID_CHARACTER_ERR","The token must not contain space characters.");return i.call(t,e)},u=function(t){for(var e=o.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,i=n.length;r<i;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},c=u.prototype=[],l=function(){return new u(this)};if(a.prototype=Error.prototype,c.item=function(t){return this[t]||null},c.contains=function(t){return~s(this,t+"")},c.add=function(){var t,e=arguments,n=0,r=e.length,o=!1;do{t=e[n]+"",~s(this,t)||(this.push(t),o=!0)}while(++n<r);o&&this._updateClassName()},c.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=!1;do{for(t=n[r]+"",e=s(this,t);~e;)this.splice(e,1),i=!0,e=s(this,t)}while(++r<o);i&&this._updateClassName()},c.toggle=function(t,e){var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},c.replace=function(t,e){var n=s(t+"");~n&&(this.splice(n,1,e),this._updateClassName())},c.toString=function(){return this.join(" ")},r.defineProperty){var f={get:l,enumerable:!0,configurable:!0};try{r.defineProperty(n,e,f)}catch(t){void 0!==t.number&&-2146823252!==t.number||(f.enumerable=!1,r.defineProperty(n,e,f))}}else r.prototype.__defineGetter__&&n.__defineGetter__(e,l)}}(self),function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,r=arguments.length;for(n=0;n<r;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var n=this.toString().split(" "),r=n.indexOf(t+"");~r&&(n=n.slice(r),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)))}),t=null}())},86:function(t){
|
|
13
13
|
/*!
|
|
14
14
|
*
|
|
15
|
-
* simple-keyboard v3.
|
|
15
|
+
* simple-keyboard v3.4.1
|
|
16
16
|
* https://github.com/hodgef/simple-keyboard
|
|
17
17
|
*
|
|
18
18
|
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
|
|
File without changes
|
package/build/index.modern.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* react-simple-keyboard v3.
|
|
3
|
+
* react-simple-keyboard v3.4.1 (index.modern.js - Modern Browsers bundle)
|
|
4
4
|
* https://github.com/hodgef/react-simple-keyboard
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This modern browsers bundle (index.modern.js) removes all polyfills
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactSimpleKeyboard=e(require("react")):t.ReactSimpleKeyboard=e(t.React)}(this,(function(t){return function(){var e={689:function(t){
|
|
17
17
|
/*!
|
|
18
18
|
*
|
|
19
|
-
* simple-keyboard v3.
|
|
19
|
+
* simple-keyboard v3.4.1 (index.modern.js - Modern Browsers bundle)
|
|
20
20
|
* https://github.com/hodgef/simple-keyboard
|
|
21
21
|
*
|
|
22
22
|
* NOTE: This modern browsers bundle (index.modern.js) removes all polyfills
|
|
File without changes
|
|
File without changes
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { KeyboardReactInterface } from "../interfaces";
|
|
2
2
|
export declare const parseProps: (props: KeyboardReactInterface["options"]) => {
|
|
3
3
|
theme: string;
|
|
4
|
-
layout?: import("simple-keyboard/build/
|
|
4
|
+
layout?: import("simple-keyboard/build/interfaces").KeyboardLayoutObject | undefined;
|
|
5
5
|
layoutName?: string | undefined;
|
|
6
6
|
display?: {
|
|
7
7
|
[button: string]: string;
|
|
8
8
|
} | undefined;
|
|
9
9
|
mergeDisplay?: boolean | undefined;
|
|
10
|
-
buttonTheme?: import("simple-keyboard/build/
|
|
11
|
-
buttonAttributes?: import("simple-keyboard/build/
|
|
10
|
+
buttonTheme?: import("simple-keyboard/build/interfaces").KeyboardButtonTheme[] | undefined;
|
|
11
|
+
buttonAttributes?: import("simple-keyboard/build/interfaces").KeyboardButtonAttributes[] | undefined;
|
|
12
12
|
debug?: boolean | undefined;
|
|
13
13
|
newLineOnEnter?: boolean | undefined;
|
|
14
14
|
tabCharOnTab?: boolean | undefined;
|
|
@@ -40,10 +40,10 @@ export declare const parseProps: (props: KeyboardReactInterface["options"]) => {
|
|
|
40
40
|
[key: string]: string[];
|
|
41
41
|
} | undefined;
|
|
42
42
|
layoutCandidatesPageSize?: number | undefined;
|
|
43
|
-
onRender?: ((instance?: import("simple-keyboard/build/
|
|
44
|
-
onInit?: ((instance?: import("simple-keyboard/build/
|
|
43
|
+
onRender?: ((instance?: import("simple-keyboard/build/components/Keyboard").default | undefined) => void) | undefined;
|
|
44
|
+
onInit?: ((instance?: import("simple-keyboard/build/components/Keyboard").default | undefined) => void) | undefined;
|
|
45
45
|
onChange?: ((input: string, e?: MouseEvent | undefined) => any) | undefined;
|
|
46
|
-
onChangeAll?: ((inputObj: import("simple-keyboard/build/
|
|
46
|
+
onChangeAll?: ((inputObj: import("simple-keyboard/build/interfaces").KeyboardInput, e?: MouseEvent | undefined) => any) | undefined;
|
|
47
47
|
keyboardRef?: ((r: any) => void) | undefined;
|
|
48
48
|
};
|
|
49
49
|
export declare const changedProps: (prevProps: KeyboardReactInterface["options"], props: KeyboardReactInterface["options"]) => string[];
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-simple-keyboard",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "React.js Virtual Keyboard",
|
|
5
5
|
"main": "build/index.js",
|
|
6
|
-
"types": "build/types/index.d.ts",
|
|
7
6
|
"scripts": {
|
|
8
7
|
"start": "webpack serve --config webpack.config.demo.js",
|
|
9
8
|
"build": "webpack && npm run build-modern && tsc",
|
|
@@ -55,6 +54,7 @@
|
|
|
55
54
|
"@types/react-dom": "^17.0.10",
|
|
56
55
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
57
56
|
"@typescript-eslint/parser": "^4.32.0",
|
|
57
|
+
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.5",
|
|
58
58
|
"autoprefixer": "^10.4.0",
|
|
59
59
|
"babel-eslint": "^10.1.0",
|
|
60
60
|
"babel-loader": "^8.2.3",
|
|
@@ -71,18 +71,18 @@
|
|
|
71
71
|
"optimize-css-assets-webpack-plugin": "^6.0.1",
|
|
72
72
|
"postcss": "^8.4.1",
|
|
73
73
|
"postcss-loader": "^6.2.0",
|
|
74
|
-
"prettier": "^2.
|
|
74
|
+
"prettier": "^2.5.0",
|
|
75
75
|
"prettier-webpack-plugin": "^1.2.0",
|
|
76
76
|
"react": "^16.14.0 || ^17.0.0",
|
|
77
77
|
"react-dom": "^16.14.0 || ^17.0.0",
|
|
78
|
-
"simple-keyboard": "3.
|
|
78
|
+
"simple-keyboard": "3.4.1",
|
|
79
79
|
"style-loader": "^3.2.1",
|
|
80
80
|
"terser-webpack-plugin": "^5.2.5",
|
|
81
81
|
"typescript": "^4.5.2",
|
|
82
82
|
"url-loader": "^4.1.1",
|
|
83
83
|
"webpack": "^5.40.0",
|
|
84
84
|
"webpack-cli": "^4.9.1",
|
|
85
|
-
"webpack-dev-server": "4.
|
|
85
|
+
"webpack-dev-server": "4.6.0"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"react": "^16.14.0 || ^17.0.0",
|