@tantainnovative/ndpr-toolkit 2.2.0 → 2.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 (120) hide show
  1. package/README.md +26 -11
  2. package/dist/breach-ouXoVTWs.d.ts +438 -0
  3. package/dist/breach-yRiyyc4n.d.mts +438 -0
  4. package/dist/breach.d.mts +3 -349
  5. package/dist/breach.d.ts +3 -349
  6. package/dist/breach.js +1 -1
  7. package/dist/breach.mjs +1 -1
  8. package/dist/chunk-2XFAV267.mjs +2 -0
  9. package/dist/chunk-32UIWTGD.js +72 -0
  10. package/dist/chunk-4JUDKBA2.mjs +7 -0
  11. package/dist/chunk-4VVARDN2.mjs +2 -0
  12. package/dist/chunk-5RSOLEEP.js +63 -0
  13. package/dist/chunk-AYKLAEOU.mjs +2 -0
  14. package/dist/chunk-BGHQTZAC.js +94 -0
  15. package/dist/chunk-BZTTQS4A.mjs +7 -0
  16. package/dist/chunk-CAB7O3GR.mjs +63 -0
  17. package/dist/chunk-CL53OI3I.js +7 -0
  18. package/dist/chunk-E64TU6IU.js +2 -0
  19. package/dist/chunk-EKVTLHBQ.js +2 -0
  20. package/dist/chunk-ELKEZEV5.mjs +2 -0
  21. package/dist/chunk-EPF7J2FK.js +3 -0
  22. package/dist/chunk-ER7X6E36.js +2 -0
  23. package/dist/chunk-FXTZDKDC.mjs +3 -0
  24. package/dist/chunk-IBEKLDBY.mjs +2 -0
  25. package/dist/chunk-ILCNDOBU.js +2 -0
  26. package/dist/chunk-K3GMTMQ6.js +2 -0
  27. package/dist/chunk-MJGOLP5M.js +2 -0
  28. package/dist/chunk-NW4A3JW6.mjs +2 -0
  29. package/dist/chunk-P3PULLYP.mjs +2 -0
  30. package/dist/chunk-SKJCQKFL.mjs +94 -0
  31. package/dist/chunk-TCJCE6WN.js +2 -0
  32. package/dist/chunk-UZ5EZOA7.js +2 -0
  33. package/dist/chunk-WSHSHIIM.mjs +2 -0
  34. package/dist/chunk-XMYUYQH7.mjs +72 -0
  35. package/dist/chunk-ZNTMZ6NM.js +7 -0
  36. package/dist/consent-audit-BdByjYlM.d.mts +65 -0
  37. package/dist/consent-audit-DhbfMR0n.d.ts +65 -0
  38. package/dist/consent.d.mts +55 -8
  39. package/dist/consent.d.ts +55 -8
  40. package/dist/consent.js +1 -1
  41. package/dist/consent.mjs +1 -1
  42. package/dist/core.d.mts +52 -2
  43. package/dist/core.d.ts +52 -2
  44. package/dist/core.js +1 -1
  45. package/dist/core.mjs +1 -1
  46. package/dist/{cross-border-entry-CtX8_o-_.d.ts → cross-border-entry-BrWVPly6.d.ts} +7 -0
  47. package/dist/{cross-border-entry-BfF7jw5o.d.mts → cross-border-entry-cCTvpwnT.d.mts} +7 -0
  48. package/dist/cross-border.d.mts +1 -1
  49. package/dist/cross-border.d.ts +1 -1
  50. package/dist/cross-border.js +1 -1
  51. package/dist/cross-border.mjs +1 -1
  52. package/dist/dpia.d.mts +14 -0
  53. package/dist/dpia.d.ts +14 -0
  54. package/dist/dpia.js +1 -1
  55. package/dist/dpia.mjs +1 -1
  56. package/dist/dsr-190YpijW.d.ts +307 -0
  57. package/dist/dsr-BTT-Xd7H.d.mts +307 -0
  58. package/dist/dsr.d.mts +3 -251
  59. package/dist/dsr.d.ts +3 -251
  60. package/dist/dsr.js +1 -1
  61. package/dist/dsr.mjs +1 -1
  62. package/dist/hooks.d.mts +1 -1
  63. package/dist/hooks.d.ts +1 -1
  64. package/dist/hooks.js +1 -1
  65. package/dist/hooks.mjs +1 -1
  66. package/dist/index.d.mts +11 -10
  67. package/dist/index.d.ts +11 -10
  68. package/dist/index.js +1 -1
  69. package/dist/index.mjs +1 -1
  70. package/dist/{lawful-basis-entry-BeSX7u0U.d.ts → lawful-basis-entry-15qjKcNO.d.ts} +6 -0
  71. package/dist/{lawful-basis-entry-CMPPM9Rh.d.mts → lawful-basis-entry-CxZrofwG.d.mts} +6 -0
  72. package/dist/lawful-basis.d.mts +1 -1
  73. package/dist/lawful-basis.d.ts +1 -1
  74. package/dist/lawful-basis.js +1 -1
  75. package/dist/lawful-basis.mjs +1 -1
  76. package/dist/{policy-dmsRlqgM.d.ts → policy-D2_jh5-T.d.ts} +15 -5
  77. package/dist/{policy-kZN23hrR.d.mts → policy-E0fXZkda.d.mts} +15 -5
  78. package/dist/policy-templates-CIKcV0i1.d.ts +36 -0
  79. package/dist/policy-templates-DMsPwOSZ.d.mts +36 -0
  80. package/dist/policy.d.mts +3 -3
  81. package/dist/policy.d.ts +3 -3
  82. package/dist/policy.js +1 -1
  83. package/dist/policy.mjs +1 -1
  84. package/dist/{ropa-entry-DIEQ9WFs.d.ts → ropa-entry-B0D7X1GV.d.ts} +10 -1
  85. package/dist/{ropa-entry-CZJ91ymk.d.mts → ropa-entry-DiOThOc2.d.mts} +10 -1
  86. package/dist/ropa.d.mts +1 -1
  87. package/dist/ropa.d.ts +1 -1
  88. package/dist/ropa.js +1 -1
  89. package/dist/ropa.mjs +1 -1
  90. package/dist/styles.css +40 -28
  91. package/dist/styles.d.ts +1 -0
  92. package/dist/{usePrivacyPolicy-CfySfBLS.d.ts → useDefaultPrivacyPolicy-B7kTHbZh.d.ts} +39 -2
  93. package/dist/{usePrivacyPolicy-Dit2sFuV.d.mts → useDefaultPrivacyPolicy-CUluF_ic.d.mts} +39 -2
  94. package/package.json +9 -7
  95. package/dist/chunk-4RGDNVR5.mjs +0 -72
  96. package/dist/chunk-6LM3RAFO.js +0 -7
  97. package/dist/chunk-7DNQSOER.js +0 -2
  98. package/dist/chunk-A7DRHSDQ.mjs +0 -2
  99. package/dist/chunk-DB3JH4DS.mjs +0 -2
  100. package/dist/chunk-FC6EG34C.js +0 -72
  101. package/dist/chunk-FDB6KZUD.mjs +0 -2
  102. package/dist/chunk-FZUCKGIM.mjs +0 -7
  103. package/dist/chunk-G3JNFZPT.js +0 -2
  104. package/dist/chunk-HXCRMA4J.mjs +0 -2
  105. package/dist/chunk-IC7VOOKJ.mjs +0 -2
  106. package/dist/chunk-ICUZG6CD.mjs +0 -2
  107. package/dist/chunk-IW5PHOG7.mjs +0 -7
  108. package/dist/chunk-IWUUVRLJ.js +0 -2
  109. package/dist/chunk-JKEAPTYP.js +0 -7
  110. package/dist/chunk-N52S64SU.js +0 -2
  111. package/dist/chunk-PM7CMTMB.js +0 -4
  112. package/dist/chunk-SKAMVXBI.mjs +0 -94
  113. package/dist/chunk-UYP64PV7.mjs +0 -4
  114. package/dist/chunk-VURIXCGY.js +0 -2
  115. package/dist/chunk-VXRY3V42.js +0 -94
  116. package/dist/chunk-YBPHGEL2.js +0 -2
  117. package/dist/consent-DCc5zjXI.d.mts +0 -24
  118. package/dist/consent-DLWb5ota.d.ts +0 -24
  119. package/dist/privacy-9FcJceMr.d.mts +0 -15
  120. package/dist/privacy-BXz7O2ej.d.ts +0 -15
