@tantainnovative/ndpr-toolkit 2.1.2 → 2.4.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.
Files changed (152) hide show
  1. package/README.md +73 -2
  2. package/dist/{breach-6z0r-KuE.d.mts → breach-B_-6lDqS.d.mts} +1 -1
  3. package/dist/{breach-BFfnvtRk.d.ts → breach-CzXqSsaY.d.ts} +1 -1
  4. package/dist/{breach-BtFbDOmV.d.mts → breach-Eu9byel8.d.mts} +1 -1
  5. package/dist/{breach-BtFbDOmV.d.ts → breach-Eu9byel8.d.ts} +1 -1
  6. package/dist/breach-ouXoVTWs.d.ts +438 -0
  7. package/dist/breach-yRiyyc4n.d.mts +438 -0
  8. package/dist/breach.d.mts +5 -275
  9. package/dist/breach.d.ts +5 -275
  10. package/dist/breach.js +1 -1
  11. package/dist/breach.mjs +1 -1
  12. package/dist/chunk-2XFAV267.mjs +2 -0
  13. package/dist/chunk-32UIWTGD.js +72 -0
  14. package/dist/chunk-4JUDKBA2.mjs +7 -0
  15. package/dist/chunk-4VVARDN2.mjs +2 -0
  16. package/dist/chunk-5RSOLEEP.js +63 -0
  17. package/dist/chunk-AYKLAEOU.mjs +2 -0
  18. package/dist/chunk-BGHQTZAC.js +94 -0
  19. package/dist/chunk-BZTTQS4A.mjs +7 -0
  20. package/dist/chunk-CAB7O3GR.mjs +63 -0
  21. package/dist/chunk-CL53OI3I.js +7 -0
  22. package/dist/chunk-E64TU6IU.js +2 -0
  23. package/dist/chunk-EKVTLHBQ.js +2 -0
  24. package/dist/chunk-ELKEZEV5.mjs +2 -0
  25. package/dist/chunk-EPF7J2FK.js +3 -0
  26. package/dist/chunk-ER7X6E36.js +2 -0
  27. package/dist/chunk-FXTZDKDC.mjs +3 -0
  28. package/dist/chunk-IBEKLDBY.mjs +2 -0
  29. package/dist/chunk-ILCNDOBU.js +2 -0
  30. package/dist/chunk-K3GMTMQ6.js +2 -0
  31. package/dist/chunk-MJGOLP5M.js +2 -0
  32. package/dist/chunk-NW4A3JW6.mjs +2 -0
  33. package/dist/chunk-P3PULLYP.mjs +2 -0
  34. package/dist/chunk-SKJCQKFL.mjs +94 -0
  35. package/dist/chunk-TCJCE6WN.js +2 -0
  36. package/dist/chunk-UZ5EZOA7.js +2 -0
  37. package/dist/chunk-WSHSHIIM.mjs +2 -0
  38. package/dist/chunk-XMYUYQH7.mjs +72 -0
  39. package/dist/chunk-ZNTMZ6NM.js +7 -0
  40. package/dist/consent-audit-BdByjYlM.d.mts +65 -0
  41. package/dist/consent-audit-DhbfMR0n.d.ts +65 -0
  42. package/dist/consent.d.mts +120 -7
  43. package/dist/consent.d.ts +120 -7
  44. package/dist/consent.js +1 -1
  45. package/dist/consent.mjs +1 -1
  46. package/dist/core.d.mts +62 -12
  47. package/dist/core.d.ts +62 -12
  48. package/dist/core.js +1 -1
  49. package/dist/core.mjs +1 -1
  50. package/dist/{cross-border-BrIy1ieh.d.ts → cross-border-BMcqLvjC.d.mts} +1 -1
  51. package/dist/{cross-border-BrIy1ieh.d.mts → cross-border-BMcqLvjC.d.ts} +1 -1
  52. package/dist/cross-border-entry-BrWVPly6.d.ts +91 -0
  53. package/dist/cross-border-entry-cCTvpwnT.d.mts +91 -0
  54. package/dist/cross-border.d.mts +4 -58
  55. package/dist/cross-border.d.ts +4 -58
  56. package/dist/cross-border.js +1 -1
  57. package/dist/cross-border.mjs +1 -1
  58. package/dist/{dpia-vWfE_9bO.d.mts → dpia-5OQVA1R_.d.mts} +1 -1
  59. package/dist/{dpia-vWfE_9bO.d.ts → dpia-5OQVA1R_.d.ts} +1 -1
  60. package/dist/{dpia-fdtTd2DI.d.ts → dpia-B0Pok5us.d.ts} +1 -1
  61. package/dist/{dpia-B9ZZJG5a.d.mts → dpia-CUfOmzvX.d.mts} +1 -1
  62. package/dist/dpia.d.mts +119 -5
  63. package/dist/dpia.d.ts +119 -5
  64. package/dist/dpia.js +1 -1
  65. package/dist/dpia.mjs +1 -1
  66. package/dist/dsr-190YpijW.d.ts +307 -0
  67. package/dist/dsr-BTT-Xd7H.d.mts +307 -0
  68. package/dist/{dsr-pQzQ3H1O.d.mts → dsr-Cm9lzWG7.d.mts} +1 -1
  69. package/dist/{dsr-pQzQ3H1O.d.ts → dsr-Cm9lzWG7.d.ts} +1 -1
  70. package/dist/{dsr-whPkiI0_.d.mts → dsr-D_eTNc4S.d.mts} +1 -1
  71. package/dist/{dsr-jq5NUEdz.d.ts → dsr-pNtVb1BK.d.ts} +1 -1
  72. package/dist/dsr.d.mts +5 -192
  73. package/dist/dsr.d.ts +5 -192
  74. package/dist/dsr.js +1 -1
  75. package/dist/dsr.mjs +1 -1
  76. package/dist/hooks.d.mts +14 -14
  77. package/dist/hooks.d.ts +14 -14
  78. package/dist/hooks.js +1 -1
  79. package/dist/hooks.mjs +1 -1
  80. package/dist/index.d.mts +28 -27
  81. package/dist/index.d.ts +28 -27
  82. package/dist/index.js +1 -1
  83. package/dist/index.mjs +1 -1
  84. package/dist/{lawful-basis-v04AhbK2.d.ts → lawful-basis-BEyI0kGg.d.ts} +2 -2
  85. package/dist/{lawful-basis-D-oXFizg.d.mts → lawful-basis-C2eGaoHM.d.mts} +2 -2
  86. package/dist/{lawful-basis-CWtvDG1x.d.mts → lawful-basis-Cv1VmDLn.d.mts} +1 -1
  87. package/dist/{lawful-basis-CWtvDG1x.d.ts → lawful-basis-Cv1VmDLn.d.ts} +1 -1
  88. package/dist/lawful-basis-entry-15qjKcNO.d.ts +87 -0
  89. package/dist/lawful-basis-entry-CxZrofwG.d.mts +87 -0
  90. package/dist/lawful-basis.d.mts +5 -55
  91. package/dist/lawful-basis.d.ts +5 -55
  92. package/dist/lawful-basis.js +1 -1
  93. package/dist/lawful-basis.mjs +1 -1
  94. package/dist/policy-D2_jh5-T.d.ts +293 -0
  95. package/dist/policy-E0fXZkda.d.mts +293 -0
  96. package/dist/policy-templates-CIKcV0i1.d.ts +36 -0
  97. package/dist/policy-templates-DMsPwOSZ.d.mts +36 -0
  98. package/dist/policy.d.mts +5 -195
  99. package/dist/policy.d.ts +5 -195
  100. package/dist/policy.js +1 -1
  101. package/dist/policy.mjs +1 -1
  102. package/dist/{ropa-Rb4dsFSz.d.mts → ropa-DP7pPPql.d.mts} +2 -2
  103. package/dist/{ropa-BebGfqKQ.d.ts → ropa-Li6UlL5H.d.ts} +2 -2
  104. package/dist/ropa-entry-B0D7X1GV.d.ts +80 -0
  105. package/dist/ropa-entry-DiOThOc2.d.mts +80 -0
  106. package/dist/ropa.d.mts +5 -45
  107. package/dist/ropa.d.ts +5 -45
  108. package/dist/ropa.js +1 -1
  109. package/dist/ropa.mjs +1 -1
  110. package/dist/styles.css +40 -28
  111. package/dist/styles.d.ts +1 -0
  112. package/dist/unstyled.js +1 -1
  113. package/dist/unstyled.mjs +1 -1
  114. package/dist/{useBreach-WrZzJilM.d.mts → useBreach-BBSoIcZO.d.mts} +1 -1
  115. package/dist/{useBreach-vrh_XMpI.d.ts → useBreach-lFLbSyAN.d.ts} +1 -1
  116. package/dist/{useCrossBorderTransfer-TVnY8_UX.d.mts → useCrossBorderTransfer-BZVFCXfr.d.mts} +1 -1
  117. package/dist/{useCrossBorderTransfer-D4FQYfFt.d.ts → useCrossBorderTransfer-DmtACeqW.d.ts} +1 -1
  118. package/dist/{useDPIA-DFDHBLSa.d.ts → useDPIA-DBsg2yZx.d.ts} +1 -1
  119. package/dist/{useDPIA-FqPofFaV.d.mts → useDPIA-Da7-Q_yW.d.mts} +1 -1
  120. package/dist/{useDSR-DAqqOBXb.d.ts → useDSR-CYI7WCXr.d.ts} +1 -1
  121. package/dist/{useDSR-OXM5Q9rf.d.mts → useDSR-YYZ6FYFs.d.mts} +1 -1
  122. package/dist/{usePrivacyPolicy-CfySfBLS.d.ts → useDefaultPrivacyPolicy-B7kTHbZh.d.ts} +39 -2
  123. package/dist/{usePrivacyPolicy-Dit2sFuV.d.mts → useDefaultPrivacyPolicy-CUluF_ic.d.mts} +39 -2
  124. package/dist/{useLawfulBasis-RILM_xsx.d.ts → useLawfulBasis-CCWF9waR.d.ts} +2 -2
  125. package/dist/{useLawfulBasis-DNQ8YszQ.d.mts → useLawfulBasis-CpWuHtyh.d.mts} +2 -2
  126. package/dist/{useROPA-Bcs6cRdi.d.ts → useROPA-BhJ3kvHp.d.ts} +1 -1
  127. package/dist/{useROPA-nmcSiUYv.d.mts → useROPA-DLFdjkxP.d.mts} +1 -1
  128. package/package.json +30 -21
  129. package/dist/chunk-2XHD22J7.mjs +0 -7
  130. package/dist/chunk-4DKT6IB6.js +0 -94
  131. package/dist/chunk-6JFTAYXV.mjs +0 -2
  132. package/dist/chunk-6JVYYLS7.js +0 -2
  133. package/dist/chunk-6SGG6WPA.mjs +0 -2
  134. package/dist/chunk-AQEGDEQM.js +0 -7
  135. package/dist/chunk-C2IJWCZQ.mjs +0 -2
  136. package/dist/chunk-DB3JH4DS.mjs +0 -2
  137. package/dist/chunk-FFW7RUAG.mjs +0 -94
  138. package/dist/chunk-FK3CSFLJ.js +0 -2
  139. package/dist/chunk-IWUUVRLJ.js +0 -2
  140. package/dist/chunk-JUN6YPLL.mjs +0 -72
  141. package/dist/chunk-L3FKTBGV.js +0 -72
  142. package/dist/chunk-PM7CMTMB.js +0 -4
  143. package/dist/chunk-RB26MIRI.js +0 -2
  144. package/dist/chunk-RHWW5FDP.js +0 -16
  145. package/dist/chunk-SLNMKGQ2.mjs +0 -2
  146. package/dist/chunk-UUWVBENC.js +0 -2
  147. package/dist/chunk-UYP64PV7.mjs +0 -4
  148. package/dist/chunk-XMKA6GVK.mjs +0 -16
  149. package/dist/consent-DCc5zjXI.d.mts +0 -24
  150. package/dist/consent-DLWb5ota.d.ts +0 -24
  151. package/dist/privacy-9FcJceMr.d.mts +0 -15
  152. package/dist/privacy-BXz7O2ej.d.ts +0 -15
