@hivegpt/hiveai-angular 0.0.252 → 0.0.254
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/bundles/hivegpt-hiveai-angular.umd.js +14 -7
- package/bundles/hivegpt-hiveai-angular.umd.js.map +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js.map +1 -1
- package/esm2015/lib/components/bot-html-editor/bot-html-editor.component.js +1 -2
- package/esm2015/lib/components/chat-drawer/chat-drawer.component.js +15 -7
- package/fesm2015/hivegpt-hiveai-angular.js +14 -7
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/hivegpt-hiveai-angular.metadata.json +1 -1
- package/lib/components/bot-html-editor/bot-html-editor.component.d.ts +2 -1
- package/lib/components/bot-html-editor/bot-html-editor.component.d.ts.map +1 -1
- package/lib/components/chat-drawer/chat-drawer.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -846,37 +846,37 @@
|
|
|
846
846
|
if (online_search_terms && Array.isArray(online_search_terms)) {
|
|
847
847
|
console.log('Online Search Terms:', online_search_terms);
|
|
848
848
|
currentChatMessage.searchTerms = online_search_terms;
|
|
849
|
-
_this.cdr.
|
|
849
|
+
_this.cdr.detectChanges();
|
|
850
850
|
}
|
|
851
851
|
if (web_results && Array.isArray(web_results)) {
|
|
852
852
|
console.log('Web Results:', web_results);
|
|
853
853
|
currentChatMessage.sourcesList = web_results;
|
|
854
854
|
currentChatMessage.displayedSources = web_results === null || web_results === void 0 ? void 0 : web_results.slice(0, 3); // First 3 cards
|
|
855
855
|
currentChatMessage.remainingSources = web_results === null || web_results === void 0 ? void 0 : web_results.slice(3); // Remaining items
|
|
856
|
-
_this.cdr.
|
|
856
|
+
_this.cdr.detectChanges();
|
|
857
857
|
}
|
|
858
858
|
if (answer) {
|
|
859
859
|
_this.isChatingWithAi = false;
|
|
860
860
|
console.log('Answer:', answer);
|
|
861
861
|
currentChatMessage.message =
|
|
862
862
|
_this.processMessageForDisplay(answer);
|
|
863
|
-
_this.cdr.
|
|
863
|
+
_this.cdr.detectChanges();
|
|
864
864
|
_this.scrollToBottom();
|
|
865
865
|
}
|
|
866
866
|
if (graphs && Array.isArray(graphs)) {
|
|
867
867
|
console.log('Graphs:', graphs);
|
|
868
868
|
currentChatMessage.graphs = graphs;
|
|
869
|
-
_this.cdr.
|
|
869
|
+
_this.cdr.detectChanges();
|
|
870
870
|
}
|
|
871
871
|
if (execution_graphs && Array.isArray(execution_graphs)) {
|
|
872
872
|
console.log('Execution Graphs:', execution_graphs);
|
|
873
873
|
currentChatMessage.executionGraphs = execution_graphs;
|
|
874
|
-
_this.cdr.
|
|
874
|
+
_this.cdr.detectChanges();
|
|
875
875
|
}
|
|
876
876
|
if (suggestions && Array.isArray(suggestions)) {
|
|
877
877
|
console.log('suggestions:', suggestions);
|
|
878
878
|
currentChatMessage.relatedListItems = suggestions;
|
|
879
|
-
_this.cdr.
|
|
879
|
+
_this.cdr.detectChanges();
|
|
880
880
|
// Process online search terms as needed
|
|
881
881
|
}
|
|
882
882
|
// Add any other fields and their processing here
|
|
@@ -1520,20 +1520,28 @@
|
|
|
1520
1520
|
};
|
|
1521
1521
|
ChatDrawerComponent.prototype.handleEditorClick = function (index) {
|
|
1522
1522
|
var _this = this;
|
|
1523
|
+
debugger;
|
|
1523
1524
|
if (this.currentIndexForEditor == -1) {
|
|
1524
1525
|
this.currentIndexForEditor = index;
|
|
1526
|
+
debugger;
|
|
1525
1527
|
this.currentMessageForEditor = this.chatLog[index].message;
|
|
1528
|
+
console.log("HTML1");
|
|
1529
|
+
console.log(this.currentMessageForEditor);
|
|
1526
1530
|
this.cdr.detectChanges();
|
|
1527
1531
|
}
|
|
1528
1532
|
else {
|
|
1529
1533
|
if (this.currentIndexForEditor == index) {
|
|
1530
1534
|
this.currentMessageForEditor += this.chatLog[index].message;
|
|
1531
1535
|
this.cdr.detectChanges();
|
|
1536
|
+
console.log("HTML2");
|
|
1537
|
+
console.log(this.currentMessageForEditor);
|
|
1532
1538
|
}
|
|
1533
1539
|
else {
|
|
1534
1540
|
this.currentIndexForEditor = index;
|
|
1535
1541
|
this.currentMessageForEditor = this.chatLog[index].message;
|
|
1536
1542
|
this.cdr.detectChanges();
|
|
1543
|
+
console.log("HTML3");
|
|
1544
|
+
console.log(this.currentMessageForEditor);
|
|
1537
1545
|
}
|
|
1538
1546
|
}
|
|
1539
1547
|
this.chatLog[index].isEditor = true;
|
|
@@ -2138,7 +2146,6 @@
|
|
|
2138
2146
|
|
|
2139
2147
|
var BotHtmlEditorComponent = /** @class */ (function () {
|
|
2140
2148
|
function BotHtmlEditorComponent() {
|
|
2141
|
-
this.editorContent = '';
|
|
2142
2149
|
this.quillConfig = {
|
|
2143
2150
|
toolbar: [
|
|
2144
2151
|
[{ header: '1' }, { header: '2' }, { font: [] }],
|