Skip to content

Commit 67f335b

Browse files
chore(deps): bump antd from 5.16.5 to 5.17.3 (#888)
* chore(deps): bump antd from 5.16.5 to 5.17.3 Bumps [antd](https://github.com/ant-design/ant-design) from 5.16.5 to 5.17.3. - [Release notes](https://github.com/ant-design/ant-design/releases) - [Changelog](https://github.com/ant-design/ant-design/blob/master/CHANGELOG.en-US.md) - [Commits](ant-design/ant-design@5.16.5...5.17.3) --- updated-dependencies: - dependency-name: antd dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * test: update snap * type: fix MenuItemType --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: thinkasany <[email protected]>
1 parent 5692719 commit 67f335b

File tree

19 files changed

+426
-514
lines changed

19 files changed

+426
-514
lines changed

examples/eth-web3js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@ant-design/web3-assets": "workspace:*",
1616
"@ant-design/web3-common": "workspace:*",
1717
"@ant-design/web3-eth-web3js": "workspace:*",
18-
"antd": "^5.15.4",
18+
"antd": "^5.17.3",
1919
"web3": "^4.7.0",
2020
"umi": "^4.1.5"
2121
},

examples/ethers-v5/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@ant-design/web3-assets": "workspace:*",
1616
"@ant-design/web3-common": "workspace:*",
1717
"@ant-design/web3-ethers-v5": "workspace:*",
18-
"antd": "^5.16.5",
18+
"antd": "^5.17.3",
1919
"ethers": "^5.7.2",
2020
"umi": "^4.1.5"
2121
},

