chem-generic-ui 0.6.0-rc.2 → 1.0.3

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.
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * This file is part of chem-generic-ui, a React component for dynamically building user interfaces.
3
+ *
4
+ * Copyright (C) 2022 - current Chia-Lin Lin (chia-lin.lin(at)kit.edu), Pei-Chi Huang (pei-chi.huang(at)kit.edu)
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
7
+ *
8
+ * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
9
+ *
10
+ * You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
11
+ *
12
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chem-generic-ui",
3
- "version": "0.6.0-rc.2",
3
+ "version": "1.0.3",
4
4
  "main": "./dist/bundle.js",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -14,22 +14,8 @@
14
14
  "README.md"
15
15
  ],
16
16
  "scripts": {
17
- "analyze": "yarn build && yarn source-map-explorer dist/bundle.js --only-mapped --html tree.html",
18
- "start": "webpack-dev-server --config ./webpack.dev.js --hot",
19
17
  "build": "webpack --config ./webpack.config.js",
20
- "cc:clean:dev5": "rm -rf /home/ubuntu/workspace/github/dev5/node_modules/chem-generic-ui/dist/*",
21
- "cc:cp:dev5": "cp -f ./dist/* /home/ubuntu/workspace/github/dev5/node_modules/chem-generic-ui/dist/.",
22
- "cc:cpp:dev5": "cp -f package.json /home/ubuntu/workspace/github/dev5/node_modules/chem-generic-ui/package.json",
23
- "cc:cp:spec": "cp -f ./dist/* /home/ubuntu/workspace/github/react-spectra-editor/node_modules/chem-generic-ui/dist/.",
24
- "cc:cpp:spec": "cp -f package.json /home/ubuntu/workspace/github/react-spectra-editor/node_modules/chem-generic-ui/package.json",
25
- "cc:ubuntu": "yarn build && yarn cc:clean:dev5 && yarn cc:cp:dev5 && yarn cc:cpp:dev5 && yarn cc:cp:spec",
26
- "cc:clean:dev6": "rm -rf /home/ubuntu/workspace/github/dev6/node_modules/chem-generic-ui/dist/*",
27
- "cc:cp:dev6": "cp -f ./dist/* /home/ubuntu/workspace/github/dev6/node_modules/chem-generic-ui/dist/.",
28
- "cc:cpp:dev6": "cp -f package.json /home/ubuntu/workspace/github/dev6/node_modules/chem-generic-ui/package.json",
29
- "cc:ubuntu6": "yarn build && yarn cc:clean:dev6 && yarn cc:cp:dev6 && yarn cc:cpp:dev6",
30
- "sass": "sass src:src --no-source-map",
31
- "test": "react-scripts test --env=jsdom --testPathIgnorePatterns=src/__tests__/helper/* src/__tests__/e2e/*",
32
- "eject": "react-scripts eject"
18
+ "test": "jest --verbose"
33
19
  },
34
20
  "dependencies": {
35
21
  "@fortawesome/fontawesome-svg-core": "^6.1.2",
@@ -39,19 +25,20 @@
39
25
  "ag-grid-community": "^28.2.1",
40
26
  "ag-grid-react": "^28.2.1",
41
27
  "date-fns": "^2.29.3",
28
+ "generic-ui-core": "^1.0.0",
42
29
  "lodash": "^4.17.21",
43
30
  "moment": "^2.29.4",
44
31
  "moment-precise-range-plugin": "^1.3.0",
45
32
  "numeral": "^2.0.6",
46
33
  "prop-types": "^15.8.1",
47
34
  "react-datepicker": "^4.8.0",
48
- "react-dnd": "^16.0.1",
49
- "react-dnd-html5-backend": "^16.0.1",
35
+ "react-dnd": "^14.0.3",
36
+ "react-dnd-html5-backend": "^14.0.3",
50
37
  "react-draggable": "^4.4.5",
51
38
  "react-dropzone": "^3.6.0",
52
39
  "react-select": "5.4.0",
53
40
  "reactflow": "^11.7.2",
54
- "uuid": "^8.3.2"
41
+ "uuid": "^9.0.0"
55
42
  },
56
43
  "peerDependencies": {
57
44
  "react": "^17.0.2",
@@ -59,24 +46,36 @@
59
46
  },
60
47
  "devDependencies": {
61
48
  "@babel/cli": "^7.17.6",
62
- "@babel/core": "^7.17.8",
49
+ "@babel/core": "^7.22.10",
63
50
  "@babel/eslint-parser": "^7.15.0",
64
51
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
52
+ "@babel/plugin-transform-modules-commonjs": "^7.22.5",
65
53
  "@babel/plugin-transform-react-jsx": "^7.22.3",
66
54
  "@babel/plugin-transform-runtime": "^7.17.0",
67
- "@babel/preset-env": "^7.16.11",
68
- "@babel/preset-react": "^7.16.7",
55
+ "@babel/preset-env": "^7.22.10",
56
+ "@babel/preset-react": "^7.22.5",
69
57
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
58
+ "@testing-library/dom": "^9.3.1",
59
+ "@testing-library/jest-dom": "^6.0.0",
60
+ "@testing-library/react": "12.1.5",
61
+ "@testing-library/user-event": "^14.4.3",
62
+ "babel-jest": "^29.6.2",
70
63
  "babel-loader": "^8.2.4",
71
64
  "css-loader": "^6.7.1",
72
65
  "eslint": "7.32.0",
73
66
  "eslint-config-airbnb": "^18.2.1",
74
67
  "eslint-config-prettier": "^8.8.0",
75
68
  "eslint-plugin-import": "^2.27.5",
69
+ "eslint-plugin-jest": "^27.2.3",
70
+ "eslint-plugin-jest-dom": "^5.0.2",
76
71
  "eslint-plugin-jsx-a11y": "^6.5.1",
77
72
  "eslint-plugin-prettier": "^4.2.1",
78
73
  "eslint-plugin-react": "^7.4.0",
79
74
  "eslint-plugin-react-hooks": "^4.3.0",
75
+ "identity-obj-proxy": "^3.0.0",
76
+ "jest": "^29.6.2",
77
+ "jest-environment-jsdom": "^29.6.2",
78
+ "jest-extended": "^4.0.1",
80
79
  "jsdoc-to-markdown": "^8.0.0",
81
80
  "postcss": "^8.4.8",
82
81
  "postcss-cli": "^9.1.0",
@@ -94,6 +93,7 @@
94
93
  "style-loader": "^3.3.1",
95
94
  "terser-webpack-plugin": "^5.3.3",
96
95
  "webpack": "^5.70.0",
96
+ "webpack-bundle-analyzer": "^4.9.0",
97
97
  "webpack-cli": "^4.9.2",
98
98
  "webpack-dev-server": "^4.7.4"
99
99
  },