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

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.
@@ -50,6 +50,19 @@ export interface ChatbotConfig {
50
50
  enabled: boolean;
51
51
  delay: number;
52
52
  };
53
+ launcher_scroll?: {
54
+ enabled: boolean;
55
+ depth: number;
56
+ };
57
+ auto_launch?: boolean;
58
+ auto_launch_delay?: {
59
+ enabled: boolean;
60
+ seconds: number;
61
+ };
62
+ auto_launch_scroll?: {
63
+ enabled: boolean;
64
+ depth: number;
65
+ };
53
66
  launcher_size_multiplier?: number;
54
67
  ws_url?: string;
55
68
  }
@@ -119,6 +132,8 @@ export interface ProactiveMessage {
119
132
  updated_at?: string;
120
133
  created_at?: string;
121
134
  delay?: number;
135
+ delay_type?: "scroll" | "time";
136
+ scroll_threshold?: number;
122
137
  content_multiple?: {
123
138
  message: string;
124
139
  content_id?: string;
@@ -43,9 +43,22 @@ interface ChatbotResponse {
43
43
  enabled: boolean;
44
44
  delay: number;
45
45
  };
46
+ launcher_scroll?: {
47
+ enabled: boolean;
48
+ depth: number;
49
+ };
50
+ auto_launch_delay?: {
51
+ enabled: boolean;
52
+ seconds: number;
53
+ };
54
+ auto_launch_scroll?: {
55
+ enabled: boolean;
56
+ depth: number;
57
+ };
46
58
  launcher_size_multiplier?: number;
47
59
  };
48
60
  show_launcher: boolean;
61
+ auto_launch?: boolean;
49
62
  };
50
63
  router_connection_info?: {
51
64
  url?: string;
@@ -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
@@ -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