@privacykit/web 1.2.1 → 1.3.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/index.d.ts CHANGED
@@ -3,9 +3,3 @@ declare module "*.css";
3
3
  import "./privacykit";
4
4
 
5
5
  export * from './dist/index';
6
-
7
- declare global {
8
- interface Window {
9
- PrivacyKit: PrivacyKitGlobalApi;
10
- }
11
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@privacykit/web",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Developer-friendly GDPR consent management with real enforcement.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./index.d.ts",
@@ -27,7 +27,8 @@
27
27
  "access": "public"
28
28
  },
29
29
  "scripts": {
30
- "sync-types": "cp ../privacykit-sdk/public/privacykit.d.ts ./privacykit.d.ts",
30
+ "fix-type": "sed -i '' 's/PrivacyKit?: PrivacyKitGlobalApi/PrivacyKit: PrivacyKitGlobalApi/' ./privacykit.d.ts",
31
+ "sync-types": "cp ../privacykit-sdk/public/privacykit.d.ts ./privacykit.d.ts && npm run fix-type",
31
32
  "build": "npx tsc",
32
33
  "publish:patch": "npm run build && npm login && npm version patch && npm publish",
33
34
  "publish:minor": "npm run build && npm login && npm version minor && npm publish"
package/privacykit.d.ts CHANGED
@@ -100,8 +100,8 @@ 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
105
  * - `dialog-title` Override the dialog heading
106
106
  * - `dialog-summary-part-1` Override the first summary paragraph
107
107
  * - `dialog-summary-part-2` Override the second summary paragraph
@@ -243,7 +243,7 @@ declare global {
243
243
  }
244
244
 
245
245
  interface Window {
246
- PrivacyKit?: PrivacyKitGlobalApi;
246
+ PrivacyKit: PrivacyKitGlobalApi;
247
247
  }
248
248
 
249
249
  interface HTMLElementTagNameMap {