posthog-js 1.98.2 → 1.100.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/dist/array.full.js +1 -1
- package/dist/array.full.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/es.js +1 -1
- package/dist/es.js.map +1 -1
- package/dist/module.d.ts +5 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/src/page-view.d.ts +4 -0
- package/lib/src/page-view.js +60 -9
- package/lib/src/page-view.js.map +1 -1
- package/lib/src/posthog-core.js +3 -3
- package/lib/src/posthog-core.js.map +1 -1
- package/lib/src/types.d.ts +2 -1
- package/lib/src/types.js.map +1 -1
- package/package.json +1 -1
package/dist/module.d.ts
CHANGED
|
@@ -227,8 +227,9 @@ interface PostHogConfig {
|
|
|
227
227
|
featureFlagPayloads?: Record<string, JsonType>;
|
|
228
228
|
};
|
|
229
229
|
segment?: any;
|
|
230
|
-
__preview_measure_pageview_stats?: boolean;
|
|
231
230
|
__preview_send_client_session_params?: boolean;
|
|
231
|
+
disable_scroll_properties?: boolean;
|
|
232
|
+
scroll_root_selector?: string | string[];
|
|
232
233
|
}
|
|
233
234
|
interface OptInOutCapturingOptions {
|
|
234
235
|
capture: (event: string, properties: Properties, options: CaptureOptions) => void;
|
|
@@ -1034,6 +1035,8 @@ interface PageViewEventProperties extends ScrollProperties {
|
|
|
1034
1035
|
declare class PageViewManager {
|
|
1035
1036
|
_pageViewData: PageViewData | undefined;
|
|
1036
1037
|
_hasSeenPageView: boolean;
|
|
1038
|
+
_instance: PostHog;
|
|
1039
|
+
constructor(instance: PostHog);
|
|
1037
1040
|
_createPageViewData(): PageViewData;
|
|
1038
1041
|
doPageView(): PageViewEventProperties;
|
|
1039
1042
|
doPageLeave(): PageViewEventProperties;
|
|
@@ -1041,6 +1044,7 @@ declare class PageViewManager {
|
|
|
1041
1044
|
_updateScrollData: () => void;
|
|
1042
1045
|
startMeasuringScrollPosition(): void;
|
|
1043
1046
|
stopMeasuringScrollPosition(): void;
|
|
1047
|
+
_scrollElement(): Element | null | undefined;
|
|
1044
1048
|
_scrollHeight(): number;
|
|
1045
1049
|
_scrollY(): number;
|
|
1046
1050
|
_contentHeight(): number;
|