@tantainnovative/ndpr-toolkit 2.4.1 → 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 (182) hide show
  1. package/README.md +226 -246
  2. package/dist/BreachReportForm-DpRrBoxU.d.ts +158 -0
  3. package/dist/BreachReportForm-yJ2Zl6gz.d.mts +158 -0
  4. package/dist/ConsentBanner-CDRT0o2k.d.mts +146 -0
  5. package/dist/ConsentBanner-Vxyt8SCX.d.ts +146 -0
  6. package/dist/{cross-border-entry-BrWVPly6.d.ts → CrossBorderTransferManager-D5Lc0e46.d.ts} +4 -5
  7. package/dist/{cross-border-entry-cCTvpwnT.d.mts → CrossBorderTransferManager-DkZhv9vD.d.mts} +4 -5
  8. package/dist/DPIAQuestionnaire-BkejviPj.d.mts +123 -0
  9. package/dist/DPIAQuestionnaire-DdSqXG3x.d.ts +123 -0
  10. package/dist/DSRRequestForm-BY8PogCU.d.mts +146 -0
  11. package/dist/DSRRequestForm-CHUg9cZh.d.ts +146 -0
  12. package/dist/DSRTracker-C6u_jAaK.d.mts +163 -0
  13. package/dist/DSRTracker-Dr_aT0pg.d.ts +163 -0
  14. package/dist/{lawful-basis-entry-CxZrofwG.d.mts → LawfulBasisTracker-CBqOxX1D.d.mts} +3 -5
  15. package/dist/{lawful-basis-entry-15qjKcNO.d.ts → LawfulBasisTracker-Cg30NbDA.d.ts} +3 -5
  16. package/dist/NDPRDashboard-CLJpEg0X.d.mts +44 -0
  17. package/dist/NDPRDashboard-DDWNd2Ah.d.ts +44 -0
  18. package/dist/{policy-E0fXZkda.d.mts → PolicyExporter-BIqSVjfC.d.mts} +4 -98
  19. package/dist/{policy-D2_jh5-T.d.ts → PolicyExporter-BNWaPBGU.d.ts} +4 -98
  20. package/dist/PolicyGenerator-BvcWPbxp.d.mts +96 -0
  21. package/dist/PolicyGenerator-BzRwtlgn.d.ts +96 -0
  22. package/dist/{ropa-entry-B0D7X1GV.d.ts → ROPAManager-BS4eB8Hw.d.mts} +4 -5
  23. package/dist/{ropa-entry-DiOThOc2.d.mts → ROPAManager-qxTrXLkD.d.ts} +4 -5
  24. package/dist/RegulatoryReportGenerator-BUYgzTTT.d.ts +282 -0
  25. package/dist/RegulatoryReportGenerator-DwcHcEFp.d.mts +282 -0
  26. package/dist/StepIndicator-D-nwRTyo.d.mts +171 -0
  27. package/dist/StepIndicator-D9ZATz_O.d.ts +171 -0
  28. package/dist/adapters.d.mts +25 -0
  29. package/dist/adapters.d.ts +25 -0
  30. package/dist/adapters.js +2 -0
  31. package/dist/adapters.mjs +2 -0
  32. package/dist/breach.d.mts +36 -431
  33. package/dist/breach.d.ts +36 -431
  34. package/dist/breach.js +1 -1
  35. package/dist/breach.mjs +1 -1
  36. package/dist/chunk-27NYSWUG.mjs +2 -0
  37. package/dist/chunk-2ORDHJRD.js +2 -0
  38. package/dist/chunk-2W7ARAW2.js +2 -0
  39. package/dist/chunk-3F34NACG.js +2 -0
  40. package/dist/chunk-3RGJV3VF.js +7 -0
  41. package/dist/chunk-3UWT64FI.mjs +2 -0
  42. package/dist/chunk-3V23O4ZJ.js +2 -0
  43. package/dist/chunk-3XAUN5IM.mjs +3 -0
  44. package/dist/chunk-5VMHKNJY.js +2 -0
  45. package/dist/chunk-6D3ZUGBB.mjs +2 -0
  46. package/dist/chunk-6E54NSAO.mjs +2 -0
  47. package/dist/chunk-7F5F5YWI.mjs +2 -0
  48. package/dist/chunk-7FIUX3ZM.js +89 -0
  49. package/dist/chunk-FR7ZYZXB.js +2 -0
  50. package/dist/chunk-FY5G6DGZ.js +7 -0
  51. package/dist/chunk-G26I6MP5.mjs +2 -0
  52. package/dist/chunk-GPJVTGHR.mjs +2 -0
  53. package/dist/chunk-GVANK6PL.js +3 -0
  54. package/dist/chunk-HNZK7LY3.mjs +2 -0
  55. package/dist/chunk-IKEPXHCZ.js +2 -0
  56. package/dist/chunk-IQQW52EF.js +2 -0
  57. package/dist/chunk-ISSGO2YT.mjs +72 -0
  58. package/dist/chunk-J6IKAGUP.mjs +89 -0
  59. package/dist/chunk-KHRBU5K7.js +2 -0
  60. package/dist/chunk-KNE4NXCY.mjs +7 -0
  61. package/dist/chunk-LFNA6WYQ.mjs +2 -0
  62. package/dist/chunk-NPI5T6NH.mjs +7 -0
  63. package/dist/chunk-NPLXE43Q.mjs +2 -0
  64. package/dist/chunk-P7BSBCB3.js +2 -0
  65. package/dist/chunk-PEH5GIMN.js +2 -0
  66. package/dist/chunk-RSUDIFZV.mjs +2 -0
  67. package/dist/chunk-SBNAMPAP.mjs +2 -0
  68. package/dist/chunk-SVCRYM4I.mjs +2 -0
  69. package/dist/chunk-U6VWHC46.js +72 -0
  70. package/dist/chunk-UK656RCG.js +2 -0
  71. package/dist/chunk-UNKXYVXY.js +2 -0
  72. package/dist/chunk-UOSEH6DC.js +2 -0
  73. package/dist/chunk-V37BM2LF.js +2 -0
  74. package/dist/chunk-V3MXWGXU.mjs +2 -0
  75. package/dist/chunk-VDZKGCAF.js +2 -0
  76. package/dist/chunk-WLSW4Z4W.mjs +2 -0
  77. package/dist/chunk-XSK4BSZJ.mjs +2 -0
  78. package/dist/chunk-YJCGEOLO.mjs +2 -0
  79. package/dist/chunk-ZCZ5RRZO.js +2 -0
  80. package/dist/compliance-score-racQe_E_.d.mts +115 -0
  81. package/dist/compliance-score-racQe_E_.d.ts +115 -0
  82. package/dist/consent.d.mts +67 -295
  83. package/dist/consent.d.ts +67 -295
  84. package/dist/consent.js +1 -1
  85. package/dist/consent.mjs +1 -1
  86. package/dist/core.d.mts +8 -5
  87. package/dist/core.d.ts +8 -5
  88. package/dist/core.js +1 -1
  89. package/dist/core.mjs +1 -1
  90. package/dist/cross-border-BBi9rZyO.d.mts +54 -0
  91. package/dist/cross-border-Dy-U9Hu6.d.ts +54 -0
  92. package/dist/{cross-border-BMcqLvjC.d.mts → cross-border-UyT00llA.d.mts} +1 -52
  93. package/dist/{cross-border-BMcqLvjC.d.ts → cross-border-UyT00llA.d.ts} +1 -52
  94. package/dist/cross-border.d.mts +32 -4
  95. package/dist/cross-border.d.ts +32 -4
  96. package/dist/cross-border.js +1 -1
  97. package/dist/cross-border.mjs +1 -1
  98. package/dist/dpia.d.mts +28 -284
  99. package/dist/dpia.d.ts +28 -284
  100. package/dist/dpia.js +1 -1
  101. package/dist/dpia.mjs +1 -1
  102. package/dist/dsr.d.mts +29 -300
  103. package/dist/dsr.d.ts +29 -300
  104. package/dist/dsr.js +1 -1
  105. package/dist/dsr.mjs +1 -1
  106. package/dist/hooks.d.mts +21 -10
  107. package/dist/hooks.d.ts +21 -10
  108. package/dist/hooks.js +1 -1
  109. package/dist/hooks.mjs +1 -1
  110. package/dist/index.d.mts +28 -18
  111. package/dist/index.d.ts +28 -18
  112. package/dist/index.js +1 -1
  113. package/dist/index.mjs +1 -1
  114. package/dist/lawful-basis.d.mts +31 -4
  115. package/dist/lawful-basis.d.ts +31 -4
  116. package/dist/lawful-basis.js +1 -1
  117. package/dist/lawful-basis.mjs +1 -1
  118. package/dist/policy.d.mts +36 -4
  119. package/dist/policy.d.ts +36 -4
  120. package/dist/policy.js +1 -1
  121. package/dist/policy.mjs +1 -1
  122. package/dist/presets.d.mts +124 -0
  123. package/dist/presets.d.ts +124 -0
  124. package/dist/presets.js +2 -0
  125. package/dist/presets.mjs +2 -0
  126. package/dist/{ropa-Li6UlL5H.d.ts → ropa-BDTM06tr.d.ts} +1 -49
  127. package/dist/{ropa-DP7pPPql.d.mts → ropa-CFHuT7jE.d.mts} +1 -49
  128. package/dist/ropa-CyynscU6.d.ts +51 -0
  129. package/dist/ropa-NIgxd8uP.d.mts +51 -0
  130. package/dist/ropa.d.mts +30 -4
  131. package/dist/ropa.d.ts +30 -4
  132. package/dist/ropa.js +1 -1
  133. package/dist/ropa.mjs +1 -1
  134. package/dist/styling-B7CBzYG7.d.ts +165 -0
  135. package/dist/styling-uJLsBbER.d.mts +165 -0
  136. package/dist/types-DK2CoKOC.d.mts +10 -0
  137. package/dist/types-DK2CoKOC.d.ts +10 -0
  138. package/dist/unstyled.d.mts +4 -4
  139. package/dist/unstyled.d.ts +4 -4
  140. package/dist/{useBreach-BBSoIcZO.d.mts → useBreach-CPr86Yan.d.mts} +18 -2
  141. package/dist/{useBreach-lFLbSyAN.d.ts → useBreach-DkVXvtJK.d.ts} +18 -2
  142. package/dist/{useConsent-D0pAfTlb.d.ts → useConsent-DCNkIJHR.d.mts} +12 -2
  143. package/dist/{useConsent-DOt2Njst.d.mts → useConsent-dOcELSfX.d.ts} +12 -2
  144. package/dist/{useCrossBorderTransfer-DmtACeqW.d.ts → useCrossBorderTransfer-BGNZt2lk.d.mts} +15 -3
  145. package/dist/{useCrossBorderTransfer-BZVFCXfr.d.mts → useCrossBorderTransfer-COqjgjsu.d.ts} +15 -3
  146. package/dist/{useDPIA-DBsg2yZx.d.ts → useDPIA-Dl16Te3r.d.ts} +13 -2
  147. package/dist/{useDPIA-Da7-Q_yW.d.mts → useDPIA-DzWye8JB.d.mts} +13 -2
  148. package/dist/{useDSR-YYZ6FYFs.d.mts → useDSR-C1LksCfP.d.mts} +13 -2
  149. package/dist/{useDSR-CYI7WCXr.d.ts → useDSR-DZel52O1.d.ts} +13 -2
  150. package/dist/{useDefaultPrivacyPolicy-CUluF_ic.d.mts → useDefaultPrivacyPolicy-BsYttRey.d.mts} +13 -2
  151. package/dist/{useDefaultPrivacyPolicy-B7kTHbZh.d.ts → useDefaultPrivacyPolicy-C-mG-A5S.d.ts} +13 -2
  152. package/dist/{useLawfulBasis-CpWuHtyh.d.mts → useLawfulBasis-CKJ-kw84.d.mts} +13 -2
  153. package/dist/{useLawfulBasis-CCWF9waR.d.ts → useLawfulBasis-DFTmu1ca.d.ts} +13 -2
  154. package/dist/{useROPA-BhJ3kvHp.d.ts → useROPA-BSSU1rfx.d.ts} +14 -2
  155. package/dist/{useROPA-DLFdjkxP.d.mts → useROPA-C2hjaBTz.d.mts} +14 -2
  156. package/package.json +18 -2
  157. package/dist/chunk-2XFAV267.mjs +0 -2
  158. package/dist/chunk-32UIWTGD.js +0 -72
  159. package/dist/chunk-3YCV2BA6.js +0 -2
  160. package/dist/chunk-4A354HL3.js +0 -2
  161. package/dist/chunk-5ZBO2UPH.js +0 -2
  162. package/dist/chunk-6GGGTRDZ.mjs +0 -2
  163. package/dist/chunk-BGHQTZAC.js +0 -94
  164. package/dist/chunk-BZTTQS4A.mjs +0 -7
  165. package/dist/chunk-EKVTLHBQ.js +0 -2
  166. package/dist/chunk-GMLNWS2N.mjs +0 -2
  167. package/dist/chunk-IBEKLDBY.mjs +0 -2
  168. package/dist/chunk-K3GMTMQ6.js +0 -2
  169. package/dist/chunk-L52PDW6O.mjs +0 -2
  170. package/dist/chunk-LI6WJ3LZ.js +0 -2
  171. package/dist/chunk-LXRXDTPI.js +0 -2
  172. package/dist/chunk-NW4A3JW6.mjs +0 -2
  173. package/dist/chunk-OITITR6K.mjs +0 -2
  174. package/dist/chunk-PDJGTQMY.mjs +0 -2
  175. package/dist/chunk-SKJCQKFL.mjs +0 -94
  176. package/dist/chunk-T44JQT2O.mjs +0 -2
  177. package/dist/chunk-TCJCE6WN.js +0 -2
  178. package/dist/chunk-VMJBW3EF.mjs +0 -2
  179. package/dist/chunk-WW3X3ELF.js +0 -2
  180. package/dist/chunk-XMYUYQH7.mjs +0 -72
  181. package/dist/chunk-ZNTMZ6NM.js +0 -7
  182. package/dist/chunk-ZU73VG3X.js +0 -2
