@refinedev/antd 5.17.0 → 5.18.0

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 +69 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,74 @@
1
1
  # @pankod/refine-antd
2
2
 
3
+ ## 5.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#4303](https://github.com/refinedev/refine/pull/4303) [`0c569f42b4e`](https://github.com/refinedev/refine/commit/0c569f42b4e7caec75928fd8a1ebeb337c95ff81) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - feat: added default button props into the renderer functions `headerButtons` and `footerButtons` in CRUD components.
8
+ Now, customization of the header and footer buttons can be achieved without losing the default functionality.
9
+
10
+ ```tsx
11
+ import {
12
+ DeleteButton,
13
+ EditButton,
14
+ ListButton,
15
+ RefreshButton,
16
+ Show,
17
+ } from "@refinedev/antd";
18
+
19
+ const PostShow = () => {
20
+ return (
21
+ <Show
22
+ headerButtons={({
23
+ deleteButtonProps,
24
+ editButtonProps,
25
+ listButtonProps,
26
+ refreshButtonProps,
27
+ }) => {
28
+ return (
29
+ <>
30
+ {/* custom components */}
31
+ {listButtonProps && (
32
+ <ListButton
33
+ {...listButtonProps}
34
+ meta={{ foo: "bar" }}
35
+ />
36
+ )}
37
+ {editButtonProps && (
38
+ <EditButton
39
+ {...editButtonProps}
40
+ meta={{ foo: "bar" }}
41
+ />
42
+ )}
43
+ {deleteButtonProps && (
44
+ <DeleteButton
45
+ {...deleteButtonProps}
46
+ meta={{ foo: "bar" }}
47
+ />
48
+ )}
49
+ <RefreshButton
50
+ {...refreshButtonProps}
51
+ meta={{ foo: "bar" }}
52
+ />
53
+ </>
54
+ );
55
+ }}
56
+ >
57
+ {/* ... */}
58
+ </Show>
59
+ );
60
+ };
61
+ ```
62
+
63
+ - [#4306](https://github.com/refinedev/refine/pull/4306) [`e6eb4dea627`](https://github.com/refinedev/refine/commit/e6eb4dea6279983d04a9f654ac2cd74915fba075) Thanks [@yildirayunlu](https://github.com/yildirayunlu)! - feat: `syncWithLocation.syncId` default to `true` for `useDrawerForm` and `useModalForm`.
64
+
65
+ ### Patch Changes
66
+
67
+ - [#4312](https://github.com/refinedev/refine/pull/4312) [`9a5f79186c1`](https://github.com/refinedev/refine/commit/9a5f79186c107d52e12b8ff87558a3c3dd7807b8) Thanks [@yildirayunlu](https://github.com/yildirayunlu)! - feat: added `className` for easier selection of all buttons and titles of CRUD components
68
+
69
+ - Updated dependencies [[`0c569f42b4e`](https://github.com/refinedev/refine/commit/0c569f42b4e7caec75928fd8a1ebeb337c95ff81), [`9a5f79186c1`](https://github.com/refinedev/refine/commit/9a5f79186c107d52e12b8ff87558a3c3dd7807b8)]:
70
+ - @refinedev/ui-types@1.16.0
71
+
3
72
  ## 5.17.0
4
73
 
5
74
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinedev/antd",
3
- "version": "5.17.0",
3
+ "version": "5.18.0",
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
  "main": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@refinedev/cli": "^2.5.3",
27
- "@refinedev/ui-tests": "^1.4.0",
27
+ "@refinedev/ui-tests": "^1.5.0",
28
28
  "@refinedev/core": "^4.14.3",
29
29
  "@esbuild-plugins/node-resolve": "^0.1.4",
30
30
  "@testing-library/jest-dom": "^5.16.4",
@@ -49,7 +49,7 @@
49
49
  "dependencies": {
50
50
  "@ant-design/icons": "^5.0.1",
51
51
  "@ant-design/pro-layout": "7.8.3",
52
- "@refinedev/ui-types": "^1.15.0",
52
+ "@refinedev/ui-types": "^1.16.0",
53
53
  "@tanstack/react-query": "^4.10.1",
54
54
  "antd": "^5.0.5",
55
55
  "dayjs": "^1.10.7",