@robylon/web-react-sdk 1.1.55-alpha.4 → 2.0.0-alpha-staging.9

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>;
@@ -40,16 +41,33 @@ export interface ChatbotConfig {
40
41
  launcher_properties: {
41
42
  text?: string;
42
43
  };
43
- images: {
44
+ images?: {
44
45
  launcher_image_url?: {
45
46
  url: string;
46
47
  };
48
+ header_image_url?: {
49
+ url: string;
50
+ };
47
51
  };
52
+ brand_logo_url?: string;
48
53
  proactive_message_obj?: ProactiveMessage[] | undefined;
49
54
  launcher_delay: {
50
55
  enabled: boolean;
51
56
  delay: number;
52
57
  };
58
+ launcher_scroll?: {
59
+ enabled: boolean;
60
+ depth: number;
61
+ };
62
+ auto_launch?: boolean;
63
+ auto_launch_delay?: {
64
+ enabled: boolean;
65
+ seconds: number;
66
+ };
67
+ auto_launch_scroll?: {
68
+ enabled: boolean;
69
+ depth: number;
70
+ };
53
71
  launcher_size_multiplier?: number;
54
72
  ws_url?: string;
55
73
  }
@@ -119,6 +137,8 @@ export interface ProactiveMessage {
119
137
  updated_at?: string;
120
138
  created_at?: string;
121
139
  delay?: number;
140
+ delay_type?: "scroll" | "time";
141
+ scroll_threshold?: number;
122
142
  content_multiple?: {
123
143
  message: string;
124
144
  content_id?: string;
@@ -37,15 +37,32 @@ interface ChatbotResponse {
37
37
  launcher_image_url: {
38
38
  url: string;
39
39
  };
40
+ header_image_url?: {
41
+ url: string;
42
+ };
40
43
  };
44
+ brand_logo_url?: string;
41
45
  proactive_message_obj?: ProactiveMessage | ProactiveMessage[];
42
46
  launcher_delay: {
43
47
  enabled: boolean;
44
48
  delay: number;
45
49
  };
50
+ launcher_scroll?: {
51
+ enabled: boolean;
52
+ depth: number;
53
+ };
54
+ auto_launch_delay?: {
55
+ enabled: boolean;
56
+ seconds: number;
57
+ };
58
+ auto_launch_scroll?: {
59
+ enabled: boolean;
60
+ depth: number;
61
+ };
46
62
  launcher_size_multiplier?: number;
47
63
  };
48
64
  show_launcher: boolean;
65
+ auto_launch?: boolean;
49
66
  };
50
67
  router_connection_info?: {
51
68
  url?: string;
@@ -0,0 +1 @@
1
+ export declare const ensureLauncherCdnWarmupLinks: () => void;
@@ -17,6 +17,8 @@ export interface VisibleContent {
17
17
  contentIndex: number;
18
18
  html: string;
19
19
  delayMs: number;
20
+ delayType?: "scroll" | "time";
21
+ scrollThreshold?: number;
20
22
  contentId: string | null;
21
23
  messageDisplayType: MessageDisplayType;
22
24
  messageBubbleBg?: string;
@@ -29,6 +29,8 @@ export declare class ChatbotFloatingButton {
29
29
  private proactiveElement;
30
30
  private urlUnsubscribe;
31
31
  private delayTimers;
32
+ private scrollHandlers;
33
+ private shownScrollMessages;
32
34
  /**
33
35
  * Creates a new ChatbotFloatingButton
34
36
  * @param config The button configuration
@@ -38,6 +40,9 @@ export declare class ChatbotFloatingButton {
38
40
  * Renders the button element
39
41
  */
40
42
  private render;
43
+ private getImageLauncherSrc;
44
+ private appendChevronSvg;
45
+ private tryUpdateImageLauncherInPlace;
41
46
  private createLauncherElement;
42
47
  private createTextLauncher;
43
48
  private createTextualImageLauncher;
@@ -42,6 +42,8 @@ export declare class ChatbotIframe {
42
42
  private overridesPayloadCache;
43
43
  private proactiveDataSentInRegistration;
44
44
  private openedDueToProactive;
45
+ private buildOverridesPayload;
46
+ private hasUserProvidedOverrides;
45
47
  /**
46
48
  * Creates a new ChatbotIframe
47
49
  * @param config The iframe configuration