@privacykit/web 1.0.0 → 1.0.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.
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.0",
3
+ "version": "1.0.1",
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
@@ -156,6 +156,8 @@ declare global {
156
156
  showFab: boolean;
157
157
  /** Position of the FAB in the viewport. @default 'left' */
158
158
  fabPosition: 'left' | 'right';
159
+ /** Position of the dialog on non-mobile viewports. Applies to 'modern' (slide-in panel) and 'modest' (corner popup) variants. @default 'left' */
160
+ dialogPosition: 'left' | 'right';
159
161
  /** Whether the dialog is currently open. @default false */
160
162
  open: boolean;
161
163
 
@@ -292,6 +294,8 @@ interface ConsentDialogJSXProps {
292
294
  'show-fab'?: boolean | '';
293
295
  /** Position of the FAB: bottom-left or bottom-right. @default 'left' */
294
296
  'fab-position'?: 'left' | 'right';
297
+ /** Position of the dialog on non-mobile viewports. Applies to 'modern' and 'modest' variants. @default 'left' */
298
+ 'dialog-position'?: 'left' | 'right';
295
299
  /** Open/close state. */
296
300
  'open'?: boolean | '';
297
301
  'ref'?: CKRef<HTMLConsentDialogElement>;