{"_id":"svelte-toasts","_rev":"4-846b0ddd0cd033a263bb044343342eea","name":"svelte-toasts","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"svelte-toasts","version":"1.0.0","scripts":{"cy:open":"cypress open","cy:run":"cypress run","dev":"rollup -c -w","lint":"eslint --color --ignore-path .gitignore .","build:lib":"rollup -c rollup.config.lib.js","prepare":"npm run build:lib","prepublishOnly":"npm run build:lib","start":"sirv public","test":"start-server-and-test dev http://localhost:5000 cy:run","storybook":"start-storybook -p 6006","build-storybook":"build-storybook","release":"release-it --dry-run"},"browserslist":["defaults"],"description":"A highly configurable notification/toast component with individual toast state management capabilities.","devDependencies":{"@babel/core":"7.13.8","@babel/eslint-parser":"7.13.8","@babel/preset-env":"7.13.9","@rollup/plugin-commonjs":"17.1.0","@rollup/plugin-node-resolve":"11.2.0","@storybook/addon-actions":"6.1.20","@storybook/addon-essentials":"6.1.20","@storybook/addon-links":"6.1.20","@storybook/svelte":"6.1.20","@tailwindcss/forms":"0.2.1","@testing-library/cypress":"7.0.4","autoprefixer":"10.2.4","babel-loader":"8.2.2","cypress":"6.6.0","eslint":"7.21.0","eslint-config-prettier":"8.1.0","eslint-plugin-cypress":"2.11.2","eslint-plugin-svelte3":"3.1.2","glob":"7.1.6","husky":"5.1.3","lint-staged":"10.5.4","node-sass":"5.0.0","postcss":"8.2.6","prettier":"2.2.1","prettier-plugin-svelte":"2.2.0","react-is":"17.0.1","release-it":"14.4.1","rollup":"2.40.0","rollup-plugin-css-only":"3.1.0","rollup-plugin-livereload":"2.0.0","rollup-plugin-svelte":"7.1.0","sirv-cli":"1.0.11","start-server-and-test":"1.12.0","svelte":"3.35.0","svelte-loader":"2.13.6","svelte-preprocess":"4.6.9","svelte-preprocess-sass":"1.0.0","tailwindcss":"2.0.3"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"keywords":["svelte","svelte-toast","svelte-toasts","toasts","toastify","svelte-toast-store","svelte-bootstrap-toast","component","library"],"license":"MIT","lint-staged":{"*.{svelte, html, css, scss, stylus, js, ts, json, yml, md}":["prettier --write","git add"],"*.{js, svelte}":["eslint --fix","git add"]},"main":"dist/index.js","module":"dist/index.mjs","prettier":{"singleQuote":true,"tabWidth":4,"useTabs":true},"repository":{"type":"git","url":"git+https://github.com/mzohaibqc/svelte-toasts.git"},"svelte":"dist/index.js","dependencies":{},"gitHead":"1065d9d8f194bc915db01e027a0974c767b4162a","bugs":{"url":"https://github.com/mzohaibqc/svelte-toasts/issues"},"homepage":"https://github.com/mzohaibqc/svelte-toasts#readme","_id":"svelte-toasts@1.0.0","_nodeVersion":"12.18.0","_npmVersion":"7.5.2","dist":{"integrity":"sha512-KjR4gOv+pUB/azzWzNHWVT4r8F74tbvuXpx57TZX+Blkq4mR7JNn8KYvxChuOTn/5TwQ2apEaJSYLg0oqMYSkA==","shasum":"5c22eee1e77dbcfc88313035b272830b8298df6f","tarball":"https://registry.npmjs.org/svelte-toasts/-/svelte-toasts-1.0.0.tgz","fileCount":5,"unpackedSize":122697,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP/upCRA9TVsSAnZWagAAgg4QAI817aufmQaoS9BBFCsS\n7xNMpgyrAxm3cjbXA75lRftzCwcyuP8cHmMc4RRu1gWT7MNy/RCd3WsfxC8e\nv2bZZHyKDPDv/I9KFRw+ITRFTBUsxrFdV4uTy/3XQII6DvMxdxcSvVz9Nrbd\n+GORdtmhNdJGga3NgFoero2CFCJQzRYsnQEeMuH1NeoU4LvMnQ9qVhsNaJ/F\nGTSoollAjFX0b1mL6EyPhUCL46/5BEwuBTHzwZKOihe3XX5Bl4jxLQi3pAbv\nMaNC3TTP0ATTgRpsP/XHMZ8+9xjKyOBZdkokZdmHGGHLhy4TajT2LnL1tLBD\nwWxNIMZ1kUDWAAa3YOXrEZFknAJ6y+bF5zgE49+WZBHmh3cGwtP9BLo+ZWNI\nF6tcL+211s5gyvLO8eIUI24ytHGLFCgaHUh+pVUyGWmuuep8Orjbeuwt9x/r\n6ITsNXZmLH6s/OVdvApxwbKyQ7uu2hZhA2m2bgW2Btx2orc+2k63PQG6P6YD\nrspfVYUnMmZ315MTcPlAaO2PDlFX0JiNraxvGeM09b7WnToRK4CbWmiEK+Jo\n0JsJRp9FhU0cqcgbyut+NilZQEDqDFwHrcGhWxcMZgcUWrWS+6xMdhgA1abO\no3/NZoTXLw9RUfzqReanGg90VhwxbrhuloFMhCIb7FvYEhpKD5kkF+/4rc+f\neJL/\r\n=Q8FE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGfhCZ0WbnPi7V0LQtOxRGlI+Xfuthia61AMGUXExc28AiEAgMrSyW/PXGiGOGDtKYvoQ2Yl7c5uO+W29Ae1TeQtwgs="}]},"_npmUser":{"name":"mzohaibqc","email":"mzohaib.qc@gmail.com"},"directories":{},"maintainers":[{"name":"mzohaibqc","email":"mzohaib.qc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-toasts_1.0.0_1614805928700_0.9323873671082439"},"_hasShrinkwrap":false},"1.1.0":{"name":"svelte-toasts","version":"1.1.0","scripts":{"cy:open":"cypress open","cy:run":"cypress run","dev":"rollup -c -w","build":"rollup -c","lint":"eslint --color --ignore-path .gitignore .","build:lib":"rollup -c rollup.config.lib.js","prepare":"npm run build:lib","prepublishOnly":"npm run build:lib","start":"sirv public","test":"start-server-and-test dev http://localhost:5000 cy:run","storybook":"start-storybook -p 6006","build-storybook":"build-storybook","semantic-release":"semantic-release","deploy:demo":"gh-pages -d public"},"browserslist":["defaults"],"description":"A highly configurable notification/toast component with individual toast state management capabilities.","devDependencies":{"@babel/core":"7.13.8","@babel/eslint-parser":"7.13.8","@babel/preset-env":"7.13.9","@rollup/plugin-commonjs":"17.1.0","@rollup/plugin-node-resolve":"11.2.0","@storybook/addon-actions":"6.1.20","@storybook/addon-essentials":"6.1.20","@storybook/addon-links":"6.1.20","@storybook/svelte":"6.1.20","@tailwindcss/forms":"0.2.1","@testing-library/cypress":"7.0.4","autoprefixer":"10.2.4","babel-loader":"8.2.2","cypress":"6.6.0","eslint":"7.21.0","eslint-config-prettier":"8.1.0","eslint-plugin-cypress":"2.11.2","eslint-plugin-svelte3":"3.1.2","gh-pages":"3.1.0","glob":"7.1.6","husky":"5.1.3","lint-staged":"10.5.4","node-sass":"5.0.0","postcss":"8.2.6","prettier":"2.2.1","prettier-plugin-svelte":"2.2.0","react-is":"17.0.1","rollup":"2.40.0","rollup-plugin-css-only":"3.1.0","rollup-plugin-livereload":"2.0.0","rollup-plugin-svelte":"7.1.0","semantic-release":"17.4.1","sirv-cli":"1.0.11","start-server-and-test":"1.12.0","svelte":"3.35.0","svelte-loader":"2.13.6","svelte-preprocess":"4.6.9","svelte-preprocess-sass":"1.0.0","tailwindcss":"2.0.3"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"keywords":["svelte","svelte-toast","svelte-toasts","toasts","toastify","svelte-toast-store","svelte-bootstrap-toast","component","library"],"license":"MIT","lint-staged":{"*.{svelte, html, css, scss, stylus, js, ts, json, yml, md}":["prettier --write","git add"],"*.{js, svelte}":["eslint --fix","git add"]},"main":"dist/index.js","module":"dist/index.mjs","prettier":{"singleQuote":true,"tabWidth":4,"useTabs":true},"repository":{"type":"git","url":"git+https://github.com/mzohaibqc/svelte-toasts.git"},"svelte":"dist/index.js","dependencies":{},"gitHead":"6414d42dc65beb0cbdee77ccba19ea8014ca389f","bugs":{"url":"https://github.com/mzohaibqc/svelte-toasts/issues"},"homepage":"https://github.com/mzohaibqc/svelte-toasts#readme","_id":"svelte-toasts@1.1.0","_nodeVersion":"12.18.0","_npmVersion":"7.5.2","dist":{"integrity":"sha512-YQmtsC040AzY3akIqi5ROuGPm71m6ERRM7inQ9Lu5CoKg0eFButGbd8EvUWVqyOwb//fRXwZBA7pVKnovu155g==","shasum":"80b329099b16363142fd3477317aadf402c34326","tarball":"https://registry.npmjs.org/svelte-toasts/-/svelte-toasts-1.1.0.tgz","fileCount":5,"unpackedSize":170469,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQVZACRA9TVsSAnZWagAAypwQAJIiXs4NydllvNY6zcUk\nlBqgwnXk30VeMyS7vuffFKxqgAX42te69Khn41uCOURhNvhr+EOLqpHYHyux\noVNdQZF8pFCpZAmQFA8TAZmPNTdsmdA4EguV5huc8Wyqk23Ro4RiaJ6SU2nL\nlx21y3YYI/t5WycXEcnh5rvNYZSTE7wAdj9r7YlLhi7wpokR1cFXm7xjRuGo\nCSz4SssuV5xvRZZyT7kkEtkr5wqwDUF45MKiniJf/EROhiRPlbN4ddEwuJl4\nk5gUa5lkx+Aj87I18j72UTwRNaDx6fvHyBIJQHbGRu6Ay9SDiTi94W8MSDXG\nim8MWi8Jh6peQa+3oWxtIG8K+xrdacQhEr7w/Gtdku0zvAECJpfo7EeX5Hoy\nhlPqLYQAHHPk+tpGNfbh6QntGY8jxc2v1HeMZkYFuvQfX+YT+Ph0cFsDpZXc\nPLn6N/tV0v991Ke4Kv8Ka7ume/pALzvmGR/+BIpcThjllcALUyg/h1wwAWJT\nme2VIZhfa4MO+qDPoSJ1F02O2NUqx1TCJq6mPg/hMfhdi1MSwNa86UHYTeA4\nrAD1Ztcg5zpIGCba6Zneh1HGJWz6qqjcB8jiV0+J5GpAdexlCmUVmJe2E6is\nmWWGpkgE1tJPUsOaCtAQzik8PopW+/FtZdbv4c8K1nJVbmJfU0dspAXgT4x1\nxESq\r\n=jsHN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDujw3XMKLTPtb9AaKgeVX9tUTJGJ1zJYWL3EDTSTNRcQIgU/BLUV6tlUuhdZL/OoC6SW203DWXRep9SEC8AsLMR9w="}]},"_npmUser":{"name":"mzohaibqc","email":"mzohaib.qc@gmail.com"},"directories":{},"maintainers":[{"name":"mzohaibqc","email":"mzohaib.qc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-toasts_1.1.0_1614894656245_0.5200322570920706"},"_hasShrinkwrap":false},"1.1.1":{"version":"1.1.1","name":"svelte-toasts","description":"A highly configurable notification/toast component with individual toast state management capabilities.","main":"dist/svelte-toasts.js","unpkg":"dist/svelte-toasts.min.js","module":"dist/svelte-toasts.mjs","svelte":"src/index.js","types":"types/index.d.ts","author":{"name":"Zohaib Ijaz @mzohaibqc"},"scripts":{"build":"rollup -c","docs":"npx sveld --json --markdown","types":"node ./node_modules/svelte-types-writer/dist/index.js ./src/**/*.svelte --libs ./src/**/*.ts ./src/**/*.js"},"devDependencies":{"@rollup/plugin-commonjs":"^17.1.0","@rollup/plugin-node-resolve":"^9.0.0","rollup":"^2.0.0","rollup-plugin-svelte":"^6.0.0","rollup-plugin-terser":"^7.0.2","sveld":"^0.7.1","svelte":"^3.35.0","svelte-types-writer":"^1.2.0"},"keywords":["svelte","svelte-toast","svelte-toasts","toasts","toastify","svelte-toast-store","svelte-bootstrap-toast","component","library"],"license":"MIT","repository":{"type":"git","url":"https://github.com/mzohaibqc/svelte-toasts"},"homepage":"https://mzohaibqc.github.io/svelte-toasts","private":false,"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2021-present Zohaib Ijaz\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"svelte-toasts@1.1.1","dist":{"shasum":"bab2fd085acc193694f4f09d121cc83dac42a670","integrity":"sha512-t5EpSlLcavInYVD9ioVl6SpjHOa+I2iWZX4fLtSo6x8ZVq68wXkLtUxYuLqKw9uGC/SRpz+teYWnvyWcBDOegQ==","tarball":"https://registry.npmjs.org/svelte-toasts/-/svelte-toasts-1.1.1.tgz","fileCount":22,"unpackedSize":299646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgThKSCRA9TVsSAnZWagAAs8AP/38LmW/+8lgGWgJJN4Xc\nHHRFkvWTOC6NwSoBqqQC8J22V8Yo+suPJYGEb+/K4zVilyf9ocZDH72RK6Yq\nq7bElTgYwM/BSSYeXqpz+nny40g1my7Orvk1jt98gy0WryyCYmVBgChoL069\nKY/2PAXu3snUv3bTjvjNBXLMr4S9sQDjWWD6GL/YW8uvAIBeES64dVZXQ/pz\n1A+FKzIbNf1WPDfvxWhVreKSY44BTN8CiPrIlYqpBPuqJb5GB1vxsuNcMvk5\nBVjpPLcTJU7lOD/R61asT378e5qHSekixG/V/tuY+LuhIW+6AcMiUedWvGYV\nwhXgjX1I7Zin8zQVWfGoWmUC7gbLo+6XaqhyonJeySHge7tll98LBRpG4WAD\nsgKQ/NX2azMUNIiC4PpItDUmCTZjBFL5YvIcLazOhoydTw7CJeHlyHSs1J7M\nINBIK6Tf41IU3Wkdr42XFDsGn5eQapvTHE+5DrHhqYvm4Vewn8yQHhmQ8jmH\nu0tHz6IEkU+g1kPi64rbUSqJxlV7onS14xKNK3180JvNfctQ8qaL5kbzESn3\negl2zdGw58dGZNZkWi6S/PUGLragi6jy21Pxsj2ZgyaX/YYeB97DEaDFlHsH\nYc4JLaSOdXWj7ZJXipriZYniTOO98M24I+3eoQhxCOApyDrYadTp2FChR2wg\nqqlb\r\n=LPt9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtBHxxuVAw4r2+IqOzCVL+I7uTJDCCGqz2Ps603Gd0hwIgTvvgUfr9gaEophjZGeIv2Lj21lXfejIIdCFs6WUqQ58="}]},"_npmUser":{"name":"mzohaibqc","email":"mzohaib.qc@gmail.com"},"directories":{},"maintainers":[{"name":"mzohaibqc","email":"mzohaib.qc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-toasts_1.1.1_1615729297525_0.7717842322592541"},"_hasShrinkwrap":false},"1.1.2":{"version":"1.1.2","name":"svelte-toasts","description":"A highly configurable notification/toast component with individual toast state management capabilities.","main":"dist/svelte-toasts.js","unpkg":"dist/svelte-toasts.min.js","module":"dist/svelte-toasts.mjs","svelte":"src/index.js","types":"types/index.d.ts","author":{"name":"Zohaib Ijaz @mzohaibqc"},"scripts":{"build":"rollup -c","docs":"npx sveld --json --markdown","types":"node ./node_modules/svelte-types-writer/dist/index.js ./src/**/*.svelte --libs ./src/**/*.ts ./src/**/*.js"},"devDependencies":{"@rollup/plugin-commonjs":"^17.1.0","@rollup/plugin-node-resolve":"^9.0.0","rollup":"^2.0.0","rollup-plugin-svelte":"^6.0.0","rollup-plugin-terser":"^7.0.2","sveld":"^0.7.1","svelte":"^3.35.0","svelte-types-writer":"^1.2.0"},"keywords":["svelte","svelte-toast","svelte-toasts","toasts","toastify","svelte-toast-store","svelte-bootstrap-toast","component","library"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mzohaibqc/svelte-toasts.git"},"homepage":"https://mzohaibqc.github.io/svelte-toasts","private":false,"gitHead":"1aa7082aa42ba58c7723b52bfc64f8018e99fc69","bugs":{"url":"https://github.com/mzohaibqc/svelte-toasts/issues"},"_id":"svelte-toasts@1.1.2","_nodeVersion":"12.18.0","_npmVersion":"7.5.2","dist":{"integrity":"sha512-m+yL4eEKXyJoyjTYaH1j1GFwF0Pi8YDqnVfwWPDmwi4712iZesv+TNCmToSNlav3R5Vkmc8ZBRkT8DOcu3sywQ==","shasum":"6ba590d27a9eb4cf164ea2efe5a5f1afac6de008","tarball":"https://registry.npmjs.org/svelte-toasts/-/svelte-toasts-1.1.2.tgz","fileCount":17,"unpackedSize":296297,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUKLbCRA9TVsSAnZWagAAOsEP/j2fOSOE0YAHIHfApIoh\nNCVNgpveQxcqiJyroDNDxdTdllWaCV6KGwIxoxDjnsStLFybojZEg76jYmU4\nU5QSuVMBf7uA6lTdCIqhGFZEfzzW8hF6AJsMPxbOKu9xfLFQzXBbXj3a7Ig0\nWzFnTGS5lL91QlkWIlx+PuufplFtoW2pO/DJamZN0b0klgVG1mVMSoXuaTxC\nSF7cb3QvAp1YOyxEGPSWmqxbqMkuuWi2oHXWTllhgb+BVOJIo58JTd9Shoav\n6fPA340NPYFuCzWEr5+7Bk2JcKsP+aeFyR3Nlww8bDmts3OUpp09DRud7plX\nI/K6QmDRZRQVRJVdkPWSZbfozJ3Kd+DsfRnqeI8c2ouhJ/oc0tXxcYT4jByv\n2b7TIreGzwDBw34ZmgxDeAhRV0Mp6kFEbdtVAQuLz7dIyHrZfJkVsl9cTw+k\nUhw27Z+le1miwDDfnJQ+WWhYiQRfZnYIlecyFc/z6iCfapaLuMoAePBswrRy\nbUvmq/1d0rq8R1VUx1rQiCWH9MhtegpsIIb5EFbRloyYrRK4RUfAvCKqNGh1\n63f6xZ8qzjKievExjbHfUSIssUmuMQUjT/dpJqy79VEHEUK3CyIWX9v7QFym\n8Y9xbPNSX+f5Y5KCuAAF4U7MCSMvhuaUVf4JrWBm3Wll43RQL9f6LHeFQD1X\nbqDn\r\n=uqc9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDStVFF/k07nyJ5zpPAR9gK5sR0X0lC/3huaj5uSp3ZfAIhALeHBwd2N8qDt0c9FP9h1n9JQ+0IZSSVFeK90J1OLCwq"}]},"_npmUser":{"name":"mzohaibqc","email":"mzohaib.qc@gmail.com"},"directories":{},"maintainers":[{"name":"mzohaibqc","email":"mzohaib.qc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-toasts_1.1.2_1615897306279_0.1082021079588893"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-03T21:12:08.699Z","1.0.0":"2021-03-03T21:12:08.914Z","modified":"2022-05-19T03:08:48.871Z","1.1.0":"2021-03-04T21:50:56.402Z","1.1.1":"2021-03-14T13:41:37.660Z","1.1.2":"2021-03-16T12:21:46.651Z"},"maintainers":[{"name":"mzohaibqc","email":"mzohaib.qc@gmail.com"}],"description":"A highly configurable notification/toast component with individual toast state management capabilities.","homepage":"https://mzohaibqc.github.io/svelte-toasts","keywords":["svelte","svelte-toast","svelte-toasts","toasts","toastify","svelte-toast-store","svelte-bootstrap-toast","component","library"],"repository":{"type":"git","url":"git+https://github.com/mzohaibqc/svelte-toasts.git"},"license":"MIT","readme":"<img src=\"./site/public/images/logo.svg\" alt=\"Logo\" style=\"height: 100px; display:block; margin: 0 auto;\" />\n\n# Svelte-Toasts\n\nA highly configurable toast/notification component with individual toast state management capabilities.\n\n## Demo & Docs\n\nhttps://mzohaibqc.github.io/svelte-toasts/\n\nREPL: https://svelte.dev/repl/ff34bad88213493ab878c71497c01152?version=3.35.0\n\n## <img src=\"./site/public/images/dynamic-toast.gif\" alt=\"Dynamic Toast\">\n\n#### Flat Toast\n\n<p float=\"left\">\n    <img src=\"./site/public/images/flat-dark.png\" width=\"320px\" alt=\"Light theme toasts\">\n    <img src=\"./site/public/images/flat-light.png\" width=\"320px\" alt=\"Dark theme toasts\">\n</p>\n\n#### Bootstrap Toast\n\n<p float=\"left\">\n    <img src=\"./site/public/images/bootstrap-dark.png\" width=\"320px\" alt=\"Light theme toasts\">\n    <img src=\"./site/public/images/bootstrap-light.png\" width=\"320px\" alt=\"Dark theme toasts\">\n</p>\n\n## Install\n\n> npm i svelte-toasts\n\nor if you are using yarn\n\n> yarn add svelte-toasts\n\n## Getting Started\n\n```javascript\n<script>\n  import { toasts, ToastContainer, FlatToast, BootstrapToast }  from \"svelte-toasts\";\n\n  const showToast = () => {\n    const toast = toasts.add({\n      title: 'Message title',\n      description: 'Message body',\n      duration: 10000, // 0 or negative to avoid auto-remove\n      placement: 'bottom-right',\n      type: 'info',\n      theme: 'dark',\n      placement: 'bottom-right',\n      type: 'success',\n      theme,\n      onClick: () => {},\n      onRemove: () => {},\n      // component: BootstrapToast, // allows to override toast component/template per toast\n    });\n\n    // toast.remove()\n\n  };\n</script>\n\n<main class=\"flex flex-col container items-center mt-10\">\n\t<h1 class=\"text-lg block text-center\">Svelte Toasts</h1>\n  <button on:click={showToast}>Show Toast</button>\n  <ToastContainer placement=\"bottom-right\" let:data={data}>\n    <FlatToast {data} /> <!-- Provider template for your toasts -->\n  </ToastContainer>\n</main>\n```\n\nEvery `toast` object has following structure:\n\n```javascript\n{\n  title: \"Welcome\",\n  description: \"Thanks for trying svelte-toasts!\",\n  uid: 1615153277482,\n  placement: \"bottom-right\",\n  type: \"success\",\n  theme: \"dark\",\n  duration: 0,\n  remove: () => { /* implementation */ },\n  update: () => { /* implementation */ },\n  onClick: () => { console.log(\"Toast clicked\"); }\n  onRemove: () => { console.log(\"Toast removed\"); },\n  // and whatever properties that you want to add when calling toasts.add(options)\n}\n```\n\nBelow is a detail description of every property.\n\n<table class=\"min-w-full divide-y divide-gray-200\"><thead class=\"bg-gray-100\"><tr><th scope=\"col\" class=\"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase\">Prop </th><th scope=\"col\" class=\"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase\">Type </th><th scope=\"col\" class=\"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase\">Default </th><th scope=\"col\" class=\"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase\">Description </th></tr></thead> <tbody class=\"bg-white divide-y divide-gray-200\"><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">title</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">string</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">-</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Title of toast</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">description</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">string</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">-</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Description/body of toast</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">remove</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">-</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Invoking remove method will remove the respective toast object from store/UI. e.g. toast1.remove()</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">update</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">-</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Invoke update method to update a specific toast values like title, description or duration etc. toast.update({ title; \"Progress: 80%\" })</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">onClick</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">() =&gt; {}</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">You can provide onClick callback which will be invoked when toast will be clicked (except toast close icon/button)</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">onRemove</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">() =&gt; {}</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">You can provide onRemove callback which will be invoked when toast will be auto removed or removed by clicking on cross icon/button.</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">component</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">Svelte Component</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">-</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">You can provide your own toast component to render toast for a specific toast object</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">placement</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">string</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">-</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Set placement of current toast, it will override default placement set by ToastContainer</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">showProgress</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">boolean</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">-</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">If set to \"true\" and duration is greater than 0 then a timeout progress bar will be shown at the bottom of current toast. It will override default value set by ToastContainer.</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">theme</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">string</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">-</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">\"dark\" and \"light\" themes are implemented for builtin Toast components but in case of your own Toast component, you can implement or leave this feature. This will override default value set by ToastContainer if you are using builtin Toast components.</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">type</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">string</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">-</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Four types of toasts are available i.e. success, info, error and warning. It will override toast type set by ToastContainer.</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">duration</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">number</div></td><td class=\"px-6 py-4\" style=\"min-width: 150px\"><div class=\"text-sm text-gray-600 undefined\">-</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Duration in milliseconds after which toast will be auto removed. If duration will be 0 or negative, toast will not be auto removed but user can click on cross icon to remove it. It will override duration specified by ToastContainer.</div></td> </tr></tbody></table>\n\n### Helper Methods\n\nYou can use helper functions to create toast with just message argument.\n\n> toasts.success('Message body here'); // just 1 argument\n\n> toasts.success('Message Title', 'Message body here'); // 2 arguments, title, description\n\n> toasts.success('Message Title', 'Message body here', { duration: 5000 }); // 3 arguments, title, description and all other options object\n\nSimilarly,\ntoasts.info(), toasts.warning() and toasts.error()\n\n## Docs\n\n## Store\n\n- [`ToastStore`](#ToastStore)\n\n## Components\n\n- [`BootstrapToast`](#bootstraptoast)\n- [`FlatToast`](#flattoast)\n- [`ToastContainer`](#toastcontainer)\n\n---\n\n## `ToastStore`\n\n```javascript\nimport { toasts } from 'svelte-toasts';\n```\n\nStore `toasts` contains an array of toasts objects. It has following methods:\n\n<table class=\"min-w-full divide-y divide-gray-200\"><thead class=\"bg-gray-100\"><tr><th scope=\"col\" class=\"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase\">Name </th><th scope=\"col\" class=\"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase\">Type </th><th scope=\"col\" class=\"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase\">Description </th></tr></thead> <tbody class=\"bg-white divide-y divide-gray-200\"><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">add</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">This is key function to show toast. You can pass options and modify the generated toast. It will return toast object which you can use to modify or remove that specific toast programmatically, e.g. toast1.update({ title: 'New Title'})</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">removeAll</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">This function removes all toasts and clears store state to empty array</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">removeLast</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">This function removes one toast (if any) that was generated at the end</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">getById</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">This function returns toast data for given id. Every toast has a unique uid</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">setDefaults</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">This function sets default options so you don't need to pass those options again and again, e.g. theme, placement etc.</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">success</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Show success/green toast.</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">info</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Show info/blue toast.</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">error</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Show error/red toast.</div></td> </tr><tr><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 text-bold\">warning</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Function</div></td><td class=\"px-6 py-4\" style=\"\"><div class=\"text-sm text-gray-600 undefined\">Show warning/orange toast.</div></td> </tr></tbody></table>\n\n## `BootstrapToast`\n\n```javascript\nimport { BootstrapToast } from 'svelte-toasts';\n```\n\n### Props\n\n| Prop name | Kind             | Reactive | Type                                    | Default value        | Description                  |\n| :-------- | :--------------- | :------- | :-------------------------------------- | -------------------- | ---------------------------- |\n| theme     | <code>let</code> | No       | <code> [Theme](#theme)</code>           | <code>'light'</code> | Default theme for all toasts |\n| data      | <code>let</code> | No       | <code> [ToastProps](#ToastProps)</code> | <code>{}</code>      | Default theme for all toasts |\n\n### Slots\n\n| Slot name  | Default | Props | Fallback                                                                                                                                                                                                                                                                                                                                                                   |\n| :--------- | :------ | :---- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| close-icon | No      | --    | <code>&lt;svg<br /> xmlns=\"http://www.w3.org/2000/svg\"<br /> class=\"bx--toast-notification\\_\\_close-icon\"<br /> width=\"20\"<br /> height=\"20\"<br /> viewBox=\"0 0 32 32\"<br /> aria-hidden=\"true\"<br /> &gt;<br /> &lt;path<br /> d=\"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z\"<br /> /&gt;<br /> &lt;/svg&gt;</code> |\n| extra      | No      | --    | --                                                                                                                                                                                                                                                                                                                                                                         |\n| icon       | No      | --    | <code>Svg icons based on type<code>                                                                                                                                                                                                                                                                                                                                        |\n\n### Events\n\nNone.\n\n## `FlatToast`\n\n```javascript\nimport { FlatToast } from 'svelte-toasts';\n```\n\n### Props\n\n| Prop name | Kind             | Reactive | Type                                     | Default value        | Description                  |\n| :-------- | :--------------- | :------- | :--------------------------------------- | -------------------- | ---------------------------- |\n| theme     | <code>let</code> | No       | <code> [Theme](#theme) </code>           | <code>'light'</code> | Default theme for all toasts |\n| data      | <code>let</code> | No       | <code> [ToastProps](#ToastProps) </code> | <code>{}</code>      | Default theme for all toasts |\n\n### Slots\n\n| Slot name  | Default | Props | Fallback                                                                                                                                                                                                                                                                                                                                                                   |\n| :--------- | :------ | :---- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| close-icon | No      | --    | <code>&lt;svg<br /> xmlns=\"http://www.w3.org/2000/svg\"<br /> class=\"bx--toast-notification\\_\\_close-icon\"<br /> width=\"20\"<br /> height=\"20\"<br /> viewBox=\"0 0 32 32\"<br /> aria-hidden=\"true\"<br /> &gt;<br /> &lt;path<br /> d=\"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z\"<br /> /&gt;<br /> &lt;/svg&gt;</code> |\n| extra      | No      | --    | --                                                                                                                                                                                                                                                                                                                                                                         |\n| icon       | No      | --    | <code>Svg icons based on type<code>                                                                                                                                                                                                                                                                                                                                        |\n\n### Events\n\nNone.\n\n## `ToastContainer`\n\n```javascript\nimport { ToastContainer } from 'svelte-toasts';\n```\n\n### Props\n\n| Prop name    | Kind             | Reactive | Type                                   | Default value               | Description                                                            |\n| :----------- | :--------------- | :------- | :------------------------------------- | --------------------------- | ---------------------------------------------------------------------- |\n| theme        | <code>let</code> | No       | <code> [Theme](#Theme) </code>         | <code>'dark'</code>         | Default theme for all toasts                                           |\n| placement    | <code>let</code> | No       | <code> [Placement](#Placement) </code> | <code>'bottom-right'</code> | Default placement for all toasts                                       |\n| type         | <code>let</code> | No       | <code> [ToastType](#ToastType) </code> | <code>'info'</code>         | Default type of all toasts                                             |\n| showProgress | <code>let</code> | No       | <code> boolean </code>                 | <code>false</code>          | Show progress if showProgress is true and duration is greater then 0   |\n| duration     | <code>let</code> | No       | <code> number </code>                  | <code>3000</code>           | Default duration for all toasts to auto close. 0 to disable auto close |\n| width        | <code>let</code> | No       | <code> 'string' </code>                | <code>'320px'</code>        | Width of all toasts                                                    |\n\n### Slots\n\n| Slot name | Default | Props                                             | Fallback |\n| :-------- | :------ | :------------------------------------------------ | :------- |\n| --        | Yes     | <code>{ data: [ToastProps](#ToastProps) } </code> | --       |\n\n### Events\n\nNone.\n\n## Types\n\n#### `Theme`\n\n```ts\nexport type Theme = 'dark' | 'light';\n```\n\n#### `ToastType`\n\n```ts\nexport type ToastType = 'success' | 'info' | 'error' | 'warning';\n```\n\n#### `Placement`\n\n```ts\nexport type Placement =\n  | 'bottom-right'\n  | 'bottom-left'\n  | 'top-right'\n  | 'top-left'\n  | 'top-center'\n  | 'bottom-center'\n  | 'center-center';\n```\n\n#### `ToastProps`\n\n```ts\nexport interface ToastProps {\n  uid: number;\n  title?: string;\n  description: string;\n  duration: number;\n  type: ToastType;\n  theme?: Theme;\n  placement: Placement;\n  showProgress?: boolean;\n  remove?: Function;\n  update?: Function;\n  onRemove?: Function;\n  onClick?: Function;\n}\n```\n\n#### `ToastStore`\n\n```ts\nexport interface ToastStore extends Writable<ToastProps[]> {\n  add(options: Partial<ToastProps>): ToastProps;\n  success(options: Partial<ToastProps>): ToastProps;\n  success(description: string): ToastProps;\n  success(description: string, options: Partial<ToastProps>): ToastProps;\n  success(\n    title: string,\n    description: string,\n    options?: Partial<ToastProps>\n  ): ToastProps;\n\n  info(options: Partial<ToastProps>): ToastProps;\n  info(description: string): ToastProps;\n  info(description: string, options: Partial<ToastProps>): ToastProps;\n  info(\n    title: string,\n    description: string,\n    options?: Partial<ToastProps>\n  ): ToastProps;\n\n  error(options: Partial<ToastProps>): ToastProps;\n  error(description: string): ToastProps;\n  error(description: string, options: Partial<ToastProps>): ToastProps;\n  error(\n    title: string,\n    description: string,\n    options?: Partial<ToastProps>\n  ): ToastProps;\n\n  warning(options: Partial<ToastProps>): ToastProps;\n  warning(description: string): ToastProps;\n  warning(description: string, options: Partial<ToastProps>): ToastProps;\n  warning(\n    title: string,\n    description: string,\n    options?: Partial<ToastProps>\n  ): ToastProps;\n\n  getById(uid: number): ToastProps;\n  clearAll(): void;\n  clearLast(): void;\n  setDefaults(options: Partial<ToastProps>): void;\n}\n```\n","readmeFilename":"README.md","author":{"name":"Zohaib Ijaz @mzohaibqc"},"bugs":{"url":"https://github.com/mzohaibqc/svelte-toasts/issues"}}