MCPcopy Index your code

hub / github.com/cometchat/cometchat-uikit-angular / functions

Functions6,248 in github.com/cometchat/cometchat-uikit-angular

↓ 16 callersMethodexitReplyMode
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.send-utils.ts:31
↓ 16 callersMethodfetchNextAndAppendUsers
* Simulates the fetchNextAndAppendUsers method * This is the core pagination logic being tested
projects/cometchat-uikit/src/lib/components/cometchat-users/cometchat-users.component.property.spec.ts:179
↓ 16 callersMethodgetActiveGroup
* Gets the current active group (snapshot, non-reactive). * @returns The currently active group, or null
projects/cometchat-uikit/src/lib/services/chat-state.service.ts:139
↓ 16 callersMethodgetConversationId
(conversation: CometChat.Conversation)
projects/cometchat-uikit/src/lib/components/cometchat-conversations/cometchat-conversations.component.ts:384
↓ 16 callersMethodgetCursorPosition
* Get the current cursor position as a character offset * Returns 0 if no selection exists * * @returns Character offset from start of elemen
projects/cometchat-uikit/src/lib/services/selection-manager.class.ts:186
↓ 16 callersMethodgetFileSizeError
* Get the current file size error
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/file-size-validation.property.spec.ts:155
↓ 16 callersMethodgetFileType
(file: File)
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.drag-utils.ts:23
↓ 16 callersMethodgetReaction
()
projects/cometchat-uikit/src/lib/components/cometchat-reactions/cometchat-reactions.component.spec.ts:161
↓ 16 callersMethodgetReceiverId
()
projects/cometchat-uikit/src/lib/components/cometchat-conversations/conversation-list-updates.property.spec.ts:142
↓ 16 callersMethodhasSelection
* Check if there is an active selection (not just a cursor) * Returns true if selection has non-zero length * * @returns True if there is a s
projects/cometchat-uikit/src/lib/services/selection-manager.class.ts:209
↓ 16 callersMethodinitiateAudioCall
Initiates an audio call. @see Requirements 2.1, 3.1
projects/cometchat-uikit/src/lib/services/call-buttons.service.ts:81
↓ 16 callersMethodisInList
@returns True if cursor is inside a list (ol or ul).
projects/cometchat-uikit/src/lib/services/list-manager.class.ts:75
↓ 16 callersFunctionisSentByMe
(call: CallLogLike, loggedInUser: { getUid(): string })
projects/cometchat-uikit/src/lib/utils/CallLogUtils.ts:40
↓ 16 callersMethodonCreateClick
* Handles create poll button click. * Validates input and creates the poll. * @see Requirements 1.9, 1.10, 1.11, 1.12, 1.15, 1.16, 1.17
projects/cometchat-uikit/src/lib/components/cometchat-create-poll/cometchat-create-poll.component.ts:273
↓ 16 callersMethodplay
* Plays a predefined sound based on the provided sound type. * @param {"incomingCall" | "incomingMessage" | "incomingMessageFromOther" | "outgoingC
projects/cometchat-uikit/src/lib/resources/CometChatSoundManager/CometChatSoundManager.ts:183
↓ 16 callersFunctionresetMockMessageIdCounter
()
projects/cometchat-uikit/src/lib/testing/mock-sdk-user.ts:19
↓ 16 callersMethodsetMuid
(_muid: string)
projects/cometchat-uikit/src/lib/components/cometchat-call-buttons/cometchat-call-buttons.component.spec.ts:167
↓ 15 callersMethodblur
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:256
↓ 15 callersFunctioncleanupTimeouts
* Cleans up all pending timeouts
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:3692
↓ 15 callersMethodclearConversationTemplates
Clears all conversation templates, resetting to defaults.
projects/cometchat-uikit/src/lib/services/templates.service.ts:202
↓ 15 callersMethodclearSelection
()
projects/cometchat-uikit/src/lib/utils/list-keyboard-handler.ts:44
↓ 15 callersMethodcloseSidePanel
Closes the side panel.
projects/sample-app/src/app/services/navigation.service.ts:107
↓ 15 callersMethodcreateActionMessage
* Creates an Action message for group member operations (kick, ban, scope change). * * @param actionOn - The group member the action is performe
projects/cometchat-uikit/src/lib/utils/GroupMemberUtils.ts:326
↓ 15 callersFunctioncreateAlphabeticalMockUsers
* Creates mock users with realistic alphabetical names for section headers.
projects/cometchat-uikit/src/lib/components/cometchat-users/cometchat-users.stories.ts:33
↓ 15 callersFunctioncreateClosedState
()
projects/sample-app/src/app/components/cometchat-create-group/cometchat-create-group.a11y.spec.ts:48
↓ 15 callersFunctioncreateComponent
* Creates a CometChatSmartRepliesComponent instance via Object.create() * to bypass Angular's inject() context requirement. * Manually wires signals
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-smart-replies/cometchat-smart-replies.component.spec.ts:232
↓ 15 callersFunctioncreateComponent
* Creates a CometChatStickersKeyboardComponent instance via Object.create() * to bypass Angular's inject() context requirement. * Manually wires sig
projects/cometchat-uikit/src/lib/components/cometchat-stickers-keyboard/cometchat-stickers-keyboard.component.spec.ts:200
↓ 15 callersFunctioncreateKeyEvent
(key: string, opts: Partial<KeyboardEvent> = {})
projects/cometchat-uikit/src/lib/utils/list-keyboard-handler.spec.ts:43
↓ 15 callersFunctioncreateKeydownEvent
* Creates a KeyboardEvent for testing activation keys.
projects/cometchat-uikit/src/lib/keyboard-activation-parity.property.spec.ts:68
↓ 15 callersFunctioncreateMockAttachment
(url: string, type: 'image' | 'video' | 'audio' | 'file')
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-fullscreen-viewer/cometchat-fullscreen-viewer-mode-detection.property.spec.ts:56
↓ 15 callersFunctioncreateMockAttachment
(url: string, type: 'image' | 'video')
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-fullscreen-viewer/cometchat-fullscreen-viewer-keyboard.property.spec.ts:90
↓ 15 callersFunctioncreateSampleActions
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-action-sheet/cometchat-action-sheet.component.spec.ts:45
↓ 15 callersMethodcreateUser
(user: CometChat.User)
projects/cometchat-uikit/src/lib/cometchat-uikit.ts:283
↓ 15 callersMethodeffectiveTextFormatters
* Resolves the effective text formatters to pass to child lists. * * If the consumer provided `textFormatters`, use those. Otherwise, fall back
projects/cometchat-uikit/src/lib/components/cometchat-search/cometchat-search.component.ts:146
↓ 15 callersMethodexitList
Exit the current list, converting items back to text nodes with br tags.
projects/cometchat-uikit/src/lib/services/list-manager.class.ts:103
↓ 15 callersMethodfetchConversationStarters
* Fetches conversation starters from the CometChat AI extension. * * Sets loading state, calls the API, and updates the starters signal. * Li
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-conversation-starter/cometchat-conversation-starter.component.ts:297
↓ 15 callersMethodfetchPreviousMessages
()
projects/cometchat-uikit/src/lib/services/message-list.service.ts:250
↓ 15 callersMethodformatDuration
(seconds: number)
projects/cometchat-uikit/src/lib/components/cometchat-video-bubble/cometchat-video-bubble.component.ts:184
↓ 15 callersMethodgetCurrentFormats
Get the current format state for all supported formats.
projects/cometchat-uikit/src/lib/services/format-manager.class.ts:163
↓ 15 callersMethodgetLastMessage
()
projects/cometchat-uikit/src/lib/components/cometchat-conversations/cometchat-conversations-component.spec.ts:98
↓ 15 callersFunctiongetNavigationDirection
(event: KeyboardEvent)
projects/cometchat-uikit/src/lib/utils/keyboard-utils.ts:174
↓ 15 callersMethodhandleNewMessage
(message: CometChat.BaseMessage)
projects/cometchat-uikit/src/lib/services/message-list.listeners.ts:15
↓ 15 callersMethodisDialogActive
* Checks if a dialog is currently active. * * @param container - The dialog container element * @returns boolean - true if the dialog is acti
projects/cometchat-uikit/src/lib/services/dialog-focus-manager.service.ts:172
↓ 15 callersFunctionisEscapeKey
(event: KeyboardEvent)
projects/cometchat-uikit/src/lib/utils/keyboard-utils.ts:194
↓ 15 callersMethodisMemberSelected
(member: CometChat.GroupMember)
projects/cometchat-uikit/src/lib/components/cometchat-group-members/cometchat-group-members.component.ts:252
↓ 15 callersFunctionmakeEvent
( type: string, runId: string, chatId: string, extra: Partial<IAIStreamEvent> = {} )
projects/cometchat-uikit/src/lib/components/cometchat-stream-message-bubble/cometchat-stream-message-bubble.component.spec.ts:13
↓ 15 callersFunctionmakeEvent
* Creates a minimal AIAssistantBaseEvent-like object for testing. * We use plain objects that satisfy the interface rather than constructing * real
projects/cometchat-uikit/src/lib/services/cometchat-ai-streaming.property.spec.ts:22
↓ 15 callersFunctionmockUser
Creates a User with the given uid and optional name
projects/cometchat-uikit/src/lib/utils/GroupMemberUtils.spec.ts:42
↓ 15 callersFunctionopenDropdown
()
projects/cometchat-uikit/src/lib/testing/accessibility-integration.spec.ts:306
↓ 15 callersMethodreset
* Reset all state
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/reply-mode-metadata.property.spec.ts:124
↓ 15 callersMethodsendStickerMessage
* Simulate sending a sticker message * Mirrors the sendStickerMessage method in MessageComposer * * @param receiverId - User ID or Group ID
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/sticker-sending.property.spec.ts:138
↓ 15 callersMethodsetDefaultFormatters
* Set custom formatters to replace the defaults. * * This method replaces the built-in default formatters (mentions + URLs) * with the provid
projects/cometchat-uikit/src/lib/services/formatter-config.service.ts:62
↓ 15 callersMethodsetLink
(url: string | null, text?: string)
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:274
↓ 15 callersMethodsetStatus
(s: string)
projects/cometchat-uikit/src/lib/components/cometchat-user-item/cometchat-user-item.component.spec.ts:88
↓ 15 callersMethodupdateUser
(user: CometChat.User)
projects/cometchat-uikit/src/lib/cometchat-uikit.ts:289
↓ 15 callersFunctionverifyCallUser
(call: CallLogLike, loggedInUser: { getUid(): string })
projects/cometchat-uikit/src/lib/utils/CallLogUtils.ts:86
↓ 14 callersMethodattachListeners
* Attaches CometChat SDK message listeners. * Called automatically after successful login in CometChatUIKit.
projects/cometchat-uikit/src/lib/utils/ChatSdkEventInitializer.ts:20
↓ 14 callersFunctioncreateMockConversation
(overrides: Partial<MockConversation> = {})
projects/cometchat-uikit/src/lib/testing/conversations-message-events.integration.spec.ts:168
↓ 14 callersFunctioncreateMockGroup
( overrides?: Partial<{ guid: string; name: string; type: string; membersCount: number;
projects/cometchat-uikit/src/lib/testing/mock-sdk-group.ts:19
↓ 14 callersFunctioncreateMockTextMessage
(text = 'What do you think?')
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-smart-replies/cometchat-smart-replies.component.spec.ts:210
↓ 14 callersFunctioncreateRealisticMockGroups
* Creates mock groups with realistic team names for display.
projects/cometchat-uikit/src/lib/components/cometchat-groups/cometchat-groups.stories.ts:32
↓ 14 callersFunctioncreateRealisticMockMembers
* Creates mock group members with realistic names and varied scopes/statuses.
projects/cometchat-uikit/src/lib/components/cometchat-group-members/cometchat-group-members.stories.ts:36
↓ 14 callersFunctioncreateStickerMessage
* Creates a mock sticker message. * Mirrors the component's sticker message creation logic. * * @param receiverId - ID of the receiver
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:5050
↓ 14 callersFunctioncreateStoryReaction
(emoji: string, uid: string, name: string)
projects/cometchat-uikit/src/lib/components/cometchat-reaction-list/cometchat-reaction-list.stories.ts:57
↓ 14 callersFunctioncreateValidSettings
()
projects/cometchat-uikit/src/lib/cometchat-uikit.spec.ts:179
↓ 14 callersMethoddownload
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-fullscreen-viewer/cometchat-fullscreen-viewer-download.property.spec.ts:42
↓ 14 callersFunctionextractMentionMetadata
* Extracts mention metadata from text given a set of available users. * Mirrors the CometChatMentionsFormatter's format() method logic. * * **Prope
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:381
↓ 14 callersFunctionfindFontRuleForViewport
* Finds font rules for a given selector within a specific media query breakpoint. * A viewport width "matches" a media query `max-width: Xpx` if view
projects/cometchat-uikit/src/lib/components/cometchat-call-logs/cometchat-call-logs-font-fix.property.spec.ts:134
↓ 14 callersMethodformatFileSize
* Format file size in human-readable format. * @see Requirements 10.1-10.6
projects/cometchat-uikit/src/lib/components/cometchat-file-bubble/cometchat-file-bubble.component.ts:204
↓ 14 callersMethodformatTime
(timeInSeconds: number)
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/cometchat-audio-bubble.component.ts:390
↓ 14 callersMethodgetConversationWith
()
projects/cometchat-uikit/src/lib/components/cometchat-conversations/cometchat-conversations-component.spec.ts:95
↓ 14 callersFunctiongetListContainer
()
projects/cometchat-uikit/src/lib/components/cometchat-paginated-list/cometchat-paginated-list.component.spec.ts:144
↓ 14 callersMethodgetListTemplates
@deprecated Use typed methods (setUserTemplates, setGroupTemplates, etc.) instead.
projects/cometchat-uikit/src/lib/services/templates.service.ts:284
↓ 14 callersMethodgetSearchTemplates
()
projects/cometchat-uikit/src/lib/services/templates.service.ts:276
↓ 14 callersFunctionhandleActivation
( event: KeyboardEvent, callback: () => void, options?: HandleActivationOptions )
projects/cometchat-uikit/src/lib/utils/keyboard-utils.ts:44
↓ 14 callersFunctionhandleCallError
( err: unknown, errorCode: string, logPrefix: string, errorEmitter: EventEmitter<CometChat.CometChatEx
projects/cometchat-uikit/src/lib/utils/call-error-handler.ts:30
↓ 14 callersMethodhandleChanges
(changes: any)
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-fullscreen-viewer/cometchat-fullscreen-viewer-lifecycle.property.spec.ts:28
↓ 14 callersMethodhandleConversationsStateChange
(state: States)
projects/cometchat-uikit/src/lib/components/cometchat-search/cometchat-search.component.ts:311
↓ 14 callersMethodhandleError
(error: unknown, context: string)
projects/cometchat-uikit/src/lib/services/message-composer.service.ts:95
↓ 14 callersMethodhandleMessagesStateChange
(state: States)
projects/cometchat-uikit/src/lib/components/cometchat-search/cometchat-search.component.ts:315
↓ 14 callersFunctioninstallSDKMocks
()
projects/cometchat-uikit/src/lib/testing/mock-providers-calls.ts:152
↓ 14 callersMethodisUserSelected
(user: CometChat.User)
projects/cometchat-uikit/src/lib/components/cometchat-users/cometchat-users.component.ts:300
↓ 14 callersFunctionmakeCall
( type: string = CometChat.CALL_TYPE.AUDIO, status = 'ended', duration = 185, isOutgoing = true )
projects/cometchat-uikit/src/lib/components/cometchat-call-bubble/cometchat-call-bubble.stories.ts:33
↓ 14 callersFunctionopenOverlay
* Replicates DialogFocusManager.openDialog() behavior: * - Stores the previously focused element * - Moves focus to the first focusable element insi
projects/sample-app/src/app/components/cometchat-create-group/cometchat-create-group.a11y.spec.ts:70
↓ 14 callersMethodpause
Pause the audio
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/wavesurfer/player.ts:114
↓ 14 callersFunctionplaceCaretInside
* Helper: place cursor inside a specific element.
projects/cometchat-uikit/src/lib/services/list-manager.class.spec.ts:57
↓ 14 callersFunctionplaceCaretInside
* Helper: place cursor inside a specific element.
projects/cometchat-uikit/src/lib/services/link-manager.class.spec.ts:71
↓ 14 callersFunctionreadFileContent
(filePath: string)
projects/cometchat-uikit/src/lib/services/__tests__/manager-to-service-preservation.spec.ts:27
↓ 14 callersMethodreset
* Reset the simulator state
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/reply-event-emission.property.spec.ts:202
↓ 14 callersMethodreset
* Resets all app state to defaults. * Called on logout and other full-reset scenarios.
projects/sample-app/src/app/services/app-state.service.ts:110
↓ 14 callersFunctionresetStaticState
()
projects/cometchat-uikit/src/lib/cometchat-uikit.spec.ts:193
↓ 14 callersFunctionsanitizeCalendarObject
(calendarObject?: T | null)
projects/cometchat-uikit/src/lib/utils/util.ts:64
↓ 14 callersMethodsendCustomMessage
(message: CometChat.CustomMessage)
projects/cometchat-uikit/src/lib/cometchat-uikit.ts:307
↓ 14 callersMethodsetActiveConversation
(conversation: MockConversation | null)
projects/cometchat-uikit/src/lib/testing/message-header-chat-state.integration.spec.ts:45
↓ 14 callersMethodsetFocusedIndex
(index: number)
projects/cometchat-uikit/src/lib/components/cometchat-paginated-list/cometchat-paginated-list.component.ts:272
↓ 14 callersMethodsetMetadata
(_meta: any)
projects/cometchat-uikit/src/lib/components/cometchat-call-buttons/cometchat-call-buttons.component.spec.ts:166
↓ 14 callersMethodsetupListeners
(entityId: string, entityType: 'user' | 'group')
projects/cometchat-uikit/src/lib/services/message-header.service.ts:158
↓ 14 callersMethodshowError
Show an error toast.
projects/sample-app/src/app/services/toast.service.ts:36
↓ 14 callersFunctiontextMessageGenerator
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:758
↓ 14 callersFunctionupdateFocusedOption
()
projects/cometchat-uikit/src/lib/testing/accessibility-integration.spec.ts:331
← previousnext →401–500 of 6,248, ranked by callers