@lightworkai.official/debug-capture 0.19.5 → 0.19.6

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
@@ -201,7 +201,8 @@ knowing before you ship:
201
201
  opens the portal to answer.
202
202
  - **`chat`** — แชทกับทีม, a chat bubble at the bottom of your app (0.19, see
203
203
  below). Off unless set; `true`, or `{ position: "left", offset: { x, y } }`.
204
- Needs `identity`.
204
+ Needs `identity`. `avoid` (0.19.6): `false` keeps it where you put it even
205
+ over your page's own floating controls; a selector names more of them.
205
206
 
206
207
  ## The other half: letting people track what they reported
207
208
 
@@ -487,7 +488,16 @@ panel's head has เปิดในระบบแจ้งปัญหา (0.19
487
488
  panel was on (the chat, the person's tickets, or the one open). The team can
488
489
  call from the chat too, and the person can ask for a call back there (0.19.4):
489
490
  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
+ opens their chat. Your page's own floating controls come first (0.19.6): a
492
+ toolbar, a FAB, a bottom bar, a sticky action bar, or a control that stays put
493
+ on a page that does not scroll is never covered — the button takes the nearest
494
+ free place, up its own side or in the other corner when that is nearer than a
495
+ long climb, and stays there for the rest of that page. Content that scrolls
496
+ under it is not in the way. `chat: { avoid: false }` turns this off,
497
+ `avoid: ".my-dock"` names a piece of your page it would not see. The desk can
498
+ also give a page its own place — hidden there, or a corner and a height — by
499
+ its path (ปุ่มแชท › ตำแหน่งปุ่ม); a person who moved the button keeps their
500
+ place, except where it is hidden. The bubble's look is the support desk's to set (0.19.5, its
491
501
  ปุ่มแชท settings page): its face, colour and words, read with the first answer;
492
502
  your own `label` in code still wins. A desk can turn the bubble off for every
493
503
  host at once. `chat: { show: () => boolean }` decides per person or per page
package/dist/config.d.ts CHANGED
@@ -64,8 +64,11 @@ export interface DebugCaptureConfig {
64
64
  * { algorithm: 'HS256', expiresIn: '1h' })
65
65
  *
66
66
  * The SECRET NEVER REACHES THE BROWSER. This callback fetches the finished
67
- * token from your own backend; it is called per request, so cache it on your
68
- * side until it is close to expiring.
67
+ * token from your own backend. Mint a FRESH one on every call — never hand
68
+ * back a kept one: besides its own reads, the widget signs the person in with
69
+ * it (the chat panel, the portal, a call), and a sign-in takes a token only
70
+ * while it is two minutes old, and only once. Sharing one request already in
71
+ * flight is fine.
69
72
  *
70
73
  * Returning null means "nobody is signed in" — the panel says so rather than
71
74
  * failing.
@@ -229,6 +232,12 @@ export interface ChatOptions {
229
232
  * `refreshSupportChat()`.
230
233
  */
231
234
  show?: () => boolean;
235
+ /**
236
+ * Out of the page's own way (0.19.6): the bubble steps aside from the page's floating controls — a toolbar, a FAB, a
237
+ * bottom bar, a fixed sidebar — to the nearest free place. On unless `false`; a CSS selector names more of your own
238
+ * to keep clear of, whatever their position (`"[data-floating], .my-dock"`). The desk can turn it off too (ปุ่มแชท).
239
+ */
240
+ avoid?: boolean | string;
232
241
  }
233
242
  /** The bubble's place, from `chat`: null when it is off. */
234
243
  export declare function chatPlace(chat: DebugCaptureConfig["chat"]): {