Commit Graph

70 Commits

Author SHA1 Message Date
Abe Tomoaki
d63cb81fb7
refactor: use const instead of let. (#153) 2022-02-11 09:24:48 +01:00
Davor Peic
3d8c766911
Update index.d.ts (#151) 2022-02-10 14:22:20 +01:00
Oskar Filipowicz
541194819b
added customButtonProps (#147) 2022-02-08 17:12:46 +01:00
Ron Braha
413abc7fd8
add missing "hideOnDecline" prop to index.d.ts (#145) 2021-12-28 12:07:49 +01:00
2a1e52b24a
Fix the TypeScript definition of some properties ( (#144)
Co-authored-by: Souchet Céline <4921914+csouchet@users.noreply.github.com>
2021-12-20 17:49:36 +01:00
eaaf6f8797 Added custom attribute props for content and container 2021-12-19 13:30:42 +01:00
c2f92ec130 added visible prop, and other missing items, to typings 2021-09-23 19:16:02 +02:00
Situ
c3ba87e62f
Update cookie value (#125)
* Chore: resetCookieConsentValue function

* Chore: VISIBLE_OPTIONS enum & render update in order to use it

* Readme review
2021-09-17 18:22:12 +02:00
696200262e Added the (optional) scrolling effect back in as it is declared legal in some countries now. 2021-08-11 11:14:18 +02:00
3e9e988e96 Fixed the return type of getCookieConsentValue in the dts file. 2021-01-27 16:34:57 +01:00
1c6f335500 release $npm_package_version 2020-12-08 18:02:10 +01:00
26306f7490 Added the exported function getCookieConsentValue to get the cookie value from custom code 2020-12-06 19:07:50 +01:00
c656e311e6 release 6.0.0 2020-11-02 19:43:03 +01:00
Gerard Brull
d0c619542d
Remove scroll on accept (#89) 2020-11-02 19:16:58 +01:00
5e4e8406e6 added aria label capabilities for both buttons 2020-10-13 22:13:09 +02:00
cb93ae6387 set default SameSite attribute to "lax" 2020-10-04 09:51:53 +02:00
Benedikt Bauer
5910a110ce
Add ButtonWrapperClass from v4 to type definition (#80) 2020-07-23 12:44:16 +02:00
97bb1e5be0 version bump and build 2020-06-28 11:58:17 +02:00
Bram Devries
4fa6476406
Set cookie value before handling side-effects (#76) 2020-06-28 11:26:06 +02:00
47f0e98fe4 Removed the React.Fragment and introduced a more general div. By moving the declaration in code our html code is a bit nicer as well. Fixes #74 2020-06-18 18:14:17 +02:00
6dbd794b6e version bump and build 2020-06-17 10:29:15 +02:00
Sean Teague
76ec5ba9e6
Overlay develop feature (#71)
Thanks again @Steague
2020-06-17 10:25:21 +02:00
e7c2b5b39a bugfix issue#68 2020-05-26 17:16:01 +02:00
a64cbc28f9 minor bugfixes for PR https://github.com/Mastermindzh/react-cookie-consent/pull/68
- extracted code which handles setting/getting cookies.
- added correct implementation of the legacy cookie fix according to the provided url
- added cookieSecurity attribute with default value based on runtime environment
- updated README
- ran builds
2020-05-23 22:36:28 +02:00
mding5692
d7bfb5bfbd Fixes typo with component config 2020-05-19 12:06:00 -04:00
mding5692
3cf103ae3a Fixes typo with js cookie samesite props 2020-05-19 12:04:54 -04:00
mding5692
a45da474b4 Adds fallback for older incompatible browsers with samesite=none 2020-05-18 13:43:39 -04:00
mding5692
ee7ac9ed86 Adds config for samesite support 2020-05-17 12:09:53 -04:00
900d724ea5 made CookieConsent the default containerClass 2020-05-11 08:34:50 +02:00
d1a1c39ef6 buttonWrapper added, npm updates done, changelog added and formatting 2020-05-10 11:32:06 +02:00
Iliyan Yotov
c1659cef53 Adjust the typing and the prop-type definitions related to the ButtonComponent property 2020-05-08 00:32:48 +03:00
Matt Knight
7cc1fc3905 Fix #56 - add acceptedByScrolling to onAccept
Checking the {acceptedByScrolling} boolean property will allow you to
determine whether the acceptance was triggered by the user scrolling
(if acceptedByScrolling=true) or explicitly clicking the Accept button
(if acceptedByScrolling=false).
2019-12-19 15:39:17 -07:00
959412c96b fixed typings, my bad! 2019-08-19 19:10:23 +02:00
844b69363e Merge branch 'master' of github.com:Mastermindzh/react-cookie-consent into develop 2019-08-12 18:41:01 +02:00
1c3a54bd89 no longer setting position when location is passed.
added property "setDeclineCookie" to indicate whether a cookie has to be set on decline.

fixes #45
fixes #46
2019-08-12 18:38:25 +02:00
Ahmad Game
f7a98c925d When running in debug mode, the scroll liteneris always added regardless of weather the acceptOnScroll was set to true or false 2019-06-27 11:30:43 +02:00
csoLs
34ac530629 Add flipButtons to ts definition 2019-05-03 10:47:55 +02:00
b1ba269ed3 added buttonFlipping 2019-04-13 22:17:03 +02:00
13701e0a1d changed default colours 2019-04-13 22:09:16 +02:00
3926fff424 prettified the code 2019-04-13 21:30:58 +02:00
Fannar Orn Hermannsson
351b0e1233 Decline button added and bug fix for onAccept being triggered on scroll to accept when a cookie was already created 2019-04-05 22:25:15 +00:00
Varmint
abe9a06399 Provide feedback the button is clickable (#37) 2019-03-05 15:11:18 +01:00
9baff03191 Revert "reverted PascalCase to camelCase, thanks again for the contribution @charlyx !"
This reverts commit 969da3c809.
2019-02-26 14:01:17 +01:00
969da3c809 reverted PascalCase to camelCase, thanks again for the contribution @charlyx ! 2019-02-26 13:27:13 +01:00
Charles-Henri GUERIN
ee24754fc8 Add prop ButtonComponent (#36)
*  Add prop buttonComponent

Allow users to use their own button component

* 🐛 Make it work as expected

* 📝 Add ButtonComponent to the Props table

* ✏️ Capitalize ButtonComponent in index.d.ts
2019-02-26 13:23:17 +01:00
0a5e4ea440 added the disableButtonStyles property 2019-02-04 20:38:46 +01:00
1822d9ad83 prettified the typescript definition file (using prettier) 2018-11-28 09:03:48 +01:00
Allan Kimmer Jensen
ef192c0e86 Fix issue pointed out in PR
Last commit went a little too fast it seems, this fixes:

- Spelling error
- Indentation
- Code Syntax (No interface prefix)
2018-11-27 19:50:32 +01:00
Allan Kimmer Jensen
673f4fe28f Add TypeScript Definition
Add a TypeScript Definition, and "build" it with webpack to the build folder.

This will add correct typings, if you use TypeScript with React.

#27
2018-11-27 17:40:11 +01:00
Sean Delaney
f1fdab3bb5 Added new buttonId prop
Signed-off-by: Sean Delaney <hello@delaneymethod.com>
2018-10-19 10:38:51 +01:00