@tantainnovative/ndpr-toolkit 2.4.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/README.md +226 -246
- package/dist/BreachReportForm-DpRrBoxU.d.ts +158 -0
- package/dist/BreachReportForm-yJ2Zl6gz.d.mts +158 -0
- package/dist/ConsentBanner-CDRT0o2k.d.mts +146 -0
- package/dist/ConsentBanner-Vxyt8SCX.d.ts +146 -0
- package/dist/{cross-border-entry-BrWVPly6.d.ts → CrossBorderTransferManager-D5Lc0e46.d.ts} +4 -5
- package/dist/{cross-border-entry-cCTvpwnT.d.mts → CrossBorderTransferManager-DkZhv9vD.d.mts} +4 -5
- package/dist/DPIAQuestionnaire-BkejviPj.d.mts +123 -0
- package/dist/DPIAQuestionnaire-DdSqXG3x.d.ts +123 -0
- package/dist/DSRRequestForm-BY8PogCU.d.mts +146 -0
- package/dist/DSRRequestForm-CHUg9cZh.d.ts +146 -0
- package/dist/DSRTracker-C6u_jAaK.d.mts +163 -0
- package/dist/DSRTracker-Dr_aT0pg.d.ts +163 -0
- package/dist/{lawful-basis-entry-CxZrofwG.d.mts → LawfulBasisTracker-CBqOxX1D.d.mts} +3 -5
- package/dist/{lawful-basis-entry-15qjKcNO.d.ts → LawfulBasisTracker-Cg30NbDA.d.ts} +3 -5
- package/dist/NDPRDashboard-CLJpEg0X.d.mts +44 -0
- package/dist/NDPRDashboard-DDWNd2Ah.d.ts +44 -0
- package/dist/{policy-E0fXZkda.d.mts → PolicyExporter-BIqSVjfC.d.mts} +4 -98
- package/dist/{policy-D2_jh5-T.d.ts → PolicyExporter-BNWaPBGU.d.ts} +4 -98
- package/dist/PolicyGenerator-BvcWPbxp.d.mts +96 -0
- package/dist/PolicyGenerator-BzRwtlgn.d.ts +96 -0
- package/dist/{ropa-entry-B0D7X1GV.d.ts → ROPAManager-BS4eB8Hw.d.mts} +4 -5
- package/dist/{ropa-entry-DiOThOc2.d.mts → ROPAManager-qxTrXLkD.d.ts} +4 -5
- package/dist/{breach-ouXoVTWs.d.ts → RegulatoryReportGenerator-BUYgzTTT.d.ts} +6 -162
- package/dist/{breach-yRiyyc4n.d.mts → RegulatoryReportGenerator-DwcHcEFp.d.mts} +6 -162
- package/dist/StepIndicator-D-nwRTyo.d.mts +171 -0
- package/dist/StepIndicator-D9ZATz_O.d.ts +171 -0
- package/dist/adapters.d.mts +25 -0
- package/dist/adapters.d.ts +25 -0
- package/dist/adapters.js +2 -0
- package/dist/adapters.mjs +2 -0
- package/dist/breach.d.mts +43 -4
- package/dist/breach.d.ts +43 -4
- package/dist/breach.js +1 -1
- package/dist/breach.mjs +1 -1
- package/dist/chunk-27NYSWUG.mjs +2 -0
- package/dist/chunk-2ORDHJRD.js +2 -0
- package/dist/chunk-2W7ARAW2.js +2 -0
- package/dist/chunk-3F34NACG.js +2 -0
- package/dist/chunk-3RGJV3VF.js +7 -0
- package/dist/chunk-3UWT64FI.mjs +2 -0
- package/dist/chunk-3V23O4ZJ.js +2 -0
- package/dist/chunk-3XAUN5IM.mjs +3 -0
- package/dist/chunk-5VMHKNJY.js +2 -0
- package/dist/chunk-6D3ZUGBB.mjs +2 -0
- package/dist/chunk-6E54NSAO.mjs +2 -0
- package/dist/chunk-7F5F5YWI.mjs +2 -0
- package/dist/chunk-7FIUX3ZM.js +89 -0
- package/dist/chunk-FR7ZYZXB.js +2 -0
- package/dist/chunk-FY5G6DGZ.js +7 -0
- package/dist/chunk-G26I6MP5.mjs +2 -0
- package/dist/chunk-GPJVTGHR.mjs +2 -0
- package/dist/chunk-GVANK6PL.js +3 -0
- package/dist/chunk-HNZK7LY3.mjs +2 -0
- package/dist/chunk-IKEPXHCZ.js +2 -0
- package/dist/chunk-IQQW52EF.js +2 -0
- package/dist/chunk-ISSGO2YT.mjs +72 -0
- package/dist/chunk-J6IKAGUP.mjs +89 -0
- package/dist/chunk-KHRBU5K7.js +2 -0
- package/dist/chunk-KNE4NXCY.mjs +7 -0
- package/dist/chunk-LFNA6WYQ.mjs +2 -0
- package/dist/chunk-NPI5T6NH.mjs +7 -0
- package/dist/chunk-NPLXE43Q.mjs +2 -0
- package/dist/chunk-P7BSBCB3.js +2 -0
- package/dist/chunk-PEH5GIMN.js +2 -0
- package/dist/chunk-RSUDIFZV.mjs +2 -0
- package/dist/chunk-SBNAMPAP.mjs +2 -0
- package/dist/chunk-SVCRYM4I.mjs +2 -0
- package/dist/chunk-U6VWHC46.js +72 -0
- package/dist/chunk-UK656RCG.js +2 -0
- package/dist/chunk-UNKXYVXY.js +2 -0
- package/dist/chunk-UOSEH6DC.js +2 -0
- package/dist/chunk-V37BM2LF.js +2 -0
- package/dist/chunk-V3MXWGXU.mjs +2 -0
- package/dist/chunk-VDZKGCAF.js +2 -0
- package/dist/chunk-WLSW4Z4W.mjs +2 -0
- package/dist/chunk-XSK4BSZJ.mjs +2 -0
- package/dist/chunk-YJCGEOLO.mjs +2 -0
- package/dist/chunk-ZCZ5RRZO.js +2 -0
- package/dist/compliance-score-racQe_E_.d.mts +115 -0
- package/dist/compliance-score-racQe_E_.d.ts +115 -0
- package/dist/consent.d.mts +67 -295
- package/dist/consent.d.ts +67 -295
- package/dist/consent.js +1 -1
- package/dist/consent.mjs +1 -1
- package/dist/core.d.mts +8 -5
- package/dist/core.d.ts +8 -5
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/cross-border-BBi9rZyO.d.mts +54 -0
- package/dist/cross-border-Dy-U9Hu6.d.ts +54 -0
- package/dist/{cross-border-BMcqLvjC.d.mts → cross-border-UyT00llA.d.mts} +1 -52
- package/dist/{cross-border-BMcqLvjC.d.ts → cross-border-UyT00llA.d.ts} +1 -52
- package/dist/cross-border.d.mts +32 -4
- package/dist/cross-border.d.ts +32 -4
- package/dist/cross-border.js +1 -1
- package/dist/cross-border.mjs +1 -1
- package/dist/dpia.d.mts +28 -284
- package/dist/dpia.d.ts +28 -284
- package/dist/dpia.js +1 -1
- package/dist/dpia.mjs +1 -1
- package/dist/dsr.d.mts +36 -4
- package/dist/dsr.d.ts +36 -4
- package/dist/dsr.js +1 -1
- package/dist/dsr.mjs +1 -1
- package/dist/hooks.d.mts +21 -10
- package/dist/hooks.d.ts +21 -10
- package/dist/hooks.js +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/index.d.mts +28 -18
- package/dist/index.d.ts +28 -18
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/lawful-basis.d.mts +31 -4
- package/dist/lawful-basis.d.ts +31 -4
- package/dist/lawful-basis.js +1 -1
- package/dist/lawful-basis.mjs +1 -1
- package/dist/policy.d.mts +36 -4
- package/dist/policy.d.ts +36 -4
- package/dist/policy.js +1 -1
- package/dist/policy.mjs +1 -1
- package/dist/presets.d.mts +124 -0
- package/dist/presets.d.ts +124 -0
- package/dist/presets.js +2 -0
- package/dist/presets.mjs +2 -0
- package/dist/{ropa-Li6UlL5H.d.ts → ropa-BDTM06tr.d.ts} +1 -49
- package/dist/{ropa-DP7pPPql.d.mts → ropa-CFHuT7jE.d.mts} +1 -49
- package/dist/ropa-CyynscU6.d.ts +51 -0
- package/dist/ropa-NIgxd8uP.d.mts +51 -0
- package/dist/ropa.d.mts +30 -4
- package/dist/ropa.d.ts +30 -4
- package/dist/ropa.js +1 -1
- package/dist/ropa.mjs +1 -1
- package/dist/styling-B7CBzYG7.d.ts +165 -0
- package/dist/styling-uJLsBbER.d.mts +165 -0
- package/dist/types-DK2CoKOC.d.mts +10 -0
- package/dist/types-DK2CoKOC.d.ts +10 -0
- package/dist/unstyled.d.mts +4 -4
- package/dist/unstyled.d.ts +4 -4
- package/dist/{useBreach-BBSoIcZO.d.mts → useBreach-CPr86Yan.d.mts} +18 -2
- package/dist/{useBreach-lFLbSyAN.d.ts → useBreach-DkVXvtJK.d.ts} +18 -2
- package/dist/{useConsent-D0pAfTlb.d.ts → useConsent-DCNkIJHR.d.mts} +12 -2
- package/dist/{useConsent-DOt2Njst.d.mts → useConsent-dOcELSfX.d.ts} +12 -2
- package/dist/{useCrossBorderTransfer-DmtACeqW.d.ts → useCrossBorderTransfer-BGNZt2lk.d.mts} +15 -3
- package/dist/{useCrossBorderTransfer-BZVFCXfr.d.mts → useCrossBorderTransfer-COqjgjsu.d.ts} +15 -3
- package/dist/{useDPIA-DBsg2yZx.d.ts → useDPIA-Dl16Te3r.d.ts} +13 -2
- package/dist/{useDPIA-Da7-Q_yW.d.mts → useDPIA-DzWye8JB.d.mts} +13 -2
- package/dist/{useDSR-YYZ6FYFs.d.mts → useDSR-C1LksCfP.d.mts} +13 -2
- package/dist/{useDSR-CYI7WCXr.d.ts → useDSR-DZel52O1.d.ts} +13 -2
- package/dist/{useDefaultPrivacyPolicy-CUluF_ic.d.mts → useDefaultPrivacyPolicy-BsYttRey.d.mts} +13 -2
- package/dist/{useDefaultPrivacyPolicy-B7kTHbZh.d.ts → useDefaultPrivacyPolicy-C-mG-A5S.d.ts} +13 -2
- package/dist/{useLawfulBasis-CpWuHtyh.d.mts → useLawfulBasis-CKJ-kw84.d.mts} +13 -2
- package/dist/{useLawfulBasis-CCWF9waR.d.ts → useLawfulBasis-DFTmu1ca.d.ts} +13 -2
- package/dist/{useROPA-BhJ3kvHp.d.ts → useROPA-BSSU1rfx.d.ts} +14 -2
- package/dist/{useROPA-DLFdjkxP.d.mts → useROPA-C2hjaBTz.d.mts} +14 -2
- package/package.json +18 -2
- package/dist/chunk-2XFAV267.mjs +0 -2
- package/dist/chunk-32UIWTGD.js +0 -72
- package/dist/chunk-3YCV2BA6.js +0 -2
- package/dist/chunk-4A354HL3.js +0 -2
- package/dist/chunk-5ZBO2UPH.js +0 -2
- package/dist/chunk-6GGGTRDZ.mjs +0 -2
- package/dist/chunk-BGHQTZAC.js +0 -94
- package/dist/chunk-BZTTQS4A.mjs +0 -7
- package/dist/chunk-EKVTLHBQ.js +0 -2
- package/dist/chunk-GMLNWS2N.mjs +0 -2
- package/dist/chunk-IBEKLDBY.mjs +0 -2
- package/dist/chunk-K3GMTMQ6.js +0 -2
- package/dist/chunk-L52PDW6O.mjs +0 -2
- package/dist/chunk-LI6WJ3LZ.js +0 -2
- package/dist/chunk-LXRXDTPI.js +0 -2
- package/dist/chunk-NW4A3JW6.mjs +0 -2
- package/dist/chunk-OITITR6K.mjs +0 -2
- package/dist/chunk-PDJGTQMY.mjs +0 -2
- package/dist/chunk-SKJCQKFL.mjs +0 -94
- package/dist/chunk-T44JQT2O.mjs +0 -2
- package/dist/chunk-TCJCE6WN.js +0 -2
- package/dist/chunk-VMJBW3EF.mjs +0 -2
- package/dist/chunk-WW3X3ELF.js +0 -2
- package/dist/chunk-XMYUYQH7.mjs +0 -72
- package/dist/chunk-ZNTMZ6NM.js +0 -7
- package/dist/chunk-ZU73VG3X.js +0 -2
- package/dist/dsr-190YpijW.d.ts +0 -307
- package/dist/dsr-BTT-Xd7H.d.mts +0 -307
package/dist/dsr-190YpijW.d.ts
DELETED
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { c as RequestType, D as DSRRequest, a as DSRStatus } from './dsr-Cm9lzWG7.js';
|
|
3
|
-
import './useDSR-CYI7WCXr.js';
|
|
4
|
-
import './dsr-pNtVb1BK.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Represents the data submitted by the DSR request form.
|
|
8
|
-
*/
|
|
9
|
-
interface DSRFormSubmission {
|
|
10
|
-
/** The selected request type identifier */
|
|
11
|
-
requestType: string;
|
|
12
|
-
/** Data subject personal information */
|
|
13
|
-
dataSubject: {
|
|
14
|
-
fullName: string;
|
|
15
|
-
email: string;
|
|
16
|
-
phone?: string;
|
|
17
|
-
identifierType: string;
|
|
18
|
-
identifierValue: string;
|
|
19
|
-
};
|
|
20
|
-
/** Additional information provided for the selected request type */
|
|
21
|
-
additionalInfo?: Record<string, any>;
|
|
22
|
-
/** Timestamp (ms) when the form was submitted */
|
|
23
|
-
submittedAt: number;
|
|
24
|
-
}
|
|
25
|
-
interface DSRRequestFormClassNames {
|
|
26
|
-
root?: string;
|
|
27
|
-
title?: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
form?: string;
|
|
30
|
-
fieldGroup?: string;
|
|
31
|
-
label?: string;
|
|
32
|
-
input?: string;
|
|
33
|
-
select?: string;
|
|
34
|
-
textarea?: string;
|
|
35
|
-
submitButton?: string;
|
|
36
|
-
/** Alias for submitButton */
|
|
37
|
-
primaryButton?: string;
|
|
38
|
-
successMessage?: string;
|
|
39
|
-
/** Custom class applied when isSubmitting is true (e.g. a loading overlay) */
|
|
40
|
-
loadingOverlay?: string;
|
|
41
|
-
}
|
|
42
|
-
interface DSRRequestFormProps {
|
|
43
|
-
/**
|
|
44
|
-
* Array of request types that can be submitted
|
|
45
|
-
*/
|
|
46
|
-
requestTypes: RequestType[];
|
|
47
|
-
/**
|
|
48
|
-
* Callback function called when form is submitted
|
|
49
|
-
*/
|
|
50
|
-
onSubmit: (data: DSRFormSubmission) => void;
|
|
51
|
-
/**
|
|
52
|
-
* Callback function called when form validation fails
|
|
53
|
-
*/
|
|
54
|
-
onValidationError?: (errors: Record<string, string>) => void;
|
|
55
|
-
/**
|
|
56
|
-
* Title displayed on the form
|
|
57
|
-
* @default "Submit a Data Subject Request"
|
|
58
|
-
*/
|
|
59
|
-
title?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Description text displayed on the form
|
|
62
|
-
* @default "Use this form to exercise your rights under the Nigeria Data Protection Act (NDPA), Part IV, Sections 29-36."
|
|
63
|
-
*/
|
|
64
|
-
description?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Text for the submit button
|
|
67
|
-
* @default "Submit Request"
|
|
68
|
-
*/
|
|
69
|
-
submitButtonText?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Custom CSS class for the form
|
|
72
|
-
*/
|
|
73
|
-
className?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Custom CSS class for the submit button
|
|
76
|
-
*/
|
|
77
|
-
buttonClassName?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Whether to show a confirmation message after submission
|
|
80
|
-
* @default true
|
|
81
|
-
*/
|
|
82
|
-
showConfirmation?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Confirmation message to display after submission
|
|
85
|
-
* @default "Your request has been submitted successfully. You will receive a confirmation email shortly."
|
|
86
|
-
*/
|
|
87
|
-
confirmationMessage?: string;
|
|
88
|
-
/**
|
|
89
|
-
* Whether to require identity verification
|
|
90
|
-
* @default true
|
|
91
|
-
*/
|
|
92
|
-
requireIdentityVerification?: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Types of identifiers accepted for verification
|
|
95
|
-
* @default ["email", "account", "customer_id"]
|
|
96
|
-
*/
|
|
97
|
-
identifierTypes?: Array<{
|
|
98
|
-
id: string;
|
|
99
|
-
label: string;
|
|
100
|
-
}>;
|
|
101
|
-
/**
|
|
102
|
-
* Whether to collect additional contact information
|
|
103
|
-
* @default true
|
|
104
|
-
*/
|
|
105
|
-
collectAdditionalContact?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Custom labels for form fields
|
|
108
|
-
*/
|
|
109
|
-
labels?: {
|
|
110
|
-
name?: string;
|
|
111
|
-
email?: string;
|
|
112
|
-
requestType?: string;
|
|
113
|
-
description?: string;
|
|
114
|
-
submit?: string;
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* Object of CSS class overrides keyed by semantic section name.
|
|
118
|
-
*/
|
|
119
|
-
classNames?: DSRRequestFormClassNames;
|
|
120
|
-
/**
|
|
121
|
-
* When true, all default Tailwind classes are removed so consumers
|
|
122
|
-
* can style from scratch using classNames.
|
|
123
|
-
*/
|
|
124
|
-
unstyled?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Whether the form is currently submitting.
|
|
127
|
-
* When true, the submit button is disabled and shows "Submitting..." text.
|
|
128
|
-
*/
|
|
129
|
-
isSubmitting?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Default values to pre-fill form fields.
|
|
132
|
-
* Useful for editing existing requests or pre-populating known data.
|
|
133
|
-
*/
|
|
134
|
-
defaultValues?: Partial<DSRFormSubmission>;
|
|
135
|
-
/**
|
|
136
|
-
* Callback fired when the form is reset via the Reset button.
|
|
137
|
-
* To fully remount the component (clearing all internal state),
|
|
138
|
-
* change the `key` prop from the parent.
|
|
139
|
-
*/
|
|
140
|
-
onReset?: () => void;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Data Subject Request form component. Implements NDPA Part IV, Sections 29-36
|
|
144
|
-
* covering data subject rights including access, rectification, erasure, and portability.
|
|
145
|
-
*/
|
|
146
|
-
declare const DSRRequestForm: React.FC<DSRRequestFormProps>;
|
|
147
|
-
|
|
148
|
-
interface DSRDashboardClassNames {
|
|
149
|
-
root?: string;
|
|
150
|
-
header?: string;
|
|
151
|
-
title?: string;
|
|
152
|
-
filters?: string;
|
|
153
|
-
requestList?: string;
|
|
154
|
-
requestItem?: string;
|
|
155
|
-
statusBadge?: string;
|
|
156
|
-
detailPanel?: string;
|
|
157
|
-
}
|
|
158
|
-
interface DSRDashboardProps {
|
|
159
|
-
/**
|
|
160
|
-
* List of DSR requests to display
|
|
161
|
-
*/
|
|
162
|
-
requests: DSRRequest[];
|
|
163
|
-
/**
|
|
164
|
-
* Callback function called when a request is selected
|
|
165
|
-
*/
|
|
166
|
-
onSelectRequest?: (requestId: string) => void;
|
|
167
|
-
/**
|
|
168
|
-
* Callback function called when a request status is updated
|
|
169
|
-
*/
|
|
170
|
-
onUpdateStatus?: (requestId: string, status: DSRStatus) => void;
|
|
171
|
-
/**
|
|
172
|
-
* Callback function called when a request is assigned
|
|
173
|
-
*/
|
|
174
|
-
onAssignRequest?: (requestId: string, assignee: string) => void;
|
|
175
|
-
/**
|
|
176
|
-
* Title displayed on the dashboard
|
|
177
|
-
* @default "Data Subject Request Dashboard"
|
|
178
|
-
*/
|
|
179
|
-
title?: string;
|
|
180
|
-
/**
|
|
181
|
-
* Description text displayed on the dashboard
|
|
182
|
-
* @default "Track and manage data subject requests in compliance with NDPA Part IV requirements."
|
|
183
|
-
*/
|
|
184
|
-
description?: string;
|
|
185
|
-
/**
|
|
186
|
-
* Custom CSS class for the dashboard
|
|
187
|
-
*/
|
|
188
|
-
className?: string;
|
|
189
|
-
/**
|
|
190
|
-
* Custom CSS class for the buttons
|
|
191
|
-
*/
|
|
192
|
-
buttonClassName?: string;
|
|
193
|
-
/**
|
|
194
|
-
* Whether to show the request details
|
|
195
|
-
* @default true
|
|
196
|
-
*/
|
|
197
|
-
showRequestDetails?: boolean;
|
|
198
|
-
/**
|
|
199
|
-
* Whether to show the request timeline
|
|
200
|
-
* @default true
|
|
201
|
-
*/
|
|
202
|
-
showRequestTimeline?: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* Whether to show the deadline alerts
|
|
205
|
-
* @default true
|
|
206
|
-
*/
|
|
207
|
-
showDeadlineAlerts?: boolean;
|
|
208
|
-
/**
|
|
209
|
-
* List of possible assignees
|
|
210
|
-
*/
|
|
211
|
-
assignees?: string[];
|
|
212
|
-
/**
|
|
213
|
-
* Object of CSS class overrides keyed by semantic section name.
|
|
214
|
-
*/
|
|
215
|
-
classNames?: DSRDashboardClassNames;
|
|
216
|
-
/**
|
|
217
|
-
* When true, all default Tailwind classes are removed so consumers
|
|
218
|
-
* can style from scratch using classNames.
|
|
219
|
-
*/
|
|
220
|
-
unstyled?: boolean;
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* Data Subject Request dashboard component. Supports compliance with NDPA Part IV,
|
|
224
|
-
* providing tools to track, manage, and respond to data subject requests within required timeframes.
|
|
225
|
-
*/
|
|
226
|
-
declare const DSRDashboard: React.FC<DSRDashboardProps>;
|
|
227
|
-
|
|
228
|
-
interface DSRTrackerClassNames {
|
|
229
|
-
root?: string;
|
|
230
|
-
header?: string;
|
|
231
|
-
title?: string;
|
|
232
|
-
stats?: string;
|
|
233
|
-
statCard?: string;
|
|
234
|
-
table?: string;
|
|
235
|
-
tableHeader?: string;
|
|
236
|
-
tableRow?: string;
|
|
237
|
-
statusBadge?: string;
|
|
238
|
-
}
|
|
239
|
-
interface DSRTrackerProps {
|
|
240
|
-
/**
|
|
241
|
-
* List of DSR requests to track
|
|
242
|
-
*/
|
|
243
|
-
requests: DSRRequest[];
|
|
244
|
-
/**
|
|
245
|
-
* Callback function called when a request is selected
|
|
246
|
-
*/
|
|
247
|
-
onSelectRequest?: (requestId: string) => void;
|
|
248
|
-
/**
|
|
249
|
-
* Title displayed on the tracker
|
|
250
|
-
* @default "DSR Request Tracker"
|
|
251
|
-
*/
|
|
252
|
-
title?: string;
|
|
253
|
-
/**
|
|
254
|
-
* Description text displayed on the tracker
|
|
255
|
-
* @default "Track the status and progress of data subject requests as required by NDPA Part IV."
|
|
256
|
-
*/
|
|
257
|
-
description?: string;
|
|
258
|
-
/**
|
|
259
|
-
* Custom CSS class for the tracker
|
|
260
|
-
*/
|
|
261
|
-
className?: string;
|
|
262
|
-
/**
|
|
263
|
-
* Custom CSS class for the buttons
|
|
264
|
-
*/
|
|
265
|
-
buttonClassName?: string;
|
|
266
|
-
/**
|
|
267
|
-
* Whether to show the summary statistics
|
|
268
|
-
* @default true
|
|
269
|
-
*/
|
|
270
|
-
showSummaryStats?: boolean;
|
|
271
|
-
/**
|
|
272
|
-
* Whether to show the request type breakdown
|
|
273
|
-
* @default true
|
|
274
|
-
*/
|
|
275
|
-
showTypeBreakdown?: boolean;
|
|
276
|
-
/**
|
|
277
|
-
* Whether to show the status breakdown
|
|
278
|
-
* @default true
|
|
279
|
-
*/
|
|
280
|
-
showStatusBreakdown?: boolean;
|
|
281
|
-
/**
|
|
282
|
-
* Whether to show the timeline chart
|
|
283
|
-
* @default true
|
|
284
|
-
*/
|
|
285
|
-
showTimelineChart?: boolean;
|
|
286
|
-
/**
|
|
287
|
-
* Whether to show the overdue requests
|
|
288
|
-
* @default true
|
|
289
|
-
*/
|
|
290
|
-
showOverdueRequests?: boolean;
|
|
291
|
-
/**
|
|
292
|
-
* Object of CSS class overrides keyed by semantic section name.
|
|
293
|
-
*/
|
|
294
|
-
classNames?: DSRTrackerClassNames;
|
|
295
|
-
/**
|
|
296
|
-
* When true, all default Tailwind classes are removed so consumers
|
|
297
|
-
* can style from scratch using classNames.
|
|
298
|
-
*/
|
|
299
|
-
unstyled?: boolean;
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* DSR tracking and analytics component. Supports compliance with NDPA Part IV,
|
|
303
|
-
* providing summary statistics, deadline tracking, and compliance metrics for data subject requests.
|
|
304
|
-
*/
|
|
305
|
-
declare const DSRTracker: React.FC<DSRTrackerProps>;
|
|
306
|
-
|
|
307
|
-
export { DSRDashboard as D, type DSRDashboardClassNames as a, type DSRFormSubmission as b, DSRRequestForm as c, type DSRRequestFormClassNames as d, DSRTracker as e, type DSRTrackerClassNames as f };
|
package/dist/dsr-BTT-Xd7H.d.mts
DELETED
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { c as RequestType, D as DSRRequest, a as DSRStatus } from './dsr-Cm9lzWG7.mjs';
|
|
3
|
-
import './useDSR-YYZ6FYFs.mjs';
|
|
4
|
-
import './dsr-D_eTNc4S.mjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Represents the data submitted by the DSR request form.
|
|
8
|
-
*/
|
|
9
|
-
interface DSRFormSubmission {
|
|
10
|
-
/** The selected request type identifier */
|
|
11
|
-
requestType: string;
|
|
12
|
-
/** Data subject personal information */
|
|
13
|
-
dataSubject: {
|
|
14
|
-
fullName: string;
|
|
15
|
-
email: string;
|
|
16
|
-
phone?: string;
|
|
17
|
-
identifierType: string;
|
|
18
|
-
identifierValue: string;
|
|
19
|
-
};
|
|
20
|
-
/** Additional information provided for the selected request type */
|
|
21
|
-
additionalInfo?: Record<string, any>;
|
|
22
|
-
/** Timestamp (ms) when the form was submitted */
|
|
23
|
-
submittedAt: number;
|
|
24
|
-
}
|
|
25
|
-
interface DSRRequestFormClassNames {
|
|
26
|
-
root?: string;
|
|
27
|
-
title?: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
form?: string;
|
|
30
|
-
fieldGroup?: string;
|
|
31
|
-
label?: string;
|
|
32
|
-
input?: string;
|
|
33
|
-
select?: string;
|
|
34
|
-
textarea?: string;
|
|
35
|
-
submitButton?: string;
|
|
36
|
-
/** Alias for submitButton */
|
|
37
|
-
primaryButton?: string;
|
|
38
|
-
successMessage?: string;
|
|
39
|
-
/** Custom class applied when isSubmitting is true (e.g. a loading overlay) */
|
|
40
|
-
loadingOverlay?: string;
|
|
41
|
-
}
|
|
42
|
-
interface DSRRequestFormProps {
|
|
43
|
-
/**
|
|
44
|
-
* Array of request types that can be submitted
|
|
45
|
-
*/
|
|
46
|
-
requestTypes: RequestType[];
|
|
47
|
-
/**
|
|
48
|
-
* Callback function called when form is submitted
|
|
49
|
-
*/
|
|
50
|
-
onSubmit: (data: DSRFormSubmission) => void;
|
|
51
|
-
/**
|
|
52
|
-
* Callback function called when form validation fails
|
|
53
|
-
*/
|
|
54
|
-
onValidationError?: (errors: Record<string, string>) => void;
|
|
55
|
-
/**
|
|
56
|
-
* Title displayed on the form
|
|
57
|
-
* @default "Submit a Data Subject Request"
|
|
58
|
-
*/
|
|
59
|
-
title?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Description text displayed on the form
|
|
62
|
-
* @default "Use this form to exercise your rights under the Nigeria Data Protection Act (NDPA), Part IV, Sections 29-36."
|
|
63
|
-
*/
|
|
64
|
-
description?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Text for the submit button
|
|
67
|
-
* @default "Submit Request"
|
|
68
|
-
*/
|
|
69
|
-
submitButtonText?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Custom CSS class for the form
|
|
72
|
-
*/
|
|
73
|
-
className?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Custom CSS class for the submit button
|
|
76
|
-
*/
|
|
77
|
-
buttonClassName?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Whether to show a confirmation message after submission
|
|
80
|
-
* @default true
|
|
81
|
-
*/
|
|
82
|
-
showConfirmation?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Confirmation message to display after submission
|
|
85
|
-
* @default "Your request has been submitted successfully. You will receive a confirmation email shortly."
|
|
86
|
-
*/
|
|
87
|
-
confirmationMessage?: string;
|
|
88
|
-
/**
|
|
89
|
-
* Whether to require identity verification
|
|
90
|
-
* @default true
|
|
91
|
-
*/
|
|
92
|
-
requireIdentityVerification?: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Types of identifiers accepted for verification
|
|
95
|
-
* @default ["email", "account", "customer_id"]
|
|
96
|
-
*/
|
|
97
|
-
identifierTypes?: Array<{
|
|
98
|
-
id: string;
|
|
99
|
-
label: string;
|
|
100
|
-
}>;
|
|
101
|
-
/**
|
|
102
|
-
* Whether to collect additional contact information
|
|
103
|
-
* @default true
|
|
104
|
-
*/
|
|
105
|
-
collectAdditionalContact?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Custom labels for form fields
|
|
108
|
-
*/
|
|
109
|
-
labels?: {
|
|
110
|
-
name?: string;
|
|
111
|
-
email?: string;
|
|
112
|
-
requestType?: string;
|
|
113
|
-
description?: string;
|
|
114
|
-
submit?: string;
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* Object of CSS class overrides keyed by semantic section name.
|
|
118
|
-
*/
|
|
119
|
-
classNames?: DSRRequestFormClassNames;
|
|
120
|
-
/**
|
|
121
|
-
* When true, all default Tailwind classes are removed so consumers
|
|
122
|
-
* can style from scratch using classNames.
|
|
123
|
-
*/
|
|
124
|
-
unstyled?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Whether the form is currently submitting.
|
|
127
|
-
* When true, the submit button is disabled and shows "Submitting..." text.
|
|
128
|
-
*/
|
|
129
|
-
isSubmitting?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Default values to pre-fill form fields.
|
|
132
|
-
* Useful for editing existing requests or pre-populating known data.
|
|
133
|
-
*/
|
|
134
|
-
defaultValues?: Partial<DSRFormSubmission>;
|
|
135
|
-
/**
|
|
136
|
-
* Callback fired when the form is reset via the Reset button.
|
|
137
|
-
* To fully remount the component (clearing all internal state),
|
|
138
|
-
* change the `key` prop from the parent.
|
|
139
|
-
*/
|
|
140
|
-
onReset?: () => void;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Data Subject Request form component. Implements NDPA Part IV, Sections 29-36
|
|
144
|
-
* covering data subject rights including access, rectification, erasure, and portability.
|
|
145
|
-
*/
|
|
146
|
-
declare const DSRRequestForm: React.FC<DSRRequestFormProps>;
|
|
147
|
-
|
|
148
|
-
interface DSRDashboardClassNames {
|
|
149
|
-
root?: string;
|
|
150
|
-
header?: string;
|
|
151
|
-
title?: string;
|
|
152
|
-
filters?: string;
|
|
153
|
-
requestList?: string;
|
|
154
|
-
requestItem?: string;
|
|
155
|
-
statusBadge?: string;
|
|
156
|
-
detailPanel?: string;
|
|
157
|
-
}
|
|
158
|
-
interface DSRDashboardProps {
|
|
159
|
-
/**
|
|
160
|
-
* List of DSR requests to display
|
|
161
|
-
*/
|
|
162
|
-
requests: DSRRequest[];
|
|
163
|
-
/**
|
|
164
|
-
* Callback function called when a request is selected
|
|
165
|
-
*/
|
|
166
|
-
onSelectRequest?: (requestId: string) => void;
|
|
167
|
-
/**
|
|
168
|
-
* Callback function called when a request status is updated
|
|
169
|
-
*/
|
|
170
|
-
onUpdateStatus?: (requestId: string, status: DSRStatus) => void;
|
|
171
|
-
/**
|
|
172
|
-
* Callback function called when a request is assigned
|
|
173
|
-
*/
|
|
174
|
-
onAssignRequest?: (requestId: string, assignee: string) => void;
|
|
175
|
-
/**
|
|
176
|
-
* Title displayed on the dashboard
|
|
177
|
-
* @default "Data Subject Request Dashboard"
|
|
178
|
-
*/
|
|
179
|
-
title?: string;
|
|
180
|
-
/**
|
|
181
|
-
* Description text displayed on the dashboard
|
|
182
|
-
* @default "Track and manage data subject requests in compliance with NDPA Part IV requirements."
|
|
183
|
-
*/
|
|
184
|
-
description?: string;
|
|
185
|
-
/**
|
|
186
|
-
* Custom CSS class for the dashboard
|
|
187
|
-
*/
|
|
188
|
-
className?: string;
|
|
189
|
-
/**
|
|
190
|
-
* Custom CSS class for the buttons
|
|
191
|
-
*/
|
|
192
|
-
buttonClassName?: string;
|
|
193
|
-
/**
|
|
194
|
-
* Whether to show the request details
|
|
195
|
-
* @default true
|
|
196
|
-
*/
|
|
197
|
-
showRequestDetails?: boolean;
|
|
198
|
-
/**
|
|
199
|
-
* Whether to show the request timeline
|
|
200
|
-
* @default true
|
|
201
|
-
*/
|
|
202
|
-
showRequestTimeline?: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* Whether to show the deadline alerts
|
|
205
|
-
* @default true
|
|
206
|
-
*/
|
|
207
|
-
showDeadlineAlerts?: boolean;
|
|
208
|
-
/**
|
|
209
|
-
* List of possible assignees
|
|
210
|
-
*/
|
|
211
|
-
assignees?: string[];
|
|
212
|
-
/**
|
|
213
|
-
* Object of CSS class overrides keyed by semantic section name.
|
|
214
|
-
*/
|
|
215
|
-
classNames?: DSRDashboardClassNames;
|
|
216
|
-
/**
|
|
217
|
-
* When true, all default Tailwind classes are removed so consumers
|
|
218
|
-
* can style from scratch using classNames.
|
|
219
|
-
*/
|
|
220
|
-
unstyled?: boolean;
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* Data Subject Request dashboard component. Supports compliance with NDPA Part IV,
|
|
224
|
-
* providing tools to track, manage, and respond to data subject requests within required timeframes.
|
|
225
|
-
*/
|
|
226
|
-
declare const DSRDashboard: React.FC<DSRDashboardProps>;
|
|
227
|
-
|
|
228
|
-
interface DSRTrackerClassNames {
|
|
229
|
-
root?: string;
|
|
230
|
-
header?: string;
|
|
231
|
-
title?: string;
|
|
232
|
-
stats?: string;
|
|
233
|
-
statCard?: string;
|
|
234
|
-
table?: string;
|
|
235
|
-
tableHeader?: string;
|
|
236
|
-
tableRow?: string;
|
|
237
|
-
statusBadge?: string;
|
|
238
|
-
}
|
|
239
|
-
interface DSRTrackerProps {
|
|
240
|
-
/**
|
|
241
|
-
* List of DSR requests to track
|
|
242
|
-
*/
|
|
243
|
-
requests: DSRRequest[];
|
|
244
|
-
/**
|
|
245
|
-
* Callback function called when a request is selected
|
|
246
|
-
*/
|
|
247
|
-
onSelectRequest?: (requestId: string) => void;
|
|
248
|
-
/**
|
|
249
|
-
* Title displayed on the tracker
|
|
250
|
-
* @default "DSR Request Tracker"
|
|
251
|
-
*/
|
|
252
|
-
title?: string;
|
|
253
|
-
/**
|
|
254
|
-
* Description text displayed on the tracker
|
|
255
|
-
* @default "Track the status and progress of data subject requests as required by NDPA Part IV."
|
|
256
|
-
*/
|
|
257
|
-
description?: string;
|
|
258
|
-
/**
|
|
259
|
-
* Custom CSS class for the tracker
|
|
260
|
-
*/
|
|
261
|
-
className?: string;
|
|
262
|
-
/**
|
|
263
|
-
* Custom CSS class for the buttons
|
|
264
|
-
*/
|
|
265
|
-
buttonClassName?: string;
|
|
266
|
-
/**
|
|
267
|
-
* Whether to show the summary statistics
|
|
268
|
-
* @default true
|
|
269
|
-
*/
|
|
270
|
-
showSummaryStats?: boolean;
|
|
271
|
-
/**
|
|
272
|
-
* Whether to show the request type breakdown
|
|
273
|
-
* @default true
|
|
274
|
-
*/
|
|
275
|
-
showTypeBreakdown?: boolean;
|
|
276
|
-
/**
|
|
277
|
-
* Whether to show the status breakdown
|
|
278
|
-
* @default true
|
|
279
|
-
*/
|
|
280
|
-
showStatusBreakdown?: boolean;
|
|
281
|
-
/**
|
|
282
|
-
* Whether to show the timeline chart
|
|
283
|
-
* @default true
|
|
284
|
-
*/
|
|
285
|
-
showTimelineChart?: boolean;
|
|
286
|
-
/**
|
|
287
|
-
* Whether to show the overdue requests
|
|
288
|
-
* @default true
|
|
289
|
-
*/
|
|
290
|
-
showOverdueRequests?: boolean;
|
|
291
|
-
/**
|
|
292
|
-
* Object of CSS class overrides keyed by semantic section name.
|
|
293
|
-
*/
|
|
294
|
-
classNames?: DSRTrackerClassNames;
|
|
295
|
-
/**
|
|
296
|
-
* When true, all default Tailwind classes are removed so consumers
|
|
297
|
-
* can style from scratch using classNames.
|
|
298
|
-
*/
|
|
299
|
-
unstyled?: boolean;
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* DSR tracking and analytics component. Supports compliance with NDPA Part IV,
|
|
303
|
-
* providing summary statistics, deadline tracking, and compliance metrics for data subject requests.
|
|
304
|
-
*/
|
|
305
|
-
declare const DSRTracker: React.FC<DSRTrackerProps>;
|
|
306
|
-
|
|
307
|
-
export { DSRDashboard as D, type DSRDashboardClassNames as a, type DSRFormSubmission as b, DSRRequestForm as c, type DSRRequestFormClassNames as d, DSRTracker as e, type DSRTrackerClassNames as f };
|