@privacykit/web 1.3.0 → 1.4.1
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/package.json +1 -1
- package/privacykit.d.ts +14 -3
package/package.json
CHANGED
package/privacykit.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ declare global {
|
|
|
33
33
|
type ConsentDialogVariant = 'standard' | 'modern' | 'modest' | 'panel';
|
|
34
34
|
|
|
35
35
|
/** Token preset theme of the consent dialog. */
|
|
36
|
-
type ConsentDialogTheme = 'standard' | 'dark' | 'teal' | 'slate' | 'light' | 'vibrant' | 'high-contrast';
|
|
36
|
+
type ConsentDialogTheme = 'standard' | 'dark' | 'teal' | 'slate' | 'light' | 'vibrant' | 'high-contrast' | 'glass';
|
|
37
37
|
|
|
38
38
|
/** Locale supported by PrivacyKit. Falls back to 'en'. */
|
|
39
39
|
type ConsentDialogLocale = 'da' | 'de' | 'en' | 'es' | 'fi' | 'fr' | 'it' | 'nl' | 'no' | 'pl' | 'sv';
|
|
@@ -100,8 +100,9 @@ declare global {
|
|
|
100
100
|
* All visual rendering is delegated to the active design variant.
|
|
101
101
|
*
|
|
102
102
|
* Named slots for content overrides:
|
|
103
|
-
* - `dialog-logo-top`
|
|
104
|
-
* - `dialog-logo-right`
|
|
103
|
+
* - `dialog-logo-top` Optional logo shown in the dialog header (moves title into body)
|
|
104
|
+
* - `dialog-logo-right` Optional logo shown to the right of the first summary paragraph
|
|
105
|
+
* - `privacy-policy-logo` Optional logo shown in the privacy policy dialog header (moves its title into the header frame)
|
|
105
106
|
* - `dialog-title` Override the dialog heading
|
|
106
107
|
* - `dialog-summary-part-1` Override the first summary paragraph
|
|
107
108
|
* - `dialog-summary-part-2` Override the second summary paragraph
|
|
@@ -146,6 +147,8 @@ declare global {
|
|
|
146
147
|
hideReadmore: boolean | undefined;
|
|
147
148
|
/** Hide the default Privacy Policy link in the footer. */
|
|
148
149
|
hidePrivacyPolicyLink: boolean | undefined;
|
|
150
|
+
/** Hide the PrivacyKit badge shown below the consent log. */
|
|
151
|
+
hidePrivacykitBadge: boolean | undefined;
|
|
149
152
|
/** Override the privacy policy link to redirect to an external URL instead of opening the internal privacy policy dialog. */
|
|
150
153
|
privacyPolicyUrl: string | undefined;
|
|
151
154
|
/** Hide the second summary paragraph from the dialog. */
|
|
@@ -288,6 +291,14 @@ interface ConsentDialogJSXProps {
|
|
|
288
291
|
'hide-analytics'?: boolean | '';
|
|
289
292
|
/** Hide the "Marketing" section. */
|
|
290
293
|
'hide-marketing'?: boolean | '';
|
|
294
|
+
/** Hide the expandable "Read more" section. */
|
|
295
|
+
'hide-readmore'?: boolean | '';
|
|
296
|
+
/** Hide the default Privacy Policy link in the footer. */
|
|
297
|
+
'hide-privacy-policy-link'?: boolean | '';
|
|
298
|
+
/** Hide the PrivacyKit badge shown below the consent log. */
|
|
299
|
+
'hide-privacykit-badge'?: boolean | '';
|
|
300
|
+
/** Redirect privacy policy action to an external URL. */
|
|
301
|
+
'privacy-policy-url'?: string;
|
|
291
302
|
/** Hide the second summary paragraph. */
|
|
292
303
|
'hide-summary-part-2'?: boolean | '';
|
|
293
304
|
/** Enable demo mode. */
|