@maif/react-forms 1.0.60 → 1.1.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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@maif/react-forms",
3
3
  "description": "Build react safe forms as fast as possible",
4
- "version": "1.0.60",
4
+ "version": "1.1.2",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",
7
- "types": "lib/index.js",
8
- "source": "src/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "source": "src/index.ts",
9
9
  "author": "MAIF team",
10
10
  "keywords": [
11
11
  "react",
@@ -32,8 +32,8 @@
32
32
  "README.md"
33
33
  ],
34
34
  "scripts": {
35
- "build": "rollup -c",
36
- "dev": "rollup -c -w",
35
+ "build": "tsc --emitDeclarationOnly && rollup -c",
36
+ "dev": "tsc --emitDeclarationOnly && rollup -c -w",
37
37
  "test": "jest",
38
38
  "tdd": "jest --watch"
39
39
  },
@@ -67,6 +67,19 @@
67
67
  "@rollup/plugin-commonjs": "^21.0.2",
68
68
  "@rollup/plugin-json": "^4.1.0",
69
69
  "@rollup/plugin-node-resolve": "^13.1.3",
70
+ "@rollup/plugin-typescript": "^8.3.2",
71
+ "@testing-library/jest-dom": "^5.11.4",
72
+ "@testing-library/react": "^11.1.0",
73
+ "@testing-library/user-event": "^12.1.10",
74
+ "@types/jest": "^26.0.24",
75
+ "@types/node": "^16.3.0",
76
+ "@types/react": "^17.0.14",
77
+ "@types/react-dom": "^17.0.9",
78
+ "@types/object-hash": "^2.2.1",
79
+ "@types/showdown": "^2.0.0",
80
+ "@types/uuid": "^8.3.4",
81
+ "@typescript-eslint/eslint-plugin": "^5.26.0",
82
+ "@typescript-eslint/parser": "^5.26.0",
70
83
  "babel-loader": "8.2.2",
71
84
  "chai": "^4.3.4",
72
85
  "chai-as-promised": "^7.1.1",
@@ -81,14 +94,16 @@
81
94
  "rollup-plugin-commonjs": "^10.1.0",
82
95
  "rollup-plugin-copy": "^3.4.0",
83
96
  "rollup-plugin-delete": "^2.0.0",
97
+ "rollup-plugin-dts": "^4.2.2",
84
98
  "rollup-plugin-peer-deps-external": "^2.2.4",
85
- "rollup-plugin-terser": "^7.0.2",
86
99
  "rollup-plugin-scss": "^3.0.0",
100
+ "rollup-plugin-terser": "^7.0.2",
87
101
  "sass": "^1.52.1",
88
102
  "sinon": "^11.1.2",
89
103
  "sinon-chai": "^3.7.0",
90
104
  "style-loader": "2.0.0",
91
- "transform-loader": "0.2.4"
105
+ "transform-loader": "0.2.4",
106
+ "typescript": "^4.3.5"
92
107
  },
93
108
  "dependencies": {
94
109
  "@codemirror/basic-setup": "^0.19.1",
@@ -100,20 +115,13 @@
100
115
  "@codemirror/theme-one-dark": "^0.19.1",
101
116
  "@fortawesome/fontawesome-free": "^5.15.3",
102
117
  "@hookform/resolvers": "2.4.0",
103
- "@testing-library/jest-dom": "^5.11.4",
104
- "@testing-library/react": "^11.1.0",
105
- "@testing-library/user-event": "^12.1.10",
106
- "@types/jest": "^26.0.24",
107
- "@types/node": "^16.3.0",
108
- "@types/react": "^17.0.14",
109
- "@types/react-dom": "^17.0.9",
110
118
  "classnames": "2.3.0",
111
119
  "fast-deep-equal": "^3.1.3",
112
120
  "highlight.js": "^11.5.1",
113
121
  "moment": "2.29.1",
114
122
  "object-hash": "3.0.0",
115
123
  "react-feather": "2.0.9",
116
- "react-hook-form": "7.29.0",
124
+ "react-hook-form": "7.32.1",
117
125
  "react-rainbow-components": "1.26.0",
118
126
  "react-select": "5.2.1",
119
127
  "react-tooltip": "4.2.21",