Skip to content

Commit 9be9f6f

Browse files
chore: update deps for fix dev bug in local (#1451)
* chore: update deps for fix dev bug in local * fix: lock file * test: update snapshot * fix: test case
1 parent 3d6d7c6 commit 9be9f6f

File tree

9 files changed

+17361
-13961
lines changed

9 files changed

+17361
-13961
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
exports[`Address > display address with default format 1`] = `
44
<span
5-
class="ant-typography ant-web3-address css-dev-only-do-not-override-161f05s css-dev-only-do-not-override-161f05s"
5+
class="ant-typography ant-web3-address css-dev-only-do-not-override-vrrzze css-dev-only-do-not-override-vrrzze"
66
>
7-
<span>
7+
<span
8+
aria-describedby="test-id"
9+
>
810
0x 21CD f097 4d53 a6e9 6eF0 5d7B 324a 9803 735f Fd3B
911
</span>
1012
</span>

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

Lines changed: 22 additions & 16 deletions
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-161f05s"
8+
class="ant-modal-root css-dev-only-do-not-override-vrrzze"
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-161f05s 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-vrrzze hashId ant-web3-connect-button-profile-modal ant-zoom-appear ant-zoom-appear-prepare ant-zoom"
2020
role="dialog"
2121
>
2222
<div
@@ -32,6 +32,7 @@ exports[`ProfileModal > match snapshot 1`] = `
3232
type="button"
3333
>
3434
<span
35+
aria-label="Close"
3536
class="ant-modal-close-x"
3637
>
3738
<span
@@ -61,13 +62,13 @@ exports[`ProfileModal > match snapshot 1`] = `
6162
style="text-align: center;"
6263
>
6364
<div
64-
class="ant-space css-dev-only-do-not-override-161f05s ant-space-vertical ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
65+
class="ant-space css-dev-only-do-not-override-vrrzze ant-space-vertical ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
6566
>
6667
<div
6768
class="ant-space-item"
6869
>
6970
<span
70-
class="ant-avatar ant-avatar-circle ant-avatar-image css-dev-only-do-not-override-161f05s"
71+
class="ant-avatar ant-avatar-circle ant-avatar-image css-dev-only-do-not-override-vrrzze"
7172
>
7273
<img
7374
src="https://mdn.alipayobjects.com/huamei_mutawc/afts/img/A*9jfLS41kn00AAAAAAAAAAAAADlrGAQ/original"
@@ -87,9 +88,11 @@ exports[`ProfileModal > match snapshot 1`] = `
8788
class="ant-space-item"
8889
>
8990
<span
90-
class="ant-typography ant-typography-secondary ant-web3-address css-dev-only-do-not-override-161f05s css-dev-only-do-not-override-161f05s"
91+
class="ant-typography ant-typography-secondary ant-web3-address css-dev-only-do-not-override-vrrzze css-dev-only-do-not-override-vrrzze"
9192
>
92-
<span>
93+
<span
94+
aria-describedby="test-id"
95+
>
9396
0x21CDf0974d53a6e96eF05d7B324a9803735fFd3B
9497
</span>
9598
</span>
@@ -103,15 +106,15 @@ exports[`ProfileModal > match snapshot 1`] = `
103106
class="ant-web3-connect-button-profile-modal-footer hashId"
104107
>
105108
<button
106-
class="ant-btn css-dev-only-do-not-override-161f05s ant-btn-default ant-btn-color-default ant-btn-variant-outlined"
109+
class="ant-btn css-dev-only-do-not-override-vrrzze ant-btn-default ant-btn-color-default ant-btn-variant-outlined"
107110
type="button"
108111
>
109112
<span>
110113
Copy Address
111114
</span>
112115
</button>
113116
<button
114-
class="ant-btn css-dev-only-do-not-override-161f05s ant-btn-default ant-btn-color-default ant-btn-variant-outlined"
117+
class="ant-btn css-dev-only-do-not-override-vrrzze ant-btn-default ant-btn-color-default ant-btn-variant-outlined"
115118
type="button"
116119
>
117120
<span>
@@ -138,7 +141,7 @@ exports[`ProfileModal > match snapshot without name 1`] = `
138141
<div />
139142
<div>
140143
<div
141-
class="ant-modal-root css-dev-only-do-not-override-161f05s"
144+
class="ant-modal-root css-dev-only-do-not-override-vrrzze"
142145
>
143146
<div
144147
class="ant-modal-mask ant-fade-appear ant-fade-appear-start ant-fade"
@@ -149,7 +152,7 @@ exports[`ProfileModal > match snapshot without name 1`] = `
149152
>
150153
<div
151154
aria-modal="true"
152-
class="ant-modal css-dev-only-do-not-override-161f05s hashId ant-web3-connect-button-profile-modal ant-zoom-appear ant-zoom-appear-prepare ant-zoom"
155+
class="ant-modal css-dev-only-do-not-override-vrrzze hashId ant-web3-connect-button-profile-modal ant-zoom-appear ant-zoom-appear-prepare ant-zoom"
153156
role="dialog"
154157
>
155158
<div
@@ -165,6 +168,7 @@ exports[`ProfileModal > match snapshot without name 1`] = `
165168
type="button"
166169
>
167170
<span
171+
aria-label="Close"
168172
class="ant-modal-close-x"
169173
>
170174
<span
@@ -194,13 +198,13 @@ exports[`ProfileModal > match snapshot without name 1`] = `
194198
style="text-align: center;"
195199
>
196200
<div
197-
class="ant-space css-dev-only-do-not-override-161f05s ant-space-vertical ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
201+
class="ant-space css-dev-only-do-not-override-vrrzze ant-space-vertical ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
198202
>
199203
<div
200204
class="ant-space-item"
201205
>
202206
<span
203-
class="ant-avatar ant-avatar-circle ant-avatar-image css-dev-only-do-not-override-161f05s"
207+
class="ant-avatar ant-avatar-circle ant-avatar-image css-dev-only-do-not-override-vrrzze"
204208
>
205209
<img
206210
src="https://mdn.alipayobjects.com/huamei_mutawc/afts/img/A*9jfLS41kn00AAAAAAAAAAAAADlrGAQ/original"
@@ -211,9 +215,11 @@ exports[`ProfileModal > match snapshot without name 1`] = `
211215
class="ant-space-item"
212216
>
213217
<span
214-
class="ant-typography ant-web3-address css-dev-only-do-not-override-161f05s css-dev-only-do-not-override-161f05s"
218+
class="ant-typography ant-web3-address css-dev-only-do-not-override-vrrzze css-dev-only-do-not-override-vrrzze"
215219
>
216-
<span>
220+
<span
221+
aria-describedby="test-id"
222+
>
217223
0x21CDf0974d53a6e96eF05d7B324a9803735fFd3B
218224
</span>
219225
</span>
@@ -227,15 +233,15 @@ exports[`ProfileModal > match snapshot without name 1`] = `
227233
class="ant-web3-connect-button-profile-modal-footer hashId"
228234
>
229235
<button
230-
class="ant-btn css-dev-only-do-not-override-161f05s ant-btn-default ant-btn-color-default ant-btn-variant-outlined"
236+
class="ant-btn css-dev-only-do-not-override-vrrzze ant-btn-default ant-btn-color-default ant-btn-variant-outlined"
231237
type="button"
232238
>
233239
<span>
234240
Copy Address
235241
</span>
236242
</button>
237243
<button
238-
class="ant-btn css-dev-only-do-not-override-161f05s ant-btn-default ant-btn-color-default ant-btn-variant-outlined"
244+
class="ant-btn css-dev-only-do-not-override-vrrzze ant-btn-default ant-btn-color-default ant-btn-variant-outlined"
239245
type="button"
240246
>
241247
<span>

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ 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-161f05s ant-btn-default ant-btn-color-default ant-btn-variant-outlined ant-web3-connect-button css-dev-only-do-not-override-161f05s ant-tooltip-open"
7+
aria-describedby="test-id"
8+
class="ant-btn css-dev-only-do-not-override-vrrzze ant-btn-default ant-btn-color-default ant-btn-variant-outlined ant-web3-connect-button css-dev-only-do-not-override-vrrzze ant-tooltip-open"
89
type="button"
910
>
1011
<div
@@ -17,9 +18,11 @@ exports[`ConnectButton > should display formatted by custom formatter when pass
1718
class="ant-web3-connect-button-text"
1819
>
1920
<span
20-
class="ant-typography ant-web3-address css-dev-only-do-not-override-161f05s css-dev-only-do-not-override-161f05s"
21+
class="ant-typography ant-web3-address css-dev-only-do-not-override-vrrzze css-dev-only-do-not-override-vrrzze"
2122
>
22-
<span>
23+
<span
24+
aria-describedby="test-id"
25+
>
2326
0x3ea2...7c18
2427
</span>
2528
</span>
@@ -30,8 +33,8 @@ exports[`ConnectButton > should display formatted by custom formatter when pass
3033
</div>
3134
<div>
3235
<div
33-
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-161f05s css-dev-only-do-not-override-161f05s ant-tooltip-placement-top"
34-
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;"
36+
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-vrrzze css-dev-only-do-not-override-vrrzze ant-tooltip-placement-top"
37+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; right: auto; bottom: auto; box-sizing: border-box;"
3538
>
3639
<div
3740
class="ant-tooltip-arrow"
@@ -42,6 +45,7 @@ exports[`ConnectButton > should display formatted by custom formatter when pass
4245
>
4346
<div
4447
class="ant-tooltip-inner"
48+
id="test-id"
4549
role="tooltip"
4650
>
4751
<div

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('ConnectButton style', () => {
1818
);
1919
const { baseElement } = render(<App />);
2020
const buttonStyle = window.getComputedStyle(baseElement.querySelector('.ant-btn')!);
21-
expect(buttonStyle.backgroundColor).toBe('rgb(100, 46, 217)');
21+
expect(buttonStyle.backgroundColor).toBe('rgb(132, 66, 255)');
2222
expect(buttonStyle.color).toBe('rgb(255, 255, 255)');
2323
});
2424
});

0 commit comments

Comments
 (0)