From 1abe5bebe63e832a5ea57fd26fb01c26f2361267 Mon Sep 17 00:00:00 2001 From: Chris Beer <chris@cbeer.info> Date: Thu, 10 Nov 2022 16:41:50 -0800 Subject: [PATCH] Replace react-beautiful-dnd with hello-pangea/dnd, a maintained fork --- __tests__/src/components/CanvasLayers.test.js | 2 +- package.json | 2 +- src/components/CanvasLayers.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/src/components/CanvasLayers.test.js b/__tests__/src/components/CanvasLayers.test.js index e831f31a9..b5eed71c8 100644 --- a/__tests__/src/components/CanvasLayers.test.js +++ b/__tests__/src/components/CanvasLayers.test.js @@ -3,7 +3,7 @@ import { shallow } from 'enzyme'; import Input from '@material-ui/core/Input'; import Slider from '@material-ui/core/Slider'; import Typography from '@material-ui/core/Typography'; -import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd'; +import { DragDropContext, Droppable, Draggable } from '@hello-pangea/dnd'; import { CanvasLayers } from '../../../src/components/CanvasLayers'; import IIIFThumbnail from '../../../src/containers/IIIFThumbnail'; diff --git a/package.json b/package.json index 40cae24d9..776965082 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ ], "repository": "https://github.com/ProjectMirador/mirador", "dependencies": { + "@hello-pangea/dnd": "^16.0.1", "@material-ui/core": "^4.12.3", "@material-ui/icons": "^4.9.1", "@material-ui/lab": "^4.0.0-alpha.53", @@ -54,7 +55,6 @@ "prop-types": "^15.6.2", "re-reselect": "^4.0.0", "react-aria-live": "^2.0.5", - "react-beautiful-dnd": "^13.0.0", "react-copy-to-clipboard": "^5.0.1", "react-dnd": "^10.0.2", "react-dnd-html5-backend": "^10.0.2", diff --git a/src/components/CanvasLayers.js b/src/components/CanvasLayers.js index 305872514..7847eefbf 100644 --- a/src/components/CanvasLayers.js +++ b/src/components/CanvasLayers.js @@ -14,7 +14,7 @@ import VisibilityIcon from '@material-ui/icons/VisibilitySharp'; import VisibilityOffIcon from '@material-ui/icons/VisibilityOffSharp'; import OpacityIcon from '@material-ui/icons/OpacitySharp'; import Typography from '@material-ui/core/Typography'; -import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd'; +import { DragDropContext, Droppable, Draggable } from '@hello-pangea/dnd'; import MiradorMenuButton from '../containers/MiradorMenuButton'; import IIIFThumbnail from '../containers/IIIFThumbnail'; -- GitLab