{"_id":"@daltonr/notifywrite-svelte","_rev":"2-0b5d27f7c62e38c92cd01f46d30b76db","name":"@daltonr/notifywrite-svelte","dist-tags":{"latest":"0.3.0"},"versions":{"0.2.0":{"name":"@daltonr/notifywrite-svelte","version":"0.2.0","_id":"@daltonr/notifywrite-svelte@0.2.0","maintainers":[{"name":"richardadalton","email":"richard@devjoy.com"}],"dist":{"shasum":"bc881ef05654fdadafbfe41bbaec9cb9cf772505","tarball":"https://registry.npmjs.org/@daltonr/notifywrite-svelte/-/notifywrite-svelte-0.2.0.tgz","fileCount":10,"integrity":"sha512-DpG/l+RpZQUmnVBVAbnMoPQ2yHs+sHVwqWDKtJNUiWErhku67QAGGc5i1wQVdpqvvLvhpqUmQEUXZZIuIOxT4Q==","signatures":[{"sig":"MEQCIA7Grg/GvaMSBMImLLPlibwMg3K/z150rZZdcoD0gO8OAiBdev3FcsBnf8dylgV0vxUdLfqcUL0uDBY+5psc4IIDgg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14136},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"5cf4271fcaabe298ccb050d0575d9050cf18406d","scripts":{"test":"vitest run","build":"tsup src/index.ts --format esm,cjs --dts --clean","typecheck":"tsc --noEmit"},"_npmUser":{"name":"richardadalton","email":"richard@devjoy.com"},"_npmVersion":"10.9.3","description":"Svelte adapter for @daltonr/notifywrite","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","svelte":"^5.0.0","vitest":"^4.1.9","happy-dom":"^14.0.0","typescript":"^5.5.0","@daltonr/notifywrite":"file:../..","@sveltejs/vite-plugin-svelte":"^4.0.0"},"peerDependencies":{"svelte":">=5","@daltonr/notifywrite":"*"},"_npmOperationalInternal":{"tmp":"tmp/notifywrite-svelte_0.2.0_1783076100802_0.9691440015457546","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@daltonr/notifywrite-svelte","version":"0.3.0","type":"module","description":"Svelte adapter for @daltonr/notifywrite","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsup src/index.ts --format esm,cjs --dts --clean","test":"vitest run","typecheck":"tsc --noEmit"},"peerDependencies":{"svelte":">=5","@daltonr/notifywrite":"^0.3.0"},"devDependencies":{"@daltonr/notifywrite":"^0.3.0","@sveltejs/vite-plugin-svelte":"^4.0.0","happy-dom":"^14.0.0","svelte":"^5.0.0","tsup":"^8.0.0","typescript":"^5.5.0","vitest":"^4.1.9"},"license":"MIT","author":{"name":"Richard Dalton","email":"richard.a.dalton@gmail.com"},"homepage":"https://github.com/richardadalton/notifywrite#readme","repository":{"type":"git","url":"git+https://github.com/richardadalton/notifywrite.git","directory":"packages/svelte-adapter"},"bugs":{"url":"https://github.com/richardadalton/notifywrite/issues"},"keywords":["notifications","toast","headless","svelte","store"],"_id":"@daltonr/notifywrite-svelte@0.3.0","gitHead":"c4591f969b7de942ec3aeb820b3bcc57172a6d98","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-3CMxRYH+BRyPeUJFCp25C065ipBw3kV0VfkbwgcAcvdSZgCgn66jfSF4ocm9/j5YRHCd6E4aBTSvVfzTLK2syw==","shasum":"0abf669ded9555fcbbb0e8c6380e426ca04016ec","tarball":"https://registry.npmjs.org/@daltonr/notifywrite-svelte/-/notifywrite-svelte-0.3.0.tgz","fileCount":12,"unpackedSize":18139,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDWWxQVOPQrELtTRcsZN9wma2u1CtPNdAICm1oLsS9KpwIhAJ/zkmjGbo7toe2wjNvxgsF2vohRleDkpC/57VsL7ny3"}]},"_npmUser":{"name":"richardadalton","email":"richard@devjoy.com"},"directories":{},"maintainers":[{"name":"richardadalton","email":"richard@devjoy.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/notifywrite-svelte_0.3.0_1783577330692_0.58383870457713"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-03T10:55:00.653Z","modified":"2026-07-09T06:08:51.239Z","0.2.0":"2026-07-03T10:55:00.958Z","0.3.0":"2026-07-09T06:08:50.821Z"},"description":"Svelte adapter for @daltonr/notifywrite","maintainers":[{"name":"richardadalton","email":"richard@devjoy.com"}],"readme":"# @daltonr/notifywrite-svelte\n\nSvelte adapter for [@daltonr/notifywrite](https://github.com/richardadalton/notifywrite) — the headless notification engine as a `Readable` store, auto-managed by the store's start/stop contract (no `onDestroy` needed).\n\n```bash\nnpm install @daltonr/notifywrite @daltonr/notifywrite-svelte\n```\n\n```svelte\n<script>\n  import { NotificationEngine } from \"@daltonr/notifywrite\";\n  import { provideNotifications, useNotifications } from \"@daltonr/notifywrite-svelte\";\n\n  const engine = new NotificationEngine({ order: \"newest-first\" });\n  provideNotifications(engine); // descendants call useNotificationsContext()\n  const { notifications, add, dismiss } = useNotifications(engine);\n</script>\n\n{#each $notifications as n (n.id)}\n  <div on:click={() => dismiss(n.id)}>{n.message}</div>\n{/each}\n```\n\nSee the [project README](https://github.com/richardadalton/notifywrite) for the full engine API.\n\nMIT © Richard Dalton\n","readmeFilename":"README.md","homepage":"https://github.com/richardadalton/notifywrite#readme","keywords":["notifications","toast","headless","svelte","store"],"repository":{"type":"git","url":"git+https://github.com/richardadalton/notifywrite.git","directory":"packages/svelte-adapter"},"author":{"name":"Richard Dalton","email":"richard.a.dalton@gmail.com"},"bugs":{"url":"https://github.com/richardadalton/notifywrite/issues"},"license":"MIT"}