@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.js CHANGED
@@ -38,8 +38,6 @@ class ClientSignalRService {
38
38
  this.hubUrl = hubUrl;
39
39
  }
40
40
  static async startConnection(sessionId, apiKey, onMessageReceived) {
41
- console.log('🚀 ~ ClientSignalRService ~ startConnection ~ apiKey:', apiKey);
42
- console.log('🚀 ~ ClientSignalRService ~ startConnection ~ sessionId:', sessionId);
43
41
  // Prevent multiple connections
44
42
  if (this.isConnected)
45
43
  return;
@@ -56,7 +54,6 @@ class ClientSignalRService {
56
54
  .build();
57
55
  // Define callback function for receiving messages
58
56
  this.connection.on('ReceiveMessage', (message, senderType, needsAgent) => {
59
- console.log('🚀 ~ ClientSignalRService ~ this.connection.on ~ message:', message);
60
57
  onMessageReceived(message, senderType, needsAgent);
61
58
  });
62
59
  try {
@@ -113,7 +110,6 @@ ClientSignalRService.isConnected = false;
113
110
  ClientSignalRService.hubUrl = '';
114
111
 
115
112
  let getTokenFunction = undefined;
116
- console.log('🚀 ~ getTokenFunction:', getTokenFunction);
117
113
  let baseUrl = null;
118
114
  function initializeAPI(url, getToken) {
119
115
  getTokenFunction = getToken;
@@ -25779,7 +25775,6 @@ function HelpCenter({ helpScreenId, user, showArrow = true, language = 'en', mes
25779
25775
  setShowArrowAnimation(false);
25780
25776
  };
25781
25777
  const handleReceiveMessage = (message, senderType, needsAgent) => {
25782
- console.log('🚀 ~ handleReceiveMessage ~ message:', message);
25783
25778
  // Update agent status if needed
25784
25779
  if (needsAgent) {
25785
25780
  setNeedsAgent(true);