package/dist/breach.d.mts CHANGED
@@ -1,439 +1,44 @@
1
- import React from 'react';
1
+ import { c as BreachReportFormProps } from './BreachReportForm-yJ2Zl6gz.mjs';
2
+ export { B as BreachFormSubmission, a as BreachReportForm, b as BreachReportFormClassNames } from './BreachReportForm-yJ2Zl6gz.mjs';
3
+ import { e as BreachRiskAssessmentProps, f as BreachNotificationManagerProps, g as RegulatoryReportGeneratorProps } from './RegulatoryReportGenerator-DwcHcEFp.mjs';
4
+ export { B as BreachNotificationManager, a as BreachNotificationManagerClassNames, b as BreachRiskAssessment, c as BreachRiskAssessmentClassNames, R as RegulatoryReportGenerator, d as RegulatoryReportGeneratorClassNames } from './RegulatoryReportGenerator-DwcHcEFp.mjs';
5
+ import { U as UseBreachReturn } from './useBreach-CPr86Yan.mjs';
6
+ export { u as useBreach } from './useBreach-CPr86Yan.mjs';
7
+ export { c as calculateBreachSeverity } from './breach-B_-6lDqS.mjs';
2
8
  import { B as BreachCategory, a as BreachReport, b as RiskAssessment, R as RegulatoryNotification } from './breach-Eu9byel8.mjs';
