@privacykit/web 1.0.2 → 1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/privacykit.d.ts +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@privacykit/web",
3
- "version": "1.0.2",
3
+ "version": "1.2.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
@@ -160,6 +160,8 @@ declare global {
160
160
  dialogPosition: 'left' | 'right';
161
161
  /** Whether the dialog is currently open. @default false */
162
162
  open: boolean;
163
+ /** Enable Google Consent Mode v2 compatibility layer. When set, PrivacyKit emits GCM v2 consent updates via window.gtag or window.dataLayer on init and whenever consent changes. @default false */
164
+ googleConsentMode: boolean;
163
165
 
164
166
  /** Programmatically open the dialog. */
165
167
  openDialog(): Promise<void>;
@@ -298,6 +300,8 @@ interface ConsentDialogJSXProps {
298
300
  'dialog-position'?: 'left' | 'right';
299
301
  /** Open/close state. */
300
302
  'open'?: boolean | '';
303
+ /** Enable Google Consent Mode v2 compatibility layer. */
304
+ 'google-consent-mode'?: boolean | '';
301
305
  'ref'?: CKRef<HTMLConsentDialogElement>;
302
306
  'children'?: unknown;
303
307
  /** Inline styles — pass CSS custom properties like `--pk-primary-color` here. */