@zaplier/sdk 1.6.9 → 1.7.2

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/dist/index.d.ts CHANGED
@@ -932,9 +932,25 @@ declare class ZaplierSDK implements ZaplierSDK$1 {
932
932
  trackHovers?: boolean;
933
933
  trackForms?: boolean;
934
934
  }) => void;
935
+ /**
936
+ * Refresh tracking for dynamic content (React/SPA route changes)
937
+ * Modern alternative to rescan() - follows GA4/industry best practices
938
+ */
939
+ refreshTracking: () => void;
940
+ /**
941
+ * Legacy rescan method - use refreshTracking() instead
942
+ * @deprecated Use refreshTracking() for better performance
943
+ */
944
+ rescan: () => void;
945
+ /**
946
+ * Get diagnostic information for debugging
947
+ */
948
+ getDiagnostics: () => object | null;
935
949
  getStats: () => {
936
950
  observedElements: number;
937
951
  config: AutoTrackerConfig;
952
+ isModern: boolean;
953
+ diagnostics?: object;
938
954
  } | null;
939
955
  isEnabled: () => boolean;
940
956
  };
@@ -1119,6 +1135,8 @@ declare const Zaplier: {
1119
1135
  getStats: () => {
1120
1136
  observedElements: number;
1121
1137
  config: AutoTrackerConfig;
1138
+ isModern: boolean;
1139
+ diagnostics?: object;
1122
1140
  } | null;
1123
1141
  isEnabled: () => boolean;
1124
1142
  };