MCPcopy Index your code

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

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

↓ 50 callersMethodreset
* Reset the formatter state to initial values. * * Clears original text, formatted text, metadata, and detected URLs.
projects/cometchat-uikit/src/lib/formatters/cometchat-url-formatter.ts:150
↓ 49 callersMethodsetSessionID
Sets the current call session ID. @see Requirement 1.6
projects/cometchat-uikit/src/lib/services/ongoing-call.service.ts:32
↓ 48 callersMethodannounce
(key: string)
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-media-recorder/cometchat-media-recorder.component.ts:238
↓ 48 callersMethodisActive
Check if a specific format is currently active at the cursor position.
projects/cometchat-uikit/src/lib/services/format-manager.class.ts:153
↓ 48 callersFunctionselectAll
* Helper: select all text content inside the element.
projects/cometchat-uikit/src/lib/services/format-manager.class.spec.ts:45
↓ 48 callersMethodsetCurrentLanguage
* Sets the current language and reinitializes with the new language. * * @param language - The language code to set * * @example * Come
projects/cometchat-uikit/src/lib/resources/CometChatLocalize/cometchat-localize.ts:223
↓ 47 callersFunctioncreateMockConversation
* Creates a mock CometChat.Conversation with a user or group.
projects/cometchat-uikit/src/lib/components/cometchat-conversation-item/cometchat-conversation-item.component.spec.ts:490
↓ 47 callersFunctioncreateMockMessage
( opts: { text?: string; type?: string; senderName?: string; deletedAt?: number; } = {} )
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-message-preview/cometchat-message-preview.component.spec.ts:67
↓ 47 callersMethodgetSender
()
projects/cometchat-uikit/src/lib/components/cometchat-conversations/cometchat-conversations-component.spec.ts:69
↓ 47 callersMethodgetStatus
()
projects/cometchat-uikit/src/lib/utils/CallLogUtils.ts:21
↓ 47 callersFunctioninitAndDetect
Triggers async init and runs change detection.
projects/cometchat-uikit/src/lib/components/cometchat-message-bubble/cometchat-message-bubble.component.spec.ts:145
↓ 47 callersFunctionmockGroup
Creates a Group with the given guid, owner UID, and logged-in user scope
projects/cometchat-uikit/src/lib/utils/GroupMemberUtils.spec.ts:33
↓ 46 callersFunctioncreateFakeTemplateRef
Creates a fake TemplateRef for testing — sufficient for identity/reference checks.
projects/cometchat-uikit/src/lib/services/message-bubble-config.service.spec.ts:38
↓ 46 callersFunctioncreateMockReaction
(emoji: string, uid: string, name: string)
projects/cometchat-uikit/src/lib/components/cometchat-reaction-list/cometchat-reaction-list.component.spec.ts:221
↓ 46 callersFunctiongetNextIndex
( currentIndex: number, direction: NavigationDirection, totalItems: number, options?: GetNextIndexOpti
projects/cometchat-uikit/src/lib/utils/keyboard-utils.ts:85
↓ 46 callersFunctionmockGroupMember
Creates a GroupMember with the given uid, scope, and optional name
projects/cometchat-uikit/src/lib/utils/GroupMemberUtils.spec.ts:24
↓ 46 callersMethodopenDialog
* Opens a dialog with focus management. * * Sets ARIA attributes, activates focus trap, and handles Escape key. * * @param config - Config
projects/cometchat-uikit/src/lib/services/dialog-focus-manager.service.ts:71
↓ 45 callersFunctionmakeTextMessage
(id: number, text: string, sentAt = 1700000000)
projects/cometchat-uikit/src/lib/components/cometchat-ai-assistant-chat-history/cometchat-ai-assistant-chat-history.component.spec.ts:11
↓ 44 callersFunctioncreateTextMessage
Creates a real CometChat.TextMessage (local only, not sent).
projects/cometchat-uikit/src/lib/components/cometchat-message-bubble/cometchat-message-bubble.component.spec.ts:84
↓ 44 callersFunctioncreateTextMessage
(text: string, senderUid = 'superhero1')
projects/cometchat-uikit/src/lib/components/cometchat-message-information/cometchat-message-information.component.spec.ts:46
↓ 44 callersFunctioninitAndDetect
( fixture: ComponentFixture<CometChatMessageComposerComponent> )
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.component.spec.ts:39
↓ 44 callersFunctionsetupComponent
(inputs: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/components/cometchat-ai-assistant-chat-history/cometchat-ai-assistant-chat-history.component.spec.ts:66
↓ 43 callersFunctioncreateCallMessage
* Creates a minimal mock call message object that satisfies the component's * expected CometChat.Call interface. Real SDK Call objects require an act
projects/cometchat-uikit/src/lib/components/cometchat-call-bubble/cometchat-call-bubble.component.spec.ts:31
↓ 43 callersFunctioncreateMockFileMessage
* Creates a mock file message object that mimics CometChat.MediaMessage * with the given number of attachments and optional caption.
projects/cometchat-uikit/src/lib/components/cometchat-file-bubble/cometchat-file-bubble.component.spec.ts:35
↓ 43 callersFunctiongetButton
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-button/cometchat-button.component.spec.ts:45
↓ 43 callersMethodgetHTML
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:247
↓ 42 callersMethodaddEventListener
(event: string, handler: Function)
projects/cometchat-uikit/src/lib/components/cometchat-message-header/cometchat-message-header-call-button-hover.property.spec.ts:67
↓ 42 callersMethodgetElement
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:244
↓ 41 callersMethodhandleCharacter
* Handles a character input for type-ahead search. * Returns the index of the matching item, or -1 if no match. * * Characters are collected
projects/cometchat-uikit/src/lib/services/type-ahead.service.ts:67
↓ 41 callersFunctionsetupComponent
(inputs: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/components/cometchat-ai-assistant-chat/cometchat-ai-assistant-chat.component.spec.ts:62
↓ 41 callersMethodshow
* Show a toast notification with custom configuration * * @param config - Toast configuration options * @returns The ID of the created toast
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-toast/cometchat-toast.service.ts:97
↓ 40 callersFunctioncreateMockGroup
* Creates a mock CometChat.Group with sensible defaults.
projects/cometchat-uikit/src/lib/components/cometchat-group-item/cometchat-group-item.component.spec.ts:235
↓ 39 callersMethodapplyCodeBlock
* Apply code block formatting (&lt;pre&gt;). * Exits if already in a code block. Removes blockquote first (mutual exclusivity). * @see Req 2.6
projects/cometchat-uikit/src/lib/services/format-manager.class.ts:77
↓ 39 callersFunctioncreateMockMember
* Creates a mock CometChat.GroupMember with sensible defaults.
projects/cometchat-uikit/src/lib/components/cometchat-group-member-item/cometchat-group-member-item.component.spec.ts:248
↓ 39 callersFunctiondelay
(ms: number)
projects/cometchat-uikit/src/lib/testing/accessibility-test-utils.ts:204
↓ 38 callersMethodaddEventListener
(target: EventTarget, type: string, listener: EventListener)
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:130
↓ 38 callersFunctioncreateComponent
* Creates a CometChatReactionsComponent instance via Object.create() * to bypass Angular's inject() context requirement. * Manually wires dependenci
projects/cometchat-uikit/src/lib/components/cometchat-reactions/cometchat-reactions.component.spec.ts:193
↓ 38 callersMethodopenPopover
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-popover/cometchat-popover.component.ts:117
↓ 37 callersFunctioncreateMockCall
(overrides: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/events/CometChatCallEvents.spec.ts:35
↓ 37 callersFunctioncreateMockUser
(uid: string, name?: string)
projects/cometchat-uikit/src/lib/components/cometchat-call-buttons/cometchat-call-buttons.component.spec.ts:205
↓ 37 callersMethoddeactivate
* Deactivates focus trap and optionally restores focus. * * Removes the keydown listener and restores focus to the element * that was focused
projects/cometchat-uikit/src/lib/services/focus-trap.service.ts:139
↓ 37 callersMethoddestroy
()
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/wavesurfer/timer.ts:32
↓ 37 callersMethodsetGroup
(group: CometChat.Group)
projects/cometchat-uikit/src/lib/components/cometchat-message-list/cometchat-message-list.event-handlers.ts:78
↓ 36 callersFunctioncreateMockCall
* Creates a mock CometChat.Call object for testing. * We use mock calls because real SDK call creation requires an active call session * which i
projects/cometchat-uikit/src/lib/services/incoming-call.service.spec.ts:61
↓ 36 callersFunctioncreateMockMessage
* Helper to create a mock message with given attachments
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/cometchat-audio-bubble.property.spec.ts:75
↓ 36 callersFunctiongetLastAudioInstance
()
projects/cometchat-uikit/src/lib/resources/CometChatSoundManager/CometChatSoundManager.spec.ts:45
↓ 36 callersFunctioninitAndDetect
( fixture: ComponentFixture<CometChatThreadViewComponent> )
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-thread-view/cometchat-thread-view.component.spec.ts:36
↓ 36 callersFunctioninitAndDetect
(fixture: ComponentFixture<CometChatCallLogsComponent>)
projects/cometchat-uikit/src/lib/components/cometchat-call-logs/cometchat-call-logs.component.spec.ts:139
↓ 36 callersFunctionstripRichTextFormatting
(text: string)
projects/cometchat-uikit/src/lib/utils/util.ts:101
↓ 35 callersMethodapplyItalic
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.keydown-handler.ts:10
↓ 35 callersMethodgetActiveCount
* Get the count of active toasts * * @returns The number of active toasts
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-toast/cometchat-toast.service.ts:239
↓ 35 callersMethodgetLoggedInUser
()
projects/cometchat-uikit/src/lib/cometchat-uikit.ts:74
↓ 35 callersMethodgetLoggedinUser
()
projects/cometchat-uikit/src/lib/cometchat-uikit.ts:247
↓ 35 callersMethodgetName
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:39
↓ 35 callersMethodisEmpty
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:251
↓ 34 callersMethodID
* Generates a unique identifier string. * The ID is composed of: * - 'cc_' prefix for CometChat identification * - Current timestamp in milli
projects/cometchat-uikit/src/lib/CometChatUIKitUtility.ts:21
↓ 33 callersMethodaddMessage
(message: CometChat.BaseMessage)
projects/cometchat-uikit/src/lib/services/message-list.listeners.ts:25
↓ 33 callersFunctioncreateMockTemplateRef
* Creates a mock TemplateRef for testing purposes. * Each mock has a unique identifier to verify round-trip equality.
projects/cometchat-uikit/src/lib/services/templates.service.property.spec.ts:37
↓ 33 callersFunctionfetchTestGroup
(guid: string)
projects/cometchat-uikit/src/lib/test-setup.ts:156
↓ 33 callersMethodgetMentions
()
projects/cometchat-uikit/src/lib/formatters/cometchat-mentions-formatter.ts:173
↓ 33 callersMethodgetUid
()
projects/cometchat-uikit/src/lib/components/cometchat-call-logs/cometchat-call-logs.stories.ts:40
↓ 33 callersFunctioninitAndDetect
( fixture: ComponentFixture<CometChatGroupMembersComponent> )
projects/cometchat-uikit/src/lib/components/cometchat-group-members/cometchat-group-members.component.spec.ts:41
↓ 33 callersFunctionlog
(message, color = colors.reset)
scripts/storybook-performance.js:28
↓ 33 callersMethodsetIncomingCall
* Sets the current incoming call. * @param call - The incoming call object, or null to clear
projects/cometchat-uikit/src/lib/services/incoming-call.service.ts:102
↓ 33 callersFunctionsetInputValue
Sets an input value and dispatches the input event so the component picks it up
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-link-dialog/cometchat-link-dialog.component.spec.ts:86
↓ 33 callersMethodsetLimit
(limit: number)
projects/cometchat-uikit/src/lib/services/call-logs.service.spec.ts:39
↓ 33 callersFunctionsetMessageAndDetect
* Simulates ngOnChanges for the message input on the component.
projects/cometchat-uikit/src/lib/components/cometchat-sticker-bubble/cometchat-sticker-bubble.component.spec.ts:48
↓ 32 callersFunctioncreateMockGroup
(overrides: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/events/CometChatGroupEvents.spec.ts:48
↓ 32 callersFunctioncreateMockUser
(overrides: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/events/CometChatUserEvents.spec.ts:37
↓ 32 callersFunctioncreateTextMessage
* Creates a real CometChat.TextMessage for testing. * Uses the SDK constructor so the object has all real methods.
projects/cometchat-uikit/src/lib/components/cometchat-thread-header/cometchat-thread-header.component.spec.ts:50
↓ 32 callersMethodfetchConversations
(builder?: CometChat.ConversationsRequestBuilder)
projects/cometchat-uikit/src/lib/services/conversations.service.ts:110
↓ 31 callersMethodclone
* Creates a deep clone of the given object, preserving prototype chain and * property descriptors. Functions are copied by reference. * * Mir
projects/cometchat-uikit/src/lib/CometChatUIKitUtility.ts:35
↓ 31 callersFunctioncreateMockUser
* Creates a mock CometChat.User with sensible defaults.
projects/cometchat-uikit/src/lib/components/cometchat-user-item/cometchat-user-item.component.spec.ts:232
↓ 31 callersMethoderrorMessage
Error message from localization
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-confirm-dialog/cometchat-confirm-dialog.component.ts:96
↓ 31 callersMethodformatSdkMentions
( text: string, mentionedUsers: (CometChat.User | CometChat.GroupMember)[] = [] )
projects/cometchat-uikit/src/lib/formatters/cometchat-mentions-formatter.ts:108
↓ 31 callersMethodgetTextWithMentionFormat
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:318
↓ 31 callersMethodisStreamingFor
Returns a stable callable+Observable for the given chatId's streaming state.
projects/cometchat-uikit/src/lib/services/cometchat-ai-streaming.service.ts:71
↓ 31 callersFunctionmakeKeyEvent
(key: string, opts: Partial<KeyboardEventInit> = {})
projects/cometchat-uikit/src/lib/services/grid-navigation.service.spec.ts:163
↓ 31 callersMethodngOnInit
()
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/cometchat-audio-bubble.component.ts:113
↓ 31 callersMethodsetCursorPosition
(position: 'start' | 'end' | number)
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:257
↓ 30 callersMethodapplyUnderline
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.keydown-handler.ts:11
↓ 30 callersFunctioncreateMockCallLog
( overrides: { sessionId?: string; type?: string; status?: string; initiatorUid?: string;
projects/cometchat-uikit/src/lib/components/cometchat-call-logs/cometchat-call-logs.component.spec.ts:102
↓ 30 callersFunctioncreateMockMessage
* Creates a mock message.
projects/cometchat-uikit/src/lib/components/cometchat-conversations/conversations.property.spec.ts:89
↓ 30 callersFunctioncreateMockUser
( overrides?: Partial<{ uid: string; name: string; avatar: string; status: string; role:
projects/cometchat-uikit/src/lib/testing/mock-sdk-user.ts:28
↓ 30 callersFunctiongetActionItems
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-action-sheet/cometchat-action-sheet.component.spec.ts:75
↓ 30 callersMethodgetAudioState
(index: number)
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/cometchat-audio-bubble.component.ts:170
↓ 30 callersMethodgetConversationTemplates
Gets the current conversation templates synchronously.
projects/cometchat-uikit/src/lib/services/templates.service.ts:197
↓ 30 callersMethodhandleMenuClick
(event?: Event)
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-context-menu/cometchat-context-menu.component.ts:200
↓ 30 callersFunctionmakeEvent
( type: string, messageId: string, extra: Record<string, unknown> = {} )
projects/cometchat-uikit/src/lib/services/cometchat-ai-streaming.service.spec.ts:13
↓ 30 callersMethodredo
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.keydown-handler.ts:13
↓ 30 callersMethodremove
* Remove a toast by ID * * @param id - The ID of the toast to remove
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-toast/cometchat-toast.service.ts:147
↓ 30 callersMethodsetActiveUser
(user: MockUser | null)
projects/cometchat-uikit/src/lib/components/__tests__/active-selection.property.spec.ts:143
↓ 29 callersMethodbuild
()
projects/cometchat-uikit/src/lib/services/call-logs.service.spec.ts:51
↓ 29 callersFunctioncreateComponent
* Creates a CometChatCreatePollComponent instance via Object.create() * to bypass Angular's inject() context requirement. * Manually wires signals,
projects/cometchat-uikit/src/lib/components/cometchat-create-poll/cometchat-create-poll.component.spec.ts:161
↓ 29 callersFunctioncreateMockBaseMessage
(overrides: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/events/CometChatMessageEvents.spec.ts:41
↓ 29 callersFunctioncreateMockIMessages
(overrides: Partial<IMessages> = {})
projects/cometchat-uikit/src/lib/events/CometChatMessageEvents.spec.ts:53
↓ 29 callersMethodendCall
Ends the current call and cleans up the session. @see Requirements 1.4, 1.5, 11.3
projects/cometchat-uikit/src/lib/services/ongoing-call.service.ts:202
↓ 29 callersFunctionexpectAriaAttribute
( element: HTMLElement, attribute: string, expectedValue: string | null )
projects/cometchat-uikit/src/lib/testing/accessibility-test-utils.ts:152
↓ 29 callersFunctioninitAndDetect
( fixture: ComponentFixture<CometChatMessageListComponent> )
projects/cometchat-uikit/src/lib/components/cometchat-message-list/cometchat-message-list.component.spec.ts:40
↓ 29 callersMethodmessageToReplySignal
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/message-composer-extensions.integration.spec.ts:260
← previousnext →101–200 of 6,248, ranked by callers