@alan-ai/alan-sdk-web 1.8.58 → 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 +12 -7
- 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";
|
|
@@ -84900,6 +84901,10 @@
|
|
|
84900
84901
|
const responseBubbleRightPadding = getNumPropVal(textChatOptions?.bubbles?.response?.padding?.right, 20);
|
|
84901
84902
|
const responseBubbleBottomPadding = getNumPropVal(textChatOptions?.bubbles?.response?.padding?.bottom, 9);
|
|
84902
84903
|
const responseBubbleLeftPadding = getNumPropVal(textChatOptions?.bubbles?.response?.padding?.left, 20);
|
|
84904
|
+
const responseBubbleBorderRadiusTopLeft = getNumPropVal(textChatOptions?.bubbles?.response?.borderRadius?.topLeft, defaultBubbleBorderRadius);
|
|
84905
|
+
const responseBubbleBorderRadiusTopRight = getNumPropVal(textChatOptions?.bubbles?.response?.borderRadius?.topRight, defaultBubbleBorderRadius);
|
|
84906
|
+
const responseBubbleBorderRadiusBottomRight = getNumPropVal(textChatOptions?.bubbles?.response?.borderRadius?.bottomRight, defaultBubbleBorderRadius);
|
|
84907
|
+
const responseBubbleBorderRadiusBottomLeft = getNumPropVal(textChatOptions?.bubbles?.response?.borderRadius?.bottomLeft, defaultBubbleBorderRadius);
|
|
84903
84908
|
const btnsGap = getNumPropVal(textChatOptions?.buttons?.gap, 8);
|
|
84904
84909
|
const textareaTopPadding = getNumPropVal(textChatOptions?.textarea?.padding?.top, 12);
|
|
84905
84910
|
const textareaRightPadding = getNumPropVal(textChatOptions?.textarea?.padding?.right, 42);
|
|
@@ -85869,7 +85874,7 @@
|
|
|
85869
85874
|
display: block;
|
|
85870
85875
|
float: left;
|
|
85871
85876
|
clear: both;
|
|
85872
|
-
border-radius: ${
|
|
85877
|
+
border-radius: ${responseBubbleBorderRadiusTopLeft}px ${responseBubbleBorderRadiusTopRight}px ${responseBubbleBorderRadiusBottomRight}px ${responseBubbleBorderRadiusBottomLeft}px;
|
|
85873
85878
|
position: relative;
|
|
85874
85879
|
background-color: ${responseBubbleBg};
|
|
85875
85880
|
border: 1px solid ${textChatOptions?.bubbles?.response?.borderColor || responseBubbleBg};
|
|
@@ -85980,9 +85985,9 @@
|
|
|
85980
85985
|
display: flex;
|
|
85981
85986
|
flex-wrap: wrap;
|
|
85982
85987
|
position: relative;
|
|
85983
|
-
top:
|
|
85984
|
-
left:
|
|
85985
|
-
width: calc(100% +
|
|
85988
|
+
top: -${responseBubbleTopPadding}px;
|
|
85989
|
+
left: -${responseBubbleLeftPadding}px;
|
|
85990
|
+
width: calc(100% + ${+responseBubbleRightPadding + +responseBubbleLeftPadding}px);
|
|
85986
85991
|
}`;
|
|
85987
85992
|
keyFrames += getStyleSheetMarker() + `.alan-btn__chat-response-imgs-wrapper-left-arrow {
|
|
85988
85993
|
position: absolute;
|
|
@@ -86016,7 +86021,7 @@
|
|
|
86016
86021
|
}`;
|
|
86017
86022
|
keyFrames += getStyleSheetMarker() + `.alan-btn__chat-response-img-block {
|
|
86018
86023
|
overflow: hidden;
|
|
86019
|
-
border-radius:
|
|
86024
|
+
border-radius: ${responseBubbleBorderRadiusTopLeft}px ${responseBubbleBorderRadiusTopRight}px 0 0;
|
|
86020
86025
|
width: 100%;
|
|
86021
86026
|
display: flex;
|
|
86022
86027
|
}`;
|
|
@@ -87535,7 +87540,7 @@
|
|
|
87535
87540
|
|
|
87536
87541
|
// alan_btn/alan_btn.ts
|
|
87537
87542
|
(function(ns) {
|
|
87538
|
-
uiState.lib.version = "alan-version.1.8.
|
|
87543
|
+
uiState.lib.version = "alan-version.1.8.60".replace("alan-version.", "");
|
|
87539
87544
|
if (window.alanBtn) {
|
|
87540
87545
|
console.warn("Alan: the Alan Button source code has already added (v." + uiState.lib.version + ")");
|
|
87541
87546
|
}
|