Skip to content

Commit

Permalink
Fix bug with sending platform and fix bug with displaying the reconne…
Browse files Browse the repository at this point in the history
…ct separator
  • Loading branch information
annmirosh committed Dec 26, 2024
1 parent 8d4c615 commit 4dd13a8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions dist/alan_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
this._cleanups.push(f);
};

function fillAuth(values, ext, config) {
function fillAuth(values, ext, connectionConfig) {
var auth = {};
for (var k in ext) {
auth[k] = ext[k];
Expand All @@ -365,7 +365,8 @@
}

if (auth && auth.withEdgeUrl) {
auth.edgeUrl = config ? config.url : undefined;
delete auth.withEdgeUrl;
auth.edgeUrl = connectionConfig ? connectionConfig.url : undefined;
}
return auth;
}
Expand Down Expand Up @@ -93985,7 +93986,7 @@ code.hljs {

// alan_btn/alan_btn.ts
(function(ns) {
uiState.lib.version = "alan-version.1.8.74".replace("alan-version.", "");
uiState.lib.version = "alan-version.1.8.75".replace("alan-version.", "");
if (window.alanBtn) {
console.warn("Alan: the Alan Button source code has already added (v." + uiState.lib.version + ")");
}
Expand Down Expand Up @@ -96220,6 +96221,14 @@ ${LEARN_MORE_LABEL}
return "";
}
var progressUpdateIntervalId = null;
function hideLoadingMessages() {
document.querySelectorAll(".alan-incoming-msg").forEach((div) => {
const parent = div.closest("[data-msg-index]");
if (parent) {
parent.classList.add("alan-hide-msg-immidiatelly");
}
});
}
function renderMessageInTextChat(msg, noAnimation, immidiateScroll) {
if (!uiState.textChat.available)
return;
Expand Down Expand Up @@ -96492,6 +96501,7 @@ ${LEARN_MORE_LABEL}
const event = {
type: "connection-separator"
};
hideLoadingMessages();
renderMessageInTextChat(event);
}
window.onNewDialogAutoReconnect = onNewDialogAutoReconnect;
Expand Down
2 changes: 1 addition & 1 deletion dist/alan_lib.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alan-ai/alan-sdk-web",
"version": "1.8.74",
"version": "1.8.75",
"description": "Alan Web SDK: a lightweight JavaScript library for adding a voice experience to your website or web application",
"keywords": [
"alan sdk web",
Expand Down

0 comments on commit 4dd13a8

Please sign in to comment.