simple-keyboard 3.4.147 → 3.4.150
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 +2 -2
- package/build/css/index.css +1 -1
- package/build/index.js +1 -1
- package/build/index.modern.js +1 -1
- package/package.json +5 -5
- package/webpack.config.demo.js +0 -51
- package/webpack.config.modern.js +0 -79
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<p>
|
|
2
2
|
<a href="https://simple-keyboard.com/demo">
|
|
3
|
-
<img alt="simple-keyboard: Javascript Virtual Keyboard" src="https://
|
|
3
|
+
<img alt="simple-keyboard: Javascript Virtual Keyboard" src="https://user-images.githubusercontent.com/25509135/187999993-fb5422fd-a56f-4a9a-84a9-55c94478f61c.gif">
|
|
4
4
|
</a>
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
<a href="https://www.npmjs.com/package/simple-keyboard">
|
|
7
7
|
<img src="https://badgen.net/npm/v/simple-keyboard?color=blue" alt="npm version">
|
|
8
8
|
</a>
|
package/build/css/index.css
CHANGED
package/build/index.js
CHANGED
package/build/index.modern.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* simple-keyboard v3.4.
|
|
3
|
+
* simple-keyboard v3.4.150 (index.modern.js - Modern Browsers bundle)
|
|
4
4
|
* https://github.com/hodgef/simple-keyboard
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This modern browsers bundle (index.modern.js) removes all polyfills
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simple-keyboard",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.150",
|
|
4
4
|
"description": "On-screen Javascript Virtual Keyboard",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@babel/cli": "^7.18.10",
|
|
43
|
-
"@babel/core": "^7.
|
|
43
|
+
"@babel/core": "^7.19.0",
|
|
44
44
|
"@babel/plugin-proposal-class-properties": "^7.17.12",
|
|
45
45
|
"@babel/plugin-transform-typescript": "^7.18.12",
|
|
46
46
|
"@babel/polyfill": "^7.12.1",
|
|
47
|
-
"@babel/preset-env": "^7.
|
|
47
|
+
"@babel/preset-env": "^7.19.0",
|
|
48
48
|
"@types/jest": "^27.5.0",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^5.36.
|
|
50
|
-
"@typescript-eslint/parser": "^5.
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^5.36.2",
|
|
50
|
+
"@typescript-eslint/parser": "^5.36.2",
|
|
51
51
|
"autoprefixer": "^10.4.8",
|
|
52
52
|
"babel-eslint": "^10.1.0",
|
|
53
53
|
"babel-loader": "^8.2.5",
|
package/webpack.config.demo.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
2
|
-
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
mode: "development",
|
|
6
|
-
devtool: 'cheap-module-source-map',
|
|
7
|
-
entry: './src/demo/index.js',
|
|
8
|
-
output: {
|
|
9
|
-
filename: 'index.js'
|
|
10
|
-
},
|
|
11
|
-
optimization: {
|
|
12
|
-
minimize: false,
|
|
13
|
-
},
|
|
14
|
-
devServer: {
|
|
15
|
-
open: true,
|
|
16
|
-
hot: true,
|
|
17
|
-
host: "localhost",
|
|
18
|
-
port: 9000
|
|
19
|
-
},
|
|
20
|
-
module: {
|
|
21
|
-
rules: [
|
|
22
|
-
{
|
|
23
|
-
test: /\.(m|j|t)s$/,
|
|
24
|
-
exclude: /(node_modules|bower_components)/,
|
|
25
|
-
use: {
|
|
26
|
-
loader: 'babel-loader'
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
test: /\.(sa|sc|c)ss$/,
|
|
31
|
-
use: [
|
|
32
|
-
MiniCssExtractPlugin.loader,
|
|
33
|
-
{ loader: "css-loader", options: { sourceMap: true } },
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
test: /\.(png|jpe?g|gif|svg|eot|ttf|woff|woff2)$/,
|
|
38
|
-
use: ['url-loader'],
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
plugins: [
|
|
43
|
-
new MiniCssExtractPlugin({
|
|
44
|
-
filename: 'css/index.css'
|
|
45
|
-
}),
|
|
46
|
-
new HtmlWebpackPlugin(),
|
|
47
|
-
],
|
|
48
|
-
resolve: {
|
|
49
|
-
extensions: ['.ts', '.js', '.json']
|
|
50
|
-
}
|
|
51
|
-
};
|
package/webpack.config.modern.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Config to support modern browsers only (build/index.modern.js)
|
|
3
|
-
*/
|
|
4
|
-
const path = require('path');
|
|
5
|
-
const webpack = require('webpack');
|
|
6
|
-
const TerserPlugin = require('terser-webpack-plugin');
|
|
7
|
-
const getPackageJson = require('./scripts/getPackageJson');
|
|
8
|
-
|
|
9
|
-
const {
|
|
10
|
-
version,
|
|
11
|
-
name,
|
|
12
|
-
license,
|
|
13
|
-
repository,
|
|
14
|
-
author,
|
|
15
|
-
} = getPackageJson('version', 'name', 'license', 'repository', 'author');
|
|
16
|
-
|
|
17
|
-
const banner = `
|
|
18
|
-
${name} v${version} (index.modern.js - Modern Browsers bundle)
|
|
19
|
-
${repository.url}
|
|
20
|
-
|
|
21
|
-
NOTE: This modern browsers bundle (index.modern.js) removes all polyfills
|
|
22
|
-
included in the standard version. Use this if you are supporting
|
|
23
|
-
modern browsers only. Otherwise, use the standard version (index.js).
|
|
24
|
-
|
|
25
|
-
Copyright (c) ${author.replace(/ *<[^)]*> */g, " ")} and project contributors.
|
|
26
|
-
|
|
27
|
-
This source code is licensed under the ${license} license found in the
|
|
28
|
-
LICENSE file in the root directory of this source tree.
|
|
29
|
-
`;
|
|
30
|
-
|
|
31
|
-
module.exports = {
|
|
32
|
-
mode: "production",
|
|
33
|
-
entry: './src/lib/index.modern.ts',
|
|
34
|
-
target: 'es5',
|
|
35
|
-
devtool: 'source-map',
|
|
36
|
-
output: {
|
|
37
|
-
filename: 'index.modern.js',
|
|
38
|
-
path: path.resolve(__dirname, 'build'),
|
|
39
|
-
library: "SimpleKeyboard",
|
|
40
|
-
libraryTarget: 'umd',
|
|
41
|
-
globalObject: 'this'
|
|
42
|
-
},
|
|
43
|
-
optimization: {
|
|
44
|
-
minimize: true,
|
|
45
|
-
minimizer: [
|
|
46
|
-
new TerserPlugin({ extractComments: false }),
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
module: {
|
|
50
|
-
rules: [
|
|
51
|
-
{
|
|
52
|
-
test: /\.m?(j|t)s$/,
|
|
53
|
-
exclude: /(node_modules|bower_components)/,
|
|
54
|
-
use: {
|
|
55
|
-
loader: 'babel-loader',
|
|
56
|
-
options: {
|
|
57
|
-
presets: [
|
|
58
|
-
["@babel/env"]
|
|
59
|
-
],
|
|
60
|
-
plugins: [
|
|
61
|
-
["@babel/plugin-proposal-class-properties"],
|
|
62
|
-
["@babel/plugin-transform-typescript"]
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
test: /\.(sa|sc|c)ss$/,
|
|
69
|
-
use: path.resolve('scripts/loaderMock.js')
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
plugins: [
|
|
74
|
-
new webpack.BannerPlugin(banner)
|
|
75
|
-
],
|
|
76
|
-
resolve: {
|
|
77
|
-
extensions: ['.ts', '.js', '.json']
|
|
78
|
-
}
|
|
79
|
-
};
|