@helpai/elements 0.63.6 → 0.65.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 +1 -1
- package/elements-web-component.esm.js +25 -25
- package/elements-web-component.esm.js.map +3 -3
- package/elements.cjs.js +25 -25
- package/elements.cjs.js.map +3 -3
- package/elements.esm.js +25 -25
- package/elements.esm.js.map +3 -3
- package/elements.js +25 -25
- package/elements.js.map +3 -3
- package/index.d.ts +14 -11
- package/index.mjs +6 -6
- package/package.json +1 -1
- package/schema.json +6 -6
- package/schema.mjs +1 -1
- package/style.css +1 -1
- package/web-component.mjs +5 -5
package/index.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ interface ClientStorage {
|
|
|
41
41
|
* populated {@link Strings} map. UI components then read `strings.send` as a
|
|
42
42
|
* normal property access — no per-render lookup, no per-render allocation.
|
|
43
43
|
*/
|
|
44
|
-
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" | "talkToOperator" | "connectingOperator" | "noOperatorAvailable" | "chattingWithOperator" | "dateToday" | "dateYesterday" | "dateLastWeek" | "dateOlder" | "newConversation" | "dropZone" | "attachmentTooLarge" | "attachmentTooMany" | "attachmentMimeRejected" | "errorRetry" | "errorGeneric" | "errorRateLimited" | "loading" | "thinking" | "thoughts" | "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" | "showOptions" | "hideOptions" | "qtypeText" | "qtypeEmail" | "qtypePhone" | "qtypeNumber" | "qtypeDate" | "qtypeChooseOne" | "qtypeChooseAny" | "qtypeBoolean" | "confirmYes" | "confirmNo" | "approve" | "reject" | "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
|
+
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" | "talkToOperator" | "connectingOperator" | "noOperatorAvailable" | "chattingWithOperator" | "cancelOperatorRequest" | "dateToday" | "dateYesterday" | "dateLastWeek" | "dateOlder" | "newConversation" | "dropZone" | "attachmentTooLarge" | "attachmentTooMany" | "attachmentMimeRejected" | "errorRetry" | "errorGeneric" | "errorRateLimited" | "loading" | "thinking" | "thoughts" | "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" | "showOptions" | "hideOptions" | "qtypeText" | "qtypeEmail" | "qtypePhone" | "qtypeNumber" | "qtypeDate" | "qtypeChooseOne" | "qtypeChooseAny" | "qtypeBoolean" | "confirmYes" | "confirmNo" | "approve" | "reject" | "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";
|
|
45
45
|
/** A partial map for one locale — what overrides look like on the wire. */
|
|
46
46
|
type LocaleStrings = Partial<Record<StringKey, string>>;
|
|
47
47
|
/**
|
|
@@ -106,12 +106,13 @@ interface ToolRef {
|
|
|
106
106
|
/**
|
|
107
107
|
* Who is driving replies in a conversation — the widget mirrors the backend `controlMode`.
|
|
108
108
|
* - `ai-agent`: the AI agent answers (normal operation).
|
|
109
|
-
* - `awaiting_operator`: operator-control requested, AI
|
|
110
|
-
*
|
|
109
|
+
* - `awaiting_operator`: operator-control requested, the AI no longer answers — the turn routes to the
|
|
110
|
+
* operator — while waiting in the operator queue.
|
|
111
|
+
* - `operator`: a workspace operator took over and is replying.
|
|
111
112
|
*
|
|
112
113
|
* Carried on `HandshakeResponse.controlState`, `LoadConversationResponse.controlState` (resume +
|
|
113
|
-
* history-switch), and the `data-control-state` stream part (on the reply stream
|
|
114
|
-
*
|
|
114
|
+
* history-switch), and the `data-control-state` stream part (on the reply stream). Absent / unknown →
|
|
115
|
+
* treated as `"ai-agent"`.
|
|
115
116
|
*/
|
|
116
117
|
type ControlMode = "ai-agent" | "awaiting_operator" | "operator";
|
|
117
118
|
/**
|
|
@@ -805,18 +806,20 @@ interface SizeOptions {
|
|
|
805
806
|
/**
|
|
806
807
|
* Which size to open with on the **first** render.
|
|
807
808
|
*
|
|
808
|
-
* - `"auto"`
|
|
809
|
-
*
|
|
810
|
-
*
|
|
811
|
-
*
|
|
809
|
+
* - `"auto"` (**default**, also when omitted) — responsive by viewport: phones
|
|
810
|
+
* (`window.innerWidth < 640`) open `fullscreen` edge-to-edge, tablets
|
|
811
|
+
* (`640 … autoSizeBreakpoint`) open `normal`, desktop/laptop
|
|
812
|
+
* (`≥ autoSizeBreakpoint`) open `expanded`. Right for the device with no config;
|
|
813
|
+
* the backend can tune the desktop breakpoint without baking it into the frontend.
|
|
814
|
+
* - `"normal"` — force the compact panel everywhere.
|
|
812
815
|
* - `"expanded"` — force-start at the configured `expanded.width/height`.
|
|
813
816
|
* - `"fullscreen"` — force-start at viewport fill.
|
|
814
817
|
*
|
|
815
818
|
* Only applies to the very first mount. The user's last size is
|
|
816
819
|
* preserved across close → reopen; a page reload re-evaluates.
|
|
817
|
-
* Standalone mode always overrides to `fullscreen`.
|
|
820
|
+
* Standalone / page mode always overrides to `fullscreen`.
|
|
818
821
|
*
|
|
819
|
-
* Default: `"
|
|
822
|
+
* Default: `"auto"`.
|
|
820
823
|
*/
|
|
821
824
|
initialSize?: "auto" | "normal" | "expanded" | "fullscreen";
|
|
822
825
|
/**
|