Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration
Advanced tools
Migration layer for quickly moving from react-beautiful-dnd to 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 14,125 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.