@redacto.io/consent-sdk-react 7.0.0 → 7.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/.turbo/turbo-build.log +25 -24
- package/CHANGELOG.md +16 -0
- package/dist/index.js +228 -166
- package/dist/index.mjs +228 -166
- package/dist/privacy-center.d.mts +3 -2
- package/dist/privacy-center.d.ts +3 -2
- package/dist/privacy-center.js +18 -12
- package/dist/privacy-center.mjs +18 -12
- package/package.json +1 -1
- package/src/RedactoNoticeConsent/RedactoNoticeConsent.tsx +209 -155
- package/src/RedactoNoticeConsent/styles.ts +10 -1
- package/src/RedactoPrivacyCenter/api/actions.ts +3 -1
- package/src/RedactoPrivacyCenter/api/client.ts +5 -1
- package/src/RedactoPrivacyCenter/components/ConsentManager.tsx +3 -5
- package/src/RedactoPrivacyCenter/components/ModifyConsentModal.tsx +2 -1
- package/src/RedactoPrivacyCenter/components/types.ts +2 -1
- package/src/RedactoPrivacyCenter/lib/api.ts +4 -0
- package/src/RedactoPrivacyCenter/table/AdvancedTable.tsx +1 -1
|
@@ -371,6 +371,7 @@ export const manageConsent = async ({
|
|
|
371
371
|
consentClient,
|
|
372
372
|
nominatorContact,
|
|
373
373
|
dataElementUuids,
|
|
374
|
+
productUuid,
|
|
374
375
|
}: {
|
|
375
376
|
organizationId: string;
|
|
376
377
|
workspaceId: string;
|
|
@@ -381,6 +382,7 @@ export const manageConsent = async ({
|
|
|
381
382
|
consentClient?: BaseUrlContextValue['consentClient'];
|
|
382
383
|
nominatorContact?: string;
|
|
383
384
|
dataElementUuids?: string[];
|
|
385
|
+
productUuid?: string;
|
|
384
386
|
}): Promise<boolean | null> => {
|
|
385
387
|
try {
|
|
386
388
|
// Ensure we have a valid token before making the API call
|
|
@@ -400,6 +402,7 @@ export const manageConsent = async ({
|
|
|
400
402
|
consentClient,
|
|
401
403
|
nominatorContact,
|
|
402
404
|
dataElementUuids,
|
|
405
|
+
productUuid,
|
|
403
406
|
});
|
|
404
407
|
return result;
|
|
405
408
|
} catch (error: any) {
|
|
@@ -421,6 +424,7 @@ export const manageConsent = async ({
|
|
|
421
424
|
consentClient,
|
|
422
425
|
nominatorContact,
|
|
423
426
|
dataElementUuids,
|
|
427
|
+
productUuid,
|
|
424
428
|
});
|
|
425
429
|
}
|
|
426
430
|
console.error(`Error ${action} consent:`, error);
|
|
@@ -111,7 +111,7 @@ export default function AdvancedTable<TData extends Record<string, any>>({
|
|
|
111
111
|
const meta = (table.options.meta as any) || {};
|
|
112
112
|
const onRowClick = meta.onRowClick;
|
|
113
113
|
const handleRowClick = onRowClick
|
|
114
|
-
? (
|
|
114
|
+
? () => {
|
|
115
115
|
onRowClick(row.original, row);
|
|
116
116
|
}
|
|
117
117
|
: undefined;
|