isometrik-plugin-chat-sdk 1.3.16 → 1.3.17
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/cjs/login-page_3.cjs.entry.js +8 -8
- package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/bootstrap.js +8 -8
- package/dist/collection/components/my-component/web-chat/bootstrap.js.map +1 -1
- package/dist/components/WebChat.js +8 -8
- package/dist/components/WebChat.js.map +1 -1
- package/dist/esm/login-page_3.entry.js +8 -8
- package/dist/esm/login-page_3.entry.js.map +1 -1
- package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
- package/dist/isometrik-webchat/p-3cbabed7.entry.js +2 -0
- package/dist/isometrik-webchat/p-3cbabed7.entry.js.map +1 -0
- package/package.json +1 -1
- package/dist/isometrik-webchat/p-4fd74f21.entry.js +0 -2
- package/dist/isometrik-webchat/p-4fd74f21.entry.js.map +0 -1
|
@@ -1019,7 +1019,7 @@ const getTotalUnreadConversationsCount = async () => {
|
|
|
1019
1019
|
async function bootstrapWebChat(host, generation) {
|
|
1020
1020
|
try {
|
|
1021
1021
|
try {
|
|
1022
|
-
host.updateLoading(10, '
|
|
1022
|
+
host.updateLoading(10, 'Preparing secure session…');
|
|
1023
1023
|
const deviceId = await getDeviceID();
|
|
1024
1024
|
if (generation !== host.initGeneration)
|
|
1025
1025
|
return;
|
|
@@ -1029,7 +1029,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1029
1029
|
console.error('Error getting device ID:', error);
|
|
1030
1030
|
}
|
|
1031
1031
|
try {
|
|
1032
|
-
host.updateLoading(25, '
|
|
1032
|
+
host.updateLoading(25, 'Loading chat engine…');
|
|
1033
1033
|
initializeChatSdk({
|
|
1034
1034
|
baseUrl: host.baseUrl,
|
|
1035
1035
|
licenseKey: host.licenseKey,
|
|
@@ -1045,7 +1045,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1045
1045
|
throw new Error('Failed to initialize chat SDK');
|
|
1046
1046
|
}
|
|
1047
1047
|
try {
|
|
1048
|
-
host.updateLoading(40, '
|
|
1048
|
+
host.updateLoading(40, 'Connecting realtime…');
|
|
1049
1049
|
await host.setupMqttClient();
|
|
1050
1050
|
}
|
|
1051
1051
|
catch (mqttError) {
|
|
@@ -1054,7 +1054,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1054
1054
|
if (generation !== host.initGeneration)
|
|
1055
1055
|
return;
|
|
1056
1056
|
try {
|
|
1057
|
-
host.updateLoading(55, '
|
|
1057
|
+
host.updateLoading(55, 'Fetching users…');
|
|
1058
1058
|
await host.getUserDetails();
|
|
1059
1059
|
}
|
|
1060
1060
|
catch (userError) {
|
|
@@ -1062,7 +1062,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
if (host.initialConversationIdFromURL) {
|
|
1064
1064
|
try {
|
|
1065
|
-
host.updateLoading(70, '
|
|
1065
|
+
host.updateLoading(70, 'Opening conversation…');
|
|
1066
1066
|
host.selectedConversationId = host.initialConversationIdFromURL;
|
|
1067
1067
|
const isGroupCast = new URLSearchParams(window.location.search).has('groupcast');
|
|
1068
1068
|
if (isGroupCast) {
|
|
@@ -1085,7 +1085,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1085
1085
|
if (generation !== host.initGeneration)
|
|
1086
1086
|
return;
|
|
1087
1087
|
try {
|
|
1088
|
-
host.updateLoading(85, 'Checking unread
|
|
1088
|
+
host.updateLoading(85, 'Checking unread…');
|
|
1089
1089
|
const unreadCount = await getTotalUnreadConversationsCount();
|
|
1090
1090
|
unreadCountStore.updateTotalUnreadCount(unreadCount);
|
|
1091
1091
|
host.unreadConversationsCount = unreadCount;
|
|
@@ -1101,7 +1101,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1101
1101
|
console.error('Error fetching unread conversations:', unreadError);
|
|
1102
1102
|
}
|
|
1103
1103
|
try {
|
|
1104
|
-
host.updateLoading(95, '
|
|
1104
|
+
host.updateLoading(95, 'Syncing conversations…');
|
|
1105
1105
|
await host.getConversations();
|
|
1106
1106
|
}
|
|
1107
1107
|
catch (conversationsError) {
|
|
@@ -1109,7 +1109,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
host.checkMobileView();
|
|
1111
1111
|
window.addEventListener('resize', host.boundCheckMobileView);
|
|
1112
|
-
host.updateLoading(100, '
|
|
1112
|
+
host.updateLoading(100, 'Almost ready…');
|
|
1113
1113
|
}
|
|
1114
1114
|
catch (error) {
|
|
1115
1115
|
console.error('Critical initialization error:', error);
|