@redacto.io/privacy-center-sdk 1.1.0 → 3.0.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 (77) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +3 -1
  3. package/dist/index.js +8509 -2680
  4. package/dist/index.mjs +8503 -2686
  5. package/package.json +11 -16
  6. package/src/PrivacyCenterActivityPage.tsx +12 -5
  7. package/src/PrivacyCenterConsentManagerPage.tsx +6 -13
  8. package/src/PrivacyCenterFormPage.tsx +23 -16
  9. package/src/PrivacyCenterLayout.tsx +52 -53
  10. package/src/RedactoPrivacyCenter.tsx +1 -7
  11. package/src/api/client.ts +1 -29
  12. package/src/api/upload.ts +30 -7
  13. package/src/components/ActivitiesList.tsx +156 -11
  14. package/src/components/CaseDetailsModal.tsx +400 -97
  15. package/src/components/CaseHistory.tsx +374 -256
  16. package/src/components/ConsentManager.tsx +158 -65
  17. package/src/components/ConsentManagerColumns.tsx +75 -39
  18. package/src/components/ConsentManagerTableSkeleton.tsx +116 -28
  19. package/src/components/DataRequest/CorrectionDataSection.tsx +127 -76
  20. package/src/components/DataRequest/GrievanceDataSection.tsx +59 -39
  21. package/src/components/DataRequest/PurposeSelectionSection.tsx +106 -30
  22. package/src/components/Form.tsx +360 -180
  23. package/src/components/GrievanceTable.tsx +174 -0
  24. package/src/components/GrievanceTablePagination.tsx +328 -0
  25. package/src/components/ModifyConsentModal.tsx +131 -43
  26. package/src/components/Pagination.tsx +80 -51
  27. package/src/components/PrivacyCenterLayout.tsx +138 -9
  28. package/src/components/RequestSubmit.tsx +172 -40
  29. package/src/components/SideMenuBarPC/SideBarPC.tsx +223 -85
  30. package/src/components/SideMenuBarPC/SideMenuPC.tsx +302 -153
  31. package/src/components/SideMenuBarPC/constants.tsx +3 -3
  32. package/src/components/SideMenuBarPC/utils.ts +12 -0
  33. package/src/components/ThemeTransitionOverlay.tsx +85 -0
  34. package/src/components/activitiesColumns.tsx +33 -22
  35. package/src/components/caseHistoryColumns.tsx +177 -0
  36. package/src/context/BaseUrlContext.tsx +2 -6
  37. package/src/context/theme.tsx +26 -5
  38. package/src/index.ts +4 -1
  39. package/src/lib/api.ts +0 -33
  40. package/src/lib/utils.ts +41 -0
  41. package/src/styles/base.css +117 -0
  42. package/src/styles/injectStyles.ts +864 -0
  43. package/src/styles/pcStyles.ts +808 -0
  44. package/src/styles/responsive.ts +138 -0
  45. package/src/styles/variables.css +129 -0
  46. package/src/table/AdvancedTable.tsx +173 -76
  47. package/src/table/AdvancedTablePagination.tsx +469 -89
  48. package/src/ui/Footer.tsx +4 -6
  49. package/src/ui/FormBlockWrapper.tsx +30 -15
  50. package/src/ui/PCAccordion.tsx +87 -0
  51. package/src/ui/PCActionIcon.tsx +47 -0
  52. package/src/ui/PCAvatar.tsx +69 -0
  53. package/src/ui/PCBadge.tsx +48 -0
  54. package/src/ui/PCButton.tsx +77 -0
  55. package/src/ui/PCCheckbox.tsx +55 -0
  56. package/src/ui/PCCollapse.tsx +97 -0
  57. package/src/ui/PCEmpty.tsx +35 -0
  58. package/src/ui/PCInput.tsx +128 -0
  59. package/src/ui/PCLoader.tsx +30 -0
  60. package/src/ui/PCModal.tsx +104 -0
  61. package/src/ui/PCPopover.tsx +175 -0
  62. package/src/ui/PCSelect.tsx +272 -0
  63. package/src/ui/PCTable.tsx +137 -0
  64. package/src/ui/PCText.tsx +39 -0
  65. package/src/ui/PCTextarea.tsx +43 -0
  66. package/src/ui/PCTitle.tsx +37 -0
  67. package/src/ui/PCTooltip.tsx +104 -0
  68. package/src/ui/SimpleBar.tsx +9 -3
  69. package/src/ui/StatusBadge.tsx +12 -40
  70. package/src/ui/ThemeToggle.tsx +45 -12
  71. package/src/ui/index.ts +18 -0
  72. package/src/utils/cn.ts +26 -4
  73. package/src/utils/toast.ts +122 -0
  74. package/test.css.json +1 -0
  75. package/tsup.config.ts +3 -9
  76. package/dist/index.css +0 -8
  77. package/src/styles.css +0 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @redacto.io/privacy-center-sdk
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - removed tailwind and rizzui
8
+
9
+ ## 2.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - removed tailwind and rizz ui
14
+
3
15
  ## 1.1.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -179,7 +179,7 @@ The SDK is built with a modular architecture using React Context API for state m
179
179
  ### Context Providers
180
180
 
181
181
  - **`AuthProvider`**: Manages authentication tokens (access and refresh tokens)
182
- - **`BaseUrlProvider`**: Provides API base URLs for consent server and user server
182
+ - **`BaseUrlProvider`**: Provides API base URL for consent server
183
183
  - **`NavigationProvider`**: Handles internal navigation between pages
184
184
  - **`OrganizationContext`**: Manages organization and workspace data
185
185
  - **`LocaleContext`**: Handles language and locale settings
@@ -221,7 +221,9 @@ The SDK includes the following dependencies (bundled with the package):
221
221
  - `@tanstack/react-query`: Data fetching and caching
222
222
  - `@tanstack/react-table`: Table component library
223
223
  - `i18next`: Internationalization framework
224
+ - `i18next-browser-languagedetector`: Browser language detection for i18next
224
225
  - `react-i18next`: React bindings for i18next
226
+ - `lucide-react`: Icon library
225
227
  - `rizzui`: UI component library
226
228
  - `react-toastify`: Toast notification library
227
229
  - `react-icons`: Icon library