@hivegpt/hiveai-angular 0.0.195 → 0.0.197

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.
@@ -807,6 +807,7 @@
807
807
  if ((_a = res === null || res === void 0 ? void 0 : res.m) === null || _a === void 0 ? void 0 : _a.OtherFields) {
808
808
  var _e = (_b = res === null || res === void 0 ? void 0 : res.m) === null || _b === void 0 ? void 0 : _b.OtherFields, conversation_id = _e.conversation_id, bot_id = _e.bot_id, message_id_1 = _e.message_id, answer = _e.answer, web_results = _e.web_results, financial_graphs = _e.financial_graphs, execution_graphs = _e.execution_graphs, online_search_terms = _e.online_search_terms, suggestions = _e.suggestions;
809
809
  var currentChatMessage = _this.chatLog.find(function (p) { return p._id == message_id_1; });
810
+ _this.showFeedBackIconsIndex = _this.chatLog.length - 1;
810
811
  if (!currentChatMessage) {
811
812
  currentChatMessage = {
812
813
  _id: message_id_1,
@@ -819,37 +820,36 @@
819
820
  if (online_search_terms && Array.isArray(online_search_terms)) {
820
821
  console.log('Online Search Terms:', online_search_terms);
821
822
  currentChatMessage.searchTerms = online_search_terms;
822
- _this.cdr.detectChanges();
823
+ _this.cdr.markForCheck();
823
824
  }
824
825
  if (web_results && Array.isArray(web_results)) {
825
826
  console.log('Web Results:', web_results);
826
827
  currentChatMessage.sourcesList = web_results;
827
828
  currentChatMessage.displayedSources = web_results === null || web_results === void 0 ? void 0 : web_results.slice(0, 3); // First 3 cards
828
829
  currentChatMessage.remainingSources = web_results === null || web_results === void 0 ? void 0 : web_results.slice(3); // Remaining items
829
- _this.cdr.detectChanges();
830
+ _this.cdr.markForCheck();
830
831
  }
831
832
  if (answer) {
832
833
  _this.isChatingWithAi = false;
833
834
  console.log('Answer:', answer);
834
835
  currentChatMessage.message = _this.processMessageForDisplay(answer);
835
- _this.showFeedBackIconsIndex = _this.chatLog.length - 1;
836
836
  _this.cdr.markForCheck();
837
837
  _this.scrollToBottom();
838
838
  }
839
839
  if (financial_graphs && Array.isArray(financial_graphs)) {
840
840
  console.log('Financial Graphs:', financial_graphs);
841
841
  currentChatMessage.financialGraphs = financial_graphs;
842
- _this.cdr.detectChanges();
842
+ _this.cdr.markForCheck();
843
843
  }
844
844
  if (execution_graphs && Array.isArray(execution_graphs)) {
845
845
  console.log('Execution Graphs:', execution_graphs);
846
846
  currentChatMessage.executionGraphs = execution_graphs;
847
- _this.cdr.detectChanges();
847
+ _this.cdr.markForCheck();
848
848
  }
849
849
  if (suggestions && Array.isArray(suggestions)) {
850
850
  console.log('suggestions:', suggestions);
851
851
  currentChatMessage.relatedListItems = suggestions;
852
- _this.cdr.detectChanges();
852
+ _this.cdr.markForCheck();
853
853
  // Process online search terms as needed
854
854
  }
855
855
  // Add any other fields and their processing here