@robylon/web-react-sdk 1.1.41-staging.20 → 1.1.41-staging.21

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;
@@ -12,6 +21,7 @@ interface ChatbotProps {
12
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 };
@@ -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
@@ -12,6 +12,11 @@ export interface RobylonChatbotConfig {
12
12
  sideSpacing?: number | string;
13
13
  bottomSpacing?: number | string;
14
14
  show_launcher?: boolean | null;
15
+ overrides?: {
16
+ header_avatar?: string | null;
17
+ agent_avatar?: string | null;
18
+ header_title?: string | null;
19
+ };
15
20
  }
16
21
  /**
17
22
  * RobylonChatbot instance interface