@cometchat/chat-uikit-angular 5.0.1 → 5.0.2
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Pipe, inject, DestroyRef, NgZone, signal, computed, InjectionToken, EventEmitter as EventEmitter$1, Output, Input, ChangeDetectionStrategy, Component, HostListener, ViewChildren, ViewChild, ChangeDetectorRef, booleanAttribute, ElementRef, forwardRef, effect, ContentChild, Injector, PLATFORM_ID, input, createComponent, HostBinding, output, untracked, ViewEncapsulation
|
|
2
|
+
import { Injectable, Pipe, inject, DestroyRef, NgZone, signal, computed, InjectionToken, EventEmitter as EventEmitter$1, Output, Input, ChangeDetectionStrategy, Component, HostListener, ViewChildren, ViewChild, ChangeDetectorRef, booleanAttribute, ElementRef, forwardRef, effect, ContentChild, Injector, PLATFORM_ID, input, createComponent, HostBinding, output, untracked, ViewEncapsulation } from '@angular/core';
|
|
3
3
|
import { Subject, BehaviorSubject, Observable, debounceTime, switchMap, catchError, of, filter } from 'rxjs';
|
|
4
4
|
import { CometChat } from '@cometchat/chat-sdk-javascript';
|
|
5
5
|
import { toObservable, takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
@@ -27598,7 +27598,7 @@ class CometChatUIKit {
|
|
|
27598
27598
|
}
|
|
27599
27599
|
CometChatLocalize.setCurrentLanguage(CometChatLocalize.getBrowserLanguage());
|
|
27600
27600
|
return new Promise((resolve, reject) => {
|
|
27601
|
-
window.CometChatUiKit = { name: '@cometchat/chat-uikit-angular', version: '5.0.
|
|
27601
|
+
window.CometChatUiKit = { name: '@cometchat/chat-uikit-angular', version: '5.0.2' };
|
|
27602
27602
|
CometChat.init(uiKitSettings?.appId, appSettings)
|
|
27603
27603
|
.then(() => {
|
|
27604
27604
|
CometChat.getLoggedinUser()
|
|
@@ -65423,7 +65423,7 @@ class CometChatMessageHeaderComponent {
|
|
|
65423
65423
|
CometChatLogger.error('CometChatMessageHeader', 'Error during auto-summary generation:', e);
|
|
65424
65424
|
this.emitError(e);
|
|
65425
65425
|
} }, 0));
|
|
65426
|
-
} }, { injector: this.injector });
|
|
65426
|
+
} }, { injector: this.injector, allowSignalWrites: true });
|
|
65427
65427
|
}
|
|
65428
65428
|
}
|
|
65429
65429
|
subscribeToGroupEvents() {
|
|
@@ -78252,7 +78252,7 @@ function ngAfterViewInitImpl(self) {
|
|
|
78252
78252
|
if (state === States.loaded) {
|
|
78253
78253
|
setTimeout(() => { self.setupIntersectionObservers(); }, 0);
|
|
78254
78254
|
}
|
|
78255
|
-
}, { injector: self.injector });
|
|
78255
|
+
}, { injector: self.injector, allowSignalWrites: true });
|
|
78256
78256
|
}
|
|
78257
78257
|
function ngOnDestroyImpl(self) {
|
|
78258
78258
|
if (self.messageListenerId) {
|
|
@@ -81088,7 +81088,7 @@ class CometChatMarkdownRenderer {
|
|
|
81088
81088
|
}
|
|
81089
81089
|
this.isCopied.length = count;
|
|
81090
81090
|
});
|
|
81091
|
-
});
|
|
81091
|
+
}, { allowSignalWrites: true });
|
|
81092
81092
|
}
|
|
81093
81093
|
onContainerClick(event) {
|
|
81094
81094
|
const target = event.target;
|
|
@@ -81171,7 +81171,7 @@ var cometchatMarkdownRenderer_component = /*#__PURE__*/Object.freeze({
|
|
|
81171
81171
|
class CometChatStreamMessageBubble {
|
|
81172
81172
|
streamingService = inject(CometChatAIStreamingService);
|
|
81173
81173
|
destroyRef = inject(DestroyRef);
|
|
81174
|
-
document = inject(DOCUMENT
|
|
81174
|
+
document = inject(DOCUMENT);
|
|
81175
81175
|
cdr = inject(ChangeDetectorRef);
|
|
81176
81176
|
/** The chat ID — used to scope events to this chat. */
|
|
81177
81177
|
chatId = input.required(...(ngDevMode ? [{ debugName: "chatId" }] : /* istanbul ignore next */ []));
|
|
@@ -81550,7 +81550,7 @@ class CometChatAIAssistantChat {
|
|
|
81550
81550
|
effect(() => {
|
|
81551
81551
|
const speed = this.streamingSpeed();
|
|
81552
81552
|
untracked(() => this.streamingService.setStreamSpeed(speed));
|
|
81553
|
-
});
|
|
81553
|
+
}, { allowSignalWrites: true });
|
|
81554
81554
|
// Sync aiAssistantTools input → service
|
|
81555
81555
|
effect(() => {
|
|
81556
81556
|
const tools = this.aiAssistantTools();
|
|
@@ -81558,7 +81558,7 @@ class CometChatAIAssistantChat {
|
|
|
81558
81558
|
if (tools)
|
|
81559
81559
|
this.streamingService.setAIAssistantTools(tools);
|
|
81560
81560
|
});
|
|
81561
|
-
});
|
|
81561
|
+
}, { allowSignalWrites: true });
|
|
81562
81562
|
// Reset state when user changes (switching between agent chats)
|
|
81563
81563
|
effect(() => {
|
|
81564
81564
|
const _user = this.user(); // track user signal
|
|
@@ -81570,7 +81570,7 @@ class CometChatAIAssistantChat {
|
|
|
81570
81570
|
this.isSuggestionsVisible.set(true);
|
|
81571
81571
|
this.hasComposerText.set(false);
|
|
81572
81572
|
});
|
|
81573
|
-
});
|
|
81573
|
+
}, { allowSignalWrites: true });
|
|
81574
81574
|
// Focus management: when sidebar opens, focus first focusable element inside it
|
|
81575
81575
|
effect(() => {
|
|
81576
81576
|
const isOpen = this.isSidebarOpen();
|
|
@@ -81589,7 +81589,7 @@ class CometChatAIAssistantChat {
|
|
|
81589
81589
|
trigger?.focus();
|
|
81590
81590
|
});
|
|
81591
81591
|
}
|
|
81592
|
-
});
|
|
81592
|
+
}, { allowSignalWrites: true });
|
|
81593
81593
|
}
|
|
81594
81594
|
ngOnInit() {
|
|
81595
81595
|
this._subscribeToStreamingState();
|
|
@@ -82170,7 +82170,7 @@ class CometChatSearchConversationsListComponent {
|
|
|
82170
82170
|
constructor() {
|
|
82171
82171
|
effect(() => {
|
|
82172
82172
|
this.stateChange.emit(this.service.fetchState());
|
|
82173
|
-
});
|
|
82173
|
+
}, { allowSignalWrites: true });
|
|
82174
82174
|
}
|
|
82175
82175
|
/** Get typing indicator for a conversation */
|
|
82176
82176
|
getTypingIndicator(conversation) {
|
|
@@ -82372,7 +82372,7 @@ class CometChatSearchMessagesListComponent {
|
|
|
82372
82372
|
constructor() {
|
|
82373
82373
|
effect(() => {
|
|
82374
82374
|
this.stateChange.emit(this.service.fetchState());
|
|
82375
|
-
});
|
|
82375
|
+
}, { allowSignalWrites: true });
|
|
82376
82376
|
}
|
|
82377
82377
|
/** Whether the paginated list is in loading state (initial load only) */
|
|
82378
82378
|
get isLoading() {
|