posthog-js 1.426.3 → 1.427.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/all-external-dependencies.js +1 -1
- package/dist/all-external-dependencies.js.map +1 -1
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.es5.js.map +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.js.map +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.full.no-external.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/array.no-external.js.map +1 -1
- package/dist/conversations.js +1 -1
- package/dist/customizations.d.ts +4 -1
- package/dist/customizations.full.js +1 -1
- package/dist/customizations.js +1 -1
- package/dist/dead-clicks-autocapture.js +1 -1
- package/dist/default-extensions.js +1 -1
- package/dist/default-extensions.js.map +1 -1
- package/dist/exception-autocapture.js +1 -1
- package/dist/exception-autocapture.js.map +1 -1
- package/dist/extension-bundles.js +1 -1
- package/dist/extension-bundles.js.map +1 -1
- package/dist/lazy-recorder.js +1 -1
- package/dist/lazy-recorder.js.map +1 -1
- package/dist/main.d.ts +4 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.d.ts +4 -1
- package/dist/module.full.d.ts +4 -1
- package/dist/module.full.js +1 -1
- package/dist/module.full.js.map +1 -1
- package/dist/module.full.no-external.d.ts +4 -1
- package/dist/module.full.no-external.js +1 -1
- package/dist/module.full.no-external.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.mjs.map +1 -1
- package/dist/module.no-external.d.ts +4 -1
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/dist/module.slim.js +1 -1
- package/dist/module.slim.js.map +1 -1
- package/dist/module.slim.no-external.d.ts +4 -1
- package/dist/module.slim.no-external.js +1 -1
- package/dist/module.slim.no-external.js.map +1 -1
- package/dist/posthog-recorder.d.ts +35 -11
- package/dist/posthog-recorder.js +1 -1
- package/dist/posthog-recorder.js.map +1 -1
- package/dist/product-tours.js +1 -1
- package/dist/recorder-v2.js +1 -1
- package/dist/recorder-v2.js.map +1 -1
- package/dist/recorder.d.ts +35 -11
- package/dist/recorder.js +1 -1
- package/dist/recorder.js.map +1 -1
- package/dist/rrweb-plugin-console-record.d.ts +9 -1
- package/dist/rrweb-plugin-console-record.js +1 -1
- package/dist/rrweb-plugin-console-record.js.map +1 -1
- package/dist/rrweb-types.d.ts +9 -1
- package/dist/rrweb-types.js +1 -1
- package/dist/rrweb-types.js.map +1 -1
- package/dist/rrweb.d.ts +35 -10
- package/dist/rrweb.js +1 -1
- package/dist/rrweb.js.map +1 -1
- package/dist/src/posthog-featureflags.d.ts +4 -1
- package/dist/surveys-preview.js +1 -1
- package/dist/surveys.js +1 -1
- package/lib/package.json +1 -1
- package/lib/src/posthog-core.js +20 -13
- package/lib/src/posthog-core.js.map +1 -1
- package/lib/src/posthog-featureflags.d.ts +4 -1
- package/lib/src/posthog-featureflags.js +41 -3
- package/lib/src/posthog-featureflags.js.map +1 -1
- package/package.json +6 -6
|
@@ -526,7 +526,15 @@ declare type viewportResizeData = {
|
|
|
526
526
|
declare type viewportResizeDimension = {
|
|
527
527
|
width: number;
|
|
528
528
|
height: number;
|
|
529
|
-
};
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
declare global {
|
|
534
|
+
interface Window {
|
|
535
|
+
FontFace: typeof FontFace;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
530
538
|
|
|
531
539
|
declare type MaskAttributeFn = (name: string, value: string, element: Element) => string;
|
|
532
540
|
|
|
@@ -587,15 +595,6 @@ declare type ErrorHandler = (error: unknown, context?: ErrorHandlerContext) => v
|
|
|
587
595
|
declare type ErrorHandlerContext = 'rrweb' | 'host';
|
|
588
596
|
|
|
589
597
|
|
|
590
|
-
declare function record<T = eventWithTime>(options?: recordOptions<T>): listenerHandler | undefined;
|
|
591
|
-
|
|
592
|
-
declare namespace record {
|
|
593
|
-
var addCustomEvent: <T>(tag: string, payload: T) => void;
|
|
594
|
-
var freezePage: () => void;
|
|
595
|
-
var takeFullSnapshot: (isCheckout?: boolean) => void;
|
|
596
|
-
var mirror: Mirror;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
598
|
declare type recordOptions<T> = {
|
|
600
599
|
emit?: (e: T, isCheckout?: boolean) => void;
|
|
601
600
|
checkoutEveryNth?: number;
|
|
@@ -634,6 +633,31 @@ declare type recordOptions<T> = {
|
|
|
634
633
|
mousemoveWait?: number;
|
|
635
634
|
keepIframeSrcFn?: KeepIframeSrcFn;
|
|
636
635
|
errorHandler?: ErrorHandler;
|
|
637
|
-
};
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
declare function record<T = eventWithTime>(options?: recordOptions<T>): listenerHandler | undefined;
|
|
639
|
+
|
|
640
|
+
declare namespace record {
|
|
641
|
+
var addCustomEvent: <T>(tag: string, payload: T) => void;
|
|
642
|
+
var freezePage: () => void;
|
|
643
|
+
var takeFullSnapshot: (isCheckout?: boolean) => void;
|
|
644
|
+
var mirror: Mirror;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
declare namespace record {
|
|
649
|
+
var addCustomEvent: <T>(tag: string, payload: T) => void;
|
|
650
|
+
var freezePage: () => void;
|
|
651
|
+
var takeFullSnapshot: (isCheckout?: boolean) => void;
|
|
652
|
+
var mirror: Mirror;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
declare global {
|
|
657
|
+
interface Window {
|
|
658
|
+
FontFace: typeof FontFace;
|
|
659
|
+
Array: typeof Array;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
638
662
|
|
|
639
663
|
export { record as default };
|