@tantainnovative/ndpr-toolkit 2.4.1 → 3.2.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 (192) 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-Bgi6nz82.d.mts} +5 -7
  19. package/dist/{policy-D2_jh5-T.d.ts → PolicyExporter-BnvuFncj.d.ts} +5 -7
  20. package/dist/{ropa-entry-B0D7X1GV.d.ts → ROPAManager-BS4eB8Hw.d.mts} +4 -5
  21. package/dist/{ropa-entry-DiOThOc2.d.mts → ROPAManager-qxTrXLkD.d.ts} +4 -5
  22. package/dist/RegulatoryReportGenerator-BUYgzTTT.d.ts +282 -0
  23. package/dist/RegulatoryReportGenerator-DwcHcEFp.d.mts +282 -0
  24. package/dist/StepIndicator-D-nwRTyo.d.mts +171 -0
  25. package/dist/StepIndicator-D9ZATz_O.d.ts +171 -0
  26. package/dist/adapters.d.mts +25 -0
  27. package/dist/adapters.d.ts +25 -0
  28. package/dist/adapters.js +2 -0
  29. package/dist/adapters.mjs +2 -0
  30. package/dist/breach.d.mts +36 -431
  31. package/dist/breach.d.ts +36 -431
  32. package/dist/breach.js +1 -1
  33. package/dist/breach.mjs +1 -1
  34. package/dist/chunk-27NYSWUG.mjs +2 -0
  35. package/dist/chunk-2ORDHJRD.js +2 -0
  36. package/dist/chunk-2W7ARAW2.js +2 -0
  37. package/dist/chunk-3F34NACG.js +2 -0
  38. package/dist/chunk-3UWT64FI.mjs +2 -0
  39. package/dist/chunk-3V23O4ZJ.js +2 -0
  40. package/dist/chunk-3XAUN5IM.mjs +3 -0
  41. package/dist/chunk-44W4H2EY.js +2 -0
  42. package/dist/chunk-5VMHKNJY.js +2 -0
  43. package/dist/chunk-6D3ZUGBB.mjs +2 -0
  44. package/dist/chunk-6E54NSAO.mjs +2 -0
  45. package/dist/chunk-7F5F5YWI.mjs +2 -0
  46. package/dist/chunk-DQLDX5X6.js +316 -0
  47. package/dist/chunk-FR7ZYZXB.js +2 -0
  48. package/dist/chunk-FY5G6DGZ.js +7 -0
  49. package/dist/chunk-G26I6MP5.mjs +2 -0
  50. package/dist/chunk-GCQRHMTQ.mjs +144 -0
  51. package/dist/chunk-GPJVTGHR.mjs +2 -0
  52. package/dist/chunk-GVANK6PL.js +3 -0
  53. package/dist/chunk-HNZK7LY3.mjs +2 -0
  54. package/dist/chunk-IKEPXHCZ.js +2 -0
  55. package/dist/chunk-IQQW52EF.js +2 -0
  56. package/dist/chunk-ISSGO2YT.mjs +72 -0
  57. package/dist/chunk-JZKH5RMC.js +3 -0
  58. package/dist/chunk-KHRBU5K7.js +2 -0
  59. package/dist/chunk-LFNA6WYQ.mjs +2 -0
  60. package/dist/chunk-LU4PFST7.js +144 -0
  61. package/dist/chunk-NPI5T6NH.mjs +7 -0
  62. package/dist/chunk-NPLXE43Q.mjs +2 -0
  63. package/dist/chunk-P7BSBCB3.js +2 -0
  64. package/dist/chunk-PEH5GIMN.js +2 -0
  65. package/dist/chunk-RSUDIFZV.mjs +2 -0
  66. package/dist/chunk-SBNAMPAP.mjs +2 -0
  67. package/dist/chunk-SVCRYM4I.mjs +2 -0
  68. package/dist/chunk-TKBZRULW.mjs +316 -0
  69. package/dist/chunk-TVW6KBVV.mjs +2 -0
  70. package/dist/chunk-U6VWHC46.js +72 -0
  71. package/dist/chunk-UK656RCG.js +2 -0
  72. package/dist/chunk-UNKXYVXY.js +2 -0
  73. package/dist/chunk-UOSEH6DC.js +2 -0
  74. package/dist/chunk-V37BM2LF.js +2 -0
  75. package/dist/chunk-V3MXWGXU.mjs +2 -0
  76. package/dist/chunk-VDZKGCAF.js +2 -0
  77. package/dist/chunk-WLSW4Z4W.mjs +2 -0
  78. package/dist/chunk-XSK4BSZJ.mjs +2 -0
  79. package/dist/chunk-YJCGEOLO.mjs +2 -0
  80. package/dist/chunk-ZCZ5RRZO.js +2 -0
  81. package/dist/chunk-ZQSX5ZHB.mjs +3 -0
  82. package/dist/compliance-score-racQe_E_.d.mts +115 -0
  83. package/dist/compliance-score-racQe_E_.d.ts +115 -0
  84. package/dist/consent.d.mts +67 -295
  85. package/dist/consent.d.ts +67 -295
  86. package/dist/consent.js +1 -1
  87. package/dist/consent.mjs +1 -1
  88. package/dist/core.d.mts +14 -48
  89. package/dist/core.d.ts +14 -48
  90. package/dist/core.js +1 -1
  91. package/dist/core.mjs +1 -1
  92. package/dist/cross-border-BBi9rZyO.d.mts +54 -0
  93. package/dist/cross-border-Dy-U9Hu6.d.ts +54 -0
  94. package/dist/{cross-border-BMcqLvjC.d.mts → cross-border-UyT00llA.d.mts} +1 -52
  95. package/dist/{cross-border-BMcqLvjC.d.ts → cross-border-UyT00llA.d.ts} +1 -52
  96. package/dist/cross-border.d.mts +32 -4
  97. package/dist/cross-border.d.ts +32 -4
  98. package/dist/cross-border.js +1 -1
  99. package/dist/cross-border.mjs +1 -1
  100. package/dist/dpia.d.mts +28 -284
  101. package/dist/dpia.d.ts +28 -284
  102. package/dist/dpia.js +1 -1
  103. package/dist/dpia.mjs +1 -1
  104. package/dist/dsr.d.mts +29 -300
  105. package/dist/dsr.d.ts +29 -300
  106. package/dist/dsr.js +1 -1
  107. package/dist/dsr.mjs +1 -1
  108. package/dist/hooks.d.mts +23 -10
  109. package/dist/hooks.d.ts +23 -10
  110. package/dist/hooks.js +1 -1
  111. package/dist/hooks.mjs +1 -1
  112. package/dist/index.d.mts +28 -19
  113. package/dist/index.d.ts +28 -19
  114. package/dist/index.js +1 -1
  115. package/dist/index.mjs +1 -1
  116. package/dist/lawful-basis.d.mts +31 -4
  117. package/dist/lawful-basis.d.ts +31 -4
  118. package/dist/lawful-basis.js +1 -1
  119. package/dist/lawful-basis.mjs +1 -1
  120. package/dist/policy-engine-C-tShzZH.d.mts +154 -0
  121. package/dist/policy-engine-DSQpT55_.d.ts +154 -0
  122. package/dist/policy-sections-CfNVBLCh.d.mts +54 -0
  123. package/dist/policy-sections-DqH0iZRf.d.ts +54 -0
  124. package/dist/policy.d.mts +117 -4
  125. package/dist/policy.d.ts +117 -4
  126. package/dist/policy.js +1 -1
  127. package/dist/policy.mjs +1 -1
  128. package/dist/presets.d.mts +114 -0
  129. package/dist/presets.d.ts +114 -0
  130. package/dist/presets.js +2 -0
  131. package/dist/presets.mjs +2 -0
  132. package/dist/{ropa-Li6UlL5H.d.ts → ropa-BDTM06tr.d.ts} +1 -49
  133. package/dist/{ropa-DP7pPPql.d.mts → ropa-CFHuT7jE.d.mts} +1 -49
  134. package/dist/ropa-CyynscU6.d.ts +51 -0
  135. package/dist/ropa-NIgxd8uP.d.mts +51 -0
  136. package/dist/ropa.d.mts +30 -4
  137. package/dist/ropa.d.ts +30 -4
  138. package/dist/ropa.js +1 -1
  139. package/dist/ropa.mjs +1 -1
  140. package/dist/sanitize-9mOO_cJW.d.mts +147 -0
  141. package/dist/sanitize-9mOO_cJW.d.ts +147 -0
  142. package/dist/styling-B7CBzYG7.d.ts +165 -0
  143. package/dist/styling-uJLsBbER.d.mts +165 -0
  144. package/dist/types-DK2CoKOC.d.mts +10 -0
  145. package/dist/types-DK2CoKOC.d.ts +10 -0
  146. package/dist/unstyled.d.mts +4 -4
  147. package/dist/unstyled.d.ts +4 -4
  148. package/dist/useAdaptivePolicyWizard-B9Op2gYM.d.ts +52 -0
  149. package/dist/useAdaptivePolicyWizard-N4eUM4Tj.d.mts +52 -0
  150. package/dist/{useBreach-BBSoIcZO.d.mts → useBreach-CPr86Yan.d.mts} +18 -2
  151. package/dist/{useBreach-lFLbSyAN.d.ts → useBreach-DkVXvtJK.d.ts} +18 -2
  152. package/dist/{useConsent-D0pAfTlb.d.ts → useConsent-DCNkIJHR.d.mts} +12 -2
  153. package/dist/{useConsent-DOt2Njst.d.mts → useConsent-dOcELSfX.d.ts} +12 -2
  154. package/dist/{useCrossBorderTransfer-DmtACeqW.d.ts → useCrossBorderTransfer-BGNZt2lk.d.mts} +15 -3
  155. package/dist/{useCrossBorderTransfer-BZVFCXfr.d.mts → useCrossBorderTransfer-COqjgjsu.d.ts} +15 -3
  156. package/dist/{useDPIA-DBsg2yZx.d.ts → useDPIA-Dl16Te3r.d.ts} +13 -2
  157. package/dist/{useDPIA-Da7-Q_yW.d.mts → useDPIA-DzWye8JB.d.mts} +13 -2
  158. package/dist/{useDSR-YYZ6FYFs.d.mts → useDSR-C1LksCfP.d.mts} +13 -2
  159. package/dist/{useDSR-CYI7WCXr.d.ts → useDSR-DZel52O1.d.ts} +13 -2
  160. package/dist/{useDefaultPrivacyPolicy-CUluF_ic.d.mts → useDefaultPrivacyPolicy-BsYttRey.d.mts} +13 -2
  161. package/dist/{useDefaultPrivacyPolicy-B7kTHbZh.d.ts → useDefaultPrivacyPolicy-C-mG-A5S.d.ts} +13 -2
  162. package/dist/{useLawfulBasis-CpWuHtyh.d.mts → useLawfulBasis-CKJ-kw84.d.mts} +13 -2
  163. package/dist/{useLawfulBasis-CCWF9waR.d.ts → useLawfulBasis-DFTmu1ca.d.ts} +13 -2
  164. package/dist/{useROPA-BhJ3kvHp.d.ts → useROPA-BSSU1rfx.d.ts} +14 -2
  165. package/dist/{useROPA-DLFdjkxP.d.mts → useROPA-C2hjaBTz.d.mts} +14 -2
  166. package/package.json +24 -3
  167. package/dist/chunk-2XFAV267.mjs +0 -2
  168. package/dist/chunk-32UIWTGD.js +0 -72
  169. package/dist/chunk-3YCV2BA6.js +0 -2
  170. package/dist/chunk-4A354HL3.js +0 -2
  171. package/dist/chunk-5ZBO2UPH.js +0 -2
  172. package/dist/chunk-6GGGTRDZ.mjs +0 -2
  173. package/dist/chunk-BZTTQS4A.mjs +0 -7
  174. package/dist/chunk-EKVTLHBQ.js +0 -2
  175. package/dist/chunk-GMLNWS2N.mjs +0 -2
  176. package/dist/chunk-IBEKLDBY.mjs +0 -2
  177. package/dist/chunk-ILCNDOBU.js +0 -2
  178. package/dist/chunk-K3GMTMQ6.js +0 -2
  179. package/dist/chunk-L52PDW6O.mjs +0 -2
  180. package/dist/chunk-LI6WJ3LZ.js +0 -2
  181. package/dist/chunk-LXRXDTPI.js +0 -2
  182. package/dist/chunk-NW4A3JW6.mjs +0 -2
  183. package/dist/chunk-OITITR6K.mjs +0 -2
  184. package/dist/chunk-PDJGTQMY.mjs +0 -2
  185. package/dist/chunk-T44JQT2O.mjs +0 -2
  186. package/dist/chunk-TCJCE6WN.js +0 -2
  187. package/dist/chunk-VMJBW3EF.mjs +0 -2
  188. package/dist/chunk-WSHSHIIM.mjs +0 -2
  189. package/dist/chunk-WW3X3ELF.js +0 -2
  190. package/dist/chunk-XMYUYQH7.mjs +0 -72
  191. package/dist/chunk-ZNTMZ6NM.js +0 -7
  192. package/dist/chunk-ZU73VG3X.js +0 -2
