{"_id":"@anil-labs/dnd-svelte","_rev":"2-03838374bc62e883b03126d8d0fa69c6","name":"@anil-labs/dnd-svelte","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@anil-labs/dnd-svelte","version":"0.1.0","keywords":["svelte","drag-and-drop","dnd","sortable","draggable","list","reorder"],"author":"Er. Anil Kumar Thakur <anilkumarthakur60@gmail.com>","license":"MIT","_id":"@anil-labs/dnd-svelte@0.1.0","maintainers":[{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"}],"homepage":"https://github.com/anilkumarthakur60/vue-dnd/tree/main/packages/svelte#readme","bugs":"https://github.com/anilkumarthakur60/vue-dnd/issues","dist":{"shasum":"1bea255fb2bae21884ddbbae7de60dd95695a7e9","tarball":"https://registry.npmjs.org/@anil-labs/dnd-svelte/-/dnd-svelte-0.1.0.tgz","fileCount":9,"integrity":"sha512-6W7NZnndeOs/k9u4vZGE25W/LuJS/g9jP2fcCiGI1dV8hIGnhKdiG2ThHCJx69RCbMzitlR8LjIsvtzph9F1VA==","signatures":[{"sig":"MEUCIQCtIOv8EHWnna58WdO2rezoowAuRwAjM9Sj8drBnL3dmAIgfHB4KjShTgynuAXqArvMthgdjAJGO+YuDbvqJ5caixE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15790},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","test":"echo \"covered by @anil-labs/dnd-core\"","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"},"repository":{"url":"git+https://github.com/anilkumarthakur60/vue-dnd.git","type":"git","directory":"packages/svelte"},"description":"Svelte bindings for @anil-labs/dnd-core — the use:draggable action for sortable lists, cross-list groups, multi-drag and keyboard a11y.","directories":{},"sideEffects":false,"_nodeVersion":"24.18.0","dependencies":{"@anil-labs/dnd-core":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","svelte":"^5.15.0","typescript":"^5.7.2"},"peerDependencies":{"svelte":"^4.0.0 || ^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/dnd-svelte_0.1.0_1784134694759_0.22532890286493967","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@anil-labs/dnd-svelte","version":"0.1.1","description":"Svelte bindings for @anil-labs/dnd-core — the use:draggable action for sortable lists, cross-list groups, multi-drag and keyboard a11y.","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"sideEffects":false,"keywords":["svelte","drag-and-drop","dnd","sortable","draggable","list","reorder"],"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/svelte"},"homepage":"https://github.com/anilkumarthakur60/dnd/tree/main/packages/svelte#readme","bugs":"https://github.com/anilkumarthakur60/dnd/issues","publishConfig":{"access":"public"},"dependencies":{"@anil-labs/dnd-core":"^0.1.1"},"peerDependencies":{"svelte":"^4.0.0 || ^5.0.0"},"devDependencies":{"svelte":"^5.15.0","tsup":"^8.3.5","typescript":"^5.7.2"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"echo \"covered by @anil-labs/dnd-core\"","typecheck":"tsc --noEmit"},"_nodeVersion":"24.18.0","_id":"@anil-labs/dnd-svelte@0.1.1","dist":{"integrity":"sha512-Aj+Saec+lvuX3ToAu54/uEYUmdIzeZl6dXVCZi5IiKxzyO/jhtCFvRMZCAqJRugCB/uYzlnd5yyIvtPErW/25Q==","shasum":"51817534db03a9ebcfd11359a908fdbfefb47256","tarball":"https://registry.npmjs.org/@anil-labs/dnd-svelte/-/dnd-svelte-0.1.1.tgz","fileCount":9,"unpackedSize":15774,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAx626X+bEAj/9udbWo3SEifOcC7GOBropsiXQozk7yPAiEAwdckrSV2QaE248a7r/SX4lsU/FygvvnlTdZCgdEEArg="}]},"_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-svelte_0.1.1_1784262975958_0.2767601170177816"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-15T16:58:14.636Z","modified":"2026-07-17T04:36:16.269Z","0.1.0":"2026-07-15T16:58:14.902Z","0.1.1":"2026-07-17T04:36:16.096Z"},"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/svelte#readme","keywords":["svelte","drag-and-drop","dnd","sortable","draggable","list","reorder"],"repository":{"type":"git","url":"git+https://github.com/anilkumarthakur60/dnd.git","directory":"packages/svelte"},"description":"Svelte bindings for @anil-labs/dnd-core — the use:draggable action for sortable lists, cross-list groups, multi-drag and keyboard a11y.","maintainers":[{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"}],"readme":"# @anil-labs/dnd-svelte\n\nSvelte bindings for [`@anil-labs/dnd-core`](https://www.npmjs.com/package/@anil-labs/dnd-core) — zero-dependency drag & drop with groups, clone, multi-drag, swap and keyboard a11y. Works with Svelte 4 and 5.\n\n```svelte\n<script>\n  import { draggable } from '@anil-labs/dnd-svelte'\n  import '@anil-labs/dnd-core/styles.css'\n\n  let items = $state([{ id: 1, text: 'Apple' }, { id: 2, text: 'Banana' }])\n</script>\n\n<ul use:draggable={{ items, onItemsChange: (v) => (items = v), animation: 200 }}>\n  {#each items as item, i (item.id)}\n    <li data-dnd-index={i} class=\"dnd-item\">{item.text}</li>\n  {/each}\n</ul>\n```\n\n- **[Documentation](https://anilkumarthakur60.github.io/dnd/frameworks/svelte)** · **[Live demo](https://anil-labs-dnd.vercel.app/svelte/)**\n\nMIT © Er. Anil Kumar Thakur\n","readmeFilename":""}