@react-lgpd-consent/core 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +49 -1
- package/README.md +3 -3
- package/dist/index.cjs +689 -427
- package/dist/index.d.cts +1673 -1437
- package/dist/index.d.ts +1673 -1437
- package/dist/index.js +689 -428
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# Changelog - @react-lgpd-consent/core
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#142](https://github.com/lucianoedipo/react-lgpd-consent/pull/142) [`29b4464`](https://github.com/lucianoedipo/react-lgpd-consent/commit/29b4464bd0ea878a21573a0752aca3adc31743d9) Thanks [@lucianoedipo](https://github.com/lucianoedipo)! - ### Correcoes
|
|
8
|
+
- 1d15920 fix: corrigir formatacao da verificacao de multiplas versoes do React
|
|
9
|
+
|
|
10
|
+
### Refactors e compatibilidade
|
|
11
|
+
- ed5fa36 refactor: aprimorar documentacao e estrutura de validacao do ConsentProvider
|
|
12
|
+
- 709e977 refactor: melhorar validacao e sanitizacao das categorias no ConsentProvider
|
|
13
|
+
- 6ee4d03 feat: recalcular categorias no CategoriesContext ao adicionar novas entradas
|
|
14
|
+
- 6ee4d03 refactor: melhorar descoberta e validacao de cookies
|
|
15
|
+
- 6ee4d03 refactor: refinar helpers de integracao para maior clareza
|
|
16
|
+
- 6ee4d03 refactor: simplificar logica de sincronizacao de versoes no script sync-versions.mjs
|
|
17
|
+
- ef2968a refactor: trocar acessos diretos a window/document por globalThis em loaders, utils e testes
|
|
18
|
+
- 3af2fcb fix: ajustar path resolution no tsconfig para melhor import de modulos
|
|
19
|
+
|
|
20
|
+
### Funcionalidades
|
|
21
|
+
- 6ee4d03 feat: aprimorar acessibilidade e gerenciamento de consentimento
|
|
22
|
+
- 6ee4d03 feat: estender matchers Jest com jest-axe para acessibilidade
|
|
23
|
+
- 6ee4d03 feat: revisar textos de consentimento para mais clareza
|
|
24
|
+
- 6ee4d03 feat: introduzir modos de bloqueio no ConsentProvider
|
|
25
|
+
- 6ee4d03 feat: adicionar testes para hard blocking no ConsentProvider
|
|
26
|
+
- d641639 feat: adicionar gerenciamento de eventos para categorias obrigatorias no CategoriesProvider
|
|
27
|
+
|
|
28
|
+
### Testes
|
|
29
|
+
- b04c00b feat: adicionar testes para CookieBanner, FloatingPreferencesButton e PreferencesModal
|
|
30
|
+
- b04c00b testes: validar renderizacao do CookieBanner por consentimento e modo debug
|
|
31
|
+
- b04c00b testes: verificar textos localizados no FloatingPreferencesButton via props
|
|
32
|
+
- b04c00b testes: cobrir reset temporario, scripts ativos e textos customizados no PreferencesModal
|
|
33
|
+
- testes: cobrir fluxo SSR de leitura/remoção/escrita de cookie consent
|
|
34
|
+
|
|
35
|
+
### Ferramentas
|
|
36
|
+
- b04c00b feat: script interativo de changeset para versionamento em monorepos
|
|
37
|
+
- b04c00b refactor: coverage-check usando node imports
|
|
38
|
+
- b04c00b refactor: ajustar script do TypeDoc para compatibilidade ESM
|
|
39
|
+
|
|
40
|
+
### Documentacao
|
|
41
|
+
- 6ee4d03 docs: atualizar README e exemplos com novos recursos
|
|
42
|
+
- d430eef docs: atualizar instrucoes para agentes com comandos essenciais
|
|
43
|
+
- d430eef docs: refletir uso de globalThis na documentacao
|
|
44
|
+
- d430eef docs: atualizar API com novas integracoes e configuracoes de testes ESM/CJS
|
|
45
|
+
- docs: quickstart com comentarios e nota sobre injecao automatica de UI MUI
|
|
46
|
+
|
|
47
|
+
### A11y
|
|
48
|
+
- a11y: PreferencesModal com aria-describedby
|
|
49
|
+
- a11y: testes de teclado (Escape + retorno de foco)
|
|
50
|
+
|
|
3
51
|
## 0.7.1
|
|
4
52
|
|
|
5
53
|
### Patch Changes
|
|
@@ -348,7 +396,7 @@
|
|
|
348
396
|
- **Correção crítica**: `loadScript` agora aguarda dinamicamente o consentimento em vez de rejeitar imediatamente, permitindo que scripts carreguem quando preferências mudarem
|
|
349
397
|
- Cleanup automático do registro ao completar/falhar carregamento
|
|
350
398
|
- Adicionados testes extensivos: `ConsentScriptLoader.strictmode.test.tsx` e `scriptLoader.strictmode.test.ts`
|
|
351
|
-
- Documentação completa em `
|
|
399
|
+
- Documentação completa em `REACT19-STRICTMODE.md`
|
|
352
400
|
- Todos os 302 testes passando, incluindo 5 novos testes de StrictMode
|
|
353
401
|
|
|
354
402
|
**Breaking Changes:** Nenhuma - totalmente retrocompatível
|
package/README.md
CHANGED
|
@@ -100,13 +100,13 @@ import { ConsentProvider } from '@react-lgpd-consent/core'
|
|
|
100
100
|
### Presets ANPD
|
|
101
101
|
|
|
102
102
|
```tsx
|
|
103
|
-
import {
|
|
103
|
+
import { createAnpdCategoriesConfig, ANPD_CATEGORY_PRESETS } from '@react-lgpd-consent/core'
|
|
104
104
|
|
|
105
105
|
// Preset BÁSICO
|
|
106
|
-
const basic =
|
|
106
|
+
const basic = createAnpdCategoriesConfig({ include: ['analytics'] })
|
|
107
107
|
|
|
108
108
|
// Preset COMPLETO
|
|
109
|
-
const full =
|
|
109
|
+
const full = createAnpdCategoriesConfig({
|
|
110
110
|
include: ['analytics', 'marketing', 'functional', 'social', 'personalization']
|
|
111
111
|
})
|
|
112
112
|
```
|