@lightworkai.official/debug-capture 0.19.12 → 0.19.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightworkai.official/debug-capture",
3
- "version": "0.19.12",
3
+ "version": "0.19.13",
4
4
  "description": "Report-a-problem widget: rolling network/console/action capture, optional rrweb session replay, annotated screenshot, and submission to a Lightwork Support host",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",
@@ -540,6 +540,8 @@ function watchPage(on: boolean): void {
540
540
  lastPath = pagePath();
541
541
  layout();
542
542
  queueRescan("now");
543
+ // The page the person is on travels with what they write (sup-plana CHAT-ASSIST-PLAN §10, decision 17).
544
+ if (frame) post({ type: "page", path: lastPath });
543
545
  }, 1000);
544
546
  }
545
547
 
@@ -704,7 +706,10 @@ async function onFrame(e: MessageEvent): Promise<void> {
704
706
  void openSupportPortal({ returnTo: portalPath(typeof d.path === "string" ? d.path : "") });
705
707
  return;
706
708
  }
707
- if (d.type === "ready") return post({ type: isOpen ? "shown" : "hidden" });
709
+ if (d.type === "ready") {
710
+ post({ type: "page", path: pagePath() });
711
+ return post({ type: isOpen ? "shown" : "hidden" });
712
+ }
708
713
  if (d.type === "close") return closeSupportChat();
709
714
  if (d.type === "drag") return onPanelDrag(d);
710
715
  if (d.type === "unread" && typeof d.total === "number") return setBadge(d.total);
@@ -743,6 +748,7 @@ export function openSupportChat(): void {
743
748
  shadow?.querySelector(".wrap")?.classList.add("open");
744
749
  bubble?.setAttribute("aria-expanded", "true");
745
750
  setLabel();
751
+ post({ type: "page", path: pagePath() });
746
752
  post({ type: "shown" });
747
753
  frame.focus();
748
754
  }