package/dist/breach.d.mts CHANGED
@@ -1,351 +1,5 @@
1
- import React from 'react';
2
- import { B as BreachCategory, a as BreachReport, b as RiskAssessment, R as RegulatoryNotification } from './breach-Eu9byel8.mjs';
3
- export { N as NotificationRequirement } from './breach-Eu9byel8.mjs';
1
+ export { a as BreachNotificationManager, b as BreachNotificationManagerClassNames, c as BreachReportForm, d as BreachReportFormClassNames, e as BreachRiskAssessment, f as BreachRiskAssessmentClassNames, R as RegulatoryReportGenerator, g as RegulatoryReportGeneratorClassNames } from './breach-yRiyyc4n.mjs';
4
2
  export { u as useBreach } from './useBreach-BBSoIcZO.mjs';
5
3
  export { c as calculateBreachSeverity } from './breach-B_-6lDqS.mjs';
6
-
7
- interface BreachReportFormClassNames {
8
- root?: string;
9
- title?: string;
10
- form?: string;
11
- fieldGroup?: string;
12
- label?: string;
13
- input?: string;
14
- select?: string;
15
- textarea?: string;
16
- submitButton?: string;
17
- notice?: string;
18
- }
19
- interface BreachReportFormProps {
20
- /**
21
- * Available breach categories
22
- */
23
- categories: BreachCategory[];
24
- /**
25
- * Callback function called when form is submitted
26
- */
27
- onSubmit: (formData: any) => void;
28
- /**
29
- * Title displayed on the form
30
- * @default "Report a Data Breach"
31
- */
32
- title?: string;
33
- /**
34
- * Description text displayed on the form
35
- * @default "Use this form to report a suspected or confirmed data breach. All fields marked with * are required."
36
- */
37
- formDescription?: string;
38
- /**
39
- * Text for the submit button
40
- * @default "Submit Report"
41
- */
42
- submitButtonText?: string;
43
- /**
44
- * Custom CSS class for the form
45
- */
46
- className?: string;
47
- /**
48
- * Custom CSS class for the submit button
49
- */
50
- buttonClassName?: string;
51
- /**
52
- * Override class names for individual elements
53
- */
54
- classNames?: BreachReportFormClassNames;
55
- /**
56
- * Remove all default styles, only applying classNames overrides
57
- */
58
- unstyled?: boolean;
59
- /**
60
- * Whether to show a confirmation message after submission
61
- * @default true
62
- */
63
- showConfirmation?: boolean;
64
- /**
65
- * Confirmation message to display after submission
66
- * @default "Your breach report has been submitted successfully. The data protection team has been notified."
67
- */
68
- confirmationMessage?: string;
69
- /**
70
- * Whether to allow file attachments
71
- * @default true
72
- */
73
- allowAttachments?: boolean;
74
- /**
75
- * Maximum number of attachments allowed
76
- * @default 5
77
- */
78
- maxAttachments?: number;
79
- /**
80
- * Maximum file size for attachments (in bytes)
81
- * @default 5242880 (5MB)
82
- */
83
- maxFileSize?: number;
84
- /**
85
- * Allowed file types for attachments
86
- * @default ['.pdf', '.jpg', '.jpeg', '.png', '.doc', '.docx', '.xls', '.xlsx', '.txt']
87
- */
88
- allowedFileTypes?: string[];
89
- }
90
- declare const BreachReportForm: React.FC<BreachReportFormProps>;
91
-
92
- interface BreachRiskAssessmentClassNames {
93
- root?: string;
94
- header?: string;
95
- title?: string;
96
- slider?: string;
97
- riskBadge?: string;
98
- riskScore?: string;
99
- notificationStatus?: string;
100
- submitButton?: string;
101
- }
102
- interface BreachRiskAssessmentProps {
103
- /**
104
- * The breach data to assess
105
- */
106
- breachData: BreachReport;
107
- /**
108
- * Initial assessment data (if editing an existing assessment)
109
- */
110
- initialAssessment?: Partial<RiskAssessment>;
111
- /**
112
- * Callback function called when assessment is completed
113
- */
114
- onComplete: (assessment: RiskAssessment) => void;
115
- /**
116
- * Title displayed on the assessment form
117
- * @default "Breach Risk Assessment"
118
- */
119
- title?: string;
120
- /**
121
- * Description text displayed on the assessment form
122
- * @default "Assess the risk level of this data breach to determine notification requirements."
123
- */
124
- description?: string;
125
- /**
126
- * Text for the submit button
127
- * @default "Complete Assessment"
128
- */
129
- submitButtonText?: string;
130
- /**
131
- * Custom CSS class for the form
132
- */
133
- className?: string;
134
- /**
135
- * Custom CSS class for the submit button
136
- */
137
- buttonClassName?: string;
138
- /**
139
- * Override class names for individual elements
140
- */
141
- classNames?: BreachRiskAssessmentClassNames;
142
- /**
143
- * Remove all default styles, only applying classNames overrides
144
- */
145
- unstyled?: boolean;
146
- /**
147
- * Whether to show the breach summary
148
- * @default true
149
- */
150
- showBreachSummary?: boolean;
151
- /**
152
- * Whether to show notification requirements after assessment
153
- * @default true
154
- */
155
- showNotificationRequirements?: boolean;
156
- }
157
- declare const BreachRiskAssessment: React.FC<BreachRiskAssessmentProps>;
158
-
159
- interface BreachNotificationManagerClassNames {
160
- root?: string;
161
- header?: string;
162
- title?: string;
163
- breachList?: string;
164
- breachItem?: string;
165
- statusBadge?: string;
166
- timeline?: string;
167
- timelineStep?: string;
168
- detailPanel?: string;
169
- }
170
- interface BreachNotificationManagerProps {
171
- /**
172
- * List of breach reports to manage
173
- */
174
- breachReports: BreachReport[];
175
- /**
176
- * List of risk assessments
177
- */
178
- riskAssessments: RiskAssessment[];
179
- /**
180
- * List of regulatory notifications
181
- */
182
- regulatoryNotifications: RegulatoryNotification[];
183
- /**
184
- * Callback function called when a breach is selected
185
- */
186
- onSelectBreach?: (breachId: string) => void;
187
- /**
188
- * Callback function called when a risk assessment is requested
189
- */
190
- onRequestAssessment?: (breachId: string) => void;
191
- /**
192
- * Callback function called when a notification is requested
193
- */
194
- onRequestNotification?: (breachId: string) => void;
195
- /**
196
- * Title displayed on the manager
197
- * @default "Breach Notification Manager"
198
- */
199
- title?: string;
200
- /**
201
- * Description text displayed on the manager
202
- * @default "Manage data breach notifications and track compliance with NDPA requirements."
203
- */
204
- description?: string;
205
- /**
206
- * Custom CSS class for the manager
207
- */
208
- className?: string;
209
- /**
210
- * Custom CSS class for the buttons
211
- */
212
- buttonClassName?: string;
213
- /**
214
- * Override class names for individual elements
215
- */
216
- classNames?: BreachNotificationManagerClassNames;
217
- /**
218
- * Remove all default styles, only applying classNames overrides
219
- */
220
- unstyled?: boolean;
221
- /**
222
- * Whether to show the breach details
223
- * @default true
224
- */
225
- showBreachDetails?: boolean;
226
- /**
227
- * Whether to show the notification timeline
228
- * @default true
229
- */
230
- showNotificationTimeline?: boolean;
231
- /**
232
- * Whether to show the deadline alerts
233
- * @default true
234
- */
235
- showDeadlineAlerts?: boolean;
236
- }
237
- declare const BreachNotificationManager: React.FC<BreachNotificationManagerProps>;
238
-
239
- interface RegulatoryReportGeneratorClassNames {
240
- root?: string;
241
- header?: string;
242
- title?: string;
243
- reportPreview?: string;
244
- field?: string;
245
- fieldLabel?: string;
246
- fieldValue?: string;
247
- generateButton?: string;
248
- downloadButton?: string;
249
- }
250
- interface OrganizationInfo {
251
- /**
252
- * Name of the organization
253
- */
254
- name: string;
255
- /**
256
- * Registration number or business ID
257
- */
258
- registrationNumber?: string;
259
- /**
260
- * Physical address of the organization
261
- */
262
- address: string;
263
- /**
264
- * Website URL
265
- */
266
- website?: string;
267
- /**
268
- * Name of the Data Protection Officer
269
- */
270
- dpoName: string;
271
- /**
272
- * Email of the Data Protection Officer
273
- */
274
- dpoEmail: string;
275
- /**
276
- * Phone number of the Data Protection Officer
277
- */
278
- dpoPhone?: string;
279
- }
280
- interface RegulatoryReportGeneratorProps {
281
- /**
282
- * The breach data to include in the report
283
- */
284
- breachData: BreachReport;
285
- /**
286
- * The risk assessment data
287
- */
288
- assessmentData?: RiskAssessment;
289
- /**
290
- * Organization information to include in the report
291
- */
292
- organizationInfo: OrganizationInfo;
293
- /**
294
- * Callback function called when the report is generated
295
- */
296
- onGenerate: (report: RegulatoryNotification) => void;
297
- /**
298
- * Title displayed on the generator form
299
- * @default "Generate NDPC Notification Report"
300
- */
301
- title?: string;
302
- /**
303
- * Description text displayed on the generator form
304
- * @default "Generate a report for submission to the NDPC in compliance with the NDPA breach notification requirements."
305
- */
306
- description?: string;
307
- /**
308
- * Text for the generate button
309
- * @default "Generate Report"
310
- */
311
- generateButtonText?: string;
312
- /**
313
- * Custom CSS class for the form
314
- */
315
- className?: string;
316
- /**
317
- * Custom CSS class for the buttons
318
- */
319
- buttonClassName?: string;
320
- /**
321
- * Override class names for individual elements
322
- */
323
- classNames?: RegulatoryReportGeneratorClassNames;
324
- /**
325
- * Remove all default styles, only applying classNames overrides
326
- */
327
- unstyled?: boolean;
328
- /**
329
- * Whether to show a preview of the generated report
330
- * @default true
331
- */
332
- showPreview?: boolean;
333
- /**
334
- * Whether to allow editing the report content
335
- * @default true
336
- */
337
- allowEditing?: boolean;
338
- /**
339
- * Whether to allow downloading the report
340
- * @default true
341
- */
342
- allowDownload?: boolean;
343
- /**
344
- * Format for downloading the report
345
- * @default "pdf"
346
- */
347
- downloadFormat?: 'pdf' | 'docx' | 'html';
348
- }
349
- declare const RegulatoryReportGenerator: React.FC<RegulatoryReportGeneratorProps>;
350
-
351
- export { BreachCategory, BreachNotificationManager, type BreachNotificationManagerClassNames, BreachReport, BreachReportForm, type BreachReportFormClassNames, BreachRiskAssessment, type BreachRiskAssessmentClassNames, RegulatoryNotification, RegulatoryReportGenerator, type RegulatoryReportGeneratorClassNames, RiskAssessment };
4
+ export { B as BreachCategory, a as BreachReport, N as NotificationRequirement, R as RegulatoryNotification, b as RiskAssessment } from './breach-Eu9byel8.mjs';
5
+ import 'react';
package/dist/breach.d.ts CHANGED
@@ -1,351 +1,5 @@
1
- import React from 'react';
2
- import { B as BreachCategory, a as BreachReport, b as RiskAssessment, R as RegulatoryNotification } from './breach-Eu9byel8.js';
3
- export { N as NotificationRequirement } from './breach-Eu9byel8.js';
1
+ export { a as BreachNotificationManager, b as BreachNotificationManagerClassNames, c as BreachReportForm, d as BreachReportFormClassNames, e as BreachRiskAssessment, f as BreachRiskAssessmentClassNames, R as RegulatoryReportGenerator, g as RegulatoryReportGeneratorClassNames } from './breach-ouXoVTWs.js';
4
2
  export { u as useBreach } from './useBreach-lFLbSyAN.js';
