{"_id":"@ahdcreative/cookie-banner","_rev":"4-6331f69a94fb214e8828f65e5f7c9331","name":"@ahdcreative/cookie-banner","dist-tags":{"latest":"1.1.6"},"versions":{"1.0.2":{"name":"@ahdcreative/cookie-banner","version":"1.0.2","author":{"name":"AHD Creative","email":"hello@ahd-creative.agency"},"license":"MIT","_id":"@ahdcreative/cookie-banner@1.0.2","maintainers":[{"name":"ahdluca","email":"luca@ahd-creative.agency"}],"dist":{"shasum":"2f2c7089a0daae443fc0d0c5e82f9eb52f1355c7","tarball":"https://registry.npmjs.org/@ahdcreative/cookie-banner/-/cookie-banner-1.0.2.tgz","fileCount":7,"integrity":"sha512-LNiy9TBeYpLVjddr+Xyq/vgdIoGzO6q+nuEH275H19nVckqy2H9AKyxbrxwoB7d1neTG8XEOVWFC2u4mv8vr1A==","signatures":[{"sig":"MEUCIQDitVpjBpev/LlBNMnz5DrduaVRA8Lfg1BE2RJa8O9xOwIgdNKpnd4bAxZoUhdCZiUdgSWWzRLLkLjy9uImMAwqxhA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9543},"main":"./dist/vue-cookie-law.umd.cjs","type":"module","types":"./dist/vue-cookie-law.d.ts","module":"./dist/vue-cookie-law.js","exports":{".":{"types":"./dist/vue-cookie-law.d.ts","import":"./dist/vue-cookie-law.js","require":"./dist/vue-cookie-law.umd.cjs"}},"gitHead":"fad6ad601c75e470862097c3a5568aa04d9e7cf8","scripts":{"dev":"vite build --watch","fix":"biome check --write","test":"vitest","build":"vite build && vue-tsc -p tsconfig.build.json","check":"biome check","validate":"npm run check && npm run test run && npm run build","type-check":"tsc -b"},"_npmUser":{"name":"ahdluca","email":"luca@ahd-creative.agency"},"_npmVersion":"10.8.2","description":"🍪 👮 EU Cookie Law Plugin for Vue","directories":{},"_nodeVersion":"20.20.0","dependencies":{"vue":"^3.5.28"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.21","jsdom":"^24.0.0","vitest":"^2.0.0","vue-tsc":"^3.2.4","happy-dom":"^20.6.1","typescript":"^5.5.0","@types/node":"^22.0.0","@biomejs/biome":"^2.3.15","@vue/test-utils":"^2.4.6","@vitejs/plugin-vue":"^6.0.4"},"_npmOperationalInternal":{"tmp":"tmp/cookie-banner_1.0.2_1771161588036_0.5674585975601318","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@ahdcreative/cookie-banner","version":"1.1.1","author":{"url":"https://ahd-creative.agency","name":"AHD Creative","email":"hello@ahd-creative.agency"},"license":"MIT","_id":"@ahdcreative/cookie-banner@1.1.1","maintainers":[{"name":"ahdluca","email":"luca@ahd-creative.agency"}],"homepage":"https://github.com/ahdcreative/cookie-banner#readme","bugs":{"url":"https://github.com/ahdcreative/cookie-banner/issues"},"dist":{"shasum":"99c4e0d673d56c0eba62db192454b1ea83041b52","tarball":"https://registry.npmjs.org/@ahdcreative/cookie-banner/-/cookie-banner-1.1.1.tgz","fileCount":7,"integrity":"sha512-jasPHFXvLQTz9kJaoeEGZKe/1a4ubQWXQE+44pmGWiyjlLDQMHHe1mvkaYhqYXmD2hdHQxO5ZfrT+pwu8oYSmg==","signatures":[{"sig":"MEUCIQDT/ZQJrVK2K1ZVGe0K3tp3OBeFkwFx26fuE5g7aM0tbgIgPsIw40sIL7chEXNWnCwgX9u0olJ0g+w9rIQy6TCm6fY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12448},"main":"./dist/vue-cookie-law.umd.cjs","type":"module","types":"./dist/vue-cookie-law.d.ts","module":"./dist/vue-cookie-law.js","exports":{".":{"types":"./dist/vue-cookie-law.d.ts","import":"./dist/vue-cookie-law.js","require":"./dist/vue-cookie-law.umd.cjs"}},"gitHead":"d0b19d4786cab3d2395acac5cf7e8b42901dd792","scripts":{"dev":"vite build --watch","fix":"biome check --write","test":"vitest","build":"vite build && vue-tsc -p tsconfig.build.json","check":"biome check","validate":"npm run check && npm run test run && npm run build","type-check":"tsc -b"},"_npmUser":{"name":"ahdluca","email":"luca@ahd-creative.agency"},"repository":{"url":"git+https://github.com/ahdcreative/cookie-banner.git","type":"git"},"_npmVersion":"10.8.2","description":"🍪 👮 EU Cookie Law Plugin for Vue","directories":{},"_nodeVersion":"20.20.0","dependencies":{"vue":"^3.5.28"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.21","jsdom":"^24.0.0","vitest":"^2.0.0","vue-tsc":"^3.2.4","happy-dom":"^20.6.1","typescript":"^5.5.0","@types/node":"^22.0.0","@biomejs/biome":"^2.3.15","@vue/test-utils":"^2.4.6","@vitejs/plugin-vue":"^6.0.4"},"_npmOperationalInternal":{"tmp":"tmp/cookie-banner_1.1.1_1771217510455_0.41999597603274186","host":"s3://npm-registry-packages-npm-production"}},"1.1.5":{"name":"@ahdcreative/cookie-banner","version":"1.1.5","author":{"url":"https://ahd-creative.agency","name":"AHD Creative","email":"hello@ahd-creative.agency"},"license":"MIT","_id":"@ahdcreative/cookie-banner@1.1.5","maintainers":[{"name":"ahdluca","email":"luca@ahd-creative.agency"}],"homepage":"https://github.com/ahdcreative/cookie-banner#readme","bugs":{"url":"https://github.com/ahdcreative/cookie-banner/issues"},"dist":{"shasum":"da14e18013df27f340654f270b2f891f028bb58c","tarball":"https://registry.npmjs.org/@ahdcreative/cookie-banner/-/cookie-banner-1.1.5.tgz","fileCount":8,"integrity":"sha512-7Tbh0Y0CdVLBHC/O7g+CXPUnkTebGkmKdH99rJOCDeQXPJvRJeYzXyKQ8k2qRfgvRnPU4X2cxK93IS2473mNKA==","signatures":[{"sig":"MEUCIQCMk21fo/iaeMegAsAjWuIQZJyboEeElY/NDdfk8ivavAIgcP06wXTYBXpE9e7aH4dr4Zio4l4nVMDCVTzidYbEZhQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14609},"main":"./dist/vue-cookie-law.umd.cjs","type":"module","types":"./dist/vue-cookie-law.d.ts","module":"./dist/vue-cookie-law.js","exports":{".":{"types":"./dist/vue-cookie-law.d.ts","import":"./dist/vue-cookie-law.js","require":"./dist/vue-cookie-law.umd.cjs"}},"gitHead":"17f5e76de231cf7dcc8c683c86225e6bde5633dd","scripts":{"dev":"vite build --watch","fix":"biome check --write","test":"vitest","build":"vite build && vue-tsc -p tsconfig.build.json","check":"biome check","validate":"npm run check && npm run test run && npm run build","type-check":"tsc -b"},"_npmUser":{"name":"ahdluca","email":"luca@ahd-creative.agency"},"repository":{"url":"git+https://github.com/ahdcreative/cookie-banner.git","type":"git"},"_npmVersion":"10.8.2","description":"🍪 👮 EU Cookie Law Plugin for Vue","directories":{},"_nodeVersion":"20.20.0","dependencies":{"vue":"^3.5.28"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.21","jsdom":"^24.0.0","vitest":"^2.0.0","vue-tsc":"^3.2.4","happy-dom":"^20.6.1","typescript":"^5.5.0","@types/node":"^22.0.0","@biomejs/biome":"^2.3.15","@vue/test-utils":"^2.4.6","vite-plugin-dts":"^4.5.4","@vitejs/plugin-vue":"^6.0.4"},"_npmOperationalInternal":{"tmp":"tmp/cookie-banner_1.1.5_1771218161350_0.4749031427657693","host":"s3://npm-registry-packages-npm-production"}},"1.1.6":{"name":"@ahdcreative/cookie-banner","version":"1.1.6","description":"🍪 👮 EU Cookie Law Plugin for Vue","license":"MIT","author":{"name":"AHD Creative","email":"hello@ahd-creative.agency","url":"https://ahd-creative.agency"},"repository":{"type":"git","url":"git+https://github.com/ahdcreative/cookie-banner.git"},"type":"module","scripts":{"dev":"vite build --watch","prepare":"npm run build","check":"biome check","fix":"biome check --write","build":"vite build && vue-tsc -p tsconfig.build.json","test":"vitest","validate":"npm run check && npm run test run && npm run build","type-check":"tsc -b"},"dependencies":{"vue":"^3.5.28"},"devDependencies":{"@biomejs/biome":"^2.3.15","@types/node":"^22.0.0","@vitejs/plugin-vue":"^6.0.4","@vue/test-utils":"^2.4.6","happy-dom":"^20.6.1","jsdom":"^24.0.0","typescript":"^5.5.0","vite":"^5.4.21","vite-plugin-dts":"^4.5.4","vitest":"^2.0.0","vue-tsc":"^3.2.4"},"exports":{".":{"types":"./dist/vue-cookie-law.d.ts","import":"./dist/vue-cookie-law.js","require":"./dist/vue-cookie-law.umd.cjs"},"./dist/style.css":"./dist/style.css"},"main":"./dist/vue-cookie-law.umd.cjs","module":"./dist/vue-cookie-law.js","types":"./dist/vue-cookie-law.d.ts","_id":"@ahdcreative/cookie-banner@1.1.6","gitHead":"ade13a4be240cd4d51e88c405ae467a04f1c619d","bugs":{"url":"https://github.com/ahdcreative/cookie-banner/issues"},"homepage":"https://github.com/ahdcreative/cookie-banner#readme","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-oj628Mg7LqLXY16lg0Tp85Bh3hSDztHRRvQHEUhFjpBM5531ydbDMYy9qF/weHcMjifnhSXDfvvG6rzNKOnyew==","shasum":"aa6c8e9c80efab3cc8e22156e643dd07d4800c85","tarball":"https://registry.npmjs.org/@ahdcreative/cookie-banner/-/cookie-banner-1.1.6.tgz","fileCount":6,"unpackedSize":12277,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDRoIIHQYLHJh8UBHam2HLnaMJltXI6MaTmG2IvHhmLrQIgeI7IEYEN6G9169JSG0WdotKqU4Ff1Q7shBCE/NpIKv0="}]},"_npmUser":{"name":"ahdluca","email":"luca@ahd-creative.agency"},"directories":{},"maintainers":[{"name":"ahdluca","email":"luca@ahd-creative.agency"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cookie-banner_1.1.6_1771218301672_0.5714420241429936"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-15T13:19:47.973Z","modified":"2026-02-16T05:05:01.935Z","1.0.2":"2026-02-15T13:19:48.185Z","1.1.1":"2026-02-16T04:51:50.603Z","1.1.5":"2026-02-16T05:02:41.485Z","1.1.6":"2026-02-16T05:05:01.799Z"},"bugs":{"url":"https://github.com/ahdcreative/cookie-banner/issues"},"author":{"name":"AHD Creative","email":"hello@ahd-creative.agency","url":"https://ahd-creative.agency"},"license":"MIT","homepage":"https://github.com/ahdcreative/cookie-banner#readme","repository":{"type":"git","url":"git+https://github.com/ahdcreative/cookie-banner.git"},"description":"🍪 👮 EU Cookie Law Plugin for Vue","maintainers":[{"name":"ahdluca","email":"luca@ahd-creative.agency"}],"readme":"# AHD Creative Cookie Banner\n\nSimple, lightweight, and modern Cookie Consent banner for Vue 3.\nBuilt with TypeScript, Vite, and love. 🍪\n\n## Features\n\n- **Vue 3 & TypeScript**: Native support.\n- **Lightweight**: < 2KB (gzipped).\n- **Themable**: Includes `base`, `dark`, `lime`, and `dark-lime` themes.\n- **Accessible**: Keyboard friendly.\n\n## Installation\n\n```bash\nnpm install @ahdcreative/cookie-banner\n```\n\n## Usage\n\n### Global Registration\n\nIn your `main.ts`:\n\n```typescript\nimport { createApp } from 'vue'\nimport App from './App.vue'\nimport CookieBanner from '@ahdcreative/cookie-banner'\nimport '@ahdcreative/cookie-banner/dist/style.css' // Import styles\n\nconst app = createApp(App)\napp.use(CookieBanner)\napp.mount('#app')\n```\n\nThen use it anywhere:\n\n```vue\n<template>\n  <CookieBanner />\n</template>\n```\n\n### Local Registration\n\nIn your component (e.g., `App.vue` or `Footer.vue`):\n\n```vue\n<script setup lang=\"ts\">\nimport { CookieBanner } from '@ahdcreative/cookie-banner'\nimport '@ahdcreative/cookie-banner/dist/style.css'\n</script>\n\n<template>\n  <footer>\n    <!-- ... -->\n    <CookieBanner theme=\"dark-lime\" />\n  </footer>\n</template>\n```\n\n## Internationalization (i18n)\n\nThe component supports `en` and `it` out of the box. You can pass a `locale` prop to switch language:\n\n```vue\n<CookieBanner locale=\"it\" />\n```\n\nOr provide custom translations:\n\n```vue\n<CookieBanner \n  locale=\"es\"\n  :translations=\"{\n    es: {\n      message: 'Este sitio web utiliza cookies.',\n      buttonText: '¡Entendido!'\n    }\n  }\"\n/>\n```\n\n## Props\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| `locale` | `String` | `'en'` | Current locale ('en', 'it'). |\n| `translations` | `Object` | `{ en: {...}, it: {...} }` | Translation object with `message` and `buttonText` keys. |\n| `message` | `String` | `null` | **Overrides** the translation message. |\n| `buttonText` | `String` | `null` | **Overrides** the translation button text. |\n| `theme` | `String` | `\"base\"` | Theme name (`base`, `dark`, `lime`, `dark-lime`). |\n| `storageName` | `String` | `\"cookie:accepted\"` | LocalStorage key to save consent. |\n\n## Themes\n\n- **base**: White background, black button.\n- **dark**: Dark gray background, white button.\n- **lime**: Lime-tinted background, lime button.\n- **dark-lime**: Dark background, lime button (AHD Brand).\n\n## License\n\nMIT\n","readmeFilename":"README.md"}