@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.
- package/CHANGELOG.md +12 -0
- package/README.md +3 -1
- package/dist/index.js +8509 -2680
- package/dist/index.mjs +8503 -2686
- package/package.json +11 -16
- package/src/PrivacyCenterActivityPage.tsx +12 -5
- package/src/PrivacyCenterConsentManagerPage.tsx +6 -13
- package/src/PrivacyCenterFormPage.tsx +23 -16
- package/src/PrivacyCenterLayout.tsx +52 -53
- package/src/RedactoPrivacyCenter.tsx +1 -7
- package/src/api/client.ts +1 -29
- package/src/api/upload.ts +30 -7
- package/src/components/ActivitiesList.tsx +156 -11
- package/src/components/CaseDetailsModal.tsx +400 -97
- package/src/components/CaseHistory.tsx +374 -256
- package/src/components/ConsentManager.tsx +158 -65
- package/src/components/ConsentManagerColumns.tsx +75 -39
- package/src/components/ConsentManagerTableSkeleton.tsx +116 -28
- package/src/components/DataRequest/CorrectionDataSection.tsx +127 -76
- package/src/components/DataRequest/GrievanceDataSection.tsx +59 -39
- package/src/components/DataRequest/PurposeSelectionSection.tsx +106 -30
- package/src/components/Form.tsx +360 -180
- package/src/components/GrievanceTable.tsx +174 -0
- package/src/components/GrievanceTablePagination.tsx +328 -0
- package/src/components/ModifyConsentModal.tsx +131 -43
- package/src/components/Pagination.tsx +80 -51
- package/src/components/PrivacyCenterLayout.tsx +138 -9
- package/src/components/RequestSubmit.tsx +172 -40
- package/src/components/SideMenuBarPC/SideBarPC.tsx +223 -85
- package/src/components/SideMenuBarPC/SideMenuPC.tsx +302 -153
- package/src/components/SideMenuBarPC/constants.tsx +3 -3
- package/src/components/SideMenuBarPC/utils.ts +12 -0
- package/src/components/ThemeTransitionOverlay.tsx +85 -0
- package/src/components/activitiesColumns.tsx +33 -22
- package/src/components/caseHistoryColumns.tsx +177 -0
- package/src/context/BaseUrlContext.tsx +2 -6
- package/src/context/theme.tsx +26 -5
- package/src/index.ts +4 -1
- package/src/lib/api.ts +0 -33
- package/src/lib/utils.ts +41 -0
- package/src/styles/base.css +117 -0
- package/src/styles/injectStyles.ts +864 -0
- package/src/styles/pcStyles.ts +808 -0
- package/src/styles/responsive.ts +138 -0
- package/src/styles/variables.css +129 -0
- package/src/table/AdvancedTable.tsx +173 -76
- package/src/table/AdvancedTablePagination.tsx +469 -89
- package/src/ui/Footer.tsx +4 -6
- package/src/ui/FormBlockWrapper.tsx +30 -15
- package/src/ui/PCAccordion.tsx +87 -0
- package/src/ui/PCActionIcon.tsx +47 -0
- package/src/ui/PCAvatar.tsx +69 -0
- package/src/ui/PCBadge.tsx +48 -0
- package/src/ui/PCButton.tsx +77 -0
- package/src/ui/PCCheckbox.tsx +55 -0
- package/src/ui/PCCollapse.tsx +97 -0
- package/src/ui/PCEmpty.tsx +35 -0
- package/src/ui/PCInput.tsx +128 -0
- package/src/ui/PCLoader.tsx +30 -0
- package/src/ui/PCModal.tsx +104 -0
- package/src/ui/PCPopover.tsx +175 -0
- package/src/ui/PCSelect.tsx +272 -0
- package/src/ui/PCTable.tsx +137 -0
- package/src/ui/PCText.tsx +39 -0
- package/src/ui/PCTextarea.tsx +43 -0
- package/src/ui/PCTitle.tsx +37 -0
- package/src/ui/PCTooltip.tsx +104 -0
- package/src/ui/SimpleBar.tsx +9 -3
- package/src/ui/StatusBadge.tsx +12 -40
- package/src/ui/ThemeToggle.tsx +45 -12
- package/src/ui/index.ts +18 -0
- package/src/utils/cn.ts +26 -4
- package/src/utils/toast.ts +122 -0
- package/test.css.json +1 -0
- package/tsup.config.ts +3 -9
- package/dist/index.css +0 -8
- package/src/styles.css +0 -9
package/CHANGELOG.md
CHANGED
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
|
|
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
|