@@ -0,0 +1,54 @@
1
+ import { a as CrossBorderTransfer, b as TransferMechanism } from './cross-border-UyT00llA.js';
2
+
3
+ /**
4
+ * Validation result for a cross-border transfer
5
+ */
6
+ interface TransferValidationResult {
7
+ isValid: boolean;
8
+ errors: string[];
9
+ warnings: string[];
10
+ }
11
+ /**
12
+ * Risk assessment result for a cross-border transfer
13
+ */
14
+ interface TransferRiskResult {
15
+ riskLevel: 'low' | 'medium' | 'high';
16
+ riskScore: number;
17
+ factors: string[];
18
+ recommendations: string[];
19
+ }
20
+ /**
21
+ * Returns whether NDPC approval is required for a given transfer mechanism.
22
+ * Approval is required for standard contractual clauses (Section 42),
23
+ * binding corporate rules (Section 43), and specific NDPC authorization (Section 44).
24
+ *
25
+ * @param mechanism The transfer mechanism
26
+ * @returns Whether NDPC approval is required
27
+ */
28
+ declare function isNDPCApprovalRequired(mechanism: TransferMechanism): boolean;
29
+ /**
30
+ * Returns a human-readable description of a transfer mechanism with its NDPA section reference.
31
+ *
32
+ * @param mechanism The transfer mechanism
33
+ * @returns Description including the relevant NDPA section
34
+ */
35
+ declare function getTransferMechanismDescription(mechanism: TransferMechanism): string;
36
+ /**
37
+ * Validates a cross-border transfer record for completeness and compliance.
38
+ * Checks required fields, verifies that NDPC approval is documented when required,
39
+ * and ensures safeguards are in place.
40
+ *
41
+ * @param transfer The cross-border transfer to validate
42
+ * @returns Validation result with errors and warnings
43
+ */
44
+ declare function validateTransfer(transfer: CrossBorderTransfer): TransferValidationResult;
45
+ /**
46
+ * Performs a basic risk assessment of a cross-border transfer based on adequacy status,
47
+ * transfer mechanism, and data sensitivity.
48
+ *
49
+ * @param transfer The cross-border transfer to assess
50
+ * @returns Risk assessment result with score, factors, and recommendations
51
+ */
52
+ declare function assessTransferRisk(transfer: CrossBorderTransfer): TransferRiskResult;
53
+
54
+ export { type TransferRiskResult as T, type TransferValidationResult as a, assessTransferRisk as b, getTransferMechanismDescription as g, isNDPCApprovalRequired as i, validateTransfer as v };
@@ -138,55 +138,4 @@ interface CrossBorderSummary {
138
138
  lastUpdated: number;
139
139
  }
