@robylon/web-react-sdk 1.1.50 → 1.1.51

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.
@@ -34,6 +34,9 @@ export declare class ChatbotIframe {
34
34
  private config;
35
35
  private isInitialized;
36
36
  private hasRegistered;
37
+ private isAppReady;
38
+ private shouldWaitForAppReady;
39
+ private hasPendingOpenRequest;
37
40
  private resizeHandler;
38
41
  private overridesPayloadCache;
39
42
  private proactiveDataSentInRegistration;
@@ -70,13 +73,17 @@ export declare class ChatbotIframe {
70
73
  /**
71
74
  * Updates the iframe visibility
72
75
  * @param isVisible Whether the iframe should be visible
76
+ * @param waitForAppReady If true, defer postMessages until APP_READY is received
73
77
  */
74
- updateVisibility(isVisible: boolean): void;
78
+ updateVisibility(isVisible: boolean, waitForAppReady?: boolean): void;
79
+ private showIframe;
80
+ private hideIframe;
81
+ private sendOpenAndRegisterIfReady;
75
82
  /**
76
83
  * Updates the iframe with new configuration
77
84
  * @param config The new configuration
78
85
  */
79
- update(config: Partial<ChatbotIframeConfig>): void;
86
+ update(config: Partial<ChatbotIframeConfig>, waitForAppReady?: boolean): void;
80
87
  /**
81
88
  * Unmounts and destroys the iframe
82
89
  */