@alan-ai/alan-sdk-web 1.8.88 → 1.8.89
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 +13 -2
- package/dist/alan_lib.min.js +1 -1
- package/package.json +1 -1
package/dist/alan_lib.js
CHANGED
|
@@ -90650,6 +90650,17 @@
|
|
|
90650
90650
|
replaceLoader = false;
|
|
90651
90651
|
isNew = false;
|
|
90652
90652
|
mergeProgressiveMessages(messages, msgInd, msg);
|
|
90653
|
+
} else if (msg?.suggestions?.length > 0) {
|
|
90654
|
+
const lastResponseMsgInd = (0, import_lodash.findLastIndex)(messages, (m) => {
|
|
90655
|
+
return msg.type === "response" && msgReqId && (m?.ctx?.reqId || m.reqId) === msgReqId;
|
|
90656
|
+
});
|
|
90657
|
+
if (lastResponseMsgInd > -1) {
|
|
90658
|
+
msgInd = lastResponseMsgInd;
|
|
90659
|
+
updateResponse = true;
|
|
90660
|
+
replaceLoader = false;
|
|
90661
|
+
isNew = false;
|
|
90662
|
+
mergeProgressiveMessages(messages, msgInd, msg);
|
|
90663
|
+
}
|
|
90653
90664
|
}
|
|
90654
90665
|
}
|
|
90655
90666
|
}
|
|
@@ -95812,7 +95823,7 @@ code.hljs {
|
|
|
95812
95823
|
|
|
95813
95824
|
// alan_btn/alan_btn.ts
|
|
95814
95825
|
(function(ns) {
|
|
95815
|
-
uiState.lib.version = "alan-version.1.8.
|
|
95826
|
+
uiState.lib.version = "alan-version.1.8.89".replace("alan-version.", "");
|
|
95816
95827
|
if (window.alanBtn) {
|
|
95817
95828
|
console.warn("Alan: the Alan Button source code has already added (v." + uiState.lib.version + ")");
|
|
95818
95829
|
}
|
|
@@ -98352,7 +98363,7 @@ ${LEARN_MORE_LABEL}
|
|
|
98352
98363
|
innerEl.insertAdjacentHTML("beforeend", buildMsgTextContent(updatedMsg));
|
|
98353
98364
|
innerEl.insertAdjacentHTML("beforeend", buildLinksContent(updatedMsg));
|
|
98354
98365
|
innerEl.insertAdjacentHTML("beforeend", buildCommandsBlock(msg, uiState?.textChat?.options));
|
|
98355
|
-
innerEl.insertAdjacentHTML("beforeend", buildMsgIncommingLoader(
|
|
98366
|
+
innerEl.insertAdjacentHTML("beforeend", buildMsgIncommingLoader(updatedMsg));
|
|
98356
98367
|
const newSuggestions = msg?.suggestions;
|
|
98357
98368
|
if (newSuggestions?.length > 0) {
|
|
98358
98369
|
if (innerEl.nextElementSibling?.classList.contains("alan-btn__chat-suggestions")) {
|