@tantainnovative/ndpr-toolkit 2.1.0 → 2.1.2
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/LICENSE +21 -0
- package/README.md +14 -10
- package/dist/{breach-D5zJYNph.d.mts → breach-6z0r-KuE.d.mts} +1 -1
- package/dist/{breach-D7NgrdMX.d.ts → breach-BFfnvtRk.d.ts} +1 -1
- package/dist/{breach-BpSBPrdk.d.mts → breach-BtFbDOmV.d.mts} +1 -1
- package/dist/{breach-BpSBPrdk.d.ts → breach-BtFbDOmV.d.ts} +1 -1
- package/dist/breach.d.mts +4 -4
- package/dist/breach.d.ts +4 -4
- package/dist/chunk-3YCV2BA6.js +2 -0
- package/dist/chunk-6GGGTRDZ.mjs +2 -0
- package/dist/core.d.mts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/dpia.js +1 -1
- package/dist/dpia.mjs +1 -1
- package/dist/hooks.d.mts +2 -2
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{useBreach-DRKnexsk.d.mts → useBreach-WrZzJilM.d.mts} +1 -1
- package/dist/{useBreach-DuT0N0K1.d.ts → useBreach-vrh_XMpI.d.ts} +1 -1
- package/package.json +18 -7
- package/dist/breach.js.map +0 -1
- package/dist/breach.mjs.map +0 -1
- package/dist/chunk-2SYNHRP6.mjs.map +0 -1
- package/dist/chunk-2XHD22J7.mjs.map +0 -1
- package/dist/chunk-4A354HL3.js.map +0 -1
- package/dist/chunk-4DKT6IB6.js.map +0 -1
- package/dist/chunk-5ZBO2UPH.js.map +0 -1
- package/dist/chunk-6JFTAYXV.mjs.map +0 -1
- package/dist/chunk-6JVYYLS7.js.map +0 -1
- package/dist/chunk-6SGG6WPA.mjs.map +0 -1
- package/dist/chunk-AQEGDEQM.js.map +0 -1
- package/dist/chunk-C2IJWCZQ.mjs.map +0 -1
- package/dist/chunk-CMZTI7SG.js.map +0 -1
- package/dist/chunk-DB3JH4DS.mjs.map +0 -1
- package/dist/chunk-EWOZKYLY.mjs +0 -2
- package/dist/chunk-EWOZKYLY.mjs.map +0 -1
- package/dist/chunk-FFW7RUAG.mjs.map +0 -1
- package/dist/chunk-FK3CSFLJ.js.map +0 -1
- package/dist/chunk-GIV2OHE6.mjs.map +0 -1
- package/dist/chunk-GMLNWS2N.mjs.map +0 -1
- package/dist/chunk-IQF726GS.js.map +0 -1
- package/dist/chunk-IWUUVRLJ.js.map +0 -1
- package/dist/chunk-JUN6YPLL.mjs.map +0 -1
- package/dist/chunk-L3FKTBGV.js.map +0 -1
- package/dist/chunk-L52PDW6O.mjs.map +0 -1
- package/dist/chunk-LI6WJ3LZ.js.map +0 -1
- package/dist/chunk-LXRXDTPI.js.map +0 -1
- package/dist/chunk-MQFZHA2D.js.map +0 -1
- package/dist/chunk-OITITR6K.mjs.map +0 -1
- package/dist/chunk-PDJGTQMY.mjs.map +0 -1
- package/dist/chunk-PGSA2O5P.mjs.map +0 -1
- package/dist/chunk-PM7CMTMB.js.map +0 -1
- package/dist/chunk-PYEX7DFR.mjs.map +0 -1
- package/dist/chunk-QKK5S54L.mjs.map +0 -1
- package/dist/chunk-RB26MIRI.js.map +0 -1
- package/dist/chunk-RGYK4VAY.mjs.map +0 -1
- package/dist/chunk-RHWW5FDP.js.map +0 -1
- package/dist/chunk-RYZEIDNR.js.map +0 -1
- package/dist/chunk-SLNMKGQ2.mjs.map +0 -1
- package/dist/chunk-SSGJREE3.js.map +0 -1
- package/dist/chunk-SWF3YVE5.js.map +0 -1
- package/dist/chunk-T44JQT2O.mjs.map +0 -1
- package/dist/chunk-TDDAYVKK.js.map +0 -1
- package/dist/chunk-TXBZPCGF.mjs.map +0 -1
- package/dist/chunk-U2CGMEWB.js +0 -2
- package/dist/chunk-U2CGMEWB.js.map +0 -1
- package/dist/chunk-UUWVBENC.js.map +0 -1
- package/dist/chunk-UYP64PV7.mjs.map +0 -1
- package/dist/chunk-VMJBW3EF.mjs.map +0 -1
- package/dist/chunk-WW3X3ELF.js.map +0 -1
- package/dist/chunk-WWT2ZSNU.mjs.map +0 -1
- package/dist/chunk-XMKA6GVK.mjs.map +0 -1
- package/dist/chunk-Y34DQYS7.js.map +0 -1
- package/dist/chunk-ZU73VG3X.js.map +0 -1
- package/dist/consent.js.map +0 -1
- package/dist/consent.mjs.map +0 -1
- package/dist/core.js.map +0 -1
- package/dist/core.mjs.map +0 -1
- package/dist/cross-border.js.map +0 -1
- package/dist/cross-border.mjs.map +0 -1
- package/dist/dpia.js.map +0 -1
- package/dist/dpia.mjs.map +0 -1
- package/dist/dsr.js.map +0 -1
- package/dist/dsr.mjs.map +0 -1
- package/dist/hooks.js.map +0 -1
- package/dist/hooks.mjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/lawful-basis.js.map +0 -1
- package/dist/lawful-basis.mjs.map +0 -1
- package/dist/policy.js.map +0 -1
- package/dist/policy.mjs.map +0 -1
- package/dist/ropa.js.map +0 -1
- package/dist/ropa.mjs.map +0 -1
- package/dist/unstyled.js.map +0 -1
- package/dist/unstyled.mjs.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-present Abraham Esandayinze Tanta
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -109,14 +109,14 @@ import { ConsentBanner, ConsentManager, useConsent, validateConsent } from '@tan
|
|
|
109
109
|
|
|
110
110
|
```tsx
|
|
111
111
|
<ConsentManager
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
options={[
|
|
113
|
+
{ id: 'essential', label: 'Essential', description: 'Required for the site to function', required: true, purpose: 'Site operation' },
|
|
114
|
+
{ id: 'analytics', label: 'Analytics', description: 'Help us improve', required: false, purpose: 'Usage analytics' },
|
|
115
|
+
]}
|
|
116
|
+
onSave={(settings) => {
|
|
117
|
+
if (settings.consents.analytics) loadAnalytics();
|
|
116
118
|
}}
|
|
117
|
-
|
|
118
|
-
<App />
|
|
119
|
-
</ConsentManager>
|
|
119
|
+
/>
|
|
120
120
|
```
|
|
121
121
|
|
|
122
122
|
**Key exports:** `ConsentBanner`, `ConsentManager`, `ConsentStorage`, `useConsent`, `validateConsent`, `validateConsentOptions`
|
|
@@ -152,7 +152,7 @@ import { DPIAQuestionnaire, DPIAReport, useDPIA, assessDPIARisk } from '@tantain
|
|
|
152
152
|
```
|
|
153
153
|
|
|
154
154
|
```tsx
|
|
155
|
-
const { currentSection, answers,
|
|
155
|
+
const { currentSection, answers, nextSection, completeDPIA } = useDPIA({
|
|
156
156
|
sections: dpiaSections,
|
|
157
157
|
onComplete: (result) => saveAssessment(result),
|
|
158
158
|
});
|
|
@@ -171,7 +171,7 @@ import { BreachReportForm, BreachNotificationManager, useBreach, calculateBreach
|
|
|
171
171
|
```
|
|
172
172
|
|
|
173
173
|
```tsx
|
|
174
|
-
const {
|
|
174
|
+
const { reportBreach, reports, assessRisk } = useBreach({
|
|
175
175
|
categories: breachCategories,
|
|
176
176
|
onReport: (report) => notifyNDPC(report),
|
|
177
177
|
});
|
|
@@ -190,7 +190,11 @@ import { PolicyGenerator, PolicyPreview, usePrivacyPolicy, generatePolicyText }
|
|
|
190
190
|
```
|
|
191
191
|
|
|
192
192
|
```tsx
|
|
193
|
-
<PolicyGenerator
|
|
193
|
+
<PolicyGenerator
|
|
194
|
+
sections={policySections}
|
|
195
|
+
variables={policyVariables}
|
|
196
|
+
onGenerate={({ content }) => console.log(content)}
|
|
197
|
+
/>
|
|
194
198
|
```
|
|
195
199
|
|
|
196
200
|
The wizard covers organization info, data collection practices, data sharing, custom sections, and a preview with export.
|
|
@@ -45,7 +45,7 @@ interface BreachReport {
|
|
|
45
45
|
affectedSystems: string[];
|
|
46
46
|
/** Types of data involved in the breach */
|
|
47
47
|
dataTypes: string[];
|
|
48
|
-
/** Whether sensitive personal data is involved (NDPA Section
|
|
48
|
+
/** Whether sensitive personal data is involved (NDPA Section 27) */
|
|
49
49
|
involvesSensitiveData?: boolean;
|
|
50
50
|
/** Estimated number of data subjects affected */
|
|
51
51
|
estimatedAffectedSubjects?: number;
|
|
@@ -45,7 +45,7 @@ interface BreachReport {
|
|
|
45
45
|
affectedSystems: string[];
|
|
46
46
|
/** Types of data involved in the breach */
|
|
47
47
|
dataTypes: string[];
|
|
48
|
-
/** Whether sensitive personal data is involved (NDPA Section
|
|
48
|
+
/** Whether sensitive personal data is involved (NDPA Section 27) */
|
|
49
49
|
involvesSensitiveData?: boolean;
|
|
50
50
|
/** Estimated number of data subjects affected */
|
|
51
51
|
estimatedAffectedSubjects?: number;
|
package/dist/breach.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { a as BreachCategory, B as BreachReport, R as RiskAssessment, b as RegulatoryNotification } from './breach-
|
|
3
|
-
export { N as NotificationRequirement } from './breach-
|
|
4
|
-
export { u as useBreach } from './useBreach-
|
|
5
|
-
export { c as calculateBreachSeverity } from './breach-
|
|
2
|
+
import { a as BreachCategory, B as BreachReport, R as RiskAssessment, b as RegulatoryNotification } from './breach-BtFbDOmV.mjs';
|
|
3
|
+
export { N as NotificationRequirement } from './breach-BtFbDOmV.mjs';
|
|
4
|
+
export { u as useBreach } from './useBreach-WrZzJilM.mjs';
|
|
5
|
+
export { c as calculateBreachSeverity } from './breach-6z0r-KuE.mjs';
|
|
6
6
|
|
|
7
7
|
interface BreachReportFormProps {
|
|
8
8
|
/**
|
package/dist/breach.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { a as BreachCategory, B as BreachReport, R as RiskAssessment, b as RegulatoryNotification } from './breach-
|
|
3
|
-
export { N as NotificationRequirement } from './breach-
|
|
4
|
-
export { u as useBreach } from './useBreach-
|
|
5
|
-
export { c as calculateBreachSeverity } from './breach-
|
|
2
|
+
import { a as BreachCategory, B as BreachReport, R as RiskAssessment, b as RegulatoryNotification } from './breach-BtFbDOmV.js';
|
|
3
|
+
export { N as NotificationRequirement } from './breach-BtFbDOmV.js';
|
|
4
|
+
export { u as useBreach } from './useBreach-vrh_XMpI.js';
|
|
5
|
+
export { c as calculateBreachSeverity } from './breach-BFfnvtRk.js';
|
|
6
6
|
|
|
7
7
|
interface BreachReportFormProps {
|
|
8
8
|
/**
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkSSGJREE3_js=require('./chunk-SSGJREE3.js'),chunkMQFZHA2D_js=require('./chunk-MQFZHA2D.js'),react=require('react');function J({sections:u,initialAnswers:Q={},storageKey:d="ndpr_dpia_data",useLocalStorage:f=true,onComplete:A}){let[c,m]=react.useState(0),[i,g]=react.useState(Q);react.useEffect(()=>{if(f&&typeof window!="undefined")try{let r=localStorage.getItem(d);if(r){let{answers:n,sectionIndex:e}=JSON.parse(r);g(n||{}),m(e||0);}}catch(r){console.error("Error loading DPIA data:",r);}},[d,f]),react.useEffect(()=>{if(f&&typeof window!="undefined")try{localStorage.setItem(d,JSON.stringify({answers:i,sectionIndex:c}));}catch(r){console.error("Error saving DPIA data:",r);}},[i,c,d,f]);let p=u[c]||null,E=(r,n)=>{g(e=>chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},e),{[r]:n}));},v=r=>r.showWhen?r.showWhen.every(n=>{let e=i[n.questionId];switch(n.operator){case "equals":return e===n.value;case "contains":return Array.isArray(e)?e.includes(n.value):false;case "greaterThan":return typeof e=="number"?e>n.value:false;case "lessThan":return typeof e=="number"?e<n.value:false;default:return true}}):true,h=()=>p?p.questions.filter(v):[],I=()=>p?h().every(n=>{if(!n.required)return true;let e=i[n.id];return !(e==null||typeof e=="string"&&e.trim()===""||Array.isArray(e)&&e.length===0)}):false,x=()=>{let r={};return p&&h().forEach(e=>{if(!e.required)return;let t=i[e.id];t==null||typeof t=="string"&&t.trim()===""?r[e.id]="This question is required":Array.isArray(t)&&t.length===0&&(r[e.id]="At least one option must be selected");}),r},T=()=>I()&&c<u.length-1?(m(r=>r+1),true):false,C=()=>c>0?(m(r=>r-1),true):false,L=r=>r>=0&&r<u.length?(m(r),true):false,O=()=>u.every(r=>r.questions.filter(e=>!e.showWhen||e.showWhen.length===0?true:e.showWhen.some(t=>{let s=i[t.questionId];switch(t.operator){case "equals":return s===t.value;case "contains":return Array.isArray(s)&&s.includes(t.value);case "greaterThan":return typeof s=="number"&&s>t.value;case "lessThan":return typeof s=="number"&&s<t.value;default:return false}})).every(e=>{if(!e.required)return true;let t=i[e.id];return !(t==null||typeof t=="string"&&t.trim()===""||Array.isArray(t)&&t.length===0)})),W=()=>{let r=[];return u.forEach(n=>{n.questions.forEach(e=>{let t=i[e.id];if(t!=null&&e.riskLevel)if(["select","radio","checkbox"].includes(e.type)&&e.options)(Array.isArray(t)?t:[t]).forEach(o=>{var w;let a=(w=e.options)==null?void 0:w.find(l=>l.value===o);if(a!=null&&a.riskLevel){let l=a.riskLevel,y=l==="low"?1:l==="medium"?3:5,b=l==="low"?1:l==="medium"?3:5;r.push({id:`risk_${r.length+1}`,description:`${e.text} - ${a.label}`,likelihood:y,impact:b,score:y*b,level:l,mitigated:false,relatedQuestionIds:[e.id]});}});else {let s=e.riskLevel,o=s==="low"?1:s==="medium"?3:5,a=s==="low"?1:s==="medium"?3:5;r.push({id:`risk_${r.length+1}`,description:e.text,likelihood:o,impact:a,score:o*a,level:s,mitigated:false,relatedQuestionIds:[e.id]});}});}),r},_=(r,n,e)=>{let t=W(),s={id:`dpia_${Date.now()}`,title:n,processingDescription:e,startedAt:Date.now(),completedAt:Date.now(),assessor:r,answers:i,risks:t,overallRiskLevel:"low",canProceed:true,conclusion:"",version:"1.0"},o=chunkSSGJREE3_js.a(s);return s.overallRiskLevel=o.overallRiskLevel,s.canProceed=o.canProceed,s.conclusion=o.canProceed?"Based on the assessment, the processing can proceed with appropriate safeguards.":"Based on the assessment, the processing should not proceed without further mitigation measures.",s.recommendations=o.recommendations,A&&A(s),s},$=()=>{g({}),m(0),f&&typeof window!="undefined"&&localStorage.removeItem(d);},U=(()=>{let r=0,n=0;return u.forEach(e=>{e.questions.forEach(t=>{if(t.required&&v(t)){n++;let s=i[t.id];s!=null&&!(typeof s=="string"&&s.trim()==="")&&!(Array.isArray(s)&&s.length===0)&&r++;}});}),n>0?Math.round(r/n*100):0})();return {currentSectionIndex:c,currentSection:p,answers:i,updateAnswer:E,nextSection:T,prevSection:C,goToSection:L,isCurrentSectionValid:I,getCurrentSectionErrors:x,isComplete:O,completeDPIA:_,getVisibleQuestions:h,resetDPIA:$,progress:U}}exports.a=J;//# sourceMappingURL=chunk-3YCV2BA6.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-3YCV2BA6.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-PGSA2O5P.mjs';import {b,a}from'./chunk-WWT2ZSNU.mjs';import {useState,useEffect}from'react';function J({sections:u,initialAnswers:Q={},storageKey:d="ndpr_dpia_data",useLocalStorage:f=true,onComplete:A}){let[c,m]=useState(0),[i,g]=useState(Q);useEffect(()=>{if(f&&typeof window!="undefined")try{let r=localStorage.getItem(d);if(r){let{answers:n,sectionIndex:e}=JSON.parse(r);g(n||{}),m(e||0);}}catch(r){console.error("Error loading DPIA data:",r);}},[d,f]),useEffect(()=>{if(f&&typeof window!="undefined")try{localStorage.setItem(d,JSON.stringify({answers:i,sectionIndex:c}));}catch(r){console.error("Error saving DPIA data:",r);}},[i,c,d,f]);let p=u[c]||null,E=(r,n)=>{g(e=>b(a({},e),{[r]:n}));},v=r=>r.showWhen?r.showWhen.every(n=>{let e=i[n.questionId];switch(n.operator){case "equals":return e===n.value;case "contains":return Array.isArray(e)?e.includes(n.value):false;case "greaterThan":return typeof e=="number"?e>n.value:false;case "lessThan":return typeof e=="number"?e<n.value:false;default:return true}}):true,h=()=>p?p.questions.filter(v):[],I=()=>p?h().every(n=>{if(!n.required)return true;let e=i[n.id];return !(e==null||typeof e=="string"&&e.trim()===""||Array.isArray(e)&&e.length===0)}):false,x=()=>{let r={};return p&&h().forEach(e=>{if(!e.required)return;let t=i[e.id];t==null||typeof t=="string"&&t.trim()===""?r[e.id]="This question is required":Array.isArray(t)&&t.length===0&&(r[e.id]="At least one option must be selected");}),r},T=()=>I()&&c<u.length-1?(m(r=>r+1),true):false,C=()=>c>0?(m(r=>r-1),true):false,L=r=>r>=0&&r<u.length?(m(r),true):false,O=()=>u.every(r=>r.questions.filter(e=>!e.showWhen||e.showWhen.length===0?true:e.showWhen.some(t=>{let s=i[t.questionId];switch(t.operator){case "equals":return s===t.value;case "contains":return Array.isArray(s)&&s.includes(t.value);case "greaterThan":return typeof s=="number"&&s>t.value;case "lessThan":return typeof s=="number"&&s<t.value;default:return false}})).every(e=>{if(!e.required)return true;let t=i[e.id];return !(t==null||typeof t=="string"&&t.trim()===""||Array.isArray(t)&&t.length===0)})),W=()=>{let r=[];return u.forEach(n=>{n.questions.forEach(e=>{let t=i[e.id];if(t!=null&&e.riskLevel)if(["select","radio","checkbox"].includes(e.type)&&e.options)(Array.isArray(t)?t:[t]).forEach(o=>{var w;let a=(w=e.options)==null?void 0:w.find(l=>l.value===o);if(a!=null&&a.riskLevel){let l=a.riskLevel,y=l==="low"?1:l==="medium"?3:5,b=l==="low"?1:l==="medium"?3:5;r.push({id:`risk_${r.length+1}`,description:`${e.text} - ${a.label}`,likelihood:y,impact:b,score:y*b,level:l,mitigated:false,relatedQuestionIds:[e.id]});}});else {let s=e.riskLevel,o=s==="low"?1:s==="medium"?3:5,a=s==="low"?1:s==="medium"?3:5;r.push({id:`risk_${r.length+1}`,description:e.text,likelihood:o,impact:a,score:o*a,level:s,mitigated:false,relatedQuestionIds:[e.id]});}});}),r},_=(r,n,e)=>{let t=W(),s={id:`dpia_${Date.now()}`,title:n,processingDescription:e,startedAt:Date.now(),completedAt:Date.now(),assessor:r,answers:i,risks:t,overallRiskLevel:"low",canProceed:true,conclusion:"",version:"1.0"},o=a$1(s);return s.overallRiskLevel=o.overallRiskLevel,s.canProceed=o.canProceed,s.conclusion=o.canProceed?"Based on the assessment, the processing can proceed with appropriate safeguards.":"Based on the assessment, the processing should not proceed without further mitigation measures.",s.recommendations=o.recommendations,A&&A(s),s},$=()=>{g({}),m(0),f&&typeof window!="undefined"&&localStorage.removeItem(d);},U=(()=>{let r=0,n=0;return u.forEach(e=>{e.questions.forEach(t=>{if(t.required&&v(t)){n++;let s=i[t.id];s!=null&&!(typeof s=="string"&&s.trim()==="")&&!(Array.isArray(s)&&s.length===0)&&r++;}});}),n>0?Math.round(r/n*100):0})();return {currentSectionIndex:c,currentSection:p,answers:i,updateAnswer:E,nextSection:T,prevSection:C,goToSection:L,isCurrentSectionValid:I,getCurrentSectionErrors:x,isComplete:O,completeDPIA:_,getVisibleQuestions:h,resetDPIA:$,progress:U}}export{J as a};//# sourceMappingURL=chunk-6GGGTRDZ.mjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-6GGGTRDZ.mjs.map
|
package/dist/core.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { C as ConsentOption, a as ConsentSettings, b as ConsentStorageOptions, L as LawfulBasisType } from './consent-CmVzqZUk.mjs';
|
|
2
2
|
export { D as DSRRequest, a as DSRStatus, b as DSRType, c as RequestStatus, R as RequestType } from './dsr-pQzQ3H1O.mjs';
|
|
3
3
|
export { D as DPIAQuestion, b as DPIAResult, c as DPIARisk, a as DPIASection } from './dpia-vWfE_9bO.mjs';
|
|
4
|
-
export { a as BreachCategory, B as BreachReport, N as NotificationRequirement, b as RegulatoryNotification, R as RiskAssessment } from './breach-
|
|
4
|
+
export { a as BreachCategory, B as BreachReport, N as NotificationRequirement, b as RegulatoryNotification, R as RiskAssessment } from './breach-BtFbDOmV.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, b as LawfulBasisSummary, a as LegitimateInterestAssessment, P as ProcessingActivity, S as SensitiveDataCondition } from './lawful-basis-CWtvDG1x.mjs';
|
|
7
7
|
export { A as AdequacyStatus, b as CrossBorderSummary, C as CrossBorderTransfer, a as TransferImpactAssessment, T as TransferMechanism, e as TransferRiskResult, d as TransferValidationResult, c as assessTransferRisk, g as getTransferMechanismDescription, i as isNDPCApprovalRequired, v as validateTransfer } from './cross-border-BrIy1ieh.mjs';
|
|
@@ -10,5 +10,5 @@ export { L as LawfulBasisComplianceGap, c as LawfulBasisValidationResult, a as a
|
|
|
10
10
|
export { v as validateConsent, a as validateConsentOptions } from './consent-DCc5zjXI.mjs';
|
|
11
11
|
export { f as formatDSRRequest } from './dsr-whPkiI0_.mjs';
|
|
12
12
|
export { a as assessDPIARisk } from './dpia-B9ZZJG5a.mjs';
|
|
13
|
-
export { c as calculateBreachSeverity } from './breach-
|
|
13
|
+
export { c as calculateBreachSeverity } from './breach-6z0r-KuE.mjs';
|
|
14
14
|
export { g as generatePolicyText } from './privacy-9FcJceMr.mjs';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { C as ConsentOption, a as ConsentSettings, b as ConsentStorageOptions, L as LawfulBasisType } from './consent-CmVzqZUk.js';
|
|
2
2
|
export { D as DSRRequest, a as DSRStatus, b as DSRType, c as RequestStatus, R as RequestType } from './dsr-pQzQ3H1O.js';
|
|
3
3
|
export { D as DPIAQuestion, b as DPIAResult, c as DPIARisk, a as DPIASection } from './dpia-vWfE_9bO.js';
|
|
4
|
-
export { a as BreachCategory, B as BreachReport, N as NotificationRequirement, b as RegulatoryNotification, R as RiskAssessment } from './breach-
|
|
4
|
+
export { a as BreachCategory, B as BreachReport, N as NotificationRequirement, b as RegulatoryNotification, R as RiskAssessment } from './breach-BtFbDOmV.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, b as LawfulBasisSummary, a as LegitimateInterestAssessment, P as ProcessingActivity, S as SensitiveDataCondition } from './lawful-basis-CWtvDG1x.js';
|
|
7
7
|
export { A as AdequacyStatus, b as CrossBorderSummary, C as CrossBorderTransfer, a as TransferImpactAssessment, T as TransferMechanism, e as TransferRiskResult, d as TransferValidationResult, c as assessTransferRisk, g as getTransferMechanismDescription, i as isNDPCApprovalRequired, v as validateTransfer } from './cross-border-BrIy1ieh.js';
|
|
@@ -10,5 +10,5 @@ export { L as LawfulBasisComplianceGap, c as LawfulBasisValidationResult, a as a
|
|
|
10
10
|
export { v as validateConsent, a as validateConsentOptions } from './consent-DLWb5ota.js';
|
|
11
11
|
export { f as formatDSRRequest } from './dsr-jq5NUEdz.js';
|
|
12
12
|
export { a as assessDPIARisk } from './dpia-fdtTd2DI.js';
|
|
13
|
-
export { c as calculateBreachSeverity } from './breach-
|
|
13
|
+
export { c as calculateBreachSeverity } from './breach-BFfnvtRk.js';
|
|
14
14
|
export { g as generatePolicyText } from './privacy-BXz7O2ej.js';
|
package/dist/dpia.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkRHWW5FDP_js=require('./chunk-RHWW5FDP.js'),
|
|
1
|
+
'use strict';var chunkRHWW5FDP_js=require('./chunk-RHWW5FDP.js'),chunk3YCV2BA6_js=require('./chunk-3YCV2BA6.js'),chunkSSGJREE3_js=require('./chunk-SSGJREE3.js');require('./chunk-MQFZHA2D.js');Object.defineProperty(exports,"DPIAQuestionnaire",{enumerable:true,get:function(){return chunkRHWW5FDP_js.a}});Object.defineProperty(exports,"DPIAReport",{enumerable:true,get:function(){return chunkRHWW5FDP_js.b}});Object.defineProperty(exports,"StepIndicator",{enumerable:true,get:function(){return chunkRHWW5FDP_js.c}});Object.defineProperty(exports,"useDPIA",{enumerable:true,get:function(){return chunk3YCV2BA6_js.a}});Object.defineProperty(exports,"assessDPIARisk",{enumerable:true,get:function(){return chunkSSGJREE3_js.a}});//# sourceMappingURL=dpia.js.map
|
|
2
2
|
//# sourceMappingURL=dpia.js.map
|
package/dist/dpia.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as DPIAQuestionnaire,b as DPIAReport,c as StepIndicator}from'./chunk-XMKA6GVK.mjs';export{a as useDPIA}from'./chunk-
|
|
1
|
+
export{a as DPIAQuestionnaire,b as DPIAReport,c as StepIndicator}from'./chunk-XMKA6GVK.mjs';export{a as useDPIA}from'./chunk-6GGGTRDZ.mjs';export{a as assessDPIARisk}from'./chunk-PGSA2O5P.mjs';import'./chunk-WWT2ZSNU.mjs';//# sourceMappingURL=dpia.mjs.map
|
|
2
2
|
//# sourceMappingURL=dpia.mjs.map
|
package/dist/hooks.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { C as ConsentOption, a as ConsentSettings, b as ConsentStorageOptions, L as LawfulBasisType } from './consent-CmVzqZUk.mjs';
|
|
2
2
|
export { D as DSRRequest, a as DSRStatus, b as DSRType } from './dsr-pQzQ3H1O.mjs';
|
|
3
3
|
export { b as DPIAResult, c as DPIARisk } from './dpia-vWfE_9bO.mjs';
|
|
4
|
-
export { B as BreachReport, N as NotificationRequirement, R as RiskAssessment } from './breach-
|
|
4
|
+
export { B as BreachReport, N as NotificationRequirement, R as RiskAssessment } from './breach-BtFbDOmV.mjs';
|
|
5
5
|
export { O as OrganizationInfo, P as PolicySection, c as PrivacyPolicy } from './privacy-Ca6te9Ir.mjs';
|
|
6
6
|
export { L as LawfulBasis, b as LawfulBasisSummary, P as ProcessingActivity } from './lawful-basis-CWtvDG1x.mjs';
|
|
7
7
|
export { b as CrossBorderSummary, C as CrossBorderTransfer } from './cross-border-BrIy1ieh.mjs';
|
|
@@ -9,7 +9,7 @@ export { P as ProcessingRecord, a as ROPASummary, R as RecordOfProcessingActivit
|
|
|
9
9
|
export { u as useConsent } from './useConsent-DOt2Njst.mjs';
|
|
10
10
|
export { u as useDSR } from './useDSR-OXM5Q9rf.mjs';
|
|
11
11
|
export { u as useDPIA } from './useDPIA-FqPofFaV.mjs';
|
|
12
|
-
export { u as useBreach } from './useBreach-
|
|
12
|
+
export { u as useBreach } from './useBreach-WrZzJilM.mjs';
|
|
13
13
|
export { u as usePrivacyPolicy } from './usePrivacyPolicy-Dit2sFuV.mjs';
|
|
14
14
|
export { u as useLawfulBasis } from './useLawfulBasis-DNQ8YszQ.mjs';
|
|
15
15
|
export { u as useCrossBorderTransfer } from './useCrossBorderTransfer-TVnY8_UX.mjs';
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { C as ConsentOption, a as ConsentSettings, b as ConsentStorageOptions, L as LawfulBasisType } from './consent-CmVzqZUk.js';
|
|
2
2
|
export { D as DSRRequest, a as DSRStatus, b as DSRType } from './dsr-pQzQ3H1O.js';
|
|
3
3
|
export { b as DPIAResult, c as DPIARisk } from './dpia-vWfE_9bO.js';
|
|
4
|
-
export { B as BreachReport, N as NotificationRequirement, R as RiskAssessment } from './breach-
|
|
4
|
+
export { B as BreachReport, N as NotificationRequirement, R as RiskAssessment } from './breach-BtFbDOmV.js';
|
|
5
5
|
export { O as OrganizationInfo, P as PolicySection, c as PrivacyPolicy } from './privacy-Ca6te9Ir.js';
|
|
6
6
|
export { L as LawfulBasis, b as LawfulBasisSummary, P as ProcessingActivity } from './lawful-basis-CWtvDG1x.js';
|
|
7
7
|
export { b as CrossBorderSummary, C as CrossBorderTransfer } from './cross-border-BrIy1ieh.js';
|
|
@@ -9,7 +9,7 @@ export { P as ProcessingRecord, a as ROPASummary, R as RecordOfProcessingActivit
|
|
|
9
9
|
export { u as useConsent } from './useConsent-D0pAfTlb.js';
|
|
10
10
|
export { u as useDSR } from './useDSR-DAqqOBXb.js';
|
|
11
11
|
export { u as useDPIA } from './useDPIA-DFDHBLSa.js';
|
|
12
|
-
export { u as useBreach } from './useBreach-
|
|
12
|
+
export { u as useBreach } from './useBreach-vrh_XMpI.js';
|
|
13
13
|
export { u as usePrivacyPolicy } from './usePrivacyPolicy-CfySfBLS.js';
|
|
14
14
|
export { u as useLawfulBasis } from './useLawfulBasis-RILM_xsx.js';
|
|
15
15
|
export { u as useCrossBorderTransfer } from './useCrossBorderTransfer-D4FQYfFt.js';
|
package/dist/hooks.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkLXRXDTPI_js=require('./chunk-LXRXDTPI.js'),chunk5ZBO2UPH_js=require('./chunk-5ZBO2UPH.js'),chunk4A354HL3_js=require('./chunk-4A354HL3.js');require('./chunk-TDDAYVKK.js'),require('./chunk-IQF726GS.js'),require('./chunk-SWF3YVE5.js');var chunkZU73VG3X_js=require('./chunk-ZU73VG3X.js');require('./chunk-Y34DQYS7.js');var chunkWW3X3ELF_js=require('./chunk-WW3X3ELF.js');require('./chunk-CMZTI7SG.js');var
|
|
1
|
+
'use strict';var chunkLXRXDTPI_js=require('./chunk-LXRXDTPI.js'),chunk5ZBO2UPH_js=require('./chunk-5ZBO2UPH.js'),chunk4A354HL3_js=require('./chunk-4A354HL3.js');require('./chunk-TDDAYVKK.js'),require('./chunk-IQF726GS.js'),require('./chunk-SWF3YVE5.js');var chunkZU73VG3X_js=require('./chunk-ZU73VG3X.js');require('./chunk-Y34DQYS7.js');var chunkWW3X3ELF_js=require('./chunk-WW3X3ELF.js');require('./chunk-CMZTI7SG.js');var chunk3YCV2BA6_js=require('./chunk-3YCV2BA6.js');require('./chunk-SSGJREE3.js');var chunkLI6WJ3LZ_js=require('./chunk-LI6WJ3LZ.js');require('./chunk-RYZEIDNR.js');var chunkIWUUVRLJ_js=require('./chunk-IWUUVRLJ.js');require('./chunk-PM7CMTMB.js'),require('./chunk-MQFZHA2D.js');Object.defineProperty(exports,"useLawfulBasis",{enumerable:true,get:function(){return chunkLXRXDTPI_js.a}});Object.defineProperty(exports,"useCrossBorderTransfer",{enumerable:true,get:function(){return chunk5ZBO2UPH_js.a}});Object.defineProperty(exports,"useROPA",{enumerable:true,get:function(){return chunk4A354HL3_js.a}});Object.defineProperty(exports,"useConsent",{enumerable:true,get:function(){return chunkZU73VG3X_js.a}});Object.defineProperty(exports,"useDSR",{enumerable:true,get:function(){return chunkWW3X3ELF_js.a}});Object.defineProperty(exports,"useDPIA",{enumerable:true,get:function(){return chunk3YCV2BA6_js.a}});Object.defineProperty(exports,"useBreach",{enumerable:true,get:function(){return chunkLI6WJ3LZ_js.a}});Object.defineProperty(exports,"usePrivacyPolicy",{enumerable:true,get:function(){return chunkIWUUVRLJ_js.a}});//# sourceMappingURL=hooks.js.map
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
package/dist/hooks.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as useLawfulBasis}from'./chunk-L52PDW6O.mjs';export{a as useCrossBorderTransfer}from'./chunk-VMJBW3EF.mjs';export{a as useROPA}from'./chunk-T44JQT2O.mjs';import'./chunk-TXBZPCGF.mjs';import'./chunk-QKK5S54L.mjs';import'./chunk-PYEX7DFR.mjs';export{a as useConsent}from'./chunk-PDJGTQMY.mjs';import'./chunk-GIV2OHE6.mjs';export{a as useDSR}from'./chunk-GMLNWS2N.mjs';import'./chunk-2SYNHRP6.mjs';export{a as useDPIA}from'./chunk-
|
|
1
|
+
export{a as useLawfulBasis}from'./chunk-L52PDW6O.mjs';export{a as useCrossBorderTransfer}from'./chunk-VMJBW3EF.mjs';export{a as useROPA}from'./chunk-T44JQT2O.mjs';import'./chunk-TXBZPCGF.mjs';import'./chunk-QKK5S54L.mjs';import'./chunk-PYEX7DFR.mjs';export{a as useConsent}from'./chunk-PDJGTQMY.mjs';import'./chunk-GIV2OHE6.mjs';export{a as useDSR}from'./chunk-GMLNWS2N.mjs';import'./chunk-2SYNHRP6.mjs';export{a as useDPIA}from'./chunk-6GGGTRDZ.mjs';import'./chunk-PGSA2O5P.mjs';export{a as useBreach}from'./chunk-OITITR6K.mjs';import'./chunk-RGYK4VAY.mjs';export{a as usePrivacyPolicy}from'./chunk-DB3JH4DS.mjs';import'./chunk-UYP64PV7.mjs';import'./chunk-WWT2ZSNU.mjs';//# sourceMappingURL=hooks.mjs.map
|
|
2
2
|
//# sourceMappingURL=hooks.mjs.map
|
package/dist/index.d.mts
CHANGED
|
@@ -5,18 +5,18 @@ export { D as DSRRequest, a as DSRStatus, b as DSRType, c as RequestStatus, R as
|
|
|
5
5
|
export { DPIAQuestionnaire, DPIAReport, StepIndicator } from './dpia.mjs';
|
|
6
6
|
export { D as DPIAQuestion, b as DPIAResult, c as DPIARisk, a as DPIASection } from './dpia-vWfE_9bO.mjs';
|
|
7
7
|
export { BreachNotificationManager, BreachReportForm, BreachRiskAssessment, RegulatoryReportGenerator } from './breach.mjs';
|
|
8
|
-
export { a as BreachCategory, B as BreachReport, N as NotificationRequirement, b as RegulatoryNotification, R as RiskAssessment } from './breach-
|
|
8
|
+
export { a as BreachCategory, B as BreachReport, N as NotificationRequirement, b as RegulatoryNotification, R as RiskAssessment } from './breach-BtFbDOmV.mjs';
|
|
9
9
|
export { PolicyExporter, PolicyGenerator, PolicyPreview } from './policy.mjs';
|
|
10
10
|
export { O as OrganizationInfo, P as PolicySection, a as PolicyTemplate, b as PolicyVariable, c as PrivacyPolicy } from './privacy-Ca6te9Ir.mjs';
|
|
11
11
|
export { v as validateConsent, a as validateConsentOptions } from './consent-DCc5zjXI.mjs';
|
|
12
12
|
export { f as formatDSRRequest } from './dsr-whPkiI0_.mjs';
|
|
13
13
|
export { a as assessDPIARisk } from './dpia-B9ZZJG5a.mjs';
|
|
14
|
-
export { c as calculateBreachSeverity } from './breach-
|
|
14
|
+
export { c as calculateBreachSeverity } from './breach-6z0r-KuE.mjs';
|
|
15
15
|
export { g as generatePolicyText } from './privacy-9FcJceMr.mjs';
|
|
16
16
|
export { u as useConsent } from './useConsent-DOt2Njst.mjs';
|
|
17
17
|
export { u as useDSR } from './useDSR-OXM5Q9rf.mjs';
|
|
18
18
|
export { u as useDPIA } from './useDPIA-FqPofFaV.mjs';
|
|
19
|
-
export { u as useBreach } from './useBreach-
|
|
19
|
+
export { u as useBreach } from './useBreach-WrZzJilM.mjs';
|
|
20
20
|
export { u as usePrivacyPolicy } from './usePrivacyPolicy-Dit2sFuV.mjs';
|
|
21
21
|
export { LawfulBasisTracker } from './lawful-basis.mjs';
|
|
22
22
|
export { L as LawfulBasis, b as LawfulBasisSummary, a as LegitimateInterestAssessment, P as ProcessingActivity, S as SensitiveDataCondition } from './lawful-basis-CWtvDG1x.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,18 +5,18 @@ export { D as DSRRequest, a as DSRStatus, b as DSRType, c as RequestStatus, R as
|
|
|
5
5
|
export { DPIAQuestionnaire, DPIAReport, StepIndicator } from './dpia.js';
|
|
6
6
|
export { D as DPIAQuestion, b as DPIAResult, c as DPIARisk, a as DPIASection } from './dpia-vWfE_9bO.js';
|
|
7
7
|
export { BreachNotificationManager, BreachReportForm, BreachRiskAssessment, RegulatoryReportGenerator } from './breach.js';
|
|
8
|
-
export { a as BreachCategory, B as BreachReport, N as NotificationRequirement, b as RegulatoryNotification, R as RiskAssessment } from './breach-
|
|
8
|
+
export { a as BreachCategory, B as BreachReport, N as NotificationRequirement, b as RegulatoryNotification, R as RiskAssessment } from './breach-BtFbDOmV.js';
|
|
9
9
|
export { PolicyExporter, PolicyGenerator, PolicyPreview } from './policy.js';
|
|
10
10
|
export { O as OrganizationInfo, P as PolicySection, a as PolicyTemplate, b as PolicyVariable, c as PrivacyPolicy } from './privacy-Ca6te9Ir.js';
|
|
11
11
|
export { v as validateConsent, a as validateConsentOptions } from './consent-DLWb5ota.js';
|
|
12
12
|
export { f as formatDSRRequest } from './dsr-jq5NUEdz.js';
|
|
13
13
|
export { a as assessDPIARisk } from './dpia-fdtTd2DI.js';
|
|
14
|
-
export { c as calculateBreachSeverity } from './breach-
|
|
14
|
+
export { c as calculateBreachSeverity } from './breach-BFfnvtRk.js';
|
|
15
15
|
export { g as generatePolicyText } from './privacy-BXz7O2ej.js';
|
|
16
16
|
export { u as useConsent } from './useConsent-D0pAfTlb.js';
|
|
17
17
|
export { u as useDSR } from './useDSR-DAqqOBXb.js';
|
|
18
18
|
export { u as useDPIA } from './useDPIA-DFDHBLSa.js';
|
|
19
|
-
export { u as useBreach } from './useBreach-
|
|
19
|
+
export { u as useBreach } from './useBreach-vrh_XMpI.js';
|
|
20
20
|
export { u as usePrivacyPolicy } from './usePrivacyPolicy-CfySfBLS.js';
|
|
21
21
|
export { LawfulBasisTracker } from './lawful-basis.js';
|
|
22
22
|
export { L as LawfulBasis, b as LawfulBasisSummary, a as LegitimateInterestAssessment, P as ProcessingActivity, S as SensitiveDataCondition } from './lawful-basis-CWtvDG1x.js';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkRB26MIRI_js=require('./chunk-RB26MIRI.js'),chunkAQEGDEQM_js=require('./chunk-AQEGDEQM.js'),chunkUUWVBENC_js=require('./chunk-UUWVBENC.js'),chunkLXRXDTPI_js=require('./chunk-LXRXDTPI.js'),chunk5ZBO2UPH_js=require('./chunk-5ZBO2UPH.js'),chunk4A354HL3_js=require('./chunk-4A354HL3.js'),chunkTDDAYVKK_js=require('./chunk-TDDAYVKK.js'),chunkIQF726GS_js=require('./chunk-IQF726GS.js'),chunkSWF3YVE5_js=require('./chunk-SWF3YVE5.js'),chunkFK3CSFLJ_js=require('./chunk-FK3CSFLJ.js'),chunkZU73VG3X_js=require('./chunk-ZU73VG3X.js'),chunkY34DQYS7_js=require('./chunk-Y34DQYS7.js'),chunk6JVYYLS7_js=require('./chunk-6JVYYLS7.js'),chunkWW3X3ELF_js=require('./chunk-WW3X3ELF.js'),chunkCMZTI7SG_js=require('./chunk-CMZTI7SG.js'),chunkRHWW5FDP_js=require('./chunk-RHWW5FDP.js'),
|
|
1
|
+
'use strict';var chunkRB26MIRI_js=require('./chunk-RB26MIRI.js'),chunkAQEGDEQM_js=require('./chunk-AQEGDEQM.js'),chunkUUWVBENC_js=require('./chunk-UUWVBENC.js'),chunkLXRXDTPI_js=require('./chunk-LXRXDTPI.js'),chunk5ZBO2UPH_js=require('./chunk-5ZBO2UPH.js'),chunk4A354HL3_js=require('./chunk-4A354HL3.js'),chunkTDDAYVKK_js=require('./chunk-TDDAYVKK.js'),chunkIQF726GS_js=require('./chunk-IQF726GS.js'),chunkSWF3YVE5_js=require('./chunk-SWF3YVE5.js'),chunkFK3CSFLJ_js=require('./chunk-FK3CSFLJ.js'),chunkZU73VG3X_js=require('./chunk-ZU73VG3X.js'),chunkY34DQYS7_js=require('./chunk-Y34DQYS7.js'),chunk6JVYYLS7_js=require('./chunk-6JVYYLS7.js'),chunkWW3X3ELF_js=require('./chunk-WW3X3ELF.js'),chunkCMZTI7SG_js=require('./chunk-CMZTI7SG.js'),chunkRHWW5FDP_js=require('./chunk-RHWW5FDP.js'),chunk3YCV2BA6_js=require('./chunk-3YCV2BA6.js'),chunkSSGJREE3_js=require('./chunk-SSGJREE3.js'),chunkL3FKTBGV_js=require('./chunk-L3FKTBGV.js'),chunkLI6WJ3LZ_js=require('./chunk-LI6WJ3LZ.js'),chunkRYZEIDNR_js=require('./chunk-RYZEIDNR.js'),chunk4DKT6IB6_js=require('./chunk-4DKT6IB6.js'),chunkIWUUVRLJ_js=require('./chunk-IWUUVRLJ.js'),chunkPM7CMTMB_js=require('./chunk-PM7CMTMB.js');require('./chunk-MQFZHA2D.js');Object.defineProperty(exports,"LawfulBasisTracker",{enumerable:true,get:function(){return chunkRB26MIRI_js.a}});Object.defineProperty(exports,"CrossBorderTransferManager",{enumerable:true,get:function(){return chunkAQEGDEQM_js.a}});Object.defineProperty(exports,"ROPAManager",{enumerable:true,get:function(){return chunkUUWVBENC_js.a}});Object.defineProperty(exports,"useLawfulBasis",{enumerable:true,get:function(){return chunkLXRXDTPI_js.a}});Object.defineProperty(exports,"useCrossBorderTransfer",{enumerable:true,get:function(){return chunk5ZBO2UPH_js.a}});Object.defineProperty(exports,"useROPA",{enumerable:true,get:function(){return chunk4A354HL3_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,"ConsentBanner",{enumerable:true,get:function(){return chunkFK3CSFLJ_js.a}});Object.defineProperty(exports,"ConsentManager",{enumerable:true,get:function(){return chunkFK3CSFLJ_js.b}});Object.defineProperty(exports,"ConsentStorage",{enumerable:true,get:function(){return chunkFK3CSFLJ_js.c}});Object.defineProperty(exports,"useConsent",{enumerable:true,get:function(){return chunkZU73VG3X_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,"DSRDashboard",{enumerable:true,get:function(){return chunk6JVYYLS7_js.b}});Object.defineProperty(exports,"DSRRequestForm",{enumerable:true,get:function(){return chunk6JVYYLS7_js.a}});Object.defineProperty(exports,"DSRTracker",{enumerable:true,get:function(){return chunk6JVYYLS7_js.c}});Object.defineProperty(exports,"useDSR",{enumerable:true,get:function(){return chunkWW3X3ELF_js.a}});Object.defineProperty(exports,"formatDSRRequest",{enumerable:true,get:function(){return chunkCMZTI7SG_js.a}});Object.defineProperty(exports,"DPIAQuestionnaire",{enumerable:true,get:function(){return chunkRHWW5FDP_js.a}});Object.defineProperty(exports,"DPIAReport",{enumerable:true,get:function(){return chunkRHWW5FDP_js.b}});Object.defineProperty(exports,"StepIndicator",{enumerable:true,get:function(){return chunkRHWW5FDP_js.c}});Object.defineProperty(exports,"useDPIA",{enumerable:true,get:function(){return chunk3YCV2BA6_js.a}});Object.defineProperty(exports,"assessDPIARisk",{enumerable:true,get:function(){return chunkSSGJREE3_js.a}});Object.defineProperty(exports,"BreachNotificationManager",{enumerable:true,get:function(){return chunkL3FKTBGV_js.c}});Object.defineProperty(exports,"BreachReportForm",{enumerable:true,get:function(){return chunkL3FKTBGV_js.a}});Object.defineProperty(exports,"BreachRiskAssessment",{enumerable:true,get:function(){return chunkL3FKTBGV_js.b}});Object.defineProperty(exports,"RegulatoryReportGenerator",{enumerable:true,get:function(){return chunkL3FKTBGV_js.d}});Object.defineProperty(exports,"useBreach",{enumerable:true,get:function(){return chunkLI6WJ3LZ_js.a}});Object.defineProperty(exports,"calculateBreachSeverity",{enumerable:true,get:function(){return chunkRYZEIDNR_js.a}});Object.defineProperty(exports,"PolicyExporter",{enumerable:true,get:function(){return chunk4DKT6IB6_js.c}});Object.defineProperty(exports,"PolicyGenerator",{enumerable:true,get:function(){return chunk4DKT6IB6_js.a}});Object.defineProperty(exports,"PolicyPreview",{enumerable:true,get:function(){return chunk4DKT6IB6_js.b}});Object.defineProperty(exports,"usePrivacyPolicy",{enumerable:true,get:function(){return chunkIWUUVRLJ_js.a}});Object.defineProperty(exports,"generatePolicyText",{enumerable:true,get:function(){return chunkPM7CMTMB_js.a}});//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as LawfulBasisTracker}from'./chunk-C2IJWCZQ.mjs';export{a as CrossBorderTransferManager}from'./chunk-2XHD22J7.mjs';export{a as ROPAManager}from'./chunk-6SGG6WPA.mjs';export{a as useLawfulBasis}from'./chunk-L52PDW6O.mjs';export{a as useCrossBorderTransfer}from'./chunk-VMJBW3EF.mjs';export{a as useROPA}from'./chunk-T44JQT2O.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{a as ConsentBanner,b as ConsentManager,c as ConsentStorage}from'./chunk-SLNMKGQ2.mjs';export{a as useConsent}from'./chunk-PDJGTQMY.mjs';export{a as validateConsent,b as validateConsentOptions}from'./chunk-GIV2OHE6.mjs';export{b as DSRDashboard,a as DSRRequestForm,c as DSRTracker}from'./chunk-6JFTAYXV.mjs';export{a as useDSR}from'./chunk-GMLNWS2N.mjs';export{a as formatDSRRequest}from'./chunk-2SYNHRP6.mjs';export{a as DPIAQuestionnaire,b as DPIAReport,c as StepIndicator}from'./chunk-XMKA6GVK.mjs';export{a as useDPIA}from'./chunk-
|
|
1
|
+
export{a as LawfulBasisTracker}from'./chunk-C2IJWCZQ.mjs';export{a as CrossBorderTransferManager}from'./chunk-2XHD22J7.mjs';export{a as ROPAManager}from'./chunk-6SGG6WPA.mjs';export{a as useLawfulBasis}from'./chunk-L52PDW6O.mjs';export{a as useCrossBorderTransfer}from'./chunk-VMJBW3EF.mjs';export{a as useROPA}from'./chunk-T44JQT2O.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{a as ConsentBanner,b as ConsentManager,c as ConsentStorage}from'./chunk-SLNMKGQ2.mjs';export{a as useConsent}from'./chunk-PDJGTQMY.mjs';export{a as validateConsent,b as validateConsentOptions}from'./chunk-GIV2OHE6.mjs';export{b as DSRDashboard,a as DSRRequestForm,c as DSRTracker}from'./chunk-6JFTAYXV.mjs';export{a as useDSR}from'./chunk-GMLNWS2N.mjs';export{a as formatDSRRequest}from'./chunk-2SYNHRP6.mjs';export{a as DPIAQuestionnaire,b as DPIAReport,c as StepIndicator}from'./chunk-XMKA6GVK.mjs';export{a as useDPIA}from'./chunk-6GGGTRDZ.mjs';export{a as assessDPIARisk}from'./chunk-PGSA2O5P.mjs';export{c as BreachNotificationManager,a as BreachReportForm,b as BreachRiskAssessment,d as RegulatoryReportGenerator}from'./chunk-JUN6YPLL.mjs';export{a as useBreach}from'./chunk-OITITR6K.mjs';export{a as calculateBreachSeverity}from'./chunk-RGYK4VAY.mjs';export{c as PolicyExporter,a as PolicyGenerator,b as PolicyPreview}from'./chunk-FFW7RUAG.mjs';export{a as usePrivacyPolicy}from'./chunk-DB3JH4DS.mjs';export{a as generatePolicyText}from'./chunk-UYP64PV7.mjs';import'./chunk-WWT2ZSNU.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BreachCategory, B as BreachReport, R as RiskAssessment, b as RegulatoryNotification, N as NotificationRequirement } from './breach-
|
|
1
|
+
import { a as BreachCategory, B as BreachReport, R as RiskAssessment, b as RegulatoryNotification, N as NotificationRequirement } from './breach-BtFbDOmV.mjs';
|
|
2
2
|
|
|
3
3
|
interface UseBreachOptions {
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BreachCategory, B as BreachReport, R as RiskAssessment, b as RegulatoryNotification, N as NotificationRequirement } from './breach-
|
|
1
|
+
import { a as BreachCategory, B as BreachReport, R as RiskAssessment, b as RegulatoryNotification, N as NotificationRequirement } from './breach-BtFbDOmV.js';
|
|
2
2
|
|
|
3
3
|
interface UseBreachOptions {
|
|
4
4
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tantainnovative/ndpr-toolkit",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Nigeria Data Protection Toolkit — enterprise-grade compliance components for the Nigeria Data Protection Act (NDPA) 2023",
|
|
6
6
|
"keywords": [
|
|
@@ -136,20 +136,24 @@
|
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
138
|
"files": [
|
|
139
|
-
"dist",
|
|
139
|
+
"dist/**/*.js",
|
|
140
|
+
"dist/**/*.mjs",
|
|
141
|
+
"dist/**/*.d.ts",
|
|
142
|
+
"dist/**/*.d.mts",
|
|
143
|
+
"dist/**/*.css",
|
|
140
144
|
"README.md",
|
|
141
145
|
"LICENSE"
|
|
142
146
|
],
|
|
143
147
|
"publishConfig": {
|
|
144
148
|
"access": "public"
|
|
145
149
|
},
|
|
150
|
+
"sideEffects": [
|
|
151
|
+
"*.css"
|
|
152
|
+
],
|
|
146
153
|
"dependencies": {
|
|
147
|
-
"tslib": "^2.4.0",
|
|
148
154
|
"uuid": "^13.0.0"
|
|
149
155
|
},
|
|
150
156
|
"peerDependencies": {
|
|
151
|
-
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
152
|
-
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
153
157
|
"@radix-ui/react-label": "^2.1.4",
|
|
154
158
|
"@radix-ui/react-slot": "^1.2.0",
|
|
155
159
|
"@radix-ui/react-switch": "^1.2.2",
|
|
@@ -158,6 +162,8 @@
|
|
|
158
162
|
"clsx": "^2.1.1",
|
|
159
163
|
"jspdf": "^3.0.3",
|
|
160
164
|
"lucide-react": "^0.507.0",
|
|
165
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
166
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
161
167
|
"tailwind-merge": "^2.6.0"
|
|
162
168
|
},
|
|
163
169
|
"peerDependenciesMeta": {
|
|
@@ -190,7 +196,12 @@
|
|
|
190
196
|
}
|
|
191
197
|
},
|
|
192
198
|
"devDependencies": {
|
|
199
|
+
"@mdx-js/loader": "^3.1.1",
|
|
200
|
+
"@mdx-js/react": "^3.1.1",
|
|
201
|
+
"@next/mdx": "^16.2.2",
|
|
193
202
|
"@next/font": "^14.2.15",
|
|
203
|
+
"gray-matter": "^4.0.3",
|
|
204
|
+
"reading-time": "^1.5.0",
|
|
194
205
|
"@tailwindcss/postcss": "^4.1.13",
|
|
195
206
|
"@testing-library/jest-dom": "^6.6.3",
|
|
196
207
|
"@testing-library/react": "^16.3.0",
|
|
@@ -205,13 +216,13 @@
|
|
|
205
216
|
"eslint-plugin-react-hooks": "^4.5.0",
|
|
206
217
|
"gh-pages": "^6.3.0",
|
|
207
218
|
"husky": "^9.1.7",
|
|
208
|
-
"posthog-js": "^1.268.8",
|
|
209
|
-
"posthog-node": "^5.9.2",
|
|
210
219
|
"jest": "^29.5.0",
|
|
211
220
|
"jest-environment-jsdom": "^30.2.0",
|
|
212
221
|
"lint-staged": "^16.2.3",
|
|
213
222
|
"next": "^15.5.4",
|
|
214
223
|
"postcss": "^8.5.6",
|
|
224
|
+
"posthog-js": "^1.268.8",
|
|
225
|
+
"posthog-node": "^5.9.2",
|
|
215
226
|
"react": "^19.1.1",
|
|
216
227
|
"react-dom": "^19.1.1",
|
|
217
228
|
"react-test-renderer": "^18.2.0",
|
package/dist/breach.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"breach.js"}
|
package/dist/breach.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"breach.mjs"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../packages/ndpr-toolkit/src/utils/dsr.ts"],"names":["formatDSRRequest","request","_a","_b","validationErrors","attachment"],"mappings":"AAOO,SAASA,EAAiBC,CAAAA,CAI/B,CAXF,IAAAC,CAAAA,CAAAC,CAAAA,CAYE,IAAMC,CAAAA,CAA6B,GAGnC,OAAKH,CAAAA,CAAQ,IACXG,CAAAA,CAAiB,IAAA,CAAK,wBAAwB,CAAA,CAG3CH,CAAAA,CAAQ,MACXG,CAAAA,CAAiB,IAAA,CAAK,0BAA0B,CAAA,CAG7CH,CAAAA,CAAQ,QACXG,CAAAA,CAAiB,IAAA,CAAK,4BAA4B,CAAA,CAG/CH,CAAAA,CAAQ,WACXG,CAAAA,CAAiB,IAAA,CAAK,gCAAgC,CAAA,CAAA,CAGnDF,CAAAA,CAAAD,EAAQ,OAAA,GAAR,IAAA,EAAAC,EAAiB,IAAA,EACpBE,CAAAA,CAAiB,KAAK,+BAA+B,CAAA,CAAA,CAGlDD,CAAAA,CAAAF,CAAAA,CAAQ,UAAR,IAAA,EAAAE,CAAAA,CAAiB,OACpBC,CAAAA,CAAiB,IAAA,CAAK,gCAAgC,CAAA,CAmCjD,CACL,iBAhCuB,CACvB,SAAA,CAAWH,EAAQ,EAAA,CACnB,WAAA,CAAaA,EAAQ,IAAA,CACrB,MAAA,CAAQA,EAAQ,MAAA,CAChB,WAAA,CAAa,IAAI,IAAA,CAAKA,CAAAA,CAAQ,SAAS,CAAA,CAAE,WAAA,GACzC,WAAA,CAAaA,CAAAA,CAAQ,UAAY,IAAI,IAAA,CAAKA,EAAQ,SAAS,CAAA,CAAE,aAAY,CAAI,MAAA,CAC7E,QAASA,CAAAA,CAAQ,OAAA,CACb,IAAI,IAAA,CAAKA,CAAAA,CAAQ,OAAO,CAAA,CAAE,aAAY,CACtC,MAAA,CACJ,YAAa,CACX,IAAA,CAAMA,EAAQ,OAAA,CAAQ,IAAA,CACtB,MAAOA,CAAAA,CAAQ,OAAA,CAAQ,MACvB,KAAA,CAAOA,CAAAA,CAAQ,QAAQ,KAAA,EAAS,cAAA,CAChC,WAAY,CACV,IAAA,CAAMA,EAAQ,OAAA,CAAQ,cAAA,EAAkB,gBACxC,KAAA,CAAOA,CAAAA,CAAQ,QAAQ,eAAA,EAAmB,cAC5C,CACF,CAAA,CACA,qBAAA,CAAuBA,EAAQ,cAAA,EAAkB,GACjD,kBAAA,CAAoBA,CAAAA,CAAQ,aACxB,CAAA,EAAGA,CAAAA,CAAQ,aAAa,QAAA,CAAW,UAAA,CAAa,cAAc,CAAA,EAAGA,CAAAA,CAAQ,aAAa,MAAA,CAAS,CAAA,KAAA,EAAQA,EAAQ,YAAA,CAAa,MAAM,GAAK,EAAE,CAAA,CAAA,CACzI,uBACJ,WAAA,CAAaA,CAAAA,CAAQ,YACjBA,CAAAA,CAAQ,WAAA,CAAY,IAAII,CAAAA,GAAe,CACrC,KAAMA,CAAAA,CAAW,IAAA,CACjB,KAAMA,CAAAA,CAAW,IAAA,CACjB,QAAS,IAAI,IAAA,CAAKA,EAAW,OAAO,CAAA,CAAE,aACxC,CAAA,CAAE,EACF,EACN,EAIE,OAAA,CAASD,CAAAA,CAAiB,SAAW,CAAA,CACrC,gBAAA,CAAAA,CACF,CACF","file":"chunk-2SYNHRP6.mjs","sourcesContent":["import { DSRRequest } from '../types/dsr';\n\n/**\n * Formats a DSR request for display or submission\n * @param request The DSR request to format\n * @returns Formatted request data\n */\nexport function formatDSRRequest(request: DSRRequest): {\n formattedRequest: Record<string, any>;\n isValid: boolean;\n validationErrors: string[];\n} {\n const validationErrors: string[] = [];\n \n // Validate required fields\n if (!request.id) {\n validationErrors.push('Request ID is required');\n }\n \n if (!request.type) {\n validationErrors.push('Request type is required');\n }\n \n if (!request.status) {\n validationErrors.push('Request status is required');\n }\n \n if (!request.createdAt) {\n validationErrors.push('Creation timestamp is required');\n }\n \n if (!request.subject?.name) {\n validationErrors.push('Data subject name is required');\n }\n \n if (!request.subject?.email) {\n validationErrors.push('Data subject email is required');\n }\n \n // Format the request for display or submission\n const formattedRequest = {\n requestId: request.id,\n requestType: request.type,\n status: request.status,\n createdDate: new Date(request.createdAt).toISOString(),\n lastUpdated: request.updatedAt ? new Date(request.updatedAt).toISOString() : undefined,\n dueDate: request.dueDate \n ? new Date(request.dueDate).toISOString() \n : undefined,\n dataSubject: {\n name: request.subject.name,\n email: request.subject.email,\n phone: request.subject.phone || 'Not provided',\n identifier: {\n type: request.subject.identifierType || 'Not specified',\n value: request.subject.identifierValue || 'Not provided'\n }\n },\n additionalInformation: request.additionalInfo || {},\n verificationStatus: request.verification \n ? `${request.verification.verified ? 'Verified' : 'Not verified'}${request.verification.method ? ` via ${request.verification.method}` : ''}`\n : 'Pending verification',\n attachments: request.attachments \n ? request.attachments.map(attachment => ({\n name: attachment.name,\n type: attachment.type,\n addedOn: new Date(attachment.addedAt).toISOString()\n }))\n : []\n };\n \n return {\n formattedRequest,\n isValid: validationErrors.length === 0,\n validationErrors\n };\n}\n"]}
|