- 将所有图片路径从绝对路径改为使用 process.env.PUBLIC_URL - 修复 HomePage.tsx 中所有图片引用 - 修复 CoursePage.tsx 中所有图片引用 - 确保图片在 GitHub Pages 上正确加载 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
5.7 KiB
5.7 KiB
@dnd-kit/accessibility
3.1.1
Patch Changes
- #1534
93602dfThanks @duvallj! - Workaround<LiveRegion>layout bug by adding explicittopandleftattributes. Under sufficiently complex CSS conditions, the element would overflow containers that it's not supposed to. See this post for a complete explanation.
3.1.0
Minor Changes
- #1229
aabb8bdThanks @ayy-bc! - IntroduceariaLiveTypeprop on<LiveRegion>to allow consumers to configure thearia-liveattribute to other values for announcements, such asaria-live="polite".
3.0.1
Patch Changes
- #776
3978c43Thanks @clauderic! - The ARIA live region element used for screen reader announcements is now positioned usingposition: fixedinstead ofposition: absolute. As of@dnd-kit/core^6.0.0, the live region element is no longer portaled by default into thedocument.body. This change was introduced in order to fix issues with portaled live regions. However, this change can introduce visual regressions when using absolutely positioned elements, since the live region element is constrained to the stacking and position context of its closest positioned ancestor. Using fixed position ensures the element does not introduce visual regressions.
3.0.0
Major Changes
-
a9d92cf#174 Thanks @clauderic! - Distributed assets now only target modern browsers. Browserlist config:defaults last 2 version not IE 11 not deadIf you need to support older browsers, include the appropriate polyfills in your project's build process.
Patch Changes
-
b406cb9#187 Thanks @clauderic! - Introduced theuseDndMonitorhook. TheuseDndMonitorhook can be used within components wrapped in aDndContextprovider to monitor the different drag and drop events that happen for thatDndContext.Example usage:
import {DndContext, useDndMonitor} from '@dnd-kit/core'; function App() { return ( <DndContext> <Component /> </DndContext> ); } function Component() { useDndMonitor({ onDragStart(event) {}, onDragMove(event) {}, onDragOver(event) {}, onDragEnd(event) {}, onDragCancel(event) {}, }); }
2.0.0
Major Changes
-
2833337#186 Thanks @clauderic! - SimplifyuseAnnouncementhook to only return a singleannouncementrather thanentries. Similarly, theLiveRegioncomponent now only accepts a singleannouncementrather than `entries.- The current strategy used in the useAnnouncement hook is needlessly complex. It's not actually necessary to render multiple announcements at once within the LiveRegion component. It's sufficient to render a single announcement at a time. It's also un-necessary to clean up the announcements after they have been announced, especially now that the role="status" attribute has been added to LiveRegion, keeping the last announcement rendered means users can refer to the last status.
Patch Changes
c24bdb3#184 Thanks @clauderic! - Tweaked LiveRegion component:- Entries are now rendered without wrapper
spanelements. Having wrapperspanelements causes VoiceOver on macOS to try to move the VoiceOver cursor to the live region, which interferes with scrolling. This issue is not exhibited when rendering announcement entries as plain text without wrapper spans. - Added the
role="status"attribute to the LiveRegion wrapper element. - Added the
white-space: no-wrap;property to ensure that text does not wrap.
- Entries are now rendered without wrapper
1.0.2
Patch Changes
423610c#56 Thanks @clauderic! - Add MIT license to package.json and distributed files
1.0.1
Patch Changes
310bbd6#37 Thanks @nickpresta! - Fix typo in package.json repository URL
1.0.0
Major Changes
2912350Thanks @clauderic! - Initial public release.
0.1.0
Minor Changes
7bd4568#30 - Initial beta release, authored by @clauderic.