Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@
"group": "Chat",
"pages": [
"ui-kit/react/core-features",
"ui-kit/react/offline-support",
"ui-kit/react/extensions",
"ui-kit/react/ai-features"
]
Expand Down
2 changes: 1 addition & 1 deletion sdk/javascript/offline-cached-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
- **The Promise still settles too.** Passing a listener does not replace the returned Promise: it settles on the server outcome, so it also **rejects** offline. If you use only the listener, add a `.catch()` to avoid an unhandled rejection. Consume the result from one channel, not both.

<Note>
With offline support **off**, these listeners behave like the classic Promise: the cached phase never fires, and the server result arrives in `onServer…`. Nothing changes until you enable offline (see [Enable Offline Support](/sdk/javascript/offline-enable)). Requires SDK **4.3.0** or later.
With offline support **off**, these listeners behave like the classic Promise: the cached phase never fires, and the server result arrives in `onServer…`. Nothing changes until you enable offline (see [Enable Offline Support](/sdk/javascript/offline-enable)). Requires SDK **4.3.1** or later.
</Note>

## Read messages
Expand All @@ -74,7 +74,7 @@
onServerMessages: (messages: CometChat.BaseMessage[]) => {
// Reconcile this slice against the cached page, keyed by message id.
},
onError: (error: CometChat.CometChatException) => {

Check warning on line 77 in sdk/javascript/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-cached-data.mdx#L77

Did you really mean 'onError'?
console.log("Fetch failed:", error.code);
},
})
Expand Down Expand Up @@ -128,7 +128,7 @@
onServerConversations: (conversations: CometChat.Conversation[]) => {
// Reconcile, keyed by conversation id.
},
onError: (error: CometChat.CometChatException) => {

Check warning on line 131 in sdk/javascript/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-cached-data.mdx#L131

Did you really mean 'onError'?
console.log("Fetch failed:", error.code);
},
})
Expand Down Expand Up @@ -192,7 +192,7 @@
new CometChat.UserFetchListener({
onCachedUsers: (users: CometChat.User[]) => { /* render */ },
onServerUsers: (users: CometChat.User[]) => { /* reconcile, keyed by uid */ },
onError: (error: CometChat.CometChatException) => console.log(error.code),

Check warning on line 195 in sdk/javascript/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-cached-data.mdx#L195

Did you really mean 'onError'?
})
)
.catch(() => {});
Expand Down Expand Up @@ -238,16 +238,16 @@
onServerConversation: (conversation: CometChat.Conversation) => {
// Server copy, written through before delivery.
},
onError: (error: CometChat.CometChatException) => console.log("Lookup failed:", error.code),

Check warning on line 241 in sdk/javascript/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-cached-data.mdx#L241

Did you really mean 'onError'?
})
).catch(() => {});

CometChat.getMessageDetails(
messageId,

Check warning on line 246 in sdk/javascript/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-cached-data.mdx#L246

Did you really mean 'messageId'?
new CometChat.MessageDetailsListener({
onCachedMessage: (message: CometChat.BaseMessage) => { /* cache hit only */ },
onServerMessage: (message: CometChat.BaseMessage) => { /* server copy */ },
onError: (error: CometChat.CometChatException) => console.log(error.code),

Check warning on line 250 in sdk/javascript/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-cached-data.mdx#L250

Did you really mean 'onError'?
})
).catch(() => {});
```
Expand Down
4 changes: 2 additions & 2 deletions sdk/javascript/offline-enable.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
<Steps>

<Step title="Requirements">
Offline support requires CometChat JavaScript SDK **4.3.0** or later.
Offline support requires CometChat JavaScript SDK **4.3.1** or later.

```bash
npm install @cometchat/chat-sdk-javascript@4.3.0
npm install @cometchat/chat-sdk-javascript@4.3.1
```

If you are new to the SDK, complete the [standard setup](/sdk/javascript/setup-sdk) first; the steps below only add offline configuration to your existing `init`.
Expand All @@ -44,7 +44,7 @@
<Tabs>
<Tab title="TypeScript">
```typescript
const appSetting: CometChat.AppSettings = new CometChat.AppSettingsBuilder()

Check warning on line 47 in sdk/javascript/offline-enable.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-enable.mdx#L47

Did you really mean 'appSetting'?
.subscribePresenceForAllUsers()
.setRegion("REGION")
.autoEstablishSocketConnection(true)
Expand All @@ -55,7 +55,7 @@
</Tab>
<Tab title="JavaScript">
```javascript
const appSetting = new CometChat.AppSettingsBuilder()

Check warning on line 58 in sdk/javascript/offline-enable.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-enable.mdx#L58

Did you really mean 'appSetting'?
.subscribePresenceForAllUsers()
.setRegion("REGION")
.autoEstablishSocketConnection(true)
Expand Down Expand Up @@ -123,7 +123,7 @@

</Steps>

## Supported runtimes

Check warning on line 126 in sdk/javascript/offline-enable.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-enable.mdx#L126

Did you really mean 'runtimes'?

| Runtime | Data store | Media bytes |
|---|---|---|
Expand All @@ -133,9 +133,9 @@
Where IndexedDB is missing or blocked (for example some private-browsing modes), offline stays off for the session and the SDK works online as before.

<Note>
**Electron setup.** Install the optional peer dependencies `electron` and `better-sqlite3-multiple-ciphers`, call `registerOfflineIpc()` from `@cometchat/chat-sdk-javascript/electron/main` in the main process, and `installCometChatBridge()` from `@cometchat/chat-sdk-javascript/electron/preload` in your preload script (with `contextIsolation: true`). Browser apps need nothing extra.

Check warning on line 136 in sdk/javascript/offline-enable.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-enable.mdx#L136

Did you really mean 'preload'?
</Note>

## Next steps

Offline support is now active for the logged-in user. Continue with [Show Cached Data](/sdk/javascript/offline-cached-data) to adopt the fetch listeners, and [Send While Offline](/sdk/javascript/offline-send) for the durable outbox. Tune caps, TTLs, media, and encryption from the [Configuration & API Reference](/sdk/javascript/offline-reference).

Check warning on line 141 in sdk/javascript/offline-enable.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-enable.mdx#L141

Did you really mean 'TTLs'?
4 changes: 2 additions & 2 deletions sdk/javascript/offline-encryption.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
Offline support keeps the logged-in user's messages in a local store on the device. Turn encryption on to store that content **encrypted at rest**. Encryption is **opt-in** and off by default; nothing changes until you set `encryption: true`.

<Note>
This is not end-to-end encryption — the server still sees plaintext. It protects the on-device cache only. Cached **media files** are never encrypted, and in a browser some metadata stays readable so the cache can be queried. See [What is and isn't encrypted](#what-is-and-isn-t-encrypted). Requires SDK **4.3.0** or later.
This is not end-to-end encryption — the server still sees plaintext. It protects the on-device cache only. Cached **media files** are never encrypted, and in a browser some metadata stays readable so the cache can be queried. See [What gets encrypted](#what-gets-encrypted). Requires SDK **4.3.1** or later.

Check warning on line 36 in sdk/javascript/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-encryption.mdx#L36

Did you really mean 'plaintext'?
</Note>

## Requirements
Expand All @@ -41,7 +41,7 @@
| Runtime | Cipher | What you need |
|---|---|---|
| Browser | AES-256-GCM over stored message and list content | A **secure context** (HTTPS or `localhost`) so `crypto.subtle` exists. Nothing to install. |
| Electron | SQLCipher for the whole database | `better-sqlite3-multiple-ciphers` installed in the main process, and an OS keyring where `safeStorage` needs one (for example Linux). |

Check warning on line 44 in sdk/javascript/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-encryption.mdx#L44

Did you really mean 'SQLCipher'?

<Warning>
Without a working cipher the cache **cannot run encrypted**. What happens then is decided by [`encryptionFailureBehavior`](#choose-what-happens-when-encryption-cannot-run) — by default the session runs server-only (no local cache). The SDK never creates a cache that is labelled encrypted but is not.
Expand All @@ -54,7 +54,7 @@
<Tabs>
<Tab title="TypeScript">
```typescript
const appSetting: CometChat.AppSettings = new CometChat.AppSettingsBuilder()

Check warning on line 57 in sdk/javascript/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-encryption.mdx#L57

Did you really mean 'appSetting'?
.setRegion("REGION")
.setOfflineConfig({
enabled: true,
Expand All @@ -66,7 +66,7 @@
</Tab>
<Tab title="JavaScript">
```javascript
const appSetting = new CometChat.AppSettingsBuilder()

Check warning on line 69 in sdk/javascript/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-encryption.mdx#L69

Did you really mean 'appSetting'?
.setRegion("REGION")
.setOfflineConfig({
enabled: true,
Expand All @@ -84,10 +84,10 @@

`encryptionFailureBehavior` decides what the cache does when encryption **cannot be applied at all** on this runtime — for example an insecure origin in a browser (no `crypto.subtle`), or a plain `better-sqlite3` instead of the cipher build in Electron. It governs only that case: a transient failure still retries, and a lost or wrong key self-heals by wiping and rebuilding the cache **encrypted**.

| Value | Behavior | Writes plaintext? |

Check warning on line 87 in sdk/javascript/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-encryption.mdx#L87

Did you really mean 'plaintext'?
|---|---|---|
| `ONLINE_ONLY` *(default)* | Do not open a local cache at all — the session runs server-only. Makes a setup mistake visible: offline simply does not work until it is fixed. | No |
| `PLAINTEXT_FALLBACK` | Open an **unencrypted** cache so offline keeps working, and log the downgrade at error level. `getOfflineEncryptionStatus()` reports `atRest: "NONE"`. | Yes |

Check warning on line 90 in sdk/javascript/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-encryption.mdx#L90

Did you really mean 'unencrypted'?

<Warning>
`PLAINTEXT_FALLBACK` means cached message content may be stored **unencrypted** whenever encryption cannot run. This availability-over-guarantee trade is wrong for compliance use — keep the default `ONLINE_ONLY` if cached content must never be written in the clear. Any value other than `PLAINTEXT_FALLBACK` is treated as `ONLINE_ONLY`.
Expand All @@ -95,7 +95,7 @@

## Key storage

You do not supply or manage the encryption key. In a browser, the SDK generates a random per-user data key, wraps it with a **non-extractable** WebCrypto key, and keeps the wrapped key in the same IndexedDB as the data — so a browser clearing site data can never leave ciphertext without its key. In Electron the key is sealed by the OS through `safeStorage`. The key is never returned by any API. If it is lost or no longer opens the cache, the cache resets and rebuilds — see [Cache resets](#cache-resets-on-key-loss).

Check warning on line 98 in sdk/javascript/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-encryption.mdx#L98

Did you really mean 'ciphertext'?

<Note>
In a browser the key lives in software next to the data (`keyStorage: "SOFTWARE"`). That protects against casual disk inspection and partial data copies, but not against code running in your page's origin.
Expand Down Expand Up @@ -145,7 +145,7 @@
The most useful support signal is `enabled === true` with `cipherAvailable === false`: encryption was switched on but could not run. In a browser that almost always means an insecure origin; in Electron, a missing `better-sqlite3-multiple-ciphers` cipher build. Check `atRest` to see whether a cache was opened at all.
</Tip>

## What is and isn't encrypted
## What gets encrypted

| Data | Encrypted at rest? |
|---|---|
Expand All @@ -153,11 +153,11 @@
| Browser only: message ids, timestamps, send state, message type and category, parent and quoted message ids, source, unread counts, conversation type, sync watermarks, row counts, pending-upload file sizes, MIME types and states | **No** — kept readable so the cache can be queried. `leakage` lists them exactly. |
| Cached media files (images, video, audio, documents) | **No** — stored as ordinary files outside the database |

On Electron the whole database is encrypted with SQLCipher; only the media files stay outside it.

Check warning on line 156 in sdk/javascript/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-encryption.mdx#L156

Did you really mean 'SQLCipher'?

## Cache resets on key loss

If the key can no longer decrypt the stored cache, the SDK wipes the local cache and rebuilds it **encrypted** — it never silently falls back to plaintext for a cache that could be encrypted. Any unsent messages still queued in the outbox at that point are lost. They lived inside the unreadable store, so they usually cannot be counted: `pendingMessagesLost` is then `-1` (`CometChat.OFFLINE_PENDING_COUNT_UNKNOWN`), not zero. Each lost message that could still be read fails with `DISCARDED` on `onOutboxMessageFailed`.

Check warning on line 160 in sdk/javascript/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-encryption.mdx#L160

Did you really mean 'plaintext'?

Register an `OfflineCacheResetListener` to be told when this happens:

Expand Down
2 changes: 1 addition & 1 deletion sdk/javascript/offline-media-caching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
// Observe background (AUTO) downloads
CometChat.addMediaDownloadListener("MEDIA_LISTENER", new CometChat.MediaDownloadListener({
onMediaDownloaded: (messageId, attachmentId, localPath) => {},
onMediaDownloadFailed: (messageId, attachmentId, error) => {},

Check warning on line 40 in sdk/javascript/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-media-caching.mdx#L40

Did you really mean 'messageId'?

Check warning on line 40 in sdk/javascript/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-media-caching.mdx#L40

Did you really mean 'attachmentId'?
}));
```

Expand All @@ -46,7 +46,7 @@
With offline support on, the SDK can cache attachment bytes durably on the device so media stays viewable offline — even after the server's signed URL has expired. This page covers the caching modes, how to read cached bytes, and how to download media on demand.

<Note>
Media caching applies only while offline support is active for the logged-in user (`CometChat.isOfflineEnabled()` is `true`). See [Enable Offline Support](/sdk/javascript/offline-enable). In a browser, media bytes are kept in the Origin Private File System (OPFS); **where OPFS is not available, media is not cached** (messages and attachment metadata still are).
Media caching applies only while offline support is active for the logged-in user (`CometChat.isOfflineEnabled()` is `true`). See [Enable Offline Support](/sdk/javascript/offline-enable). In a browser, media bytes are kept in the Origin Private File System (OPFS); **where OPFS is not available, media is not cached** (messages and attachment metadata still are). Requires SDK **4.3.1** or later.
</Note>

## Caching modes
Expand All @@ -63,7 +63,7 @@
<Tabs>
<Tab title="TypeScript">
```typescript
const appSetting: CometChat.AppSettings = new CometChat.AppSettingsBuilder()

Check warning on line 66 in sdk/javascript/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-media-caching.mdx#L66

Did you really mean 'appSetting'?
.setRegion("REGION")
.setOfflineConfig({
enabled: true,
Expand All @@ -75,7 +75,7 @@
</Tab>
<Tab title="JavaScript">
```javascript
const appSetting = new CometChat.AppSettingsBuilder()

Check warning on line 78 in sdk/javascript/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-media-caching.mdx#L78

Did you really mean 'appSetting'?
.setRegion("REGION")
.setOfflineConfig({
enabled: true,
Expand All @@ -93,7 +93,7 @@

In `AUTO` mode, media bytes are downloaded and cached automatically on the two live receive paths:

- a **realtime** media message received while connected, and

Check warning on line 96 in sdk/javascript/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-media-caching.mdx#L96

Did you really mean 'realtime'?
- opening a chat **online** (the server read refreshes and caches its media).

A media message that arrives through a reconnect catch-up [sync](/sdk/javascript/offline-sync) is cached as **metadata only**; its bytes download the next time you open that chat online. This holds in both `AUTO` and `OFF`.
Expand All @@ -111,8 +111,8 @@
```typescript
const attachment: CometChat.Attachment = mediaMessage.getAttachment();

const objectUrl: string | null = await CometChat.getCachedMediaObjectURL(attachment);

Check warning on line 114 in sdk/javascript/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-media-caching.mdx#L114

Did you really mean 'objectUrl'?
if (objectUrl) {

Check warning on line 115 in sdk/javascript/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-media-caching.mdx#L115

Did you really mean 'objectUrl'?
imageElement.src = objectUrl; // render from disk — no network fetch
imageElement.onload = () => URL.revokeObjectURL(objectUrl);
} else {
Expand Down Expand Up @@ -158,10 +158,10 @@
onSuccess: (localPath: string) => {
// Bytes cached; render via getCachedMediaObjectURL(attachment).
},
onProgress: (percent: number) => {

Check warning on line 161 in sdk/javascript/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-media-caching.mdx#L161

Did you really mean 'onProgress'?
// 0..100, best-effort.
},
onError: (error: CometChat.CometChatException) => {

Check warning on line 164 in sdk/javascript/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-media-caching.mdx#L164

Did you really mean 'onError'?
console.log(error.code);
},
})
Expand All @@ -176,10 +176,10 @@
onSuccess: (localPath) => {
// Bytes cached; render via getCachedMediaObjectURL(attachment).
},
onProgress: (percent) => {

Check warning on line 179 in sdk/javascript/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-media-caching.mdx#L179

Did you really mean 'onProgress'?
// 0..100, best-effort.
},
onError: (error) => {

Check warning on line 182 in sdk/javascript/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-media-caching.mdx#L182

Did you really mean 'onError'?
console.log(error.code);
},
})
Expand Down
4 changes: 2 additions & 2 deletions sdk/javascript/offline-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Accordion title="AI Integration Quick Reference">

```javascript
// Offline support is OFF by default. Turn it on at init (SDK 4.3.0 or later).
// Offline support is OFF by default. Turn it on at init (SDK 4.3.1 or later).
const appSetting = new CometChat.AppSettingsBuilder()
.setRegion("REGION")
.setOfflineConfig({ enabled: true }) // or .offline(true) for defaults
Expand All @@ -25,7 +25,7 @@
Offline support keeps the logged-in user's conversations and messages on the device so your app can show them instantly, lets the user send messages while disconnected, and catches up automatically when the connection returns. It is **off by default** — nothing changes in your app until you enable it ([Enable Offline Support](/sdk/javascript/offline-enable)). This page explains the mental model; the other pages show the exact APIs.

<Note>
Offline support ships in CometChat JavaScript SDK **4.3.0** or later. It runs in the browser (IndexedDB, with OPFS for media) and in Electron (SQLite). See [Enable Offline Support](/sdk/javascript/offline-enable#supported-runtimes).
Offline support requires CometChat JavaScript SDK **4.3.1** or later. It runs in the browser (IndexedDB, with OPFS for media) and in Electron (SQLite). See [Enable Offline Support](/sdk/javascript/offline-enable#supported-runtimes).
</Note>

## How it works
Expand All @@ -34,7 +34,7 @@

<Steps>
<Step title="Cache first, then server">
Reads that you pass a fetch listener go through the local cache first. For list reads the SDK delivers the cached page immediately, even when it is empty. Single-item lookups (`getMessageDetails`, `getConversation`) deliver a cached result only when that item is already cached. The SDK then fetches from the server and delivers the fresh result. See [Show Cached Data](/sdk/javascript/offline-cached-data).

Check warning on line 37 in sdk/javascript/offline-overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-overview.mdx#L37

Did you really mean 'lookups'?
</Step>
<Step title="A durable send outbox">
A message sent while offline is saved to a durable outbox and reported as pending instead of failing. It survives page reloads and app restarts and is sent when the connection returns. See [Send While Offline](/sdk/javascript/offline-send).
Expand Down
6 changes: 3 additions & 3 deletions sdk/javascript/offline-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

| Field | Value |
| --- | --- |
| Package | `@cometchat/chat-sdk-javascript` (offline requires **4.3.0** or later) |
| Package | `@cometchat/chat-sdk-javascript` (offline requires **4.3.1** or later) |
| Enable | `new CometChat.AppSettingsBuilder().setOfflineConfig({ enabled: true, … })` or `.offline(true)` |
| Verify | `CometChat.isOfflineEnabled()` |
| Reads | Pass a `…FetchListener` to `fetchNext()` / `fetchPrevious()` / `getConversation()` / `getMessageDetails()` |
Expand All @@ -22,7 +22,7 @@
This page is the complete lookup for offline support in the CometChat JavaScript SDK. For guided walkthroughs, start with [Offline Support](/sdk/javascript/offline-overview).

<Note>
Offline support requires SDK **4.3.0** or later.
Offline support requires SDK **4.3.1** or later.
</Note>

## OfflineConfig options
Expand Down Expand Up @@ -117,13 +117,13 @@
| `MediaDownloadListener` | `onMediaDownloaded(messageId, attachmentId, localPath)`, `onMediaDownloadFailed(messageId, attachmentId, error)` |
| `MessageListener` | `onMessagesSynced(messages)`, `onMediaDownloaded`, `onMediaDownloadFailed` (offline additions to the existing listener) |

## Enums

Check warning on line 120 in sdk/javascript/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-reference.mdx#L120

Did you really mean 'Enums'?

| Enum | Values |
|---|---|
| `MediaCachingMode` | `AUTO` (auto-download + retain received media), `OFF` (skip auto-download; metadata still cached) |
| `PendingMessageOverflowPolicy` | `DROP_OLDEST` (evict the oldest pending to admit a newer send), `REJECT_NEWEST` (reject the new send) |
| `EncryptionFailureBehavior` | `ONLINE_ONLY` (server-only; never plaintext), `PLAINTEXT_FALLBACK` (open an unencrypted cache) |

Check warning on line 126 in sdk/javascript/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-reference.mdx#L126

Did you really mean 'plaintext'?

Check warning on line 126 in sdk/javascript/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-reference.mdx#L126

Did you really mean 'unencrypted'?
| `MessageStatus` | `PENDING`, `SENDING`, `SENT`, `DELIVERED`, `READ`, `FAILED` |
| `MessageFailureReason` | `TRANSIENT`, `PERMANENT`, `QUEUE_OVERFLOW`, `QUEUE_FULL`, `BYTE_OVERFLOW`, `DISCARDED` — see [Send While Offline](/sdk/javascript/offline-send#message-status-and-failure-reason) |
| `MessageSource` | `REALTIME`, `SYNC` (delivered by a catch-up sweep) |
Expand All @@ -131,13 +131,13 @@
| `SyncState` | `IDLE`, `SYNCING` |
| `OfflineCacheResetReason` | `KEY_LOST`, `WRONG_KEY`, `CORRUPTED`, `ESCALATED`, `ENCRYPTION_CHANGED` |

All enums are string-valued and exposed on the `CometChat` namespace (for example `CometChat.MessageStatus.PENDING`).

Check warning on line 134 in sdk/javascript/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-reference.mdx#L134

Did you really mean 'enums'?

Check warning on line 134 in sdk/javascript/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-reference.mdx#L134

Did you really mean 'namespace'?

## Model fields

| Field | Type | Meaning |
|---|---|---|
| `BaseMessage.getLocalMessageId()` | `string` | SDK-generated local handle for an optimistic/offline send; the stable key to reconcile the row when the server ack arrives. |

Check warning on line 140 in sdk/javascript/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-reference.mdx#L140

Did you really mean 'ack'?
| `BaseMessage.getStatus()` | `MessageStatus` | Lifecycle status of the message. |
| `BaseMessage.getFailureReason()` | `MessageFailureReason` | Why the send failed; set only while `FAILED`. |
| `BaseMessage.getSource()` | `MessageSource` | `REALTIME` for a live message, `SYNC` for one delivered by catch-up. |
Expand All @@ -152,13 +152,13 @@
|---|---|
| `FAILED_TO_FETCH` | A request got no answer (offline or dropped): a two-phase read's `onError` after the cached page, the not-connected notice on a queued send, and sync errors. |
| `ERROR_OFFLINE_SYNC_IN_PROGRESS` | `forceSyncNow(callback)` was called while a sync is already running. Constant: `CometChat.ERROR_OFFLINE_SYNC_IN_PROGRESS`. |
| `ERROR_OFFLINE_SYNC_COOLDOWN` | `forceSyncNow(callback)` was called within the 10-second cooldown; `details.retryAfterMs` has the remaining time. Constant: `CometChat.ERROR_OFFLINE_SYNC_COOLDOWN`. |

Check warning on line 155 in sdk/javascript/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-reference.mdx#L155

Did you really mean 'cooldown'?
| `ERROR_OFFLINE_DISABLED` | An offline-only operation was called while offline support is not active. Constant: `CometChat.ERROR_OFFLINE_DISABLED`. |
| `ERROR_OFFLINE_MESSAGE_DISCARDED` | A queued message was removed before it could send. Constant: `CometChat.ERROR_OFFLINE_MESSAGE_DISCARDED`. |
| `ERROR_OFFLINE_MESSAGE_IN_FLIGHT` | `retryMessage` / `discardLocalMessage` targeted a message that is already being sent. Constant: `CometChat.ERROR_OFFLINE_MESSAGE_IN_FLIGHT`. |
| `ERROR_OFFLINE_MESSAGE_NOT_FOUND` | `retryMessage` / `discardLocalMessage` found no unsent message with the given local id. Constant: `CometChat.ERROR_OFFLINE_MESSAGE_NOT_FOUND`. |
| `ERROR_OFFLINE_MESSAGE_PERSIST_FAILED` | The local cache was briefly unavailable, so `getPendingMessages`, `retryMessage`, `retryAllFailedMessages` or `discardLocalMessage` could not read it. Try again. |
| `QUEUE_FULL` | A send was refused because the outbox is full; `details.maxPendingMessages` holds the cap. |
| `ERROR_PENDING_QUEUE_LIMIT` | A send was refused because the outbox is full (failure reason `QUEUE_FULL`); `details.maxPendingMessages` holds the cap. |
| `PERMANENT` / `BYTE_OVERFLOW` | A media send was refused before it was queued: its file could not be copied (`PERMANENT`), or one of its files is larger than `maxMediaCacheSize` (`BYTE_OVERFLOW`). |
| `REQUEST_IN_PROGRESS` | A fetch was started on a messages, threads, reactions or notification-feed request while an earlier fetch on the same object is still running. |
| `ERROR_OFFLINE_MEDIA_NO_URL` | `downloadMedia` was given no attachment, or an attachment without a URL. |
Expand All @@ -171,8 +171,8 @@

| Request | Answered from the cache | Server-only (empties the cached phase) |
|---|---|---|
| `MessagesRequest` | categories, types, parent message id, hide replies, hide deleted messages, tags, hide quoted messages, has mentions, mentioned UIDs, unread, has attachments, attachment types, has reactions, hide messages from blocked users | `searchKeyword`, `hasLinks`, `updatesOnly`, `interactionGoalCompletedOnly`, `UID` and `GUID` set together |

Check warning on line 174 in sdk/javascript/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-reference.mdx#L174

Did you really mean 'UIDs'?
| `ConversationsRequest` | conversation type, unread, tags, user tags, group tags, hide/only agentic, with-blocked-info, include blocked users, pinned-by | `searchKeyword` |

Check warning on line 175 in sdk/javascript/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-reference.mdx#L175

Did you really mean 'agentic'?

Enrichment flags (`withTags`, `withParent`, mentions-with-tag/blocked info, `withUserAndGroupTags`) decorate a result without narrowing it and never gate the cache. Entity lists (users, groups, members, banned members, reactions, notification feed, threads) are replayed from recorded requests rather than filtered locally. A request with a search keyword is not recorded, and neither is a `UsersRequest` or `GroupMembersRequest` with a status filter, so their cached phase is empty. Pinned and saved message reads are answered from their own lists, not from the message cache.

Expand Down
4 changes: 2 additions & 2 deletions sdk/javascript/offline-send.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
With offline support enabled, a message you send while the device has no connection is **durably queued on the device** instead of failing. It keeps its place across a page reload or app restart and is sent automatically once the connection is back and stable (with `autoSendPendingOnReconnect` on, the default). This page shows the offline-aware send listener, how to read a message's status, how to inspect and recover the send queue, and the queue limits.

<Note>
Offline support is **off by default** and requires SDK **4.3.0** or later. Queuing only happens once you [enable it](/sdk/javascript/offline-enable) **and** pass a `MessageSentListener`. A bare `await CometChat.sendMessage(message)` with no listener is never queued: offline, it rejects at once, as before.
Offline support is **off by default** and requires SDK **4.3.1** or later. Queuing only happens once you [enable it](/sdk/javascript/offline-enable) **and** pass a `MessageSentListener`. A bare `await CometChat.sendMessage(message)` with no listener is never queued: offline, it rejects at once, as before.
</Note>

## Send a Message
Expand All @@ -52,14 +52,14 @@
<Tabs>
<Tab title="TypeScript">
```typescript
const textMessage: CometChat.TextMessage = new CometChat.TextMessage(

Check warning on line 55 in sdk/javascript/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-send.mdx#L55

Did you really mean 'textMessage'?
"UID",
"Hello!",
CometChat.RECEIVER_TYPE.USER
);

CometChat.sendMessage(
textMessage,

Check warning on line 62 in sdk/javascript/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-send.mdx#L62

Did you really mean 'textMessage'?
new CometChat.MessageSentListener({
onMessagePending: (message: CometChat.BaseMessage) => {
// Queued and persisted; message.getStatus() === "PENDING"
Expand All @@ -69,7 +69,7 @@
// Server ack: message now carries its real id and sentAt
console.log("Sent:", message.getId());
},
onError: (error: CometChat.CometChatException) => {

Check warning on line 72 in sdk/javascript/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-send.mdx#L72

Did you really mean 'onError'?
// FAILED_TO_FETCH while offline means "queued", not "failed" — see below
console.log("Send error:", error.code);
},
Expand Down Expand Up @@ -133,15 +133,15 @@
<Tabs>
<Tab title="TypeScript">
```typescript
let localId: string | undefined;

Check warning on line 136 in sdk/javascript/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-send.mdx#L136

Did you really mean 'localId'?

CometChat.sendMessage(
textMessage,

Check warning on line 139 in sdk/javascript/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-send.mdx#L139

Did you really mean 'textMessage'?
new CometChat.MessageSentListener({
onMessagePending: (message: CometChat.BaseMessage) => {
localId = message.getLocalMessageId();
},
onError: async () => {

Check warning on line 144 in sdk/javascript/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-send.mdx#L144

Did you really mean 'onError'?
const outbox = await CometChat.getPendingMessages();
const queued = outbox.find((m) => m.getLocalMessageId() === localId);
if (queued?.getStatus() === CometChat.MessageStatus.PENDING) {
Expand Down Expand Up @@ -189,7 +189,7 @@

Every message exposes its offline state. `getLocalMessageId()` returns the SDK-generated handle that is stamped at compose (while offline is running) and stays stable across the whole lifecycle — use it to retry or discard the message.

| Accessor | Type | Notes |

Check warning on line 192 in sdk/javascript/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-send.mdx#L192

Did you really mean 'Accessor'?
|---|---|---|
| `getLocalMessageId()` | `string` | Client handle; present while offline is running. |
| `getStatus()` | `MessageStatus` | `PENDING`, `SENDING`, `SENT`, `DELIVERED`, `READ`, `FAILED`. |
Expand All @@ -199,7 +199,7 @@

| Reason | When |
|---|---|
| `TRANSIENT` | A temporary server error (5xx, or 429 rate-limited), no answer after five automatic reconnect attempts, or, with `autoSendPendingOnReconnect` off, no answer at all. Retryable. |

Check warning on line 202 in sdk/javascript/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-send.mdx#L202

Did you really mean 'Retryable'?
| `PERMANENT` | The server rejected the message, the error was not recognized, or copying an attachment into the store timed out. A manual retry will not help. |
| `QUEUE_FULL` | A new send was refused because the queue is full (count cap). |
| `QUEUE_OVERFLOW` | An older queued message was evicted to admit a newer one (`DROP_OLDEST` only). |
Expand Down Expand Up @@ -286,7 +286,7 @@

- **`retryMessage(message, listener?)`** re-attempts one message. A `FAILED` message is reset to `PENDING` and sent; a `PENDING` message is attempted now rather than waiting for a reconnect. The optional `MessageSentListener` and the returned Promise receive that attempt's outcome. With no answer, it fires the not-connected notice once (`FAILED_TO_FETCH`) and the message stays `PENDING`.
- **`retryAllFailedMessages(listener?)`** retries **transient** failures only; permanent ones are skipped.
- **`discardLocalMessage(message, listener?)`** deletes an unsent (`PENDING` or `FAILED`) message from the device, including its copied media. The optional listener is `{ onSuccess, onError }`; `onSuccess` receives the `localMessageId`.

Check warning on line 289 in sdk/javascript/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-send.mdx#L289

Did you really mean 'onError'?

<Tabs>
<Tab title="TypeScript">
Expand Down Expand Up @@ -349,7 +349,7 @@

A media send with a file larger than `maxMediaCacheSize` is refused with reason `BYTE_OVERFLOW`; nothing is evicted to make room.

A **refused** send (`QUEUE_FULL` / `BYTE_OVERFLOW`) is never queued, so it fires **no** `onMessagePending`; it reports `onError`, and the global `OfflineMessageListener` receives `onOutboxMessageFailed(message, reason)` carrying the exact reason. For `QUEUE_FULL` the error's `code` is `QUEUE_FULL`, with `details.maxPendingMessages`.
A **refused** send (`QUEUE_FULL` / `BYTE_OVERFLOW`) is never queued, so it fires **no** `onMessagePending`; it reports `onError`, and the global `OfflineMessageListener` receives `onOutboxMessageFailed(message, reason)` carrying the exact reason. A `QUEUE_FULL` refusal reports `onError` with the code `ERROR_PENDING_QUEUE_LIMIT` and `details.maxPendingMessages`; a `BYTE_OVERFLOW` refusal reports the code `BYTE_OVERFLOW`.

<Warning>
A refused or evicted message (`QUEUE_FULL`, `QUEUE_OVERFLOW`, `BYTE_OVERFLOW`) has **no durable row** — it does not appear in `getPendingMessages`, and `retryMessage` or `discardLocalMessage` on its id rejects with `ERROR_OFFLINE_MESSAGE_NOT_FOUND`. Capture these from the failure callback and handle them at that moment. Prefer the default `REJECT_NEWEST`, which never silently drops an already-queued message from another conversation.
Expand All @@ -361,7 +361,7 @@

## Durable Media Uploads

A multi-attachment upload survives a restart: the SDK re-attaches to an in-progress batch instead of restarting it. Fetch the existing request for a conversation with `getExistingUploadFileRequest` (it resolves `null` when there is none, or offline is off), read each file's progress with `getItems()`, and retry an individual file with `retryAttachment(fileId)`. Uploads never auto-resume: restored files come back retryable and wait for the user. A `FAILED` file with `localCopyMissing: true` cannot be retried — ask the user to re-add it.

Check warning on line 364 in sdk/javascript/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-send.mdx#L364

Did you really mean 'retryable'?

<Tabs>
<Tab title="TypeScript">
Expand Down
2 changes: 1 addition & 1 deletion sdk/javascript/offline-sync.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
When the connection comes back, the SDK runs a **catch-up sync**: it refreshes the conversation list, then replays everything that changed in your messages since the last sync, and merges the results into the local cache. This page covers how to observe that sync, trigger one on demand, and manage the cache it maintains.

<Note>
Everything on this page is a no-op unless offline support is active for the logged-in user (`CometChat.isOfflineEnabled()` is `true`). See [Enable Offline Support](/sdk/javascript/offline-enable).
Everything on this page is a no-op unless offline support is active for the logged-in user (`CometChat.isOfflineEnabled()` is `true`). See [Enable Offline Support](/sdk/javascript/offline-enable). Requires SDK **4.3.1** or later.
</Note>

## How catch-up works
Expand Down Expand Up @@ -175,13 +175,13 @@
<Tab title="TypeScript">
```typescript
const state: string = CometChat.getSyncState(); // "IDLE" or "SYNCING"
const lastSync: number = await CometChat.getLastSyncTimestamp(); // server epoch seconds; 0 if never synced

Check warning on line 178 in sdk/javascript/offline-sync.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-sync.mdx#L178

Did you really mean 'lastSync'?
```
</Tab>
<Tab title="JavaScript">
```javascript
const state = CometChat.getSyncState(); // "IDLE" or "SYNCING"
const lastSync = await CometChat.getLastSyncTimestamp(); // server epoch seconds; 0 if never synced

Check warning on line 184 in sdk/javascript/offline-sync.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-sync.mdx#L184

Did you really mean 'lastSync'?
```
</Tab>
</Tabs>
Expand Down Expand Up @@ -224,7 +224,7 @@
| Rejection code | Meaning |
|---|---|
| `ERROR_OFFLINE_SYNC_IN_PROGRESS` | A sync (automatic or manual) is already running. |
| `ERROR_OFFLINE_SYNC_COOLDOWN` | A sync ran too recently; `details.retryAfterMs` carries the remaining cooldown. |

Check warning on line 227 in sdk/javascript/offline-sync.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/offline-sync.mdx#L227

Did you really mean 'cooldown'?
| `ERROR_OFFLINE_DISABLED` | A user is logged in but offline support is not active. |
| `USER_NOT_LOGED_IN` | Nobody is logged in (spelling as the SDK returns it). |

Expand Down
2 changes: 2 additions & 0 deletions ui-kit/react/cometchat-provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export default App;

For production, use `CometChatUIKit.loginWithAuthToken(token)` instead of `login(uid)`.

To turn on offline support (saved chats without a network, queued sends), add `.setOfflineConfig({ enabled: true })` to the builder before `build()`. See [Offline Support](/ui-kit/react/offline-support).

---

## Props
Expand Down
1 change: 1 addition & 0 deletions ui-kit/react/components/audio-bubble.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@

Key capabilities:

- **Stacked audio cards** — one card per audio attachment with filename, play/pause, seekable slider, elapsed/total time

Check warning on line 37 in ui-kit/react/components/audio-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/audio-bubble.mdx#L37

Did you really mean 'seekable'?
- **Inline playback** — plays audio directly in the bubble without a fullscreen viewer

Check warning on line 38 in ui-kit/react/components/audio-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/audio-bubble.mdx#L38

Did you really mean 'fullscreen'?
- **Download button** — download individual audio files
- **Batch grouping** — rendered as one connected group when several media messages are sent together (handled by the [message list](/ui-kit/react/components/message-list#multi-attachment-batch-grouping))
- **Caption support** — optional caption rendered below the cards
- **Offline support** — with [offline support](/ui-kit/react/offline-support) on, media downloaded while online is shown from the device; a file that isn't saved shows "Available when online" while offline, and tapping it asks the SDK to download it

<Info>
**Live Preview** — interact with the audio bubble.
Expand All @@ -48,7 +49,7 @@

<iframe
src="https://storybook.cometchat.io/react/iframe.html?id=components-bubbles-message-bubble-audios--two-audios&viewMode=story&shortcuts=false&singleStory=true"
className="w-full rounded-xl"

Check warning on line 52 in ui-kit/react/components/audio-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/audio-bubble.mdx#L52

Did you really mean 'className'?
loading="lazy"
style={{height: "500px", border: "1px solid #e0e0e0"}}
title="CometChat Audio Bubble — Two Audios"
Expand Down Expand Up @@ -78,7 +79,7 @@
| --- | --- |
| Play/Pause button | Toggles playback for that audio file |
| Filename | Display name of the audio file |
| Seek slider | Seekable progress bar showing current position |

Check warning on line 82 in ui-kit/react/components/audio-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/audio-bubble.mdx#L82

Did you really mean 'Seekable'?
| Time display | `currentTime / totalDuration` in `m:ss` format |
| Download button | Downloads the audio file |

Expand Down Expand Up @@ -119,9 +120,9 @@

---

### textFormatters

Check warning on line 123 in ui-kit/react/components/audio-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/audio-bubble.mdx#L123

Did you really mean 'textFormatters'?

Text formatters applied to the caption (mentions, URLs).

Check warning on line 125 in ui-kit/react/components/audio-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/audio-bubble.mdx#L125

Did you really mean 'formatters'?

| | |
| --- | --- |
Expand Down
13 changes: 13 additions & 0 deletions ui-kit/react/components/conversations.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Conversations"
description: "Scrollable list of recent one-on-one and group conversations for the logged-in user with real-time updates."

Check warning on line 3 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L3

Did you really mean 'Scrollable'?
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -47,12 +47,13 @@
"onSearchBarClicked": "() => void"
},
"visibility": {
"hideReceipts": { "type": "boolean", "default": false },

Check warning on line 50 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L50

Did you really mean 'hideReceipts'?
"hideUserStatus": { "type": "boolean", "default": false },
"hideGroupType": { "type": "boolean", "default": false },
"hideUnreadCount": { "type": "boolean", "default": false },
"hideDeleteConversation": { "type": "boolean", "default": false },
"hidePinConversation": { "type": "boolean", "default": false },
"hideOfflineNotices": { "type": "boolean", "default": false, "since": "7.3.0", "note": "Offline support only." },
"showSearchBar": { "type": "boolean", "default": true },
"showScrollbar": { "type": "boolean", "default": false }
},
Expand All @@ -61,14 +62,14 @@
"customSoundForMessages": { "type": "string", "default": "built-in" }
},
"selection": {
"selectionMode": {

Check warning on line 65 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L65

Did you really mean 'selectionMode'?
"type": "CometChatConversationsSelectionMode",
"values": ["'none'", "'single'", "'multiple'"],
"default": "'none'"
}
},
"formatting": {
"textFormatters": { "type": "CometChatTextFormatter[]", "default": "undefined", "since": "7.2.0", "note": "Applied to the last-message subtitle." }

Check warning on line 72 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L72

Did you really mean 'textFormatters'?
},
"viewSlots": {
"itemView": "(conversation: CometChat.Conversation) => ReactNode",
Expand Down Expand Up @@ -165,6 +166,7 @@
- Search filtering
- Selection mode (single/multiple)
- Pin conversation — pin a chat to the top of the list, with a pin indicator on the row
- Offline support (when turned on) — saved conversations first, "Connect to load chats" when nothing is saved, and a notice if unsent messages were lost. See [Offline Support](/ui-kit/react/offline-support)

---

Expand Down Expand Up @@ -225,7 +227,7 @@
function ChatApp() {
const [user, setUser] = useState<User | undefined>();
const [group, setGroup] = useState<Group | undefined>();
const [activeConversation, setActiveConversation] = useState<Conversation | undefined>();

Check warning on line 230 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L230

Did you really mean 'activeConversation'?

const handleConversationClick = (conversation: Conversation) => {
setActiveConversation(conversation); // highlights the open row in the list
Expand Down Expand Up @@ -313,9 +315,9 @@
| Prop | Signature | Fires when |
| --- | --- | --- |
| `onItemClick` | `(conversation: CometChat.Conversation) => void` | User clicks a conversation item |
| `onSelect` | `(conversation: CometChat.Conversation, selected: boolean) => void` | Conversation selected/deselected (selection mode) |

Check warning on line 318 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L318

Did you really mean 'onSelect'?
| `onError` | `((error: CometChat.CometChatException) => void) \| null` | SDK error occurs |

Check warning on line 319 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L319

Did you really mean 'onError'?
| `onEmpty` | `() => void` | List is empty after initial fetch |

Check warning on line 320 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L320

Did you really mean 'onEmpty'?
| `onSearchBarClicked` | `() => void` | Search bar is clicked (makes input read-only) |

### Events Emitted
Expand Down Expand Up @@ -381,8 +383,8 @@

```tsx
<CometChatConversations
headerView={<MyCustomHeader />}

Check warning on line 386 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L386

Did you really mean 'headerView'?
itemView={(conversation) => <MyCustomItem conversation={conversation} />}

Check warning on line 387 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L387

Did you really mean 'itemView'?
emptyView={<EmptyState />}
loadingView={<Skeleton />}
errorView={<ErrorBanner />}
Expand All @@ -392,10 +394,10 @@
| Slot | Signature | Replaces |
| --- | --- | --- |
| `itemView` | `(conversation) => ReactNode` | Entire conversation row |
| `leadingView` | `(conversation) => ReactNode` | Avatar section |

Check warning on line 397 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L397

Did you really mean 'leadingView'?
| `titleView` | `(conversation) => ReactNode` | Conversation name |

Check warning on line 398 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L398

Did you really mean 'titleView'?
| `subtitleView` | `(conversation) => ReactNode` | Last message preview |

Check warning on line 399 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L399

Did you really mean 'subtitleView'?
| `trailingView` | `(conversation) => ReactNode` | Timestamp + unread badge |

Check warning on line 400 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L400

Did you really mean 'trailingView'?
| `headerView` | `ReactNode` | Header area |
| `searchView` | `ReactNode` | Search bar |
| `loadingView` | `ReactNode` | Loading shimmer |
Expand Down Expand Up @@ -712,7 +714,7 @@

let className = "conversations__trailing-view-min";
let topLabel = `${diffInMinutes}`;
let bottomLabel = diffInMinutes === 1 ? "Min ago" : "Mins ago";

Check warning on line 717 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L717

Did you really mean 'bottomLabel'?

Check warning on line 717 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L717

Did you really mean 'Mins'?

if (diffInHours >= 1 && diffInHours <= 10) {
className = "conversations__trailing-view-hour";
Expand Down Expand Up @@ -934,7 +936,7 @@
| Sub-component | Description | Props | Flat API equivalent |
| --- | --- | --- | --- |
| `Root` | Context provider and container | All Root props + `children` | — |
| `List` | Scrollable conversation list | `itemView`, `className` | `itemView` |

Check warning on line 939 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L939

Did you really mean 'Scrollable'?
| `Item` | Individual conversation row | `leadingView`, `titleView`, `subtitleView`, `trailingView`, `className` | Per-item view props |
| `Header` | Header area | `title`, `children` | `headerView` |
| `SearchBar` | Search input | `placeholder`, `onClick` | `searchView` |
Expand Down Expand Up @@ -991,7 +993,7 @@

---

### searchKeyword

Check warning on line 996 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L996

Did you really mean 'searchKeyword'?

Initial search keyword to pre-filter conversations on mount.

Expand Down Expand Up @@ -1090,6 +1092,17 @@

---

### hideOfflineNotices

Hide the notice that [offline support](/ui-kit/react/offline-support#hide-the-offline-notices) shows after a cache reset lost, or may have lost, unsent messages. Has no effect with offline support off.

| | |
| --- | --- |
| Type | `boolean` |
| Default | `false` |

---

### showSearchBar

Whether to show the search bar. Set to `false` to hide it entirely.
Expand All @@ -1105,9 +1118,9 @@

---

### showScrollbar

Check warning on line 1121 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L1121

Did you really mean 'showScrollbar'?

Show the native scrollbar on the conversation list.

Check warning on line 1123 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L1123

Did you really mean 'scrollbar'?

| | |
| --- | --- |
Expand Down Expand Up @@ -1236,7 +1249,7 @@

### textFormatters

Custom display formatters applied to the **last-message subtitle** of each conversation item.

Check warning on line 1252 in ui-kit/react/components/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/conversations.mdx#L1252

Did you really mean 'formatters'?

| | |
| --- | --- |
Expand Down
1 change: 1 addition & 0 deletions ui-kit/react/components/file-bubble.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- **Download button** — download individual files
- **Batch grouping** — rendered as one connected group when several media messages are sent together (handled by the [message list](/ui-kit/react/components/message-list#multi-attachment-batch-grouping))
- **Caption support** — optional caption rendered below the cards
- **Offline support** — with [offline support](/ui-kit/react/offline-support) on, media downloaded while online is shown from the device; a file that isn't saved shows "Available when online" while offline, and tapping it asks the SDK to download it

<Info>
**Live Preview** — interact with the file bubble.
Expand All @@ -41,7 +42,7 @@

<iframe
src="https://storybook.cometchat.io/react/iframe.html?id=components-bubbles-message-bubble-files--two-files&viewMode=story&shortcuts=false&singleStory=true"
className="w-full rounded-xl"

Check warning on line 45 in ui-kit/react/components/file-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/file-bubble.mdx#L45

Did you really mean 'className'?
loading="lazy"
style={{height: "500px", border: "1px solid #e0e0e0"}}
title="CometChat File Bubble — Two Files"
Expand Down Expand Up @@ -124,9 +125,9 @@

---

### textFormatters

Check warning on line 128 in ui-kit/react/components/file-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/file-bubble.mdx#L128

Did you really mean 'textFormatters'?

Text formatters applied to the caption (mentions, URLs).

Check warning on line 130 in ui-kit/react/components/file-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/file-bubble.mdx#L130

Did you really mean 'formatters'?

| | |
| --- | --- |
Expand Down
1 change: 1 addition & 0 deletions ui-kit/react/components/group-members.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Group Members"
description: "Scrollable list of members for a specific group with role-based actions like kick, ban, and scope change."

Check warning on line 3 in ui-kit/react/components/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/group-members.mdx#L3

Did you really mean 'Scrollable'?
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -44,6 +44,7 @@
- Search filtering
- Role-based action menus (kick, ban, change scope)
- Selection mode (single/multiple)
- Offline support (when turned on) — saved members first, and "Connect to load members" or "Connect to search" when nothing is saved. See [Offline Support](/ui-kit/react/offline-support)

---

Expand Down Expand Up @@ -217,12 +218,12 @@

| Slot | Signature | Replaces |
| --- | --- | --- |
| `itemView` | `(member) => ReactNode` | Entire member row |

Check warning on line 221 in ui-kit/react/components/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/group-members.mdx#L221

Did you really mean 'itemView'?
| `leadingView` | `(member) => ReactNode` | Avatar section |
| `titleView` | `(member) => ReactNode` | Member name |
| `subtitleView` | `(member) => ReactNode` | Status / role text |
| `trailingView` | `(member) => ReactNode` | Scope badge + action menu |
| `headerView` | `ReactNode` | Header area |

Check warning on line 226 in ui-kit/react/components/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/group-members.mdx#L226

Did you really mean 'headerView'?
| `loadingView` | `ReactNode` | Loading shimmer |
| `emptyView` | `ReactNode` | Empty state |
| `errorView` | `ReactNode` | Error state |
Expand Down Expand Up @@ -331,7 +332,7 @@
</Tab>
</Tabs>

#### subtitleView

Check warning on line 335 in ui-kit/react/components/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/group-members.mdx#L335

Did you really mean 'subtitleView'?

Replace the subtitle text. Joined date example.

Expand Down Expand Up @@ -376,7 +377,7 @@
</Tab>
</Tabs>

#### trailingView

Check warning on line 380 in ui-kit/react/components/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/group-members.mdx#L380

Did you really mean 'trailingView'?

Replace the right section. Scope tag example.

Expand Down Expand Up @@ -550,7 +551,7 @@
| Sub-component | Description | Props | Flat API equivalent |
| --- | --- | --- | --- |
| `Root` | Context provider and container | All Root props + `children` | — |
| `List` | Scrollable member list | `itemView` | `itemView` |

Check warning on line 554 in ui-kit/react/components/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/group-members.mdx#L554

Did you really mean 'Scrollable'?
| `Item` | Individual member row | `leadingView`, `titleView`, `subtitleView`, `trailingView` | Per-item view props |
| `Header` | Header area | `title`, `children` | `headerView` |
| `SearchBar` | Search input | `placeholder` | — |
Expand Down Expand Up @@ -623,7 +624,7 @@

---

### searchKeyword

Check warning on line 627 in ui-kit/react/components/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/group-members.mdx#L627

Did you really mean 'searchKeyword'?

Initial search keyword to pre-filter members on mount.

Expand All @@ -645,7 +646,7 @@

---

### hideSearch

Check warning on line 649 in ui-kit/react/components/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/group-members.mdx#L649

Did you really mean 'hideSearch'?

Hide the search bar entirely.

Expand Down Expand Up @@ -689,9 +690,9 @@

---

### showScrollbar

Check warning on line 693 in ui-kit/react/components/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/group-members.mdx#L693

Did you really mean 'showScrollbar'?

Show the native scrollbar on the member list.

Check warning on line 695 in ui-kit/react/components/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/group-members.mdx#L695

Did you really mean 'scrollbar'?

| | |
| --- | --- |
Expand All @@ -700,7 +701,7 @@

---

### selectionMode

Check warning on line 704 in ui-kit/react/components/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/group-members.mdx#L704

Did you really mean 'selectionMode'?

Enable selection mode for single or multi-select operations.

Expand Down
1 change: 1 addition & 0 deletions ui-kit/react/components/groups.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Groups"
description: "Searchable, scrollable list of groups with selection support and real-time membership updates."

Check warning on line 3 in ui-kit/react/components/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/groups.mdx#L3

Did you really mean 'scrollable'?
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -45,6 +45,7 @@
- Search filtering
- Swipe/hover options
- Selection mode (single/multiple)
- Offline support (when turned on) — saved groups first, and "Connect to load groups" or "Connect to search" when nothing is saved. See [Offline Support](/ui-kit/react/offline-support)

---

Expand Down Expand Up @@ -107,7 +108,7 @@
return (
<div style={{ display: "flex", height: "100vh" }}>
<div style={{ width: 360 }}>
<CometChatGroups onItemClick={(g) => setGroup(g)} activeGroup={group} />

Check warning on line 111 in ui-kit/react/components/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/groups.mdx#L111

Did you really mean 'activeGroup'?
</div>
{group && (
<div style={{ flex: 1, display: "flex", flexDirection: "column" }}>
Expand Down Expand Up @@ -218,7 +219,7 @@

| Slot | Signature | Replaces |
| --- | --- | --- |
| `itemView` | `(group) => ReactNode` | Entire group row |

Check warning on line 222 in ui-kit/react/components/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/groups.mdx#L222

Did you really mean 'itemView'?
| `leadingView` | `(group) => ReactNode` | Avatar section |
| `titleView` | `(group) => ReactNode` | Group name |
| `subtitleView` | `(group) => ReactNode` | Member count / description |
Expand Down Expand Up @@ -325,7 +326,7 @@
</Tab>
</Tabs>

#### titleView

Check warning on line 329 in ui-kit/react/components/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/groups.mdx#L329

Did you really mean 'titleView'?

Replace the name / title text. Group type badge inline example.

Expand Down Expand Up @@ -389,7 +390,7 @@
</Tab>
</Tabs>

#### subtitleView

Check warning on line 393 in ui-kit/react/components/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/groups.mdx#L393

Did you really mean 'subtitleView'?

Replace the member count subtitle text.

Expand Down Expand Up @@ -453,7 +454,7 @@
| Sub-component | Description | Props | Flat API equivalent |
| --- | --- | --- | --- |
| `Root` | Context provider and container | All Root props + `children` | — |
| `List` | Scrollable group list | `itemView` | `itemView` |

Check warning on line 457 in ui-kit/react/components/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/groups.mdx#L457

Did you really mean 'Scrollable'?
| `Item` | Individual group row | `leadingView`, `titleView`, `subtitleView`, `trailingView` | Per-item view props |
| `Header` | Header area | `title`, `children` | `headerView` |
| `SearchBar` | Search input | `placeholder` | — |
Expand Down Expand Up @@ -510,7 +511,7 @@

---

### searchKeyword

Check warning on line 514 in ui-kit/react/components/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/groups.mdx#L514

Did you really mean 'searchKeyword'?

Initial search keyword to pre-filter groups on mount.

Expand All @@ -532,7 +533,7 @@

---

### hideSearch

Check warning on line 536 in ui-kit/react/components/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/groups.mdx#L536

Did you really mean 'hideSearch'?

Hide the search bar entirely.

Expand All @@ -543,9 +544,9 @@

---

### showScrollbar

Check warning on line 547 in ui-kit/react/components/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/groups.mdx#L547

Did you really mean 'showScrollbar'?

Show the native scrollbar on the group list.

Check warning on line 549 in ui-kit/react/components/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/groups.mdx#L549

Did you really mean 'scrollbar'?

| | |
| --- | --- |
Expand All @@ -554,7 +555,7 @@

---

### selectionMode

Check warning on line 558 in ui-kit/react/components/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/groups.mdx#L558

Did you really mean 'selectionMode'?

Enable selection mode for single or multi-select operations.

Expand Down
1 change: 1 addition & 0 deletions ui-kit/react/components/image-bubble.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Image Bubble"
sidebarTitle: "Image Bubble"
description: "A batch-aware bubble that renders one or more image attachments with adaptive grid layouts, a caption, and a fullscreen gallery viewer."

Check warning on line 4 in ui-kit/react/components/image-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/image-bubble.mdx#L4

Did you really mean 'fullscreen'?
---

<Accordion title="AI Integration Quick Reference">
Expand All @@ -13,7 +13,7 @@
| Package | `@cometchat/chat-uikit-react` |
| Import | `import { CometChatImagesBubble } from "@cometchat/chat-uikit-react";` |
| CSS root class | `.cometchat-images-bubble` |
| Primary output | `onImageClicked(attachment, index)` — opens the fullscreen gallery |

Check warning on line 16 in ui-kit/react/components/image-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/image-bubble.mdx#L16

Did you really mean 'fullscreen'?
| Prerequisites | App wrapped in [`CometChatProvider`](/ui-kit/react/cometchat-provider) with valid credentials + a logged-in user |
| Stitching | None — self-extracting from the SDK message |
| Full props | See [Props](#props) |
Expand All @@ -27,9 +27,10 @@
Key capabilities:

- **Adaptive grid layouts** — single image, 2-column, 2×2 grid, and overflow (+N) based on attachment count
- **Fullscreen gallery viewer** — click any image to open a paginated fullscreen gallery

Check warning on line 30 in ui-kit/react/components/image-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/image-bubble.mdx#L30

Did you really mean 'Fullscreen'?

Check warning on line 30 in ui-kit/react/components/image-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/image-bubble.mdx#L30

Did you really mean 'fullscreen'?
- **Batch grouping** — rendered as one connected group when several media messages are sent together (handled by the [message list](/ui-kit/react/components/message-list#multi-attachment-batch-grouping))
- **Placeholder loading** — shows a configurable placeholder while images load
- **Offline support** — with [offline support](/ui-kit/react/offline-support) on, media downloaded while online is shown from the device; a file that isn't saved shows "Available when online" while offline, and tapping it asks the SDK to download it

<Info>
**Live Preview** — interact with the image bubble.
Expand All @@ -39,7 +40,7 @@

<iframe
src="https://storybook.cometchat.io/react/iframe.html?id=components-bubbles-message-bubble-images--grid-3-images&viewMode=story&shortcuts=false&singleStory=true"
className="w-full rounded-xl"

Check warning on line 43 in ui-kit/react/components/image-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/image-bubble.mdx#L43

Did you really mean 'className'?
loading="lazy"
style={{height: "700px", border: "1px solid #e0e0e0"}}
title="CometChat Image Bubble — 3 Image Grid"
Expand Down Expand Up @@ -109,9 +110,9 @@

---

### textFormatters

Check warning on line 113 in ui-kit/react/components/image-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/image-bubble.mdx#L113

Did you really mean 'textFormatters'?

Text formatters applied to the caption (mentions, URLs).

Check warning on line 115 in ui-kit/react/components/image-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/image-bubble.mdx#L115

Did you really mean 'formatters'?

| | |
| --- | --- |
Expand All @@ -120,7 +121,7 @@

---

### placeholderImage

Check warning on line 124 in ui-kit/react/components/image-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/image-bubble.mdx#L124

Did you really mean 'placeholderImage'?

Custom placeholder image URL shown while the image is loading. Falls back to a default photo icon.

Expand All @@ -133,7 +134,7 @@

### onImageClicked

Callback fired when an image tile is clicked (in addition to opening the fullscreen viewer).

Check warning on line 137 in ui-kit/react/components/image-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/image-bubble.mdx#L137

Did you really mean 'fullscreen'?

| | |
| --- | --- |
Expand Down
1 change: 1 addition & 0 deletions ui-kit/react/components/message-composer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}
},
"textInput": {
"initialText": { "type": "string", "default": "undefined" },

Check warning on line 32 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L32

Did you really mean 'initialText'?
"text": { "type": "string", "default": "undefined", "note": "Controlled mode — consumer owns state" },
"placeholder": { "type": "string", "default": "'Type a message...'" },
"enterKeyBehavior": {
Expand All @@ -48,7 +48,7 @@
"messageToReply": { "type": "CometChat.BaseMessage | null", "default": "null" }
},
"attachments": {
"attachmentOptions": { "type": "CometChatComposerAttachmentOption[]", "default": "undefined" },

Check warning on line 51 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L51

Did you really mean 'attachmentOptions'?
"hideAttachmentOptions": { "type": "CometChatAttachmentHideOptions", "default": "undefined", "keys": ["image", "video", "audio", "file", "polls", "collaborativeDocument", "collaborativeWhiteboard"], "note": "All keys optional booleans. Stickers are not a key — use hideStickersButton." },
"showAttachmentPreview": { "type": "boolean", "default": true },
"enableMultipleAttachments": { "type": "boolean", "default": true, "note": "Enable multi-attachment staging tray and batch send. Set false for legacy single-select behavior." },
Expand Down Expand Up @@ -162,6 +162,7 @@
- Edit and reply mode with preview banners
- Typing indicator events
- Live reactions
- Offline support (when turned on) — a text message, sticker, custom message or attachment sent without a connection is queued and goes out on reconnect. An attachment is queued only if it fits in the media cache budget; a file that does not fit is refused at once with "File too large to send offline". See [Offline Support](/ui-kit/react/offline-support)

---

Expand Down Expand Up @@ -287,12 +288,12 @@

Each staged file is a tile with its own upload lifecycle:

| State | Meaning | Tile UI | Retryable |

Check warning on line 291 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L291

Did you really mean 'Retryable'?
| --- | --- | --- | --- |
| `uploading` | Bytes are transferring | Progress ring with percentage | — |
| `success` | Uploaded, ready to send | Thumbnail (image/video) or file card | — |
| `failed` | Transfer failed (transient — e.g. network drop) | Retry control on the tile | Yes |
| `rejected` | File not accepted (see below) | Rejected marker + hover tooltip | No |

Check warning on line 296 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L296

Did you really mean 'tooltip'?

This mirrors the underlying SDK upload semantics: **failed** uploads are transient and can be retried, while **rejected** files must be swapped out.

Expand All @@ -302,20 +303,20 @@
- **Per-file size** — a file larger than the allowed size (`file.size.max`) is rejected as an individual tile.

<Note>
These limits are **Dashboard/app-level settings**, not UI Kit props. The maximum file **count** (`file.count.max`) and **size** (`file.size.max`) are read from your CometChat app settings at runtime, and permitted file **types** are governed by your app's role-based file-type permissions (RBAC/SBAC). If an attachment is rejected unexpectedly, verify these settings for your app and role in the CometChat Dashboard — they are not overridable from the composer.

Check warning on line 306 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L306

Did you really mean 'overridable'?
</Note>

### Why a file is rejected

A rejected tile explains itself on hover via a tooltip:

Check warning on line 311 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L311

Did you really mean 'tooltip'?

| Reason | What the tooltip conveys |

Check warning on line 313 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L313

Did you really mean 'tooltip'?
| --- | --- |
| File exceeds the maximum size | The file is too large, including the configured size limit in MB. |
| File type not permitted | The file's type is blocked by your app's role-based file-type permissions (RBAC/SBAC). |

<Note>
The per-file **size** and **type** rejections surface on the individual tile (with the hover tooltip above). The **count** limit is different — it rejects the whole over-limit pick at once and surfaces as a validation banner, not a per-tile tooltip.

Check warning on line 319 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L319

Did you really mean 'tooltip'?

Check warning on line 319 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L319

Did you really mean 'tooltip'?
</Note>

### Batch send
Expand Down Expand Up @@ -348,8 +349,8 @@

| Event | Payload | Fires when |
| --- | --- | --- |
| `ui:message/sent` | `{ message, status }` | Message sent (inprogress → success/error) |

Check warning on line 352 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L352

Did you really mean 'inprogress'?
| `ui:compose/edit` | `{ message, status }` | Message edit (inprogress → success/error/cancelled) |

Check warning on line 353 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L353

Did you really mean 'inprogress'?
| `ui:compose/reply` | `{ message, status }` | Reply context set/cleared |
| `ui:compose/recording-started` | `{ composerInstanceId }` | Voice recording started (stops other instances) |

Expand Down Expand Up @@ -398,7 +399,7 @@
| `toolbarTrailingView` | `ReactNode` | Content at the trailing end of the rich-text formatting toolbar |
| `headerView` | `ReactNode` | Header area above the input |

#### attachmentOptions

Check warning on line 402 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L402

Did you really mean 'attachmentOptions'?

Override the default attachment options.

Expand Down Expand Up @@ -478,7 +479,7 @@
```

<Note>
The toolbar (and therefore the trailing view) only renders when the rich-text editor is enabled — pass `enableRichTextEditor`. For a complete walkthrough that builds the button and formatter, see the [Custom Text Formatter guide](/ui-kit/react/guide-custom-text-formatter).

Check warning on line 482 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L482

Did you really mean 'walkthrough'?
</Note>

Your node is rendered as-is with **no wrapper class** — style it yourself. It sits inside `.cometchat-formatting-toolbar`, after an auto-inserted `.cometchat-formatting-toolbar__separator`.
Expand Down Expand Up @@ -769,7 +770,7 @@

#### hideAttachmentOptions

Hide specific attachment options in the default layout. Replaces the seven individual `hide*Option` booleans from v6.

Check warning on line 773 in ui-kit/react/components/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-composer.mdx#L773

Did you really mean 'booleans'?

| | |
| --- | --- |
Expand Down
1 change: 1 addition & 0 deletions ui-kit/react/components/message-header.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
- Online/offline presence status (for 1-on-1 conversations)
- Group member count (for group conversations)
- Real-time typing indicators
- Offline support (when turned on) — while the SDK is disconnected, the one-to-one header shows no "Online" subtitle and no header shows typing; a group header keeps its member count. See [Offline Support](/ui-kit/react/offline-support)
- Voice and video call buttons with call state management
- Back navigation for mobile layouts
- AI conversation summary trigger
Expand All @@ -205,7 +206,7 @@
<CometChatMessageHeader
user={user}
onItemClick={(entity) => openDetails(entity)}
onBack={() => navigateBack()}

Check warning on line 209 in ui-kit/react/components/message-header.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-header.mdx#L209

Did you really mean 'onBack'?
/>
);
}
Expand Down Expand Up @@ -306,7 +307,7 @@
| `onVoiceCallClick` | `(entity: CometChat.User \| CometChat.Group) => void` | User clicks the voice call button |
| `onVideoCallClick` | `(entity: CometChat.User \| CometChat.Group) => void` | User clicks the video call button |
| `onPinnedMessagesClicked` | `() => void` | User clicks "Pinned messages" in the overflow menu |
| `onError` | `((error: CometChat.CometChatException) => void) \| null` | SDK error occurs |

Check warning on line 310 in ui-kit/react/components/message-header.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-header.mdx#L310

Did you really mean 'onError'?

<Note>
These navigation callbacks are placeholders you wire to your app's layout. `onSearchOptionClicked` should open in-conversation search (mount `CometChatSearch` → jump to a result via `goToMessageId`) — see the [Search Messages guide](/ui-kit/react/guide-search-messages). `onItemClick` typically opens a details/info panel, and `onBack` returns to the conversation list; both are handled by your own routing/layout state.
Expand Down Expand Up @@ -362,7 +363,7 @@

| Slot | Type | Replaces |
| --- | --- | --- |
| `leadingView` | `ReactNode` | Avatar area |

Check warning on line 366 in ui-kit/react/components/message-header.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-header.mdx#L366

Did you really mean 'leadingView'?
| `titleView` | `ReactNode` | Display name |
| `subtitleView` | `ReactNode` | Status / typing indicator |
| `trailingView` | `ReactNode` | Call buttons + overflow menu |
Expand All @@ -370,7 +371,7 @@

#### Custom item layout

Combine `leadingView`, `titleView`, and `subtitleView` to fully replace the header's item area.

Check warning on line 374 in ui-kit/react/components/message-header.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-header.mdx#L374

Did you really mean 'titleView'?

Check warning on line 374 in ui-kit/react/components/message-header.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-header.mdx#L374

Did you really mean 'subtitleView'?

<Frame>
<img src="/images/0a3d38de-messages_header_list_item_view_web_screens-024979a70f09486b76e913633bfc9e81.png" />
Expand Down
15 changes: 14 additions & 1 deletion ui-kit/react/components/message-list.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Message List"
description: "Scrollable message feed with plugin-based bubble rendering, reactions, receipts, threads, and real-time updates."

Check warning on line 3 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L3

Did you really mean 'Scrollable'?
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -35,7 +35,7 @@
"parentMessageId": {
"type": "number",
"default": "undefined",
"note": "Deprecated — pass parentMessage instead. Still honoured (as the parent's id) when parentMessage is absent."

Check warning on line 38 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L38

Did you really mean 'parentMessage'?
}
},
"data": {
Expand Down Expand Up @@ -71,7 +71,7 @@
}
},
"visibility": {
"hideReceipts": { "type": "boolean", "default": false },

Check warning on line 74 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L74

Did you really mean 'hideReceipts'?
"hideStickyDate": { "type": "boolean", "default": false },
"hideDateSeparator": { "type": "boolean", "default": false },
"hideAvatar": { "type": "boolean", "default": false },
Expand All @@ -82,7 +82,8 @@
"showConversationStarters": { "type": "boolean", "default": false },
"showMarkAsUnreadOption": { "type": "boolean", "default": false },
"disableTruncation": { "type": "boolean", "default": false },
"isAgentChat": { "type": "boolean", "default": false }
"isAgentChat": { "type": "boolean", "default": false },
"hideOfflineNotices": { "type": "boolean", "default": false, "since": "7.3.0", "note": "Offline support only." }
},
"optionToggles": {
"hideReplyOption": { "type": "boolean", "default": false },
Expand Down Expand Up @@ -145,7 +146,7 @@
"onError": "((error: CometChat.CometChatException) => void) | null"
},
"formatting": {
"textFormatters": { "type": "CometChatTextFormatter[]", "default": "undefined", "since": "7.2.0", "note": "Merged into text and caption bubbles." }

Check warning on line 149 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L149

Did you really mean 'textFormatters'?
},
"viewSlots": {
"bubbleView": "(message: CometChat.BaseMessage, loggedInUser: CometChat.User) => ReactNode",
Expand Down Expand Up @@ -222,7 +223,7 @@

## Overview

`CometChatMessageList` is a scrollable message feed component. It renders messages for a given user or group conversation and emits thread navigation via `onThreadRepliesClick`. Wire it between `CometChatMessageHeader` and `CometChatMessageComposer` to build a standard chat panel.

Check warning on line 226 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L226

Did you really mean 'scrollable'?
<Info>
**Live Preview** — interact with the default message list.

Expand Down Expand Up @@ -250,6 +251,7 @@
- Date separators and sticky floating date header
- Jump-to-message for search results and deep links
- Mark-as-unread support
- Offline support (when turned on) — cached messages first, unsent messages marked with Retry and Delete, and "Connect to load …" where the cache runs out. See [Offline Support](/ui-kit/react/offline-support)

> **Note:** `user` and `group` are mutually exclusive. Pass one or the other to specify the conversation context.

Expand Down Expand Up @@ -501,7 +503,7 @@

### Pin and Save Options

When pinning and saving are enabled for your app (the `features.ux.messages.pinned.enabled` and `features.ux.messages.saved.enabled` app settings), `CometChatMessageList` automatically adds **Pin**, **Unpin**, **Save**, and **Unsave** to the message context menu — no props required. The **Pin/Unpin option is shown to every member** — the client does not gate it by role. The **server** enforces who may pin or unpin in that conversation; a denied attempt is rejected and surfaces a permission toast (localized via the `action_permission_denied` key). Saving is per-user and always available.

Check warning on line 506 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L506

Did you really mean 'Unsave'?

Use the `hide*` props to remove any of these options:

Expand All @@ -518,7 +520,7 @@
| `hidePinMessageOption` | Pin |
| `hideUnpinMessageOption` | Unpin |
| `hideSaveMessageOption` | Save |
| `hideUnsaveMessageOption` | Unsave |

Check warning on line 523 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L523

Did you really mean 'Unsave'?
| `hideThreadSubscriptionOption` | Subscribe / unsubscribe thread |

See the [Pin & Save Messages guide](/ui-kit/react/guide-pin-and-save-messages) for the full screen, and [Core Features → Pin & Save](/ui-kit/react/core-features#pin-and-save-messages) for enabling the features.
Expand All @@ -530,12 +532,12 @@
```tsx
<CometChatMessageList
user={user}
headerView={<TypingIndicator />}

Check warning on line 535 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L535

Did you really mean 'headerView'?
footerView={<SmartRepliesBar />}

Check warning on line 536 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L536

Did you really mean 'footerView'?
emptyView={<EmptyConversation />}
loadingView={<MessageSkeleton />}
errorView={<ErrorBanner />}
bubbleView={(message, loggedInUser) => <CustomBubble message={message} />}

Check warning on line 540 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L540

Did you really mean 'bubbleView'?
/>
```

Expand All @@ -544,11 +546,11 @@
| `bubbleView` | `(message, loggedInUser) => ReactNode` | Entire bubble rendering for each message |
| `headerView` | `ReactNode` | Header area above the scroll container |
| `footerView` | `ReactNode` | Footer area below the scroll container |
| `loadingView` | `ReactNode` | Loading shimmer |

Check warning on line 549 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L549

Did you really mean 'loadingView'?
| `emptyView` | `ReactNode` | Empty state |

Check warning on line 550 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L550

Did you really mean 'emptyView'?
| `errorView` | `ReactNode` | Error state |

Check warning on line 551 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L551

Did you really mean 'errorView'?

#### headerView

Check warning on line 553 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L553

Did you really mean 'headerView'?

Custom view above the message list.

Expand All @@ -564,7 +566,7 @@
import { CometChatMessageList, CometChatButton } from "@cometchat/chat-uikit-react";

function MessageListWithHeader() {
const [chatUser, setChatUser] = useState<CometChat.User>();

Check warning on line 569 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L569

Did you really mean 'chatUser'?

useEffect(() => {
CometChat.getUser("uid").then((user) => setChatUser(user));
Expand Down Expand Up @@ -618,7 +620,7 @@
</Tab>
</Tabs>

#### footerView

Check warning on line 623 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L623

Did you really mean 'footerView'?

Custom view below the message list.

Expand Down Expand Up @@ -685,7 +687,7 @@
| Sub-component | Description | Props | Flat API equivalent |
| --- | --- | --- | --- |
| `Root` | Context provider, data hook, container | All Root props + `children` | — |
| `View` | Scrollable message feed | `className` | — |

Check warning on line 690 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L690

Did you really mean 'Scrollable'?
| `Header` | Content above the feed | `children`, `className` | `headerView` |
| `Footer` | Content below the feed | `children`, `className` | `footerView` |
| `ScrollToBottom` | Floating scroll button | `className` | — |
Expand Down Expand Up @@ -804,7 +806,7 @@

---

### messageTypes

Check warning on line 809 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L809

Did you really mean 'messageTypes'?

Restrict which message types are fetched and displayed.

Expand All @@ -815,7 +817,7 @@

---

### messageCategories

Check warning on line 820 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L820

Did you really mean 'messageCategories'?

Restrict which message categories are fetched and displayed.

Expand Down Expand Up @@ -904,7 +906,7 @@

---

### hideAvatar

Check warning on line 909 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L909

Did you really mean 'hideAvatar'?

Hide the avatar on incoming messages in group conversations.

Expand Down Expand Up @@ -941,9 +943,9 @@

---

### showScrollbar

Check warning on line 946 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L946

Did you really mean 'showScrollbar'?

Show the native scrollbar on the message list. When `false`, the scrollbar is hidden but scrolling still works.

Check warning on line 948 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L948

Did you really mean 'scrollbar'?

Check warning on line 948 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L948

Did you really mean 'scrollbar'?

| | |
| --- | --- |
Expand Down Expand Up @@ -993,7 +995,7 @@

---

### disableTruncation

Check warning on line 998 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L998

Did you really mean 'disableTruncation'?

Disable text truncation (read more / show less) in text bubbles. When `true`, full message text is always shown.

Expand All @@ -1015,6 +1017,17 @@

---

### hideOfflineNotices

Hide the notices about unsent messages that [offline support](/ui-kit/react/offline-support#hide-the-offline-notices) shows in the list (removed, not sent, lost in a cache reset, outbox full, send refused, send under way). Has no effect with offline support off.

| | |
| --- | --- |
| Type | `boolean` |
| Default | `false` |

---

### Option Toggles

---
Expand Down Expand Up @@ -1076,7 +1089,7 @@

### hideUnsaveMessageOption

Hide the "Unsave" option from the message context menu.

Check warning on line 1092 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L1092

Did you really mean 'Unsave'?

| | |
| --- | --- |
Expand Down Expand Up @@ -1194,7 +1207,7 @@

### hideFlagRemarkField

Hide the remark textarea in the flag/report message dialog.

Check warning on line 1210 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L1210

Did you really mean 'textarea'?

| | |
| --- | --- |
Expand Down Expand Up @@ -1266,7 +1279,7 @@

---

### messageAlignment

Check warning on line 1282 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L1282

Did you really mean 'messageAlignment'?

Controls message bubble alignment. `0` aligns all messages to the left. `1` uses standard alignment (sent on right, received on left).

Expand Down Expand Up @@ -1320,7 +1333,7 @@

### smartRepliesDelayDuration

Delay in milliseconds before showing smart replies after a qualifying message is received. Acts as a debounce — if another message arrives within this window, the timer resets.

Check warning on line 1336 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L1336

Did you really mean 'debounce'?

| | |
| --- | --- |
Expand Down Expand Up @@ -1454,7 +1467,7 @@

---

### onError

Check warning on line 1470 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L1470

Did you really mean 'onError'?

Callback when an SDK error occurs during fetch or real-time operations.

Expand Down Expand Up @@ -1548,7 +1561,7 @@

### textFormatters

Custom display formatters merged into the text and caption bubbles rendered by the list.

Check warning on line 1564 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L1564

Did you really mean 'formatters'?

| | |
| --- | --- |
Expand Down Expand Up @@ -1596,7 +1609,7 @@
Display thread context above a threaded message list
</Card>
<Card title="Plugins Overview" icon="puzzle-piece" href="/ui-kit/react/plugins/overview">
Learn how plugins register custom bubble renderers

Check warning on line 1612 in ui-kit/react/components/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/message-list.mdx#L1612

Did you really mean 'renderers'?
</Card>
<Card title="Theming" icon="paintbrush" href="/ui-kit/react/theming">
Customize colors, fonts, and spacing
Expand Down
1 change: 1 addition & 0 deletions ui-kit/react/components/notification-feed.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

</Accordion>

`CometChatNotificationFeed` displays a scrollable notification feed where each item is rendered as a card using `@cometchat/cards-react`. It handles fetching, pagination, category filtering, timestamp grouping, real-time updates, and read/delivered/engagement reporting automatically.

Check warning on line 22 in ui-kit/react/components/notification-feed.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/notification-feed.mdx#L22

Did you really mean 'scrollable'?

<Note>
**Prerequisite: Campaigns must be configured first.** The feed only shows content once **Campaigns / Notifications are set up in the CometChat Dashboard** — channels, categories, and card templates. Without this, the feed renders but stays empty. See [Campaigns](/ui-kit/react/campaigns) for the end-to-end setup (Dashboard configuration through frontend wiring).
Expand Down Expand Up @@ -170,13 +170,13 @@
**Navigation is your app's responsibility.** `onItemClick` and `onActionClick` only report the intent (deep link, `chatWithUser`, `chatWithGroup`, `openUrl`) — the component does not route anywhere on its own. Your app must handle the transition (open the URL, switch to the chat with `params.uid` / `params.guid`, etc.). For the recommended navigation-event pattern, see [Event System — Navigation](/ui-kit/react/event-system#navigation).
</Note>

#### onError

Check warning on line 173 in ui-kit/react/components/notification-feed.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/notification-feed.mdx#L173

Did you really mean 'onError'?

Fires when an internal error occurs (network failure, SDK exception).

```tsx
<CometChatNotificationFeed
onError={(error) => {

Check warning on line 179 in ui-kit/react/components/notification-feed.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/notification-feed.mdx#L179

Did you really mean 'onError'?
console.error("Feed error:", error.message);
}}
/>
Expand All @@ -201,12 +201,13 @@
| --- | --- |
| Real-time updates | New items appear at the top via WebSocket `NotificationFeedListener` |
| Delivery reporting | Items are reported as delivered when fetched |
| Read reporting | Items are reported as read when visible in viewport (IntersectionObserver) |

Check warning on line 204 in ui-kit/react/components/notification-feed.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/notification-feed.mdx#L204

Did you really mean 'viewport'?
| Unread count polling | Polls unread count every 30 seconds to update badges |
| Infinite scroll | Fetches next page when scrolling near the bottom |
| Timestamp grouping | Groups items as "Today", "Yesterday", day name, or date |
| Category filtering | Filter chips row with per-category unread badges |
| Mark all read | Header button to mark all notifications as read |
| Offline support | With [offline support](/ui-kit/react/offline-support) on, saved items show first; with nothing saved offline, the feed shows "Connect to load notifications" and loads again on reconnect |

---

Expand Down Expand Up @@ -249,13 +250,13 @@
| Sub-component | Description | Props | Flat API equivalent |
| --- | --- | --- | --- |
| `Root` | Context provider and container | All Root props + `children` | — |
| `Header` | Header bar with title + mark-all-read | `title`, `showBackButton`, `onBackPress`, `children` | `headerView` |

Check warning on line 253 in ui-kit/react/components/notification-feed.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/notification-feed.mdx#L253

Did you really mean 'headerView'?
| `FilterChips` | Category filter chips | `children` | — |
| `List` | Scrollable feed list | `itemView` | `itemView` |

Check warning on line 255 in ui-kit/react/components/notification-feed.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/notification-feed.mdx#L255

Did you really mean 'Scrollable'?

Check warning on line 255 in ui-kit/react/components/notification-feed.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/notification-feed.mdx#L255

Did you really mean 'itemView'?
| `Item` | Individual feed item | `item`, `cardThemeMode`, `cardThemeOverride` | — |
| `EmptyState` | Empty state | `children` | `emptyView` |

Check warning on line 257 in ui-kit/react/components/notification-feed.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/notification-feed.mdx#L257

Did you really mean 'emptyView'?
| `ErrorState` | Error state | `children` | `errorView` |

Check warning on line 258 in ui-kit/react/components/notification-feed.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/notification-feed.mdx#L258

Did you really mean 'errorView'?
| `LoadingState` | Loading state | `children` | `loadingView` |

Check warning on line 259 in ui-kit/react/components/notification-feed.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/notification-feed.mdx#L259

Did you really mean 'loadingView'?

### CSS Styling

Expand All @@ -282,7 +283,7 @@
| `.cometchat-notification-feed__chip--active` | Active filter chip |
| `.cometchat-notification-feed__chip--inactive` | Inactive filter chip |
| `.cometchat-notification-feed__chip-badge` | Chip unread badge |
| `.cometchat-notification-feed__content` | Scrollable content area |

Check warning on line 286 in ui-kit/react/components/notification-feed.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/notification-feed.mdx#L286

Did you really mean 'Scrollable'?
| `.cometchat-notification-feed__item` | Feed item container |
| `.cometchat-notification-feed__item--unread` | Unread feed item |
| `.cometchat-notification-feed__unread-indicator` | Unread dot indicator |
Expand Down Expand Up @@ -311,7 +312,7 @@

---

### showHeader

Check warning on line 315 in ui-kit/react/components/notification-feed.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/notification-feed.mdx#L315

Did you really mean 'showHeader'?

Shows/hides the entire header.

Expand Down
1 change: 1 addition & 0 deletions ui-kit/react/components/pinned-messages.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
- Real-time updates when a message is pinned or unpinned
- An overflow menu of per-message options (unpin, save, copy, info, and more)
- Empty, loading, and error states
- Offline support (when turned on) — saved pinned messages first, and "Connect to load messages" when nothing is saved. See [Offline Support](/ui-kit/react/offline-support)

<Note>
Pinning must be enabled for your app through the `features.ux.messages.pinned.enabled` app setting for pins to load. See [Core Features](/ui-kit/react/core-features#pin-and-save-messages).
Expand All @@ -145,7 +146,7 @@

function PinnedPanel({
group,
onClose,

Check warning on line 149 in ui-kit/react/components/pinned-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/pinned-messages.mdx#L149

Did you really mean 'onClose'?
}: {
group: Group;
onClose: () => void;
Expand Down Expand Up @@ -372,9 +373,9 @@

---

### textFormatters

Check warning on line 376 in ui-kit/react/components/pinned-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/pinned-messages.mdx#L376

Did you really mean 'textFormatters'?

Text formatters applied when rendering the pinned message previews. See [Text Formatters](/ui-kit/react/plugins/text-formatters).

Check warning on line 378 in ui-kit/react/components/pinned-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/pinned-messages.mdx#L378

Did you really mean 'formatters'?

| | |
| --- | --- |
Expand Down Expand Up @@ -407,7 +408,7 @@

### hideSaveMessageOption / hideUnsaveMessageOption

Remove the save / unsave actions from the per-message options.

Check warning on line 411 in ui-kit/react/components/pinned-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/pinned-messages.mdx#L411

Did you really mean 'unsave'?

| | |
| --- | --- |
Expand Down Expand Up @@ -493,7 +494,7 @@

---

### className

Check warning on line 497 in ui-kit/react/components/pinned-messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react/components/pinned-messages.mdx#L497

Did you really mean 'className'?

Additional CSS class for the root element.

Expand Down
Loading