@itcase/ui-core 1.10.54 → 1.10.55

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.
@@ -91,8 +91,8 @@ function NotificationsProvider(props) {
91
91
  []);
92
92
  const notificationsAPI = React.useMemo(() => ({
93
93
  hideNotifications: hideNotifications,
94
- removeNotification: removeNotification,
95
94
  notificationStatuses: STATUSES,
95
+ removeNotification: removeNotification,
96
96
  showNotification: showNotification,
97
97
  }),
98
98
  // Functions is never changes, no sense to set as dependencies
@@ -114,7 +114,8 @@ function NotificationsProvider(props) {
114
114
  if (responseError.message) {
115
115
  // prevent from showing many network errors
116
116
  const errorListToDedupe = ['network'];
117
- const id = errorListToDedupe.includes(responseError.key)
117
+ const id = typeof responseError.key === 'string' &&
118
+ errorListToDedupe.includes(responseError.key)
118
119
  ? responseError.key
119
120
  : undefined;
120
121
  showNotification({
@@ -89,8 +89,8 @@ function NotificationsProvider(props) {
89
89
  []);
90
90
  const notificationsAPI = useMemo(() => ({
91
91
  hideNotifications: hideNotifications,
92
- removeNotification: removeNotification,
93
92
  notificationStatuses: STATUSES,
93
+ removeNotification: removeNotification,
94
94
  showNotification: showNotification,
95
95
  }),
96
96
  // Functions is never changes, no sense to set as dependencies
@@ -112,7 +112,8 @@ function NotificationsProvider(props) {
112
112
  if (responseError.message) {
113
113
  // prevent from showing many network errors
114
114
  const errorListToDedupe = ['network'];
115
- const id = errorListToDedupe.includes(responseError.key)
115
+ const id = typeof responseError.key === 'string' &&
116
+ errorListToDedupe.includes(responseError.key)
116
117
  ? responseError.key
117
118
  : undefined;
118
119
  showNotification({
@@ -122,7 +122,7 @@ export interface StyleAttributes {
122
122
  whiteSpace?: CSS.Property.WhiteSpace;
123
123
  width?: CSS.Property.Width | WidthProps;
124
124
  writingMode?: CSS.Property.WritingMode;
125
- zIndex?: CSS.Property.ZIndex;
125
+ zIndex?: string;
126
126
  }
127
127
  type WrappedInterface<T> = {
128
128
  [P in keyof T as `${P & string}Wrapper`]: T[P];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui-core",
3
- "version": "1.10.54",
3
+ "version": "1.10.55",
4
4
  "description": "UI shared components",
5
5
  "keywords": [
6
6
  "Modal",
@@ -96,5 +96,5 @@
96
96
  "rollup-plugin-peer-deps-external": "^2.2.4",
97
97
  "rollup-preserve-directives": "^1.1.3"
98
98
  },
99
- "gitHead": "5b13e50aec51841ef5b22866bd55ae9b03db9aef"
99
+ "gitHead": "f259be2cb2accf34ddfa100863870c1124ea2efc"
100
100
  }