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