@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.
Files changed (39) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/privacy-center.d.mts +6 -10
  3. package/dist/privacy-center.d.ts +6 -10
  4. package/dist/privacy-center.js +208 -850
  5. package/dist/privacy-center.mjs +208 -850
  6. package/package.json +1 -1
  7. package/src/RedactoPrivacyCenter/components/DataRequest/ProductSelectionSection.tsx +4 -4
  8. package/src/RedactoPrivacyCenter/components/Form.tsx +214 -866
  9. package/src/RedactoPrivacyCenter/components/RequestSubmit.tsx +44 -219
  10. package/src/RedactoPrivacyCenter/components/types.ts +14 -20
  11. package/src/RedactoPrivacyCenter/lib/api.ts +23 -58
  12. package/src/RedactoPrivacyCenter/lib/types.ts +0 -31
  13. package/src/RedactoPrivacyCenter/locales/as/translation.json +2 -2
  14. package/src/RedactoPrivacyCenter/locales/bho/translation.json +2 -2
  15. package/src/RedactoPrivacyCenter/locales/bn/translation.json +2 -2
  16. package/src/RedactoPrivacyCenter/locales/brx/translation.json +2 -2
  17. package/src/RedactoPrivacyCenter/locales/doi/translation.json +2 -2
  18. package/src/RedactoPrivacyCenter/locales/en/translation.json +2 -2
  19. package/src/RedactoPrivacyCenter/locales/gom/translation.json +2 -2
  20. package/src/RedactoPrivacyCenter/locales/gu/translation.json +2 -2
  21. package/src/RedactoPrivacyCenter/locales/hi/translation.json +2 -2
  22. package/src/RedactoPrivacyCenter/locales/kn/translation.json +2 -2
  23. package/src/RedactoPrivacyCenter/locales/ks/translation.json +2 -2
  24. package/src/RedactoPrivacyCenter/locales/mai/translation.json +2 -2
  25. package/src/RedactoPrivacyCenter/locales/ml/translation.json +2 -2
  26. package/src/RedactoPrivacyCenter/locales/mni-Mtei/translation.json +2 -2
  27. package/src/RedactoPrivacyCenter/locales/mr/translation.json +2 -2
  28. package/src/RedactoPrivacyCenter/locales/ne/translation.json +2 -2
  29. package/src/RedactoPrivacyCenter/locales/or/translation.json +2 -2
  30. package/src/RedactoPrivacyCenter/locales/pa/translation.json +2 -2
  31. package/src/RedactoPrivacyCenter/locales/sa/translation.json +2 -2
  32. package/src/RedactoPrivacyCenter/locales/sat/translation.json +2 -2
  33. package/src/RedactoPrivacyCenter/locales/sd/translation.json +2 -2
  34. package/src/RedactoPrivacyCenter/locales/ta/translation.json +2 -2
  35. package/src/RedactoPrivacyCenter/locales/te/translation.json +2 -2
  36. package/src/RedactoPrivacyCenter/locales/ur/translation.json +2 -2
  37. package/tests/Form.test.tsx +123 -149
  38. package/tests/ProductSelectionSection.test.tsx +39 -4
  39. package/tests/RequestSubmit.test.tsx +27 -187
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @redacto.io/consent-sdk-react
2
2
 
3
+ ## 9.2.0-beta.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(consent-sdk-react): drop "active" qualifier from product chip purpose count
8
+
3
9
  ## 9.2.0-beta.1
4
10
 
5
11
  ### 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 error
760
- * (preserves the original `Promise<CreateCaseResponse | null>` contract
761
- * the SDK exposes to consumers) — does NOT throw. Internally wraps
762
- * `createCaseRequestUnsafe` and swallows non-auth errors.
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, isPopup?: boolean, useSessionAuth?: boolean, authContext?: AuthContext, consentClient?: BaseUrlContextValue["consentClient"]) => Promise<CreateCaseResponse | null>;
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;
@@ -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 error
760
- * (preserves the original `Promise<CreateCaseResponse | null>` contract
761
- * the SDK exposes to consumers) — does NOT throw. Internally wraps
762
- * `createCaseRequestUnsafe` and swallows non-auth errors.
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, isPopup?: boolean, useSessionAuth?: boolean, authContext?: AuthContext, consentClient?: BaseUrlContextValue["consentClient"]) => Promise<CreateCaseResponse | null>;
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;