Skip to content

Commit

Permalink
chore(deps): bump antd from 5.16.5 to 5.17.3 (#888)
Browse files Browse the repository at this point in the history
* 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] <support@github.com>

* test: update snap

* type: fix MenuItemType

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: thinkasany <480968828@qq.com>
  • Loading branch information
dependabot[bot] and thinkasany committed May 20, 2024
1 parent 5692719 commit 67f335b
Show file tree
Hide file tree
Showing 19 changed files with 426 additions and 514 deletions.
2 changes: 1 addition & 1 deletion examples/eth-web3js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@ant-design/web3-assets": "workspace:*",
"@ant-design/web3-common": "workspace:*",
"@ant-design/web3-eth-web3js": "workspace:*",
"antd": "^5.15.4",
"antd": "^5.17.3",
"web3": "^4.7.0",
"umi": "^4.1.5"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/ethers-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@ant-design/web3-assets": "workspace:*",
"@ant-design/web3-common": "workspace:*",
"@ant-design/web3-ethers-v5": "workspace:*",
"antd": "^5.16.5",
"antd": "^5.17.3",
"ethers": "^5.7.2",
"umi": "^4.1.5"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@ant-design/web3-assets": "workspace:*",
"@ant-design/web3-common": "workspace:*",
"@ant-design/web3-ethers": "workspace:*",
"antd": "^5.16.5",
"antd": "^5.17.3",
"ethers": "^6.11.1",
"umi": "^4.1.5"
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@types/react-copy-to-clipboard": "^5.0.7",
"@umijs/fabric": "^4.0.1",
"@vitest/coverage-v8": "^1.6.0",
"antd": "^5.17.0",
"antd": "^5.17.3",
"antd-style": "^3.6.2",
"antd-token-previewer-web3": "^2.0.8",
"babel-plugin-add-import-extension": "^1.6.0",
Expand Down Expand Up @@ -114,7 +114,7 @@
},
"repository": "https://github.com/ant-design/ant-design-web3.git",
"dependencies": {
"@ant-design/cssinjs": "1.20.0",
"@ant-design/cssinjs": "1.19.1",
"cross-env": "^7.0.3"
},
"pnpm": {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@types/react": "^18.2.78",
"@types/react-dom": "^18.2.25",
"@types/lodash-es": "^4.17.12",
"antd": "^5.16.5",
"antd": "^5.17.3",
"father": "^4.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"devDependencies": {
"@types/react": "^18.2.78",
"@types/react-dom": "^18.2.25",
"antd": "^5.16.5",
"antd": "^5.17.3",
"father": "^4.4.0",
"glob": "^10.3.15",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@ant-design/web3-icons": "workspace:*",
"@ctrl/tinycolor": "^4.1.0",
"@inline-svg-unique-id/react": "^1.2.3",
"antd": "^5.17.0",
"antd": "^5.17.3",
"bs58": "^5.0.0",
"classnames": "^2.3.2",
"copy-to-clipboard": "^3.3.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

exports[`Address > display address with default format 1`] = `
<div
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"
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"
>
<div
class="ant-space-item"
>
<span
class="ant-typography css-dev-only-do-not-override-1okl62o"
class="ant-typography css-dev-only-do-not-override-17seli4"
>
<span>
0x 21CD f097 4d53 a6e9 6eF0 5d7B 324a 9803 735f Fd3B
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`ProfileModal > match snapshot 1`] = `
<div />
<div>
<div
class="ant-modal-root css-dev-only-do-not-override-1okl62o"
class="ant-modal-root css-dev-only-do-not-override-17seli4"
>
<div
class="ant-modal-mask ant-fade-appear ant-fade-appear-start ant-fade"
Expand All @@ -16,7 +16,7 @@ exports[`ProfileModal > match snapshot 1`] = `
>
<div
aria-modal="true"
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"
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"
role="dialog"
style="width: 280px;"
>
Expand Down Expand Up @@ -67,13 +67,13 @@ exports[`ProfileModal > match snapshot 1`] = `
style="text-align: center;"
>
<div
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"
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"
>
<div
class="ant-space-item"
>
<span
class="ant-avatar ant-avatar-circle ant-avatar-image css-dev-only-do-not-override-1okl62o"
class="ant-avatar ant-avatar-circle ant-avatar-image css-dev-only-do-not-override-17seli4"
>
<img
src="https://mdn.alipayobjects.com/huamei_mutawc/afts/img/A*9jfLS41kn00AAAAAAAAAAAAADlrGAQ/original"
Expand All @@ -93,13 +93,13 @@ exports[`ProfileModal > match snapshot 1`] = `
class="ant-space-item"
>
<div
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"
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"
>
<div
class="ant-space-item"
>
<span
class="ant-typography css-dev-only-do-not-override-1okl62o"
class="ant-typography css-dev-only-do-not-override-17seli4"
>
<span>
0x21CDf0974d53a6e96eF05d7B324a9803735fFd3B
Expand All @@ -117,15 +117,15 @@ exports[`ProfileModal > match snapshot 1`] = `
class="ant-web3-connect-button-profile-modal-footer hashId"
>
<button
class="ant-btn css-dev-only-do-not-override-1okl62o ant-btn-default"
class="ant-btn css-dev-only-do-not-override-17seli4 ant-btn-default"
type="button"
>
<span>
Copy Address
</span>
</button>
<button
class="ant-btn css-dev-only-do-not-override-1okl62o ant-btn-default"
class="ant-btn css-dev-only-do-not-override-17seli4 ant-btn-default"
type="button"
>
<span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`ConnectButton > should display formatted by custom formatter when pass
<body>
<div>
<button
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"
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"
type="button"
>
<div
Expand All @@ -17,13 +17,13 @@ exports[`ConnectButton > should display formatted by custom formatter when pass
class="ant-web3-connect-button-text"
>
<div
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"
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"
>
<div
class="ant-space-item"
>
<span
class="ant-typography css-dev-only-do-not-override-1okl62o"
class="ant-typography css-dev-only-do-not-override-17seli4"
>
<span>
0x3ea2...7c18
Expand All @@ -38,7 +38,7 @@ exports[`ConnectButton > should display formatted by custom formatter when pass
</div>
<div>
<div
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"
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"
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;"
>
<div
Expand Down
2 changes: 1 addition & 1 deletion packages/web3/src/connect-button/__tests__/menu.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { fireEvent, render } from '@testing-library/react';
import type { MenuItemType } from 'antd/es/menu/hooks/useItems';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';

import { ConnectButton } from '..';
import { readCopyText } from '../../utils/test-utils';
import type { MenuItemType } from '../interface';

const menuItems: MenuItemType[] = [
{
Expand Down
3 changes: 1 addition & 2 deletions packages/web3/src/connect-button/connect-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { CopyOutlined, LoginOutlined, UserOutlined } from '@ant-design/icons';
import type { Chain, Wallet } from '@ant-design/web3-common';
import type { ButtonProps } from 'antd';
import { Avatar, ConfigProvider, Divider, Dropdown, message } from 'antd';
import type { MenuItemType } from 'antd/es/menu/hooks/useItems';
import classNames from 'classnames';

import { Address } from '../address';
Expand All @@ -14,7 +13,7 @@ import { fillWithPrefix, writeCopyText } from '../utils';
import { ChainSelect } from './chain-select';
import type { ChainSelectProps } from './chain-select';
import { ConnectButtonInner } from './connect-button-inner';
import type { ConnectButtonProps, ConnectButtonTooltipProps } from './interface';
import type { ConnectButtonProps, ConnectButtonTooltipProps, MenuItemType } from './interface';
import type { ProfileModalProps } from './profile-modal';
import { ProfileModal } from './profile-modal';
import { useStyle } from './style';
Expand Down
3 changes: 2 additions & 1 deletion packages/web3/src/connect-button/demos/menu.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ConnectButton } from '@ant-design/web3';
import { Space } from 'antd';
import type { MenuItemType } from 'antd/es/menu/hooks/useItems';

import type { MenuItemType } from '../interface';

const App: React.FC = () => {
const menuItems: MenuItemType[] = [
Expand Down
5 changes: 3 additions & 2 deletions packages/web3/src/connect-button/interface.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import type { ConnectorTriggerProps, Locale } from '@ant-design/web3-common';
import type { AvatarProps, ButtonProps, MenuProps, TooltipProps } from 'antd';
import type { MenuItemType } from 'antd/es/menu/hooks/useItems';
import type { AvatarProps, ButtonProps, GetProp, MenuProps, TooltipProps } from 'antd';

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

export type MenuItemType = Extract<GetProp<MenuProps, 'items'>[number], { type?: 'item' }>;

export type ConnectButtonTooltipProps = TooltipProps & {
__hashId__?: string;
copyable?: boolean;
Expand Down

0 comments on commit 67f335b

Please sign in to comment.