Skip to content

Commit eec8953

Browse files
authored
feat: use @hello-pangea/dnd instead of react-beautiful-dnd (#2380)
1 parent c4d2769 commit eec8953

File tree

17 files changed

+95
-190
lines changed

17 files changed

+95
-190
lines changed

package-lock.json

Lines changed: 77 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@
130130
"@floating-ui/react": "^0.27.12",
131131
"@gravity-ui/i18n": "^1.8.0",
132132
"@gravity-ui/icons": "^2.13.0",
133+
"@hello-pangea/dnd": "^18.0.1",
133134
"@tanstack/react-virtual": "^3.13.9",
134135
"blueimp-md5": "^2.19.0",
135136
"lodash": "^4.17.21",
136137
"rc-slider": "^11.1.8",
137-
"react-beautiful-dnd": "^13.1.1",
138138
"react-transition-group": "^4.4.5",
139139
"react-virtualized-auto-sizer": "^1.0.26",
140140
"react-window": "^1.8.11",
@@ -171,7 +171,6 @@
171171
"@types/jest": "^29.5.14",
172172
"@types/lodash": "^4.17.17",
173173
"@types/react": "^18.3.23",
174-
"@types/react-beautiful-dnd": "^13.1.8",
175174
"@types/react-dom": "^18.3.7",
176175
"@types/react-transition-group": "^4.4.12",
177176
"@types/react-virtualized-auto-sizer": "^1.0.8",

src/components/List/List.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $block: '.#{variables.$ns}list';
5252
}
5353
}
5454

55-
// https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/preset-styles.md#phase-dragging-droppable-element
55+
// https://github.com/hello-pangea/dnd/blob/master/docs/guides/preset-styles.md#phase-dragging-droppable-element
5656
&_sortable[data-rbd-drag-handle-context-id]:active {
5757
cursor: grabbing;
5858
}

src/components/List/List.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
import * as React from 'react';
44

5-
import isEqual from 'lodash/isEqual';
6-
import isObject from 'lodash/isObject';
75
import type {
86
DraggableProvided,
97
DraggableRubric,
108
DraggableStateSnapshot,
119
DropResult,
1210
DroppableProvided,
13-
} from 'react-beautiful-dnd';
14-
import {DragDropContext, Draggable, Droppable} from 'react-beautiful-dnd';
11+
} from '@hello-pangea/dnd';
12+
import {DragDropContext, Draggable, Droppable} from '@hello-pangea/dnd';
13+
import isEqual from 'lodash/isEqual';
14+
import isObject from 'lodash/isObject';
1515
import type {Size} from 'react-virtualized-auto-sizer';
1616
import AutoSizer from 'react-virtualized-auto-sizer';
1717
import type {VariableSizeListProps} from 'react-window';

0 commit comments

Comments
 (0)