@absolutejs/beacon 0.6.52 → 0.6.53

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 CHANGED
@@ -130,8 +130,11 @@ beacon.captureMessage("checkout started", "info");
130
130
  with effectively no spacing. Same-parent rows, semantic control groups,
131
131
  navigation, and positioned controls that merely touch are excluded so tabs,
132
132
  segmented controls, and floating actions remain quiet. Tune the near-touch
133
- threshold with `signals.controlCollisionGapPx`; intentional exceptions can
134
- use `data-beacon-scan="allow"`.
133
+ threshold with `signals.controlCollisionGapPx`. Mark nested controls that
134
+ intentionally meet with `data-beacon-control-group`; this suppresses only
135
+ near-touch reports, while true overlaps remain visible. Use
136
+ `data-beacon-scan="allow"` only when the whole subtree must be exempt from
137
+ every visual scan.
135
138
  - **Ambient watchdogs** — silent failures users abandon instead of reporting
136
139
  become warning issues: scroll jail (a leaked modal scroll lock), stuck
137
140
  loading (`aria-busy`/`role="progressbar"` that never resolves), occluded
package/dist/index.d.ts CHANGED
@@ -79,6 +79,9 @@ export type BeaconSignal = (typeof BEACON_SIGNAL)[keyof typeof BEACON_SIGNAL];
79
79
  export declare const BEACON_ATTRIBUTE: {
80
80
  /** Names an application root whose settled empty state is a failure. */
81
81
  readonly APP_ROOT: "data-beacon-app-root";
82
+ /** Groups controls whose intentional near-touching layout should not be
83
+ * reported as a collision. True border-box overlaps remain reportable. */
84
+ readonly CONTROL_GROUP: "data-beacon-control-group";
82
85
  readonly DEAD_CLICK: "data-beacon-dead-click";
83
86
  readonly NAME: "data-beacon-name";
84
87
  /** Names an iframe whose initial load should be watched for a stall. */
@@ -104,7 +107,7 @@ export declare const BEACON_ATTRIBUTE: {
104
107
  /** Response header used to correlate a browser signal with its server request. */
105
108
  export declare const BEACON_TRACE_HEADER = "x-absolute-trace-id";
106
109
  /** Beacon package version retained with every captured event. */
107
- export declare const BEACON_SDK_VERSION = "0.6.52";
110
+ export declare const BEACON_SDK_VERSION = "0.6.53";
108
111
  /** Arbitrary event tags, with Beacon's reserved `signal` tag type-checked. */
109
112
  export type BeaconTags = Record<string, string> & {
110
113
  signal?: BeaconSignal;
package/dist/index.js CHANGED
@@ -63,6 +63,7 @@ var BEACON_SIGNAL = {
63
63
  };
64
64
  var BEACON_ATTRIBUTE = {
65
65
  APP_ROOT: "data-beacon-app-root",
66
+ CONTROL_GROUP: "data-beacon-control-group",
66
67
  DEAD_CLICK: "data-beacon-dead-click",
67
68
  NAME: "data-beacon-name",
68
69
  EMBED: "data-beacon-embed",
@@ -75,7 +76,7 @@ var BEACON_ATTRIBUTE = {
75
76
  THEME: "data-beacon-theme"
76
77
  };
77
78
  var BEACON_TRACE_HEADER = "x-absolute-trace-id";
78
- var BEACON_SDK_VERSION = "0.6.52";
79
+ var BEACON_SDK_VERSION = "0.6.53";
79
80
  var inBrowser = () => typeof window !== "undefined";
80
81
  var newId = () => {
81
82
  if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
@@ -2166,7 +2167,7 @@ var createBeacon = (options) => {
2166
2167
  visit(body, null);
2167
2168
  };
2168
2169
  const CONTROL_SELECTOR = 'a[href], button, input, select, textarea, [role="button"]';
2169
- const INTENTIONAL_CONTROL_GROUP_SELECTOR = 'nav, [role="group"], [role="menu"], [role="radiogroup"], [role="tablist"], [role="toolbar"]';
2170
+ const INTENTIONAL_CONTROL_GROUP_SELECTOR = `nav, [role="group"], [role="menu"], [role="radiogroup"], [role="tablist"], [role="toolbar"], [${BEACON_ATTRIBUTE.CONTROL_GROUP}]`;
2170
2171
  const clipsAxis = (overflow) => overflow === "auto" || overflow === "scroll" || overflow === "hidden" || overflow === "clip";
2171
2172
  const visibleControlRect = (control, rect, viewportWidth, viewportHeight) => {
2172
2173
  const visible = {
@@ -4488,5 +4489,5 @@ export {
4488
4489
  BEACON_ATTRIBUTE
4489
4490
  };
4490
4491
 
4491
- //# debugId=33AAE862F88D371564756E2164756E21
4492
+ //# debugId=EE83C567E5E182D764756E2164756E21
4492
4493
  //# sourceMappingURL=index.js.map