@@ -0,0 +1,87 @@
1
+ import React from 'react';
2
+ import { P as ProcessingActivity } from './lawful-basis-Cv1VmDLn.mjs';
3
+ import './useLawfulBasis-CpWuHtyh.mjs';
4
+ import './lawful-basis-C2eGaoHM.mjs';
5
+
6
+ interface LawfulBasisTrackerClassNames {
7
+ root?: string;
8
+ header?: string;
9
+ title?: string;
10
+ summary?: string;
11
+ summaryCard?: string;
12
+ table?: string;
13
+ tableHeader?: string;
14
+ tableRow?: string;
15
+ form?: string;
16
+ input?: string;
17
+ select?: string;
18
+ submitButton?: string;
19
+ /** Alias for submitButton */
20
+ primaryButton?: string;
21
+ statusBadge?: string;
22
+ complianceScore?: string;
23
+ gapAlert?: string;
24
+ }
25
+ interface LawfulBasisTrackerProps {
26
+ /**
27
+ * List of processing activities to display
28
+ */
29
+ activities: ProcessingActivity[];
30
+ /**
31
+ * Callback when a new activity is created
32
+ */
33
+ onAddActivity?: (activity: Omit<ProcessingActivity, 'id' | 'createdAt' | 'updatedAt'>) => void;
34
+ /**
35
+ * Callback when an activity is updated
36
+ */
37
+ onUpdateActivity?: (id: string, updates: Partial<ProcessingActivity>) => void;
38
+ /**
39
+ * Callback when an activity is archived
40
+ */
41
+ onArchiveActivity?: (id: string) => void;
42
+ /**
43
+ * Title displayed on the tracker
44
+ * @default "Lawful Basis Tracker"
45
+ */
46
+ title?: string;
47
+ /**
48
+ * Description text displayed on the tracker
49
+ * @default "Document and track the lawful basis for each processing activity as required by NDPA 2023 Section 25."
50
+ */
51
+ description?: string;
52
+ /**
53
+ * Custom CSS class for the tracker container
54
+ */
55
+ className?: string;
56
+ /**
57
+ * Custom CSS class for buttons
58
+ */
59
+ buttonClassName?: string;
60
+ /**
61
+ * Whether to show the compliance summary at the top
62
+ * @default true
63
+ */
64
+ showSummary?: boolean;
65
+ /**
66
+ * Whether to show compliance gap alerts
67
+ * @default true
68
+ */
69
+ showComplianceGaps?: boolean;
70
+ /**
71
+ * Override class names for individual sections of the component.
72
+ * Takes priority over className / buttonClassName.
73
+ */
74
+ classNames?: LawfulBasisTrackerClassNames;
75
+ /**
76
+ * When true, all default styling is removed so consumers
77
+ * can style from scratch using classNames.
78
+ */
79
+ unstyled?: boolean;
80
+ }
81
+ /**
82
+ * Lawful basis tracker component. Implements NDPA Section 25 requirements for documenting
83
+ * and tracking the lawful basis for each personal data processing activity.
84
+ */
85
+ declare const LawfulBasisTracker: React.FC<LawfulBasisTrackerProps>;
86
+
87
+ export { LawfulBasisTracker as L, type LawfulBasisTrackerClassNames as a };
@@ -1,55 +1,5 @@
1
- import React from 'react';
2
- import { P as ProcessingActivity } from './lawful-basis-CWtvDG1x.mjs';
3
- export { L as LawfulBasis, b as LawfulBasisSummary, a as LegitimateInterestAssessment, S as SensitiveDataCondition } from './lawful-basis-CWtvDG1x.mjs';
4
- export { u as useLawfulBasis } from './useLawfulBasis-DNQ8YszQ.mjs';
5
- export { L as LawfulBasisComplianceGap, c as LawfulBasisValidationResult, a as assessComplianceGaps, b as generateLawfulBasisSummary, g as getLawfulBasisDescription, v as validateProcessingActivity } from './lawful-basis-D-oXFizg.mjs';
6
-
7
- interface LawfulBasisTrackerProps {
8
- /**
9
- * List of processing activities to display
10
- */
11
- activities: ProcessingActivity[];
12
- /**
13
- * Callback when a new activity is created
14
- */
15
- onAddActivity?: (activity: Omit<ProcessingActivity, 'id' | 'createdAt' | 'updatedAt'>) => void;
16
- /**
17
- * Callback when an activity is updated
18
- */
19
- onUpdateActivity?: (id: string, updates: Partial<ProcessingActivity>) => void;
20
- /**
21
- * Callback when an activity is archived
22
- */
23
- onArchiveActivity?: (id: string) => void;
24
- /**
25
- * Title displayed on the tracker
26
- * @default "Lawful Basis Tracker"
27
- */
28
- title?: string;
29
- /**
30
- * Description text displayed on the tracker
31
- * @default "Document and track the lawful basis for each processing activity as required by NDPA 2023 Section 25."
32
- */
33
- description?: string;
34
- /**
35
- * Custom CSS class for the tracker container
36
- */
37
- className?: string;
38
- /**
39
- * Custom CSS class for buttons
40
- */
41
- buttonClassName?: string;
42
- /**
43
- * Whether to show the compliance summary at the top
44
- * @default true
45
- */
46
- showSummary?: boolean;
47
- /**
48
- * Whether to show compliance gap alerts
49
- * @default true
50
- */
51
- showComplianceGaps?: boolean;
52
- }
53
- declare const LawfulBasisTracker: React.FC<LawfulBasisTrackerProps>;
54
-
55
- export { LawfulBasisTracker, ProcessingActivity };
1
+ export { L as LawfulBasisTracker } from './lawful-basis-entry-CxZrofwG.mjs';
2
+ export { u as useLawfulBasis } from './useLawfulBasis-CpWuHtyh.mjs';
3
+ export { L as LawfulBasisComplianceGap, a as LawfulBasisValidationResult, b as assessComplianceGaps, g as generateLawfulBasisSummary, c as getLawfulBasisDescription, v as validateProcessingActivity } from './lawful-basis-C2eGaoHM.mjs';
4
+ export { L as LawfulBasis, a as LawfulBasisSummary, b as LegitimateInterestAssessment, P as ProcessingActivity, S as SensitiveDataCondition } from './lawful-basis-Cv1VmDLn.mjs';
5
+ import 'react';
@@ -1,55 +1,5 @@
1
- import React from 'react';
2
- import { P as ProcessingActivity } from './lawful-basis-CWtvDG1x.js';
3
- export { L as LawfulBasis, b as LawfulBasisSummary, a as LegitimateInterestAssessment, S as SensitiveDataCondition } from './lawful-basis-CWtvDG1x.js';
4
- export { u as useLawfulBasis } from './useLawfulBasis-RILM_xsx.js';
5
- export { L as LawfulBasisComplianceGap, c as LawfulBasisValidationResult, a as assessComplianceGaps, b as generateLawfulBasisSummary, g as getLawfulBasisDescription, v as validateProcessingActivity } from './lawful-basis-v04AhbK2.js';
6
-
7
- interface LawfulBasisTrackerProps {
8
- /**
9
- * List of processing activities to display
10
- */
11
- activities: ProcessingActivity[];
12
- /**
13
- * Callback when a new activity is created
14
- */
15
- onAddActivity?: (activity: Omit<ProcessingActivity, 'id' | 'createdAt' | 'updatedAt'>) => void;
16
- /**
17
- * Callback when an activity is updated
18
- */
19
- onUpdateActivity?: (id: string, updates: Partial<ProcessingActivity>) => void;
20
- /**
21
- * Callback when an activity is archived
22
- */
23
- onArchiveActivity?: (id: string) => void;
24
- /**
25
- * Title displayed on the tracker
26
- * @default "Lawful Basis Tracker"
27
- */
28
- title?: string;
29
- /**
30
- * Description text displayed on the tracker
31
- * @default "Document and track the lawful basis for each processing activity as required by NDPA 2023 Section 25."
32
- */
33
- description?: string;
34
- /**
35
- * Custom CSS class for the tracker container
36
- */
37
- className?: string;
38
- /**
39
- * Custom CSS class for buttons
40
- */
41
- buttonClassName?: string;
42
- /**
43
- * Whether to show the compliance summary at the top
44
- * @default true
45
- */
46
- showSummary?: boolean;
47
- /**
48
- * Whether to show compliance gap alerts
49
- * @default true
50
- */
51
- showComplianceGaps?: boolean;
52
- }
53
- declare const LawfulBasisTracker: React.FC<LawfulBasisTrackerProps>;
54
-
55
- export { LawfulBasisTracker, ProcessingActivity };
1
+ export { L as LawfulBasisTracker } from './lawful-basis-entry-15qjKcNO.js';
2
+ export { u as useLawfulBasis } from './useLawfulBasis-CCWF9waR.js';
3
+ export { L as LawfulBasisComplianceGap, a as LawfulBasisValidationResult, b as assessComplianceGaps, g as generateLawfulBasisSummary, c as getLawfulBasisDescription, v as validateProcessingActivity } from './lawful-basis-BEyI0kGg.js';
4
+ export { L as LawfulBasis, a as LawfulBasisSummary, b as LegitimateInterestAssessment, P as ProcessingActivity, S as SensitiveDataCondition } from './lawful-basis-Cv1VmDLn.js';
5
+ import 'react';
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkRB26MIRI_js=require('./chunk-RB26MIRI.js'),chunkLXRXDTPI_js=require('./chunk-LXRXDTPI.js'),chunkTDDAYVKK_js=require('./chunk-TDDAYVKK.js');require('./chunk-MQFZHA2D.js');Object.defineProperty(exports,"LawfulBasisTracker",{enumerable:true,get:function(){return chunkRB26MIRI_js.a}});Object.defineProperty(exports,"useLawfulBasis",{enumerable:true,get:function(){return chunkLXRXDTPI_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}});//# sourceMappingURL=lawful-basis.js.map
1
+ 'use strict';var chunkER7X6E36_js=require('./chunk-ER7X6E36.js'),chunkLXRXDTPI_js=require('./chunk-LXRXDTPI.js'),chunkTDDAYVKK_js=require('./chunk-TDDAYVKK.js');require('./chunk-E64TU6IU.js'),require('./chunk-MQFZHA2D.js');Object.defineProperty(exports,"LawfulBasisTracker",{enumerable:true,get:function(){return chunkER7X6E36_js.a}});Object.defineProperty(exports,"useLawfulBasis",{enumerable:true,get:function(){return chunkLXRXDTPI_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}});//# sourceMappingURL=lawful-basis.js.map
2
2
  //# sourceMappingURL=lawful-basis.js.map