5
3
  export { c as calculateBreachSeverity } from './breach-CzXqSsaY.js';
6
-
7
- interface BreachReportFormClassNames {
8
- root?: string;
9
- title?: string;
10
- form?: string;
11
- fieldGroup?: string;
12
- label?: string;
13
- input?: string;
14
- select?: string;
15
- textarea?: string;
16
- submitButton?: string;
17
- notice?: string;
18
- }
19
- interface BreachReportFormProps {
20
- /**
21
- * Available breach categories
22
- */
23
- categories: BreachCategory[];
24
- /**
25
- * Callback function called when form is submitted
26
- */
27
- onSubmit: (formData: any) => void;
28
- /**
29
- * Title displayed on the form
30
- * @default "Report a Data Breach"
31
- */
32
- title?: string;
33
- /**
34
- * Description text displayed on the form
35
- * @default "Use this form to report a suspected or confirmed data breach. All fields marked with * are required."
36
- */
37
- formDescription?: string;
38
- /**
39
- * Text for the submit button
40
- * @default "Submit Report"
41
- */
42
- submitButtonText?: string;
43
- /**
44
- * Custom CSS class for the form
45
- */
46
- className?: string;
47
- /**
48
- * Custom CSS class for the submit button
49
- */
50
- buttonClassName?: string;
51
- /**
52
- * Override class names for individual elements
53
- */
54
- classNames?: BreachReportFormClassNames;
55
- /**
56
- * Remove all default styles, only applying classNames overrides
57
- */
58
- unstyled?: boolean;
59
- /**
60
- * Whether to show a confirmation message after submission
61
- * @default true
62
- */
63
- showConfirmation?: boolean;
64
- /**
65
- * Confirmation message to display after submission
66
- * @default "Your breach report has been submitted successfully. The data protection team has been notified."
67
- */
68
- confirmationMessage?: string;
69
- /**
70
- * Whether to allow file attachments
71
- * @default true
72
- */
73
- allowAttachments?: boolean;
74
- /**
75
- * Maximum number of attachments allowed
76
- * @default 5
77
- */
78
- maxAttachments?: number;
79
- /**
80
- * Maximum file size for attachments (in bytes)
81
- * @default 5242880 (5MB)
82
- */
83
- maxFileSize?: number;
84
- /**
85
- * Allowed file types for attachments
86
- * @default ['.pdf', '.jpg', '.jpeg', '.png', '.doc', '.docx', '.xls', '.xlsx', '.txt']
87
- */
88
- allowedFileTypes?: string[];
89
- }
90
- declare const BreachReportForm: React.FC<BreachReportFormProps>;
91
-
92
- interface BreachRiskAssessmentClassNames {
93
- root?: string;
94
- header?: string;
95
- title?: string;
96
- slider?: string;
97
- riskBadge?: string;
98
- riskScore?: string;
99
- notificationStatus?: string;
100
- submitButton?: string;
101
- }
102
- interface BreachRiskAssessmentProps {
103
- /**
104
- * The breach data to assess
105
- */
106
- breachData: BreachReport;
107
- /**
108
- * Initial assessment data (if editing an existing assessment)
109
- */
110
- initialAssessment?: Partial<RiskAssessment>;
111
- /**
112
- * Callback function called when assessment is completed
113
- */
114
- onComplete: (assessment: RiskAssessment) => void;
115
- /**
116
- * Title displayed on the assessment form
117
- * @default "Breach Risk Assessment"
118
- */
119
- title?: string;
120
- /**
121
- * Description text displayed on the assessment form
122
- * @default "Assess the risk level of this data breach to determine notification requirements."
123
- */
124
- description?: string;
125
- /**
126
- * Text for the submit button
127
- * @default "Complete Assessment"
128
- */
129
- submitButtonText?: string;
130
- /**
131
- * Custom CSS class for the form
132
- */
133
- className?: string;
134
- /**
135
- * Custom CSS class for the submit button
136
- */
137
- buttonClassName?: string;
138
- /**
139
- * Override class names for individual elements
140
- */
141
- classNames?: BreachRiskAssessmentClassNames;
142
- /**
143
- * Remove all default styles, only applying classNames overrides
144
- */
145
- unstyled?: boolean;
146
- /**
147
- * Whether to show the breach summary
148
- * @default true
149
- */
150
- showBreachSummary?: boolean;
151
- /**
152
- * Whether to show notification requirements after assessment
153
- * @default true
154
- */
155
- showNotificationRequirements?: boolean;
156
- }
157
- declare const BreachRiskAssessment: React.FC<BreachRiskAssessmentProps>;
158
-
159
- interface BreachNotificationManagerClassNames {
160
- root?: string;
161
- header?: string;
162
- title?: string;
163
- breachList?: string;
164
- breachItem?: string;
165
- statusBadge?: string;
166
- timeline?: string;
167
- timelineStep?: string;
168
- detailPanel?: string;
169
- }
170
- interface BreachNotificationManagerProps {
171
- /**
172
- * List of breach reports to manage
173
- */
174
- breachReports: BreachReport[];
175
- /**
176
- * List of risk assessments
177
- */
178
- riskAssessments: RiskAssessment[];
179
- /**
180
- * List of regulatory notifications
181
- */
182
- regulatoryNotifications: RegulatoryNotification[];
183
- /**
184
- * Callback function called when a breach is selected
185
- */
186
- onSelectBreach?: (breachId: string) => void;
187
- /**
188
- * Callback function called when a risk assessment is requested
189
- */
190
- onRequestAssessment?: (breachId: string) => void;
191
- /**
192
- * Callback function called when a notification is requested
193
- */
194
- onRequestNotification?: (breachId: string) => void;
195
- /**
196
- * Title displayed on the manager
197
- * @default "Breach Notification Manager"
198
- */
199
- title?: string;
200
- /**
201
- * Description text displayed on the manager
202
- * @default "Manage data breach notifications and track compliance with NDPA requirements."
203
- */
204
- description?: string;
205
- /**
206
- * Custom CSS class for the manager
207
- */
208
- className?: string;
209
- /**
210
- * Custom CSS class for the buttons
211
- */
212
- buttonClassName?: string;
213
- /**
214
- * Override class names for individual elements
215
- */
216
- classNames?: BreachNotificationManagerClassNames;
217
- /**
218
- * Remove all default styles, only applying classNames overrides
219
- */
220
- unstyled?: boolean;
221
- /**
222
- * Whether to show the breach details
223
- * @default true
224
- */
225
- showBreachDetails?: boolean;
226
- /**
227
- * Whether to show the notification timeline
228
- * @default true
229
- */
230
- showNotificationTimeline?: boolean;
231
- /**
232
- * Whether to show the deadline alerts
233
- * @default true
234
- */
235
- showDeadlineAlerts?: boolean;
236
- }
237
- declare const BreachNotificationManager: React.FC<BreachNotificationManagerProps>;
238
-
239
- interface RegulatoryReportGeneratorClassNames {
240
- root?: string;
241
- header?: string;
242
- title?: string;
243
- reportPreview?: string;
244
- field?: string;
245
- fieldLabel?: string;
246
- fieldValue?: string;
247
- generateButton?: string;
248
- downloadButton?: string;
249
- }
250
- interface OrganizationInfo {
251
- /**
252
- * Name of the organization
253
- */
254
- name: string;
255
- /**
256
- * Registration number or business ID
257
- */
258
- registrationNumber?: string;
259
- /**
260
- * Physical address of the organization
261
- */
262
- address: string;
263
- /**
264
- * Website URL
265
- */
266
- website?: string;
267
- /**
268
- * Name of the Data Protection Officer
269
- */
270
- dpoName: string;
271
- /**
272
- * Email of the Data Protection Officer
273
- */
274
- dpoEmail: string;
275
- /**
276
- * Phone number of the Data Protection Officer
277
- */
278
- dpoPhone?: string;
279
- }
280
- interface RegulatoryReportGeneratorProps {
281
- /**
282
- * The breach data to include in the report
283
- */
284
- breachData: BreachReport;
285
- /**
286
- * The risk assessment data
287
- */
288
- assessmentData?: RiskAssessment;
289
- /**
290
- * Organization information to include in the report
291
- */
292
- organizationInfo: OrganizationInfo;
293
- /**
294
- * Callback function called when the report is generated
295
- */
296
- onGenerate: (report: RegulatoryNotification) => void;
297
- /**
298
- * Title displayed on the generator form
299
- * @default "Generate NDPC Notification Report"
300
- */
301
- title?: string;
302
- /**
303
- * Description text displayed on the generator form
304
- * @default "Generate a report for submission to the NDPC in compliance with the NDPA breach notification requirements."
305
- */
306
- description?: string;
307
- /**
308
- * Text for the generate button
309
- * @default "Generate Report"
310
- */
311
- generateButtonText?: string;
312
- /**
313
- * Custom CSS class for the form
314
- */
315
- className?: string;
316
- /**
317
- * Custom CSS class for the buttons
318
- */
319
- buttonClassName?: string;
320
- /**
321
- * Override class names for individual elements
322
- */
323
- classNames?: RegulatoryReportGeneratorClassNames;
324
- /**
325
- * Remove all default styles, only applying classNames overrides
326
- */
327
- unstyled?: boolean;
328
- /**
329
- * Whether to show a preview of the generated report
330
- * @default true
331
- */
332
- showPreview?: boolean;
333
- /**
334
- * Whether to allow editing the report content
335
- * @default true
336
- */
337
- allowEditing?: boolean;
338
- /**
339
- * Whether to allow downloading the report
340
- * @default true
341
- */
342
- allowDownload?: boolean;
343
- /**
344
- * Format for downloading the report
345
- * @default "pdf"
346
- */
347
- downloadFormat?: 'pdf' | 'docx' | 'html';
348
- }
349
- declare const RegulatoryReportGenerator: React.FC<RegulatoryReportGeneratorProps>;
350
-
351
- export { BreachCategory, BreachNotificationManager, type BreachNotificationManagerClassNames, BreachReport, BreachReportForm, type BreachReportFormClassNames, BreachRiskAssessment, type BreachRiskAssessmentClassNames, RegulatoryNotification, RegulatoryReportGenerator, type RegulatoryReportGeneratorClassNames, RiskAssessment };
4
+ export { B as BreachCategory, a as BreachReport, N as NotificationRequirement, R as RegulatoryNotification, b as RiskAssessment } from './breach-Eu9byel8.js';
5
+ import 'react';
package/dist/breach.js CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkFC6EG34C_js=require('./chunk-FC6EG34C.js'),chunkLI6WJ3LZ_js=require('./chunk-LI6WJ3LZ.js'),chunkRYZEIDNR_js=require('./chunk-RYZEIDNR.js');require('./chunk-VURIXCGY.js'),require('./chunk-MQFZHA2D.js');Object.defineProperty(exports,"BreachNotificationManager",{enumerable:true,get:function(){return chunkFC6EG34C_js.c}});Object.defineProperty(exports,"BreachReportForm",{enumerable:true,get:function(){return chunkFC6EG34C_js.a}});Object.defineProperty(exports,"BreachRiskAssessment",{enumerable:true,get:function(){return chunkFC6EG34C_js.b}});Object.defineProperty(exports,"RegulatoryReportGenerator",{enumerable:true,get:function(){return chunkFC6EG34C_js.d}});Object.defineProperty(exports,"useBreach",{enumerable:true,get:function(){return chunkLI6WJ3LZ_js.a}});Object.defineProperty(exports,"calculateBreachSeverity",{enumerable:true,get:function(){return chunkRYZEIDNR_js.a}});//# sourceMappingURL=breach.js.map
1
+ 'use strict';var chunk32UIWTGD_js=require('./chunk-32UIWTGD.js'),chunkLI6WJ3LZ_js=require('./chunk-LI6WJ3LZ.js'),chunkRYZEIDNR_js=require('./chunk-RYZEIDNR.js');require('./chunk-EPF7J2FK.js'),require('./chunk-E64TU6IU.js'),require('./chunk-MQFZHA2D.js');Object.defineProperty(exports,"BreachNotificationManager",{enumerable:true,get:function(){return chunk32UIWTGD_js.c}});Object.defineProperty(exports,"BreachReportForm",{enumerable:true,get:function(){return chunk32UIWTGD_js.a}});Object.defineProperty(exports,"BreachRiskAssessment",{enumerable:true,get:function(){return chunk32UIWTGD_js.b}});Object.defineProperty(exports,"RegulatoryReportGenerator",{enumerable:true,get:function(){return chunk32UIWTGD_js.d}});Object.defineProperty(exports,"useBreach",{enumerable:true,get:function(){return chunkLI6WJ3LZ_js.a}});Object.defineProperty(exports,"calculateBreachSeverity",{enumerable:true,get:function(){return chunkRYZEIDNR_js.a}});//# sourceMappingURL=breach.js.map
2
2
  //# sourceMappingURL=breach.js.map