@absolutejs/beacon 0.6.60 → 0.6.61
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/index.d.ts +1 -1
- package/dist/index.js +5 -6
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ export declare const BEACON_ATTRIBUTE: {
|
|
|
107
107
|
/** Response header used to correlate a browser signal with its server request. */
|
|
108
108
|
export declare const BEACON_TRACE_HEADER = "x-absolute-trace-id";
|
|
109
109
|
/** Beacon package version retained with every captured event. */
|
|
110
|
-
export declare const BEACON_SDK_VERSION = "0.6.
|
|
110
|
+
export declare const BEACON_SDK_VERSION = "0.6.61";
|
|
111
111
|
/** Arbitrary event tags, with Beacon's reserved `signal` tag type-checked. */
|
|
112
112
|
export type BeaconTags = Record<string, string> & {
|
|
113
113
|
signal?: BeaconSignal;
|
package/dist/index.js
CHANGED
|
@@ -76,7 +76,7 @@ var BEACON_ATTRIBUTE = {
|
|
|
76
76
|
THEME: "data-beacon-theme"
|
|
77
77
|
};
|
|
78
78
|
var BEACON_TRACE_HEADER = "x-absolute-trace-id";
|
|
79
|
-
var BEACON_SDK_VERSION = "0.6.
|
|
79
|
+
var BEACON_SDK_VERSION = "0.6.61";
|
|
80
80
|
var inBrowser = () => typeof window !== "undefined";
|
|
81
81
|
var newId = () => {
|
|
82
82
|
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
@@ -3429,7 +3429,6 @@ var createBeacon = (options) => {
|
|
|
3429
3429
|
if (signals.focusLoss !== false || signals.modalFocusEscape !== false) {
|
|
3430
3430
|
const DIALOG_SELECTOR = '[role="dialog"], [aria-modal="true"], dialog';
|
|
3431
3431
|
const MODAL_SELECTOR = '[aria-modal="true"], dialog[open]';
|
|
3432
|
-
let lastDialogFocus = null;
|
|
3433
3432
|
const reportedFocusLoss = new Set;
|
|
3434
3433
|
const reportedModalEscapes = new WeakSet;
|
|
3435
3434
|
const modalTimers = new Set;
|
|
@@ -3510,10 +3509,10 @@ var createBeacon = (options) => {
|
|
|
3510
3509
|
modalTimers.add(timer2);
|
|
3511
3510
|
}
|
|
3512
3511
|
}
|
|
3513
|
-
lastDialogFocus = target instanceof Element && target.closest(DIALOG_SELECTOR) !== null ? target : null;
|
|
3514
3512
|
};
|
|
3515
|
-
const onFocusOut = () => {
|
|
3516
|
-
const
|
|
3513
|
+
const onFocusOut = (event) => {
|
|
3514
|
+
const target = event.target;
|
|
3515
|
+
const candidate = target instanceof Element && target.closest(DIALOG_SELECTOR) !== null ? target : null;
|
|
3517
3516
|
if (candidate === null)
|
|
3518
3517
|
return;
|
|
3519
3518
|
setTimeout(() => {
|
|
@@ -4544,5 +4543,5 @@ export {
|
|
|
4544
4543
|
BEACON_ATTRIBUTE
|
|
4545
4544
|
};
|
|
4546
4545
|
|
|
4547
|
-
//# debugId=
|
|
4546
|
+
//# debugId=6C0C297AEFFC05BC64756E2164756E21
|
|
4548
4547
|
//# sourceMappingURL=index.js.map
|