@privacykit/web 1.2.2 → 1.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 (2) hide show
  1. package/package.json +1 -1
  2. package/privacykit.d.ts +13 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@privacykit/web",
3
- "version": "1.2.2",
3
+ "version": "1.4.0",
4
4
  "description": "Developer-friendly GDPR consent management with real enforcement.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./index.d.ts",
package/privacykit.d.ts CHANGED
@@ -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` Optional logo content shown next to the title
104
- * - `dialog-logo-alt` Alternative location for your brand logo
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. */