@hivegpt/hiveai-angular 0.0.275 → 0.0.277
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 +10 -8
- 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 +3 -3
- package/esm2015/lib/components/chat-drawer/chat-drawer.component.js +8 -2
- package/esm2015/lib/components/socket-service.service.js +2 -6
- package/fesm2015/hivegpt-hiveai-angular.js +10 -8
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/lib/components/chat-drawer/chat-drawer.component.d.ts.map +1 -1
- package/lib/components/socket-service.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -628,11 +628,7 @@
|
|
|
628
628
|
var commonNotification = 'commonNotification';
|
|
629
629
|
var groupId = "Hive_AI_Notifs_" + botId + "_" + conversation_id;
|
|
630
630
|
// Remove any pre-existing listeners for commonNotification
|
|
631
|
-
this.notificationSocket.removeAllListeners(commonNotification);
|
|
632
|
-
// Leave the existing group to ensure no previous socket data remains
|
|
633
|
-
this.notificationSocket.emit('leaveGroup', { groupId: groupId });
|
|
634
|
-
console.log('Registering user-specific Hive socket with botId:', botId);
|
|
635
|
-
console.log('and conversation_id:', conversation_id);
|
|
631
|
+
// this.notificationSocket.removeAllListeners(commonNotification);
|
|
636
632
|
// Join the group again with updated botId and conversation_id
|
|
637
633
|
this.notificationSocket.emit('joinData', { groupId: groupId });
|
|
638
634
|
// Re-register for common notifications
|
|
@@ -1837,7 +1833,9 @@
|
|
|
1837
1833
|
return rxjs.of(res);
|
|
1838
1834
|
}), operators.catchError(function (error) {
|
|
1839
1835
|
console.error('Error fetching chatbot config DJ: ', error);
|
|
1840
|
-
|
|
1836
|
+
_this.isDocInEditMode = false;
|
|
1837
|
+
_this.isContentLoaded = true;
|
|
1838
|
+
if ((error === null || error === void 0 ? void 0 : error.status) == 404) {
|
|
1841
1839
|
console.log('dash');
|
|
1842
1840
|
_this.isDocInEditMode = false;
|
|
1843
1841
|
_this.isContentLoaded = true;
|
|
@@ -1919,6 +1917,10 @@
|
|
|
1919
1917
|
this.editorsDrawer.open();
|
|
1920
1918
|
this.isDrawerOpen = true;
|
|
1921
1919
|
this.cdr.detectChanges();
|
|
1920
|
+
var button = document.getElementById('botcloseplaygroundbutton');
|
|
1921
|
+
if (button) {
|
|
1922
|
+
button.style.display = 'none';
|
|
1923
|
+
}
|
|
1922
1924
|
};
|
|
1923
1925
|
ChatDrawerComponent.prototype.onCloseEditor = function () {
|
|
1924
1926
|
this.editorsDrawer.close();
|
|
@@ -2299,7 +2301,7 @@
|
|
|
2299
2301
|
};
|
|
2300
2302
|
return this.http.post(url, data, { headers: headers }).pipe(operators.switchMap(function (res) {
|
|
2301
2303
|
if (res) {
|
|
2302
|
-
alert('Saved Successfully');
|
|
2304
|
+
// alert('Saved Successfully');
|
|
2303
2305
|
}
|
|
2304
2306
|
_this.cdr.markForCheck();
|
|
2305
2307
|
return rxjs.of(res);
|
|
@@ -2322,7 +2324,7 @@
|
|
|
2322
2324
|
};
|
|
2323
2325
|
return this.http.put(url, data, { headers: headers }).pipe(operators.switchMap(function (res) {
|
|
2324
2326
|
if (res) {
|
|
2325
|
-
alert('Updated Successfully');
|
|
2327
|
+
// alert('Updated Successfully');
|
|
2326
2328
|
}
|
|
2327
2329
|
_this.cdr.markForCheck();
|
|
2328
2330
|
return rxjs.of(res);
|