@eshal-bot/chat-widget 0.2.38 → 0.2.40
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-H7vRRyDu.esm.js} +1 -1
- package/dist/chat-widget-index-BubaEkmK.esm.js +20 -0
- package/dist/chat-widget-markdown-chunk.js +102 -19
- package/dist/chat-widget-markdown-chunk.min.js +1 -1
- package/dist/chat-widget.esm.js +1 -1
- package/dist/chat-widget.js +23 -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-BubaEkmK.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,9 +9307,13 @@
|
|
|
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.",
|
|
9316
|
+
verifyTryLeft: "That code doesn't match. 1 try left.",
|
|
9307
9317
|
verifyGenericError: "Something went wrong. Try again.",
|
|
9308
9318
|
verifyInputBlocked: "Enter your code above to continue",
|
|
9309
9319
|
verifyCancel: "Cancel",
|
|
@@ -22015,6 +22025,12 @@
|
|
|
22015
22025
|
}, apiBaseUrl, getAuthToken),
|
|
22016
22026
|
status: () => visitorCodeStatus({
|
|
22017
22027
|
conversationId
|
|
22028
|
+
}, apiBaseUrl, getAuthToken),
|
|
22029
|
+
cancel: () => cancelVisitorVerification({
|
|
22030
|
+
conversationId
|
|
22031
|
+
}, apiBaseUrl, getAuthToken),
|
|
22032
|
+
config: () => visitorIdentityConfig({
|
|
22033
|
+
conversationId
|
|
22018
22034
|
}, apiBaseUrl, getAuthToken)
|
|
22019
22035
|
} : null, [t, apiBaseUrl, conversationId, getAuthToken, setVerificationPending]);
|
|
22020
22036
|
|
|
@@ -22060,8 +22076,12 @@
|
|
|
22060
22076
|
const verificationComplete = index && typeof index === "object" && index.verificationComplete ? index.verificationComplete : null;
|
|
22061
22077
|
if (onPromptSuggestionClick) onPromptSuggestionClick(text);else if (toolConfirmation) onDirectSend?.(text, undefined, {
|
|
22062
22078
|
toolConfirmation
|
|
22063
|
-
});
|
|
22064
|
-
|
|
22079
|
+
});
|
|
22080
|
+
// EV-4942: the resume is sent for the held turn but not drawn as a
|
|
22081
|
+
// visitor bubble: the card already says "Verified as...".
|
|
22082
|
+
else if (verificationComplete) onDirectSend?.(text, undefined, {
|
|
22083
|
+
verificationComplete,
|
|
22084
|
+
skipUserAppend: true
|
|
22065
22085
|
});else onDirectSend?.(text);
|
|
22066
22086
|
}, [onPromptSuggestionClick, onDirectSend, reportChipClick]);
|
|
22067
22087
|
|
|
@@ -23219,7 +23239,7 @@
|
|
|
23219
23239
|
* value by its own test (that constant sat at 0.1.113 while this package was
|
|
23220
23240
|
* at 0.2.2 precisely because nothing enforced it - EV-2431).
|
|
23221
23241
|
*/
|
|
23222
|
-
const WIDGET_VERSION = '0.2.
|
|
23242
|
+
const WIDGET_VERSION = '0.2.40';
|
|
23223
23243
|
|
|
23224
23244
|
/**
|
|
23225
23245
|
* API utility functions
|