Closed cstrnt closed 4 months ago
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
abby-docs | โ Ready (Inspect) | Visit Preview | ๐ฌ Add feedback | Jul 10, 2024 8:17pm |
abby-opensource | โ Failed (Inspect) | Jul 10, 2024 8:17pm |
This update introduces cookie consent options to the @tryabby/svelte
, @tryabby/react
, and @tryabby/core
packages. Key changes include adding a cookies
configuration object with properties disableByDefault
and expiresInDays
, enhancing how cookies are managed, and refactoring methods to accommodate these new options. Minor updates in other files improve code structure and function handling.
Files | Change Summary |
---|---|
.changeset/two-masks-hear.md |
Introduced minor updates in multiple packages to add cookie consent options. |
apps/web/abby.config.ts |
Added cookies configuration object with disableByDefault and expiresInDays properties. |
apps/web/src/pages/devtools.tsx |
Added cookies configuration object with disableByDefault and expiresInDays properties. |
apps/web/src/pages/index.tsx |
Added cookies configuration object with disableByDefault and expiresInDays properties. |
apps/web/src/components/Pricing.tsx |
Added suppressHydrationWarning prop to span element in the PricingElement function. |
packages/core/src/index.ts |
Introduced cookie handling in AbbyConfig and Abby class, including methods like enableCookies . |
packages/core/src/mathHelpers.ts |
Refactored functions for weighted random number generation and variant selection. |
packages/core/src/shared/interfaces.ts |
Updated IStorageService.set method to include options parameter for flexible configuration. |
packages/react/src/StorageService.ts |
Modified set method to accept options parameter for setting cookie expiration in multiple classes. |
packages/react/src/context.tsx |
Added conditional check for config.cookies?.disableByDefault in the set function. |
packages/svelte/src/lib/StorageService.ts |
Updated ABStorageService.set method to accept options parameter for cookie expiration. |
Silently ignoring this section as the changes do not clearly define a new feature or control flow modification that warrants a sequence diagram.
Cookies consent, a new delight,
Options now within our sight.
Enable, disable, as you choose,
Expire in days, no more to lose.
Variants weighed with perfect care,
Abby's magic everywhere.
๐ชโจ
[!TIP]
CodeRabbit can approve the review once CodeRabbit's comments are resolved
Enable the `reviews.request_changes_workflow` setting in your project's settings in CodeRabbit to approve the review once CodeRabbit's comments are resolved.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @cstrnt and the rest of your teammates on Graphite
Summary by CodeRabbit
New Features
disableByDefault
andexpiresInDays
) across the app.suppressHydrationWarning
to thePricingElement
component.Refactor
Bug Fixes
Chores