@blocksuite/virgo
Advanced tools
Comparing version 0.5.0-20230324145140-41b55b4 to 0.5.0-20230325162440-97027e3
@@ -31,3 +31,3 @@ import type { NullablePartial } from '@blocksuite/global/types'; | ||
}; | ||
get yText(): Y.YText; | ||
get yText(): Y.Text; | ||
get rootElement(): HTMLElement; | ||
@@ -34,0 +34,0 @@ get marks(): TextAttributes | null; |
@@ -181,2 +181,3 @@ import { assertExists, Slot } from '@blocksuite/global/utils'; | ||
})); | ||
//FIXME: wait for render refactor | ||
this.rootElement.focus({ preventScroll: true }); | ||
@@ -205,2 +206,4 @@ this.slots.updated.emit(); | ||
selection.addRange(newRange); | ||
//TODO: wait for render refactor | ||
// this.rootElement.focus({ preventScroll: true}); | ||
if (this.shouldScrollIntoView) { | ||
@@ -207,0 +210,0 @@ let lineElement = newRange.endContainer.parentElement; |
{ | ||
"name": "@blocksuite/virgo", | ||
"version": "0.5.0-20230324145140-41b55b4", | ||
"version": "0.5.0-20230325162440-97027e3", | ||
"description": "A micro editor.", | ||
@@ -26,3 +26,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@blocksuite/global": "0.5.0-20230324145140-41b55b4", | ||
"@blocksuite/global": "0.5.0-20230325162440-97027e3", | ||
"zod": "^3.21.4" | ||
@@ -29,0 +29,0 @@ }, |
@@ -256,2 +256,3 @@ import type { NullablePartial } from '@blocksuite/global/types'; | ||
//FIXME: wait for render refactor | ||
this.rootElement.focus({ preventScroll: true }); | ||
@@ -714,2 +715,5 @@ | ||
//TODO: wait for render refactor | ||
// this.rootElement.focus({ preventScroll: true}); | ||
if (this.shouldScrollIntoView) { | ||
@@ -716,0 +720,0 @@ let lineElement: HTMLElement | null = newRange.endContainer.parentElement; |
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
411967
5749
+ Added@blocksuite/global@0.5.0-20230325162440-97027e3(transitive)
- Removed@blocksuite/global@0.5.0-20230324145140-41b55b4(transitive)