{"_id":"@bestminr/draggable","_rev":"5-27031956a4e0ca926bd241f29bca4f3a","name":"@bestminr/draggable","dist-tags":{"prerelease":"1.0.0-beta.10","latest":"1.1.0","beta":"1.1.0-beta.0"},"versions":{"1.0.0-beta.9":{"name":"@bestminr/draggable","version":"1.0.0-beta.9","private":false,"license":"MIT","description":"The JavaScript Drag & Drop library your grandparents warned you about.","author":{"name":"Chen Min","email":"chenmin@bestminr.com"},"homepage":"https://github.com/hikerpig/draggable#readme","repository":{"type":"git","url":"git+https://github.com/hikerpig/draggable.git"},"contributors":[{"name":"Max Hoffmann","email":"max.hoffmann@shopify.com"},{"name":"Curtis Dulmage","email":"curtis.dulmage@shopify.com"},{"name":"Chen Min","email":"chenmin@bestminr.com"}],"bugs":{"url":"https://github.com/hikerpig/draggable/issues"},"keywords":["shopify","draggable","drag-and-drop","es6"],"main":"./lib/draggable.bundle.js","types":"./index.d.ts","scripts":{"start":"concurrently \"yarn watch\" \"cd examples && yarn && yarn start\"","build":"yarn build:production","watch":"node scripts/watch.js","prepare":"yarn build:development","prepublishOnly":"yarn build:production","lint":"eslint ./src --max-warnings 0","esdoc":"esdoc -c esdoc.json","test":"jest --config config.json","test-ci":"jest --config config.json --coverage && codecov","build:development":"node scripts/build.js","build:production":"node scripts/build.js --production"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^23.0.1","babel-loader":"^7.1.4","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-es2015-classes":"^6.24.1","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-shopify":"^16.5.0","codecov":"^3.0.2","concurrently":"^3.5.1","core-js":"^2.5.7","esdoc":"^1.1.0","esdoc-ecmascript-proposal-plugin":"^1.0.0","esdoc-standard-plugin":"^1.0.0","eslint":"^4.19.1","eslint-loader":"^2.0.0","eslint-plugin-shopify":"^22.1.0","jest":"^23.1.0","webpack":"^4.12.0","webpack-bundle-analyzer":"^2.13.1","webpack-cli":"^3.0.3"},"eslintConfig":{"extends":"plugin:shopify/esnext","env":{}},"babel":{"plugins":["transform-class-properties","transform-object-rest-spread","transform-es2015-modules-commonjs"]},"publishConfig":{"access":"public","@shopify:registry":"https://registry.npmjs.org"},"gitHead":"6502c240f34f392b574baaa3b5c0161603c9d7c9","_id":"@bestminr/draggable@1.0.0-beta.9","_nodeVersion":"8.14.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-GWpNHvujUbiQgKeVGtrpGl8EJZTlbQBdDivX0kBFrKbJqoQSfFI5D/2i/5TTVJhAtTs5xofHxtC23rYZZK5kNg==","shasum":"5725108be121180494af8b40378fdb79f9b0c99e","tarball":"https://registry.npmjs.org/@bestminr/draggable/-/draggable-1.0.0-beta.9.tgz","fileCount":27,"unpackedSize":3056268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdBwRSCRA9TVsSAnZWagAA9cMP/iRvvbAxYsV8uGQHgryg\nlgPhw0J8NJlXGSAKiaFlU/KeSphOwVjpV3GenEYJlRWPs70GaBQvxa6GVCbZ\ngBniw5CFNG9e5QX9hx6mvOg+x6CdL426Ebo3LxFUn6rT+mfgTUFslY7PN6vU\nk3R1SidERellfMxlHJrA+TDBfg+SVMQrttcQHKiZp5d6Dw7/71FgkWLXuM+N\nCytui34SiRgvYR1CyNHVZpRqmYf9Sh7i1uyWFYFyJVXLX46RTWv8Fnf7iz5j\nhK3sUWu8QUDbttM+dXbm8iXlIu7Dokm4cDP67u/kjWWJxAzSZB3PE+FxlHru\nTW/2OCrci3/+b9WmsmKZnLMmb0nAqlljVaizpIE65FbfK4zu0BeMlj/UFiOh\niFOEmeCOTIKFZVmMUG7OnXqfj/7fzteo5OYmL5YYw4ay467ulg+2yqhe6FAt\nAZ42osr4rFvPCpZqZQbrdho7OL+qovSluVE9gUdwACs7C2QFqQcgrZ2mWuzP\n3xKv6SncvVLaQW4weR63ADHw6CW76cJqMxBScrzpmGTQyW9Gf0ZLkQhzBM3+\n4EsaFSeGT30igjTrAMeCZDzPtulMg1uNdjWzjuXBjNB0kt5/QmOSKS9AMbXf\ns3w/D3r2P4YUoxpx9rhABqzP6qMZfXOwsmgNkly/D3ALSuKS9OEOt9oxgShE\niqgg\r\n=s2at\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNiVNh1UnJcCUjNbbwS7bwsi3LTtbvQKH3uwq8xzCrOQIhAPqAk7mA9/kbw9R/oqF3DpdD/NEq8vixwP0Dpce8c6aX"}]},"maintainers":[{"name":"imsunhao","email":"imsunhao1994@gmail.com"},{"name":"hikerpig","email":"hikerpigwinnie@gmail.com"}],"_npmUser":{"name":"hikerpig","email":"hikerpigwinnie@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/draggable_1.0.0-beta.9_1560740945213_0.28500217449765275"},"_hasShrinkwrap":false},"1.0.0-beta.10":{"name":"@bestminr/draggable","version":"1.0.0-beta.10","private":false,"license":"MIT","description":"The JavaScript Drag & Drop library your grandparents warned you about.","author":{"name":"Chen Min","email":"chenmin@bestminr.com"},"homepage":"https://github.com/hikerpig/draggable#readme","repository":{"type":"git","url":"git+https://github.com/hikerpig/draggable.git"},"contributors":[{"name":"Max Hoffmann","email":"max.hoffmann@shopify.com"},{"name":"Curtis Dulmage","email":"curtis.dulmage@shopify.com"},{"name":"Chen Min","email":"chenmin@bestminr.com"}],"bugs":{"url":"https://github.com/hikerpig/draggable/issues"},"keywords":["shopify","bestminr","draggable","drag-and-drop","es6"],"main":"./lib/draggable.bundle.js","types":"./index.d.ts","scripts":{"start":"concurrently \"yarn watch\" \"cd examples && yarn && yarn start\"","build":"yarn build:production","watch":"node scripts/watch.js","prepare":"yarn build:development","prepublishOnly":"yarn build:production","lint":"eslint ./src --max-warnings 0","esdoc":"esdoc -c esdoc.json","test":"jest --config config.json","test-ci":"jest --config config.json --coverage && codecov","build:development":"node scripts/build.js","build:production":"node scripts/build.js --production"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^23.0.1","babel-loader":"^7.1.4","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-es2015-classes":"^6.24.1","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-shopify":"^16.5.0","codecov":"^3.0.2","concurrently":"^3.5.1","core-js":"^2.5.7","esdoc":"^1.1.0","esdoc-ecmascript-proposal-plugin":"^1.0.0","esdoc-standard-plugin":"^1.0.0","eslint":"^4.19.1","eslint-loader":"^2.0.0","eslint-plugin-shopify":"^22.1.0","jest":"^23.1.0","webpack":"^4.12.0","webpack-bundle-analyzer":"^2.13.1","webpack-cli":"^3.0.3"},"eslintConfig":{"extends":"plugin:shopify/esnext","env":{}},"babel":{"plugins":["transform-class-properties","transform-object-rest-spread","transform-es2015-modules-commonjs"]},"publishConfig":{"access":"public"},"readme":"[![CircleCI](https://circleci.com/gh/Shopify/draggable/tree/master.svg?style=shield)](https://circleci.com/gh/Shopify/draggable/tree/master)\n[![npm version](https://badge.fury.io/js/%40shopify%2Fdraggable.svg)](https://badge.fury.io/js/%40shopify%2Fdraggable)\n[![codecov](https://codecov.io/gh/Shopify/draggable/branch/master/graph/badge.svg)](https://codecov.io/gh/Shopify/draggable)\n[![Greenkeeper badge](https://badges.greenkeeper.io/Shopify/draggable.svg)](https://greenkeeper.io/)\n\n<a href=\"https://shopify.github.io/draggable\" title=\"Visit Draggable website\">\n  <img src=\"https://user-images.githubusercontent.com/643944/35602291-99e2c56e-0605-11e8-847f-95f1f6be1610.jpg\" alt=\"\">\n</a>\n\n# Development\n\n**Draggable is no longer maintained by its original authors.** Maintenance of this repo has been passed on to new collaborators and is no longer worked on by anyone at Shopify.\n\n**We are still looking for more maintainers!** If anyone is interested in answering / triaging issues, reviewing / rejecting / approving PRs, and authoring code for bug fixes / new features — please send an email to `curtis.dulmage (at) shopify (dot) com`. You may be asked a few questions before obtaining collaboration permission, but if everything checks out, we will happily add you as a collaborator.\n\n**Current maintainers are:**\n\n- [@fdietze](https://github.com/fdietze)\n- [@josh18](https://github.com/josh18)\n\nPlease ping the above handles when putting up PRs.\n\n---\n\nGet complete control over drag and drop behaviour with Draggable! Draggable abstracts\nnative browser events into a comprehensive API to create a custom drag and drop experience.\n`Draggable` comes with additional modules: `Sortable`, `Droppable`, `Swappable`. Draggable\nitself does not perform any sorting behaviour while dragging, but does the heavy lifting, e.g.\ncreates mirror, emits events, manages sensor events, makes elements draggable.\n\nThe additional modules are built on top of `Draggable` and therefore provide a similar API\ninterface, for more information read the documentation below.\n\n**Features**\n\n- Works with native drag, mouse, touch and force touch events\n- Can extend dragging behaviour by hooking into draggables event life cycle\n- Can extend drag detection by adding sensors to draggable\n- The library is targeted ES6 first\n\n## Table of Contents\n\n- [Install](#install)\n- [Documentation](#documentation)\n- [Contributing](#contributing)\n- [Roadmap](#roadmap)\n- [Copyright](#copyright)\n\n## Install\n\nYou can install the library via npm.\n\n```\nnpm install @shopify/draggable --save\n```\n\nor via yarn:\n\n```\nyarn add @shopify/draggable\n```\n\nor via CDN\n\n```html\n<!-- Entire bundle -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/draggable.bundle.js\"></script>\n<!-- legacy bundle for older browsers (IE11) -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/draggable.bundle.legacy.js\"></script>\n<!-- Draggable only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/draggable.js\"></script>\n<!-- Sortable only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/sortable.js\"></script>\n<!-- Droppable only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/droppable.js\"></script>\n<!-- Swappable only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/swappable.js\"></script>\n<!-- Plugins only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/plugins.js\"></script>\n```\n\n## Browser Compatibility\n\n| ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) |\n| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |\n| Latest ✔                                                                                 | Latest ✔                                                                                    | 11+ ✔                                                                                                                        | Latest ✔                                                                              | Latest ✔                                                                                 | Latest ✔                                                                           |\n\n## Bundle sizes\n\n| Package name               | ES6 bundle sizes | ES5 bundle sizes |\n| -------------------------- | ---------------- | ---------------- |\n| draggable.bundle.js        | ~11kb            | ~19.2kb          |\n| draggable.bundle.legacy.js | ~19.2kb          | ~25.63kb         |\n| draggable.js               | ~8.06kb          | ~15.36kb         |\n| sortable.js                | ~8.93kb          | ~16.51kb         |\n| swappable.js               | ~8.56kb          | ~16.14kb         |\n| droppable.js               | ~8.8kb           | ~16.55kb         |\n| plugins.js                 | ~2.37kb          | ~8.76kb          |\n| plugins/collidable.js      | ~1.45kb          | ~7.81kb          |\n| plugins/snappable.js       | ~1.19kb          | ~6.94kb          |\n| plugins/swap-animation.js  | ~1kb             | ~6.65kb          |\n\n## Documentation\n\nYou can find the documentation for each module within their respective directories.\n\n- [Draggable](src/Draggable)\n  - [DragEvent](src/Draggable/DragEvent)\n  - [DraggableEvent](src/Draggable/DraggableEvent)\n  - [Plugins](src/Draggable/Plugins)\n    - [Announcement](src/Draggable/Plugins/Announcement)\n    - [Focusable](src/Draggable/Plugins/Focusable)\n    - [Mirror](src/Draggable/Plugins/Mirror)\n    - [MirrorEvent](src/Draggable/Plugins/Mirror/MirrorEvent)\n    - [Scrollable](src/Draggable/Plugins/Scrollable)\n  - [Sensors](src/Draggable/Sensors)\n    - [DragSensor](src/Draggable/Sensors/DragSensor)\n    - [ForceTouchSensor](src/Draggable/Sensors/ForceTouchSensor)\n    - [MouseSensor](src/Draggable/Sensors/MouseSensor)\n    - [Sensor](src/Draggable/Sensors/Sensor)\n    - [SensorEvent](src/Draggable/Sensors/SensorEvent)\n    - [TouchSensor](src/Draggable/Sensors/TouchSensor)\n- [Droppable](src/Droppable)\n  - [DroppableEvent](src/Droppable/DroppableEvent)\n- [Plugins](src/Plugins)\n  - [Collidable](src/Plugins/Collidable)\n  - [ResizeMirror](src/Plugins/ResizeMirror)\n  - [Snappable](src/Plugins/Snappable)\n  - [SwapAnimation](src/Plugins/SwapAnimation)\n- [Sortable](src/Sortable)\n  - [SortableEvent](src/Sortable/SortableEvent)\n- [Swappable](src/Swappable)\n  - [SwappableEvent](src/Swappable/SwappableEvent)\n\n## Running examples\n\nTo run the `examples` project locally, simply run the following from the `draggable` root:\n\n```\nyarn && yarn start\n```\n\nThis will start a server that hosts the contents of `examples/`. It also watches for file\nchanges from both `src/` and `examples/src` and reloads the browser.\n\n## Contributing\n\nContributions are more than welcome, the code base is still new and needs more love.\n\nFor more information, please checkout the [contributing document](https://github.com/Shopify/draggable/blob/master/CONTRIBUTING.md).\n\n## Roadmap\n\nWe are currently working on `v1.0.0-beta.8`. Check out the [project board](https://github.com/Shopify/draggable/projects/3) to see tasks and follow progress on the release. Any Pull Requests should be pointed against the feature branch `v1.0.0-beta.8`.\n\n## Related resources\n\n- [Ember CLI Shim](https://github.com/timrourke/ember-cli-shopify-draggable-shim) on Github by [@timrourke](https://github.com/timrourke)\n- [Ember CLI Shim](https://www.npmjs.com/package/ember-cli-shopify-draggable-shim) on NPM by [@timrourke](https://github.com/timrourke)\n\n## Copyright\n\nCopyright (c) 2018 Shopify. See LICENSE.md for further details.\n","readmeFilename":"README.md","gitHead":"da9676a6fee636ac5d6dd8bc13c61e0d72c72ebc","_id":"@bestminr/draggable@1.0.0-beta.10","_nodeVersion":"8.14.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-HPKGx3toUpY70RS8Yxg34fbU8UVmAX/rzpK53+drf6uOLU/qZaZNibKqRT46zNWtaVAM/qteuHJxKKP1lMlXCQ==","shasum":"d2e51597a9d403635978f83d270d387b52eda0a2","tarball":"https://registry.npmjs.org/@bestminr/draggable/-/draggable-1.0.0-beta.10.tgz","fileCount":27,"unpackedSize":3056383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdBwcsCRA9TVsSAnZWagAA+0AQAJbbncJ/4VY6KVUuMKox\n1/xkIHINHVSGQDRDHsL7Y7MJG60TBc250b1cKL7Hh/1QE/OXYofF+WzIoF9r\n3TePN4Uz1x5aGCYHeOcNBF8kwazX3DiPHTL88MLwOKKrLiGbFbtDX+2m/Qbr\n1CdhCKPoZgsCsvShT6bHJDTgo03HPQIdeVJtwxXXaZOlO0GP6eQc95z+IAca\nl2sUXRzsknaGmPpjWGQ4BsbrKCLEKkBSUXJdt5bKqdnft6hEFyf0ijTBSO6H\nxkFs9odEVG/5ufJnPYd8n/2GVEu2QHi/EctQjkI5Bss6stU5i/NoFlNzHATo\n12/YLkveTDLuqNG+0OX3ndAi/RCKw23DsivJh7CbPpXh7QIb+EvrZUGVAHqZ\nzu50xaCMzt0DJV3sBdgQC+HSDyKjQVSyF4JPepZFZrU77dCPOKW0bhWdpVuk\n8oByp5JJ5ikdtTVwu56t8FahWCvJxNfc3byrYXPCq+cg+XUUczlb+KRXcPt1\ngEbAajLkSyaaHAcrsjRZ48JMDxozFg7fqgVUnMyySxFh/ogi3Nr1FVdskq4E\nM4AYKJpZSdXOlXuPNLbkho31t7Udjza/feSFdTYwoAsZ3tNonV2pUwig8eQh\n7tZs9Y7q2UfQemhIBxMdN7oGTDMOS3wTrI3tIw45eWtOFV+2jgB8Dg/neknN\nIAI/\r\n=UYpx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHMkm15+2Fz6I+Mk2zcdVUo0aU8abXzO/E4Srjniy9R/AiEAg4VXgVFoGk7qpVWgcO5z1ZGEU/kadj5GzuUXkriyFX8="}]},"maintainers":[{"name":"hikerpig","email":"hikerpigwinnie@gmail.com"},{"name":"imsunhao","email":"imsunhao1994@gmail.com"}],"_npmUser":{"name":"hikerpig","email":"hikerpigwinnie@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/draggable_1.0.0-beta.10_1560741676033_0.6107254872289256"},"_hasShrinkwrap":false},"1.0.0":{"name":"@bestminr/draggable","version":"1.0.0","private":false,"license":"MIT","description":"The JavaScript Drag & Drop library your grandparents warned you about.","author":{"name":"Chen Min","email":"chenmin@bestminr.com"},"homepage":"https://github.com/hikerpig/draggable#readme","repository":{"type":"git","url":"git+https://github.com/hikerpig/draggable.git"},"contributors":[{"name":"Max Hoffmann","email":"max.hoffmann@shopify.com"},{"name":"Curtis Dulmage","email":"curtis.dulmage@shopify.com"},{"name":"Chen Min","email":"chenmin@bestminr.com"}],"bugs":{"url":"https://github.com/hikerpig/draggable/issues"},"keywords":["shopify","bestminr","draggable","drag-and-drop","es6"],"main":"./lib/draggable.bundle.js","types":"./index.d.ts","scripts":{"start":"concurrently \"yarn watch\" \"cd examples && yarn && yarn start\"","build":"yarn build:production","watch":"node scripts/watch.js","prepare":"yarn build:development","prepublishOnly":"yarn build:production","lint":"eslint ./src --max-warnings 0","esdoc":"esdoc -c esdoc.json","test":"jest --config config.json","test-ci":"jest --config config.json --coverage && codecov","build:development":"node scripts/build.js","build:production":"node scripts/build.js --production"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^23.0.1","babel-loader":"^7.1.4","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-es2015-classes":"^6.24.1","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-shopify":"^16.5.0","codecov":"^3.0.2","concurrently":"^3.5.1","core-js":"^2.5.7","esdoc":"^1.1.0","esdoc-ecmascript-proposal-plugin":"^1.0.0","esdoc-standard-plugin":"^1.0.0","eslint":"^4.19.1","eslint-loader":"^2.0.0","eslint-plugin-shopify":"^22.1.0","jest":"^23.1.0","webpack":"^4.12.0","webpack-bundle-analyzer":"^2.13.1","webpack-cli":"^3.0.3"},"eslintConfig":{"extends":"plugin:shopify/esnext","env":{}},"babel":{"plugins":["transform-class-properties","transform-object-rest-spread","transform-es2015-modules-commonjs"]},"publishConfig":{"access":"public"},"gitHead":"06fe4390de69db8c7227e68d62ff4078523eda7f","_id":"@bestminr/draggable@1.0.0","_nodeVersion":"10.16.2","_npmVersion":"6.11.3","dist":{"integrity":"sha512-xN4Kyey659W/uj6GvyqSFno8PMbUjexMZHqs/4uYNV0HWUXAbBcBUQliyFN+JyZViGPtniv6IHfJEWlsPnw1kQ==","shasum":"25f94732c8552849e99693cf05e9c91609d39720","tarball":"https://registry.npmjs.org/@bestminr/draggable/-/draggable-1.0.0.tgz","fileCount":28,"unpackedSize":3329707,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdd0NUCRA9TVsSAnZWagAAMQgP/0Vj3+6pGOl/fLD4xw9W\n4yio9zvx8P5g4pVStigqDaHrMWBp39zbDRqmjQwAoWbJd6YIUJwgdLTD/y3F\nVsDOq4B6LlZWMobdhrwuZpkgGbvMgWsASr/UORXdqX4Py55uOGVDZN7zD4Yo\nwdmur8j3wn50l9dAmHYSzngghX7TiGLolxDaPuIQC6Wo2ZW5IGELe76cZVYX\npmmlbIcp67SVc7SVJ7nwjefKY+YpWFUi8D7ToS5gbrKL+cCBRcRpf4i97rVK\nbC0DpCDdHu2bO2tmJ0fWiSigwiAoIbrGR4kVI3BxmxcUlLmNhYa/3B3WxXAz\nXNH7eCGKqmhpIwys7VijfLPF0n8VH1d7Y497JAqipJ+FYjWXosgarJe/z1CN\nxT3ZUgCp8Hyv0LtP2JvIE79B+z8iFuVIc9WKkw+VJhG5YrgP+0onQ5ZXiyLr\nSRfHjvO2wYJ+BHCivtP1R0tNQK0MWTMK6cw3T5WBCwPIi2xO29pPabh2lMk0\n1ReekMyOjIAK3rr9gOGC2/OE77gPHOEewYCNxXl5kqLY0usddL6mXuBZWrbK\nUXnCbB9U/Z609n6Mj3srsAde/caW5VW6DpCeVeWNyrJCp+bDF6ycEOOUOczP\nVY2oESsqaFZzJLd+JdH04Vrm+nCL4jHH7PcywFBJzt5kFAt/T4iiyv035ML7\n8Cqh\r\n=43xz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDH56z6Rf8/OjGm/T9TSqzXnEkIfswEYrTXieu9fGJ31QIgPsUdT48pu1qWtUmT1iz8jW7Ve6u4UKv4yjaYn5R1b3Y="}]},"maintainers":[{"name":"hikerpig","email":"hikerpigwinnie@gmail.com"},{"name":"imsunhao","email":"imsunhao1994@gmail.com"}],"_npmUser":{"name":"hikerpig","email":"hikerpigwinnie@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/draggable_1.0.0_1568097107856_0.033228284802892194"},"_hasShrinkwrap":false},"1.1.0-beta.0":{"name":"@bestminr/draggable","version":"1.1.0-beta.0","private":false,"license":"MIT","description":"The JavaScript Drag & Drop library your grandparents warned you about.","author":{"name":"Chen Min","email":"chenmin@bestminr.com"},"homepage":"https://github.com/hikerpig/draggable#readme","repository":{"type":"git","url":"git+https://github.com/hikerpig/draggable.git"},"contributors":[{"name":"Max Hoffmann","email":"max.hoffmann@shopify.com"},{"name":"Curtis Dulmage","email":"curtis.dulmage@shopify.com"},{"name":"Chen Min","email":"chenmin@bestminr.com"}],"bugs":{"url":"https://github.com/hikerpig/draggable/issues"},"keywords":["shopify","bestminr","draggable","drag-and-drop","es6"],"main":"./lib/draggable.bundle.js","types":"./index.d.ts","scripts":{"start":"concurrently \"yarn watch\" \"cd examples && yarn && yarn start\"","build":"yarn build:production","watch":"node scripts/watch.js","prepare":"yarn build:development","prepublishOnly":"yarn build:production","lint":"eslint ./src --max-warnings 0","esdoc":"esdoc -c esdoc.json","test":"jest --config config.json","test-ci":"jest --config config.json --coverage && codecov","build:development":"node scripts/build.js","build:production":"node scripts/build.js --production"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^23.0.1","babel-loader":"^7.1.4","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-es2015-classes":"^6.24.1","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-shopify":"^16.5.0","codecov":"^3.0.2","concurrently":"^3.5.1","core-js":"^2.5.7","esdoc":"^1.1.0","esdoc-ecmascript-proposal-plugin":"^1.0.0","esdoc-standard-plugin":"^1.0.0","eslint":"^4.19.1","eslint-loader":"^2.0.0","eslint-plugin-shopify":"^22.1.0","jest":"^23.1.0","webpack":"^4.12.0","webpack-bundle-analyzer":"^2.13.1","webpack-cli":"^3.0.3"},"eslintConfig":{"extends":"plugin:shopify/esnext","env":{}},"babel":{"plugins":["transform-class-properties","transform-object-rest-spread","transform-es2015-modules-commonjs"]},"publishConfig":{"access":"public"},"readme":"[![CircleCI](https://circleci.com/gh/Shopify/draggable/tree/master.svg?style=shield)](https://circleci.com/gh/Shopify/draggable/tree/master)\n[![npm version](https://badge.fury.io/js/%40shopify%2Fdraggable.svg)](https://badge.fury.io/js/%40shopify%2Fdraggable)\n[![codecov](https://codecov.io/gh/Shopify/draggable/branch/master/graph/badge.svg)](https://codecov.io/gh/Shopify/draggable)\n[![Greenkeeper badge](https://badges.greenkeeper.io/Shopify/draggable.svg)](https://greenkeeper.io/)\n\n<a href=\"https://shopify.github.io/draggable\" title=\"Visit Draggable website\">\n  <img src=\"https://user-images.githubusercontent.com/643944/35602291-99e2c56e-0605-11e8-847f-95f1f6be1610.jpg\" alt=\"\">\n</a>\n\n# Development\n\n**Draggable is no longer maintained by its original authors.** Maintenance of this repo has been passed on to new collaborators and is no longer worked on by anyone at Shopify.\n\n**We are still looking for more maintainers!** If anyone is interested in answering / triaging issues, reviewing / rejecting / approving PRs, and authoring code for bug fixes / new features — please send an email to `curtis.dulmage (at) shopify (dot) com`. You may be asked a few questions before obtaining collaboration permission, but if everything checks out, we will happily add you as a collaborator.\n\n**Current maintainers are:**\n\n- [@fdietze](https://github.com/fdietze)\n- [@josh18](https://github.com/josh18)\n\nPlease ping the above handles when putting up PRs.\n\n---\n\nGet complete control over drag and drop behaviour with Draggable! Draggable abstracts\nnative browser events into a comprehensive API to create a custom drag and drop experience.\n`Draggable` comes with additional modules: `Sortable`, `Droppable`, `Swappable`. Draggable\nitself does not perform any sorting behaviour while dragging, but does the heavy lifting, e.g.\ncreates mirror, emits events, manages sensor events, makes elements draggable.\n\nThe additional modules are built on top of `Draggable` and therefore provide a similar API\ninterface, for more information read the documentation below.\n\n**Features**\n\n- Works with native drag, mouse, touch and force touch events\n- Can extend dragging behaviour by hooking into draggables event life cycle\n- Can extend drag detection by adding sensors to draggable\n- The library is targeted ES6 first\n\n## Table of Contents\n\n- [Install](#install)\n- [Documentation](#documentation)\n- [Contributing](#contributing)\n- [Roadmap](#roadmap)\n- [Copyright](#copyright)\n\n## Install\n\nYou can install the library via npm.\n\n```\nnpm install @shopify/draggable --save\n```\n\nor via yarn:\n\n```\nyarn add @shopify/draggable\n```\n\nor via CDN\n\n```html\n<!-- Entire bundle -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/draggable.bundle.js\"></script>\n<!-- legacy bundle for older browsers (IE11) -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/draggable.bundle.legacy.js\"></script>\n<!-- Draggable only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/draggable.js\"></script>\n<!-- Sortable only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/sortable.js\"></script>\n<!-- Droppable only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/droppable.js\"></script>\n<!-- Swappable only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/swappable.js\"></script>\n<!-- Plugins only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/plugins.js\"></script>\n```\n\n## Browser Compatibility\n\n| ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) |\n| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |\n| Latest ✔                                                                                 | Latest ✔                                                                                    | 11+ ✔                                                                                                                        | Latest ✔                                                                              | Latest ✔                                                                                 | Latest ✔                                                                           |\n\n## Bundle sizes\n\n| Package name               | ES6 bundle sizes | ES5 bundle sizes |\n| -------------------------- | ---------------- | ---------------- |\n| draggable.bundle.js        | ~11kb            | ~19.2kb          |\n| draggable.bundle.legacy.js | ~19.2kb          | ~25.63kb         |\n| draggable.js               | ~8.06kb          | ~15.36kb         |\n| sortable.js                | ~8.93kb          | ~16.51kb         |\n| swappable.js               | ~8.56kb          | ~16.14kb         |\n| droppable.js               | ~8.8kb           | ~16.55kb         |\n| plugins.js                 | ~2.37kb          | ~8.76kb          |\n| plugins/collidable.js      | ~1.45kb          | ~7.81kb          |\n| plugins/snappable.js       | ~1.19kb          | ~6.94kb          |\n| plugins/swap-animation.js  | ~1kb             | ~6.65kb          |\n\n## Documentation\n\nYou can find the documentation for each module within their respective directories.\n\n- [Draggable](src/Draggable)\n  - [DragEvent](src/Draggable/DragEvent)\n  - [DraggableEvent](src/Draggable/DraggableEvent)\n  - [Plugins](src/Draggable/Plugins)\n    - [Announcement](src/Draggable/Plugins/Announcement)\n    - [Focusable](src/Draggable/Plugins/Focusable)\n    - [Mirror](src/Draggable/Plugins/Mirror)\n    - [MirrorEvent](src/Draggable/Plugins/Mirror/MirrorEvent)\n    - [Scrollable](src/Draggable/Plugins/Scrollable)\n  - [Sensors](src/Draggable/Sensors)\n    - [DragSensor](src/Draggable/Sensors/DragSensor)\n    - [ForceTouchSensor](src/Draggable/Sensors/ForceTouchSensor)\n    - [MouseSensor](src/Draggable/Sensors/MouseSensor)\n    - [Sensor](src/Draggable/Sensors/Sensor)\n    - [SensorEvent](src/Draggable/Sensors/SensorEvent)\n    - [TouchSensor](src/Draggable/Sensors/TouchSensor)\n- [Droppable](src/Droppable)\n  - [DroppableEvent](src/Droppable/DroppableEvent)\n- [Plugins](src/Plugins)\n  - [Collidable](src/Plugins/Collidable)\n  - [ResizeMirror](src/Plugins/ResizeMirror)\n  - [Snappable](src/Plugins/Snappable)\n  - [SwapAnimation](src/Plugins/SwapAnimation)\n- [Sortable](src/Sortable)\n  - [SortableEvent](src/Sortable/SortableEvent)\n- [Swappable](src/Swappable)\n  - [SwappableEvent](src/Swappable/SwappableEvent)\n\n## Running examples\n\nTo run the `examples` project locally, simply run the following from the `draggable` root:\n\n```\nyarn && yarn start\n```\n\nThis will start a server that hosts the contents of `examples/`. It also watches for file\nchanges from both `src/` and `examples/src` and reloads the browser.\n\n## Contributing\n\nContributions are more than welcome, the code base is still new and needs more love.\n\nFor more information, please checkout the [contributing document](https://github.com/Shopify/draggable/blob/master/CONTRIBUTING.md).\n\n## Roadmap\n\nWe are currently working on `v1.0.0-beta.8`. Check out the [project board](https://github.com/Shopify/draggable/projects/3) to see tasks and follow progress on the release. Any Pull Requests should be pointed against the feature branch `v1.0.0-beta.8`.\n\n## Related resources\n\n- [Ember CLI Shim](https://github.com/timrourke/ember-cli-shopify-draggable-shim) on Github by [@timrourke](https://github.com/timrourke)\n- [Ember CLI Shim](https://www.npmjs.com/package/ember-cli-shopify-draggable-shim) on NPM by [@timrourke](https://github.com/timrourke)\n\n## Copyright\n\nCopyright (c) 2018 Shopify. See LICENSE.md for further details.\n","readmeFilename":"README.md","gitHead":"bc48caea47f93363b495d63ba87d70d9a7d6753a","_id":"@bestminr/draggable@1.1.0-beta.0","_nodeVersion":"10.16.2","_npmVersion":"6.13.0","dist":{"integrity":"sha512-mf8/qFAmqjkR1KuXnNndCUB8GD66Om9ew+tqepB3qVF0K1x1vwadQIabElek2VDCr0podmbjirJhpRP1ONHmuw==","shasum":"203c8e97ea1123c029ac84f3ede85baf8e0b5d70","tarball":"https://registry.npmjs.org/@bestminr/draggable/-/draggable-1.1.0-beta.0.tgz","fileCount":28,"unpackedSize":3354357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd54qVCRA9TVsSAnZWagAAStcP/24ZoKE/PTScBskpNsl6\ngfJfme3vKZyO6GIi/QkhZKFNEtIioRBm8d26xMKsdWH27ExHjNKMv3AKrbsy\ntyvCATgX61SgEkWw7DanaUY/eqWSoiyk8zwJ5VhM5THUKCrbkDCeHn/i2lf9\npsKeVaNaG5YerHu33GmOrrW6IKu3dPIfV7HDu3ACiBaZBJqQ8oq4t73ay35S\nMj4PMnZ8OhNXKZqlDKCa8bSrs7/MIEEHAAwqJwlN6PyPQSZhgNeSMfxg1hbm\nbZyk80PYBxoBKjUr1d9IYZiD32m97wzAJdbz83+5Cam6YYjcD6Q/iq8zeQhT\nEJWpgOEai/25lH6m3QrICOsAP72GobBkLw7x1xe1F2RDJVoDHngY3GWG3koZ\nbmqR1Fe1efAElgFQFnmXFkzC1sRRvfu55EHu55/17IjWLzCQxJZSPj46tUSx\nLRp1ii7CL4TdPFqfNSIjO0KTwcQFDIUiZs6b2SqMLX+h1sasZ1Ax/CEuE5+d\nxxxlvBqulMKXUzv/y4jdVLq2JS7jzVokJExKOfXoIw6Od3dUGynlNKBLPfYx\nXodLW9GRygbV5RBawWqCvZ3WKnaXDyzGattKRSNc8SrahtUxHWK07KUEpyVM\n4wyt3c7L+EtTOxsoK6/2zbsSPRbYuDcP7jFJ92zbub7dzXC+j+4ZR7LeAkEA\nPf9e\r\n=2i61\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFTbtk2xyz7TB2YyuBMoswKfc97nARB36ZXgROEvy8MfAiALanHVz3ZNb+WzgGfVLzHIn9WwIo+HsVOZNFg/ID2n8w=="}]},"maintainers":[{"name":"hikerpig","email":"hikerpigwinnie@gmail.com"},{"name":"imsunhao","email":"imsunhao1994@gmail.com"}],"_npmUser":{"name":"hikerpig","email":"hikerpigwinnie@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/draggable_1.1.0-beta.0_1575455380673_0.8131929292952718"},"_hasShrinkwrap":false},"1.1.0":{"name":"@bestminr/draggable","version":"1.1.0","private":false,"license":"MIT","description":"The JavaScript Drag & Drop library your grandparents warned you about.","author":{"name":"Chen Min","email":"chenmin@bestminr.com"},"homepage":"https://github.com/hikerpig/draggable#readme","repository":{"type":"git","url":"git+https://github.com/hikerpig/draggable.git"},"contributors":[{"name":"Max Hoffmann","email":"max.hoffmann@shopify.com"},{"name":"Curtis Dulmage","email":"curtis.dulmage@shopify.com"},{"name":"Chen Min","email":"chenmin@bestminr.com"}],"bugs":{"url":"https://github.com/hikerpig/draggable/issues"},"keywords":["shopify","bestminr","draggable","drag-and-drop","es6"],"main":"./lib/draggable.bundle.js","types":"./index.d.ts","scripts":{"start":"concurrently \"yarn watch\" \"cd examples && yarn && yarn start\"","build":"yarn build:production","watch":"node scripts/watch.js","prepare":"yarn build:development","prepublishOnly":"yarn build:production","lint":"eslint ./src --max-warnings 0","esdoc":"esdoc -c esdoc.json","test":"jest --config config.json","test-ci":"jest --config config.json --coverage && codecov","build:development":"node scripts/build.js","build:production":"node scripts/build.js --production"},"devDependencies":{"babel-core":"^6.26.3","babel-jest":"^23.0.1","babel-loader":"^7.1.4","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-es2015-classes":"^6.24.1","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-shopify":"^16.5.0","codecov":"^3.0.2","concurrently":"^3.5.1","core-js":"^2.5.7","esdoc":"^1.1.0","esdoc-ecmascript-proposal-plugin":"^1.0.0","esdoc-standard-plugin":"^1.0.0","eslint":"^4.19.1","eslint-loader":"^2.0.0","eslint-plugin-shopify":"^22.1.0","jest":"^23.1.0","webpack":"^4.12.0","webpack-bundle-analyzer":"^2.13.1","webpack-cli":"^3.0.3"},"eslintConfig":{"extends":"plugin:shopify/esnext","env":{}},"babel":{"plugins":["transform-class-properties","transform-object-rest-spread","transform-es2015-modules-commonjs"]},"publishConfig":{"access":"public"},"gitHead":"fa1e6d4a2d9d37ca055f78f2b7648ccbeacf3b72","_id":"@bestminr/draggable@1.1.0","_nodeVersion":"10.16.2","_npmVersion":"6.13.6","dist":{"integrity":"sha512-lhTF9amP3GNTCyFmIcx3JB+X0lQXXrVqc6gJE2Yt0NHgGL3N6Wg+fSNfJWKrHkv3SenyyxbZgaCltFrvNIR/mw==","shasum":"c36ee9b398266f1b1c4ec58d65f173f78b7d56a3","tarball":"https://registry.npmjs.org/@bestminr/draggable/-/draggable-1.1.0.tgz","fileCount":28,"unpackedSize":3356413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeON9xCRA9TVsSAnZWagAAluwP/3RFFluLJ4/jHyUhDTHD\n2zwu2tCTuBsOOEtMd7RGvITp2kNHLAb0IYhKrJED1dhzoGHpk4JxZbWs5mKk\nELSJREcGwO35XFZ5FuOpcnqQtvpm+/v37GDNcBjfeBBQ4P/4Qj4RdLcdh65w\nGdttKzzABT9AhVFYllWAHE5+jqWfkl8m92X0x4ghdlonZuOot84FJcJBOh/y\ndrA69qKkNy0vWYyQ1FCxsZG+9lmK3P5M4FJ/M4cpS+1oa48/1xXpoTOMTarb\nH6pJObBbrbBw8u1nTJzt6/7cAbnu+M17MBWSJVBUYh65azkZJ+isY1gOpzTf\n5Ekhs+GYuYEF2+nePPHS63/UBAGue3StF58sYzl38uak/4iat8w8EraTLg23\ngqiLQwsE5314qy3co58hEH16C/JlTyI+arBjH6GTUU1hBHNWozRJyrBnDw9D\n7G8AoauNGBjvonG/sgsA9nUAxF74LhPyZ0qIQ8ZFFBTwQe6D3Nvc1yHAOOP3\na8/obJdSzTKAwgbaXE0Gngy2Df7f5mH00pNZuh9zMBqZdUey6k1TSo1SNF16\nLMgV/99U4QH0/dghA66vZ5AHKETTTcjk8CM/e6vBQC7eQH4WlVxjzYpXRTCZ\nRJhErIrAM9jOC/sq2yqsqYRn86EZ84P+shYJvqfdQaXauQPBOakQYgY92psO\nRgUP\r\n=f/gI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFDCoX7m20r6NUkUaABBz8/e3dH04AHEWlu4WrNvNQwoAiB6DMV1aOyRHhTq6zCSPXrmokazP/2wgEByN8l6XS72Mg=="}]},"maintainers":[{"name":"hikerpig","email":"hikerpigwinnie@gmail.com"},{"name":"imsunhao","email":"imsunhao1994@gmail.com"}],"_npmUser":{"name":"hikerpig","email":"hikerpigwinnie@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/draggable_1.1.0_1580785521430_0.012095614782378084"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-17T03:09:05.076Z","1.0.0-beta.9":"2019-06-17T03:09:05.468Z","modified":"2022-04-04T18:33:45.567Z","1.0.0-beta.10":"2019-06-17T03:21:16.202Z","1.0.0":"2019-09-10T06:31:48.059Z","1.1.0-beta.0":"2019-12-04T10:29:40.832Z","1.1.0":"2020-02-04T03:05:21.636Z"},"maintainers":[{"name":"hikerpig","email":"hikerpigwinnie@gmail.com"},{"name":"imsunhao","email":"imsunhao1994@gmail.com"}],"description":"The JavaScript Drag & Drop library your grandparents warned you about.","homepage":"https://github.com/hikerpig/draggable#readme","keywords":["shopify","bestminr","draggable","drag-and-drop","es6"],"repository":{"type":"git","url":"git+https://github.com/hikerpig/draggable.git"},"contributors":[{"name":"Max Hoffmann","email":"max.hoffmann@shopify.com"},{"name":"Curtis Dulmage","email":"curtis.dulmage@shopify.com"},{"name":"Chen Min","email":"chenmin@bestminr.com"}],"author":{"name":"Chen Min","email":"chenmin@bestminr.com"},"bugs":{"url":"https://github.com/hikerpig/draggable/issues"},"license":"MIT","readme":"[![CircleCI](https://circleci.com/gh/Shopify/draggable/tree/master.svg?style=shield)](https://circleci.com/gh/Shopify/draggable/tree/master)\n[![npm version](https://badge.fury.io/js/%40shopify%2Fdraggable.svg)](https://badge.fury.io/js/%40shopify%2Fdraggable)\n[![codecov](https://codecov.io/gh/Shopify/draggable/branch/master/graph/badge.svg)](https://codecov.io/gh/Shopify/draggable)\n[![Greenkeeper badge](https://badges.greenkeeper.io/Shopify/draggable.svg)](https://greenkeeper.io/)\n\n<a href=\"https://shopify.github.io/draggable\" title=\"Visit Draggable website\">\n  <img src=\"https://user-images.githubusercontent.com/643944/35602291-99e2c56e-0605-11e8-847f-95f1f6be1610.jpg\" alt=\"\">\n</a>\n\n# Development\n\n**Draggable is no longer maintained by its original authors.** Maintenance of this repo has been passed on to new collaborators and is no longer worked on by anyone at Shopify.\n\n**We are still looking for more maintainers!** If anyone is interested in answering / triaging issues, reviewing / rejecting / approving PRs, and authoring code for bug fixes / new features — please send an email to `curtis.dulmage (at) shopify (dot) com`. You may be asked a few questions before obtaining collaboration permission, but if everything checks out, we will happily add you as a collaborator.\n\n**Current maintainers are:**\n\n- [@fdietze](https://github.com/fdietze)\n- [@josh18](https://github.com/josh18)\n\nPlease ping the above handles when putting up PRs.\n\n---\n\nGet complete control over drag and drop behaviour with Draggable! Draggable abstracts\nnative browser events into a comprehensive API to create a custom drag and drop experience.\n`Draggable` comes with additional modules: `Sortable`, `Droppable`, `Swappable`. Draggable\nitself does not perform any sorting behaviour while dragging, but does the heavy lifting, e.g.\ncreates mirror, emits events, manages sensor events, makes elements draggable.\n\nThe additional modules are built on top of `Draggable` and therefore provide a similar API\ninterface, for more information read the documentation below.\n\n**Features**\n\n- Works with native drag, mouse, touch and force touch events\n- Can extend dragging behaviour by hooking into draggables event life cycle\n- Can extend drag detection by adding sensors to draggable\n- The library is targeted ES6 first\n\n## Table of Contents\n\n- [Install](#install)\n- [Documentation](#documentation)\n- [Contributing](#contributing)\n- [Roadmap](#roadmap)\n- [Copyright](#copyright)\n\n## Install\n\nYou can install the library via npm.\n\n```\nnpm install @shopify/draggable --save\n```\n\nor via yarn:\n\n```\nyarn add @shopify/draggable\n```\n\nor via CDN\n\n```html\n<!-- Entire bundle -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/draggable.bundle.js\"></script>\n<!-- legacy bundle for older browsers (IE11) -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/draggable.bundle.legacy.js\"></script>\n<!-- Draggable only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/draggable.js\"></script>\n<!-- Sortable only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/sortable.js\"></script>\n<!-- Droppable only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/droppable.js\"></script>\n<!-- Swappable only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/swappable.js\"></script>\n<!-- Plugins only -->\n<script src=\"https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8/lib/plugins.js\"></script>\n```\n\n## Browser Compatibility\n\n| ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) |\n| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |\n| Latest ✔                                                                                 | Latest ✔                                                                                    | 11+ ✔                                                                                                                        | Latest ✔                                                                              | Latest ✔                                                                                 | Latest ✔                                                                           |\n\n## Bundle sizes\n\n| Package name               | ES6 bundle sizes | ES5 bundle sizes |\n| -------------------------- | ---------------- | ---------------- |\n| draggable.bundle.js        | ~11kb            | ~19.2kb          |\n| draggable.bundle.legacy.js | ~19.2kb          | ~25.63kb         |\n| draggable.js               | ~8.06kb          | ~15.36kb         |\n| sortable.js                | ~8.93kb          | ~16.51kb         |\n| swappable.js               | ~8.56kb          | ~16.14kb         |\n| droppable.js               | ~8.8kb           | ~16.55kb         |\n| plugins.js                 | ~2.37kb          | ~8.76kb          |\n| plugins/collidable.js      | ~1.45kb          | ~7.81kb          |\n| plugins/snappable.js       | ~1.19kb          | ~6.94kb          |\n| plugins/swap-animation.js  | ~1kb             | ~6.65kb          |\n\n## Documentation\n\nYou can find the documentation for each module within their respective directories.\n\n- [Draggable](src/Draggable)\n  - [DragEvent](src/Draggable/DragEvent)\n  - [DraggableEvent](src/Draggable/DraggableEvent)\n  - [Plugins](src/Draggable/Plugins)\n    - [Announcement](src/Draggable/Plugins/Announcement)\n    - [Focusable](src/Draggable/Plugins/Focusable)\n    - [Mirror](src/Draggable/Plugins/Mirror)\n    - [MirrorEvent](src/Draggable/Plugins/Mirror/MirrorEvent)\n    - [Scrollable](src/Draggable/Plugins/Scrollable)\n  - [Sensors](src/Draggable/Sensors)\n    - [DragSensor](src/Draggable/Sensors/DragSensor)\n    - [ForceTouchSensor](src/Draggable/Sensors/ForceTouchSensor)\n    - [MouseSensor](src/Draggable/Sensors/MouseSensor)\n    - [Sensor](src/Draggable/Sensors/Sensor)\n    - [SensorEvent](src/Draggable/Sensors/SensorEvent)\n    - [TouchSensor](src/Draggable/Sensors/TouchSensor)\n- [Droppable](src/Droppable)\n  - [DroppableEvent](src/Droppable/DroppableEvent)\n- [Plugins](src/Plugins)\n  - [Collidable](src/Plugins/Collidable)\n  - [ResizeMirror](src/Plugins/ResizeMirror)\n  - [Snappable](src/Plugins/Snappable)\n  - [SwapAnimation](src/Plugins/SwapAnimation)\n- [Sortable](src/Sortable)\n  - [SortableEvent](src/Sortable/SortableEvent)\n- [Swappable](src/Swappable)\n  - [SwappableEvent](src/Swappable/SwappableEvent)\n\n## Running examples\n\nTo run the `examples` project locally, simply run the following from the `draggable` root:\n\n```\nyarn && yarn start\n```\n\nThis will start a server that hosts the contents of `examples/`. It also watches for file\nchanges from both `src/` and `examples/src` and reloads the browser.\n\n## Contributing\n\nContributions are more than welcome, the code base is still new and needs more love.\n\nFor more information, please checkout the [contributing document](https://github.com/Shopify/draggable/blob/master/CONTRIBUTING.md).\n\n## Roadmap\n\nWe are currently working on `v1.0.0-beta.8`. Check out the [project board](https://github.com/Shopify/draggable/projects/3) to see tasks and follow progress on the release. Any Pull Requests should be pointed against the feature branch `v1.0.0-beta.8`.\n\n## Related resources\n\n- [Ember CLI Shim](https://github.com/timrourke/ember-cli-shopify-draggable-shim) on Github by [@timrourke](https://github.com/timrourke)\n- [Ember CLI Shim](https://www.npmjs.com/package/ember-cli-shopify-draggable-shim) on NPM by [@timrourke](https://github.com/timrourke)\n\n## Copyright\n\nCopyright (c) 2018 Shopify. See LICENSE.md for further details.\n","readmeFilename":"README.md"}