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.
@@ -1023,7 +1023,7 @@ const getTotalUnreadConversationsCount = async () => {
1023
1023
  async function bootstrapWebChat(host, generation) {
1024
1024
  try {
1025
1025
  try {
1026
- host.updateLoading(10, 'Getting device ID...');
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, 'Initializing chat SDK...');
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, 'Setting up MQTT client...');
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, 'Getting user details...');
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, 'Loading conversation...');
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 messages...');
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, 'Loading conversations...');
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, 'Complete!');
1116
+ host.updateLoading(100, 'Almost ready…');
1117
1117
  }
1118
1118
  catch (error) {
1119
1119
  console.error('Critical initialization error:', error);