@syntrologie/adapt-chatbot 2.8.0-canary.293 → 2.8.0-canary.294

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.
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  AdaptiveChatBar
3
3
  } from "./chunk-SCVTTLFJ.js";
4
- import "./chunk-YQU3O7VK.js";
5
- import "./chunk-C6K7W3LO.js";
4
+ import "./chunk-IGRIDG7O.js";
5
+ import "./chunk-NLQR3MGO.js";
6
6
  import "./chunk-UVKRO5ER.js";
7
7
  export {
8
8
  AdaptiveChatBar
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AdaptiveChatTrail
3
- } from "./chunk-YQU3O7VK.js";
4
- import "./chunk-C6K7W3LO.js";
3
+ } from "./chunk-IGRIDG7O.js";
4
+ import "./chunk-NLQR3MGO.js";
5
5
  import "./chunk-UVKRO5ER.js";
6
6
  export {
7
7
  AdaptiveChatTrail
@@ -2,7 +2,7 @@ import {
2
2
  ChatAssistantLitMountable,
3
3
  renderFallbackHtml
4
4
  } from "./chunk-FLSMUFFX.js";
5
- import "./chunk-C6K7W3LO.js";
5
+ import "./chunk-NLQR3MGO.js";
6
6
  import "./chunk-VLJ3WOEX.js";
7
7
  import "./chunk-UVKRO5ER.js";
8
8
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  renderMarkdown
3
- } from "./chunk-C6K7W3LO.js";
3
+ } from "./chunk-NLQR3MGO.js";
4
4
 
5
5
  // src/AdaptiveChatTrail.ts
6
6
  import { html, LitElement, nothing } from "lit";
@@ -414,4 +414,4 @@ if (!customElements.get("adaptive-chat-trail")) {
414
414
  export {
415
415
  AdaptiveChatTrail
416
416
  };
417
- //# sourceMappingURL=chunk-YQU3O7VK.js.map
417
+ //# sourceMappingURL=chunk-IGRIDG7O.js.map
@@ -2244,7 +2244,9 @@ var stopIcon = html2`<svg width="14" height="14" viewBox="0 0 14 14" fill="none"
2244
2244
  function autoResize(e) {
2245
2245
  const el = e.target;
2246
2246
  el.style.height = "auto";
2247
- el.style.height = `${Math.min(el.scrollHeight, 150)}px`;
2247
+ const capped = Math.min(el.scrollHeight, 150);
2248
+ el.style.height = `${capped}px`;
2249
+ el.style.overflowY = capped >= 150 ? "auto" : "hidden";
2248
2250
  }
2249
2251
  function renderChatInput(props) {
2250
2252
  const canSend = props.value.trim().length > 0 && !props.isStreaming;
@@ -2669,7 +2671,7 @@ var STYLE_RULES = `
2669
2671
  max-height: 150px;
2670
2672
  line-height: 1.4;
2671
2673
  transition: border-color 0.2s, box-shadow 0.2s;
2672
- overflow-y: auto;
2674
+ overflow-y: hidden;
2673
2675
  }
2674
2676
 
2675
2677
  [data-sc-chat] [data-sc-chat-input] textarea:focus {
@@ -3555,4 +3557,4 @@ export {
3555
3557
  dompurify/dist/purify.es.mjs:
3556
3558
  (*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE *)
3557
3559
  */
3558
- //# sourceMappingURL=chunk-C6K7W3LO.js.map
3560
+ //# sourceMappingURL=chunk-NLQR3MGO.js.map