@lightworkai.official/debug-capture 0.19.1 → 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 +11 -1
- package/dist/config.d.ts +6 -0
- package/dist/debug-capture.js +43 -18
- package/dist/index.mjs +50 -25
- package/dist/ui/chatBubble.d.ts +54 -0
- package/dist/ui/hostFont.d.ts +15 -0
- package/dist/ui/strings.d.ts +5 -0
- package/package.json +1 -1
- package/src/config.ts +6 -0
- package/src/ui/chatBubble.ts +284 -15
- package/src/ui/hostFont.ts +30 -0
- package/src/ui/ring.ts +4 -1
- package/src/ui/strings.ts +11 -0
package/README.md
CHANGED
|
@@ -471,7 +471,17 @@ 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
472
|
null). Something of yours already in that corner (a credit, a pill)? Raise the
|
|
473
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).
|
|
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
|
|
475
485
|
own button instead of ours: `openSupportChat()` /
|
|
476
486
|
`closeSupportChat()`; on a page with no bundler, `data-chat` and
|
|
477
487
|
`data-identity-url` on the script tag, and `window.lwOpenSupportChat()`.
|
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"]): {
|