@qontinui/ui-bridge-wrapper 0.11.0 → 0.12.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.
@@ -606,7 +606,7 @@ var InjectedTransport = class extends HeadlessTransport {
606
606
  }
607
607
  /**
608
608
  * Best-effort digest of the first {@link DIGEST_MAX_ELEMENTS} registered
609
- * interactive elements, read through the in-page dispatcher's
609
+ * interactive and media elements, read through the in-page dispatcher's
610
610
  * `getControlSnapshot` action (the snapshot's per-element projection is
611
611
  * already redaction-safe — we never read raw DOM labels here). Returns
612
612
  * `null` on ANY failure or timeout: this feeds error diagnostics only, and a
@@ -628,7 +628,10 @@ var InjectedTransport = class extends HeadlessTransport {
628
628
  const elements = snapshot.elements;
629
629
  if (!Array.isArray(elements)) return null;
630
630
  const digest = [];
631
- for (const el of elements.slice(0, DIGEST_MAX_ELEMENTS)) {
631
+ const counted = elements.filter(
632
+ (el) => el?.category !== "content"
633
+ );
634
+ for (const el of counted.slice(0, DIGEST_MAX_ELEMENTS)) {
632
635
  if (!el || typeof el !== "object") continue;
633
636
  const e = el;
634
637
  if (typeof e.id !== "string") continue;