Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cometchat-22654f5b-react-uikit-v7.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

FieldValue
Plugin IDcollaborative-document
Package@cometchat/chat-uikit-react
Message Typesextension_document
Message Categoriescustom
Included by DefaultYes
Bubble ComponentCometChatCollaborativeBubble
Conversation PreviewCollaborative Document
Context MenuReact, Reply, Reply in Thread, Info, Delete, Report, Mark Unread, Message Privately

Overview

The Collaborative Document plugin handles messages of type extension_document in category custom. It renders a card with a document banner image, title, subtitle, and an “Open Document” button that launches the collaborative editor in a new window.

Bubble Rendering

  • Banner image — themed (light/dark) document illustration
  • Title — “Collaborative Document”
  • Subtitle — “Open document to edit content together”
  • Button — “Open Document” — opens the document URL in a fullscreen popup window
  • Lazy-loaded — the bubble component is not included in the initial bundle
The document URL is extracted from the message’s extension metadata at @injected.extensions.document.document_url.

Context Menu Options

Standard media options: React, Reply, Reply in Thread, Info, Delete, Report, Mark Unread, Message Privately.

Conversation Preview

Returns: Collaborative Document (localized via conversation_subtitle_collaborative_document key)

CSS Selectors

TargetSelector
Bubble root.cometchat-collaborative-bubble
Banner image.cometchat-collaborative-bubble__banner
Title.cometchat-collaborative-bubble__title
Subtitle.cometchat-collaborative-bubble__subtitle
Open button.cometchat-collaborative-bubble__button