@lightworkai.official/debug-capture 0.19.3 → 0.19.5

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 CHANGED
@@ -484,7 +484,14 @@ beside it — แชทกับทีมงาน until the person first opens
484
484
  the call's card are drawn in your page's own font (read from `<body>`). The
485
485
  panel's head has เปิดในระบบแจ้งปัญหา (0.19.3): the same hand-off as
486
486
  `openSupportPortal` — its countdown, signed in, a new tab — to the page the
487
- panel was on (the chat, the person's tickets, or the one open). Your
487
+ panel was on (the chat, the person's tickets, or the one open). The team can
488
+ call from the chat too, and the person can ask for a call back there (0.19.4):
489
+ the ring card says จากแชทกับทีมงาน instead of a ticket's key, and its fallback
490
+ opens their chat. The bubble's look is the support desk's to set (0.19.5, its
491
+ ปุ่มแชท settings page): its face, colour and words, read with the first answer;
492
+ your own `label` in code still wins. A desk can turn the bubble off for every
493
+ host at once. `chat: { show: () => boolean }` decides per person or per page
494
+ (asked before every read; call `refreshSupportChat()` after a sign-in). Your
488
495
  own button instead of ours: `openSupportChat()` /
489
496
  `closeSupportChat()`; on a page with no bundler, `data-chat` and
490
497
  `data-identity-url` on the script tag, and `window.lwOpenSupportChat()`.
package/dist/config.d.ts CHANGED
@@ -223,6 +223,12 @@ export interface ChatOptions {
223
223
  * of "แชทกับทีมงาน", or `false` for the button alone.
224
224
  */
225
225
  label?: string | false;
226
+ /**
227
+ * Whether the bubble is for whoever is signed in now (0.19.5) — asked before every read; false: no bubble. For a
228
+ * host whose own staff should not chat with its support desk, or not on every page. Ask again after a sign-in with
229
+ * `refreshSupportChat()`.
230
+ */
231
+ show?: () => boolean;
226
232
  }
227
233
  /** The bubble's place, from `chat`: null when it is off. */
228
234
  export declare function chatPlace(chat: DebugCaptureConfig["chat"]): {