3
9
  export { N as NotificationRequirement } from './breach-Eu9byel8.mjs';
4
- export { u as useBreach } from './useBreach-BBSoIcZO.mjs';
5
- export { c as calculateBreachSeverity } from './breach-B_-6lDqS.mjs';
10
+ import * as React from 'react';
11
+ import React__default from 'react';
12
+ import { S as StorageAdapter } from './types-DK2CoKOC.mjs';
6
13
 
7
- /**
8
- * Represents the data submitted by the breach report form.
9
- */
10
- interface BreachFormSubmission {
11
- /** Title/summary of the breach */
12
- title: string;
13
- /** Detailed description of the breach */
14
- description: string;
15
- /** Breach category identifier */
16
- category: string;
17
- /** Timestamp (ms) when the breach was discovered */
18
- discoveredAt: number;
19
- /** Timestamp (ms) when the breach occurred (if known) */
20
- occurredAt?: number;
21
- /** Timestamp (ms) when the form was submitted */
22
- reportedAt: number;
23
- /** Person reporting the breach */
24
- reporter: {
25
- name: string;
26
- email: string;
27
- department: string;
28
- phone?: string;
29
- };
30
- /** Systems or applications affected by the breach */
31
- affectedSystems: string[];
32
- /** Types of data involved in the breach */
33
- dataTypes: string[];
34
- /** Estimated number of affected data subjects */
35
- estimatedAffectedSubjects?: number;
36
- /** Current status of the breach */
37
- status: 'ongoing' | 'contained' | 'resolved';
38
- /** Initial actions taken to address the breach */
39
- initialActions?: string;
40
- /** File attachments included with the report */
41
- attachments: Array<{
42
- name: string;
43
- type: string;
44
- size: number;
45
- file: File;
46
- }>;
47
- }
48
- interface BreachReportFormClassNames {
49
- root?: string;
50
- title?: string;
51
- form?: string;
52
- fieldGroup?: string;
53
- label?: string;
54
- input?: string;
55
- select?: string;
56
- textarea?: string;
57
- submitButton?: string;
58
- /** Alias for submitButton */
59
- primaryButton?: string;
60
- notice?: string;
61
- /** Custom class applied when isSubmitting is true (e.g. a loading overlay) */
62
- loadingOverlay?: string;
63
- }
64
- interface BreachReportFormProps {
65
- /**
66
- * Available breach categories
67
- */
14
+ interface BreachProviderProps {
68
15
  categories: BreachCategory[];
69
- /**
70
- * Callback function called when form is submitted
71
- */
72
- onSubmit: (data: BreachFormSubmission) => void;
73
- /**
74
- * Callback function called when form validation fails
75
- */
76
- onValidationError?: (errors: Record<string, string>) => void;
77
- /**
78
- * Title displayed on the form
79
- * @default "Report a Data Breach"
80
- */
81
- title?: string;
82
- /**
83
- * Description text displayed on the form
84
- * @default "Use this form to report a suspected or confirmed data breach in accordance with NDPA Section 40. All fields marked with * are required."
85
- */
86
- formDescription?: string;
87
- /**
88
- * Text for the submit button
89
- * @default "Submit Report"
90
- */
91
- submitButtonText?: string;
92
- /**
93
- * Custom CSS class for the form
94
- */
95
- className?: string;
96
- /**
97
- * Custom CSS class for the submit button
98
- */
99
- buttonClassName?: string;
100
- /**
101
- * Override class names for individual elements
102
- */
103
- classNames?: BreachReportFormClassNames;
104
- /**
105
- * Remove all default styles, only applying classNames overrides
106
- */
107
- unstyled?: boolean;
108
- /**
109
- * Whether the form is currently submitting.
110
- * When true, the submit button is disabled and shows "Submitting..." text.
111
- */
112
- isSubmitting?: boolean;
113
- /**
114
- * Whether to show a confirmation message after submission
115
- * @default true
116
- */
117
- showConfirmation?: boolean;
118
- /**
119
- * Confirmation message to display after submission
120
- * @default "Your breach report has been submitted successfully. The data protection team has been notified."
121
- */
122
- confirmationMessage?: string;
123
- /**
124
- * Whether to allow file attachments
125
- * @default true
126
- */
127
- allowAttachments?: boolean;
128
- /**
129
- * Maximum number of attachments allowed
130
- * @default 5
131
- */
132
- maxAttachments?: number;
133
- /**
134
- * Maximum file size for attachments (in bytes)
135
- * @default 5242880 (5MB)
136
- */
137
- maxFileSize?: number;
138
- /**
139
- * Allowed file types for attachments
140
- * @default ['.pdf', '.jpg', '.jpeg', '.png', '.doc', '.docx', '.xls', '.xlsx', '.txt']
141
- */
142
- allowedFileTypes?: string[];
143
- /**
144
- * Default values to pre-fill form fields.
145
- * Useful for editing existing breach reports or pre-populating known data.
146
- */
147
- defaultValues?: Partial<BreachFormSubmission>;
148
- /**
149
- * Callback fired when the form is reset via the Reset button.
150
- * To fully remount the component (clearing all internal state),
151
- * change the `key` prop from the parent.
152
- */
153
- onReset?: () => void;
154
- }
155
- /**
156
- * Breach report form component. Implements NDPA Section 40 breach notification requirements,
157
- * enabling organizations to document and report data breaches within the mandated 72-hour window.
158
- */
159
- declare const BreachReportForm: React.FC<BreachReportFormProps>;
160
-
161
- interface BreachRiskAssessmentClassNames {
162
- root?: string;
163
- header?: string;
164
- title?: string;
165
- slider?: string;
166
- riskBadge?: string;
167
- riskScore?: string;
168
- notificationStatus?: string;
169
- submitButton?: string;
170
- /** Alias for submitButton */
171
- primaryButton?: string;
172
- }
173
- interface BreachRiskAssessmentProps {
174
- /**
175
- * The breach data to assess
176
- */
177
- breachData: BreachReport;
178
- /**
179
- * Initial assessment data (if editing an existing assessment)
180
- */
181
- initialAssessment?: Partial<RiskAssessment>;
182
- /**
183
- * Callback function called when assessment is completed
184
- */
185
- onComplete: (assessment: RiskAssessment) => void;
186
- /**
187
- * Title displayed on the assessment form
188
- * @default "Breach Risk Assessment"
189
- */
190
- title?: string;
191
- /**
192
- * Description text displayed on the assessment form
193
- * @default "Assess the risk level of this data breach to determine notification requirements under NDPA Section 40."
194
- */
195
- description?: string;
196
- /**
197
- * Text for the submit button
198
- * @default "Complete Assessment"
199
- */
200
- submitButtonText?: string;
201
- /**
202
- * Custom CSS class for the form
203
- */
204
- className?: string;
205
- /**
206
- * Custom CSS class for the submit button
207
- */
208
- buttonClassName?: string;
209
- /**
210
- * Override class names for individual elements
211
- */
212
- classNames?: BreachRiskAssessmentClassNames;
213
- /**
214
- * Remove all default styles, only applying classNames overrides
215
- */
216
- unstyled?: boolean;
217
- /**
218
- * Whether to show the breach summary
219
- * @default true
220
- */
221
- showBreachSummary?: boolean;
222
- /**
223
- * Whether to show notification requirements after assessment
224
- * @default true
225
- */
226
- showNotificationRequirements?: boolean;
227
- }
228
- /**
229
- * Breach risk assessment component. Implements NDPA Section 40 requirements for assessing
230
- * breach severity and determining whether NDPC notification is required within 72 hours.
231
- */
232
- declare const BreachRiskAssessment: React.FC<BreachRiskAssessmentProps>;
16
+ adapter?: StorageAdapter<{
17
+ reports: BreachReport[];
18
+ assessments: RiskAssessment[];
19
+ notifications: RegulatoryNotification[];
20
+ }>;
21
+ storageKey?: string;
22
+ useLocalStorage?: boolean;
23
+ initialReports?: BreachReport[];
24
+ onReport?: (report: BreachReport) => void;
25
+ onAssessment?: (assessment: RiskAssessment) => void;
26
+ onNotification?: (notification: RegulatoryNotification) => void;
27
+ children: React__default.ReactNode;
28
+ }
29
+ declare const BreachProvider: React__default.FC<BreachProviderProps>;
233
30
 
