@alan-ai/alan-sdk-web 1.8.105 → 1.8.107

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
@@ -81026,6 +81026,9 @@
81026
81026
  if (withDetails && message.name !== "laoding" && message.queryProgress?.length === 0) {
81027
81027
  return "";
81028
81028
  }
81029
+ if (message?.ctx?.final === true && !message.queryProgress) {
81030
+ return "";
81031
+ }
81029
81032
  if (message.name !== "text" && message.queryProgress?.length === 0) {
81030
81033
  return "";
81031
81034
  }
@@ -82151,6 +82154,8 @@
82151
82154
  const footerRightPadding = getNumPropVal(textChatOptions?.footer?.padding?.right, 18);
82152
82155
  const footerBottomPadding = getNumPropVal(textChatOptions?.footer?.padding?.bottom, 15);
82153
82156
  const footerLeftPadding = getNumPropVal(textChatOptions?.footer?.padding?.left, 18);
82157
+ const footerFullScreenModeRightPadding = getNumPropVal(textChatOptions?.popup?.fullScreenMode?.layout?.padding?.right, footerRightPadding);
82158
+ const footerFullScreenModeLeftPadding = getNumPropVal(textChatOptions?.popup?.fullScreenMode?.layout?.padding?.left, footerLeftPadding);
82154
82159
  const headerTopPadding = getNumPropVal(textChatOptions?.header?.padding?.top, 12);
82155
82160
  const headerRightPadding = getNumPropVal(+textChatOptions?.header?.padding?.right, 11);
82156
82161
  const headerBottomPadding = getNumPropVal(textChatOptions?.header?.padding?.bottom, 0);
@@ -82159,6 +82164,8 @@
82159
82164
  const msgsRightPadding = getNumPropVal(textChatOptions?.popup?.padding?.right, 15);
82160
82165
  const msgsBottomPadding = getNumPropVal(textChatOptions?.popup?.padding?.bottom, 20);
82161
82166
  const msgsLeftPadding = getNumPropVal(textChatOptions?.popup?.padding?.left, 15);
82167
+ const msgFullScreenModeRightPadding = getNumPropVal(textChatOptions?.popup?.fullScreenMode?.layout?.padding?.right, msgsRightPadding);
82168
+ const msgFullScreenModeLeftPadding = getNumPropVal(textChatOptions?.popup?.fullScreenMode?.layout?.padding?.left, msgsLeftPadding);
82162
82169
  const buttonsTopPadding = getNumPropVal(textChatOptions?.buttons?.padding?.top, 9);
82163
82170
  const buttonsRightPadding = getNumPropVal(textChatOptions?.buttons?.padding?.right, 20);
82164
82171
  const buttonsBottomPadding = getNumPropVal(textChatOptions?.buttons?.padding?.bottom, 9);
@@ -82310,8 +82317,9 @@
82310
82317
  border-radius:0!important;
82311
82318
  flex-direction: row;
82312
82319
  }`;
82320
+ const fullScreenContentMaxWidth = textChatOptions?.popup?.fullScreenMode?.layout?.maxWidth || `870`;
82313
82321
  keyFrames += getStyleSheetMarker() + `.alan-btn_text-chat-full-screen .alan-btn__chat-messages {
82314
- max-width: 870px;
82322
+ max-width: ${fullScreenContentMaxWidth}px;
82315
82323
  width: 100%;
82316
82324
  margin: 0 auto;
82317
82325
  }`;
@@ -82319,7 +82327,7 @@
82319
82327
  min-width: initial;
82320
82328
  }`;
82321
82329
  keyFrames += getStyleSheetMarker() + `.alan-btn_text-chat-full-screen .alan-btn__chat-textarea-holder-outer-content {
82322
- max-width: 860px;
82330
+ max-width: ${fullScreenContentMaxWidth}px;
82323
82331
  margin: 0 auto;
82324
82332
  }`;
82325
82333
  keyFrames += getStyleSheetMarker() + `.alan-btn_text-chat-full-screen .alan-btn__chat-textarea-inner-holder {
@@ -82483,6 +82491,10 @@
82483
82491
  flex-shrink: 0;
82484
82492
  padding: ${getPaddingProp(footerTopPadding, footerRightPadding, footerBottomPadding, footerLeftPadding)};
82485
82493
  }`;
82494
+ keyFrames += getStyleSheetMarker() + `.alan-btn_text-chat-full-screen .alan-btn__chat-textarea-holder {
82495
+ padding-left: ${footerFullScreenModeLeftPadding}px;
82496
+ padding-right: ${footerFullScreenModeRightPadding}px;
82497
+ }`;
82486
82498
  keyFrames += getStyleSheetMarker() + `.alan-btn__chat-footer-info {
82487
82499
  color: ${textChatOptions?.textarea?.color || `#171717`} ;
82488
82500
  }`;
@@ -82522,6 +82534,10 @@
82522
82534
  keyFrames += getStyleSheetMarker() + `.alan-btn__chat-messages-empty-block {
82523
82535
  flex: 1 1 auto;
82524
82536
  }`;
82537
+ keyFrames += getStyleSheetMarker() + `.alan-btn_text-chat-full-screen .alan-btn__chat-messages-wrapper {
82538
+ padding-left: ${msgFullScreenModeLeftPadding}px;
82539
+ padding-right: ${msgFullScreenModeRightPadding}px;
82540
+ }`;
82525
82541
  keyFrames += getStyleSheetMarker() + `.alan-btn__chat-messages-wrapper {
82526
82542
  width: 100%;
82527
82543
  height: 100%;
@@ -93968,8 +93984,8 @@ code.hljs {
93968
93984
  // alan_btn/alan_btn.ts
93969
93985
  (function(ns) {
93970
93986
  const uiState10 = getUIState();
93971
- uiState10.lib.version = "alan-version.1.8.105".replace("alan-version.", "");
93972
- window.alanLib = { version: "alan-version.1.8.105".replace("alan-version.", "") };
93987
+ uiState10.lib.version = "alan-version.1.8.107".replace("alan-version.", "");
93988
+ window.alanLib = { version: "alan-version.1.8.107".replace("alan-version.", "") };
93973
93989
  if (window.alanBtn) {
93974
93990
  console.warn("Alan: the Alan Button source code has already added (v." + uiState10.lib.version + ")");
93975
93991
  }