@redacto.io/consent-sdk-react 9.5.0-beta.0 → 10.0.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/dist/index.d.mts +4 -2
  3. package/dist/index.d.ts +4 -2
  4. package/dist/index.js +122 -15
  5. package/dist/index.mjs +122 -15
  6. package/dist/privacy-center.d.mts +31 -7
  7. package/dist/privacy-center.d.ts +31 -7
  8. package/dist/privacy-center.js +173 -38
  9. package/dist/privacy-center.mjs +173 -38
  10. package/package.json +1 -1
  11. package/src/RedactoNoticeConsent/RedactoNoticeConsent.test.tsx +5 -0
  12. package/src/RedactoNoticeConsent/RedactoNoticeConsent.tsx +29 -4
  13. package/src/RedactoNoticeConsent/api/index.ts +131 -2
  14. package/src/RedactoNoticeConsent/api/types.ts +33 -1
  15. package/src/RedactoNoticeConsent/types.ts +1 -0
  16. package/src/RedactoNoticeConsentInline/RedactoNoticeConsentInline.tsx +3 -1
  17. package/src/RedactoNoticeConsentInline/api/index.ts +5 -2
  18. package/src/RedactoNoticeConsentInline/api/types.ts +1 -1
  19. package/src/RedactoNoticeConsentInline/types.ts +1 -0
  20. package/src/RedactoPrivacyCenter/RedactoPrivacyCenter.tsx +3 -1
  21. package/src/RedactoPrivacyCenter/api/actions.ts +10 -3
  22. package/src/RedactoPrivacyCenter/api/client.ts +67 -21
  23. package/src/RedactoPrivacyCenter/components/ConsentManager.tsx +12 -1
  24. package/src/RedactoPrivacyCenter/components/Form.tsx +58 -6
  25. package/src/RedactoPrivacyCenter/components/groupHelpers.ts +64 -1
  26. package/src/RedactoPrivacyCenter/context/BaseUrlContext.tsx +8 -2
  27. package/src/RedactoPrivacyCenter/context/types.ts +1 -0
  28. package/src/RedactoPrivacyCenter/lib/api.ts +8 -0
  29. package/src/RedactoPrivacyCenter/lib/constants.ts +9 -0
  30. package/src/RedactoPrivacyCenter/lib/types.ts +11 -1
  31. package/tests/Form.test.tsx +5 -0
  32. package/tests/mocks.ts +1 -0
package/tests/mocks.ts CHANGED
@@ -235,6 +235,7 @@ export const defaultProps = {
235
235
  org_uuid: "org-123",
236
236
  workspace_uuid: "workspace-123",
237
237
  notice_uuid: "notice-123",
238
+ ledgerBaseUrl: "https://ledger.test/consent-ledger",
238
239
  accessToken: "mock-token",
239
240
  refreshToken: "mock-refresh-token",
240
241
  language: "en",