dryven

Cookie Byte Release Notes

dryven

1.5.3

August 19th, 2024

What's Changed

  • v1.5.3 by @dryven in https://github.com/dryven/cookie-byte/pull/35

Full Changelog: https://github.com/dryven/cookie-byte/compare/v1.5.2...v1.5.3

1.5.2

June 11th, 2024

What's Changed

  • 1.5.2 by @dryven-daniel in https://github.com/dryven/cookie-byte/pull/34

Full Changelog: https://github.com/dryven/cookie-byte/compare/v1.5.1...v1.5.2

1.5.1

June 6th, 2024

What's Changed

  • Add config to documentation

Full Changelog: https://github.com/dryven/cookie-byte/compare/v1.5.0...v1.5.1

1.5.0

May 15th, 2024

What's Changed

  • Add support for Statamic v5.x by @dryven-daniel in https://github.com/dryven/cookie-byte/pull/30

Full Changelog: https://github.com/dryven/cookie-byte/compare/v1.4.3...v1.5.0

1.4.3

December 12th, 2023

What's Changed

  • Dispatch event when frontend JS is loaded by @wiegertschouten in https://github.com/dryven/cookie-byte/pull/27

New Contributors

  • @wiegertschouten made their first contribution in https://github.com/dryven/cookie-byte/pull/27

Full Changelog: https://github.com/dryven/cookie-byte/compare/v1.4.2...v1.4.3

1.4.2

August 25th, 2023

Full Changelog: https://github.com/dryven/cookie-byte/compare/v1.4.1...v1.4.2

1.4.1

August 25th, 2023

Full Changelog: https://github.com/dryven/cookie-byte/compare/v1.4.0...v1.4.1

1.4.0

August 25th, 2023

What's Changed

  • Make it easier to apply custom styles by @dryven in https://github.com/dryven/cookie-byte/pull/25

New Contributors

  • @dryven made their first contribution in https://github.com/dryven/cookie-byte/pull/25

Full Changelog: https://github.com/dryven/cookie-byte/compare/v1.3.0...v1.4.0

1.3.0

May 17th, 2023

Added

  • Add support for Statamic 4.x

1.2.2

April 18th, 2023

Fixed

  • Fix current site returning selected site

1.2.1

April 18th, 2023

Fixed

  • Fix multi site not working correctly in CP since Site::current() is not returning the selected site

1.2.0

March 23rd, 2023

Added

Expandable cookie categories * acc. to GDPR, every using must get all the information about a cookie without having to visit the privacy policy first * since the tooltip isn't sufficient for this case, we are adding a bard field * this extended info is expandable for each category * Warning: This is a breaking change! Make sure to check your styles as they might be broken by this change.

Changed

  • Move to js-cookie as it is more reliable
  • Remove pause before hiding cookie cover

1.1.5

March 15th, 2023

[v1.1.5] - 2023-03-15

Added

  • Let users specify link_collections for bards

Changed

  • Remove bard text align options, as they do not work for addons

1.1.4

February 21st, 2023

Changed

  • Control Panel: Make modal description a bard field
  • Control Panel: Fix typo in modal position variables
  • Add update scripts to migrate modal_description and modal position variables

1.1.3

February 21st, 2023

Fixed

  • Cookie Cover: Make script tags executable in a cookie cover

1.1.2

February 15th, 2023

Changed

  • Cookie Cover: Make the HTML snippet of a cookie cover be added before the cover element without a div surrounding it

1.1.1

February 10th, 2023

Fixed

  • Cookie Cover: Make cookie covers tag compatible with Laravel versions before 9.x

1.1.0

February 10th, 2023

This update brings a lot of new features: Slots for cookie content covers, better multisite and static caching support and fieldtypes for selecting cookie categories and cookie covers. We made sure to make this backwards compatible for users that don't use custom styles or code. For advanced users, you should probably check what changed in the stylesheets and JavaScript code to make this release work correctly.

Added

  • Cookie Cover: Add a slot, which contents are hidden as long as its cookie categories haven't been accepted
  • Control Panel: Make the handles of cookie categories and cookie covers required and only consist of alpha characters
  • Control Panel: Make it possible to change the configuration file identifier from locale to handle, so it's possible to save different configs even though two multisites have the same locale (thanks to @quintenbuis)
  • Fields: Add fieldtypes for cookie categories' and cookie covers' handles
  • Add full plug-and-play support for Statamic static caching
  • Add support for Statamic 3.4+

