@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
|
@@ -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 };
|
package/dist/cross-border.d.mts
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
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 };
|
package/dist/cross-border.d.ts
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
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 };
|
package/dist/cross-border.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkCL53OI3I_js=require('./chunk-CL53OI3I.js'),
|
|
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
|
package/dist/cross-border.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as CrossBorderTransferManager}from'./chunk-4JUDKBA2.mjs';export{a as useCrossBorderTransfer}from'./chunk-
|
|
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
|
|
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
|
-
|
|
5
|
-
|
|
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
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
|
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
|
|
35
|
+
declare function useDPIACompound(): DPIAContextValue;
|
|
292
36
|
|
|
293
|
-
export {
|
|
37
|
+
export { DPIA, DPIAProvider, type DPIAProviderProps, DPIAResult, DPIASection, StorageAdapter, useDPIACompound };
|