140
140
 
141
- /**
142
- * Validation result for a cross-border transfer
143
- */
144
- interface TransferValidationResult {
145
- isValid: boolean;
146
- errors: string[];
147
- warnings: string[];
148
- }
149
- /**
150
- * Risk assessment result for a cross-border transfer
151
- */
152
- interface TransferRiskResult {
153
- riskLevel: 'low' | 'medium' | 'high';
154
- riskScore: number;
155
- factors: string[];
156
- recommendations: string[];
157
- }
158
- /**
159
- * Returns whether NDPC approval is required for a given transfer mechanism.
160
- * Approval is required for standard contractual clauses (Section 42),
161
- * binding corporate rules (Section 43), and specific NDPC authorization (Section 44).
162
- *
163
- * @param mechanism The transfer mechanism
164
- * @returns Whether NDPC approval is required
165
- */
166
- declare function isNDPCApprovalRequired(mechanism: TransferMechanism): boolean;
167
- /**
168
- * Returns a human-readable description of a transfer mechanism with its NDPA section reference.
169
- *
170
- * @param mechanism The transfer mechanism
171
- * @returns Description including the relevant NDPA section
172
- */
173
- declare function getTransferMechanismDescription(mechanism: TransferMechanism): string;
174
- /**
175
- * Validates a cross-border transfer record for completeness and compliance.
176
- * Checks required fields, verifies that NDPC approval is documented when required,
177
- * and ensures safeguards are in place.
178
- *
179
- * @param transfer The cross-border transfer to validate
180
- * @returns Validation result with errors and warnings
181
- */
182
- declare function validateTransfer(transfer: CrossBorderTransfer): TransferValidationResult;
183
- /**
184
- * Performs a basic risk assessment of a cross-border transfer based on adequacy status,
185
- * transfer mechanism, and data sensitivity.
186
- *
187
- * @param transfer The cross-border transfer to assess
188
- * @returns Risk assessment result with score, factors, and recommendations
189
- */
190
- declare function assessTransferRisk(transfer: CrossBorderTransfer): TransferRiskResult;
191
-
192
- export { type AdequacyStatus as A, type CrossBorderSummary as C, type TransferImpactAssessment as T, type CrossBorderTransfer as a, type TransferMechanism as b, type TransferRiskResult as c, type TransferValidationResult as d, assessTransferRisk as e, getTransferMechanismDescription as g, isNDPCApprovalRequired as i, validateTransfer as v };
141
+ export type { AdequacyStatus as A, CrossBorderSummary as C, TransferImpactAssessment as T, CrossBorderTransfer as a, TransferMechanism as b };
@@ -138,55 +138,4 @@ interface CrossBorderSummary {
138
138
  lastUpdated: number;
139
139
  }