Changed

  • Cookie Cover: Make the cookie cover be fully controlled by JavaScript instead of antlers
  • Cookie Modal: Make the modal be marked as shown when it was closed by a cookie cover
  • Internal: Refactor CookieCovers to CookieCover, to separate logic of all covers and one cover
  • Internal: Change CookieConsent.cookieCover to CookieConsent.cookieCovers
  • Internal: Deprecate CookieCovers.show, CookieCovers.hide and CookieCovers.getCoversByHandle
  • Internal: Improve code documentation and typing

Fixed

  • Cookie Cover: Fix a bug that caused the background image to be invisible in some instances
  • Cookie Cover: Fix style bug, that caused the accept button to be hardly visible by default
  • Control Panel: Fix a bug that causes the cookie categories to be invalid even though it was filled correctly (More info: Statamic seems to add a ghost item while pre-processing the field, which is not visible but fails validation)

1.0.17

January 10th, 2023

Fixed

  • Hide cookie category tooltip when description is empty
  • Fix categories not being shown after install without saving once

1.0.16

June 28th, 2022

Added

  • Make config directory path an configurable variable

1.0.15

June 20th, 2022

Added

  • Make Cookie Byte work with static caching

Changed

  • Some minor code cleanup
  • Make statically cached sites update, when the CookieByte CP configuration is saved

1.0.14

August 19th, 2024

Fixed

  • Fix error when there are multiple asset containers defined #5

1.0.13

November 23rd, 2021

Fixed

  • Fix bug that prevents from saving the addons' configuration

1.0.12

November 22nd, 2021

Fixed

  • Fix bug that falsely set the consents into the browsers' cookies after accepting cookies through a cookie cover

1.0.11

November 4th, 2021

  • Fix bug that prevents the output of the javascript code which should be executed when a cookie category is consented to

1.0.10

November 4th, 2021

Fixed

  • Remove obsolete code

1.0.9

November 4th, 2021

Fixed

  • Fix bug that prevents the output of the javascript code which should be executed when a cookie category is consented to

1.0.8

October 29th, 2021

Fixed

  • Change stylesheet and javascript paths from relative to absolute

1.0.7

August 17th, 2021

Fixed

  • Bug that ignored unchecked checkboxes in the cookie modal when the settings were changed afterwards #3

1.0.6

August 12th, 2021

Fixed

  • Cookie covers with the same handle on one page are now collectively closed #2
    • Warning: Make sure to replace all instances of '#ddmcc-button-accept' to '.ddmcc-button-accept' in your custom styles, else the buttons of the covers might not be styled anymore.

1.0.5

August 11th, 2021

Added

  • Cookie covers now close as soon as their cookie category or cookie categories have been consented to from elsewhere
  • The cookie modal closes as soon as all cookie categories have been consentend to from elsewhere

Fixed

  • All cookies covers of the same cookie category are now closed at the same time #2

1.0.4

August 19th, 2024

  • Added check if a background image was set on a cookie cover
  • Fixed possible error 'Cannot render an array variable as a string: {{ bg_image }}'

1.0.3

May 24th, 2021

  • Fixed permissions for navigation and settings controller

1.0.2

May 10th, 2021

  • Fixed invalid expire date in cookies

1.0.1

May 6th, 2021

  • Added prevention for running a callback multiple times.
  • Added autorun option for controlling if the callbacks are automatically run with initialization of the class.

1.0.0

April 13th, 2021

Added

  • Cookie modal
    • customizable text
    • customizable position
    • customizable background
    • checkbox for each cookie category
    • two buttons: "Select all" and "Confirm selection"
  • Cookie content cover
    • customizable text
    • customizable background image
  • JavaScript
    • Object CookieConsent: consent & callback management
      • Method hasConsent(cookieCategories) for checking consent of cookie category/categories
      • Method consent(cookieCategories) for consenting to cookie category/categories
      • Method registerCallback(cookieCategory, callback) Registering a callback function after consenting to a cookie category
      • Method unregisterCallback(cookieCategories) unregistering callback functions
      • Method runCallback(cookieCategories) runs the callback if the cookie category/categories have already been consented to
      • Method runCallbacks() runns callbacks of all consented cookie categories
    • Object CookieModal: modal initialization
      • Method show() Makes the modal appear
      • Method hide() Makes the modal disappear
    • Object CookieCovers: initialization of content covers
      • Method getCoverByHandle(handle) Returns content cover element by handle
      • Method show(cover) Makes the given content cover appear
      • Method hide(cover) Makes the given content cover disappear
  • CSS
    • Pre-defined styles for modal and content covers
    • Pre-defined styles for checkboxes, buttons and tooltips
  • Tags
    • Tags for checking consent, the modal and the content covers
  • Control Panel
    • 3 Tabs for customizing the addon, the modal and the content covers
    • English and German translation files
    • English and German default config files
    • Icon for navigation item