@lightworkai.official/debug-capture 0.19.4 → 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 +5 -1
- package/dist/config.d.ts +6 -0
- package/dist/debug-capture.js +19 -19
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +24 -24
- package/dist/ui/chatBubble.d.ts +10 -0
- package/package.json +1 -1
- package/src/config.ts +6 -0
- package/src/index.ts +1 -1
- package/src/ui/chatBubble.ts +92 -25
package/README.md
CHANGED
|
@@ -487,7 +487,11 @@ panel's head has เปิดในระบบแจ้งปัญหา (0.19
|
|
|
487
487
|
panel was on (the chat, the person's tickets, or the one open). The team can
|
|
488
488
|
call from the chat too, and the person can ask for a call back there (0.19.4):
|
|
489
489
|
the ring card says จากแชทกับทีมงาน instead of a ticket's key, and its fallback
|
|
490
|
-
opens their chat.
|
|
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
|
|
491
495
|
own button instead of ours: `openSupportChat()` /
|
|
492
496
|
`closeSupportChat()`; on a page with no bundler, `data-chat` and
|
|
493
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"]): {
|