@redacto.io/consent-sdk-react 9.3.0 → 9.4.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.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +6 -0
- package/README.md +93 -12
- package/dist/index.d.mts +39 -1
- package/dist/index.d.ts +39 -1
- package/dist/index.js +4454 -334
- package/dist/index.mjs +4454 -335
- package/dist/privacy-center.d.mts +4 -1
- package/dist/privacy-center.d.ts +4 -1
- package/dist/privacy-center.js +3905 -3660
- package/dist/privacy-center.mjs +4172 -3921
- package/package.json +1 -1
- package/src/RedactoNoticeAssisted/RedactoNoticeAssisted.test.tsx +847 -0
- package/src/RedactoNoticeAssisted/RedactoNoticeAssisted.tsx +2133 -0
- package/src/RedactoNoticeAssisted/api/index.ts +269 -0
- package/src/RedactoNoticeAssisted/api/types.ts +180 -0
- package/src/RedactoNoticeAssisted/assets/redacto-logo.png +0 -0
- package/src/RedactoNoticeAssisted/constants.ts +51 -0
- package/src/RedactoNoticeAssisted/i18n.ts +1463 -0
- package/src/RedactoNoticeAssisted/index.ts +1 -0
- package/src/RedactoNoticeAssisted/injectStyles.ts +251 -0
- package/src/RedactoNoticeAssisted/styles.ts +730 -0
- package/src/RedactoNoticeAssisted/types.ts +24 -0
- package/src/RedactoNoticeAssisted/useMediaQuery.ts +36 -0
- package/src/RedactoPrivacyCenter/NotificationsPage.tsx +8 -0
- package/src/RedactoPrivacyCenter/api/actions.ts +6 -11
- package/src/RedactoPrivacyCenter/api/client.ts +15 -3
- package/src/RedactoPrivacyCenter/api/fetcher.ts +80 -1
- package/src/RedactoPrivacyCenter/components/ActivitiesList.tsx +193 -213
- package/src/RedactoPrivacyCenter/components/ActivityTimeline.tsx +239 -0
- package/src/RedactoPrivacyCenter/components/CaseDetails/MessagesTab.tsx +3 -1
- package/src/RedactoPrivacyCenter/components/CaseDetails/useMessagePolling.ts +8 -1
- package/src/RedactoPrivacyCenter/components/ConsentManager.tsx +23 -17
- package/src/RedactoPrivacyCenter/components/ConsentManagerCells.tsx +24 -10
- package/src/RedactoPrivacyCenter/components/NotificationHub/NotificationBell.tsx +16 -3
- package/src/RedactoPrivacyCenter/components/constant.ts +25 -0
- package/src/RedactoPrivacyCenter/components/types.ts +32 -1
- package/src/RedactoPrivacyCenter/lib/consent-manager/utils.tsx +25 -23
- package/src/RedactoPrivacyCenter/lib/constants.ts +23 -10
- package/src/RedactoPrivacyCenter/lib/queries.ts +9 -2
- package/src/RedactoPrivacyCenter/lib/utils.refresh-circuit.test.ts +127 -0
- package/src/RedactoPrivacyCenter/lib/utils.refresh-storage.test.ts +85 -0
- package/src/RedactoPrivacyCenter/lib/utils.ts +213 -63
- package/src/RedactoPrivacyCenter/locales/en/translation.json +3 -0
- package/src/RedactoPrivacyCenter/styles/injectStyles.ts +16 -0
- package/src/index.ts +2 -0
- package/src/shared/api-errors.ts +9 -0
- package/src/RedactoPrivacyCenter/components/activitiesColumns.tsx +0 -141
|
@@ -663,7 +663,10 @@ declare function exchangeTokenServer(token: string, consentClient?: ReturnType<t
|
|
|
663
663
|
|
|
664
664
|
declare const getCookieValue: (name: string) => string | null;
|
|
665
665
|
/**
|
|
666
|
-
*
|
|
666
|
+
* Persist the refresh token. Named `setRefreshTokenCookie` for backward
|
|
667
|
+
* compatibility (it is part of the package's exported surface); it now writes
|
|
668
|
+
* to localStorage rather than a cookie, and clears any cookie an older SDK
|
|
669
|
+
* version left at path=/privacy-center.
|
|
667
670
|
* @param refreshToken - The refresh token value to set
|
|
668
671
|
*/
|
|
669
672
|
declare const setRefreshTokenCookie: (refreshToken: string) => void;
|
package/dist/privacy-center.d.ts
CHANGED
|
@@ -663,7 +663,10 @@ declare function exchangeTokenServer(token: string, consentClient?: ReturnType<t
|
|
|
663
663
|
|
|
664
664
|
declare const getCookieValue: (name: string) => string | null;
|
|
665
665
|
/**
|
|
666
|
-
*
|
|
666
|
+
* Persist the refresh token. Named `setRefreshTokenCookie` for backward
|
|
667
|
+
* compatibility (it is part of the package's exported surface); it now writes
|
|
668
|
+
* to localStorage rather than a cookie, and clears any cookie an older SDK
|
|
669
|
+
* version left at path=/privacy-center.
|
|
667
670
|
* @param refreshToken - The refresh token value to set
|
|
668
671
|
*/
|
|
669
672
|
declare const setRefreshTokenCookie: (refreshToken: string) => void;
|