examples/ethers/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@ant-design/web3-assets": "workspace:*",
1616
"@ant-design/web3-common": "workspace:*",
1717
"@ant-design/web3-ethers": "workspace:*",
18-
"antd": "^5.16.5",
18+
"antd": "^5.17.3",
1919
"ethers": "^6.11.1",
2020
"umi": "^4.1.5"
2121
},

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"@types/react-copy-to-clipboard": "^5.0.7",
7474
"@umijs/fabric": "^4.0.1",
7575
"@vitest/coverage-v8": "^1.6.0",
76-
"antd": "^5.17.0",
76+
"antd": "^5.17.3",
7777
"antd-style": "^3.6.2",
7878
"antd-token-previewer-web3": "^2.0.8",
7979
"babel-plugin-add-import-extension": "^1.6.0",
@@ -114,7 +114,7 @@
114114
},
115115
"repository": "https://github.com/ant-design/ant-design-web3.git",
116116
"dependencies": {
117-
"@ant-design/cssinjs": "1.20.0",
117+
"@ant-design/cssinjs": "1.19.1",
118118
"cross-env": "^7.0.3"
119119
},
120120
"pnpm": {

packages/common/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@types/react": "^18.2.78",
4848
"@types/react-dom": "^18.2.25",
4949
"@types/lodash-es": "^4.17.12",
50-
"antd": "^5.16.5",
50+
"antd": "^5.17.3",
5151
"father": "^4.4.0",
5252
"react": "^18.2.0",
5353
"react-dom": "^18.2.0",

packages/icons/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"devDependencies": {
4444
"@types/react": "^18.2.78",
4545
"@types/react-dom": "^18.2.25",
46-
"antd": "^5.16.5",
46+
"antd": "^5.17.3",
4747
"father": "^4.4.0",
4848
"glob": "^10.3.15",
4949
"react": "^18.2.0",

packages/web3/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@ant-design/web3-icons": "workspace:*",
4949
"@ctrl/tinycolor": "^4.1.0",
5050
"@inline-svg-unique-id/react": "^1.2.3",
51-
"antd": "^5.17.0",
51+
"antd": "^5.17.3",
5252
"bs58": "^5.0.0",
5353
"classnames": "^2.3.2",
5454
"copy-to-clipboard": "^3.3.3"

packages/web3/src/address/__tests__/__snapshots__/index.test.tsx.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
exports[`Address > display address with default format 1`] = `
44
<div
5-
class="ant-space css-dev-only-do-not-override-1okl62o ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small ant-web3-address css-dev-only-do-not-override-1okl62o"
5+
class="ant-space css-dev-only-do-not-override-17seli4 ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small ant-web3-address css-dev-only-do-not-override-17seli4"
66
>
77
<div
88
class="ant-space-item"
99
>
1010
<span
11-
class="ant-typography css-dev-only-do-not-override-1okl62o"
11+
class="ant-typography css-dev-only-do-not-override-17seli4"
1212
>
1313
<span>
1414
0x 21CD f097 4d53 a6e9 6eF0 5d7B 324a 9803 735f Fd3B

packages/web3/src/connect-button/__tests__/__snapshots__/profile-modal.test.tsx.snap

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`ProfileModal > match snapshot 1`] = `
55
<div />
66
<div>
77
<div
8-
class="ant-modal-root css-dev-only-do-not-override-1okl62o"
8+
class="ant-modal-root css-dev-only-do-not-override-17seli4"
99
>
1010
<div
1111
class="ant-modal-mask ant-fade-appear ant-fade-appear-start ant-fade"
@@ -16,7 +16,7 @@ exports[`ProfileModal > match snapshot 1`] = `
1616
>
1717
<div
1818
aria-modal="true"
19-
class="ant-modal css-dev-only-do-not-override-1okl62o hashId ant-web3-connect-button-profile-modal ant-zoom-appear ant-zoom-appear-prepare ant-zoom"
19+
class="ant-modal css-dev-only-do-not-override-17seli4 hashId ant-web3-connect-button-profile-modal ant-zoom-appear ant-zoom-appear-prepare ant-zoom"
2020
role="dialog"
2121
style="width: 280px;"
2222
>
@@ -67,13 +67,13 @@ exports[`ProfileModal > match snapshot 1`] = `
6767
style="text-align: center;"
6868
>
6969
<div
70-
class="ant-space css-dev-only-do-not-override-1okl62o ant-space-vertical ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
70+
class="ant-space css-dev-only-do-not-override-17seli4 ant-space-vertical ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
7171
>
7272
<div
7373
class="ant-space-item"
7474
>
7575
<span
76-
class="ant-avatar ant-avatar-circle ant-avatar-image css-dev-only-do-not-override-1okl62o"
76+
class="ant-avatar ant-avatar-circle ant-avatar-image css-dev-only-do-not-override-17seli4"
7777
>
7878
<img
7979
src="https://mdn.alipayobjects.com/huamei_mutawc/afts/img/A*9jfLS41kn00AAAAAAAAAAAAADlrGAQ/original"
@@ -93,13 +93,13 @@ exports[`ProfileModal > match snapshot 1`] = `
9393
class="ant-space-item"
9494
>
9595
<div
96-
class="ant-space css-dev-only-do-not-override-1okl62o ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small ant-web3-address css-dev-only-do-not-override-1okl62o"
96+
class="ant-space css-dev-only-do-not-override-17seli4 ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small ant-web3-address css-dev-only-do-not-override-17seli4"
9797
>
9898
<div
9999
class="ant-space-item"
100100
>
101101
<span
102-
class="ant-typography css-dev-only-do-not-override-1okl62o"
102+
class="ant-typography css-dev-only-do-not-override-17seli4"
103103
>
104104
<span>
105105
0x21CDf0974d53a6e96eF05d7B324a9803735fFd3B
@@ -117,15 +117,15 @@ exports[`ProfileModal > match snapshot 1`] = `
117117
class="ant-web3-connect-button-profile-modal-footer hashId"
118118
>
119119
<button
120-
class="ant-btn css-dev-only-do-not-override-1okl62o ant-btn-default"
120+
class="ant-btn css-dev-only-do-not-override-17seli4 ant-btn-default"
121121
type="button"
122122
>
123123
<span>
124124
Copy Address
125125
</span>
126126
</button>
127127
<button
128-
class="ant-btn css-dev-only-do-not-override-1okl62o ant-btn-default"
128+
class="ant-btn css-dev-only-do-not-override-17seli4 ant-btn-default"
129129
type="button"
130130
>
131131
<span>

packages/web3/src/connect-button/__tests__/__snapshots__/tooltip.test.tsx.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`ConnectButton > should display formatted by custom formatter when pass
44
<body>
55
<div>
66
<button
7-
class="ant-btn css-dev-only-do-not-override-1okl62o ant-btn-default ant-web3-connect-button css-dev-only-do-not-override-1okl62o ant-tooltip-open"
7+
class="ant-btn css-dev-only-do-not-override-17seli4 ant-btn-default ant-web3-connect-button css-dev-only-do-not-override-17seli4 ant-tooltip-open"
88
type="button"
99
>
1010
<div
@@ -17,13 +17,13 @@ exports[`ConnectButton > should display formatted by custom formatter when pass
1717
class="ant-web3-connect-button-text"
1818
>
1919
<div
20-
class="ant-space css-dev-only-do-not-override-1okl62o ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small ant-web3-address css-dev-only-do-not-override-1okl62o"
20+
class="ant-space css-dev-only-do-not-override-17seli4 ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small ant-web3-address css-dev-only-do-not-override-17seli4"
2121
>
2222
<div
2323
class="ant-space-item"
2424
>
2525
<span
26-
class="ant-typography css-dev-only-do-not-override-1okl62o"
26+
class="ant-typography css-dev-only-do-not-override-17seli4"
2727
>
2828
<span>
2929
0x3ea2...7c18
@@ -38,7 +38,7 @@ exports[`ConnectButton > should display formatted by custom formatter when pass
3838
</div>
3939
<div>
4040
<div
41-
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-web3-connect-button-tooltip css-dev-only-do-not-override-1okl62o css-dev-only-do-not-override-1okl62o ant-tooltip-placement-top"
41+
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-web3-connect-button-tooltip css-dev-only-do-not-override-17seli4 css-dev-only-do-not-override-17seli4 ant-tooltip-placement-top"
4242
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;"
4343
>
4444
<div

packages/web3/src/connect-button/__tests__/menu.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { fireEvent, render } from '@testing-library/react';
2-
import type { MenuItemType } from 'antd/es/menu/hooks/useItems';
32
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
43

54
import { ConnectButton } from '..';
65
import { readCopyText } from '../../utils/test-utils';
6+
import type { MenuItemType } from '../interface';
77

88
const menuItems: MenuItemType[] = [
99
{

packages/web3/src/connect-button/connect-button.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { CopyOutlined, LoginOutlined, UserOutlined } from '@ant-design/icons';
33
import type { Chain, Wallet } from '@ant-design/web3-common';
44
import type { ButtonProps } from 'antd';
55
import { Avatar, ConfigProvider, Divider, Dropdown, message } from 'antd';
6-
import type { MenuItemType } from 'antd/es/menu/hooks/useItems';
76
import classNames from 'classnames';
87

98
import { Address } from '../address';
@@ -14,7 +13,7 @@ import { fillWithPrefix, writeCopyText } from '../utils';
1413
import { ChainSelect } from './chain-select';
1514
import type { ChainSelectProps } from './chain-select';
1615
import { ConnectButtonInner } from './connect-button-inner';
17-
import type { ConnectButtonProps, ConnectButtonTooltipProps } from './interface';
16+
import type { ConnectButtonProps, ConnectButtonTooltipProps, MenuItemType } from './interface';
1817
import type { ProfileModalProps } from './profile-modal';
1918
import { ProfileModal } from './profile-modal';
2019
import { useStyle } from './style';

packages/web3/src/connect-button/demos/menu.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ConnectButton } from '@ant-design/web3';
22
import { Space } from 'antd';
3-
import type { MenuItemType } from 'antd/es/menu/hooks/useItems';
3+
4+
import type { MenuItemType } from '../interface';
45

56
const App: React.FC = () => {
67
const menuItems: MenuItemType[] = [

packages/web3/src/connect-button/interface.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import type { ConnectorTriggerProps, Locale } from '@ant-design/web3-common';
2-
import type { AvatarProps, ButtonProps, MenuProps, TooltipProps } from 'antd';
3-
import type { MenuItemType } from 'antd/es/menu/hooks/useItems';
2+
import type { AvatarProps, ButtonProps, GetProp, MenuProps, TooltipProps } from 'antd';
43

54
import type { AddressProps } from '../address';
65
import type { ProfileModalProps } from './profile-modal';
76

7+
export type MenuItemType = Extract<GetProp<MenuProps, 'items'>[number], { type?: 'item' }>;
8+
89
export type ConnectButtonTooltipProps = TooltipProps & {
910
__hashId__?: string;
1011
copyable?: boolean;

0 commit comments

Comments
 (0)