234
- interface BreachNotificationManagerClassNames {
235
- root?: string;
236
- header?: string;
237
- title?: string;
238
- breachList?: string;
239
- breachItem?: string;
240
- statusBadge?: string;
241
- timeline?: string;
242
- timelineStep?: string;
243
- detailPanel?: string;
244
- }
245
- interface BreachNotificationManagerProps {
246
- /**
247
- * List of breach reports to manage
248
- */
249
- breachReports: BreachReport[];
250
- /**
251
- * List of risk assessments
252
- */
253
- riskAssessments: RiskAssessment[];
254
- /**
255
- * List of regulatory notifications
256
- */
257
- regulatoryNotifications: RegulatoryNotification[];
258
- /**
259
- * Callback function called when a breach is selected
260
- */
261
- onSelectBreach?: (breachId: string) => void;
262
- /**
263
- * Callback function called when a risk assessment is requested
264
- */
265
- onRequestAssessment?: (breachId: string) => void;
266
- /**
267
- * Callback function called when a notification is requested
268
- */
269
- onRequestNotification?: (breachId: string) => void;
270
- /**
271
- * Title displayed on the manager
272
- * @default "Breach Notification Manager"
273
- */
274
- title?: string;
275
- /**
276
- * Description text displayed on the manager
277
- * @default "Manage data breach notifications and track compliance with NDPA Section 40 requirements."
278
- */
279
- description?: string;
280
- /**
281
- * Custom CSS class for the manager
282
- */
283
- className?: string;
284
- /**
285
- * Custom CSS class for the buttons
286
- */
287
- buttonClassName?: string;
288
- /**
289
- * Override class names for individual elements
290
- */
291
- classNames?: BreachNotificationManagerClassNames;
292
- /**
293
- * Remove all default styles, only applying classNames overrides
294
- */
295
- unstyled?: boolean;
296
- /**
297
- * Whether to show the breach details
298
- * @default true
299
- */
300
- showBreachDetails?: boolean;
301
- /**
302
- * Whether to show the notification timeline
303
- * @default true
304
- */
305
- showNotificationTimeline?: boolean;
306
- /**
307
- * Whether to show the deadline alerts
308
- * @default true
309
- */
310
- showDeadlineAlerts?: boolean;
311
- }
312
- /**
313
- * Breach notification management component. Implements NDPA Section 40 requirements for
314
- * managing breach notifications, tracking 72-hour NDPC reporting deadlines, and coordinating
315
- * data subject notifications.
316
- */
317
- declare const BreachNotificationManager: React.FC<BreachNotificationManagerProps>;
31
+ declare const Breach: {
32
+ Provider: React.FC<BreachProviderProps>;
33
+ ReportForm: React.FC<BreachReportFormProps>;
34
+ RiskAssessment: React.FC<BreachRiskAssessmentProps>;
35
+ NotificationManager: React.FC<BreachNotificationManagerProps>;
36
+ ReportGenerator: React.FC<RegulatoryReportGeneratorProps>;
37
+ };
318
38
 