@@ -1,2 +1,2 @@
1
- export{a as LawfulBasisTracker}from'./chunk-C2IJWCZQ.mjs';export{a as useLawfulBasis}from'./chunk-L52PDW6O.mjs';export{c as assessComplianceGaps,d as generateLawfulBasisSummary,b as getLawfulBasisDescription,a as validateProcessingActivity}from'./chunk-TXBZPCGF.mjs';import'./chunk-WWT2ZSNU.mjs';//# sourceMappingURL=lawful-basis.mjs.map
1
+ export{a as LawfulBasisTracker}from'./chunk-ELKEZEV5.mjs';export{a as useLawfulBasis}from'./chunk-L52PDW6O.mjs';export{c as assessComplianceGaps,d as generateLawfulBasisSummary,b as getLawfulBasisDescription,a as validateProcessingActivity}from'./chunk-TXBZPCGF.mjs';import'./chunk-AYKLAEOU.mjs';import'./chunk-WWT2ZSNU.mjs';//# sourceMappingURL=lawful-basis.mjs.map
2
2
  //# sourceMappingURL=lawful-basis.mjs.map
@@ -0,0 +1,293 @@
1
+ import React from 'react';
2
+ import { P as PolicySection, b as PolicyVariable } from './privacy-Ca6te9Ir.js';
3
+ import './useDefaultPrivacyPolicy-B7kTHbZh.js';
4
+ import './policy-templates-CIKcV0i1.js';
5
+
6
+ interface PolicyGeneratorClassNames {
7
+ /** Root container */
8
+ root?: string;
9
+ /** Header area containing title and description */
10
+ header?: string;
11
+ /** Title element */
12
+ title?: string;
13
+ /** Description element */
14
+ description?: string;
15
+ /** Section list container */
16
+ sectionList?: string;
17
+ /** Individual section item */
18
+ sectionItem?: string;
19
+ /** Variable form container */
20
+ form?: string;
21
+ /** Form input fields */
22
+ input?: string;
23
+ /** Generate button */
24
+ generateButton?: string;
25
+ /** Alias for generateButton */
26
+ primaryButton?: string;
27
+ /** NDPA compliance notice */
28
+ complianceNotice?: string;
29
+ }
30
+ interface PolicyGeneratorProps {
31
+ /**
32
+ * List of policy sections
33
+ * @default DEFAULT_POLICY_SECTIONS
34
+ */
35
+ sections?: PolicySection[];
36
+ /**
37
+ * List of policy variables
38
+ * @default DEFAULT_POLICY_VARIABLES
39
+ */
40
+ variables?: PolicyVariable[];
41
+ /**
42
+ * Callback function called when the policy is generated
43
+ */
44
+ onGenerate: (policy: {
45
+ sections: PolicySection[];
46
+ variables: PolicyVariable[];
47
+ content: string;
48
+ }) => void;
49
+ /**
50
+ * Title displayed on the generator
51
+ * @default "NDPA Privacy Policy Generator"
52
+ */
53
+ title?: string;
54
+ /**
55
+ * Description text displayed on the generator
56
+ * @default "Generate an NDPA-compliant privacy policy for your organization in accordance with NDPA Section 24."
57
+ */
58
+ description?: string;
59
+ /**
60
+ * Custom CSS class for the generator
61
+ */
62
+ className?: string;
63
+ /**
64
+ * Custom CSS class for the buttons
65
+ */
66
+ buttonClassName?: string;
67
+ /**
68
+ * Text for the generate button
69
+ * @default "Generate Policy"
70
+ */
71
+ generateButtonText?: string;
72
+ /**
73
+ * Whether to show a preview of the generated policy
74
+ * @default true
75
+ */
76
+ showPreview?: boolean;
77
+ /**
78
+ * Whether to allow editing the policy content
79
+ * @default true
80
+ */
81
+ allowEditing?: boolean;
82
+ /**
83
+ * Override class names for internal elements
84
+ */
85
+ classNames?: PolicyGeneratorClassNames;
86
+ /**
87
+ * If true, removes all default styles. Use with classNames to apply your own.
88
+ * @default false
89
+ */
90
+ unstyled?: boolean;
91
+ }
92
+ /**
93
+ * Privacy policy generator component. Implements NDPA Section 24 transparency requirements,
94
+ * helping organizations generate compliant privacy policies that disclose required information.
95
+ */
96
+ declare const PolicyGenerator: React.FC<PolicyGeneratorProps>;
97
+
98
+ interface PolicyPreviewClassNames {
99
+ /** Root container */
100
+ root?: string;
101
+ /** Header area containing title and description */
102
+ header?: string;
103
+ /** Title element */
104
+ title?: string;
105
+ /** Description element */
106
+ description?: string;
107
+ /** Content area wrapping the rendered policy */
108
+ content?: string;
109
+ /** Individual rendered section container */
110
+ section?: string;
111
+ /** Section title within rendered content */
112
+ sectionTitle?: string;
113
+ /** Section content within rendered content */
114
+ sectionContent?: string;
115
+ /** NDPA compliance notice */
116
+ complianceNotice?: string;
117
+ }
118
+ interface PolicyPreviewProps {
119
+ /**
120
+ * The policy content to preview
121
+ */
122
+ content: string;
123
+ /**
124
+ * The policy sections
125
+ */
126
+ sections?: PolicySection[];
127
+ /**
128
+ * The policy variables
129
+ */
130
+ variables?: PolicyVariable[];
131
+ /**
132
+ * Callback function called when the policy is exported
133
+ */
134
+ onExport?: (format: 'pdf' | 'html' | 'markdown' | 'docx') => void;
135
+ /**
136
+ * Callback function called when the policy is edited
137
+ */
138
+ onEdit?: () => void;
139
+ /**
140
+ * Title displayed on the preview
141
+ * @default "Privacy Policy Preview"
142
+ */
143
+ title?: string;
144
+ /**
145
+ * Description text displayed on the preview
146
+ * @default "Preview your NDPA-compliant privacy policy before exporting."
147
+ */
148
+ description?: string;
149
+ /**
150
+ * Custom CSS class for the preview
151
+ */
152
+ className?: string;
153
+ /**
154
+ * Custom CSS class for the buttons
155
+ */
156
+ buttonClassName?: string;
157
+ /**
158
+ * Whether to show the export options
159
+ * @default true
160
+ */
161
+ showExportOptions?: boolean;
162
+ /**
163
+ * Whether to show the edit button
164
+ * @default true
165
+ */
166
+ showEditButton?: boolean;
167
+ /**
168
+ * Whether to show the table of contents
169
+ * @default true
170
+ */
171
+ showTableOfContents?: boolean;
172
+ /**
173
+ * Whether to show the policy metadata
174
+ * @default true
175
+ */
176
+ showMetadata?: boolean;
177
+ /**
178
+ * The organization name to display in the policy
179
+ */
180
+ organizationName?: string;
181
+ /**
182
+ * The last updated date to display in the policy
183
+ */
184
+ lastUpdated?: Date;
185
+ /**
186
+ * Override class names for internal elements
187
+ */
188
+ classNames?: PolicyPreviewClassNames;
189
+ /**
190
+ * If true, removes all default styles. Use with classNames to apply your own.
191
+ * @default false
192
+ */
193
+ unstyled?: boolean;
194
+ }
195
+ declare const PolicyPreview: React.FC<PolicyPreviewProps>;
196
+
197
+ interface PolicyExporterClassNames {
198
+ /** Root container */
199
+ root?: string;
200
+ /** Header area containing title and description */
201
+ header?: string;
202
+ /** Title element */
203
+ title?: string;
204
+ /** Description element */
205
+ description?: string;
206
+ /** Format selector container */
207
+ formatSelector?: string;
208
+ /** Individual format option */
209
+ formatOption?: string;
210
+ /** Export button */
211
+ exportButton?: string;
212
+ /** Alias for exportButton */
213
+ primaryButton?: string;
214
+ /** NDPA compliance / export tips notice */
215
+ complianceNotice?: string;
216
+ /** Preview / export history area */
217
+ preview?: string;
218
+ }
219
+ interface PolicyExporterProps {
220
+ /**
221
+ * The policy content to export
222
+ */
223
+ content: string;
224
+ /**
225
+ * The policy title
226
+ */
227
+ title?: string;
228
+ /**
229
+ * The organization name to include in the exported policy
230
+ */
231
+ organizationName?: string;
232
+ /**
233
+ * The last updated date to include in the exported policy
234
+ */
235
+ lastUpdated?: Date;
236
+ /**
237
+ * Callback function called when the export is complete
238
+ */
239
+ onExportComplete?: (format: string, url: string) => void;
240
+ /**
241
+ * Title displayed on the exporter
242
+ * @default "Export Privacy Policy"
243
+ */
244
+ componentTitle?: string;
245
+ /**
246
+ * Description text displayed on the exporter
247
+ * @default "Export your NDPA-compliant privacy policy in various formats."
248
+ */
249
+ description?: string;
250
+ /**
251
+ * Custom CSS class for the exporter
252
+ */
253
+ className?: string;
254
+ /**
255
+ * Custom CSS class for the buttons
256
+ */
257
+ buttonClassName?: string;
258
+ /**
259
+ * Whether to show the export history
260
+ * @default true
261
+ */
262
+ showExportHistory?: boolean;
263
+ /**
264
+ * Whether to include the NDPA compliance notice in the exported policy
265
+ * @default true
266
+ */
267
+ includeComplianceNotice?: boolean;
268
+ /**
269
+ * Whether to include the organization logo in the exported policy
270
+ * @default false
271
+ */
272
+ includeLogo?: boolean;
273
+ /**
274
+ * URL of the organization logo
275
+ */
276
+ logoUrl?: string;
277
+ /**
278
+ * Custom CSS styles for the exported policy
279
+ */
280
+ customStyles?: string;
281
+ /**
282
+ * Override class names for internal elements
283
+ */
284
+ classNames?: PolicyExporterClassNames;
285
+ /**
286
+ * If true, removes all default styles. Use with classNames to apply your own.
287
+ * @default false
288
+ */
289
+ unstyled?: boolean;
290
+ }
291
+ declare const PolicyExporter: React.FC<PolicyExporterProps>;
292
+
293
+ export { PolicyExporter as P, type PolicyExporterClassNames as a, PolicyGenerator as b, type PolicyGeneratorClassNames as c, PolicyPreview as d, type PolicyPreviewClassNames as e };