@posthog/browser-common 0.8.0 → 0.8.1
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/config.js
CHANGED
package/dist/config.mjs
CHANGED
|
@@ -7,7 +7,9 @@ export declare function makeSafeText(s: string | null | undefined): string | nul
|
|
|
7
7
|
export declare function getSafeText(el: Element): string;
|
|
8
8
|
export declare function getEventTarget(e: Event): Element | null;
|
|
9
9
|
export declare const autocaptureCompatibleElements: string[];
|
|
10
|
+
export declare function elementMatchesCSSSelector(el: Element, selector: string): boolean;
|
|
10
11
|
export declare function getParentElement(curEl: Element): Element | false;
|
|
12
|
+
export declare const DEFAULT_AUTOCAPTURE_IGNORE_LIST: string[];
|
|
11
13
|
export declare const DEFAULT_CONTENT_IGNORELIST_WITH_STEPPERS: string[];
|
|
12
14
|
export declare function shouldCaptureDeadClick(el: Element | null, _config: PostHogConfig['capture_dead_clicks']): boolean;
|
|
13
15
|
export declare function isTextSelectionTarget(el: Element | null): boolean;
|
|
@@ -28,9 +28,11 @@ var __webpack_require__ = {};
|
|
|
28
28
|
var __webpack_exports__ = {};
|
|
29
29
|
__webpack_require__.r(__webpack_exports__);
|
|
30
30
|
__webpack_require__.d(__webpack_exports__, {
|
|
31
|
+
DEFAULT_AUTOCAPTURE_IGNORE_LIST: ()=>DEFAULT_AUTOCAPTURE_IGNORE_LIST,
|
|
31
32
|
DEFAULT_CONTENT_IGNORELIST_WITH_STEPPERS: ()=>DEFAULT_CONTENT_IGNORELIST_WITH_STEPPERS,
|
|
32
33
|
MAX_DOM_ANCESTOR_DEPTH: ()=>MAX_DOM_ANCESTOR_DEPTH,
|
|
33
34
|
autocaptureCompatibleElements: ()=>autocaptureCompatibleElements,
|
|
35
|
+
elementMatchesCSSSelector: ()=>elementMatchesCSSSelector,
|
|
34
36
|
getClassNames: ()=>getClassNames,
|
|
35
37
|
getDirectAndNestedSpanText: ()=>getDirectAndNestedSpanText,
|
|
36
38
|
getElementsChainString: ()=>getElementsChainString,
|
|
@@ -488,9 +490,11 @@ function extractAttrClass(el) {
|
|
|
488
490
|
if ((0, core_namespaceObject.isArray)(attr_class)) return attr_class;
|
|
489
491
|
return splitClassString(attr_class);
|
|
490
492
|
}
|
|
493
|
+
exports.DEFAULT_AUTOCAPTURE_IGNORE_LIST = __webpack_exports__.DEFAULT_AUTOCAPTURE_IGNORE_LIST;
|
|
491
494
|
exports.DEFAULT_CONTENT_IGNORELIST_WITH_STEPPERS = __webpack_exports__.DEFAULT_CONTENT_IGNORELIST_WITH_STEPPERS;
|
|
492
495
|
exports.MAX_DOM_ANCESTOR_DEPTH = __webpack_exports__.MAX_DOM_ANCESTOR_DEPTH;
|
|
493
496
|
exports.autocaptureCompatibleElements = __webpack_exports__.autocaptureCompatibleElements;
|
|
497
|
+
exports.elementMatchesCSSSelector = __webpack_exports__.elementMatchesCSSSelector;
|
|
494
498
|
exports.getClassNames = __webpack_exports__.getClassNames;
|
|
495
499
|
exports.getDirectAndNestedSpanText = __webpack_exports__.getDirectAndNestedSpanText;
|
|
496
500
|
exports.getElementsChainString = __webpack_exports__.getElementsChainString;
|
|
@@ -510,9 +514,11 @@ exports.shouldCaptureValue = __webpack_exports__.shouldCaptureValue;
|
|
|
510
514
|
exports.shouldSkipDeadClick = __webpack_exports__.shouldSkipDeadClick;
|
|
511
515
|
exports.splitClassString = __webpack_exports__.splitClassString;
|
|
512
516
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
517
|
+
"DEFAULT_AUTOCAPTURE_IGNORE_LIST",
|
|
513
518
|
"DEFAULT_CONTENT_IGNORELIST_WITH_STEPPERS",
|
|
514
519
|
"MAX_DOM_ANCESTOR_DEPTH",
|
|
515
520
|
"autocaptureCompatibleElements",
|
|
521
|
+
"elementMatchesCSSSelector",
|
|
516
522
|
"getClassNames",
|
|
517
523
|
"getDirectAndNestedSpanText",
|
|
518
524
|
"getElementsChainString",
|
|
@@ -436,4 +436,4 @@ function extractAttrClass(el) {
|
|
|
436
436
|
if (isArray(attr_class)) return attr_class;
|
|
437
437
|
return splitClassString(attr_class);
|
|
438
438
|
}
|
|
439
|
-
export { DEFAULT_CONTENT_IGNORELIST_WITH_STEPPERS, MAX_DOM_ANCESTOR_DEPTH, autocaptureCompatibleElements, getClassNames, getDirectAndNestedSpanText, getElementsChainString, getEventTarget, getNestedSpanText, getParentElement, getSafeText, isAngularStyleAttr, isSensitiveElement, isTextSelectionTarget, makeSafeText, shouldCaptureDeadClick, shouldCaptureDomEvent, shouldCaptureElement, shouldCaptureRageclick, shouldCaptureValue, shouldSkipDeadClick, splitClassString };
|
|
439
|
+
export { DEFAULT_AUTOCAPTURE_IGNORE_LIST, DEFAULT_CONTENT_IGNORELIST_WITH_STEPPERS, MAX_DOM_ANCESTOR_DEPTH, autocaptureCompatibleElements, elementMatchesCSSSelector, getClassNames, getDirectAndNestedSpanText, getElementsChainString, getEventTarget, getNestedSpanText, getParentElement, getSafeText, isAngularStyleAttr, isSensitiveElement, isTextSelectionTarget, makeSafeText, shouldCaptureDeadClick, shouldCaptureDomEvent, shouldCaptureElement, shouldCaptureRageclick, shouldCaptureValue, shouldSkipDeadClick, splitClassString };
|