@dinghy-chat/widget 0.20.0 → 0.21.0
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/shared.d.ts +8 -0
- package/package.json +1 -1
package/dist/shared.d.ts
CHANGED
|
@@ -35,6 +35,10 @@ export interface WidgetSettings {
|
|
|
35
35
|
emailAsk: "off" | "after_first" | "before_first";
|
|
36
36
|
/** The "Powered by Dinghy" line. */
|
|
37
37
|
branding: boolean;
|
|
38
|
+
/** A chime when a reply arrives and the visitor is not looking at the chat. */
|
|
39
|
+
sound: boolean;
|
|
40
|
+
/** The visitor gets the conversation by email when it closes. The widget does not use it. */
|
|
41
|
+
transcript: boolean;
|
|
38
42
|
}
|
|
39
43
|
/** A member the widget's header shows: a first name and a picture, never an email. */
|
|
40
44
|
export interface TeamFace {
|
|
@@ -46,6 +50,8 @@ export interface TeamFace {
|
|
|
46
50
|
}
|
|
47
51
|
/** The saved settings, as the widget's appearance route answers them. */
|
|
48
52
|
export interface SavedAppearance extends WidgetSettings {
|
|
53
|
+
/** The chat sends the visitor's unsent words, so operators see them as they type. */
|
|
54
|
+
typingPreview: boolean;
|
|
49
55
|
logoUrl: string | null;
|
|
50
56
|
/** Up to 3 members, the ones who sent the latest replies. */
|
|
51
57
|
team: TeamFace[];
|
|
@@ -176,4 +182,6 @@ export declare function rememberOpen(publicKey: string, open: boolean): void;
|
|
|
176
182
|
* chatted.
|
|
177
183
|
*/
|
|
178
184
|
export declare function forgetVisitor(publicKey: string): void;
|
|
185
|
+
/** The longest message, in characters: the composers' limit, which the server checks too. */
|
|
186
|
+
export declare const MESSAGE_MAX = 10000;
|
|
179
187
|
export {};
|