@hivegpt/hiveai-angular 0.0.270 → 0.0.272
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 +19 -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 +10 -8
- package/esm2015/lib/components/socket-service.service.js +9 -1
- package/fesm2015/hivegpt-hiveai-angular.js +17 -7
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/lib/components/bot-html-editor/bot-html-editor.component.d.ts.map +1 -1
- package/lib/components/socket-service.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -601,6 +601,7 @@
|
|
|
601
601
|
|
|
602
602
|
var SocketService = /** @class */ (function () {
|
|
603
603
|
function SocketService(conversationService, notificationSocket) {
|
|
604
|
+
var _this = this;
|
|
604
605
|
this.conversationService = conversationService;
|
|
605
606
|
this.notificationSocket = notificationSocket;
|
|
606
607
|
this.isCommonSocketInitialized = false;
|
|
@@ -609,6 +610,14 @@
|
|
|
609
610
|
this.messageQueue = [];
|
|
610
611
|
this.releaseInterval = 1000;
|
|
611
612
|
this.intervalSetup = false;
|
|
613
|
+
try {
|
|
614
|
+
this.notificationSocket.disconnect();
|
|
615
|
+
}
|
|
616
|
+
catch (error) {
|
|
617
|
+
}
|
|
618
|
+
setTimeout(function () {
|
|
619
|
+
_this.notificationSocket.connect();
|
|
620
|
+
}, 300);
|
|
612
621
|
this.startReleasingMessages();
|
|
613
622
|
}
|
|
614
623
|
SocketService.prototype.isSocketInitialized = function (isCommon) {
|
|
@@ -2236,14 +2245,17 @@
|
|
|
2236
2245
|
};
|
|
2237
2246
|
}
|
|
2238
2247
|
BotHtmlEditorComponent.prototype.ngOnInit = function () {
|
|
2248
|
+
var _this = this;
|
|
2239
2249
|
this.environment = prod_environment;
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2250
|
+
setTimeout(function () {
|
|
2251
|
+
if (_this.isDocInEditMode) {
|
|
2252
|
+
console.log('In Edit mode');
|
|
2253
|
+
_this.filldataInForm();
|
|
2254
|
+
}
|
|
2255
|
+
else {
|
|
2256
|
+
console.log('In save mode');
|
|
2257
|
+
}
|
|
2258
|
+
}, 2500);
|
|
2247
2259
|
};
|
|
2248
2260
|
BotHtmlEditorComponent.prototype.filldataInForm = function () {
|
|
2249
2261
|
var _a, _b;
|