@lexical/yjs 0.3.7 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LexicalYjs.dev.js +2 -2
- package/package.json +3 -3
package/LexicalYjs.dev.js
CHANGED
|
@@ -1592,7 +1592,7 @@ function syncYjsChangesToLexical(binding, provider, events) {
|
|
|
1592
1592
|
}
|
|
1593
1593
|
|
|
1594
1594
|
function handleNormalizationMergeConflicts(binding, normalizedNodes) {
|
|
1595
|
-
// We handle the merge
|
|
1595
|
+
// We handle the merge operations here
|
|
1596
1596
|
const normalizedNodesKeys = Array.from(normalizedNodes);
|
|
1597
1597
|
const collabNodeMap = binding.collabNodeMap;
|
|
1598
1598
|
const mergedNodes = [];
|
|
@@ -1641,7 +1641,7 @@ function syncLexicalUpdateToYjs(binding, provider, prevEditorState, currEditorSt
|
|
|
1641
1641
|
currEditorState.read(() => {
|
|
1642
1642
|
// We check if the update has come from a origin where the origin
|
|
1643
1643
|
// was the collaboration binding previously. This can help us
|
|
1644
|
-
// prevent
|
|
1644
|
+
// prevent unnecessarily re-diffing and possible re-applying
|
|
1645
1645
|
// the same change editor state again. For example, if a user
|
|
1646
1646
|
// types a character and we get it, we don't want to then insert
|
|
1647
1647
|
// the same character again. The exception to this heuristic is
|
package/package.json
CHANGED
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"crdt"
|
|
12
12
|
],
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"version": "0.3.
|
|
14
|
+
"version": "0.3.10",
|
|
15
15
|
"main": "LexicalYjs.js",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@lexical/offset": "0.3.
|
|
17
|
+
"@lexical/offset": "0.3.10"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"lexical": "0.3.
|
|
20
|
+
"lexical": "0.3.10",
|
|
21
21
|
"yjs": ">=13.5.22"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|