@aslaluroba/help-center-react 2.0.1 → 2.0.2

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.
package/dist/index.esm.js CHANGED
@@ -9,8 +9,6 @@ class ClientSignalRService {
9
9
  this.hubUrl = hubUrl;
10
10
  }
11
11
  static async startConnection(sessionId, apiKey, onMessageReceived) {
12
- console.log('🚀 ~ ClientSignalRService ~ startConnection ~ apiKey:', apiKey);
13
- console.log('🚀 ~ ClientSignalRService ~ startConnection ~ sessionId:', sessionId);
14
12
  // Prevent multiple connections
15
13
  if (this.isConnected)
16
14
  return;
@@ -27,7 +25,6 @@ class ClientSignalRService {
27
25
  .build();
28
26
  // Define callback function for receiving messages
29
27
  this.connection.on('ReceiveMessage', (message, senderType, needsAgent) => {
30
- console.log('🚀 ~ ClientSignalRService ~ this.connection.on ~ message:', message);
31
28
  onMessageReceived(message, senderType, needsAgent);
32
29
  });
33
30
  try {
@@ -84,7 +81,6 @@ ClientSignalRService.isConnected = false;
84
81
  ClientSignalRService.hubUrl = '';
85
82
 
86
83
  let getTokenFunction = undefined;
87
- console.log('🚀 ~ getTokenFunction:', getTokenFunction);
88
84
  let baseUrl = null;
89
85
  function initializeAPI(url, getToken) {
90
86
  getTokenFunction = getToken;
@@ -25750,7 +25746,6 @@ function HelpCenter({ helpScreenId, user, showArrow = true, language = 'en', mes
25750
25746
  setShowArrowAnimation(false);
25751
25747
  };
25752
25748
  const handleReceiveMessage = (message, senderType, needsAgent) => {
25753
- console.log('🚀 ~ handleReceiveMessage ~ message:', message);
25754
25749
  // Update agent status if needed
25755
25750
  if (needsAgent) {
25756
25751
  setNeedsAgent(true);