- Theme choice in localStorage under 'theme' (next-themes' key and values)
instead of 'ipal-theme'. ThemeScript moves an old choice before the first
paint and removes the old key; useTheme / ThemeSwitcher do the same
without the script. ipalKit({ theme: { storageKey } }) sets an own key,
which reaches ThemeScript through getSiteShell().theme and <html
data-theme-storage>.
- The cookie scanner declares the theme key (Theme choice: local storage,
necessary, until changed or site data is cleared) when the theme switch
is on, so Scan cookies finds it without a crawl.
- Cookies -> Cookie list rows get a Type (cookie / local storage / session
storage, default cookie, shared by every language), filled by scan, review
and approval. The detailed settings window and <CookieTable> show it with
English and Polish defaults; the approval page marks storage entries.
- Migration: adds cookie_settings_cookies.storage (DEFAULT 'cookie') and
cookie_settings_locales.detail_labels_storage, nothing else.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
// Server-safe exports (logic, types, helper). Client components (banner,
|
|
// provider, hook) are exported separately via ./client to keep the RSC/client
|
|
// boundary clean.
|
|
export {
|
|
ACCEPT_ALL_CONSENT,
|
|
CONSENT_CATEGORIES,
|
|
DEFAULT_CONSENT,
|
|
REJECT_ALL_CONSENT,
|
|
} from './categories.js'
|
|
export type { ConsentCategory, ConsentState } from './categories.js'
|
|
export { CONSENT_CATEGORY_LABELS, consentCategoryOptions } from './categoryLabels.js'
|
|
export { buildConsentLogCollection, buildConsentLogEndpoint, CONSENT_LOG_SLUG } from './consentLog.js'
|
|
export type { ConsentLogOptions } from './consentLog.js'
|
|
export { CONSENT_FALLBACK, CONSENT_FALLBACK_PL, consentFallback, getConsentTexts, getCookieTable } from './getConsentTexts.js'
|
|
export type { CookieTableRow } from './getConsentTexts.js'
|
|
export { setDefaultConsent, updateConsent } from './googleConsent.js'
|
|
export {
|
|
CONSENT_COOKIE,
|
|
CONSENT_MAX_AGE,
|
|
CONSENT_VERSION,
|
|
newConsentId,
|
|
parseConsent,
|
|
readConsentRecord,
|
|
serializeConsent,
|
|
} from './storage.js'
|
|
export type { ConsentStorage, ConsentTexts } from './texts.js'
|