Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration
Advanced tools
Migration layer for quickly moving from react-beautiful-dnd to @atlaskit/pragmatic-drag-and-drop.
This package allows rapid migration from react-beautiful-dnd
to Pragmatic drag and drop (@atlaskit/pragmatic-drag-and-drop
).
This package exposes the same exports and types of react-beautiful-dnd@13
and uses @atlaskit/pragmatic-drag-and-drop
to power those exports.
At a high level, all you need to do is swap your imports of react-beautiful-dnd
in your code to @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration
and your drag and drop experience(s) will now be powered by Pragmatic drag and drop.
This package also includes a codemod to help automatically shift over react-beautiful-dnd@12
and react-beautiful-dnd@13
to @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration
.
react-beautiful-dnd
. If this is a new feature, adopt @atlaskit/pragmatic-drag-and-drop
directly.react-beautiful-dnd
.Install @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration
Run the codemod client with the command npx @atlaskit/codemod-cli --parser {tsx|babylon} --extensions ts,tsx,js [relativePath]
.
Select the codemod based on which version of react-beautiful-dnd
you are using:
For major version 12, select adoption-from-rbd-12
For major version 13, select adoption-from-rbd-13
Acknowledge and remove the comments left by the codemod.
There are some known limitations in the migration layer.
The user experience (UX) provided by this migration layer differs slightly to that of react-beautiful-dnd
.
If either of these changes is a blocker for you, please reach out to discuss options.
Combining items is not supported by this migration layer. The main use case is for trees, which other packages are better suited for.
If you are looking for a tree package, please reach out to us and we can help you with next steps.
A number of props are no longer supported. They will be accepted but won't have any effect.
<DragDropContext>
# Custom sensors are not supported.
# The migration layer supports pointer and keyboard dragging.
- sensors?: Sensors[];
# Disabling default sensors is not supported.
- enableDefaultSensors?: boolean;
<Droppable>
# Combining items is not supported.
- isCombineEnabled?: boolean;
# The browser now determines all hit targets.
- ignoreContainerClipping?: boolean;
<Draggable>
# The browser now determines when drags should occur.
- shouldRespectForcePress?: boolean;
If you run into any issues while migrating, please reach out to us for assistance.
FAQs
An optional Pragmatic drag and drop package that enables rapid migration from react-beautiful-dnd to Pragmatic drag and drop
The npm package @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration receives a total of 11,853 weekly downloads. As such, @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration popularity was classified as popular.
We found that @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.