@redacto.io/consent-sdk-react 9.2.0-beta.2 → 9.3.0-beta.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/.turbo/turbo-build.log +25 -26
- package/.turbo/turbo-test.log +203 -0
- package/.turbo/turbo-verify-pack.log +6 -0
- package/CHANGELOG.md +24 -0
- package/dist/privacy-center.js +2428 -2223
- package/dist/privacy-center.mjs +2572 -2359
- package/package.json +3 -3
- package/src/RedactoPrivacyCenter/PrivacyCenterLayout.tsx +6 -3
- package/src/RedactoPrivacyCenter/components/AppShell/AppShell.tsx +36 -5
- package/src/RedactoPrivacyCenter/components/AppShell/TopAppBar.tsx +3 -2
- package/src/RedactoPrivacyCenter/components/PrivacyCenterEmptyState.tsx +76 -0
- package/src/RedactoPrivacyCenter/components/ReceiptsList.tsx +3 -41
- package/src/RedactoPrivacyCenter/context/DataAvailabilityContext.tsx +169 -0
- package/src/RedactoPrivacyCenter/locales/as/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/bho/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/bn/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/brx/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/doi/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/en/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/gom/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/gu/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/hi/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/kn/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/ks/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/mai/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/ml/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/mni-Mtei/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/mr/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/ne/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/or/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/pa/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/sa/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/sat/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/sd/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/ta/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/te/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/ur/translation.json +2 -0
- package/src/RedactoPrivacyCenter/styles/injectStyles.ts +1 -1
- package/tests/DataAvailabilityContext.test.tsx +123 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
DTS Build
|
|
22
|
-
DTS
|
|
23
|
-
DTS dist/
|
|
24
|
-
DTS dist/
|
|
25
|
-
DTS dist/
|
|
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
|
+
[1m[30m[46m RUN [49m[39m[22m [36mv4.1.8 [39m[90m/Users/sadanmianredacto/Developer/redacto/consent-sdk/packages/consent-sdk-react[39m
|
|
7
|
+
|
|
8
|
+
[32m✓[39m tests/DataAvailabilityContext.test.tsx [2m([22m[2m7 tests[22m[2m)[22m[32m 32[2mms[22m[39m
|
|
9
|
+
[90mstderr[2m | src/RedactoNoticeConsentInline/RedactoNoticeConsentInline.test.tsx[2m > [22m[2mRedactoConsentInline[2m > [22m[2mrenders loading state initially
|
|
10
|
+
[22m[39mAn 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
|
+
[90mstderr[2m | src/RedactoNoticeConsent/RedactoNoticeConsent.test.tsx[2m > [22m[2mRedactoNoticeConsent[2m > [22m[2mrenders loading state initially
|
|
72
|
+
[22m[39mAn 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
|
+
[32m✓[39m tests/ProductSelectionSection.test.tsx [2m([22m[2m10 tests[22m[2m)[22m[32m 46[2mms[22m[39m
|
|
164
|
+
[32m✓[39m tests/RequestSubmit.test.tsx [2m([22m[2m5 tests[22m[2m)[22m[32m 50[2mms[22m[39m
|
|
165
|
+
[90mstderr[2m | tests/Form.test.tsx[2m > [22m[2mForm (P2-SDK-3)[2m > [22m[2mblocks submit for product-scoped types when the DP has no consent groups
|
|
166
|
+
[22m[39mNo purposes with data elements found in API response
|
|
167
|
+
|
|
168
|
+
[32m✓[39m src/RedactoNoticeConsentInline/RedactoNoticeConsentInline.test.tsx [2m([22m[2m14 tests[22m[2m)[22m[32m 150[2mms[22m[39m
|
|
169
|
+
[90mstderr[2m | tests/Form.test.tsx[2m > [22m[2mForm (P2-SDK-3)[2m > [22m[2mrenders the product step for DSAR types when direct_groups is present
|
|
170
|
+
[22m[39mNo purposes with data elements found in API response
|
|
171
|
+
|
|
172
|
+
[90mstderr[2m | tests/Form.test.tsx[2m > [22m[2mForm (P2-SDK-3)[2m > [22m[2mskips the product selection step when only one consent group exists
|
|
173
|
+
[22m[39mNo purposes with data elements found in API response
|
|
174
|
+
|
|
175
|
+
[90mstderr[2m | tests/Form.test.tsx[2m > [22m[2mForm (P2-SDK-3)[2m > [22m[2mskips the product step for nomination and grievance
|
|
176
|
+
[22m[39mNo purposes with data elements found in API response
|
|
177
|
+
|
|
178
|
+
[90mstderr[2m | tests/Form.test.tsx[2m > [22m[2mForm (P2-SDK-3)[2m > [22m[2mfires one createCaseRequest with correct anchors on single-product erasure submit
|
|
179
|
+
[22m[39mNo purposes with data elements found in API response
|
|
180
|
+
|
|
181
|
+
[90mstderr[2m | tests/Form.test.tsx[2m > [22m[2mForm (P2-SDK-3)[2m > [22m[2mswitches the inline purpose panel when another product chip is selected
|
|
182
|
+
[22m[39mNo purposes with data elements found in API response
|
|
183
|
+
|
|
184
|
+
[90mstderr[2m | tests/Form.test.tsx[2m > [22m[2mForm (P2-SDK-3)[2m > [22m[2mdisambiguates direct vs nominated chips on the same product via inline panel header
|
|
185
|
+
[22m[39mNo purposes with data elements found in API response
|
|
186
|
+
|
|
187
|
+
[90mstderr[2m | tests/Form.test.tsx[2m > [22m[2mForm (P2-SDK-3)[2m > [22m[2msubmits NOMINATION as an org-level case without product_uuid or data_principal_uuid
|
|
188
|
+
[22m[39mNo purposes with data elements found in API response
|
|
189
|
+
|
|
190
|
+
[90mstderr[2m | tests/Form.test.tsx[2m > [22m[2mForm (P2-SDK-3)[2m > [22m[2msends data_principal_uuid and product anchors on a nominated-card submit
|
|
191
|
+
[22m[39mNo purposes with data elements found in API response
|
|
192
|
+
|
|
193
|
+
[90mstderr[2m | tests/Form.test.tsx[2m > [22m[2mForm (P2-SDK-3)[2m > [22m[2mdisables submit when the selected CORRECTION product has incomplete entries
|
|
194
|
+
[22m[39mNo purposes with data elements found in API response
|
|
195
|
+
|
|
196
|
+
[32m✓[39m tests/Form.test.tsx [2m([22m[2m11 tests[22m[2m)[22m[32m 280[2mms[22m[39m
|
|
197
|
+
[32m✓[39m src/RedactoNoticeConsent/RedactoNoticeConsent.test.tsx [2m([22m[2m31 tests[22m[2m)[22m[33m 408[2mms[22m[39m
|
|
198
|
+
|
|
199
|
+
[2m Test Files [22m [1m[32m6 passed[39m[22m[90m (6)[39m
|
|
200
|
+
[2m Tests [22m [1m[32m78 passed[39m[22m[90m (78)[39m
|
|
201
|
+
[2m Start at [22m 03:16:13
|
|
202
|
+
[2m Duration [22m 1.08s[2m (transform 953ms, setup 358ms, import 1.63s, tests 966ms, environment 1.58s)[22m
|
|
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,29 @@
|
|
|
1
1
|
# @redacto.io/consent-sdk-react
|
|
2
2
|
|
|
3
|
+
## 9.3.0-beta.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- show empty blank screen when no data visible
|
|
8
|
+
|
|
9
|
+
## 9.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 06a735c: keep revoked-consent purposes raisable in privacy-center DSAR forms
|
|
14
|
+
- Refactor Privacy Center UX: remove "active" qualifier from product chip purpose counts, implement single-select product chips with an inline purpose panel, redesign the grouped DSAR product picker experience, and add a fully internationalized "My Receipts" tab for consent receipt management.
|
|
15
|
+
- 45b7b2b: download receipt and product level grievance form
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- b132a29: fix(consent-sdk-react): drop "active" qualifier from product chip purpose count
|
|
20
|
+
|
|
21
|
+
## 9.2.0-beta.3
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- Refactor Privacy Center UX: remove "active" qualifier from product chip purpose counts, implement single-select product chips with an inline purpose panel, redesign the grouped DSAR product picker experience, and add a fully internationalized "My Receipts" tab for consent receipt management.
|
|
26
|
+
|
|
3
27
|
## 9.2.0-beta.2
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|