@absolutejs/beacon 0.7.0-beta.13 → 0.7.0-beta.14

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/CHANGELOG.md CHANGED
@@ -6,6 +6,16 @@ This file is generated by `absolute-changelog` from the entries in
6
6
  `changelog/`. Edit an entry, not this file — and add new ones under
7
7
  `changelog/unreleased/`.
8
8
 
9
+ ## 0.7.0-beta.14 — 2026-09-30
10
+
11
+ ### Added
12
+
13
+ - **The noise policy drops an opaque cross-origin "Script error." that carries no stack (`ignoreOpaqueScriptErrors`, default true), and exports `isOpaqueScriptError`.** (`createNoisePolicy`, `isOpaqueScriptError`, `NoisePolicyOptions`)
14
+
15
+ ### Fixed
16
+
17
+ - **Do not report stacked shapes inside one SVG drawing (donut segments, chart bars) as colliding controls; they are hit by their painted geometry, not their shared bounding box.** (`createBeacon`, `BEACON_SDK_VERSION`)
18
+
9
19
  ## 0.7.0-beta.13 — 2026-09-30
10
20
 
11
21
  ### Fixed
package/changelog.json CHANGED
@@ -2,6 +2,29 @@
2
2
  "contract": 1,
3
3
  "name": "@absolutejs/beacon",
4
4
  "releases": [
5
+ {
6
+ "changes": [
7
+ {
8
+ "kind": "fixed",
9
+ "summary": "Do not report stacked shapes inside one SVG drawing (donut segments, chart bars) as colliding controls; they are hit by their painted geometry, not their shared bounding box.",
10
+ "symbols": [
11
+ "createBeacon",
12
+ "BEACON_SDK_VERSION"
13
+ ]
14
+ },
15
+ {
16
+ "kind": "added",
17
+ "summary": "The noise policy drops an opaque cross-origin \"Script error.\" that carries no stack (`ignoreOpaqueScriptErrors`, default true), and exports `isOpaqueScriptError`.",
18
+ "symbols": [
19
+ "createNoisePolicy",
20
+ "isOpaqueScriptError",
21
+ "NoisePolicyOptions"
22
+ ]
23
+ }
24
+ ],
25
+ "date": "2026-09-30",
26
+ "version": "0.7.0-beta.14"
27
+ },
5
28
  {
6
29
  "changes": [
7
30
  {
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ export type BeaconLevel = "fatal" | "error" | "warning" | "info";
25
25
  /** Response header used to correlate a browser signal with its server request. */
26
26
  export declare const BEACON_TRACE_HEADER = "x-absolute-trace-id";
27
27
  /** Beacon package version retained with every captured event. */
28
- export declare const BEACON_SDK_VERSION = "0.7.0-beta.13";
28
+ export declare const BEACON_SDK_VERSION = "0.7.0-beta.14";
29
29
  /** Arbitrary event tags, with Beacon's reserved `signal` tag type-checked. */
30
30
  export type BeaconTags = Record<string, string> & {
31
31
  signal?: BeaconSignal;
package/dist/index.js CHANGED
@@ -191,7 +191,7 @@ var consumeEarlyLayoutShiftBuffer = () => {
191
191
 
192
192
  // src/index.ts
193
193
  var BEACON_TRACE_HEADER = "x-absolute-trace-id";
194
- var BEACON_SDK_VERSION = "0.7.0-beta.13";
194
+ var BEACON_SDK_VERSION = "0.7.0-beta.14";
195
195
  var inBrowser = () => typeof window !== "undefined";
196
196
  var newId = () => {
197
197
  if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
@@ -2447,6 +2447,10 @@ var createBeacon = (options) => {
2447
2447
  const firstGroup = first.closest(INTENTIONAL_CONTROL_GROUP_SELECTOR);
2448
2448
  return firstGroup !== null && firstGroup === second.closest(INTENTIONAL_CONTROL_GROUP_SELECTOR);
2449
2449
  };
2450
+ const sharesDrawing = (first, second) => {
2451
+ const drawing = first.closest("svg");
2452
+ return drawing !== null && drawing === second.closest("svg");
2453
+ };
2450
2454
  const crossesDialogBoundary = (first, second) => {
2451
2455
  const firstDialog = first.closest('[role="dialog"], dialog');
2452
2456
  const secondDialog = second.closest('[role="dialog"], dialog');
@@ -2514,7 +2518,7 @@ var createBeacon = (options) => {
2514
2518
  const second = controls[secondIndex];
2515
2519
  if (second === undefined)
2516
2520
  continue;
2517
- if (first.element.contains(second.element) || second.element.contains(first.element) || crossesDialogBoundary(first.element, second.element)) {
2521
+ if (first.element.contains(second.element) || second.element.contains(first.element) || crossesDialogBoundary(first.element, second.element) || sharesDrawing(first.element, second.element)) {
2518
2522
  continue;
2519
2523
  }
2520
2524
  const overlapX = Math.min(first.rect.right, second.rect.right) - Math.max(first.rect.left, second.rect.left);
@@ -4943,5 +4947,5 @@ export {
4943
4947
  redactBeaconEvent
4944
4948
  };
4945
4949
 
4946
- //# debugId=8F6B8B9D4A41867164756E2164756E21
4950
+ //# debugId=04264040FE86397764756E2164756E21
4947
4951
  //# sourceMappingURL=index.js.map