version bump and build

This commit is contained in:
Rick van Lieshout 2018-11-28 09:05:35 +01:00
parent 1822d9ad83
commit 06d41df333
2 changed files with 30 additions and 1 deletions

29
build/index.d.ts vendored Normal file
View File

@ -0,0 +1,29 @@
import * as React from "react";
import Cookies from "js-cookie";
export interface CookieConsentProps {
location?: "top" | "bottom" | "none";
style?: object;
buttonStyle?: object;
contentStyle?: object;
children?: React.ReactNode;
disableStyles?: boolean;
hideOnAccept?: boolean;
onAccept?: Function;
buttonText?: Function | React.ReactNode;
cookieName?: string;
cookieValue?: string | boolean | number;
debug?: boolean;
expires?: number;
containerClasses?: string;
contentClasses?: string;
buttonClasses?: string;
buttonId?: string;
acceptOnScroll?: boolean;
acceptOnScrollPercentage?: number;
extraCookieOptions?: object;
}
export default class CookieConsent extends React.Component<CookieConsentProps, {}> {}
export { Cookies };

View File

@ -4,7 +4,7 @@
"name": "Rick van Lieshout",
"email": "info@rickvanlieshout.com"
},
"version": "1.9.0",
"version": "1.10.0",
"description": "A small, simple and customizable cookie consent bar for use in React applications.",
"main": "build/index.js",
"types": "build/index.d.ts",