@alan-ai/alan-sdk-web 1.8.74 → 1.8.75

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/alan_lib.js CHANGED
@@ -341,7 +341,7 @@
341
341
  this._cleanups.push(f);
342
342
  };
343
343
 
344
- function fillAuth(values, ext, config) {
344
+ function fillAuth(values, ext, connectionConfig) {
345
345
  var auth = {};
346
346
  for (var k in ext) {
347
347
  auth[k] = ext[k];
@@ -365,7 +365,8 @@
365
365
  }
366
366
 
367
367
  if (auth && auth.withEdgeUrl) {
368
- auth.edgeUrl = config ? config.url : undefined;
368
+ delete auth.withEdgeUrl;
369
+ auth.edgeUrl = connectionConfig ? connectionConfig.url : undefined;
369
370
  }
370
371
  return auth;
371
372
  }
@@ -93985,7 +93986,7 @@ code.hljs {
93985
93986
 
93986
93987
  // alan_btn/alan_btn.ts
93987
93988
  (function(ns) {
93988
- uiState.lib.version = "alan-version.1.8.74".replace("alan-version.", "");
93989
+ uiState.lib.version = "alan-version.1.8.75".replace("alan-version.", "");
93989
93990
  if (window.alanBtn) {
93990
93991
  console.warn("Alan: the Alan Button source code has already added (v." + uiState.lib.version + ")");
93991
93992
  }
@@ -96220,6 +96221,14 @@ ${LEARN_MORE_LABEL}
96220
96221
  return "";
96221
96222
  }
96222
96223
  var progressUpdateIntervalId = null;
96224
+ function hideLoadingMessages() {
96225
+ document.querySelectorAll(".alan-incoming-msg").forEach((div) => {
96226
+ const parent = div.closest("[data-msg-index]");
96227
+ if (parent) {
96228
+ parent.classList.add("alan-hide-msg-immidiatelly");
96229
+ }
96230
+ });
96231
+ }
96223
96232
  function renderMessageInTextChat(msg, noAnimation, immidiateScroll) {
96224
96233
  if (!uiState.textChat.available)
96225
96234
  return;
@@ -96492,6 +96501,7 @@ ${LEARN_MORE_LABEL}
96492
96501
  const event = {
96493
96502
  type: "connection-separator"
96494
96503
  };
96504
+ hideLoadingMessages();
96495
96505
  renderMessageInTextChat(event);
96496
96506
  }
96497
96507
  window.onNewDialogAutoReconnect = onNewDialogAutoReconnect;