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
|
@@ -1023,7 +1023,7 @@ const getTotalUnreadConversationsCount = async () => {
|
|
|
1023
1023
|
async function bootstrapWebChat(host, generation) {
|
|
1024
1024
|
try {
|
|
1025
1025
|
try {
|
|
1026
|
-
host.updateLoading(10, '
|
|
1026
|
+
host.updateLoading(10, 'Preparing secure session…');
|
|
1027
1027
|
const deviceId = await helpers.getDeviceID();
|
|
1028
1028
|
if (generation !== host.initGeneration)
|
|
1029
1029
|
return;
|
|
@@ -1033,7 +1033,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1033
1033
|
console.error('Error getting device ID:', error);
|
|
1034
1034
|
}
|
|
1035
1035
|
try {
|
|
1036
|
-
host.updateLoading(25, '
|
|
1036
|
+
host.updateLoading(25, 'Loading chat engine…');
|
|
1037
1037
|
initializeChatSdk({
|
|
1038
1038
|
baseUrl: host.baseUrl,
|
|
1039
1039
|
licenseKey: host.licenseKey,
|
|
@@ -1049,7 +1049,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1049
1049
|
throw new Error('Failed to initialize chat SDK');
|
|
1050
1050
|
}
|
|
1051
1051
|
try {
|
|
1052
|
-
host.updateLoading(40, '
|
|
1052
|
+
host.updateLoading(40, 'Connecting realtime…');
|
|
1053
1053
|
await host.setupMqttClient();
|
|
1054
1054
|
}
|
|
1055
1055
|
catch (mqttError) {
|
|
@@ -1058,7 +1058,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1058
1058
|
if (generation !== host.initGeneration)
|
|
1059
1059
|
return;
|
|
1060
1060
|
try {
|
|
1061
|
-
host.updateLoading(55, '
|
|
1061
|
+
host.updateLoading(55, 'Fetching users…');
|
|
1062
1062
|
await host.getUserDetails();
|
|
1063
1063
|
}
|
|
1064
1064
|
catch (userError) {
|
|
@@ -1066,7 +1066,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
if (host.initialConversationIdFromURL) {
|
|
1068
1068
|
try {
|
|
1069
|
-
host.updateLoading(70, '
|
|
1069
|
+
host.updateLoading(70, 'Opening conversation…');
|
|
1070
1070
|
host.selectedConversationId = host.initialConversationIdFromURL;
|
|
1071
1071
|
const isGroupCast = new URLSearchParams(window.location.search).has('groupcast');
|
|
1072
1072
|
if (isGroupCast) {
|
|
@@ -1089,7 +1089,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1089
1089
|
if (generation !== host.initGeneration)
|
|
1090
1090
|
return;
|
|
1091
1091
|
try {
|
|
1092
|
-
host.updateLoading(85, 'Checking unread
|
|
1092
|
+
host.updateLoading(85, 'Checking unread…');
|
|
1093
1093
|
const unreadCount = await getTotalUnreadConversationsCount();
|
|
1094
1094
|
unreadCountStore.updateTotalUnreadCount(unreadCount);
|
|
1095
1095
|
host.unreadConversationsCount = unreadCount;
|
|
@@ -1105,7 +1105,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1105
1105
|
console.error('Error fetching unread conversations:', unreadError);
|
|
1106
1106
|
}
|
|
1107
1107
|
try {
|
|
1108
|
-
host.updateLoading(95, '
|
|
1108
|
+
host.updateLoading(95, 'Syncing conversations…');
|
|
1109
1109
|
await host.getConversations();
|
|
1110
1110
|
}
|
|
1111
1111
|
catch (conversationsError) {
|
|
@@ -1113,7 +1113,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
host.checkMobileView();
|
|
1115
1115
|
window.addEventListener('resize', host.boundCheckMobileView);
|
|
1116
|
-
host.updateLoading(100, '
|
|
1116
|
+
host.updateLoading(100, 'Almost ready…');
|
|
1117
1117
|
}
|
|
1118
1118
|
catch (error) {
|
|
1119
1119
|
console.error('Critical initialization error:', error);
|