@hifilabs/pixel 0.6.0 → 0.6.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.
@@ -576,3 +576,39 @@ export interface UseBalanceSubscriptionReturn {
576
576
  }
577
577
 
578
578
  export declare function useBalanceSubscription(): UseBalanceSubscriptionReturn;
579
+
580
+ // ============================================
581
+ // usePageviewTracking Hook
582
+ // ============================================
583
+
584
+ export declare function usePageviewTracking(): void;
585
+
586
+ // ============================================
587
+ // ConsentBridge Component
588
+ // ============================================
589
+
590
+ export interface ConsentBridgeProps {
591
+ /**
592
+ * Analytics consent (pageviews, clicks, engagement)
593
+ */
594
+ analytics?: boolean;
595
+
596
+ /**
597
+ * Marketing consent (email notifications, ads)
598
+ */
599
+ marketing?: boolean;
600
+
601
+ /**
602
+ * Personalization consent (recommendations, preferences)
603
+ */
604
+ personalization?: boolean;
605
+ }
606
+
607
+ /**
608
+ * ConsentBridge - Vendor-agnostic consent sync for Balance Pixel
609
+ *
610
+ * Accepts generic boolean props and syncs to Balance Pixel.
611
+ * The mapping from your consent manager (c15t, OneTrust, etc.) to these
612
+ * props happens in your app code, not in the SDK.
613
+ */
614
+ export declare function ConsentBridge(props: ConsentBridgeProps): null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hifilabs/pixel",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "BALANCE Pixel - Lightweight browser tracking script for artist fan analytics",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",