Releases: Seishin/bite-consent
v0.0.9
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 acceptlight
ordark
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
v0.0.7
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
Version 0.0.6 Release Notes
Enhancements
-
Position Prop Made Optional: The
position
prop is now optional with a default value ofbottom-left
. Only theprivacyPolicyUrl
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
v0.0.4
v0.0.3
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)