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

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.
Files changed (35) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/ChatbotIframe.d.ts +0 -1
  4. package/dist/cjs/types/core/api.d.ts +1 -1
  5. package/dist/cjs/types/types.d.ts +0 -2
  6. package/dist/cjs/types/utils/chatbotSdk.d.ts +0 -2
  7. package/dist/cjs/types/utils/fetchData.d.ts +1 -5
  8. package/dist/cjs/types/utils/injectLauncherCdnWarmup.d.ts +1 -0
  9. package/dist/cjs/types/vanilla/components/ChatbotFloatingButton.d.ts +3 -0
  10. package/dist/cjs/types/vanilla/components/ChatbotIframe.d.ts +2 -2
  11. package/dist/esm/index.js +2 -2
  12. package/dist/esm/index.js.map +1 -1
  13. package/dist/esm/types/components/ChatbotIframe.d.ts +0 -1
  14. package/dist/esm/types/core/api.d.ts +1 -1
  15. package/dist/esm/types/types.d.ts +0 -2
  16. package/dist/esm/types/utils/chatbotSdk.d.ts +0 -2
  17. package/dist/esm/types/utils/fetchData.d.ts +1 -5
  18. package/dist/esm/types/utils/injectLauncherCdnWarmup.d.ts +1 -0
  19. package/dist/esm/types/vanilla/components/ChatbotFloatingButton.d.ts +3 -0
  20. package/dist/esm/types/vanilla/components/ChatbotIframe.d.ts +2 -2
  21. package/dist/index.d.ts +0 -2
  22. package/dist/umd/robylon-chatbot.js +1 -1
  23. package/dist/umd/robylon-chatbot.js.map +1 -1
  24. package/dist/umd/types/components/ChatbotIframe.d.ts +0 -1
  25. package/dist/umd/types/core/api.d.ts +1 -1
  26. package/dist/umd/types/types.d.ts +0 -2
  27. package/dist/umd/types/utils/chatbotSdk.d.ts +0 -2
  28. package/dist/umd/types/utils/fetchData.d.ts +1 -5
  29. package/dist/umd/types/utils/injectLauncherCdnWarmup.d.ts +1 -0
  30. package/dist/umd/types/vanilla/components/ChatbotFloatingButton.d.ts +3 -0
  31. package/dist/umd/types/vanilla/components/ChatbotIframe.d.ts +2 -2
  32. package/package.json +2 -18
  33. package/dist/cjs/types/constants/iframeActions.d.ts +0 -10
  34. package/dist/esm/types/constants/iframeActions.d.ts +0 -10
  35. package/dist/umd/types/constants/iframeActions.d.ts +0 -10
@@ -7,7 +7,6 @@ interface ChatbotIframeProps {
7
7
  isVisible: boolean;
8
8
  onClose: () => void;
9
9
  onEvent?: ChatbotEventHandler;
10
- onIframeLoaded?: () => void;
11
10
  onInternalEvent: (eventType: AllEventTypes, additionalData?: Record<string, any>) => void;
12
11
  position?: "Left" | "Right";
13
12
  bottomSpacing?: number;
@@ -5,4 +5,4 @@
5
5
  * @param userToken The user token (optional)
6
6
  * @returns The chatbot configuration
7
7
  */
8
- export declare const fetchChatbotConfig: (apiKey: string, userId?: string, userToken?: string, internal_user_id?: string) => Promise<any>;
8
+ export declare const fetchChatbotConfig: (apiKey: string, userId?: string, userToken?: string) => Promise<any>;
@@ -24,7 +24,6 @@ export interface ChatbotConfig {
24
24
  userProfile?: Record<string, any>;
25
25
  domain: string;
26
26
  show_launcher: boolean;
27
- show_history?: boolean;
28
27
  brand_colour: string;
29
28
  image_url?: string;
30
29
  chat_interface_config?: {
@@ -51,7 +50,6 @@ export interface ChatbotConfig {
51
50
  delay: number;
52
51
  };
53
52
  launcher_size_multiplier?: number;
54
- ws_url?: string;
55
53
  }
56
54
  interface RobylonSdkConfig {
57
55
  chatbot_id: string;
@@ -5,8 +5,6 @@ export declare class ChatbotEmbed {
5
5
  private iframe;
6
6
  private bubblePromptContainer;
7
7
  private chatBtnImage;
8
- private isIframeLoaded;
9
- private sendMessageToIframe;
10
8
  constructor(config: ChatbotConfig);
11
9
  private onCloseListener;
12
10
  private validateDomain;
@@ -47,11 +47,7 @@ interface ChatbotResponse {
47
47
  };
48
48
  show_launcher: boolean;
49
49
  };
50
- router_connection_info?: {
51
- url?: string;
52
- access_token?: string;
53
- };
54
50
  };
55
51
  }
56
- export declare const fetchChatbotConfig: (chatbotId: string, userId: string | null | number, token?: string, internal_user_id?: string) => Promise<ChatbotResponse>;
52
+ export declare const fetchChatbotConfig: (chatbotId: string, userId: string | null | number, token?: string) => Promise<ChatbotResponse>;
57
53
  export {};
@@ -0,0 +1 @@
1
+ export declare const ensureLauncherCdnWarmupLinks: () => void;
@@ -38,6 +38,9 @@ export declare class ChatbotFloatingButton {
38
38
  * Renders the button element
39
39
  */
40
40
  private render;
41
+ private getImageLauncherSrc;
42
+ private appendChevronSvg;
43
+ private tryUpdateImageLauncherInPlace;
41
44
  private createLauncherElement;
42
45
  private createTextLauncher;
43
46
  private createTextualImageLauncher;
@@ -21,7 +21,6 @@ interface ChatbotIframeConfig {
21
21
  timestamp: number;
22
22
  data?: any;
23
23
  }) => void;
24
- onIframeLoaded?: () => void;
25
24
  onInternalEvent: (eventType: AllEventTypes, additionalData?: Record<string, any>) => void;
26
25
  position?: "Left" | "Right";
27
26
  bottomSpacing?: number;
@@ -41,7 +40,8 @@ export declare class ChatbotIframe {
41
40
  private resizeHandler;
42
41
  private overridesPayloadCache;
43
42
  private proactiveDataSentInRegistration;
44
- private openedDueToProactive;
43
+ private buildOverridesPayload;
44
+ private hasUserProvidedOverrides;
45
45
  /**
46
46
  * Creates a new ChatbotIframe
47
47
  * @param config The iframe configuration