55 lines
1.5 KiB
JavaScript
55 lines
1.5 KiB
JavaScript
// Configuration
|
|
export { configureConsent, getConsentConfig, defaultConfig } from "./config.js";
|
|
|
|
// Constants
|
|
export {
|
|
DEFAULT_STORAGE_KEY,
|
|
EVENT_CONSENT_UPDATED,
|
|
EVENT_OPEN_PREFERENCES,
|
|
GTM_CONSENT_EVENT,
|
|
GOOGLE_CONSENT_SIGNALS,
|
|
// legacy names
|
|
DEFAULT_STORAGE_KEY as COOKIE_CONSENT_KEY,
|
|
EVENT_CONSENT_UPDATED as COOKIE_CONSENT_EVENT,
|
|
EVENT_OPEN_PREFERENCES as COOKIE_CONSENT_OPEN_EVENT,
|
|
GOOGLE_CONSENT_SIGNALS as CONSENT_TYPES,
|
|
} from "./constants.js";
|
|
|
|
// User API
|
|
export {
|
|
getConsent,
|
|
setConsent,
|
|
acceptAll,
|
|
rejectAll,
|
|
hasAnalyticsConsent,
|
|
hasMarketingConsent,
|
|
hasConsentChoice,
|
|
syncConsentFromStorage,
|
|
openPreferences,
|
|
// legacy aliases
|
|
getCookieConsent,
|
|
setCookieConsent,
|
|
acceptAllCookies,
|
|
rejectAllCookies,
|
|
hasCookieConsentChoice,
|
|
syncGoogleConsentFromStorage,
|
|
openCookiePreferences,
|
|
} from "./consent-api.js";
|
|
|
|
// Cookie inventory helpers
|
|
export {
|
|
COOKIE_CATEGORIES,
|
|
groupCookiesByCategory,
|
|
isValidCookieEntry,
|
|
normalizeCookieEntries,
|
|
} from "./cookie-schema.js";
|
|
|
|
// Google Consent Mode
|
|
export { applyConsentDefaults, applyConsentUpdate } from "./google/consent-lifecycle.js";
|
|
export { buildConsentSignals as buildGoogleConsentState } from "./google/consent-signals.js";
|
|
export { getConsentBootstrapScript } from "./google/bootstrap-script.js";
|
|
|
|
// Legacy Google aliases
|
|
export { applyConsentDefaults as applyGoogleConsentDefault } from "./google/consent-lifecycle.js";
|
|
export { applyConsentUpdate as applyGoogleConsent } from "./google/consent-lifecycle.js";
|