@alan-ai/alan-sdk-web 1.8.59 → 1.8.60
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 +3 -2
- package/dist/alan_lib.min.js +1 -1
- package/package.json +1 -1
package/dist/alan_lib.js
CHANGED
|
@@ -83989,12 +83989,13 @@
|
|
|
83989
83989
|
|
|
83990
83990
|
// alan_btn/src/textChat/helpers/mergeProgressiveMessages.ts
|
|
83991
83991
|
function mergeProgressiveMessages(messages, i, message) {
|
|
83992
|
+
const maxLinksCount = 9;
|
|
83992
83993
|
const newImages = message.images || [];
|
|
83993
83994
|
const oldText = messages[i].text || "";
|
|
83994
83995
|
const newText = message.text || "";
|
|
83995
83996
|
messages[i].text = oldText + newText;
|
|
83996
83997
|
messages[i].images = [...messages[i].images || [], ...newImages];
|
|
83997
|
-
messages[i].links = [...messages[i].links || [], ...message.links || []];
|
|
83998
|
+
messages[i].links = [...messages[i].links || [], ...message.links || []].splice(0, maxLinksCount);
|
|
83998
83999
|
if (message.ctx?.format === "markdown") {
|
|
83999
84000
|
if (messages[i].ctx) {
|
|
84000
84001
|
messages[i].ctx.format = "markdown";
|
|
@@ -87539,7 +87540,7 @@
|
|
|
87539
87540
|
|
|
87540
87541
|
// alan_btn/alan_btn.ts
|
|
87541
87542
|
(function(ns) {
|
|
87542
|
-
uiState.lib.version = "alan-version.1.8.
|
|
87543
|
+
uiState.lib.version = "alan-version.1.8.60".replace("alan-version.", "");
|
|
87543
87544
|
if (window.alanBtn) {
|
|
87544
87545
|
console.warn("Alan: the Alan Button source code has already added (v." + uiState.lib.version + ")");
|
|
87545
87546
|
}
|