@paramms/chat-widget 1.0.37 → 1.0.39
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/dist/chatlist.js +115 -92
- package/dist/chatlist.js.map +1 -1
- package/dist/core.js.map +1 -1
- package/dist/embed.d.ts +4 -0
- package/dist/embed.js +33 -15
- package/dist/embed.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +586 -468
- package/dist/index.js.map +1 -1
- package/dist/outbox.js +10 -9
- package/dist/outbox.js.map +1 -1
- package/dist/protocol/frames.d.ts +4 -0
- package/dist/react.d.ts +10 -3
- package/dist/react.js +310 -287
- package/dist/react.js.map +1 -1
- package/dist/renderer.d.ts +9 -7
- package/dist/store.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,16 @@ export interface MountOptions {
|
|
|
59
59
|
launcher?: boolean;
|
|
60
60
|
/** Position of the launcher button: default 'bottom-right' */
|
|
61
61
|
position?: 'bottom-right' | 'bottom-left';
|
|
62
|
+
/** Launcher teaser — the "optional message" card shown ABOVE the closed
|
|
63
|
+
* launcher button to invite a chat (like Channel.io's greeting). Pass a
|
|
64
|
+
* string for just a title, or `{ title, subtitle }`. If omitted, the
|
|
65
|
+
* widget uses `defaults.launcherMessage` from the chatroom manifest when
|
|
66
|
+
* present. Dismissible by the visitor (remembered for the browser session);
|
|
67
|
+
* auto-hides once the chat is opened. Only applies in `launcher` mode. */
|
|
68
|
+
launcherMessage?: string | {
|
|
69
|
+
title: string;
|
|
70
|
+
subtitle?: string;
|
|
71
|
+
};
|
|
62
72
|
/** Optional user info for identified users. When provided, the name/email/
|
|
63
73
|
* avatar are shown to agents in the dashboard instead of the anonymous ID.
|
|
64
74
|
* The token still controls identity — this is display metadata only.
|