@redacto.io/consent-sdk-react 10.0.0-beta.5 → 10.0.0-beta.6
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/README.md +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -249,6 +249,7 @@ A modal popup component for consent collection. Displays a full-screen modal wit
|
|
|
249
249
|
| `accessToken` | `string` | Yes | - | Authentication token for API calls |
|
|
250
250
|
| `refreshToken` | `string` | Yes | - | Refresh token for token renewal |
|
|
251
251
|
| `baseUrl` | `string` | No | - | Base URL for the consent API |
|
|
252
|
+
| `ledgerBaseUrl` | `string` | No | - | Go ledger base URL. When set, consent writes and prior-consent checks route through the ledger (falls back: ledger → baseUrl → default). Omit to keep the legacy consent-server path. |
|
|
252
253
|
| `blockUI` | `boolean` | No | `true` | Whether to block UI interaction |
|
|
253
254
|
| `language` | `string` | No | `"en"` | Language code |
|
|
254
255
|
| `settings` | `object` | No | - | Custom styling options |
|
|
@@ -335,6 +336,7 @@ The component automatically submits consent when all of the following conditions
|
|
|
335
336
|
| `accessToken` | `string` | No | - | Authentication token |
|
|
336
337
|
| `refreshToken` | `string` | No | - | Refresh token |
|
|
337
338
|
| `baseUrl` | `string` | No | - | Base URL for the consent API |
|
|
339
|
+
| `ledgerBaseUrl` | `string` | No | - | Go ledger base URL. When set, consent writes and already-consented checks route through the ledger. Omit for legacy behavior. |
|
|
338
340
|
| `language` | `string` | No | `"en"` | Language code |
|
|
339
341
|
| `settings` | `object` | No | - | Custom styling options |
|
|
340
342
|
| `applicationId` | `string` | No | - | Application-specific UUID |
|
|
@@ -365,6 +367,7 @@ A modal, agent-assisted consent widget for collecting consent from an end-user w
|
|
|
365
367
|
| `workspaceUuid` | `string` | Yes | - | Workspace UUID (path segment of the public notice endpoint) |
|
|
366
368
|
| `noticeUuid` | `string` | Yes | - | Notice UUID to fetch and render |
|
|
367
369
|
| `baseUrl` | `string` | No | Production consent API | Base URL for the consent API |
|
|
370
|
+
| `ledgerBaseUrl` | `string` | No | - | Go ledger base URL. When set, the consent write routes through the ledger (falls back: ledger → baseUrl → default). Notice fetch, OTP, and TTS always stay on `baseUrl`. Omit for legacy behavior. |
|
|
368
371
|
| `onDecline` | `() => void` | No | Logs and resets the flow | Called when the agent/customer declines (host should unmount the modal) |
|
|
369
372
|
| `onComplete` | `() => void` | No | Logs and resets the flow | Called when the agent clicks "Proceed" on the confirmed screen |
|
|
370
373
|
|
|
@@ -761,6 +764,7 @@ import { RedactoPrivacyCenter } from "@redacto.io/consent-sdk-react/privacy-cent
|
|
|
761
764
|
| Prop | Type | Required | Default | Description |
|
|
762
765
|
| -------------- | -------------------------------------------------------------------------------------------------------------------------- | -------- | -------------------- | -------------------------------------------------------- |
|
|
763
766
|
| `baseUrl` | `string` | Yes | - | Consent server base URL |
|
|
767
|
+
| `ledgerBaseUrl` | `string` | No | - | Go ledger base URL. When set, user consents, group purposes, receipts, and manage-consent route through the ledger, and the DSAR form's product picker is overlaid from ledger-served consents. Omit to use the legacy `/dsar/privacy-center/*` routes. |
|
|
764
768
|
| `slug` | `string` | Yes | - | Workspace slug |
|
|
765
769
|
| `accessToken` | `string` | Yes | - | JWT access token |
|
|
766
770
|
| `refreshToken` | `string` | Yes | - | JWT refresh token |
|