@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.
- package/dist/AdaptiveChatBar.js +2 -2
- package/dist/AdaptiveChatTrail.js +2 -2
- package/dist/ChatAssistantLit.js +1 -1
- package/dist/{chunk-YQU3O7VK.js → chunk-IGRIDG7O.js} +2 -2
- package/dist/{chunk-C6K7W3LO.js → chunk-NLQR3MGO.js} +5 -3
- package/dist/chunk-NLQR3MGO.js.map +7 -0
- package/dist/runtime.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-C6K7W3LO.js.map +0 -7
- /package/dist/{chunk-YQU3O7VK.js.map → chunk-IGRIDG7O.js.map} +0 -0
package/dist/AdaptiveChatBar.js
CHANGED
package/dist/ChatAssistantLit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderMarkdown
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
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
|
-
|
|
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:
|
|
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-
|
|
3560
|
+
//# sourceMappingURL=chunk-NLQR3MGO.js.map
|