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/array.full.js +2 -2
- package/dist/array.full.js.map +1 -1
- package/dist/array.js +2 -2
- package/dist/array.js.map +1 -1
- package/dist/es.js +2 -2
- package/dist/es.js.map +1 -1
- package/dist/module.d.ts +6 -2
- package/dist/module.js +2 -2
- package/dist/module.js.map +1 -1
- package/lib/package.json +5 -4
- package/lib/src/autocapture.js +9 -3
- package/lib/src/autocapture.js.map +1 -1
- package/lib/src/page-view.d.ts +6 -2
- package/lib/src/page-view.js +27 -14
- package/lib/src/page-view.js.map +1 -1
- package/lib/src/utils.js +1 -1
- package/lib/src/utils.js.map +1 -1
- package/package.json +5 -4
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():
|
|
1109
|
-
doPageLeave():
|
|
1112
|
+
doPageView(): PageViewEventProperties;
|
|
1113
|
+
doPageLeave(): PageViewEventProperties;
|
|
1110
1114
|
_calculatePrevPageScrollProperties(prevPageViewData: PageViewData | undefined): ScrollProperties;
|
|
1111
1115
|
_updateScrollData: () => void;
|
|
1112
1116
|
startMeasuringScrollPosition(): void;
|