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