@blocksuite/virgo
Advanced tools
Comparing version 0.0.0-20231127102934-4db7c04e-nightly to 0.0.0-20231128125833-66182b18-nightly
@@ -160,3 +160,3 @@ import { assertExists } from '@blocksuite/global/utils'; | ||
if (this.vRangeProvider) { | ||
this.vRangeProvider.setVRange(vRange); | ||
this.vRangeProvider.setVRange(vRange, sync); | ||
return; | ||
@@ -163,0 +163,0 @@ } |
@@ -8,3 +8,3 @@ function handleInsertText(vRange, data, editor, attributes) { | ||
length: 0, | ||
}, false); | ||
}); | ||
} | ||
@@ -16,3 +16,3 @@ function handleInsertParagraph(vRange, editor) { | ||
length: 0, | ||
}, false); | ||
}); | ||
} | ||
@@ -24,3 +24,3 @@ function handleDelete(vRange, editor) { | ||
length: 0, | ||
}, false); | ||
}); | ||
} | ||
@@ -27,0 +27,0 @@ export function transformInput(inputType, data, attributes, vRange, editor) { |
@@ -13,3 +13,3 @@ import { DisposableGroup, Slot } from '@blocksuite/global/utils'; | ||
getVRange(): VRange | null; | ||
setVRange(vRange: VRange | null): void; | ||
setVRange(vRange: VRange | null, sync: boolean): void; | ||
vRangeUpdatedSlot: Slot<VRangeUpdatedProp>; | ||
@@ -16,0 +16,0 @@ } |
{ | ||
"name": "@blocksuite/virgo", | ||
"version": "0.0.0-20231127102934-4db7c04e-nightly", | ||
"version": "0.0.0-20231128125833-66182b18-nightly", | ||
"description": "A micro editor.", | ||
@@ -27,3 +27,3 @@ "type": "module", | ||
"zod": "^3.22.4", | ||
"@blocksuite/global": "0.0.0-20231127102934-4db7c04e-nightly" | ||
"@blocksuite/global": "0.0.0-20231128125833-66182b18-nightly" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
@@ -255,3 +255,3 @@ import { assertExists } from '@blocksuite/global/utils'; | ||
if (this.vRangeProvider) { | ||
this.vRangeProvider.setVRange(vRange); | ||
this.vRangeProvider.setVRange(vRange, sync); | ||
return; | ||
@@ -258,0 +258,0 @@ } |
@@ -13,9 +13,6 @@ import type { VRange } from '../types.js'; | ||
editor.insertText(vRange, data, attributes); | ||
editor.setVRange( | ||
{ | ||
index: vRange.index + data.length, | ||
length: 0, | ||
}, | ||
false | ||
); | ||
editor.setVRange({ | ||
index: vRange.index + data.length, | ||
length: 0, | ||
}); | ||
} | ||
@@ -25,9 +22,6 @@ | ||
editor.insertLineBreak(vRange); | ||
editor.setVRange( | ||
{ | ||
index: vRange.index + 1, | ||
length: 0, | ||
}, | ||
false | ||
); | ||
editor.setVRange({ | ||
index: vRange.index + 1, | ||
length: 0, | ||
}); | ||
} | ||
@@ -37,9 +31,6 @@ | ||
editor.deleteText(vRange); | ||
editor.setVRange( | ||
{ | ||
index: vRange.index, | ||
length: 0, | ||
}, | ||
false | ||
); | ||
editor.setVRange({ | ||
index: vRange.index, | ||
length: 0, | ||
}); | ||
} | ||
@@ -46,0 +37,0 @@ |
@@ -30,3 +30,3 @@ import { assertExists, DisposableGroup, Slot } from '@blocksuite/global/utils'; | ||
getVRange(): VRange | null; | ||
setVRange(vRange: VRange | null): void; | ||
setVRange(vRange: VRange | null, sync: boolean): void; | ||
vRangeUpdatedSlot: Slot<VRangeUpdatedProp>; | ||
@@ -33,0 +33,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 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
532806
8564
+ Added@blocksuite/global@0.0.0-20231128125833-66182b18-nightly(transitive)
- Removed@blocksuite/global@0.0.0-20231127102934-4db7c04e-nightly(transitive)
Updated@blocksuite/global@0.0.0-20231128125833-66182b18-nightly