@alan-ai/alan-sdk-web 1.8.106 → 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
@@ -82154,6 +82154,8 @@
82154
82154
  const footerRightPadding = getNumPropVal(textChatOptions?.footer?.padding?.right, 18);
82155
82155
  const footerBottomPadding = getNumPropVal(textChatOptions?.footer?.padding?.bottom, 15);
82156
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);
82157
82159
  const headerTopPadding = getNumPropVal(textChatOptions?.header?.padding?.top, 12);
82158
82160
  const headerRightPadding = getNumPropVal(+textChatOptions?.header?.padding?.right, 11);
82159
82161
  const headerBottomPadding = getNumPropVal(textChatOptions?.header?.padding?.bottom, 0);
@@ -82162,6 +82164,8 @@
82162
82164
  const msgsRightPadding = getNumPropVal(textChatOptions?.popup?.padding?.right, 15);
82163
82165
  const msgsBottomPadding = getNumPropVal(textChatOptions?.popup?.padding?.bottom, 20);
82164
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);
82165
82169
  const buttonsTopPadding = getNumPropVal(textChatOptions?.buttons?.padding?.top, 9);
82166
82170
  const buttonsRightPadding = getNumPropVal(textChatOptions?.buttons?.padding?.right, 20);
82167
82171
  const buttonsBottomPadding = getNumPropVal(textChatOptions?.buttons?.padding?.bottom, 9);
@@ -82313,8 +82317,9 @@
82313
82317
  border-radius:0!important;
82314
82318
  flex-direction: row;
82315
82319
  }`;
82320
+ const fullScreenContentMaxWidth = textChatOptions?.popup?.fullScreenMode?.layout?.maxWidth || `870`;
82316
82321
  keyFrames += getStyleSheetMarker() + `.alan-btn_text-chat-full-screen .alan-btn__chat-messages {
82317
- max-width: 870px;
82322
+ max-width: ${fullScreenContentMaxWidth}px;
82318
82323
  width: 100%;
82319
82324
  margin: 0 auto;
82320
82325
  }`;
@@ -82322,7 +82327,7 @@
82322
82327
  min-width: initial;
82323
82328
  }`;
82324
82329
  keyFrames += getStyleSheetMarker() + `.alan-btn_text-chat-full-screen .alan-btn__chat-textarea-holder-outer-content {
82325
- max-width: 860px;
82330
+ max-width: ${fullScreenContentMaxWidth}px;
82326
82331
  margin: 0 auto;
82327
82332
  }`;
82328
82333
  keyFrames += getStyleSheetMarker() + `.alan-btn_text-chat-full-screen .alan-btn__chat-textarea-inner-holder {
@@ -82486,6 +82491,10 @@
82486
82491
  flex-shrink: 0;
82487
82492
  padding: ${getPaddingProp(footerTopPadding, footerRightPadding, footerBottomPadding, footerLeftPadding)};
82488
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
+ }`;
82489
82498
  keyFrames += getStyleSheetMarker() + `.alan-btn__chat-footer-info {
82490
82499
  color: ${textChatOptions?.textarea?.color || `#171717`} ;
82491
82500
  }`;
@@ -82525,6 +82534,10 @@
82525
82534
  keyFrames += getStyleSheetMarker() + `.alan-btn__chat-messages-empty-block {
82526
82535
  flex: 1 1 auto;
82527
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
+ }`;
82528
82541
  keyFrames += getStyleSheetMarker() + `.alan-btn__chat-messages-wrapper {
82529
82542
  width: 100%;
82530
82543
  height: 100%;
@@ -93971,8 +93984,8 @@ code.hljs {
93971
93984
  // alan_btn/alan_btn.ts
93972
93985
  (function(ns) {
93973
93986
  const uiState10 = getUIState();
93974
- uiState10.lib.version = "alan-version.1.8.106".replace("alan-version.", "");
93975
- window.alanLib = { version: "alan-version.1.8.106".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.", "") };
93976
93989
  if (window.alanBtn) {
93977
93990
  console.warn("Alan: the Alan Button source code has already added (v." + uiState10.lib.version + ")");
93978
93991
  }