{"_id":"@cacic-fct/account-manager-cookie-banner","_rev":"5-47be5adb72fc022e2ab8619f37a2589b","name":"@cacic-fct/account-manager-cookie-banner","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"@cacic-fct/account-manager-cookie-banner","version":"0.1.0","license":"AGPL-3.0-only","_id":"@cacic-fct/account-manager-cookie-banner@0.1.0","maintainers":[{"name":"renanyudi","email":"renanyaguinuma@hotmail.com"}],"dist":{"shasum":"c2892c98e423201986492bc794a370cf24ccca0a","tarball":"https://registry.npmjs.org/@cacic-fct/account-manager-cookie-banner/-/account-manager-cookie-banner-0.1.0.tgz","fileCount":15,"integrity":"sha512-vEzIG0JQqdnyXtsZ/3VvigvDVWewIwi3BQb46eyw3a4ihuQ4EJKVsaHNLMHtfxx85DkvTgiAS35NpnHuk/XD4Q==","signatures":[{"sig":"MEYCIQDaQ7vaU/aEDorDdR2T7+Xf4FZRv7sgvMwCP0MGrwwonAIhAO+tVs+W5VCLxK6Tki5husIGuc3KWKF4G6SJA5az9fe3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28412},"type":"module","shasum":"c2892c98e423201986492bc794a370cf24ccca0a","exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./angular":{"types":"./angular/index.d.ts","default":"./angular/index.js"},"./styles.css":"./lib/cookie-banner.css"},"_npmUser":{"name":"renanyudi","email":"renanyaguinuma@hotmail.com"},"_integrity":"sha512-vEzIG0JQqdnyXtsZ/3VvigvDVWewIwi3BQb46eyw3a4ihuQ4EJKVsaHNLMHtfxx85DkvTgiAS35NpnHuk/XD4Q==","repository":{"url":"git+https://github.com/cacic-fct/account-manager.git","type":"git","directory":"libs/cookie-banner"},"_npmVersion":"10.8.3","description":"CACiC cookie consent banner with vanilla and Angular entry points.","directories":{},"sideEffects":["**/*.css"],"_nodeVersion":"24.3.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/account-manager-cookie-banner_0.1.0_1782332719575_0.7578678110024912","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@cacic-fct/account-manager-cookie-banner","version":"0.1.1","license":"AGPL-3.0-only","_id":"@cacic-fct/account-manager-cookie-banner@0.1.1","maintainers":[{"name":"renanyudi","email":"renanyaguinuma@hotmail.com"}],"homepage":"https://github.com/cacic-fct/account-manager#readme","bugs":{"url":"https://github.com/cacic-fct/account-manager/issues"},"dist":{"shasum":"cacaf315eeacef3ca56376f638175dfdbdcceca2","tarball":"https://registry.npmjs.org/@cacic-fct/account-manager-cookie-banner/-/account-manager-cookie-banner-0.1.1.tgz","fileCount":15,"integrity":"sha512-fNB2dT9isAClyALbWUtry8lwT/mK2UtbldgW/eGGPkYHoJ7/e8ZLdk1IjHhiRmwLUwvgOs082vY17iYmgXmoLw==","signatures":[{"sig":"MEYCIQDpg7a50vKqwe4Ovi+6xp2r91lAlBEXoxkWEXZFx9eAWgIhAP7NVOB2Vr7byIUXoSPXJ+oF05HAV7ABzjXdSRF9aLWx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cacic-fct%2faccount-manager-cookie-banner@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":42340},"type":"module","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./angular":{"types":"./angular/index.d.ts","default":"./angular/index.js"},"./styles.css":"./lib/cookie-banner.css"},"gitHead":"94b2a29cae741384b597063222c765f8d5deb541","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a3054625-7b67-45f3-a891-6d8bc85b10d4"}},"repository":{"url":"git+https://github.com/cacic-fct/account-manager.git","type":"git","directory":"libs/cookie-banner"},"_npmVersion":"11.17.0","description":"CACiC cookie consent banner with vanilla and Angular entry points.","directories":{},"sideEffects":["**/*.css"],"_nodeVersion":"26.4.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/account-manager-cookie-banner_0.1.1_1782423144786_0.9115620867764558","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@cacic-fct/account-manager-cookie-banner","version":"0.1.2","license":"AGPL-3.0-only","_id":"@cacic-fct/account-manager-cookie-banner@0.1.2","maintainers":[{"name":"renanyudi","email":"renanyaguinuma@hotmail.com"}],"homepage":"https://github.com/cacic-fct/account-manager#readme","bugs":{"url":"https://github.com/cacic-fct/account-manager/issues"},"dist":{"shasum":"a6b045806c862930fd64f4dd5207ba5f00543888","tarball":"https://registry.npmjs.org/@cacic-fct/account-manager-cookie-banner/-/account-manager-cookie-banner-0.1.2.tgz","fileCount":15,"integrity":"sha512-/1Zg85crrfaRnPA0cI9jsp4KllqBqZN16QxM1hbSKR6FUsSIh4TGrXmOlGcodIptben00m7azBL3twbklFyaTg==","signatures":[{"sig":"MEUCIEBS3rLrjiIs/rbx8ArDYL3J8iwS6FlXOndQBWcPmqpjAiEAuPamm3ss6Y8E8ilYknJ+IBaUHUYN3qRNljTJxLuX6js=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cacic-fct%2faccount-manager-cookie-banner@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":41487},"type":"module","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./angular":{"types":"./angular/index.d.ts","default":"./angular/index.js"},"./styles.css":"./lib/cookie-banner.css"},"gitHead":"c430c241118a1cf52de4668e6817cb876acd6510","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a3054625-7b67-45f3-a891-6d8bc85b10d4"}},"repository":{"url":"git+https://github.com/cacic-fct/account-manager.git","type":"git","directory":"libs/cookie-banner"},"_npmVersion":"11.17.0","description":"CACiC cookie consent banner with vanilla and Angular entry points.","directories":{},"sideEffects":["**/*.css"],"_nodeVersion":"26.5.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/account-manager-cookie-banner_0.1.2_1784857910994_0.6756331941630567","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@cacic-fct/account-manager-cookie-banner","version":"0.1.3","license":"AGPL-3.0-only","_id":"@cacic-fct/account-manager-cookie-banner@0.1.3","maintainers":[{"name":"renanyudi","email":"renanyaguinuma@hotmail.com"}],"homepage":"https://github.com/cacic-fct/account-manager#readme","bugs":{"url":"https://github.com/cacic-fct/account-manager/issues"},"dist":{"shasum":"ef515b0bd7e741a1671e15e647a40bc2647f6fcc","tarball":"https://registry.npmjs.org/@cacic-fct/account-manager-cookie-banner/-/account-manager-cookie-banner-0.1.3.tgz","fileCount":15,"integrity":"sha512-Y7BexEhN/WlqDksbgFDfCTT0bqwU5UtvFWPlrPekv07fIHPGuK1zLb7xl2+jHU5/iBWQMKbwGWN8gP7ypRskkw==","signatures":[{"sig":"MEQCIEKxL9ZfjwE99gYGsab70MpOtG4t0FjaKYCyC+QtdUBkAiA49vB0QLQfz/NQHtdfaorVKwzXnySq4k/rq1dVEuzkwA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cacic-fct%2faccount-manager-cookie-banner@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":41486},"type":"module","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./angular":{"types":"./angular/index.d.ts","default":"./angular/index.js"},"./styles.css":"./lib/cookie-banner.css"},"gitHead":"1c725a737bde79ff1162e332827022b9a1ce6946","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a3054625-7b67-45f3-a891-6d8bc85b10d4"}},"repository":{"url":"git+https://github.com/cacic-fct/account-manager.git","type":"git","directory":"libs/cookie-banner"},"_npmVersion":"11.19.0","description":"CACiC cookie consent banner with vanilla and Angular entry points.","directories":{},"sideEffects":["**/*.css"],"_nodeVersion":"26.7.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/account-manager-cookie-banner_0.1.3_1787234070492_0.2187675624662837","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"_id":"@cacic-fct/account-manager-cookie-banner@0.1.4","bugs":{"url":"https://github.com/cacic-fct/account-manager/issues"},"dist":{"shasum":"54e20df749496ea4d1f19dffbcdf81823835c030","tarball":"https://registry.npmjs.org/@cacic-fct/account-manager-cookie-banner/-/account-manager-cookie-banner-0.1.4.tgz","fileCount":15,"integrity":"sha512-rUR3He0pBaSSaKM8ISx1LaQTwy6r6pp8YpkwXnTu4JAU6jL//KDPaHh1DJEC23GWF42j4TYOkNfEzASwmSBU2A==","signatures":[{"sig":"MEUCIQCgIfIipF0/Q+3tKkDLE1cx043DPNlJLkFt1Dgde1je7gIgJSG+PHzUNS0l5fbsV4q0ouX9Pcx9OTo+msMW5d2L40o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD0+2WBCVttXyB+I+gE+++hNFmZJQb8LnGk/gw77JSxfQIgb26HSwyMGt+89knnNdXO9ALirGpM6OreE622xAvWm+0="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cacic-fct%2faccount-manager-cookie-banner@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":41487},"name":"@cacic-fct/account-manager-cookie-banner","type":"module","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./angular":{"types":"./angular/index.d.ts","default":"./angular/index.js"},"./styles.css":"./lib/cookie-banner.css"},"gitHead":"8932e9a2e5b13874e5b67c246a56346c35fedf07","license":"AGPL-3.0-only","version":"0.1.4","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"a3054625-7b67-45f3-a891-6d8bc85b10d4"}},"homepage":"https://github.com/cacic-fct/account-manager#readme","repository":{"url":"git+https://github.com/cacic-fct/account-manager.git","type":"git","directory":"libs/cookie-banner"},"_npmVersion":"11.19.1","description":"CACiC cookie consent banner with vanilla and Angular entry points.","directories":{},"maintainers":[{"name":"renanyudi","email":"renanyaguinuma@hotmail.com"}],"sideEffects":["**/*.css"],"_nodeVersion":"26.10.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/account-manager-cookie-banner_0.1.4_1791066044680_0.048512791063217264"}}},"time":{"created":"2026-06-24T20:25:19.459Z","modified":"2026-10-03T22:20:45.131Z","0.1.0":"2026-06-24T20:25:19.713Z","0.1.1":"2026-06-25T21:32:24.918Z","0.1.2":"2026-07-24T01:51:51.181Z","0.1.3":"2026-08-20T13:54:30.641Z","0.1.4":"2026-10-03T22:20:44.765Z"},"bugs":{"url":"https://github.com/cacic-fct/account-manager/issues"},"license":"AGPL-3.0-only","homepage":"https://github.com/cacic-fct/account-manager#readme","repository":{"url":"git+https://github.com/cacic-fct/account-manager.git","type":"git","directory":"libs/cookie-banner"},"description":"CACiC cookie consent banner with vanilla and Angular entry points.","maintainers":[{"name":"renanyudi","email":"renanyaguinuma@hotmail.com"}],"readme":"# @cacic-fct/account-manager-cookie-banner\n\nCACiC cookie consent banner with vanilla JavaScript and Angular entry points.\n\n## Install\n\nInstall from the public npm registry with Bun:\n\n```bash\nbun add @cacic-fct/account-manager-cookie-banner\n```\n\n## Angular\n\n```ts\nimport { CookieBannerComponent, type CookieBannerOptions } from '@cacic-fct/account-manager-cookie-banner/angular';\n```\n\n```html\n<lib-cookie-banner [config]=\"cookieBannerConfig\" />\n```\n\nWhen a user accepts the banner on `cacic.com.br` or any `*.cacic.com.br`\nsubdomain, the package stores a shared `cacic_cookie_banner_accepted=true`\ncookie for `.cacic.com.br`. Other CACiC sites on the same domain will hide the\nbanner even for logged-out users. The package also keeps the existing\n`localStorage` marker as a fallback for localhost and non-shared domains.\n\n## Vanilla\n\n```ts\nimport { createCookieBanner, hasAcceptedCookieBanner } from '@cacic-fct/account-manager-cookie-banner';\n\ncreateCookieBanner({\n  privacyPolicyUrl: 'https://cacic.com.br/legal/privacy-policy',\n});\n\nconsole.log(hasAcceptedCookieBanner());\n```\n\n## Building\n\nRun `bunx nx build cookie-banner` to build the library.\n\n## Publishing\n\nThis package has an independent release cycle. Updates under `libs/cookie-banner` trigger the package publishing workflow, so bump this package's own `version` before merging changes that should be published.\n\nRun `bun run publish:cookie-banner` from the repository root when publishing\nmanually. The CI workflow publishes this package to npm through Trusted\nPublishing.\n","readmeFilename":"README.md"}