posthog-js 1.77.0 → 1.77.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/module.d.ts CHANGED
@@ -1084,6 +1084,7 @@ declare class SentryIntegration implements _SentryIntegration {
1084
1084
  }
1085
1085
 
1086
1086
  interface PageViewData {
1087
+ pathname: string;
1087
1088
  maxScrollHeight?: number;
1088
1089
  maxScrollY?: number;
1089
1090
  lastScrollY?: number;
@@ -1101,12 +1102,15 @@ interface ScrollProperties {
1101
1102
  $prev_pageview_max_content?: number;
1102
1103
  $prev_pageview_max_content_percentage?: number;
1103
1104
  }
1105
+ interface PageViewEventProperties extends ScrollProperties {
1106
+ $prev_pageview_pathname?: string;
1107
+ }
1104
1108
  declare class PageViewManager {
1105
1109
  _pageViewData: PageViewData | undefined;
1106
1110
  _hasSeenPageView: boolean;
1107
1111
  _createPageViewData(): PageViewData;
1108
- doPageView(): ScrollProperties;
1109
- doPageLeave(): ScrollProperties;
1112
+ doPageView(): PageViewEventProperties;
1113
+ doPageLeave(): PageViewEventProperties;
1110
1114
  _calculatePrevPageScrollProperties(prevPageViewData: PageViewData | undefined): ScrollProperties;
1111
1115
  _updateScrollData: () => void;
1112
1116
  startMeasuringScrollPosition(): void;