@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.
@@ -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;