@lightworkai.official/debug-capture 0.19.0 → 0.19.2

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
@@ -469,7 +469,20 @@ The button carries a badge of what waits for the person (the desk's new lines
469
469
  and their tickets' replies), kept current by the same socket the call ring
470
470
  uses — with calls off for the desk too. The call's card and frame sit above
471
471
  the button. It is not shown when nobody is signed in (`identity` returns
472
- null). Your own button instead of ours: `openSupportChat()` /
472
+ null). Something of yours already in that corner (a credit, a pill)? Raise the
473
+ button above it — `chat: { offset: { y: 68 } }` sits it 12px over a 40px pill
474
+ at the bottom (0.19.1: the call's card and the panel follow the offset). Still
475
+ in the way on some page? The person can move it (0.19.2): the button dragged
476
+ settles on the nearer side at the height it was let go, the panel dragged by
477
+ its head stays where it was put — both kept on that device (localStorage,
478
+ per realm), so the next page opens them there; on a phone the panel keeps the
479
+ whole screen. The button wears the support desk's face (its
480
+ `/support-face.webp`, the chat glyph if that cannot load), and says what it is
481
+ beside it — แชทกับทีมงาน until the person first opens it on that device,
482
+ มีข้อความใหม่จากทีมงาน while something waits, and on hover; `chat: { label:
483
+ "…" }` for your own words, `label: false` for none. Those words, the badge and
484
+ the call's card are drawn in your page's own font (read from `<body>`). Your
485
+ own button instead of ours: `openSupportChat()` /
473
486
  `closeSupportChat()`; on a page with no bundler, `data-chat` and
474
487
  `data-identity-url` on the script tag, and `window.lwOpenSupportChat()`.
475
488
 
package/dist/config.d.ts CHANGED
@@ -217,6 +217,12 @@ export interface ChatOptions {
217
217
  x?: number;
218
218
  y?: number;
219
219
  };
220
+ /**
221
+ * The words beside the bubble (0.19.2) — says what the round button is to someone who never pressed it: shown until
222
+ * they first open the chat on this device, again while something new waits, and on hover. Your own words in place
223
+ * of "แชทกับทีมงาน", or `false` for the button alone.
224
+ */
225
+ label?: string | false;
220
226
  }
221
227
  /** The bubble's place, from `chat`: null when it is off. */
222
228
  export declare function chatPlace(chat: DebugCaptureConfig["chat"]): {