@refinedev/antd 5.36.7 → 5.36.8

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # @refinedev/antd
2
2
 
3
+ ## 5.36.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#4945](https://github.com/refinedev/refine/pull/4945) [`b838412f0d0`](https://github.com/refinedev/refine/commit/b838412f0d0b790ba95f3c07a899a021d3cd2c84) Thanks [@MahirMahdi](https://github.com/MahirMahdi)! - fix: antd notificationProvider issue
8
+
9
+ Antd notification component could not access theme context, now it's fixed.
10
+
11
+ This release provides an alternative to exported `notificationProvider` value from type `NotificationProvider` to `() => NotificationProvider`. If you previously had customizations applied to the `notificationProvider` object, you may need to update your code like the following:
12
+
13
+ ```diff
14
+ - import { notificationProvider } from "@refinedev/antd";
15
+ + import { useNotificationProvider } from "@refinedev/antd";
16
+ + import { App as AntdApp } from "antd";
17
+
18
+ - const myNotificationProvider = {
19
+ - ...notificationProvider,
20
+ - open: (...args) => {
21
+ - // do some operation here
22
+ - notificationProvider.open(...args);
23
+ - },
24
+ - }
25
+ + const myNotificationProvider = () => {
26
+ + const notificationProvider = useNotificationProvider();
27
+ + return {
28
+ + ...notificationProvider,
29
+ + open: (...args) => {
30
+ + // do some operation here
31
+ + notificationProvider.open(...args);
32
+ + },
33
+ + }
34
+ + }
35
+ }
36
+
37
+ const App = () => {
38
+ return (
39
+ + <AntdApp>
40
+ <Refine
41
+ /* ... */
42
+ + notificationProvider={myNotificationProvider}
43
+ >
44
+ /* ... */
45
+ </Refine>
46
+ + </AntdApp>
47
+ );
48
+ }
49
+ ```
50
+
3
51
  ## 5.36.7
4
52
 
5
53
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinedev/antd",
3
- "version": "5.36.7",
3
+ "version": "5.36.8",
4
4
  "description": "refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.",
5
5
  "private": false,
6
6
  "sideEffects": [
@@ -26,7 +26,7 @@
26
26
  "react-dom": "^17.0.0 || ^18.0.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@refinedev/cli": "^2.16.5",
29
+ "@refinedev/cli": "^2.16.6",
30
30
  "@refinedev/ui-tests": "^1.13.0",
31
31
  "@refinedev/core": "^4.42.4",
32
32
  "@esbuild-plugins/node-resolve": "^0.1.4",