@robylon/web-react-sdk 2.0.0-alpha.6 → 2.0.0-alpha.7
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/types.d.ts +13 -1
- package/dist/cjs/types/utils/fetchData.d.ts +7 -0
- package/dist/cjs/types/utils/injectLauncherCdnWarmup.d.ts +1 -0
- package/dist/cjs/types/vanilla/components/ChatbotFloatingButton.d.ts +3 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/types.d.ts +13 -1
- package/dist/esm/types/utils/fetchData.d.ts +7 -0
- package/dist/esm/types/utils/injectLauncherCdnWarmup.d.ts +1 -0
- package/dist/esm/types/vanilla/components/ChatbotFloatingButton.d.ts +3 -0
- package/dist/index.d.ts +13 -1
- package/dist/umd/robylon-chatbot.js +1 -1
- package/dist/umd/robylon-chatbot.js.map +1 -1
- package/dist/umd/types/types.d.ts +13 -1
- package/dist/umd/types/utils/fetchData.d.ts +7 -0
- package/dist/umd/types/utils/injectLauncherCdnWarmup.d.ts +1 -0
- package/dist/umd/types/vanilla/components/ChatbotFloatingButton.d.ts +3 -0
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ export declare enum LauncherType {
|
|
|
19
19
|
}
|
|
20
20
|
export interface ChatbotConfig {
|
|
21
21
|
chatbotId: string;
|
|
22
|
+
name?: string;
|
|
22
23
|
userId: string | null | number;
|
|
23
24
|
token?: string;
|
|
24
25
|
userProfile?: Record<string, any>;
|
|
@@ -26,6 +27,13 @@ export interface ChatbotConfig {
|
|
|
26
27
|
show_launcher: boolean;
|
|
27
28
|
show_history?: boolean;
|
|
28
29
|
brand_colour: string;
|
|
30
|
+
colors?: {
|
|
31
|
+
brand_color?: string;
|
|
32
|
+
title_bar_color?: string;
|
|
33
|
+
};
|
|
34
|
+
footer?: {
|
|
35
|
+
show_powered_by?: boolean;
|
|
36
|
+
};
|
|
29
37
|
image_url?: string;
|
|
30
38
|
chat_interface_config?: {
|
|
31
39
|
chat_bubble_prompts?: string[];
|
|
@@ -40,11 +48,15 @@ export interface ChatbotConfig {
|
|
|
40
48
|
launcher_properties: {
|
|
41
49
|
text?: string;
|
|
42
50
|
};
|
|
43
|
-
images
|
|
51
|
+
images?: {
|
|
44
52
|
launcher_image_url?: {
|
|
45
53
|
url: string;
|
|
46
54
|
};
|
|
55
|
+
header_image_url?: {
|
|
56
|
+
url: string;
|
|
57
|
+
};
|
|
47
58
|
};
|
|
59
|
+
brand_logo_url?: string;
|
|
48
60
|
proactive_message_obj?: ProactiveMessage[] | undefined;
|
|
49
61
|
launcher_delay: {
|
|
50
62
|
enabled: boolean;
|
|
@@ -20,6 +20,9 @@ interface ChatbotResponse {
|
|
|
20
20
|
brand_color: string;
|
|
21
21
|
title_bar_color?: string;
|
|
22
22
|
};
|
|
23
|
+
footer?: {
|
|
24
|
+
show_powered_by?: boolean;
|
|
25
|
+
};
|
|
23
26
|
launcher_logo_url?: string;
|
|
24
27
|
welcome_message: string;
|
|
25
28
|
image_url: string;
|
|
@@ -37,7 +40,11 @@ interface ChatbotResponse {
|
|
|
37
40
|
launcher_image_url: {
|
|
38
41
|
url: string;
|
|
39
42
|
};
|
|
43
|
+
header_image_url?: {
|
|
44
|
+
url: string;
|
|
45
|
+
};
|
|
40
46
|
};
|
|
47
|
+
brand_logo_url?: string;
|
|
41
48
|
proactive_message_obj?: ProactiveMessage | ProactiveMessage[];
|
|
42
49
|
launcher_delay: {
|
|
43
50
|
enabled: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ensureLauncherCdnWarmupLinks: () => void;
|
|
@@ -40,6 +40,9 @@ export declare class ChatbotFloatingButton {
|
|
|
40
40
|
* Renders the button element
|
|
41
41
|
*/
|
|
42
42
|
private render;
|
|
43
|
+
private getImageLauncherSrc;
|
|
44
|
+
private appendChevronSvg;
|
|
45
|
+
private tryUpdateImageLauncherInPlace;
|
|
43
46
|
private createLauncherElement;
|
|
44
47
|
private createTextLauncher;
|
|
45
48
|
private createTextualImageLauncher;
|
package/dist/index.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ declare enum LauncherType {
|
|
|
72
72
|
}
|
|
73
73
|
interface ChatbotConfig {
|
|
74
74
|
chatbotId: string;
|
|
75
|
+
name?: string;
|
|
75
76
|
userId: string | null | number;
|
|
76
77
|
token?: string;
|
|
77
78
|
userProfile?: Record<string, any>;
|
|
@@ -79,6 +80,13 @@ interface ChatbotConfig {
|
|
|
79
80
|
show_launcher: boolean;
|
|
80
81
|
show_history?: boolean;
|
|
81
82
|
brand_colour: string;
|
|
83
|
+
colors?: {
|
|
84
|
+
brand_color?: string;
|
|
85
|
+
title_bar_color?: string;
|
|
86
|
+
};
|
|
87
|
+
footer?: {
|
|
88
|
+
show_powered_by?: boolean;
|
|
89
|
+
};
|
|
82
90
|
image_url?: string;
|
|
83
91
|
chat_interface_config?: {
|
|
84
92
|
chat_bubble_prompts?: string[];
|
|
@@ -93,11 +101,15 @@ interface ChatbotConfig {
|
|
|
93
101
|
launcher_properties: {
|
|
94
102
|
text?: string;
|
|
95
103
|
};
|
|
96
|
-
images
|
|
104
|
+
images?: {
|
|
97
105
|
launcher_image_url?: {
|
|
98
106
|
url: string;
|
|
99
107
|
};
|
|
108
|
+
header_image_url?: {
|
|
109
|
+
url: string;
|
|
110
|
+
};
|
|
100
111
|
};
|
|
112
|
+
brand_logo_url?: string;
|
|
101
113
|
proactive_message_obj?: ProactiveMessage[] | undefined;
|
|
102
114
|
launcher_delay: {
|
|
103
115
|
enabled: boolean;
|