@helpai/elements 0.56.1 → 0.56.3

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/configurator.mjs CHANGED
@@ -118,7 +118,6 @@ var presentationSchema = z3.object({
118
118
  // src/schema/widget/behavior.ts
119
119
  import { z as z4 } from "zod";
120
120
  var responseModeSchema = z4.enum(["streaming", "buffered"]);
121
- var scrollAnchorSchema = z4.enum(["bottom", "turn"]);
122
121
  var behaviorSchema = z4.object({
123
122
  startMinimized: z4.boolean().default(true).describe(
124
123
  "Don't auto-open the floating panel on first visit. `true` (default) shows the FAB collapsed; `false` opens the panel on mount."
@@ -138,16 +137,13 @@ var behaviorSchema = z4.object({
138
137
  scrollFade: z4.boolean().default(true).describe(
139
138
  "Fade the message list at its scroll edges with a soft gradient mask (the fade lifts at the very top/bottom). `true` (default) enables it; `false` shows hard edges."
140
139
  ),
141
- scrollAnchor: scrollAnchorSchema.default("bottom").describe(
142
- "How the list anchors a new turn. `bottom` (default) sticks to the newest content and follows the streamed reply; `turn` pins the visitor's question to the top of the viewport (ChatGPT-style) so the answer streams into the space below."
143
- ),
144
140
  enableMessageFeedback: z4.boolean().default(true).describe(
145
141
  "Show \u{1F44D}/\u{1F44E} feedback controls under each assistant reply. `true` (default) shows them. A choice fires the `messageFeedback` event and is POSTed best-effort to `/pai/message-feedback`."
146
142
  )
147
143
  }).loose().describe("Conversation behaviour \u2014 lifecycle, streaming, and the transcript surface (scroll, feedback).").meta({
148
144
  examples: [
149
145
  { startMinimized: true, responseMode: "streaming" },
150
- { startMinimized: false, responseMode: "buffered", scrollAnchor: "turn", enableMessageFeedback: false }
146
+ { startMinimized: false, responseMode: "buffered", scrollFade: false, enableMessageFeedback: false }
151
147
  ]
152
148
  });
153
149