{"_id":"@288-toolkit/dismissable","_rev":"13-acb703ea1b3d108e2ecb459848809c2c","name":"@288-toolkit/dismissable","dist-tags":{"latest":"3.0.7"},"versions":{"1.0.0":{"name":"@288-toolkit/dismissable","version":"1.0.0","author":{"name":"DeuxHuitHuit"},"license":"MIT","_id":"@288-toolkit/dismissable@1.0.0","maintainers":[{"name":"nitriques","email":"open-source@deuxhuithuit.com"},{"name":"f-elix","email":"guerinfelix08@gmail.com"}],"dist":{"shasum":"8d60277b81309db8214b464508bd94164d238ae5","tarball":"https://registry.npmjs.org/@288-toolkit/dismissable/-/dismissable-1.0.0.tgz","fileCount":9,"integrity":"sha512-oAk1Dg6jhI1UXbKvfava2Pq9jbYL0kxH5GBoYymrzA56gDtVe8O7h6IVp8T+JkCw+OqZE0LEwUHINjFTsts4BA==","signatures":[{"sig":"MEQCICMUcK+bKjUeY9olzEeYoqQocfqHNRrSDMjYH7fgmO4bAiA3XMGmFJfwDG2WpZ8aT+E4uun9sjMWnewVTImQWCnv5A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13317},"type":"module","_from":"file:288-toolkit-dismissable-1.0.0.tgz","exports":{".":{"default":"./src/lib/index.ts"}},"scripts":{"lc":"npm run lint && npm run check","lint":"eslint --max-warnings=0 --cache .","test":"vitest run","check":"svelte-check --tsconfig ./tsconfig.json --fail-on-warnings","format":"npm run format:file .","lc:watch":"npm run lint && npm run check -- --watch","lint:fix":"npm run lint -- --fix","test:watch":"vitest","check:watch":"npm run check -- --watch","format:file":"npm run format:prettier -- --write","format:prettier":"prettier --config ./.prettierrc"},"_npmUser":{"name":"f-elix","email":"guerinfelix08@gmail.com"},"_resolved":"/tmp/28dc18e63c1d710d26fd166e4c04f650/288-toolkit-dismissable-1.0.0.tgz","_integrity":"sha512-oAk1Dg6jhI1UXbKvfava2Pq9jbYL0kxH5GBoYymrzA56gDtVe8O7h6IVp8T+JkCw+OqZE0LEwUHINjFTsts4BA==","_npmVersion":"10.5.0","description":"```sh pnpm i @288-toolkit/dismissable ```","directories":{},"_nodeVersion":"20.12.2","dependencies":{"esm-env":"1.0.0","@288-toolkit/types":"^1.3.2","@288-toolkit/vite-plugin-svelte-inline-component":"^1.2.1"},"_hasShrinkwrap":false,"devDependencies":{"svelte-preprocess":"5.1.4","@testing-library/dom":"^10.0.0","@testing-library/svelte":"^5.1.0"},"peerDependencies":{"svelte":"4.x","@sveltejs/kit":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/dismissable_1.0.0_1714060737849_0.7505503784235261","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@288-toolkit/dismissable","version":"1.0.1","author":{"name":"DeuxHuitHuit"},"license":"MIT","_id":"@288-toolkit/dismissable@1.0.1","maintainers":[{"name":"nitriques","email":"open-source@deuxhuithuit.com"},{"name":"f-elix","email":"guerinfelix08@gmail.com"}],"dist":{"shasum":"dd14fe26e0b10c10fdf30dd771c1c3d3e40baefc","tarball":"https://registry.npmjs.org/@288-toolkit/dismissable/-/dismissable-1.0.1.tgz","fileCount":10,"integrity":"sha512-VXMlNIjmTbEj2/FpU7L64oAH9BzocfsZDYNZuqgaBNadl0OTxzTSTUeFE8MO1lGTiPkChgRK5XPSt8cWDKDDyw==","signatures":[{"sig":"MEQCIC1UzOW/+cNB5gOTHpo2fHW3FILXVBSNn3xk99+L9RElAiAdzPiCKo6/JVmFx1Pcrz04EkZT95FhLyfc6DuWNE+yXA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14543},"type":"module","_from":"file:288-toolkit-dismissable-1.0.1.tgz","exports":{".":{"default":"./src/lib/index.ts"}},"scripts":{"lc":"npm run lint && npm run check","lint":"eslint --max-warnings=0 --cache .","test":"vitest run","check":"svelte-check --tsconfig ./tsconfig.json --fail-on-warnings","format":"npm run format:file .","lc:watch":"npm run lint && npm run check -- --watch","lint:fix":"npm run lint -- --fix","test:watch":"vitest","check:watch":"npm run check -- --watch","format:file":"npm run format:prettier -- --write","format:prettier":"prettier --config ./.prettierrc"},"_npmUser":{"name":"f-elix","email":"guerinfelix08@gmail.com"},"_resolved":"/tmp/b465ecceec320055d3ff382cd92b2888/288-toolkit-dismissable-1.0.1.tgz","_integrity":"sha512-VXMlNIjmTbEj2/FpU7L64oAH9BzocfsZDYNZuqgaBNadl0OTxzTSTUeFE8MO1lGTiPkChgRK5XPSt8cWDKDDyw==","_npmVersion":"10.5.0","description":"```sh pnpm i @288-toolkit/dismissable ```","directories":{},"_nodeVersion":"20.12.2","dependencies":{"esm-env":"1.0.0","@288-toolkit/types":"^1.3.2","@288-toolkit/vite-plugin-svelte-inline-component":"^1.2.1"},"_hasShrinkwrap":false,"devDependencies":{"svelte-preprocess":"5.1.4","@testing-library/dom":"^10.0.0","@testing-library/svelte":"^5.1.0"},"peerDependencies":{"svelte":"4.x","@sveltejs/kit":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/dismissable_1.0.1_1714061452389_0.08780695674526529","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@288-toolkit/dismissable","version":"1.0.2","author":{"name":"DeuxHuitHuit"},"license":"MIT","_id":"@288-toolkit/dismissable@1.0.2","maintainers":[{"name":"nitriques","email":"open-source@deuxhuithuit.com"},{"name":"f-elix","email":"guerinfelix08@gmail.com"}],"dist":{"shasum":"71582bf68c460261cb945d747e2c06a52ed04fb8","tarball":"https://registry.npmjs.org/@288-toolkit/dismissable/-/dismissable-1.0.2.tgz","fileCount":4,"integrity":"sha512-C0gXZO4ejGitRiQK4LCqjOHiHuK2XHT+9AOEG18bmZjssJkG7SA4rQzYDLLREu0wyaV2rLZ0JJh3bhRyHmOCrw==","signatures":[{"sig":"MEYCIQCo4DZ6/di2aWCYRLS+Hk31+UGHfxMo45mR/iY1RQEVAwIhAPksjLbCzgk2s0Xj6jGuXal5l+TQyzKpxMAvZptbexva","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7903},"type":"module","_from":"file:288-toolkit-dismissable-1.0.2.tgz","exports":{".":{"default":"./src/lib/index.ts"}},"scripts":{"lc":"npm run lint && npm run check","lint":"eslint --max-warnings=0 --cache .","test":"vitest run","check":"svelte-check --tsconfig ./tsconfig.json --fail-on-warnings","format":"npm run format:file .","lc:watch":"npm run lint && npm run check -- --watch","lint:fix":"npm run lint -- --fix","test:watch":"vitest","check:watch":"npm run check -- --watch","format:file":"npm run format:prettier -- --write","format:prettier":"prettier --config ./.prettierrc"},"_npmUser":{"name":"f-elix","email":"guerinfelix08@gmail.com"},"_resolved":"/tmp/567154f25691a0b61abf5b60bbab3fe0/288-toolkit-dismissable-1.0.2.tgz","_integrity":"sha512-C0gXZO4ejGitRiQK4LCqjOHiHuK2XHT+9AOEG18bmZjssJkG7SA4rQzYDLLREu0wyaV2rLZ0JJh3bhRyHmOCrw==","_npmVersion":"10.5.0","description":"```sh pnpm i @288-toolkit/dismissable ```","directories":{},"_nodeVersion":"20.12.2","dependencies":{"esm-env":"1.0.0","@288-toolkit/types":"^1.3.3","@288-toolkit/vite-plugin-svelte-inline-component":"^1.2.2"},"_hasShrinkwrap":false,"devDependencies":{"svelte-preprocess":"5.1.4","@testing-library/dom":"^10.0.0","@testing-library/svelte":"^5.1.0"},"peerDependencies":{"svelte":"4.x","@sveltejs/kit":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/dismissable_1.0.2_1714076126459_0.493989233579216","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@288-toolkit/dismissable","version":"2.0.0","author":{"name":"DeuxHuitHuit"},"license":"MIT","_id":"@288-toolkit/dismissable@2.0.0","maintainers":[{"name":"nitriques","email":"open-source@deuxhuithuit.com"},{"name":"f-elix","email":"guerinfelix08@gmail.com"}],"dist":{"shasum":"4575c07c2edeb080ca19bd76a1dbb9082242de3a","tarball":"https://registry.npmjs.org/@288-toolkit/dismissable/-/dismissable-2.0.0.tgz","fileCount":6,"integrity":"sha512-W3PuZBZhc5wXF77RMwE5cpYiLHpsxK3B1fNPBufjdlLeTrl8emaEsubXf0R2TIv8JLF4g9cIcltjax33c1eEbA==","signatures":[{"sig":"MEUCIASaYA/EsuMQLnDGId1cgpYmIuGonFQ7f67B17G/iD/2AiEAuT00zEfrPmMOdlX5Ya9IL2VAwL16jPdzRGTf0LOxuh8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9910},"type":"module","_from":"file:288-toolkit-dismissable-2.0.0.tgz","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js"}},"scripts":{"lc":"npm run lint && npm run check","lint":"eslint --max-warnings=0 --cache .","test":"vitest run","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json --fail-on-warnings","format":"npm run format:file .","lc:watch":"npm run lint && npm run check -- --watch","lint:fix":"npm run lint -- --fix","test:watch":"vitest","check:watch":"npm run check -- --watch","format:file":"npm run format:prettier -- --write","format:prettier":"prettier --config ./.prettierrc"},"_npmUser":{"name":"f-elix","email":"guerinfelix08@gmail.com"},"_resolved":"/tmp/124b56e7a1910dab763a5aefbbd98b8c/288-toolkit-dismissable-2.0.0.tgz","_integrity":"sha512-W3PuZBZhc5wXF77RMwE5cpYiLHpsxK3B1fNPBufjdlLeTrl8emaEsubXf0R2TIv8JLF4g9cIcltjax33c1eEbA==","_npmVersion":"10.5.0","description":"```sh pnpm i @288-toolkit/dismissable ```","directories":{},"_nodeVersion":"20.12.2","dependencies":{"esm-env":"1.0.0","@288-toolkit/types":"^3.0.0","@288-toolkit/vite-plugin-svelte-inline-component":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"svelte-preprocess":"5.1.4","@testing-library/dom":"^10.0.0","@testing-library/svelte":"^5.1.0"},"peerDependencies":{"svelte":"4.x || 5.x","@sveltejs/kit":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/dismissable_2.0.0_1714509597448_0.8514328898335004","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@288-toolkit/dismissable","version":"3.0.0","author":{"name":"DeuxHuitHuit"},"license":"MIT","_id":"@288-toolkit/dismissable@3.0.0","maintainers":[{"name":"nitriques","email":"open-source@deuxhuithuit.com"},{"name":"f-elix","email":"guerinfelix08@gmail.com"}],"dist":{"shasum":"37a11ef912e24591518ff201af9688e5fdb82f7d","tarball":"https://registry.npmjs.org/@288-toolkit/dismissable/-/dismissable-3.0.0.tgz","fileCount":6,"integrity":"sha512-CPLNOcoGwpgRRSwk+vOg9aFJD8yFYvh10awd+MqeVbY2PqYdTOrEOMeSO4s3o8tqtmGiFliFiYmAJ4jv6qzlxw==","signatures":[{"sig":"MEUCIEHd0jVmctY2U0m5F3ff7htixKPe2k58L3JLPql89Dr5AiEAo8LZ0IQA+tPr97icqmv1ZmkRCa+1Y7is27H4pooRwRU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9910},"type":"module","_from":"file:288-toolkit-dismissable-3.0.0.tgz","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js"}},"scripts":{"lc":"npm run lint && npm run check","lint":"eslint --max-warnings=0 --cache .","test":"vitest run","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json --fail-on-warnings","format":"npm run format:file .","lc:watch":"npm run lint && npm run check -- --watch","lint:fix":"npm run lint -- --fix","test:watch":"vitest","check:watch":"npm run check -- --watch","format:file":"npm run format:prettier -- --write","format:prettier":"prettier --config ./.prettierrc"},"_npmUser":{"name":"f-elix","email":"guerinfelix08@gmail.com"},"_resolved":"/tmp/8795290dbb537ccf2da94ba2cf223432/288-toolkit-dismissable-3.0.0.tgz","_integrity":"sha512-CPLNOcoGwpgRRSwk+vOg9aFJD8yFYvh10awd+MqeVbY2PqYdTOrEOMeSO4s3o8tqtmGiFliFiYmAJ4jv6qzlxw==","_npmVersion":"10.5.0","description":"```sh pnpm i @288-toolkit/dismissable ```","directories":{},"_nodeVersion":"20.12.2","dependencies":{"esm-env":"1.0.0","@288-toolkit/types":"^3.0.0","@288-toolkit/vite-plugin-svelte-inline-component":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"svelte-preprocess":"5.1.4","@testing-library/dom":"^10.0.0","@testing-library/svelte":"^5.1.0"},"peerDependencies":{"svelte":"4.x || 5.x","@sveltejs/kit":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/dismissable_3.0.0_1714522084229_0.18255593664866865","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"@288-toolkit/dismissable","version":"3.0.1","author":{"name":"DeuxHuitHuit"},"license":"MIT","_id":"@288-toolkit/dismissable@3.0.1","maintainers":[{"name":"nitriques","email":"open-source@deuxhuithuit.com"},{"name":"f-elix","email":"guerinfelix08@gmail.com"}],"dist":{"shasum":"5bdddc84ecc1c23453db0099a2cafa73d406e1da","tarball":"https://registry.npmjs.org/@288-toolkit/dismissable/-/dismissable-3.0.1.tgz","fileCount":6,"integrity":"sha512-ks+II9CnahpqYcjW7usnVjtSLoixMe10SuV5kHBw8dxsAWlmDwk0au66A/+Bb3xKLL4Mth8UWUL3np82iLooSw==","signatures":[{"sig":"MEQCIEq1b88kB22BYJcumgHMPa/Er4zeDa8Wl+5/uZ2YOB1EAiB6Qe+wkfKjrad75AHygxDJ9C/azDPSGj6y4IPcA1Lb/g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9910},"type":"module","_from":"file:288-toolkit-dismissable-3.0.1.tgz","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js"}},"scripts":{"lc":"npm run lint && npm run check","lint":"eslint --max-warnings=0 --cache .","test":"vitest run","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json --fail-on-warnings","format":"npm run format:file .","lc:watch":"npm run lint && npm run check -- --watch","lint:fix":"npm run lint -- --fix","test:watch":"vitest","check:watch":"npm run check -- --watch","format:file":"npm run format:prettier -- --write","format:prettier":"prettier --config ./.prettierrc"},"_npmUser":{"name":"f-elix","email":"guerinfelix08@gmail.com"},"_resolved":"/tmp/94ec02f30107470eaa8be65135ee8f02/288-toolkit-dismissable-3.0.1.tgz","_integrity":"sha512-ks+II9CnahpqYcjW7usnVjtSLoixMe10SuV5kHBw8dxsAWlmDwk0au66A/+Bb3xKLL4Mth8UWUL3np82iLooSw==","_npmVersion":"10.5.0","description":"```sh pnpm i @288-toolkit/dismissable ```","directories":{},"_nodeVersion":"20.12.2","dependencies":{"esm-env":"1.0.0","@288-toolkit/types":"^3.0.0","@288-toolkit/vite-plugin-svelte-inline-component":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"svelte-preprocess":"5.1.4","@testing-library/dom":"^10.0.0","@testing-library/svelte":"^5.1.0"},"peerDependencies":{"svelte":"4.x || 5.x","@sveltejs/kit":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/dismissable_3.0.1_1714575315394_0.6536199749670875","host":"s3://npm-registry-packages"}},"3.0.2":{"name":"@288-toolkit/dismissable","version":"3.0.2","author":{"name":"DeuxHuitHuit"},"license":"MIT","_id":"@288-toolkit/dismissable@3.0.2","maintainers":[{"name":"nitriques","email":"open-source@deuxhuithuit.com"},{"name":"f-elix","email":"guerinfelix08@gmail.com"}],"dist":{"shasum":"366369fd4615e98a6bf7b4d30ab16edf729f3c12","tarball":"https://registry.npmjs.org/@288-toolkit/dismissable/-/dismissable-3.0.2.tgz","fileCount":6,"integrity":"sha512-VswlP1J4tzxe9ZJDzYnAwDUcplckYjhvt/n9t6Z+4P/gQ1a1fT0zfb6XXrUC4F/qsoOlRB+OLYJE8/5HqByaew==","signatures":[{"sig":"MEUCIQCnGtx5Ycya0sTT4JBaK+h41/KV077rCLPQR364RiwcAAIgZ6qxl5Kogt0eLr4hRFAiddBsD7awBKWyTbWYBZUJ2Sk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9910},"type":"module","_from":"file:288-toolkit-dismissable-3.0.2.tgz","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js"}},"scripts":{"lc":"npm run lint && npm run check","lint":"eslint --max-warnings=0 --cache .","test":"vitest run","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json --fail-on-warnings","format":"npm run format:file .","lc:watch":"npm run lint && npm run check -- --watch","lint:fix":"npm run lint -- --fix","test:watch":"vitest","check:watch":"npm run check -- --watch","format:file":"npm run format:prettier -- --write","format:prettier":"prettier --config ./.prettierrc"},"_npmUser":{"name":"f-elix","email":"guerinfelix08@gmail.com"},"_resolved":"/tmp/b5840112909152952bc2ea8dd20709ca/288-toolkit-dismissable-3.0.2.tgz","_integrity":"sha512-VswlP1J4tzxe9ZJDzYnAwDUcplckYjhvt/n9t6Z+4P/gQ1a1fT0zfb6XXrUC4F/qsoOlRB+OLYJE8/5HqByaew==","_npmVersion":"10.5.0","description":"```sh pnpm i @288-toolkit/dismissable ```","directories":{},"_nodeVersion":"20.12.2","dependencies":{"esm-env":"1.0.0","@288-toolkit/types":"^3.0.0","@288-toolkit/vite-plugin-svelte-inline-component":"^3.0.2"},"_hasShrinkwrap":false,"devDependencies":{"svelte-preprocess":"5.1.4","@testing-library/dom":"^10.0.0","@testing-library/svelte":"^5.1.0"},"peerDependencies":{"svelte":"4.x || 5.x","@sveltejs/kit":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/dismissable_3.0.2_1714575541371_0.7650927818118345","host":"s3://npm-registry-packages"}},"3.0.3":{"name":"@288-toolkit/dismissable","version":"3.0.3","author":{"name":"DeuxHuitHuit"},"license":"MIT","_id":"@288-toolkit/dismissable@3.0.3","maintainers":[{"name":"nitriques","email":"open-source@deuxhuithuit.com"},{"name":"f-elix","email":"guerinfelix08@gmail.com"}],"dist":{"shasum":"14fa715e9275ade7b29c3d69393e8e2e3c56c8b7","tarball":"https://registry.npmjs.org/@288-toolkit/dismissable/-/dismissable-3.0.3.tgz","fileCount":6,"integrity":"sha512-LZwYqLDLEl0kfJOOPd6P2fBGaUKxuLuowKAFMJObrd0SafKw34kKDlF5hSXz5GTrsK3l5/MvU+Y00V2l4n3zbA==","signatures":[{"sig":"MEUCIQCngThA07a8DfjwY60cdLq5tcKVcJu7afOLRv5oUUJD0wIgL0kn7DvcbLbr483vh0aXCzSSQ0nGXiGe0byGLwfDtGI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9910},"type":"module","_from":"file:288-toolkit-dismissable-3.0.3.tgz","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js"}},"scripts":{"lc":"npm run lint && npm run check","lint":"eslint --max-warnings=0 --cache .","test":"vitest run","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json --fail-on-warnings","format":"npm run format:file .","lc:watch":"npm run lint && npm run check -- --watch","lint:fix":"npm run lint -- --fix","test:watch":"vitest","check:watch":"npm run check -- --watch","format:file":"npm run format:prettier -- --write","format:prettier":"prettier --config ./.prettierrc"},"_npmUser":{"name":"f-elix","email":"guerinfelix08@gmail.com"},"_resolved":"/tmp/50d90d2747528515b058534cd978c55e/288-toolkit-dismissable-3.0.3.tgz","_integrity":"sha512-LZwYqLDLEl0kfJOOPd6P2fBGaUKxuLuowKAFMJObrd0SafKw34kKDlF5hSXz5GTrsK3l5/MvU+Y00V2l4n3zbA==","_npmVersion":"10.5.0","description":"```sh pnpm i @288-toolkit/dismissable ```","directories":{},"_nodeVersion":"20.12.2","dependencies":{"esm-env":"1.0.0","@288-toolkit/types":"^3.0.0","@288-toolkit/vite-plugin-svelte-inline-component":"^3.0.3"},"_hasShrinkwrap":false,"devDependencies":{"svelte-preprocess":"5.1.4","@testing-library/dom":"^10.0.0","@testing-library/svelte":"^5.1.0"},"peerDependencies":{"svelte":"4.x || 5.x","@sveltejs/kit":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/dismissable_3.0.3_1714576690976_0.06343302371152904","host":"s3://npm-registry-packages"}},"3.0.4":{"name":"@288-toolkit/dismissable","version":"3.0.4","author":{"name":"DeuxHuitHuit"},"license":"MIT","_id":"@288-toolkit/dismissable@3.0.4","maintainers":[{"name":"nitriques","email":"open-source@deuxhuithuit.com"},{"name":"f-elix","email":"guerinfelix08@gmail.com"}],"dist":{"shasum":"78592b20f7ef711468bce71a3ca074596745d7fa","tarball":"https://registry.npmjs.org/@288-toolkit/dismissable/-/dismissable-3.0.4.tgz","fileCount":6,"integrity":"sha512-9uyespXDfFiEZ+2Mr55hjb8XClZGUyoxR1kVC3y3CZyeYMmAbkvOqiAEJNzvvM0hzRlnkm/HrhkMHRyTFGgh9A==","signatures":[{"sig":"MEQCIAP1X7Z7Ch4MJuJjzc/p8KDf6JcNzPQyIwGHuK/MEmqZAiB5/AvTeMAylUfy/BZbE7oQn9JBOQlsLgvhE7YcQf+FCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9910},"type":"module","_from":"file:288-toolkit-dismissable-3.0.4.tgz","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js"}},"scripts":{"lc":"npm run lint && npm run check","lint":"eslint --max-warnings=0 --cache .","test":"vitest run","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json --fail-on-warnings","format":"npm run format:file .","lc:watch":"npm run lint && npm run check -- --watch","lint:fix":"npm run lint -- --fix","test:watch":"vitest","check:watch":"npm run check -- --watch","format:file":"npm run format:prettier -- --write","format:prettier":"prettier --config ./.prettierrc"},"_npmUser":{"name":"f-elix","email":"guerinfelix08@gmail.com"},"_resolved":"/tmp/3a533a4f175a0edb570bec8d3da82a4e/288-toolkit-dismissable-3.0.4.tgz","_integrity":"sha512-9uyespXDfFiEZ+2Mr55hjb8XClZGUyoxR1kVC3y3CZyeYMmAbkvOqiAEJNzvvM0hzRlnkm/HrhkMHRyTFGgh9A==","_npmVersion":"10.5.0","description":"```sh pnpm i @288-toolkit/dismissable ```","directories":{},"_nodeVersion":"20.12.2","dependencies":{"esm-env":"1.0.0","@288-toolkit/types":"^3.0.0","@288-toolkit/vite-plugin-svelte-inline-component":"^3.0.4"},"_hasShrinkwrap":false,"devDependencies":{"svelte-preprocess":"5.1.4","@testing-library/dom":"^10.0.0","@testing-library/svelte":"^5.1.0"},"peerDependencies":{"svelte":"4.x || 5.x","@sveltejs/kit":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/dismissable_3.0.4_1714577415191_0.4787915106331071","host":"s3://npm-registry-packages"}},"3.0.5":{"name":"@288-toolkit/dismissable","version":"3.0.5","author":{"name":"DeuxHuitHuit"},"license":"MIT","_id":"@288-toolkit/dismissable@3.0.5","maintainers":[{"name":"nitriques","email":"open-source@deuxhuithuit.com"},{"name":"f-elix","email":"guerinfelix08@gmail.com"}],"dist":{"shasum":"e63c2d7f68e9e8aa9d66ea7dcec935d607adc039","tarball":"https://registry.npmjs.org/@288-toolkit/dismissable/-/dismissable-3.0.5.tgz","fileCount":6,"integrity":"sha512-GUrzvPVzMyhmXHxd7JQeAiqSf78zjPf7nTi4Ot6rYWPfMOnI3q6xvxZDHbtGznZI9v8aIrJF5jPKqyausXYNGA==","signatures":[{"sig":"MEYCIQCvPz0FQNDrnhNiqHBcr2buuxbRLh1I8gEBU3+nY9SM0QIhAI2/G9uG8v9UJjZ/IgP+QgpLKIVTyalqHW5y69JvGpD1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9979},"type":"module","_from":"file:288-toolkit-dismissable-3.0.5.tgz","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js"}},"scripts":{"lc":"npm run lint && npm run check","lint":"eslint --max-warnings=0 --cache .","test":"vitest run","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json --fail-on-warnings","format":"npm run format:file .","lc:watch":"npm run lint && npm run check -- --watch","lint:fix":"npm run lint -- --fix","test:watch":"vitest","check:watch":"npm run check -- --watch","format:file":"npm run format:prettier -- --write","format:prettier":"prettier --config ./.prettierrc"},"_npmUser":{"name":"f-elix","email":"guerinfelix08@gmail.com"},"_resolved":"/tmp/2089391917862b2a1fa2e4a3cd19fc69/288-toolkit-dismissable-3.0.5.tgz","_integrity":"sha512-GUrzvPVzMyhmXHxd7JQeAiqSf78zjPf7nTi4Ot6rYWPfMOnI3q6xvxZDHbtGznZI9v8aIrJF5jPKqyausXYNGA==","_npmVersion":"10.5.2","description":"```sh pnpm i @288-toolkit/dismissable ```","directories":{},"_nodeVersion":"20.13.1","dependencies":{"esm-env":"1.0.0","@288-toolkit/types":"^3.1.0","@288-toolkit/vite-plugin-svelte-inline-component":"^3.0.4"},"_hasShrinkwrap":false,"devDependencies":{"svelte-preprocess":"5.1.4","@testing-library/dom":"^10.0.0","@testing-library/svelte":"^5.1.0"},"peerDependencies":{"svelte":"4.x || 5.x","@sveltejs/kit":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/dismissable_3.0.5_1715871166794_0.6878608844044043","host":"s3://npm-registry-packages"}},"3.0.6":{"name":"@288-toolkit/dismissable","version":"3.0.6","author":{"name":"DeuxHuitHuit"},"license":"MIT","_id":"@288-toolkit/dismissable@3.0.6","maintainers":[{"name":"nitriques","email":"open-source@deuxhuithuit.com"},{"name":"f-elix","email":"guerinfelix08@gmail.com"}],"dist":{"shasum":"70119e65ecc33fb8cab24ef7190b0f3d39686ba3","tarball":"https://registry.npmjs.org/@288-toolkit/dismissable/-/dismissable-3.0.6.tgz","fileCount":6,"integrity":"sha512-LSInSie9tudCu7GTv+IzJqUz/BX+3v9f9K02ILkuaNsey+1CmJgJvgitTVcnAZ7r//DNUmEBJIzEYnWprmEzyA==","signatures":[{"sig":"MEYCIQDbx8bfMjtyvz0fnElyKvgfY1u5Vbr6EmM3NwxydmE2ewIhAJnj5+eM3pxBg2ukDexzUhFKDgu96i4ABs+GyY81nP+W","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10044},"type":"module","_from":"file:288-toolkit-dismissable-3.0.6.tgz","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js"}},"scripts":{"lc":"npm run lint && npm run check","lint":"eslint --max-warnings=0 --cache .","test":"vitest run","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json --fail-on-warnings","format":"npm run format:file .","lc:watch":"npm run lint && npm run check -- --watch","lint:fix":"npm run lint -- --fix","test:watch":"vitest","check:watch":"npm run check -- --watch","format:file":"npm run format:prettier -- --write","format:prettier":"prettier --config ./.prettierrc"},"_npmUser":{"name":"f-elix","email":"guerinfelix08@gmail.com"},"_resolved":"/tmp/af3eaacdb5c281b87ae2f1fa5e82f06d/288-toolkit-dismissable-3.0.6.tgz","_integrity":"sha512-LSInSie9tudCu7GTv+IzJqUz/BX+3v9f9K02ILkuaNsey+1CmJgJvgitTVcnAZ7r//DNUmEBJIzEYnWprmEzyA==","_npmVersion":"10.8.2","description":"```sh pnpm i @288-toolkit/dismissable ```","directories":{},"_nodeVersion":"20.18.2","dependencies":{"esm-env":"1.0.0","@288-toolkit/types":"^3.1.0","@288-toolkit/vite-plugin-svelte-inline-component":"^3.0.5"},"_hasShrinkwrap":false,"devDependencies":{"svelte-preprocess":"5.1.4","@testing-library/dom":"^10.0.0","@testing-library/svelte":"^5.1.0"},"peerDependencies":{"svelte":"4.x || 5.x","@sveltejs/kit":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/dismissable_3.0.6_1738601275188_0.4673050439191857","host":"s3://npm-registry-packages-npm-production"}},"3.0.7":{"name":"@288-toolkit/dismissable","version":"3.0.7","author":{"name":"DeuxHuitHuit"},"license":"MIT","_id":"@288-toolkit/dismissable@3.0.7","maintainers":[{"name":"nitriques","email":"open-source@deuxhuithuit.com"},{"name":"f-elix","email":"guerinfelix08@gmail.com"}],"dist":{"shasum":"c5d16190c6f887d58613c07ed5c26c548f201ac5","tarball":"https://registry.npmjs.org/@288-toolkit/dismissable/-/dismissable-3.0.7.tgz","fileCount":6,"integrity":"sha512-3UwuFwOBHa0qz3QuNMAfLyQxD5ZExsbDSFYAnAma0hpquWxhPXRUXpIxIl4yJMDCsvX6Sk9pfXISmERTcRapIA==","signatures":[{"sig":"MEUCIQDFTPOQA40DgZ3G0M+Fkxb3Y1kXNSZLoP175yY/GQH7sAIgdckA/uN0eMtzroCilXhbTMWglP1l7rwyNcTXt71DigI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10044},"type":"module","_from":"file:288-toolkit-dismissable-3.0.7.tgz","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js"}},"scripts":{"lc":"npm run lint && npm run check","lint":"eslint --max-warnings=0 --cache .","test":"vitest run","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json --fail-on-warnings","format":"npm run format:file .","lc:watch":"npm run lint && npm run check -- --watch","lint:fix":"npm run lint -- --fix","test:watch":"vitest","check:watch":"npm run check -- --watch","format:file":"npm run format:prettier -- --write","format:prettier":"prettier --config ./.prettierrc"},"_npmUser":{"name":"f-elix","email":"guerinfelix08@gmail.com"},"_resolved":"/tmp/628d733628b52daab0a620795ed42bfa/288-toolkit-dismissable-3.0.7.tgz","_integrity":"sha512-3UwuFwOBHa0qz3QuNMAfLyQxD5ZExsbDSFYAnAma0hpquWxhPXRUXpIxIl4yJMDCsvX6Sk9pfXISmERTcRapIA==","_npmVersion":"10.8.2","description":"```sh pnpm i @288-toolkit/dismissable ```","directories":{},"_nodeVersion":"20.18.2","dependencies":{"esm-env":"1.0.0","@288-toolkit/types":"^3.1.0","@288-toolkit/vite-plugin-svelte-inline-component":"^3.0.6"},"_hasShrinkwrap":false,"devDependencies":{"svelte-preprocess":"5.1.4","@testing-library/dom":"^10.0.0","@testing-library/svelte":"^5.1.0"},"peerDependencies":{"svelte":"4.x || 5.x","@sveltejs/kit":"2.x"},"_npmOperationalInternal":{"tmp":"tmp/dismissable_3.0.7_1738679249123_0.14026801945736422","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-04-25T15:58:57.726Z","modified":"2025-09-23T15:34:37.562Z","1.0.0":"2024-04-25T15:58:58.016Z","1.0.1":"2024-04-25T16:10:52.562Z","1.0.2":"2024-04-25T20:15:26.602Z","2.0.0":"2024-04-30T20:39:57.632Z","3.0.0":"2024-05-01T00:08:04.362Z","3.0.1":"2024-05-01T14:55:15.533Z","3.0.2":"2024-05-01T14:59:01.542Z","3.0.3":"2024-05-01T15:18:11.175Z","3.0.4":"2024-05-01T15:30:15.342Z","3.0.5":"2024-05-16T14:52:46.949Z","3.0.6":"2025-02-03T16:47:55.432Z","3.0.7":"2025-02-04T14:27:29.311Z"},"author":{"name":"DeuxHuitHuit"},"license":"MIT","description":"```sh pnpm i @288-toolkit/dismissable ```","maintainers":[{"email":"open-source@deuxhuithuit.com","name":"nitriques"}],"readme":"# Dismissable\n\n```sh\npnpm i @288-toolkit/dismissable\n```\n\nThis component shows its content after an optional timeout and registers dismissals in browser\nstorage. It supports both a maximum age and a last update date. The content will show up again if\nthe dismissal is expired or if the content has been updated since the last dismissal.\n\nIt is useful for a banner or a cookie consent popup, for example.\n\n## Props\n\n### key\n\nUsed to identify the content being dismissed in browser storage.\n\n```ts\nexport let key: string;\n```\n\n### timeout\n\nThe delay in milliseconds before the content shows up.\n\n```ts\nexport let timeout = 0;\n```\n\n### lastUpdatedAt\n\nThe date of the last update of the content.\n\n```ts\nexport let lastUpdatedAt: Maybe<Date> = null;\n```\n\n### maxAge\n\nThe maximum age of the dismissal in seconds. The content will show up again after this time has\npassed.\n\n```ts\nexport let maxAge = 0;\n```\n\n### browserStorage\n\nWhether to use `sessionStorage` or `localStorage`.\n\n```ts\nexport let browserStorage: 'local' | 'session' = 'local';\n```\n\n### closeOnNav\n\nWhether to close the content when navigating to another page.\n\n```ts\nexport let closeOnNav = false;\n```\n\n### close\n\nA function to close the popup without persistence.\n\n```ts\nexport const close: () => void;\n```\n\n### dismiss\n\nA function to dismiss the popup for the provided maxAge.\n\n```ts\nexport const dismiss: () => void;\n```\n\n### isDismissed\n\nA function to check if the popup is dismissed.\n\n```ts\nexport const isDismissed: () => boolean;\n```\n\n## Slot props\n\n-   `close` (`() => void`): A function to close the popup.\n-   `dismiss` (`() => void`): A function to dismiss the popup.\n-   `dismissed` (`boolean`): Wether the popup is dimissed.\n\n## Examples\n\nThe default storage is `localStorage`, but you can also use `sessionStorage`.\n\n```svelte\n<script lang=\"ts\">\n\timport { Dismissable } from '@288-toolkit/dismissable';\n</script>\n\n<Dismissable key=\"forever\" browserStorage=\"session\" let:close>\n\t<div>This content can be dismissed once per session.</div>\n\t<button on:click={close}>Dismiss</button>\n</Dismissable>\n```\n\nYou can dismiss the content based on a maximum age in seconds.\n\n```svelte\n<script lang=\"ts\">\n\timport { Dismissable } from '@288-toolkit/dismissable';\n</script>\n\n<Dismissable key=\"maxage\" maxAge={5} let:close>\n\t<div>This content can be dismissed for 5 seconds</div>\n\t<button on:click={close}>Dismiss</button>\n</Dismissable>\n```\n\nThe content will be back as soon as `lastUpdatedAt` prop is sooner then the last dismissal.\n\n```svelte\n<script lang=\"ts\">\n\timport { Dismissable } from '@288-toolkit/dismissable';\n</script>\n\n<Dismissable key=\"lastUpdate\" maxAge={300} lastUpdatedAt={new Date(Date.now() + 1000)} let:close>\n\t<div>\n\t\tThis content can be dismissed for 300 seconds, but it won't since its lastUpdatedAt is in\n\t\tthe future.\n\t</div>\n\t<button on:click={close}>Dismiss</button>\n</Dismissable>\n```\n\nYou can also use animations in or out.\n\n```svelte\n<script lang=\"ts\">\n\timport { Dismissable } from '@288-toolkit/dismissable';\n\timport { fly } from 'svelte/transition';\n</script>\n\n<Dismissable key=\"animated\" maxAge={5} let:close>\n\t<div in:fly={{ y: 0, duration: 500 }} out:fly={{ y: -100, duration: 200 }}>\n\t\t<button on:click={close}>Dismiss</button>\n\t</div>\n</Dismissable>\n```\n","readmeFilename":"README.md"}