Description
Getting Started
install yarn
run locally yarns start
Prerequisites
Development
npm install file: [relative path to the project root, or the folder containing package.json]
Creating a symlink would make it easier to update locally:
https://docs.npmjs.com/cli/link.html
Installing
yarn
or npm i
Usage
loading the default levels
<BillogramCookies callback={ myCallBackFunction }/>
Loading the module with multiple custom levels:
<BillogramCookies consentLevels= {[
{
title: 'Functional',
id: 'billogram-cookies-check-level0',
description: '',
checkedByDefault: true,
isStatic: false,
expiryTime: 365,
enabled: true,
level: 0,
},
{
title: 'Functional',
id: 'billogram-cookies-check-level0',
description: '',
checkedByDefault: true,
isStatic: false,
expiryTime: 365,
enabled: true,
level: 1,
},
]}
/>
Optional props:
customTranslations
closeOnScroll
customStyles
callback
policyLink
message: The default message to display, insert {{link}} to place the policy link inside the message.
disabledCookiesMessage: A message to display if cookies are completely disabled
Testing
yarn test
Publishing
You should be added to billogram organization on npm
run npm publish --access public