{"_id":"@anil-labs/dnd-core","_rev":"2-f1d10f56a057a4f98db06e8082b85454","name":"@anil-labs/dnd-core","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@anil-labs/dnd-core","version":"0.1.0","keywords":["drag-and-drop","dnd","sortable","draggable","drag","drop","list","reorder","multi-drag","typescript"],"author":"Er. Anil Kumar Thakur <anilkumarthakur60@gmail.com>","license":"MIT","_id":"@anil-labs/dnd-core@0.1.0","maintainers":[{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"}],"homepage":"https://github.com/anilkumarthakur60/vue-dnd/tree/main/packages/core#readme","bugs":"https://github.com/anilkumarthakur60/vue-dnd/issues","dist":{"shasum":"5f535e21605b9c479962ed21272521970c002dbc","tarball":"https://registry.npmjs.org/@anil-labs/dnd-core/-/dnd-core-0.1.0.tgz","fileCount":12,"integrity":"sha512-KDHB6tXUeomAoADYD6bCK5Kl06W6TDyCynmEUWSxq9QuwNvBGYSkb6E0NWWwyF7iYApKCra3Q/10v/qNJBiLbg==","signatures":[{"sig":"MEQCIEO/ayTGZBaagMM0pFDPF0h9z1Ulik2GVIVuZ93ONtOsAiBeMB61j6cVia7FdbmWoslSUKDubbvBmmt4fBbJ0AswvA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":439944},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","unpkg":"./dist/index.global.js","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./styles.css":"./dist/styles.css"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"},"jsdelivr":"./dist/index.global.js","repository":{"url":"git+https://github.com/anilkumarthakur60/vue-dnd.git","type":"git","directory":"packages/core"},"description":"Zero-dependency drag & drop engine — sortable lists, cross-list groups, clone, multi-drag, swap mode, keyboard a11y, FLIP animation and autoscroll, built on Pointer Events.","directories":{},"sideEffects":["**/*.css"],"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","jsdom":"^25.0.1","vitest":"^2.1.8","typescript":"^5.7.2","@vitest/coverage-v8":"^2.1.9"},"_npmOperationalInternal":{"tmp":"tmp/dnd-core_0.1.0_1784134694750_0.06621786287320641","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@anil-labs/dnd-core","version":"0.1.1","description":"Zero-dependency drag & drop engine — sortable lists, cross-list groups, clone, multi-drag, swap mode, keyboard a11y, FLIP animation and autoscroll, built on Pointer Events.","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","unpkg":"./dist/index.global.js","jsdelivr":"./dist/index.global.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./styles.css":"./dist/styles.css"},"sideEffects":["**/*.css"],"keywords":["drag-and-drop","dnd","sortable","draggable","drag","drop","list","reorder","multi-drag","typescript"],"engines":{"node":">=18"},"license":"MIT","author":"Er. Anil Kumar Thakur <anilkumarthakur60@gmail.com>","repository":{"type":"git","url":"git+https://github.com/anilkumarthakur60/dnd.git","directory":"packages/core"},"homepage":"https://github.com/anilkumarthakur60/dnd/tree/main/packages/core#readme","bugs":"https://github.com/anilkumarthakur60/dnd/issues","publishConfig":{"access":"public"},"devDependencies":{"@vitest/coverage-v8":"^2.1.9","jsdom":"^25.0.1","tsup":"^8.3.5","typescript":"^5.7.2","vitest":"^2.1.8"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run","test:coverage":"vitest run --coverage","typecheck":"tsc --noEmit"},"_nodeVersion":"24.18.0","_id":"@anil-labs/dnd-core@0.1.1","dist":{"integrity":"sha512-WNSmwAMqKqJTXCjA31g4LuHzz2bDIm9Z7kos/fpaQ/qrjqoaQw3DQkhDLHI+16vs3OpDcy8Zw+39pLur+DCzKw==","shasum":"e6c76f0ed47adc105435012ccd5f89ceb3690cec","tarball":"https://registry.npmjs.org/@anil-labs/dnd-core/-/dnd-core-0.1.1.tgz","fileCount":12,"unpackedSize":439928,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID2l43dM1B+USiL7pwwVsOby+plZoMaS74Sk41Z8KCk2AiA/hegE62D9hC5lkLWmJsr2puUvcA4B8fFYY5HHeWvzZw=="}]},"_npmUser":{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"},"directories":{},"maintainers":[{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dnd-core_0.1.1_1784262976659_0.5718705310170975"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-15T16:58:14.627Z","modified":"2026-07-17T04:36:17.070Z","0.1.0":"2026-07-15T16:58:14.940Z","0.1.1":"2026-07-17T04:36:16.889Z"},"bugs":"https://github.com/anilkumarthakur60/dnd/issues","author":"Er. Anil Kumar Thakur <anilkumarthakur60@gmail.com>","license":"MIT","homepage":"https://github.com/anilkumarthakur60/dnd/tree/main/packages/core#readme","keywords":["drag-and-drop","dnd","sortable","draggable","drag","drop","list","reorder","multi-drag","typescript"],"repository":{"type":"git","url":"git+https://github.com/anilkumarthakur60/dnd.git","directory":"packages/core"},"description":"Zero-dependency drag & drop engine — sortable lists, cross-list groups, clone, multi-drag, swap mode, keyboard a11y, FLIP animation and autoscroll, built on Pointer Events.","maintainers":[{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"}],"readme":"# @anil-labs/dnd-core\n\nZero-dependency drag & drop engine — sortable lists, cross-list groups, clone, multi-drag, swap mode, keyboard a11y, FLIP animation and autoscroll, built on Pointer Events.\n\n```ts\nimport { createSortable } from '@anil-labs/dnd-core'\nimport '@anil-labs/dnd-core/styles.css'\n\ncreateSortable(document.querySelector('#list'), {\n  group: 'tasks',\n  animation: 200,\n  onEnd: ({ oldIndex, newIndex }) => console.log(oldIndex, '→', newIndex),\n})\n```\n\nFramework bindings: [`@anil-labs/dnd-react`](https://www.npmjs.com/package/@anil-labs/dnd-react) · [`@anil-labs/dnd`](https://www.npmjs.com/package/@anil-labs/dnd) · [`@anil-labs/dnd-svelte`](https://www.npmjs.com/package/@anil-labs/dnd-svelte) · [`@anil-labs/dnd-solid`](https://www.npmjs.com/package/@anil-labs/dnd-solid) · [`@anil-labs/dnd-element`](https://www.npmjs.com/package/@anil-labs/dnd-element)\n\n- **[Documentation](https://anilkumarthakur60.github.io/dnd/)** · **[Live demos](https://anil-labs-dnd.vercel.app)**\n\nMIT © Er. Anil Kumar Thakur\n","readmeFilename":""}