@tantainnovative/ndpr-toolkit 1.0.3 → 1.0.5
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/next-env.d.ts +5 -0
- package/package.json +1 -1
- package/packages/ndpr-toolkit/dist/components/breach/BreachNotificationManager.d.ts +62 -0
- package/packages/ndpr-toolkit/dist/components/breach/BreachReportForm.d.ts +66 -0
- package/packages/ndpr-toolkit/dist/components/breach/BreachRiskAssessment.d.ts +50 -0
- package/packages/ndpr-toolkit/dist/components/breach/RegulatoryReportGenerator.d.ts +94 -0
- package/packages/ndpr-toolkit/dist/components/consent/ConsentBanner.d.ts +79 -0
- package/packages/ndpr-toolkit/dist/components/consent/ConsentManager.d.ts +73 -0
- package/packages/ndpr-toolkit/dist/components/consent/ConsentStorage.d.ts +41 -0
- package/packages/ndpr-toolkit/dist/components/dpia/DPIAQuestionnaire.d.ts +70 -0
- package/packages/ndpr-toolkit/dist/components/dpia/DPIAReport.d.ts +40 -0
- package/packages/ndpr-toolkit/dist/components/dpia/StepIndicator.d.ts +64 -0
- package/packages/ndpr-toolkit/dist/components/dsr/DSRDashboard.d.ts +58 -0
- package/packages/ndpr-toolkit/dist/components/dsr/DSRRequestForm.d.ts +74 -0
- package/packages/ndpr-toolkit/dist/components/dsr/DSRTracker.d.ts +56 -0
- package/packages/ndpr-toolkit/dist/components/policy/PolicyExporter.d.ts +65 -0
- package/packages/ndpr-toolkit/dist/components/policy/PolicyGenerator.d.ts +54 -0
- package/packages/ndpr-toolkit/dist/components/policy/PolicyPreview.d.ts +71 -0
- package/packages/ndpr-toolkit/dist/hooks/useBreach.d.ts +97 -0
- package/packages/ndpr-toolkit/dist/hooks/useConsent.d.ts +63 -0
- package/packages/ndpr-toolkit/dist/hooks/useDPIA.d.ts +92 -0
- package/packages/ndpr-toolkit/dist/hooks/useDSR.d.ts +72 -0
- package/packages/ndpr-toolkit/dist/hooks/usePrivacyPolicy.d.ts +87 -0
- package/packages/ndpr-toolkit/dist/index.d.ts +31 -0
- package/packages/ndpr-toolkit/dist/index.esm.js +2 -0
- package/packages/ndpr-toolkit/dist/index.esm.js.map +1 -0
- package/packages/ndpr-toolkit/dist/index.js +2 -0
- package/packages/ndpr-toolkit/dist/index.js.map +1 -0
- package/packages/ndpr-toolkit/dist/setupTests.d.ts +2 -0
- package/packages/ndpr-toolkit/dist/types/breach.d.ts +239 -0
- package/packages/ndpr-toolkit/dist/types/consent.d.ts +95 -0
- package/packages/ndpr-toolkit/dist/types/dpia.d.ts +196 -0
- package/packages/ndpr-toolkit/dist/types/dsr.d.ts +162 -0
- package/packages/ndpr-toolkit/dist/types/privacy.d.ts +204 -0
- package/packages/ndpr-toolkit/dist/utils/breach.d.ts +14 -0
- package/packages/ndpr-toolkit/dist/utils/consent.d.ts +10 -0
- package/packages/ndpr-toolkit/dist/utils/dpia.d.ts +12 -0
- package/packages/ndpr-toolkit/dist/utils/dsr.d.ts +11 -0
- package/packages/ndpr-toolkit/dist/utils/privacy.d.ts +12 -0
- package/src/components/consent/ConsentBanner.tsx +82 -48
- package/src/components/data-subject-rights/DataSubjectRequestForm.tsx +240 -129
- package/src/components/dpia/DPIAQuestionnaire.tsx +162 -122
- package/src/components/privacy-policy/PolicyGenerator.tsx +5 -5
- package/src/components/privacy-policy/steps/CustomSectionsStep.tsx +103 -77
- package/src/components/privacy-policy/steps/PolicyPreviewStep.tsx +117 -63
- package/src/hooks/useConsent.ts +16 -10
- package/src/lib/consentService.ts +44 -37
- package/src/lib/dpiaQuestions.ts +139 -99
- package/src/lib/requestService.ts +21 -17
- package/src/types/index.ts +13 -8
- package/.claude/settings.local.json +0 -20
- package/.eslintrc.json +0 -10
- package/.github/workflows/ci.yml +0 -36
- package/.github/workflows/nextjs.yml +0 -104
- package/.husky/commit-msg +0 -4
- package/.husky/pre-commit +0 -4
- package/.lintstagedrc.js +0 -4
- package/.nvmrc +0 -1
- package/.versionrc +0 -17
- package/CLAUDE.md +0 -90
- package/commitlint.config.js +0 -36
- package/jest.config.js +0 -31
- package/jest.setup.js +0 -15
- package/packages/ndpr-toolkit/jest.config.js +0 -23
- package/packages/ndpr-toolkit/src/__tests__/components/consent/ConsentBanner.test.tsx +0 -119
- package/packages/ndpr-toolkit/src/__tests__/components/consent/ConsentManager.test.tsx +0 -122
- package/packages/ndpr-toolkit/src/__tests__/components/consent/ConsentStorage.test.tsx +0 -270
- package/packages/ndpr-toolkit/src/__tests__/components/dsr/DSRDashboard.test.tsx +0 -199
- package/packages/ndpr-toolkit/src/__tests__/components/dsr/DSRRequestForm.test.tsx +0 -224
- package/packages/ndpr-toolkit/src/__tests__/components/dsr/DSRTracker.test.tsx +0 -104
- package/packages/ndpr-toolkit/src/__tests__/hooks/useConsent.test.tsx +0 -161
- package/packages/ndpr-toolkit/src/__tests__/hooks/useDSR.test.tsx +0 -330
- package/packages/ndpr-toolkit/src/__tests__/utils/breach.test.ts +0 -149
- package/packages/ndpr-toolkit/src/__tests__/utils/consent.test.ts +0 -88
- package/packages/ndpr-toolkit/src/__tests__/utils/dpia.test.ts +0 -160
- package/packages/ndpr-toolkit/src/__tests__/utils/dsr.test.ts +0 -110
- package/packages/ndpr-toolkit/src/__tests__/utils/privacy.test.ts +0 -97
- package/src/__tests__/example.test.ts +0 -13
- package/src/__tests__/requestService.test.ts +0 -57
- package/src/app/docs/components/DocLayout.tsx +0 -267
- package/src/app/docs/components/breach-notification/page.tsx +0 -797
- package/src/app/docs/components/consent-management/page.tsx +0 -576
- package/src/app/docs/components/data-subject-rights/page.tsx +0 -511
- package/src/app/docs/components/dpia-questionnaire/layout.tsx +0 -15
- package/src/app/docs/components/dpia-questionnaire/metadata.ts +0 -31
- package/src/app/docs/components/dpia-questionnaire/page.tsx +0 -666
- package/src/app/docs/components/hooks/page.tsx +0 -305
- package/src/app/docs/components/page.tsx +0 -84
- package/src/app/docs/components/privacy-policy-generator/page.tsx +0 -634
- package/src/app/docs/guides/breach-notification-process/components/BestPractices.tsx +0 -123
- package/src/app/docs/guides/breach-notification-process/components/ImplementationSteps.tsx +0 -328
- package/src/app/docs/guides/breach-notification-process/components/Introduction.tsx +0 -28
- package/src/app/docs/guides/breach-notification-process/components/NotificationTimeline.tsx +0 -91
- package/src/app/docs/guides/breach-notification-process/components/Resources.tsx +0 -118
- package/src/app/docs/guides/breach-notification-process/page.tsx +0 -39
- package/src/app/docs/guides/conducting-dpia/page.tsx +0 -593
- package/src/app/docs/guides/data-subject-requests/page.tsx +0 -666
- package/src/app/docs/guides/managing-consent/page.tsx +0 -738
- package/src/app/docs/guides/ndpr-compliance-checklist/components/ComplianceChecklist.tsx +0 -296
- package/src/app/docs/guides/ndpr-compliance-checklist/components/ImplementationTools.tsx +0 -145
- package/src/app/docs/guides/ndpr-compliance-checklist/components/Introduction.tsx +0 -33
- package/src/app/docs/guides/ndpr-compliance-checklist/components/KeyRequirements.tsx +0 -99
- package/src/app/docs/guides/ndpr-compliance-checklist/components/Resources.tsx +0 -159
- package/src/app/docs/guides/ndpr-compliance-checklist/page.tsx +0 -38
- package/src/app/docs/guides/page.tsx +0 -67
- package/src/app/docs/layout.tsx +0 -15
- package/src/app/docs/metadata.ts +0 -31
- package/src/app/docs/page.tsx +0 -572
- package/src/components/docs/DocLayout.tsx +0 -289
- package/src/components/docs/index.ts +0 -2
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import Link from 'next/link';
|
|
4
|
-
import { Button } from '@/components/ui/Button';
|
|
5
|
-
import { Card, CardContent } from '@/components/ui/Card';
|
|
6
|
-
|
|
7
|
-
export default function Resources() {
|
|
8
|
-
return (
|
|
9
|
-
<section id="resources" className="mb-8">
|
|
10
|
-
<h2 className="text-2xl font-bold mb-4">Additional Resources</h2>
|
|
11
|
-
<p className="mb-4">
|
|
12
|
-
To help you implement an effective breach notification process, here are some additional resources:
|
|
13
|
-
</p>
|
|
14
|
-
|
|
15
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
16
|
-
<Card>
|
|
17
|
-
<CardContent className="p-4">
|
|
18
|
-
<h3 className="font-medium text-gray-900 dark:text-white mb-2">NDPR Implementation Framework</h3>
|
|
19
|
-
<p className="text-gray-600 dark:text-gray-300 text-sm mb-3">
|
|
20
|
-
Official guidance on implementing the NDPR, including breach notification requirements.
|
|
21
|
-
</p>
|
|
22
|
-
<Button asChild variant="outline" size="sm">
|
|
23
|
-
<a href="https://nitda.gov.ng/wp-content/uploads/2020/01/NDPR-Implementation-Framework.pdf" target="_blank" rel="noopener noreferrer">
|
|
24
|
-
View Framework
|
|
25
|
-
</a>
|
|
26
|
-
</Button>
|
|
27
|
-
</CardContent>
|
|
28
|
-
</Card>
|
|
29
|
-
|
|
30
|
-
<Card>
|
|
31
|
-
<CardContent className="p-4">
|
|
32
|
-
<h3 className="font-medium text-gray-900 dark:text-white mb-2">Breach Notification Component Docs</h3>
|
|
33
|
-
<p className="text-gray-600 dark:text-gray-300 text-sm mb-3">
|
|
34
|
-
Technical documentation for the Breach Notification components.
|
|
35
|
-
</p>
|
|
36
|
-
<Button asChild variant="outline" size="sm">
|
|
37
|
-
<Link href="/docs/components/breach-notification">
|
|
38
|
-
View Documentation
|
|
39
|
-
</Link>
|
|
40
|
-
</Button>
|
|
41
|
-
</CardContent>
|
|
42
|
-
</Card>
|
|
43
|
-
|
|
44
|
-
<Card>
|
|
45
|
-
<CardContent className="p-4">
|
|
46
|
-
<h3 className="font-medium text-gray-900 dark:text-white mb-2">Breach Response Plan Template</h3>
|
|
47
|
-
<p className="text-gray-600 dark:text-gray-300 text-sm mb-3">
|
|
48
|
-
A customizable template for creating your organization's breach response plan.
|
|
49
|
-
</p>
|
|
50
|
-
<Button asChild variant="outline" size="sm">
|
|
51
|
-
<a href="/templates/breach-response-plan.docx" target="_blank" rel="noopener noreferrer">
|
|
52
|
-
Download Template
|
|
53
|
-
</a>
|
|
54
|
-
</Button>
|
|
55
|
-
</CardContent>
|
|
56
|
-
</Card>
|
|
57
|
-
|
|
58
|
-
<Card>
|
|
59
|
-
<CardContent className="p-4">
|
|
60
|
-
<h3 className="font-medium text-gray-900 dark:text-white mb-2">NITDA Contact Information</h3>
|
|
61
|
-
<p className="text-gray-600 dark:text-gray-300 text-sm mb-3">
|
|
62
|
-
Contact details for reporting breaches to the National Information Technology Development Agency.
|
|
63
|
-
</p>
|
|
64
|
-
<Button asChild variant="outline" size="sm">
|
|
65
|
-
<a href="https://nitda.gov.ng/contact/" target="_blank" rel="noopener noreferrer">
|
|
66
|
-
View Contact Info
|
|
67
|
-
</a>
|
|
68
|
-
</Button>
|
|
69
|
-
</CardContent>
|
|
70
|
-
</Card>
|
|
71
|
-
</div>
|
|
72
|
-
|
|
73
|
-
<div className="mt-8">
|
|
74
|
-
<h3 className="text-xl font-bold mb-3">Breach Notification Checklist</h3>
|
|
75
|
-
<p className="mb-3">
|
|
76
|
-
Use this checklist to ensure you've covered all the essential elements of the breach notification process:
|
|
77
|
-
</p>
|
|
78
|
-
|
|
79
|
-
<div className="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
|
80
|
-
<ul className="space-y-2">
|
|
81
|
-
<li className="flex items-start">
|
|
82
|
-
<span className="inline-flex items-center justify-center w-6 h-6 rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 mr-2 flex-shrink-0 mt-0.5">✓</span>
|
|
83
|
-
<span>Implement a breach detection and reporting system</span>
|
|
84
|
-
</li>
|
|
85
|
-
<li className="flex items-start">
|
|
86
|
-
<span className="inline-flex items-center justify-center w-6 h-6 rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 mr-2 flex-shrink-0 mt-0.5">✓</span>
|
|
87
|
-
<span>Establish a breach response team with clearly defined roles and responsibilities</span>
|
|
88
|
-
</li>
|
|
89
|
-
<li className="flex items-start">
|
|
90
|
-
<span className="inline-flex items-center justify-center w-6 h-6 rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 mr-2 flex-shrink-0 mt-0.5">✓</span>
|
|
91
|
-
<span>Develop criteria for assessing breach severity and notification requirements</span>
|
|
92
|
-
</li>
|
|
93
|
-
<li className="flex items-start">
|
|
94
|
-
<span className="inline-flex items-center justify-center w-6 h-6 rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 mr-2 flex-shrink-0 mt-0.5">✓</span>
|
|
95
|
-
<span>Create templates for NITDA and data subject notifications</span>
|
|
96
|
-
</li>
|
|
97
|
-
<li className="flex items-start">
|
|
98
|
-
<span className="inline-flex items-center justify-center w-6 h-6 rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 mr-2 flex-shrink-0 mt-0.5">✓</span>
|
|
99
|
-
<span>Implement a system for tracking breach notifications and deadlines</span>
|
|
100
|
-
</li>
|
|
101
|
-
<li className="flex items-start">
|
|
102
|
-
<span className="inline-flex items-center justify-center w-6 h-6 rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 mr-2 flex-shrink-0 mt-0.5">✓</span>
|
|
103
|
-
<span>Establish a process for documenting breaches and response actions</span>
|
|
104
|
-
</li>
|
|
105
|
-
<li className="flex items-start">
|
|
106
|
-
<span className="inline-flex items-center justify-center w-6 h-6 rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 mr-2 flex-shrink-0 mt-0.5">✓</span>
|
|
107
|
-
<span>Develop procedures for post-breach review and improvement</span>
|
|
108
|
-
</li>
|
|
109
|
-
<li className="flex items-start">
|
|
110
|
-
<span className="inline-flex items-center justify-center w-6 h-6 rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 mr-2 flex-shrink-0 mt-0.5">✓</span>
|
|
111
|
-
<span>Conduct regular training and testing of the breach notification process</span>
|
|
112
|
-
</li>
|
|
113
|
-
</ul>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
</section>
|
|
117
|
-
);
|
|
118
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import Link from 'next/link';
|
|
4
|
-
import { DocLayout } from '@/components/docs/DocLayout';
|
|
5
|
-
import { Button } from '@/components/ui/Button';
|
|
6
|
-
import Introduction from './components/Introduction';
|
|
7
|
-
import NotificationTimeline from './components/NotificationTimeline';
|
|
8
|
-
import ImplementationSteps from './components/ImplementationSteps';
|
|
9
|
-
import BestPractices from './components/BestPractices';
|
|
10
|
-
import Resources from './components/Resources';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export default function BreachNotificationProcessGuide() {
|
|
14
|
-
return (
|
|
15
|
-
<DocLayout
|
|
16
|
-
title="Breach Notification Process"
|
|
17
|
-
description="How to implement a 72-hour breach notification process with the NDPR Toolkit"
|
|
18
|
-
>
|
|
19
|
-
<div className="flex mb-6 space-x-2">
|
|
20
|
-
<Button asChild variant="outline" size="sm">
|
|
21
|
-
<Link href="/demo/breach-notification">
|
|
22
|
-
View Breach Notification Demo
|
|
23
|
-
</Link>
|
|
24
|
-
</Button>
|
|
25
|
-
<Button asChild variant="outline" size="sm">
|
|
26
|
-
<Link href="/docs/components/breach-notification">
|
|
27
|
-
Breach Notification Component Docs
|
|
28
|
-
</Link>
|
|
29
|
-
</Button>
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
<Introduction />
|
|
33
|
-
<NotificationTimeline />
|
|
34
|
-
<ImplementationSteps />
|
|
35
|
-
<BestPractices />
|
|
36
|
-
<Resources />
|
|
37
|
-
</DocLayout>
|
|
38
|
-
);
|
|
39
|
-
}
|