{"_id":"@bootstrap-wc/plugin-sweetalert2","_rev":"5-3afee50ce0cb0ac6a088959fdb72c73b","name":"@bootstrap-wc/plugin-sweetalert2","dist-tags":{"latest":"3.0.0"},"versions":{"0.2.0":{"name":"@bootstrap-wc/plugin-sweetalert2","version":"0.2.0","keywords":["bootstrap","web-components","lit","plugin","sweetalert2"],"license":"MIT","_id":"@bootstrap-wc/plugin-sweetalert2@0.2.0","maintainers":[{"name":"grvpanchal","email":"grvpanchal@gmail.com"}],"homepage":"https://github.com/grvpanchal/bootstrap-wc#readme","bugs":{"url":"https://github.com/grvpanchal/bootstrap-wc/issues"},"dist":{"shasum":"e8e0ecb4610be7d48952ee459e0e3435b60b84d4","tarball":"https://registry.npmjs.org/@bootstrap-wc/plugin-sweetalert2/-/plugin-sweetalert2-0.2.0.tgz","fileCount":17,"integrity":"sha512-3A/dUGdZbwUex0H1VTzKrOYvGc7QtMu1jtQcfD0gDnUunecTKgCKoXHxf3WYwKy9B8HPudOTmKIEE8HQ8whnJQ==","signatures":[{"sig":"MEYCIQDwutr1lFEYtnUinSJjOeTnKZSZFC684dz6QCRm+iq6wQIhALFcHsMNUZmaXg8CDWOfY1u4gk2uzqXAC5IP2YjoDoct","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12792},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./define":{"types":"./dist/define.d.ts","import":"./dist/define.js"}},"gitHead":"943d81bf950a10162a2360055e31db981ac80d40","scripts":{"build":"tsc -b","clean":"rm -rf dist *.tsbuildinfo"},"_npmUser":{"name":"grvpanchal","email":"grvpanchal@gmail.com"},"repository":{"url":"git+https://github.com/grvpanchal/bootstrap-wc.git","type":"git","directory":"packages/plugin-sweetalert2"},"_npmVersion":"10.8.2","description":"SweetAlert2 wrapper. Exposes `bsSwal()` and a <bs-swal> element.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"lit":"^3.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"sweetalert2":"^11.14.0","@bootstrap-wc/components":"^0.5.0"},"peerDependenciesMeta":{"sweetalert2":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/plugin-sweetalert2_0.2.0_1778096461768_0.646234074939348","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@bootstrap-wc/plugin-sweetalert2","version":"1.0.0","keywords":["bootstrap","web-components","lit","plugin","sweetalert2"],"license":"MIT","_id":"@bootstrap-wc/plugin-sweetalert2@1.0.0","maintainers":[{"name":"grvpanchal","email":"grvpanchal@gmail.com"}],"homepage":"https://github.com/grvpanchal/bootstrap-wc#readme","bugs":{"url":"https://github.com/grvpanchal/bootstrap-wc/issues"},"dist":{"shasum":"408f9d31fd4fcbc8a72c51535d517090954388cc","tarball":"https://registry.npmjs.org/@bootstrap-wc/plugin-sweetalert2/-/plugin-sweetalert2-1.0.0.tgz","fileCount":17,"integrity":"sha512-KPW1Vr4JO/o6uOaYqUswlk/wuqCvYlYDHw4+3Av/6TgeQz4o/wz35yUsp7K+kJCo0G0n1A8GpTn+CYuWkg6+EQ==","signatures":[{"sig":"MEUCIQCQhdWXC8HCWmYGxbUWi8PrFTNpl45GpJfhjbDG8CV0FgIgC7mhmvVBIbzobIXGzVyF7mymtAGn/gyvrWWJiGaQB4g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12792},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./define":{"types":"./dist/define.d.ts","import":"./dist/define.js"}},"gitHead":"e2914329b77716f04434c525bd43bc8daa0fa112","scripts":{"build":"tsc -b","clean":"rm -rf dist *.tsbuildinfo"},"_npmUser":{"name":"grvpanchal","email":"grvpanchal@gmail.com"},"repository":{"url":"git+https://github.com/grvpanchal/bootstrap-wc.git","type":"git","directory":"packages/plugin-sweetalert2"},"_npmVersion":"10.8.2","description":"SweetAlert2 wrapper. Exposes `bsSwal()` and a <bs-swal> element.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"lit":"^3.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"sweetalert2":"^11.14.0","@bootstrap-wc/components":"^0.6.0"},"peerDependenciesMeta":{"sweetalert2":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/plugin-sweetalert2_1.0.0_1778384581847_0.8435246178199365","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@bootstrap-wc/plugin-sweetalert2","version":"1.1.0","keywords":["bootstrap","web-components","lit","plugin","sweetalert2"],"license":"MIT","_id":"@bootstrap-wc/plugin-sweetalert2@1.1.0","maintainers":[{"name":"grvpanchal","email":"grvpanchal@gmail.com"}],"homepage":"https://github.com/grvpanchal/bootstrap-wc#readme","bugs":{"url":"https://github.com/grvpanchal/bootstrap-wc/issues"},"dist":{"shasum":"777621e80496263f5b0c3ea19fa7a7475023e578","tarball":"https://registry.npmjs.org/@bootstrap-wc/plugin-sweetalert2/-/plugin-sweetalert2-1.1.0.tgz","fileCount":17,"integrity":"sha512-B7xkhw3uvqzDhjSUUumO27BrdkC0ZpArRjj9ohqkdQ4I7THjbRENIehjeeik4Af1vGRqtny64VRVi4xT/cHV+A==","signatures":[{"sig":"MEUCIEG4ix2lYmekdCxYRDxfIElaLC+6z+0bhCecMR1hAEGKAiEA8MyOASFKESPVHQi9gEtpFtiGUyuhDcrvRlBWdk7nWhg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12596},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./define":{"types":"./dist/define.d.ts","import":"./dist/define.js"}},"gitHead":"69e62e0ff957c9575ee50033a34707aa3a2ee886","scripts":{"build":"tsc -b","clean":"rm -rf dist *.tsbuildinfo"},"_npmUser":{"name":"grvpanchal","email":"grvpanchal@gmail.com"},"repository":{"url":"git+https://github.com/grvpanchal/bootstrap-wc.git","type":"git","directory":"packages/plugin-sweetalert2"},"_npmVersion":"10.8.2","description":"SweetAlert2 wrapper. Exposes `bsSwal()` and a <bs-swal> element.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"lit":"^3.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"sweetalert2":"^11.14.0","@bootstrap-wc/components":"^0.6.0"},"peerDependenciesMeta":{"sweetalert2":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/plugin-sweetalert2_1.1.0_1778420507513_0.9500126701591649","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@bootstrap-wc/plugin-sweetalert2","version":"2.0.0","keywords":["bootstrap","web-components","lit","plugin","sweetalert2"],"license":"MIT","_id":"@bootstrap-wc/plugin-sweetalert2@2.0.0","maintainers":[{"name":"grvpanchal","email":"grvpanchal@gmail.com"}],"homepage":"https://github.com/grvpanchal/bootstrap-wc#readme","bugs":{"url":"https://github.com/grvpanchal/bootstrap-wc/issues"},"dist":{"shasum":"d18643f806dcf0848817d62f25e26adf842289a3","tarball":"https://registry.npmjs.org/@bootstrap-wc/plugin-sweetalert2/-/plugin-sweetalert2-2.0.0.tgz","fileCount":17,"integrity":"sha512-evun/i2ocpi3iaUVRqvQHVPyU5XMkd/KT8lHPuyAXAgdU5jwsviqCMv6EDCwvuU7YPXpfj/VPTiPNvlxjSy/cw==","signatures":[{"sig":"MEQCIGjI+QcXuVTTf28O2/RpVBJtm7FWKbS5XlyML7Rr6+sEAiB/Ccs8WAitPvFG1/ck/4CwsAv4TVnzCfhMrjLHwgsZTA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12596},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./define":{"types":"./dist/define.d.ts","import":"./dist/define.js"}},"gitHead":"0d1e9911dac2b3112e9af8d53829c2f394113cf5","scripts":{"build":"tsc -b","clean":"rm -rf dist *.tsbuildinfo"},"_npmUser":{"name":"grvpanchal","email":"grvpanchal@gmail.com"},"repository":{"url":"git+https://github.com/grvpanchal/bootstrap-wc.git","type":"git","directory":"packages/plugin-sweetalert2"},"_npmVersion":"10.8.2","description":"SweetAlert2 wrapper. Exposes `bsSwal()` and a <bs-swal> element.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"lit":"^3.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"sweetalert2":"^11.14.0","@bootstrap-wc/components":"^0.7.0"},"peerDependenciesMeta":{"sweetalert2":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/plugin-sweetalert2_2.0.0_1778529109170_0.8916730689826138","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@bootstrap-wc/plugin-sweetalert2","version":"3.0.0","description":"SweetAlert2 wrapper. Exposes `bsSwal()` and a <bs-swal> element.","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./define":{"types":"./dist/define.d.ts","import":"./dist/define.js"}},"scripts":{"build":"tsc -b","clean":"rm -rf dist *.tsbuildinfo"},"dependencies":{"lit":"^3.2.1"},"peerDependencies":{"@bootstrap-wc/components":"^0.8.0","sweetalert2":"^11.14.0"},"peerDependenciesMeta":{"sweetalert2":{"optional":true}},"publishConfig":{"access":"public"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/grvpanchal/bootstrap-wc.git","directory":"packages/plugin-sweetalert2"},"keywords":["bootstrap","web-components","lit","plugin","sweetalert2"],"_id":"@bootstrap-wc/plugin-sweetalert2@3.0.0","gitHead":"1c46cae3f4aa04482d9b95e473b286f06a647e4e","bugs":{"url":"https://github.com/grvpanchal/bootstrap-wc/issues"},"homepage":"https://github.com/grvpanchal/bootstrap-wc#readme","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-sDIFPxeCCAghOzbScmd+WjoH0uh2WuoqRoPgmTY8/HuUHKS/WjBHfYrgoo4RXMdoQHv0C0LEzKZbBVCpsyCxVQ==","shasum":"740ee281df4960d678e31a26ba60aa9d8a024f69","tarball":"https://registry.npmjs.org/@bootstrap-wc/plugin-sweetalert2/-/plugin-sweetalert2-3.0.0.tgz","fileCount":17,"unpackedSize":12596,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHOUtadjTc/nrRi3trcLyC48451LwH1MBgY7lVp/Fu3IAiAFbTzNUN7akr5cQYpt4HTG+NXwudZzaN+1bSrclARP/w=="}]},"_npmUser":{"name":"grvpanchal","email":"grvpanchal@gmail.com"},"directories":{},"maintainers":[{"name":"grvpanchal","email":"grvpanchal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-sweetalert2_3.0.0_1783390821181_0.5205972256713867"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-06T19:41:01.668Z","modified":"2026-07-07T02:20:21.442Z","0.2.0":"2026-05-06T19:41:01.913Z","1.0.0":"2026-05-10T03:43:01.969Z","1.1.0":"2026-05-10T13:41:47.653Z","2.0.0":"2026-05-11T19:51:49.327Z","3.0.0":"2026-07-07T02:20:21.330Z"},"bugs":{"url":"https://github.com/grvpanchal/bootstrap-wc/issues"},"license":"MIT","homepage":"https://github.com/grvpanchal/bootstrap-wc#readme","keywords":["bootstrap","web-components","lit","plugin","sweetalert2"],"repository":{"type":"git","url":"git+https://github.com/grvpanchal/bootstrap-wc.git","directory":"packages/plugin-sweetalert2"},"description":"SweetAlert2 wrapper. Exposes `bsSwal()` and a <bs-swal> element.","maintainers":[{"name":"grvpanchal","email":"grvpanchal@gmail.com"}],"readme":"# @bootstrap-wc/plugin-sweetalert2\n\nSweetAlert2 wrapper. Exposes `bsSwal()` and a <bs-swal> element.\n\n`<bs-swal>` is a Lit-based web-component wrapper for [sweetalert2].\n\n## Why a wrapper?\n\nThe upstream library was written before web components and assumes CSS rules\nin the host document can target its generated markup. This wrapper renders in\n**light DOM** (no shadow root) so its stylesheet selectors continue to apply.\n\n## Install\n\n```bash\nnpm install @bootstrap-wc/plugin-sweetalert2 sweetalert2\n```\n\n## Usage\n\n```html\n<script type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@bootstrap-wc/plugin-sweetalert2/dist/define.js\"></script>\n\n<bs-swal options='{\"key\": \"value\"}'>\n  <!-- slotted markup the plugin operates on -->\n</bs-swal>\n```\n\nOr in JS:\n\n```js\nimport '@bootstrap-wc/plugin-sweetalert2/define';\n\nconst el = document.querySelector('bs-swal');\nel.addEventListener('bs:ready', (e) => console.log('plugin ready', e.detail));\n```\n\n## Compatibility caveats\n\n- Lives in **light DOM** so plugin CSS reaches the children.\n- If you place `<bs-swal>` inside another wc component (e.g. `<bs-modal>`),\n  the plugin still operates only on the *slotted* light-DOM children — that\n  works fine for wc components that use named slots.\n- Do **not** combine with `document`-wide jQuery selectors that assume the\n  plugin DOM is at the page root.\n\nSee `/packages/PLUGINS.md` for the full plugin compatibility matrix.\n\n## Status\n\nPreview (0.1.0). Subclass-overridable lifecycle; per-plugin specialisation\ntypically needs ~30 lines of code. Contributions welcome.\n","readmeFilename":"README.md"}