simple-keyboard 3.7.107 → 3.8.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.
- package/LICENSE +21 -21
- package/README.md +69 -69
- package/build/css/index.css +1 -1
- package/build/index.js +2 -2
- package/build/index.modern.esm.js +2 -2
- package/build/index.modern.esm.js.map +1 -1
- package/build/index.modern.js +2 -2
- package/build/index.modern.js.map +1 -1
- package/build/interfaces.d.ts +4 -0
- package/package.json +115 -113
package/build/interfaces.d.ts
CHANGED
|
@@ -216,6 +216,10 @@ export interface KeyboardOptions {
|
|
|
216
216
|
* Enables onKeyPress triggering for layoutCandidate items
|
|
217
217
|
*/
|
|
218
218
|
enableLayoutCandidatesKeyPress?: boolean;
|
|
219
|
+
/**
|
|
220
|
+
* Updates caret when selectionchange event is fired
|
|
221
|
+
*/
|
|
222
|
+
updateCaretOnSelectionChange?: boolean;
|
|
219
223
|
/**
|
|
220
224
|
* Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).
|
|
221
225
|
*/
|
package/package.json
CHANGED
|
@@ -1,113 +1,115 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "simple-keyboard",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "On-screen Javascript Virtual Keyboard",
|
|
5
|
-
"main": "build/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "webpack serve --config webpack.config.demo.js",
|
|
8
|
-
"build": "webpack && npm run build-modern && npm run build-modern-esm && tsc",
|
|
9
|
-
"build-modern": "webpack --config webpack.config.modern.js",
|
|
10
|
-
"build-modern-esm": "webpack --config webpack.config.modern_esm.js",
|
|
11
|
-
"test": "jest --silent",
|
|
12
|
-
"coverage": "npm run test -- --coverage",
|
|
13
|
-
"prepare": "npm run build"
|
|
14
|
-
},
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "https://github.com/hodgef/simple-keyboard"
|
|
18
|
-
},
|
|
19
|
-
"author": "Francisco Hodge <hello@franciscohodge.com> (https://github.com/hodgef)",
|
|
20
|
-
"bugs": {
|
|
21
|
-
"url": "https://github.com/hodgef/simple-keyboard/issues"
|
|
22
|
-
},
|
|
23
|
-
"homepage": "https://virtual-keyboard.js.org/",
|
|
24
|
-
"keywords": [
|
|
25
|
-
"javascript",
|
|
26
|
-
"es6",
|
|
27
|
-
"digital",
|
|
28
|
-
"keyboard",
|
|
29
|
-
"onscreen",
|
|
30
|
-
"virtual",
|
|
31
|
-
"screen-keyboard",
|
|
32
|
-
"component",
|
|
33
|
-
"virtual-keyboard",
|
|
34
|
-
"touchscreen",
|
|
35
|
-
"touch-screen",
|
|
36
|
-
"kiosk",
|
|
37
|
-
"osk",
|
|
38
|
-
"js"
|
|
39
|
-
],
|
|
40
|
-
"license": "MIT",
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@babel/cli": "^7.25.6",
|
|
43
|
-
"@babel/core": "^7.25.2",
|
|
44
|
-
"@babel/plugin-proposal-class-properties": "^7.17.12",
|
|
45
|
-
"@babel/plugin-transform-typescript": "^7.25.2",
|
|
46
|
-
"@babel/polyfill": "^7.12.1",
|
|
47
|
-
"@babel/preset-env": "^7.25.4",
|
|
48
|
-
"@types/jest": "^
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
50
|
-
"@typescript-eslint/parser": "^5.62.0",
|
|
51
|
-
"autoprefixer": "^10.4.20",
|
|
52
|
-
"babel-eslint": "^10.1.0",
|
|
53
|
-
"babel-loader": "^9.1.3",
|
|
54
|
-
"babel-preset-minify": "^0.5.2",
|
|
55
|
-
"core-js": "^3.38.1",
|
|
56
|
-
"css-loader": "^7.1.2",
|
|
57
|
-
"css-minimizer-webpack-plugin": "^7.0.0",
|
|
58
|
-
"eslint": "^8.57.0",
|
|
59
|
-
"file-loader": "^6.2.0",
|
|
60
|
-
"html-webpack-plugin": "^5.6.0",
|
|
61
|
-
"jest": "^
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"postcss
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"webpack
|
|
71
|
-
"webpack-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
"!src
|
|
82
|
-
"!src/
|
|
83
|
-
"!src/
|
|
84
|
-
"!src
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"web.
|
|
104
|
-
"
|
|
105
|
-
"web.
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "simple-keyboard",
|
|
3
|
+
"version": "3.8.0",
|
|
4
|
+
"description": "On-screen Javascript Virtual Keyboard",
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "webpack serve --config webpack.config.demo.js",
|
|
8
|
+
"build": "webpack && npm run build-modern && npm run build-modern-esm && tsc",
|
|
9
|
+
"build-modern": "webpack --config webpack.config.modern.js",
|
|
10
|
+
"build-modern-esm": "webpack --config webpack.config.modern_esm.js",
|
|
11
|
+
"test": "jest --silent",
|
|
12
|
+
"coverage": "npm run test -- --coverage",
|
|
13
|
+
"prepare": "npm run build"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/hodgef/simple-keyboard"
|
|
18
|
+
},
|
|
19
|
+
"author": "Francisco Hodge <hello@franciscohodge.com> (https://github.com/hodgef)",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/hodgef/simple-keyboard/issues"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://virtual-keyboard.js.org/",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"javascript",
|
|
26
|
+
"es6",
|
|
27
|
+
"digital",
|
|
28
|
+
"keyboard",
|
|
29
|
+
"onscreen",
|
|
30
|
+
"virtual",
|
|
31
|
+
"screen-keyboard",
|
|
32
|
+
"component",
|
|
33
|
+
"virtual-keyboard",
|
|
34
|
+
"touchscreen",
|
|
35
|
+
"touch-screen",
|
|
36
|
+
"kiosk",
|
|
37
|
+
"osk",
|
|
38
|
+
"js"
|
|
39
|
+
],
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@babel/cli": "^7.25.6",
|
|
43
|
+
"@babel/core": "^7.25.2",
|
|
44
|
+
"@babel/plugin-proposal-class-properties": "^7.17.12",
|
|
45
|
+
"@babel/plugin-transform-typescript": "^7.25.2",
|
|
46
|
+
"@babel/polyfill": "^7.12.1",
|
|
47
|
+
"@babel/preset-env": "^7.25.4",
|
|
48
|
+
"@types/jest": "^29.5.13",
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
50
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
51
|
+
"autoprefixer": "^10.4.20",
|
|
52
|
+
"babel-eslint": "^10.1.0",
|
|
53
|
+
"babel-loader": "^9.1.3",
|
|
54
|
+
"babel-preset-minify": "^0.5.2",
|
|
55
|
+
"core-js": "^3.38.1",
|
|
56
|
+
"css-loader": "^7.1.2",
|
|
57
|
+
"css-minimizer-webpack-plugin": "^7.0.0",
|
|
58
|
+
"eslint": "^8.57.0",
|
|
59
|
+
"file-loader": "^6.2.0",
|
|
60
|
+
"html-webpack-plugin": "^5.6.0",
|
|
61
|
+
"jest": "^29.7.0",
|
|
62
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
63
|
+
"mini-css-extract-plugin": "^2.9.1",
|
|
64
|
+
"postcss": "^8.4.45",
|
|
65
|
+
"postcss-loader": "^8.1.1",
|
|
66
|
+
"style-loader": "^4.0.0",
|
|
67
|
+
"terser-webpack-plugin": "^5.3.10",
|
|
68
|
+
"typescript": "^5.6.2",
|
|
69
|
+
"url-loader": "^4.1.1",
|
|
70
|
+
"webpack": "^5.94.0",
|
|
71
|
+
"webpack-cli": "^5.1.3",
|
|
72
|
+
"webpack-dev-server": "4.15.0"
|
|
73
|
+
},
|
|
74
|
+
"jest": {
|
|
75
|
+
"testEnvironment": "jsdom",
|
|
76
|
+
"roots": [
|
|
77
|
+
"<rootDir>/src"
|
|
78
|
+
],
|
|
79
|
+
"collectCoverageFrom": [
|
|
80
|
+
"src/**/*.{js,jsx,ts,tsx}",
|
|
81
|
+
"!src/**/*.d.ts",
|
|
82
|
+
"!src/lib/index.js",
|
|
83
|
+
"!src/lib/polyfills.js",
|
|
84
|
+
"!src/demo/**",
|
|
85
|
+
"!src/utils/**",
|
|
86
|
+
"!src/**/*.d.ts",
|
|
87
|
+
"!**/tests/**"
|
|
88
|
+
],
|
|
89
|
+
"testMatch": [
|
|
90
|
+
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
|
91
|
+
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
92
|
+
],
|
|
93
|
+
"transformIgnorePatterns": [
|
|
94
|
+
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$",
|
|
95
|
+
"^.+\\.module\\.(css|sass|scss)$"
|
|
96
|
+
],
|
|
97
|
+
"modulePaths": [],
|
|
98
|
+
"moduleNameMapper": {
|
|
99
|
+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/scripts/testMock.js",
|
|
100
|
+
"\\.(css|less)$": "<rootDir>/scripts/testMock.js"
|
|
101
|
+
},
|
|
102
|
+
"moduleFileExtensions": [
|
|
103
|
+
"web.js",
|
|
104
|
+
"js",
|
|
105
|
+
"web.ts",
|
|
106
|
+
"ts",
|
|
107
|
+
"web.tsx",
|
|
108
|
+
"tsx",
|
|
109
|
+
"json",
|
|
110
|
+
"web.jsx",
|
|
111
|
+
"jsx",
|
|
112
|
+
"node"
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
}
|