react-simple-keyboard 3.5.0 → 3.5.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.
- package/README.md +75 -75
- package/build/components/Keyboard.d.ts +5 -5
- package/build/components/KeyboardModern.d.ts +5 -5
- package/build/css/index.css +2 -2
- package/build/index.d.ts +5 -5
- package/build/index.js +2 -2
- package/build/index.modern.d.ts +4 -4
- package/build/index.modern.js +2 -2
- package/build/index.modern.js.map +1 -1
- package/build/interfaces.d.ts +742 -742
- package/build/services/Utilities.d.ts +52 -52
- package/package.json +130 -130
- package/webpack.config.modern.js +95 -95
- package/.vscode/launch.json +0 -13
package/README.md
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
<a href="https://simple-keyboard.com/demo">
|
|
2
|
-
<img alt="simple-keyboard: Javscript Virtual Keyboard" src="https://user-images.githubusercontent.com/25509135/188000091-fc64ce47-2a87-4835-ab6c-defbaba3ee90.gif">
|
|
3
|
-
</a>
|
|
4
|
-
|
|
5
|
-
<blockquote>Virtual Keyboard for React. Customizable, responsive and lightweight.</blockquote>
|
|
6
|
-
|
|
7
|
-
<p>
|
|
8
|
-
<a href="https://www.npmjs.com/package/react-simple-keyboard">
|
|
9
|
-
<img src="https://badgen.net/npm/v/react-simple-keyboard?color=blue" alt="npm version">
|
|
10
|
-
</a>
|
|
11
|
-
|
|
12
|
-
<a href="https://github.com/hodgef/react-simple-keyboard/blob/master/LICENSE">
|
|
13
|
-
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="MIT license">
|
|
14
|
-
</a>
|
|
15
|
-
|
|
16
|
-
<a href="https://github.com/hodgef/react-simple-keyboard/actions">
|
|
17
|
-
<img alt="Build Status" src="https://github.com/hodgef/react-simple-keyboard/workflows/Build/badge.svg?color=green" />
|
|
18
|
-
</a>
|
|
19
|
-
|
|
20
|
-
<a href="https://github.com/hodgef/react-simple-keyboard/actions">
|
|
21
|
-
<img alt="Publish Status" src="https://github.com/hodgef/react-simple-keyboard/workflows/Publish/badge.svg?color=green" />
|
|
22
|
-
</a>
|
|
23
|
-
|
|
24
|
-
<a href="https://gitlab.com/hodgef/react-simple-keyboard">
|
|
25
|
-
<img alt="Mirroring" src="https://github.com/hodgef/react-simple-keyboard/actions/workflows/mirroring.yml/badge.svg" />
|
|
26
|
-
</a>
|
|
27
|
-
</p>
|
|
28
|
-
|
|
29
|
-
## 🚀 Demo
|
|
30
|
-
|
|
31
|
-
[https://simple-keyboard.com/demo](https://simple-keyboard.com/demo)
|
|
32
|
-
|
|
33
|
-
## 📦 Installation & Usage
|
|
34
|
-
|
|
35
|
-
Check out the [Getting Started](https://simple-keyboard.com/react/getting-started) docs to begin.
|
|
36
|
-
|
|
37
|
-
## 📖 Documentation
|
|
38
|
-
|
|
39
|
-
Check out the [simple-keyboard documentation](https://simple-keyboard.com/react/documentation) site.
|
|
40
|
-
|
|
41
|
-
Feel free to browse the [Questions & Answers](https://simple-keyboard.com/qa-use-cases/) page for common use-cases.
|
|
42
|
-
|
|
43
|
-
### To run demo on your own computer
|
|
44
|
-
|
|
45
|
-
- Clone this repository
|
|
46
|
-
- `npm install`
|
|
47
|
-
- `npm start`
|
|
48
|
-
- Visit [http://localhost:3000/](http://localhost:3000/)
|
|
49
|
-
|
|
50
|
-
### Other versions
|
|
51
|
-
|
|
52
|
-
- [Vanilla JS](https://github.com/hodgef/simple-keyboard)
|
|
53
|
-
- [Angular](https://simple-keyboard.com/demo)
|
|
54
|
-
- [Vue.js](https://simple-keyboard.com/demo)
|
|
55
|
-
|
|
56
|
-
### Questions? Join the chat
|
|
57
|
-
|
|
58
|
-
<a href="https://discordapp.com/invite/SJexsCG" title="Join our Discord chat" target="_blank"><img src="https://discordapp.com/api/guilds/498978399801573396/widget.png?style=banner2" align="center"></a>
|
|
59
|
-
|
|
60
|
-
## 🎯 Compatibility
|
|
61
|
-
|
|
62
|
-
- Internet Explorer 11
|
|
63
|
-
- Edge (Spartan) 16+
|
|
64
|
-
- Edge (Anaheim/Edge Chromium) 79+
|
|
65
|
-
- Chrome 49+
|
|
66
|
-
- Safari 9+
|
|
67
|
-
- Firefox 57+
|
|
68
|
-
- iOS 9+
|
|
69
|
-
|
|
70
|
-
> Note: If you don't want to support old browsers, you can use the Modern Browsers bundle ([index.modern.js](https://github.com/hodgef/react-simple-keyboard/blob/master/build)).
|
|
71
|
-
|
|
72
|
-
## ✅ Contributing
|
|
73
|
-
|
|
74
|
-
PRs and issues are welcome. Feel free to submit any issues you have at:
|
|
75
|
-
[https://github.com/hodgef/react-simple-keyboard/issues](https://github.com/hodgef/react-simple-keyboard/issues)
|
|
1
|
+
<a href="https://simple-keyboard.com/demo">
|
|
2
|
+
<img alt="simple-keyboard: Javscript Virtual Keyboard" src="https://user-images.githubusercontent.com/25509135/188000091-fc64ce47-2a87-4835-ab6c-defbaba3ee90.gif">
|
|
3
|
+
</a>
|
|
4
|
+
|
|
5
|
+
<blockquote>Virtual Keyboard for React. Customizable, responsive and lightweight.</blockquote>
|
|
6
|
+
|
|
7
|
+
<p>
|
|
8
|
+
<a href="https://www.npmjs.com/package/react-simple-keyboard">
|
|
9
|
+
<img src="https://badgen.net/npm/v/react-simple-keyboard?color=blue" alt="npm version">
|
|
10
|
+
</a>
|
|
11
|
+
|
|
12
|
+
<a href="https://github.com/hodgef/react-simple-keyboard/blob/master/LICENSE">
|
|
13
|
+
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="MIT license">
|
|
14
|
+
</a>
|
|
15
|
+
|
|
16
|
+
<a href="https://github.com/hodgef/react-simple-keyboard/actions">
|
|
17
|
+
<img alt="Build Status" src="https://github.com/hodgef/react-simple-keyboard/workflows/Build/badge.svg?color=green" />
|
|
18
|
+
</a>
|
|
19
|
+
|
|
20
|
+
<a href="https://github.com/hodgef/react-simple-keyboard/actions">
|
|
21
|
+
<img alt="Publish Status" src="https://github.com/hodgef/react-simple-keyboard/workflows/Publish/badge.svg?color=green" />
|
|
22
|
+
</a>
|
|
23
|
+
|
|
24
|
+
<a href="https://gitlab.com/hodgef/react-simple-keyboard">
|
|
25
|
+
<img alt="Mirroring" src="https://github.com/hodgef/react-simple-keyboard/actions/workflows/mirroring.yml/badge.svg" />
|
|
26
|
+
</a>
|
|
27
|
+
</p>
|
|
28
|
+
|
|
29
|
+
## 🚀 Demo
|
|
30
|
+
|
|
31
|
+
[https://simple-keyboard.com/demo](https://simple-keyboard.com/demo)
|
|
32
|
+
|
|
33
|
+
## 📦 Installation & Usage
|
|
34
|
+
|
|
35
|
+
Check out the [Getting Started](https://simple-keyboard.com/react/getting-started) docs to begin.
|
|
36
|
+
|
|
37
|
+
## 📖 Documentation
|
|
38
|
+
|
|
39
|
+
Check out the [simple-keyboard documentation](https://simple-keyboard.com/react/documentation) site.
|
|
40
|
+
|
|
41
|
+
Feel free to browse the [Questions & Answers](https://simple-keyboard.com/qa-use-cases/) page for common use-cases.
|
|
42
|
+
|
|
43
|
+
### To run demo on your own computer
|
|
44
|
+
|
|
45
|
+
- Clone this repository
|
|
46
|
+
- `npm install`
|
|
47
|
+
- `npm start`
|
|
48
|
+
- Visit [http://localhost:3000/](http://localhost:3000/)
|
|
49
|
+
|
|
50
|
+
### Other versions
|
|
51
|
+
|
|
52
|
+
- [Vanilla JS](https://github.com/hodgef/simple-keyboard)
|
|
53
|
+
- [Angular](https://simple-keyboard.com/demo)
|
|
54
|
+
- [Vue.js](https://simple-keyboard.com/demo)
|
|
55
|
+
|
|
56
|
+
### Questions? Join the chat
|
|
57
|
+
|
|
58
|
+
<a href="https://discordapp.com/invite/SJexsCG" title="Join our Discord chat" target="_blank"><img src="https://discordapp.com/api/guilds/498978399801573396/widget.png?style=banner2" align="center"></a>
|
|
59
|
+
|
|
60
|
+
## 🎯 Compatibility
|
|
61
|
+
|
|
62
|
+
- Internet Explorer 11
|
|
63
|
+
- Edge (Spartan) 16+
|
|
64
|
+
- Edge (Anaheim/Edge Chromium) 79+
|
|
65
|
+
- Chrome 49+
|
|
66
|
+
- Safari 9+
|
|
67
|
+
- Firefox 57+
|
|
68
|
+
- iOS 9+
|
|
69
|
+
|
|
70
|
+
> Note: If you don't want to support old browsers, you can use the Modern Browsers bundle ([index.modern.js](https://github.com/hodgef/react-simple-keyboard/blob/master/build)).
|
|
71
|
+
|
|
72
|
+
## ✅ Contributing
|
|
73
|
+
|
|
74
|
+
PRs and issues are welcome. Feel free to submit any issues you have at:
|
|
75
|
+
[https://github.com/hodgef/react-simple-keyboard/issues](https://github.com/hodgef/react-simple-keyboard/issues)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "simple-keyboard/build/css/index.css";
|
|
3
|
-
import { KeyboardReactInterface } from "../interfaces.d";
|
|
4
|
-
declare const KeyboardReact: (props: KeyboardReactInterface["options"]) => JSX.Element;
|
|
5
|
-
export default KeyboardReact;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "simple-keyboard/build/css/index.css";
|
|
3
|
+
import { KeyboardReactInterface } from "../interfaces.d";
|
|
4
|
+
declare const KeyboardReact: (props: KeyboardReactInterface["options"]) => JSX.Element;
|
|
5
|
+
export default KeyboardReact;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "simple-keyboard/build/css/index.css";
|
|
3
|
-
import { KeyboardReactInterface } from "../interfaces";
|
|
4
|
-
declare const KeyboardReact: (props: KeyboardReactInterface["options"]) => JSX.Element;
|
|
5
|
-
export default KeyboardReact;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "simple-keyboard/build/css/index.css";
|
|
3
|
+
import { KeyboardReactInterface } from "../interfaces";
|
|
4
|
+
declare const KeyboardReact: (props: KeyboardReactInterface["options"]) => JSX.Element;
|
|
5
|
+
export default KeyboardReact;
|
package/build/css/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* react-simple-keyboard v3.5.
|
|
3
|
+
* react-simple-keyboard v3.5.2
|
|
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.5.
|
|
14
|
+
* simple-keyboard v3.5.1
|
|
15
15
|
* https://github.com/hodgef/simple-keyboard
|
|
16
16
|
*
|
|
17
17
|
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
|
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./polyfills";
|
|
2
|
-
import KeyboardReact from "./components/Keyboard";
|
|
3
|
-
export * from "./interfaces.d";
|
|
4
|
-
export { KeyboardReact };
|
|
5
|
-
export default KeyboardReact;
|
|
1
|
+
import "./polyfills";
|
|
2
|
+
import KeyboardReact from "./components/Keyboard";
|
|
3
|
+
export * from "./interfaces.d";
|
|
4
|
+
export { KeyboardReact };
|
|
5
|
+
export default KeyboardReact;
|
package/build/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* react-simple-keyboard v3.5.
|
|
3
|
+
* react-simple-keyboard v3.5.2
|
|
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.5.
|
|
15
|
+
* simple-keyboard v3.5.1
|
|
16
16
|
* https://github.com/hodgef/simple-keyboard
|
|
17
17
|
*
|
|
18
18
|
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
|
package/build/index.modern.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import KeyboardReact from "./components/KeyboardModern";
|
|
2
|
-
export * from "./interfaces.d";
|
|
3
|
-
export { KeyboardReact };
|
|
4
|
-
export default KeyboardReact;
|
|
1
|
+
import KeyboardReact from "./components/KeyboardModern";
|
|
2
|
+
export * from "./interfaces.d";
|
|
3
|
+
export { KeyboardReact };
|
|
4
|
+
export default KeyboardReact;
|
package/build/index.modern.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* react-simple-keyboard v3.5.
|
|
3
|
+
* react-simple-keyboard v3.5.2 (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.5.
|
|
19
|
+
* simple-keyboard v3.5.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
|