@itcase/ui 1.8.172 → 1.8.174
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/cjs/context/Notifications.js +6 -0
- package/dist/context/Notifications.js +6 -0
- package/dist/css/components/Notification/Notification.css +3 -0
- package/dist/css/components/Notification/css/__item/notification__item.css +3 -0
- package/dist/css/styles/bundle.css +3 -0
- package/package.json +4 -4
|
@@ -98,7 +98,13 @@ function NotificationsProvider(props) {
|
|
|
98
98
|
common.axiosInstanceITCase.responseErrorHandler.loggerManager = {
|
|
99
99
|
log: (responseError) => {
|
|
100
100
|
if (responseError.message) {
|
|
101
|
+
// prevent from showing many network errors
|
|
102
|
+
const errorListToDedupe = ['network'];
|
|
103
|
+
const id = errorListToDedupe.includes(responseError.key)
|
|
104
|
+
? responseError.key
|
|
105
|
+
: undefined;
|
|
101
106
|
showNotification({
|
|
107
|
+
id: id,
|
|
102
108
|
title: responseError.message,
|
|
103
109
|
status: 'error',
|
|
104
110
|
closeByTime: 4000,
|
|
@@ -96,7 +96,13 @@ function NotificationsProvider(props) {
|
|
|
96
96
|
axiosInstanceITCase.responseErrorHandler.loggerManager = {
|
|
97
97
|
log: (responseError) => {
|
|
98
98
|
if (responseError.message) {
|
|
99
|
+
// prevent from showing many network errors
|
|
100
|
+
const errorListToDedupe = ['network'];
|
|
101
|
+
const id = errorListToDedupe.includes(responseError.key)
|
|
102
|
+
? responseError.key
|
|
103
|
+
: undefined;
|
|
99
104
|
showNotification({
|
|
105
|
+
id: id,
|
|
100
106
|
title: responseError.message,
|
|
101
107
|
status: 'error',
|
|
102
108
|
closeByTime: 4000,
|
|
@@ -79888,6 +79888,9 @@ div.label {
|
|
|
79888
79888
|
.notification__item {
|
|
79889
79889
|
width: 340px;
|
|
79890
79890
|
pointer-events: auto;
|
|
79891
|
+
@media print {
|
|
79892
|
+
display: none;
|
|
79893
|
+
}
|
|
79891
79894
|
&-wrapper {
|
|
79892
79895
|
position: relative;
|
|
79893
79896
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.174",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"@itcase/common": "^1.2.32",
|
|
105
105
|
"@itcase/icons": "^1.2.23",
|
|
106
106
|
"@itcase/storybook-config": "^1.2.14",
|
|
107
|
-
"@itcase/tokens-am": "^1.1.
|
|
108
|
-
"@itcase/tokens-baikal": "^1.1.
|
|
107
|
+
"@itcase/tokens-am": "^1.1.24",
|
|
108
|
+
"@itcase/tokens-baikal": "^1.1.24",
|
|
109
109
|
"@itcase/tokens-palette": "^1.1.20",
|
|
110
110
|
"clsx": "^2.1.1",
|
|
111
111
|
"date-fns": "^4.1.0",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"@babel/preset-react": "^7.28.5",
|
|
140
140
|
"@commitlint/cli": "^20.1.0",
|
|
141
141
|
"@commitlint/config-conventional": "^20.0.0",
|
|
142
|
-
"@itcase/config": "^1.0.
|
|
142
|
+
"@itcase/config": "^1.0.61",
|
|
143
143
|
"@itcase/lint": "^1.1.68",
|
|
144
144
|
"@itcase/types": "^1.0.45",
|
|
145
145
|
"@rollup/plugin-alias": "^5.1.1",
|