@redacto.io/consent-sdk-react 9.2.0-beta.1 → 9.2.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 +24 -0
- package/dist/privacy-center.d.mts +6 -10
- package/dist/privacy-center.d.ts +6 -10
- package/dist/privacy-center.js +208 -850
- package/dist/privacy-center.mjs +208 -850
- package/package.json +1 -1
- package/src/RedactoPrivacyCenter/components/DataRequest/ProductSelectionSection.tsx +4 -4
- package/src/RedactoPrivacyCenter/components/Form.tsx +214 -866
- package/src/RedactoPrivacyCenter/components/RequestSubmit.tsx +44 -219
- package/src/RedactoPrivacyCenter/components/types.ts +14 -20
- package/src/RedactoPrivacyCenter/lib/api.ts +23 -58
- package/src/RedactoPrivacyCenter/lib/types.ts +0 -31
- package/src/RedactoPrivacyCenter/locales/as/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/bho/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/bn/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/brx/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/doi/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/en/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/gom/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/gu/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/hi/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/kn/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/ks/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/mai/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/ml/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/mni-Mtei/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/mr/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/ne/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/or/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/pa/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/sa/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/sat/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/sd/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/ta/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/te/translation.json +2 -2
- package/src/RedactoPrivacyCenter/locales/ur/translation.json +2 -2
- package/tests/Form.test.tsx +123 -149
- package/tests/ProductSelectionSection.test.tsx +39 -4
- package/tests/RequestSubmit.test.tsx +27 -187
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @redacto.io/consent-sdk-react
|
|
2
2
|
|
|
3
|
+
## 9.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 06a735c: keep revoked-consent purposes raisable in privacy-center DSAR forms
|
|
8
|
+
- 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.
|
|
9
|
+
- 45b7b2b: download receipt and product level grievance form
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- b132a29: fix(consent-sdk-react): drop "active" qualifier from product chip purpose count
|
|
14
|
+
|
|
15
|
+
## 9.2.0-beta.3
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- 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.
|
|
20
|
+
|
|
21
|
+
## 9.2.0-beta.2
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- fix(consent-sdk-react): drop "active" qualifier from product chip purpose count
|
|
26
|
+
|
|
3
27
|
## 9.2.0-beta.1
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
|
@@ -756,17 +756,13 @@ interface AuthContext {
|
|
|
756
756
|
|
|
757
757
|
declare const getFormData: (organizationId: string, workspaceId: string, contact: string, _isPopup?: boolean, useSessionAuth?: boolean, authContext?: AuthContext, consentClient?: BaseUrlContextValue["consentClient"], language?: string) => Promise<FormData | null>;
|
|
758
758
|
/**
|
|
759
|
-
* Public helper for creating a case request. Returns `null` on
|
|
760
|
-
* (preserves the
|
|
761
|
-
* the SDK exposes to
|
|
762
|
-
*
|
|
763
|
-
*
|
|
764
|
-
* The batch-submission path in Form.tsx uses `createCaseRequestUnsafe`
|
|
765
|
-
* directly so partial-failure UI can surface per-row backend messages;
|
|
766
|
-
* everywhere else (including the legacy single-case path) should use
|
|
767
|
-
* this helper.
|
|
759
|
+
* Public helper for creating a case request. Returns `null` on any
|
|
760
|
+
* non-auth error (preserves the documented
|
|
761
|
+
* `Promise<CreateCaseResponse | null>` contract the SDK exposes to
|
|
762
|
+
* consumers) — does NOT throw. Auth errors trigger a single token
|
|
763
|
+
* refresh + retry before falling through.
|
|
768
764
|
*/
|
|
769
|
-
declare const createCaseRequest: (organizationId: string, workspaceId: string, data: UserDataRequest,
|
|
765
|
+
declare const createCaseRequest: (organizationId: string, workspaceId: string, data: UserDataRequest, _isPopup?: boolean, useSessionAuth?: boolean, authContext?: AuthContext, consentClient?: BaseUrlContextValue["consentClient"]) => Promise<CreateCaseResponse | null>;
|
|
770
766
|
declare const fetchProducts: (organizationId: string, workspaceId: string, skip?: number, limit?: number, authContext?: AuthContext, consentClient?: BaseUrlContextValue["consentClient"]) => Promise<Array<{
|
|
771
767
|
uuid: string;
|
|
772
768
|
name: string;
|
package/dist/privacy-center.d.ts
CHANGED
|
@@ -756,17 +756,13 @@ interface AuthContext {
|
|
|
756
756
|
|
|
757
757
|
declare const getFormData: (organizationId: string, workspaceId: string, contact: string, _isPopup?: boolean, useSessionAuth?: boolean, authContext?: AuthContext, consentClient?: BaseUrlContextValue["consentClient"], language?: string) => Promise<FormData | null>;
|
|
758
758
|
/**
|
|
759
|
-
* Public helper for creating a case request. Returns `null` on
|
|
760
|
-
* (preserves the
|
|
761
|
-
* the SDK exposes to
|
|
762
|
-
*
|
|
763
|
-
*
|
|
764
|
-
* The batch-submission path in Form.tsx uses `createCaseRequestUnsafe`
|
|
765
|
-
* directly so partial-failure UI can surface per-row backend messages;
|
|
766
|
-
* everywhere else (including the legacy single-case path) should use
|
|
767
|
-
* this helper.
|
|
759
|
+
* Public helper for creating a case request. Returns `null` on any
|
|
760
|
+
* non-auth error (preserves the documented
|
|
761
|
+
* `Promise<CreateCaseResponse | null>` contract the SDK exposes to
|
|
762
|
+
* consumers) — does NOT throw. Auth errors trigger a single token
|
|
763
|
+
* refresh + retry before falling through.
|
|
768
764
|
*/
|
|
769
|
-
declare const createCaseRequest: (organizationId: string, workspaceId: string, data: UserDataRequest,
|
|
765
|
+
declare const createCaseRequest: (organizationId: string, workspaceId: string, data: UserDataRequest, _isPopup?: boolean, useSessionAuth?: boolean, authContext?: AuthContext, consentClient?: BaseUrlContextValue["consentClient"]) => Promise<CreateCaseResponse | null>;
|
|
770
766
|
declare const fetchProducts: (organizationId: string, workspaceId: string, skip?: number, limit?: number, authContext?: AuthContext, consentClient?: BaseUrlContextValue["consentClient"]) => Promise<Array<{
|
|
771
767
|
uuid: string;
|
|
772
768
|
name: string;
|