@robylon/web-react-sdk 1.1.41-staging.9 → 1.1.42-staging.22

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.
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { ChatbotConfig } from "../types";
3
3
  import { ChatbotEventHandler, AllEventTypes } from "../types/events";
4
+ import { Overrides } from "src/components/RobylonChatbot";
4
5
  interface ChatbotIframeProps {
5
6
  config: ChatbotConfig;
6
7
  isVisible: boolean;
@@ -9,6 +10,7 @@ interface ChatbotIframeProps {
9
10
  onInternalEvent: (eventType: AllEventTypes, additionalData?: Record<string, any>) => void;
10
11
  position?: "Left" | "Right";
11
12
  bottomSpacing?: number;
13
+ overrides?: Overrides;
12
14
  }
13
15
  declare const _default: React.NamedExoticComponent<ChatbotIframeProps>;
14
16
  export default _default;
@@ -1,5 +1,14 @@
1
1
  import React from "react";
2
2
  import { ChatbotEventHandler, ChatbotRef } from "../types/events";
3
+ export interface Overrides {
4
+ header_avatar?: string | null;
5
+ agent_avatar?: string | null;
6
+ header_title?: string | null;
7
+ header_subtitle?: string | null;
8
+ header_title_text_color?: string | null;
9
+ header_subtitle_text_color?: string | null;
10
+ header_bg?: string | null;
11
+ }
3
12
  interface ChatbotProps {
4
13
  api_key: string;
5
14
  user_id?: string | null | number;
@@ -9,9 +18,10 @@ interface ChatbotProps {
9
18
  position?: "Left" | "Right";
10
19
  sideSpacing?: number;
11
20
  bottomSpacing?: number;
12
- show_launcher?: boolean;
21
+ show_launcher?: boolean | null;
13
22
  launcher_type?: "TEXT" | "IMAGE" | "TEXTUAL_IMAGE";
14
23
  launcher_properties_text?: string;
24
+ overrides?: Overrides;
15
25
  }
16
26
  declare const MemoizedRobylonChatbot: React.MemoExoticComponent<React.ForwardRefExoticComponent<ChatbotProps & React.RefAttributes<ChatbotRef>>>;
17
27
  export { MemoizedRobylonChatbot as Chatbot };
@@ -72,6 +72,10 @@ export declare class ChatbotFloatingButton {
72
72
  */
73
73
  destroy(): void;
74
74
  private clearProactiveDelays;
75
+ /**
76
+ * Hides proactive messages with animation
77
+ */
78
+ private hideProactiveMessages;
75
79
  private injectAnimationStyles;
76
80
  private renderProactiveIfNeeded;
77
81
  }
@@ -1,5 +1,14 @@
1
1
  import { ChatbotConfig } from "../../types";
2
2
  import { ChatbotEventType, AllEventTypes } from "../../types/events";
3
+ interface Overrides {
4
+ header_avatar?: string | null;
5
+ agent_avatar?: string | null;
6
+ header_title?: string | null;
7
+ header_subtitle?: string | null;
8
+ header_title_text_color?: string | null;
9
+ header_subtitle_text_color?: string | null;
10
+ header_bg?: string | null;
11
+ }
3
12
  /**
4
13
  * Interface for the ChatbotIframe configuration
5
14
  */
@@ -15,6 +24,7 @@ interface ChatbotIframeConfig {
15
24
  onInternalEvent: (eventType: AllEventTypes, additionalData?: Record<string, any>) => void;
16
25
  position?: "Left" | "Right";
17
26
  bottomSpacing?: number;
27
+ overrides?: Overrides;
18
28
  }
19
29
  /**
20
30
  * Class representing the ChatbotIframe component
@@ -25,6 +35,7 @@ export declare class ChatbotIframe {
25
35
  private isInitialized;
26
36
  private hasRegistered;
27
37
  private resizeHandler;
38
+ private overridesPayloadCache;
28
39
  /**
29
40
  * Creates a new ChatbotIframe
30
41
  * @param config The iframe configuration
@@ -11,6 +11,12 @@ export interface RobylonChatbotConfig {
11
11
  position?: "Left" | "Right" | string;
12
12
  sideSpacing?: number | string;
13
13
  bottomSpacing?: number | string;
14
+ show_launcher?: boolean | null;
15
+ overrides?: {
16
+ header_avatar?: string | null;
17
+ agent_avatar?: string | null;
18
+ header_title?: string | null;
19
+ };
14
20
  }
15
21
  /**
16
22
  * RobylonChatbot instance interface
package/dist/index.d.ts CHANGED
@@ -25,6 +25,15 @@ interface ChatbotRef {
25
25
  isReady: boolean;
26
26
  }
27
27
 
28
+ interface Overrides {
29
+ header_avatar?: string | null;
30
+ agent_avatar?: string | null;
31
+ header_title?: string | null;
32
+ header_subtitle?: string | null;
33
+ header_title_text_color?: string | null;
34
+ header_subtitle_text_color?: string | null;
35
+ header_bg?: string | null;
36
+ }
28
37
  interface ChatbotProps {
29
38
  api_key: string;
30
39
  user_id?: string | null | number;
@@ -34,9 +43,10 @@ interface ChatbotProps {
34
43
  position?: "Left" | "Right";
35
44
  sideSpacing?: number;
36
45
  bottomSpacing?: number;
37
- show_launcher?: boolean;
46
+ show_launcher?: boolean | null;
38
47
  launcher_type?: "TEXT" | "IMAGE" | "TEXTUAL_IMAGE";
39
48
  launcher_properties_text?: string;
49
+ overrides?: Overrides;
40
50
  }
41
51
  declare const MemoizedRobylonChatbot: React.MemoExoticComponent<React.ForwardRefExoticComponent<ChatbotProps & React.RefAttributes<ChatbotRef>>>;
42
52
 
@@ -175,6 +185,12 @@ interface RobylonChatbotConfig {
175
185
  position?: "Left" | "Right" | string;
176
186
  sideSpacing?: number | string;
177
187
  bottomSpacing?: number | string;
188
+ show_launcher?: boolean | null;
189
+ overrides?: {
190
+ header_avatar?: string | null;
191
+ agent_avatar?: string | null;
192
+ header_title?: string | null;
193
+ };
178
194
  }
179
195
  /**
180
196
  * RobylonChatbot instance interface