@acorex/components 22.4.42 → 22.4.44
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/conversation/README.md +120 -24
- package/fesm2022/{acorex-components-conversation-acorex-components-conversation-CYl7g07g.mjs → acorex-components-conversation-acorex-components-conversation-C7ilacTf.mjs} +3197 -1315
- package/fesm2022/acorex-components-conversation-acorex-components-conversation-C7ilacTf.mjs.map +1 -0
- package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-7W9bu_5L.mjs → acorex-components-conversation-picker-rename-file-dialog.component-B_OSm0vS.mjs} +2 -2
- package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-7W9bu_5L.mjs.map → acorex-components-conversation-picker-rename-file-dialog.component-B_OSm0vS.mjs.map} +1 -1
- package/fesm2022/acorex-components-conversation.mjs +1 -1
- package/fesm2022/acorex-components-emoji.mjs +2 -2
- package/fesm2022/acorex-components-emoji.mjs.map +1 -1
- package/fesm2022/acorex-components-emojipicker.mjs +22 -5
- package/fesm2022/acorex-components-emojipicker.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs +2 -2
- package/fesm2022/acorex-components-image.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +6 -4
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +21 -12
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/package.json +3 -3
- package/types/acorex-components-conversation.d.ts +2201 -1900
- package/types/acorex-components-emojipicker.d.ts +4 -0
- package/types/acorex-components-menu.d.ts +4 -2
- package/types/acorex-components-popover.d.ts +2 -0
- package/fesm2022/acorex-components-conversation-acorex-components-conversation-CYl7g07g.mjs.map +0 -1
|
@@ -2,6 +2,9 @@ import * as _acorex_components_conversation from '@acorex/components/conversatio
|
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { OnDestroy, ViewContainerRef, Type, InputSignal, WritableSignal, Signal, Provider, EventEmitter, TemplateRef, InjectionToken, ElementRef, ModuleWithProviders } from '@angular/core';
|
|
4
4
|
import { AXComponentCloseEvent, AXHtmlEvent, AXClickEvent, AXDataSource } from '@acorex/cdk/common';
|
|
5
|
+
import * as rxjs from 'rxjs';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { AXPopoverComponent } from '@acorex/components/popover';
|
|
5
8
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
6
9
|
import * as _acorex_components_action_sheet from '@acorex/components/action-sheet';
|
|
7
10
|
import { AXActionSheetRef } from '@acorex/components/action-sheet';
|
|
@@ -11,13 +14,11 @@ import * as i1 from '@acorex/cdk/uploader';
|
|
|
11
14
|
import { AXFileUploadOptions, AXUploadResult, AXUploadReference, AXUploaderService, AXUploaderFileChangeEvent } from '@acorex/cdk/uploader';
|
|
12
15
|
import { AXToastService } from '@acorex/components/toast';
|
|
13
16
|
import { AXValidationRuleResult } from '@acorex/core/validation';
|
|
17
|
+
import { AXMenuItem, AXContextMenuOpeningEvent, AXContextMenuItemsClickEvent } from '@acorex/components/menu';
|
|
14
18
|
import { AXListComponent } from '@acorex/components/list';
|
|
15
|
-
import * as rxjs from 'rxjs';
|
|
16
|
-
import { Observable } from 'rxjs';
|
|
17
19
|
import { AXDialogService } from '@acorex/components/dialog';
|
|
18
20
|
import * as dist_packages_core_types_acorex_core_constants from 'dist/packages/core/types/acorex-core-constants';
|
|
19
21
|
import { FollowStateChangeEvent } from '@acorex/cdk/auto-follow-scroll';
|
|
20
|
-
import { AXContextMenuOpeningEvent, AXContextMenuItemsClickEvent } from '@acorex/components/menu';
|
|
21
22
|
import { AXTabLocation } from '@acorex/components/tabs';
|
|
22
23
|
import { AXBasePageComponent } from '@acorex/components/page';
|
|
23
24
|
import * as _acorex_core_file from '@acorex/core/file';
|
|
@@ -461,11 +462,6 @@ interface AXConversationParticipant {
|
|
|
461
462
|
metadata?: Record<string, unknown>;
|
|
462
463
|
}
|
|
463
464
|
|
|
464
|
-
/**
|
|
465
|
-
* Conversation Model
|
|
466
|
-
* Represents a chat conversation (private, group, or channel)
|
|
467
|
-
*/
|
|
468
|
-
|
|
469
465
|
type AXConversationType = 'private' | 'group' | 'channel' | 'bot';
|
|
470
466
|
/** Theme-specific CSS `background` values for the message list area. */
|
|
471
467
|
interface AXConversationMessageListThemeBackground {
|
|
@@ -481,6 +477,8 @@ type AXConversationComposerAttachmentPresentation = 'overlay' | 'banner';
|
|
|
481
477
|
* Extensible map for app-specific conversation data.
|
|
482
478
|
*/
|
|
483
479
|
interface AXConversationMetadata extends Record<string, unknown> {
|
|
480
|
+
/** Per-conversation overrides for the global composer mention configuration. */
|
|
481
|
+
mentions?: AXConversationMentionsConfig;
|
|
484
482
|
/** Optional custom background CSS for message list (per light/dark theme). */
|
|
485
483
|
messageListBackground?: AXConversationMessageListBackground;
|
|
486
484
|
/** Optional custom empty-state component for the message list. */
|
|
@@ -595,6 +593,28 @@ interface AXConversationSort {
|
|
|
595
593
|
direction: 'asc' | 'desc';
|
|
596
594
|
}
|
|
597
595
|
|
|
596
|
+
/** A person offered by the composer mention picker. */
|
|
597
|
+
type AXConversationMentionPerson = Pick<AXConversationParticipant, 'id' | 'name' | 'icon' | 'avatar'>;
|
|
598
|
+
interface AXConversationMentionSearchContext {
|
|
599
|
+
conversation: AXConversation;
|
|
600
|
+
query: string;
|
|
601
|
+
/** Aborted when the query changes, the picker closes, or the composer is destroyed. */
|
|
602
|
+
signal: AbortSignal;
|
|
603
|
+
}
|
|
604
|
+
interface AXConversationMentionsConfig {
|
|
605
|
+
enabled?: boolean;
|
|
606
|
+
/** Replaces the default group participant list. Results are filtered locally by name. */
|
|
607
|
+
people?: readonly AXConversationMentionPerson[];
|
|
608
|
+
/** Replaces local search, including in groups. Return already filtered results. */
|
|
609
|
+
search?: (context: AXConversationMentionSearchContext) => readonly AXConversationMentionPerson[] | Promise<readonly AXConversationMentionPerson[]>;
|
|
610
|
+
/** Delay for a custom search, in milliseconds (default: 150). */
|
|
611
|
+
debounce?: number;
|
|
612
|
+
/** Maximum displayed people (default: 20). */
|
|
613
|
+
limit?: number;
|
|
614
|
+
/** Accessible picker label; override for your application's locale. */
|
|
615
|
+
label?: string;
|
|
616
|
+
}
|
|
617
|
+
|
|
598
618
|
/** Lightweight catalog ids — safe to import from plugin definitions without pulling pickers. */
|
|
599
619
|
declare const AX_CONVERSATION_IMAGE_CATALOG: "conversation-image";
|
|
600
620
|
declare const AX_CONVERSATION_VIDEO_CATALOG: "conversation-video";
|
|
@@ -627,1003 +647,1080 @@ interface AXConversationPresenceUpdate {
|
|
|
627
647
|
}
|
|
628
648
|
|
|
629
649
|
/**
|
|
630
|
-
|
|
631
|
-
*
|
|
650
|
+
|
|
651
|
+
* Shared API Types
|
|
652
|
+
|
|
653
|
+
* Common types used across all API services
|
|
654
|
+
|
|
632
655
|
*/
|
|
656
|
+
/**
|
|
657
|
+
|
|
658
|
+
* Pagination parameters
|
|
633
659
|
|
|
660
|
+
*/
|
|
661
|
+
interface AXConversationPagination {
|
|
662
|
+
/** Page number (0-based) */
|
|
663
|
+
page: number;
|
|
664
|
+
/** Items per page */
|
|
665
|
+
pageSize: number;
|
|
666
|
+
/** Cursor for cursor-based pagination (optional) */
|
|
667
|
+
cursor?: string;
|
|
668
|
+
/** Sort field */
|
|
669
|
+
sortBy?: string;
|
|
670
|
+
/** Sort direction */
|
|
671
|
+
sortDirection?: 'asc' | 'desc';
|
|
672
|
+
}
|
|
634
673
|
/**
|
|
635
|
-
|
|
674
|
+
|
|
675
|
+
* Paginated response
|
|
676
|
+
|
|
636
677
|
*/
|
|
637
|
-
interface
|
|
638
|
-
/**
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
|
|
642
|
-
/**
|
|
643
|
-
|
|
678
|
+
interface AXConversationPaginatedResult<T> {
|
|
679
|
+
/** Result items */
|
|
680
|
+
items: T[];
|
|
681
|
+
/** Total count (if available) */
|
|
682
|
+
total?: number;
|
|
683
|
+
/** Next page cursor (for cursor-based pagination) */
|
|
684
|
+
nextCursor?: string;
|
|
685
|
+
/** Previous page cursor */
|
|
686
|
+
prevCursor?: string;
|
|
687
|
+
/** Whether there are more pages */
|
|
688
|
+
hasMore: boolean;
|
|
689
|
+
/** Current page number */
|
|
690
|
+
page?: number;
|
|
691
|
+
/** Total pages */
|
|
692
|
+
totalPages?: number;
|
|
644
693
|
}
|
|
645
694
|
/**
|
|
646
|
-
|
|
647
|
-
*
|
|
695
|
+
|
|
696
|
+
* Pagination cursor state for a single list (conversations or messages).
|
|
697
|
+
|
|
648
698
|
*/
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
699
|
+
interface AXConversationPaginationState {
|
|
700
|
+
page: number;
|
|
701
|
+
hasMore: boolean;
|
|
702
|
+
nextCursor?: string;
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
|
|
706
|
+
* Connection status
|
|
707
|
+
|
|
708
|
+
*/
|
|
709
|
+
type AXConversationConnectionStatus = 'disconnected' | 'connecting' | 'connected' | 'reconnecting' | 'error';
|
|
710
|
+
/**
|
|
711
|
+
|
|
712
|
+
* API Error with details
|
|
713
|
+
|
|
714
|
+
*/
|
|
715
|
+
interface AXConversationApiError {
|
|
716
|
+
/** Error code */
|
|
717
|
+
code: string;
|
|
718
|
+
/** Error message */
|
|
719
|
+
message: string;
|
|
720
|
+
/** HTTP status code */
|
|
721
|
+
statusCode?: number;
|
|
722
|
+
/** Additional details */
|
|
723
|
+
details?: unknown;
|
|
724
|
+
/** Timestamp */
|
|
725
|
+
timestamp?: Date;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Abstract Message Management API
|
|
730
|
+
* Handle message CRUD operations, reactions, and interactions
|
|
731
|
+
*/
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Message search filters
|
|
735
|
+
*/
|
|
736
|
+
interface AXConversationMessageSearchFilters {
|
|
737
|
+
/** Search query */
|
|
738
|
+
query: string;
|
|
739
|
+
/** Filter by sender ID */
|
|
740
|
+
senderId?: string;
|
|
741
|
+
/** Filter by message type */
|
|
742
|
+
type?: string;
|
|
743
|
+
/** Date range start */
|
|
744
|
+
dateFrom?: Date;
|
|
745
|
+
/** Date range end */
|
|
746
|
+
dateTo?: Date;
|
|
747
|
+
/** Include only messages with media */
|
|
748
|
+
mediaOnly?: boolean;
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* Message forward data
|
|
752
|
+
*/
|
|
753
|
+
interface AXConversationMessageForwardData {
|
|
754
|
+
/** Message ID to forward */
|
|
755
|
+
messageId: string;
|
|
756
|
+
/** Target conversation IDs */
|
|
757
|
+
conversationIds: string[];
|
|
758
|
+
/** Optional caption */
|
|
759
|
+
caption?: string;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Read receipt information
|
|
763
|
+
*/
|
|
764
|
+
interface AXConversationReadReceipt {
|
|
765
|
+
/** User ID */
|
|
766
|
+
userId: string;
|
|
767
|
+
/** User name */
|
|
768
|
+
userName: string;
|
|
769
|
+
/** Read timestamp */
|
|
770
|
+
readAt: Date;
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* Pinned message information
|
|
774
|
+
*/
|
|
775
|
+
interface AXConversationPinnedMessage {
|
|
776
|
+
/** Message ID */
|
|
777
|
+
messageId: string;
|
|
778
|
+
/** Pinned by user ID */
|
|
779
|
+
pinnedBy: string;
|
|
780
|
+
/** Pinned timestamp */
|
|
781
|
+
pinnedAt: Date;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Abstract Message Management API
|
|
785
|
+
*
|
|
786
|
+
* Implement this abstract class to handle message operations.
|
|
787
|
+
*
|
|
788
|
+
* @example
|
|
789
|
+
* ```typescript
|
|
790
|
+
* @Injectable()
|
|
791
|
+
* export class MyMessageApi extends AXConversationMessageApi {
|
|
792
|
+
* constructor(private http: HttpClient) {
|
|
793
|
+
* super();
|
|
794
|
+
* }
|
|
795
|
+
*
|
|
796
|
+
* async sendMessage(command: AXConversationSendMessageCommand): Promise<AXConversationMessage> {
|
|
797
|
+
* const response = await this.http.post('/api/messages', command).toPromise();
|
|
798
|
+
* return response;
|
|
799
|
+
* }
|
|
800
|
+
*
|
|
801
|
+
* // ... implement other methods
|
|
802
|
+
* }
|
|
803
|
+
* ```
|
|
804
|
+
*/
|
|
805
|
+
declare abstract class AXConversationMessageApi {
|
|
655
806
|
/**
|
|
656
|
-
*
|
|
807
|
+
* Send a new message
|
|
808
|
+
*
|
|
809
|
+
* @param command - Message send command
|
|
810
|
+
* @returns Sent message with server-generated ID
|
|
811
|
+
* @throws {AXConversationApiError} If send fails
|
|
657
812
|
*/
|
|
658
|
-
|
|
813
|
+
abstract sendMessage(command: AXConversationSendMessageCommand): Promise<AXConversationMessage>;
|
|
659
814
|
/**
|
|
660
|
-
*
|
|
815
|
+
* Get message by ID
|
|
816
|
+
*
|
|
817
|
+
* @param messageId - Message ID
|
|
818
|
+
* @returns Message details
|
|
819
|
+
* @throws {AXConversationApiError} If message not found
|
|
661
820
|
*/
|
|
662
|
-
|
|
821
|
+
abstract getMessage(messageId: string): Promise<AXConversationMessage>;
|
|
663
822
|
/**
|
|
664
|
-
*
|
|
823
|
+
* Get messages for a conversation
|
|
824
|
+
*
|
|
825
|
+
* @param conversationId - Conversation ID
|
|
826
|
+
* @param pagination - Pagination parameters
|
|
827
|
+
* @returns Paginated message list
|
|
828
|
+
* @throws {AXConversationApiError} If request fails
|
|
665
829
|
*/
|
|
666
|
-
|
|
830
|
+
abstract getMessages(conversationId: string, pagination: AXConversationPagination): Promise<AXConversationPaginatedResult<AXConversationMessage>>;
|
|
667
831
|
/**
|
|
668
|
-
*
|
|
832
|
+
* Edit an existing message
|
|
833
|
+
*
|
|
834
|
+
* @param messageId - Message ID to edit
|
|
835
|
+
* @param payload - New message payload
|
|
836
|
+
* @returns Updated message
|
|
837
|
+
* @throws {AXConversationApiError} If edit fails or message not found
|
|
669
838
|
*/
|
|
670
|
-
|
|
839
|
+
abstract editMessage(messageId: string, payload: AXConversationMessagePayload): Promise<AXConversationMessage>;
|
|
671
840
|
/**
|
|
672
|
-
*
|
|
841
|
+
* Delete a message
|
|
842
|
+
*
|
|
843
|
+
* @param messageId - Message ID to delete
|
|
844
|
+
* @param forEveryone - Delete for all participants (vs just for current user)
|
|
845
|
+
* @throws {AXConversationApiError} If deletion fails
|
|
673
846
|
*/
|
|
674
|
-
|
|
847
|
+
abstract deleteMessage(messageId: string, forEveryone?: boolean): Promise<void>;
|
|
675
848
|
/**
|
|
676
|
-
*
|
|
849
|
+
* Delete multiple messages
|
|
850
|
+
*
|
|
851
|
+
* @param messageIds - Array of message IDs to delete
|
|
852
|
+
* @param forEveryone - Delete for all participants
|
|
853
|
+
* @throws {AXConversationApiError} If deletion fails
|
|
677
854
|
*/
|
|
678
|
-
|
|
855
|
+
abstract deleteMessages(messageIds: string[], forEveryone?: boolean): Promise<void>;
|
|
679
856
|
/**
|
|
680
|
-
*
|
|
857
|
+
* Search messages in a conversation
|
|
858
|
+
*
|
|
859
|
+
* @param conversationId - Conversation ID
|
|
860
|
+
* @param filters - Search filters
|
|
861
|
+
* @param pagination - Pagination parameters
|
|
862
|
+
* @returns Matching messages
|
|
863
|
+
* @throws {AXConversationApiError} If search fails
|
|
681
864
|
*/
|
|
682
|
-
|
|
865
|
+
abstract searchMessages(conversationId: string, filters: AXConversationMessageSearchFilters, pagination?: AXConversationPagination): Promise<AXConversationPaginatedResult<AXConversationMessage>>;
|
|
683
866
|
/**
|
|
684
|
-
*
|
|
867
|
+
* Search messages across all conversations
|
|
868
|
+
*
|
|
869
|
+
* @param filters - Search filters
|
|
870
|
+
* @param pagination - Pagination parameters
|
|
871
|
+
* @returns Matching messages
|
|
872
|
+
* @throws {AXConversationApiError} If search fails
|
|
685
873
|
*/
|
|
686
|
-
|
|
874
|
+
abstract searchAllMessages(filters: AXConversationMessageSearchFilters, pagination?: AXConversationPagination): Promise<AXConversationPaginatedResult<AXConversationMessage>>;
|
|
687
875
|
/**
|
|
688
|
-
*
|
|
876
|
+
* Add a reaction to a message
|
|
877
|
+
*
|
|
878
|
+
* @param messageId - Message ID
|
|
879
|
+
* @param emoji - Emoji reaction
|
|
880
|
+
* @throws {AXConversationApiError} If reaction fails
|
|
689
881
|
*/
|
|
690
|
-
|
|
882
|
+
abstract addReaction(messageId: string, emoji: string): Promise<void>;
|
|
691
883
|
/**
|
|
692
|
-
*
|
|
884
|
+
* Remove a reaction from a message
|
|
885
|
+
*
|
|
886
|
+
* @param messageId - Message ID
|
|
887
|
+
* @param emoji - Emoji reaction to remove
|
|
888
|
+
* @throws {AXConversationApiError} If removal fails
|
|
693
889
|
*/
|
|
694
|
-
|
|
890
|
+
abstract removeReaction(messageId: string, emoji: string): Promise<void>;
|
|
695
891
|
/**
|
|
696
|
-
*
|
|
697
|
-
*
|
|
892
|
+
* Get available reaction emojis
|
|
893
|
+
*
|
|
894
|
+
* @returns Array of available emoji reactions
|
|
895
|
+
* @throws {AXConversationApiError} If fetching fails
|
|
698
896
|
*/
|
|
699
|
-
|
|
897
|
+
abstract getAvailableReactions(): Promise<string[]>;
|
|
700
898
|
/**
|
|
701
|
-
*
|
|
702
|
-
*
|
|
899
|
+
* Mark messages as read
|
|
900
|
+
*
|
|
901
|
+
* @param conversationId - Conversation ID
|
|
902
|
+
* @param messageIds - Array of message IDs to mark as read
|
|
903
|
+
* @throws {AXConversationApiError} If marking fails
|
|
703
904
|
*/
|
|
704
|
-
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* Shared upload state and helpers for composer media pickers.
|
|
709
|
-
*/
|
|
710
|
-
|
|
711
|
-
/** Stable id for `@for` tracking while upload state is patched immutably. */
|
|
712
|
-
declare function createPickerUploadItemId(): string;
|
|
713
|
-
interface AXConversationComposerPickerUploadItem {
|
|
714
|
-
id: string;
|
|
715
|
-
file: File;
|
|
716
|
-
preview?: string;
|
|
717
|
-
duration?: number;
|
|
718
|
-
uploadProgress?: number;
|
|
719
|
-
uploading?: boolean;
|
|
720
|
-
uploaded?: boolean;
|
|
721
|
-
uploadedUrl?: string;
|
|
722
|
-
mediaId?: string;
|
|
723
|
-
error?: string;
|
|
724
|
-
abortController?: AbortController;
|
|
725
|
-
}
|
|
726
|
-
declare function getPickerCancelUploadLabel(translation: AXTranslationService): string;
|
|
727
|
-
declare function abortPickerUploads(items: Iterable<{
|
|
728
|
-
abortController?: AbortController;
|
|
729
|
-
} | null | undefined>): void;
|
|
730
|
-
interface AXConversationCleanupPickerUploadsOptions {
|
|
731
|
-
retainUploaded?: boolean;
|
|
732
|
-
}
|
|
733
|
-
/** Upload finished; reference is {@link mediaId} and/or a non-empty session url. */
|
|
734
|
-
declare function isPickerItemReadyToSend(item: Pick<AXConversationComposerPickerUploadItem, 'uploaded' | 'uploadedUrl' | 'mediaId'>): boolean;
|
|
735
|
-
/** Build uploader result shape for {@link *ItemFromUpload} after picker upload. */
|
|
736
|
-
declare function pickerItemToUploadResult(item: Pick<AXConversationComposerPickerUploadItem, 'uploaded' | 'uploadedUrl' | 'mediaId' | 'file'>): {
|
|
737
|
-
url: string;
|
|
738
|
-
mediaId?: string;
|
|
739
|
-
mimeType: string;
|
|
740
|
-
size: number;
|
|
741
|
-
} | null;
|
|
742
|
-
declare function pickerItemToMediaReference(item: Pick<AXConversationComposerPickerUploadItem, 'uploaded' | 'uploadedUrl' | 'mediaId' | 'file'>): AXConversationUploaderReference | null;
|
|
743
|
-
declare function deleteUploadedPickerMedia(uploader: AXUploaderService, items: Iterable<AXConversationComposerPickerUploadItem | null | undefined>): Promise<void>;
|
|
744
|
-
declare function cleanupPickerUploads(uploader: AXUploaderService, items: Iterable<AXConversationComposerPickerUploadItem | null | undefined>, options?: AXConversationCleanupPickerUploadsOptions): void;
|
|
745
|
-
declare function revokePickerBlobPreviews(items: Iterable<{
|
|
746
|
-
preview?: string;
|
|
747
|
-
} | null | undefined>): void;
|
|
748
|
-
declare function isUploadAborted(error: unknown, signal?: AbortSignal): boolean;
|
|
749
|
-
declare function limitFilesToCapacity(files: File[], currentCount: number, maxFiles: number): File[];
|
|
750
|
-
declare function uploadPickerFile(uploader: AXUploaderService, conversationId: string, file: File, onProgress: (percent: number) => void, signal?: AbortSignal): Promise<{
|
|
751
|
-
url: string;
|
|
752
|
-
mediaId?: string;
|
|
753
|
-
mimeType: string;
|
|
754
|
-
size: number;
|
|
755
|
-
}>;
|
|
756
|
-
declare function notifyMaxFilesCapacityExceeded(toast: AXToastService, translation: AXTranslationService, maxFiles: number): void;
|
|
757
|
-
/** User-facing message for a file validation failure. */
|
|
758
|
-
declare function formatPickerValidationMessage(translation: AXTranslationService, file: File, error: AXValidationRuleResult | undefined): string;
|
|
759
|
-
/** Show a warning toast for each failed validation rule result. */
|
|
760
|
-
declare function notifyPickerValidationErrors(toast: AXToastService, translation: AXTranslationService, rejected: {
|
|
761
|
-
file: File;
|
|
762
|
-
errors: AXValidationRuleResult[];
|
|
763
|
-
}[]): void;
|
|
764
|
-
/** Close popup/action-sheet host or inline composer shell after send/cancel. */
|
|
765
|
-
declare function dismissComposerPickerHost(composerService: AXConversationComposerService, popupRef?: AXPopupRef | null, actionSheetRef?: AXActionSheetRef | null): void;
|
|
766
|
-
|
|
767
|
-
type AXConversationComposerDraftAttachmentKind = 'image' | 'video' | 'audio' | 'file';
|
|
768
|
-
interface AXConversationComposerDraftAttachment extends AXConversationComposerPickerUploadItem {
|
|
769
|
-
kind: AXConversationComposerDraftAttachmentKind;
|
|
770
|
-
icon: string;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
/** Primary composer button mode (send / cancel / stopping / default action / locked). */
|
|
774
|
-
type AXConversationComposerPrimaryButtonMode = 'send' | 'cancel' | 'stopping' | 'default-action' | 'locked';
|
|
775
|
-
declare class AXConversationComposerService {
|
|
776
|
-
private readonly conversationService;
|
|
777
|
-
private readonly generationState;
|
|
778
|
-
private readonly translation;
|
|
779
|
-
private readonly popupService;
|
|
780
|
-
private readonly uploader;
|
|
781
|
-
private readonly fileService;
|
|
782
|
-
private readonly toast;
|
|
783
|
-
private readonly config;
|
|
784
|
-
private readonly destroyRef;
|
|
785
|
-
private readonly _activeActionOverlay;
|
|
786
|
-
constructor();
|
|
787
|
-
private get registry();
|
|
788
|
-
private readonly _replyMessage;
|
|
789
|
-
private readonly _editMessage;
|
|
790
|
-
readonly replyMessage: _angular_core.Signal<AXConversationMessage>;
|
|
791
|
-
readonly editMessage: _angular_core.Signal<AXConversationMessage>;
|
|
792
|
-
readonly activeConversation: _angular_core.Signal<_acorex_components_conversation.AXConversation>;
|
|
793
|
-
readonly activeMessages: _angular_core.Signal<AXConversationMessage[]>;
|
|
794
|
-
/** Draft text */
|
|
795
|
-
readonly draftText: _angular_core.WritableSignal<string>;
|
|
796
|
-
/** Inline composer attachments shown above the input in banner mode. */
|
|
797
|
-
readonly draftAttachments: _angular_core.WritableSignal<AXConversationComposerDraftAttachment[]>;
|
|
798
|
-
readonly draftAttachmentsReady: _angular_core.Signal<boolean>;
|
|
799
|
-
readonly usesAttachmentBanner: _angular_core.Signal<boolean>;
|
|
800
|
-
/** Incremented to request focus on the composer text area (handled by AXConversationComposerComponent). */
|
|
801
|
-
private readonly _focusRequest;
|
|
802
|
-
readonly focusRequest: _angular_core.Signal<number>;
|
|
803
|
-
/** Input placeholder */
|
|
804
|
-
readonly placeholder: _angular_core.Signal<string>;
|
|
805
|
-
/** Number of input rows */
|
|
806
|
-
readonly inputRows: _angular_core.Signal<number>;
|
|
807
|
-
/** Can send message (draft has content; does not include generation state). */
|
|
808
|
-
readonly canSend: _angular_core.Signal<boolean>;
|
|
809
|
-
/** Whether a background generation (e.g. AI response) is in progress. */
|
|
810
|
-
readonly isGenerating: _angular_core.Signal<boolean>;
|
|
811
|
-
/** Whether cancel cleanup is in progress (spinner on primary button). */
|
|
812
|
-
readonly isStopping: _angular_core.Signal<boolean>;
|
|
813
|
-
/** Primary end-button mode for send / cancel / stopping / voice / locked. */
|
|
814
|
-
readonly primaryButtonMode: _angular_core.Signal<AXConversationComposerPrimaryButtonMode>;
|
|
815
|
-
/** Composer action context */
|
|
816
|
-
readonly actionContext: _angular_core.Signal<AXConversationComposerActionContext>;
|
|
817
|
-
/** Start actions from registry */
|
|
818
|
-
readonly startActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
819
|
-
/** End actions from registry */
|
|
820
|
-
readonly endActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
821
|
-
/** Start inline actions (location = 'inline' or undefined) */
|
|
822
|
-
readonly startInlineActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
823
|
-
/** Start menu actions — shown in the attachment popup */
|
|
824
|
-
readonly startMenuActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
825
|
-
/** End inline actions inside the input pill (excludes default action) */
|
|
826
|
-
readonly endInlineActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
827
|
-
/** End menu actions (location = 'menu') */
|
|
828
|
-
readonly endMenuActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
829
|
-
/** Default end action (voice/send morph button) */
|
|
830
|
-
readonly defaultAction: _angular_core.Signal<AXConversationComposerAction>;
|
|
831
|
-
cancelGeneration(): void;
|
|
832
|
-
startReply(message: AXConversationMessage): void;
|
|
833
|
-
startEdit(message: AXConversationMessage): void;
|
|
834
|
-
/** Focus the composer text area when the composer component is mounted. */
|
|
835
|
-
focusComposer(): void;
|
|
836
|
-
clearReplyEdit(): void;
|
|
837
|
-
clear(): void;
|
|
905
|
+
abstract markAsRead(conversationId: string, messageIds: string[]): Promise<void>;
|
|
838
906
|
/**
|
|
839
|
-
*
|
|
907
|
+
* Mark conversation as unread
|
|
908
|
+
*
|
|
909
|
+
* @param conversationId - Conversation ID
|
|
910
|
+
* @throws {AXConversationApiError} If marking fails
|
|
840
911
|
*/
|
|
841
|
-
|
|
842
|
-
sendTypingIndicator(conversationId: string): Promise<void>;
|
|
843
|
-
sendMessage(command: AXConversationSendMessageCommand, options?: AXConversationSendMessageOptions): Promise<void>;
|
|
912
|
+
abstract markAsUnread(conversationId: string): Promise<void>;
|
|
844
913
|
/**
|
|
845
|
-
*
|
|
914
|
+
* Get read receipts for a message
|
|
915
|
+
*
|
|
916
|
+
* @param messageId - Message ID
|
|
917
|
+
* @returns Array of read receipts
|
|
918
|
+
* @throws {AXConversationApiError} If request fails
|
|
846
919
|
*/
|
|
847
|
-
|
|
920
|
+
abstract getReadReceipts(messageId: string): Promise<AXConversationReadReceipt[]>;
|
|
848
921
|
/**
|
|
849
|
-
*
|
|
922
|
+
* Forward message to other conversations
|
|
923
|
+
*
|
|
924
|
+
* @param data - Forward data
|
|
925
|
+
* @returns Array of forwarded messages
|
|
926
|
+
* @throws {AXConversationApiError} If forwarding fails
|
|
850
927
|
*/
|
|
851
|
-
|
|
852
|
-
toggleable?: boolean;
|
|
853
|
-
initialFiles?: File[];
|
|
854
|
-
}): Promise<void>;
|
|
855
|
-
browseDraftAttachments(fileType?: string): Promise<number>;
|
|
856
|
-
addDraftAttachments(files: File[]): Promise<number>;
|
|
857
|
-
removeDraftAttachment(id: string): void;
|
|
858
|
-
clearDraftAttachments(options?: {
|
|
859
|
-
retainUploaded?: boolean;
|
|
860
|
-
}): void;
|
|
861
|
-
buildDraftAttachmentCommand(caption?: string): Promise<AXConversationSendMessageCommand | null>;
|
|
862
|
-
private uploadDraftAttachment;
|
|
863
|
-
private patchDraftAttachment;
|
|
928
|
+
abstract forwardMessage(data: AXConversationMessageForwardData): Promise<AXConversationMessage[]>;
|
|
864
929
|
/**
|
|
865
|
-
*
|
|
930
|
+
* Pin message in conversation
|
|
931
|
+
*
|
|
932
|
+
* @param conversationId - Conversation ID
|
|
933
|
+
* @param messageId - Message ID to pin
|
|
934
|
+
* @throws {AXConversationApiError} If pinning fails
|
|
866
935
|
*/
|
|
867
|
-
|
|
936
|
+
abstract pinMessage(conversationId: string, messageId: string): Promise<void>;
|
|
868
937
|
/**
|
|
869
|
-
*
|
|
938
|
+
* Unpin message from conversation
|
|
939
|
+
*
|
|
940
|
+
* @param conversationId - Conversation ID
|
|
941
|
+
* @param messageId - Message ID to unpin
|
|
942
|
+
* @throws {AXConversationApiError} If unpinning fails
|
|
870
943
|
*/
|
|
871
|
-
|
|
944
|
+
abstract unpinMessage(conversationId: string, messageId: string): Promise<void>;
|
|
872
945
|
/**
|
|
873
|
-
*
|
|
946
|
+
* Get pinned messages in conversation
|
|
947
|
+
*
|
|
948
|
+
* @param conversationId - Conversation ID
|
|
949
|
+
* @returns Array of pinned messages
|
|
950
|
+
* @throws {AXConversationApiError} If request fails
|
|
874
951
|
*/
|
|
875
|
-
|
|
952
|
+
abstract getPinnedMessages(conversationId: string): Promise<AXConversationPinnedMessage[]>;
|
|
876
953
|
/**
|
|
877
|
-
*
|
|
954
|
+
* Get replies to a message
|
|
955
|
+
*
|
|
956
|
+
* @param messageId - Original message ID
|
|
957
|
+
* @param pagination - Pagination parameters
|
|
958
|
+
* @returns Paginated replies
|
|
959
|
+
* @throws {AXConversationApiError} If request fails
|
|
878
960
|
*/
|
|
879
|
-
|
|
961
|
+
abstract getMessageReplies(messageId: string, pagination?: AXConversationPagination): Promise<AXConversationPaginatedResult<AXConversationMessage>>;
|
|
880
962
|
/**
|
|
881
|
-
*
|
|
963
|
+
* Get reply count for a message
|
|
964
|
+
*
|
|
965
|
+
* @param messageId - Original message ID
|
|
966
|
+
* @returns Number of replies
|
|
967
|
+
* @throws {AXConversationApiError} If fetching fails
|
|
882
968
|
*/
|
|
883
|
-
|
|
969
|
+
abstract getReplyCount(messageId: string): Promise<number>;
|
|
884
970
|
/**
|
|
885
|
-
*
|
|
971
|
+
* Get forward count for a message
|
|
972
|
+
*
|
|
973
|
+
* @param messageId - Original message ID
|
|
974
|
+
* @returns Number of times forwarded
|
|
975
|
+
* @throws {AXConversationApiError} If fetching fails
|
|
886
976
|
*/
|
|
887
|
-
|
|
888
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerService, never>;
|
|
889
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
/**
|
|
893
|
-
* Composer context provided to actions
|
|
894
|
-
*/
|
|
895
|
-
interface AXConversationComposerActionContext {
|
|
896
|
-
/** Current draft text */
|
|
897
|
-
draftText: string;
|
|
898
|
-
/** Conversation ID */
|
|
899
|
-
conversationId: string;
|
|
900
|
-
/** Whether editing a message */
|
|
901
|
-
isEditing: boolean;
|
|
902
|
-
/** Message being edited (if any) */
|
|
903
|
-
editingMessageId?: string;
|
|
904
|
-
/** Whether replying to a message */
|
|
905
|
-
isReplying: boolean;
|
|
906
|
-
/** Message being replied to (if any) */
|
|
907
|
-
replyingToMessageId?: string;
|
|
908
|
-
/** Whether a background generation (e.g. AI response) is in progress */
|
|
909
|
-
isGenerating?: boolean;
|
|
910
|
-
/** Whether cancel cleanup is in progress */
|
|
911
|
-
isStopping?: boolean;
|
|
912
|
-
/** Custom context data */
|
|
913
|
-
custom?: Record<string, unknown>;
|
|
914
|
-
}
|
|
915
|
-
/**
|
|
916
|
-
* Contract for components used as {@link AXConversationComposerAction.component}.
|
|
917
|
-
* Composer shell passes at least `{ conversation, service }`.
|
|
918
|
-
*/
|
|
919
|
-
interface AXConversationComposerActionComponent {
|
|
920
|
-
readonly conversation: InputSignal<AXConversation>;
|
|
921
|
-
readonly service?: InputSignal<AXConversationComposerService | undefined>;
|
|
922
|
-
/** Max files per message; falls back to {@link AXConversationConfig.maxFilesPerMessage}. */
|
|
923
|
-
readonly maxFiles?: InputSignal<number | undefined>;
|
|
924
|
-
/** Pre-fill picker when opened from message-list drag-and-drop. */
|
|
925
|
-
readonly initialFiles?: InputSignal<File[]>;
|
|
926
|
-
/** Set by {@link AXPopupService} when the picker is shown in a popup. */
|
|
927
|
-
readonly __popup__?: InputSignal<_acorex_components_popup.AXPopupRef | undefined>;
|
|
928
|
-
/** Set by {@link AXActionSheetService} when the picker is shown in an action sheet. */
|
|
929
|
-
readonly __actionSheet__?: InputSignal<_acorex_components_action_sheet.AXActionSheetRef | undefined>;
|
|
930
|
-
/**
|
|
931
|
-
* When true (from action {@link AXConversationComposerAction.autoRun}), runs {@link activate}
|
|
932
|
-
* once after the component is mounted.
|
|
933
|
-
*/
|
|
934
|
-
readonly autoRun?: InputSignal<boolean>;
|
|
935
|
-
/** Primary action when opened from the composer (record, browse files, etc.). */
|
|
936
|
-
activate?(): void | Promise<void>;
|
|
937
|
-
/** Cancel in-flight uploads when the picker is closed or replaced. */
|
|
938
|
-
abortInProgressUploads?(): void;
|
|
939
|
-
}
|
|
940
|
-
/**
|
|
941
|
-
* Composer action registration
|
|
942
|
-
*/
|
|
943
|
-
interface AXConversationComposerAction extends Omit<AXConversationRegistryItem, 'enabled'> {
|
|
944
|
-
/** Display label (for accessibility) */
|
|
945
|
-
label: string;
|
|
946
|
-
/** Icon name/class */
|
|
947
|
-
icon: string;
|
|
948
|
-
/** Position: start or end of the composer */
|
|
949
|
-
position: 'start' | 'end';
|
|
950
|
-
/** Location: inline (show as button) or menu (show in attachment popup menu) */
|
|
951
|
-
location?: 'inline' | 'menu';
|
|
952
|
-
/**
|
|
953
|
-
* Primary end action (e.g. voice record). Only one action may be default.
|
|
954
|
-
* Renders as the circular send-style button and morphs into send when the draft has content.
|
|
955
|
-
*/
|
|
956
|
-
default?: boolean;
|
|
957
|
-
/** Visibility condition */
|
|
958
|
-
visible: (context: AXConversationComposerActionContext) => boolean;
|
|
959
|
-
/** Enabled condition */
|
|
960
|
-
enabled?: (context: AXConversationComposerActionContext) => boolean;
|
|
961
|
-
/**
|
|
962
|
-
* Component to show when action is activated
|
|
963
|
-
* If provided, clicking the action will show this component in full-width mode
|
|
964
|
-
*/
|
|
965
|
-
component?: Type<AXConversationComposerActionComponent>;
|
|
966
|
-
/** Lazy loader for the action component */
|
|
967
|
-
componentLoader?: () => Promise<Type<AXConversationComposerActionComponent>>;
|
|
968
|
-
/**
|
|
969
|
-
* Whether this action is toggleable (shows/hides component)
|
|
970
|
-
*/
|
|
971
|
-
toggleable?: boolean;
|
|
972
|
-
/**
|
|
973
|
-
* When true, runs {@link AXConversationComposerActionComponent.activate} in
|
|
974
|
-
* {@link afterNextRender} after the upload panel is mounted.
|
|
975
|
-
*/
|
|
976
|
-
autoRun?: boolean;
|
|
977
|
-
/** Action handler (optional if component is provided) */
|
|
978
|
-
handler?: (context: AXConversationComposerActionContext) => void | Promise<void>;
|
|
979
|
-
/** Tooltip text */
|
|
980
|
-
tooltip?: string;
|
|
981
|
-
/** Keyboard shortcut */
|
|
982
|
-
shortcut?: string;
|
|
983
|
-
/** Custom class for styling */
|
|
984
|
-
className?: string;
|
|
985
|
-
/** Badge text/count */
|
|
986
|
-
badge?: string | number;
|
|
987
|
-
/** File catalog for this action's picker; built-ins use {@link provideConversationComposerFileTypes}. */
|
|
988
|
-
fileType?: string;
|
|
989
|
-
/** Max files per message; falls back to {@link AXConversationConfig.maxFilesPerMessage}. */
|
|
990
|
-
maxFiles?: number;
|
|
991
|
-
}
|
|
992
|
-
/** Validation rules and built-in conversation file types. */
|
|
993
|
-
declare function provideConversationFileCatalog(_extraActions?: readonly AXConversationComposerAction[]): Provider[];
|
|
994
|
-
/**
|
|
995
|
-
* Composer Action Registry Service
|
|
996
|
-
*/
|
|
997
|
-
declare class AXConversationComposerActionRegistry {
|
|
998
|
-
private readonly _actions;
|
|
999
|
-
private readonly translation;
|
|
1000
|
-
private readonly injector;
|
|
1001
|
-
private readonly composerTabRegistry;
|
|
1002
|
-
constructor();
|
|
1003
|
-
/** All registered actions */
|
|
1004
|
-
readonly actions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1005
|
-
/** Start-side actions sorted by priority */
|
|
1006
|
-
readonly startActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1007
|
-
/** End-side actions sorted by priority */
|
|
1008
|
-
readonly endActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1009
|
-
/** Start-side inline actions (location = 'inline' or undefined) */
|
|
1010
|
-
readonly startInlineActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1011
|
-
/** Start-side menu actions (location = 'menu') — shown in the attachment popup */
|
|
1012
|
-
readonly startMenuActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1013
|
-
/** End-side inline actions inside the input pill (excludes default action) */
|
|
1014
|
-
readonly endInlineActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1015
|
-
/** End-side menu actions (location = 'menu') */
|
|
1016
|
-
readonly endMenuActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1017
|
-
/** The single default end action (voice/send morph button) */
|
|
1018
|
-
readonly defaultAction: _angular_core.Signal<AXConversationComposerAction>;
|
|
977
|
+
abstract getForwardCount(messageId: string): Promise<number>;
|
|
1019
978
|
/**
|
|
1020
|
-
*
|
|
979
|
+
* Send typing indicator
|
|
980
|
+
*
|
|
981
|
+
* @param conversationId - Conversation ID
|
|
982
|
+
* @throws {AXConversationApiError} If sending fails
|
|
1021
983
|
*/
|
|
1022
|
-
|
|
1023
|
-
/** Resolved lazily to avoid a DI cycle with {@link AXConversationComposerFileTypesProvider}. */
|
|
1024
|
-
private fileTypeRegistry;
|
|
1025
|
-
private ensureFileTypeExists;
|
|
984
|
+
abstract sendTypingIndicator(conversationId: string): Promise<void>;
|
|
1026
985
|
/**
|
|
1027
|
-
*
|
|
986
|
+
* Stop typing indicator
|
|
987
|
+
*
|
|
988
|
+
* @param conversationId - Conversation ID
|
|
989
|
+
* @throws {AXConversationApiError} If stopping fails
|
|
1028
990
|
*/
|
|
1029
|
-
|
|
991
|
+
abstract stopTypingIndicator(conversationId: string): Promise<void>;
|
|
1030
992
|
/**
|
|
1031
|
-
*
|
|
993
|
+
* Update message metadata
|
|
994
|
+
*
|
|
995
|
+
* @param messageId - Message ID
|
|
996
|
+
* @param metadata - Metadata to update
|
|
997
|
+
* @throws {AXConversationApiError} If update fails
|
|
1032
998
|
*/
|
|
1033
|
-
|
|
999
|
+
abstract updateMessageMetadata(messageId: string, metadata: Record<string, unknown>): Promise<void>;
|
|
1034
1000
|
/**
|
|
1035
|
-
* Get
|
|
1001
|
+
* Get message metadata
|
|
1002
|
+
*
|
|
1003
|
+
* @param messageId - Message ID
|
|
1004
|
+
* @returns Message metadata
|
|
1005
|
+
* @throws {AXConversationApiError} If request fails
|
|
1036
1006
|
*/
|
|
1037
|
-
|
|
1038
|
-
isActionEnabled(action: AXConversationComposerAction, context: AXConversationComposerActionContext): boolean;
|
|
1007
|
+
abstract getMessageMetadata(messageId: string): Promise<Record<string, unknown>>;
|
|
1039
1008
|
/**
|
|
1040
|
-
*
|
|
1009
|
+
* Update message status
|
|
1010
|
+
*
|
|
1011
|
+
* @param messageId - Message ID
|
|
1012
|
+
* @param status - New status
|
|
1013
|
+
* @throws {AXConversationApiError} If update fails
|
|
1041
1014
|
*/
|
|
1042
|
-
|
|
1015
|
+
abstract updateMessageStatus(messageId: string, status: 'sending' | 'sent' | 'delivered' | 'read' | 'failed'): Promise<void>;
|
|
1043
1016
|
/**
|
|
1044
|
-
*
|
|
1017
|
+
* Get message delivery status
|
|
1018
|
+
*
|
|
1019
|
+
* @param messageId - Message ID
|
|
1020
|
+
* @returns Delivery status information
|
|
1021
|
+
* @throws {AXConversationApiError} If request fails
|
|
1045
1022
|
*/
|
|
1046
|
-
|
|
1023
|
+
abstract getMessageDeliveryStatus(messageId: string): Promise<{
|
|
1024
|
+
delivered: number;
|
|
1025
|
+
read: number;
|
|
1026
|
+
total: number;
|
|
1027
|
+
}>;
|
|
1047
1028
|
/**
|
|
1048
|
-
*
|
|
1029
|
+
* Mark multiple messages as read
|
|
1030
|
+
*
|
|
1031
|
+
* @param messageIds - Array of message IDs
|
|
1032
|
+
* @throws {AXConversationApiError} If marking fails
|
|
1049
1033
|
*/
|
|
1050
|
-
|
|
1051
|
-
getActionLabel(action: AXConversationComposerAction): string;
|
|
1052
|
-
getActionTooltip(action: AXConversationComposerAction): string | undefined;
|
|
1034
|
+
abstract markMessagesAsRead(messageIds: string[]): Promise<void>;
|
|
1053
1035
|
/**
|
|
1054
|
-
*
|
|
1036
|
+
* Delete multiple messages in bulk
|
|
1037
|
+
*
|
|
1038
|
+
* @param conversationId - Conversation ID
|
|
1039
|
+
* @param messageIds - Array of message IDs
|
|
1040
|
+
* @param forEveryone - Delete for all participants
|
|
1041
|
+
* @throws {AXConversationApiError} If deletion fails
|
|
1055
1042
|
*/
|
|
1056
|
-
|
|
1043
|
+
abstract bulkDeleteMessages(conversationId: string, messageIds: string[], forEveryone?: boolean): Promise<void>;
|
|
1057
1044
|
/**
|
|
1058
|
-
*
|
|
1045
|
+
* Export conversation messages
|
|
1046
|
+
*
|
|
1047
|
+
* @param conversationId - Conversation ID
|
|
1048
|
+
* @param format - Export format (json, csv, txt)
|
|
1049
|
+
* @returns Export data or download URL
|
|
1050
|
+
* @throws {AXConversationApiError} If export fails
|
|
1059
1051
|
*/
|
|
1060
|
-
|
|
1052
|
+
abstract exportMessages(conversationId: string, format: 'json' | 'csv' | 'txt'): Promise<string | Blob>;
|
|
1061
1053
|
/**
|
|
1062
|
-
*
|
|
1054
|
+
* Create an API error
|
|
1055
|
+
* Helper method for consistent error creation
|
|
1056
|
+
*
|
|
1057
|
+
* @param code - Error code
|
|
1058
|
+
* @param message - Error message
|
|
1059
|
+
* @param statusCode - HTTP status code
|
|
1060
|
+
* @param details - Additional details
|
|
1061
|
+
* @returns API error object
|
|
1063
1062
|
*/
|
|
1064
|
-
|
|
1065
|
-
|
|
1063
|
+
protected createError(code: string, message: string, statusCode?: number, details?: unknown): AXConversationApiError;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
interface AXConversationPinnedMessageEntry extends AXConversationPinnedMessage {
|
|
1067
|
+
message: AXConversationMessage;
|
|
1068
|
+
}
|
|
1069
|
+
/** Owns pin state only: it never replaces or dismisses the media banner. */
|
|
1070
|
+
declare class AXConversationMessagePinsService {
|
|
1071
|
+
private readonly conversation;
|
|
1072
|
+
private readonly api;
|
|
1073
|
+
private readonly config;
|
|
1074
|
+
private readonly injector;
|
|
1075
|
+
private readonly dialog;
|
|
1076
|
+
private readonly translation;
|
|
1077
|
+
private readonly state;
|
|
1078
|
+
private generation;
|
|
1079
|
+
private readonly navigation;
|
|
1080
|
+
readonly navigationRequests: rxjs.Observable<{
|
|
1081
|
+
conversationId: string;
|
|
1082
|
+
messageId: string;
|
|
1083
|
+
}>;
|
|
1084
|
+
readonly activeConversationId: _angular_core.Signal<string>;
|
|
1085
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
1086
|
+
readonly navigating: _angular_core.WritableSignal<boolean>;
|
|
1087
|
+
readonly busy: _angular_core.WritableSignal<boolean>;
|
|
1088
|
+
readonly error: _angular_core.WritableSignal<unknown>;
|
|
1089
|
+
readonly currentIndex: _angular_core.WritableSignal<number>;
|
|
1090
|
+
private readonly pinnedViewConversationId;
|
|
1091
|
+
readonly viewingPinned: _angular_core.Signal<boolean>;
|
|
1092
|
+
readonly searchVisible: _angular_core.WritableSignal<boolean>;
|
|
1093
|
+
readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
1094
|
+
readonly pins: _angular_core.Signal<AXConversationPinnedMessageEntry[]>;
|
|
1095
|
+
readonly current: _angular_core.Signal<AXConversationPinnedMessageEntry>;
|
|
1096
|
+
/** Pinned feed uses message chronology, independently of the bar's pin-time order. */
|
|
1097
|
+
readonly pinnedMessages: _angular_core.Signal<{
|
|
1098
|
+
pinned: boolean;
|
|
1099
|
+
id: string;
|
|
1100
|
+
conversationId: string;
|
|
1101
|
+
senderId: string;
|
|
1102
|
+
type: _acorex_components_conversation.AXConversationMessageType;
|
|
1103
|
+
fileType?: string;
|
|
1104
|
+
timestamp: Date;
|
|
1105
|
+
payload: _acorex_components_conversation.AXConversationMessagePayload;
|
|
1106
|
+
status: _acorex_components_conversation.AXConversationMessageStatus;
|
|
1107
|
+
replyTo?: AXConversationMessage;
|
|
1108
|
+
forwarded?: boolean;
|
|
1109
|
+
forwardedFrom?: {
|
|
1110
|
+
messageId: string;
|
|
1111
|
+
senderId: string;
|
|
1112
|
+
senderName?: string;
|
|
1113
|
+
conversationId: string;
|
|
1114
|
+
conversationTitle?: string;
|
|
1115
|
+
};
|
|
1116
|
+
reactions: _acorex_components_conversation.AXConversationReaction[];
|
|
1117
|
+
replyCount?: number;
|
|
1118
|
+
forwardCount?: number;
|
|
1119
|
+
editedAt?: Date;
|
|
1120
|
+
deleted?: boolean;
|
|
1121
|
+
deletedAt?: Date;
|
|
1122
|
+
isLocal?: boolean;
|
|
1123
|
+
metadata?: Record<string, unknown>;
|
|
1124
|
+
}[]>;
|
|
1125
|
+
readonly visibleMessages: _angular_core.Signal<{
|
|
1126
|
+
pinned: boolean;
|
|
1127
|
+
id: string;
|
|
1128
|
+
conversationId: string;
|
|
1129
|
+
senderId: string;
|
|
1130
|
+
type: _acorex_components_conversation.AXConversationMessageType;
|
|
1131
|
+
fileType?: string;
|
|
1132
|
+
timestamp: Date;
|
|
1133
|
+
payload: _acorex_components_conversation.AXConversationMessagePayload;
|
|
1134
|
+
status: _acorex_components_conversation.AXConversationMessageStatus;
|
|
1135
|
+
replyTo?: AXConversationMessage;
|
|
1136
|
+
forwarded?: boolean;
|
|
1137
|
+
forwardedFrom?: {
|
|
1138
|
+
messageId: string;
|
|
1139
|
+
senderId: string;
|
|
1140
|
+
senderName?: string;
|
|
1141
|
+
conversationId: string;
|
|
1142
|
+
conversationTitle?: string;
|
|
1143
|
+
};
|
|
1144
|
+
reactions: _acorex_components_conversation.AXConversationReaction[];
|
|
1145
|
+
replyCount?: number;
|
|
1146
|
+
forwardCount?: number;
|
|
1147
|
+
editedAt?: Date;
|
|
1148
|
+
deleted?: boolean;
|
|
1149
|
+
deletedAt?: Date;
|
|
1150
|
+
isLocal?: boolean;
|
|
1151
|
+
metadata?: Record<string, unknown>;
|
|
1152
|
+
}[]>;
|
|
1153
|
+
readonly canManage: _angular_core.Signal<boolean>;
|
|
1154
|
+
private readonly signature;
|
|
1155
|
+
readonly hidden: _angular_core.Signal<boolean>;
|
|
1156
|
+
constructor();
|
|
1157
|
+
isPinned(message: AXConversationMessage): boolean;
|
|
1158
|
+
canPin(message: AXConversationMessage): boolean;
|
|
1159
|
+
reload(conversationId?: string): Promise<void>;
|
|
1160
|
+
setPinned(messages: readonly AXConversationMessage[], pinned: boolean, confirm?: boolean): Promise<void>;
|
|
1161
|
+
unpinAll(): Promise<void>;
|
|
1162
|
+
navigate(messageId: string): void;
|
|
1163
|
+
navigateCurrent(): void;
|
|
1164
|
+
setHidden(hidden: boolean): Promise<void>;
|
|
1165
|
+
openList(): Promise<void>;
|
|
1166
|
+
closeList(): void;
|
|
1167
|
+
toggleSearch(): void;
|
|
1168
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessagePinsService, never>;
|
|
1066
1169
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1067
1170
|
}
|
|
1068
1171
|
|
|
1069
1172
|
/**
|
|
1070
|
-
*
|
|
1173
|
+
* Abstract Base Registry
|
|
1174
|
+
* Base class for all registries with common functionality
|
|
1071
1175
|
*/
|
|
1072
|
-
interface AXConversationComposerTab extends AXConversationRegistryItem {
|
|
1073
|
-
/** Display title */
|
|
1074
|
-
title: string;
|
|
1075
|
-
/** Icon name/class */
|
|
1076
|
-
icon?: string;
|
|
1077
|
-
/** Angular component for tab content */
|
|
1078
|
-
component?: Type<unknown>;
|
|
1079
|
-
/** Lazy loader for tab content */
|
|
1080
|
-
componentLoader?: () => Promise<Type<unknown>>;
|
|
1081
|
-
/** Default data provider (optional) */
|
|
1082
|
-
dataProvider?: () => Observable<unknown>;
|
|
1083
|
-
/** Custom class for styling */
|
|
1084
|
-
className?: string;
|
|
1085
|
-
/** Badge text/count */
|
|
1086
|
-
badge?: string | number;
|
|
1087
|
-
}
|
|
1088
|
-
/**
|
|
1089
|
-
* Composer Tab Registry Service
|
|
1090
|
-
*/
|
|
1091
|
-
declare class AXConversationComposerTabRegistry {
|
|
1092
|
-
private readonly _tabs;
|
|
1093
|
-
private readonly translation;
|
|
1094
|
-
constructor();
|
|
1095
|
-
/** All registered tabs */
|
|
1096
|
-
readonly tabs: _angular_core.Signal<AXConversationComposerTab[]>;
|
|
1097
|
-
/** Enabled tabs sorted by priority */
|
|
1098
|
-
readonly enabledTabs: _angular_core.Signal<AXConversationComposerTab[]>;
|
|
1099
|
-
/** Whether the composer popup has any tabs to show. */
|
|
1100
|
-
readonly hasEnabledTabs: _angular_core.Signal<boolean>;
|
|
1101
|
-
/**
|
|
1102
|
-
* Register a composer tab
|
|
1103
|
-
*/
|
|
1104
|
-
register(tab: AXConversationComposerTab): void;
|
|
1105
|
-
/**
|
|
1106
|
-
* Unregister a composer tab
|
|
1107
|
-
*/
|
|
1108
|
-
unregister(id: string): void;
|
|
1109
|
-
/**
|
|
1110
|
-
* Get tab by ID
|
|
1111
|
-
*/
|
|
1112
|
-
getTabById(id: string): AXConversationComposerTab | undefined;
|
|
1113
|
-
getTabTitle(tab: AXConversationComposerTab): string;
|
|
1114
|
-
/**
|
|
1115
|
-
* Enable/disable a tab
|
|
1116
|
-
*/
|
|
1117
|
-
setEnabled(id: string, enabled: boolean): void;
|
|
1118
|
-
/**
|
|
1119
|
-
* Update tab badge
|
|
1120
|
-
*/
|
|
1121
|
-
setBadge(id: string, badge: string | number | undefined): void;
|
|
1122
|
-
/**
|
|
1123
|
-
* Clear all tabs
|
|
1124
|
-
*/
|
|
1125
|
-
clear(): void;
|
|
1126
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerTabRegistry, never>;
|
|
1127
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1128
|
-
}
|
|
1129
1176
|
|
|
1130
1177
|
/**
|
|
1131
|
-
*
|
|
1132
|
-
*/
|
|
1133
|
-
interface AXConversationItemActionContext {
|
|
1134
|
-
/** The conversation */
|
|
1135
|
-
conversation: AXConversation;
|
|
1136
|
-
/** Additional context data */
|
|
1137
|
-
data?: Record<string, unknown>;
|
|
1138
|
-
}
|
|
1139
|
-
/**
|
|
1140
|
-
* Conversation item action configuration
|
|
1178
|
+
* Base registry interface
|
|
1141
1179
|
*/
|
|
1142
|
-
interface
|
|
1143
|
-
/**
|
|
1144
|
-
|
|
1145
|
-
/**
|
|
1146
|
-
|
|
1147
|
-
/**
|
|
1148
|
-
|
|
1149
|
-
/** Whether this action is destructive */
|
|
1150
|
-
destructive?: boolean;
|
|
1151
|
-
/** Whether this is a divider */
|
|
1152
|
-
divider?: boolean;
|
|
1153
|
-
/**
|
|
1154
|
-
* Visibility condition
|
|
1155
|
-
* @returns true if action should be visible
|
|
1156
|
-
*/
|
|
1157
|
-
visible?: (context: AXConversationItemActionContext) => boolean;
|
|
1158
|
-
/**
|
|
1159
|
-
* Dynamic enabled condition
|
|
1160
|
-
* @returns true if action should be enabled
|
|
1161
|
-
* Note: Use the `enabled` property from AXConversationRegistryItem for static enable/disable
|
|
1162
|
-
*/
|
|
1163
|
-
enabledWhen?: (context: AXConversationItemActionContext) => boolean;
|
|
1164
|
-
/**
|
|
1165
|
-
* Action handler
|
|
1166
|
-
* Called when the action is clicked
|
|
1167
|
-
*/
|
|
1168
|
-
handler?: (context: AXConversationItemActionContext) => void | Promise<void>;
|
|
1180
|
+
interface AXConversationRegistryItem {
|
|
1181
|
+
/** Unique identifier */
|
|
1182
|
+
id: string;
|
|
1183
|
+
/** Display order priority (higher = earlier) */
|
|
1184
|
+
priority?: number;
|
|
1185
|
+
/** Whether item is enabled */
|
|
1186
|
+
enabled?: boolean;
|
|
1169
1187
|
}
|
|
1170
1188
|
/**
|
|
1171
|
-
*
|
|
1172
|
-
*
|
|
1189
|
+
* Abstract Base Registry Class
|
|
1190
|
+
* Provides common registry functionality
|
|
1173
1191
|
*/
|
|
1174
|
-
declare class
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
/**
|
|
1179
|
-
|
|
1180
|
-
*/
|
|
1181
|
-
protected getRegistryName(): string;
|
|
1192
|
+
declare abstract class AXConversationBaseRegistry<T extends AXConversationRegistryItem> {
|
|
1193
|
+
protected readonly _items: WritableSignal<T[]>;
|
|
1194
|
+
/** All registered items */
|
|
1195
|
+
readonly items: Signal<T[]>;
|
|
1196
|
+
/** Enabled items sorted by priority */
|
|
1197
|
+
readonly enabledItems: Signal<T[]>;
|
|
1182
1198
|
/**
|
|
1183
|
-
*
|
|
1199
|
+
* Register an item
|
|
1184
1200
|
*/
|
|
1185
|
-
|
|
1186
|
-
isActionEnabled(action: AXConversationItemAction, context: AXConversationItemActionContext): boolean;
|
|
1201
|
+
register(item: T): void;
|
|
1187
1202
|
/**
|
|
1188
|
-
*
|
|
1203
|
+
* Register multiple items
|
|
1189
1204
|
*/
|
|
1190
|
-
|
|
1205
|
+
registerMany(items: T[]): void;
|
|
1191
1206
|
/**
|
|
1192
|
-
*
|
|
1207
|
+
* Unregister an item by ID
|
|
1193
1208
|
*/
|
|
1194
|
-
|
|
1209
|
+
unregister(id: string): void;
|
|
1195
1210
|
/**
|
|
1196
|
-
* Get
|
|
1211
|
+
* Get item by ID
|
|
1197
1212
|
*/
|
|
1198
|
-
|
|
1199
|
-
executeAction(actionId: string, context: AXConversationItemActionContext): Promise<void>;
|
|
1200
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationItemActionRegistry, never>;
|
|
1201
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
/**
|
|
1205
|
-
* Conversation tab registration
|
|
1206
|
-
*/
|
|
1207
|
-
interface AXConversationTab extends AXConversationRegistryItem {
|
|
1208
|
-
/** Display label */
|
|
1209
|
-
label: string;
|
|
1210
|
-
/** Icon name/class */
|
|
1211
|
-
icon?: string;
|
|
1212
|
-
/** Filter function to determine which conversations to show */
|
|
1213
|
-
filter: (conversations: AXConversation[]) => AXConversation[];
|
|
1214
|
-
/** Badge function to compute badge count/text */
|
|
1215
|
-
badge?: (conversations: AXConversation[]) => number | string | undefined;
|
|
1216
|
-
/** Custom class for styling */
|
|
1217
|
-
className?: string;
|
|
1218
|
-
/** Whether this is the default active tab */
|
|
1219
|
-
default?: boolean;
|
|
1220
|
-
}
|
|
1221
|
-
/**
|
|
1222
|
-
* Conversation Tab Registry Service
|
|
1223
|
-
*/
|
|
1224
|
-
declare class AXConversationTabRegistry {
|
|
1225
|
-
private readonly _tabs;
|
|
1226
|
-
private readonly translation;
|
|
1227
|
-
constructor();
|
|
1228
|
-
/** All registered tabs */
|
|
1229
|
-
readonly tabs: _angular_core.Signal<AXConversationTab[]>;
|
|
1230
|
-
/** Enabled tabs sorted by priority */
|
|
1231
|
-
readonly enabledTabs: _angular_core.Signal<AXConversationTab[]>;
|
|
1232
|
-
/** Default active tab */
|
|
1233
|
-
readonly defaultTab: _angular_core.Signal<AXConversationTab>;
|
|
1213
|
+
getById(id: string): T | undefined;
|
|
1234
1214
|
/**
|
|
1235
|
-
*
|
|
1215
|
+
* Check if item exists
|
|
1236
1216
|
*/
|
|
1237
|
-
|
|
1217
|
+
has(id: string): boolean;
|
|
1238
1218
|
/**
|
|
1239
|
-
*
|
|
1219
|
+
* Enable/disable an item
|
|
1240
1220
|
*/
|
|
1241
|
-
|
|
1221
|
+
setEnabled(id: string, enabled: boolean): void;
|
|
1242
1222
|
/**
|
|
1243
|
-
*
|
|
1223
|
+
* Update an item
|
|
1244
1224
|
*/
|
|
1245
|
-
|
|
1246
|
-
getTabLabel(tab: AXConversationTab): string;
|
|
1225
|
+
update(id: string, updates: Partial<T>): void;
|
|
1247
1226
|
/**
|
|
1248
|
-
*
|
|
1227
|
+
* Clear all items
|
|
1249
1228
|
*/
|
|
1250
|
-
|
|
1229
|
+
clear(): void;
|
|
1251
1230
|
/**
|
|
1252
|
-
* Get
|
|
1231
|
+
* Get count of registered items
|
|
1253
1232
|
*/
|
|
1254
|
-
|
|
1233
|
+
get count(): number;
|
|
1255
1234
|
/**
|
|
1256
|
-
*
|
|
1235
|
+
* Get count of enabled items
|
|
1257
1236
|
*/
|
|
1258
|
-
|
|
1237
|
+
get enabledCount(): number;
|
|
1259
1238
|
/**
|
|
1260
|
-
*
|
|
1239
|
+
* Validate item before registration
|
|
1240
|
+
* Override in child classes for custom validation
|
|
1261
1241
|
*/
|
|
1262
|
-
|
|
1242
|
+
protected validateItem(item: T): void;
|
|
1263
1243
|
/**
|
|
1264
|
-
*
|
|
1244
|
+
* Get registry name for logging
|
|
1245
|
+
* Override in child classes
|
|
1265
1246
|
*/
|
|
1266
|
-
|
|
1267
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationTabRegistry, never>;
|
|
1268
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1247
|
+
protected abstract getRegistryName(): string;
|
|
1269
1248
|
}
|
|
1270
1249
|
|
|
1271
|
-
/** Visual chrome around a message body in the list. */
|
|
1272
|
-
type AXConversationMessageChrome = 'bubble' | 'plain';
|
|
1273
|
-
/** Max consecutive emoji graphemes that render as a jumbo (sticker-sized) text message. */
|
|
1274
|
-
declare const AX_CONVERSATION_JUMBO_EMOJI_MAX = 3;
|
|
1275
|
-
/**
|
|
1276
|
-
* Resolve registry chrome config to a concrete value.
|
|
1277
|
-
* Default is {@link AXConversationMessageChrome bubble}.
|
|
1278
|
-
*/
|
|
1279
|
-
declare function resolveMessageChrome(chrome: AXConversationMessageChrome | ((message: AXConversationMessage) => AXConversationMessageChrome) | undefined, message: AXConversationMessage): AXConversationMessageChrome;
|
|
1280
|
-
/** Visible graphemes in trimmed text (whitespace between emojis is dropped). */
|
|
1281
|
-
declare function listTextGraphemes(text: string | null | undefined): string[];
|
|
1282
|
-
/** Count emoji graphemes in trimmed text; `0` when mixed with other characters. */
|
|
1283
|
-
declare function countLoneEmojis(text: string | null | undefined): number;
|
|
1284
|
-
declare function isJumboEmojiText(text: string | null | undefined): boolean;
|
|
1285
|
-
declare function isJumboEmojiTextMessage(message: AXConversationMessage): boolean;
|
|
1286
|
-
/** Types that never sit inside a bubble cluster with neighboring messages. */
|
|
1287
|
-
declare function isPlainChromeMessage(message: AXConversationMessage): boolean;
|
|
1288
|
-
|
|
1289
1250
|
/**
|
|
1290
|
-
*
|
|
1291
|
-
* Register custom message renderers for different message types
|
|
1251
|
+
* Shared upload state and helpers for composer media pickers.
|
|
1292
1252
|
*/
|
|
1293
1253
|
|
|
1294
|
-
/**
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
/** Custom capabilities */
|
|
1309
|
-
custom?: Record<string, boolean>;
|
|
1254
|
+
/** Stable id for `@for` tracking while upload state is patched immutably. */
|
|
1255
|
+
declare function createPickerUploadItemId(): string;
|
|
1256
|
+
interface AXConversationComposerPickerUploadItem {
|
|
1257
|
+
id: string;
|
|
1258
|
+
file: File;
|
|
1259
|
+
preview?: string;
|
|
1260
|
+
duration?: number;
|
|
1261
|
+
uploadProgress?: number;
|
|
1262
|
+
uploading?: boolean;
|
|
1263
|
+
uploaded?: boolean;
|
|
1264
|
+
uploadedUrl?: string;
|
|
1265
|
+
mediaId?: string;
|
|
1266
|
+
error?: string;
|
|
1267
|
+
abortController?: AbortController;
|
|
1310
1268
|
}
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
* Combined state for a chat message renderer: delivery pipeline plus optional content load.
|
|
1318
|
-
*/
|
|
1319
|
-
interface AXConversationMessageRendererState {
|
|
1320
|
-
/** Mirrors `message.status` (sending, sent, delivered, read, failed). */
|
|
1321
|
-
deliveryStatus: AXConversationMessageStatus;
|
|
1322
|
-
/** Media / rich content load; set to `error` from `(error)` handlers on img, audio, video, etc. */
|
|
1323
|
-
contentState: AXConversationMessageRendererContentState;
|
|
1324
|
-
}
|
|
1325
|
-
/**
|
|
1326
|
-
* Contract for components used as {@link AXConversationMessageRenderer.component}.
|
|
1327
|
-
* The message list passes `{ message }`; each view exposes `rendererState` for templates and tooling.
|
|
1328
|
-
*/
|
|
1329
|
-
interface AXConversationMessageRendererComponent {
|
|
1330
|
-
readonly message: InputSignal<AXConversationMessage>;
|
|
1331
|
-
readonly rendererState: Signal<AXConversationMessageRendererState>;
|
|
1332
|
-
/** Plain-text copy for this message (does not write to the clipboard). */
|
|
1333
|
-
copy?(): string | Promise<string>;
|
|
1269
|
+
declare function getPickerCancelUploadLabel(translation: AXTranslationService): string;
|
|
1270
|
+
declare function abortPickerUploads(items: Iterable<{
|
|
1271
|
+
abortController?: AbortController;
|
|
1272
|
+
} | null | undefined>): void;
|
|
1273
|
+
interface AXConversationCleanupPickerUploadsOptions {
|
|
1274
|
+
retainUploaded?: boolean;
|
|
1334
1275
|
}
|
|
1335
|
-
/**
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1276
|
+
/** Upload finished; reference is {@link mediaId} and/or a non-empty session url. */
|
|
1277
|
+
declare function isPickerItemReadyToSend(item: Pick<AXConversationComposerPickerUploadItem, 'uploaded' | 'uploadedUrl' | 'mediaId'>): boolean;
|
|
1278
|
+
/** Build uploader result shape for {@link *ItemFromUpload} after picker upload. */
|
|
1279
|
+
declare function pickerItemToUploadResult(item: Pick<AXConversationComposerPickerUploadItem, 'uploaded' | 'uploadedUrl' | 'mediaId' | 'file'>): {
|
|
1280
|
+
url: string;
|
|
1281
|
+
mediaId?: string;
|
|
1282
|
+
mimeType: string;
|
|
1283
|
+
size: number;
|
|
1284
|
+
} | null;
|
|
1285
|
+
declare function pickerItemToMediaReference(item: Pick<AXConversationComposerPickerUploadItem, 'uploaded' | 'uploadedUrl' | 'mediaId' | 'file'>): AXConversationUploaderReference | null;
|
|
1286
|
+
declare function deleteUploadedPickerMedia(uploader: AXUploaderService, items: Iterable<AXConversationComposerPickerUploadItem | null | undefined>): Promise<void>;
|
|
1287
|
+
declare function cleanupPickerUploads(uploader: AXUploaderService, items: Iterable<AXConversationComposerPickerUploadItem | null | undefined>, options?: AXConversationCleanupPickerUploadsOptions): void;
|
|
1288
|
+
declare function revokePickerBlobPreviews(items: Iterable<{
|
|
1289
|
+
preview?: string;
|
|
1290
|
+
} | null | undefined>): void;
|
|
1291
|
+
declare function isUploadAborted(error: unknown, signal?: AbortSignal): boolean;
|
|
1292
|
+
declare function limitFilesToCapacity(files: File[], currentCount: number, maxFiles: number): File[];
|
|
1293
|
+
declare function uploadPickerFile(uploader: AXUploaderService, conversationId: string, file: File, onProgress: (percent: number) => void, signal?: AbortSignal): Promise<{
|
|
1294
|
+
url: string;
|
|
1295
|
+
mediaId?: string;
|
|
1296
|
+
mimeType: string;
|
|
1297
|
+
size: number;
|
|
1298
|
+
}>;
|
|
1299
|
+
declare function notifyMaxFilesCapacityExceeded(toast: AXToastService, translation: AXTranslationService, maxFiles: number): void;
|
|
1300
|
+
/** User-facing message for a file validation failure. */
|
|
1301
|
+
declare function formatPickerValidationMessage(translation: AXTranslationService, file: File, error: AXValidationRuleResult | undefined): string;
|
|
1302
|
+
/** Show a warning toast for each failed validation rule result. */
|
|
1303
|
+
declare function notifyPickerValidationErrors(toast: AXToastService, translation: AXTranslationService, rejected: {
|
|
1304
|
+
file: File;
|
|
1305
|
+
errors: AXValidationRuleResult[];
|
|
1306
|
+
}[]): void;
|
|
1307
|
+
/** Close popup/action-sheet host or inline composer shell after send/cancel. */
|
|
1308
|
+
declare function dismissComposerPickerHost(composerService: AXConversationComposerService, popupRef?: AXPopupRef | null, actionSheetRef?: AXActionSheetRef | null): void;
|
|
1309
|
+
|
|
1310
|
+
type AXConversationComposerDraftAttachmentKind = 'image' | 'video' | 'audio' | 'file';
|
|
1311
|
+
interface AXConversationComposerDraftAttachment extends AXConversationComposerPickerUploadItem {
|
|
1312
|
+
kind: AXConversationComposerDraftAttachmentKind;
|
|
1313
|
+
icon: string;
|
|
1341
1314
|
}
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1315
|
+
|
|
1316
|
+
/** Primary composer button mode (send / cancel / stopping / default action / locked). */
|
|
1317
|
+
type AXConversationComposerPrimaryButtonMode = 'send' | 'cancel' | 'stopping' | 'default-action' | 'locked';
|
|
1318
|
+
declare class AXConversationComposerService {
|
|
1319
|
+
private readonly conversationService;
|
|
1320
|
+
private readonly generationState;
|
|
1321
|
+
private readonly translation;
|
|
1322
|
+
private readonly popupService;
|
|
1323
|
+
private readonly uploader;
|
|
1324
|
+
private readonly fileService;
|
|
1325
|
+
private readonly toast;
|
|
1326
|
+
private readonly config;
|
|
1327
|
+
private readonly destroyRef;
|
|
1328
|
+
private readonly _activeActionOverlay;
|
|
1329
|
+
constructor();
|
|
1330
|
+
private get registry();
|
|
1331
|
+
private readonly _replyMessage;
|
|
1332
|
+
private readonly _editMessage;
|
|
1333
|
+
readonly replyMessage: _angular_core.Signal<AXConversationMessage>;
|
|
1334
|
+
readonly editMessage: _angular_core.Signal<AXConversationMessage>;
|
|
1335
|
+
readonly activeConversation: _angular_core.Signal<_acorex_components_conversation.AXConversation>;
|
|
1336
|
+
readonly activeMessages: _angular_core.Signal<AXConversationMessage[]>;
|
|
1337
|
+
/** Draft text */
|
|
1338
|
+
readonly draftText: _angular_core.WritableSignal<string>;
|
|
1339
|
+
readonly draftMentions: _angular_core.WritableSignal<AXConversationMention[]>;
|
|
1340
|
+
private mentionText;
|
|
1341
|
+
/** Also called synchronously before inserting or sending a mention. */
|
|
1342
|
+
syncDraftMentions(text?: string): void;
|
|
1343
|
+
setDraftMentions(text: string, mentions: AXConversationMention[]): void;
|
|
1344
|
+
mentionsForText(text: string): AXConversationMention[];
|
|
1345
|
+
/** Inline composer attachments shown above the input in banner mode. */
|
|
1346
|
+
readonly draftAttachments: _angular_core.WritableSignal<AXConversationComposerDraftAttachment[]>;
|
|
1347
|
+
readonly draftAttachmentsReady: _angular_core.Signal<boolean>;
|
|
1348
|
+
readonly usesAttachmentBanner: _angular_core.Signal<boolean>;
|
|
1349
|
+
/** Incremented to request focus on the composer text area (handled by AXConversationComposerComponent). */
|
|
1350
|
+
private readonly _focusRequest;
|
|
1351
|
+
readonly focusRequest: _angular_core.Signal<number>;
|
|
1352
|
+
/** Input placeholder */
|
|
1353
|
+
readonly placeholder: _angular_core.Signal<string>;
|
|
1354
|
+
/** Number of input rows */
|
|
1355
|
+
readonly inputRows: _angular_core.Signal<number>;
|
|
1356
|
+
/** Can send message (draft has content; does not include generation state). */
|
|
1357
|
+
readonly canSend: _angular_core.Signal<boolean>;
|
|
1358
|
+
/** Whether a background generation (e.g. AI response) is in progress. */
|
|
1359
|
+
readonly isGenerating: _angular_core.Signal<boolean>;
|
|
1360
|
+
/** Whether cancel cleanup is in progress (spinner on primary button). */
|
|
1361
|
+
readonly isStopping: _angular_core.Signal<boolean>;
|
|
1362
|
+
/** Primary end-button mode for send / cancel / stopping / voice / locked. */
|
|
1363
|
+
readonly primaryButtonMode: _angular_core.Signal<AXConversationComposerPrimaryButtonMode>;
|
|
1364
|
+
/** Composer action context */
|
|
1365
|
+
readonly actionContext: _angular_core.Signal<AXConversationComposerActionContext>;
|
|
1366
|
+
/** Start actions from registry */
|
|
1367
|
+
readonly startActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1368
|
+
/** End actions from registry */
|
|
1369
|
+
readonly endActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1370
|
+
/** Start inline actions (location = 'inline' or undefined) */
|
|
1371
|
+
readonly startInlineActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1372
|
+
/** Start menu actions — shown in the attachment popup */
|
|
1373
|
+
readonly startMenuActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1374
|
+
/** End inline actions inside the input pill (excludes default action) */
|
|
1375
|
+
readonly endInlineActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1376
|
+
/** End menu actions (location = 'menu') */
|
|
1377
|
+
readonly endMenuActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1378
|
+
/** Default end action (voice/send morph button) */
|
|
1379
|
+
readonly defaultAction: _angular_core.Signal<AXConversationComposerAction>;
|
|
1380
|
+
cancelGeneration(): void;
|
|
1381
|
+
startReply(message: AXConversationMessage): void;
|
|
1382
|
+
startEdit(message: AXConversationMessage): void;
|
|
1383
|
+
/** Focus the composer text area when the composer component is mounted. */
|
|
1384
|
+
focusComposer(): void;
|
|
1385
|
+
clearReplyEdit(): void;
|
|
1386
|
+
clear(): void;
|
|
1363
1387
|
/**
|
|
1364
|
-
*
|
|
1365
|
-
* `plain` removes bubble fill, padding, shadow, and tail. Default is `bubble`.
|
|
1366
|
-
* Pass a function when chrome depends on payload (e.g. jumbo emoji text).
|
|
1388
|
+
* Persist draft for the previous conversation and reset composer UI state when switching conversations.
|
|
1367
1389
|
*/
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
/** Icon name/class */
|
|
1372
|
-
icon?: string;
|
|
1373
|
-
/** Linked file type catalog name (for utility APIs like preview/duration). */
|
|
1374
|
-
fileType?: string;
|
|
1390
|
+
onConversationChanged(previousConversationId: string | null, currentConversationId: string | null): void;
|
|
1391
|
+
sendTypingIndicator(conversationId: string): Promise<void>;
|
|
1392
|
+
sendMessage(command: AXConversationSendMessageCommand, options?: AXConversationSendMessageOptions): Promise<void>;
|
|
1375
1393
|
/**
|
|
1376
|
-
*
|
|
1377
|
-
* Registered with {@link AXConversationComposerActionRegistry} when the renderer is registered.
|
|
1378
|
-
* Use `AXConversationRegistryConfiguration.composerActions` for actions not tied to a single message renderer.
|
|
1394
|
+
* Resets composer input immediately when a send starts so upload/API work continues in the background.
|
|
1379
1395
|
*/
|
|
1380
|
-
|
|
1381
|
-
}
|
|
1382
|
-
/**
|
|
1383
|
-
* Message Renderer Registry Service
|
|
1384
|
-
*/
|
|
1385
|
-
declare class AXConversationMessageRendererRegistry {
|
|
1386
|
-
private readonly _renderers;
|
|
1387
|
-
private readonly _composerActions;
|
|
1388
|
-
constructor();
|
|
1389
|
-
private registerBuiltInRenderers;
|
|
1390
|
-
private registerBuiltInRendererIfMissing;
|
|
1391
|
-
/** All registered renderers */
|
|
1392
|
-
readonly renderers: Signal<AXConversationMessageRenderer[]>;
|
|
1393
|
-
/** Renderers sorted by priority (highest first) */
|
|
1394
|
-
readonly sortedRenderers: Signal<AXConversationMessageRenderer[]>;
|
|
1395
|
-
/** O(1) lookup by message type. Rebuilt when the registry changes. */
|
|
1396
|
-
private readonly rendererByType;
|
|
1397
|
-
private readonly missingRendererTypesWarned;
|
|
1396
|
+
clearComposerInput(conversationId?: string): void;
|
|
1398
1397
|
/**
|
|
1399
|
-
*
|
|
1398
|
+
* Open a composer action component in a popup (desktop) or action sheet (mobile).
|
|
1400
1399
|
*/
|
|
1401
|
-
|
|
1400
|
+
openActionComponent(action: AXConversationComposerAction, inputs?: Record<string, unknown>, options?: {
|
|
1401
|
+
toggleable?: boolean;
|
|
1402
|
+
initialFiles?: File[];
|
|
1403
|
+
}): Promise<void>;
|
|
1404
|
+
browseDraftAttachments(fileType?: string): Promise<number>;
|
|
1405
|
+
addDraftAttachments(files: File[]): Promise<number>;
|
|
1406
|
+
removeDraftAttachment(id: string): void;
|
|
1407
|
+
clearDraftAttachments(options?: {
|
|
1408
|
+
retainUploaded?: boolean;
|
|
1409
|
+
}): void;
|
|
1410
|
+
buildDraftAttachmentCommand(caption?: string): Promise<AXConversationSendMessageCommand | null>;
|
|
1411
|
+
private uploadDraftAttachment;
|
|
1412
|
+
private patchDraftAttachment;
|
|
1402
1413
|
/**
|
|
1403
|
-
*
|
|
1414
|
+
* Hide the active action overlay.
|
|
1404
1415
|
*/
|
|
1405
|
-
|
|
1416
|
+
hideComponent(): void;
|
|
1406
1417
|
/**
|
|
1407
|
-
* Get
|
|
1408
|
-
* Missing types are warned once; callers should fall back to the `fallback` renderer.
|
|
1418
|
+
* Get actions for the active conversation
|
|
1409
1419
|
*/
|
|
1410
|
-
|
|
1420
|
+
getActionsForPosition(position: 'start' | 'end', context: AXConversationComposerActionContext): AXConversationComposerAction[];
|
|
1411
1421
|
/**
|
|
1412
|
-
*
|
|
1422
|
+
* Execute an action
|
|
1413
1423
|
*/
|
|
1414
|
-
|
|
1415
|
-
private warnMissingRenderer;
|
|
1424
|
+
executeAction(actionId: string, context: AXConversationComposerActionContext): Promise<void>;
|
|
1416
1425
|
/**
|
|
1417
|
-
*
|
|
1426
|
+
* Save draft to localStorage
|
|
1418
1427
|
*/
|
|
1419
|
-
|
|
1428
|
+
saveDraft(conversationId: string, text: string): void;
|
|
1420
1429
|
/**
|
|
1421
|
-
*
|
|
1430
|
+
* Load draft from localStorage
|
|
1422
1431
|
*/
|
|
1423
|
-
|
|
1432
|
+
loadDraft(conversationId: string): string;
|
|
1424
1433
|
/**
|
|
1425
|
-
* Clear
|
|
1434
|
+
* Clear draft from localStorage
|
|
1426
1435
|
*/
|
|
1427
|
-
|
|
1428
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1436
|
+
clearDraft(conversationId: string): void;
|
|
1437
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerService, never>;
|
|
1429
1438
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1430
1439
|
}
|
|
1431
1440
|
|
|
1432
1441
|
/**
|
|
1433
|
-
*
|
|
1442
|
+
* Composer context provided to actions
|
|
1434
1443
|
*/
|
|
1435
|
-
interface
|
|
1436
|
-
/**
|
|
1437
|
-
|
|
1438
|
-
/**
|
|
1439
|
-
|
|
1440
|
-
/**
|
|
1441
|
-
|
|
1442
|
-
/**
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
/** Message
|
|
1447
|
-
|
|
1448
|
-
/**
|
|
1449
|
-
|
|
1450
|
-
/**
|
|
1451
|
-
|
|
1452
|
-
/**
|
|
1453
|
-
|
|
1454
|
-
/** Callback invoked when the banner is dismissed (e.g. pause playback) */
|
|
1455
|
-
onClose?: () => void;
|
|
1444
|
+
interface AXConversationComposerActionContext {
|
|
1445
|
+
/** Current draft text */
|
|
1446
|
+
draftText: string;
|
|
1447
|
+
/** Conversation ID */
|
|
1448
|
+
conversationId: string;
|
|
1449
|
+
/** Whether editing a message */
|
|
1450
|
+
isEditing: boolean;
|
|
1451
|
+
/** Message being edited (if any) */
|
|
1452
|
+
editingMessageId?: string;
|
|
1453
|
+
/** Whether replying to a message */
|
|
1454
|
+
isReplying: boolean;
|
|
1455
|
+
/** Message being replied to (if any) */
|
|
1456
|
+
replyingToMessageId?: string;
|
|
1457
|
+
/** Whether a background generation (e.g. AI response) is in progress */
|
|
1458
|
+
isGenerating?: boolean;
|
|
1459
|
+
/** Whether cancel cleanup is in progress */
|
|
1460
|
+
isStopping?: boolean;
|
|
1461
|
+
/** Custom context data */
|
|
1462
|
+
custom?: Record<string, unknown>;
|
|
1456
1463
|
}
|
|
1457
1464
|
/**
|
|
1458
|
-
*
|
|
1459
|
-
*
|
|
1465
|
+
* Contract for components used as {@link AXConversationComposerAction.component}.
|
|
1466
|
+
* Composer shell passes at least `{ conversation, service }`.
|
|
1460
1467
|
*/
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
readonly
|
|
1470
|
-
/**
|
|
1471
|
-
|
|
1472
|
-
readonly activeBanner: _angular_core.Signal<AXConversationInfoBarActiveBanner>;
|
|
1473
|
-
/** Search query signal */
|
|
1474
|
-
private readonly _searchQuery;
|
|
1475
|
-
readonly searchQuery: _angular_core.Signal<string>;
|
|
1476
|
-
private readonly _searchResultsCount;
|
|
1477
|
-
readonly searchResultsCount: _angular_core.Signal<number>;
|
|
1478
|
-
/** Current search result index */
|
|
1479
|
-
private readonly _currentSearchIndex;
|
|
1480
|
-
readonly currentSearchIndex: _angular_core.Signal<number>;
|
|
1481
|
-
/**
|
|
1482
|
-
* Reset info-bar overlays when the active conversation changes.
|
|
1483
|
-
*/
|
|
1484
|
-
onConversationChanged(): void;
|
|
1468
|
+
interface AXConversationComposerActionComponent {
|
|
1469
|
+
readonly conversation: InputSignal<AXConversation>;
|
|
1470
|
+
readonly service?: InputSignal<AXConversationComposerService | undefined>;
|
|
1471
|
+
/** Max files per message; falls back to {@link AXConversationConfig.maxFilesPerMessage}. */
|
|
1472
|
+
readonly maxFiles?: InputSignal<number | undefined>;
|
|
1473
|
+
/** Pre-fill picker when opened from message-list drag-and-drop. */
|
|
1474
|
+
readonly initialFiles?: InputSignal<File[]>;
|
|
1475
|
+
/** Set by {@link AXPopupService} when the picker is shown in a popup. */
|
|
1476
|
+
readonly __popup__?: InputSignal<_acorex_components_popup.AXPopupRef | undefined>;
|
|
1477
|
+
/** Set by {@link AXActionSheetService} when the picker is shown in an action sheet. */
|
|
1478
|
+
readonly __actionSheet__?: InputSignal<_acorex_components_action_sheet.AXActionSheetRef | undefined>;
|
|
1485
1479
|
/**
|
|
1486
|
-
*
|
|
1480
|
+
* When true (from action {@link AXConversationComposerAction.autoRun}), runs {@link activate}
|
|
1481
|
+
* once after the component is mounted.
|
|
1487
1482
|
*/
|
|
1488
|
-
|
|
1483
|
+
readonly autoRun?: InputSignal<boolean>;
|
|
1484
|
+
/** Primary action when opened from the composer (record, browse files, etc.). */
|
|
1485
|
+
activate?(): void | Promise<void>;
|
|
1486
|
+
/** Cancel in-flight uploads when the picker is closed or replaced. */
|
|
1487
|
+
abortInProgressUploads?(): void;
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* Composer action registration
|
|
1491
|
+
*/
|
|
1492
|
+
interface AXConversationComposerAction extends Omit<AXConversationRegistryItem, 'enabled'> {
|
|
1493
|
+
/** Display label (for accessibility) */
|
|
1494
|
+
label: string;
|
|
1495
|
+
/** Icon name/class */
|
|
1496
|
+
icon: string;
|
|
1497
|
+
/** Position: start or end of the composer */
|
|
1498
|
+
position: 'start' | 'end';
|
|
1499
|
+
/** Location: inline (show as button) or menu (show in attachment popup menu) */
|
|
1500
|
+
location?: 'inline' | 'menu';
|
|
1489
1501
|
/**
|
|
1490
|
-
*
|
|
1502
|
+
* Primary end action (e.g. voice record). Only one action may be default.
|
|
1503
|
+
* Renders as the circular send-style button and morphs into send when the draft has content.
|
|
1491
1504
|
*/
|
|
1492
|
-
|
|
1505
|
+
default?: boolean;
|
|
1506
|
+
/** Visibility condition */
|
|
1507
|
+
visible: (context: AXConversationComposerActionContext) => boolean;
|
|
1508
|
+
/** Enabled condition */
|
|
1509
|
+
enabled?: (context: AXConversationComposerActionContext) => boolean;
|
|
1493
1510
|
/**
|
|
1494
|
-
*
|
|
1511
|
+
* Component to show when action is activated
|
|
1512
|
+
* If provided, clicking the action will show this component in full-width mode
|
|
1495
1513
|
*/
|
|
1496
|
-
|
|
1514
|
+
component?: Type<AXConversationComposerActionComponent>;
|
|
1515
|
+
/** Lazy loader for the action component */
|
|
1516
|
+
componentLoader?: () => Promise<Type<AXConversationComposerActionComponent>>;
|
|
1497
1517
|
/**
|
|
1498
|
-
*
|
|
1518
|
+
* Whether this action is toggleable (shows/hides component)
|
|
1499
1519
|
*/
|
|
1500
|
-
|
|
1520
|
+
toggleable?: boolean;
|
|
1501
1521
|
/**
|
|
1502
|
-
*
|
|
1522
|
+
* When true, runs {@link AXConversationComposerActionComponent.activate} in
|
|
1523
|
+
* {@link afterNextRender} after the upload panel is mounted.
|
|
1503
1524
|
*/
|
|
1504
|
-
|
|
1525
|
+
autoRun?: boolean;
|
|
1526
|
+
/** Action handler (optional if component is provided) */
|
|
1527
|
+
handler?: (context: AXConversationComposerActionContext) => void | Promise<void>;
|
|
1528
|
+
/** Tooltip text */
|
|
1529
|
+
tooltip?: string;
|
|
1530
|
+
/** Keyboard shortcut */
|
|
1531
|
+
shortcut?: string;
|
|
1532
|
+
/** Custom class for styling */
|
|
1533
|
+
className?: string;
|
|
1534
|
+
/** Badge text/count */
|
|
1535
|
+
badge?: string | number;
|
|
1536
|
+
/** File catalog for this action's picker; built-ins use {@link provideConversationComposerFileTypes}. */
|
|
1537
|
+
fileType?: string;
|
|
1538
|
+
/** Max files per message; falls back to {@link AXConversationConfig.maxFilesPerMessage}. */
|
|
1539
|
+
maxFiles?: number;
|
|
1540
|
+
}
|
|
1541
|
+
/** Validation rules and built-in conversation file types. */
|
|
1542
|
+
declare function provideConversationFileCatalog(_extraActions?: readonly AXConversationComposerAction[]): Provider[];
|
|
1543
|
+
/**
|
|
1544
|
+
* Composer Action Registry Service
|
|
1545
|
+
*/
|
|
1546
|
+
declare class AXConversationComposerActionRegistry {
|
|
1547
|
+
private readonly _actions;
|
|
1548
|
+
private readonly translation;
|
|
1549
|
+
private readonly injector;
|
|
1550
|
+
private readonly composerTabRegistry;
|
|
1551
|
+
constructor();
|
|
1552
|
+
/** All registered actions */
|
|
1553
|
+
readonly actions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1554
|
+
/** Start-side actions sorted by priority */
|
|
1555
|
+
readonly startActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1556
|
+
/** End-side actions sorted by priority */
|
|
1557
|
+
readonly endActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1558
|
+
/** Start-side inline actions (location = 'inline' or undefined) */
|
|
1559
|
+
readonly startInlineActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1560
|
+
/** Start-side menu actions (location = 'menu') — shown in the attachment popup */
|
|
1561
|
+
readonly startMenuActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1562
|
+
/** End-side inline actions inside the input pill (excludes default action) */
|
|
1563
|
+
readonly endInlineActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1564
|
+
/** End-side menu actions (location = 'menu') */
|
|
1565
|
+
readonly endMenuActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1566
|
+
/** The single default end action (voice/send morph button) */
|
|
1567
|
+
readonly defaultAction: _angular_core.Signal<AXConversationComposerAction>;
|
|
1505
1568
|
/**
|
|
1506
|
-
*
|
|
1569
|
+
* Register a composer action
|
|
1507
1570
|
*/
|
|
1508
|
-
|
|
1571
|
+
register(action: AXConversationComposerAction): void;
|
|
1572
|
+
/** Resolved lazily to avoid a DI cycle with {@link AXConversationComposerFileTypesProvider}. */
|
|
1573
|
+
private fileTypeRegistry;
|
|
1574
|
+
private ensureFileTypeExists;
|
|
1509
1575
|
/**
|
|
1510
|
-
*
|
|
1576
|
+
* Unregister a composer action
|
|
1511
1577
|
*/
|
|
1512
|
-
|
|
1578
|
+
unregister(id: string): void;
|
|
1513
1579
|
/**
|
|
1514
|
-
*
|
|
1580
|
+
* Get visible actions for a position
|
|
1515
1581
|
*/
|
|
1516
|
-
|
|
1582
|
+
getVisibleActions(position: 'start' | 'end', context: AXConversationComposerActionContext): AXConversationComposerAction[];
|
|
1517
1583
|
/**
|
|
1518
|
-
*
|
|
1584
|
+
* Get enabled actions for a position
|
|
1519
1585
|
*/
|
|
1520
|
-
|
|
1521
|
-
|
|
1586
|
+
getEnabledActions(position: 'start' | 'end', context: AXConversationComposerActionContext): AXConversationComposerAction[];
|
|
1587
|
+
isActionEnabled(action: AXConversationComposerAction, context: AXConversationComposerActionContext): boolean;
|
|
1522
1588
|
/**
|
|
1523
|
-
*
|
|
1589
|
+
* Picker actions for a file catalog (by priority), when visible and enabled.
|
|
1524
1590
|
*/
|
|
1525
|
-
|
|
1591
|
+
findPickerActionsForFileType(catalogName: string, context: AXConversationComposerActionContext): AXConversationComposerAction[];
|
|
1526
1592
|
/**
|
|
1527
|
-
*
|
|
1593
|
+
* First picker action for a file catalog (by priority), when visible and enabled.
|
|
1528
1594
|
*/
|
|
1529
|
-
|
|
1595
|
+
findPickerActionForFileType(catalogName: string, context: AXConversationComposerActionContext): AXConversationComposerAction | undefined;
|
|
1530
1596
|
/**
|
|
1531
|
-
*
|
|
1597
|
+
* Get action by ID
|
|
1532
1598
|
*/
|
|
1533
|
-
|
|
1599
|
+
getActionById(id: string): AXConversationComposerAction | undefined;
|
|
1600
|
+
getActionLabel(action: AXConversationComposerAction): string;
|
|
1601
|
+
getActionTooltip(action: AXConversationComposerAction): string | undefined;
|
|
1534
1602
|
/**
|
|
1535
|
-
*
|
|
1603
|
+
* Execute an action
|
|
1536
1604
|
*/
|
|
1537
|
-
|
|
1605
|
+
executeAction(actionId: string, context: AXConversationComposerActionContext): Promise<void>;
|
|
1538
1606
|
/**
|
|
1539
|
-
*
|
|
1607
|
+
* Update action badge
|
|
1540
1608
|
*/
|
|
1541
|
-
|
|
1609
|
+
setBadge(id: string, badge: string | number | undefined): void;
|
|
1542
1610
|
/**
|
|
1543
|
-
* Clear
|
|
1611
|
+
* Clear all actions
|
|
1544
1612
|
*/
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationInfoBarService, never>;
|
|
1613
|
+
clear(): void;
|
|
1614
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerActionRegistry, never>;
|
|
1548
1615
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1549
1616
|
}
|
|
1550
1617
|
|
|
1551
1618
|
/**
|
|
1552
|
-
*
|
|
1553
|
-
* Manages actions available in the conversation info bar
|
|
1554
|
-
*/
|
|
1555
|
-
|
|
1556
|
-
/**
|
|
1557
|
-
* Context provided to action handlers
|
|
1558
|
-
*/
|
|
1559
|
-
interface AXConversationInfoBarActionContext {
|
|
1560
|
-
/** The conversation */
|
|
1561
|
-
conversation: AXConversation;
|
|
1562
|
-
/** Additional context data */
|
|
1563
|
-
data?: Record<string, unknown>;
|
|
1564
|
-
}
|
|
1565
|
-
/**
|
|
1566
|
-
* Contract for components used as {@link AXConversationInfoBarAction.component}.
|
|
1567
|
-
* Info-bar shell passes at least `{ conversation, service }`.
|
|
1619
|
+
* Composer tab registration
|
|
1568
1620
|
*/
|
|
1569
|
-
interface
|
|
1570
|
-
|
|
1571
|
-
|
|
1621
|
+
interface AXConversationComposerTab extends AXConversationRegistryItem {
|
|
1622
|
+
/** Display title */
|
|
1623
|
+
title: string;
|
|
1624
|
+
/** Icon name/class */
|
|
1625
|
+
icon?: string;
|
|
1626
|
+
/** Angular component for tab content */
|
|
1627
|
+
component?: Type<unknown>;
|
|
1628
|
+
/** Lazy loader for tab content */
|
|
1629
|
+
componentLoader?: () => Promise<Type<unknown>>;
|
|
1630
|
+
/** Default data provider (optional) */
|
|
1631
|
+
dataProvider?: () => Observable<unknown>;
|
|
1632
|
+
/** Custom class for styling */
|
|
1633
|
+
className?: string;
|
|
1634
|
+
/** Badge text/count */
|
|
1635
|
+
badge?: string | number;
|
|
1572
1636
|
}
|
|
1573
1637
|
/**
|
|
1574
|
-
*
|
|
1638
|
+
* Composer Tab Registry Service
|
|
1575
1639
|
*/
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
location?: 'inline' | 'menu' | ((context: AXConversationInfoBarActionContext) => 'inline' | 'menu');
|
|
1589
|
-
/**
|
|
1590
|
-
* Component to show when action is activated (for inline actions)
|
|
1591
|
-
* If provided, clicking the action will show this component in the info-bar
|
|
1592
|
-
*/
|
|
1593
|
-
component?: Type<AXConversationInfoBarActionComponent>;
|
|
1594
|
-
/** Lazy loader for the inline/full-width action component */
|
|
1595
|
-
componentLoader?: () => Promise<Type<AXConversationInfoBarActionComponent>>;
|
|
1596
|
-
/**
|
|
1597
|
-
* Whether this action is toggleable (shows/hides component)
|
|
1640
|
+
declare class AXConversationComposerTabRegistry {
|
|
1641
|
+
private readonly _tabs;
|
|
1642
|
+
private readonly translation;
|
|
1643
|
+
constructor();
|
|
1644
|
+
/** All registered tabs */
|
|
1645
|
+
readonly tabs: _angular_core.Signal<AXConversationComposerTab[]>;
|
|
1646
|
+
/** Enabled tabs sorted by priority */
|
|
1647
|
+
readonly enabledTabs: _angular_core.Signal<AXConversationComposerTab[]>;
|
|
1648
|
+
/** Whether the composer popup has any tabs to show. */
|
|
1649
|
+
readonly hasEnabledTabs: _angular_core.Signal<boolean>;
|
|
1650
|
+
/**
|
|
1651
|
+
* Register a composer tab
|
|
1598
1652
|
*/
|
|
1599
|
-
|
|
1653
|
+
register(tab: AXConversationComposerTab): void;
|
|
1600
1654
|
/**
|
|
1601
|
-
*
|
|
1602
|
-
* Defaults to `true` when omitted.
|
|
1655
|
+
* Unregister a composer tab
|
|
1603
1656
|
*/
|
|
1604
|
-
|
|
1657
|
+
unregister(id: string): void;
|
|
1658
|
+
/**
|
|
1659
|
+
* Get tab by ID
|
|
1660
|
+
*/
|
|
1661
|
+
getTabById(id: string): AXConversationComposerTab | undefined;
|
|
1662
|
+
getTabTitle(tab: AXConversationComposerTab): string;
|
|
1663
|
+
/**
|
|
1664
|
+
* Enable/disable a tab
|
|
1665
|
+
*/
|
|
1666
|
+
setEnabled(id: string, enabled: boolean): void;
|
|
1667
|
+
/**
|
|
1668
|
+
* Update tab badge
|
|
1669
|
+
*/
|
|
1670
|
+
setBadge(id: string, badge: string | number | undefined): void;
|
|
1671
|
+
/**
|
|
1672
|
+
* Clear all tabs
|
|
1673
|
+
*/
|
|
1674
|
+
clear(): void;
|
|
1675
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerTabRegistry, never>;
|
|
1676
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
/**
|
|
1680
|
+
* Context provided to action handlers
|
|
1681
|
+
*/
|
|
1682
|
+
interface AXConversationItemActionContext {
|
|
1683
|
+
/** The conversation */
|
|
1684
|
+
conversation: AXConversation;
|
|
1685
|
+
/** Additional context data */
|
|
1686
|
+
data?: Record<string, unknown>;
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* Conversation item action configuration
|
|
1690
|
+
*/
|
|
1691
|
+
interface AXConversationItemAction extends AXConversationRegistryItem {
|
|
1692
|
+
/** Action label */
|
|
1693
|
+
label: string | ((context: AXConversationItemActionContext) => string);
|
|
1694
|
+
/** Action icon (emoji or icon class) */
|
|
1695
|
+
icon?: string | ((context: AXConversationItemActionContext) => string);
|
|
1696
|
+
/** Tooltip text */
|
|
1697
|
+
tooltip?: string | ((context: AXConversationItemActionContext) => string);
|
|
1698
|
+
/** Whether this action is destructive */
|
|
1699
|
+
destructive?: boolean;
|
|
1700
|
+
/** Whether this is a divider */
|
|
1701
|
+
divider?: boolean;
|
|
1605
1702
|
/**
|
|
1606
1703
|
* Visibility condition
|
|
1607
1704
|
* @returns true if action should be visible
|
|
1608
1705
|
*/
|
|
1609
|
-
visible?: (context:
|
|
1706
|
+
visible?: (context: AXConversationItemActionContext) => boolean;
|
|
1610
1707
|
/**
|
|
1611
1708
|
* Dynamic enabled condition
|
|
1612
1709
|
* @returns true if action should be enabled
|
|
1613
1710
|
* Note: Use the `enabled` property from AXConversationRegistryItem for static enable/disable
|
|
1614
1711
|
*/
|
|
1615
|
-
enabledWhen?: (context:
|
|
1712
|
+
enabledWhen?: (context: AXConversationItemActionContext) => boolean;
|
|
1616
1713
|
/**
|
|
1617
1714
|
* Action handler
|
|
1618
1715
|
* Called when the action is clicked
|
|
1619
1716
|
*/
|
|
1620
|
-
handler?: (context:
|
|
1717
|
+
handler?: (context: AXConversationItemActionContext) => void | Promise<void>;
|
|
1621
1718
|
}
|
|
1622
1719
|
/**
|
|
1623
|
-
*
|
|
1624
|
-
* Manages available actions in the conversation
|
|
1720
|
+
* Conversation Item Action Registry Service
|
|
1721
|
+
* Manages available actions in the conversation list item context menu
|
|
1625
1722
|
*/
|
|
1626
|
-
declare class
|
|
1723
|
+
declare class AXConversationItemActionRegistry extends AXConversationBaseRegistry<AXConversationItemAction> {
|
|
1627
1724
|
private readonly translation;
|
|
1628
1725
|
private readonly injector;
|
|
1629
1726
|
constructor();
|
|
@@ -1634,941 +1731,1156 @@ declare class AXConversationInfoBarActionRegistry extends AXConversationBaseRegi
|
|
|
1634
1731
|
/**
|
|
1635
1732
|
* Get actions for a specific conversation
|
|
1636
1733
|
*/
|
|
1637
|
-
getActionsForConversation(conversation: AXConversation
|
|
1638
|
-
|
|
1639
|
-
* Resolve the display location for an action (supports dynamic location factories).
|
|
1640
|
-
*/
|
|
1641
|
-
getActionLocation(action: AXConversationInfoBarAction, conversation: AXConversation): 'inline' | 'menu' | undefined;
|
|
1642
|
-
/**
|
|
1643
|
-
* Get inline actions (toolbar buttons)
|
|
1644
|
-
*/
|
|
1645
|
-
getInlineActions(conversation: AXConversation): AXConversationInfoBarAction[];
|
|
1646
|
-
/**
|
|
1647
|
-
* Get menu actions (dropdown items)
|
|
1648
|
-
*/
|
|
1649
|
-
getMenuActions(conversation: AXConversation): AXConversationInfoBarAction[];
|
|
1650
|
-
isActionEnabled(action: AXConversationInfoBarAction, context: AXConversationInfoBarActionContext): boolean;
|
|
1734
|
+
getActionsForConversation(conversation: AXConversation): AXConversationItemAction[];
|
|
1735
|
+
isActionEnabled(action: AXConversationItemAction, context: AXConversationItemActionContext): boolean;
|
|
1651
1736
|
/**
|
|
1652
1737
|
* Get label for an action
|
|
1653
1738
|
*/
|
|
1654
|
-
getActionLabel(action:
|
|
1739
|
+
getActionLabel(action: AXConversationItemAction, conversation: AXConversation): string;
|
|
1655
1740
|
/**
|
|
1656
1741
|
* Get icon for an action
|
|
1657
1742
|
*/
|
|
1658
|
-
getActionIcon(action:
|
|
1743
|
+
getActionIcon(action: AXConversationItemAction, conversation: AXConversation): string | undefined;
|
|
1659
1744
|
/**
|
|
1660
1745
|
* Get tooltip for an action
|
|
1661
1746
|
*/
|
|
1662
|
-
getActionTooltip(action:
|
|
1663
|
-
|
|
1747
|
+
getActionTooltip(action: AXConversationItemAction, conversation: AXConversation): string | undefined;
|
|
1748
|
+
executeAction(actionId: string, context: AXConversationItemActionContext): Promise<void>;
|
|
1749
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationItemActionRegistry, never>;
|
|
1664
1750
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1665
1751
|
}
|
|
1666
1752
|
|
|
1667
1753
|
/**
|
|
1668
|
-
*
|
|
1669
|
-
*/
|
|
1670
|
-
interface AXConversationMessageActionContext {
|
|
1671
|
-
/** The message */
|
|
1672
|
-
message: AXConversationMessage;
|
|
1673
|
-
/** Current user */
|
|
1674
|
-
currentUser: AXConversationParticipant;
|
|
1675
|
-
/** All conversation participants */
|
|
1676
|
-
participants: AXConversationParticipant[];
|
|
1677
|
-
/** Mounted message renderer for this row (see {@link AXConversationMessageRendererComponent.copy}). */
|
|
1678
|
-
renderer?: AXConversationMessageRendererComponent;
|
|
1679
|
-
/** Custom context data */
|
|
1680
|
-
custom?: Record<string, unknown>;
|
|
1681
|
-
}
|
|
1682
|
-
/**
|
|
1683
|
-
* Message action registration
|
|
1754
|
+
* Conversation tab registration
|
|
1684
1755
|
*/
|
|
1685
|
-
interface
|
|
1756
|
+
interface AXConversationTab extends AXConversationRegistryItem {
|
|
1686
1757
|
/** Display label */
|
|
1687
1758
|
label: string;
|
|
1688
1759
|
/** Icon name/class */
|
|
1689
1760
|
icon?: string;
|
|
1690
|
-
/**
|
|
1691
|
-
|
|
1692
|
-
/**
|
|
1693
|
-
|
|
1694
|
-
/** Enabled condition */
|
|
1695
|
-
enabled: (message: AXConversationMessage, currentUser: AXConversationParticipant) => boolean;
|
|
1696
|
-
/** Action handler */
|
|
1697
|
-
handler: (context: AXConversationMessageActionContext) => void | Promise<void>;
|
|
1698
|
-
/** Confirmation message (if required) */
|
|
1699
|
-
confirmMessage?: string;
|
|
1700
|
-
/** Keyboard shortcut */
|
|
1701
|
-
shortcut?: string;
|
|
1761
|
+
/** Filter function to determine which conversations to show */
|
|
1762
|
+
filter: (conversations: AXConversation[]) => AXConversation[];
|
|
1763
|
+
/** Badge function to compute badge count/text */
|
|
1764
|
+
badge?: (conversations: AXConversation[]) => number | string | undefined;
|
|
1702
1765
|
/** Custom class for styling */
|
|
1703
1766
|
className?: string;
|
|
1704
|
-
/**
|
|
1705
|
-
|
|
1767
|
+
/** Whether this is the default active tab */
|
|
1768
|
+
default?: boolean;
|
|
1706
1769
|
}
|
|
1707
1770
|
/**
|
|
1708
|
-
*
|
|
1771
|
+
* Conversation Tab Registry Service
|
|
1709
1772
|
*/
|
|
1710
|
-
declare class
|
|
1711
|
-
private readonly
|
|
1773
|
+
declare class AXConversationTabRegistry {
|
|
1774
|
+
private readonly _tabs;
|
|
1712
1775
|
private readonly translation;
|
|
1713
|
-
private readonly injector;
|
|
1714
1776
|
constructor();
|
|
1715
|
-
/** All registered
|
|
1716
|
-
readonly
|
|
1717
|
-
/**
|
|
1718
|
-
readonly
|
|
1777
|
+
/** All registered tabs */
|
|
1778
|
+
readonly tabs: _angular_core.Signal<AXConversationTab[]>;
|
|
1779
|
+
/** Enabled tabs sorted by priority */
|
|
1780
|
+
readonly enabledTabs: _angular_core.Signal<AXConversationTab[]>;
|
|
1781
|
+
/** Default active tab */
|
|
1782
|
+
readonly defaultTab: _angular_core.Signal<AXConversationTab>;
|
|
1719
1783
|
/**
|
|
1720
|
-
* Register a
|
|
1784
|
+
* Register a conversation tab
|
|
1721
1785
|
*/
|
|
1722
|
-
register(
|
|
1786
|
+
register(tab: AXConversationTab): void;
|
|
1723
1787
|
/**
|
|
1724
|
-
* Unregister a
|
|
1788
|
+
* Unregister a conversation tab
|
|
1725
1789
|
*/
|
|
1726
1790
|
unregister(id: string): void;
|
|
1727
1791
|
/**
|
|
1728
|
-
* Get
|
|
1792
|
+
* Get tab by ID
|
|
1729
1793
|
*/
|
|
1730
|
-
|
|
1794
|
+
getTabById(id: string): AXConversationTab | undefined;
|
|
1795
|
+
getTabLabel(tab: AXConversationTab): string;
|
|
1731
1796
|
/**
|
|
1732
|
-
*
|
|
1797
|
+
* Apply tab filter to conversations
|
|
1733
1798
|
*/
|
|
1734
|
-
|
|
1735
|
-
/** Whether an action is enabled (safe to call outside an injection context). */
|
|
1736
|
-
isActionEnabled(action: AXConversationMessageAction, message: AXConversationMessage, currentUser: AXConversationParticipant): boolean;
|
|
1737
|
-
getActionLabel(action: AXConversationMessageAction): string;
|
|
1799
|
+
filterConversations(tabId: string, conversations: AXConversation[]): AXConversation[];
|
|
1738
1800
|
/**
|
|
1739
|
-
* Get
|
|
1801
|
+
* Get badge for a tab
|
|
1740
1802
|
*/
|
|
1741
|
-
|
|
1803
|
+
getBadge(tabId: string, conversations: AXConversation[]): number | string | undefined;
|
|
1742
1804
|
/**
|
|
1743
|
-
*
|
|
1805
|
+
* Enable/disable a tab
|
|
1744
1806
|
*/
|
|
1745
|
-
|
|
1807
|
+
setEnabled(id: string, enabled: boolean): void;
|
|
1746
1808
|
/**
|
|
1747
|
-
*
|
|
1809
|
+
* Set default tab
|
|
1748
1810
|
*/
|
|
1749
|
-
|
|
1811
|
+
setDefault(id: string): void;
|
|
1750
1812
|
/**
|
|
1751
|
-
* Clear all
|
|
1813
|
+
* Clear all tabs
|
|
1752
1814
|
*/
|
|
1753
1815
|
clear(): void;
|
|
1754
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1816
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationTabRegistry, never>;
|
|
1755
1817
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1756
1818
|
}
|
|
1757
1819
|
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
readonly draftText: _angular_core.WritableSignal<string>;
|
|
1776
|
-
/** Draft attachments shown above the composer in banner mode. */
|
|
1777
|
-
readonly draftAttachments: _angular_core.WritableSignal<_acorex_components_conversation.AXConversationComposerDraftAttachment[]>;
|
|
1778
|
-
readonly usesAttachmentBanner: _angular_core.Signal<boolean>;
|
|
1779
|
-
/** Editing message */
|
|
1780
|
-
readonly editingMessage: _angular_core.WritableSignal<any>;
|
|
1781
|
-
/** Replying to message */
|
|
1782
|
-
readonly replyingToMessage: _angular_core.WritableSignal<AXConversationMessage>;
|
|
1783
|
-
/** Message sent event */
|
|
1784
|
-
readonly messageSent: _angular_core.OutputEmitterRef<AXConversationSendMessageCommand>;
|
|
1785
|
-
/** Emitted when the user cancels an in-progress generation from the composer. */
|
|
1786
|
-
readonly generationCancelled: _angular_core.OutputEmitterRef<void>;
|
|
1787
|
-
/** Emoji clicked event */
|
|
1788
|
-
readonly emojiClick: _angular_core.OutputEmitterRef<void>;
|
|
1789
|
-
/** Attach clicked event */
|
|
1790
|
-
readonly attachClick: _angular_core.OutputEmitterRef<void>;
|
|
1791
|
-
/** Voice clicked event */
|
|
1792
|
-
readonly voiceClick: _angular_core.OutputEmitterRef<void>;
|
|
1793
|
-
/** Active conversation */
|
|
1794
|
-
readonly activeConversation: _angular_core.Signal<_acorex_components_conversation.AXConversation>;
|
|
1795
|
-
readonly activeMessages: _angular_core.Signal<AXConversationMessage[]>;
|
|
1796
|
-
/** Emoji popover state */
|
|
1797
|
-
private readonly emojiPopoverRef;
|
|
1798
|
-
readonly emojiPopoverTarget: _angular_core.WritableSignal<HTMLElement>;
|
|
1799
|
-
/** Attachment menu popover state */
|
|
1800
|
-
private readonly attachPopoverRef;
|
|
1801
|
-
private readonly attachMenuButtonRef;
|
|
1802
|
-
readonly attachMenuTarget: _angular_core.Signal<HTMLElement>;
|
|
1803
|
-
private attachMenuCloseTimer?;
|
|
1804
|
-
readonly composerPopupLoader: () => Promise<typeof _acorex_components_conversation.AXConversationComposerPopupComponent>;
|
|
1805
|
-
/** Input placeholder - use service */
|
|
1806
|
-
readonly placeholder: _angular_core.Signal<string>;
|
|
1807
|
-
constructor();
|
|
1808
|
-
private draftSaveTimeout?;
|
|
1809
|
-
private seededEditMessageId;
|
|
1810
|
-
/** Number of input rows - use service */
|
|
1811
|
-
readonly inputRows: _angular_core.Signal<number>;
|
|
1812
|
-
/** Can send message - use service */
|
|
1813
|
-
readonly canSend: _angular_core.Signal<boolean>;
|
|
1814
|
-
/** Whether AI/generation is in progress */
|
|
1815
|
-
readonly isGenerating: _angular_core.Signal<boolean>;
|
|
1816
|
-
/** Whether cancel cleanup is in progress */
|
|
1817
|
-
readonly isStopping: _angular_core.Signal<boolean>;
|
|
1818
|
-
/** Primary button mode */
|
|
1819
|
-
readonly primaryButtonMode: _angular_core.Signal<_acorex_components_conversation.AXConversationComposerPrimaryButtonMode>;
|
|
1820
|
-
/** Start actions from registry - use service */
|
|
1821
|
-
readonly startActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1822
|
-
/** End actions from registry - use service */
|
|
1823
|
-
readonly endActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1824
|
-
/** Start inline actions */
|
|
1825
|
-
readonly startInlineActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1826
|
-
/** Start menu actions (attachment popup) */
|
|
1827
|
-
readonly startMenuActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1828
|
-
/** End inline actions inside input pill */
|
|
1829
|
-
readonly endInlineActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1830
|
-
/** End menu actions */
|
|
1831
|
-
readonly endMenuActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
1832
|
-
/** Default end action (voice/send morph) */
|
|
1833
|
-
readonly defaultAction: _angular_core.Signal<AXConversationComposerAction>;
|
|
1834
|
-
/** Handle key down (send on Enter; typing is driven by draft changes only). */
|
|
1835
|
-
onKeyDown(event: AXHtmlEvent<KeyboardEvent>): void;
|
|
1836
|
-
/** Keep the draft signal in sync with ngModel (signal two-way bind is unreliable on ax-text-area). */
|
|
1837
|
-
onDraftModelChange(value: string): void;
|
|
1838
|
-
/** Keep the draft signal in sync with ax-text-area CVA output. */
|
|
1839
|
-
onDraftValueChanged(event: unknown): void;
|
|
1840
|
-
/** Handle draft text changes — throttled typing indicator via conversation service. */
|
|
1841
|
-
onDraftChanged(): void;
|
|
1842
|
-
/** Cleanup on destroy */
|
|
1843
|
-
ngOnDestroy(): void;
|
|
1844
|
-
/** Handle send click */
|
|
1845
|
-
onSendClick(): Promise<void>;
|
|
1846
|
-
/** Handle emoji click */
|
|
1847
|
-
onEmojiClick(event?: AXClickEvent | MouseEvent): Promise<void>;
|
|
1848
|
-
/** Handle emoji popover closed */
|
|
1849
|
-
onEmojiPopoverClosed(): void;
|
|
1850
|
-
/** Handle emoji/sticker selection from popup */
|
|
1851
|
-
onEmojiItemSelected(item: string | AXConversationStickerPayload): void;
|
|
1852
|
-
/** Send sticker message */
|
|
1853
|
-
private sendSticker;
|
|
1854
|
-
/** Get inputs for emoji popup component */
|
|
1855
|
-
getEmojiPopupInputs(): Record<string, unknown>;
|
|
1856
|
-
/** Handle attach menu hover */
|
|
1857
|
-
onAttachMenuMouseEnter(): void;
|
|
1858
|
-
onAttachMenuMouseLeave(): void;
|
|
1859
|
-
onAttachMenuPanelMouseEnter(): void;
|
|
1860
|
-
onAttachMenuPanelMouseLeave(): void;
|
|
1861
|
-
private scheduleAttachMenuClose;
|
|
1862
|
-
private clearAttachMenuCloseTimer;
|
|
1863
|
-
/** Desktop: open an all-files chooser. Mobile: toggle the attachment dropdown. */
|
|
1864
|
-
onAttachMenuClick(event: AXClickEvent): void;
|
|
1865
|
-
/** Open the OS file picker for any file, then route to the matching composer picker. */
|
|
1866
|
-
private openSmartAttachChooser;
|
|
1867
|
-
/** OS file paste (Ctrl+V) while the composer is focused. */
|
|
1868
|
-
onComposerPaste(event: ClipboardEvent): void;
|
|
1869
|
-
private composerPickerDeps;
|
|
1870
|
-
/** Handle attachment menu action selection */
|
|
1871
|
-
onAttachMenuAction(actionId: string): Promise<void>;
|
|
1872
|
-
/** Handle primary button click (send / cancel / stopping / voice / locked). */
|
|
1873
|
-
onPrimaryButtonClick(): Promise<void>;
|
|
1874
|
-
/** @deprecated Use onPrimaryButtonClick */
|
|
1875
|
-
onDefaultActionClick(): Promise<void>;
|
|
1876
|
-
getPrimaryButtonIcon(): string;
|
|
1877
|
-
getPrimaryButtonLabel(): string;
|
|
1878
|
-
isPrimaryButtonDisabled(): boolean;
|
|
1879
|
-
/** @deprecated Use getPrimaryButtonIcon */
|
|
1880
|
-
getDefaultActionIcon(): string;
|
|
1881
|
-
/** Handle voice click */
|
|
1882
|
-
onVoiceClick(): void;
|
|
1883
|
-
/** Remove a draft attachment from the composer banner. */
|
|
1884
|
-
removeDraftAttachment(id: string): void;
|
|
1885
|
-
addDraftAttachments(): void;
|
|
1886
|
-
dismissDraftAttachments(): void;
|
|
1887
|
-
draftAttachmentLabel(name: string): string;
|
|
1888
|
-
canAddDraftAttachments(): boolean;
|
|
1889
|
-
/** Cancel edit/reply mode without dropping draft attachments. */
|
|
1890
|
-
cancelEditReply(): void;
|
|
1891
|
-
/** Start editing a message */
|
|
1892
|
-
startEdit(message: any): void;
|
|
1893
|
-
/** Start replying to a message */
|
|
1894
|
-
startReply(message: AXConversationMessage): void;
|
|
1895
|
-
/** Focus the native textarea inside ax-text-area */
|
|
1896
|
-
private focusTextArea;
|
|
1897
|
-
/** Prefer the visible textarea when it differs from the original edit; else the draft signal. */
|
|
1898
|
-
private resolveComposerText;
|
|
1899
|
-
private readOriginalEditText;
|
|
1900
|
-
private readNativeComposerText;
|
|
1901
|
-
private readChangedText;
|
|
1902
|
-
private getClickTarget;
|
|
1903
|
-
/** Handle action click */
|
|
1904
|
-
onActionClick(actionId: string, event?: AXClickEvent | MouseEvent, initialFiles?: File[]): Promise<void>;
|
|
1905
|
-
/** Check if action is enabled */
|
|
1906
|
-
isActionEnabled(action: any): boolean;
|
|
1907
|
-
/** Get replying sender name */
|
|
1908
|
-
getReplyingSenderName(): string;
|
|
1909
|
-
getActionLabel(action: {
|
|
1910
|
-
label: string;
|
|
1911
|
-
}): string;
|
|
1912
|
-
getActionButtonClass(action: {
|
|
1913
|
-
className?: string;
|
|
1914
|
-
}): string;
|
|
1915
|
-
/** Get replying message text */
|
|
1916
|
-
getReplyingMessageText(): string;
|
|
1917
|
-
/** Preview object for replying banner (type, icon, value) */
|
|
1918
|
-
getReplyingPreview(): {
|
|
1919
|
-
value: string;
|
|
1920
|
-
type: string;
|
|
1921
|
-
icon: string;
|
|
1922
|
-
} | null;
|
|
1923
|
-
/** Preview object for editing banner (type, icon, value) */
|
|
1924
|
-
getEditingPreview(): {
|
|
1925
|
-
value: string;
|
|
1926
|
-
type: string;
|
|
1927
|
-
icon: string;
|
|
1928
|
-
} | null;
|
|
1929
|
-
getComposerPreviewLabel(preview: {
|
|
1930
|
-
value: string;
|
|
1931
|
-
type: string;
|
|
1932
|
-
}): string;
|
|
1933
|
-
/** Handle reply preview click - scroll to original message */
|
|
1934
|
-
onReplyPreviewClick(): void;
|
|
1935
|
-
/** Inputs for picker components opened in popup / action sheet */
|
|
1936
|
-
private buildPickerInputs;
|
|
1937
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerComponent, never>;
|
|
1938
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationComposerComponent, "ax-conversation-composer", never, {}, { "messageSent": "messageSent"; "generationCancelled": "generationCancelled"; "emojiClick": "emojiClick"; "attachClick": "attachClick"; "voiceClick": "voiceClick"; }, never, never, true, never>;
|
|
1939
|
-
}
|
|
1820
|
+
/** Visual chrome around a message body in the list. */
|
|
1821
|
+
type AXConversationMessageChrome = 'bubble' | 'plain';
|
|
1822
|
+
/** Max consecutive emoji graphemes that render as a jumbo (sticker-sized) text message. */
|
|
1823
|
+
declare const AX_CONVERSATION_JUMBO_EMOJI_MAX = 3;
|
|
1824
|
+
/**
|
|
1825
|
+
* Resolve registry chrome config to a concrete value.
|
|
1826
|
+
* Default is {@link AXConversationMessageChrome bubble}.
|
|
1827
|
+
*/
|
|
1828
|
+
declare function resolveMessageChrome(chrome: AXConversationMessageChrome | ((message: AXConversationMessage) => AXConversationMessageChrome) | undefined, message: AXConversationMessage): AXConversationMessageChrome;
|
|
1829
|
+
/** Visible graphemes in trimmed text (whitespace between emojis is dropped). */
|
|
1830
|
+
declare function listTextGraphemes(text: string | null | undefined): string[];
|
|
1831
|
+
/** Count emoji graphemes in trimmed text; `0` when mixed with other characters. */
|
|
1832
|
+
declare function countLoneEmojis(text: string | null | undefined): number;
|
|
1833
|
+
declare function isJumboEmojiText(text: string | null | undefined): boolean;
|
|
1834
|
+
declare function isJumboEmojiTextMessage(message: AXConversationMessage): boolean;
|
|
1835
|
+
/** Types that never sit inside a bubble cluster with neighboring messages. */
|
|
1836
|
+
declare function isPlainChromeMessage(message: AXConversationMessage): boolean;
|
|
1940
1837
|
|
|
1941
1838
|
/**
|
|
1942
|
-
*
|
|
1943
|
-
*
|
|
1944
|
-
* Bind `[disableBrowse]="true"` so a click on the panel does not open a file dialog.
|
|
1839
|
+
* Message Renderer Registry
|
|
1840
|
+
* Register custom message renderers for different message types
|
|
1945
1841
|
*/
|
|
1946
|
-
declare class AXConversationChatDropDirective implements OnDestroy {
|
|
1947
|
-
private readonly hostRef;
|
|
1948
|
-
private readonly renderer;
|
|
1949
|
-
private readonly ngZone;
|
|
1950
|
-
private readonly zone;
|
|
1951
|
-
private readonly conversationService;
|
|
1952
|
-
private readonly composerService;
|
|
1953
|
-
private readonly fileService;
|
|
1954
|
-
private readonly translation;
|
|
1955
|
-
private readonly toast;
|
|
1956
|
-
private readonly platform;
|
|
1957
|
-
private readonly actionSheetService;
|
|
1958
|
-
private readonly config;
|
|
1959
|
-
private readonly destroyRef;
|
|
1960
|
-
private overlay;
|
|
1961
|
-
constructor();
|
|
1962
|
-
ngOnDestroy(): void;
|
|
1963
|
-
private shouldAcceptDrag;
|
|
1964
|
-
private showOverlay;
|
|
1965
|
-
private hideOverlay;
|
|
1966
|
-
private openDroppedFiles;
|
|
1967
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationChatDropDirective, never>;
|
|
1968
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AXConversationChatDropDirective, "[axConversationChatDrop]", never, {}, {}, never, never, true, [{ directive: typeof i1.AXUploaderZoneDirective; inputs: { "disableBrowse": "disableBrowse"; }; outputs: {}; }]>;
|
|
1969
|
-
}
|
|
1970
1842
|
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
readonly customClass: _angular_core.InputSignal<string>;
|
|
1988
|
-
/** Loading state */
|
|
1989
|
-
readonly loading: _angular_core.Signal<boolean>;
|
|
1990
|
-
/** Error state */
|
|
1991
|
-
readonly error: _angular_core.Signal<Error>;
|
|
1992
|
-
/** Active conversation */
|
|
1993
|
-
readonly activeConversation: _angular_core.Signal<_acorex_components_conversation.AXConversation>;
|
|
1994
|
-
/** Container CSS classes */
|
|
1995
|
-
readonly containerClasses: _angular_core.Signal<string>;
|
|
1996
|
-
closeActiveConversation(): void;
|
|
1997
|
-
private openPastedFiles;
|
|
1998
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationContainerComponent, never>;
|
|
1999
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationContainerComponent, "ax-conversation-container", never, { "customClass": { "alias": "customClass"; "required": false; "isSignal": true; }; }, {}, never, ["ax-conversation-sidebar, [ax-conversation-sidebar]", "ax-conversation-info-bar, [ax-conversation-info-bar]", "ax-conversation-message-list, [ax-conversation-message-list]", "ax-conversation-composer, [ax-conversation-composer]", "ax-conversation-empty"], true, never>;
|
|
1843
|
+
/**
|
|
1844
|
+
* Message renderer capabilities
|
|
1845
|
+
*/
|
|
1846
|
+
interface AXConversationMessageRendererCapabilities {
|
|
1847
|
+
/** Supports reactions */
|
|
1848
|
+
supportsReactions: boolean;
|
|
1849
|
+
/** Supports replies */
|
|
1850
|
+
supportsReplies: boolean;
|
|
1851
|
+
/** Supports editing */
|
|
1852
|
+
supportsEdit: boolean;
|
|
1853
|
+
/** Supports forwarding */
|
|
1854
|
+
supportsForward: boolean;
|
|
1855
|
+
/** Supports selection */
|
|
1856
|
+
supportsSelection: boolean;
|
|
1857
|
+
/** Custom capabilities */
|
|
1858
|
+
custom?: Record<string, boolean>;
|
|
2000
1859
|
}
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
private readonly config;
|
|
2015
|
-
constructor();
|
|
2016
|
-
private get registry();
|
|
2017
|
-
/** Active conversation */
|
|
2018
|
-
readonly activeConversation: _angular_core.Signal<_acorex_components_conversation.AXConversation>;
|
|
2019
|
-
/** Loading state */
|
|
2020
|
-
readonly loading: _angular_core.Signal<boolean>;
|
|
2021
|
-
/** Error state */
|
|
2022
|
-
readonly error: _angular_core.Signal<Error>;
|
|
2023
|
-
closeActiveConversation(): void;
|
|
2024
|
-
private openPastedFiles;
|
|
2025
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationContainerDirective, never>;
|
|
2026
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AXConversationContainerDirective, "[axConversationContainer]", never, {}, {}, never, never, true, never>;
|
|
1860
|
+
/**
|
|
1861
|
+
* Remote or binary content lifecycle inside a message renderer (image load, audio decode, etc.).
|
|
1862
|
+
* Use `none` when the renderer has no separate load phase (text, file row, etc.).
|
|
1863
|
+
*/
|
|
1864
|
+
type AXConversationMessageRendererContentState = 'none' | 'loading' | 'ready' | 'error';
|
|
1865
|
+
/**
|
|
1866
|
+
* Combined state for a chat message renderer: delivery pipeline plus optional content load.
|
|
1867
|
+
*/
|
|
1868
|
+
interface AXConversationMessageRendererState {
|
|
1869
|
+
/** Mirrors `message.status` (sending, sent, delivered, read, failed). */
|
|
1870
|
+
deliveryStatus: AXConversationMessageStatus;
|
|
1871
|
+
/** Media / rich content load; set to `error` from `(error)` handlers on img, audio, video, etc. */
|
|
1872
|
+
contentState: AXConversationMessageRendererContentState;
|
|
2027
1873
|
}
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
1874
|
+
/**
|
|
1875
|
+
* Contract for components used as {@link AXConversationMessageRenderer.component}.
|
|
1876
|
+
* The message list passes `{ message }`; each view exposes `rendererState` for templates and tooling.
|
|
1877
|
+
*/
|
|
1878
|
+
interface AXConversationMessageRendererComponent {
|
|
1879
|
+
readonly message: InputSignal<AXConversationMessage>;
|
|
1880
|
+
readonly rendererState: Signal<AXConversationMessageRendererState>;
|
|
1881
|
+
/** Plain-text copy for this message (does not write to the clipboard). */
|
|
1882
|
+
copy?(): string | Promise<string>;
|
|
2037
1883
|
}
|
|
2038
|
-
declare class AXConversationInfoBarComponent {
|
|
2039
|
-
private readonly conversationService;
|
|
2040
|
-
private readonly infoBar;
|
|
2041
|
-
private readonly platform;
|
|
2042
|
-
private readonly destroyRef;
|
|
2043
|
-
private readonly customUserAvatarComponent;
|
|
2044
|
-
private readonly layoutTick;
|
|
2045
|
-
constructor();
|
|
2046
|
-
protected get registry(): _acorex_components_conversation.AXConversationRegistryService;
|
|
2047
|
-
readonly hasCustomUserAvatar: _angular_core.Signal<boolean>;
|
|
2048
|
-
readonly activeConversation: _angular_core.Signal<AXConversation>;
|
|
2049
|
-
readonly activeComponent: _angular_core.Signal<_acorex_components_conversation.AXConversationInfoBarActiveComponent>;
|
|
2050
|
-
readonly activeBanner: _angular_core.Signal<_acorex_components_conversation.AXConversationInfoBarActiveBanner>;
|
|
2051
|
-
readonly bannerInputs: _angular_core.Signal<{}>;
|
|
2052
|
-
readonly membersPopoverTarget: _angular_core.WritableSignal<HTMLElement>;
|
|
2053
|
-
readonly actionLoading: _angular_core.WritableSignal<boolean>;
|
|
2054
|
-
readonly infoClick: _angular_core.OutputEmitterRef<void>;
|
|
2055
|
-
readonly searchClick: _angular_core.OutputEmitterRef<void>;
|
|
2056
|
-
readonly searchQuery: _angular_core.OutputEmitterRef<string>;
|
|
2057
|
-
readonly menuItemAction: _angular_core.OutputEmitterRef<string>;
|
|
2058
|
-
readonly inlineActions: _angular_core.Signal<AXConversationInfoBarAction[]>;
|
|
2059
|
-
readonly menuItems: _angular_core.Signal<AXConversationDropdownMenuItem[]>;
|
|
2060
|
-
getStatus(conversation: AXConversation): _acorex_components_conversation.AXConversationPresenceStatus;
|
|
2061
|
-
getSubtitle(conversation: AXConversation): string;
|
|
2062
|
-
isTyping(conversation: AXConversation): boolean;
|
|
2063
|
-
onInfoLeftClick(): void;
|
|
2064
|
-
onInlineActionClick(actionId: string): Promise<void>;
|
|
2065
|
-
private activateAction;
|
|
2066
|
-
getComponentInputs(): Record<string, unknown>;
|
|
2067
|
-
getInlineComponentInputs(): Record<string, unknown>;
|
|
2068
|
-
isActiveComponentFullWidth(): boolean;
|
|
2069
|
-
onCloseComponent(): void;
|
|
2070
|
-
onCloseBanner(): void;
|
|
2071
|
-
onMenuItemClick(item: AXConversationDropdownMenuItem): Promise<void>;
|
|
2072
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationInfoBarComponent, never>;
|
|
2073
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationInfoBarComponent, "ax-conversation-info-bar", never, {}, { "infoClick": "infoClick"; "searchClick": "searchClick"; "searchQuery": "searchQuery"; "menuItemAction": "menuItemAction"; }, never, ["ax-prefix"], true, never>;
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
/**
|
|
2077
|
-
|
|
2078
|
-
* Shared API Types
|
|
2079
|
-
|
|
2080
|
-
* Common types used across all API services
|
|
2081
|
-
|
|
2082
|
-
*/
|
|
2083
|
-
/**
|
|
2084
|
-
|
|
2085
|
-
* Pagination parameters
|
|
2086
|
-
|
|
2087
|
-
*/
|
|
2088
|
-
interface AXConversationPagination {
|
|
2089
|
-
/** Page number (0-based) */
|
|
2090
|
-
page: number;
|
|
2091
|
-
/** Items per page */
|
|
2092
|
-
pageSize: number;
|
|
2093
|
-
/** Cursor for cursor-based pagination (optional) */
|
|
2094
|
-
cursor?: string;
|
|
2095
|
-
/** Sort field */
|
|
2096
|
-
sortBy?: string;
|
|
2097
|
-
/** Sort direction */
|
|
2098
|
-
sortDirection?: 'asc' | 'desc';
|
|
2099
|
-
}
|
|
2100
|
-
/**
|
|
2101
|
-
|
|
2102
|
-
* Paginated response
|
|
2103
|
-
|
|
2104
|
-
*/
|
|
2105
|
-
interface AXConversationPaginatedResult<T> {
|
|
2106
|
-
/** Result items */
|
|
2107
|
-
items: T[];
|
|
2108
|
-
/** Total count (if available) */
|
|
2109
|
-
total?: number;
|
|
2110
|
-
/** Next page cursor (for cursor-based pagination) */
|
|
2111
|
-
nextCursor?: string;
|
|
2112
|
-
/** Previous page cursor */
|
|
2113
|
-
prevCursor?: string;
|
|
2114
|
-
/** Whether there are more pages */
|
|
2115
|
-
hasMore: boolean;
|
|
2116
|
-
/** Current page number */
|
|
2117
|
-
page?: number;
|
|
2118
|
-
/** Total pages */
|
|
2119
|
-
totalPages?: number;
|
|
2120
|
-
}
|
|
2121
|
-
/**
|
|
2122
|
-
|
|
2123
|
-
* Pagination cursor state for a single list (conversations or messages).
|
|
2124
|
-
|
|
2125
|
-
*/
|
|
2126
|
-
interface AXConversationPaginationState {
|
|
2127
|
-
page: number;
|
|
2128
|
-
hasMore: boolean;
|
|
2129
|
-
nextCursor?: string;
|
|
2130
|
-
}
|
|
2131
|
-
/**
|
|
2132
|
-
|
|
2133
|
-
* Connection status
|
|
2134
|
-
|
|
2135
|
-
*/
|
|
2136
|
-
type AXConversationConnectionStatus = 'disconnected' | 'connecting' | 'connected' | 'reconnecting' | 'error';
|
|
2137
1884
|
/**
|
|
2138
|
-
|
|
2139
|
-
*
|
|
2140
|
-
|
|
1885
|
+
* Contract for components used as {@link AXConversationMessageRenderer.infoBarBanner}.
|
|
1886
|
+
* Conversation shell passes at least `{ message }`; renderers can pass additional inputs.
|
|
2141
1887
|
*/
|
|
2142
|
-
interface
|
|
2143
|
-
|
|
2144
|
-
code: string;
|
|
2145
|
-
/** Error message */
|
|
2146
|
-
message: string;
|
|
2147
|
-
/** HTTP status code */
|
|
2148
|
-
statusCode?: number;
|
|
2149
|
-
/** Additional details */
|
|
2150
|
-
details?: unknown;
|
|
2151
|
-
/** Timestamp */
|
|
2152
|
-
timestamp?: Date;
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
type AXConversationApiName = 'userApi' | 'conversationApi' | 'messageApi' | 'realtimeApi';
|
|
2156
|
-
interface AXConversationApiLogEntry {
|
|
2157
|
-
/** Public method on AXConversationService that triggered the API call. */
|
|
2158
|
-
serviceMethod: string;
|
|
2159
|
-
/** Injected API instance name. */
|
|
2160
|
-
api: AXConversationApiName;
|
|
2161
|
-
/** Method invoked on the API instance. */
|
|
2162
|
-
apiMethod: string;
|
|
2163
|
-
/** Positional arguments passed to the API method. */
|
|
2164
|
-
context: unknown[];
|
|
2165
|
-
}
|
|
2166
|
-
declare class AXConversationApiLoggerService {
|
|
2167
|
-
private readonly config;
|
|
2168
|
-
log(entry: AXConversationApiLogEntry): void;
|
|
2169
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationApiLoggerService, never>;
|
|
2170
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1888
|
+
interface AXConversationMessageInfoBarBannerComponent {
|
|
1889
|
+
readonly message: InputSignal<AXConversationMessage>;
|
|
2171
1890
|
}
|
|
2172
|
-
|
|
2173
1891
|
/**
|
|
2174
|
-
*
|
|
1892
|
+
* Message renderer registration
|
|
2175
1893
|
*/
|
|
2176
|
-
interface
|
|
2177
|
-
/**
|
|
2178
|
-
type:
|
|
2179
|
-
/**
|
|
2180
|
-
|
|
2181
|
-
/**
|
|
2182
|
-
|
|
2183
|
-
/** Conversation title (for groups/channels) */
|
|
2184
|
-
title?: string;
|
|
2185
|
-
/** Conversation description */
|
|
2186
|
-
description?: string;
|
|
2187
|
-
/** Avatar URL */
|
|
2188
|
-
avatar?: string;
|
|
1894
|
+
interface AXConversationMessageRenderer {
|
|
1895
|
+
/** Unique type identifier */
|
|
1896
|
+
type: string;
|
|
1897
|
+
/** Angular component to render this message type */
|
|
1898
|
+
component?: Type<AXConversationMessageRendererComponent>;
|
|
1899
|
+
/** Lazy loader for the renderer component */
|
|
1900
|
+
componentLoader?: () => Promise<Type<AXConversationMessageRendererComponent>>;
|
|
2189
1901
|
/**
|
|
2190
|
-
*
|
|
2191
|
-
*
|
|
1902
|
+
* Optional component rendered as a dismissible banner under info-bar.
|
|
1903
|
+
* Useful for active/interactive message states (e.g. voice playback progress).
|
|
2192
1904
|
*/
|
|
2193
|
-
|
|
2194
|
-
/**
|
|
2195
|
-
|
|
1905
|
+
infoBarBanner?: Type<AXConversationMessageInfoBarBannerComponent>;
|
|
1906
|
+
/** Lazy loader for the info-bar banner component */
|
|
1907
|
+
infoBarBannerLoader?: () => Promise<Type<AXConversationMessageInfoBarBannerComponent>>;
|
|
1908
|
+
/** Function to determine if this renderer can handle a message */
|
|
1909
|
+
canHandle: (message: AXConversationMessage) => boolean;
|
|
1910
|
+
/** Renderer capabilities */
|
|
1911
|
+
capabilities: AXConversationMessageRendererCapabilities;
|
|
2196
1912
|
/**
|
|
2197
|
-
*
|
|
2198
|
-
*
|
|
1913
|
+
* List chrome for this message type.
|
|
1914
|
+
* `plain` removes bubble fill, padding, shadow, and tail. Default is `bubble`.
|
|
1915
|
+
* Pass a function when chrome depends on payload (e.g. jumbo emoji text).
|
|
2199
1916
|
*/
|
|
2200
|
-
|
|
2201
|
-
}
|
|
2202
|
-
/**
|
|
2203
|
-
* Conversation update data
|
|
2204
|
-
*/
|
|
2205
|
-
interface AXConversationUpdateData {
|
|
2206
|
-
/** Conversation title */
|
|
2207
|
-
title?: string;
|
|
2208
|
-
/** Conversation description */
|
|
2209
|
-
description?: string;
|
|
2210
|
-
/** Avatar URL */
|
|
2211
|
-
avatar?: string;
|
|
1917
|
+
chrome?: AXConversationMessageChrome | ((message: AXConversationMessage) => AXConversationMessageChrome);
|
|
2212
1918
|
/**
|
|
2213
|
-
*
|
|
2214
|
-
*
|
|
1919
|
+
* Display name (plain text or translation key).
|
|
1920
|
+
* Shown with {@link icon} in sidebar, reply, and composer previews for custom message types.
|
|
2215
1921
|
*/
|
|
1922
|
+
displayName?: string;
|
|
1923
|
+
/** Icon name/class */
|
|
2216
1924
|
icon?: string;
|
|
2217
|
-
/**
|
|
2218
|
-
|
|
1925
|
+
/** Linked file type catalog name (for utility APIs like preview/duration). */
|
|
1926
|
+
fileType?: string;
|
|
1927
|
+
/**
|
|
1928
|
+
* Optional composer actions co-located with this message type (e.g. pickers that produce this message).
|
|
1929
|
+
* Registered with {@link AXConversationComposerActionRegistry} when the renderer is registered.
|
|
1930
|
+
* Use `AXConversationRegistryConfiguration.composerActions` for actions not tied to a single message renderer.
|
|
1931
|
+
*/
|
|
1932
|
+
composerActions?: AXConversationComposerAction[];
|
|
2219
1933
|
}
|
|
2220
1934
|
/**
|
|
2221
|
-
*
|
|
1935
|
+
* Message Renderer Registry Service
|
|
2222
1936
|
*/
|
|
2223
|
-
|
|
1937
|
+
declare class AXConversationMessageRendererRegistry {
|
|
1938
|
+
private readonly _renderers;
|
|
1939
|
+
private readonly _composerActions;
|
|
1940
|
+
constructor();
|
|
1941
|
+
private registerBuiltInRenderers;
|
|
1942
|
+
private registerBuiltInRendererIfMissing;
|
|
1943
|
+
/** All registered renderers */
|
|
1944
|
+
readonly renderers: Signal<AXConversationMessageRenderer[]>;
|
|
1945
|
+
/** Renderers sorted by priority (highest first) */
|
|
1946
|
+
readonly sortedRenderers: Signal<AXConversationMessageRenderer[]>;
|
|
1947
|
+
/** O(1) lookup by message type. Rebuilt when the registry changes. */
|
|
1948
|
+
private readonly rendererByType;
|
|
1949
|
+
private readonly missingRendererTypesWarned;
|
|
2224
1950
|
/**
|
|
2225
|
-
*
|
|
2226
|
-
* Bot: always delete for both sides.
|
|
2227
|
-
* Group/channel: only valid for the creator — destroys the room for everyone.
|
|
2228
|
-
* Defaults to `false` (hide / clear history for the current user only).
|
|
1951
|
+
* Register a message renderer
|
|
2229
1952
|
*/
|
|
2230
|
-
|
|
1953
|
+
register(renderer: AXConversationMessageRenderer): void;
|
|
1954
|
+
/**
|
|
1955
|
+
* Unregister a message renderer by type
|
|
1956
|
+
*/
|
|
1957
|
+
unregister(type: string): void;
|
|
1958
|
+
/**
|
|
1959
|
+
* Get renderer for a specific message (exact type match).
|
|
1960
|
+
* Missing types are warned once; callers should fall back to the `fallback` renderer.
|
|
1961
|
+
*/
|
|
1962
|
+
getRenderer(message: AXConversationMessage): AXConversationMessageRenderer | undefined;
|
|
1963
|
+
/**
|
|
1964
|
+
* Get renderer by type
|
|
1965
|
+
*/
|
|
1966
|
+
getRendererByType(type: string): AXConversationMessageRenderer | undefined;
|
|
1967
|
+
private warnMissingRenderer;
|
|
1968
|
+
/**
|
|
1969
|
+
* Check if a message type is supported
|
|
1970
|
+
*/
|
|
1971
|
+
isSupported(message: AXConversationMessage): boolean;
|
|
1972
|
+
/**
|
|
1973
|
+
* Get all registered types
|
|
1974
|
+
*/
|
|
1975
|
+
getTypes(): string[];
|
|
1976
|
+
/**
|
|
1977
|
+
* Clear all renderers
|
|
1978
|
+
*/
|
|
1979
|
+
clear(): void;
|
|
1980
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageRendererRegistry, never>;
|
|
1981
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
2231
1982
|
}
|
|
1983
|
+
|
|
2232
1984
|
/**
|
|
2233
|
-
*
|
|
1985
|
+
* Active component state in info-bar
|
|
2234
1986
|
*/
|
|
2235
|
-
interface
|
|
2236
|
-
/**
|
|
2237
|
-
|
|
2238
|
-
/**
|
|
2239
|
-
|
|
2240
|
-
/**
|
|
2241
|
-
|
|
2242
|
-
/**
|
|
2243
|
-
|
|
2244
|
-
/** Search query */
|
|
2245
|
-
searchQuery?: string;
|
|
2246
|
-
/** Filter by tags */
|
|
2247
|
-
tags?: string[];
|
|
2248
|
-
/** Custom filters */
|
|
2249
|
-
custom?: Record<string, unknown>;
|
|
1987
|
+
interface AXConversationInfoBarActiveComponent {
|
|
1988
|
+
/** Action that triggered this component */
|
|
1989
|
+
action: AXConversationInfoBarAction;
|
|
1990
|
+
/** Eager component to render */
|
|
1991
|
+
component?: Type<unknown>;
|
|
1992
|
+
/** Lazy loader for the component */
|
|
1993
|
+
componentLoader?: () => Promise<Type<unknown>>;
|
|
1994
|
+
/** Component inputs */
|
|
1995
|
+
inputs?: Record<string, unknown>;
|
|
2250
1996
|
}
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
role?: AXConversationParticipantRole;
|
|
1997
|
+
interface AXConversationInfoBarActiveBanner {
|
|
1998
|
+
/** Message that owns this banner */
|
|
1999
|
+
message: AXConversationMessage;
|
|
2000
|
+
/** Banner component */
|
|
2001
|
+
component?: Type<AXConversationMessageInfoBarBannerComponent>;
|
|
2002
|
+
/** Lazy loader for banner component */
|
|
2003
|
+
componentLoader?: () => Promise<Type<AXConversationMessageInfoBarBannerComponent>>;
|
|
2004
|
+
/** Additional component inputs (only keys that match declared `input()` on the banner) */
|
|
2005
|
+
inputs?: Record<string, unknown>;
|
|
2006
|
+
/** Callback invoked when the banner is dismissed (e.g. pause playback) */
|
|
2007
|
+
onClose?: () => void;
|
|
2263
2008
|
}
|
|
2264
2009
|
/**
|
|
2265
|
-
*
|
|
2266
|
-
*
|
|
2267
|
-
* Implement this abstract class to handle conversation operations.
|
|
2268
|
-
*
|
|
2269
|
-
* @example
|
|
2270
|
-
* ```typescript
|
|
2271
|
-
* @Injectable()
|
|
2272
|
-
* export class MyConversationApi extends AXConversationManagementApi {
|
|
2273
|
-
* constructor(private http: HttpClient) {
|
|
2274
|
-
* super();
|
|
2275
|
-
* }
|
|
2276
|
-
*
|
|
2277
|
-
* async createConversation(data: AXConversationCreateData): Promise<AXConversation> {
|
|
2278
|
-
* const response = await this.http.post('/api/conversations', data).toPromise();
|
|
2279
|
-
* return response;
|
|
2280
|
-
* }
|
|
2281
|
-
*
|
|
2282
|
-
* // ... implement other methods
|
|
2283
|
-
* }
|
|
2284
|
-
* ```
|
|
2010
|
+
* Info Bar Service
|
|
2011
|
+
* Manages info bar state and actions
|
|
2285
2012
|
*/
|
|
2286
|
-
declare
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
/**
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
/**
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
* @param pagination - Pagination parameters
|
|
2307
|
-
* @param filters - Optional filters
|
|
2308
|
-
* @returns Paginated conversation list
|
|
2309
|
-
* @throws {AXConversationApiError} If request fails
|
|
2310
|
-
*/
|
|
2311
|
-
abstract getConversations(pagination: AXConversationPagination, filters?: AXConversationFilters): Promise<AXConversationPaginatedResult<AXConversation>>;
|
|
2312
|
-
/**
|
|
2313
|
-
* Update conversation details
|
|
2314
|
-
*
|
|
2315
|
-
* @param conversationId - Conversation ID
|
|
2316
|
-
* @param updates - Update data
|
|
2317
|
-
* @returns Updated conversation
|
|
2318
|
-
* @throws {AXConversationApiError} If update fails
|
|
2319
|
-
*/
|
|
2320
|
-
abstract updateConversation(conversationId: string, updates: AXConversationUpdateData): Promise<AXConversation>;
|
|
2013
|
+
declare class AXConversationInfoBarService {
|
|
2014
|
+
private readonly conversationService;
|
|
2015
|
+
private readonly injector;
|
|
2016
|
+
private get registry();
|
|
2017
|
+
/** Active conversation */
|
|
2018
|
+
readonly activeConversation: _angular_core.Signal<AXConversation>;
|
|
2019
|
+
/** Active component being shown in info-bar */
|
|
2020
|
+
private readonly _activeComponent;
|
|
2021
|
+
readonly activeComponent: _angular_core.Signal<AXConversationInfoBarActiveComponent>;
|
|
2022
|
+
/** Active banner shown under info-bar */
|
|
2023
|
+
private readonly _activeBanner;
|
|
2024
|
+
readonly activeBanner: _angular_core.Signal<AXConversationInfoBarActiveBanner>;
|
|
2025
|
+
/** Search query signal */
|
|
2026
|
+
private readonly _searchQuery;
|
|
2027
|
+
readonly searchQuery: _angular_core.Signal<string>;
|
|
2028
|
+
private readonly _searchResultsCount;
|
|
2029
|
+
readonly searchResultsCount: _angular_core.Signal<number>;
|
|
2030
|
+
/** Current search result index */
|
|
2031
|
+
private readonly _currentSearchIndex;
|
|
2032
|
+
readonly currentSearchIndex: _angular_core.Signal<number>;
|
|
2321
2033
|
/**
|
|
2322
|
-
*
|
|
2323
|
-
*
|
|
2324
|
-
* @param conversationId - Conversation ID
|
|
2325
|
-
* @param options - `forEveryone` destroys the room; omit/false hides it for the current user only
|
|
2326
|
-
* (private chats keep the peer's history). Group/channel leave should use {@link leaveConversation}.
|
|
2327
|
-
* @throws {AXConversationApiError} If deletion fails
|
|
2034
|
+
* Reset info-bar overlays when the active conversation changes.
|
|
2328
2035
|
*/
|
|
2329
|
-
|
|
2036
|
+
onConversationChanged(): void;
|
|
2330
2037
|
/**
|
|
2331
|
-
*
|
|
2332
|
-
*
|
|
2333
|
-
* @param conversationId - Conversation ID
|
|
2334
|
-
* @throws {AXConversationApiError} If archiving fails
|
|
2038
|
+
* Get actions for the active conversation
|
|
2335
2039
|
*/
|
|
2336
|
-
|
|
2040
|
+
getActionsForConversation(conversation: AXConversation): AXConversationInfoBarAction[];
|
|
2337
2041
|
/**
|
|
2338
|
-
*
|
|
2339
|
-
*
|
|
2340
|
-
* @param conversationId - Conversation ID
|
|
2341
|
-
* @throws {AXConversationApiError} If unarchiving fails
|
|
2042
|
+
* Execute an action
|
|
2342
2043
|
*/
|
|
2343
|
-
|
|
2044
|
+
executeAction(actionId: string, conversation: AXConversation, data?: Record<string, unknown>): Promise<void>;
|
|
2344
2045
|
/**
|
|
2345
|
-
*
|
|
2346
|
-
*
|
|
2347
|
-
* @param conversationId - Conversation ID
|
|
2348
|
-
* @throws {AXConversationApiError} If pinning fails
|
|
2046
|
+
* Get action label
|
|
2349
2047
|
*/
|
|
2350
|
-
|
|
2048
|
+
getActionLabel(action: AXConversationInfoBarAction, conversation: AXConversation): string;
|
|
2351
2049
|
/**
|
|
2352
|
-
*
|
|
2353
|
-
*
|
|
2354
|
-
* @param conversationId - Conversation ID
|
|
2355
|
-
* @throws {AXConversationApiError} If unpinning fails
|
|
2050
|
+
* Get action icon
|
|
2356
2051
|
*/
|
|
2357
|
-
|
|
2052
|
+
getActionIcon(action: AXConversationInfoBarAction, conversation: AXConversation): string | undefined;
|
|
2358
2053
|
/**
|
|
2359
|
-
*
|
|
2360
|
-
*
|
|
2361
|
-
* @param conversationId - Conversation ID
|
|
2362
|
-
* @throws {AXConversationApiError} If marking fails
|
|
2054
|
+
* Show a component in the info-bar
|
|
2363
2055
|
*/
|
|
2364
|
-
|
|
2056
|
+
showComponent(action: AXConversationInfoBarAction, inputs?: Record<string, unknown>): void;
|
|
2365
2057
|
/**
|
|
2366
|
-
*
|
|
2367
|
-
*
|
|
2368
|
-
* @param query - Search query
|
|
2369
|
-
* @returns Matching conversations
|
|
2370
|
-
* @throws {AXConversationApiError} If search fails
|
|
2058
|
+
* Hide the active component
|
|
2371
2059
|
*/
|
|
2372
|
-
|
|
2060
|
+
hideComponent(): void;
|
|
2373
2061
|
/**
|
|
2374
|
-
*
|
|
2375
|
-
*
|
|
2376
|
-
* @param filters - Filter options
|
|
2377
|
-
* @param pagination - Pagination parameters
|
|
2378
|
-
* @returns Filtered conversations
|
|
2379
|
-
* @throws {AXConversationApiError} If filtering fails
|
|
2062
|
+
* Show message-owned banner under info-bar if renderer provides one
|
|
2380
2063
|
*/
|
|
2381
|
-
|
|
2064
|
+
showMessageBanner(message: AXConversationMessage, inputs?: Record<string, unknown>): Promise<void>;
|
|
2382
2065
|
/**
|
|
2383
|
-
*
|
|
2384
|
-
*
|
|
2385
|
-
* @param conversationId - Conversation ID
|
|
2386
|
-
* @returns List of participants
|
|
2387
|
-
* @throws {AXConversationApiError} If request fails
|
|
2066
|
+
* Update active banner inputs for a specific message
|
|
2388
2067
|
*/
|
|
2389
|
-
|
|
2068
|
+
updateMessageBannerInputs(messageId: string, inputs: Record<string, unknown>): void;
|
|
2390
2069
|
/**
|
|
2391
|
-
*
|
|
2392
|
-
*
|
|
2393
|
-
* @param conversationId - Conversation ID
|
|
2394
|
-
* @param userIds - User IDs to add
|
|
2395
|
-
* @returns Updated conversation
|
|
2396
|
-
* @throws {AXConversationApiError} If adding fails
|
|
2070
|
+
* Hide active banner. If messageId is provided, hide only when it matches.
|
|
2397
2071
|
*/
|
|
2398
|
-
|
|
2072
|
+
hideMessageBanner(messageId?: string): void;
|
|
2073
|
+
isMessageBannerActive(messageId: string): boolean;
|
|
2399
2074
|
/**
|
|
2400
|
-
*
|
|
2401
|
-
*
|
|
2402
|
-
* @param conversationId - Conversation ID
|
|
2403
|
-
* @param userId - User ID to remove
|
|
2404
|
-
* @returns Updated conversation
|
|
2405
|
-
* @throws {AXConversationApiError} If removal fails
|
|
2075
|
+
* Toggle component visibility
|
|
2406
2076
|
*/
|
|
2407
|
-
|
|
2077
|
+
toggleComponent(action: AXConversationInfoBarAction, inputs?: Record<string, unknown>): void;
|
|
2408
2078
|
/**
|
|
2409
|
-
*
|
|
2410
|
-
*
|
|
2411
|
-
* @param conversationId - Conversation ID
|
|
2412
|
-
* @throws {AXConversationApiError} If leaving fails
|
|
2079
|
+
* Set search query
|
|
2413
2080
|
*/
|
|
2414
|
-
|
|
2081
|
+
setSearchQuery(query: string): void;
|
|
2415
2082
|
/**
|
|
2416
|
-
*
|
|
2417
|
-
*
|
|
2418
|
-
* @param conversationId - Conversation ID
|
|
2419
|
-
* @param update - Participant update data
|
|
2420
|
-
* @returns Updated conversation
|
|
2421
|
-
* @throws {AXConversationApiError} If update fails
|
|
2083
|
+
* Set search results
|
|
2422
2084
|
*/
|
|
2423
|
-
|
|
2085
|
+
setSearchResults(count: number, currentIndex?: number): void;
|
|
2424
2086
|
/**
|
|
2425
|
-
*
|
|
2426
|
-
*
|
|
2427
|
-
* @param conversationId - Conversation ID
|
|
2428
|
-
* @param file - Avatar image file
|
|
2429
|
-
* @returns Avatar URL
|
|
2430
|
-
* @throws {AXConversationApiError} If upload fails
|
|
2087
|
+
* Navigate to next search result
|
|
2431
2088
|
*/
|
|
2432
|
-
|
|
2089
|
+
nextSearchResult(): void;
|
|
2433
2090
|
/**
|
|
2434
|
-
*
|
|
2435
|
-
*
|
|
2436
|
-
* @param conversationId - Conversation ID
|
|
2437
|
-
* @param pagination - Pagination parameters
|
|
2438
|
-
* @returns Paginated media items
|
|
2439
|
-
* @throws {AXConversationApiError} If request fails
|
|
2091
|
+
* Navigate to previous search result
|
|
2440
2092
|
*/
|
|
2441
|
-
|
|
2093
|
+
previousSearchResult(): void;
|
|
2442
2094
|
/**
|
|
2443
|
-
*
|
|
2444
|
-
*
|
|
2445
|
-
* @param conversationId - Conversation ID
|
|
2446
|
-
* @param tags - Tags to add
|
|
2447
|
-
* @throws {AXConversationApiError} If adding fails
|
|
2095
|
+
* Clear search
|
|
2448
2096
|
*/
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2097
|
+
clearSearch(): void;
|
|
2098
|
+
private _extractOnClose;
|
|
2099
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationInfoBarService, never>;
|
|
2100
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* Info Bar Action Registry
|
|
2105
|
+
* Manages actions available in the conversation info bar
|
|
2106
|
+
*/
|
|
2107
|
+
|
|
2108
|
+
/**
|
|
2109
|
+
* Context provided to action handlers
|
|
2110
|
+
*/
|
|
2111
|
+
interface AXConversationInfoBarActionContext {
|
|
2112
|
+
/** The conversation */
|
|
2113
|
+
conversation: AXConversation;
|
|
2114
|
+
/** Additional context data */
|
|
2115
|
+
data?: Record<string, unknown>;
|
|
2116
|
+
}
|
|
2117
|
+
/**
|
|
2118
|
+
* Contract for components used as {@link AXConversationInfoBarAction.component}.
|
|
2119
|
+
* Info-bar shell passes at least `{ conversation, service }`.
|
|
2120
|
+
*/
|
|
2121
|
+
interface AXConversationInfoBarActionComponent {
|
|
2122
|
+
readonly conversation: InputSignal<AXConversation>;
|
|
2123
|
+
readonly service?: InputSignal<AXConversationInfoBarService | undefined>;
|
|
2124
|
+
}
|
|
2125
|
+
/**
|
|
2126
|
+
* Info bar action configuration
|
|
2127
|
+
*/
|
|
2128
|
+
interface AXConversationInfoBarAction extends AXConversationRegistryItem {
|
|
2129
|
+
/** Action label */
|
|
2130
|
+
label: string | ((context: AXConversationInfoBarActionContext) => string);
|
|
2131
|
+
/** Action icon (emoji or icon class) */
|
|
2132
|
+
icon?: string | ((context: AXConversationInfoBarActionContext) => string);
|
|
2133
|
+
/** Tooltip text */
|
|
2134
|
+
tooltip?: string | ((context: AXConversationInfoBarActionContext) => string);
|
|
2135
|
+
/** Whether this action is destructive */
|
|
2136
|
+
destructive?: boolean;
|
|
2137
|
+
/** Whether this is a divider */
|
|
2138
|
+
divider?: boolean;
|
|
2139
|
+
/** Display location: 'inline' for toolbar buttons, 'menu' for dropdown menu */
|
|
2140
|
+
location?: 'inline' | 'menu' | ((context: AXConversationInfoBarActionContext) => 'inline' | 'menu');
|
|
2141
|
+
/**
|
|
2142
|
+
* Component to show when action is activated (for inline actions)
|
|
2143
|
+
* If provided, clicking the action will show this component in the info-bar
|
|
2456
2144
|
*/
|
|
2457
|
-
|
|
2145
|
+
component?: Type<AXConversationInfoBarActionComponent>;
|
|
2146
|
+
/** Lazy loader for the inline/full-width action component */
|
|
2147
|
+
componentLoader?: () => Promise<Type<AXConversationInfoBarActionComponent>>;
|
|
2458
2148
|
/**
|
|
2459
|
-
*
|
|
2460
|
-
*
|
|
2461
|
-
* @param conversationId - Conversation ID
|
|
2462
|
-
* @returns Array of tags
|
|
2463
|
-
* @throws {AXConversationApiError} If request fails
|
|
2149
|
+
* Whether this action is toggleable (shows/hides component)
|
|
2464
2150
|
*/
|
|
2465
|
-
|
|
2151
|
+
toggleable?: boolean;
|
|
2466
2152
|
/**
|
|
2467
|
-
*
|
|
2468
|
-
*
|
|
2469
|
-
* @param conversationId - Conversation ID
|
|
2470
|
-
* @param draft - Draft text
|
|
2471
|
-
* @throws {AXConversationApiError} If saving fails
|
|
2153
|
+
* Whether action component should take full width of the info-bar.
|
|
2154
|
+
* Defaults to `true` when omitted.
|
|
2472
2155
|
*/
|
|
2473
|
-
|
|
2156
|
+
fullWidthComponent?: boolean;
|
|
2157
|
+
/**
|
|
2158
|
+
* Visibility condition
|
|
2159
|
+
* @returns true if action should be visible
|
|
2160
|
+
*/
|
|
2161
|
+
visible?: (context: AXConversationInfoBarActionContext) => boolean;
|
|
2162
|
+
/**
|
|
2163
|
+
* Dynamic enabled condition
|
|
2164
|
+
* @returns true if action should be enabled
|
|
2165
|
+
* Note: Use the `enabled` property from AXConversationRegistryItem for static enable/disable
|
|
2166
|
+
*/
|
|
2167
|
+
enabledWhen?: (context: AXConversationInfoBarActionContext) => boolean;
|
|
2168
|
+
/**
|
|
2169
|
+
* Action handler
|
|
2170
|
+
* Called when the action is clicked
|
|
2171
|
+
*/
|
|
2172
|
+
handler?: (context: AXConversationInfoBarActionContext) => void | Promise<void>;
|
|
2173
|
+
}
|
|
2174
|
+
/**
|
|
2175
|
+
* Info Bar Action Registry Service
|
|
2176
|
+
* Manages available actions in the conversation info bar
|
|
2177
|
+
*/
|
|
2178
|
+
declare class AXConversationInfoBarActionRegistry extends AXConversationBaseRegistry<AXConversationInfoBarAction> {
|
|
2179
|
+
private readonly translation;
|
|
2180
|
+
private readonly injector;
|
|
2181
|
+
constructor();
|
|
2182
|
+
/**
|
|
2183
|
+
* Get registry name for logging
|
|
2184
|
+
*/
|
|
2185
|
+
protected getRegistryName(): string;
|
|
2186
|
+
/**
|
|
2187
|
+
* Get actions for a specific conversation
|
|
2188
|
+
*/
|
|
2189
|
+
getActionsForConversation(conversation: AXConversation, location?: 'inline' | 'menu'): AXConversationInfoBarAction[];
|
|
2190
|
+
/**
|
|
2191
|
+
* Resolve the display location for an action (supports dynamic location factories).
|
|
2192
|
+
*/
|
|
2193
|
+
getActionLocation(action: AXConversationInfoBarAction, conversation: AXConversation): 'inline' | 'menu' | undefined;
|
|
2194
|
+
/**
|
|
2195
|
+
* Get inline actions (toolbar buttons)
|
|
2196
|
+
*/
|
|
2197
|
+
getInlineActions(conversation: AXConversation): AXConversationInfoBarAction[];
|
|
2198
|
+
/**
|
|
2199
|
+
* Get menu actions (dropdown items)
|
|
2200
|
+
*/
|
|
2201
|
+
getMenuActions(conversation: AXConversation): AXConversationInfoBarAction[];
|
|
2202
|
+
isActionEnabled(action: AXConversationInfoBarAction, context: AXConversationInfoBarActionContext): boolean;
|
|
2203
|
+
/**
|
|
2204
|
+
* Get label for an action
|
|
2205
|
+
*/
|
|
2206
|
+
getActionLabel(action: AXConversationInfoBarAction, conversation: AXConversation): string;
|
|
2207
|
+
/**
|
|
2208
|
+
* Get icon for an action
|
|
2209
|
+
*/
|
|
2210
|
+
getActionIcon(action: AXConversationInfoBarAction, conversation: AXConversation): string | undefined;
|
|
2211
|
+
/**
|
|
2212
|
+
* Get tooltip for an action
|
|
2213
|
+
*/
|
|
2214
|
+
getActionTooltip(action: AXConversationInfoBarAction, conversation: AXConversation): string | undefined;
|
|
2215
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationInfoBarActionRegistry, never>;
|
|
2216
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
/**
|
|
2220
|
+
* Action context provided to handlers
|
|
2221
|
+
*/
|
|
2222
|
+
interface AXConversationMessageActionContext {
|
|
2223
|
+
/** The message */
|
|
2224
|
+
message: AXConversationMessage;
|
|
2225
|
+
/** Current user */
|
|
2226
|
+
currentUser: AXConversationParticipant;
|
|
2227
|
+
/** All conversation participants */
|
|
2228
|
+
participants: AXConversationParticipant[];
|
|
2229
|
+
/** Mounted message renderer for this row (see {@link AXConversationMessageRendererComponent.copy}). */
|
|
2230
|
+
renderer?: AXConversationMessageRendererComponent;
|
|
2231
|
+
/** Custom context data */
|
|
2232
|
+
custom?: Record<string, unknown>;
|
|
2233
|
+
}
|
|
2234
|
+
/**
|
|
2235
|
+
* Message action registration
|
|
2236
|
+
*/
|
|
2237
|
+
interface AXConversationMessageAction extends Omit<AXConversationRegistryItem, 'enabled'> {
|
|
2238
|
+
/** Display label */
|
|
2239
|
+
label: string;
|
|
2240
|
+
/** Icon name/class */
|
|
2241
|
+
icon?: string;
|
|
2242
|
+
/** Show as inline button */
|
|
2243
|
+
showInline?: boolean;
|
|
2244
|
+
/** Visibility condition */
|
|
2245
|
+
visible: (message: AXConversationMessage, currentUser: AXConversationParticipant) => boolean;
|
|
2246
|
+
/** Enabled condition */
|
|
2247
|
+
enabled: (message: AXConversationMessage, currentUser: AXConversationParticipant) => boolean;
|
|
2248
|
+
/** Action handler */
|
|
2249
|
+
handler: (context: AXConversationMessageActionContext) => void | Promise<void>;
|
|
2250
|
+
/** Confirmation message (if required) */
|
|
2251
|
+
confirmMessage?: string;
|
|
2252
|
+
/** Keyboard shortcut */
|
|
2253
|
+
shortcut?: string;
|
|
2254
|
+
/** Custom class for styling */
|
|
2255
|
+
className?: string;
|
|
2256
|
+
/** Destructive action (shows warning) */
|
|
2257
|
+
destructive?: boolean;
|
|
2258
|
+
}
|
|
2259
|
+
/**
|
|
2260
|
+
* Message Action Registry Service
|
|
2261
|
+
*/
|
|
2262
|
+
declare class AXConversationMessageActionRegistry {
|
|
2263
|
+
private readonly _actions;
|
|
2264
|
+
private readonly translation;
|
|
2265
|
+
private readonly injector;
|
|
2266
|
+
constructor();
|
|
2267
|
+
/** All registered actions */
|
|
2268
|
+
readonly actions: _angular_core.Signal<AXConversationMessageAction[]>;
|
|
2269
|
+
/** Actions sorted by priority */
|
|
2270
|
+
readonly sortedActions: _angular_core.Signal<AXConversationMessageAction[]>;
|
|
2271
|
+
/**
|
|
2272
|
+
* Register a message action
|
|
2273
|
+
*/
|
|
2274
|
+
register(action: AXConversationMessageAction): void;
|
|
2275
|
+
/**
|
|
2276
|
+
* Unregister a message action
|
|
2277
|
+
*/
|
|
2278
|
+
unregister(id: string): void;
|
|
2279
|
+
/**
|
|
2280
|
+
* Get all actions for a specific message
|
|
2281
|
+
*/
|
|
2282
|
+
getActions(message: AXConversationMessage, currentUser: AXConversationParticipant): AXConversationMessageAction[];
|
|
2283
|
+
/**
|
|
2284
|
+
* Get menu actions for a message
|
|
2285
|
+
*/
|
|
2286
|
+
getMenuActions(message: AXConversationMessage, currentUser: AXConversationParticipant): AXConversationMessageAction[];
|
|
2287
|
+
/** Whether an action is enabled (safe to call outside an injection context). */
|
|
2288
|
+
isActionEnabled(action: AXConversationMessageAction, message: AXConversationMessage, currentUser: AXConversationParticipant): boolean;
|
|
2289
|
+
getActionLabel(action: AXConversationMessageAction): string;
|
|
2290
|
+
/**
|
|
2291
|
+
* Get inline actions for a message
|
|
2292
|
+
*/
|
|
2293
|
+
getInlineActions(message: AXConversationMessage, currentUser: AXConversationParticipant): AXConversationMessageAction[];
|
|
2294
|
+
/**
|
|
2295
|
+
* Get action by ID
|
|
2296
|
+
*/
|
|
2297
|
+
getActionById(id: string): AXConversationMessageAction | undefined;
|
|
2298
|
+
/**
|
|
2299
|
+
* Execute an action
|
|
2300
|
+
*/
|
|
2301
|
+
executeAction(actionId: string, context: AXConversationMessageActionContext): Promise<void>;
|
|
2302
|
+
/**
|
|
2303
|
+
* Clear all actions
|
|
2304
|
+
*/
|
|
2305
|
+
clear(): void;
|
|
2306
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageActionRegistry, never>;
|
|
2307
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
interface ComposerMentionQuery {
|
|
2311
|
+
start: number;
|
|
2312
|
+
end: number;
|
|
2313
|
+
query: string;
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* Message Utilities Service
|
|
2318
|
+
* Helper functions for message formatting and display
|
|
2319
|
+
*/
|
|
2320
|
+
|
|
2321
|
+
/** Position of a message inside a consecutive same-sender cluster (Telegram grouping). */
|
|
2322
|
+
type AXConversationMessageClusterRole = 'single' | 'start' | 'middle' | 'end';
|
|
2323
|
+
/** Compact message preview; `type` is `'text'` when `value` should be shown as-is. */
|
|
2324
|
+
interface AXConversationMessagePreview {
|
|
2325
|
+
value: string;
|
|
2326
|
+
type: string;
|
|
2327
|
+
icon: string;
|
|
2328
|
+
/** Translation key or plain text naming the message type (empty for text). */
|
|
2329
|
+
label: string;
|
|
2330
|
+
}
|
|
2331
|
+
declare class AXConversationMessageUtilsService {
|
|
2332
|
+
static getInitials(name: string): string;
|
|
2333
|
+
static getMessageText(message: AXConversationMessage): string;
|
|
2334
|
+
/** Text, caption, or system text, translated when it is a translation key. */
|
|
2335
|
+
private static getPreviewSourceText;
|
|
2336
|
+
/**
|
|
2337
|
+
* One-line preview for sidebar rows, reply quotes, and composer banners.
|
|
2338
|
+
* Pass the message's renderer so plugin types show their own `icon` and `displayName`.
|
|
2339
|
+
*/
|
|
2340
|
+
static getPreviewText(message: AXConversationMessage, maxLength?: number, renderer?: Pick<AXConversationMessageRenderer, 'icon' | 'displayName'>): AXConversationMessagePreview;
|
|
2341
|
+
static isOwnMessage(message: AXConversationMessage, currentUserId: string): boolean;
|
|
2342
|
+
static getSenderName(message: AXConversationMessage, conversation: AXConversation): string;
|
|
2343
|
+
static getSenderAvatar(message: AXConversationMessage, conversation: AXConversation): string | undefined;
|
|
2344
|
+
static getSenderAvatarIcon(message: AXConversationMessage, conversation: AXConversation): string | undefined;
|
|
2345
|
+
static getConversationAvatar(conversation: AXConversation): string | undefined;
|
|
2346
|
+
static getConversationAvatarIcon(conversation: AXConversation): string | undefined;
|
|
2347
|
+
static getConversationStatus(conversation: AXConversation, presence?: AXConversationUserPresence): AXConversationPresenceStatus | undefined;
|
|
2348
|
+
/** Consecutive same-sender messages within this window share one Telegram-style cluster. */
|
|
2349
|
+
static readonly MESSAGE_CLUSTER_MAX_GAP_MS: number;
|
|
2350
|
+
/** Palette of existing theme tokens used to color group sender names (not bubble chrome). */
|
|
2351
|
+
private static readonly SENDER_NAME_COLORS;
|
|
2352
|
+
static toTimestampMs(value: Date | string | number): number;
|
|
2353
|
+
static shouldGroupMessages(message: AXConversationMessage, previousMessage?: AXConversationMessage): boolean;
|
|
2354
|
+
static getMessageClusterRole(message: AXConversationMessage, previousMessage?: AXConversationMessage, nextMessage?: AXConversationMessage): AXConversationMessageClusterRole;
|
|
2355
|
+
static getSenderNameColor(senderId: string): string;
|
|
2356
|
+
static getUserPresenceStatus(presence?: AXConversationUserPresence): AXConversationPresenceStatus | undefined;
|
|
2357
|
+
static getTypingText(conversation: AXConversation, typingUserIds: string[]): string;
|
|
2358
|
+
static formatLastSeen(date: Date): string;
|
|
2359
|
+
static getPrivateChatSubtitle(conversation: AXConversation, presence?: AXConversationUserPresence, currentUserId?: string): string;
|
|
2360
|
+
static getConversationSubtitle(conversation: AXConversation, options?: {
|
|
2361
|
+
typingUserIds?: string[];
|
|
2362
|
+
peerPresence?: AXConversationUserPresence;
|
|
2363
|
+
currentUserId?: string;
|
|
2364
|
+
}): string;
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
declare class AXConversationComposerComponent implements OnDestroy {
|
|
2368
|
+
readonly pins: AXConversationMessagePinsService;
|
|
2369
|
+
private readonly conversationService;
|
|
2370
|
+
private readonly composerService;
|
|
2371
|
+
private readonly messageListService;
|
|
2372
|
+
private readonly config;
|
|
2373
|
+
protected readonly translation: AXTranslationService;
|
|
2374
|
+
private readonly uploader;
|
|
2375
|
+
private readonly platform;
|
|
2376
|
+
private readonly fileService;
|
|
2377
|
+
private readonly toast;
|
|
2378
|
+
private readonly actionSheetService;
|
|
2379
|
+
private readonly hostRef;
|
|
2380
|
+
private readonly document;
|
|
2381
|
+
private readonly onEmojiOutsidePointerDown;
|
|
2382
|
+
/** Access registry through conversation service */
|
|
2383
|
+
protected get composerActionRegistry(): _acorex_components_conversation.AXConversationComposerActionRegistry;
|
|
2384
|
+
/** Composer text area reference */
|
|
2385
|
+
private readonly textAreaRef;
|
|
2386
|
+
/** Draft text - use service */
|
|
2387
|
+
readonly draftText: _angular_core.WritableSignal<string>;
|
|
2388
|
+
/** Draft attachments shown above the composer in banner mode. */
|
|
2389
|
+
readonly draftAttachments: _angular_core.WritableSignal<_acorex_components_conversation.AXConversationComposerDraftAttachment[]>;
|
|
2390
|
+
readonly usesAttachmentBanner: _angular_core.Signal<boolean>;
|
|
2391
|
+
/** Editing message */
|
|
2392
|
+
readonly editingMessage: _angular_core.WritableSignal<any>;
|
|
2393
|
+
/** Replying to message */
|
|
2394
|
+
readonly replyingToMessage: _angular_core.WritableSignal<AXConversationMessage>;
|
|
2395
|
+
/** Message sent event */
|
|
2396
|
+
readonly messageSent: _angular_core.OutputEmitterRef<AXConversationSendMessageCommand>;
|
|
2397
|
+
/** Emitted when the user cancels an in-progress generation from the composer. */
|
|
2398
|
+
readonly generationCancelled: _angular_core.OutputEmitterRef<void>;
|
|
2399
|
+
/** Emoji clicked event */
|
|
2400
|
+
readonly emojiClick: _angular_core.OutputEmitterRef<void>;
|
|
2401
|
+
/** Attach clicked event */
|
|
2402
|
+
readonly attachClick: _angular_core.OutputEmitterRef<void>;
|
|
2403
|
+
/** Voice clicked event */
|
|
2404
|
+
readonly voiceClick: _angular_core.OutputEmitterRef<void>;
|
|
2405
|
+
/** Active conversation */
|
|
2406
|
+
readonly activeConversation: _angular_core.Signal<_acorex_components_conversation.AXConversation>;
|
|
2407
|
+
readonly activeMessages: _angular_core.Signal<AXConversationMessage[]>;
|
|
2408
|
+
/** Emoji popover state */
|
|
2409
|
+
private readonly emojiPopoverRef;
|
|
2410
|
+
readonly emojiPopoverTarget: _angular_core.WritableSignal<HTMLElement>;
|
|
2411
|
+
/** Attachment menu popover state */
|
|
2412
|
+
private readonly attachPopoverRef;
|
|
2413
|
+
private readonly attachMenuButtonRef;
|
|
2414
|
+
readonly attachMenuTarget: _angular_core.Signal<HTMLElement>;
|
|
2415
|
+
private attachMenuCloseTimer?;
|
|
2416
|
+
readonly composerPopupLoader: () => Promise<typeof _acorex_components_conversation.AXConversationComposerPopupComponent>;
|
|
2417
|
+
/** Input placeholder - use service */
|
|
2418
|
+
readonly placeholder: _angular_core.Signal<string>;
|
|
2419
|
+
readonly mentionPickerId: string;
|
|
2420
|
+
readonly mentionQuery: _angular_core.WritableSignal<ComposerMentionQuery>;
|
|
2421
|
+
readonly mentionPeople: _angular_core.WritableSignal<readonly AXConversationMentionPerson[]>;
|
|
2422
|
+
readonly mentionLoading: _angular_core.WritableSignal<boolean>;
|
|
2423
|
+
readonly mentionIndex: _angular_core.WritableSignal<number>;
|
|
2424
|
+
readonly mentionPopover: _angular_core.Signal<AXPopoverComponent>;
|
|
2425
|
+
readonly mentionTarget: _angular_core.WritableSignal<HTMLInputElement>;
|
|
2426
|
+
readonly mentionConfig: _angular_core.Signal<AXConversationMentionsConfig>;
|
|
2427
|
+
readonly mentionLabel: _angular_core.Signal<string>;
|
|
2428
|
+
private mentionOpening;
|
|
2429
|
+
private destroyed;
|
|
2430
|
+
closeMentions(): void;
|
|
2431
|
+
/** Called after native input/caret events so selectionStart is current. */
|
|
2432
|
+
updateMentionQuery(event?: Event): void;
|
|
2433
|
+
selectMention(person: AXConversationMentionPerson): void;
|
|
2434
|
+
private handleMentionKey;
|
|
2435
|
+
constructor();
|
|
2436
|
+
private draftSaveTimeout?;
|
|
2437
|
+
private seededEditMessageId;
|
|
2438
|
+
/** Number of input rows - use service */
|
|
2439
|
+
readonly inputRows: _angular_core.Signal<number>;
|
|
2440
|
+
/** Can send message - use service */
|
|
2441
|
+
readonly canSend: _angular_core.Signal<boolean>;
|
|
2442
|
+
/** Whether AI/generation is in progress */
|
|
2443
|
+
readonly isGenerating: _angular_core.Signal<boolean>;
|
|
2444
|
+
/** Whether cancel cleanup is in progress */
|
|
2445
|
+
readonly isStopping: _angular_core.Signal<boolean>;
|
|
2446
|
+
/** Primary button mode */
|
|
2447
|
+
readonly primaryButtonMode: _angular_core.Signal<_acorex_components_conversation.AXConversationComposerPrimaryButtonMode>;
|
|
2448
|
+
/** Start actions from registry - use service */
|
|
2449
|
+
readonly startActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
2450
|
+
/** End actions from registry - use service */
|
|
2451
|
+
readonly endActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
2452
|
+
/** Start inline actions */
|
|
2453
|
+
readonly startInlineActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
2454
|
+
/** Start menu actions (attachment popup) */
|
|
2455
|
+
readonly startMenuActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
2456
|
+
/** End inline actions inside input pill */
|
|
2457
|
+
readonly endInlineActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
2458
|
+
/** End menu actions */
|
|
2459
|
+
readonly endMenuActions: _angular_core.Signal<AXConversationComposerAction[]>;
|
|
2460
|
+
/** Default end action (voice/send morph) */
|
|
2461
|
+
readonly defaultAction: _angular_core.Signal<AXConversationComposerAction>;
|
|
2462
|
+
/** Handle key down (send on Enter; typing is driven by draft changes only). */
|
|
2463
|
+
onKeyDown(event: AXHtmlEvent<KeyboardEvent>): void;
|
|
2464
|
+
/** Keep the draft signal in sync with ngModel (signal two-way bind is unreliable on ax-text-area). */
|
|
2465
|
+
onDraftModelChange(value: string): void;
|
|
2466
|
+
/** Keep the draft signal in sync with ax-text-area CVA output. */
|
|
2467
|
+
onDraftValueChanged(event: unknown): void;
|
|
2468
|
+
/** Handle draft text changes — throttled typing indicator via conversation service. */
|
|
2469
|
+
onDraftChanged(): void;
|
|
2470
|
+
/** Cleanup on destroy */
|
|
2471
|
+
ngOnDestroy(): void;
|
|
2472
|
+
/** Handle send click */
|
|
2473
|
+
onSendClick(): Promise<void>;
|
|
2474
|
+
/** Handle emoji click */
|
|
2475
|
+
onEmojiClick(event?: AXClickEvent | MouseEvent): Promise<void>;
|
|
2476
|
+
/** Handle emoji popover closed */
|
|
2477
|
+
onEmojiPopoverClosed(): void;
|
|
2478
|
+
/**
|
|
2479
|
+
* Close the emoji/sticker popover on a press outside its panel.
|
|
2480
|
+
* Capture phase runs before message text or scroll surfaces stop the event.
|
|
2481
|
+
*/
|
|
2482
|
+
private closeEmojiPopoverFromOutsideEvent;
|
|
2483
|
+
/** Handle emoji/sticker selection from popup */
|
|
2484
|
+
onEmojiItemSelected(item: string | AXConversationStickerPayload): void;
|
|
2485
|
+
/** Send sticker message */
|
|
2486
|
+
private sendSticker;
|
|
2487
|
+
/** Get inputs for emoji popup component */
|
|
2488
|
+
getEmojiPopupInputs(): Record<string, unknown>;
|
|
2489
|
+
/** Handle attach menu hover */
|
|
2490
|
+
onAttachMenuMouseEnter(): void;
|
|
2491
|
+
onAttachMenuMouseLeave(): void;
|
|
2492
|
+
onAttachMenuPanelMouseEnter(): void;
|
|
2493
|
+
onAttachMenuPanelMouseLeave(): void;
|
|
2494
|
+
private scheduleAttachMenuClose;
|
|
2495
|
+
private clearAttachMenuCloseTimer;
|
|
2496
|
+
/** Desktop: open an all-files chooser. Mobile: toggle the attachment dropdown. */
|
|
2497
|
+
onAttachMenuClick(event: AXClickEvent): void;
|
|
2498
|
+
/** Open the OS file picker for any file, then route to the matching composer picker. */
|
|
2499
|
+
private openSmartAttachChooser;
|
|
2500
|
+
/** OS file paste (Ctrl+V) while the composer is focused. */
|
|
2501
|
+
onComposerPaste(event: ClipboardEvent): void;
|
|
2502
|
+
private composerPickerDeps;
|
|
2503
|
+
/** Handle attachment menu action selection */
|
|
2504
|
+
onAttachMenuAction(actionId: string): Promise<void>;
|
|
2505
|
+
/** Handle primary button click (send / cancel / stopping / voice / locked). */
|
|
2506
|
+
onPrimaryButtonClick(): Promise<void>;
|
|
2507
|
+
/** @deprecated Use onPrimaryButtonClick */
|
|
2508
|
+
onDefaultActionClick(): Promise<void>;
|
|
2509
|
+
getPrimaryButtonIcon(): string;
|
|
2510
|
+
getPrimaryButtonLabel(): string;
|
|
2511
|
+
isPrimaryButtonDisabled(): boolean;
|
|
2512
|
+
/** @deprecated Use getPrimaryButtonIcon */
|
|
2513
|
+
getDefaultActionIcon(): string;
|
|
2514
|
+
/** Handle voice click */
|
|
2515
|
+
onVoiceClick(): void;
|
|
2516
|
+
/** Remove a draft attachment from the composer banner. */
|
|
2517
|
+
removeDraftAttachment(id: string): void;
|
|
2518
|
+
addDraftAttachments(): void;
|
|
2519
|
+
dismissDraftAttachments(): void;
|
|
2520
|
+
draftAttachmentLabel(name: string): string;
|
|
2521
|
+
canAddDraftAttachments(): boolean;
|
|
2522
|
+
/** Cancel edit/reply mode without dropping draft attachments. */
|
|
2523
|
+
cancelEditReply(): void;
|
|
2524
|
+
/** Start editing a message */
|
|
2525
|
+
startEdit(message: any): void;
|
|
2526
|
+
/** Start replying to a message */
|
|
2527
|
+
startReply(message: AXConversationMessage): void;
|
|
2528
|
+
/** Focus the native textarea inside ax-text-area */
|
|
2529
|
+
private focusTextArea;
|
|
2530
|
+
/** Prefer the visible textarea when it differs from the original edit; else the draft signal. */
|
|
2531
|
+
private resolveComposerText;
|
|
2532
|
+
private readOriginalEditText;
|
|
2533
|
+
private readNativeComposerText;
|
|
2534
|
+
private readChangedText;
|
|
2535
|
+
private getClickTarget;
|
|
2536
|
+
/** Handle action click */
|
|
2537
|
+
onActionClick(actionId: string, event?: AXClickEvent | MouseEvent, initialFiles?: File[]): Promise<void>;
|
|
2538
|
+
/** Check if action is enabled */
|
|
2539
|
+
isActionEnabled(action: any): boolean;
|
|
2540
|
+
/** Get replying sender name */
|
|
2541
|
+
getReplyingSenderName(): string;
|
|
2542
|
+
getActionLabel(action: {
|
|
2543
|
+
label: string;
|
|
2544
|
+
}): string;
|
|
2545
|
+
getActionButtonClass(action: {
|
|
2546
|
+
className?: string;
|
|
2547
|
+
}): string;
|
|
2548
|
+
/** Get replying message text */
|
|
2549
|
+
getReplyingMessageText(): string;
|
|
2550
|
+
/** Preview object for replying banner (type, icon, value) */
|
|
2551
|
+
getReplyingPreview(): AXConversationMessagePreview | null;
|
|
2552
|
+
/** Preview object for editing banner (type, icon, value) */
|
|
2553
|
+
getEditingPreview(): AXConversationMessagePreview | null;
|
|
2554
|
+
getComposerPreviewLabel(preview: AXConversationMessagePreview): string;
|
|
2555
|
+
private getMessagePreview;
|
|
2556
|
+
/** Handle reply preview click - scroll to original message */
|
|
2557
|
+
onReplyPreviewClick(): void;
|
|
2558
|
+
/** Inputs for picker components opened in popup / action sheet */
|
|
2559
|
+
private buildPickerInputs;
|
|
2560
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationComposerComponent, never>;
|
|
2561
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationComposerComponent, "ax-conversation-composer", never, {}, { "messageSent": "messageSent"; "generationCancelled": "generationCancelled"; "emojiClick": "emojiClick"; "attachClick": "attachClick"; "voiceClick": "voiceClick"; }, never, never, true, never>;
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
/**
|
|
2565
|
+
* File drop target for the whole chat panel (header, messages, composer).
|
|
2566
|
+
* Shows a frosted overlay while files are dragged, then opens the composer picker.
|
|
2567
|
+
* Bind `[disableBrowse]="true"` so a click on the panel does not open a file dialog.
|
|
2568
|
+
*/
|
|
2569
|
+
declare class AXConversationChatDropDirective implements OnDestroy {
|
|
2570
|
+
private readonly hostRef;
|
|
2571
|
+
private readonly renderer;
|
|
2572
|
+
private readonly ngZone;
|
|
2573
|
+
private readonly zone;
|
|
2574
|
+
private readonly conversationService;
|
|
2575
|
+
private readonly pins;
|
|
2576
|
+
private readonly composerService;
|
|
2577
|
+
private readonly fileService;
|
|
2578
|
+
private readonly translation;
|
|
2579
|
+
private readonly toast;
|
|
2580
|
+
private readonly platform;
|
|
2581
|
+
private readonly actionSheetService;
|
|
2582
|
+
private readonly config;
|
|
2583
|
+
private readonly destroyRef;
|
|
2584
|
+
private overlay;
|
|
2585
|
+
constructor();
|
|
2586
|
+
ngOnDestroy(): void;
|
|
2587
|
+
private shouldAcceptDrag;
|
|
2588
|
+
private showOverlay;
|
|
2589
|
+
private hideOverlay;
|
|
2590
|
+
private openDroppedFiles;
|
|
2591
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationChatDropDirective, never>;
|
|
2592
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AXConversationChatDropDirective, "[axConversationChatDrop]", never, {}, {}, never, never, true, [{ directive: typeof i1.AXUploaderZoneDirective; inputs: { "disableBrowse": "disableBrowse"; }; outputs: {}; }]>;
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
declare class AXConversationContainerComponent {
|
|
2596
|
+
private readonly conversationService;
|
|
2597
|
+
private readonly composerService;
|
|
2598
|
+
private readonly fileService;
|
|
2599
|
+
private readonly translation;
|
|
2600
|
+
private readonly toast;
|
|
2601
|
+
private readonly platform;
|
|
2602
|
+
private readonly actionSheetService;
|
|
2603
|
+
private readonly hostRef;
|
|
2604
|
+
private readonly platformId;
|
|
2605
|
+
private readonly document;
|
|
2606
|
+
private readonly destroyRef;
|
|
2607
|
+
protected readonly config: Required<_acorex_components_conversation.AXConversationConfig>;
|
|
2608
|
+
constructor();
|
|
2609
|
+
private get registry();
|
|
2610
|
+
/** Custom CSS class */
|
|
2611
|
+
readonly customClass: _angular_core.InputSignal<string>;
|
|
2612
|
+
/** Loading state */
|
|
2613
|
+
readonly loading: _angular_core.Signal<boolean>;
|
|
2614
|
+
/** Error state */
|
|
2615
|
+
readonly error: _angular_core.Signal<Error>;
|
|
2616
|
+
/** Active conversation */
|
|
2617
|
+
readonly activeConversation: _angular_core.Signal<_acorex_components_conversation.AXConversation>;
|
|
2618
|
+
/** Container CSS classes */
|
|
2619
|
+
readonly containerClasses: _angular_core.Signal<string>;
|
|
2620
|
+
closeActiveConversation(): void;
|
|
2621
|
+
private openPastedFiles;
|
|
2622
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationContainerComponent, never>;
|
|
2623
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationContainerComponent, "ax-conversation-container", never, { "customClass": { "alias": "customClass"; "required": false; "isSignal": true; }; }, {}, never, ["ax-conversation-sidebar, [ax-conversation-sidebar]", "ax-conversation-info-bar, [ax-conversation-info-bar]", "ax-conversation-message-list, [ax-conversation-message-list]", "ax-conversation-composer, [ax-conversation-composer]", "ax-conversation-empty"], true, never>;
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2626
|
+
declare class AXConversationContainerDirective {
|
|
2627
|
+
private readonly conversationService;
|
|
2628
|
+
private readonly composerService;
|
|
2629
|
+
private readonly fileService;
|
|
2630
|
+
private readonly hostRef;
|
|
2631
|
+
private readonly platformId;
|
|
2632
|
+
private readonly document;
|
|
2633
|
+
private readonly destroyRef;
|
|
2634
|
+
private readonly translation;
|
|
2635
|
+
private readonly toast;
|
|
2636
|
+
private readonly platform;
|
|
2637
|
+
private readonly actionSheetService;
|
|
2638
|
+
private readonly config;
|
|
2639
|
+
constructor();
|
|
2640
|
+
private get registry();
|
|
2641
|
+
/** Active conversation */
|
|
2642
|
+
readonly activeConversation: _angular_core.Signal<_acorex_components_conversation.AXConversation>;
|
|
2643
|
+
/** Loading state */
|
|
2644
|
+
readonly loading: _angular_core.Signal<boolean>;
|
|
2645
|
+
/** Error state */
|
|
2646
|
+
readonly error: _angular_core.Signal<Error>;
|
|
2647
|
+
closeActiveConversation(): void;
|
|
2648
|
+
private openPastedFiles;
|
|
2649
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationContainerDirective, never>;
|
|
2650
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AXConversationContainerDirective, "[axConversationContainer]", never, {}, {}, never, never, true, never>;
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2653
|
+
interface AXConversationSelectionActionContext {
|
|
2654
|
+
conversation: AXConversation;
|
|
2655
|
+
currentUser: AXConversationParticipant;
|
|
2656
|
+
/** Chronological order, including complete album messages. */
|
|
2657
|
+
messages: readonly AXConversationMessage[];
|
|
2658
|
+
selection: AXConversationMessageSelectionService;
|
|
2659
|
+
}
|
|
2660
|
+
interface AXConversationSelectionAction {
|
|
2661
|
+
id: string;
|
|
2662
|
+
label: string;
|
|
2663
|
+
icon?: string;
|
|
2664
|
+
priority?: number;
|
|
2665
|
+
destructive?: boolean;
|
|
2666
|
+
visible?: (context: AXConversationSelectionActionContext) => boolean;
|
|
2667
|
+
enabled?: (context: AXConversationSelectionActionContext) => boolean;
|
|
2668
|
+
handler: (context: AXConversationSelectionActionContext) => void | Promise<void>;
|
|
2669
|
+
}
|
|
2670
|
+
/** Conversation-scoped selection shared by rows, context-menu plugins and the header. */
|
|
2671
|
+
declare class AXConversationMessageSelectionService {
|
|
2672
|
+
private readonly conversation;
|
|
2673
|
+
private readonly injector;
|
|
2674
|
+
private readonly pins;
|
|
2675
|
+
private readonly translation;
|
|
2676
|
+
private readonly state;
|
|
2677
|
+
private readonly registered;
|
|
2678
|
+
private readonly busy;
|
|
2679
|
+
readonly executing: _angular_core.Signal<boolean>;
|
|
2680
|
+
readonly error: _angular_core.WritableSignal<unknown>;
|
|
2681
|
+
readonly availableMessages: _angular_core.Signal<AXConversationMessage[]>;
|
|
2682
|
+
readonly selectedMessages: _angular_core.Signal<AXConversationMessage[]>;
|
|
2683
|
+
readonly selectedIds: _angular_core.Signal<ReadonlySet<string>>;
|
|
2684
|
+
readonly count: _angular_core.Signal<number>;
|
|
2685
|
+
readonly active: _angular_core.Signal<boolean>;
|
|
2686
|
+
readonly context: _angular_core.Signal<AXConversationSelectionActionContext>;
|
|
2687
|
+
readonly actions: _angular_core.Signal<AXConversationSelectionAction[]>;
|
|
2688
|
+
constructor();
|
|
2689
|
+
canSelect(message: AXConversationMessage): boolean;
|
|
2690
|
+
select(message: AXConversationMessage): void;
|
|
2691
|
+
toggle(message: AXConversationMessage): void;
|
|
2692
|
+
/** Rebuild from the initial snapshot so reversing a drag restores the previous selection. */
|
|
2693
|
+
selectRange(anchor: string, end: string, initial: ReadonlySet<string>, selecting: boolean): void;
|
|
2694
|
+
clear(): void;
|
|
2695
|
+
register(action: AXConversationSelectionAction): void;
|
|
2696
|
+
unregister(id: string): void;
|
|
2697
|
+
isEnabled(action: AXConversationSelectionAction): boolean;
|
|
2698
|
+
/** Same visible actions and enabled rules as the selection header. */
|
|
2699
|
+
getContextMenuItems(): (AXMenuItem & {
|
|
2700
|
+
data: {
|
|
2701
|
+
selectionActionId: string;
|
|
2702
|
+
};
|
|
2703
|
+
})[];
|
|
2704
|
+
execute(id: string): Promise<void>;
|
|
2705
|
+
private setIds;
|
|
2706
|
+
private inContext;
|
|
2707
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationMessageSelectionService, never>;
|
|
2708
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
interface AXConversationDropdownMenuItem {
|
|
2712
|
+
id: string;
|
|
2713
|
+
label: string;
|
|
2714
|
+
icon?: string;
|
|
2715
|
+
disabled?: boolean;
|
|
2716
|
+
divider?: boolean;
|
|
2717
|
+
destructive?: boolean;
|
|
2718
|
+
shortcut?: string;
|
|
2719
|
+
}
|
|
2720
|
+
declare class AXConversationInfoBarComponent {
|
|
2721
|
+
readonly selection: AXConversationMessageSelectionService;
|
|
2722
|
+
readonly pins: AXConversationMessagePinsService;
|
|
2723
|
+
private readonly conversationService;
|
|
2724
|
+
private readonly infoBar;
|
|
2725
|
+
private readonly platform;
|
|
2726
|
+
private readonly destroyRef;
|
|
2727
|
+
private readonly customUserAvatarComponent;
|
|
2728
|
+
private readonly layoutTick;
|
|
2729
|
+
constructor();
|
|
2730
|
+
protected get registry(): _acorex_components_conversation.AXConversationRegistryService;
|
|
2731
|
+
readonly hasCustomUserAvatar: _angular_core.Signal<boolean>;
|
|
2732
|
+
readonly activeConversation: _angular_core.Signal<AXConversation>;
|
|
2733
|
+
readonly activeComponent: _angular_core.Signal<_acorex_components_conversation.AXConversationInfoBarActiveComponent>;
|
|
2734
|
+
readonly activeBanner: _angular_core.Signal<_acorex_components_conversation.AXConversationInfoBarActiveBanner>;
|
|
2735
|
+
readonly bannerInputs: _angular_core.Signal<{}>;
|
|
2736
|
+
readonly membersPopoverTarget: _angular_core.WritableSignal<HTMLElement>;
|
|
2737
|
+
readonly actionLoading: _angular_core.WritableSignal<boolean>;
|
|
2738
|
+
readonly infoClick: _angular_core.OutputEmitterRef<void>;
|
|
2739
|
+
readonly searchClick: _angular_core.OutputEmitterRef<void>;
|
|
2740
|
+
readonly searchQuery: _angular_core.OutputEmitterRef<string>;
|
|
2741
|
+
readonly menuItemAction: _angular_core.OutputEmitterRef<string>;
|
|
2742
|
+
readonly inlineActions: _angular_core.Signal<AXConversationInfoBarAction[]>;
|
|
2743
|
+
readonly menuItems: _angular_core.Signal<AXConversationDropdownMenuItem[]>;
|
|
2744
|
+
getStatus(conversation: AXConversation): _acorex_components_conversation.AXConversationPresenceStatus;
|
|
2745
|
+
getSubtitle(conversation: AXConversation): string;
|
|
2746
|
+
isTyping(conversation: AXConversation): boolean;
|
|
2747
|
+
onInfoLeftClick(): void;
|
|
2748
|
+
onInlineActionClick(actionId: string): Promise<void>;
|
|
2749
|
+
private activateAction;
|
|
2750
|
+
getComponentInputs(): Record<string, unknown>;
|
|
2751
|
+
getInlineComponentInputs(): Record<string, unknown>;
|
|
2752
|
+
isActiveComponentFullWidth(): boolean;
|
|
2753
|
+
onCloseComponent(): void;
|
|
2754
|
+
onCloseBanner(): void;
|
|
2755
|
+
onMenuItemClick(item: AXConversationDropdownMenuItem): Promise<void>;
|
|
2756
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationInfoBarComponent, never>;
|
|
2757
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationInfoBarComponent, "ax-conversation-info-bar", never, {}, { "infoClick": "infoClick"; "searchClick": "searchClick"; "searchQuery": "searchQuery"; "menuItemAction": "menuItemAction"; }, never, ["ax-prefix"], true, never>;
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
type AXConversationApiName = 'userApi' | 'conversationApi' | 'messageApi' | 'realtimeApi';
|
|
2761
|
+
interface AXConversationApiLogEntry {
|
|
2762
|
+
/** Public method on AXConversationService that triggered the API call. */
|
|
2763
|
+
serviceMethod: string;
|
|
2764
|
+
/** Injected API instance name. */
|
|
2765
|
+
api: AXConversationApiName;
|
|
2766
|
+
/** Method invoked on the API instance. */
|
|
2767
|
+
apiMethod: string;
|
|
2768
|
+
/** Positional arguments passed to the API method. */
|
|
2769
|
+
context: unknown[];
|
|
2770
|
+
}
|
|
2771
|
+
declare class AXConversationApiLoggerService {
|
|
2772
|
+
private readonly config;
|
|
2773
|
+
log(entry: AXConversationApiLogEntry): void;
|
|
2774
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationApiLoggerService, never>;
|
|
2775
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
/**
|
|
2779
|
+
* Conversation creation data
|
|
2780
|
+
*/
|
|
2781
|
+
interface AXConversationCreateData {
|
|
2782
|
+
/** Conversation type */
|
|
2783
|
+
type: AXConversationType;
|
|
2784
|
+
/** Participant user IDs */
|
|
2785
|
+
participantIds: string[];
|
|
2786
|
+
/** User who creates the conversation */
|
|
2787
|
+
creatorId?: string;
|
|
2788
|
+
/** Conversation title (for groups/channels) */
|
|
2789
|
+
title?: string;
|
|
2790
|
+
/** Conversation description */
|
|
2791
|
+
description?: string;
|
|
2792
|
+
/** Avatar URL */
|
|
2793
|
+
avatar?: string;
|
|
2474
2794
|
/**
|
|
2475
|
-
*
|
|
2476
|
-
*
|
|
2477
|
-
* @param conversationId - Conversation ID
|
|
2478
|
-
* @returns Draft text or null
|
|
2479
|
-
* @throws {AXConversationApiError} If request fails
|
|
2795
|
+
* Font Awesome icon class(es) for this conversation when no image avatar is used.
|
|
2796
|
+
* Implementations should treat empty/whitespace `avatar` values as absent and use this icon fallback.
|
|
2480
2797
|
*/
|
|
2481
|
-
|
|
2798
|
+
icon?: string;
|
|
2799
|
+
/** Custom metadata */
|
|
2800
|
+
metadata?: Record<string, unknown>;
|
|
2482
2801
|
/**
|
|
2483
|
-
*
|
|
2484
|
-
*
|
|
2485
|
-
* @param conversationId - Conversation ID
|
|
2486
|
-
* @throws {AXConversationApiError} If clearing fails
|
|
2802
|
+
* When `true`, create a new private chat even if one already exists with the same participants.
|
|
2803
|
+
* Defaults to `false` for private conversations.
|
|
2487
2804
|
*/
|
|
2488
|
-
|
|
2805
|
+
forceCreate?: boolean;
|
|
2806
|
+
}
|
|
2807
|
+
/**
|
|
2808
|
+
* Conversation update data
|
|
2809
|
+
*/
|
|
2810
|
+
interface AXConversationUpdateData {
|
|
2811
|
+
/** Conversation title */
|
|
2812
|
+
title?: string;
|
|
2813
|
+
/** Conversation description */
|
|
2814
|
+
description?: string;
|
|
2815
|
+
/** Avatar URL */
|
|
2816
|
+
avatar?: string;
|
|
2489
2817
|
/**
|
|
2490
|
-
*
|
|
2491
|
-
*
|
|
2492
|
-
*
|
|
2493
|
-
* @param code - Error code
|
|
2494
|
-
* @param message - Error message
|
|
2495
|
-
* @param statusCode - HTTP status code
|
|
2496
|
-
* @param details - Additional details
|
|
2497
|
-
* @returns API error object
|
|
2818
|
+
* Font Awesome icon class(es) for this conversation when no image avatar is used.
|
|
2819
|
+
* Implementations should treat empty/whitespace `avatar` values as absent and use this icon fallback.
|
|
2498
2820
|
*/
|
|
2499
|
-
|
|
2821
|
+
icon?: string;
|
|
2822
|
+
/** Custom metadata */
|
|
2823
|
+
metadata?: Record<string, unknown>;
|
|
2500
2824
|
}
|
|
2501
|
-
|
|
2502
2825
|
/**
|
|
2503
|
-
*
|
|
2504
|
-
* Handle message CRUD operations, reactions, and interactions
|
|
2826
|
+
* Options for {@link AXConversationApi.deleteConversation}.
|
|
2505
2827
|
*/
|
|
2506
|
-
|
|
2828
|
+
interface AXConversationDeleteOptions {
|
|
2829
|
+
/**
|
|
2830
|
+
* Private: destroy the chat for every participant (Telegram "delete for both").
|
|
2831
|
+
* Bot: always delete for both sides.
|
|
2832
|
+
* Group/channel: only valid for the creator — destroys the room for everyone.
|
|
2833
|
+
* Defaults to `false` (hide / clear history for the current user only).
|
|
2834
|
+
*/
|
|
2835
|
+
forEveryone?: boolean;
|
|
2836
|
+
}
|
|
2507
2837
|
/**
|
|
2508
|
-
*
|
|
2838
|
+
* Conversation filter options
|
|
2509
2839
|
*/
|
|
2510
|
-
interface
|
|
2840
|
+
interface AXConversationFilters {
|
|
2841
|
+
/** Filter by type */
|
|
2842
|
+
type?: AXConversationType;
|
|
2843
|
+
/** Filter by unread */
|
|
2844
|
+
unread?: boolean;
|
|
2845
|
+
/** Filter by archived */
|
|
2846
|
+
archived?: boolean;
|
|
2847
|
+
/** Filter by pinned */
|
|
2848
|
+
pinned?: boolean;
|
|
2511
2849
|
/** Search query */
|
|
2512
|
-
|
|
2513
|
-
/** Filter by
|
|
2514
|
-
|
|
2515
|
-
/**
|
|
2516
|
-
|
|
2517
|
-
/** Date range start */
|
|
2518
|
-
dateFrom?: Date;
|
|
2519
|
-
/** Date range end */
|
|
2520
|
-
dateTo?: Date;
|
|
2521
|
-
/** Include only messages with media */
|
|
2522
|
-
mediaOnly?: boolean;
|
|
2850
|
+
searchQuery?: string;
|
|
2851
|
+
/** Filter by tags */
|
|
2852
|
+
tags?: string[];
|
|
2853
|
+
/** Custom filters */
|
|
2854
|
+
custom?: Record<string, unknown>;
|
|
2523
2855
|
}
|
|
2524
2856
|
/**
|
|
2525
|
-
*
|
|
2857
|
+
* @deprecated Use {@link AXConversationRoomPreferences} on the user API instead.
|
|
2526
2858
|
*/
|
|
2527
|
-
|
|
2528
|
-
/** Message ID to forward */
|
|
2529
|
-
messageId: string;
|
|
2530
|
-
/** Target conversation IDs */
|
|
2531
|
-
conversationIds: string[];
|
|
2532
|
-
/** Optional caption */
|
|
2533
|
-
caption?: string;
|
|
2534
|
-
}
|
|
2859
|
+
type AXConversationSettingsUpdate = AXConversationRoomPreferences;
|
|
2535
2860
|
/**
|
|
2536
|
-
*
|
|
2861
|
+
* Participant update data
|
|
2537
2862
|
*/
|
|
2538
|
-
interface
|
|
2863
|
+
interface AXConversationParticipantUpdate {
|
|
2539
2864
|
/** User ID */
|
|
2540
2865
|
userId: string;
|
|
2541
|
-
/**
|
|
2542
|
-
|
|
2543
|
-
/** Read timestamp */
|
|
2544
|
-
readAt: Date;
|
|
2545
|
-
}
|
|
2546
|
-
/**
|
|
2547
|
-
* Pinned message information
|
|
2548
|
-
*/
|
|
2549
|
-
interface AXConversationPinnedMessage {
|
|
2550
|
-
/** Message ID */
|
|
2551
|
-
messageId: string;
|
|
2552
|
-
/** Pinned by user ID */
|
|
2553
|
-
pinnedBy: string;
|
|
2554
|
-
/** Pinned timestamp */
|
|
2555
|
-
pinnedAt: Date;
|
|
2866
|
+
/** New role */
|
|
2867
|
+
role?: AXConversationParticipantRole;
|
|
2556
2868
|
}
|
|
2557
2869
|
/**
|
|
2558
|
-
* Abstract
|
|
2870
|
+
* Abstract Conversation Management API
|
|
2559
2871
|
*
|
|
2560
|
-
* Implement this abstract class to handle
|
|
2872
|
+
* Implement this abstract class to handle conversation operations.
|
|
2561
2873
|
*
|
|
2562
2874
|
* @example
|
|
2563
2875
|
* ```typescript
|
|
2564
2876
|
* @Injectable()
|
|
2565
|
-
* export class
|
|
2877
|
+
* export class MyConversationApi extends AXConversationManagementApi {
|
|
2566
2878
|
* constructor(private http: HttpClient) {
|
|
2567
2879
|
* super();
|
|
2568
2880
|
* }
|
|
2569
2881
|
*
|
|
2570
|
-
* async
|
|
2571
|
-
* const response = await this.http.post('/api/
|
|
2882
|
+
* async createConversation(data: AXConversationCreateData): Promise<AXConversation> {
|
|
2883
|
+
* const response = await this.http.post('/api/conversations', data).toPromise();
|
|
2572
2884
|
* return response;
|
|
2573
2885
|
* }
|
|
2574
2886
|
*
|
|
@@ -2576,254 +2888,209 @@ interface AXConversationPinnedMessage {
|
|
|
2576
2888
|
* }
|
|
2577
2889
|
* ```
|
|
2578
2890
|
*/
|
|
2579
|
-
declare abstract class
|
|
2891
|
+
declare abstract class AXConversationApi {
|
|
2580
2892
|
/**
|
|
2581
|
-
*
|
|
2893
|
+
* Create a new conversation
|
|
2582
2894
|
*
|
|
2583
|
-
* @param
|
|
2584
|
-
* @returns
|
|
2585
|
-
* @throws {AXConversationApiError} If
|
|
2895
|
+
* @param data - Conversation creation data
|
|
2896
|
+
* @returns Created conversation
|
|
2897
|
+
* @throws {AXConversationApiError} If creation fails
|
|
2586
2898
|
*/
|
|
2587
|
-
abstract
|
|
2899
|
+
abstract createConversation(data: AXConversationCreateData): Promise<AXConversation>;
|
|
2588
2900
|
/**
|
|
2589
|
-
* Get
|
|
2901
|
+
* Get conversation by ID
|
|
2590
2902
|
*
|
|
2591
|
-
* @param
|
|
2592
|
-
* @returns
|
|
2593
|
-
* @throws {AXConversationApiError} If
|
|
2903
|
+
* @param conversationId - Conversation ID
|
|
2904
|
+
* @returns Conversation details
|
|
2905
|
+
* @throws {AXConversationApiError} If conversation not found
|
|
2594
2906
|
*/
|
|
2595
|
-
abstract
|
|
2907
|
+
abstract getConversation(conversationId: string): Promise<AXConversation>;
|
|
2596
2908
|
/**
|
|
2597
|
-
* Get
|
|
2909
|
+
* Get conversations list with pagination
|
|
2598
2910
|
*
|
|
2599
|
-
* @param conversationId - Conversation ID
|
|
2600
2911
|
* @param pagination - Pagination parameters
|
|
2601
|
-
* @
|
|
2912
|
+
* @param filters - Optional filters
|
|
2913
|
+
* @returns Paginated conversation list
|
|
2602
2914
|
* @throws {AXConversationApiError} If request fails
|
|
2603
2915
|
*/
|
|
2604
|
-
abstract
|
|
2605
|
-
/**
|
|
2606
|
-
* Edit an existing message
|
|
2607
|
-
*
|
|
2608
|
-
* @param messageId - Message ID to edit
|
|
2609
|
-
* @param payload - New message payload
|
|
2610
|
-
* @returns Updated message
|
|
2611
|
-
* @throws {AXConversationApiError} If edit fails or message not found
|
|
2612
|
-
*/
|
|
2613
|
-
abstract editMessage(messageId: string, payload: AXConversationMessagePayload): Promise<AXConversationMessage>;
|
|
2916
|
+
abstract getConversations(pagination: AXConversationPagination, filters?: AXConversationFilters): Promise<AXConversationPaginatedResult<AXConversation>>;
|
|
2614
2917
|
/**
|
|
2615
|
-
*
|
|
2918
|
+
* Update conversation details
|
|
2616
2919
|
*
|
|
2617
|
-
* @param
|
|
2618
|
-
* @param
|
|
2619
|
-
* @
|
|
2920
|
+
* @param conversationId - Conversation ID
|
|
2921
|
+
* @param updates - Update data
|
|
2922
|
+
* @returns Updated conversation
|
|
2923
|
+
* @throws {AXConversationApiError} If update fails
|
|
2620
2924
|
*/
|
|
2621
|
-
abstract
|
|
2925
|
+
abstract updateConversation(conversationId: string, updates: AXConversationUpdateData): Promise<AXConversation>;
|
|
2622
2926
|
/**
|
|
2623
|
-
* Delete
|
|
2927
|
+
* Delete or hide a conversation for the current user.
|
|
2624
2928
|
*
|
|
2625
|
-
* @param
|
|
2626
|
-
* @param
|
|
2929
|
+
* @param conversationId - Conversation ID
|
|
2930
|
+
* @param options - `forEveryone` destroys the room; omit/false hides it for the current user only
|
|
2931
|
+
* (private chats keep the peer's history). Group/channel leave should use {@link leaveConversation}.
|
|
2627
2932
|
* @throws {AXConversationApiError} If deletion fails
|
|
2628
2933
|
*/
|
|
2629
|
-
abstract
|
|
2934
|
+
abstract deleteConversation(conversationId: string, options?: AXConversationDeleteOptions): Promise<boolean>;
|
|
2630
2935
|
/**
|
|
2631
|
-
*
|
|
2936
|
+
* Archive conversation
|
|
2632
2937
|
*
|
|
2633
2938
|
* @param conversationId - Conversation ID
|
|
2634
|
-
* @
|
|
2635
|
-
* @param pagination - Pagination parameters
|
|
2636
|
-
* @returns Matching messages
|
|
2637
|
-
* @throws {AXConversationApiError} If search fails
|
|
2638
|
-
*/
|
|
2639
|
-
abstract searchMessages(conversationId: string, filters: AXConversationMessageSearchFilters, pagination?: AXConversationPagination): Promise<AXConversationPaginatedResult<AXConversationMessage>>;
|
|
2640
|
-
/**
|
|
2641
|
-
* Search messages across all conversations
|
|
2642
|
-
*
|
|
2643
|
-
* @param filters - Search filters
|
|
2644
|
-
* @param pagination - Pagination parameters
|
|
2645
|
-
* @returns Matching messages
|
|
2646
|
-
* @throws {AXConversationApiError} If search fails
|
|
2647
|
-
*/
|
|
2648
|
-
abstract searchAllMessages(filters: AXConversationMessageSearchFilters, pagination?: AXConversationPagination): Promise<AXConversationPaginatedResult<AXConversationMessage>>;
|
|
2649
|
-
/**
|
|
2650
|
-
* Add a reaction to a message
|
|
2651
|
-
*
|
|
2652
|
-
* @param messageId - Message ID
|
|
2653
|
-
* @param emoji - Emoji reaction
|
|
2654
|
-
* @throws {AXConversationApiError} If reaction fails
|
|
2939
|
+
* @throws {AXConversationApiError} If archiving fails
|
|
2655
2940
|
*/
|
|
2656
|
-
abstract
|
|
2941
|
+
abstract archiveConversation(conversationId: string): Promise<void>;
|
|
2657
2942
|
/**
|
|
2658
|
-
*
|
|
2943
|
+
* Unarchive conversation
|
|
2659
2944
|
*
|
|
2660
|
-
* @param
|
|
2661
|
-
* @
|
|
2662
|
-
* @throws {AXConversationApiError} If removal fails
|
|
2945
|
+
* @param conversationId - Conversation ID
|
|
2946
|
+
* @throws {AXConversationApiError} If unarchiving fails
|
|
2663
2947
|
*/
|
|
2664
|
-
abstract
|
|
2948
|
+
abstract unarchiveConversation(conversationId: string): Promise<void>;
|
|
2665
2949
|
/**
|
|
2666
|
-
*
|
|
2950
|
+
* Pin conversation
|
|
2667
2951
|
*
|
|
2668
|
-
* @
|
|
2669
|
-
* @throws {AXConversationApiError} If
|
|
2952
|
+
* @param conversationId - Conversation ID
|
|
2953
|
+
* @throws {AXConversationApiError} If pinning fails
|
|
2670
2954
|
*/
|
|
2671
|
-
abstract
|
|
2955
|
+
abstract pinConversation(conversationId: string): Promise<void>;
|
|
2672
2956
|
/**
|
|
2673
|
-
*
|
|
2957
|
+
* Unpin conversation
|
|
2674
2958
|
*
|
|
2675
2959
|
* @param conversationId - Conversation ID
|
|
2676
|
-
* @
|
|
2677
|
-
* @throws {AXConversationApiError} If marking fails
|
|
2960
|
+
* @throws {AXConversationApiError} If unpinning fails
|
|
2678
2961
|
*/
|
|
2679
|
-
abstract
|
|
2962
|
+
abstract unpinConversation(conversationId: string): Promise<void>;
|
|
2680
2963
|
/**
|
|
2681
|
-
* Mark conversation as
|
|
2964
|
+
* Mark conversation as read
|
|
2682
2965
|
*
|
|
2683
2966
|
* @param conversationId - Conversation ID
|
|
2684
2967
|
* @throws {AXConversationApiError} If marking fails
|
|
2685
2968
|
*/
|
|
2686
|
-
abstract
|
|
2969
|
+
abstract markConversationAsRead(conversationId: string): Promise<void>;
|
|
2687
2970
|
/**
|
|
2688
|
-
*
|
|
2971
|
+
* Search conversations
|
|
2689
2972
|
*
|
|
2690
|
-
* @param
|
|
2691
|
-
* @returns
|
|
2692
|
-
* @throws {AXConversationApiError} If
|
|
2973
|
+
* @param query - Search query
|
|
2974
|
+
* @returns Matching conversations
|
|
2975
|
+
* @throws {AXConversationApiError} If search fails
|
|
2693
2976
|
*/
|
|
2694
|
-
abstract
|
|
2977
|
+
abstract searchConversations(query: string): Promise<AXConversation[]>;
|
|
2695
2978
|
/**
|
|
2696
|
-
*
|
|
2979
|
+
* Filter conversations
|
|
2697
2980
|
*
|
|
2698
|
-
* @param
|
|
2699
|
-
* @
|
|
2700
|
-
* @
|
|
2981
|
+
* @param filters - Filter options
|
|
2982
|
+
* @param pagination - Pagination parameters
|
|
2983
|
+
* @returns Filtered conversations
|
|
2984
|
+
* @throws {AXConversationApiError} If filtering fails
|
|
2701
2985
|
*/
|
|
2702
|
-
abstract
|
|
2986
|
+
abstract filterConversations(filters: AXConversationFilters, pagination?: AXConversationPagination): Promise<AXConversationPaginatedResult<AXConversation>>;
|
|
2703
2987
|
/**
|
|
2704
|
-
*
|
|
2988
|
+
* Get conversation participants
|
|
2705
2989
|
*
|
|
2706
2990
|
* @param conversationId - Conversation ID
|
|
2707
|
-
* @
|
|
2708
|
-
* @throws {AXConversationApiError} If
|
|
2991
|
+
* @returns List of participants
|
|
2992
|
+
* @throws {AXConversationApiError} If request fails
|
|
2709
2993
|
*/
|
|
2710
|
-
abstract
|
|
2994
|
+
abstract getParticipants(conversationId: string): Promise<AXConversationParticipant[]>;
|
|
2711
2995
|
/**
|
|
2712
|
-
*
|
|
2996
|
+
* Add participants to conversation
|
|
2713
2997
|
*
|
|
2714
2998
|
* @param conversationId - Conversation ID
|
|
2715
|
-
* @param
|
|
2716
|
-
* @
|
|
2999
|
+
* @param userIds - User IDs to add
|
|
3000
|
+
* @returns Updated conversation
|
|
3001
|
+
* @throws {AXConversationApiError} If adding fails
|
|
2717
3002
|
*/
|
|
2718
|
-
abstract
|
|
3003
|
+
abstract addParticipants(conversationId: string, userIds: string[]): Promise<AXConversation>;
|
|
2719
3004
|
/**
|
|
2720
|
-
*
|
|
3005
|
+
* Remove participant from conversation
|
|
2721
3006
|
*
|
|
2722
3007
|
* @param conversationId - Conversation ID
|
|
2723
|
-
* @
|
|
2724
|
-
* @
|
|
2725
|
-
|
|
2726
|
-
abstract getPinnedMessages(conversationId: string): Promise<AXConversationPinnedMessage[]>;
|
|
2727
|
-
/**
|
|
2728
|
-
* Get replies to a message
|
|
2729
|
-
*
|
|
2730
|
-
* @param messageId - Original message ID
|
|
2731
|
-
* @param pagination - Pagination parameters
|
|
2732
|
-
* @returns Paginated replies
|
|
2733
|
-
* @throws {AXConversationApiError} If request fails
|
|
2734
|
-
*/
|
|
2735
|
-
abstract getMessageReplies(messageId: string, pagination?: AXConversationPagination): Promise<AXConversationPaginatedResult<AXConversationMessage>>;
|
|
2736
|
-
/**
|
|
2737
|
-
* Get reply count for a message
|
|
2738
|
-
*
|
|
2739
|
-
* @param messageId - Original message ID
|
|
2740
|
-
* @returns Number of replies
|
|
2741
|
-
* @throws {AXConversationApiError} If fetching fails
|
|
3008
|
+
* @param userId - User ID to remove
|
|
3009
|
+
* @returns Updated conversation
|
|
3010
|
+
* @throws {AXConversationApiError} If removal fails
|
|
2742
3011
|
*/
|
|
2743
|
-
abstract
|
|
3012
|
+
abstract removeParticipant(conversationId: string, userId: string): Promise<AXConversation>;
|
|
2744
3013
|
/**
|
|
2745
|
-
*
|
|
3014
|
+
* Leave conversation (remove self)
|
|
2746
3015
|
*
|
|
2747
|
-
* @param
|
|
2748
|
-
* @
|
|
2749
|
-
* @throws {AXConversationApiError} If fetching fails
|
|
3016
|
+
* @param conversationId - Conversation ID
|
|
3017
|
+
* @throws {AXConversationApiError} If leaving fails
|
|
2750
3018
|
*/
|
|
2751
|
-
abstract
|
|
3019
|
+
abstract leaveConversation(conversationId: string): Promise<void>;
|
|
2752
3020
|
/**
|
|
2753
|
-
*
|
|
3021
|
+
* Update participant role
|
|
2754
3022
|
*
|
|
2755
3023
|
* @param conversationId - Conversation ID
|
|
2756
|
-
* @
|
|
3024
|
+
* @param update - Participant update data
|
|
3025
|
+
* @returns Updated conversation
|
|
3026
|
+
* @throws {AXConversationApiError} If update fails
|
|
2757
3027
|
*/
|
|
2758
|
-
abstract
|
|
3028
|
+
abstract updateParticipant(conversationId: string, update: AXConversationParticipantUpdate): Promise<AXConversation>;
|
|
2759
3029
|
/**
|
|
2760
|
-
*
|
|
3030
|
+
* Upload conversation avatar
|
|
2761
3031
|
*
|
|
2762
3032
|
* @param conversationId - Conversation ID
|
|
2763
|
-
* @
|
|
3033
|
+
* @param file - Avatar image file
|
|
3034
|
+
* @returns Avatar URL
|
|
3035
|
+
* @throws {AXConversationApiError} If upload fails
|
|
2764
3036
|
*/
|
|
2765
|
-
abstract
|
|
3037
|
+
abstract uploadConversationAvatar(conversationId: string, file: File): Promise<string>;
|
|
2766
3038
|
/**
|
|
2767
|
-
*
|
|
3039
|
+
* Get conversation media gallery
|
|
2768
3040
|
*
|
|
2769
|
-
* @param
|
|
2770
|
-
* @param
|
|
2771
|
-
* @
|
|
3041
|
+
* @param conversationId - Conversation ID
|
|
3042
|
+
* @param pagination - Pagination parameters
|
|
3043
|
+
* @returns Paginated media items
|
|
3044
|
+
* @throws {AXConversationApiError} If request fails
|
|
2772
3045
|
*/
|
|
2773
|
-
abstract
|
|
3046
|
+
abstract getConversationMedia(conversationId: string, pagination?: AXConversationPagination): Promise<AXConversationPaginatedResult<unknown>>;
|
|
2774
3047
|
/**
|
|
2775
|
-
*
|
|
3048
|
+
* Add tags to conversation
|
|
2776
3049
|
*
|
|
2777
|
-
* @param
|
|
2778
|
-
* @
|
|
2779
|
-
* @throws {AXConversationApiError} If
|
|
3050
|
+
* @param conversationId - Conversation ID
|
|
3051
|
+
* @param tags - Tags to add
|
|
3052
|
+
* @throws {AXConversationApiError} If adding fails
|
|
2780
3053
|
*/
|
|
2781
|
-
abstract
|
|
3054
|
+
abstract addConversationTags(conversationId: string, tags: string[]): Promise<void>;
|
|
2782
3055
|
/**
|
|
2783
|
-
*
|
|
3056
|
+
* Remove tags from conversation
|
|
2784
3057
|
*
|
|
2785
|
-
* @param
|
|
2786
|
-
* @param
|
|
2787
|
-
* @throws {AXConversationApiError} If
|
|
3058
|
+
* @param conversationId - Conversation ID
|
|
3059
|
+
* @param tags - Tags to remove
|
|
3060
|
+
* @throws {AXConversationApiError} If removal fails
|
|
2788
3061
|
*/
|
|
2789
|
-
abstract
|
|
3062
|
+
abstract removeConversationTags(conversationId: string, tags: string[]): Promise<void>;
|
|
2790
3063
|
/**
|
|
2791
|
-
* Get
|
|
3064
|
+
* Get conversation tags
|
|
2792
3065
|
*
|
|
2793
|
-
* @param
|
|
2794
|
-
* @returns
|
|
3066
|
+
* @param conversationId - Conversation ID
|
|
3067
|
+
* @returns Array of tags
|
|
2795
3068
|
* @throws {AXConversationApiError} If request fails
|
|
2796
3069
|
*/
|
|
2797
|
-
abstract
|
|
2798
|
-
delivered: number;
|
|
2799
|
-
read: number;
|
|
2800
|
-
total: number;
|
|
2801
|
-
}>;
|
|
3070
|
+
abstract getConversationTags(conversationId: string): Promise<string[]>;
|
|
2802
3071
|
/**
|
|
2803
|
-
*
|
|
3072
|
+
* Save draft message for conversation
|
|
2804
3073
|
*
|
|
2805
|
-
* @param
|
|
2806
|
-
* @
|
|
3074
|
+
* @param conversationId - Conversation ID
|
|
3075
|
+
* @param draft - Draft text
|
|
3076
|
+
* @throws {AXConversationApiError} If saving fails
|
|
2807
3077
|
*/
|
|
2808
|
-
abstract
|
|
3078
|
+
abstract saveDraft(conversationId: string, draft: string): Promise<void>;
|
|
2809
3079
|
/**
|
|
2810
|
-
*
|
|
3080
|
+
* Get draft message for conversation
|
|
2811
3081
|
*
|
|
2812
3082
|
* @param conversationId - Conversation ID
|
|
2813
|
-
* @
|
|
2814
|
-
* @
|
|
2815
|
-
* @throws {AXConversationApiError} If deletion fails
|
|
3083
|
+
* @returns Draft text or null
|
|
3084
|
+
* @throws {AXConversationApiError} If request fails
|
|
2816
3085
|
*/
|
|
2817
|
-
abstract
|
|
3086
|
+
abstract getDraft(conversationId: string): Promise<string | null>;
|
|
2818
3087
|
/**
|
|
2819
|
-
*
|
|
3088
|
+
* Clear draft message for conversation
|
|
2820
3089
|
*
|
|
2821
3090
|
* @param conversationId - Conversation ID
|
|
2822
|
-
* @
|
|
2823
|
-
* @returns Export data or download URL
|
|
2824
|
-
* @throws {AXConversationApiError} If export fails
|
|
3091
|
+
* @throws {AXConversationApiError} If clearing fails
|
|
2825
3092
|
*/
|
|
2826
|
-
abstract
|
|
3093
|
+
abstract clearDraft(conversationId: string): Promise<void>;
|
|
2827
3094
|
/**
|
|
2828
3095
|
* Create an API error
|
|
2829
3096
|
* Helper method for consistent error creation
|
|
@@ -3275,6 +3542,9 @@ declare class AXConversationService {
|
|
|
3275
3542
|
private readonly _error;
|
|
3276
3543
|
private readonly _conversationsPagination;
|
|
3277
3544
|
private readonly _messagesPaginationByConversation;
|
|
3545
|
+
private messageWindowGeneration;
|
|
3546
|
+
private readonly historyWindowId;
|
|
3547
|
+
readonly viewingMessageHistory: _angular_core.Signal<boolean>;
|
|
3278
3548
|
private readonly _messageReceived$;
|
|
3279
3549
|
private readonly _messageUpdated$;
|
|
3280
3550
|
private readonly _messageDeleted$;
|
|
@@ -3378,6 +3648,10 @@ declare class AXConversationService {
|
|
|
3378
3648
|
* Fetches messages from server with request cancellation support
|
|
3379
3649
|
*/
|
|
3380
3650
|
loadMessages(conversationId: string, page?: number): Promise<AXConversationLoadMessagesResult>;
|
|
3651
|
+
/** Update cached flags without inserting unloaded pin messages into the visible feed. */
|
|
3652
|
+
syncPinnedMessageIds(conversationId: string, ids: readonly string[]): void;
|
|
3653
|
+
/** Resolve a historical message using the existing paging API and keep a bounded context window. */
|
|
3654
|
+
loadMessageWindow(conversationId: string, messageId: string): Promise<void>;
|
|
3381
3655
|
/** Reset sidebar conversation pagination (e.g. after filters change). */
|
|
3382
3656
|
resetConversationsPagination(): void;
|
|
3383
3657
|
/**
|
|
@@ -3407,10 +3681,20 @@ declare class AXConversationService {
|
|
|
3407
3681
|
*/
|
|
3408
3682
|
editMessage(messageId: string, payload: AXConversationMessagePayload): Promise<void>;
|
|
3409
3683
|
/**
|
|
3410
|
-
* Delete a message
|
|
3411
|
-
*
|
|
3684
|
+
* Delete a message.
|
|
3685
|
+
* Private chats ask whether the message is removed for the other person too.
|
|
3686
|
+
* Other chats use a confirmation dialog, then delete locally and sync with the server.
|
|
3412
3687
|
*/
|
|
3413
3688
|
deleteMessage(messageId: string, forEveryone?: boolean): Promise<void>;
|
|
3689
|
+
/** Confirm once; successful messages stay deleted and failed messages are rolled back. */
|
|
3690
|
+
deleteMessages(messageIds: readonly string[], forEveryone?: boolean, knownMessages?: readonly AXConversationMessage[]): Promise<void>;
|
|
3691
|
+
/**
|
|
3692
|
+
* @returns `forEveryone` when the user confirms, or `null` when they cancel.
|
|
3693
|
+
* Private chats use the same one-sided / two-sided popup as deleting the chat.
|
|
3694
|
+
*/
|
|
3695
|
+
private confirmMessageDeletion;
|
|
3696
|
+
private findConversationForMessages;
|
|
3697
|
+
private deleteConfirmedMessage;
|
|
3414
3698
|
/**
|
|
3415
3699
|
* React to a message
|
|
3416
3700
|
* Adds reaction optimistically, server update comes via subscription
|
|
@@ -3679,6 +3963,8 @@ declare class AXConversationService {
|
|
|
3679
3963
|
* @param caption - Optional caption
|
|
3680
3964
|
*/
|
|
3681
3965
|
forwardMessage(messageId: string, conversationIds: string[], caption?: string): Promise<void>;
|
|
3966
|
+
/** Send complete messages in source order, awaiting each API call before starting the next. */
|
|
3967
|
+
forwardMessages(messages: readonly AXConversationMessage[], conversationIds: readonly string[]): Promise<void>;
|
|
3682
3968
|
/**
|
|
3683
3969
|
* Runs a forward operation while locking all forward actions until it completes.
|
|
3684
3970
|
*/
|
|
@@ -3881,7 +4167,11 @@ declare class AXConversationForwardMessageDialogComponent {
|
|
|
3881
4167
|
*/
|
|
3882
4168
|
conversationService: AXConversationService;
|
|
3883
4169
|
/** Assigned from `open(..., { data: { message } })`. */
|
|
3884
|
-
message
|
|
4170
|
+
message?: AXConversationMessage;
|
|
4171
|
+
/** Complete selected messages in source order; single-message callers may still pass message. */
|
|
4172
|
+
messages: readonly AXConversationMessage[];
|
|
4173
|
+
private readonly forwarding;
|
|
4174
|
+
private get sourceMessages();
|
|
3885
4175
|
readonly onClosed: EventEmitter<AXComponentCloseEvent>;
|
|
3886
4176
|
readonly availableUsers: _angular_core.WritableSignal<AXConversationParticipant[]>;
|
|
3887
4177
|
readonly forwardSearchQuery: _angular_core.WritableSignal<string>;
|
|
@@ -3941,30 +4231,6 @@ declare function shouldUseUserAvatarForConversation(conversation: AXConversation
|
|
|
3941
4231
|
declare function resolveUserAvatarDisplay(userId: string, conversation: AXConversation | undefined, message?: AXConversationMessage): AXConversationAvatarDisplay;
|
|
3942
4232
|
declare function resolveConversationAvatarDisplay(conversation: AXConversation, currentUserId?: string): AXConversationAvatarDisplay;
|
|
3943
4233
|
|
|
3944
|
-
interface AXConversationMessageListBackgroundPreset {
|
|
3945
|
-
id: string;
|
|
3946
|
-
value: AXConversationMessageListThemeBackground;
|
|
3947
|
-
}
|
|
3948
|
-
/** Library default when no per-conversation or global background is set (pattern-5 tile + gradient wash). */
|
|
3949
|
-
declare const AX_CONVERSATION_DEFAULT_MESSAGE_LIST_THEME_BACKGROUND: AXConversationMessageListThemeBackground;
|
|
3950
|
-
/** Predefined chat-area backgrounds for the info panel (light + dark variants). */
|
|
3951
|
-
declare const AX_CONVERSATION_MESSAGE_LIST_BACKGROUND_PRESETS: AXConversationMessageListBackgroundPreset[];
|
|
3952
|
-
declare const AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND_PRESET_ID = "solid-default";
|
|
3953
|
-
|
|
3954
|
-
/** Subtle Telegram-style chat-area wash when `messageListBackground` is not set (theme-aware). */
|
|
3955
|
-
declare const AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND: string;
|
|
3956
|
-
declare function isMessageListThemeBackground(value: unknown): value is AXConversationMessageListThemeBackground;
|
|
3957
|
-
/** Pick the raw CSS string for the active theme; `undefined` when unset. */
|
|
3958
|
-
declare function resolveMessageListBackgroundRaw(value: AXConversationMessageListBackground | undefined, isDark: boolean): string | undefined;
|
|
3959
|
-
/** Turn bare `https://...` or `/path` into valid CSS `background` for images. */
|
|
3960
|
-
declare function normalizeMessageListBackgroundValue(raw: string): string;
|
|
3961
|
-
/** Whether the built-in pattern-5 wallpaper (gradient + tiled SVG) should be used. */
|
|
3962
|
-
declare function usesDefaultMessageListWallpaper(value: AXConversationMessageListBackground | undefined): boolean;
|
|
3963
|
-
/** Resolve config/metadata background for the active theme, with library default fallback. */
|
|
3964
|
-
declare function resolveMessageListBackgroundStyle(value: AXConversationMessageListBackground | undefined, isDark: boolean): string;
|
|
3965
|
-
/** Whether two stored backgrounds represent the same preset (supports legacy string values). */
|
|
3966
|
-
declare function isSameMessageListBackground(a: AXConversationMessageListBackground | undefined, b: AXConversationMessageListThemeBackground, isDark: boolean): boolean;
|
|
3967
|
-
|
|
3968
4234
|
interface AXConversationForwardUserSortEntry {
|
|
3969
4235
|
user: AXConversationParticipant;
|
|
3970
4236
|
conversation?: AXConversation;
|
|
@@ -4008,6 +4274,52 @@ declare function isConversationReactionsEnabled(conversation?: AXConversation |
|
|
|
4008
4274
|
declare function resolveComposerAttachmentPresentation(conversation?: AXConversation | null): AXConversationComposerAttachmentPresentation;
|
|
4009
4275
|
declare function isComposerAttachmentBannerEnabled(conversation?: AXConversation | null): boolean;
|
|
4010
4276
|
|
|
4277
|
+
interface AXConversationInfoProfileField {
|
|
4278
|
+
id: string;
|
|
4279
|
+
labelKey: string;
|
|
4280
|
+
value: string;
|
|
4281
|
+
icon: string;
|
|
4282
|
+
}
|
|
4283
|
+
type AXConversationMediaCategoryId = 'image' | 'video' | 'file' | 'audio' | 'voice' | 'sticker' | 'location' | 'link';
|
|
4284
|
+
interface AXConversationMediaCategory {
|
|
4285
|
+
id: AXConversationMediaCategoryId;
|
|
4286
|
+
labelKey: string;
|
|
4287
|
+
countLabelKey: string;
|
|
4288
|
+
icon: string;
|
|
4289
|
+
count: number;
|
|
4290
|
+
}
|
|
4291
|
+
declare function messageContainsLink(message: AXConversationMessage): boolean;
|
|
4292
|
+
declare function getPrivatePeerParticipant(conversation: AXConversation, currentUserId?: string): AXConversationParticipant | undefined;
|
|
4293
|
+
declare function getConversationProfileFields(conversation: AXConversation, currentUserId?: string): AXConversationInfoProfileField[];
|
|
4294
|
+
declare function getConversationMediaCategories(messages: AXConversationMessage[]): AXConversationMediaCategory[];
|
|
4295
|
+
declare function filterMessagesByMediaCategory(messages: AXConversationMessage[], categoryId: AXConversationMediaCategoryId): AXConversationMessage[];
|
|
4296
|
+
declare function isGridMediaCategory(categoryId: AXConversationMediaCategoryId): boolean;
|
|
4297
|
+
declare function isAttachmentListCategory(categoryId: AXConversationMediaCategoryId): boolean;
|
|
4298
|
+
interface AXConversationMediaGalleryTile {
|
|
4299
|
+
key: string;
|
|
4300
|
+
message: AXConversationMessage;
|
|
4301
|
+
kind: 'image' | 'video' | 'sticker';
|
|
4302
|
+
image?: AXConversationImageMediaItem;
|
|
4303
|
+
video?: AXConversationVideoMediaItem;
|
|
4304
|
+
stickerUrl?: string;
|
|
4305
|
+
stickerAlt?: string;
|
|
4306
|
+
}
|
|
4307
|
+
declare function buildMediaGalleryTiles(messages: AXConversationMessage[], categoryId: AXConversationMediaCategoryId): AXConversationMediaGalleryTile[];
|
|
4308
|
+
declare function resolveVideoThumbnailUrl(video: AXConversationVideoMediaItem): string | undefined;
|
|
4309
|
+
declare function resolveGalleryImageUrl(image: AXConversationImageMediaItem): string | undefined;
|
|
4310
|
+
declare function getMessageVideoItems(message: AXConversationMessage): AXConversationVideoMediaItem[];
|
|
4311
|
+
declare function getMessageAudioItems(message: AXConversationMessage): AXConversationAudioMediaItem[];
|
|
4312
|
+
interface AXConversationMediaPageResult {
|
|
4313
|
+
items: AXConversationMessage[];
|
|
4314
|
+
hasMore: boolean;
|
|
4315
|
+
nextCursor?: string;
|
|
4316
|
+
page: number;
|
|
4317
|
+
}
|
|
4318
|
+
declare function fetchConversationMediaPage(conversationApi: AXConversationApi, conversationId: string, page: number, pageSize?: number, cursor?: string): Promise<AXConversationMediaPageResult>;
|
|
4319
|
+
/** Merge media API results with in-memory messages needed for link/sticker/voice/location tabs. */
|
|
4320
|
+
declare function mergeInfoPanelMessages(mediaMessages: AXConversationMessage[], supplemental: AXConversationMessage[]): AXConversationMessage[];
|
|
4321
|
+
declare function filterSupplementalInfoPanelMessages(messages: AXConversationMessage[]): AXConversationMessage[];
|
|
4322
|
+
|
|
4011
4323
|
/** Group and channel rooms share join/leave and creator-destroy rules. */
|
|
4012
4324
|
declare function isGroupLikeConversation(conversationOrType: AXConversation | AXConversationType | undefined): boolean;
|
|
4013
4325
|
/** True when `userId` created this room (falls back to owner/admin if `creatorId` is missing). */
|
|
@@ -4020,9 +4332,6 @@ declare function pickEarliestJoinedParticipant(participants: AXConversationParti
|
|
|
4020
4332
|
*/
|
|
4021
4333
|
declare function isMessageVisibleAfterHistoryCutoff(timestamp: Date | string | number, historyClearedAt?: Date | string | number | null): boolean;
|
|
4022
4334
|
|
|
4023
|
-
/** Resolves typed `profile`, falling back to legacy `metadata.profile`. */
|
|
4024
|
-
declare function resolveParticipantProfile(participant?: AXConversationParticipant): AXConversationUserProfile;
|
|
4025
|
-
|
|
4026
4335
|
type AXConversationDateSeparatorKind = 'today' | 'yesterday' | 'other';
|
|
4027
4336
|
declare class AXConversationDateUtilsService {
|
|
4028
4337
|
/**
|
|
@@ -4049,46 +4358,52 @@ declare class AXConversationDateUtilsService {
|
|
|
4049
4358
|
static formatTime(date: Date): string;
|
|
4050
4359
|
}
|
|
4051
4360
|
|
|
4052
|
-
/**
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4361
|
+
/** Infer extension/MIME hints from a persisted message payload. */
|
|
4362
|
+
declare function inferFileExtensionHintFromMessage(message: AXConversationMessage): AXFileTypeExtensionHint;
|
|
4363
|
+
/** Use file-type `copy` on the message when `message.fileType` is set; otherwise fallback. */
|
|
4364
|
+
declare function copyWithFileTypeFallback(message: AXConversationMessage, registry: AXFileTypeRegistryService, fallback: () => string): Promise<string>;
|
|
4365
|
+
/** Use file-type `open` on the message when `message.fileType` is set. */
|
|
4366
|
+
declare function openWithFileType(message: AXConversationMessage, registry: AXFileTypeRegistryService, ctx: AXFileTypeOpenContext): Promise<boolean>;
|
|
4056
4367
|
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4368
|
+
interface AXConversationMessageListBackgroundPreset {
|
|
4369
|
+
id: string;
|
|
4370
|
+
value: AXConversationMessageListThemeBackground;
|
|
4371
|
+
}
|
|
4372
|
+
/** Library default when no per-conversation or global background is set (pattern-5 tile + gradient wash). */
|
|
4373
|
+
declare const AX_CONVERSATION_DEFAULT_MESSAGE_LIST_THEME_BACKGROUND: AXConversationMessageListThemeBackground;
|
|
4374
|
+
/** Predefined chat-area backgrounds for the info panel (light + dark variants). */
|
|
4375
|
+
declare const AX_CONVERSATION_MESSAGE_LIST_BACKGROUND_PRESETS: AXConversationMessageListBackgroundPreset[];
|
|
4376
|
+
declare const AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND_PRESET_ID = "solid-default";
|
|
4377
|
+
|
|
4378
|
+
/** Subtle Telegram-style chat-area wash when `messageListBackground` is not set (theme-aware). */
|
|
4379
|
+
declare const AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND: string;
|
|
4380
|
+
declare function isMessageListThemeBackground(value: unknown): value is AXConversationMessageListThemeBackground;
|
|
4381
|
+
/** Pick the raw CSS string for the active theme; `undefined` when unset. */
|
|
4382
|
+
declare function resolveMessageListBackgroundRaw(value: AXConversationMessageListBackground | undefined, isDark: boolean): string | undefined;
|
|
4383
|
+
/** Turn bare `https://...` or `/path` into valid CSS `background` for images. */
|
|
4384
|
+
declare function normalizeMessageListBackgroundValue(raw: string): string;
|
|
4385
|
+
/** Whether the built-in pattern-5 wallpaper (gradient + tiled SVG) should be used. */
|
|
4386
|
+
declare function usesDefaultMessageListWallpaper(value: AXConversationMessageListBackground | undefined): boolean;
|
|
4387
|
+
/** Resolve config/metadata background for the active theme, with library default fallback. */
|
|
4388
|
+
declare function resolveMessageListBackgroundStyle(value: AXConversationMessageListBackground | undefined, isDark: boolean): string;
|
|
4389
|
+
/** Whether two stored backgrounds represent the same preset (supports legacy string values). */
|
|
4390
|
+
declare function isSameMessageListBackground(a: AXConversationMessageListBackground | undefined, b: AXConversationMessageListThemeBackground, isDark: boolean): boolean;
|
|
4391
|
+
|
|
4392
|
+
/** Private chat members, group/channel admins and room owners can manage message pins. */
|
|
4393
|
+
declare function canManageConversationPins(conversation: AXConversation, userId?: string): boolean;
|
|
4394
|
+
|
|
4395
|
+
/** Resolves typed `profile`, falling back to legacy `metadata.profile`. */
|
|
4396
|
+
declare function resolveParticipantProfile(participant?: AXConversationParticipant): AXConversationUserProfile;
|
|
4397
|
+
|
|
4398
|
+
interface AXConversationTextLinkPiece {
|
|
4399
|
+
text: string;
|
|
4400
|
+
/** `tel:`, `mailto:`, or `http(s):` when this piece is a link. */
|
|
4401
|
+
href: string | null;
|
|
4402
|
+
/** Web links open in a new tab. Phone and email stay in the current context so the OS can handle them. */
|
|
4403
|
+
external: boolean;
|
|
4091
4404
|
}
|
|
4405
|
+
/** Split plain chat text into link and non-link pieces. Display text stays unchanged. */
|
|
4406
|
+
declare function splitConversationTextLinks(text: string): AXConversationTextLinkPiece[];
|
|
4092
4407
|
|
|
4093
4408
|
/**
|
|
4094
4409
|
* Conversation feature flags for configurable bundle size.
|
|
@@ -4115,6 +4430,10 @@ type AXConversationSidebarTabsOrientation = 'vertical' | 'horizontal';
|
|
|
4115
4430
|
* Main configuration interface for the conversation component
|
|
4116
4431
|
*/
|
|
4117
4432
|
interface AXConversationConfig {
|
|
4433
|
+
/** Composer mentions. Groups default to their participants; other chats need a custom source. */
|
|
4434
|
+
mentions?: AXConversationMentionsConfig;
|
|
4435
|
+
/** Override pin-management UI permissions. The API must enforce its own authorization. */
|
|
4436
|
+
canPinMessages?: (conversation: AXConversation, currentUser: AXConversationParticipant) => boolean;
|
|
4118
4437
|
/** Number of messages to load per page */
|
|
4119
4438
|
messagePageSize?: number;
|
|
4120
4439
|
/** Number of conversations to load per page */
|
|
@@ -4247,11 +4566,6 @@ interface AXConversationAvatarComponents {
|
|
|
4247
4566
|
conversation?: Type<AXConversationConversationAvatarComponent>;
|
|
4248
4567
|
}
|
|
4249
4568
|
|
|
4250
|
-
/**
|
|
4251
|
-
* Registry Configuration Tokens
|
|
4252
|
-
* Injection tokens for configuring default registry values
|
|
4253
|
-
*/
|
|
4254
|
-
|
|
4255
4569
|
/**
|
|
4256
4570
|
* Additional message renderers configuration
|
|
4257
4571
|
* Provide this token to add custom message renderers in addition to built-in ones
|
|
@@ -4299,6 +4613,8 @@ interface AXConversationRegistryConfiguration {
|
|
|
4299
4613
|
messageRenderers?: AXConversationMessageRenderer[];
|
|
4300
4614
|
/** Message actions to register by default */
|
|
4301
4615
|
messageActions?: AXConversationMessageAction[];
|
|
4616
|
+
/** Bulk header actions. Matching ids replace built-ins (including delete). */
|
|
4617
|
+
selectionActions?: AXConversationSelectionAction[];
|
|
4302
4618
|
/** Composer tabs to register by default */
|
|
4303
4619
|
composerTabs?: AXConversationComposerTab[];
|
|
4304
4620
|
/** Composer actions to register by default */
|
|
@@ -4404,59 +4720,6 @@ declare function validateLatitude(latitude: number | undefined | null): AXConver
|
|
|
4404
4720
|
*/
|
|
4405
4721
|
declare function validateLongitude(longitude: number | undefined | null): AXConversationValidationResult;
|
|
4406
4722
|
|
|
4407
|
-
/** Infer extension/MIME hints from a persisted message payload. */
|
|
4408
|
-
declare function inferFileExtensionHintFromMessage(message: AXConversationMessage): AXFileTypeExtensionHint;
|
|
4409
|
-
/** Use file-type `copy` on the message when `message.fileType` is set; otherwise fallback. */
|
|
4410
|
-
declare function copyWithFileTypeFallback(message: AXConversationMessage, registry: AXFileTypeRegistryService, fallback: () => string): Promise<string>;
|
|
4411
|
-
/** Use file-type `open` on the message when `message.fileType` is set. */
|
|
4412
|
-
declare function openWithFileType(message: AXConversationMessage, registry: AXFileTypeRegistryService, ctx: AXFileTypeOpenContext): Promise<boolean>;
|
|
4413
|
-
|
|
4414
|
-
interface AXConversationInfoProfileField {
|
|
4415
|
-
id: string;
|
|
4416
|
-
labelKey: string;
|
|
4417
|
-
value: string;
|
|
4418
|
-
icon: string;
|
|
4419
|
-
}
|
|
4420
|
-
type AXConversationMediaCategoryId = 'image' | 'video' | 'file' | 'audio' | 'voice' | 'sticker' | 'location' | 'link';
|
|
4421
|
-
interface AXConversationMediaCategory {
|
|
4422
|
-
id: AXConversationMediaCategoryId;
|
|
4423
|
-
labelKey: string;
|
|
4424
|
-
countLabelKey: string;
|
|
4425
|
-
icon: string;
|
|
4426
|
-
count: number;
|
|
4427
|
-
}
|
|
4428
|
-
declare function messageContainsLink(message: AXConversationMessage): boolean;
|
|
4429
|
-
declare function getPrivatePeerParticipant(conversation: AXConversation, currentUserId?: string): AXConversationParticipant | undefined;
|
|
4430
|
-
declare function getConversationProfileFields(conversation: AXConversation, currentUserId?: string): AXConversationInfoProfileField[];
|
|
4431
|
-
declare function getConversationMediaCategories(messages: AXConversationMessage[]): AXConversationMediaCategory[];
|
|
4432
|
-
declare function filterMessagesByMediaCategory(messages: AXConversationMessage[], categoryId: AXConversationMediaCategoryId): AXConversationMessage[];
|
|
4433
|
-
declare function isGridMediaCategory(categoryId: AXConversationMediaCategoryId): boolean;
|
|
4434
|
-
declare function isAttachmentListCategory(categoryId: AXConversationMediaCategoryId): boolean;
|
|
4435
|
-
interface AXConversationMediaGalleryTile {
|
|
4436
|
-
key: string;
|
|
4437
|
-
message: AXConversationMessage;
|
|
4438
|
-
kind: 'image' | 'video' | 'sticker';
|
|
4439
|
-
image?: AXConversationImageMediaItem;
|
|
4440
|
-
video?: AXConversationVideoMediaItem;
|
|
4441
|
-
stickerUrl?: string;
|
|
4442
|
-
stickerAlt?: string;
|
|
4443
|
-
}
|
|
4444
|
-
declare function buildMediaGalleryTiles(messages: AXConversationMessage[], categoryId: AXConversationMediaCategoryId): AXConversationMediaGalleryTile[];
|
|
4445
|
-
declare function resolveVideoThumbnailUrl(video: AXConversationVideoMediaItem): string | undefined;
|
|
4446
|
-
declare function resolveGalleryImageUrl(image: AXConversationImageMediaItem): string | undefined;
|
|
4447
|
-
declare function getMessageVideoItems(message: AXConversationMessage): AXConversationVideoMediaItem[];
|
|
4448
|
-
declare function getMessageAudioItems(message: AXConversationMessage): AXConversationAudioMediaItem[];
|
|
4449
|
-
interface AXConversationMediaPageResult {
|
|
4450
|
-
items: AXConversationMessage[];
|
|
4451
|
-
hasMore: boolean;
|
|
4452
|
-
nextCursor?: string;
|
|
4453
|
-
page: number;
|
|
4454
|
-
}
|
|
4455
|
-
declare function fetchConversationMediaPage(conversationApi: AXConversationApi, conversationId: string, page: number, pageSize?: number, cursor?: string): Promise<AXConversationMediaPageResult>;
|
|
4456
|
-
/** Merge media API results with in-memory messages needed for link/sticker/voice/location tabs. */
|
|
4457
|
-
declare function mergeInfoPanelMessages(mediaMessages: AXConversationMessage[], supplemental: AXConversationMessage[]): AXConversationMessage[];
|
|
4458
|
-
declare function filterSupplementalInfoPanelMessages(messages: AXConversationMessage[]): AXConversationMessage[];
|
|
4459
|
-
|
|
4460
4723
|
interface AXConversationMessageDateGroup {
|
|
4461
4724
|
date: string;
|
|
4462
4725
|
dateKind: AXConversationDateSeparatorKind;
|
|
@@ -4465,6 +4728,7 @@ interface AXConversationMessageDateGroup {
|
|
|
4465
4728
|
}
|
|
4466
4729
|
declare class AXConversationMessageListService {
|
|
4467
4730
|
private readonly conversationService;
|
|
4731
|
+
private readonly pins;
|
|
4468
4732
|
private readonly translation;
|
|
4469
4733
|
private readonly eventService;
|
|
4470
4734
|
private readonly activeLocale;
|
|
@@ -4498,8 +4762,19 @@ declare class AXConversationMessageListService {
|
|
|
4498
4762
|
getRendererInstance(messageId: string): AXConversationMessageRendererComponent | undefined;
|
|
4499
4763
|
getReplyCount(messageId: string): number;
|
|
4500
4764
|
getForwardCount(messageId: string): number;
|
|
4501
|
-
|
|
4765
|
+
readonly visibleMessageIds: _angular_core.Signal<Set<string>>;
|
|
4766
|
+
/** Display data for consumers; hidden normal rows remain mounted in renderGroups for media playback. */
|
|
4502
4767
|
readonly messageGroups: _angular_core.Signal<AXConversationMessageDateGroup[]>;
|
|
4768
|
+
readonly renderGroups: _angular_core.Signal<{
|
|
4769
|
+
visible: boolean;
|
|
4770
|
+
previousVisible: Map<string, AXConversationMessage>;
|
|
4771
|
+
nextVisible: Map<string, AXConversationMessage>;
|
|
4772
|
+
date: string;
|
|
4773
|
+
dateKind: AXConversationDateSeparatorKind;
|
|
4774
|
+
dateLabel?: string;
|
|
4775
|
+
messages: AXConversationMessage[];
|
|
4776
|
+
}[]>;
|
|
4777
|
+
private groupMessages;
|
|
4503
4778
|
/**
|
|
4504
4779
|
* Load older messages when the user scrolls near the top.
|
|
4505
4780
|
*/
|
|
@@ -4519,6 +4794,12 @@ declare class AXConversationMessageListService {
|
|
|
4519
4794
|
}
|
|
4520
4795
|
|
|
4521
4796
|
declare class AXConversationMessageListComponent implements OnDestroy {
|
|
4797
|
+
readonly selection: AXConversationMessageSelectionService;
|
|
4798
|
+
readonly pins: AXConversationMessagePinsService;
|
|
4799
|
+
private pinNavigationGeneration;
|
|
4800
|
+
private skipPinViewRestore;
|
|
4801
|
+
private lastPinnedView;
|
|
4802
|
+
private pinViewRestoreFrame?;
|
|
4522
4803
|
private readonly conversationService;
|
|
4523
4804
|
private readonly messageListService;
|
|
4524
4805
|
private readonly composerService;
|
|
@@ -4544,6 +4825,7 @@ declare class AXConversationMessageListComponent implements OnDestroy {
|
|
|
4544
4825
|
/** Message id whose context menu is open (for active row styling). */
|
|
4545
4826
|
readonly contextMenuMessageId: _angular_core.WritableSignal<string>;
|
|
4546
4827
|
private readonly contextMenuMessage;
|
|
4828
|
+
private readonly contextMenuSelection;
|
|
4547
4829
|
private readonly messageActionsMenu;
|
|
4548
4830
|
/** True when the message list uses single-column adaptive layout (matches CSS container query). */
|
|
4549
4831
|
readonly isAdaptiveWideLayout: _angular_core.WritableSignal<boolean>;
|
|
@@ -4566,6 +4848,9 @@ declare class AXConversationMessageListComponent implements OnDestroy {
|
|
|
4566
4848
|
readonly availableReactions: _angular_core.WritableSignal<string[]>;
|
|
4567
4849
|
readonly reactionEmojis: _angular_core.Signal<dist_packages_core_types_acorex_core_constants.AXEmoji[]>;
|
|
4568
4850
|
readonly contextMenuSupportsReactions: _angular_core.Signal<boolean>;
|
|
4851
|
+
/** Message shown in the context-menu footer. Hidden for the selection-action menu. */
|
|
4852
|
+
protected readonly contextMenuFooterMessage: _angular_core.Signal<AXConversationMessage>;
|
|
4853
|
+
protected readonly contextMenuFooterIsOwn: _angular_core.Signal<boolean>;
|
|
4569
4854
|
private readonly autoFollow;
|
|
4570
4855
|
onFollowStateChange(event: FollowStateChangeEvent): void;
|
|
4571
4856
|
onContextReactionSelected(emoji: string): void;
|
|
@@ -4616,7 +4901,16 @@ declare class AXConversationMessageListComponent implements OnDestroy {
|
|
|
4616
4901
|
/** Current user from service */
|
|
4617
4902
|
readonly currentUser: _angular_core.Signal<_acorex_components_conversation.AXConversationUser>;
|
|
4618
4903
|
/** Message grouped by date - use service */
|
|
4619
|
-
readonly messageGroups: _angular_core.Signal<
|
|
4904
|
+
readonly messageGroups: _angular_core.Signal<{
|
|
4905
|
+
visible: boolean;
|
|
4906
|
+
previousVisible: Map<string, AXConversationMessage>;
|
|
4907
|
+
nextVisible: Map<string, AXConversationMessage>;
|
|
4908
|
+
date: string;
|
|
4909
|
+
dateKind: _acorex_components_conversation.AXConversationDateSeparatorKind;
|
|
4910
|
+
dateLabel?: string;
|
|
4911
|
+
messages: AXConversationMessage[];
|
|
4912
|
+
}[]>;
|
|
4913
|
+
readonly visibleMessageIds: _angular_core.Signal<Set<string>>;
|
|
4620
4914
|
constructor();
|
|
4621
4915
|
private intersectionObserver?;
|
|
4622
4916
|
private readonly readIntersectionObserver;
|
|
@@ -4686,7 +4980,9 @@ declare class AXConversationMessageListComponent implements OnDestroy {
|
|
|
4686
4980
|
/** Start nearby lazy images so they decode while stick-to-bottom holds the viewport. */
|
|
4687
4981
|
private primeOpenViewportMedia;
|
|
4688
4982
|
/** Scroll to bottom */
|
|
4689
|
-
scrollToBottom(smooth?: boolean): void
|
|
4983
|
+
scrollToBottom(smooth?: boolean): Promise<void>;
|
|
4984
|
+
private navigateToPinnedMessage;
|
|
4985
|
+
unpinAllPins(): void;
|
|
4690
4986
|
/** Scroll to specific message */
|
|
4691
4987
|
scrollToMessage(messageId: string): void;
|
|
4692
4988
|
/** Cleanup timeouts and observers on destroy */
|
|
@@ -4933,7 +5229,7 @@ declare class AXConversationNewDialogComponent extends AXBasePageComponent {
|
|
|
4933
5229
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationNewDialogComponent, "ax-conversation-new-dialog", never, { "__popup__": { "alias": "__popup__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4934
5230
|
}
|
|
4935
5231
|
|
|
4936
|
-
type AXConversationDeleteDialogMode = 'private' | 'leave' | 'destroy-room';
|
|
5232
|
+
type AXConversationDeleteDialogMode = 'private' | 'leave' | 'destroy-room' | 'delete-message';
|
|
4937
5233
|
interface AXConversationDeleteDialogResult {
|
|
4938
5234
|
confirmed: boolean;
|
|
4939
5235
|
forEveryone: boolean;
|
|
@@ -4946,13 +5242,16 @@ declare class AXConversationDeleteDialogComponent {
|
|
|
4946
5242
|
conversation: AXConversation;
|
|
4947
5243
|
mode: AXConversationDeleteDialogMode;
|
|
4948
5244
|
peerName?: string;
|
|
5245
|
+
/** Number of messages being deleted when `mode` is `delete-message`. */
|
|
5246
|
+
messageCount: number;
|
|
4949
5247
|
readonly __popup__: _angular_core.InputSignal<AXPopupRef<any>>;
|
|
4950
5248
|
forEveryone: boolean;
|
|
4951
5249
|
readonly onClosed: EventEmitter<AXComponentCloseEvent>;
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
5250
|
+
/** Methods, not signals: the popup assigns `mode` after the component is created. */
|
|
5251
|
+
showCheckbox(): boolean;
|
|
5252
|
+
messageText(): string;
|
|
5253
|
+
checkboxLabel(): string;
|
|
5254
|
+
confirmLabel(): string;
|
|
4956
5255
|
confirm(): void;
|
|
4957
5256
|
cancel(): void;
|
|
4958
5257
|
private close;
|
|
@@ -6155,6 +6454,7 @@ declare class AXConversationLocationRendererComponent extends AXConversationMess
|
|
|
6155
6454
|
|
|
6156
6455
|
declare class AXConversationStickerRendererComponent implements AXConversationMessageRendererComponent {
|
|
6157
6456
|
private readonly _contentState;
|
|
6457
|
+
private readonly image;
|
|
6158
6458
|
protected readonly translation: AXTranslationService;
|
|
6159
6459
|
readonly message: _angular_core.InputSignal<AXConversationMessage>;
|
|
6160
6460
|
readonly rendererState: _angular_core.Signal<{
|
|
@@ -6202,6 +6502,7 @@ declare class AXConversationTextRendererComponent extends AXConversationMessageR
|
|
|
6202
6502
|
readonly jumboText: _angular_core.Signal<string>;
|
|
6203
6503
|
readonly jumboGraphemes: _angular_core.Signal<string[]>;
|
|
6204
6504
|
readonly text: _angular_core.Signal<string>;
|
|
6505
|
+
readonly mentions: _angular_core.Signal<_acorex_components_conversation.AXConversationMention[]>;
|
|
6205
6506
|
readonly jumboEmojis: _angular_core.Signal<dist_packages_core_types_acorex_core_constants.AXEmoji[]>;
|
|
6206
6507
|
readonly jumboSize: _angular_core.Signal<208 | 72 | 40>;
|
|
6207
6508
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXConversationTextRendererComponent, never>;
|
|
@@ -6299,11 +6600,6 @@ declare class AXConversationVoiceRendererComponent extends AXConversationMessage
|
|
|
6299
6600
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXConversationVoiceRendererComponent, "ax-conversation-voice-renderer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6300
6601
|
}
|
|
6301
6602
|
|
|
6302
|
-
/**
|
|
6303
|
-
* Default Message Actions Plugin
|
|
6304
|
-
* Individual message action constants
|
|
6305
|
-
*/
|
|
6306
|
-
|
|
6307
6603
|
/**
|
|
6308
6604
|
* Reply to message
|
|
6309
6605
|
*/
|
|
@@ -6320,6 +6616,11 @@ declare const AX_CONVERSATION_MESSAGE_DELETE_ACTION: AXConversationMessageAction
|
|
|
6320
6616
|
* Forward message to another conversation
|
|
6321
6617
|
*/
|
|
6322
6618
|
declare const AX_CONVERSATION_MESSAGE_FORWARD_ACTION: AXConversationMessageAction;
|
|
6619
|
+
/** Optional context-menu entry; register in registry.messageActions. */
|
|
6620
|
+
declare const AX_CONVERSATION_MESSAGE_SELECT_ACTION: AXConversationMessageAction;
|
|
6621
|
+
/** Register these plugins in registry.messageActions. */
|
|
6622
|
+
declare const AX_CONVERSATION_MESSAGE_PIN_ACTION: AXConversationMessageAction;
|
|
6623
|
+
declare const AX_CONVERSATION_MESSAGE_UNPIN_ACTION: AXConversationMessageAction;
|
|
6323
6624
|
|
|
6324
6625
|
declare const AX_CONVERSATION_TEXT_RENDERER: AXConversationMessageRenderer;
|
|
6325
6626
|
|
|
@@ -6873,5 +7174,5 @@ declare function getErrorMessage(code: string, params?: Record<string, string |
|
|
|
6873
7174
|
*/
|
|
6874
7175
|
type AXConversationErrorCode = typeof AX_CONVERSATION_MESSAGE_ERRORS[keyof typeof AX_CONVERSATION_MESSAGE_ERRORS]['code'] | typeof AX_CONVERSATION_FILE_ERRORS[keyof typeof AX_CONVERSATION_FILE_ERRORS]['code'] | typeof AX_CONVERSATION_USER_ERRORS[keyof typeof AX_CONVERSATION_USER_ERRORS]['code'] | typeof AX_CONVERSATION_ERRORS[keyof typeof AX_CONVERSATION_ERRORS]['code'] | typeof AX_CONVERSATION_CONNECTION_ERRORS[keyof typeof AX_CONVERSATION_CONNECTION_ERRORS]['code'] | typeof AX_CONVERSATION_LOCATION_ERRORS[keyof typeof AX_CONVERSATION_LOCATION_ERRORS]['code'] | typeof AX_CONVERSATION_URL_ERRORS[keyof typeof AX_CONVERSATION_URL_ERRORS]['code'];
|
|
6875
7176
|
|
|
6876
|
-
export { AXConversationApi, AXConversationApiLoggerService, AXConversationAudioAttachmentComponent, AXConversationAudioFileTypeProvider, AXConversationAudioPickerComponent, AXConversationAudioRendererComponent, AXConversationAvatarComponent, AXConversationAvatarPickerComponent, AXConversationBaseRegistry, AXConversationChatDropDirective, AXConversationComposerActionRegistry, AXConversationComposerComponent, AXConversationComposerFileTypesProvider, AXConversationComposerGenerationStateService, AXConversationComposerPopupComponent, AXConversationComposerService, AXConversationComposerTabRegistry, AXConversationContainerComponent, AXConversationContainerDirective, AXConversationDateUtilsService, AXConversationDeleteDialogComponent, AXConversationEmojiTabComponent, AXConversationErrorHandlerService, AXConversationFallbackRendererComponent, AXConversationFileAttachmentComponent, AXConversationFileFileTypeProvider, AXConversationFilePickerComponent, AXConversationFileRendererComponent, AXConversationForwardMessageDialogComponent, AXConversationImageAttachmentComponent, AXConversationImageFileTypeProvider, AXConversationImagePickerComponent, AXConversationImageRendererComponent, AXConversationInfiniteScrollDirective, AXConversationInfoBarActionRegistry, AXConversationInfoBarComponent, AXConversationInfoBarSearchComponent, AXConversationInfoBarService, AXConversationItemActionRegistry, AXConversationLocationPickerComponent, AXConversationLocationRendererComponent, AXConversationMediaPlaybackInfoBarBannerComponent, AXConversationMessageActionRegistry, AXConversationMessageApi, AXConversationMessageListComponent, AXConversationMessageListNoActiveDefaultComponent, AXConversationMessageListService, AXConversationMessageRendererCopyHostComponent, AXConversationMessageRendererRegistry, AXConversationMessageRendererStateComponent, AXConversationMessageUtilsService, AXConversationModule, AXConversationNewDialogComponent, AXConversationPickerCaptionComponent, AXConversationPickerEmptyComponent, AXConversationPickerFooterComponent, AXConversationPickerHeaderComponent, AXConversationPickerOptionsComponent, AXConversationPickerShellComponent, AXConversationPickerToolbarComponent, AXConversationRealtimeApi, AXConversationRegistryComponentOutletComponent, AXConversationRegistryService, AXConversationService, AXConversationSidebarComponent, AXConversationSidebarService, AXConversationStickerRendererComponent, AXConversationStickerTabComponent, AXConversationSystemRendererComponent, AXConversationTabRegistry, AXConversationTextRendererComponent, AXConversationUserApi, AXConversationVideoAttachmentComponent, AXConversationVideoFileTypeProvider, AXConversationVideoPickerComponent, AXConversationVideoRendererComponent, AXConversationVoiceFileTypeProvider, AXConversationVoiceRecorderComponent, AXConversationVoiceRendererComponent, AX_CONVERSATION_AUDIO_CATALOG, AX_CONVERSATION_AUDIO_PRESENTATION, AX_CONVERSATION_AUDIO_RENDERER, AX_CONVERSATION_AVAILABLE_REACTIONS, AX_CONVERSATION_BUILTIN_COMPOSER_TABS, AX_CONVERSATION_COMPOSER_AUDIO_ACTION, AX_CONVERSATION_COMPOSER_EMOJI_ACTION, AX_CONVERSATION_COMPOSER_EMOJI_TAB, AX_CONVERSATION_COMPOSER_FILE_ACTION, AX_CONVERSATION_COMPOSER_IMAGE_ACTION, AX_CONVERSATION_COMPOSER_LOCATION_ACTION, AX_CONVERSATION_COMPOSER_STICKER_TAB, AX_CONVERSATION_COMPOSER_VIDEO_ACTION, AX_CONVERSATION_COMPOSER_VOICE_RECORDING_ACTION, AX_CONVERSATION_CONFIG, AX_CONVERSATION_CONNECTION_ERRORS, AX_CONVERSATION_CONVERSATION_AVATAR_COMPONENT, AX_CONVERSATION_DEFAULT_COMPOSER_ACTIONS, AX_CONVERSATION_DEFAULT_COMPOSER_TABS, AX_CONVERSATION_DEFAULT_CONVERSATION_ITEM_ACTIONS, AX_CONVERSATION_DEFAULT_CONVERSATION_TABS, AX_CONVERSATION_DEFAULT_GROUP_ICON, AX_CONVERSATION_DEFAULT_INFO_BAR_ACTIONS, AX_CONVERSATION_DEFAULT_MESSAGE_ACTIONS, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND_PRESET_ID, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_THEME_BACKGROUND, AX_CONVERSATION_DEFAULT_MESSAGE_RENDERERS, AX_CONVERSATION_DEFAULT_ROOM_PREFERENCES, AX_CONVERSATION_DEFAULT_USER_ICON, AX_CONVERSATION_ERRORS, AX_CONVERSATION_ERROR_HANDLER_CONFIG, AX_CONVERSATION_ERROR_MESSAGES, AX_CONVERSATION_FALLBACK_RENDERER, AX_CONVERSATION_FILE_CATALOG, AX_CONVERSATION_FILE_ERRORS, AX_CONVERSATION_FILE_PRESENTATION, AX_CONVERSATION_FILE_RENDERER, AX_CONVERSATION_FILE_TYPES_READY, AX_CONVERSATION_IMAGE_CATALOG, AX_CONVERSATION_IMAGE_PRESENTATION, AX_CONVERSATION_IMAGE_RENDERER, AX_CONVERSATION_INFO_BAR_ARCHIVE_ACTION, AX_CONVERSATION_INFO_BAR_BLOCK_ACTION, AX_CONVERSATION_INFO_BAR_DELETE_ACTION, AX_CONVERSATION_INFO_BAR_DIVIDER, AX_CONVERSATION_INFO_BAR_MUTE_ACTION, AX_CONVERSATION_INFO_BAR_SEARCH_ACTION, AX_CONVERSATION_ITEM_BLOCK_ACTION, AX_CONVERSATION_ITEM_DELETE_ACTION, AX_CONVERSATION_ITEM_DIVIDER, AX_CONVERSATION_ITEM_MARK_READ_ACTION, AX_CONVERSATION_ITEM_MUTE_ACTION, AX_CONVERSATION_ITEM_PIN_ACTION, AX_CONVERSATION_JUMBO_EMOJI_MAX, AX_CONVERSATION_LOCATION_ERRORS, AX_CONVERSATION_LOCATION_RENDERER, AX_CONVERSATION_MESSAGE_DELETE_ACTION, AX_CONVERSATION_MESSAGE_EDIT_ACTION, AX_CONVERSATION_MESSAGE_ERRORS, AX_CONVERSATION_MESSAGE_FORWARD_ACTION, AX_CONVERSATION_MESSAGE_LIST_BACKGROUND_PRESETS, AX_CONVERSATION_MESSAGE_REPLY_ACTION, AX_CONVERSATION_MESSAGE_TYPE_FILE_TYPE, AX_CONVERSATION_PEER_AVATAR_TYPES, AX_CONVERSATION_REACTION_BAR_SIZE, AX_CONVERSATION_REGISTRY_CONFIG, AX_CONVERSATION_STICKER_API_KEY, AX_CONVERSATION_STICKER_RENDERER, AX_CONVERSATION_SYSTEM_RENDERER, AX_CONVERSATION_TAB_ALL, AX_CONVERSATION_TAB_ARCHIVED, AX_CONVERSATION_TAB_BOT, AX_CONVERSATION_TAB_CHANNELS, AX_CONVERSATION_TAB_GROUPS, AX_CONVERSATION_TAB_PRIVATE, AX_CONVERSATION_TAB_UNREAD, AX_CONVERSATION_TEXT_RENDERER, AX_CONVERSATION_URL_ERRORS, AX_CONVERSATION_USER_AVATAR_COMPONENT, AX_CONVERSATION_USER_ERRORS, AX_CONVERSATION_VIDEO_CATALOG, AX_CONVERSATION_VIDEO_PRESENTATION, AX_CONVERSATION_VIDEO_RENDERER, AX_CONVERSATION_VOICE_CATALOG, AX_CONVERSATION_VOICE_PRESENTATION, AX_CONVERSATION_VOICE_RENDERER, AX_DEFAULT_CONVERSATION_CONFIG, abortPickerUploads, applyAudioLocalPreview, applyFileLocalPreview, applyLocalPreview, applyVideoLocalPreview, applyVoiceLocalPreview, audioItemFromUpload, bindMediaRendererContentState, buildMediaGalleryTiles, canShowRendererContentError, cleanupPickerUploads, conversationAudioUtilities, conversationFileUtilities, conversationImageUtilities, conversationVideoUtilities, conversationVoiceUtilities, copyWithFileTypeFallback, countLoneEmojis, createConversationAudioFileType, createConversationFileFileType, createConversationImageFileType, createConversationVideoFileType, createConversationVoiceFileType, createLocalPreviewUrl, createObjectUrl, createPickerDragHandlers, createPickerUploadItemId, createResolvedMediaUrlSignal, deleteUploadedPickerMedia, dismissComposerPickerHost, ensureConversationFileCatalogRegistered, fetchConversationMediaPage, fileItemAsAudioMedia, fileItemFromUpload, filesFromClipboardEvent, filterMessagesByMediaCategory, filterSupplementalInfoPanelMessages, findExistingPrivateConversation, formatDuration, formatErrorMessage, formatFileByteSize, formatFileSize, formatMediaDuration, formatPickerValidationMessage, getActiveComposerPickerPasteHandler, getConversationMediaCategories, getConversationProfileFields, getErrorMessage, getMessageAudioItems, getMessageVideoItems, getPickerCancelUploadLabel, getPrivatePeerParticipant, hasRegistryComponent, inferFileExtensionHintFromMessage, isAttachmentListCategory, isComposerAttachmentBannerEnabled, isComposerTabEnabled, isConversationReactionsEnabled, isConversationRoomCreator, isGenericPrivateConversationTitle, isGridMediaCategory, isGroupLikeConversation, isJumboEmojiText, isJumboEmojiTextMessage, isMessageDeliveryPending, isMessageListThemeBackground, isMessageVisibleAfterHistoryCutoff, isNonPersistableMediaUrl, isPickerItemReadyToSend, isPlainChromeMessage, isSameMessageListBackground, isUploadAborted, limitFilesToCapacity, listTextGraphemes, mediaCopyText, mergeAudioUploadResult, mergeFileUploadResult, mergeInfoPanelMessages, mergeUploadResult, mergeVideoUploadResult, mergeVoiceUploadResult, mergeWithDefaults, messageContainsLink, normalizeAudioPayload, normalizeConversationInboundFile, normalizeFilePayload, normalizeImagePayload, normalizeMessageListBackgroundValue, normalizeVideoPayload, notifyMaxFilesCapacityExceeded, notifyPickerValidationErrors, openWithFileType, pickDisplayMediaUrl, pickEarliestJoinedParticipant, pickerItemToMediaReference, pickerItemToUploadResult, probeAudioDuration, probeImageDimensions, probeVideoMedia, provideConversation, provideConversationComposerFileTypes, provideConversationFileCatalog, registerComposerPickerPasteHandler, reportMediaLoadError, resolveComposerAttachmentPresentation, resolveComposerMaxFiles, resolveConversationAvatarDisplay, resolveConversationComposerTabs, resolveConversationForViewer, resolveConversationMessageFileType, resolveConversationPeerParticipant, resolveConversationPeerUserId, resolveConversationTitleForViewer, resolveGalleryImageUrl, resolveImageDisplayUrl, resolveMessageChrome, resolveMessageListBackgroundRaw, resolveMessageListBackgroundStyle, resolveParticipantProfile, resolvePersistableMediaUrl, resolvePersistedThumbnailUrl, resolvePrivatePeerParticipant, resolvePrivatePeerUserId, resolveUserAvatarDisplay, resolveVideoThumbnailUrl, revokeObjectUrl, revokePickerBlobPreviews, sanitizeInput, shouldUseUserAvatarForConversation, sortUsersForForward, syncPlaybackInfoBarBanner, toUploaderReference as toMediaItemUploaderReference, toUploaderReference$1 as toUploaderReference, uploadPickerFile, usesDefaultMessageListWallpaper, validateConversationId, validateEmail, validateLatitude, validateLongitude, validateMessagePayload, validateMessageText, validateMessageType, validateUrl, validateUserId, validateUserIds, videoItemFromUpload };
|
|
6877
|
-
export type { AXConversation, AXConversationApiError, AXConversationApiLogEntry, AXConversationApiName, AXConversationAudioMediaItem, AXConversationAudioPayload, AXConversationAvatarComponents, AXConversationAvatarDisplay, AXConversationAvatarKind, AXConversationBlockReportReason, AXConversationCleanupPickerUploadsOptions, AXConversationComposerAction, AXConversationComposerActionComponent, AXConversationComposerActionContext, AXConversationComposerAttachmentPresentation, AXConversationComposerDraftAttachment, AXConversationComposerDraftAttachmentKind, AXConversationComposerGenerationPhase, AXConversationComposerPickerUploadItem, AXConversationComposerPrimaryButtonMode, AXConversationComposerTab, AXConversationComposerTabFeature, AXConversationConfig, AXConversationConnectionStatus, AXConversationConversationAvatarComponent, AXConversationCreateData, AXConversationDateSeparatorKind, AXConversationDeleteDialogMode, AXConversationDeleteDialogResult, AXConversationDeleteMessageCommand, AXConversationDeleteOptions, AXConversationDropdownMenuItem, AXConversationEditMessageCommand, AXConversationError, AXConversationErrorCode, AXConversationErrorHandlerConfig, AXConversationErrorMessage, AXConversationErrorSeverity, AXConversationFeatures, AXConversationFileMediaItem, AXConversationFilePayload, AXConversationFilter, AXConversationFilters, AXConversationForwardUserSortEntry, AXConversationGroupedReaction, AXConversationImageMediaItem, AXConversationImagePayload, AXConversationInfoBarAction, AXConversationInfoBarActionComponent, AXConversationInfoBarActionContext, AXConversationInfoBarActiveBanner, AXConversationInfoBarActiveComponent, AXConversationInfoProfileField, AXConversationItemAction, AXConversationItemActionContext, AXConversationLink, AXConversationLinkPreview, AXConversationLoadMessagesResult, AXConversationLocationPayload, AXConversationMediaCategory, AXConversationMediaCategoryId, AXConversationMediaDimensions, AXConversationMediaGalleryTile, AXConversationMediaItemFields, AXConversationMediaPageResult, AXConversationMention, AXConversationMessage, AXConversationMessageAction, AXConversationMessageActionContext, AXConversationMessageChrome, AXConversationMessageClusterRole, AXConversationMessageDateGroup, AXConversationMessageForwardData, AXConversationMessageInfoBarBannerComponent, AXConversationMessageListBackground, AXConversationMessageListBackgroundPreset, AXConversationMessageListEmptyComponent, AXConversationMessageListThemeBackground, AXConversationMessagePayload, AXConversationMessageRenderer, AXConversationMessageRendererCapabilities, AXConversationMessageRendererComponent, AXConversationMessageRendererContentState, AXConversationMessageRendererState, AXConversationMessageSearchFilters, AXConversationMessageStatus, AXConversationMessageType, AXConversationMetadata, AXConversationOptions, AXConversationOutletSkeleton, AXConversationPaginatedResult, AXConversationPagination, AXConversationPaginationState, AXConversationParticipant, AXConversationParticipantRole, AXConversationParticipantUpdate, AXConversationPickerPasteHandler, AXConversationPinnedMessage, AXConversationPlaybackBannerInputs, AXConversationPollOption, AXConversationPollPayload, AXConversationPresenceStatus, AXConversationPresenceUpdate, AXConversationReaction, AXConversationReadReceipt, AXConversationRegistryComponentRef, AXConversationRegistryConfiguration, AXConversationRegistryItem, AXConversationRoomPreferences, AXConversationRoomPreferencesMap, AXConversationSendMessageCommand, AXConversationSendMessageOptions, AXConversationSendMessageUploadSource, AXConversationSettingsUpdate, AXConversationSidebarTabsOrientation, AXConversationSort, AXConversationStickerPayload, AXConversationSystemPayload, AXConversationTab, AXConversationTextFormat, AXConversationTextPayload, AXConversationType, AXConversationTypingIndicator, AXConversationUpdateData, AXConversationUploadOptions, AXConversationUploaderFilePreview, AXConversationUploaderReference, AXConversationUploaderResult, AXConversationUser, AXConversationUserAvatarComponent, AXConversationUserPresence, AXConversationUserProfile, AXConversationUserProfileUpdate, AXConversationUserSearchFilters, AXConversationValidationResult, AXConversationVideoMediaItem, AXConversationVideoPayload, AXConversationVoicePayload };
|
|
7177
|
+
export { AXConversationApi, AXConversationApiLoggerService, AXConversationAudioAttachmentComponent, AXConversationAudioFileTypeProvider, AXConversationAudioPickerComponent, AXConversationAudioRendererComponent, AXConversationAvatarComponent, AXConversationAvatarPickerComponent, AXConversationBaseRegistry, AXConversationChatDropDirective, AXConversationComposerActionRegistry, AXConversationComposerComponent, AXConversationComposerFileTypesProvider, AXConversationComposerGenerationStateService, AXConversationComposerPopupComponent, AXConversationComposerService, AXConversationComposerTabRegistry, AXConversationContainerComponent, AXConversationContainerDirective, AXConversationDateUtilsService, AXConversationDeleteDialogComponent, AXConversationEmojiTabComponent, AXConversationErrorHandlerService, AXConversationFallbackRendererComponent, AXConversationFileAttachmentComponent, AXConversationFileFileTypeProvider, AXConversationFilePickerComponent, AXConversationFileRendererComponent, AXConversationForwardMessageDialogComponent, AXConversationImageAttachmentComponent, AXConversationImageFileTypeProvider, AXConversationImagePickerComponent, AXConversationImageRendererComponent, AXConversationInfiniteScrollDirective, AXConversationInfoBarActionRegistry, AXConversationInfoBarComponent, AXConversationInfoBarSearchComponent, AXConversationInfoBarService, AXConversationItemActionRegistry, AXConversationLocationPickerComponent, AXConversationLocationRendererComponent, AXConversationMediaPlaybackInfoBarBannerComponent, AXConversationMessageActionRegistry, AXConversationMessageApi, AXConversationMessageListComponent, AXConversationMessageListNoActiveDefaultComponent, AXConversationMessageListService, AXConversationMessagePinsService, AXConversationMessageRendererCopyHostComponent, AXConversationMessageRendererRegistry, AXConversationMessageRendererStateComponent, AXConversationMessageSelectionService, AXConversationMessageUtilsService, AXConversationModule, AXConversationNewDialogComponent, AXConversationPickerCaptionComponent, AXConversationPickerEmptyComponent, AXConversationPickerFooterComponent, AXConversationPickerHeaderComponent, AXConversationPickerOptionsComponent, AXConversationPickerShellComponent, AXConversationPickerToolbarComponent, AXConversationRealtimeApi, AXConversationRegistryComponentOutletComponent, AXConversationRegistryService, AXConversationService, AXConversationSidebarComponent, AXConversationSidebarService, AXConversationStickerRendererComponent, AXConversationStickerTabComponent, AXConversationSystemRendererComponent, AXConversationTabRegistry, AXConversationTextRendererComponent, AXConversationUserApi, AXConversationVideoAttachmentComponent, AXConversationVideoFileTypeProvider, AXConversationVideoPickerComponent, AXConversationVideoRendererComponent, AXConversationVoiceFileTypeProvider, AXConversationVoiceRecorderComponent, AXConversationVoiceRendererComponent, AX_CONVERSATION_AUDIO_CATALOG, AX_CONVERSATION_AUDIO_PRESENTATION, AX_CONVERSATION_AUDIO_RENDERER, AX_CONVERSATION_AVAILABLE_REACTIONS, AX_CONVERSATION_BUILTIN_COMPOSER_TABS, AX_CONVERSATION_COMPOSER_AUDIO_ACTION, AX_CONVERSATION_COMPOSER_EMOJI_ACTION, AX_CONVERSATION_COMPOSER_EMOJI_TAB, AX_CONVERSATION_COMPOSER_FILE_ACTION, AX_CONVERSATION_COMPOSER_IMAGE_ACTION, AX_CONVERSATION_COMPOSER_LOCATION_ACTION, AX_CONVERSATION_COMPOSER_STICKER_TAB, AX_CONVERSATION_COMPOSER_VIDEO_ACTION, AX_CONVERSATION_COMPOSER_VOICE_RECORDING_ACTION, AX_CONVERSATION_CONFIG, AX_CONVERSATION_CONNECTION_ERRORS, AX_CONVERSATION_CONVERSATION_AVATAR_COMPONENT, AX_CONVERSATION_DEFAULT_COMPOSER_ACTIONS, AX_CONVERSATION_DEFAULT_COMPOSER_TABS, AX_CONVERSATION_DEFAULT_CONVERSATION_ITEM_ACTIONS, AX_CONVERSATION_DEFAULT_CONVERSATION_TABS, AX_CONVERSATION_DEFAULT_GROUP_ICON, AX_CONVERSATION_DEFAULT_INFO_BAR_ACTIONS, AX_CONVERSATION_DEFAULT_MESSAGE_ACTIONS, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND_PRESET_ID, AX_CONVERSATION_DEFAULT_MESSAGE_LIST_THEME_BACKGROUND, AX_CONVERSATION_DEFAULT_MESSAGE_RENDERERS, AX_CONVERSATION_DEFAULT_ROOM_PREFERENCES, AX_CONVERSATION_DEFAULT_USER_ICON, AX_CONVERSATION_ERRORS, AX_CONVERSATION_ERROR_HANDLER_CONFIG, AX_CONVERSATION_ERROR_MESSAGES, AX_CONVERSATION_FALLBACK_RENDERER, AX_CONVERSATION_FILE_CATALOG, AX_CONVERSATION_FILE_ERRORS, AX_CONVERSATION_FILE_PRESENTATION, AX_CONVERSATION_FILE_RENDERER, AX_CONVERSATION_FILE_TYPES_READY, AX_CONVERSATION_IMAGE_CATALOG, AX_CONVERSATION_IMAGE_PRESENTATION, AX_CONVERSATION_IMAGE_RENDERER, AX_CONVERSATION_INFO_BAR_ARCHIVE_ACTION, AX_CONVERSATION_INFO_BAR_BLOCK_ACTION, AX_CONVERSATION_INFO_BAR_DELETE_ACTION, AX_CONVERSATION_INFO_BAR_DIVIDER, AX_CONVERSATION_INFO_BAR_MUTE_ACTION, AX_CONVERSATION_INFO_BAR_SEARCH_ACTION, AX_CONVERSATION_ITEM_BLOCK_ACTION, AX_CONVERSATION_ITEM_DELETE_ACTION, AX_CONVERSATION_ITEM_DIVIDER, AX_CONVERSATION_ITEM_MARK_READ_ACTION, AX_CONVERSATION_ITEM_MUTE_ACTION, AX_CONVERSATION_ITEM_PIN_ACTION, AX_CONVERSATION_JUMBO_EMOJI_MAX, AX_CONVERSATION_LOCATION_ERRORS, AX_CONVERSATION_LOCATION_RENDERER, AX_CONVERSATION_MESSAGE_DELETE_ACTION, AX_CONVERSATION_MESSAGE_EDIT_ACTION, AX_CONVERSATION_MESSAGE_ERRORS, AX_CONVERSATION_MESSAGE_FORWARD_ACTION, AX_CONVERSATION_MESSAGE_LIST_BACKGROUND_PRESETS, AX_CONVERSATION_MESSAGE_PIN_ACTION, AX_CONVERSATION_MESSAGE_REPLY_ACTION, AX_CONVERSATION_MESSAGE_SELECT_ACTION, AX_CONVERSATION_MESSAGE_TYPE_FILE_TYPE, AX_CONVERSATION_MESSAGE_UNPIN_ACTION, AX_CONVERSATION_PEER_AVATAR_TYPES, AX_CONVERSATION_REACTION_BAR_SIZE, AX_CONVERSATION_REGISTRY_CONFIG, AX_CONVERSATION_STICKER_API_KEY, AX_CONVERSATION_STICKER_RENDERER, AX_CONVERSATION_SYSTEM_RENDERER, AX_CONVERSATION_TAB_ALL, AX_CONVERSATION_TAB_ARCHIVED, AX_CONVERSATION_TAB_BOT, AX_CONVERSATION_TAB_CHANNELS, AX_CONVERSATION_TAB_GROUPS, AX_CONVERSATION_TAB_PRIVATE, AX_CONVERSATION_TAB_UNREAD, AX_CONVERSATION_TEXT_RENDERER, AX_CONVERSATION_URL_ERRORS, AX_CONVERSATION_USER_AVATAR_COMPONENT, AX_CONVERSATION_USER_ERRORS, AX_CONVERSATION_VIDEO_CATALOG, AX_CONVERSATION_VIDEO_PRESENTATION, AX_CONVERSATION_VIDEO_RENDERER, AX_CONVERSATION_VOICE_CATALOG, AX_CONVERSATION_VOICE_PRESENTATION, AX_CONVERSATION_VOICE_RENDERER, AX_DEFAULT_CONVERSATION_CONFIG, abortPickerUploads, applyAudioLocalPreview, applyFileLocalPreview, applyLocalPreview, applyVideoLocalPreview, applyVoiceLocalPreview, audioItemFromUpload, bindMediaRendererContentState, buildMediaGalleryTiles, canManageConversationPins, canShowRendererContentError, cleanupPickerUploads, conversationAudioUtilities, conversationFileUtilities, conversationImageUtilities, conversationVideoUtilities, conversationVoiceUtilities, copyWithFileTypeFallback, countLoneEmojis, createConversationAudioFileType, createConversationFileFileType, createConversationImageFileType, createConversationVideoFileType, createConversationVoiceFileType, createLocalPreviewUrl, createObjectUrl, createPickerDragHandlers, createPickerUploadItemId, createResolvedMediaUrlSignal, deleteUploadedPickerMedia, dismissComposerPickerHost, ensureConversationFileCatalogRegistered, fetchConversationMediaPage, fileItemAsAudioMedia, fileItemFromUpload, filesFromClipboardEvent, filterMessagesByMediaCategory, filterSupplementalInfoPanelMessages, findExistingPrivateConversation, formatDuration, formatErrorMessage, formatFileByteSize, formatFileSize, formatMediaDuration, formatPickerValidationMessage, getActiveComposerPickerPasteHandler, getConversationMediaCategories, getConversationProfileFields, getErrorMessage, getMessageAudioItems, getMessageVideoItems, getPickerCancelUploadLabel, getPrivatePeerParticipant, hasRegistryComponent, inferFileExtensionHintFromMessage, isAttachmentListCategory, isComposerAttachmentBannerEnabled, isComposerTabEnabled, isConversationReactionsEnabled, isConversationRoomCreator, isGenericPrivateConversationTitle, isGridMediaCategory, isGroupLikeConversation, isJumboEmojiText, isJumboEmojiTextMessage, isMessageDeliveryPending, isMessageListThemeBackground, isMessageVisibleAfterHistoryCutoff, isNonPersistableMediaUrl, isPickerItemReadyToSend, isPlainChromeMessage, isSameMessageListBackground, isUploadAborted, limitFilesToCapacity, listTextGraphemes, mediaCopyText, mergeAudioUploadResult, mergeFileUploadResult, mergeInfoPanelMessages, mergeUploadResult, mergeVideoUploadResult, mergeVoiceUploadResult, mergeWithDefaults, messageContainsLink, normalizeAudioPayload, normalizeConversationInboundFile, normalizeFilePayload, normalizeImagePayload, normalizeMessageListBackgroundValue, normalizeVideoPayload, notifyMaxFilesCapacityExceeded, notifyPickerValidationErrors, openWithFileType, pickDisplayMediaUrl, pickEarliestJoinedParticipant, pickerItemToMediaReference, pickerItemToUploadResult, probeAudioDuration, probeImageDimensions, probeVideoMedia, provideConversation, provideConversationComposerFileTypes, provideConversationFileCatalog, registerComposerPickerPasteHandler, reportMediaLoadError, resolveComposerAttachmentPresentation, resolveComposerMaxFiles, resolveConversationAvatarDisplay, resolveConversationComposerTabs, resolveConversationForViewer, resolveConversationMessageFileType, resolveConversationPeerParticipant, resolveConversationPeerUserId, resolveConversationTitleForViewer, resolveGalleryImageUrl, resolveImageDisplayUrl, resolveMessageChrome, resolveMessageListBackgroundRaw, resolveMessageListBackgroundStyle, resolveParticipantProfile, resolvePersistableMediaUrl, resolvePersistedThumbnailUrl, resolvePrivatePeerParticipant, resolvePrivatePeerUserId, resolveUserAvatarDisplay, resolveVideoThumbnailUrl, revokeObjectUrl, revokePickerBlobPreviews, sanitizeInput, shouldUseUserAvatarForConversation, sortUsersForForward, splitConversationTextLinks, syncPlaybackInfoBarBanner, toUploaderReference as toMediaItemUploaderReference, toUploaderReference$1 as toUploaderReference, uploadPickerFile, usesDefaultMessageListWallpaper, validateConversationId, validateEmail, validateLatitude, validateLongitude, validateMessagePayload, validateMessageText, validateMessageType, validateUrl, validateUserId, validateUserIds, videoItemFromUpload };
|
|
7178
|
+
export type { AXConversation, AXConversationApiError, AXConversationApiLogEntry, AXConversationApiName, AXConversationAudioMediaItem, AXConversationAudioPayload, AXConversationAvatarComponents, AXConversationAvatarDisplay, AXConversationAvatarKind, AXConversationBlockReportReason, AXConversationCleanupPickerUploadsOptions, AXConversationComposerAction, AXConversationComposerActionComponent, AXConversationComposerActionContext, AXConversationComposerAttachmentPresentation, AXConversationComposerDraftAttachment, AXConversationComposerDraftAttachmentKind, AXConversationComposerGenerationPhase, AXConversationComposerPickerUploadItem, AXConversationComposerPrimaryButtonMode, AXConversationComposerTab, AXConversationComposerTabFeature, AXConversationConfig, AXConversationConnectionStatus, AXConversationConversationAvatarComponent, AXConversationCreateData, AXConversationDateSeparatorKind, AXConversationDeleteDialogMode, AXConversationDeleteDialogResult, AXConversationDeleteMessageCommand, AXConversationDeleteOptions, AXConversationDropdownMenuItem, AXConversationEditMessageCommand, AXConversationError, AXConversationErrorCode, AXConversationErrorHandlerConfig, AXConversationErrorMessage, AXConversationErrorSeverity, AXConversationFeatures, AXConversationFileMediaItem, AXConversationFilePayload, AXConversationFilter, AXConversationFilters, AXConversationForwardUserSortEntry, AXConversationGroupedReaction, AXConversationImageMediaItem, AXConversationImagePayload, AXConversationInfoBarAction, AXConversationInfoBarActionComponent, AXConversationInfoBarActionContext, AXConversationInfoBarActiveBanner, AXConversationInfoBarActiveComponent, AXConversationInfoProfileField, AXConversationItemAction, AXConversationItemActionContext, AXConversationLink, AXConversationLinkPreview, AXConversationLoadMessagesResult, AXConversationLocationPayload, AXConversationMediaCategory, AXConversationMediaCategoryId, AXConversationMediaDimensions, AXConversationMediaGalleryTile, AXConversationMediaItemFields, AXConversationMediaPageResult, AXConversationMention, AXConversationMentionPerson, AXConversationMentionSearchContext, AXConversationMentionsConfig, AXConversationMessage, AXConversationMessageAction, AXConversationMessageActionContext, AXConversationMessageChrome, AXConversationMessageClusterRole, AXConversationMessageDateGroup, AXConversationMessageForwardData, AXConversationMessageInfoBarBannerComponent, AXConversationMessageListBackground, AXConversationMessageListBackgroundPreset, AXConversationMessageListEmptyComponent, AXConversationMessageListThemeBackground, AXConversationMessagePayload, AXConversationMessagePreview, AXConversationMessageRenderer, AXConversationMessageRendererCapabilities, AXConversationMessageRendererComponent, AXConversationMessageRendererContentState, AXConversationMessageRendererState, AXConversationMessageSearchFilters, AXConversationMessageStatus, AXConversationMessageType, AXConversationMetadata, AXConversationOptions, AXConversationOutletSkeleton, AXConversationPaginatedResult, AXConversationPagination, AXConversationPaginationState, AXConversationParticipant, AXConversationParticipantRole, AXConversationParticipantUpdate, AXConversationPickerPasteHandler, AXConversationPinnedMessage, AXConversationPinnedMessageEntry, AXConversationPlaybackBannerInputs, AXConversationPollOption, AXConversationPollPayload, AXConversationPresenceStatus, AXConversationPresenceUpdate, AXConversationReaction, AXConversationReadReceipt, AXConversationRegistryComponentRef, AXConversationRegistryConfiguration, AXConversationRegistryItem, AXConversationRoomPreferences, AXConversationRoomPreferencesMap, AXConversationSelectionAction, AXConversationSelectionActionContext, AXConversationSendMessageCommand, AXConversationSendMessageOptions, AXConversationSendMessageUploadSource, AXConversationSettingsUpdate, AXConversationSidebarTabsOrientation, AXConversationSort, AXConversationStickerPayload, AXConversationSystemPayload, AXConversationTab, AXConversationTextFormat, AXConversationTextLinkPiece, AXConversationTextPayload, AXConversationType, AXConversationTypingIndicator, AXConversationUpdateData, AXConversationUploadOptions, AXConversationUploaderFilePreview, AXConversationUploaderReference, AXConversationUploaderResult, AXConversationUser, AXConversationUserAvatarComponent, AXConversationUserPresence, AXConversationUserProfile, AXConversationUserProfileUpdate, AXConversationUserSearchFilters, AXConversationValidationResult, AXConversationVideoMediaItem, AXConversationVideoPayload, AXConversationVoicePayload };
|