react-context-form 2.11.0 → 2.12.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/build/AutoUpdate/AutoUpdate.d.ts +1 -1
- package/build/AutoValidate/AutoValidate.d.ts +1 -1
- package/build/Button/BaseButton.d.ts +2 -2
- package/build/Button/Button.d.ts +160 -110
- package/build/Button/Checkbox.d.ts +160 -110
- package/build/Form/Form.d.ts +3 -3
- package/build/FormGroup/FormGroup.d.ts +160 -110
- package/build/Hint/Hint.d.ts +132 -107
- package/build/Input/BaseInput.d.ts +160 -110
- package/build/Model/Model.d.ts +1 -1
- package/build/OnValidate/OnValidate.d.ts +4 -4
- package/build/ResetButton/ResetButton.d.ts +1 -1
- package/build/ShowPasswordButton/ShowPasswordButton.d.ts +159 -109
- package/build/SlowSubmitButton/SlowSubmitButton.d.ts +496 -447
- package/build/SubmitButton/SubmitButton.d.ts +160 -110
- package/build/index.js +1936 -3798
- package/docs/AutoFocus.md +1 -1
- package/package.json +12 -19
- package/tsconfig.json +4 -2
- package/tslint.json +1 -0
- package/webpack.config.js +1 -35
package/docs/AutoFocus.md
CHANGED
|
@@ -9,7 +9,7 @@ It requires [context](../src/FormGroup/FormGroupContext.ts) which is provided by
|
|
|
9
9
|
<FormGroup name="phone" {...FormGroupProps}>
|
|
10
10
|
<AutoFocus to="email" {...AutoValidateProps}>
|
|
11
11
|
// ...
|
|
12
|
-
</
|
|
12
|
+
</AutoFocus>
|
|
13
13
|
</FormGroup>
|
|
14
14
|
<FormGroup name="email" {...FormGroupProps}>
|
|
15
15
|
// ...
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-context-form",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "One more way to handle forms on React",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"typings": "build/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"test": "cross-env TS_NODE_PROJECT=tsconfig.test.json ./node_modules/.bin/nyc mocha -r jsdom-global/register -r ts-node/register -r source-map-support/register tests/bootstrap.ts tests/**-specs.ts tests/**-specs.tsx",
|
|
8
|
+
"test": "cross-env TS_NODE_PROJECT=tsconfig.test.json ./node_modules/.bin/nyc mocha --exit -r jsdom-global/register -r ts-node/register -r source-map-support/register tests/bootstrap.ts tests/**-specs.ts tests/**-specs.tsx",
|
|
9
9
|
"build": "cross-env NODE_ENV=production ./node_modules/.bin/webpack",
|
|
10
10
|
"dev": "./node_modules/.bin/webpack-dev-server",
|
|
11
11
|
"coverage": "./node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov && codecov",
|
|
@@ -32,24 +32,18 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/Horat1us/react-formgroup#readme",
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@types/chai": "^4.
|
|
36
|
-
"@types/cheerio": "^0.22.
|
|
35
|
+
"@types/chai": "^4.3.4",
|
|
36
|
+
"@types/cheerio": "^0.22.31",
|
|
37
37
|
"@types/enzyme": "^2.8.9",
|
|
38
|
-
"@types/mocha": "^
|
|
38
|
+
"@types/mocha": "^10.0.0",
|
|
39
39
|
"@types/node": "^10.3.3",
|
|
40
40
|
"@types/prop-types": "^15.5.3",
|
|
41
41
|
"@types/react": "^16.3.17",
|
|
42
42
|
"@types/sinon": "^2.3.3",
|
|
43
43
|
"awesome-typescript-loader": "^3.5.0",
|
|
44
44
|
"axios": "^0.18.0",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
|
48
|
-
"babel-preset-env": "^1.7.0",
|
|
49
|
-
"babel-preset-react": "^6.24.1",
|
|
50
|
-
"babel-regenerator-runtime": "^6.5.0",
|
|
51
|
-
"chai": "^4.1.2",
|
|
52
|
-
"cheerio": "^1.0.0-rc.2",
|
|
45
|
+
"chai": "^4.3.7",
|
|
46
|
+
"cheerio": "^1.0.0-rc.12",
|
|
53
47
|
"circular-dependency-plugin": "^4.4.0",
|
|
54
48
|
"class-validator": "^0.7.2",
|
|
55
49
|
"clean-webpack-plugin": "^0.1.19",
|
|
@@ -59,7 +53,7 @@
|
|
|
59
53
|
"enzyme-adapter-react-16": "^1.1.1",
|
|
60
54
|
"jsdom": "^11.11.0",
|
|
61
55
|
"jsdom-global": "^3.0.2",
|
|
62
|
-
"mocha": "^
|
|
56
|
+
"mocha": "^10.1.0",
|
|
63
57
|
"nyc": "^11.9.0",
|
|
64
58
|
"pre-commit": "^1.2.2",
|
|
65
59
|
"prop-types": "^15.6.1",
|
|
@@ -72,15 +66,15 @@
|
|
|
72
66
|
"ts-node": "^3.3.0",
|
|
73
67
|
"tslint": "^5.10.0",
|
|
74
68
|
"tslint-react": "^3.6.0",
|
|
75
|
-
"typescript": "^
|
|
69
|
+
"typescript": "^3.9.10",
|
|
76
70
|
"webpack": "^3.12.0",
|
|
77
71
|
"webpack-dev-server": "^2.11.2",
|
|
78
72
|
"webpack-node-externals": "^1.7.2"
|
|
79
73
|
},
|
|
80
74
|
"peerDependencies": {
|
|
81
|
-
"class-validator": "
|
|
82
|
-
"prop-types": "
|
|
83
|
-
"react": "
|
|
75
|
+
"class-validator": ">=0.7.2",
|
|
76
|
+
"prop-types": ">=15.6.0",
|
|
77
|
+
"react": ">=16.2.0"
|
|
84
78
|
},
|
|
85
79
|
"nyc": {
|
|
86
80
|
"extension": [
|
|
@@ -99,7 +93,6 @@
|
|
|
99
93
|
],
|
|
100
94
|
"report-dir": "./tests/output"
|
|
101
95
|
},
|
|
102
|
-
"dependencies": {},
|
|
103
96
|
"pre-commit": [
|
|
104
97
|
"lint",
|
|
105
98
|
"test"
|
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
3
|
+
"target": "es2017",
|
|
4
|
+
"module": "commonjs",
|
|
4
5
|
"lib": ["esnext", "dom"],
|
|
5
6
|
"sourceMap": true,
|
|
6
7
|
"removeComments": true,
|
|
@@ -10,7 +11,8 @@
|
|
|
10
11
|
"jsx": "react",
|
|
11
12
|
"declaration": true,
|
|
12
13
|
"declarationDir": "build",
|
|
13
|
-
"strictNullChecks": true
|
|
14
|
+
"strictNullChecks": true,
|
|
15
|
+
"skipLibCheck": true
|
|
14
16
|
},
|
|
15
17
|
"exclude": [
|
|
16
18
|
"./node_modules/**/*",
|
package/tslint.json
CHANGED
package/webpack.config.js
CHANGED
|
@@ -47,41 +47,7 @@ const config = {
|
|
|
47
47
|
loaders: [
|
|
48
48
|
{
|
|
49
49
|
test: /\.tsx?$/,
|
|
50
|
-
|
|
51
|
-
{
|
|
52
|
-
loader: "babel-loader",
|
|
53
|
-
query: {
|
|
54
|
-
presets: [
|
|
55
|
-
'react',
|
|
56
|
-
['env', {
|
|
57
|
-
"targets": {
|
|
58
|
-
"browsers": ["last 2 versions", "safari >= 10", "ie >= 11"]
|
|
59
|
-
}
|
|
60
|
-
}]
|
|
61
|
-
],
|
|
62
|
-
"plugins": ["transform-object-rest-spread"]
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"awesome-typescript-loader"
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
test: /\.jsx?$/,
|
|
70
|
-
exclude:
|
|
71
|
-
[/node_modules/],
|
|
72
|
-
loader:
|
|
73
|
-
"babel-loader",
|
|
74
|
-
query: {
|
|
75
|
-
presets: [
|
|
76
|
-
'react',
|
|
77
|
-
['env', {
|
|
78
|
-
"targets": {
|
|
79
|
-
"browsers": ["last 2 versions", "safari >= 10", "ie >= 11"]
|
|
80
|
-
}
|
|
81
|
-
}]
|
|
82
|
-
],
|
|
83
|
-
"plugins": ["transform-object-rest-spread"]
|
|
84
|
-
}
|
|
50
|
+
loader: "awesome-typescript-loader"
|
|
85
51
|
},
|
|
86
52
|
{
|
|
87
53
|
enforce: "pre",
|