This package has been deprecated

Author message:

This package is no longer used.

@billogram/billogram-cookies

0.0.18 • Public • Published

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

Package Sidebar

Install

npm i @billogram/billogram-cookies

Weekly Downloads

2

Version

0.0.18

License

UNLICENSED

Unpacked Size

199 kB

Total Files

17

Last publish

Collaborators

  • jamesbillo
  • oscarekholm
  • irynaziruikina
  • jmfederico
  • andreagylling
  • ewakosciukiewicz
  • miriamlarsson