{"_id":"@allomambo/galletita","_rev":"4-dfa4a91937dffed9faa3273dcdf4f4e9","name":"@allomambo/galletita","description":"Extra simple privacy policy solution","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.1":{"name":"@allomambo/galletita","version":"0.0.1","author":{"url":"https://mambomambo.ca","name":"MamboMambo","email":"allo@mambomambo.ca"},"license":"MIT","_id":"@allomambo/galletita@0.0.1","maintainers":[{"name":"aurelvigne","email":"av@mambomambo.ca"},{"name":"jesuismaxime","email":"ml@mambomambo.ca"},{"name":"belleymambo","email":"ab@mambomambo.ca"}],"contributors":[{"url":"https://mambomambo.ca/","name":"Alexandre Belley","email":"ab@mambomambo.ca"},{"url":"https://maximelafreniere.com","name":"Maxime Lafrenière","email":"jesuis@maximelafreniere.com"},{"url":"http://www.aurelienvigne.com","name":"Aurélien Vigne","email":"yay@aurelienvigne.com"}],"homepage":"https://github.com/allomambo/galletita#readme","bugs":{"url":"https://github.com/allomambo/galletita/issues"},"dist":{"shasum":"145b14f0eea7f25b81298430b82353aec79c40df","tarball":"https://registry.npmjs.org/@allomambo/galletita/-/galletita-0.0.1.tgz","fileCount":6,"integrity":"sha512-6VERHJCNPzfsH+2UiyAp8y32cwqWFbqzSPsuYLc3qDUlMdKFoi/3++xQdPVNw/SDvPClIZH+iyQcRSeA64MygA==","signatures":[{"sig":"MEUCIQD88d+QOLg5vhdRrUS27IvaC8qijhhmulZpLhCKq1FwcQIgUiOIUzbAAWkB+WarayM+AJGr6nfD2RnK3dBSSaqquoQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65208},"main":"./dist/index.js","module":"./dist/index.js","engines":{"npm":">=8.0.0","node":">=16.14.2"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"},"./css":"./dist/index.css"},"gitHead":"63054e8c2ad710b8e84daaa56c89f28bc0691264","scripts":{"ci":"yarn install --immutable --immutable-cache --check-cache","vite":"vite","build":"vue-tsc && vite build","serve":"npm-run-all --parallel watch-tsc vite","watch-tsc":"vue-tsc --watch --noEmit"},"_npmUser":{"name":"belleymambo","email":"ab@mambomambo.ca"},"repository":{"url":"git+https://github.com/allomambo/galletita.git","type":"git"},"_npmVersion":"8.5.0","description":"Extra simple cookie policy solution","directories":{},"_nodeVersion":"16.14.2","dependencies":{"vue":"^3.3.4","universal-cookie":"^6.1.1"},"_hasShrinkwrap":false,"devDependencies":{"sass":"^1.69.5","vite":"^4.4.5","vue-tsc":"^1.8.5","prettier":"^3.0.3","typescript":"^5.2.2","@types/node":"^20.8.10","npm-run-all":"^4.1.5","@vitejs/plugin-vue":"^4.2.3","@rollup/plugin-terser":"^0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/galletita_0.0.1_1699298187243_0.353064322919572","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@allomambo/galletita","version":"0.0.3","author":{"url":"https://mambomambo.ca","name":"MamboMambo","email":"allo@mambomambo.ca"},"license":"MIT","_id":"@allomambo/galletita@0.0.3","maintainers":[{"name":"aurelvigne","email":"av@mambomambo.ca"},{"name":"jesuismaxime","email":"ml@mambomambo.ca"},{"name":"belleymambo","email":"ab@mambomambo.ca"}],"contributors":[{"url":"https://mambomambo.ca/","name":"Alexandre Belley","email":"ab@mambomambo.ca"},{"url":"https://maximelafreniere.com","name":"Maxime Lafrenière","email":"jesuis@maximelafreniere.com"},{"url":"http://www.aurelienvigne.com","name":"Aurélien Vigne","email":"yay@aurelienvigne.com"}],"homepage":"https://github.com/allomambo/galletita#readme","bugs":{"url":"https://github.com/allomambo/galletita/issues"},"dist":{"shasum":"c57d1d3eda49ebe8af4d1760181a79ff3b094d29","tarball":"https://registry.npmjs.org/@allomambo/galletita/-/galletita-0.0.3.tgz","fileCount":6,"integrity":"sha512-yJbE3+hIdFw46vr1HQVTQPxudinGStN8Xe6tWgczyTPnrXfvOSg2PhUHDyEb45kipB4B61Mk3CzcYAKe+DHZiQ==","signatures":[{"sig":"MEUCIQDsgM30RDeJXc1QO8hozgytfC11P6FR0sfEHJPBtQGhggIgaTKxII8Gs4vT2g0G6PaF90vGlDE/iFMeAP3vB9/s4aU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65377},"main":"./dist/index.js","module":"./dist/index.js","engines":{"npm":">=8.0.0","node":">=16.14.2"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"},"./css":"./dist/index.css"},"gitHead":"103513053eb4902be7d594ce09a8075fe443bdd1","scripts":{"ci":"yarn install --immutable --immutable-cache --check-cache","vite":"vite","build":"vue-tsc && vite build","serve":"npm-run-all --parallel watch-tsc vite","watch-tsc":"vue-tsc --watch --noEmit"},"_npmUser":{"name":"belleymambo","email":"ab@mambomambo.ca"},"repository":{"url":"git+https://github.com/allomambo/galletita.git","type":"git"},"_npmVersion":"8.19.4","description":"Extra simple cookie policy solution","directories":{},"_nodeVersion":"16.20.2","dependencies":{"vue":"^3.3.4","universal-cookie":"^6.1.1"},"_hasShrinkwrap":false,"devDependencies":{"sass":"^1.69.5","vite":"^4.4.5","vue-tsc":"^1.8.5","prettier":"^3.0.3","typescript":"^5.2.2","@types/node":"^20.8.10","npm-run-all":"^4.1.5","@vitejs/plugin-vue":"^4.2.3","@rollup/plugin-terser":"^0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/galletita_0.0.3_1699300977287_0.3989039389226343","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@allomambo/galletita","version":"0.0.4","author":{"url":"https://mambomambo.ca","name":"MamboMambo","email":"allo@mambomambo.ca"},"license":"MIT","_id":"@allomambo/galletita@0.0.4","maintainers":[{"name":"aurelvigne","email":"av@mambomambo.ca"},{"name":"jesuismaxime","email":"ml@mambomambo.ca"},{"name":"belleymambo","email":"ab@mambomambo.ca"}],"contributors":[{"url":"https://mambomambo.ca/","name":"Alexandre Belley","email":"ab@mambomambo.ca"},{"url":"https://maximelafreniere.com","name":"Maxime Lafrenière","email":"jesuis@maximelafreniere.com"},{"url":"http://www.aurelienvigne.com","name":"Aurélien Vigne","email":"yay@aurelienvigne.com"}],"homepage":"https://github.com/allomambo/galletita#readme","bugs":{"url":"https://github.com/allomambo/galletita/issues"},"dist":{"shasum":"b78decf296eb0a2c259107ccd3138d78c8a2e8a0","tarball":"https://registry.npmjs.org/@allomambo/galletita/-/galletita-0.0.4.tgz","fileCount":10,"integrity":"sha512-03+yuIvigdwDcO8GS97/i7zce35v0oyxif5pXynxvXgbXSYYxkDd3PbzLRFkP7h/Sesl3n9pldzDVhtM9mWXeA==","signatures":[{"sig":"MEQCIAxJYSrb+ZIWRsOEh7ItL5RbHDc0WJkAfU32diiI3QmbAiAQZkvp/imXWLyZlhyFyQqlrCDQXv3gdwx22oRZSjhQNg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":106071},"main":"./dist/index.js","module":"./dist/index.js","engines":{"npm":">=8.0.0","node":">=16.14.2"},"exports":{".":{"types":"./dist/library/components.d.ts","import":"./dist/library/index.mjs","require":"./dist/library/index.umd.js"},"./css":"./dist/index.css"},"gitHead":"e916b9d09f7f59e21297bf681ae4d654ad9c74a4","scripts":{"ci":"yarn install --immutable --immutable-cache --check-cache","vite":"vite --config vite.config.library.ts","build":"vue-tsc && yarn build:plugin && yarn build:library","serve":"npm-run-all --parallel watch-tsc vite","watch-tsc":"vue-tsc --watch --noEmit","build:plugin":"vite --config vite.config.plugin.ts build","build:library":"vite --config vite.config.library.ts build"},"_npmUser":{"name":"belleymambo","email":"ab@mambomambo.ca"},"repository":{"url":"git+https://github.com/allomambo/galletita.git","type":"git"},"_npmVersion":"8.19.4","description":"Extra simple cookie policy solution","directories":{},"_nodeVersion":"16.20.2","dependencies":{"vue":"^3.3.4","universal-cookie":"^6.1.1","vite-plugin-lib-inject-css":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"sass":"^1.69.5","vite":"^4.4.5","vue-tsc":"^1.8.5","prettier":"^3.0.3","typescript":"^5.2.2","@types/node":"^20.8.10","npm-run-all":"^4.1.5","vite-plugin-dts":"^3.6.3","@vitejs/plugin-vue":"^4.2.3","@rollup/plugin-terser":"^0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/galletita_0.0.4_1705068963321_0.5530888655894719","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@allomambo/galletita","version":"1.0.0","keywords":["privacy policy","cookie","GDPR","RGPD"],"author":{"url":"https://mambomambo.ca","name":"MamboMambo","email":"allo@mambomambo.ca"},"license":"MIT","_id":"@allomambo/galletita@1.0.0","maintainers":[{"name":"aurelvigne","email":"av@mambomambo.ca"},{"name":"jesuismaxime","email":"ml@mambomambo.ca"},{"name":"belleymambo","email":"ab@mambomambo.ca"}],"contributors":[{"url":"https://mambomambo.ca/","name":"Alexandre Belley","email":"ab@mambomambo.ca"},{"url":"https://maximelafreniere.com","name":"Maxime Lafrenière","email":"jesuis@maximelafreniere.com"},{"url":"http://www.aurelienvigne.com","name":"Aurélien Vigne","email":"yay@aurelienvigne.com"}],"homepage":"https://github.com/allomambo/galletita#readme","bugs":{"url":"https://github.com/allomambo/galletita/issues"},"dist":{"shasum":"fe3d43892d1cf114ff13fef35c5550c3569500b6","tarball":"https://registry.npmjs.org/@allomambo/galletita/-/galletita-1.0.0.tgz","fileCount":10,"integrity":"sha512-tAS7FJZ1KehPANQhCtTX411MbXmczA2JKDCgBSEVuJqkcgn3B75kD6ZBbbL55xom/xOASRgR/36Rgbf9pyRyPg==","signatures":[{"sig":"MEQCIChnTorOKE3qHGtEtGRqii6vxIXShkptUOdDJWAPwEd0AiAZW22VEIqat+nQH5WqF/5Pb8g6H6B6MtHTFqfsikWGxg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":114400},"main":"./dist/index.js","module":"./dist/index.js","engines":{"npm":">=8.0.0","node":">=16.14.2"},"exports":{".":{"types":"./dist/library/components.d.ts","import":"./dist/library/index.mjs","require":"./dist/library/index.umd.js"},"./css":"./dist/index.css"},"gitHead":"871df5e726d3153bfcbbc4fab717a81a10ab8341","scripts":{"ci":"yarn install --immutable --immutable-cache --check-cache","vite":"vite --config vite.config.library.ts","build":"vue-tsc && yarn build:plugin && yarn build:library","serve":"npm-run-all --parallel watch-tsc vite","watch-tsc":"vue-tsc --watch --noEmit","build:plugin":"vite --config vite.config.plugin.ts build","build:library":"vite --config vite.config.library.ts build"},"_npmUser":{"name":"belleymambo","email":"ab@mambomambo.ca"},"repository":{"url":"git+https://github.com/allomambo/galletita.git","type":"git"},"_npmVersion":"8.19.4","description":"Extra simple privacy policy solution","directories":{},"_nodeVersion":"16.20.1","dependencies":{"vue":"^3.3.4","universal-cookie":"^6.1.1","vite-plugin-lib-inject-css":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"sass":"^1.69.5","vite":"^4.4.5","vue-tsc":"^1.8.5","prettier":"^3.0.3","typescript":"^5.2.2","@types/node":"^20.8.10","npm-run-all":"^4.1.5","vite-plugin-dts":"^3.6.3","@vitejs/plugin-vue":"^4.2.3","@rollup/plugin-terser":"^0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/galletita_1.0.0_1718134164617_0.25724786108766495","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@allomambo/galletita","version":"1.0.1","engines":{"node":">=16.14.2","npm":">=8.0.0"},"description":"Extra simple privacy policy solution","keywords":["privacy policy","cookie","GDPR","RGPD"],"repository":{"type":"git","url":"git+https://github.com/allomambo/galletita.git"},"author":{"name":"MamboMambo","email":"allo@mambomambo.ca","url":"https://mambomambo.ca"},"contributors":[{"name":"Alexandre Belley","email":"ab@mambomambo.ca","url":"https://mambomambo.ca/"},{"name":"Maxime Lafrenière","email":"jesuis@maximelafreniere.com","url":"https://maximelafreniere.com"},{"name":"Aurélien Vigne","email":"yay@aurelienvigne.com","url":"http://www.aurelienvigne.com"}],"license":"MIT","main":"./dist/index.js","module":"./dist/index.js","exports":{".":{"types":"./dist/library/components.d.ts","import":"./dist/library/index.mjs","require":"./dist/library/index.umd.js"},"./css":"./dist/index.css"},"scripts":{"ci":"yarn install --immutable --immutable-cache --check-cache","vite":"vite --config vite.config.library.ts","watch-tsc":"vue-tsc --watch --noEmit","serve":"npm-run-all --parallel watch-tsc vite","build:plugin":"vite --config vite.config.plugin.ts build","build:library":"vite --config vite.config.library.ts build","build":"vue-tsc && yarn build:plugin && yarn build:library"},"dependencies":{"universal-cookie":"^6.1.1","vite-plugin-lib-inject-css":"^1.3.0","vue":"^3.3.4"},"devDependencies":{"@rollup/plugin-terser":"^0.4.4","@types/node":"^20.8.10","@vitejs/plugin-vue":"^4.2.3","npm-run-all":"^4.1.5","prettier":"^3.0.3","sass":"^1.69.5","typescript":"^5.2.2","vite":"^4.4.5","vite-plugin-dts":"^3.6.3","vue-tsc":"^1.8.5"},"gitHead":"1bef97028273e471eceea3618983ed9ff31024e1","bugs":{"url":"https://github.com/allomambo/galletita/issues"},"homepage":"https://github.com/allomambo/galletita#readme","_id":"@allomambo/galletita@1.0.1","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1HueYBpN4zapJcfI941sB9vZ77N9YZYrMIV3HXsIei90AVvHrWXgxQUnOGwDjFGnpqOihJsyTIcHtCSplFCwzg==","shasum":"171bc0d67b8f0aa9456d3c86b9ddc058d757f932","tarball":"https://registry.npmjs.org/@allomambo/galletita/-/galletita-1.0.1.tgz","fileCount":10,"unpackedSize":114728,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCH3jHsSKhNp4ccFS80dKsoZXE+P0ugWRLwPsxfN19DMQIhAOjCO7czz11dw+lBzvcH7exLTOINQiJmwZGDatl9JqRc"}]},"_npmUser":{"name":"belleymambo","email":"ab@mambomambo.ca"},"directories":{},"maintainers":[{"name":"aurelvigne","email":"av@mambomambo.ca"},{"name":"jesuismaxime","email":"ml@mambomambo.ca"},{"name":"belleymambo","email":"ab@mambomambo.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/galletita_1.0.1_1718205957566_0.4646611025210645"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-06T19:16:27.127Z","modified":"2024-06-12T15:25:57.950Z","0.0.1":"2023-11-06T19:16:27.498Z","0.0.3":"2023-11-06T20:02:57.629Z","0.0.4":"2024-01-12T14:16:03.473Z","1.0.0":"2024-06-11T19:29:24.775Z","1.0.1":"2024-06-12T15:25:57.733Z"},"maintainers":[{"name":"aurelvigne","email":"av@mambomambo.ca"},{"name":"jesuismaxime","email":"ml@mambomambo.ca"},{"name":"belleymambo","email":"ab@mambomambo.ca"}],"author":{"name":"MamboMambo","email":"allo@mambomambo.ca","url":"https://mambomambo.ca"},"repository":{"type":"git","url":"git+https://github.com/allomambo/galletita.git"},"keywords":["privacy policy","cookie","GDPR","RGPD"],"license":"MIT","homepage":"https://github.com/allomambo/galletita#readme","bugs":{"url":"https://github.com/allomambo/galletita/issues"},"readme":"# 🍪 Galletita\n\nExtra simple privacy policy solution.  \nCan be used as either a plugin or a vueJS library.\n\n## Installation\n\n### Plugin version\n\n**1.** Add script to web page\n\n```\n<script id=\"galletita-js\" type=\"module\" src=\"https://unpkg.com/@allomambo/galletita@1.0.1/dist/index.js\"></script>\n```\n\n**2.** Define your configuration\n\n```\n<script>\nconst galletita = {\n    cookie_name: \"privacy_policy_consent\",\n    text_content: {\n        title: \"...\",\n        description: \"...\",\n        consent_button_label: \"...\",\n        reject_button_label: \"...\",\n        learn_more_button_label: \"...\",\n    },\n    privacy_policy_url: \"https://...\",\n};\n</script>\n```\n\n```\n<script>\n# Multilingual\nconst galletita = {\n    cookie_name: \"privacy_policy_consent\",\n    fr: {\n        text_content: {\n            title: \"...\",\n            description: \"...\",\n            consent_button_label: \"...\",\n            reject_button_label: \"...\",\n            learn_more_button_label: \"...\",\n        },\n        privacy_policy_url: \"https://...\",\n    },\n    en: {\n        text_content: {\n            title: \"...\",\n            description: \"...\",\n            consent_button_label: \"...\",\n            reject_button_label: \"...\",\n            learn_more_button_label: \"...\",\n        },\n        privacy_policy_url: \"https://...\",\n    },\n};\n</script>\n```\n\n### VueJS library version\n\n#### Requirements\n\n-   Node ^20.8.10\n-   VueJS ^3.3.4\n\n#### Installation\n\n**1.** Install the package\n\n```\n# With Yarn:\nyarn add @allomambo/galletita\n\n# With npm:\nnpm install @allomambo/galletita\n```\n\n**2.** Use the component in your project\n\n```\n<template>\n    <galletita :cookie-name=\"...\" :text-content=\"{...}\" :privacy-policy-url=\"...\" />\n</template>\n\n<script setup>\nimport { Galletita } from \"@allomambo/galletita\";\n</script>\n```\n\n## Props\n\n| Property             | Type                    | Description                                                                      | Default Value                      |\n| -------------------- | ----------------------- | -------------------------------------------------------------------------------- | ---------------------------------- |\n| `cookie_name`        | `string`                | The name of the cookie.                                                          | `galletita_privacy_policy_consent` |\n| `text_content`       | `GalletitaTranslations` | Contains the textual elements                                                    | See table below                    |\n| `privacy_policy_url` | `string`                | The complete URL of the privacy policy. Ex. \"https://example.com/privacy-policy\" | `null`                             |\n\n##### `text_content`\n\n| Sub-properties          | Type     | Description                                              | Default Value (English EN)                                                                                                                                                              | Default Value (Français FR)                                                                                                                                                                                                                            |\n| ----------------------- | -------- | -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| title                   | `string` | The title of the privacy policy.                         | `We value your privacy`                                                                                                                                                                 | `Nous respectons votre vie privée`                                                                                                                                                                                                                     |\n| description             | `string` | The description of the privacy policy.                   | `<p>We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic.</p><p>By clicking \"Accept\", you consent to our use of cookies.</p>` | `<p>Nous utilisons des cookies pour améliorer votre expérience de navigation, diffuser des publicités ou des contenus personnalisés et analyser notre trafic.</p><p>En cliquant sur « Accepter », vous consentez à notre utilisation des cookies.</p>` |\n| consent_button_label    | `string` | The label of the consent button.                         | `Accept`                                                                                                                                                                                | `Accepter`                                                                                                                                                                                                                                             |\n| reject_button_label     | `string` | The label of the reject button.                          | `Reject`                                                                                                                                                                                | `Refuser`                                                                                                                                                                                                                                              |\n| learn_more_button_label | `string` | The button label to learn more about the privacy policy. | `Learn more`                                                                                                                                                                            | `En savoir plus`                                                                                                                                                                                                                                       |\n\n## Slots\n\n| Name              | Description                                   |\n| ----------------- | --------------------------------------------- |\n| `default`         | Wrap the entirety of `.galletita-box`         |\n| `copy`            | The text content (title and description)      |\n| `copyTitle`       | The title                                     |\n| `copyDescription` | The description                               |\n| `actions`         | The buttons to consent, reject and learn more |\n| `actionConsent`   | The consent button                            |\n| `actionReject`    | The reject button                             |\n| `actionLearnMore` | The \"learn more\" button                       |\n\n##### Exposed data on every slots\n\n| Name                 | Type                    | Description                                                                            |\n| -------------------- | ----------------------- | -------------------------------------------------------------------------------------- |\n| `isGalletitaVisible` | `boolean`               | If modal is visible of not                                                             |\n| `cookieName`         | `string`                | The name of the cookie                                                                 |\n| `textContent`        | `GalletitaTranslations` | The complete object containing the text content (title, description and button labels) |\n| `privacyPolicyUrl`   | `string`                | The privacy policy url                                                                 |\n| `openGalletita`      | function                | Open modal                                                                             |\n| `closeGalletita`     | function                | Close modal                                                                            |\n| `consent`            | function                | Add cookie with positive consent and trigger `closeGalletita`                          |\n| `reject`             | function                | Add cookie with negative consent and trigger `closeGalletita`                          |\n\n## Emits\n\n| Name                | Description                    |\n| ------------------- | ------------------------------ |\n| `galletita:open`    | When modal is opened           |\n| `galletita:close`   | When modal is closed           |\n| `galletita:consent` | When consent button is clicked |\n| `galletita:reject`  | When reject button is clicked  |\n","readmeFilename":"README.md","contributors":[{"name":"Alexandre Belley","email":"ab@mambomambo.ca","url":"https://mambomambo.ca/"},{"name":"Maxime Lafrenière","email":"jesuis@maximelafreniere.com","url":"https://maximelafreniere.com"},{"name":"Aurélien Vigne","email":"yay@aurelienvigne.com","url":"http://www.aurelienvigne.com"}]}