140
140
 
141
- /**
142
- * Validation result for a cross-border transfer
143
- */
144
- interface TransferValidationResult {
145
- isValid: boolean;
146
- errors: string[];
147
- warnings: string[];
148
- }
149
- /**
150
- * Risk assessment result for a cross-border transfer
151
- */
152
- interface TransferRiskResult {
153
- riskLevel: 'low' | 'medium' | 'high';
154
- riskScore: number;
155
- factors: string[];
156
- recommendations: string[];
157
- }
158
- /**
159
- * Returns whether NDPC approval is required for a given transfer mechanism.
160
- * Approval is required for standard contractual clauses (Section 42),
161
- * binding corporate rules (Section 43), and specific NDPC authorization (Section 44).
162
- *
163
- * @param mechanism The transfer mechanism
164
- * @returns Whether NDPC approval is required
165
- */
166
- declare function isNDPCApprovalRequired(mechanism: TransferMechanism): boolean;
167
- /**
168
- * Returns a human-readable description of a transfer mechanism with its NDPA section reference.
169
- *
170
- * @param mechanism The transfer mechanism
171
- * @returns Description including the relevant NDPA section
172
- */
173
- declare function getTransferMechanismDescription(mechanism: TransferMechanism): string;
174
- /**
175
- * Validates a cross-border transfer record for completeness and compliance.
176
- * Checks required fields, verifies that NDPC approval is documented when required,
177
- * and ensures safeguards are in place.
178
- *
179
- * @param transfer The cross-border transfer to validate
180
- * @returns Validation result with errors and warnings
181
- */
182
- declare function validateTransfer(transfer: CrossBorderTransfer): TransferValidationResult;
183
- /**
184
- * Performs a basic risk assessment of a cross-border transfer based on adequacy status,
185
- * transfer mechanism, and data sensitivity.
186
- *
187
- * @param transfer The cross-border transfer to assess
188
- * @returns Risk assessment result with score, factors, and recommendations
189
- */
190
- declare function assessTransferRisk(transfer: CrossBorderTransfer): TransferRiskResult;
191
-
192
- export { type AdequacyStatus as A, type CrossBorderSummary as C, type TransferImpactAssessment as T, type CrossBorderTransfer as a, type TransferMechanism as b, type TransferRiskResult as c, type TransferValidationResult as d, assessTransferRisk as e, getTransferMechanismDescription as g, isNDPCApprovalRequired as i, validateTransfer as v };
141
+ export type { AdequacyStatus as A, CrossBorderSummary as C, TransferImpactAssessment as T, CrossBorderTransfer as a, TransferMechanism as b };
@@ -1,4 +1,32 @@
1
- export { C as CrossBorderTransferManager } from './cross-border-entry-cCTvpwnT.mjs';
2
- export { u as useCrossBorderTransfer } from './useCrossBorderTransfer-BZVFCXfr.mjs';
3
- export { A as AdequacyStatus, C as CrossBorderSummary, a as CrossBorderTransfer, T as TransferImpactAssessment, b as TransferMechanism, c as TransferRiskResult, d as TransferValidationResult, e as assessTransferRisk, g as getTransferMechanismDescription, i as isNDPCApprovalRequired, v as validateTransfer } from './cross-border-BMcqLvjC.mjs';
4
- import 'react';
1
+ import { b as CrossBorderTransferManagerProps } from './CrossBorderTransferManager-DkZhv9vD.mjs';
2
+ export { C as CrossBorderTransferManager } from './CrossBorderTransferManager-DkZhv9vD.mjs';
3
+ import { U as UseCrossBorderTransferReturn } from './useCrossBorderTransfer-BGNZt2lk.mjs';
4
+ export { u as useCrossBorderTransfer } from './useCrossBorderTransfer-BGNZt2lk.mjs';
5
+ export { T as TransferRiskResult, a as TransferValidationResult, b as assessTransferRisk, g as getTransferMechanismDescription, i as isNDPCApprovalRequired, v as validateTransfer } from './cross-border-BBi9rZyO.mjs';
6
+ import { a as CrossBorderTransfer } from './cross-border-UyT00llA.mjs';
7
+ export { A as AdequacyStatus, C as CrossBorderSummary, T as TransferImpactAssessment, b as TransferMechanism } from './cross-border-UyT00llA.mjs';
8
+ import * as React from 'react';
9
+ import React__default from 'react';
10
+ import { S as StorageAdapter } from './types-DK2CoKOC.mjs';
11
+
12
+ interface CrossBorderProviderProps {
13
+ adapter?: StorageAdapter<CrossBorderTransfer[]>;
14
+ storageKey?: string;
15
+ useLocalStorage?: boolean;
16
+ initialTransfers?: CrossBorderTransfer[];
17
+ onAdd?: (transfer: CrossBorderTransfer) => void;
18
+ onUpdate?: (transfer: CrossBorderTransfer) => void;
19
+ onRemove?: (id: string) => void;
20
+ children: React__default.ReactNode;
21
+ }
22
+ declare const CrossBorderProvider: React__default.FC<CrossBorderProviderProps>;
23
+
24
+ declare const CrossBorder: {
25
+ Provider: React.FC<CrossBorderProviderProps>;
26
+ Manager: React.FC<CrossBorderTransferManagerProps>;
27
+ };
28
+
29
+ type CrossBorderContextValue = UseCrossBorderTransferReturn;
30
+ declare function useCrossBorderCompound(): CrossBorderContextValue;
31
+
32
+ export { CrossBorder, CrossBorderProvider, type CrossBorderProviderProps, CrossBorderTransfer, StorageAdapter, UseCrossBorderTransferReturn, useCrossBorderCompound };
@@ -1,4 +1,32 @@
1
- export { C as CrossBorderTransferManager } from './cross-border-entry-BrWVPly6.js';
2
- export { u as useCrossBorderTransfer } from './useCrossBorderTransfer-DmtACeqW.js';
3
- export { A as AdequacyStatus, C as CrossBorderSummary, a as CrossBorderTransfer, T as TransferImpactAssessment, b as TransferMechanism, c as TransferRiskResult, d as TransferValidationResult, e as assessTransferRisk, g as getTransferMechanismDescription, i as isNDPCApprovalRequired, v as validateTransfer } from './cross-border-BMcqLvjC.js';
4
- import 'react';
1
+ import { b as CrossBorderTransferManagerProps } from './CrossBorderTransferManager-D5Lc0e46.js';
2
+ export { C as CrossBorderTransferManager } from './CrossBorderTransferManager-D5Lc0e46.js';
3
+ import { U as UseCrossBorderTransferReturn } from './useCrossBorderTransfer-COqjgjsu.js';
4
+ export { u as useCrossBorderTransfer } from './useCrossBorderTransfer-COqjgjsu.js';
5
+ export { T as TransferRiskResult, a as TransferValidationResult, b as assessTransferRisk, g as getTransferMechanismDescription, i as isNDPCApprovalRequired, v as validateTransfer } from './cross-border-Dy-U9Hu6.js';
6
+ import { a as CrossBorderTransfer } from './cross-border-UyT00llA.js';
7
+ export { A as AdequacyStatus, C as CrossBorderSummary, T as TransferImpactAssessment, b as TransferMechanism } from './cross-border-UyT00llA.js';
8
+ import * as React from 'react';
9
+ import React__default from 'react';
10
+ import { S as StorageAdapter } from './types-DK2CoKOC.js';
11
+
12
+ interface CrossBorderProviderProps {
13
+ adapter?: StorageAdapter<CrossBorderTransfer[]>;
14
+ storageKey?: string;
15
+ useLocalStorage?: boolean;
16
+ initialTransfers?: CrossBorderTransfer[];
17
+ onAdd?: (transfer: CrossBorderTransfer) => void;
18
+ onUpdate?: (transfer: CrossBorderTransfer) => void;
19
+ onRemove?: (id: string) => void;
20
+ children: React__default.ReactNode;
21
+ }
22
+ declare const CrossBorderProvider: React__default.FC<CrossBorderProviderProps>;
23
+
24
+ declare const CrossBorder: {
25
+ Provider: React.FC<CrossBorderProviderProps>;
26
+ Manager: React.FC<CrossBorderTransferManagerProps>;
27
+ };
28
+
29
+ type CrossBorderContextValue = UseCrossBorderTransferReturn;
30
+ declare function useCrossBorderCompound(): CrossBorderContextValue;
31
+
32
+ export { CrossBorder, CrossBorderProvider, type CrossBorderProviderProps, CrossBorderTransfer, StorageAdapter, UseCrossBorderTransferReturn, useCrossBorderCompound };
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkCL53OI3I_js=require('./chunk-CL53OI3I.js'),chunk5ZBO2UPH_js=require('./chunk-5ZBO2UPH.js'),chunkIQF726GS_js=require('./chunk-IQF726GS.js');require('./chunk-E64TU6IU.js'),require('./chunk-MQFZHA2D.js');Object.defineProperty(exports,"CrossBorderTransferManager",{enumerable:true,get:function(){return chunkCL53OI3I_js.a}});Object.defineProperty(exports,"useCrossBorderTransfer",{enumerable:true,get:function(){return chunk5ZBO2UPH_js.a}});Object.defineProperty(exports,"assessTransferRisk",{enumerable:true,get:function(){return chunkIQF726GS_js.d}});Object.defineProperty(exports,"getTransferMechanismDescription",{enumerable:true,get:function(){return chunkIQF726GS_js.b}});Object.defineProperty(exports,"isNDPCApprovalRequired",{enumerable:true,get:function(){return chunkIQF726GS_js.a}});Object.defineProperty(exports,"validateTransfer",{enumerable:true,get:function(){return chunkIQF726GS_js.c}});//# sourceMappingURL=cross-border.js.map
1
+ 'use strict';var chunkCL53OI3I_js=require('./chunk-CL53OI3I.js'),chunkP7BSBCB3_js=require('./chunk-P7BSBCB3.js'),chunkIQF726GS_js=require('./chunk-IQF726GS.js');require('./chunk-E64TU6IU.js'),require('./chunk-UK656RCG.js'),require('./chunk-MQFZHA2D.js');var react=require('react'),jsxRuntime=require('react/jsx-runtime');var t=react.createContext(null);function P(){let r=react.useContext(t);if(!r)throw new Error("CrossBorder compound components must be wrapped in <CrossBorder.Provider>. Example: <CrossBorder.Provider><CrossBorder.Manager /></CrossBorder.Provider>");return r}var e=({adapter:r,storageKey:d,useLocalStorage:a,initialTransfers:n,onAdd:p,onUpdate:C,onRemove:f,children:i})=>{let m=chunkP7BSBCB3_js.a({adapter:r,storageKey:d,useLocalStorage:a,initialTransfers:n,onAdd:p,onUpdate:C,onRemove:f});return jsxRuntime.jsx(t.Provider,{value:m,children:i})};var y={Provider:e,Manager:chunkCL53OI3I_js.a};Object.defineProperty(exports,"CrossBorderTransferManager",{enumerable:true,get:function(){return chunkCL53OI3I_js.a}});Object.defineProperty(exports,"useCrossBorderTransfer",{enumerable:true,get:function(){return chunkP7BSBCB3_js.a}});Object.defineProperty(exports,"assessTransferRisk",{enumerable:true,get:function(){return chunkIQF726GS_js.d}});Object.defineProperty(exports,"getTransferMechanismDescription",{enumerable:true,get:function(){return chunkIQF726GS_js.b}});Object.defineProperty(exports,"isNDPCApprovalRequired",{enumerable:true,get:function(){return chunkIQF726GS_js.a}});Object.defineProperty(exports,"validateTransfer",{enumerable:true,get:function(){return chunkIQF726GS_js.c}});exports.CrossBorder=y;exports.CrossBorderProvider=e;exports.useCrossBorderCompound=P;//# sourceMappingURL=cross-border.js.map
2
2
  //# sourceMappingURL=cross-border.js.map
