@etsoo/react 1.6.34 → 1.6.36

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.
@@ -73,7 +73,7 @@ interface INotifierAction extends IAction {
73
73
  /**
74
74
  * React notification
75
75
  */
76
- export declare abstract class NotificationReact extends Notification<React.ReactNode, NotificationReactCallProps> {
76
+ export declare abstract class NotificationReact extends Notification<React.ReactNode, NotificationReactCallProps> implements INotificationReact {
77
77
  }
78
78
  /**
79
79
  * React notification render props
@@ -49,7 +49,7 @@ export class NotifierReact extends NotificationContainer {
49
49
  // Notifications under the align
50
50
  const notifications = state[align];
51
51
  // UI collections
52
- const ui = notifications.map((notification) => notification.render(props, className + '-item'));
52
+ const ui = notifications.map((notification) => notification.render(props, className ? className + '-item' : className));
53
53
  // Add to the collection
54
54
  aligns.push(this.createContainer(Number(align), ui));
55
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.6.34",
3
+ "version": "1.6.36",
4
4
  "description": "TypeScript ReactJs UI Independent Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -45,20 +45,20 @@
45
45
  },
46
46
  "homepage": "https://github.com/ETSOO/AppReact#readme",
47
47
  "dependencies": {
48
- "@dnd-kit/core": "^6.0.5",
48
+ "@dnd-kit/core": "^6.0.6",
49
49
  "@dnd-kit/sortable": "^7.0.1",
50
50
  "@emotion/css": "^11.10.5",
51
51
  "@emotion/react": "^11.10.5",
52
52
  "@emotion/styled": "^11.10.5",
53
- "@etsoo/appscript": "^1.3.43",
54
- "@etsoo/notificationbase": "^1.1.18",
55
- "@etsoo/shared": "^1.1.79",
53
+ "@etsoo/appscript": "^1.3.49",
54
+ "@etsoo/notificationbase": "^1.1.20",
55
+ "@etsoo/shared": "^1.1.84",
56
56
  "@types/react": "^18.0.26",
57
57
  "@types/react-dom": "^18.0.9",
58
58
  "@types/react-window": "^1.8.5",
59
59
  "react": "^18.2.0",
60
60
  "react-dom": "^18.2.0",
61
- "react-router-dom": "^6.4.4",
61
+ "react-router-dom": "^6.6.0",
62
62
  "react-window": "^1.8.8"
63
63
  },
64
64
  "devDependencies": {
@@ -69,16 +69,16 @@
69
69
  "@babel/runtime-corejs3": "^7.20.6",
70
70
  "@testing-library/jest-dom": "^5.16.5",
71
71
  "@testing-library/react": "^13.4.0",
72
- "@types/jest": "^29.2.3",
73
- "@typescript-eslint/eslint-plugin": "^5.45.0",
74
- "@typescript-eslint/parser": "^5.45.0",
75
- "eslint": "^8.29.0",
72
+ "@types/jest": "^29.2.4",
73
+ "@typescript-eslint/eslint-plugin": "^5.47.0",
74
+ "@typescript-eslint/parser": "^5.47.0",
75
+ "eslint": "^8.30.0",
76
76
  "eslint-config-airbnb-base": "^15.0.0",
77
77
  "eslint-plugin-import": "^2.26.0",
78
78
  "eslint-plugin-react": "^7.31.11",
79
79
  "jest": "^29.3.1",
80
80
  "jest-environment-jsdom": "^29.3.1",
81
81
  "ts-jest": "^29.0.3",
82
- "typescript": "^4.9.3"
82
+ "typescript": "^4.9.4"
83
83
  }
84
84
  }
@@ -111,10 +111,9 @@ interface INotifierAction extends IAction {
111
111
  /**
112
112
  * React notification
113
113
  */
114
- export abstract class NotificationReact extends Notification<
115
- React.ReactNode,
116
- NotificationReactCallProps
117
- > {}
114
+ export abstract class NotificationReact
115
+ extends Notification<React.ReactNode, NotificationReactCallProps>
116
+ implements INotificationReact {}
118
117
 
119
118
  /**
120
119
  * React notification render props
@@ -221,7 +220,10 @@ export abstract class NotifierReact
221
220
 
222
221
  // UI collections
223
222
  const ui = notifications.map((notification) =>
224
- notification.render(props, className + '-item')
223
+ notification.render(
224
+ props,
225
+ className ? className + '-item' : className
226
+ )
225
227
  );
226
228
 
227
229
  // Add to the collection