Skip to content

Releases: Seishin/bite-consent

v0.0.9

02 May 11:53
Compare
Choose a tag to compare

Version 0.0.9 Release Notes

New Features

  • Enhance useBiteConsent with Theme Support: Added theme support to the useBiteConsent hook, allowing users to specify a theme object containing color configurations. Updated implementation to utilize theme colors for the consent banner. (Commit: af9eefd)

Enhancements

  • Refactor useBiteConsent with Options: Refactored the useBiteConsent hook to accept an options object instead of individual parameters. This improves readability and flexibility for future updates. (Commit: ce5c2f4)

  • Observe Theme Mode Change or Provide Externally: Added a ThemeProvider responsible for observing theme mode changes. The widget can now be configured to automatically detect changes or accept light or dark mode through the mode property. (Commit: 8cc4e9e)

Maintenance

  • Dependency Management: Moved framer-motion into the dependencies list, ensuring proper handling of dependencies. (Commit: b4023b8)

v0.0.8

01 May 05:40
Compare
Choose a tag to compare

Version 0.0.8 Release Notes

Fixes

  • Fix Roboto Font Loading: Resolved issue with Roboto font loading. Updated font loading mechanism to ensure proper rendering across environments. (Commit: 9a136b6)

v0.0.7

29 Apr 14:42
Compare
Choose a tag to compare

Version 0.0.6 Release Notes

New Features

  • Replace Cookie PNG with SVG: Replaced cookie PNG with SVG for improved scalability and resolution independence. (Commit: 69ae876)

  • Use Roboto Font: Updated font usage to Roboto for a more modern and consistent appearance. (Commit: 8f36bc8)

  • Create Shadow Root for BiteConsent: Modified the useBiteConsent hook to create a shadow root for the BiteConsent component, providing encapsulation and isolation for the component's DOM structure. (Commit: 3a672a2)

  • Add useBiteConsent Hook: Added the useBiteConsent hook, providing functionality for managing cookie consent in React applications. Users can configure various settings such as privacy policy URL, visibility, position, cookie configuration, and onAccept callback. (Commit: ab64af5)

  • Support Custom Cookie Configuration: Extended the BiteConsent component to support custom cookie configuration, allowing users to specify additional settings for consent cookies. Enhances flexibility and compliance with cookie consent requirements. (Commit: 6945ff5)

Fixes and Enhancements

  • Fix Issue with Double Render: Resolved issue where the view was rendered twice, ensuring proper rendering behavior. (Commit: 70e52d3)

  • Fix Document Not Found Error: Resolved issue where the document was not found when executing the component in background environments like Next.js apps. Accessing the document once available prevents errors. (Commit: 2ab152b)

  • Fix for Document Issue: Additional fix for the document issue, ensuring consistent behavior across environments. (Commit: 6c83121)

v0.0.6

28 Apr 04:54
Compare
Choose a tag to compare

Version 0.0.6 Release Notes

Enhancements

  • Position Prop Made Optional: The position prop is now optional with a default value of bottom-left. Only the privacyPolicyUrl prop is required. (Commit: 31d4494)

  • Fix for Document Not Found Error: Resolved issue where the document was not found when executing the component in background environments like Next.js apps. The document is now accessed once available to check for the existence of consent cookies, preventing errors. (Commit: 2ab152b)

v0.0.5

28 Apr 04:26
Compare
Choose a tag to compare

v0.0.5 Release Notes

Improvements

  • Fix incorrect types path: Fixes the incorrect path to the TypeScript types location (Commit: c1de911)

v0.0.4

27 Apr 15:47
Compare
Choose a tag to compare

v0.0.4 Release Notes

Improvements

  • Added Cookies Icon: Added a cookies icon at the top-left corner of the view (Commit: f739b02)

v0.0.3

27 Apr 07:07
Compare
Choose a tag to compare

v0.0.3 Release Notes

New Features

  • Position Prop: Added position prop to BiteConsent component for flexible positioning options. Enhances UI layout control. (Commit: 5af4596)

  • Visibility Prop: Introduced visibility prop to manually control cookie consent view. Offers customization options. (Commit: 68c73ae)

Improvements

  • Automatic Cookie Creation: Added automatic consent cookie creation. Enhances user interaction. (Commit: 2bf5670)

  • Styling and Props: Improved styling and exposed props for better usability. (Commit: f040204)