@@ -1,2 +1,2 @@
1
- export{a as CrossBorderTransferManager}from'./chunk-4JUDKBA2.mjs';export{a as useCrossBorderTransfer}from'./chunk-VMJBW3EF.mjs';export{d as assessTransferRisk,b as getTransferMechanismDescription,a as isNDPCApprovalRequired,c as validateTransfer}from'./chunk-QKK5S54L.mjs';import'./chunk-AYKLAEOU.mjs';import'./chunk-WWT2ZSNU.mjs';//# sourceMappingURL=cross-border.mjs.map
1
+ import {a}from'./chunk-4JUDKBA2.mjs';export{a as CrossBorderTransferManager}from'./chunk-4JUDKBA2.mjs';import {a as a$1}from'./chunk-NPLXE43Q.mjs';export{a as useCrossBorderTransfer}from'./chunk-NPLXE43Q.mjs';export{d as assessTransferRisk,b as getTransferMechanismDescription,a as isNDPCApprovalRequired,c as validateTransfer}from'./chunk-QKK5S54L.mjs';import'./chunk-AYKLAEOU.mjs';import'./chunk-SBNAMPAP.mjs';import'./chunk-WWT2ZSNU.mjs';import {createContext,useContext}from'react';import {jsx}from'react/jsx-runtime';var t=createContext(null);function P(){let r=useContext(t);if(!r)throw new Error("CrossBorder compound components must be wrapped in <CrossBorder.Provider>. Example: <CrossBorder.Provider><CrossBorder.Manager /></CrossBorder.Provider>");return r}var e=({adapter:r,storageKey:d,useLocalStorage:a,initialTransfers:n,onAdd:p,onUpdate:C,onRemove:f,children:i})=>{let m=a$1({adapter:r,storageKey:d,useLocalStorage:a,initialTransfers:n,onAdd:p,onUpdate:C,onRemove:f});return jsx(t.Provider,{value:m,children:i})};var y={Provider:e,Manager:a};export{y as CrossBorder,e as CrossBorderProvider,P as useCrossBorderCompound};//# sourceMappingURL=cross-border.mjs.map
2
2
  //# sourceMappingURL=cross-border.mjs.map
