@redacto.io/consent-sdk-react 9.2.0 → 9.3.0-beta.1

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.
Files changed (41) hide show
  1. package/.turbo/turbo-build.log +25 -26
  2. package/.turbo/turbo-test.log +203 -0
  3. package/.turbo/turbo-verify-pack.log +6 -0
  4. package/CHANGELOG.md +12 -0
  5. package/dist/privacy-center.js +3242 -2956
  6. package/dist/privacy-center.mjs +3068 -2774
  7. package/package.json +3 -3
  8. package/src/RedactoPrivacyCenter/PrivacyCenterLayout.tsx +6 -3
  9. package/src/RedactoPrivacyCenter/components/AppShell/AppShell.tsx +36 -5
  10. package/src/RedactoPrivacyCenter/components/AppShell/TopAppBar.tsx +3 -2
  11. package/src/RedactoPrivacyCenter/components/Form.tsx +127 -8
  12. package/src/RedactoPrivacyCenter/components/PrivacyCenterEmptyState.tsx +76 -0
  13. package/src/RedactoPrivacyCenter/components/ReceiptsList.tsx +3 -41
  14. package/src/RedactoPrivacyCenter/context/DataAvailabilityContext.tsx +169 -0
  15. package/src/RedactoPrivacyCenter/locales/as/translation.json +2 -0
  16. package/src/RedactoPrivacyCenter/locales/bho/translation.json +2 -0
  17. package/src/RedactoPrivacyCenter/locales/bn/translation.json +2 -0
  18. package/src/RedactoPrivacyCenter/locales/brx/translation.json +2 -0
  19. package/src/RedactoPrivacyCenter/locales/doi/translation.json +2 -0
  20. package/src/RedactoPrivacyCenter/locales/en/translation.json +2 -0
  21. package/src/RedactoPrivacyCenter/locales/gom/translation.json +2 -0
  22. package/src/RedactoPrivacyCenter/locales/gu/translation.json +2 -0
  23. package/src/RedactoPrivacyCenter/locales/hi/translation.json +2 -0
  24. package/src/RedactoPrivacyCenter/locales/kn/translation.json +2 -0
  25. package/src/RedactoPrivacyCenter/locales/ks/translation.json +2 -0
  26. package/src/RedactoPrivacyCenter/locales/mai/translation.json +2 -0
  27. package/src/RedactoPrivacyCenter/locales/ml/translation.json +2 -0
  28. package/src/RedactoPrivacyCenter/locales/mni-Mtei/translation.json +2 -0
  29. package/src/RedactoPrivacyCenter/locales/mr/translation.json +2 -0
  30. package/src/RedactoPrivacyCenter/locales/ne/translation.json +2 -0
  31. package/src/RedactoPrivacyCenter/locales/or/translation.json +2 -0
  32. package/src/RedactoPrivacyCenter/locales/pa/translation.json +2 -0
  33. package/src/RedactoPrivacyCenter/locales/sa/translation.json +2 -0
  34. package/src/RedactoPrivacyCenter/locales/sat/translation.json +2 -0
  35. package/src/RedactoPrivacyCenter/locales/sd/translation.json +2 -0
  36. package/src/RedactoPrivacyCenter/locales/ta/translation.json +2 -0
  37. package/src/RedactoPrivacyCenter/locales/te/translation.json +2 -0
  38. package/src/RedactoPrivacyCenter/locales/ur/translation.json +2 -0
  39. package/src/RedactoPrivacyCenter/styles/injectStyles.ts +1 -1
  40. package/tests/DataAvailabilityContext.test.tsx +123 -0
  41. package/tests/Form.test.tsx +93 -1
