MCPcopy Index your code

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

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

↓ 29 callersFunctionmockLoggedIn
Creates a mock logged-in user
projects/cometchat-uikit/src/lib/utils/CallLogUtils.spec.ts:22
↓ 29 callersMethodnormalizeMessageId
(id: string | number)
projects/cometchat-uikit/src/lib/services/message-list.fetch-utils.ts:30
↓ 29 callersFunctionopenDropdown
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-dropdown/cometchat-dropdown.component.spec.ts:46
↓ 29 callersFunctionsetupOrderedList
* Helper: set up an ordered list with items and place cursor in a specific item.
projects/cometchat-uikit/src/lib/services/list-manager.class.spec.ts:73
↓ 28 callersMethodapplyStrikethrough
Apply strikethrough formatting. Skips mention spans. @see Req 2.4
projects/cometchat-uikit/src/lib/services/format-manager.class.ts:58
↓ 28 callersMethodcanUndo
* Check if undo is available * @returns True if there are entries in the undo stack * @see Requirements 6.1
projects/cometchat-uikit/src/lib/services/history-manager.class.ts:158
↓ 28 callersFunctioncreateMockConversation
* Creates a mock conversation.
projects/cometchat-uikit/src/lib/components/cometchat-conversations/conversations.property.spec.ts:100
↓ 28 callersMethodgetDefaultFormatters
Get the default text formatters. @see Requirements 11.1-11.3, 11.6
projects/cometchat-uikit/src/lib/services/formatter-config.service.ts:28
↓ 28 callersMethodgetTotalMessageCount
()
projects/cometchat-uikit/src/lib/services/message-list.service.ts:298
↓ 28 callersFunctionloginToApp
(page: Page, config?: Partial<AuthConfig>)
e2e/helpers/auth.ts:65
↓ 28 callersMethodsetSentAt
(t: number)
projects/cometchat-uikit/src/lib/components/cometchat-conversation-item/cometchat-conversation-item.component.spec.ts:179
↓ 28 callersMethodshouldFormat
* Check if this formatter should process the given text * @param text - The text to check * @returns Whether to apply this formatter
projects/cometchat-uikit/src/lib/formatters/cometchat-markdown-formatter.ts:289
↓ 27 callersFunctioncreateMockStickerMessage
* Creates a mock CustomMessage with configurable metadata and customData * that mimics CometChat.CustomMessage's API surface.
projects/cometchat-uikit/src/lib/components/cometchat-sticker-bubble/cometchat-sticker-bubble.component.spec.ts:33
↓ 27 callersFunctioncreateTextMessage
* Creates a real CometChat.TextMessage with the given text, sent to 'superhero2'. * Does NOT send it over the network — just constructs the SDK objec
projects/cometchat-uikit/src/lib/components/cometchat-text-bubble/cometchat-text-bubble.component.spec.ts:35
↓ 27 callersMethodgetConversationWith
()
projects/cometchat-uikit/src/lib/components/__tests__/active-selection.property.spec.ts:121
↓ 27 callersMethodgetUndoStackSize
* Get the size of the undo stack * @returns Number of entries in undo stack
projects/cometchat-uikit/src/lib/services/history-manager.class.ts:213
↓ 27 callersMethodgetViewMemberOptions
* Returns available options for a member based on the permission matrix. * Returns `CometChatOption[]` if actions are available, or the member's sc
projects/cometchat-uikit/src/lib/utils/GroupMemberUtils.ts:192
↓ 27 callersFunctioninitAndDetect
* Triggers async initialization (ngOnInit calls an async formatter init) * and then runs change detection so the DOM reflects the processed message.
projects/cometchat-uikit/src/lib/components/cometchat-text-bubble/cometchat-text-bubble.component.spec.ts:44
↓ 27 callersFunctionrunFetchCallLogs
* Runs fetchCallLogs with fake timers. * The service has a MIN_SHIMMER_TIME (1000ms) setTimeout internally.
projects/cometchat-uikit/src/lib/services/call-logs.service.spec.ts:110
↓ 27 callersMethodsetCallWorkflow
Sets the call workflow type. @see Requirement 1.6
projects/cometchat-uikit/src/lib/services/ongoing-call.service.ts:35
↓ 27 callersMethodsetHighlightedIndex
* Sets the highlighted index. * Use this to programmatically highlight a suggestion, * for example when the suggestions list changes. * *
projects/cometchat-uikit/src/lib/services/mentions-navigation.service.ts:144
↓ 26 callersFunctioncreateMockConversation
(overrides: Record<string, unknown> = {})
projects/cometchat-uikit/src/lib/events/CometChatConversationEvents.spec.ts:37
↓ 26 callersFunctioncreateMockUser
(uid = 'test-uid')
projects/cometchat-uikit/src/lib/cometchat-uikit.spec.ts:187
↓ 26 callersFunctionfilterEmojis
* Filter emojis based on search query by matching against each emoji's keywords array (case-insensitive). * Matches the updated component logic.
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-emoji-keyboard/emoji-search-filtering.property.spec.ts:78
↓ 26 callersMethodgetCategory
()
projects/cometchat-uikit/src/lib/testing/properties/message-type-delegation-properties.spec.ts:45
↓ 26 callersMethodgetRegex
()
projects/cometchat-uikit/src/lib/formatters/formatter-pipeline.spec.ts:46
↓ 26 callersMethodgetText
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:189
↓ 26 callersMethodinit
(uiKitSettings: UIKitSettings | null)
projects/cometchat-uikit/src/lib/cometchat-uikit.ts:79
↓ 26 callersFunctioninitAndDetect
( fixture: ComponentFixture<CometChatMessageInformationComponent> )
projects/cometchat-uikit/src/lib/components/cometchat-message-information/cometchat-message-information.component.spec.ts:37
↓ 26 callersFunctionremoveHover
* Remove hover from an element
projects/cometchat-uikit/src/lib/components/cometchat-message-header/cometchat-message-header-call-button-hover.property.spec.ts:199
↓ 26 callersMethodsetBubbleView
* Sets a bubble view for a specific message type. * * This method allows you to customize how specific parts of the message bubble * are rend
projects/cometchat-uikit/src/lib/services/message-bubble-config.service.ts:69
↓ 26 callersMethodstartCall
Starts an ongoing call session. @see Requirements 1.2, 11.1, 11.2
projects/cometchat-uikit/src/lib/services/ongoing-call.service.ts:174
↓ 25 callersMethodemitUpdate
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.paste-handler.ts:22
↓ 25 callersMethodenterReplyMode
* Enter reply mode with a specific message * Mirrors the enterReplyMode() method in the component * * @param message - The message to reply t
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/reply-mode-metadata.property.spec.ts:84
↓ 25 callersMethodgetLoggedInUser
()
projects/cometchat-uikit/src/lib/formatters/cometchat-mentions-formatter.ts:38
↓ 25 callersMethodgetReceiverType
()
projects/cometchat-uikit/src/lib/components/cometchat-conversations/conversation-list-updates.property.spec.ts:146
↓ 25 callersMethodgetScope
()
projects/cometchat-uikit/src/lib/components/cometchat-group-member-item/cometchat-group-member-item.component.spec.ts:100
↓ 25 callersFunctiongetTextInput
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-link-dialog/cometchat-link-dialog.component.spec.ts:59
↓ 25 callersMethodgetUrls
* Get the array of detected URLs from the last format() call. * * @returns Array of URL strings detected in the text
projects/cometchat-uikit/src/lib/formatters/cometchat-url-formatter.ts:132
↓ 25 callersMethodinit
* Initializes the localization service with the provided settings. * * @param settings - The localization settings to apply * * @example
projects/cometchat-uikit/src/lib/resources/CometChatLocalize/cometchat-localize.ts:116
↓ 25 callersMethodon
Subscribe to an event. Returns an unsubscribe function.
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/wavesurfer/event-emitter.ts:29
↓ 25 callersMethodonQuestionChange
* Handles question input change. * @param value - The new question value
projects/cometchat-uikit/src/lib/components/cometchat-create-poll/cometchat-create-poll.component.ts:164
↓ 25 callersMethodplayOutgoingSound
* Plays the outgoing call ringtone (looping). * Respects the disableSoundForCalls and customSoundForCalls configuration. * * @see Requirement
projects/cometchat-uikit/src/lib/services/outgoing-call.service.ts:120
↓ 25 callersMethodsetCallLogRequestBuilder
Sets a custom CallLogRequestBuilder. @see Requirement 2.5
projects/cometchat-uikit/src/lib/services/call-logs.service.ts:50
↓ 24 callersMethodaddTranslation
* Adds custom translations to the existing translations. * * @param resources - Object containing language codes as keys and translation objects
projects/cometchat-uikit/src/lib/resources/CometChatLocalize/cometchat-localize.ts:152
↓ 24 callersFunctioncreateMockBuilder
Creates a mock CallLogRequestBuilder that returns a given request.
projects/cometchat-uikit/src/lib/services/call-logs.service.spec.ts:102
↓ 24 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/outgoing-call.service.spec.ts:47
↓ 24 callersFunctioncreateMockCallLogRequest
Creates a mock CallLogRequest with controllable fetchNext behavior.
projects/cometchat-uikit/src/lib/services/call-logs.service.spec.ts:97
↓ 24 callersMethodformat
(text: string)
projects/cometchat-uikit/src/lib/formatters/cometchat-text-formatter.spec.ts:31
↓ 24 callersMethodgetGuid
()
projects/cometchat-uikit/src/lib/components/cometchat-groups/cometchat-groups.component.property.spec.ts:42
↓ 24 callersMethodgetReadAt
()
projects/cometchat-uikit/src/lib/components/cometchat-conversations/cometchat-conversations-component.spec.ts:81
↓ 24 callersMethodsetDisableSoundForCalls
* Enables or disables the incoming call ringtone. * @param disable - True to disable sound, false to enable
projects/cometchat-uikit/src/lib/services/incoming-call.service.ts:118
↓ 24 callersMethodvalidateURL
* Validate a URL string * Checks if the URL has a valid format * * @param url - URL to validate * @returns True if URL is valid * @see
projects/cometchat-uikit/src/lib/services/link-manager.class.ts:215
↓ 23 callersMethodclearActiveChat
* Clears all active chat states (user, group, conversation). * Also clears the internal active conversation in ConversationsService.
projects/cometchat-uikit/src/lib/services/chat-state.service.ts:170
↓ 23 callersMethodcreate
Create a new WaveSurfer instance
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/wavesurfer/wavesurfer.ts:50
↓ 23 callersFunctioncreateComponent
* Helper to create a CometChatAudioBubbleComponent inside Angular's injection context. * This is required because the component uses `inject()` in fi
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/cometchat-audio-bubble.property.spec.ts:95
↓ 23 callersFunctioncreateDefaultConfig
* Creates a default input configuration with all default values. * These defaults match the component's default @Input values.
projects/cometchat-uikit/src/lib/components/cometchat-conversations/conversations.property.spec.ts:673
↓ 23 callersFunctioncreateFixtureWith
* Helper: create a fresh fixture with custom initial host properties. * * NG0100 occurs when host properties are changed AFTER the initial *
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-popover/cometchat-popover.component.spec.ts:127
↓ 23 callersFunctioncreateMockCdr
* Helper to create a mock ChangeDetectorRef
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/cometchat-audio-bubble.property.spec.ts:24
↓ 23 callersFunctioncreateMockConversationsService
* Creates a mock ConversationsService for Storybook stories. * Provides observable-based state that the component subscribes to, * allowing stories
projects/cometchat-uikit/src/lib/components/cometchat-conversations/cometchat-conversations.stories.ts:36
↓ 23 callersFunctioncreateMockNgZone
* Helper to create a mock NgZone
projects/cometchat-uikit/src/lib/components/cometchat-audio-bubble/cometchat-audio-bubble.property.spec.ts:37
↓ 23 callersMethodgetName
()
projects/cometchat-uikit/src/lib/components/cometchat-call-logs/cometchat-call-logs.stories.ts:43
↓ 23 callersFunctioninitAndDetect
( fixture: ComponentFixture<CometChatThreadHeaderComponent> )
projects/cometchat-uikit/src/lib/components/cometchat-thread-header/cometchat-thread-header.component.spec.ts:37
↓ 23 callersMethodresetCallState
Resets all call state to defaults. @see Requirement 4.5
projects/cometchat-uikit/src/lib/services/call-buttons.service.ts:138
↓ 23 callersMethodselectAll
()
projects/cometchat-uikit/src/lib/utils/list-keyboard-handler.ts:45
↓ 23 callersFunctionsetInputValue
(value: string)
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-search-bar/cometchat-search-bar.component.spec.ts:50
↓ 22 callersFunctionapplyFormatters
( formatters: CometChatTextFormatter[], text: string, message?: CometChat.BaseMessage, context?: TextF
projects/cometchat-uikit/src/lib/formatters/formatter-pipeline.ts:55
↓ 22 callersMethodcanRedo
* Check if redo is available * @returns True if there are entries in the redo stack * @see Requirements 6.2
projects/cometchat-uikit/src/lib/services/history-manager.class.ts:167
↓ 22 callersMethodclear
()
projects/cometchat-uikit/src/lib/components/cometchat-conversations/conversations.property.spec.ts:1397
↓ 22 callersFunctionclickButton
(wrapper: HTMLElement | null)
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-link-dialog/cometchat-link-dialog.component.spec.ts:79
↓ 22 callersMethodcontentToDisplay
* Get the currently displayed content/popover
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/popover-mutual-exclusivity.property.spec.ts:50
↓ 22 callersFunctioncreateComponent
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-fullscreen-viewer/cometchat-fullscreen-viewer-navigation.property.spec.ts:81
↓ 22 callersFunctioncreateComponent
* Creates a CometChatReactionInfoComponent instance via Object.create() * to bypass Angular's inject() context requirement. * Manually wires signals
projects/cometchat-uikit/src/lib/components/cometchat-reaction-info/cometchat-reaction-info.component.spec.ts:244
↓ 22 callersFunctioncreateMockAttachment
(url: string, type: 'image' | 'video')
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-fullscreen-viewer/cometchat-fullscreen-viewer-navigation.property.spec.ts:85
↓ 22 callersFunctioncreateMockCallLog
Creates a mock call log object (as returned by the Calls SDK).
projects/cometchat-uikit/src/lib/services/call-logs.service.spec.ts:83
↓ 22 callersMethodgetCurrent
* Get the current history entry (top of undo stack) * @returns Current history entry, or null if stack is empty
projects/cometchat-uikit/src/lib/services/history-manager.class.ts:205
↓ 22 callersFunctiongetListItem
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-list-item/cometchat-list-item.component.spec.ts:112
↓ 22 callersFunctiongetSaveButtonWrapper
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-link-dialog/cometchat-link-dialog.component.spec.ts:75
↓ 22 callersMethodisInitialized
()
projects/cometchat-uikit/src/lib/cometchat-uikit.ts:166
↓ 22 callersMethodlogout
()
projects/cometchat-uikit/src/lib/cometchat-uikit.ts:260
↓ 22 callersFunctionmockCallLog
Creates a mock call log with initiator, receiver, and status
projects/cometchat-uikit/src/lib/utils/CallLogUtils.spec.ts:27
↓ 22 callersMethodsearch
* Search users by keyword. Resets the list and creates a new request builder. * * @param keyword - The search keyword * @param config - Optio
projects/cometchat-uikit/src/lib/services/users.service.ts:161
↓ 22 callersMethodsetName
(name: string | null | undefined)
projects/cometchat-uikit/src/lib/testing/properties/null-invalid-input-properties.spec.ts:47
↓ 22 callersMethodupdateFormatState
()
projects/cometchat-uikit/src/lib/services/rich-text-editor.class.ts:237
↓ 22 callersFunctionuserGenerator
()
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cometchat-message-composer.property.spec.ts:575
↓ 21 callersMethodcloseDialog
* Closes a dialog and restores focus. * * Removes ARIA attributes, deactivates focus trap, and restores * focus to the previously focused ele
projects/cometchat-uikit/src/lib/services/dialog-focus-manager.service.ts:125
↓ 21 callersFunctioncreateMockTextMessage
( overrides?: Partial<{ id: number; text: string; sender: CometChat.User; receiverId: string
projects/cometchat-uikit/src/lib/testing/mock-sdk-user.ts:99
↓ 21 callersMethodformatTimeForAnnouncement
* Formats time in seconds for screen reader announcement. * Returns a human-readable string like "2 minutes 30 seconds" or "45 seconds". * *
projects/cometchat-uikit/src/lib/services/media-controls.service.ts:128
↓ 21 callersMethodgetEmitCount
()
projects/cometchat-uikit/src/lib/components/cometchat-conversations/conversations.property.spec.ts:1389
↓ 21 callersMethodgetFormattersWithContext
Get formatters configured with logged-in user and alignment context. @see Requirements 11.2, 11.3
projects/cometchat-uikit/src/lib/services/formatter-config.service.ts:79
↓ 21 callersFunctiongetUrlInput
()
projects/cometchat-uikit/src/lib/components/base-elements/cometchat-link-dialog/cometchat-link-dialog.component.spec.ts:63
↓ 21 callersFunctionhandleClick
* Handle a click event in the editor * Mirrors the ProseMirror click handling behavior * * **Validates: Requirements 5.1, 5.2, 5.3, 5.4, 5.5, 5.6**
projects/cometchat-uikit/src/lib/components/cometchat-message-composer/cursor-positioning.property.spec.ts:218
↓ 21 callersMethodisUserSelected
(user: MockUser)
projects/cometchat-uikit/src/lib/components/cometchat-users/cometchat-users.component.property.spec.ts:825
↓ 21 callersMethodngOnDestroy
()
projects/cometchat-uikit/src/lib/services/theme.service.ts:73
↓ 21 callersFunctionpopulateReactions
* Helper to populate the component with reactions (simulates what fetchReactions does).
projects/cometchat-uikit/src/lib/components/cometchat-reaction-list/cometchat-reaction-list.component.spec.ts:280
↓ 21 callersMethodsanitizeHTML
* Sanitize HTML to prevent XSS attacks * Removes script tags, event handlers, and dangerous attributes * Only allows whitelisted tags and attrib
projects/cometchat-uikit/src/lib/services/content-editable-manager.class.ts:245
↓ 21 callersFunctionselectNodeContents
(node: Node)
projects/cometchat-uikit/src/lib/services/format-manager.class.spec.ts:668
↓ 21 callersMethodshowSuccess
Show a success toast.
projects/sample-app/src/app/services/toast.service.ts:31
↓ 21 callersMethodstartStreamingMessage
Prepares for a new streaming session: resets state and marks streaming=true.
projects/cometchat-uikit/src/lib/services/cometchat-ai-streaming.service.ts:117
↓ 20 callersMethodcheckAuthSettings
()
projects/cometchat-uikit/src/lib/cometchat-uikit.ts:277
← previousnext →201–300 of 6,248, ranked by callers