@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.
- 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-Bgi6nz82.d.mts} +5 -7
- package/dist/{policy-D2_jh5-T.d.ts → PolicyExporter-BnvuFncj.d.ts} +5 -7
- 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/RegulatoryReportGenerator-BUYgzTTT.d.ts +282 -0
- package/dist/RegulatoryReportGenerator-DwcHcEFp.d.mts +282 -0
- 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 +36 -431
- package/dist/breach.d.ts +36 -431
- 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-3UWT64FI.mjs +2 -0
- package/dist/chunk-3V23O4ZJ.js +2 -0
- package/dist/chunk-3XAUN5IM.mjs +3 -0
- package/dist/chunk-44W4H2EY.js +2 -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-DQLDX5X6.js +316 -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-GCQRHMTQ.mjs +144 -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-JZKH5RMC.js +3 -0
- package/dist/chunk-KHRBU5K7.js +2 -0
- package/dist/chunk-LFNA6WYQ.mjs +2 -0
- package/dist/chunk-LU4PFST7.js +144 -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-TKBZRULW.mjs +316 -0
- package/dist/chunk-TVW6KBVV.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/chunk-ZQSX5ZHB.mjs +3 -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 +14 -48
- package/dist/core.d.ts +14 -48
- 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 +29 -300
- package/dist/dsr.d.ts +29 -300
- package/dist/dsr.js +1 -1
- package/dist/dsr.mjs +1 -1
- package/dist/hooks.d.mts +23 -10
- package/dist/hooks.d.ts +23 -10
- package/dist/hooks.js +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/index.d.mts +28 -19
- package/dist/index.d.ts +28 -19
- 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-engine-C-tShzZH.d.mts +154 -0
- package/dist/policy-engine-DSQpT55_.d.ts +154 -0
- package/dist/policy-sections-CfNVBLCh.d.mts +54 -0
- package/dist/policy-sections-DqH0iZRf.d.ts +54 -0
- package/dist/policy.d.mts +117 -4
- package/dist/policy.d.ts +117 -4
- package/dist/policy.js +1 -1
- package/dist/policy.mjs +1 -1
- package/dist/presets.d.mts +114 -0
- package/dist/presets.d.ts +114 -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/sanitize-9mOO_cJW.d.mts +147 -0
- package/dist/sanitize-9mOO_cJW.d.ts +147 -0
- 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/useAdaptivePolicyWizard-B9Op2gYM.d.ts +52 -0
- package/dist/useAdaptivePolicyWizard-N4eUM4Tj.d.mts +52 -0
- 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 +24 -3
- 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-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-ILCNDOBU.js +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-T44JQT2O.mjs +0 -2
- package/dist/chunk-TCJCE6WN.js +0 -2
- package/dist/chunk-VMJBW3EF.mjs +0 -2
- package/dist/chunk-WSHSHIIM.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/policy.d.mts
CHANGED
|
@@ -1,5 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { f as PolicyGeneratorProps, g as PolicyPreviewProps, h as PolicyExporterProps } from './PolicyExporter-Bgi6nz82.mjs';
|
|
2
|
+
export { P as PolicyExporter, b as PolicyGenerator, d as PolicyPreview } from './PolicyExporter-Bgi6nz82.mjs';
|
|
3
|
+
import { U as UsePrivacyPolicyReturn } from './useDefaultPrivacyPolicy-BsYttRey.mjs';
|
|
4
|
+
export { u as useDefaultPrivacyPolicy, a as usePrivacyPolicy } from './useDefaultPrivacyPolicy-BsYttRey.mjs';
|
|
3
5
|
export { D as DEFAULT_POLICY_SECTIONS, a as DEFAULT_POLICY_VARIABLES, c as createBusinessPolicyTemplate, g as generatePolicyText } from './policy-templates-DMsPwOSZ.mjs';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
import { a as PolicyTemplate, c as PrivacyPolicy } from './privacy-Ca6te9Ir.mjs';
|
|
7
|
+
export { O as OrganizationInfo, P as PolicySection, b as PolicyVariable } from './privacy-Ca6te9Ir.mjs';
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import React__default from 'react';
|
|
10
|
+
import { S as StorageAdapter } from './types-DK2CoKOC.mjs';
|
|
11
|
+
import { P as PolicyDraft, H as HTMLExportOptions, e as PDFExportOptions, f as DOCXExportOptions } from './policy-engine-C-tShzZH.mjs';
|
|
12
|
+
export { C as ComplianceGap, a as ComplianceResult, b as CustomSection, g as DEFAULT_DATA_CATEGORIES, D as DataCategory, I as Industry, O as OrgSize, h as ProcessingPurpose, T as TemplateContext, c as ThirdPartyProcessor, d as createDefaultContext } from './policy-engine-C-tShzZH.mjs';
|
|
13
|
+
export { U as UseAdaptivePolicyWizardOptions, a as UseAdaptivePolicyWizardReturn, u as useAdaptivePolicyWizard } from './useAdaptivePolicyWizard-N4eUM4Tj.mjs';
|
|
14
|
+
export { a as assemblePolicy, e as evaluatePolicyCompliance } from './policy-sections-CfNVBLCh.mjs';
|
|
15
|
+
|
|
16
|
+
interface PolicyProviderProps {
|
|
17
|
+
templates: PolicyTemplate[];
|
|
18
|
+
adapter?: StorageAdapter<PrivacyPolicy>;
|
|
19
|
+
storageKey?: string;
|
|
20
|
+
useLocalStorage?: boolean;
|
|
21
|
+
initialPolicy?: PrivacyPolicy;
|
|
22
|
+
onGenerate?: (policy: PrivacyPolicy) => void;
|
|
23
|
+
children: React__default.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
declare const PolicyProvider: React__default.FC<PolicyProviderProps>;
|
|
26
|
+
|
|
27
|
+
declare const Policy: {
|
|
28
|
+
Provider: React.FC<PolicyProviderProps>;
|
|
29
|
+
Generator: React.FC<PolicyGeneratorProps>;
|
|
30
|
+
Preview: React.FC<PolicyPreviewProps>;
|
|
31
|
+
Exporter: React.FC<PolicyExporterProps>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
interface PolicyContextValue extends UsePrivacyPolicyReturn {
|
|
35
|
+
templates: PolicyTemplate[];
|
|
36
|
+
}
|
|
37
|
+
declare function usePolicyCompound(): PolicyContextValue;
|
|
38
|
+
|
|
39
|
+
interface AdaptivePolicyWizardProps {
|
|
40
|
+
adapter?: StorageAdapter<PolicyDraft>;
|
|
41
|
+
onComplete?: (policy: PrivacyPolicy) => void;
|
|
42
|
+
classNames?: Record<string, string>;
|
|
43
|
+
unstyled?: boolean;
|
|
44
|
+
}
|
|
45
|
+
declare const AdaptivePolicyWizard: React__default.FC<AdaptivePolicyWizardProps>;
|
|
46
|
+
|
|
47
|
+
interface PolicyPageProps {
|
|
48
|
+
policy: PrivacyPolicy;
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* PolicyPage renders a full styled privacy policy page.
|
|
53
|
+
* HTML is generated internally by exportHTML from a typed PrivacyPolicy object
|
|
54
|
+
* and does not contain untrusted user input.
|
|
55
|
+
*/
|
|
56
|
+
declare const PolicyPage: React__default.FC<PolicyPageProps>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Export a PrivacyPolicy as a self-contained HTML string.
|
|
60
|
+
*
|
|
61
|
+
* The returned string includes:
|
|
62
|
+
* - An embedded `<style>` block (responsive, dark/light, print-friendly)
|
|
63
|
+
* - An `<article>` wrapper with semantic markup
|
|
64
|
+
* - A `<nav>` table of contents with anchor links
|
|
65
|
+
* - A `<section>` for every included policy section
|
|
66
|
+
* - A metadata footer (org name, effective date, version, generator credit)
|
|
67
|
+
* - Optional custom CSS injection via `options.customCSS`
|
|
68
|
+
*/
|
|
69
|
+
declare function exportHTML(policy: PrivacyPolicy, options?: HTMLExportOptions): string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Export a PrivacyPolicy as a clean Markdown string.
|
|
73
|
+
*
|
|
74
|
+
* Structure:
|
|
75
|
+
* ```
|
|
76
|
+
* # Policy Title
|
|
77
|
+
* _Effective: date | Version: X | Org Name_
|
|
78
|
+
*
|
|
79
|
+
* ## Table of Contents
|
|
80
|
+
* - [Section Title](#anchor)
|
|
81
|
+
*
|
|
82
|
+
* ## 1. Section Title
|
|
83
|
+
* Section content...
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
declare function exportMarkdown(policy: PrivacyPolicy): string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Export a PrivacyPolicy to a PDF Blob using jspdf (optional peer dependency).
|
|
90
|
+
*
|
|
91
|
+
* Features:
|
|
92
|
+
* - Optional cover page with title, organisation, date, version and compliance badge
|
|
93
|
+
* - Optional table of contents page
|
|
94
|
+
* - One section per heading, content reflowed to fit the page
|
|
95
|
+
* - Automatic page breaks
|
|
96
|
+
* - Page header (org name) and footer (page X of Y) on every page
|
|
97
|
+
* - PDF metadata (title, author, subject, keywords)
|
|
98
|
+
*
|
|
99
|
+
* @throws {Error} if the `jspdf` package is not installed
|
|
100
|
+
*/
|
|
101
|
+
declare function exportPDF(policy: PrivacyPolicy, options?: PDFExportOptions): Promise<Blob>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Export a PrivacyPolicy as a Word (.docx) Blob using the `docx` library
|
|
105
|
+
* (optional peer dependency).
|
|
106
|
+
*
|
|
107
|
+
* Features:
|
|
108
|
+
* - Title paragraph with large bold text
|
|
109
|
+
* - Organisation name + version subtitle
|
|
110
|
+
* - Optional table of contents placeholder heading
|
|
111
|
+
* - All included policy sections as Heading 1 + body paragraphs / bullet lists
|
|
112
|
+
* - Running header (org name) and page-number footer on every page
|
|
113
|
+
*
|
|
114
|
+
* @throws {Error} if the `docx` package is not installed
|
|
115
|
+
*/
|
|
116
|
+
declare function exportDOCX(policy: PrivacyPolicy, options?: DOCXExportOptions): Promise<Blob>;
|
|
117
|
+
|
|
118
|
+
export { AdaptivePolicyWizard, Policy, PolicyDraft, PolicyPage, PolicyProvider, type PolicyProviderProps, PolicyTemplate, PrivacyPolicy, StorageAdapter, exportDOCX, exportHTML, exportMarkdown, exportPDF, usePolicyCompound };
|
package/dist/policy.d.ts
CHANGED
|
@@ -1,5 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { f as PolicyGeneratorProps, g as PolicyPreviewProps, h as PolicyExporterProps } from './PolicyExporter-BnvuFncj.js';
|
|
2
|
+
export { P as PolicyExporter, b as PolicyGenerator, d as PolicyPreview } from './PolicyExporter-BnvuFncj.js';
|
|
3
|
+
import { U as UsePrivacyPolicyReturn } from './useDefaultPrivacyPolicy-C-mG-A5S.js';
|
|
4
|
+
export { u as useDefaultPrivacyPolicy, a as usePrivacyPolicy } from './useDefaultPrivacyPolicy-C-mG-A5S.js';
|
|
3
5
|
export { D as DEFAULT_POLICY_SECTIONS, a as DEFAULT_POLICY_VARIABLES, c as createBusinessPolicyTemplate, g as generatePolicyText } from './policy-templates-CIKcV0i1.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
import { a as PolicyTemplate, c as PrivacyPolicy } from './privacy-Ca6te9Ir.js';
|
|
7
|
+
export { O as OrganizationInfo, P as PolicySection, b as PolicyVariable } from './privacy-Ca6te9Ir.js';
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import React__default from 'react';
|
|
10
|
+
import { S as StorageAdapter } from './types-DK2CoKOC.js';
|
|
11
|
+
import { P as PolicyDraft, H as HTMLExportOptions, e as PDFExportOptions, f as DOCXExportOptions } from './policy-engine-DSQpT55_.js';
|
|
12
|
+
export { C as ComplianceGap, a as ComplianceResult, b as CustomSection, g as DEFAULT_DATA_CATEGORIES, D as DataCategory, I as Industry, O as OrgSize, h as ProcessingPurpose, T as TemplateContext, c as ThirdPartyProcessor, d as createDefaultContext } from './policy-engine-DSQpT55_.js';
|
|
13
|
+
export { U as UseAdaptivePolicyWizardOptions, a as UseAdaptivePolicyWizardReturn, u as useAdaptivePolicyWizard } from './useAdaptivePolicyWizard-B9Op2gYM.js';
|
|
14
|
+
export { a as assemblePolicy, e as evaluatePolicyCompliance } from './policy-sections-DqH0iZRf.js';
|
|
15
|
+
|
|
16
|
+
interface PolicyProviderProps {
|
|
17
|
+
templates: PolicyTemplate[];
|
|
18
|
+
adapter?: StorageAdapter<PrivacyPolicy>;
|
|
19
|
+
storageKey?: string;
|
|
20
|
+
useLocalStorage?: boolean;
|
|
21
|
+
initialPolicy?: PrivacyPolicy;
|
|
22
|
+
onGenerate?: (policy: PrivacyPolicy) => void;
|
|
23
|
+
children: React__default.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
declare const PolicyProvider: React__default.FC<PolicyProviderProps>;
|
|
26
|
+
|
|
27
|
+
declare const Policy: {
|
|
28
|
+
Provider: React.FC<PolicyProviderProps>;
|
|
29
|
+
Generator: React.FC<PolicyGeneratorProps>;
|
|
30
|
+
Preview: React.FC<PolicyPreviewProps>;
|
|
31
|
+
Exporter: React.FC<PolicyExporterProps>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
interface PolicyContextValue extends UsePrivacyPolicyReturn {
|
|
35
|
+
templates: PolicyTemplate[];
|
|
36
|
+
}
|
|
37
|
+
declare function usePolicyCompound(): PolicyContextValue;
|
|
38
|
+
|
|
39
|
+
interface AdaptivePolicyWizardProps {
|
|
40
|
+
adapter?: StorageAdapter<PolicyDraft>;
|
|
41
|
+
onComplete?: (policy: PrivacyPolicy) => void;
|
|
42
|
+
classNames?: Record<string, string>;
|
|
43
|
+
unstyled?: boolean;
|
|
44
|
+
}
|
|
45
|
+
declare const AdaptivePolicyWizard: React__default.FC<AdaptivePolicyWizardProps>;
|
|
46
|
+
|
|
47
|
+
interface PolicyPageProps {
|
|
48
|
+
policy: PrivacyPolicy;
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* PolicyPage renders a full styled privacy policy page.
|
|
53
|
+
* HTML is generated internally by exportHTML from a typed PrivacyPolicy object
|
|
54
|
+
* and does not contain untrusted user input.
|
|
55
|
+
*/
|
|
56
|
+
declare const PolicyPage: React__default.FC<PolicyPageProps>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Export a PrivacyPolicy as a self-contained HTML string.
|
|
60
|
+
*
|
|
61
|
+
* The returned string includes:
|
|
62
|
+
* - An embedded `<style>` block (responsive, dark/light, print-friendly)
|
|
63
|
+
* - An `<article>` wrapper with semantic markup
|
|
64
|
+
* - A `<nav>` table of contents with anchor links
|
|
65
|
+
* - A `<section>` for every included policy section
|
|
66
|
+
* - A metadata footer (org name, effective date, version, generator credit)
|
|
67
|
+
* - Optional custom CSS injection via `options.customCSS`
|
|
68
|
+
*/
|
|
69
|
+
declare function exportHTML(policy: PrivacyPolicy, options?: HTMLExportOptions): string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Export a PrivacyPolicy as a clean Markdown string.
|
|
73
|
+
*
|
|
74
|
+
* Structure:
|
|
75
|
+
* ```
|
|
76
|
+
* # Policy Title
|
|
77
|
+
* _Effective: date | Version: X | Org Name_
|
|
78
|
+
*
|
|
79
|
+
* ## Table of Contents
|
|
80
|
+
* - [Section Title](#anchor)
|
|
81
|
+
*
|
|
82
|
+
* ## 1. Section Title
|
|
83
|
+
* Section content...
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
declare function exportMarkdown(policy: PrivacyPolicy): string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Export a PrivacyPolicy to a PDF Blob using jspdf (optional peer dependency).
|
|
90
|
+
*
|
|
91
|
+
* Features:
|
|
92
|
+
* - Optional cover page with title, organisation, date, version and compliance badge
|
|
93
|
+
* - Optional table of contents page
|
|
94
|
+
* - One section per heading, content reflowed to fit the page
|
|
95
|
+
* - Automatic page breaks
|
|
96
|
+
* - Page header (org name) and footer (page X of Y) on every page
|
|
97
|
+
* - PDF metadata (title, author, subject, keywords)
|
|
98
|
+
*
|
|
99
|
+
* @throws {Error} if the `jspdf` package is not installed
|
|
100
|
+
*/
|
|
101
|
+
declare function exportPDF(policy: PrivacyPolicy, options?: PDFExportOptions): Promise<Blob>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Export a PrivacyPolicy as a Word (.docx) Blob using the `docx` library
|
|
105
|
+
* (optional peer dependency).
|
|
106
|
+
*
|
|
107
|
+
* Features:
|
|
108
|
+
* - Title paragraph with large bold text
|
|
109
|
+
* - Organisation name + version subtitle
|
|
110
|
+
* - Optional table of contents placeholder heading
|
|
111
|
+
* - All included policy sections as Heading 1 + body paragraphs / bullet lists
|
|
112
|
+
* - Running header (org name) and page-number footer on every page
|
|
113
|
+
*
|
|
114
|
+
* @throws {Error} if the `docx` package is not installed
|
|
115
|
+
*/
|
|
116
|
+
declare function exportDOCX(policy: PrivacyPolicy, options?: DOCXExportOptions): Promise<Blob>;
|
|
117
|
+
|
|
118
|
+
export { AdaptivePolicyWizard, Policy, PolicyDraft, PolicyPage, PolicyProvider, type PolicyProviderProps, PolicyTemplate, PrivacyPolicy, StorageAdapter, exportDOCX, exportHTML, exportMarkdown, exportPDF, usePolicyCompound };
|
package/dist/policy.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkBGHQTZAC_js=require('./chunk-BGHQTZAC.js'),
|
|
1
|
+
'use strict';var chunkJZKH5RMC_js=require('./chunk-JZKH5RMC.js'),chunkBGHQTZAC_js=require('./chunk-BGHQTZAC.js'),chunkDQLDX5X6_js=require('./chunk-DQLDX5X6.js'),chunkIKEPXHCZ_js=require('./chunk-IKEPXHCZ.js'),chunkLU4PFST7_js=require('./chunk-LU4PFST7.js'),chunk5RSOLEEP_js=require('./chunk-5RSOLEEP.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 a=react.createContext(null);function z(){let o=react.useContext(a);if(!o)throw new Error("Policy compound components must be wrapped in <Policy.Provider>. Example: <Policy.Provider templates={...}><Policy.Generator /></Policy.Provider>");return o}var i=({templates:o,adapter:p,storageKey:c,useLocalStorage:m,initialPolicy:s,onGenerate:d,children:x})=>{let f=chunkIKEPXHCZ_js.a({templates:o,adapter:p,storageKey:c,useLocalStorage:m,initialPolicy:s,onGenerate:d}),v=chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},f),{templates:o});return jsxRuntime.jsx(a.Provider,{value:v,children:x})};var F={Provider:i,Generator:chunkBGHQTZAC_js.a,Preview:chunkBGHQTZAC_js.b,Exporter:chunkBGHQTZAC_js.c};var N=({policy:o,className:p})=>{let c=chunkDQLDX5X6_js.a(o,{includeStyles:true,includePrintCSS:true});return jsxRuntime.jsx("div",{"data-ndpr-component":"policy-page",className:p,dangerouslySetInnerHTML:{__html:c}})};Object.defineProperty(exports,"AdaptivePolicyWizard",{enumerable:true,get:function(){return chunkJZKH5RMC_js.a}});Object.defineProperty(exports,"PolicyExporter",{enumerable:true,get:function(){return chunkBGHQTZAC_js.c}});Object.defineProperty(exports,"PolicyGenerator",{enumerable:true,get:function(){return chunkBGHQTZAC_js.a}});Object.defineProperty(exports,"PolicyPreview",{enumerable:true,get:function(){return chunkBGHQTZAC_js.b}});Object.defineProperty(exports,"exportDOCX",{enumerable:true,get:function(){return chunkDQLDX5X6_js.d}});Object.defineProperty(exports,"exportHTML",{enumerable:true,get:function(){return chunkDQLDX5X6_js.a}});Object.defineProperty(exports,"exportMarkdown",{enumerable:true,get:function(){return chunkDQLDX5X6_js.b}});Object.defineProperty(exports,"exportPDF",{enumerable:true,get:function(){return chunkDQLDX5X6_js.c}});Object.defineProperty(exports,"useAdaptivePolicyWizard",{enumerable:true,get:function(){return chunkDQLDX5X6_js.e}});Object.defineProperty(exports,"useDefaultPrivacyPolicy",{enumerable:true,get:function(){return chunkIKEPXHCZ_js.b}});Object.defineProperty(exports,"usePrivacyPolicy",{enumerable:true,get:function(){return chunkIKEPXHCZ_js.a}});Object.defineProperty(exports,"DEFAULT_DATA_CATEGORIES",{enumerable:true,get:function(){return chunkLU4PFST7_js.a}});Object.defineProperty(exports,"assemblePolicy",{enumerable:true,get:function(){return chunkLU4PFST7_js.d}});Object.defineProperty(exports,"createDefaultContext",{enumerable:true,get:function(){return chunkLU4PFST7_js.b}});Object.defineProperty(exports,"evaluatePolicyCompliance",{enumerable:true,get:function(){return chunkLU4PFST7_js.c}});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}});exports.Policy=F;exports.PolicyPage=N;exports.PolicyProvider=i;exports.usePolicyCompound=z;//# sourceMappingURL=policy.js.map
|
|
2
2
|
//# sourceMappingURL=policy.js.map
|
package/dist/policy.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{c as PolicyExporter,a as PolicyGenerator,b as PolicyPreview}from'./chunk-SKJCQKFL.mjs';export{b as useDefaultPrivacyPolicy,a as usePrivacyPolicy}from'./chunk-
|
|
1
|
+
export{a as AdaptivePolicyWizard}from'./chunk-ZQSX5ZHB.mjs';import {c,b,a as a$1}from'./chunk-SKJCQKFL.mjs';export{c as PolicyExporter,a as PolicyGenerator,b as PolicyPreview}from'./chunk-SKJCQKFL.mjs';import {a as a$4}from'./chunk-TKBZRULW.mjs';export{d as exportDOCX,a as exportHTML,b as exportMarkdown,c as exportPDF,e as useAdaptivePolicyWizard}from'./chunk-TKBZRULW.mjs';import {a as a$2}from'./chunk-6E54NSAO.mjs';export{b as useDefaultPrivacyPolicy,a as usePrivacyPolicy}from'./chunk-6E54NSAO.mjs';export{a as DEFAULT_DATA_CATEGORIES,d as assemblePolicy,b as createDefaultContext,c as evaluatePolicyCompliance}from'./chunk-GCQRHMTQ.mjs';export{b as DEFAULT_POLICY_SECTIONS,c as DEFAULT_POLICY_VARIABLES,d as createBusinessPolicyTemplate,a as generatePolicyText}from'./chunk-CAB7O3GR.mjs';import'./chunk-AYKLAEOU.mjs';import'./chunk-SBNAMPAP.mjs';import {b as b$1,a as a$3}from'./chunk-WWT2ZSNU.mjs';import {createContext,useContext}from'react';import {jsx}from'react/jsx-runtime';var a=createContext(null);function z(){let o=useContext(a);if(!o)throw new Error("Policy compound components must be wrapped in <Policy.Provider>. Example: <Policy.Provider templates={...}><Policy.Generator /></Policy.Provider>");return o}var i=({templates:o,adapter:p,storageKey:c,useLocalStorage:m,initialPolicy:s,onGenerate:d,children:x})=>{let f=a$2({templates:o,adapter:p,storageKey:c,useLocalStorage:m,initialPolicy:s,onGenerate:d}),v=b$1(a$3({},f),{templates:o});return jsx(a.Provider,{value:v,children:x})};var F={Provider:i,Generator:a$1,Preview:b,Exporter:c};var N=({policy:o,className:p})=>{let c=a$4(o,{includeStyles:true,includePrintCSS:true});return jsx("div",{"data-ndpr-component":"policy-page",className:p,dangerouslySetInnerHTML:{__html:c}})};export{F as Policy,N as PolicyPage,i as PolicyProvider,z as usePolicyCompound};//# sourceMappingURL=policy.mjs.map
|
|
2
2
|
//# sourceMappingURL=policy.mjs.map
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { b as ConsentBannerClassNames } from './ConsentBanner-CDRT0o2k.mjs';
|
|
3
|
+
import { C as ConsentOption, a as ConsentSettings } from './consent-CmVzqZUk.mjs';
|
|
4
|
+
import { S as StorageAdapter } from './types-DK2CoKOC.mjs';
|
|
5
|
+
import { D as DSRFormSubmission, b as DSRRequestFormClassNames } from './DSRRequestForm-BY8PogCU.mjs';
|
|
6
|
+
import { c as RequestType } from './dsr-Cm9lzWG7.mjs';
|
|
7
|
+
import { B as BreachFormSubmission, b as BreachReportFormClassNames } from './BreachReportForm-yJ2Zl6gz.mjs';
|
|
8
|
+
import { B as BreachCategory } from './breach-Eu9byel8.mjs';
|
|
9
|
+
import { c as PrivacyPolicy } from './privacy-Ca6te9Ir.mjs';
|
|
10
|
+
import { P as PolicyDraft } from './policy-engine-C-tShzZH.mjs';
|
|
11
|
+
import { a as DPIAQuestionnaireClassNames } from './DPIAQuestionnaire-BkejviPj.mjs';
|
|
12
|
+
import { c as DPIASection } from './dpia-5OQVA1R_.mjs';
|
|
13
|
+
import { a as LawfulBasisTrackerClassNames } from './LawfulBasisTracker-CBqOxX1D.mjs';
|
|
14
|
+
import { P as ProcessingActivity } from './lawful-basis-Cv1VmDLn.mjs';
|
|
15
|
+
import { a as CrossBorderTransferManagerClassNames } from './CrossBorderTransferManager-DkZhv9vD.mjs';
|
|
16
|
+
import { a as CrossBorderTransfer } from './cross-border-UyT00llA.mjs';
|
|
17
|
+
import { a as ROPAManagerClassNames } from './ROPAManager-BS4eB8Hw.mjs';
|
|
18
|
+
import { a as RecordOfProcessingActivities } from './ropa-CFHuT7jE.mjs';
|
|
19
|
+
import { C as ComplianceInput } from './compliance-score-racQe_E_.mjs';
|
|
20
|
+
import { a as NDPRDashboardClassNames } from './NDPRDashboard-CLJpEg0X.mjs';
|
|
21
|
+
|
|
22
|
+
interface NDPRConsentProps {
|
|
23
|
+
extraOptions?: ConsentOption[];
|
|
24
|
+
options?: ConsentOption[];
|
|
25
|
+
adapter?: StorageAdapter<ConsentSettings>;
|
|
26
|
+
position?: 'top' | 'bottom' | 'center' | 'inline';
|
|
27
|
+
classNames?: ConsentBannerClassNames;
|
|
28
|
+
unstyled?: boolean;
|
|
29
|
+
onSave?: (settings: ConsentSettings) => void;
|
|
30
|
+
}
|
|
31
|
+
declare const NDPRConsent: React__default.FC<NDPRConsentProps>;
|
|
32
|
+
|
|
33
|
+
interface NDPRSubjectRightsProps {
|
|
34
|
+
requestTypes?: RequestType[];
|
|
35
|
+
adapter?: StorageAdapter<DSRFormSubmission>;
|
|
36
|
+
classNames?: DSRRequestFormClassNames;
|
|
37
|
+
unstyled?: boolean;
|
|
38
|
+
onSubmit?: (data: DSRFormSubmission) => void;
|
|
39
|
+
}
|
|
40
|
+
declare const NDPRSubjectRights: React__default.FC<NDPRSubjectRightsProps>;
|
|
41
|
+
|
|
42
|
+
interface NDPRBreachReportProps {
|
|
43
|
+
categories?: BreachCategory[];
|
|
44
|
+
adapter?: StorageAdapter<BreachFormSubmission>;
|
|
45
|
+
classNames?: BreachReportFormClassNames;
|
|
46
|
+
unstyled?: boolean;
|
|
47
|
+
onSubmit?: (data: BreachFormSubmission) => void;
|
|
48
|
+
}
|
|
49
|
+
declare const NDPRBreachReport: React__default.FC<NDPRBreachReportProps>;
|
|
50
|
+
|
|
51
|
+
interface NDPRPrivacyPolicyProps {
|
|
52
|
+
adapter?: StorageAdapter<PolicyDraft>;
|
|
53
|
+
onComplete?: (policy: PrivacyPolicy) => void;
|
|
54
|
+
classNames?: Record<string, string>;
|
|
55
|
+
unstyled?: boolean;
|
|
56
|
+
}
|
|
57
|
+
declare const NDPRPrivacyPolicy: React__default.FC<NDPRPrivacyPolicyProps>;
|
|
58
|
+
|
|
59
|
+
interface NDPRDPIAProps {
|
|
60
|
+
sections?: DPIASection[];
|
|
61
|
+
adapter?: StorageAdapter<Record<string, any>>;
|
|
62
|
+
classNames?: DPIAQuestionnaireClassNames;
|
|
63
|
+
unstyled?: boolean;
|
|
64
|
+
onComplete?: (answers: Record<string, any>) => void;
|
|
65
|
+
}
|
|
66
|
+
declare const NDPRDPIA: React__default.FC<NDPRDPIAProps>;
|
|
67
|
+
|
|
68
|
+
interface NDPRLawfulBasisProps {
|
|
69
|
+
initialActivities?: ProcessingActivity[];
|
|
70
|
+
adapter?: StorageAdapter<ProcessingActivity[]>;
|
|
71
|
+
classNames?: LawfulBasisTrackerClassNames;
|
|
72
|
+
unstyled?: boolean;
|
|
73
|
+
}
|
|
74
|
+
declare const NDPRLawfulBasis: React__default.FC<NDPRLawfulBasisProps>;
|
|
75
|
+
|
|
76
|
+
interface NDPRCrossBorderProps {
|
|
77
|
+
initialTransfers?: CrossBorderTransfer[];
|
|
78
|
+
adapter?: StorageAdapter<CrossBorderTransfer[]>;
|
|
79
|
+
classNames?: CrossBorderTransferManagerClassNames;
|
|
80
|
+
unstyled?: boolean;
|
|
81
|
+
}
|
|
82
|
+
declare const NDPRCrossBorder: React__default.FC<NDPRCrossBorderProps>;
|
|
83
|
+
|
|
84
|
+
interface NDPRROPAProps {
|
|
85
|
+
initialData?: RecordOfProcessingActivities;
|
|
86
|
+
adapter?: StorageAdapter<RecordOfProcessingActivities>;
|
|
87
|
+
classNames?: ROPAManagerClassNames;
|
|
88
|
+
unstyled?: boolean;
|
|
89
|
+
}
|
|
90
|
+
declare const NDPRROPA: React__default.FC<NDPRROPAProps>;
|
|
91
|
+
|
|
92
|
+
interface NDPRDashboardPresetProps {
|
|
93
|
+
/** Raw compliance input — the preset calls getComplianceScore() internally */
|
|
94
|
+
input: ComplianceInput;
|
|
95
|
+
/** Dashboard heading. Defaults to "NDPA Compliance Dashboard" */
|
|
96
|
+
title?: string;
|
|
97
|
+
/** Show/hide the recommendations section. Defaults to true */
|
|
98
|
+
showRecommendations?: boolean;
|
|
99
|
+
/** Maximum number of recommendations to render. Defaults to 5 */
|
|
100
|
+
maxRecommendations?: number;
|
|
101
|
+
/** Per-section class name overrides */
|
|
102
|
+
classNames?: NDPRDashboardClassNames;
|
|
103
|
+
/** When true, strips all default classes so consumers can style from scratch */
|
|
104
|
+
unstyled?: boolean;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Preset wrapper for NDPRDashboard.
|
|
108
|
+
*
|
|
109
|
+
* Accepts raw ComplianceInput, computes the report via getComplianceScore(),
|
|
110
|
+
* and delegates rendering to the NDPRDashboard component.
|
|
111
|
+
*/
|
|
112
|
+
declare const NDPRDashboard: React__default.FC<NDPRDashboardPresetProps>;
|
|
113
|
+
|
|
114
|
+
export { NDPRBreachReport, type NDPRBreachReportProps, NDPRDashboard as NDPRComplianceDashboard, NDPRConsent, type NDPRConsentProps, NDPRCrossBorder, type NDPRCrossBorderProps, NDPRDPIA, type NDPRDPIAProps, type NDPRDashboardPresetProps, NDPRLawfulBasis, type NDPRLawfulBasisProps, NDPRPrivacyPolicy, type NDPRPrivacyPolicyProps, NDPRROPA, type NDPRROPAProps, NDPRSubjectRights, type NDPRSubjectRightsProps };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { b as ConsentBannerClassNames } from './ConsentBanner-Vxyt8SCX.js';
|
|
3
|
+
import { C as ConsentOption, a as ConsentSettings } from './consent-CmVzqZUk.js';
|
|
4
|
+
import { S as StorageAdapter } from './types-DK2CoKOC.js';
|
|
5
|
+
import { D as DSRFormSubmission, b as DSRRequestFormClassNames } from './DSRRequestForm-CHUg9cZh.js';
|
|
6
|
+
import { c as RequestType } from './dsr-Cm9lzWG7.js';
|
|
7
|
+
import { B as BreachFormSubmission, b as BreachReportFormClassNames } from './BreachReportForm-DpRrBoxU.js';
|
|
8
|
+
import { B as BreachCategory } from './breach-Eu9byel8.js';
|
|
9
|
+
import { c as PrivacyPolicy } from './privacy-Ca6te9Ir.js';
|
|
10
|
+
import { P as PolicyDraft } from './policy-engine-DSQpT55_.js';
|
|
11
|
+
import { a as DPIAQuestionnaireClassNames } from './DPIAQuestionnaire-DdSqXG3x.js';
|
|
12
|
+
import { c as DPIASection } from './dpia-5OQVA1R_.js';
|
|
13
|
+
import { a as LawfulBasisTrackerClassNames } from './LawfulBasisTracker-Cg30NbDA.js';
|
|
14
|
+
import { P as ProcessingActivity } from './lawful-basis-Cv1VmDLn.js';
|
|
15
|
+
import { a as CrossBorderTransferManagerClassNames } from './CrossBorderTransferManager-D5Lc0e46.js';
|
|
16
|
+
import { a as CrossBorderTransfer } from './cross-border-UyT00llA.js';
|
|
17
|
+
import { a as ROPAManagerClassNames } from './ROPAManager-qxTrXLkD.js';
|
|
18
|
+
import { a as RecordOfProcessingActivities } from './ropa-BDTM06tr.js';
|
|
19
|
+
import { C as ComplianceInput } from './compliance-score-racQe_E_.js';
|
|
20
|
+
import { a as NDPRDashboardClassNames } from './NDPRDashboard-DDWNd2Ah.js';
|
|
21
|
+
|
|
22
|
+
interface NDPRConsentProps {
|
|
23
|
+
extraOptions?: ConsentOption[];
|
|
24
|
+
options?: ConsentOption[];
|
|
25
|
+
adapter?: StorageAdapter<ConsentSettings>;
|
|
26
|
+
position?: 'top' | 'bottom' | 'center' | 'inline';
|
|
27
|
+
classNames?: ConsentBannerClassNames;
|
|
28
|
+
unstyled?: boolean;
|
|
29
|
+
onSave?: (settings: ConsentSettings) => void;
|
|
30
|
+
}
|
|
31
|
+
declare const NDPRConsent: React__default.FC<NDPRConsentProps>;
|
|
32
|
+
|
|
33
|
+
interface NDPRSubjectRightsProps {
|
|
34
|
+
requestTypes?: RequestType[];
|
|
35
|
+
adapter?: StorageAdapter<DSRFormSubmission>;
|
|
36
|
+
classNames?: DSRRequestFormClassNames;
|
|
37
|
+
unstyled?: boolean;
|
|
38
|
+
onSubmit?: (data: DSRFormSubmission) => void;
|
|
39
|
+
}
|
|
40
|
+
declare const NDPRSubjectRights: React__default.FC<NDPRSubjectRightsProps>;
|
|
41
|
+
|
|
42
|
+
interface NDPRBreachReportProps {
|
|
43
|
+
categories?: BreachCategory[];
|
|
44
|
+
adapter?: StorageAdapter<BreachFormSubmission>;
|
|
45
|
+
classNames?: BreachReportFormClassNames;
|
|
46
|
+
unstyled?: boolean;
|
|
47
|
+
onSubmit?: (data: BreachFormSubmission) => void;
|
|
48
|
+
}
|
|
49
|
+
declare const NDPRBreachReport: React__default.FC<NDPRBreachReportProps>;
|
|
50
|
+
|
|
51
|
+
interface NDPRPrivacyPolicyProps {
|
|
52
|
+
adapter?: StorageAdapter<PolicyDraft>;
|
|
53
|
+
onComplete?: (policy: PrivacyPolicy) => void;
|
|
54
|
+
classNames?: Record<string, string>;
|
|
55
|
+
unstyled?: boolean;
|
|
56
|
+
}
|
|
57
|
+
declare const NDPRPrivacyPolicy: React__default.FC<NDPRPrivacyPolicyProps>;
|
|
58
|
+
|
|
59
|
+
interface NDPRDPIAProps {
|
|
60
|
+
sections?: DPIASection[];
|
|
61
|
+
adapter?: StorageAdapter<Record<string, any>>;
|
|
62
|
+
classNames?: DPIAQuestionnaireClassNames;
|
|
63
|
+
unstyled?: boolean;
|
|
64
|
+
onComplete?: (answers: Record<string, any>) => void;
|
|
65
|
+
}
|
|
66
|
+
declare const NDPRDPIA: React__default.FC<NDPRDPIAProps>;
|
|
67
|
+
|
|
68
|
+
interface NDPRLawfulBasisProps {
|
|
69
|
+
initialActivities?: ProcessingActivity[];
|
|
70
|
+
adapter?: StorageAdapter<ProcessingActivity[]>;
|
|
71
|
+
classNames?: LawfulBasisTrackerClassNames;
|
|
72
|
+
unstyled?: boolean;
|
|
73
|
+
}
|
|
74
|
+
declare const NDPRLawfulBasis: React__default.FC<NDPRLawfulBasisProps>;
|
|
75
|
+
|
|
76
|
+
interface NDPRCrossBorderProps {
|
|
77
|
+
initialTransfers?: CrossBorderTransfer[];
|
|
78
|
+
adapter?: StorageAdapter<CrossBorderTransfer[]>;
|
|
79
|
+
classNames?: CrossBorderTransferManagerClassNames;
|
|
80
|
+
unstyled?: boolean;
|
|
81
|
+
}
|
|
82
|
+
declare const NDPRCrossBorder: React__default.FC<NDPRCrossBorderProps>;
|
|
83
|
+
|
|
84
|
+
interface NDPRROPAProps {
|
|
85
|
+
initialData?: RecordOfProcessingActivities;
|
|
86
|
+
adapter?: StorageAdapter<RecordOfProcessingActivities>;
|
|
87
|
+
classNames?: ROPAManagerClassNames;
|
|
88
|
+
unstyled?: boolean;
|
|
89
|
+
}
|
|
90
|
+
declare const NDPRROPA: React__default.FC<NDPRROPAProps>;
|
|
91
|
+
|
|
92
|
+
interface NDPRDashboardPresetProps {
|
|
93
|
+
/** Raw compliance input — the preset calls getComplianceScore() internally */
|
|
94
|
+
input: ComplianceInput;
|
|
95
|
+
/** Dashboard heading. Defaults to "NDPA Compliance Dashboard" */
|
|
96
|
+
title?: string;
|
|
97
|
+
/** Show/hide the recommendations section. Defaults to true */
|
|
98
|
+
showRecommendations?: boolean;
|
|
99
|
+
/** Maximum number of recommendations to render. Defaults to 5 */
|
|
100
|
+
maxRecommendations?: number;
|
|
101
|
+
/** Per-section class name overrides */
|
|
102
|
+
classNames?: NDPRDashboardClassNames;
|
|
103
|
+
/** When true, strips all default classes so consumers can style from scratch */
|
|
104
|
+
unstyled?: boolean;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Preset wrapper for NDPRDashboard.
|
|
108
|
+
*
|
|
109
|
+
* Accepts raw ComplianceInput, computes the report via getComplianceScore(),
|
|
110
|
+
* and delegates rendering to the NDPRDashboard component.
|
|
111
|
+
*/
|
|
112
|
+
declare const NDPRDashboard: React__default.FC<NDPRDashboardPresetProps>;
|
|
113
|
+
|
|
114
|
+
export { NDPRBreachReport, type NDPRBreachReportProps, NDPRDashboard as NDPRComplianceDashboard, NDPRConsent, type NDPRConsentProps, NDPRCrossBorder, type NDPRCrossBorderProps, NDPRDPIA, type NDPRDPIAProps, type NDPRDashboardPresetProps, NDPRLawfulBasis, type NDPRLawfulBasisProps, NDPRPrivacyPolicy, type NDPRPrivacyPolicyProps, NDPRROPA, type NDPRROPAProps, NDPRSubjectRights, type NDPRSubjectRightsProps };
|
package/dist/presets.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkV37BM2LF_js=require('./chunk-V37BM2LF.js'),chunkER7X6E36_js=require('./chunk-ER7X6E36.js'),chunkCL53OI3I_js=require('./chunk-CL53OI3I.js'),chunkUZ5EZOA7_js=require('./chunk-UZ5EZOA7.js'),chunkVDZKGCAF_js=require('./chunk-VDZKGCAF.js');require('./chunk-TDDAYVKK.js'),require('./chunk-IQF726GS.js'),require('./chunk-SWF3YVE5.js');var chunkUOSEH6DC_js=require('./chunk-UOSEH6DC.js'),chunkPEH5GIMN_js=require('./chunk-PEH5GIMN.js'),chunkUNKXYVXY_js=require('./chunk-UNKXYVXY.js'),chunkGVANK6PL_js=require('./chunk-GVANK6PL.js');require('./chunk-EPF7J2FK.js');var chunkJZKH5RMC_js=require('./chunk-JZKH5RMC.js');require('./chunk-DQLDX5X6.js'),require('./chunk-LU4PFST7.js'),require('./chunk-E64TU6IU.js'),require('./chunk-UK656RCG.js');var chunkMQFZHA2D_js=require('./chunk-MQFZHA2D.js'),jsxRuntime=require('react/jsx-runtime'),react=require('react');var q=[{id:"essential",label:"Essential Cookies",description:"Required for basic site functionality. Cannot be disabled.",required:true,purpose:"Site operation"},{id:"analytics",label:"Analytics",description:"Help us understand how visitors use our site to improve the experience.",required:false,purpose:"Usage analytics"},{id:"marketing",label:"Marketing",description:"Used to deliver relevant advertisements and track campaign effectiveness.",required:false,purpose:"Targeted advertising"},{id:"preferences",label:"Preferences",description:"Remember your settings and preferences for a personalised experience.",required:false,purpose:"Personalisation"}],O=({extraOptions:d=[],options:t,adapter:p,position:l="bottom",classNames:s,unstyled:c,onSave:a})=>{let u=t!=null?t:[...q,...d];return jsxRuntime.jsx(chunkUOSEH6DC_js.a,{options:u,onSave:f=>{p&&p.save(f),a==null||a(f);},position:l,classNames:s,unstyled:c,manageStorage:!p})};var I=[{id:"access",name:"Access My Data",description:"Request a copy of your personal data held by us",ndpaSection:"Section 30",estimatedCompletionTime:30,requiresAdditionalInfo:false},{id:"rectification",name:"Correct My Data",description:"Request corrections to inaccurate personal data",ndpaSection:"Section 31",estimatedCompletionTime:30,requiresAdditionalInfo:true,additionalFields:[{id:"correction_details",label:"What data needs to be corrected?",type:"textarea",required:true,placeholder:"Please describe the inaccurate data and what the correct information should be"}]},{id:"erasure",name:"Delete My Data",description:"Request deletion of your personal data",ndpaSection:"Section 32",estimatedCompletionTime:30,requiresAdditionalInfo:false},{id:"portability",name:"Export My Data",description:"Receive your data in a portable format",ndpaSection:"Section 34",estimatedCompletionTime:30,requiresAdditionalInfo:false},{id:"restrict",name:"Restrict Processing",description:"Request restriction of data processing",ndpaSection:"Section 33",estimatedCompletionTime:30,requiresAdditionalInfo:false},{id:"object",name:"Object to Processing",description:"Object to processing of your personal data",ndpaSection:"Section 35",estimatedCompletionTime:30,requiresAdditionalInfo:false}],k=({requestTypes:d=I,adapter:t,classNames:p,unstyled:l,onSubmit:s=()=>{}})=>jsxRuntime.jsx(chunkPEH5GIMN_js.a,{requestTypes:d,onSubmit:a=>{t&&t.save(a),s(a);},classNames:p,unstyled:l});var _=[{id:"unauthorized_access",name:"Unauthorized Access",description:"Unauthorized access to personal data",defaultSeverity:"high"},{id:"data_loss",name:"Data Loss",description:"Loss of personal data",defaultSeverity:"high"},{id:"data_theft",name:"Data Theft",description:"Theft of personal data",defaultSeverity:"critical"},{id:"system_breach",name:"System Breach",description:"Breach of system containing personal data",defaultSeverity:"critical"},{id:"accidental_disclosure",name:"Accidental Disclosure",description:"Unintended disclosure of personal data",defaultSeverity:"medium"}],U=({categories:d=_,adapter:t,classNames:p,unstyled:l,onSubmit:s=()=>{}})=>jsxRuntime.jsx(chunkGVANK6PL_js.a,{categories:d,onSubmit:a=>{t&&t.save(a),s(a);},classNames:p,unstyled:l});var E=d=>jsxRuntime.jsx(chunkJZKH5RMC_js.a,chunkMQFZHA2D_js.a({},d));var Y=[{id:"project_overview",title:"Project Overview",description:"Provide basic details about the processing activity being assessed.",order:0,questions:[{id:"project_name",text:"What is the name of the project or processing activity?",type:"text",required:true},{id:"project_description",text:"Describe the nature and purpose of the processing.",guidance:"Include what personal data will be collected, why it is needed, and how it will be used.",type:"textarea",required:true},{id:"data_controller",text:"Who is the data controller responsible for this processing?",type:"text",required:true}]},{id:"necessity",title:"Necessity & Proportionality",description:"Assess whether the processing is necessary and proportionate to the purposes.",order:1,questions:[{id:"lawful_basis",text:"What is the lawful basis for processing under the NDPA 2023?",type:"select",required:true,options:[{value:"consent",label:"Consent (Section 25(1)(a))"},{value:"contract",label:"Contract (Section 25(1)(b))"},{value:"legal_obligation",label:"Legal Obligation (Section 25(1)(c))"},{value:"vital_interests",label:"Vital Interests (Section 25(1)(d))"},{value:"public_task",label:"Public Task (Section 25(1)(e))"},{value:"legitimate_interests",label:"Legitimate Interests (Section 25(1)(f))"}]},{id:"data_minimisation",text:"Is the processing limited to what is necessary for the specified purpose?",type:"radio",required:true,options:[{value:"yes",label:"Yes \u2014 only minimum data is collected",riskLevel:"low"},{value:"partial",label:"Partially \u2014 some additional data may be collected",riskLevel:"medium"},{value:"no",label:"No \u2014 more data is collected than strictly necessary",riskLevel:"high"}]}]},{id:"risk_identification",title:"Risk Identification",description:"Identify and assess risks to data subjects arising from the processing.",order:2,questions:[{id:"sensitive_data",text:"Does the processing involve sensitive personal data (e.g., health, biometric, financial, children's data)?",type:"radio",required:true,options:[{value:"no",label:"No sensitive data",riskLevel:"low"},{value:"yes_protected",label:"Yes, with appropriate safeguards",riskLevel:"medium"},{value:"yes_unprotected",label:"Yes, without adequate safeguards",riskLevel:"high"}]},{id:"scale",text:"What is the scale of processing?",type:"radio",required:true,options:[{value:"small",label:"Small scale (fewer than 1,000 individuals)",riskLevel:"low"},{value:"medium",label:"Medium scale (1,000 to 100,000 individuals)",riskLevel:"medium"},{value:"large",label:"Large scale (over 100,000 individuals)",riskLevel:"high"}]},{id:"cross_border",text:"Will data be transferred outside Nigeria?",type:"radio",required:true,options:[{value:"no",label:"No international transfers",riskLevel:"low"},{value:"adequate",label:"Yes, to countries with adequate protection",riskLevel:"medium"},{value:"inadequate",label:"Yes, to countries without adequate protection",riskLevel:"high"}]}]},{id:"mitigation",title:"Risk Mitigation & Measures",description:"Document the measures taken to address identified risks.",order:3,questions:[{id:"security_measures",text:"What technical and organisational security measures are in place?",guidance:"Include encryption, access controls, pseudonymisation, staff training, etc.",type:"textarea",required:true},{id:"retention_period",text:"What is the data retention period?",guidance:"Specify how long data will be kept and the criteria used to determine this.",type:"text",required:true},{id:"dpo_consulted",text:"Has the Data Protection Officer (DPO) been consulted on this assessment?",type:"radio",required:false,options:[{value:"yes",label:"Yes",riskLevel:"low"},{value:"no",label:"No",riskLevel:"medium"},{value:"na",label:"Not applicable \u2014 no DPO appointed",riskLevel:"medium"}]}]}],z=({sections:d=Y,adapter:t,classNames:p,unstyled:l,onComplete:s=()=>{}})=>{let[c,a]=react.useState({}),[u,y]=react.useState(0),f=(i,T)=>{a(B=>chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},B),{[i]:T}));},e=()=>{u<d.length-1?y(i=>i+1):(t&&t.save(c),s(c));},r=()=>{u>0&&y(i=>i-1);},o=Math.round((u+1)/d.length*100);return jsxRuntime.jsx(chunkUNKXYVXY_js.a,{sections:d,answers:c,onAnswerChange:f,currentSectionIndex:u,onNextSection:e,onPrevSection:r,progress:o,classNames:p,unstyled:l})};var H=({initialActivities:d=[],adapter:t,classNames:p,unstyled:l})=>{let[s,c]=react.useState(()=>{if(t){let e=t.load();if(e&&!(e instanceof Promise))return e}return d}),a=e=>{t&&t.save(e);};return jsxRuntime.jsx(chunkER7X6E36_js.a,{activities:s,onAddActivity:e=>{let r=Date.now(),o=chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},e),{id:`activity-${r}`,createdAt:r,updatedAt:r}),i=[...s,o];c(i),a(i);},onUpdateActivity:(e,r)=>{let o=s.map(i=>i.id===e?chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a(chunkMQFZHA2D_js.a({},i),r),{updatedAt:Date.now()}):i);c(o),a(o);},onArchiveActivity:e=>{let r=s.map(o=>o.id===e?chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},o),{status:"inactive",updatedAt:Date.now()}):o);c(r),a(r);},classNames:p,unstyled:l})};var V=({initialTransfers:d=[],adapter:t,classNames:p,unstyled:l})=>{let[s,c]=react.useState(()=>{if(t){let e=t.load();if(e&&!(e instanceof Promise))return e}return d}),a=e=>{t&&t.save(e);};return jsxRuntime.jsx(chunkCL53OI3I_js.a,{transfers:s,onAddTransfer:e=>{let r=Date.now(),o=chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},e),{id:`transfer-${r}`,createdAt:r,updatedAt:r}),i=[...s,o];c(i),a(i);},onUpdateTransfer:(e,r)=>{let o=s.map(i=>i.id===e?chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a(chunkMQFZHA2D_js.a({},i),r),{updatedAt:Date.now()}):i);c(o),a(o);},onRemoveTransfer:e=>{let r=s.filter(o=>o.id!==e);c(r),a(r);},classNames:p,unstyled:l})};var Z={id:"ndpr-ropa-default",organizationName:"Your Organisation",organizationContact:"",organizationAddress:"",records:[],lastUpdated:Date.now(),version:"1.0"},ee=({initialData:d,adapter:t,classNames:p,unstyled:l})=>{let[s,c]=react.useState(d!=null?d:Z);react.useEffect(()=>{if(!t)return;let e=false;return chunkMQFZHA2D_js.d(null,null,function*(){let o=yield t.load();!e&&o&&c(o);}),()=>{e=true;}},[t]);let a=e=>{t&&t.save(e);};return jsxRuntime.jsx(chunkUZ5EZOA7_js.a,{ropa:s,onAddRecord:e=>{let r=chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},s),{records:[...s.records,e],lastUpdated:Date.now()});c(r),a(r);},onUpdateRecord:(e,r)=>{let o=chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},s),{records:s.records.map(i=>i.id===e?chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a(chunkMQFZHA2D_js.a({},i),r),{updatedAt:Date.now()}):i),lastUpdated:Date.now()});c(o),a(o);},onArchiveRecord:e=>{let r=chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},s),{records:s.records.map(o=>o.id===e?chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},o),{status:"archived",updatedAt:Date.now()}):o),lastUpdated:Date.now()});c(r),a(r);},classNames:p,unstyled:l})};var re=p=>{var l=p,{input:d}=l,t=chunkMQFZHA2D_js.c(l,["input"]);let s=chunkVDZKGCAF_js.a(d);return jsxRuntime.jsx(chunkV37BM2LF_js.a,chunkMQFZHA2D_js.a({report:s},t))};exports.NDPRBreachReport=U;exports.NDPRComplianceDashboard=re;exports.NDPRConsent=O;exports.NDPRCrossBorder=V;exports.NDPRDPIA=z;exports.NDPRLawfulBasis=H;exports.NDPRPrivacyPolicy=E;exports.NDPRROPA=ee;exports.NDPRSubjectRights=k;//# sourceMappingURL=presets.js.map
|
|
2
|
+
//# sourceMappingURL=presets.js.map
|
package/dist/presets.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$a}from'./chunk-3UWT64FI.mjs';import {a as a$6}from'./chunk-ELKEZEV5.mjs';import {a as a$7}from'./chunk-4JUDKBA2.mjs';import {a as a$8}from'./chunk-4VVARDN2.mjs';import {a as a$9}from'./chunk-GPJVTGHR.mjs';import'./chunk-TXBZPCGF.mjs';import'./chunk-QKK5S54L.mjs';import'./chunk-PYEX7DFR.mjs';import {a}from'./chunk-7F5F5YWI.mjs';import {a as a$1}from'./chunk-6D3ZUGBB.mjs';import {a as a$5}from'./chunk-V3MXWGXU.mjs';import {a as a$2}from'./chunk-3XAUN5IM.mjs';import'./chunk-FXTZDKDC.mjs';import {a as a$3}from'./chunk-ZQSX5ZHB.mjs';import'./chunk-TKBZRULW.mjs';import'./chunk-GCQRHMTQ.mjs';import'./chunk-AYKLAEOU.mjs';import'./chunk-SBNAMPAP.mjs';import {a as a$4,b,d,c}from'./chunk-WWT2ZSNU.mjs';import {jsx}from'react/jsx-runtime';import {useState,useEffect}from'react';var q=[{id:"essential",label:"Essential Cookies",description:"Required for basic site functionality. Cannot be disabled.",required:true,purpose:"Site operation"},{id:"analytics",label:"Analytics",description:"Help us understand how visitors use our site to improve the experience.",required:false,purpose:"Usage analytics"},{id:"marketing",label:"Marketing",description:"Used to deliver relevant advertisements and track campaign effectiveness.",required:false,purpose:"Targeted advertising"},{id:"preferences",label:"Preferences",description:"Remember your settings and preferences for a personalised experience.",required:false,purpose:"Personalisation"}],O=({extraOptions:d=[],options:t,adapter:p,position:l="bottom",classNames:s,unstyled:c,onSave:a$1})=>{let u=t!=null?t:[...q,...d];return jsx(a,{options:u,onSave:f=>{p&&p.save(f),a$1==null||a$1(f);},position:l,classNames:s,unstyled:c,manageStorage:!p})};var I=[{id:"access",name:"Access My Data",description:"Request a copy of your personal data held by us",ndpaSection:"Section 30",estimatedCompletionTime:30,requiresAdditionalInfo:false},{id:"rectification",name:"Correct My Data",description:"Request corrections to inaccurate personal data",ndpaSection:"Section 31",estimatedCompletionTime:30,requiresAdditionalInfo:true,additionalFields:[{id:"correction_details",label:"What data needs to be corrected?",type:"textarea",required:true,placeholder:"Please describe the inaccurate data and what the correct information should be"}]},{id:"erasure",name:"Delete My Data",description:"Request deletion of your personal data",ndpaSection:"Section 32",estimatedCompletionTime:30,requiresAdditionalInfo:false},{id:"portability",name:"Export My Data",description:"Receive your data in a portable format",ndpaSection:"Section 34",estimatedCompletionTime:30,requiresAdditionalInfo:false},{id:"restrict",name:"Restrict Processing",description:"Request restriction of data processing",ndpaSection:"Section 33",estimatedCompletionTime:30,requiresAdditionalInfo:false},{id:"object",name:"Object to Processing",description:"Object to processing of your personal data",ndpaSection:"Section 35",estimatedCompletionTime:30,requiresAdditionalInfo:false}],k=({requestTypes:d=I,adapter:t,classNames:p,unstyled:l,onSubmit:s=()=>{}})=>jsx(a$1,{requestTypes:d,onSubmit:a=>{t&&t.save(a),s(a);},classNames:p,unstyled:l});var _=[{id:"unauthorized_access",name:"Unauthorized Access",description:"Unauthorized access to personal data",defaultSeverity:"high"},{id:"data_loss",name:"Data Loss",description:"Loss of personal data",defaultSeverity:"high"},{id:"data_theft",name:"Data Theft",description:"Theft of personal data",defaultSeverity:"critical"},{id:"system_breach",name:"System Breach",description:"Breach of system containing personal data",defaultSeverity:"critical"},{id:"accidental_disclosure",name:"Accidental Disclosure",description:"Unintended disclosure of personal data",defaultSeverity:"medium"}],U=({categories:d=_,adapter:t,classNames:p,unstyled:l,onSubmit:s=()=>{}})=>jsx(a$2,{categories:d,onSubmit:a=>{t&&t.save(a),s(a);},classNames:p,unstyled:l});var E=d=>jsx(a$3,a$4({},d));var Y=[{id:"project_overview",title:"Project Overview",description:"Provide basic details about the processing activity being assessed.",order:0,questions:[{id:"project_name",text:"What is the name of the project or processing activity?",type:"text",required:true},{id:"project_description",text:"Describe the nature and purpose of the processing.",guidance:"Include what personal data will be collected, why it is needed, and how it will be used.",type:"textarea",required:true},{id:"data_controller",text:"Who is the data controller responsible for this processing?",type:"text",required:true}]},{id:"necessity",title:"Necessity & Proportionality",description:"Assess whether the processing is necessary and proportionate to the purposes.",order:1,questions:[{id:"lawful_basis",text:"What is the lawful basis for processing under the NDPA 2023?",type:"select",required:true,options:[{value:"consent",label:"Consent (Section 25(1)(a))"},{value:"contract",label:"Contract (Section 25(1)(b))"},{value:"legal_obligation",label:"Legal Obligation (Section 25(1)(c))"},{value:"vital_interests",label:"Vital Interests (Section 25(1)(d))"},{value:"public_task",label:"Public Task (Section 25(1)(e))"},{value:"legitimate_interests",label:"Legitimate Interests (Section 25(1)(f))"}]},{id:"data_minimisation",text:"Is the processing limited to what is necessary for the specified purpose?",type:"radio",required:true,options:[{value:"yes",label:"Yes \u2014 only minimum data is collected",riskLevel:"low"},{value:"partial",label:"Partially \u2014 some additional data may be collected",riskLevel:"medium"},{value:"no",label:"No \u2014 more data is collected than strictly necessary",riskLevel:"high"}]}]},{id:"risk_identification",title:"Risk Identification",description:"Identify and assess risks to data subjects arising from the processing.",order:2,questions:[{id:"sensitive_data",text:"Does the processing involve sensitive personal data (e.g., health, biometric, financial, children's data)?",type:"radio",required:true,options:[{value:"no",label:"No sensitive data",riskLevel:"low"},{value:"yes_protected",label:"Yes, with appropriate safeguards",riskLevel:"medium"},{value:"yes_unprotected",label:"Yes, without adequate safeguards",riskLevel:"high"}]},{id:"scale",text:"What is the scale of processing?",type:"radio",required:true,options:[{value:"small",label:"Small scale (fewer than 1,000 individuals)",riskLevel:"low"},{value:"medium",label:"Medium scale (1,000 to 100,000 individuals)",riskLevel:"medium"},{value:"large",label:"Large scale (over 100,000 individuals)",riskLevel:"high"}]},{id:"cross_border",text:"Will data be transferred outside Nigeria?",type:"radio",required:true,options:[{value:"no",label:"No international transfers",riskLevel:"low"},{value:"adequate",label:"Yes, to countries with adequate protection",riskLevel:"medium"},{value:"inadequate",label:"Yes, to countries without adequate protection",riskLevel:"high"}]}]},{id:"mitigation",title:"Risk Mitigation & Measures",description:"Document the measures taken to address identified risks.",order:3,questions:[{id:"security_measures",text:"What technical and organisational security measures are in place?",guidance:"Include encryption, access controls, pseudonymisation, staff training, etc.",type:"textarea",required:true},{id:"retention_period",text:"What is the data retention period?",guidance:"Specify how long data will be kept and the criteria used to determine this.",type:"text",required:true},{id:"dpo_consulted",text:"Has the Data Protection Officer (DPO) been consulted on this assessment?",type:"radio",required:false,options:[{value:"yes",label:"Yes",riskLevel:"low"},{value:"no",label:"No",riskLevel:"medium"},{value:"na",label:"Not applicable \u2014 no DPO appointed",riskLevel:"medium"}]}]}],z=({sections:d=Y,adapter:t,classNames:p,unstyled:l,onComplete:s=()=>{}})=>{let[c,a]=useState({}),[u,y]=useState(0),f=(i,T)=>{a(B=>b(a$4({},B),{[i]:T}));},e=()=>{u<d.length-1?y(i=>i+1):(t&&t.save(c),s(c));},r=()=>{u>0&&y(i=>i-1);},o=Math.round((u+1)/d.length*100);return jsx(a$5,{sections:d,answers:c,onAnswerChange:f,currentSectionIndex:u,onNextSection:e,onPrevSection:r,progress:o,classNames:p,unstyled:l})};var H=({initialActivities:d=[],adapter:t,classNames:p,unstyled:l})=>{let[s,c]=useState(()=>{if(t){let e=t.load();if(e&&!(e instanceof Promise))return e}return d}),a=e=>{t&&t.save(e);};return jsx(a$6,{activities:s,onAddActivity:e=>{let r=Date.now(),o=b(a$4({},e),{id:`activity-${r}`,createdAt:r,updatedAt:r}),i=[...s,o];c(i),a(i);},onUpdateActivity:(e,r)=>{let o=s.map(i=>i.id===e?b(a$4(a$4({},i),r),{updatedAt:Date.now()}):i);c(o),a(o);},onArchiveActivity:e=>{let r=s.map(o=>o.id===e?b(a$4({},o),{status:"inactive",updatedAt:Date.now()}):o);c(r),a(r);},classNames:p,unstyled:l})};var V=({initialTransfers:d=[],adapter:t,classNames:p,unstyled:l})=>{let[s,c]=useState(()=>{if(t){let e=t.load();if(e&&!(e instanceof Promise))return e}return d}),a=e=>{t&&t.save(e);};return jsx(a$7,{transfers:s,onAddTransfer:e=>{let r=Date.now(),o=b(a$4({},e),{id:`transfer-${r}`,createdAt:r,updatedAt:r}),i=[...s,o];c(i),a(i);},onUpdateTransfer:(e,r)=>{let o=s.map(i=>i.id===e?b(a$4(a$4({},i),r),{updatedAt:Date.now()}):i);c(o),a(o);},onRemoveTransfer:e=>{let r=s.filter(o=>o.id!==e);c(r),a(r);},classNames:p,unstyled:l})};var Z={id:"ndpr-ropa-default",organizationName:"Your Organisation",organizationContact:"",organizationAddress:"",records:[],lastUpdated:Date.now(),version:"1.0"},ee=({initialData:d$1,adapter:t,classNames:p,unstyled:l})=>{let[s,c]=useState(d$1!=null?d$1:Z);useEffect(()=>{if(!t)return;let e=false;return d(null,null,function*(){let o=yield t.load();!e&&o&&c(o);}),()=>{e=true;}},[t]);let a=e=>{t&&t.save(e);};return jsx(a$8,{ropa:s,onAddRecord:e=>{let r=b(a$4({},s),{records:[...s.records,e],lastUpdated:Date.now()});c(r),a(r);},onUpdateRecord:(e,r)=>{let o=b(a$4({},s),{records:s.records.map(i=>i.id===e?b(a$4(a$4({},i),r),{updatedAt:Date.now()}):i),lastUpdated:Date.now()});c(o),a(o);},onArchiveRecord:e=>{let r=b(a$4({},s),{records:s.records.map(o=>o.id===e?b(a$4({},o),{status:"archived",updatedAt:Date.now()}):o),lastUpdated:Date.now()});c(r),a(r);},classNames:p,unstyled:l})};var re=p=>{var l=p,{input:d}=l,t=c(l,["input"]);let s=a$9(d);return jsx(a$a,a$4({report:s},t))};export{U as NDPRBreachReport,re as NDPRComplianceDashboard,O as NDPRConsent,V as NDPRCrossBorder,z as NDPRDPIA,H as NDPRLawfulBasis,E as NDPRPrivacyPolicy,ee as NDPRROPA,k as NDPRSubjectRights};//# sourceMappingURL=presets.mjs.map
|
|
2
|
+
//# sourceMappingURL=presets.mjs.map
|
|
@@ -149,52 +149,4 @@ interface ROPASummary {
|
|
|
149
149
|
lastUpdated: number;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
|
|
153
|
-
* Compliance gap found in a processing record
|
|
154
|
-
*/
|
|
155
|
-
interface ROPAComplianceGap {
|
|
156
|
-
recordId: string;
|
|
157
|
-
recordName: string;
|
|
158
|
-
gaps: string[];
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Validation result for a processing record
|
|
162
|
-
*/
|
|
163
|
-
interface ROPAValidationResult {
|
|
164
|
-
valid: boolean;
|
|
165
|
-
errors: string[];
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Validates a processing record to ensure all required fields are present
|
|
169
|
-
* and properly filled per NDPA 2023 requirements.
|
|
170
|
-
*
|
|
171
|
-
* @param record - The processing record to validate
|
|
172
|
-
* @returns Validation result with any errors found
|
|
173
|
-
*/
|
|
174
|
-
declare function validateProcessingRecord(record: ProcessingRecord): ROPAValidationResult;
|
|
175
|
-
/**
|
|
176
|
-
* Generates a summary of the Record of Processing Activities.
|
|
177
|
-
* Provides statistics and identifies records that are due for review.
|
|
178
|
-
*
|
|
179
|
-
* @param ropa - The full Record of Processing Activities
|
|
180
|
-
* @returns Summary statistics for the ROPA
|
|
181
|
-
*/
|
|
182
|
-
declare function generateROPASummary(ropa: RecordOfProcessingActivities): ROPASummary;
|
|
183
|
-
/**
|
|
184
|
-
* Exports the Record of Processing Activities to a CSV string.
|
|
185
|
-
* The CSV includes all key fields from each processing record.
|
|
186
|
-
*
|
|
187
|
-
* @param ropa - The full Record of Processing Activities
|
|
188
|
-
* @returns CSV-formatted string
|
|
189
|
-
*/
|
|
190
|
-
declare function exportROPAToCSV(ropa: RecordOfProcessingActivities): string;
|
|
191
|
-
/**
|
|
192
|
-
* Identifies compliance gaps in the Record of Processing Activities.
|
|
193
|
-
* Finds records that are missing required information per NDPA 2023.
|
|
194
|
-
*
|
|
195
|
-
* @param ropa - The full Record of Processing Activities
|
|
196
|
-
* @returns Array of compliance gaps grouped by record
|
|
197
|
-
*/
|
|
198
|
-
declare function identifyComplianceGaps(ropa: RecordOfProcessingActivities): ROPAComplianceGap[];
|
|
199
|
-
|
|
200
|
-
export { type ProcessingRecord as P, type ROPAComplianceGap as R, type ROPASummary as a, type ROPAValidationResult as b, type RecordOfProcessingActivities as c, exportROPAToCSV as e, generateROPASummary as g, identifyComplianceGaps as i, validateProcessingRecord as v };
|
|
152
|
+
export type { ProcessingRecord as P, ROPASummary as R, RecordOfProcessingActivities as a };
|