@@ -1,26 +1,25 @@
1
-
2
- 
3
- > @redacto.io/consent-sdk-react@9.1.0 build /Users/sadanmianredacto/Developer/redacto/consent-sdk/packages/consent-sdk-react
4
- > tsup
5
-
6
- CLI Building entry: {"index":"src/index.ts","privacy-center":"src/privacy-center.ts"}
7
- CLI Using tsconfig: tsconfig.json
8
- CLI tsup v8.5.1
9
- CLI Using tsup config: /Users/sadanmianredacto/Developer/redacto/consent-sdk/packages/consent-sdk-react/tsup.config.ts
10
- CLI Target: es2019
11
- CLI Cleaning output folder
12
- ESM Build start
13
- CJS Build start
14
- CJS dist/index.js 237.00 KB
15
- CJS dist/privacy-center.js 2.02 MB
16
- CJS ⚡️ Build success in 125ms
17
- ESM dist/index.mjs 226.91 KB
18
- ESM dist/chunk-6A665OPR.mjs 841.00 B
19
- ESM dist/privacy-center.mjs 1.99 MB
20
- ESM ⚡️ Build success in 131ms
21
- DTS Build start
22
- DTS ⚡️ Build success in 5254ms
23
- DTS dist/index.d.mts 6.12 KB
24
- DTS dist/privacy-center.d.mts 28.52 KB
25
- DTS dist/index.d.ts 6.12 KB
26
- DTS dist/privacy-center.d.ts 28.52 KB
1
+
2
+ > @redacto.io/consent-sdk-react@9.2.0 build /Users/sadanmianredacto/Developer/redacto/consent-sdk/packages/consent-sdk-react
3
+ > tsup
4
+
5
+ CLI Building entry: {"index":"src/index.ts","privacy-center":"src/privacy-center.ts"}
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.1
8
+ CLI Using tsup config: /Users/sadanmianredacto/Developer/redacto/consent-sdk/packages/consent-sdk-react/tsup.config.ts
9
+ CLI Target: es2019
10
+ CLI Cleaning output folder
11
+ ESM Build start
12
+ CJS Build start
13
+ CJS dist/index.js 237.00 KB
14
+ CJS dist/privacy-center.js 2.16 MB
15
+ CJS ⚡️ Build success in 59ms
16
+ ESM dist/chunk-6A665OPR.mjs 841.00 B
17
+ ESM dist/index.mjs 226.91 KB
18
+ ESM dist/privacy-center.mjs 2.12 MB
19
+ ESM ⚡️ Build success in 65ms
20
+ DTS Build start
21
+ DTS ⚡️ Build success in 2407ms
22
+ DTS dist/index.d.mts 6.12 KB
23
+ DTS dist/privacy-center.d.mts 30.45 KB
24
+ DTS dist/index.d.ts 6.12 KB
25
+ DTS dist/privacy-center.d.ts 30.45 KB
@@ -0,0 +1,203 @@
1
+
2
+ > @redacto.io/consent-sdk-react@9.2.0 test /Users/sadanmianredacto/Developer/redacto/consent-sdk/packages/consent-sdk-react
3
+ > vitest run
4
+
5
+
6
+  RUN  v4.1.8 /Users/sadanmianredacto/Developer/redacto/consent-sdk/packages/consent-sdk-react
7
+
8
+ ✓ tests/DataAvailabilityContext.test.tsx (7 tests) 32ms
9
+ stderr | src/RedactoNoticeConsentInline/RedactoNoticeConsentInline.test.tsx > RedactoConsentInline > renders loading state initially
10
+ An update to RedactoConsentInline inside a test was not wrapped in act(...).
11
+
12
+ When testing, code that causes React state updates should be wrapped into act(...):
13
+
14
+ act(() => {
15
+ /* fire events that update state */
16
+ });
17
+ /* assert on the output */
18
+
19
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
20
+ An update to RedactoConsentInline inside a test was not wrapped in act(...).
21
+
22
+ When testing, code that causes React state updates should be wrapped into act(...):
23
+
24
+ act(() => {
25
+ /* fire events that update state */
26
+ });
27
+ /* assert on the output */
28
+
29
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
30
+ An update to RedactoConsentInline inside a test was not wrapped in act(...).
31
+
32
+ When testing, code that causes React state updates should be wrapped into act(...):
33
+
34
+ act(() => {
35
+ /* fire events that update state */
36
+ });
37
+ /* assert on the output */
38
+
39
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
40
+ An update to RedactoConsentInline inside a test was not wrapped in act(...).
41
+
42
+ When testing, code that causes React state updates should be wrapped into act(...):
43
+
44
+ act(() => {
45
+ /* fire events that update state */
46
+ });
47
+ /* assert on the output */
48
+
49
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
50
+ An update to RedactoConsentInline inside a test was not wrapped in act(...).
51
+
52
+ When testing, code that causes React state updates should be wrapped into act(...):
53
+
54
+ act(() => {
55
+ /* fire events that update state */
56
+ });
57
+ /* assert on the output */
58
+
59
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
60
+ An update to RedactoConsentInline inside a test was not wrapped in act(...).
61
+
62
+ When testing, code that causes React state updates should be wrapped into act(...):
63
+
64
+ act(() => {
65
+ /* fire events that update state */
66
+ });
67
+ /* assert on the output */
68
+
69
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
70
+
71
+ stderr | src/RedactoNoticeConsent/RedactoNoticeConsent.test.tsx > RedactoNoticeConsent > renders loading state initially
72
+ An update to RedactoNoticeConsent inside a test was not wrapped in act(...).
73
+
74
+ When testing, code that causes React state updates should be wrapped into act(...):
75
+
76
+ act(() => {
77
+ /* fire events that update state */
78
+ });
79
+ /* assert on the output */
80
+
81
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
82
+ An update to RedactoNoticeConsent inside a test was not wrapped in act(...).
83
+
84
+ When testing, code that causes React state updates should be wrapped into act(...):
85
+
86
+ act(() => {
87
+ /* fire events that update state */
88
+ });
89
+ /* assert on the output */
90
+
91
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
92
+ An update to RedactoNoticeConsent inside a test was not wrapped in act(...).
93
+
94
+ When testing, code that causes React state updates should be wrapped into act(...):
95
+
96
+ act(() => {
97
+ /* fire events that update state */
98
+ });
99
+ /* assert on the output */
100
+
101
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
102
+ An update to RedactoNoticeConsent inside a test was not wrapped in act(...).
103
+
104
+ When testing, code that causes React state updates should be wrapped into act(...):
105
+
106
+ act(() => {
107
+ /* fire events that update state */
108
+ });
109
+ /* assert on the output */
110
+
111
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
112
+ An update to RedactoNoticeConsent inside a test was not wrapped in act(...).
113
+
114
+ When testing, code that causes React state updates should be wrapped into act(...):
115
+
116
+ act(() => {
117
+ /* fire events that update state */
118
+ });
119
+ /* assert on the output */
120
+
121
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
122
+ An update to RedactoNoticeConsent inside a test was not wrapped in act(...).
123
+
124
+ When testing, code that causes React state updates should be wrapped into act(...):
125
+
126
+ act(() => {
127
+ /* fire events that update state */
128
+ });
129
+ /* assert on the output */
130
+
131
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
132
+ An update to RedactoNoticeConsent inside a test was not wrapped in act(...).
133
+
134
+ When testing, code that causes React state updates should be wrapped into act(...):
135
+
136
+ act(() => {
137
+ /* fire events that update state */
138
+ });
139
+ /* assert on the output */
140
+
141
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
142
+ An update to RedactoNoticeConsent inside a test was not wrapped in act(...).
143
+
144
+ When testing, code that causes React state updates should be wrapped into act(...):
145
+
146
+ act(() => {
147
+ /* fire events that update state */
148
+ });
149
+ /* assert on the output */
150
+
151
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
152
+ An update to RedactoNoticeConsent inside a test was not wrapped in act(...).
153
+
154
+ When testing, code that causes React state updates should be wrapped into act(...):
155
+
156
+ act(() => {
157
+ /* fire events that update state */
158
+ });
159
+ /* assert on the output */
160
+
161
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
162
+
163
+ ✓ tests/ProductSelectionSection.test.tsx (10 tests) 46ms
164
+ ✓ tests/RequestSubmit.test.tsx (5 tests) 50ms
165
+ stderr | tests/Form.test.tsx > Form (P2-SDK-3) > blocks submit for product-scoped types when the DP has no consent groups
166
+ No purposes with data elements found in API response
167
+
168
+ ✓ src/RedactoNoticeConsentInline/RedactoNoticeConsentInline.test.tsx (14 tests) 150ms
169
+ stderr | tests/Form.test.tsx > Form (P2-SDK-3) > renders the product step for DSAR types when direct_groups is present
170
+ No purposes with data elements found in API response
171
+
172
+ stderr | tests/Form.test.tsx > Form (P2-SDK-3) > skips the product selection step when only one consent group exists
173
+ No purposes with data elements found in API response
174
+
175
+ stderr | tests/Form.test.tsx > Form (P2-SDK-3) > skips the product step for nomination and grievance
176
+ No purposes with data elements found in API response
177
+
178
+ stderr | tests/Form.test.tsx > Form (P2-SDK-3) > fires one createCaseRequest with correct anchors on single-product erasure submit
179
+ No purposes with data elements found in API response
180
+
181
+ stderr | tests/Form.test.tsx > Form (P2-SDK-3) > switches the inline purpose panel when another product chip is selected
182
+ No purposes with data elements found in API response
183
+
184
+ stderr | tests/Form.test.tsx > Form (P2-SDK-3) > disambiguates direct vs nominated chips on the same product via inline panel header
185
+ No purposes with data elements found in API response
186
+
187
+ stderr | tests/Form.test.tsx > Form (P2-SDK-3) > submits NOMINATION as an org-level case without product_uuid or data_principal_uuid
188
+ No purposes with data elements found in API response
189
+
190
+ stderr | tests/Form.test.tsx > Form (P2-SDK-3) > sends data_principal_uuid and product anchors on a nominated-card submit
191
+ No purposes with data elements found in API response
192
+
193
+ stderr | tests/Form.test.tsx > Form (P2-SDK-3) > disables submit when the selected CORRECTION product has incomplete entries
194
+ No purposes with data elements found in API response
195
+
196
+ ✓ tests/Form.test.tsx (11 tests) 280ms
197
+ ✓ src/RedactoNoticeConsent/RedactoNoticeConsent.test.tsx (31 tests) 408ms
198
+
199
+  Test Files  6 passed (6)
200
+  Tests  78 passed (78)
201
+  Start at  03:16:13
202
+  Duration  1.08s (transform 953ms, setup 358ms, import 1.63s, tests 966ms, environment 1.58s)
203
+
@@ -0,0 +1,6 @@
1
+
2
+ > @redacto.io/consent-sdk-react@9.2.0 verify-pack /Users/sadanmianredacto/Developer/redacto/consent-sdk/packages/consent-sdk-react
3
+ > node ../../scripts/verify-pack.mjs .
4
+
5
+ verify-pack: @redacto.io/consent-sdk-react@9.2.0 — 12 packed files
6
+ verify-pack: @redacto.io/consent-sdk-react OK
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @redacto.io/consent-sdk-react
2
2
 
3
+ ## 9.3.0-beta.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(consent-sdk-react): restore erasure consent-revoke confirmation modal
8
+
9
+ ## 9.3.0-beta.0
10
+
11
+ ### Minor Changes
12
+
13
+ - show empty blank screen when no data visible
14
+
3
15
  ## 9.2.0
4
16
 
5
17
  ### Minor Changes