[Snyk] Upgrade react-beautiful-dnd from 13.0.0 to 13.1.1 #9575
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade react-beautiful-dnd from 13.0.0 to 13.1.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: react-beautiful-dnd
Features
You can now import default sensors as
useMouseSensor
,useKeyboardSensor
, oruseTouchSensor
for individual reuse viasensors
prop– Thanks @ vladmoroz
React 17 is now supported 🎉
– Thanks @ 100terres
Fixes
Removed redundant event listener
– Thanks @ hodovani
Misc
Various improvements to the docs and examples
– Thanks @ theBstar @ Ardeshir81 @ hednowley @ RavenAlly @ alexbudure @ vkentta @ johnrees @ agilatakishiyev @ petyosi @ inokawa @ ToriK17 @ paulshen @ ValentinH @ featherbear @ GarrisonJ
Documentation is now available in Greek 🇬🇷
– Thanks @ hdks55l
Story source code is now visible in Storybook
– Thanks @ 2stash
Various internal changes
– Thanks @ ValentinH
Highlights
Babel
We have moved from
@ babel/runtime-corejs2
to@ babel/runtime
#1629.rbd
aims to never polyfill anything - it should only use ponyfills (This should be the position of most libraries!) Sadly, choosing to usecorejs2
meant thatrbd
did do polyfilling. We have now fixed this. Moving to@ babel/runtime
also saved a fewkbs
which is nice too.Thanks @ TrySound for making this happen!
Accessibility
It was discovered by @ ccveer that our screen reader on browser focus messages where not being read out for particular
HTMLElement
types #1695 😦. I went on an accessibility deep dive to figure out what we should do, rather than just changing things until something worked. As a result of this research and experimentation with various screen readers (VoiceOver, JAWS and NVDA), I have made some small modifications to provide more principled and robust on focus announcements.Here are some screenshots of things working correctly:
If you are providing custom screen reader messages, be sure to check out our updated screen reader guide.
Changes
+ DragDropContext | dragHandleUsageInstructions
// Drag handle
- DragHandleProps | aria-labelledby
+ DragHandleProps | aria-describedby
+ DragHandleProps | role
Usage instructions
Moving from
liftInstruction
todragHandleUsageInstructions
to better reflect that we are now using to provide all of the assisted technology usage instructions, and not just the lift instructions. Previously our screen reader preset gave the instruction to start a drag on the drag handle, and other instructions afteronDragStart
in an announcement. We now give all of the usage instructions on the elements description. This seems to line up best with the intended use of an elements accessible description property. We are now usingaria-describedby
to set a description on a drag handle with interaction usage instructions as recommended by the W3C.aria-describedby
points to a hidden element that contains the text you provide todragHandleUsageInstructions
No longer overriding 'name'
A label one way to control the name of an element. The name is usually the content of the element and is often used to identify an element. We don't want to be touching the name so we are no longer using
aria-labelledby
Adding a
role
We now add a
role
to a drag handle. A drag handle is an interactive element as it has atabindex
. We now also add arole
to convert the drag handle into a widget. Adding arole
is needed for NVDA (a screen reader) to read out an interactive elements accessibility properties (name, role, value) 😅.Once axe-core is updated in Google lighthouse we will also add a
aria-roledescription
to give a more descriptive role. We didn't want to include this change until lighthouse was okay with it to prevent consumers from getting punished for (incorrect) accessibility violations. You are welcome to add your ownaria-roledescription
today if you want if you don't mind the lighthouse violation. You can track this change here: #1742Fixes
Sensor API
will now correctly release forcefully abandoned locks #1699. Thanks @ nerdkid93 for finding this oneOther
Commit messages
Package name: react-beautiful-dnd
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs