Cometchat Angular V5 Components 标志

Cometchat Angular V5 Components

组织
cometchat
cometchat-angular-v5-components

Choose, compose and customize CometChat Angular UI Kit components — the closed component list, real @Input/@Output names, view-slot overrides via ng-template, and the surfaces that have NO kit component and must be host-composed. Triggers: 'which components exist', 'customize the conversation list', 'custom message bubble', 'create a group', 'show banned members', 'swap the list item'.

Add to TypingMind

概览

发布者cometchat
代码仓库cometchat-skills
技能名称cometchat-angular-v5-components
星标数
109
复刻数
2
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 cometchat 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Cometchat Angular V5 Components AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-angular-v5-components
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cometchat/cometchat-skills.git /tmp/cometchat-skills
mkdir -p .claude/skills
cp -r /tmp/cometchat-skills/skills/cometchat-angular-v5-components .claude/skills/cometchat-angular-v5-components
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Cometchat Angular V5 Components,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Cometchat Angular V5 Components。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Cometchat Angular V5 Components 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Ground truth: the existence oracle is the angular-v5 catalog (references/catalog.md, generated from the installed 5.1.0 kit). Not listed = not importable. Exact inputs/outputs/view slots are FETCHED from each component's .md twin via cometchat-angular-v5-core/references/docs-map.md — every page opens with an AI Integration Quick Reference; read that first. Never answer an input or output from memory or from the type declarations.

Companion skills (read first)

  • cometchat-angular-v5-core — install, credentials, init→login→render, the golden-path surface. This skill ASSUMES it and never restates it.

Use this skill when

Picking which component to use, overriding part of one, or discovering that the thing asked for has no component at all.

Naming — three different strings per component

CometChatConversationsComponent (import) · <cometchat-conversations> (template) · "Conversations" (docs title). The bare CometChatConversations is internal-only and not importable — 109 such names exist. The AI-assistant exports are the sole suffix exception (CometChatAIAssistantChat).

Output names carry NO prefix

Angular outputs are plain: itemClick, select, error, closeClick, selectionChange. There is no cc prefix — that is React's convention. Binding (ccConversationClicked) silently never fires.

⚠️ An output that does not exist fails the SAME silent way — Angular treats an unknown event on a component as a plain DOM listener, so (closeClick) on <cometchat-message-header> compiles clean and never fires. closeClick is real on <cometchat-thread-header> but NOT on the message header (verified vs compiled 5.1.0). Use backClick there.

ComponentOutputs
<cometchat-conversations>itemClick select error searchBarClick contextMenuOpen contextMenuClose scrollToTop scrollToBottom selectionChange
<cometchat-users>itemClick select error empty selectionChange
<cometchat-groups>itemClick select error selectionChange
<cometchat-group-members>itemClick error empty selectionChange
<cometchat-message-list>threadRepliesClick reactionClick reactionListItemClick smartReplyClick conversationStarterClick messagePrivatelyClick replyClick error
<cometchat-message-composer>sendButtonClick textChange attachmentAdded attachmentRemoved mentionSelected closePreview error
<cometchat-message-header>backClick itemClick searchClick voiceCallClick videoCallClick conversationSummaryClick error
<cometchat-thread-header>closeClick backClick
<cometchat-search>backClick conversationClick messageClick searchError

Anything not listed: fetch the component's docs page (cometchat-angular-v5-core/references/docs-map.md). Do not guess an output name.

Component catalog (BAKED closed list)

Full per-component inputs live in the docs — this is the "which one do I reach for" map. Complete list: references/catalog.md.

Lists <cometchat-conversations> · <cometchat-users> · <cometchat-groups> · <cometchat-group-members> Message pane <cometchat-message-header> · <cometchat-message-list> · <cometchat-message-composer> · <cometchat-thread-header> Bubbles text · image · video · audio · file · card · poll · sticker · action · delete · call · collaborative-document · collaborative-whiteboard (all rendered BY the message list — see below) Calls <cometchat-call-buttons> · <cometchat-incoming-call> · <cometchat-outgoing-call> · <cometchat-ongoing-call> · <cometchat-call-logs> Search <cometchat-search> · <cometchat-search-bar> · <cometchat-search-conversations-list> · <cometchat-search-messages-list> AI CometChatAIAssistantChat · <cometchat-smart-replies> · <cometchat-conversation-starter> · <cometchat-conversation-summary> Reactions <cometchat-reactions> · <cometchat-reaction-list> · <cometchat-reaction-info> · <cometchat-emoji-keyboard> Support <cometchat-error-boundary> · <cometchat-notification-feed> · <cometchat-notification-badge> · <cometchat-change-scope> · <cometchat-flag-message-dialog> · <cometchat-media-recorder>

Do NOT hand-roll what the list already renders

Message bubbles, receipts, reaction pickers, typing indicators, attachment previews and the context menu are rendered by <cometchat-message-list> when the corresponding feature is on. Rebuilding them by hand loses realtime updates and every future fix. If an affordance looks broken it is nearly always a missing @Input() or an unsized container, not a missing component. <cometchat-conversations> / -users / -groups / -call-logs / -search / -message-list specifically all rely on an internal height: 100% down to their own scroll region — none sizes itself. Placed in a flex column without flex: 1; min-height: 0 (the .cc-fill class, cometchat-angular-v5-placement/references/core-surface.md), a list doesn't scroll: it grows past its container and gets silently clipped.

Building your OWN chrome? The kit exports the atoms too

The rule above covers what <cometchat-message-list> renders for you. A second case is your own UI — a signed-in user bar, a profile header, a custom row — where the kit still ships the piece you are about to rebuild:

AtomSelectorUse it for
CometChatAvatarComponent<cometchat-avatar>any user/group avatar — [image], [name], [loading]
CometChatListItemComponent<cometchat-list-item>a row with avatar + title + trailing content
CometChatButtonComponent<cometchat-button>an action button that matches kit styling
CometChatDateComponent<cometchat-date>a timestamp with the kit's formatting
CometChatPopoverComponent<cometchat-popover>anchored menus/pickers
html
<!-- ✅ themed, falls back to initials when there is no picture, follows light/dark -->
<cometchat-avatar [image]="user?.getAvatar()" [name]="user?.getName()"></cometchat-avatar>

<!-- ❌ hand-rolled: needs your own fallback URL, ignores the theme, drifts from the kit -->
<img [src]="user?.getAvatar() || 'https://…/astronaut.png'" class="my-avatar" />

A hand-rolled <img> is the common one. It forces you to invent a placeholder, it does not render initials when the user has no picture, and it ignores every avatar token in the theme. Before styling a presentational element yourself, check this table — and remember these are standalone components, so each one you use goes in the consuming component's imports: [].

Customizing part of a component — view slots

Override a region with a <ng-template> bound to a *View input. This is Angular's content projection; it replaces React's render props.

ts
import { Component, ViewChild, TemplateRef } from '@angular/core';
import { CometChatConversationsComponent } from '@cometchat/chat-uikit-angular';

@Component({
  selector: 'app-convo-list',
  standalone: true,
  imports: [CometChatConversationsComponent],
  templateUrl: './convo-list.component.html',
})
export class ConvoListComponent {
  @ViewChild('customItem', { static: true }) customItem!: TemplateRef<unknown>;

  // A trigger must have a handler in the SAME class, or the template fails to compile
  // (TS2339). `(itemClick)` emits a Conversation — discriminate it before binding the
  // subject to [user] or [group] (see cometchat-angular-v5-placement).
  open(conversation: CometChat.Conversation) { /* select the conversation */ }
}
html
<ng-template #customItem let-conversation>
  <div class="my-row">{{ conversation?.getConversationId() }}</div>
</ng-template>

<cometchat-conversations [itemView]="customItem" (itemClick)="open($event)"></cometchat-conversations>

Slots available per component (verified against the kit):

ComponentView slots
conversations · users · groupsheaderView menuView loadingView emptyView errorView itemView leadingView titleView subtitleView trailingView (+ searchView on conversations)
message-headerheaderView itemView leadingView titleView subtitleView trailingView backButtonView auxiliaryButtonView
message-listheaderView footerView emptyView errorView loadingView bubbleFooterView appendView

Override the smallest slot that does the job — replacing itemView when you only wanted a different subtitle loses selection, presence and receipts.

Surfaces with NO kit component (host-composed)

Requested often, and there is nothing to import. Build these yourself against the SDK — see references/host-composed.md.

  • Create a group — no component. Offer all three types: public, private, and password-protected.
  • Banned members — no component; <cometchat-group-members> covers view/kick/ban/scope but the banned LIST comes from the SDK.
  • Login / user picker — no component; app-owned.

Common pitfalls

  1. Component not in imports: [] → renders nothing, silently. Every component, every consuming component.
  2. Guessing an output name (ccItemClicked) → binding never fires and Angular does not warn.
  3. Replacing itemView for a cosmetic tweak → loses built-in selection/presence/receipts.
  4. Mixing [user] and [group] across header/list/composer → one conversation's header over another's messages.
  5. Hand-rolling bubbles → loses realtime updates.

Verify it works

The overridden region renders your template · the rest of the component is unchanged · clicks still fire · realtime updates still arrive · nothing collapsed to zero height.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Cometchat Angular V5 Components AI 技能有什么作用?

Choose, compose and customize CometChat Angular UI Kit components — the closed component list, real @Input/@Output names, view-slot overrides via ng-template, and the surfaces that have NO kit component and must be host-composed. Triggers: 'which components exist', 'customize the conversation list', 'custom message bubble', 'create a group', 'show banned members', 'swap the list item'.

为什么在 TypingMind 中使用 Cometchat Angular V5 Components?

因为您只需安装一次,就能搭配任何模型使用。Cometchat Angular V5 Components 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Cometchat Angular V5 Components?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-angular-v5-components。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Cometchat Angular V5 Components?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Cometchat Angular V5 Components 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Cometchat Angular V5 Components 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Cometchat Angular V5 Components AI 技能免费吗?

是的。cometchat 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