@tantainnovative/ndpr-toolkit 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/dist/{breach-6z0r-KuE.d.mts → breach-B_-6lDqS.d.mts} +1 -1
- package/dist/{breach-BFfnvtRk.d.ts → breach-CzXqSsaY.d.ts} +1 -1
- package/dist/{breach-BtFbDOmV.d.mts → breach-Eu9byel8.d.mts} +1 -1
- package/dist/{breach-BtFbDOmV.d.ts → breach-Eu9byel8.d.ts} +1 -1
- package/dist/breach.d.mts +81 -5
- package/dist/breach.d.ts +81 -5
- package/dist/breach.js +1 -1
- package/dist/breach.mjs +1 -1
- package/dist/chunk-4RGDNVR5.mjs +72 -0
- package/dist/chunk-6LM3RAFO.js +7 -0
- package/dist/chunk-7DNQSOER.js +2 -0
- package/dist/chunk-A7DRHSDQ.mjs +2 -0
- package/dist/chunk-FC6EG34C.js +72 -0
- package/dist/chunk-FDB6KZUD.mjs +2 -0
- package/dist/chunk-FZUCKGIM.mjs +7 -0
- package/dist/chunk-G3JNFZPT.js +2 -0
- package/dist/chunk-HXCRMA4J.mjs +2 -0
- package/dist/chunk-IC7VOOKJ.mjs +2 -0
- package/dist/chunk-ICUZG6CD.mjs +2 -0
- package/dist/chunk-IW5PHOG7.mjs +7 -0
- package/dist/chunk-JKEAPTYP.js +7 -0
- package/dist/chunk-N52S64SU.js +2 -0
- package/dist/chunk-SKAMVXBI.mjs +94 -0
- package/dist/chunk-VURIXCGY.js +2 -0
- package/dist/chunk-VXRY3V42.js +94 -0
- package/dist/chunk-YBPHGEL2.js +2 -0
- package/dist/consent.d.mts +68 -2
- package/dist/consent.d.ts +68 -2
- package/dist/consent.js +1 -1
- package/dist/consent.mjs +1 -1
- package/dist/core.d.mts +10 -10
- package/dist/core.d.ts +10 -10
- package/dist/{cross-border-BrIy1ieh.d.ts → cross-border-BMcqLvjC.d.mts} +1 -1
- package/dist/{cross-border-BrIy1ieh.d.mts → cross-border-BMcqLvjC.d.ts} +1 -1
- package/dist/cross-border-entry-BfF7jw5o.d.mts +84 -0
- package/dist/cross-border-entry-CtX8_o-_.d.ts +84 -0
- package/dist/cross-border.d.mts +4 -58
- package/dist/cross-border.d.ts +4 -58
- package/dist/cross-border.js +1 -1
- package/dist/cross-border.mjs +1 -1
- package/dist/{dpia-vWfE_9bO.d.mts → dpia-5OQVA1R_.d.mts} +1 -1
- package/dist/{dpia-vWfE_9bO.d.ts → dpia-5OQVA1R_.d.ts} +1 -1
- package/dist/{dpia-fdtTd2DI.d.ts → dpia-B0Pok5us.d.ts} +1 -1
- package/dist/{dpia-B9ZZJG5a.d.mts → dpia-CUfOmzvX.d.mts} +1 -1
- package/dist/dpia.d.mts +105 -5
- package/dist/dpia.d.ts +105 -5
- package/dist/dpia.js +1 -1
- package/dist/dpia.mjs +1 -1
- package/dist/{dsr-pQzQ3H1O.d.mts → dsr-Cm9lzWG7.d.mts} +1 -1
- package/dist/{dsr-pQzQ3H1O.d.ts → dsr-Cm9lzWG7.d.ts} +1 -1
- package/dist/{dsr-whPkiI0_.d.mts → dsr-D_eTNc4S.d.mts} +1 -1
- package/dist/{dsr-jq5NUEdz.d.ts → dsr-pNtVb1BK.d.ts} +1 -1
- package/dist/dsr.d.mts +66 -5
- package/dist/dsr.d.ts +66 -5
- package/dist/dsr.js +1 -1
- package/dist/dsr.mjs +1 -1
- package/dist/hooks.d.mts +13 -13
- package/dist/hooks.d.ts +13 -13
- package/dist/index.d.mts +24 -24
- package/dist/index.d.ts +24 -24
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{lawful-basis-v04AhbK2.d.ts → lawful-basis-BEyI0kGg.d.ts} +2 -2
- package/dist/{lawful-basis-D-oXFizg.d.mts → lawful-basis-C2eGaoHM.d.mts} +2 -2
- package/dist/{lawful-basis-CWtvDG1x.d.mts → lawful-basis-Cv1VmDLn.d.mts} +1 -1
- package/dist/{lawful-basis-CWtvDG1x.d.ts → lawful-basis-Cv1VmDLn.d.ts} +1 -1
- package/dist/lawful-basis-entry-BeSX7u0U.d.ts +81 -0
- package/dist/lawful-basis-entry-CMPPM9Rh.d.mts +81 -0
- package/dist/lawful-basis.d.mts +5 -55
- package/dist/lawful-basis.d.ts +5 -55
- package/dist/lawful-basis.js +1 -1
- package/dist/lawful-basis.mjs +1 -1
- package/dist/policy-dmsRlqgM.d.ts +283 -0
- package/dist/policy-kZN23hrR.d.mts +283 -0
- package/dist/policy.d.mts +3 -193
- package/dist/policy.d.ts +3 -193
- package/dist/policy.js +1 -1
- package/dist/policy.mjs +1 -1
- package/dist/{ropa-Rb4dsFSz.d.mts → ropa-DP7pPPql.d.mts} +2 -2
- package/dist/{ropa-BebGfqKQ.d.ts → ropa-Li6UlL5H.d.ts} +2 -2
- package/dist/ropa-entry-CZJ91ymk.d.mts +71 -0
- package/dist/ropa-entry-DIEQ9WFs.d.ts +71 -0
- package/dist/ropa.d.mts +5 -45
- package/dist/ropa.d.ts +5 -45
- package/dist/ropa.js +1 -1
- package/dist/ropa.mjs +1 -1
- package/dist/unstyled.js +1 -1
- package/dist/unstyled.mjs +1 -1
- package/dist/{useBreach-WrZzJilM.d.mts → useBreach-BBSoIcZO.d.mts} +1 -1
- package/dist/{useBreach-vrh_XMpI.d.ts → useBreach-lFLbSyAN.d.ts} +1 -1
- package/dist/{useCrossBorderTransfer-TVnY8_UX.d.mts → useCrossBorderTransfer-BZVFCXfr.d.mts} +1 -1
- package/dist/{useCrossBorderTransfer-D4FQYfFt.d.ts → useCrossBorderTransfer-DmtACeqW.d.ts} +1 -1
- package/dist/{useDPIA-DFDHBLSa.d.ts → useDPIA-DBsg2yZx.d.ts} +1 -1
- package/dist/{useDPIA-FqPofFaV.d.mts → useDPIA-Da7-Q_yW.d.mts} +1 -1
- package/dist/{useDSR-DAqqOBXb.d.ts → useDSR-CYI7WCXr.d.ts} +1 -1
- package/dist/{useDSR-OXM5Q9rf.d.mts → useDSR-YYZ6FYFs.d.mts} +1 -1
- package/dist/{useLawfulBasis-RILM_xsx.d.ts → useLawfulBasis-CCWF9waR.d.ts} +2 -2
- package/dist/{useLawfulBasis-DNQ8YszQ.d.mts → useLawfulBasis-CpWuHtyh.d.mts} +2 -2
- package/dist/{useROPA-Bcs6cRdi.d.ts → useROPA-BhJ3kvHp.d.ts} +1 -1
- package/dist/{useROPA-nmcSiUYv.d.mts → useROPA-DLFdjkxP.d.mts} +1 -1
- package/package.json +22 -15
- package/dist/chunk-2XHD22J7.mjs +0 -7
- package/dist/chunk-4DKT6IB6.js +0 -94
- package/dist/chunk-6JFTAYXV.mjs +0 -2
- package/dist/chunk-6JVYYLS7.js +0 -2
- package/dist/chunk-6SGG6WPA.mjs +0 -2
- package/dist/chunk-AQEGDEQM.js +0 -7
- package/dist/chunk-C2IJWCZQ.mjs +0 -2
- package/dist/chunk-FFW7RUAG.mjs +0 -94
- package/dist/chunk-FK3CSFLJ.js +0 -2
- package/dist/chunk-JUN6YPLL.mjs +0 -72
- package/dist/chunk-L3FKTBGV.js +0 -72
- package/dist/chunk-RB26MIRI.js +0 -2
- package/dist/chunk-RHWW5FDP.js +0 -16
- package/dist/chunk-SLNMKGQ2.mjs +0 -2
- package/dist/chunk-UUWVBENC.js +0 -2
- package/dist/chunk-XMKA6GVK.mjs +0 -16
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { P as PolicySection, b as PolicyVariable } from './privacy-Ca6te9Ir.js';
|
|
3
|
+
import './usePrivacyPolicy-CfySfBLS.js';
|
|
4
|
+
import './privacy-BXz7O2ej.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
|
+
/** NDPA compliance notice */
|
|
26
|
+
complianceNotice?: string;
|
|
27
|
+
}
|
|
28
|
+
interface PolicyGeneratorProps {
|
|
29
|
+
/**
|
|
30
|
+
* List of policy sections
|
|
31
|
+
*/
|
|
32
|
+
sections: PolicySection[];
|
|
33
|
+
/**
|
|
34
|
+
* List of policy variables
|
|
35
|
+
*/
|
|
36
|
+
variables: PolicyVariable[];
|
|
37
|
+
/**
|
|
38
|
+
* Callback function called when the policy is generated
|
|
39
|
+
*/
|
|
40
|
+
onGenerate: (policy: {
|
|
41
|
+
sections: PolicySection[];
|
|
42
|
+
variables: PolicyVariable[];
|
|
43
|
+
content: string;
|
|
44
|
+
}) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Title displayed on the generator
|
|
47
|
+
* @default "NDPA Privacy Policy Generator"
|
|
48
|
+
*/
|
|
49
|
+
title?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Description text displayed on the generator
|
|
52
|
+
* @default "Generate an NDPA-compliant privacy policy for your organization."
|
|
53
|
+
*/
|
|
54
|
+
description?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Custom CSS class for the generator
|
|
57
|
+
*/
|
|
58
|
+
className?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Custom CSS class for the buttons
|
|
61
|
+
*/
|
|
62
|
+
buttonClassName?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Text for the generate button
|
|
65
|
+
* @default "Generate Policy"
|
|
66
|
+
*/
|
|
67
|
+
generateButtonText?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Whether to show a preview of the generated policy
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
showPreview?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Whether to allow editing the policy content
|
|
75
|
+
* @default true
|
|
76
|
+
*/
|
|
77
|
+
allowEditing?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Override class names for internal elements
|
|
80
|
+
*/
|
|
81
|
+
classNames?: PolicyGeneratorClassNames;
|
|
82
|
+
/**
|
|
83
|
+
* If true, removes all default styles. Use with classNames to apply your own.
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
unstyled?: boolean;
|
|
87
|
+
}
|
|
88
|
+
declare const PolicyGenerator: React.FC<PolicyGeneratorProps>;
|
|
89
|
+
|
|
90
|
+
interface PolicyPreviewClassNames {
|
|
91
|
+
/** Root container */
|
|
92
|
+
root?: string;
|
|
93
|
+
/** Header area containing title and description */
|
|
94
|
+
header?: string;
|
|
95
|
+
/** Title element */
|
|
96
|
+
title?: string;
|
|
97
|
+
/** Description element */
|
|
98
|
+
description?: string;
|
|
99
|
+
/** Content area wrapping the rendered policy */
|
|
100
|
+
content?: string;
|
|
101
|
+
/** Individual rendered section container */
|
|
102
|
+
section?: string;
|
|
103
|
+
/** Section title within rendered content */
|
|
104
|
+
sectionTitle?: string;
|
|
105
|
+
/** Section content within rendered content */
|
|
106
|
+
sectionContent?: string;
|
|
107
|
+
/** NDPA compliance notice */
|
|
108
|
+
complianceNotice?: string;
|
|
109
|
+
}
|
|
110
|
+
interface PolicyPreviewProps {
|
|
111
|
+
/**
|
|
112
|
+
* The policy content to preview
|
|
113
|
+
*/
|
|
114
|
+
content: string;
|
|
115
|
+
/**
|
|
116
|
+
* The policy sections
|
|
117
|
+
*/
|
|
118
|
+
sections?: PolicySection[];
|
|
119
|
+
/**
|
|
120
|
+
* The policy variables
|
|
121
|
+
*/
|
|
122
|
+
variables?: PolicyVariable[];
|
|
123
|
+
/**
|
|
124
|
+
* Callback function called when the policy is exported
|
|
125
|
+
*/
|
|
126
|
+
onExport?: (format: 'pdf' | 'html' | 'markdown' | 'docx') => void;
|
|
127
|
+
/**
|
|
128
|
+
* Callback function called when the policy is edited
|
|
129
|
+
*/
|
|
130
|
+
onEdit?: () => void;
|
|
131
|
+
/**
|
|
132
|
+
* Title displayed on the preview
|
|
133
|
+
* @default "Privacy Policy Preview"
|
|
134
|
+
*/
|
|
135
|
+
title?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Description text displayed on the preview
|
|
138
|
+
* @default "Preview your NDPA-compliant privacy policy before exporting."
|
|
139
|
+
*/
|
|
140
|
+
description?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Custom CSS class for the preview
|
|
143
|
+
*/
|
|
144
|
+
className?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Custom CSS class for the buttons
|
|
147
|
+
*/
|
|
148
|
+
buttonClassName?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Whether to show the export options
|
|
151
|
+
* @default true
|
|
152
|
+
*/
|
|
153
|
+
showExportOptions?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Whether to show the edit button
|
|
156
|
+
* @default true
|
|
157
|
+
*/
|
|
158
|
+
showEditButton?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Whether to show the table of contents
|
|
161
|
+
* @default true
|
|
162
|
+
*/
|
|
163
|
+
showTableOfContents?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Whether to show the policy metadata
|
|
166
|
+
* @default true
|
|
167
|
+
*/
|
|
168
|
+
showMetadata?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* The organization name to display in the policy
|
|
171
|
+
*/
|
|
172
|
+
organizationName?: string;
|
|
173
|
+
/**
|
|
174
|
+
* The last updated date to display in the policy
|
|
175
|
+
*/
|
|
176
|
+
lastUpdated?: Date;
|
|
177
|
+
/**
|
|
178
|
+
* Override class names for internal elements
|
|
179
|
+
*/
|
|
180
|
+
classNames?: PolicyPreviewClassNames;
|
|
181
|
+
/**
|
|
182
|
+
* If true, removes all default styles. Use with classNames to apply your own.
|
|
183
|
+
* @default false
|
|
184
|
+
*/
|
|
185
|
+
unstyled?: boolean;
|
|
186
|
+
}
|
|
187
|
+
declare const PolicyPreview: React.FC<PolicyPreviewProps>;
|
|
188
|
+
|
|
189
|
+
interface PolicyExporterClassNames {
|
|
190
|
+
/** Root container */
|
|
191
|
+
root?: string;
|
|
192
|
+
/** Header area containing title and description */
|
|
193
|
+
header?: string;
|
|
194
|
+
/** Title element */
|
|
195
|
+
title?: string;
|
|
196
|
+
/** Description element */
|
|
197
|
+
description?: string;
|
|
198
|
+
/** Format selector container */
|
|
199
|
+
formatSelector?: string;
|
|
200
|
+
/** Individual format option */
|
|
201
|
+
formatOption?: string;
|
|
202
|
+
/** Export button */
|
|
203
|
+
exportButton?: string;
|
|
204
|
+
/** NDPA compliance / export tips notice */
|
|
205
|
+
complianceNotice?: string;
|
|
206
|
+
/** Preview / export history area */
|
|
207
|
+
preview?: string;
|
|
208
|
+
}
|
|
209
|
+
interface PolicyExporterProps {
|
|
210
|
+
/**
|
|
211
|
+
* The policy content to export
|
|
212
|
+
*/
|
|
213
|
+
content: string;
|
|
214
|
+
/**
|
|
215
|
+
* The policy title
|
|
216
|
+
*/
|
|
217
|
+
title?: string;
|
|
218
|
+
/**
|
|
219
|
+
* The organization name to include in the exported policy
|
|
220
|
+
*/
|
|
221
|
+
organizationName?: string;
|
|
222
|
+
/**
|
|
223
|
+
* The last updated date to include in the exported policy
|
|
224
|
+
*/
|
|
225
|
+
lastUpdated?: Date;
|
|
226
|
+
/**
|
|
227
|
+
* Callback function called when the export is complete
|
|
228
|
+
*/
|
|
229
|
+
onExportComplete?: (format: string, url: string) => void;
|
|
230
|
+
/**
|
|
231
|
+
* Title displayed on the exporter
|
|
232
|
+
* @default "Export Privacy Policy"
|
|
233
|
+
*/
|
|
234
|
+
componentTitle?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Description text displayed on the exporter
|
|
237
|
+
* @default "Export your NDPA-compliant privacy policy in various formats."
|
|
238
|
+
*/
|
|
239
|
+
description?: string;
|
|
240
|
+
/**
|
|
241
|
+
* Custom CSS class for the exporter
|
|
242
|
+
*/
|
|
243
|
+
className?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Custom CSS class for the buttons
|
|
246
|
+
*/
|
|
247
|
+
buttonClassName?: string;
|
|
248
|
+
/**
|
|
249
|
+
* Whether to show the export history
|
|
250
|
+
* @default true
|
|
251
|
+
*/
|
|
252
|
+
showExportHistory?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Whether to include the NDPA compliance notice in the exported policy
|
|
255
|
+
* @default true
|
|
256
|
+
*/
|
|
257
|
+
includeComplianceNotice?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Whether to include the organization logo in the exported policy
|
|
260
|
+
* @default false
|
|
261
|
+
*/
|
|
262
|
+
includeLogo?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* URL of the organization logo
|
|
265
|
+
*/
|
|
266
|
+
logoUrl?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Custom CSS styles for the exported policy
|
|
269
|
+
*/
|
|
270
|
+
customStyles?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Override class names for internal elements
|
|
273
|
+
*/
|
|
274
|
+
classNames?: PolicyExporterClassNames;
|
|
275
|
+
/**
|
|
276
|
+
* If true, removes all default styles. Use with classNames to apply your own.
|
|
277
|
+
* @default false
|
|
278
|
+
*/
|
|
279
|
+
unstyled?: boolean;
|
|
280
|
+
}
|
|
281
|
+
declare const PolicyExporter: React.FC<PolicyExporterProps>;
|
|
282
|
+
|
|
283
|
+
export { PolicyExporter as P, type PolicyExporterClassNames as a, PolicyGenerator as b, type PolicyGeneratorClassNames as c, PolicyPreview as d, type PolicyPreviewClassNames as e };
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { P as PolicySection, b as PolicyVariable } from './privacy-Ca6te9Ir.mjs';
|
|
3
|
+
import './usePrivacyPolicy-Dit2sFuV.mjs';
|
|
4
|
+
import './privacy-9FcJceMr.mjs';
|
|
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
|
+
/** NDPA compliance notice */
|
|
26
|
+
complianceNotice?: string;
|
|
27
|
+
}
|
|
28
|
+
interface PolicyGeneratorProps {
|
|
29
|
+
/**
|
|
30
|
+
* List of policy sections
|
|
31
|
+
*/
|
|
32
|
+
sections: PolicySection[];
|
|
33
|
+
/**
|
|
34
|
+
* List of policy variables
|
|
35
|
+
*/
|
|
36
|
+
variables: PolicyVariable[];
|
|
37
|
+
/**
|
|
38
|
+
* Callback function called when the policy is generated
|
|
39
|
+
*/
|
|
40
|
+
onGenerate: (policy: {
|
|
41
|
+
sections: PolicySection[];
|
|
42
|
+
variables: PolicyVariable[];
|
|
43
|
+
content: string;
|
|
44
|
+
}) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Title displayed on the generator
|
|
47
|
+
* @default "NDPA Privacy Policy Generator"
|
|
48
|
+
*/
|
|
49
|
+
title?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Description text displayed on the generator
|
|
52
|
+
* @default "Generate an NDPA-compliant privacy policy for your organization."
|
|
53
|
+
*/
|
|
54
|
+
description?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Custom CSS class for the generator
|
|
57
|
+
*/
|
|
58
|
+
className?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Custom CSS class for the buttons
|
|
61
|
+
*/
|
|
62
|
+
buttonClassName?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Text for the generate button
|
|
65
|
+
* @default "Generate Policy"
|
|
66
|
+
*/
|
|
67
|
+
generateButtonText?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Whether to show a preview of the generated policy
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
showPreview?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Whether to allow editing the policy content
|
|
75
|
+
* @default true
|
|
76
|
+
*/
|
|
77
|
+
allowEditing?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Override class names for internal elements
|
|
80
|
+
*/
|
|
81
|
+
classNames?: PolicyGeneratorClassNames;
|
|
82
|
+
/**
|
|
83
|
+
* If true, removes all default styles. Use with classNames to apply your own.
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
unstyled?: boolean;
|
|
87
|
+
}
|
|
88
|
+
declare const PolicyGenerator: React.FC<PolicyGeneratorProps>;
|
|
89
|
+
|
|
90
|
+
interface PolicyPreviewClassNames {
|
|
91
|
+
/** Root container */
|
|
92
|
+
root?: string;
|
|
93
|
+
/** Header area containing title and description */
|
|
94
|
+
header?: string;
|
|
95
|
+
/** Title element */
|
|
96
|
+
title?: string;
|
|
97
|
+
/** Description element */
|
|
98
|
+
description?: string;
|
|
99
|
+
/** Content area wrapping the rendered policy */
|
|
100
|
+
content?: string;
|
|
101
|
+
/** Individual rendered section container */
|
|
102
|
+
section?: string;
|
|
103
|
+
/** Section title within rendered content */
|
|
104
|
+
sectionTitle?: string;
|
|
105
|
+
/** Section content within rendered content */
|
|
106
|
+
sectionContent?: string;
|
|
107
|
+
/** NDPA compliance notice */
|
|
108
|
+
complianceNotice?: string;
|
|
109
|
+
}
|
|
110
|
+
interface PolicyPreviewProps {
|
|
111
|
+
/**
|
|
112
|
+
* The policy content to preview
|
|
113
|
+
*/
|
|
114
|
+
content: string;
|
|
115
|
+
/**
|
|
116
|
+
* The policy sections
|
|
117
|
+
*/
|
|
118
|
+
sections?: PolicySection[];
|
|
119
|
+
/**
|
|
120
|
+
* The policy variables
|
|
121
|
+
*/
|
|
122
|
+
variables?: PolicyVariable[];
|
|
123
|
+
/**
|
|
124
|
+
* Callback function called when the policy is exported
|
|
125
|
+
*/
|
|
126
|
+
onExport?: (format: 'pdf' | 'html' | 'markdown' | 'docx') => void;
|
|
127
|
+
/**
|
|
128
|
+
* Callback function called when the policy is edited
|
|
129
|
+
*/
|
|
130
|
+
onEdit?: () => void;
|
|
131
|
+
/**
|
|
132
|
+
* Title displayed on the preview
|
|
133
|
+
* @default "Privacy Policy Preview"
|
|
134
|
+
*/
|
|
135
|
+
title?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Description text displayed on the preview
|
|
138
|
+
* @default "Preview your NDPA-compliant privacy policy before exporting."
|
|
139
|
+
*/
|
|
140
|
+
description?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Custom CSS class for the preview
|
|
143
|
+
*/
|
|
144
|
+
className?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Custom CSS class for the buttons
|
|
147
|
+
*/
|
|
148
|
+
buttonClassName?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Whether to show the export options
|
|
151
|
+
* @default true
|
|
152
|
+
*/
|
|
153
|
+
showExportOptions?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Whether to show the edit button
|
|
156
|
+
* @default true
|
|
157
|
+
*/
|
|
158
|
+
showEditButton?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Whether to show the table of contents
|
|
161
|
+
* @default true
|
|
162
|
+
*/
|
|
163
|
+
showTableOfContents?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Whether to show the policy metadata
|
|
166
|
+
* @default true
|
|
167
|
+
*/
|
|
168
|
+
showMetadata?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* The organization name to display in the policy
|
|
171
|
+
*/
|
|
172
|
+
organizationName?: string;
|
|
173
|
+
/**
|
|
174
|
+
* The last updated date to display in the policy
|
|
175
|
+
*/
|
|
176
|
+
lastUpdated?: Date;
|
|
177
|
+
/**
|
|
178
|
+
* Override class names for internal elements
|
|
179
|
+
*/
|
|
180
|
+
classNames?: PolicyPreviewClassNames;
|
|
181
|
+
/**
|
|
182
|
+
* If true, removes all default styles. Use with classNames to apply your own.
|
|
183
|
+
* @default false
|
|
184
|
+
*/
|
|
185
|
+
unstyled?: boolean;
|
|
186
|
+
}
|
|
187
|
+
declare const PolicyPreview: React.FC<PolicyPreviewProps>;
|
|
188
|
+
|
|
189
|
+
interface PolicyExporterClassNames {
|
|
190
|
+
/** Root container */
|
|
191
|
+
root?: string;
|
|
192
|
+
/** Header area containing title and description */
|
|
193
|
+
header?: string;
|
|
194
|
+
/** Title element */
|
|
195
|
+
title?: string;
|
|
196
|
+
/** Description element */
|
|
197
|
+
description?: string;
|
|
198
|
+
/** Format selector container */
|
|
199
|
+
formatSelector?: string;
|
|
200
|
+
/** Individual format option */
|
|
201
|
+
formatOption?: string;
|
|
202
|
+
/** Export button */
|
|
203
|
+
exportButton?: string;
|
|
204
|
+
/** NDPA compliance / export tips notice */
|
|
205
|
+
complianceNotice?: string;
|
|
206
|
+
/** Preview / export history area */
|
|
207
|
+
preview?: string;
|
|
208
|
+
}
|
|
209
|
+
interface PolicyExporterProps {
|
|
210
|
+
/**
|
|
211
|
+
* The policy content to export
|
|
212
|
+
*/
|
|
213
|
+
content: string;
|
|
214
|
+
/**
|
|
215
|
+
* The policy title
|
|
216
|
+
*/
|
|
217
|
+
title?: string;
|
|
218
|
+
/**
|
|
219
|
+
* The organization name to include in the exported policy
|
|
220
|
+
*/
|
|
221
|
+
organizationName?: string;
|
|
222
|
+
/**
|
|
223
|
+
* The last updated date to include in the exported policy
|
|
224
|
+
*/
|
|
225
|
+
lastUpdated?: Date;
|
|
226
|
+
/**
|
|
227
|
+
* Callback function called when the export is complete
|
|
228
|
+
*/
|
|
229
|
+
onExportComplete?: (format: string, url: string) => void;
|
|
230
|
+
/**
|
|
231
|
+
* Title displayed on the exporter
|
|
232
|
+
* @default "Export Privacy Policy"
|
|
233
|
+
*/
|
|
234
|
+
componentTitle?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Description text displayed on the exporter
|
|
237
|
+
* @default "Export your NDPA-compliant privacy policy in various formats."
|
|
238
|
+
*/
|
|
239
|
+
description?: string;
|
|
240
|
+
/**
|
|
241
|
+
* Custom CSS class for the exporter
|
|
242
|
+
*/
|
|
243
|
+
className?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Custom CSS class for the buttons
|
|
246
|
+
*/
|
|
247
|
+
buttonClassName?: string;
|
|
248
|
+
/**
|
|
249
|
+
* Whether to show the export history
|
|
250
|
+
* @default true
|
|
251
|
+
*/
|
|
252
|
+
showExportHistory?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Whether to include the NDPA compliance notice in the exported policy
|
|
255
|
+
* @default true
|
|
256
|
+
*/
|
|
257
|
+
includeComplianceNotice?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Whether to include the organization logo in the exported policy
|
|
260
|
+
* @default false
|
|
261
|
+
*/
|
|
262
|
+
includeLogo?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* URL of the organization logo
|
|
265
|
+
*/
|
|
266
|
+
logoUrl?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Custom CSS styles for the exported policy
|
|
269
|
+
*/
|
|
270
|
+
customStyles?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Override class names for internal elements
|
|
273
|
+
*/
|
|
274
|
+
classNames?: PolicyExporterClassNames;
|
|
275
|
+
/**
|
|
276
|
+
* If true, removes all default styles. Use with classNames to apply your own.
|
|
277
|
+
* @default false
|
|
278
|
+
*/
|
|
279
|
+
unstyled?: boolean;
|
|
280
|
+
}
|
|
281
|
+
declare const PolicyExporter: React.FC<PolicyExporterProps>;
|
|
282
|
+
|
|
283
|
+
export { PolicyExporter as P, type PolicyExporterClassNames as a, PolicyGenerator as b, type PolicyGeneratorClassNames as c, PolicyPreview as d, type PolicyPreviewClassNames as e };
|