@hivegpt/hiveai-angular 0.0.218 → 0.0.219
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 +5 -3
- 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/chat-drawer/chat-drawer.component.js +5 -4
- package/fesm2015/hivegpt-hiveai-angular.js +4 -3
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/lib/components/chat-drawer/chat-drawer.component.d.ts +1 -1
- package/lib/components/chat-drawer/chat-drawer.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
this.fetchDataFor(this.msg, this.chat);
|
|
781
781
|
}
|
|
782
782
|
else {
|
|
783
|
-
this.fetchData();
|
|
783
|
+
this.fetchData(this.msg);
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
786
|
}
|
|
@@ -1109,10 +1109,11 @@
|
|
|
1109
1109
|
this.fetchData();
|
|
1110
1110
|
this.scrollToBottom();
|
|
1111
1111
|
};
|
|
1112
|
-
ChatDrawerComponent.prototype.fetchData = function () {
|
|
1112
|
+
ChatDrawerComponent.prototype.fetchData = function (msg) {
|
|
1113
1113
|
var _this = this;
|
|
1114
|
+
if (msg === void 0) { msg = null; }
|
|
1114
1115
|
var _a;
|
|
1115
|
-
this.input = (_a = this.input) === null || _a === void 0 ? void 0 : _a.trim();
|
|
1116
|
+
this.input = msg || ((_a = this.input) === null || _a === void 0 ? void 0 : _a.trim());
|
|
1116
1117
|
if (!this.input || this.loading) {
|
|
1117
1118
|
return;
|
|
1118
1119
|
}
|
|
@@ -1154,6 +1155,7 @@
|
|
|
1154
1155
|
.then(function (response) {
|
|
1155
1156
|
if (response.status === 401 || response.status === 403) {
|
|
1156
1157
|
_this.is401 = true;
|
|
1158
|
+
_this.msg = _this.input;
|
|
1157
1159
|
_this.refreshToken.emit();
|
|
1158
1160
|
}
|
|
1159
1161
|
return response.json(); // Continue processing the response
|