@redacto.io/consent-sdk-react 9.4.0-beta.0 → 9.4.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 (41) hide show
  1. package/.turbo/turbo-build.log +12 -12
  2. package/CHANGELOG.md +7 -0
  3. package/dist/privacy-center.d.mts +1 -0
  4. package/dist/privacy-center.d.ts +1 -0
  5. package/dist/privacy-center.js +1502 -1372
  6. package/dist/privacy-center.mjs +1185 -1055
  7. package/package.json +1 -1
  8. package/src/RedactoPrivacyCenter/components/AppShell/AppShell.tsx +5 -0
  9. package/src/RedactoPrivacyCenter/components/AppShell/UserMenu.tsx +6 -16
  10. package/src/RedactoPrivacyCenter/components/AppShell/usePrivacyCenterExitAction.ts +36 -0
  11. package/src/RedactoPrivacyCenter/components/PrivacyCenterSessionExpired.tsx +97 -0
  12. package/src/RedactoPrivacyCenter/context/AuthContext.tsx +23 -2
  13. package/src/RedactoPrivacyCenter/context/DataAvailabilityContext.session-expired.test.tsx +92 -0
  14. package/src/RedactoPrivacyCenter/context/DataAvailabilityContext.tsx +15 -3
  15. package/src/RedactoPrivacyCenter/context/types.ts +4 -0
  16. package/src/RedactoPrivacyCenter/lib/utils.session-expired.test.ts +109 -0
  17. package/src/RedactoPrivacyCenter/lib/utils.ts +55 -79
  18. package/src/RedactoPrivacyCenter/locales/as/translation.json +2 -0
  19. package/src/RedactoPrivacyCenter/locales/bho/translation.json +2 -0
  20. package/src/RedactoPrivacyCenter/locales/bn/translation.json +2 -0
  21. package/src/RedactoPrivacyCenter/locales/brx/translation.json +2 -0
  22. package/src/RedactoPrivacyCenter/locales/doi/translation.json +2 -0
  23. package/src/RedactoPrivacyCenter/locales/en/translation.json +2 -0
  24. package/src/RedactoPrivacyCenter/locales/gom/translation.json +2 -0
  25. package/src/RedactoPrivacyCenter/locales/gu/translation.json +2 -0
  26. package/src/RedactoPrivacyCenter/locales/hi/translation.json +2 -0
  27. package/src/RedactoPrivacyCenter/locales/kn/translation.json +2 -0
  28. package/src/RedactoPrivacyCenter/locales/ks/translation.json +2 -0
  29. package/src/RedactoPrivacyCenter/locales/mai/translation.json +2 -0
  30. package/src/RedactoPrivacyCenter/locales/ml/translation.json +2 -0
  31. package/src/RedactoPrivacyCenter/locales/mni-Mtei/translation.json +2 -0
  32. package/src/RedactoPrivacyCenter/locales/mr/translation.json +2 -0
  33. package/src/RedactoPrivacyCenter/locales/ne/translation.json +2 -0
  34. package/src/RedactoPrivacyCenter/locales/or/translation.json +2 -0
  35. package/src/RedactoPrivacyCenter/locales/pa/translation.json +2 -0
  36. package/src/RedactoPrivacyCenter/locales/sa/translation.json +2 -0
  37. package/src/RedactoPrivacyCenter/locales/sat/translation.json +2 -0
  38. package/src/RedactoPrivacyCenter/locales/sd/translation.json +2 -0
  39. package/src/RedactoPrivacyCenter/locales/ta/translation.json +2 -0
  40. package/src/RedactoPrivacyCenter/locales/te/translation.json +2 -0
  41. package/src/RedactoPrivacyCenter/locales/ur/translation.json +2 -0
@@ -1,5 +1,5 @@
1
1
 
2
- > @redacto.io/consent-sdk-react@9.3.0 build /Users/sadanmianredacto/Developer/redacto/consent-sdk/packages/consent-sdk-react
2
+ > @redacto.io/consent-sdk-react@9.4.0-beta.0 build /Users/sadanmianredacto/Developer/redacto/consent-sdk/packages/consent-sdk-react
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: {"index":"src/index.ts","privacy-center":"src/privacy-center.ts"}
@@ -10,16 +10,16 @@ CLI Target: es2019
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- CJS dist/index.js 319.92 KB
14
- CJS dist/privacy-center.js 2.17 MB
15
- CJS ⚡️ Build success in 447ms
16
- ESM dist/index.mjs 306.43 KB
13
+ CJS dist/index.js 517.55 KB
14
+ CJS dist/privacy-center.js 2.18 MB
15
+ CJS ⚡️ Build success in 60ms
17
16
  ESM dist/chunk-6A665OPR.mjs 841.00 B
18
- ESM dist/privacy-center.mjs 2.13 MB
19
- ESM ⚡️ Build success in 453ms
17
+ ESM dist/index.mjs 503.10 KB
18
+ ESM dist/privacy-center.mjs 2.15 MB
19
+ ESM ⚡️ Build success in 66ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 5383ms
22
- DTS dist/index.d.mts 7.72 KB
23
- DTS dist/privacy-center.d.mts 30.45 KB
24
- DTS dist/index.d.ts 7.72 KB
25
- DTS dist/privacy-center.d.ts 30.45 KB
21
+ DTS ⚡️ Build success in 2580ms
22
+ DTS dist/index.d.mts 8.03 KB
23
+ DTS dist/privacy-center.d.mts 30.69 KB
24
+ DTS dist/index.d.ts 8.03 KB
25
+ DTS dist/privacy-center.d.ts 30.69 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @redacto.io/consent-sdk-react
2
2
 
3
+ ## 9.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9f7f7d5: feat(consent-sdk-react): add RedactoNoticeAssisted (agent-assisted OTP consent) + starter loan demo
8
+ - add notice assisted and fix ui/ux
9
+
3
10
  ## 9.4.0-beta.0
4
11
 
5
12
  ### Minor Changes
@@ -642,6 +642,7 @@ type AuthContextValue = Readonly<{
642
642
  refreshToken: string;
643
643
  onError: (error: Error) => boolean;
644
644
  updateTokens: (accessToken: string, refreshToken?: string) => void;
645
+ sessionExpired: boolean;
645
646
  }>;
646
647
  type BaseUrlContextValue = Readonly<{
647
648
  baseUrl: string;
@@ -642,6 +642,7 @@ type AuthContextValue = Readonly<{
642
642
  refreshToken: string;
643
643
  onError: (error: Error) => boolean;
644
644
  updateTokens: (accessToken: string, refreshToken?: string) => void;
645
+ sessionExpired: boolean;
645
646
  }>;
646
647
  type BaseUrlContextValue = Readonly<{
647
648
  baseUrl: string;