@eshal-bot/chat-widget 0.2.36 → 0.2.37
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/{chat-widget-MarkdownRenderer-BJPjyfmH.esm.js → chat-widget-MarkdownRenderer-NLBiwbCl.esm.js} +1 -1
- package/dist/{chat-widget-index-CudNa4lx.esm.js → chat-widget-index-Byr1aRO0.esm.js} +2 -2
- package/dist/chat-widget.esm.js +1 -1
- package/dist/chat-widget.js +9 -5
- package/dist/chat-widget.min.js +2 -2
- package/dist/chat-widget.umd.js +2 -2
- package/package.json +1 -1
package/dist/chat-widget.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{S as default}from"./chat-widget-index-
|
|
1
|
+
export{S as default}from"./chat-widget-index-Byr1aRO0.esm.js";import"react";import"react-dom/client";import"react/jsx-runtime";import"react-dom";
|
package/dist/chat-widget.js
CHANGED
|
@@ -12276,14 +12276,16 @@
|
|
|
12276
12276
|
* only what reached the conversation another way: what a person sent from the
|
|
12277
12277
|
* Inbox (contentType human_reply, handoff_ack), the away and holding lines
|
|
12278
12278
|
* sent while the visitor waits for a person (handoff_wait, EV-4803; backend
|
|
12279
|
-
* services/widgetHandoffLines.ts)
|
|
12279
|
+
* services/widgetHandoffLines.ts), the code card an agent sends with Request
|
|
12280
|
+
* verification (verification_request; backend services/verificationRequest.ts)
|
|
12281
|
+
* and a Skill's reply to a staff
|
|
12280
12282
|
* turn (staffTurn: Instruct Skill, or a hand-back that resumes the Skill;
|
|
12281
12283
|
* backend services/staffTurn.ts). Dev, 15 Oct 2026: a Skill reply sent while
|
|
12282
12284
|
* the Testing lab was closed never showed there, because only a person's
|
|
12283
12285
|
* replies were merged. Mirrors packages/frontend/src/lib/messages/repliedOutsideStream.ts.
|
|
12284
12286
|
*/
|
|
12285
12287
|
function isRepliedOutsideStream(m) {
|
|
12286
|
-
return m?.contentType === 'human_reply' || m?.contentType === 'handoff_ack' || m?.contentType === 'handoff_wait' || m?.staffTurn === true;
|
|
12288
|
+
return m?.contentType === 'human_reply' || m?.contentType === 'handoff_ack' || m?.contentType === 'handoff_wait' || m?.contentType === 'verification_request' || m?.staffTurn === true;
|
|
12287
12289
|
}
|
|
12288
12290
|
|
|
12289
12291
|
/**
|
|
@@ -20157,7 +20159,9 @@
|
|
|
20157
20159
|
// Check if onboarding flow exists and is not completed
|
|
20158
20160
|
const hasOnboardingQuestions = onboardingQuestions && onboardingQuestions.length > 0;
|
|
20159
20161
|
const isOnboardingIncomplete = hasOnboardingQuestions && !onboardingCompleted;
|
|
20160
|
-
|
|
20162
|
+
// A pending code card blocks starting voice; a live session can still be
|
|
20163
|
+
// stopped.
|
|
20164
|
+
const isVoiceButtonDisabled = csatVisible || isConversationLoading || onboardingEnabled && isOnboardingIncomplete || voiceStatus === "connecting" || verificationPending && !isVoiceSessionActive;
|
|
20161
20165
|
|
|
20162
20166
|
// Determine tooltip message
|
|
20163
20167
|
const getTooltipMessage = () => {
|
|
@@ -20357,7 +20361,7 @@
|
|
|
20357
20361
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("button", {
|
|
20358
20362
|
type: "button",
|
|
20359
20363
|
onClick: () => fileInputRef.current && fileInputRef.current.click(),
|
|
20360
|
-
disabled: csatVisible || isConversationLoading || isLoading || attachmentsAtLimit,
|
|
20364
|
+
disabled: csatVisible || isConversationLoading || isLoading || attachmentsAtLimit || verificationPending,
|
|
20361
20365
|
"aria-label": attachmentsAtLimit ? paperclipLimitTooltip : "Attach file",
|
|
20362
20366
|
title: attachmentsAtLimit ? paperclipLimitTooltip : "Attach file",
|
|
20363
20367
|
className: `h-8 w-8 rounded-lg flex items-center justify-center transition-colors duration-200 ${isDark ? "text-gray-300 hover:bg-gray-700" : "text-gray-500 hover:bg-gray-200"} disabled:opacity-40 disabled:cursor-not-allowed`,
|
|
@@ -23201,7 +23205,7 @@
|
|
|
23201
23205
|
* value by its own test (that constant sat at 0.1.113 while this package was
|
|
23202
23206
|
* at 0.2.2 precisely because nothing enforced it - EV-2431).
|
|
23203
23207
|
*/
|
|
23204
|
-
const WIDGET_VERSION = '0.2.
|
|
23208
|
+
const WIDGET_VERSION = '0.2.37';
|
|
23205
23209
|
|
|
23206
23210
|
/**
|
|
23207
23211
|
* API utility functions
|