package/dist/dpia.d.mts CHANGED
@@ -1,293 +1,37 @@
1
- import React from 'react';
1
+ import { b as DPIAQuestionnaireProps } from './DPIAQuestionnaire-BkejviPj.mjs';
2
+ export { D as DPIAQuestionnaire, a as DPIAQuestionnaireClassNames } from './DPIAQuestionnaire-BkejviPj.mjs';
3
+ import { c as DPIAReportProps, d as StepIndicatorProps } from './StepIndicator-D-nwRTyo.mjs';
4
+ export { D as DPIAReport, a as DPIAReportClassNames, S as StepIndicator, b as StepIndicatorClassNames } from './StepIndicator-D-nwRTyo.mjs';
5
+ import { U as UseDPIAReturn } from './useDPIA-DzWye8JB.mjs';
6
+ export { u as useDPIA } from './useDPIA-DzWye8JB.mjs';
7
+ export { a as assessDPIARisk } from './dpia-CUfOmzvX.mjs';
2
8
  import { c as DPIASection, a as DPIAResult } from './dpia-5OQVA1R_.mjs';
3
9
  export { D as DPIAQuestion, b as DPIARisk } from './dpia-5OQVA1R_.mjs';
4
- export { u as useDPIA } from './useDPIA-Da7-Q_yW.mjs';
5
- export { a as assessDPIARisk } from './dpia-CUfOmzvX.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
- interface DPIAQuestionnaireClassNames {
8
- /** Outermost wrapper */
9
- root?: string;
10
- /** Header area containing progress indicator */
11
- header?: string;
12
- /** Section title */
13
- title?: string;
14
- /** Section container */
15
- section?: string;
16
- /** Section title heading */
17
- sectionTitle?: string;
18
- /** Individual question wrapper */
19
- question?: string;
20
- /** Question label text */
21
- questionText?: string;
22
- /** Guidance / help text below a question */
23
- guidance?: string;
24
- /** Text / textarea / select inputs */
25
- input?: string;
26
- /** Radio option group container */
27
- radioGroup?: string;
28
- /** Individual radio option row */
29
- radioOption?: string;
30
- /** Navigation button container */
31
- navigation?: string;
32
- /** Next / submit button */
33
- nextButton?: string;
34
- /** Previous button */
35
- prevButton?: string;
36
- /** Alias for nextButton */
37
- primaryButton?: string;
38
- /** Alias for prevButton */
39
- secondaryButton?: string;
40
- /** Progress bar wrapper */
41
- progressBar?: string;
42
- }
43
- interface DPIAQuestionnaireProps {
44
- /**
45
- * Sections of the DPIA questionnaire
46
- */
14
+ interface DPIAProviderProps {
47
15
  sections: DPIASection[];
48
- /**
49
- * Current answers to the questionnaire
50
- */
51
- answers: Record<string, any>;
52
- /**
53
- * Callback function called when an answer is updated
54
- */
55
- onAnswerChange: (questionId: string, value: any) => void;
56
- /**
57
- * Current section index
58
- */
59
- currentSectionIndex: number;
60
- /**
61
- * Callback function called when user navigates to the next section
62
- */
63
- onNextSection?: () => void;
64
- /**
65
- * Callback function called when user navigates to the previous section
66
- */
67
- onPrevSection?: () => void;
68
- /**
69
- * Validation errors for the current section
70
- */
71
- validationErrors?: Record<string, string>;
72
- /**
73
- * Whether the questionnaire is in read-only mode
74
- * @default false
75
- */
76
- readOnly?: boolean;
77
- /**
78
- * Custom CSS class for the questionnaire
79
- */
80
- className?: string;
81
- /**
82
- * Custom CSS class for the buttons
83
- */
84
- buttonClassName?: string;
85
- /**
86
- * Text for the next button
87
- * @default "Next"
88
- */
89
- nextButtonText?: string;
90
- /**
91
- * Text for the previous button
92
- * @default "Previous"
93
- */
94
- prevButtonText?: string;
95
- /**
96
- * Text for the submit button (shown on the last section)
97
- * @default "Submit"
98
- */
99
- submitButtonText?: string;
100
- /**
101
- * Whether to show a progress indicator
102
- * @default true
103
- */
104
- showProgress?: boolean;
105
- /**
106
- * Current progress percentage (0-100)
107
- */
108
- progress?: number;
109
- /**
110
- * Per-section class name overrides
111
- */
112
- classNames?: DPIAQuestionnaireClassNames;
113
- /**
114
- * When true, all default classes are stripped.
115
- * Only explicit overrides from `classNames` are applied.
116
- * @default false
117
- */
118
- unstyled?: boolean;
16
+ initialAnswers?: Record<string, any>;
17
+ adapter?: StorageAdapter<Record<string, any>>;
18
+ storageKey?: string;
19
+ useLocalStorage?: boolean;
20
+ onComplete?: (result: DPIAResult) => void;
21
+ children: React__default.ReactNode;
119
22
  }
120
- /**
121
- * DPIA questionnaire component. Implements NDPA Section 38 requirements
122
- * for conducting Data Protection Impact Assessments on high-risk processing activities.
123
- */
124
- declare const DPIAQuestionnaire: React.FC<DPIAQuestionnaireProps>;
23
+ declare const DPIAProvider: React__default.FC<DPIAProviderProps>;
125
24
 
126
- interface DPIAReportClassNames {
127
- /** Outermost wrapper */
128
- root?: string;
129
- /** Report header area */
130
- header?: string;
131
- /** Main report title */
132
- title?: string;
133
- /** Executive summary section */
134
- summary?: string;
135
- /** Risk level badge */
136
- riskBadge?: string;
137
- /** Risks table element */
138
- riskTable?: string;
139
- /** Individual risk row */
140
- riskRow?: string;
141
- /** Recommendation list item */
142
- recommendation?: string;
143
- /** Conclusion text */
144
- conclusion?: string;
145
- /** Print button */
146
- printButton?: string;
147
- /** Alias for printButton */
148
- primaryButton?: string;
149
- }
150
- interface DPIAReportProps {
151
- /**
152
- * The DPIA result to display
153
- */
154
- result: DPIAResult;
155
- /**
156
- * The sections of the DPIA questionnaire
157
- */
158
- sections: DPIASection[];
159
- /**
160
- * Whether to show the full report or just a summary
161
- * @default true
162
- */
163
- showFullReport?: boolean;
164
- /**
165
- * Whether to allow printing the report
166
- * @default true
167
- */
168
- allowPrint?: boolean;
169
- /**
170
- * Whether to allow exporting the report as PDF
171
- * @default true
172
- */
173
- allowExport?: boolean;
174
- /**
175
- * Callback function called when the report is exported
176
- */
177
- onExport?: (format: 'pdf' | 'docx' | 'html') => void;
178
- /**
179
- * Custom CSS class for the report container
180
- */
181
- className?: string;
182
- /**
183
- * Custom CSS class for the buttons
184
- */
185
- buttonClassName?: string;
186
- /**
187
- * Per-section class name overrides
188
- */
189
- classNames?: DPIAReportClassNames;
190
- /**
191
- * When true, all default classes are stripped.
192
- * Only explicit overrides from `classNames` are applied.
193
- * @default false
194
- */
195
- unstyled?: boolean;
196
- }
197
- /**
198
- * DPIA report component. Implements NDPA Sections 38-39 requirements for documenting
199
- * and presenting Data Protection Impact Assessment findings, risks, and recommendations.
200
- */
201
- declare const DPIAReport: React.FC<DPIAReportProps>;
25
+ declare const DPIA: {
26
+ Provider: React.FC<DPIAProviderProps>;
27
+ Questionnaire: React.FC<DPIAQuestionnaireProps>;
28
+ Report: React.FC<DPIAReportProps>;
29
+ StepIndicator: React.FC<StepIndicatorProps>;
30
+ };
202
31
 
203
- interface Step {
204
- /**
205
- * Unique identifier for the step
206
- */
207
- id: string;
208
- /**
209
- * Display label for the step
210
- */
211
- label: string;
212
- /**
213
- * Optional description for the step
214
- */
215
- description?: string;
216
- /**
217
- * Whether the step is completed
218
- */
219
- completed: boolean;
220
- /**
221
- * Whether the step is the current active step
222
- */
223
- active: boolean;
224
- /**
225
- * Optional icon for the step
226
- */
227
- icon?: React.ReactNode;
228
- }
229
- interface StepIndicatorClassNames {
230
- /** Outermost wrapper */
231
- root?: string;
232
- /** Individual step wrapper */
233
- step?: string;
234
- /** Active step circle / indicator */
235
- stepActive?: string;
236
- /** Completed step circle / indicator */
237
- stepCompleted?: string;
238
- /** Pending (incomplete, inactive) step circle / indicator */
239
- stepPending?: string;
240
- /** Connector line between steps */
241
- connector?: string;
242
- /** Step label text */
243
- label?: string;
244
- }
245
- interface StepIndicatorProps {
246
- /**
247
- * Array of steps to display
248
- */
249
- steps: Step[];
250
- /**
251
- * Callback function called when a step is clicked
252
- */
253
- onStepClick?: (stepId: string) => void;
254
- /**
255
- * Whether the steps are clickable
256
- * @default true
257
- */
258
- clickable?: boolean;
259
- /**
260
- * Orientation of the step indicator
261
- * @default "horizontal"
262
- */
263
- orientation?: 'horizontal' | 'vertical';
264
- /**
265
- * Custom CSS class for the container
266
- */
267
- className?: string;
268
- /**
269
- * Custom CSS class for the active step
270
- */
271
- activeStepClassName?: string;
272
- /**
273
- * Custom CSS class for completed steps
274
- */
275
- completedStepClassName?: string;
276
- /**
277
- * Custom CSS class for incomplete steps
278
- */
279
- incompleteStepClassName?: string;
280
- /**
281
- * Per-section class name overrides
282
- */
283
- classNames?: StepIndicatorClassNames;
284
- /**
285
- * When true, all default classes are stripped.
286
- * Only explicit overrides from `classNames` are applied.
287
- * @default false
288
- */
289
- unstyled?: boolean;
32
+ interface DPIAContextValue extends UseDPIAReturn {
33
+ sections: DPIASection[];
290
34
  }
291
- declare const StepIndicator: React.FC<StepIndicatorProps>;
35
+ declare function useDPIACompound(): DPIAContextValue;
292
36
 
293
- export { DPIAQuestionnaire, type DPIAQuestionnaireClassNames, DPIAReport, type DPIAReportClassNames, DPIAResult, DPIASection, StepIndicator, type StepIndicatorClassNames };
37
+ export { DPIA, DPIAProvider, type DPIAProviderProps, DPIAResult, DPIASection, StorageAdapter, useDPIACompound };