@helpai/elements 0.56.0 → 0.56.2
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 +1 -5
- package/elements-web-component.esm.js +30 -30
- package/elements-web-component.esm.js.map +3 -3
- package/elements.cjs.js +28 -28
- package/elements.cjs.js.map +3 -3
- package/elements.esm.js +28 -28
- package/elements.esm.js.map +3 -3
- package/elements.js +28 -28
- package/elements.js.map +3 -3
- package/index.d.ts +2 -23
- package/index.mjs +13 -141
- package/package.json +1 -1
- package/schema.d.ts +2 -11
- package/schema.json +2 -22
- package/schema.mjs +1 -6
- package/style.css +1 -1
- package/web-component.mjs +12 -139
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Asset, B as BlocksConfig, C as ConnectionConfig, a as ConnectionConfigPartial, H as HandshakeResponse, L as Link, S as ServerConfig, b as SiteConfig, W as WidgetConfig, c as WidgetConfigPartial, d as WidgetSettings, e as WidgetSettingsPartial } from './deployment-
|
|
1
|
+
export { A as Asset, B as BlocksConfig, C as ConnectionConfig, a as ConnectionConfigPartial, H as HandshakeResponse, L as Link, S as ServerConfig, b as SiteConfig, W as WidgetConfig, c as WidgetConfigPartial, d as WidgetSettings, e as WidgetSettingsPartial } from './deployment-Daefe1g1.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -40,7 +40,7 @@ interface ClientStorage {
|
|
|
40
40
|
* populated {@link Strings} map. UI components then read `strings.send` as a
|
|
41
41
|
* normal property access — no per-render lookup, no per-render allocation.
|
|
42
42
|
*/
|
|
43
|
-
type StringKey = "launcherOpen" | "launcherLabel" | "panelTitle" | "composerPlaceholder" | "send" | "stop" | "attach" | "micStart" | "micStop" | "micUnsupported" | "expand" | "collapse" | "fullscreen" | "exitFullscreen" | "resizeHandle" | "scrollToBottom" | "close" | "moreActions" | "soundOn" | "soundOff" | "language" | "theme" | "themeAuto" | "themeLight" | "themeDark" | "textSize" | "textSizeSmall" | "textSizeNormal" | "textSizeLarge" | "history" | "historyTitle" | "historyEmpty" | "historyLoading" | "historyBack" | "historyContinue" | "conversationLoading" | "conversationClosed" | "startNewConversation" | "dateToday" | "dateYesterday" | "dateLastWeek" | "dateOlder" | "newConversation" | "dropZone" | "attachmentTooLarge" | "attachmentTooMany" | "attachmentMimeRejected" | "errorRetry" | "errorGeneric" | "errorRateLimited" | "loading" | "thinking" | "thoughts" | "usedTool" | "toolResult" | "sources" | "feedbackUp" | "feedbackDown" | "feedbackThanks" | "copy" | "copied" | "
|
|
43
|
+
type StringKey = "launcherOpen" | "launcherLabel" | "panelTitle" | "composerPlaceholder" | "send" | "stop" | "attach" | "micStart" | "micStop" | "micUnsupported" | "expand" | "collapse" | "fullscreen" | "exitFullscreen" | "resizeHandle" | "scrollToBottom" | "close" | "moreActions" | "soundOn" | "soundOff" | "language" | "theme" | "themeAuto" | "themeLight" | "themeDark" | "textSize" | "textSizeSmall" | "textSizeNormal" | "textSizeLarge" | "history" | "historyTitle" | "historyEmpty" | "historyLoading" | "historyBack" | "historyContinue" | "conversationLoading" | "conversationClosed" | "startNewConversation" | "dateToday" | "dateYesterday" | "dateLastWeek" | "dateOlder" | "newConversation" | "dropZone" | "attachmentTooLarge" | "attachmentTooMany" | "attachmentMimeRejected" | "errorRetry" | "errorGeneric" | "errorRateLimited" | "loading" | "thinking" | "thoughts" | "usedTool" | "toolResult" | "sources" | "feedbackUp" | "feedbackDown" | "feedbackThanks" | "copy" | "copied" | "collapseSidebar" | "expandSidebar" | "formSubmit" | "formSkip" | "formSubmitted" | "formSkipped" | "formFillOut" | "formRequired" | "formInvalidEmail" | "formInvalidTel" | "formInvalidUrl" | "formInvalidNumber" | "formTooShort" | "formTooLong" | "formNumberTooSmall" | "formNumberTooLarge" | "formPatternMismatch" | "formChooseAtLeast" | "formChooseAtMost" | "formOther" | "formOtherPlaceholder" | "inputRequired" | "inputBadge" | "inputAnswered" | "inputSkipped" | "inputSubmit" | "inputSubmitHint" | "inputSkip" | "confirmYes" | "confirmNo" | "approvalRequired" | "approve" | "reject" | "approved" | "rejected" | "approvalReason" | "approvalPrompt" | "approvalBody" | "approvalYourResponse" | "approvalEditHint" | "approvalSubmitting" | "edit" | "toolParameters" | "statusAwaiting" | "statusResponded" | "statusCompleted" | "statusDenied" | "statusError" | "statusRunning" | "statusSuperseded" | "tabHome" | "tabConversations" | "tabHelp" | "tabNews" | "modulesEmpty" | "moduleBack" | "contentLoading" | "homeGreeting" | "homeGreetingNamed" | "homeGreetingLead" | "homeSearchPlaceholder" | "homeContentTitle" | "homeStatus" | "helpTitle" | "helpSearchPlaceholder" | "helpEmpty" | "helpLoading" | "helpSearchEmpty" | "newsTitle" | "newsEmpty" | "newsLoading" | "newsBack" | "newsPublishedAt";
|
|
44
44
|
/** A partial map for one locale — what overrides look like on the wire. */
|
|
45
45
|
type LocaleStrings = Partial<Record<StringKey, string>>;
|
|
46
46
|
/**
|
|
@@ -263,16 +263,6 @@ type ThemePreference = "auto" | "light" | "dark";
|
|
|
263
263
|
* whole.
|
|
264
264
|
*/
|
|
265
265
|
type ResponseMode = "streaming" | "buffered";
|
|
266
|
-
/**
|
|
267
|
-
* How the message list anchors as a new turn arrives.
|
|
268
|
-
*
|
|
269
|
-
* - `'bottom'` (default) — classic chat: stick to the newest content at the
|
|
270
|
-
* bottom, following the streamed reply while the reader is near the edge.
|
|
271
|
-
* - `'turn'` — ChatGPT-style: pin the visitor's new question to the TOP of the
|
|
272
|
-
* viewport so the answer streams into the empty space below it. The view
|
|
273
|
-
* doesn't chase the bottom; the reader stays anchored to where they asked.
|
|
274
|
-
*/
|
|
275
|
-
type ScrollAnchor = "bottom" | "turn";
|
|
276
266
|
/**
|
|
277
267
|
* Identifiers for every header action the widget can render.
|
|
278
268
|
*
|
|
@@ -859,8 +849,6 @@ interface BehaviorOptions {
|
|
|
859
849
|
showSources?: boolean;
|
|
860
850
|
/** Fade the message list at its scroll edges (gradient mask). Default `true`. */
|
|
861
851
|
scrollFade?: boolean;
|
|
862
|
-
/** How the list anchors a new turn: stick to bottom, or pin the question to top. Default `'bottom'`. */
|
|
863
|
-
scrollAnchor?: ScrollAnchor;
|
|
864
852
|
/** Show 👍/👎 feedback controls on assistant replies. Default `true`. */
|
|
865
853
|
enableMessageFeedback?: boolean;
|
|
866
854
|
}
|
|
@@ -1179,8 +1167,6 @@ interface ResolvedOptions {
|
|
|
1179
1167
|
showSources: boolean;
|
|
1180
1168
|
/** Fade the message list at its scroll edges (gradient mask). Default `true`. */
|
|
1181
1169
|
scrollFade: boolean;
|
|
1182
|
-
/** How the list anchors a new turn: stick to bottom, or pin the question to top. Default `'bottom'`. */
|
|
1183
|
-
scrollAnchor: ScrollAnchor;
|
|
1184
1170
|
/** Show 👍/👎 feedback controls on assistant replies. Default `true`. */
|
|
1185
1171
|
enableMessageFeedback: boolean;
|
|
1186
1172
|
features: Required<Omit<FeatureFlags, "tools">> & {
|
|
@@ -1410,13 +1396,6 @@ interface EventMap {
|
|
|
1410
1396
|
messageId: string;
|
|
1411
1397
|
value: FeedbackValue;
|
|
1412
1398
|
};
|
|
1413
|
-
/**
|
|
1414
|
-
* An assistant message scrolled into view for the first time (read tracking).
|
|
1415
|
-
* Fires once per message id. Anonymous — id only, never the text.
|
|
1416
|
-
*/
|
|
1417
|
-
messageSeen: {
|
|
1418
|
-
messageId: string;
|
|
1419
|
-
};
|
|
1420
1399
|
/** A content list (news / help / home block) rendered. */
|
|
1421
1400
|
contentView: {
|
|
1422
1401
|
section: string;
|