@tantainnovative/ndpr-toolkit 2.4.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +226 -246
- package/dist/BreachReportForm-DpRrBoxU.d.ts +158 -0
- package/dist/BreachReportForm-yJ2Zl6gz.d.mts +158 -0
- package/dist/ConsentBanner-CDRT0o2k.d.mts +146 -0
- package/dist/ConsentBanner-Vxyt8SCX.d.ts +146 -0
- package/dist/{cross-border-entry-BrWVPly6.d.ts → CrossBorderTransferManager-D5Lc0e46.d.ts} +4 -5
- package/dist/{cross-border-entry-cCTvpwnT.d.mts → CrossBorderTransferManager-DkZhv9vD.d.mts} +4 -5
- package/dist/DPIAQuestionnaire-BkejviPj.d.mts +123 -0
- package/dist/DPIAQuestionnaire-DdSqXG3x.d.ts +123 -0
- package/dist/DSRRequestForm-BY8PogCU.d.mts +146 -0
- package/dist/DSRRequestForm-CHUg9cZh.d.ts +146 -0
- package/dist/DSRTracker-C6u_jAaK.d.mts +163 -0
- package/dist/DSRTracker-Dr_aT0pg.d.ts +163 -0
- package/dist/{lawful-basis-entry-CxZrofwG.d.mts → LawfulBasisTracker-CBqOxX1D.d.mts} +3 -5
- package/dist/{lawful-basis-entry-15qjKcNO.d.ts → LawfulBasisTracker-Cg30NbDA.d.ts} +3 -5
- package/dist/NDPRDashboard-CLJpEg0X.d.mts +44 -0
- package/dist/NDPRDashboard-DDWNd2Ah.d.ts +44 -0
- package/dist/{policy-E0fXZkda.d.mts → PolicyExporter-BIqSVjfC.d.mts} +4 -98
- package/dist/{policy-D2_jh5-T.d.ts → PolicyExporter-BNWaPBGU.d.ts} +4 -98
- package/dist/PolicyGenerator-BvcWPbxp.d.mts +96 -0
- package/dist/PolicyGenerator-BzRwtlgn.d.ts +96 -0
- package/dist/{ropa-entry-B0D7X1GV.d.ts → ROPAManager-BS4eB8Hw.d.mts} +4 -5
- package/dist/{ropa-entry-DiOThOc2.d.mts → ROPAManager-qxTrXLkD.d.ts} +4 -5
- package/dist/{breach-ouXoVTWs.d.ts → RegulatoryReportGenerator-BUYgzTTT.d.ts} +6 -162
- package/dist/{breach-yRiyyc4n.d.mts → RegulatoryReportGenerator-DwcHcEFp.d.mts} +6 -162
- package/dist/StepIndicator-D-nwRTyo.d.mts +171 -0
- package/dist/StepIndicator-D9ZATz_O.d.ts +171 -0
- package/dist/adapters.d.mts +25 -0
- package/dist/adapters.d.ts +25 -0
- package/dist/adapters.js +2 -0
- package/dist/adapters.mjs +2 -0
- package/dist/breach.d.mts +43 -4
- package/dist/breach.d.ts +43 -4
- package/dist/breach.js +1 -1
- package/dist/breach.mjs +1 -1
- package/dist/chunk-27NYSWUG.mjs +2 -0
- package/dist/chunk-2ORDHJRD.js +2 -0
- package/dist/chunk-2W7ARAW2.js +2 -0
- package/dist/chunk-3F34NACG.js +2 -0
- package/dist/chunk-3RGJV3VF.js +7 -0
- package/dist/chunk-3UWT64FI.mjs +2 -0
- package/dist/chunk-3V23O4ZJ.js +2 -0
- package/dist/chunk-3XAUN5IM.mjs +3 -0
- package/dist/chunk-5VMHKNJY.js +2 -0
- package/dist/chunk-6D3ZUGBB.mjs +2 -0
- package/dist/chunk-6E54NSAO.mjs +2 -0
- package/dist/chunk-7F5F5YWI.mjs +2 -0
- package/dist/chunk-7FIUX3ZM.js +89 -0
- package/dist/chunk-FR7ZYZXB.js +2 -0
- package/dist/chunk-FY5G6DGZ.js +7 -0
- package/dist/chunk-G26I6MP5.mjs +2 -0
- package/dist/chunk-GPJVTGHR.mjs +2 -0
- package/dist/chunk-GVANK6PL.js +3 -0
- package/dist/chunk-HNZK7LY3.mjs +2 -0
- package/dist/chunk-IKEPXHCZ.js +2 -0
- package/dist/chunk-IQQW52EF.js +2 -0
- package/dist/chunk-ISSGO2YT.mjs +72 -0
- package/dist/chunk-J6IKAGUP.mjs +89 -0
- package/dist/chunk-KHRBU5K7.js +2 -0
- package/dist/chunk-KNE4NXCY.mjs +7 -0
- package/dist/chunk-LFNA6WYQ.mjs +2 -0
- package/dist/chunk-NPI5T6NH.mjs +7 -0
- package/dist/chunk-NPLXE43Q.mjs +2 -0
- package/dist/chunk-P7BSBCB3.js +2 -0
- package/dist/chunk-PEH5GIMN.js +2 -0
- package/dist/chunk-RSUDIFZV.mjs +2 -0
- package/dist/chunk-SBNAMPAP.mjs +2 -0
- package/dist/chunk-SVCRYM4I.mjs +2 -0
- package/dist/chunk-U6VWHC46.js +72 -0
- package/dist/chunk-UK656RCG.js +2 -0
- package/dist/chunk-UNKXYVXY.js +2 -0
- package/dist/chunk-UOSEH6DC.js +2 -0
- package/dist/chunk-V37BM2LF.js +2 -0
- package/dist/chunk-V3MXWGXU.mjs +2 -0
- package/dist/chunk-VDZKGCAF.js +2 -0
- package/dist/chunk-WLSW4Z4W.mjs +2 -0
- package/dist/chunk-XSK4BSZJ.mjs +2 -0
- package/dist/chunk-YJCGEOLO.mjs +2 -0
- package/dist/chunk-ZCZ5RRZO.js +2 -0
- package/dist/compliance-score-racQe_E_.d.mts +115 -0
- package/dist/compliance-score-racQe_E_.d.ts +115 -0
- package/dist/consent.d.mts +67 -295
- package/dist/consent.d.ts +67 -295
- package/dist/consent.js +1 -1
- package/dist/consent.mjs +1 -1
- package/dist/core.d.mts +8 -5
- package/dist/core.d.ts +8 -5
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/cross-border-BBi9rZyO.d.mts +54 -0
- package/dist/cross-border-Dy-U9Hu6.d.ts +54 -0
- package/dist/{cross-border-BMcqLvjC.d.mts → cross-border-UyT00llA.d.mts} +1 -52
- package/dist/{cross-border-BMcqLvjC.d.ts → cross-border-UyT00llA.d.ts} +1 -52
- package/dist/cross-border.d.mts +32 -4
- package/dist/cross-border.d.ts +32 -4
- package/dist/cross-border.js +1 -1
- package/dist/cross-border.mjs +1 -1
- package/dist/dpia.d.mts +28 -284
- package/dist/dpia.d.ts +28 -284
- package/dist/dpia.js +1 -1
- package/dist/dpia.mjs +1 -1
- package/dist/dsr.d.mts +36 -4
- package/dist/dsr.d.ts +36 -4
- package/dist/dsr.js +1 -1
- package/dist/dsr.mjs +1 -1
- package/dist/hooks.d.mts +21 -10
- package/dist/hooks.d.ts +21 -10
- package/dist/hooks.js +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/index.d.mts +28 -18
- package/dist/index.d.ts +28 -18
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/lawful-basis.d.mts +31 -4
- package/dist/lawful-basis.d.ts +31 -4
- package/dist/lawful-basis.js +1 -1
- package/dist/lawful-basis.mjs +1 -1
- package/dist/policy.d.mts +36 -4
- package/dist/policy.d.ts +36 -4
- package/dist/policy.js +1 -1
- package/dist/policy.mjs +1 -1
- package/dist/presets.d.mts +124 -0
- package/dist/presets.d.ts +124 -0
- package/dist/presets.js +2 -0
- package/dist/presets.mjs +2 -0
- package/dist/{ropa-Li6UlL5H.d.ts → ropa-BDTM06tr.d.ts} +1 -49
- package/dist/{ropa-DP7pPPql.d.mts → ropa-CFHuT7jE.d.mts} +1 -49
- package/dist/ropa-CyynscU6.d.ts +51 -0
- package/dist/ropa-NIgxd8uP.d.mts +51 -0
- package/dist/ropa.d.mts +30 -4
- package/dist/ropa.d.ts +30 -4
- package/dist/ropa.js +1 -1
- package/dist/ropa.mjs +1 -1
- package/dist/styling-B7CBzYG7.d.ts +165 -0
- package/dist/styling-uJLsBbER.d.mts +165 -0
- package/dist/types-DK2CoKOC.d.mts +10 -0
- package/dist/types-DK2CoKOC.d.ts +10 -0
- package/dist/unstyled.d.mts +4 -4
- package/dist/unstyled.d.ts +4 -4
- package/dist/{useBreach-BBSoIcZO.d.mts → useBreach-CPr86Yan.d.mts} +18 -2
- package/dist/{useBreach-lFLbSyAN.d.ts → useBreach-DkVXvtJK.d.ts} +18 -2
- package/dist/{useConsent-D0pAfTlb.d.ts → useConsent-DCNkIJHR.d.mts} +12 -2
- package/dist/{useConsent-DOt2Njst.d.mts → useConsent-dOcELSfX.d.ts} +12 -2
- package/dist/{useCrossBorderTransfer-DmtACeqW.d.ts → useCrossBorderTransfer-BGNZt2lk.d.mts} +15 -3
- package/dist/{useCrossBorderTransfer-BZVFCXfr.d.mts → useCrossBorderTransfer-COqjgjsu.d.ts} +15 -3
- package/dist/{useDPIA-DBsg2yZx.d.ts → useDPIA-Dl16Te3r.d.ts} +13 -2
- package/dist/{useDPIA-Da7-Q_yW.d.mts → useDPIA-DzWye8JB.d.mts} +13 -2
- package/dist/{useDSR-YYZ6FYFs.d.mts → useDSR-C1LksCfP.d.mts} +13 -2
- package/dist/{useDSR-CYI7WCXr.d.ts → useDSR-DZel52O1.d.ts} +13 -2
- package/dist/{useDefaultPrivacyPolicy-CUluF_ic.d.mts → useDefaultPrivacyPolicy-BsYttRey.d.mts} +13 -2
- package/dist/{useDefaultPrivacyPolicy-B7kTHbZh.d.ts → useDefaultPrivacyPolicy-C-mG-A5S.d.ts} +13 -2
- package/dist/{useLawfulBasis-CpWuHtyh.d.mts → useLawfulBasis-CKJ-kw84.d.mts} +13 -2
- package/dist/{useLawfulBasis-CCWF9waR.d.ts → useLawfulBasis-DFTmu1ca.d.ts} +13 -2
- package/dist/{useROPA-BhJ3kvHp.d.ts → useROPA-BSSU1rfx.d.ts} +14 -2
- package/dist/{useROPA-DLFdjkxP.d.mts → useROPA-C2hjaBTz.d.mts} +14 -2
- package/package.json +18 -2
- package/dist/chunk-2XFAV267.mjs +0 -2
- package/dist/chunk-32UIWTGD.js +0 -72
- package/dist/chunk-3YCV2BA6.js +0 -2
- package/dist/chunk-4A354HL3.js +0 -2
- package/dist/chunk-5ZBO2UPH.js +0 -2
- package/dist/chunk-6GGGTRDZ.mjs +0 -2
- package/dist/chunk-BGHQTZAC.js +0 -94
- package/dist/chunk-BZTTQS4A.mjs +0 -7
- package/dist/chunk-EKVTLHBQ.js +0 -2
- package/dist/chunk-GMLNWS2N.mjs +0 -2
- package/dist/chunk-IBEKLDBY.mjs +0 -2
- package/dist/chunk-K3GMTMQ6.js +0 -2
- package/dist/chunk-L52PDW6O.mjs +0 -2
- package/dist/chunk-LI6WJ3LZ.js +0 -2
- package/dist/chunk-LXRXDTPI.js +0 -2
- package/dist/chunk-NW4A3JW6.mjs +0 -2
- package/dist/chunk-OITITR6K.mjs +0 -2
- package/dist/chunk-PDJGTQMY.mjs +0 -2
- package/dist/chunk-SKJCQKFL.mjs +0 -94
- package/dist/chunk-T44JQT2O.mjs +0 -2
- package/dist/chunk-TCJCE6WN.js +0 -2
- package/dist/chunk-VMJBW3EF.mjs +0 -2
- package/dist/chunk-WW3X3ELF.js +0 -2
- package/dist/chunk-XMYUYQH7.mjs +0 -72
- package/dist/chunk-ZNTMZ6NM.js +0 -7
- package/dist/chunk-ZU73VG3X.js +0 -2
- package/dist/dsr-190YpijW.d.ts +0 -307
- package/dist/dsr-BTT-Xd7H.d.mts +0 -307
package/dist/consent.d.ts
CHANGED
|
@@ -1,310 +1,82 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
1
|
+
import { c as ConsentBannerProps } from './ConsentBanner-Vxyt8SCX.js';
|
|
2
|
+
export { C as ConsentAnalyticsEvent, a as ConsentBanner, b as ConsentBannerClassNames } from './ConsentBanner-Vxyt8SCX.js';
|
|
3
|
+
import { d as ConsentManagerProps, e as ConsentStorageProps } from './styling-B7CBzYG7.js';
|
|
4
|
+
export { C as ConsentManager, a as ConsentManagerClassNames, b as ConsentStorage, c as ConsentStorageClassNames, r as resolveClass } from './styling-B7CBzYG7.js';
|
|
5
|
+
export { u as useConsent } from './useConsent-dOcELSfX.js';
|
|
5
6
|
export { C as ConsentAuditEntry, a as appendAuditEntry, c as createAuditEntry, g as getAuditLog, v as validateConsent, b as validateConsentOptions } from './consent-audit-DhbfMR0n.js';
|
|
7
|
+
import { C as ConsentOption, a as ConsentSettings } from './consent-CmVzqZUk.js';
|
|
8
|
+
export { b as ConsentStorageOptions, L as LawfulBasisType } from './consent-CmVzqZUk.js';
|
|
9
|
+
import * as React$1 from 'react';
|
|
10
|
+
import React__default from 'react';
|
|
11
|
+
import { S as StorageAdapter } from './types-DK2CoKOC.js';
|
|
6
12
|
|
|
7
|
-
interface
|
|
8
|
-
|
|
9
|
-
timestamp: number;
|
|
10
|
-
version: string;
|
|
11
|
-
categories?: Record<string, boolean>;
|
|
12
|
-
}
|
|
13
|
-
interface ConsentBannerClassNames {
|
|
14
|
-
root?: string;
|
|
15
|
-
container?: string;
|
|
16
|
-
title?: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
optionsList?: string;
|
|
19
|
-
optionItem?: string;
|
|
20
|
-
optionCheckbox?: string;
|
|
21
|
-
optionLabel?: string;
|
|
22
|
-
optionDescription?: string;
|
|
23
|
-
buttonGroup?: string;
|
|
24
|
-
acceptButton?: string;
|
|
25
|
-
rejectButton?: string;
|
|
26
|
-
customizeButton?: string;
|
|
27
|
-
saveButton?: string;
|
|
28
|
-
customizePanel?: string;
|
|
29
|
-
selectAllButton?: string;
|
|
30
|
-
/** Alias for acceptButton */
|
|
31
|
-
primaryButton?: string;
|
|
32
|
-
/** Alias for rejectButton */
|
|
33
|
-
secondaryButton?: string;
|
|
34
|
-
}
|
|
35
|
-
interface ConsentBannerProps {
|
|
36
|
-
/**
|
|
37
|
-
* Array of consent options to display
|
|
38
|
-
*/
|
|
39
|
-
options: ConsentOption[];
|
|
40
|
-
/**
|
|
41
|
-
* Callback function called when user saves their consent choices
|
|
42
|
-
*/
|
|
43
|
-
onSave: (settings: ConsentSettings) => void;
|
|
44
|
-
/**
|
|
45
|
-
* Title displayed on the banner
|
|
46
|
-
* @default "We Value Your Privacy"
|
|
47
|
-
*/
|
|
48
|
-
title?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Description text displayed on the banner
|
|
51
|
-
* @default "We use cookies and similar technologies to provide our services and enhance your experience. Your consent is collected in accordance with NDPA Sections 25-26."
|
|
52
|
-
*/
|
|
53
|
-
description?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Text for the accept all button
|
|
56
|
-
* @default "Accept All"
|
|
57
|
-
*/
|
|
58
|
-
acceptAllButtonText?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Text for the reject all button
|
|
61
|
-
* @default "Reject All"
|
|
62
|
-
*/
|
|
63
|
-
rejectAllButtonText?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Text for the customize button
|
|
66
|
-
* @default "Customize"
|
|
67
|
-
*/
|
|
68
|
-
customizeButtonText?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Text for the save button
|
|
71
|
-
* @default "Save Preferences"
|
|
72
|
-
*/
|
|
73
|
-
saveButtonText?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Position of the banner.
|
|
76
|
-
* 'top', 'bottom', and 'center' render via a portal to document.body
|
|
77
|
-
* with fixed positioning so the banner overlays the page.
|
|
78
|
-
* 'inline' renders in the normal DOM tree without a portal.
|
|
79
|
-
* @default "bottom"
|
|
80
|
-
*/
|
|
81
|
-
position?: 'top' | 'bottom' | 'center' | 'inline';
|
|
82
|
-
/**
|
|
83
|
-
* z-index applied to the fixed-position banner.
|
|
84
|
-
* Ignored when position is 'inline'.
|
|
85
|
-
* @default 9999
|
|
86
|
-
*/
|
|
87
|
-
zIndex?: number;
|
|
88
|
-
/**
|
|
89
|
-
* Version of the consent form
|
|
90
|
-
* @default "1.0"
|
|
91
|
-
*/
|
|
92
|
-
version?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Whether to show the banner
|
|
95
|
-
* If not provided, the banner will be shown if no consent has been saved
|
|
96
|
-
*/
|
|
97
|
-
show?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Storage key for consent settings
|
|
100
|
-
* @default "ndpr_consent"
|
|
101
|
-
*/
|
|
102
|
-
storageKey?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Whether the banner manages its own localStorage persistence.
|
|
105
|
-
* Set to false when an external storage mechanism (e.g., ConsentStorage)
|
|
106
|
-
* is responsible for persisting consent settings under the same key.
|
|
107
|
-
* This avoids race conditions where two writers target the same storage key.
|
|
108
|
-
* @default true
|
|
109
|
-
*/
|
|
110
|
-
manageStorage?: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* Custom CSS class for the banner
|
|
113
|
-
*/
|
|
13
|
+
interface SaveButtonProps {
|
|
14
|
+
children?: React__default.ReactNode;
|
|
114
15
|
className?: string;
|
|
115
|
-
/**
|
|
116
|
-
* Custom CSS class for the buttons
|
|
117
|
-
*/
|
|
118
|
-
buttonClassName?: string;
|
|
119
|
-
/**
|
|
120
|
-
* Custom CSS class for the primary button
|
|
121
|
-
*/
|
|
122
|
-
primaryButtonClassName?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Custom CSS class for the secondary button
|
|
125
|
-
*/
|
|
126
|
-
secondaryButtonClassName?: string;
|
|
127
|
-
/**
|
|
128
|
-
* Object of CSS class overrides keyed by semantic section name.
|
|
129
|
-
* Takes priority over buttonClassName / primaryButtonClassName / secondaryButtonClassName.
|
|
130
|
-
*/
|
|
131
|
-
classNames?: ConsentBannerClassNames;
|
|
132
|
-
/**
|
|
133
|
-
* When true, all default Tailwind classes are removed so consumers
|
|
134
|
-
* can style from scratch using classNames.
|
|
135
|
-
*/
|
|
136
16
|
unstyled?: boolean;
|
|
137
|
-
|
|
138
|
-
* Optional analytics callback fired on each user interaction.
|
|
139
|
-
* Called when the banner is shown, accepted, rejected, customized, or dismissed.
|
|
140
|
-
*/
|
|
141
|
-
onAnalytics?: (event: ConsentAnalyticsEvent) => void;
|
|
17
|
+
consents?: Record<string, boolean>;
|
|
142
18
|
}
|
|
143
|
-
|
|
144
|
-
* Consent banner component. Implements NDPA Sections 25-26 consent requirements
|
|
145
|
-
* for obtaining and managing data subject consent.
|
|
146
|
-
*/
|
|
147
|
-
declare const ConsentBanner: React.FC<ConsentBannerProps>;
|
|
19
|
+
declare const SaveButton: React__default.FC<SaveButtonProps>;
|
|
148
20
|
|
|
149
|
-
interface
|
|
150
|
-
|
|
151
|
-
header?: string;
|
|
152
|
-
title?: string;
|
|
153
|
-
description?: string;
|
|
154
|
-
optionsList?: string;
|
|
155
|
-
optionItem?: string;
|
|
156
|
-
toggle?: string;
|
|
157
|
-
saveButton?: string;
|
|
158
|
-
resetButton?: string;
|
|
159
|
-
/** Alias for saveButton */
|
|
160
|
-
primaryButton?: string;
|
|
161
|
-
/** Alias for resetButton */
|
|
162
|
-
secondaryButton?: string;
|
|
163
|
-
}
|
|
164
|
-
interface ConsentManagerProps {
|
|
165
|
-
/**
|
|
166
|
-
* Array of consent options to display
|
|
167
|
-
*/
|
|
168
|
-
options: ConsentOption[];
|
|
169
|
-
/**
|
|
170
|
-
* Current consent settings
|
|
171
|
-
*/
|
|
172
|
-
settings?: ConsentSettings;
|
|
173
|
-
/**
|
|
174
|
-
* Callback function called when user saves their consent choices
|
|
175
|
-
*/
|
|
176
|
-
onSave: (settings: ConsentSettings) => void;
|
|
177
|
-
/**
|
|
178
|
-
* Title displayed in the manager
|
|
179
|
-
* @default "Manage Your Privacy Settings"
|
|
180
|
-
*/
|
|
181
|
-
title?: string;
|
|
182
|
-
/**
|
|
183
|
-
* Description text displayed in the manager
|
|
184
|
-
* @default "Update your consent preferences at any time. Required cookies cannot be disabled as they are necessary for the website to function. Consent management is provided in accordance with NDPA Sections 25-26."
|
|
185
|
-
*/
|
|
186
|
-
description?: string;
|
|
187
|
-
/**
|
|
188
|
-
* Text for the save button
|
|
189
|
-
* @default "Save Preferences"
|
|
190
|
-
*/
|
|
191
|
-
saveButtonText?: string;
|
|
192
|
-
/**
|
|
193
|
-
* Text for the reset button
|
|
194
|
-
* @default "Reset to Defaults"
|
|
195
|
-
*/
|
|
196
|
-
resetButtonText?: string;
|
|
197
|
-
/**
|
|
198
|
-
* Version of the consent form
|
|
199
|
-
* @default "1.0"
|
|
200
|
-
*/
|
|
201
|
-
version?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Custom CSS class for the manager
|
|
204
|
-
*/
|
|
21
|
+
interface RejectButtonProps {
|
|
22
|
+
children?: React__default.ReactNode;
|
|
205
23
|
className?: string;
|
|
206
|
-
/**
|
|
207
|
-
* Custom CSS class for the buttons
|
|
208
|
-
*/
|
|
209
|
-
buttonClassName?: string;
|
|
210
|
-
/**
|
|
211
|
-
* Custom CSS class for the primary button
|
|
212
|
-
*/
|
|
213
|
-
primaryButtonClassName?: string;
|
|
214
|
-
/**
|
|
215
|
-
* Custom CSS class for the secondary button
|
|
216
|
-
*/
|
|
217
|
-
secondaryButtonClassName?: string;
|
|
218
|
-
/**
|
|
219
|
-
* Object of CSS class overrides keyed by semantic section name.
|
|
220
|
-
* Takes priority over buttonClassName / primaryButtonClassName / secondaryButtonClassName.
|
|
221
|
-
*/
|
|
222
|
-
classNames?: ConsentManagerClassNames;
|
|
223
|
-
/**
|
|
224
|
-
* When true, all default Tailwind classes are removed so consumers
|
|
225
|
-
* can style from scratch using classNames.
|
|
226
|
-
*/
|
|
227
24
|
unstyled?: boolean;
|
|
228
|
-
/**
|
|
229
|
-
* Whether to show a success message after saving
|
|
230
|
-
* @default true
|
|
231
|
-
*/
|
|
232
|
-
showSuccessMessage?: boolean;
|
|
233
|
-
/**
|
|
234
|
-
* Success message to display after saving
|
|
235
|
-
* @default "Your preferences have been saved."
|
|
236
|
-
*/
|
|
237
|
-
successMessage?: string;
|
|
238
|
-
/**
|
|
239
|
-
* Duration to show the success message (in milliseconds)
|
|
240
|
-
* @default 3000
|
|
241
|
-
*/
|
|
242
|
-
successMessageDuration?: number;
|
|
243
25
|
}
|
|
244
|
-
|
|
245
|
-
* Consent management component. Implements NDPA Sections 25-26 consent requirements,
|
|
246
|
-
* allowing data subjects to review and update their consent preferences.
|
|
247
|
-
*/
|
|
248
|
-
declare const ConsentManager: React.FC<ConsentManagerProps>;
|
|
26
|
+
declare const RejectButton: React__default.FC<RejectButtonProps>;
|
|
249
27
|
|
|
250
|
-
interface
|
|
251
|
-
|
|
28
|
+
interface AcceptButtonProps {
|
|
29
|
+
children?: React__default.ReactNode;
|
|
30
|
+
className?: string;
|
|
31
|
+
unstyled?: boolean;
|
|
252
32
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
* Callback function called when settings are loaded from storage
|
|
264
|
-
*/
|
|
265
|
-
onLoad?: (settings: ConsentSettings | null) => void;
|
|
266
|
-
/**
|
|
267
|
-
* Callback function called when settings are saved to storage
|
|
268
|
-
*/
|
|
269
|
-
onSave?: (settings: ConsentSettings) => void;
|
|
270
|
-
/**
|
|
271
|
-
* Whether to automatically save settings to storage
|
|
272
|
-
* @default true
|
|
273
|
-
*/
|
|
274
|
-
autoSave?: boolean;
|
|
275
|
-
/**
|
|
276
|
-
* Whether to automatically load settings from storage on mount
|
|
277
|
-
* @default true
|
|
278
|
-
*/
|
|
279
|
-
autoLoad?: boolean;
|
|
280
|
-
/**
|
|
281
|
-
* Object of CSS class overrides keyed by semantic section name.
|
|
282
|
-
*/
|
|
283
|
-
classNames?: ConsentStorageClassNames;
|
|
284
|
-
/**
|
|
285
|
-
* When true, all default classes are removed so consumers
|
|
286
|
-
* can style from scratch using classNames.
|
|
287
|
-
*/
|
|
33
|
+
declare const AcceptButton: React__default.FC<AcceptButtonProps>;
|
|
34
|
+
|
|
35
|
+
interface OptionListProps {
|
|
36
|
+
classNames?: {
|
|
37
|
+
root?: string;
|
|
38
|
+
optionItem?: string;
|
|
39
|
+
optionCheckbox?: string;
|
|
40
|
+
optionLabel?: string;
|
|
41
|
+
optionDescription?: string;
|
|
42
|
+
};
|
|
288
43
|
unstyled?: boolean;
|
|
289
|
-
/**
|
|
290
|
-
* Children to render
|
|
291
|
-
* Can be either React nodes or a render prop function that receives storage methods
|
|
292
|
-
*/
|
|
293
|
-
children?: React.ReactNode | ((props: {
|
|
294
|
-
loadSettings: () => ConsentSettings | null;
|
|
295
|
-
saveSettings: (settings: ConsentSettings) => void;
|
|
296
|
-
clearSettings: () => void;
|
|
297
|
-
loaded: boolean;
|
|
298
|
-
}) => React.ReactNode);
|
|
299
44
|
}
|
|
300
|
-
declare const
|
|
45
|
+
declare const OptionList: React__default.FC<OptionListProps>;
|
|
46
|
+
|
|
47
|
+
interface ConsentProviderProps {
|
|
48
|
+
options: ConsentOption[];
|
|
49
|
+
adapter?: StorageAdapter<ConsentSettings>;
|
|
50
|
+
version?: string;
|
|
51
|
+
onChange?: (settings: ConsentSettings) => void;
|
|
52
|
+
children: React__default.ReactNode;
|
|
53
|
+
}
|
|
54
|
+
declare const ConsentProvider: React__default.FC<ConsentProviderProps>;
|
|
55
|
+
|
|
56
|
+
declare const Consent: {
|
|
57
|
+
Provider: React$1.FC<ConsentProviderProps>;
|
|
58
|
+
OptionList: React$1.FC<OptionListProps>;
|
|
59
|
+
AcceptButton: React$1.FC<AcceptButtonProps>;
|
|
60
|
+
RejectButton: React$1.FC<RejectButtonProps>;
|
|
61
|
+
SaveButton: React$1.FC<SaveButtonProps>;
|
|
62
|
+
Banner: React$1.FC<ConsentBannerProps>;
|
|
63
|
+
Settings: React$1.FC<ConsentManagerProps>;
|
|
64
|
+
Storage: ({ settings, storageOptions, onLoad, onSave, autoSave, autoLoad, classNames, unstyled, children }: ConsentStorageProps) => React.ReactElement | null;
|
|
65
|
+
};
|
|
301
66
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
67
|
+
interface ConsentContextValue {
|
|
68
|
+
options: ConsentOption[];
|
|
69
|
+
settings: ConsentSettings | null;
|
|
70
|
+
hasConsent: (optionId: string) => boolean;
|
|
71
|
+
updateConsent: (consents: Record<string, boolean>) => void;
|
|
72
|
+
acceptAll: () => void;
|
|
73
|
+
rejectAll: () => void;
|
|
74
|
+
shouldShowBanner: boolean;
|
|
75
|
+
isValid: boolean;
|
|
76
|
+
validationErrors: string[];
|
|
77
|
+
resetConsent: () => void;
|
|
78
|
+
isLoading: boolean;
|
|
79
|
+
}
|
|
80
|
+
declare function useConsentCompound(): ConsentContextValue;
|
|
309
81
|
|
|
310
|
-
export {
|
|
82
|
+
export { Consent, AcceptButton as ConsentAcceptButton, ConsentOption, OptionList as ConsentOptionList, ConsentProvider, type ConsentProviderProps, RejectButton as ConsentRejectButton, SaveButton as ConsentSaveButton, ConsentSettings, StorageAdapter, useConsentCompound };
|
package/dist/consent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkFR7ZYZXB_js=require('./chunk-FR7ZYZXB.js'),chunkUOSEH6DC_js=require('./chunk-UOSEH6DC.js'),chunkMJGOLP5M_js=require('./chunk-MJGOLP5M.js'),chunk5VMHKNJY_js=require('./chunk-5VMHKNJY.js');require('./chunk-3F34NACG.js');var chunkY34DQYS7_js=require('./chunk-Y34DQYS7.js'),chunkE64TU6IU_js=require('./chunk-E64TU6IU.js');require('./chunk-UK656RCG.js');var chunkMQFZHA2D_js=require('./chunk-MQFZHA2D.js'),react=require('react'),jsxRuntime=require('react/jsx-runtime');var R=react.createContext(null);function s(){let t=react.useContext(R);if(!t)throw new Error("Consent compound components must be wrapped in <Consent.Provider>. Example: <Consent.Provider options={...}><Consent.Banner /></Consent.Provider>");return t}var x=({options:t,adapter:e,version:p,onChange:r,children:c})=>{let d=chunk5VMHKNJY_js.a({options:t,adapter:e,version:p,onChange:r}),o=chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},d),{options:t});return jsxRuntime.jsx(R.Provider,{value:o,children:c})};var v=({classNames:t,unstyled:e})=>{let{options:p,settings:r}=s(),[c,d]=react.useState(()=>{let o={};return p.forEach(a=>{var i,A;o[a.id]=(A=(i=r==null?void 0:r.consents[a.id])!=null?i:a.defaultValue)!=null?A:false;}),o});return jsxRuntime.jsx("div",{className:chunkE64TU6IU_js.a("space-y-3",t==null?void 0:t.root,e),"data-ndpr-component":"consent-option-list",children:p.map(o=>jsxRuntime.jsxs("div",{className:chunkE64TU6IU_js.a("flex items-start",t==null?void 0:t.optionItem,e),children:[jsxRuntime.jsx("div",{className:"flex items-center h-5",children:jsxRuntime.jsx("input",{id:`consent-${o.id}`,type:"checkbox",checked:c[o.id]||false,onChange:a=>d(i=>chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},i),{[o.id]:a.target.checked})),disabled:o.required,className:chunkE64TU6IU_js.a("h-4 w-4 rounded border-gray-300 text-[rgb(var(--ndpr-primary))] focus:ring-[rgb(var(--ndpr-ring))]",t==null?void 0:t.optionCheckbox,e),"aria-label":o.label})}),jsxRuntime.jsxs("div",{className:"ml-3 text-sm",children:[jsxRuntime.jsxs("label",{htmlFor:`consent-${o.id}`,className:chunkE64TU6IU_js.a("font-medium",t==null?void 0:t.optionLabel,e),children:[o.label," ",o.required&&jsxRuntime.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntime.jsx("p",{className:chunkE64TU6IU_js.a("text-gray-600 dark:text-gray-400",t==null?void 0:t.optionDescription,e),children:o.description})]})]},o.id))})};var b=({children:t,className:e,unstyled:p})=>{let{acceptAll:r}=s();return jsxRuntime.jsx("button",{onClick:r,className:chunkE64TU6IU_js.a("px-4 py-2 bg-[rgb(var(--ndpr-primary))] text-[rgb(var(--ndpr-primary-foreground))] rounded hover:bg-[rgb(var(--ndpr-primary-hover))]",e,p),"data-ndpr-component":"consent-accept-button",children:t!=null?t:"Accept All"})};var y=({children:t,className:e,unstyled:p})=>{let{rejectAll:r}=s();return jsxRuntime.jsx("button",{onClick:r,className:chunkE64TU6IU_js.a("px-4 py-2 bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-white rounded hover:bg-gray-300 dark:hover:bg-gray-600",e,p),"data-ndpr-component":"consent-reject-button",children:t!=null?t:"Reject All"})};var B=({children:t,className:e,unstyled:p,consents:r})=>{let{updateConsent:c,options:d}=s();return jsxRuntime.jsx("button",{onClick:()=>{if(r)c(r);else {let a={};d.forEach(i=>{a[i.id]=i.required||false;}),c(a);}},className:chunkE64TU6IU_js.a("px-4 py-2 bg-[rgb(var(--ndpr-primary))] text-[rgb(var(--ndpr-primary-foreground))] rounded hover:bg-[rgb(var(--ndpr-primary-hover))]",e,p),"data-ndpr-component":"consent-save-button",children:t!=null?t:"Save Preferences"})};var D={Provider:x,OptionList:v,AcceptButton:b,RejectButton:y,SaveButton:B,Banner:chunkUOSEH6DC_js.a,Settings:chunkFR7ZYZXB_js.a,Storage:chunkFR7ZYZXB_js.b};Object.defineProperty(exports,"ConsentManager",{enumerable:true,get:function(){return chunkFR7ZYZXB_js.a}});Object.defineProperty(exports,"ConsentStorage",{enumerable:true,get:function(){return chunkFR7ZYZXB_js.b}});Object.defineProperty(exports,"ConsentBanner",{enumerable:true,get:function(){return chunkUOSEH6DC_js.a}});Object.defineProperty(exports,"appendAuditEntry",{enumerable:true,get:function(){return chunkMJGOLP5M_js.c}});Object.defineProperty(exports,"createAuditEntry",{enumerable:true,get:function(){return chunkMJGOLP5M_js.a}});Object.defineProperty(exports,"getAuditLog",{enumerable:true,get:function(){return chunkMJGOLP5M_js.b}});Object.defineProperty(exports,"useConsent",{enumerable:true,get:function(){return chunk5VMHKNJY_js.a}});Object.defineProperty(exports,"validateConsent",{enumerable:true,get:function(){return chunkY34DQYS7_js.a}});Object.defineProperty(exports,"validateConsentOptions",{enumerable:true,get:function(){return chunkY34DQYS7_js.b}});Object.defineProperty(exports,"resolveClass",{enumerable:true,get:function(){return chunkE64TU6IU_js.a}});exports.Consent=D;exports.ConsentAcceptButton=b;exports.ConsentOptionList=v;exports.ConsentProvider=x;exports.ConsentRejectButton=y;exports.ConsentSaveButton=B;exports.useConsentCompound=s;//# sourceMappingURL=consent.js.map
|
|
2
2
|
//# sourceMappingURL=consent.js.map
|
package/dist/consent.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import {b as b$1,a}from'./chunk-27NYSWUG.mjs';export{a as ConsentManager,b as ConsentStorage}from'./chunk-27NYSWUG.mjs';import {a as a$1}from'./chunk-7F5F5YWI.mjs';export{a as ConsentBanner}from'./chunk-7F5F5YWI.mjs';export{c as appendAuditEntry,a as createAuditEntry,b as getAuditLog}from'./chunk-P3PULLYP.mjs';import {a as a$2}from'./chunk-G26I6MP5.mjs';export{a as useConsent}from'./chunk-G26I6MP5.mjs';import'./chunk-YJCGEOLO.mjs';export{a as validateConsent,b as validateConsentOptions}from'./chunk-GIV2OHE6.mjs';import {a as a$4}from'./chunk-AYKLAEOU.mjs';export{a as resolveClass}from'./chunk-AYKLAEOU.mjs';import'./chunk-SBNAMPAP.mjs';import {b as b$2,a as a$3}from'./chunk-WWT2ZSNU.mjs';import {createContext,useContext,useState}from'react';import {jsx,jsxs}from'react/jsx-runtime';var R=createContext(null);function s(){let t=useContext(R);if(!t)throw new Error("Consent compound components must be wrapped in <Consent.Provider>. Example: <Consent.Provider options={...}><Consent.Banner /></Consent.Provider>");return t}var x=({options:t,adapter:e,version:p,onChange:r,children:c})=>{let d=a$2({options:t,adapter:e,version:p,onChange:r}),o=b$2(a$3({},d),{options:t});return jsx(R.Provider,{value:o,children:c})};var v=({classNames:t,unstyled:e})=>{let{options:p,settings:r}=s(),[c,d]=useState(()=>{let o={};return p.forEach(a=>{var i,A;o[a.id]=(A=(i=r==null?void 0:r.consents[a.id])!=null?i:a.defaultValue)!=null?A:false;}),o});return jsx("div",{className:a$4("space-y-3",t==null?void 0:t.root,e),"data-ndpr-component":"consent-option-list",children:p.map(o=>jsxs("div",{className:a$4("flex items-start",t==null?void 0:t.optionItem,e),children:[jsx("div",{className:"flex items-center h-5",children:jsx("input",{id:`consent-${o.id}`,type:"checkbox",checked:c[o.id]||false,onChange:a=>d(i=>b$2(a$3({},i),{[o.id]:a.target.checked})),disabled:o.required,className:a$4("h-4 w-4 rounded border-gray-300 text-[rgb(var(--ndpr-primary))] focus:ring-[rgb(var(--ndpr-ring))]",t==null?void 0:t.optionCheckbox,e),"aria-label":o.label})}),jsxs("div",{className:"ml-3 text-sm",children:[jsxs("label",{htmlFor:`consent-${o.id}`,className:a$4("font-medium",t==null?void 0:t.optionLabel,e),children:[o.label," ",o.required&&jsx("span",{className:"text-red-500",children:"*"})]}),jsx("p",{className:a$4("text-gray-600 dark:text-gray-400",t==null?void 0:t.optionDescription,e),children:o.description})]})]},o.id))})};var b=({children:t,className:e,unstyled:p})=>{let{acceptAll:r}=s();return jsx("button",{onClick:r,className:a$4("px-4 py-2 bg-[rgb(var(--ndpr-primary))] text-[rgb(var(--ndpr-primary-foreground))] rounded hover:bg-[rgb(var(--ndpr-primary-hover))]",e,p),"data-ndpr-component":"consent-accept-button",children:t!=null?t:"Accept All"})};var y=({children:t,className:e,unstyled:p})=>{let{rejectAll:r}=s();return jsx("button",{onClick:r,className:a$4("px-4 py-2 bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-white rounded hover:bg-gray-300 dark:hover:bg-gray-600",e,p),"data-ndpr-component":"consent-reject-button",children:t!=null?t:"Reject All"})};var B=({children:t,className:e,unstyled:p,consents:r})=>{let{updateConsent:c,options:d}=s();return jsx("button",{onClick:()=>{if(r)c(r);else {let a={};d.forEach(i=>{a[i.id]=i.required||false;}),c(a);}},className:a$4("px-4 py-2 bg-[rgb(var(--ndpr-primary))] text-[rgb(var(--ndpr-primary-foreground))] rounded hover:bg-[rgb(var(--ndpr-primary-hover))]",e,p),"data-ndpr-component":"consent-save-button",children:t!=null?t:"Save Preferences"})};var D={Provider:x,OptionList:v,AcceptButton:b,RejectButton:y,SaveButton:B,Banner:a$1,Settings:a,Storage:b$1};export{D as Consent,b as ConsentAcceptButton,v as ConsentOptionList,x as ConsentProvider,y as ConsentRejectButton,B as ConsentSaveButton,s as useConsentCompound};//# sourceMappingURL=consent.mjs.map
|
|
2
2
|
//# sourceMappingURL=consent.mjs.map
|
package/dist/core.d.mts
CHANGED
|
@@ -4,15 +4,18 @@ export { D as DPIAQuestion, a as DPIAResult, b as DPIARisk, c as DPIASection } f
|
|
|
4
4
|
export { B as BreachCategory, a as BreachReport, N as NotificationRequirement, R as RegulatoryNotification, b as RiskAssessment } from './breach-Eu9byel8.mjs';
|
|
5
5
|
export { O as OrganizationInfo, P as PolicySection, a as PolicyTemplate, b as PolicyVariable, c as PrivacyPolicy } from './privacy-Ca6te9Ir.mjs';
|
|
6
6
|
export { L as LawfulBasis, a as LawfulBasisSummary, b as LegitimateInterestAssessment, P as ProcessingActivity, S as SensitiveDataCondition } from './lawful-basis-Cv1VmDLn.mjs';
|
|
7
|
-
export { A as AdequacyStatus, C as CrossBorderSummary, a as CrossBorderTransfer, T as TransferImpactAssessment, b as TransferMechanism
|
|
8
|
-
export { P as ProcessingRecord, R as
|
|
7
|
+
export { A as AdequacyStatus, C as CrossBorderSummary, a as CrossBorderTransfer, T as TransferImpactAssessment, b as TransferMechanism } from './cross-border-UyT00llA.mjs';
|
|
8
|
+
export { P as ProcessingRecord, R as ROPASummary, a as RecordOfProcessingActivities } from './ropa-CFHuT7jE.mjs';
|
|
9
9
|
export { L as LawfulBasisComplianceGap, a as LawfulBasisValidationResult, b as assessComplianceGaps, g as generateLawfulBasisSummary, c as getLawfulBasisDescription, v as validateProcessingActivity } from './lawful-basis-C2eGaoHM.mjs';
|
|
10
|
-
|
|
10
|
+
export { T as TransferRiskResult, a as TransferValidationResult, b as assessTransferRisk, g as getTransferMechanismDescription, i as isNDPCApprovalRequired, v as validateTransfer } from './cross-border-BBi9rZyO.mjs';
|
|
11
|
+
export { R as ROPAComplianceGap, a as ROPAValidationResult, e as exportROPAToCSV, g as generateROPASummary, i as identifyComplianceGaps, v as validateProcessingRecord } from './ropa-NIgxd8uP.mjs';
|
|
12
|
+
import React__default from 'react';
|
|
11
13
|
export { C as ConsentAuditEntry, a as appendAuditEntry, c as createAuditEntry, g as getAuditLog, v as validateConsent, b as validateConsentOptions } from './consent-audit-BdByjYlM.mjs';
|
|
12
14
|
export { f as formatDSRRequest } from './dsr-D_eTNc4S.mjs';
|
|
13
15
|
export { a as assessDPIARisk } from './dpia-CUfOmzvX.mjs';
|
|
14
16
|
export { c as calculateBreachSeverity } from './breach-B_-6lDqS.mjs';
|
|
15
17
|
export { D as DEFAULT_POLICY_SECTIONS, a as DEFAULT_POLICY_VARIABLES, c as createBusinessPolicyTemplate, g as generatePolicyText } from './policy-templates-DMsPwOSZ.mjs';
|
|
18
|
+
export { C as ComplianceInput, a as ComplianceRating, b as ComplianceReport, E as EffortLevel, M as ModuleScore, R as Recommendation, c as RecommendationPriority, d as RegulatoryReference, g as getComplianceScore } from './compliance-score-racQe_E_.mjs';
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
21
|
* Configuration for the NDPR toolkit provider.
|
|
@@ -45,8 +48,8 @@ interface NDPRConfig {
|
|
|
45
48
|
* (`--ndpr-primary`, `--ndpr-primary-hover`, `--ndpr-primary-foreground`)
|
|
46
49
|
* are set on the wrapping element so components can reference them.
|
|
47
50
|
*/
|
|
48
|
-
declare const NDPRProvider:
|
|
49
|
-
children:
|
|
51
|
+
declare const NDPRProvider: React__default.FC<NDPRConfig & {
|
|
52
|
+
children: React__default.ReactNode;
|
|
50
53
|
}>;
|
|
51
54
|
/**
|
|
52
55
|
* Returns the current NDPR configuration from the nearest `NDPRProvider`.
|
package/dist/core.d.ts
CHANGED
|
@@ -4,15 +4,18 @@ export { D as DPIAQuestion, a as DPIAResult, b as DPIARisk, c as DPIASection } f
|
|
|
4
4
|
export { B as BreachCategory, a as BreachReport, N as NotificationRequirement, R as RegulatoryNotification, b as RiskAssessment } from './breach-Eu9byel8.js';
|
|
5
5
|
export { O as OrganizationInfo, P as PolicySection, a as PolicyTemplate, b as PolicyVariable, c as PrivacyPolicy } from './privacy-Ca6te9Ir.js';
|
|
6
6
|
export { L as LawfulBasis, a as LawfulBasisSummary, b as LegitimateInterestAssessment, P as ProcessingActivity, S as SensitiveDataCondition } from './lawful-basis-Cv1VmDLn.js';
|
|
7
|
-
export { A as AdequacyStatus, C as CrossBorderSummary, a as CrossBorderTransfer, T as TransferImpactAssessment, b as TransferMechanism
|
|
8
|
-
export { P as ProcessingRecord, R as
|
|
7
|
+
export { A as AdequacyStatus, C as CrossBorderSummary, a as CrossBorderTransfer, T as TransferImpactAssessment, b as TransferMechanism } from './cross-border-UyT00llA.js';
|
|
8
|
+
export { P as ProcessingRecord, R as ROPASummary, a as RecordOfProcessingActivities } from './ropa-BDTM06tr.js';
|
|
9
9
|
export { L as LawfulBasisComplianceGap, a as LawfulBasisValidationResult, b as assessComplianceGaps, g as generateLawfulBasisSummary, c as getLawfulBasisDescription, v as validateProcessingActivity } from './lawful-basis-BEyI0kGg.js';
|
|
10
|
-
|
|
10
|
+
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';
|
|
11
|
+
export { R as ROPAComplianceGap, a as ROPAValidationResult, e as exportROPAToCSV, g as generateROPASummary, i as identifyComplianceGaps, v as validateProcessingRecord } from './ropa-CyynscU6.js';
|
|
12
|
+
import React__default from 'react';
|
|
11
13
|
export { C as ConsentAuditEntry, a as appendAuditEntry, c as createAuditEntry, g as getAuditLog, v as validateConsent, b as validateConsentOptions } from './consent-audit-DhbfMR0n.js';
|
|
12
14
|
export { f as formatDSRRequest } from './dsr-pNtVb1BK.js';
|
|
13
15
|
export { a as assessDPIARisk } from './dpia-B0Pok5us.js';
|
|
14
16
|
export { c as calculateBreachSeverity } from './breach-CzXqSsaY.js';
|
|
15
17
|
export { D as DEFAULT_POLICY_SECTIONS, a as DEFAULT_POLICY_VARIABLES, c as createBusinessPolicyTemplate, g as generatePolicyText } from './policy-templates-CIKcV0i1.js';
|
|
18
|
+
export { C as ComplianceInput, a as ComplianceRating, b as ComplianceReport, E as EffortLevel, M as ModuleScore, R as Recommendation, c as RecommendationPriority, d as RegulatoryReference, g as getComplianceScore } from './compliance-score-racQe_E_.js';
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
21
|
* Configuration for the NDPR toolkit provider.
|
|
@@ -45,8 +48,8 @@ interface NDPRConfig {
|
|
|
45
48
|
* (`--ndpr-primary`, `--ndpr-primary-hover`, `--ndpr-primary-foreground`)
|
|
46
49
|
* are set on the wrapping element so components can reference them.
|
|
47
50
|
*/
|
|
48
|
-
declare const NDPRProvider:
|
|
49
|
-
children:
|
|
51
|
+
declare const NDPRProvider: React__default.FC<NDPRConfig & {
|
|
52
|
+
children: React__default.ReactNode;
|
|
50
53
|
}>;
|
|
51
54
|
/**
|
|
52
55
|
* Returns the current NDPR configuration from the nearest `NDPRProvider`.
|
package/dist/core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkILCNDOBU_js=require('./chunk-ILCNDOBU.js'),chunkTDDAYVKK_js=require('./chunk-TDDAYVKK.js'),chunkIQF726GS_js=require('./chunk-IQF726GS.js'),chunkSWF3YVE5_js=require('./chunk-SWF3YVE5.js'),chunkMJGOLP5M_js=require('./chunk-MJGOLP5M.js'),chunkY34DQYS7_js=require('./chunk-Y34DQYS7.js'),chunkCMZTI7SG_js=require('./chunk-CMZTI7SG.js'),chunkSSGJREE3_js=require('./chunk-SSGJREE3.js'),chunkRYZEIDNR_js=require('./chunk-RYZEIDNR.js'),chunkEPF7J2FK_js=require('./chunk-EPF7J2FK.js'),chunk5RSOLEEP_js=require('./chunk-5RSOLEEP.js');require('./chunk-MQFZHA2D.js');Object.defineProperty(exports,"NDPRProvider",{enumerable:true,get:function(){return chunkILCNDOBU_js.a}});Object.defineProperty(exports,"useNDPRConfig",{enumerable:true,get:function(){return chunkILCNDOBU_js.b}});Object.defineProperty(exports,"assessComplianceGaps",{enumerable:true,get:function(){return chunkTDDAYVKK_js.c}});Object.defineProperty(exports,"generateLawfulBasisSummary",{enumerable:true,get:function(){return chunkTDDAYVKK_js.d}});Object.defineProperty(exports,"getLawfulBasisDescription",{enumerable:true,get:function(){return chunkTDDAYVKK_js.b}});Object.defineProperty(exports,"validateProcessingActivity",{enumerable:true,get:function(){return chunkTDDAYVKK_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}});Object.defineProperty(exports,"exportROPAToCSV",{enumerable:true,get:function(){return chunkSWF3YVE5_js.c}});Object.defineProperty(exports,"generateROPASummary",{enumerable:true,get:function(){return chunkSWF3YVE5_js.b}});Object.defineProperty(exports,"identifyComplianceGaps",{enumerable:true,get:function(){return chunkSWF3YVE5_js.d}});Object.defineProperty(exports,"validateProcessingRecord",{enumerable:true,get:function(){return chunkSWF3YVE5_js.a}});Object.defineProperty(exports,"appendAuditEntry",{enumerable:true,get:function(){return chunkMJGOLP5M_js.c}});Object.defineProperty(exports,"createAuditEntry",{enumerable:true,get:function(){return chunkMJGOLP5M_js.a}});Object.defineProperty(exports,"getAuditLog",{enumerable:true,get:function(){return chunkMJGOLP5M_js.b}});Object.defineProperty(exports,"validateConsent",{enumerable:true,get:function(){return chunkY34DQYS7_js.a}});Object.defineProperty(exports,"validateConsentOptions",{enumerable:true,get:function(){return chunkY34DQYS7_js.b}});Object.defineProperty(exports,"formatDSRRequest",{enumerable:true,get:function(){return chunkCMZTI7SG_js.a}});Object.defineProperty(exports,"assessDPIARisk",{enumerable:true,get:function(){return chunkSSGJREE3_js.a}});Object.defineProperty(exports,"calculateBreachSeverity",{enumerable:true,get:function(){return chunkRYZEIDNR_js.a}});Object.defineProperty(exports,"sanitizeInput",{enumerable:true,get:function(){return chunkEPF7J2FK_js.a}});Object.defineProperty(exports,"DEFAULT_POLICY_SECTIONS",{enumerable:true,get:function(){return chunk5RSOLEEP_js.b}});Object.defineProperty(exports,"DEFAULT_POLICY_VARIABLES",{enumerable:true,get:function(){return chunk5RSOLEEP_js.c}});Object.defineProperty(exports,"createBusinessPolicyTemplate",{enumerable:true,get:function(){return chunk5RSOLEEP_js.d}});Object.defineProperty(exports,"generatePolicyText",{enumerable:true,get:function(){return chunk5RSOLEEP_js.a}});//# sourceMappingURL=core.js.map
|
|
1
|
+
'use strict';var chunkILCNDOBU_js=require('./chunk-ILCNDOBU.js'),chunkVDZKGCAF_js=require('./chunk-VDZKGCAF.js'),chunkTDDAYVKK_js=require('./chunk-TDDAYVKK.js'),chunkIQF726GS_js=require('./chunk-IQF726GS.js'),chunkSWF3YVE5_js=require('./chunk-SWF3YVE5.js'),chunkMJGOLP5M_js=require('./chunk-MJGOLP5M.js'),chunkY34DQYS7_js=require('./chunk-Y34DQYS7.js'),chunkCMZTI7SG_js=require('./chunk-CMZTI7SG.js'),chunkSSGJREE3_js=require('./chunk-SSGJREE3.js'),chunkRYZEIDNR_js=require('./chunk-RYZEIDNR.js'),chunkEPF7J2FK_js=require('./chunk-EPF7J2FK.js'),chunk5RSOLEEP_js=require('./chunk-5RSOLEEP.js');require('./chunk-MQFZHA2D.js');Object.defineProperty(exports,"NDPRProvider",{enumerable:true,get:function(){return chunkILCNDOBU_js.a}});Object.defineProperty(exports,"useNDPRConfig",{enumerable:true,get:function(){return chunkILCNDOBU_js.b}});Object.defineProperty(exports,"getComplianceScore",{enumerable:true,get:function(){return chunkVDZKGCAF_js.a}});Object.defineProperty(exports,"assessComplianceGaps",{enumerable:true,get:function(){return chunkTDDAYVKK_js.c}});Object.defineProperty(exports,"generateLawfulBasisSummary",{enumerable:true,get:function(){return chunkTDDAYVKK_js.d}});Object.defineProperty(exports,"getLawfulBasisDescription",{enumerable:true,get:function(){return chunkTDDAYVKK_js.b}});Object.defineProperty(exports,"validateProcessingActivity",{enumerable:true,get:function(){return chunkTDDAYVKK_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}});Object.defineProperty(exports,"exportROPAToCSV",{enumerable:true,get:function(){return chunkSWF3YVE5_js.c}});Object.defineProperty(exports,"generateROPASummary",{enumerable:true,get:function(){return chunkSWF3YVE5_js.b}});Object.defineProperty(exports,"identifyComplianceGaps",{enumerable:true,get:function(){return chunkSWF3YVE5_js.d}});Object.defineProperty(exports,"validateProcessingRecord",{enumerable:true,get:function(){return chunkSWF3YVE5_js.a}});Object.defineProperty(exports,"appendAuditEntry",{enumerable:true,get:function(){return chunkMJGOLP5M_js.c}});Object.defineProperty(exports,"createAuditEntry",{enumerable:true,get:function(){return chunkMJGOLP5M_js.a}});Object.defineProperty(exports,"getAuditLog",{enumerable:true,get:function(){return chunkMJGOLP5M_js.b}});Object.defineProperty(exports,"validateConsent",{enumerable:true,get:function(){return chunkY34DQYS7_js.a}});Object.defineProperty(exports,"validateConsentOptions",{enumerable:true,get:function(){return chunkY34DQYS7_js.b}});Object.defineProperty(exports,"formatDSRRequest",{enumerable:true,get:function(){return chunkCMZTI7SG_js.a}});Object.defineProperty(exports,"assessDPIARisk",{enumerable:true,get:function(){return chunkSSGJREE3_js.a}});Object.defineProperty(exports,"calculateBreachSeverity",{enumerable:true,get:function(){return chunkRYZEIDNR_js.a}});Object.defineProperty(exports,"sanitizeInput",{enumerable:true,get:function(){return chunkEPF7J2FK_js.a}});Object.defineProperty(exports,"DEFAULT_POLICY_SECTIONS",{enumerable:true,get:function(){return chunk5RSOLEEP_js.b}});Object.defineProperty(exports,"DEFAULT_POLICY_VARIABLES",{enumerable:true,get:function(){return chunk5RSOLEEP_js.c}});Object.defineProperty(exports,"createBusinessPolicyTemplate",{enumerable:true,get:function(){return chunk5RSOLEEP_js.d}});Object.defineProperty(exports,"generatePolicyText",{enumerable:true,get:function(){return chunk5RSOLEEP_js.a}});//# sourceMappingURL=core.js.map
|
|
2
2
|
//# sourceMappingURL=core.js.map
|
package/dist/core.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as NDPRProvider,b as useNDPRConfig}from'./chunk-WSHSHIIM.mjs';export{c as assessComplianceGaps,d as generateLawfulBasisSummary,b as getLawfulBasisDescription,a as validateProcessingActivity}from'./chunk-TXBZPCGF.mjs';export{d as assessTransferRisk,b as getTransferMechanismDescription,a as isNDPCApprovalRequired,c as validateTransfer}from'./chunk-QKK5S54L.mjs';export{c as exportROPAToCSV,b as generateROPASummary,d as identifyComplianceGaps,a as validateProcessingRecord}from'./chunk-PYEX7DFR.mjs';export{c as appendAuditEntry,a as createAuditEntry,b as getAuditLog}from'./chunk-P3PULLYP.mjs';export{a as validateConsent,b as validateConsentOptions}from'./chunk-GIV2OHE6.mjs';export{a as formatDSRRequest}from'./chunk-2SYNHRP6.mjs';export{a as assessDPIARisk}from'./chunk-PGSA2O5P.mjs';export{a as calculateBreachSeverity}from'./chunk-RGYK4VAY.mjs';export{a as sanitizeInput}from'./chunk-FXTZDKDC.mjs';export{b as DEFAULT_POLICY_SECTIONS,c as DEFAULT_POLICY_VARIABLES,d as createBusinessPolicyTemplate,a as generatePolicyText}from'./chunk-CAB7O3GR.mjs';import'./chunk-WWT2ZSNU.mjs';//# sourceMappingURL=core.mjs.map
|
|
1
|
+
export{a as NDPRProvider,b as useNDPRConfig}from'./chunk-WSHSHIIM.mjs';export{a as getComplianceScore}from'./chunk-GPJVTGHR.mjs';export{c as assessComplianceGaps,d as generateLawfulBasisSummary,b as getLawfulBasisDescription,a as validateProcessingActivity}from'./chunk-TXBZPCGF.mjs';export{d as assessTransferRisk,b as getTransferMechanismDescription,a as isNDPCApprovalRequired,c as validateTransfer}from'./chunk-QKK5S54L.mjs';export{c as exportROPAToCSV,b as generateROPASummary,d as identifyComplianceGaps,a as validateProcessingRecord}from'./chunk-PYEX7DFR.mjs';export{c as appendAuditEntry,a as createAuditEntry,b as getAuditLog}from'./chunk-P3PULLYP.mjs';export{a as validateConsent,b as validateConsentOptions}from'./chunk-GIV2OHE6.mjs';export{a as formatDSRRequest}from'./chunk-2SYNHRP6.mjs';export{a as assessDPIARisk}from'./chunk-PGSA2O5P.mjs';export{a as calculateBreachSeverity}from'./chunk-RGYK4VAY.mjs';export{a as sanitizeInput}from'./chunk-FXTZDKDC.mjs';export{b as DEFAULT_POLICY_SECTIONS,c as DEFAULT_POLICY_VARIABLES,d as createBusinessPolicyTemplate,a as generatePolicyText}from'./chunk-CAB7O3GR.mjs';import'./chunk-WWT2ZSNU.mjs';//# sourceMappingURL=core.mjs.map
|
|
2
2
|
//# sourceMappingURL=core.mjs.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { a as CrossBorderTransfer, b as TransferMechanism } from './cross-border-UyT00llA.mjs';
|
|
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 };
|
|
@@ -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 };
|