simple-keyboard 3.7.108 → 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.
@@ -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.7.108",
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": "^27.5.0",
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": "^26.6.3",
62
- "mini-css-extract-plugin": "^2.9.1",
63
- "postcss": "^8.4.45",
64
- "postcss-loader": "^8.1.1",
65
- "style-loader": "^4.0.0",
66
- "terser-webpack-plugin": "^5.3.10",
67
- "typescript": "^5.6.2",
68
- "url-loader": "^4.1.1",
69
- "webpack": "^5.94.0",
70
- "webpack-cli": "^5.1.3",
71
- "webpack-dev-server": "4.15.0"
72
- },
73
- "jest": {
74
- "roots": [
75
- "<rootDir>/src"
76
- ],
77
- "collectCoverageFrom": [
78
- "src/**/*.{js,jsx,ts,tsx}",
79
- "!src/**/*.d.ts",
80
- "!src/lib/index.js",
81
- "!src/lib/polyfills.js",
82
- "!src/demo/**",
83
- "!src/utils/**",
84
- "!src/**/*.d.ts",
85
- "!**/tests/**"
86
- ],
87
- "testMatch": [
88
- "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
89
- "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
90
- ],
91
- "transformIgnorePatterns": [
92
- "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$",
93
- "^.+\\.module\\.(css|sass|scss)$"
94
- ],
95
- "modulePaths": [],
96
- "moduleNameMapper": {
97
- "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/scripts/testMock.js",
98
- "\\.(css|less)$": "<rootDir>/scripts/testMock.js"
99
- },
100
- "moduleFileExtensions": [
101
- "web.js",
102
- "js",
103
- "web.ts",
104
- "ts",
105
- "web.tsx",
106
- "tsx",
107
- "json",
108
- "web.jsx",
109
- "jsx",
110
- "node"
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
+ }