flusterduck 0.2.0 → 0.4.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/README.md +161 -0
- package/dist/d.global.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +1 -1
- package/dist/posthog-trigger.d.ts +36 -0
- package/dist/queue.d.ts +5 -0
- package/dist/selector.d.ts +1 -0
- package/dist/signals/advanced-signals.d.ts +1 -0
- package/dist/signals/close-click-reversal.d.ts +3 -0
- package/dist/signals/close-click.d.ts +3 -0
- package/dist/signals/copy-frustration.d.ts +3 -0
- package/dist/signals/dead-click-trap-zone.d.ts +3 -0
- package/dist/signals/dead-click.d.ts +1 -0
- package/dist/signals/element-impression.d.ts +3 -0
- package/dist/signals/exit-intent.d.ts +3 -0
- package/dist/signals/filter-spiral.d.ts +3 -0
- package/dist/signals/form-validation-loop.d.ts +3 -0
- package/dist/signals/frustration-correlator.d.ts +4 -0
- package/dist/signals/help-hunt.d.ts +3 -0
- package/dist/signals/hover-dwell.d.ts +5 -0
- package/dist/signals/index.d.ts +21 -4
- package/dist/signals/input-correction.d.ts +3 -0
- package/dist/signals/keyboard-signals.d.ts +1 -1
- package/dist/signals/navigation-confusion.d.ts +4 -0
- package/dist/signals/paste-blocked.d.ts +2 -0
- package/dist/signals/performance-vitals.d.ts +3 -0
- package/dist/signals/rage-click.d.ts +1 -0
- package/dist/signals/scroll-hijack.d.ts +1 -0
- package/dist/signals/scroll-to-click-confusion.d.ts +3 -0
- package/dist/signals/speed-frustration.d.ts +1 -0
- package/dist/signals/text-select-frustration.d.ts +3 -0
- package/dist/types.d.ts +4 -0
- package/package.json +1 -1
package/dist/selector.d.ts
CHANGED
package/dist/signals/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { initRageClick, destroyRageClick } from './rage-click';
|
|
2
|
-
export { initDeadClick, destroyDeadClick } from './dead-click';
|
|
3
|
-
export { initSpeedFrustration, destroySpeedFrustration } from './speed-frustration';
|
|
2
|
+
export { initDeadClick, destroyDeadClick, resetDeadClick } from './dead-click';
|
|
3
|
+
export { initSpeedFrustration, destroySpeedFrustration, resetSpeedFrustration } from './speed-frustration';
|
|
4
4
|
export { initThrashCursor, destroyThrashCursor } from './thrash-cursor';
|
|
5
5
|
export { initLoopNav, destroyLoopNav, recordNavigation } from './loop-nav';
|
|
6
6
|
export { initScrollBounce, destroyScrollBounce, resetScrollBounce, } from './scroll-bounce';
|
|
@@ -8,6 +8,23 @@ export { initFormSignals, destroyFormSignals, resetFormSignals, } from './form-s
|
|
|
8
8
|
export { initErrorEncounter, destroyErrorEncounter } from './error-encounter';
|
|
9
9
|
export { initMobileSignals, destroyMobileSignals } from './mobile-signals';
|
|
10
10
|
export { initKeyboardSignals, destroyKeyboardSignals, } from './keyboard-signals';
|
|
11
|
-
export { initScrollHijack, destroyScrollHijack } from './scroll-hijack';
|
|
11
|
+
export { initScrollHijack, destroyScrollHijack, resetScrollHijack } from './scroll-hijack';
|
|
12
12
|
export { initScrollDepthAbandon, destroyScrollDepthAbandon, resetScrollDepthAbandon, } from './scroll-depth-abandon';
|
|
13
|
-
export { initAdvancedSignals, destroyAdvancedSignals, resetAdvancedSignals, } from './advanced-signals';
|
|
13
|
+
export { initAdvancedSignals, destroyAdvancedSignals, resetAdvancedSignals, resetAdvancedCycle, } from './advanced-signals';
|
|
14
|
+
export { initHelpHunt, destroyHelpHunt, resetHelpHunt } from './help-hunt';
|
|
15
|
+
export { initCloseClick, destroyCloseClick, resetCloseClick } from './close-click';
|
|
16
|
+
export { initCloseClickReversal, destroyCloseClickReversal, resetCloseClickReversal, } from './close-click-reversal';
|
|
17
|
+
export { initFilterSpiral, destroyFilterSpiral, resetFilterSpiral } from './filter-spiral';
|
|
18
|
+
export { initCopyFrustration, destroyCopyFrustration, resetCopyFrustration } from './copy-frustration';
|
|
19
|
+
export { initTextSelectFrustration, destroyTextSelectFrustration, resetTextSelectFrustration, } from './text-select-frustration';
|
|
20
|
+
export { initFrustrationCorrelator, destroyFrustrationCorrelator, setFrustrationCorrelatorPage, } from './frustration-correlator';
|
|
21
|
+
export { initNavigationConfusion, destroyNavigationConfusion, resetNavigationConfusion, recordPageVisit, } from './navigation-confusion';
|
|
22
|
+
export { initScrollToClickConfusion, destroyScrollToClickConfusion, resetScrollToClickConfusion, } from './scroll-to-click-confusion';
|
|
23
|
+
export { initDeadClickTrapZone, destroyDeadClickTrapZone, resetDeadClickTrapZone, } from './dead-click-trap-zone';
|
|
24
|
+
export { initFormValidationLoop, destroyFormValidationLoop, resetFormValidationLoop, } from './form-validation-loop';
|
|
25
|
+
export { initElementImpression, destroyElementImpression, resetElementImpression, } from './element-impression';
|
|
26
|
+
export { initInputCorrection, destroyInputCorrection, resetInputCorrection, } from './input-correction';
|
|
27
|
+
export { initHoverDwell, destroyHoverDwell, resetHoverDwell, } from './hover-dwell';
|
|
28
|
+
export { initExitIntent, destroyExitIntent, resetExitIntent } from './exit-intent';
|
|
29
|
+
export { initPerformanceVitals, destroyPerformanceVitals, resetPerformanceVitals, } from './performance-vitals';
|
|
30
|
+
export { initPasteBlocked, destroyPasteBlocked } from './paste-blocked';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function initKeyboardSignals(): void;
|
|
1
|
+
export declare function initKeyboardSignals(ignore?: string[]): void;
|
|
2
2
|
export declare function destroyKeyboardSignals(): void;
|
package/dist/types.d.ts
CHANGED
|
@@ -20,11 +20,14 @@ export interface Config {
|
|
|
20
20
|
compression?: CompressionMode;
|
|
21
21
|
ignoreElements?: string[];
|
|
22
22
|
ignorePages?: string[];
|
|
23
|
+
elementImpressionSelectors?: string[];
|
|
23
24
|
}
|
|
24
25
|
export interface SignalOpts {
|
|
25
26
|
enabled?: boolean;
|
|
26
27
|
threshold?: number;
|
|
27
28
|
windowMs?: number;
|
|
29
|
+
/** Max pairwise click distance in px for rage click clustering. Default 24. */
|
|
30
|
+
radius?: number;
|
|
28
31
|
}
|
|
29
32
|
export interface SDKEvent {
|
|
30
33
|
t: string;
|
|
@@ -44,6 +47,7 @@ export interface Batch {
|
|
|
44
47
|
vw: number;
|
|
45
48
|
vh: number;
|
|
46
49
|
environment?: string;
|
|
50
|
+
segment?: Record<string, string>;
|
|
47
51
|
dom_mode: DOMMode;
|
|
48
52
|
events: IngestEvent[];
|
|
49
53
|
}
|