@redacto.io/consent-sdk-react 9.2.0-beta.1 → 9.2.0-beta.2
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 +6 -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
|
@@ -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;
|