@slate-yjs/core
Advanced tools
Comparing version 0.2.6 to 0.2.7
# @slate-yjs/core | ||
## 0.2.7 | ||
### Patch Changes | ||
- [#358](https://github.com/BitPhinix/slate-yjs/pull/358) [`27d39dd`](https://github.com/BitPhinix/slate-yjs/commit/27d39ddc3cf79797a878d0540f8b2605fcf38988) Thanks [@zarv1k](https://github.com/zarv1k)! - use editor.sharedRoot in connect/disconnect | ||
## 0.2.6 | ||
@@ -4,0 +10,0 @@ |
@@ -945,3 +945,3 @@ var __defProp = Object.defineProperty; | ||
} | ||
sharedRoot.observeDeep(handleYEvents); | ||
e.sharedRoot.observeDeep(handleYEvents); | ||
const content = yTextToSlateElement(e.sharedRoot); | ||
@@ -957,3 +957,3 @@ e.children = content.children; | ||
YjsEditor.flushLocalChanges(e); | ||
sharedRoot.unobserveDeep(handleYEvents); | ||
e.sharedRoot.unobserveDeep(handleYEvents); | ||
CONNECTED.delete(e); | ||
@@ -960,0 +960,0 @@ }; |
{ | ||
"name": "@slate-yjs/core", | ||
"sideEffects": false, | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Yjs binding for Slate.", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -209,3 +209,3 @@ import { BaseEditor, Descendant, Editor, Operation, Point } from 'slate'; | ||
sharedRoot.observeDeep(handleYEvents); | ||
e.sharedRoot.observeDeep(handleYEvents); | ||
const content = yTextToSlateElement(e.sharedRoot); | ||
@@ -223,3 +223,3 @@ e.children = content.children; | ||
YjsEditor.flushLocalChanges(e); | ||
sharedRoot.unobserveDeep(handleYEvents); | ||
e.sharedRoot.unobserveDeep(handleYEvents); | ||
CONNECTED.delete(e); | ||
@@ -226,0 +226,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1754724