@helpai/elements 0.14.2 → 0.15.0
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 +5 -5
- package/elements-web-component.esm.js +7 -7
- package/elements-web-component.esm.js.map +4 -4
- package/elements.cjs.js +7 -7
- package/elements.cjs.js.map +4 -4
- package/elements.esm.js +7 -7
- package/elements.esm.js.map +4 -4
- package/elements.js +7 -7
- package/elements.js.map +4 -4
- package/index.d.ts +6 -6
- package/index.mjs +227 -216
- package/package.json +1 -1
- package/schema.d.ts +51 -51
- package/schema.json +10 -10
- package/schema.mjs +5 -5
- package/web-component.mjs +226 -215
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Asset, B as BlocksConfig, C as ConnectionConfig, a as ConnectionConfigPartial, L as Link, S as ServerConfig, b as SiteConfig, c as StartConversationResponse, W as WidgetConfig, d as WidgetConfigPartial, e as WidgetSettings, f as WidgetSettingsPartial } from './deployment-
|
|
1
|
+
export { A as Asset, B as BlocksConfig, C as ConnectionConfig, a as ConnectionConfigPartial, L as Link, S as ServerConfig, b as SiteConfig, c as StartConversationResponse, W as WidgetConfig, d as WidgetConfigPartial, e as WidgetSettings, f as WidgetSettingsPartial } from './deployment-P3CoZ-BV.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" | "panelTitle" | "composerPlaceholder" | "send" | "stop" | "attach" | "micStart" | "micStop" | "micUnsupported" | "expand" | "collapse" | "fullscreen" | "exitFullscreen" | "resizeHandle" | "scrollToBottom" | "popOut" | "close" | "moreActions" | "soundOn" | "soundOff" | "language" | "theme" | "themeAuto" | "themeLight" | "themeDark" | "history" | "historyTitle" | "historyEmpty" | "historyLoading" | "
|
|
43
|
+
type StringKey = "launcherOpen" | "panelTitle" | "composerPlaceholder" | "send" | "stop" | "attach" | "micStart" | "micStop" | "micUnsupported" | "expand" | "collapse" | "fullscreen" | "exitFullscreen" | "resizeHandle" | "scrollToBottom" | "popOut" | "close" | "moreActions" | "soundOn" | "soundOff" | "language" | "theme" | "themeAuto" | "themeLight" | "themeDark" | "history" | "historyTitle" | "historyEmpty" | "historyLoading" | "historyBack" | "conversationLoading" | "conversationClosed" | "startNewConversation" | "dateToday" | "dateYesterday" | "dateLastWeek" | "dateOlder" | "newConversation" | "dropZone" | "attachmentTooLarge" | "attachmentTooMany" | "attachmentMimeRejected" | "errorRetry" | "errorGeneric" | "errorRateLimited" | "loading" | "thinking" | "thoughts" | "usedTool" | "collapseSidebar" | "expandSidebar" | "formSubmit" | "formSkip" | "formRequired" | "formInvalidEmail" | "formInvalidTel" | "formInvalidUrl" | "formInvalidNumber" | "formTooShort" | "formTooLong" | "formNumberTooSmall" | "formNumberTooLarge" | "formPatternMismatch" | "formChooseAtLeast" | "formChooseAtMost" | "formOther" | "formOtherPlaceholder" | "inputRequired" | "inputSubmit" | "inputSkip" | "inputSubmitted" | "approvalRequired" | "approve" | "reject" | "approved" | "rejected" | "approvalReason" | "stepNoLongerActive" | "tabHome" | "tabConversations" | "tabHelp" | "tabNews" | "modulesEmpty" | "moduleBack" | "contentLoading" | "homeGreeting" | "homeGreetingNamed" | "homeGreetingLead" | "homeSearchPlaceholder" | "homeContentTitle" | "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
|
/**
|
|
@@ -683,7 +683,7 @@ interface ModuleStatus {
|
|
|
683
683
|
}
|
|
684
684
|
/**
|
|
685
685
|
* `home` layout config — flat feature flags (no block authoring). The Home tab
|
|
686
|
-
* is assembled from these in a fixed order: greeting → search → recent
|
|
686
|
+
* is assembled from these in a fixed order: greeting → search → recent conversation
|
|
687
687
|
* → status → a content list (from the tab's `contentTags`, titled `contentBlockTitle`).
|
|
688
688
|
*/
|
|
689
689
|
interface HomeConfig {
|
|
@@ -692,7 +692,7 @@ interface HomeConfig {
|
|
|
692
692
|
greetingText?: string;
|
|
693
693
|
userAvatars?: ModuleAvatar[];
|
|
694
694
|
showSearchBar?: boolean;
|
|
695
|
-
|
|
695
|
+
showRecentConversations?: boolean;
|
|
696
696
|
status?: ModuleStatus;
|
|
697
697
|
contentBlockTitle?: string;
|
|
698
698
|
}
|
|
@@ -837,7 +837,7 @@ interface BehaviorOptions {
|
|
|
837
837
|
showToolCalls?: boolean;
|
|
838
838
|
/**
|
|
839
839
|
* Override the URL the `popOut` action opens (carries
|
|
840
|
-
* `?
|
|
840
|
+
* `?conversation=<id>&widgetId=<id>`). Falls back to the brand's
|
|
841
841
|
* `BRAND.standaloneUrl` baked at build time. Server-pushable.
|
|
842
842
|
*/
|
|
843
843
|
popOutUrl?: string;
|
|
@@ -1248,7 +1248,7 @@ interface EventMap {
|
|
|
1248
1248
|
/** Clear / new-conversation requested. */
|
|
1249
1249
|
clear: void;
|
|
1250
1250
|
/** User picked a chat from the history pane / sidebar. */
|
|
1251
|
-
|
|
1251
|
+
selectConversation: {
|
|
1252
1252
|
conversationId: string;
|
|
1253
1253
|
};
|
|
1254
1254
|
/** User clicked a suggested-message chip. */
|