Skip to content

Commit 1f2cc18

Browse files
authored
Merge branch 'main' into afc163-patch-2
2 parents 4f1720a + 0b5ba19 commit 1f2cc18

File tree

12 files changed

+20
-25
lines changed

12 files changed

+20
-25
lines changed

components/attachments/FileList/AudioIcon.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ export default function AudioIcon() {
88
viewBox="0 0 16 16"
99
version="1.1"
1010
xmlns="http://www.w3.org/2000/svg"
11-
xmlnsXlink="http://www.w3.org/1999/xlink"
11+
//xmlnsXlink="http://www.w3.org/1999/xlink"
1212
>
1313
<title>audio</title>
14-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
14+
<g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
1515
<path
1616
d="M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z"
1717
fill="currentColor"

components/attachments/FileList/VideoIcon.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ export default function VideoIcon() {
88
viewBox="0 0 16 16"
99
version="1.1"
1010
xmlns="http://www.w3.org/2000/svg"
11-
xmlnsXlink="http://www.w3.org/1999/xlink"
11+
// xmlnsXlink="http://www.w3.org/1999/xlink"
1212
>
1313
<title>video</title>
14-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
14+
<g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
1515
<path
1616
d="M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z"
1717
fill="currentColor"

components/attachments/__tests__/__snapshots__/demo-extend.test.ts.snap

+1-7
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,6 @@ exports[`renders components/attachments/demo/files.tsx extend context correctly
504504
viewBox="0 0 16 16"
505505
width="1em"
506506
xmlns="http://www.w3.org/2000/svg"
507-
xmlns:xlink="http://www.w3.org/1999/xlink"
508507
>
509508
<title>
510509
video
@@ -563,7 +562,6 @@ exports[`renders components/attachments/demo/files.tsx extend context correctly
563562
viewBox="0 0 16 16"
564563
width="1em"
565564
xmlns="http://www.w3.org/2000/svg"
566-
xmlns:xlink="http://www.w3.org/1999/xlink"
567565
>
568566
<title>
569567
audio
@@ -731,11 +729,7 @@ exports[`renders components/attachments/demo/files.tsx extend context correctly
731729
</div>
732730
`;
733731

734-
exports[`renders components/attachments/demo/files.tsx extend context correctly 2`] = `
735-
[
736-
"Invalid DOM property \`%s\`. Did you mean \`%s\`?",
737-
]
738-
`;
732+
exports[`renders components/attachments/demo/files.tsx extend context correctly 2`] = `[]`;
739733

740734
exports[`renders components/attachments/demo/overflow.tsx extend context correctly 1`] = `
741735
<div

components/attachments/__tests__/__snapshots__/demo.test.tsx.snap

-2
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ Array [
433433
viewBox="0 0 16 16"
434434
width="1em"
435435
xmlns="http://www.w3.org/2000/svg"
436-
xmlns:xlink="http://www.w3.org/1999/xlink"
437436
>
438437
<title>
439438
video
@@ -492,7 +491,6 @@ Array [
492491
viewBox="0 0 16 16"
493492
width="1em"
494493
xmlns="http://www.w3.org/2000/svg"
495-
xmlns:xlink="http://www.w3.org/1999/xlink"
496494
>
497495
<title>
498496
audio

components/sender/StopLoading.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const StopLoadingIcon = memo((props: { className?: string }) => {
88
color="currentColor"
99
viewBox="0 0 1000 1000"
1010
xmlns="http://www.w3.org/2000/svg"
11-
xmlnsXlink="http://www.w3.org/1999/xlink"
11+
//xmlnsXlink="http://www.w3.org/1999/xlink"
1212
className={className}
1313
>
1414
<title>Stop Loading</title>

components/sender/__tests__/__snapshots__/demo-extend.test.ts.snap

-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ exports[`renders components/sender/demo/basic.tsx extend context correctly 1`] =
231231
color="currentColor"
232232
viewBox="0 0 1000 1000"
233233
xmlns="http://www.w3.org/2000/svg"
234-
xmlns:xlink="http://www.w3.org/1999/xlink"
235234
>
236235
<title>
237236
Stop Loading

components/sender/__tests__/__snapshots__/demo.test.ts.snap

-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ exports[`renders components/sender/demo/basic.tsx correctly 1`] = `
226226
color="currentColor"
227227
viewBox="0 0 1000 1000"
228228
xmlns="http://www.w3.org/2000/svg"
229-
xmlns:xlink="http://www.w3.org/1999/xlink"
230229
>
231230
<title>
232231
Stop Loading

components/sender/__tests__/__snapshots__/index.test.tsx.snap

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ exports[`Sender Component loading state 1`] = `
2727
color="currentColor"
2828
viewBox="0 0 1000 1000"
2929
xmlns="http://www.w3.org/2000/svg"
30-
xmlns:xlink="http://www.w3.org/1999/xlink"
3130
>
3231
<title>
3332
Stop Loading

components/sender/components/SpeechButton/RecordingIcon.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function RecordingIcon({ className }: RecordingIconProps) {
1818
color="currentColor"
1919
viewBox={`0 0 ${SIZE} ${SIZE}`}
2020
xmlns="http://www.w3.org/2000/svg"
21-
xmlnsXlink="http://www.w3.org/1999/xlink"
21+
// xmlnsXlink="http://www.w3.org/1999/xlink"
2222
className={className}
2323
>
2424
<title>Speech Recording</title>

docs/react/contributing.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ title: 贡献指南
2121

2222
## Bugs
2323

24-
我们使用 [GitHub Issues](https://github.com/ant-design/ant-design/issues) 来做 bug 追踪。 如果你想要你发现的 bug 被快速解决,最好的办法就是通过我们提供的 [issue 小助手](http://new-issue.ant.design) 来提 issue,并且能使用这个 [模板](https://u.ant.design/codesandbox-repro) 来提供重现。
24+
我们使用 [GitHub Issues](https://github.com/ant-design/ant-design/issues) 来做 bug 追踪。 如果你想要你发现的 bug 被快速解决,最好的办法就是通过我们提供的 [issue 小助手](http://new-issue.ant.design) 来提 issue,并且能使用这个 [模板](https://codesandbox.io/p/sandbox/ant-design-x-box-vmqvt8) 来提供重现。
2525

2626
在你报告一个 bug 之前,请先确保已经搜索过已有的 issue 和阅读了我们的 [常见问题](/docs/react/faq)
2727

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"@ctrl/tinycolor": "^4.1.0",
105105
"@emotion/react": "^11.13.5",
106106
"@emotion/server": "^11.11.0",
107-
"@happy-dom/jest-environment": "^17.0.0",
107+
"@happy-dom/jest-environment": "^17.4.3",
108108
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
109109
"@madccc/duplicate-package-checker-webpack-plugin": "^1.0.0",
110110
"@microflash/rehype-figure": "^2.1.1",
@@ -158,7 +158,7 @@
158158
"@umijs/fabric": "^4.0.1",
159159
"adm-zip": "^0.5.16",
160160
"ali-oss": "^6.21.0",
161-
"antd": "^5.20.6",
161+
"antd": "^5.22.7",
162162
"antd-style": "^3.6.3",
163163
"antd-token-previewer": "^2.0.8",
164164
"axios": "^1.7.7",
@@ -183,7 +183,7 @@
183183
"fs-extra": "^11.2.0",
184184
"gh-pages": "^6.1.1",
185185
"glob": "^11.0.0",
186-
"happy-dom": "^17.0.0",
186+
"happy-dom": "^17.4.3",
187187
"html2sketch": "^1.0.2",
188188
"http-server": "^14.1.1",
189189
"husky": "^9.1.6",
@@ -283,4 +283,4 @@
283283
"limit": "350 KiB"
284284
}
285285
]
286-
}
286+
}

tests/utils.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ export const sleep = async (timeout = 0) => {
2929
});
3030
};
3131

32-
const customRender = (ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>): RenderResult =>
33-
render(ui, { wrapper: StrictMode, ...options });
32+
const customRender = (ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>): RenderResult => {
33+
try {
34+
return render(ui, { wrapper: StrictMode, ...options });
35+
} catch (error) {
36+
console.error(error);
37+
throw error;
38+
}
39+
};
3440

3541
export function renderHook<T>(func: () => T): { result: React.RefObject<T | null> } {
3642
const result = createRef<T>();

0 commit comments

Comments
 (0)