@eshal-bot/chat-widget 0.2.38 → 0.2.39
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-DBibTmXG.esm.js → chat-widget-MarkdownRenderer-CCfze57L.esm.js} +1 -1
- package/dist/chat-widget-index--xs5FWxs.esm.js +20 -0
- package/dist/chat-widget-markdown-chunk.js +92 -18
- package/dist/chat-widget-markdown-chunk.min.js +1 -1
- package/dist/chat-widget.esm.js +1 -1
- package/dist/chat-widget.js +22 -3
- package/dist/chat-widget.min.js +2 -2
- package/dist/chat-widget.umd.js +6 -6
- package/package.json +1 -1
- package/dist/chat-widget-index-nFrn-Uh5.esm.js +0 -20
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--xs5FWxs.esm.js";import"react";import"react-dom/client";import"react/jsx-runtime";import"react-dom";
|
package/dist/chat-widget.js
CHANGED
|
@@ -8099,6 +8099,12 @@
|
|
|
8099
8099
|
/** @param {{ conversationId: string, code: string }} payload */
|
|
8100
8100
|
const verifyVisitorCode = (payload, apiBaseUrl, getAuthToken) => postIdentity('verify', payload, apiBaseUrl, getAuthToken);
|
|
8101
8101
|
|
|
8102
|
+
/** EV-4942: the visitor closed the card; the agent sees the cancel. */
|
|
8103
|
+
const cancelVisitorVerification = (payload, apiBaseUrl, getAuthToken) => postIdentity('cancel', payload, apiBaseUrl, getAuthToken);
|
|
8104
|
+
|
|
8105
|
+
/** EV-4939: the method's settings; for SMS, the calling codes allowed. */
|
|
8106
|
+
const visitorIdentityConfig = (payload, apiBaseUrl, getAuthToken) => postIdentity('config', payload, apiBaseUrl, getAuthToken);
|
|
8107
|
+
|
|
8102
8108
|
/** Delivery of the pending code ("sent", "delivered", "failed" or null). */
|
|
8103
8109
|
const visitorCodeStatus = (payload, apiBaseUrl, getAuthToken) => postIdentity('status', payload, apiBaseUrl, getAuthToken);
|
|
8104
8110
|
|
|
@@ -9301,6 +9307,9 @@
|
|
|
9301
9307
|
verifyResendIn: "Resend in {seconds} s",
|
|
9302
9308
|
verifyResend: "Send a new code",
|
|
9303
9309
|
verifyDifferent: "Use a different address",
|
|
9310
|
+
verifyDifferentNumber: "Use a different number",
|
|
9311
|
+
verifyCountryNotAllowed: "We can't send codes to numbers in this country. Try another number.",
|
|
9312
|
+
verifyLockedFor: "Try again in {time}",
|
|
9304
9313
|
verifyDone: "Verified as {target}",
|
|
9305
9314
|
verifyResumeMessage: "I've confirmed it's me.",
|
|
9306
9315
|
verifyTriesLeft: "That code doesn't match. {count} tries left.",
|
|
@@ -22015,6 +22024,12 @@
|
|
|
22015
22024
|
}, apiBaseUrl, getAuthToken),
|
|
22016
22025
|
status: () => visitorCodeStatus({
|
|
22017
22026
|
conversationId
|
|
22027
|
+
}, apiBaseUrl, getAuthToken),
|
|
22028
|
+
cancel: () => cancelVisitorVerification({
|
|
22029
|
+
conversationId
|
|
22030
|
+
}, apiBaseUrl, getAuthToken),
|
|
22031
|
+
config: () => visitorIdentityConfig({
|
|
22032
|
+
conversationId
|
|
22018
22033
|
}, apiBaseUrl, getAuthToken)
|
|
22019
22034
|
} : null, [t, apiBaseUrl, conversationId, getAuthToken, setVerificationPending]);
|
|
22020
22035
|
|
|
@@ -22060,8 +22075,12 @@
|
|
|
22060
22075
|
const verificationComplete = index && typeof index === "object" && index.verificationComplete ? index.verificationComplete : null;
|
|
22061
22076
|
if (onPromptSuggestionClick) onPromptSuggestionClick(text);else if (toolConfirmation) onDirectSend?.(text, undefined, {
|
|
22062
22077
|
toolConfirmation
|
|
22063
|
-
});
|
|
22064
|
-
|
|
22078
|
+
});
|
|
22079
|
+
// EV-4942: the resume is sent for the held turn but not drawn as a
|
|
22080
|
+
// visitor bubble: the card already says "Verified as...".
|
|
22081
|
+
else if (verificationComplete) onDirectSend?.(text, undefined, {
|
|
22082
|
+
verificationComplete,
|
|
22083
|
+
skipUserAppend: true
|
|
22065
22084
|
});else onDirectSend?.(text);
|
|
22066
22085
|
}, [onPromptSuggestionClick, onDirectSend, reportChipClick]);
|
|
22067
22086
|
|
|
@@ -23219,7 +23238,7 @@
|
|
|
23219
23238
|
* value by its own test (that constant sat at 0.1.113 while this package was
|
|
23220
23239
|
* at 0.2.2 precisely because nothing enforced it - EV-2431).
|
|
23221
23240
|
*/
|
|
23222
|
-
const WIDGET_VERSION = '0.2.
|
|
23241
|
+
const WIDGET_VERSION = '0.2.39';
|
|
23223
23242
|
|
|
23224
23243
|
/**
|
|
23225
23244
|
* API utility functions
|