Front-End Collaboration Presentation
Explanation
The User type represents the information required about a user involved in a real-time session.
A CollaborationManager provides the operations to access the status and collaboration provider for a given implementation.
The CollaborationManager allows seamlessly resolving a CollaborationManager according to the current configuration but is not mandatory. For instance, for a case where it is known that a single provider will be supported, the corresponding CollaborationManager can be directly injected and used.
We currently support two implementations: HocusPocus and XWiki.
A CollaborationInitializer groups together the actual provider instance, the Yjs document, and a promise resolved when the provider is initialized. This type provides all the information required to integrate real-time into an editor.