@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/README.md +34 -0
- package/dist/capture-specs-cli.cjs +5 -2
- package/dist/capture-specs-cli.cjs.map +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/inject-cli.cjs +18 -2
- package/dist/inject-cli.cjs.map +1 -1
- package/dist/inject-cli.d.ts +1 -1
- package/dist/inject-cli.d.ts.map +1 -1
- package/dist/login-web-cli.cjs +5 -2
- package/dist/login-web-cli.cjs.map +1 -1
- package/dist/transports/injected.d.ts +2 -2
- package/dist/transports/injected.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/inject-cli.cjs
CHANGED
|
@@ -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
|
-
|
|
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;
|
|
@@ -1511,6 +1514,19 @@ Exec (Variant A \u2014 one-shot; presence of any --exec/--exec-stdin selects thi
|
|
|
1511
1514
|
mediaOverrideList {}
|
|
1512
1515
|
What is still overridden \u2014 the proof the page ended restored.
|
|
1513
1516
|
|
|
1517
|
+
Hiding text for one frame (dev control, served by the injected runtime):
|
|
1518
|
+
|
|
1519
|
+
textVisibility {"hidden":true,"ttlMs":30000}
|
|
1520
|
+
Make every glyph on the page transparent (colour, text fill, SVG text
|
|
1521
|
+
fill, text-shadow), with transitions off so the frame is not caught
|
|
1522
|
+
mid-fade; nothing moves, and currentColor borders and icons keep their
|
|
1523
|
+
colour. Capture frame A before and frame B after: inside a text
|
|
1524
|
+
element's box the two differ exactly where its glyphs paint. A TTL
|
|
1525
|
+
(default 30000 ms) restores the page if the run dies.
|
|
1526
|
+
textVisibility {"hidden":false}
|
|
1527
|
+
Restore exactly (the style attributes read back byte for byte);
|
|
1528
|
+
"restore":{"verified":true} is a clean restore.
|
|
1529
|
+
|
|
1514
1530
|
Exec output & exit code:
|
|
1515
1531
|
One JSON line per action, in order, on stdout \u2014 ALWAYS one line per action,
|
|
1516
1532
|
including failures. An action that succeeded prints {"action":..,"result":..}.
|