16 lines
1.1 KiB
TypeScript
16 lines
1.1 KiB
TypeScript
// No 'use client' on this barrel (1.18.0): every component behind it carries its own. A barrel with the
|
|
// directive is one client boundary, so a page that imported one export shipped ALL of them (docs/performance.md).
|
|
export { ConsentProvider, useConsentContext } from './ConsentContext.js'
|
|
export { ConsentScript } from './ConsentScript.js'
|
|
export { readEffectiveConsent } from './consentStore.js'
|
|
export { CookieBanner } from './CookieBanner.js'
|
|
export type { CookieBannerAction, CookieBannerClassNames, CookieSettingsAction } from './CookieBanner.js'
|
|
export { bottomOverlap, COOKIE_BUTTON_AVOID, CookieButton } from './CookieButton.js'
|
|
export type { CookieButtonProps } from './CookieButton.js'
|
|
export { COOKIE_BUTTON_RESERVE, COOKIE_BUTTON_SPACE_ATTRIBUTE, reserveCookieButtonSpace } from './cookieButtonSpace.js'
|
|
export type { CookieButtonSpaceOptions } from './cookieButtonSpace.js'
|
|
// Client-only consent exports — hook, provider, and UI components.
|
|
export { DEFAULT_COOKIE_MAP, useConsent } from './useConsent.js'
|
|
export type { ConsentCookieMap } from './useConsent.js'
|
|
export { clarityConsent, signalVendors } from './vendorConsent.js'
|