{"name":"@hello-pangea/dnd","version":"18.0.1","private":false,"description":"Beautiful and accessible drag and drop for lists with React","author":{"name":"Alex Reardon","email":"areardon@atlassian.com"},"maintainers":[{"name":"xhale","email":"reececarolan@gmail.com"},{"name":"100terres","email":"gab@100terres.com"}],"keywords":["drag and drop","dnd","sortable","reorder","reorderable","react","react.js","natural","beautiful","accessible"],"repository":{"type":"git","url":"git+https://github.com/hello-pangea/dnd.git"},"bugs":{"url":"https://github.com/hello-pangea/dnd/issues"},"main":"dist/dnd.cjs.js","module":"dist/dnd.esm.js","types":"dist/dnd.d.ts","sideEffects":false,"publishConfig":{"access":"public"},"config":{"prettier_target":"*.{js,jsx,ts,tsx,md,json} src/**/*.{js,jsx,ts,tsx,md,json} test/**/*.{js,jsx,ts,tsx,md,json} docs/**/*.{js,jsx,ts,tsx,md,json} stories/**/*.{js,jsx,ts,tsx,md,json} cypress/**/*.{js,jsx,ts,tsx,md,json} csp-server/**/*.{js,jsx,ts,tsx,md,json}"},"scripts":{"commit":"cz","chromatic":"chromatic --project-token=f92123f238de","prepare":"husky","release":"release-it","release:test":"release-it --dry-run","test:accessibility":"lighthouse http://localhost:9002/iframe.html?id=examples-single-vertical-list--basic --no-enable-error-reporting --config-path=lighthouse.config.js --chrome-flags='--headless' --output=json --output=html --output-path=./test-reports/lighthouse/a11y.json && node a11y-audit-parse.js","test":"jest --config ./jest.config.ts","test:react-18":"cross-env REACT_MAJOR_VERSION=18 pnpm test","test:react-19":"cross-env REACT_MAJOR_VERSION=19 pnpm test","test:browser":"cypress open","test:browser:ci":"cypress run","test:coverage":"pnpm test --coverage --coveragePathIgnorePatterns=/debug","validate":"pnpm prettier:check && pnpm lint:eslint && pnpm lint:css && pnpm typecheck","prettier:check":"pnpm prettier --debug-check $npm_package_config_prettier_target","prettier:write":"pnpm prettier --write $npm_package_config_prettier_target","lint:eslint":"pnpm eslint \"./**/*.{js,jsx,ts,tsx}\"","lint:css":"stylelint \"stories/**/*.{js,jsx,ts,tsx}\"","typecheck":"pnpm typecheck:lib && pnpm typecheck:test && pnpm typecheck:storybook","typecheck:lib":"pnpm tsc --project tsconfig.json","typecheck:storybook":"pnpm tsc --project stories/tsconfig.json && pnpm tsc --project .storybook/tsconfig.json","typecheck:test":"pnpm tsc --project test/tsconfig.json && pnpm tsc --project csp-server/tsconfig.json && pnpm tsc --project cypress/tsconfig.json","bundle-size:check":"cross-env SNAPSHOT=match pnpm bundle-size:update","bundle-size:update":"pnpm build:clean && pnpm build:dist && pnpm build:clean","build":"pnpm build:clean && pnpm build:dist","build:clean":"rimraf dist","build:dist":"cross-env NODE_ENV=production rollup -c","storybook":"storybook dev -p 9002","build-storybook":"storybook build -c .storybook -o site","prepublishOnly":"pnpm build"},"dependencies":{"@babel/runtime":"^7.26.7","css-box-model":"^1.2.1","raf-schd":"^4.0.3","react-redux":"^9.2.0","redux":"^5.0.1"},"devDependencies":{"@atlaskit/css-reset":"6.11.5","@atlaskit/theme":"13.1.0","@babel/core":"7.26.8","@babel/eslint-parser":"7.26.8","@babel/plugin-transform-class-properties":"7.25.9","@babel/plugin-transform-modules-commonjs":"7.26.3","@babel/plugin-transform-object-assign":"7.25.9","@babel/plugin-transform-private-methods":"7.25.9","@babel/plugin-transform-private-property-in-object":"7.25.9","@babel/plugin-transform-runtime":"7.26.8","@babel/preset-env":"7.26.8","@babel/preset-react":"7.26.3","@babel/preset-typescript":"7.26.0","@commitlint/cli":"19.7.1","@commitlint/config-conventional":"19.7.1","@commitlint/cz-commitlint":"19.6.1","@emotion/eslint-plugin":"11.12.0","@emotion/react":"11.14.0","@emotion/styled":"11.14.0","@jest/environment":"29.7.0","@release-it/conventional-changelog":"10.0.0","@rollup/plugin-babel":"6.0.4","@rollup/plugin-commonjs":"25.0.8","@rollup/plugin-json":"6.1.0","@rollup/plugin-node-resolve":"15.3.1","@rollup/plugin-replace":"5.0.7","@rollup/plugin-strip":"3.0.4","@rollup/plugin-terser":"0.4.4","@storybook/addon-docs":"8.5.3","@storybook/addon-essentials":"8.5.3","@storybook/addon-storysource":"8.5.3","@storybook/addon-webpack5-compiler-swc":"1.0.6","@storybook/manager-api":"8.5.3","@storybook/react":"8.5.3","@storybook/react-webpack5":"8.5.3","@storybook/theming":"8.5.3","@swc/core":"1.10.15","@testing-library/dom":"10.4.0","@testing-library/jest-dom":"6.6.3","@testing-library/react":"16.2.0","@types/express":"4.17.21","@types/fs-extra":"11.0.4","@types/jest":"29.5.14","@types/jest-axe":"3.5.9","@types/jsdom":"21.1.7","@types/lodash.isequal":"4.5.8","@types/markdown-it":"14.1.2","@types/node":"22.13.1","@types/raf-schd":"4.0.3","@types/react":"18.3.18","@types/react-dom":"18.3.5","@types/react-window":"1.8.8","@types/seedrandom":"3.0.8","@typescript-eslint/eslint-plugin":"7.18.0","@typescript-eslint/parser":"7.18.0","babel-jest":"29.7.0","babel-loader":"9.2.1","babel-plugin-dev-expression":"0.2.3","babel-plugin-module-resolver":"5.0.2","browserslist":"4.24.4","commitizen":"4.3.1","cross-env":"7.0.3","csstype":"3.1.3","cypress":"13.17.0","dotenv":"16.4.7","eslint":"8.57.1","eslint-config-airbnb":"19.0.4","eslint-config-prettier":"9.1.0","eslint-import-resolver-typescript":"3.7.0","eslint-plugin-cypress":"2.15.2","eslint-plugin-es5":"1.5.0","eslint-plugin-import":"2.31.0","eslint-plugin-jest":"27.9.0","eslint-plugin-jsx-a11y":"6.10.2","eslint-plugin-n":"17.15.1","eslint-plugin-prettier":"5.2.3","eslint-plugin-react":"7.37.4","eslint-plugin-react-hooks":"4.6.2","eslint-plugin-storybook":"0.11.2","express":"4.21.2","fast-glob":"3.3.3","fs-extra":"11.3.0","husky":"9.1.7","jest":"29.7.0","jest-axe":"9.0.0","jest-environment-jsdom":"29.7.0","jest-junit":"16.0.0","jest-watch-typeahead":"2.2.2","jsdom":"25.0.1","lighthouse":"12.3.0","lodash.isequal":"4.5.0","markdown-it":"14.1.0","memory-fs":"0.5.0","postcss-styled-syntax":"0.7.1","prettier":"3.5.0","raf-stub":"3.0.0","react":"19.0.0","react-18":"npm:react@18.3.1","react-dom":"19.0.0","react-dom-18":"npm:react-dom@18.3.1","react-window":"1.8.11","release-it":"18.1.2","require-from-string":"2.0.2","rimraf":"6.0.1","rollup":"4.34.6","rollup-plugin-dts":"6.1.1","seedrandom":"3.0.5","storybook":"8.5.3","styled-components":"6.1.15","stylelint":"16.14.1","stylelint-config-recommended":"14.0.1","stylelint-config-standard":"36.0.1","ts-node":"10.9.2","typescript":"5.7.3","wait-on":"8.0.2","webpack":"5.97.1"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0"},"license":"Apache-2.0","jest-junit":{"output":"test-reports/junit/js-test-results.xml"},"packageManager":"pnpm@10.2.1","_id":"@hello-pangea/dnd@18.0.1","gitHead":"1afeefe08ac304ff0bdd262904a25d09e6af7ad5","homepage":"https://github.com/hello-pangea/dnd#readme","_nodeVersion":"22.12.0","_npmVersion":"11.0.0","dist":{"integrity":"sha512-xojVWG8s/TGrKT1fC8K2tIWeejJYTAeJuj36zM//yEm/ZrnZUSFGS15BpO+jGZT1ybWvyXmeDJwPYb4dhWlbZQ==","shasum":"7d5ef7fe8bddf195307b16e03635b1be582b7b8d","tarball":"http://registry-npm.ywwl.com/@hello-pangea/dnd/download/@hello-pangea/dnd-18.0.1.tgz","fileCount":245,"unpackedSize":1263171,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFf1uvZNMF/ENDtn9Zf130puzVhoLZS46uAA3qiSRtg9AiAsrls5l7vdE3XTSMPonuQseF5G002JoGgmX6gmrdBMBg=="}],"size":288898,"noattachment":false,"key":"/@hello-pangea/dnd/-/@hello-pangea/dnd-18.0.1.tgz"},"_npmUser":{"name":"100terres","email":"gab@100terres.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dnd_18.0.1_1739127088388_0.7996864593889406"},"_hasShrinkwrap":false,"readme":"<p align=\"center\">\n  <img src=\"https://user-images.githubusercontent.com/2182637/53611918-54c1ff80-3c24-11e9-9917-66ac3cef513d.png\" alt=\"react beautiful dnd logo\" />\n</p>\n<h1 align=\"center\">@hello-pangea/dnd</h1>\n\n<div align=\"center\">\n\n**Beautiful** and **accessible** drag and drop for lists with [`React`](https://facebook.github.io/react/)\n\n[![CircleCI branch](https://img.shields.io/circleci/project/github/hello-pangea/dnd/main.svg)](https://circleci.com/gh/hello-pangea/dnd/tree/main)\n[![npm](https://img.shields.io/npm/v/@hello-pangea/dnd.svg)](https://www.npmjs.com/package/@hello-pangea/dnd)\n[![Discord](https://img.shields.io/discord/1007763479010234398?color=blue)](https://discord.gg/zKhPpmvCEv)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-blue.svg)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-blue.svg)](http://commitizen.github.io/cz-cli/)\n\n![quote application example](https://user-images.githubusercontent.com/2182637/53614150-efbed780-3c2c-11e9-9204-a5d2e746faca.gif)\n\n[Play with this example if you want!](https://dnd.hellopangea.com/?path=/story/examples-board--simple)\n\n</div>\n\n## Core characteristics\n\n- Beautiful and [natural movement](/docs/about/animations.md) of items 💐\n- [Accessible](/docs/about/accessibility.md): powerful keyboard and screen reader support ♿️\n- [Extremely performant](/docs/support/media.md) 🚀\n- Clean and powerful api which is simple to get started with\n- Plays extremely well with standard browser interactions\n- [Unopinionated styling](/docs/guides/preset-styles.md)\n- No creation of additional wrapper dom nodes - flexbox and focus management friendly!\n\n## Star History\n\n<a href=\"https://star-history.com/#hello-pangea/dnd&Date\">\n <picture>\n   <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=hello-pangea/dnd&type=Date&theme=dark\" />\n   <source media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=hello-pangea/dnd&type=Date\" />\n   <img alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=hello-pangea/dnd&type=Date\" />\n </picture>\n</a>\n\n## Get started 👩‍🏫\n\nAlex Reardon has created [a free course on `egghead.io` 🥚](https://egghead.io/courses/beautiful-and-accessible-drag-and-drop-with-react-beautiful-dnd) (using [react-beautiful-dnd](https://github.com/atlassian/react-beautiful-dnd)) to help you get started with `@hello-pangea/dnd` as quickly as possible.\n\n[![course-logo](https://user-images.githubusercontent.com/2182637/43372837-8c72d3f8-93e8-11e8-9d92-a82adde7718f.png)](https://egghead.io/courses/beautiful-and-accessible-drag-and-drop-with-react-beautiful-dnd)\n\n## Currently supported feature set ✅\n\n- Vertical lists ↕\n- Horizontal lists ↔\n- Movement between lists (▤ ↔ ▤)\n- [Virtual list support 👾](/docs/patterns/virtual-lists.md) - unlocking 10,000 items @ 60fps\n- [Combining items](/docs/guides/combining.md)\n- Mouse 🐭, keyboard 🎹♿️ and touch 👉📱 (mobile, tablet and so on) support\n- [Multi drag support](/docs/patterns/multi-drag.md)\n- Incredible screen reader support ♿️ - we provide an amazing experience for english screen readers out of the box 📦. We also provide complete customisation control and internationalisation support for those who need it 💖\n- [Conditional dragging](/docs/api/draggable.md#optional-props) and [conditional dropping](/docs/api/droppable.md#conditionally-dropping)\n- Multiple independent lists on the one page\n- Flexible item sizes - the draggable items can have different heights (vertical lists) or widths (horizontal lists)\n- [Add and remove items during a drag](/docs/guides/changes-while-dragging.md)\n- Compatible with semantic `<table>` reordering - [table pattern](/docs/patterns/tables.md)\n- [Auto scrolling](/docs/guides/auto-scrolling.md) - automatically scroll containers and the window as required during a drag (even with keyboard 🔥)\n- Custom drag handles - you can drag a whole item by just a part of it\n- Able to move the dragging item to another element while dragging (clone, portal) - [Reparenting your `<Draggable />`](/docs/guides/reparenting.md)\n- [Create scripted drag and drop experiences 🎮](/docs/sensors/sensor-api.md)\n- Allows extensions to support for [any input type you like 🕹](/docs/sensors/sensor-api.md)\n- 🌲 Tree support through the [`@atlaskit/tree`](https://atlaskit.atlassian.com/packages/confluence/tree) package\n- A `<Droppable />` list can be a scroll container (without a scrollable parent) or be the child of a scroll container (that also does not have a scrollable parent)\n- Independent nested lists - a list can be a child of another list, but you cannot drag items from the parent list into a child list\n- Server side rendering (SSR) compatible\n- Plays well with [nested interactive elements](/docs/api/draggable.md#interactive-child-elements-within-a-draggable-) by default\n\n## Motivation 🤔\n\n`@hello-pangea/dnd` exists to create beautiful drag and drop for lists that anyone can use - even people who cannot see. For a good overview of the history and motivations of the project you can take a look at these external resources:\n\n- 📖 [Rethinking drag and drop](https://medium.com/@alexandereardon/rethinking-drag-and-drop-d9f5770b4e6b)\n- 🎧 [React podcast: fast, accessible and beautiful drag and drop](https://reactpodcast.simplecast.fm/17)\n\n## Not for everyone ✌️\n\nThere are a lot of libraries out there that allow for drag and drop interactions within React. Most notable of these is the amazing [`react-dnd`](https://github.com/react-dnd/react-dnd). It does an incredible job at providing a great set of drag and drop primitives which work especially well with the [wildly inconsistent](https://www.quirksmode.org/blog/archives/2009/09/the_html5_drag.html) html5 drag and drop feature. `@hello-pangea/dnd` is a higher level abstraction specifically built for lists (vertical, horizontal, movement between lists, nested lists and so on). Within that subset of functionality `@hello-pangea/dnd` offers a powerful, natural and beautiful drag and drop experience. However, it does not provide the breadth of functionality offered by `react-dnd`. One shortcoming is that grid layouts are not supported (yet). So `@hello-pangea/dnd` might not be for you depending on what your use case is.\n\n## Documentation 📖\n\n### About 👋\n\n- [Installation](/docs/about/installation.md)\n- [Examples and samples](/docs/about/examples.md)\n- [Get started](https://egghead.io/courses/beautiful-and-accessible-drag-and-drop-with-react-beautiful-dnd) (This is using [react-beautiful-dnd](https://github.com/atlassian/react-beautiful-dnd))\n- [Design principles](/docs/about/design-principles.md)\n- [Animations](/docs/about/animations.md)\n- [Accessibility](/docs/about/accessibility.md)\n- [Browser support](/docs/about/browser-support.md)\n\n### Sensors 🔉\n\n> The ways in which somebody can start and control a drag\n\n- [Mouse dragging 🐭](/docs/sensors/mouse.md)\n- [Touch dragging 👉📱](/docs/sensors/touch.md)\n- [Keyboard dragging 🎹♿️](/docs/sensors/keyboard.md)\n- [Create your own sensor](/docs/sensors/sensor-api.md) (allows for any input type as well as scripted experiences)\n\n### API 🏋️‍\n\n![diagram](https://user-images.githubusercontent.com/2182637/53607406-c8f3a780-3c12-11e9-979c-7f3b5bd1bfbd.gif)\n\n- [`<DragDropContext />`](/docs/api/drag-drop-context.md) - _Wraps the part of your application you want to have drag and drop enabled for_\n- [`<Droppable />`](/docs/api/droppable.md) - _An area that can be dropped into. Contains `<Draggable />`s_\n- [`<Draggable />`](/docs/api/draggable.md) - _What can be dragged around_\n\n### Guides 🗺\n\n- [`<DragDropContext />` responders](/docs/guides/responders.md) - _`onDragStart`, `onDragUpdate`, `onDragEnd` and `onBeforeDragStart`_\n- [Combining `<Draggable />`s](/docs/guides/combining.md)\n- [Common setup issues](/docs/guides/common-setup-issues.md)\n- [Using `innerRef`](/docs/guides/using-inner-ref.md)\n- [Setup problem detection and error recovery](/docs/guides/setup-problem-detection-and-error-recovery.md)\n- [Rules for `draggableId` and `droppableId`s](/docs/guides/identifiers.md)\n- [Browser focus retention](/docs/guides/browser-focus.md)\n- [Customising or skipping the drop animation](/docs/guides/drop-animation.md)\n- [Auto scrolling](/docs/guides/auto-scrolling.md)\n- [Controlling the screen reader](/docs/guides/screen-reader.md)\n- [Use the html5 `doctype`](/docs/guides/doctype.md)\n- [`TypeScript`: type information](/docs/guides/types.md)\n- [Dragging `<svg>`s](/docs/guides/dragging-svgs.md)\n- [Avoiding image flickering](/docs/guides/avoiding-image-flickering.md)\n- [Non-visible preset styles](/docs/guides/preset-styles.md)\n- [How we detect scroll containers](/docs/guides/how-we-detect-scroll-containers.md)\n- [How we use dom events](/docs/guides/how-we-use-dom-events.md) - _Useful if you need to build on top of `@hello-pangea/dnd`_\n- [Adding `<Draggable />`s during a drag (11.x behaviour)](/docs/guides/changes-while-dragging.md) - _⚠️ Advanced_\n- [Setting up Content Security Policy](/docs/guides/content-security-policy.md)\n\n### Patterns 👷‍\n\n- [Virtual lists 👾](/docs/patterns/virtual-lists.md)\n- [Multi drag](/docs/patterns/multi-drag.md)\n- [Tables](/docs/patterns/tables.md)\n- [Reparenting a `<Draggable />`](/docs/guides/reparenting.md) - _Using our cloning API or your own portal_\n\n### Support 👩‍⚕️\n\n- [Engineering health](/docs/support/engineering-health.md)\n- [Community and addons](/docs/support/community-and-addons.md)\n- [Release notes and changelog](https://github.com/hello-pangea/dnd/releases)\n- [Upgrading](/docs/support/upgrading.md)\n- [Road map](https://github.com/hello-pangea/dnd/issues)\n- [Media](/docs/support/media.md)\n\n## Creator ✍️\n\nAlex Reardon [@alexandereardon](https://twitter.com/alexandereardon)\n\n> Alex is no longer personally maintaning this project. The other wonderful maintainers are carrying this project forward.\n\n## Maintainers 🛠️\n\n- Gabriel Santerre [@100terres](https://github.com/100terres)\n- Reece Carolan [@Xhale1](https://github.com/Xhale1)\n- Many [@Atlassian](https://twitter.com/Atlassian)'s have contributed to the original [`react-beautiful-dnd`](https://github.com/atlassian/react-beautiful-dnd). _Atlassian is no longer involved with this project._\n\n## Collaborators 🤝\n\n- Bogdan Chadkin [@IAmTrySound](https://twitter.com/IAmTrySound)\n\n## Thanks 🤗\n\n<a href=\"https://www.chromatic.com/\"><img src=\"https://user-images.githubusercontent.com/321738/84662277-e3db4f80-af1b-11ea-88f5-91d67a5e59f6.png\" width=\"153\" height=\"30\" alt=\"Chromatic\" /></a>\n\nThanks to [Chromatic](https://www.chromatic.com/) for providing the visual testing platform that helps us review UI changes and catch visual regressions.\n","publish_time":1739127088649,"_cnpm_publish_time":1739127088649,"dist-tags":{"beta":"18.0.0-beta.0","latest":"18.0.1"}}