@qontinui/ui-bridge-wrapper 0.10.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.
package/dist/index.cjs CHANGED
@@ -564,7 +564,7 @@ var InjectedTransport = class extends HeadlessTransport {
564
564
  }
565
565
  /**
566
566
  * Best-effort digest of the first {@link DIGEST_MAX_ELEMENTS} registered
567
- * interactive elements, read through the in-page dispatcher's
567
+ * interactive and media elements, read through the in-page dispatcher's
568
568
  * `getControlSnapshot` action (the snapshot's per-element projection is
569
569
  * already redaction-safe — we never read raw DOM labels here). Returns
570
570
  * `null` on ANY failure or timeout: this feeds error diagnostics only, and a
@@ -586,7 +586,10 @@ var InjectedTransport = class extends HeadlessTransport {
586
586
  const elements = snapshot.elements;
587
587
  if (!Array.isArray(elements)) return null;
588
588
  const digest = [];
589
- for (const el of elements.slice(0, DIGEST_MAX_ELEMENTS)) {
589
+ const counted = elements.filter(
590
+ (el) => el?.category !== "content"
591
+ );
592
+ for (const el of counted.slice(0, DIGEST_MAX_ELEMENTS)) {
590
593
  if (!el || typeof el !== "object") continue;
591
594
  const e = el;
592
595
  if (typeof e.id !== "string") continue;