diff --git a/CHANGELOG.md b/CHANGELOG.md index 4756c8d..7168618 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [[6.4.1](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.4.1))] + +- Added missing typing + +## [[6.4.0](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.4.0))] + +- Added visible prop + ## [[6.3.0](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.2.3))] - Added the (optional) scrolling effect back in as it is declared legal in some countries now. diff --git a/src/index.d.ts b/src/index.d.ts index 63786e8..5785714 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -4,6 +4,7 @@ import Cookies from "js-cookie"; export interface CookieConsentProps { location?: "top" | "bottom" | "none"; sameSite?: "strict" | "lax" | "none"; + visible?: "hidden" | "show" | "byCookieValue"; cookieSecurity?: boolean; style?: object; buttonStyle?: object; @@ -53,4 +54,17 @@ export default class CookieConsent extends React.Component