@msrajawat298/do-graphs 1.0.3 → 1.0.5
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.
|
@@ -53,16 +53,15 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
|
53
53
|
import { faTrashAlt } from '@fortawesome/free-solid-svg-icons';
|
|
54
54
|
var CustomComponent = function (_a) {
|
|
55
55
|
var component = _a.component, layoutId = _a.layoutId, isConfigEdit = _a.isConfigEdit;
|
|
56
|
-
var
|
|
57
|
-
var
|
|
56
|
+
var removeChart = useContext(PopUpContext).removeChart;
|
|
57
|
+
var _b = useState(null), importedComponent = _b[0], setImportedComponent = _b[1];
|
|
58
58
|
var importComponent = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
59
|
-
var
|
|
59
|
+
var module_1, AnotherComponent, error_1;
|
|
60
60
|
return __generator(this, function (_a) {
|
|
61
61
|
switch (_a.label) {
|
|
62
62
|
case 0:
|
|
63
63
|
_a.trys.push([0, 2, , 3]);
|
|
64
|
-
|
|
65
|
-
return [4 /*yield*/, import("".concat(basePath, "/").concat(component))];
|
|
64
|
+
return [4 /*yield*/, import(process.env.REACT_APP_ROOT_PATH + '/' + component)];
|
|
66
65
|
case 1:
|
|
67
66
|
module_1 = _a.sent();
|
|
68
67
|
AnotherComponent = module_1.default;
|
|
@@ -70,8 +69,8 @@ var CustomComponent = function (_a) {
|
|
|
70
69
|
return [3 /*break*/, 3];
|
|
71
70
|
case 2:
|
|
72
71
|
error_1 = _a.sent();
|
|
73
|
-
console.error
|
|
74
|
-
toast.error(
|
|
72
|
+
console.log('error :: ', error_1);
|
|
73
|
+
toast.error(error_1 === null || error_1 === void 0 ? void 0 : error_1.toString());
|
|
75
74
|
return [3 /*break*/, 3];
|
|
76
75
|
case 3: return [2 /*return*/];
|
|
77
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@msrajawat298/do-graphs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Mayank Singh Kushwah",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,27 +23,23 @@
|
|
|
23
23
|
"@fortawesome/free-regular-svg-icons": "^6.6.0",
|
|
24
24
|
"@fortawesome/free-solid-svg-icons": "^6.6.0",
|
|
25
25
|
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
26
|
-
"@testing-library/jest-dom": "^5.17.0",
|
|
27
|
-
"@testing-library/react": "^13.4.0",
|
|
28
|
-
"@testing-library/user-event": "^13.5.0",
|
|
29
|
-
"@types/jest": "^27.5.2",
|
|
30
|
-
"@types/node": "^16.18.104",
|
|
31
|
-
"@types/react": "^18.3.3",
|
|
32
|
-
"@types/react-dom": "^18.3.0",
|
|
33
26
|
"chart.js": "^4.4.4",
|
|
34
27
|
"chartjs-plugin-datalabels": "^2.2.0",
|
|
35
|
-
"react": "^18.3.1",
|
|
36
28
|
"react-chartjs-2": "^5.2.0",
|
|
37
|
-
"react-dom": "^18.3.1",
|
|
38
29
|
"react-grid-layout": "^1.4.4",
|
|
39
30
|
"react-router-dom": "^6.25.1",
|
|
40
|
-
"react-scripts": "5.0.1",
|
|
41
31
|
"react-toastify": "^10.0.5",
|
|
42
|
-
"save-dev": "^0.0.1-security",
|
|
43
|
-
"typescript": "^4.9.5",
|
|
44
32
|
"web-vitals": "^2.1.4",
|
|
45
33
|
"xlsx": "^0.18.5"
|
|
46
34
|
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "https://gitlab.com/mayank.deloitte/do_graphs"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react": "^18.0.0",
|
|
41
|
+
"react-dom": "^18.0.0"
|
|
42
|
+
},
|
|
47
43
|
"scripts": {
|
|
48
44
|
"start": "react-scripts start",
|
|
49
45
|
"test": "react-scripts test",
|
|
@@ -52,7 +48,7 @@
|
|
|
52
48
|
"copy-files": "copyfiles -u 1 \"src/**/*.html\" \"src/**/*.css\" \"src/Assets/**/*\" dist/",
|
|
53
49
|
"build": "npm run clean && tsc && npm run copy-files",
|
|
54
50
|
"prepublishOnly": "npm run build",
|
|
55
|
-
"build:watch": "tsc -w
|
|
51
|
+
"build:watch": "tsc -w"
|
|
56
52
|
},
|
|
57
53
|
"eslintConfig": {
|
|
58
54
|
"extends": [
|
|
@@ -66,8 +62,19 @@
|
|
|
66
62
|
"not op_mini all"
|
|
67
63
|
],
|
|
68
64
|
"devDependencies": {
|
|
65
|
+
"react": "^18.3.1",
|
|
66
|
+
"react-dom": "^18.3.1",
|
|
67
|
+
"@types/node": "^16.18.104",
|
|
68
|
+
"@types/react": "^18.3.3",
|
|
69
|
+
"@types/react-dom": "^18.3.0",
|
|
69
70
|
"@types/react-grid-layout": "^1.3.5",
|
|
70
71
|
"copyfiles": "^2.4.1",
|
|
71
|
-
"rimraf": "^6.0.1"
|
|
72
|
+
"rimraf": "^6.0.1",
|
|
73
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
74
|
+
"@testing-library/react": "^13.4.0",
|
|
75
|
+
"@testing-library/user-event": "^13.5.0",
|
|
76
|
+
"@types/jest": "^27.5.2",
|
|
77
|
+
"react-scripts": "5.0.1",
|
|
78
|
+
"typescript": "^4.9.5"
|
|
72
79
|
}
|
|
73
80
|
}
|