@tiptap/extension-collaboration
Minor Changes
-
Implement position mapping using the
MappablePositionclass. This enables position mapping in collaborative editing scenarios.- Introduce
MappablePositionclass in core withposition,fromJSON, andtoJSONmethods - Add
editor.utilsproperty withgetUpdatedPosition(position, transaction)andcreateMappablePosition()methods - Create
CollaborationMappablePositionsubclass that extendsMappablePositionwith Y.js relative position support
- Introduce
@tiptap/core
Minor Changes
-
Implement position mapping using the
MappablePositionclass. This enables position mapping in collaborative editing scenarios.- Introduce
MappablePositionclass in core withposition,fromJSON, andtoJSONmethods - Add
editor.utilsproperty withgetUpdatedPosition(position, transaction)andcreateMappablePosition()methods - Create
CollaborationMappablePositionsubclass that extendsMappablePositionwith Y.js relative position support
- Introduce
@tiptap/extension-collaboration-caret
Patch Changes
- Avoid mutating
this.optionsin theupdateUsercommand.this.optionscan be a getter and is not writable; the command now updates the provider awareness directly so user updates are applied correctly.
@tiptap/react
Minor Changes
- Replaced unmaintained
fast-deep-equaldependency with maintainedfast-equals
Patch Changes
- Fix a bug where React node views could receive invalid positions from
this.getPos()when ProseMirror and React render cycles got out of sync, which could cause errors during updates.