319
- interface RegulatoryReportGeneratorClassNames {
320
- root?: string;
321
- header?: string;
322
- title?: string;
323
- reportPreview?: string;
324
- field?: string;
325
- fieldLabel?: string;
326
- fieldValue?: string;
327
- generateButton?: string;
328
- /** Alias for generateButton */
329
- primaryButton?: string;
330
- downloadButton?: string;
331
- /** Alias for downloadButton */
332
- secondaryButton?: string;
333
- }
334
- interface OrganizationInfo {
335
- /**
336
- * Name of the organization
337
- */
338
- name: string;
339
- /**
340
- * Registration number or business ID
341
- */
342
- registrationNumber?: string;
343
- /**
344
- * Physical address of the organization
345
- */
346
- address: string;
347
- /**
348
- * Website URL
349
- */
350
- website?: string;
351
- /**
352
- * Name of the Data Protection Officer
353
- */
354
- dpoName: string;
355
- /**
356
- * Email of the Data Protection Officer
357
- */
358
- dpoEmail: string;
359
- /**
360
- * Phone number of the Data Protection Officer
361
- */
362
- dpoPhone?: string;
363
- }
364
- interface RegulatoryReportGeneratorProps {
365
- /**
366
- * The breach data to include in the report
367
- */
368
- breachData: BreachReport;
369
- /**
370
- * The risk assessment data
371
- */
372
- assessmentData?: RiskAssessment;
373
- /**
374
- * Organization information to include in the report
375
- */
376
- organizationInfo: OrganizationInfo;
377
- /**
378
- * Callback function called when the report is generated
379
- */
380
- onGenerate: (report: RegulatoryNotification) => void;
381
- /**
382
- * Title displayed on the generator form
383
- * @default "Generate NDPC Notification Report"
384
- */
385
- title?: string;
386
- /**
387
- * Description text displayed on the generator form
388
- * @default "Generate a report for submission to the NDPC in compliance with NDPA Section 40 breach notification requirements."
389
- */
390
- description?: string;
391
- /**
392
- * Text for the generate button
393
- * @default "Generate Report"
394
- */
395
- generateButtonText?: string;
396
- /**
397
- * Custom CSS class for the form
398
- */
399
- className?: string;
400
- /**
401
- * Custom CSS class for the buttons
402
- */
403
- buttonClassName?: string;
404
- /**
405
- * Override class names for individual elements
406
- */
407
- classNames?: RegulatoryReportGeneratorClassNames;
408
- /**
409
- * Remove all default styles, only applying classNames overrides
410
- */
411
- unstyled?: boolean;
412
- /**
413
- * Whether to show a preview of the generated report
414
- * @default true
415
- */
416
- showPreview?: boolean;
417
- /**
418
- * Whether to allow editing the report content
419
- * @default true
420
- */
421
- allowEditing?: boolean;
422
- /**
423
- * Whether to allow downloading the report
424
- * @default true
425
- */
426
- allowDownload?: boolean;
427
- /**
428
- * Format for downloading the report
429
- * @default "pdf"
430
- */
431
- downloadFormat?: 'pdf' | 'docx' | 'html';
39
+ interface BreachContextValue extends UseBreachReturn {
40
+ categories: BreachCategory[];
432
41
  }
433
- /**
434
- * Regulatory report generator component. Implements NDPA Section 40 requirements for
435
- * generating formal breach notification reports for submission to the NDPC.
436
- */
437
- declare const RegulatoryReportGenerator: React.FC<RegulatoryReportGeneratorProps>;
42
+ declare function useBreachCompound(): BreachContextValue;
438
43
 
439
- export { BreachCategory, type BreachFormSubmission, BreachNotificationManager, type BreachNotificationManagerClassNames, BreachReport, BreachReportForm, type BreachReportFormClassNames, BreachRiskAssessment, type BreachRiskAssessmentClassNames, RegulatoryNotification, RegulatoryReportGenerator, type RegulatoryReportGeneratorClassNames, RiskAssessment };
44
+ export { Breach, BreachCategory, BreachProvider, type BreachProviderProps, BreachReport, RegulatoryNotification, RiskAssessment, StorageAdapter, useBreachCompound };