@bangdb/web-sdk 1.0.6 → 1.0.8
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/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.global.js +1303 -182
- package/dist/index.js +779 -101
- package/dist/index.mjs +779 -101
- package/package.json +37 -29
package/dist/index.d.mts
CHANGED
|
@@ -31,9 +31,15 @@ interface ChatWidgetOptions {
|
|
|
31
31
|
title?: string;
|
|
32
32
|
config: ApiConfig;
|
|
33
33
|
logo?: string;
|
|
34
|
+
tools?: {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
}[];
|
|
34
38
|
}
|
|
35
39
|
declare class ChatWidget {
|
|
36
40
|
private font;
|
|
41
|
+
private static DEFAULT_TOOLS;
|
|
42
|
+
private tools;
|
|
37
43
|
private injectThemeVars;
|
|
38
44
|
private injectGlobalFonts;
|
|
39
45
|
private TOKENS;
|
|
@@ -52,6 +58,8 @@ declare class ChatWidget {
|
|
|
52
58
|
init(): Promise<void>;
|
|
53
59
|
private handleChatDataChange;
|
|
54
60
|
private handleModeChange;
|
|
61
|
+
/** Repositions the chat panel above/below/left/right based on where the bubble is on screen */
|
|
62
|
+
private updatePanelPosition;
|
|
55
63
|
createChatBubble(): HTMLElement;
|
|
56
64
|
createChatUI(): HTMLElement;
|
|
57
65
|
chatArea(): HTMLElement;
|
package/dist/index.d.ts
CHANGED
|
@@ -31,9 +31,15 @@ interface ChatWidgetOptions {
|
|
|
31
31
|
title?: string;
|
|
32
32
|
config: ApiConfig;
|
|
33
33
|
logo?: string;
|
|
34
|
+
tools?: {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
}[];
|
|
34
38
|
}
|
|
35
39
|
declare class ChatWidget {
|
|
36
40
|
private font;
|
|
41
|
+
private static DEFAULT_TOOLS;
|
|
42
|
+
private tools;
|
|
37
43
|
private injectThemeVars;
|
|
38
44
|
private injectGlobalFonts;
|
|
39
45
|
private TOKENS;
|
|
@@ -52,6 +58,8 @@ declare class ChatWidget {
|
|
|
52
58
|
init(): Promise<void>;
|
|
53
59
|
private handleChatDataChange;
|
|
54
60
|
private handleModeChange;
|
|
61
|
+
/** Repositions the chat panel above/below/left/right based on where the bubble is on screen */
|
|
62
|
+
private updatePanelPosition;
|
|
55
63
|
createChatBubble(): HTMLElement;
|
|
56
64
|
createChatUI(): HTMLElement;
|
|
57
65
|
chatArea(): HTMLElement;
|