{"_id":"@anil-labs/lightbox-gallery-svelte","_rev":"2-2b22422762ec80a2dcd420a62baad262","name":"@anil-labs/lightbox-gallery-svelte","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@anil-labs/lightbox-gallery-svelte","version":"0.1.0","keywords":["svelte","lightbox","gallery","image","zoom","carousel"],"author":"Er. Anil Kumar Thakur <anilkumarthakur60@gmail.com>","license":"MIT","_id":"@anil-labs/lightbox-gallery-svelte@0.1.0","maintainers":[{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"}],"homepage":"https://github.com/anilkumarthakur60/lightbox-gallery/tree/main/packages/svelte#readme","bugs":"https://github.com/anilkumarthakur60/lightbox-gallery/issues","dist":{"shasum":"5ff858a0bda045362294d130c9c85924f65d48a5","tarball":"https://registry.npmjs.org/@anil-labs/lightbox-gallery-svelte/-/lightbox-gallery-svelte-0.1.0.tgz","fileCount":9,"integrity":"sha512-GtTHfb5jF11MayEeTZqVJaR+tP9NBHgVQ95BpL7a1nXw8cIwOi8H8JCRI4XnMbtAmrgl6dd5Hds5/Is/5PaCig==","signatures":[{"sig":"MEUCIQCR3cGnwsC9QxeZfhv/SSgoASTnQMZr8BZeHzfDavyHPAIgPB49ockvWRE7MhnS2gO37Z6itwFihRaY5yJROEhyazU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22173},"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/lightbox-gallery-core\"","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"},"repository":{"url":"git+https://github.com/anilkumarthakur60/lightbox-gallery.git","type":"git","directory":"packages/svelte"},"description":"Svelte bindings for @anil-labs/lightbox-gallery-core — a modern lightbox gallery with zoom, swipe, thumbnails, slideshow and video support.","directories":{},"sideEffects":false,"_nodeVersion":"24.18.0","dependencies":{"@anil-labs/lightbox-gallery-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/lightbox-gallery-svelte_0.1.0_1784049285756_0.9362810441408387","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@anil-labs/lightbox-gallery-svelte","version":"0.1.1","description":"Svelte bindings for @anil-labs/lightbox-gallery-core — a modern lightbox gallery with zoom, swipe, thumbnails, slideshow and video support.","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","lightbox","gallery","image","zoom","carousel"],"engines":{"node":">=18"},"license":"MIT","author":"Er. Anil Kumar Thakur <anilkumarthakur60@gmail.com>","repository":{"type":"git","url":"git+https://github.com/anilkumarthakur60/lightbox-gallery.git","directory":"packages/svelte"},"homepage":"https://github.com/anilkumarthakur60/lightbox-gallery/tree/main/packages/svelte#readme","bugs":"https://github.com/anilkumarthakur60/lightbox-gallery/issues","publishConfig":{"access":"public"},"dependencies":{"@anil-labs/lightbox-gallery-core":"^0.2.0"},"peerDependencies":{"svelte":"^4.0.0 || ^5.0.0"},"devDependencies":{"svelte":"^5.56.5","tsup":"^8.5.1","typescript":"^5.7.2"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"echo \"covered by @anil-labs/lightbox-gallery-core\"","typecheck":"tsc --noEmit"},"_nodeVersion":"24.18.0","_id":"@anil-labs/lightbox-gallery-svelte@0.1.1","dist":{"integrity":"sha512-75b8qZPE5C3e/AJOW40adwKOSYoq60RSZ6XnRevBTDz4fKyzdEi0ofjQoNr9Q6D4qcf8vX1e0/26SQ4JsK9hHg==","shasum":"24c1def401c894a805387cad6b327a671f9f8543","tarball":"https://registry.npmjs.org/@anil-labs/lightbox-gallery-svelte/-/lightbox-gallery-svelte-0.1.1.tgz","fileCount":9,"unpackedSize":22173,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCGPemgycRVbUvzJdJDUVUhjfKeHBrzdiwUwxtkhNn7VQIgNMAwCm7VsqEouZoDXpPQYJyK7TZw+6y4dO3Y0MYgc7M="}]},"_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/lightbox-gallery-svelte_0.1.1_1784085880569_0.578106098561239"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-14T17:14:45.579Z","modified":"2026-07-15T03:24:40.824Z","0.1.0":"2026-07-14T17:14:45.894Z","0.1.1":"2026-07-15T03:24:40.705Z"},"bugs":"https://github.com/anilkumarthakur60/lightbox-gallery/issues","author":"Er. Anil Kumar Thakur <anilkumarthakur60@gmail.com>","license":"MIT","homepage":"https://github.com/anilkumarthakur60/lightbox-gallery/tree/main/packages/svelte#readme","keywords":["svelte","lightbox","gallery","image","zoom","carousel"],"repository":{"type":"git","url":"git+https://github.com/anilkumarthakur60/lightbox-gallery.git","directory":"packages/svelte"},"description":"Svelte bindings for @anil-labs/lightbox-gallery-core — a modern lightbox gallery with zoom, swipe, thumbnails, slideshow and video support.","maintainers":[{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"}],"readme":"# @anil-labs/lightbox-gallery-svelte\n\nSvelte bindings for [`@anil-labs/lightbox-gallery-core`](https://www.npmjs.com/package/@anil-labs/lightbox-gallery-core) — a modern lightbox gallery with zoom, swipe, thumbnails, slideshow, fullscreen and video support. Works with Svelte 4 and 5.\n\n```bash\npnpm add @anil-labs/lightbox-gallery-svelte @anil-labs/lightbox-gallery-core\n```\n\n```svelte\n<script>\n  import { createLightbox } from '@anil-labs/lightbox-gallery-svelte'\n  import '@anil-labs/lightbox-gallery-core/styles.css'\n\n  const items = [{ src: '/photos/1.jpg', caption: 'Sunrise' }]\n  const gallery = createLightbox(items, { loop: true })\n  const { isOpen, index } = gallery\n</script>\n\n{#each items as item, i}\n  <button on:click={() => gallery.open(i)}><img src={item.thumb} alt=\"\" /></button>\n{/each}\n```\n\nAlso ships a `use:lightbox` action for progressive enhancement of plain links.\n\nFull documentation: see the repository README.\n\nMIT\n","readmeFilename":""}