@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.
Files changed (110) hide show
  1. package/next-env.d.ts +5 -0
  2. package/package.json +1 -1
  3. package/packages/ndpr-toolkit/dist/components/breach/BreachNotificationManager.d.ts +62 -0
  4. package/packages/ndpr-toolkit/dist/components/breach/BreachReportForm.d.ts +66 -0
  5. package/packages/ndpr-toolkit/dist/components/breach/BreachRiskAssessment.d.ts +50 -0
  6. package/packages/ndpr-toolkit/dist/components/breach/RegulatoryReportGenerator.d.ts +94 -0
  7. package/packages/ndpr-toolkit/dist/components/consent/ConsentBanner.d.ts +79 -0
  8. package/packages/ndpr-toolkit/dist/components/consent/ConsentManager.d.ts +73 -0
  9. package/packages/ndpr-toolkit/dist/components/consent/ConsentStorage.d.ts +41 -0
  10. package/packages/ndpr-toolkit/dist/components/dpia/DPIAQuestionnaire.d.ts +70 -0
  11. package/packages/ndpr-toolkit/dist/components/dpia/DPIAReport.d.ts +40 -0
  12. package/packages/ndpr-toolkit/dist/components/dpia/StepIndicator.d.ts +64 -0
  13. package/packages/ndpr-toolkit/dist/components/dsr/DSRDashboard.d.ts +58 -0
  14. package/packages/ndpr-toolkit/dist/components/dsr/DSRRequestForm.d.ts +74 -0
  15. package/packages/ndpr-toolkit/dist/components/dsr/DSRTracker.d.ts +56 -0
  16. package/packages/ndpr-toolkit/dist/components/policy/PolicyExporter.d.ts +65 -0
  17. package/packages/ndpr-toolkit/dist/components/policy/PolicyGenerator.d.ts +54 -0
  18. package/packages/ndpr-toolkit/dist/components/policy/PolicyPreview.d.ts +71 -0
  19. package/packages/ndpr-toolkit/dist/hooks/useBreach.d.ts +97 -0
  20. package/packages/ndpr-toolkit/dist/hooks/useConsent.d.ts +63 -0
  21. package/packages/ndpr-toolkit/dist/hooks/useDPIA.d.ts +92 -0
  22. package/packages/ndpr-toolkit/dist/hooks/useDSR.d.ts +72 -0
  23. package/packages/ndpr-toolkit/dist/hooks/usePrivacyPolicy.d.ts +87 -0
  24. package/packages/ndpr-toolkit/dist/index.d.ts +31 -0
  25. package/packages/ndpr-toolkit/dist/index.esm.js +2 -0
  26. package/packages/ndpr-toolkit/dist/index.esm.js.map +1 -0
  27. package/packages/ndpr-toolkit/dist/index.js +2 -0
  28. package/packages/ndpr-toolkit/dist/index.js.map +1 -0
  29. package/packages/ndpr-toolkit/dist/setupTests.d.ts +2 -0
  30. package/packages/ndpr-toolkit/dist/types/breach.d.ts +239 -0
  31. package/packages/ndpr-toolkit/dist/types/consent.d.ts +95 -0
  32. package/packages/ndpr-toolkit/dist/types/dpia.d.ts +196 -0
  33. package/packages/ndpr-toolkit/dist/types/dsr.d.ts +162 -0
  34. package/packages/ndpr-toolkit/dist/types/privacy.d.ts +204 -0
  35. package/packages/ndpr-toolkit/dist/utils/breach.d.ts +14 -0
  36. package/packages/ndpr-toolkit/dist/utils/consent.d.ts +10 -0
  37. package/packages/ndpr-toolkit/dist/utils/dpia.d.ts +12 -0
  38. package/packages/ndpr-toolkit/dist/utils/dsr.d.ts +11 -0
  39. package/packages/ndpr-toolkit/dist/utils/privacy.d.ts +12 -0
  40. package/src/components/consent/ConsentBanner.tsx +82 -48
  41. package/src/components/data-subject-rights/DataSubjectRequestForm.tsx +240 -129
  42. package/src/components/dpia/DPIAQuestionnaire.tsx +162 -122
  43. package/src/components/privacy-policy/PolicyGenerator.tsx +5 -5
  44. package/src/components/privacy-policy/steps/CustomSectionsStep.tsx +103 -77
  45. package/src/components/privacy-policy/steps/PolicyPreviewStep.tsx +117 -63
  46. package/src/hooks/useConsent.ts +16 -10
  47. package/src/lib/consentService.ts +44 -37
  48. package/src/lib/dpiaQuestions.ts +139 -99
  49. package/src/lib/requestService.ts +21 -17
  50. package/src/types/index.ts +13 -8
  51. package/.claude/settings.local.json +0 -20
  52. package/.eslintrc.json +0 -10
  53. package/.github/workflows/ci.yml +0 -36
  54. package/.github/workflows/nextjs.yml +0 -104
  55. package/.husky/commit-msg +0 -4
  56. package/.husky/pre-commit +0 -4
  57. package/.lintstagedrc.js +0 -4
  58. package/.nvmrc +0 -1
  59. package/.versionrc +0 -17
  60. package/CLAUDE.md +0 -90
  61. package/commitlint.config.js +0 -36
  62. package/jest.config.js +0 -31
  63. package/jest.setup.js +0 -15
  64. package/packages/ndpr-toolkit/jest.config.js +0 -23
  65. package/packages/ndpr-toolkit/src/__tests__/components/consent/ConsentBanner.test.tsx +0 -119
  66. package/packages/ndpr-toolkit/src/__tests__/components/consent/ConsentManager.test.tsx +0 -122
  67. package/packages/ndpr-toolkit/src/__tests__/components/consent/ConsentStorage.test.tsx +0 -270
  68. package/packages/ndpr-toolkit/src/__tests__/components/dsr/DSRDashboard.test.tsx +0 -199
  69. package/packages/ndpr-toolkit/src/__tests__/components/dsr/DSRRequestForm.test.tsx +0 -224
  70. package/packages/ndpr-toolkit/src/__tests__/components/dsr/DSRTracker.test.tsx +0 -104
  71. package/packages/ndpr-toolkit/src/__tests__/hooks/useConsent.test.tsx +0 -161
  72. package/packages/ndpr-toolkit/src/__tests__/hooks/useDSR.test.tsx +0 -330
  73. package/packages/ndpr-toolkit/src/__tests__/utils/breach.test.ts +0 -149
  74. package/packages/ndpr-toolkit/src/__tests__/utils/consent.test.ts +0 -88
  75. package/packages/ndpr-toolkit/src/__tests__/utils/dpia.test.ts +0 -160
  76. package/packages/ndpr-toolkit/src/__tests__/utils/dsr.test.ts +0 -110
  77. package/packages/ndpr-toolkit/src/__tests__/utils/privacy.test.ts +0 -97
  78. package/src/__tests__/example.test.ts +0 -13
  79. package/src/__tests__/requestService.test.ts +0 -57
  80. package/src/app/docs/components/DocLayout.tsx +0 -267
  81. package/src/app/docs/components/breach-notification/page.tsx +0 -797
  82. package/src/app/docs/components/consent-management/page.tsx +0 -576
  83. package/src/app/docs/components/data-subject-rights/page.tsx +0 -511
  84. package/src/app/docs/components/dpia-questionnaire/layout.tsx +0 -15
  85. package/src/app/docs/components/dpia-questionnaire/metadata.ts +0 -31
  86. package/src/app/docs/components/dpia-questionnaire/page.tsx +0 -666
  87. package/src/app/docs/components/hooks/page.tsx +0 -305
  88. package/src/app/docs/components/page.tsx +0 -84
  89. package/src/app/docs/components/privacy-policy-generator/page.tsx +0 -634
  90. package/src/app/docs/guides/breach-notification-process/components/BestPractices.tsx +0 -123
  91. package/src/app/docs/guides/breach-notification-process/components/ImplementationSteps.tsx +0 -328
  92. package/src/app/docs/guides/breach-notification-process/components/Introduction.tsx +0 -28
  93. package/src/app/docs/guides/breach-notification-process/components/NotificationTimeline.tsx +0 -91
  94. package/src/app/docs/guides/breach-notification-process/components/Resources.tsx +0 -118
  95. package/src/app/docs/guides/breach-notification-process/page.tsx +0 -39
  96. package/src/app/docs/guides/conducting-dpia/page.tsx +0 -593
  97. package/src/app/docs/guides/data-subject-requests/page.tsx +0 -666
  98. package/src/app/docs/guides/managing-consent/page.tsx +0 -738
  99. package/src/app/docs/guides/ndpr-compliance-checklist/components/ComplianceChecklist.tsx +0 -296
  100. package/src/app/docs/guides/ndpr-compliance-checklist/components/ImplementationTools.tsx +0 -145
  101. package/src/app/docs/guides/ndpr-compliance-checklist/components/Introduction.tsx +0 -33
  102. package/src/app/docs/guides/ndpr-compliance-checklist/components/KeyRequirements.tsx +0 -99
  103. package/src/app/docs/guides/ndpr-compliance-checklist/components/Resources.tsx +0 -159
  104. package/src/app/docs/guides/ndpr-compliance-checklist/page.tsx +0 -38
  105. package/src/app/docs/guides/page.tsx +0 -67
  106. package/src/app/docs/layout.tsx +0 -15
  107. package/src/app/docs/metadata.ts +0 -31
  108. package/src/app/docs/page.tsx +0 -572
  109. package/src/components/docs/DocLayout.tsx +0 -289
  110. 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&apos;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&apos;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
- }