@banch0u/core-project-test-repository 1.7.1 → 1.7.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/dist/components/FormModal/index.js +5 -6
- package/dist/components/NotificationDropdown/index.js +1 -2
- package/dist/components/NotificationSettingsContent/index.js +1 -1
- package/dist/components/ProfileOptions/index.js +1 -1
- package/dist/components/Table/index.js +3 -3
- package/dist/pages/Platform/index.js +1 -1
- package/package.json +6 -2
|
@@ -3,10 +3,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import { Form, Modal } from "antd";
|
|
5
5
|
import React, { forwardRef, useCallback, useImperativeHandle, useState } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { setCitizenSearchId, setSubtopicSelectDisabled } from "../../store/slices/global";
|
|
6
|
+
import { useSelector } from "react-redux";
|
|
8
7
|
import style from "./index.module.scss";
|
|
9
|
-
import
|
|
8
|
+
import Button from "../Button";
|
|
10
9
|
var FormModal = function FormModal(_ref, ref) {
|
|
11
10
|
var okText = _ref.okText,
|
|
12
11
|
cancelText = _ref.cancelText,
|
|
@@ -32,7 +31,6 @@ var FormModal = function FormModal(_ref, ref) {
|
|
|
32
31
|
var _useForm = useForm(),
|
|
33
32
|
_useForm2 = _slicedToArray(_useForm, 1),
|
|
34
33
|
form = _useForm2[0];
|
|
35
|
-
var dispatch = useDispatch();
|
|
36
34
|
if (customForm) {
|
|
37
35
|
customForm(form);
|
|
38
36
|
}
|
|
@@ -96,12 +94,13 @@ var FormModal = function FormModal(_ref, ref) {
|
|
|
96
94
|
case 9:
|
|
97
95
|
form.resetFields();
|
|
98
96
|
setIsVisible(false);
|
|
99
|
-
_context.next =
|
|
97
|
+
_context.next = 16;
|
|
100
98
|
break;
|
|
101
99
|
case 13:
|
|
102
100
|
_context.prev = 13;
|
|
103
101
|
_context.t0 = _context["catch"](0);
|
|
104
|
-
|
|
102
|
+
console.log(_context.t0);
|
|
103
|
+
case 16:
|
|
105
104
|
case "end":
|
|
106
105
|
return _context.stop();
|
|
107
106
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import React, { useRef
|
|
3
|
+
import React, { useRef } from "react";
|
|
4
4
|
import { useDispatch, useSelector } from "react-redux";
|
|
5
5
|
import { readNotification, readNotificationAll } from "../../store/slices/notification";
|
|
6
6
|
import { Button, List, Tooltip, Typography } from "antd";
|
|
@@ -11,7 +11,6 @@ import FormModal from "../FormModal";
|
|
|
11
11
|
var NotificationDropdown = function NotificationDropdown(_ref) {
|
|
12
12
|
var _notifications$notifi;
|
|
13
13
|
var size = _ref.size,
|
|
14
|
-
page = _ref.page,
|
|
15
14
|
setSize = _ref.setSize,
|
|
16
15
|
setPage = _ref.setPage;
|
|
17
16
|
var dispatch = useDispatch();
|
|
@@ -157,7 +157,7 @@ var NotificationSettingsContent = /*#__PURE__*/React.forwardRef(function (props,
|
|
|
157
157
|
var _props$onClose;
|
|
158
158
|
dispatch(editNotificationSettings(data));
|
|
159
159
|
props === null || props === void 0 || (_props$onClose = props.onClose) === null || _props$onClose === void 0 || _props$onClose.call(props);
|
|
160
|
-
}, [dispatch]);
|
|
160
|
+
}, [dispatch, props]);
|
|
161
161
|
return /*#__PURE__*/React.createElement("div", {
|
|
162
162
|
className: style.settingsWrapper
|
|
163
163
|
}, /*#__PURE__*/React.createElement(Title, {
|
|
@@ -3,7 +3,7 @@ import React, { useEffect, useState } from "react";
|
|
|
3
3
|
import { Badge, Dropdown, Menu, Tooltip } from "antd";
|
|
4
4
|
import { SunOutlined, MoonOutlined } from "@ant-design/icons";
|
|
5
5
|
import style from "./index.module.scss";
|
|
6
|
-
import { BellOutlined
|
|
6
|
+
import { BellOutlined } from "@ant-design/icons";
|
|
7
7
|
import { useDispatch, useSelector } from "react-redux";
|
|
8
8
|
import { Link } from "react-router-dom";
|
|
9
9
|
import { getProfileInfo, scopes } from "../../store/slices/auth";
|
|
@@ -92,7 +92,7 @@ var Table = function Table(_ref) {
|
|
|
92
92
|
return col.fixed === "right";
|
|
93
93
|
}));
|
|
94
94
|
var draggableColumns = filteredColumns(orderedColumns);
|
|
95
|
-
var DraggableHeader = function DraggableHeader(
|
|
95
|
+
var DraggableHeader = function DraggableHeader() {
|
|
96
96
|
return /*#__PURE__*/React.createElement("tr", null, fixedLeftColumns.map(function (col, index) {
|
|
97
97
|
return /*#__PURE__*/React.createElement("th", {
|
|
98
98
|
key: col.dataIndex,
|
|
@@ -104,7 +104,7 @@ var Table = function Table(_ref) {
|
|
|
104
104
|
background: "white"
|
|
105
105
|
}
|
|
106
106
|
}, col.title);
|
|
107
|
-
}), draggableColumns.map(function (col
|
|
107
|
+
}), draggableColumns.map(function (col) {
|
|
108
108
|
return /*#__PURE__*/React.createElement("th", {
|
|
109
109
|
key: col.dataIndex,
|
|
110
110
|
className: style.draggableHeader,
|
|
@@ -125,7 +125,7 @@ var Table = function Table(_ref) {
|
|
|
125
125
|
}, col.title);
|
|
126
126
|
}));
|
|
127
127
|
};
|
|
128
|
-
var DraggableWrapper = function DraggableWrapper(
|
|
128
|
+
var DraggableWrapper = function DraggableWrapper() {
|
|
129
129
|
return /*#__PURE__*/React.createElement(DragDropContext, {
|
|
130
130
|
onDragEnd: handleDragEnd
|
|
131
131
|
}, /*#__PURE__*/React.createElement(Droppable, {
|
|
@@ -23,7 +23,7 @@ var Platform = function Platform() {
|
|
|
23
23
|
useEffect(function () {
|
|
24
24
|
dispatch(scopes());
|
|
25
25
|
dispatch(getProfileInfo());
|
|
26
|
-
}, []);
|
|
26
|
+
}, [dispatch]);
|
|
27
27
|
return /*#__PURE__*/React.createElement("div", {
|
|
28
28
|
className: style.platform
|
|
29
29
|
}, /*#__PURE__*/React.createElement("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@banch0u/core-project-test-repository",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "Shared core features for all projects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -24,11 +24,15 @@
|
|
|
24
24
|
"publish:major": "npm run build && npm version major && npm publish"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
+
"@ant-design/icons": "^6.0.0",
|
|
27
28
|
"@microsoft/signalr": "^8.0.7",
|
|
28
29
|
"@pdftron/webviewer": "^11.2.0",
|
|
29
30
|
"@reduxjs/toolkit": "^2.6.1",
|
|
30
31
|
"antd": "^5.16.0",
|
|
31
|
-
"axios": "^1.8.4"
|
|
32
|
+
"axios": "^1.8.4",
|
|
33
|
+
"js-cookie": "^3.0.5",
|
|
34
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
35
|
+
"react-redux": "^9.2.0"
|
|
32
36
|
},
|
|
33
37
|
"peerDependencies": {
|
|
34
38
|
"react": "^18.0.0 || ^19.0.0",
|