react-lgpd-consent - v0.5.4
    Preparing search index...

    Module core/src

    Ponto de entrada público do pacote @react-lgpd-consent/core. Exporta componentes headless, hooks, utilitários e tipos para gerenciamento de consentimento de cookies conforme LGPD.

    • Context Provider headless para estado global de consentimento
    • Hooks customizados para acesso ao consentimento
    • Utilitários para manipulação de cookies e scripts
    • Tipos TypeScript para máxima segurança e clareza
    • Integrações prontas (Google Analytics, GTM, UserWay, etc.)

    Packages

    Hooks

    openPreferencesModal
    useCategories
    useCategoryStatus
    useConsent
    useConsentHydration
    useConsentScriptLoader
    useConsentTexts
    useDataLayerEvents
    useDesignTokens
    useOpenPreferencesModal

    Context

    ConsentProvider
    DesignProvider

    Utils

    LogLevel
    ClarityConfig
    CorporateConfig
    DeveloperGuidance
    ECommerceConfig
    FacebookPixelConfig
    GoogleAnalyticsConfig
    GoogleTagManagerConfig
    GuidanceConfig
    GuidanceMessage
    HotjarConfig
    IntercomConfig
    MixpanelConfig
    PeerDepsCheckResult
    SaaSConfig
    ScriptIntegration
    UserWayConfig
    ZendeskConfig
    GuidanceSeverity
    COMMON_INTEGRATIONS
    DEFAULT_PROJECT_CATEGORIES
    defaultTexts
    EXPANDED_DEFAULT_TEXTS
    INTEGRATION_TEMPLATES
    logger
    TEXT_TEMPLATES
    analyzeDeveloperConfiguration
    analyzeIntegrationCategories
    autoConfigureCategories
    categorizeDiscoveredCookies
    checkPeerDeps
    ConsentGate
    ConsentScriptLoader
    createClarityIntegration
    createCorporateIntegrations
    createECommerceIntegrations
    createFacebookPixelIntegration
    createGoogleAnalyticsIntegration
    createGoogleTagManagerIntegration
    createHotjarIntegration
    createIntercomIntegration
    createMixpanelIntegration
    createProjectPreferences
    createSaaSIntegrations
    createUserWayIntegration
    createZendeskChatIntegration
    detectConsentCookieName
    discoverRuntimeCookies
    ensureNecessaryAlwaysOn
    extractCategoriesFromIntegrations
    getAllProjectCategories
    loadScript
    logDeveloperGuidance
    openPreferencesModal
    pushConsentInitializedEvent
    pushConsentUpdatedEvent
    resolveTexts
    runPeerDepsCheck
    setDebugLogging
    suggestCategoryForScript
    useConsentScriptLoader
    useDataLayerEvents
    useDeveloperGuidance
    validateIntegrationCategories
    validateNecessaryClassification
    validateProjectPreferences

    Types

    AdvancedConsentTexts
    CategoryDefinition
    ConsentContextValue
    ConsentCookieData
    ConsentCookieOptions
    ConsentInitializedEvent
    ConsentPreferences
    ConsentProviderProps
    ConsentScriptLoaderProps
    ConsentState
    ConsentStorageConfig
    ConsentTexts
    ConsentUpdatedEvent
    ConsentVersionChangeContext
    CookieDescriptor
    CustomCookieBannerProps
    CustomFloatingPreferencesButtonProps
    CustomPreferencesModalProps
    DesignTokens
    ProjectCategoriesConfig
    Category
    ConsentEvent
    ConsentEventOrigin

    Other

    CategoriesContextValue
    CategoryAutoConfigResult
    GUIDANCE_PRESETS
    buildConsentStorageKey
    getCookiesInfoForCategory
    setCookieCatalogOverrides
    setCookieCategoryOverrides