@blocksuite/block-std
Advanced tools
Comparing version 0.0.0-20230806233219-17ca6eee-nightly to 0.0.0-20230807164933-9f6fb698-nightly
@@ -1,2 +0,1 @@ | ||
import { assertExists } from '@blocksuite/global/utils'; | ||
import { UIEventState, UIEventStateContext } from '../base.js'; | ||
@@ -73,4 +72,5 @@ export class RangeControl { | ||
const view = getBlockView(ancestor)?.view; | ||
assertExists(view); | ||
return [view]; | ||
if (view) { | ||
return [view]; | ||
} | ||
} | ||
@@ -77,0 +77,0 @@ const nodes = new Set(); |
@@ -44,3 +44,3 @@ import { PathFinder } from '../../store/path-finder.js'; | ||
isCollapsed() { | ||
return this.to === null; | ||
return this.to === null && this.from.length === 0; | ||
} | ||
@@ -47,0 +47,0 @@ isInSameBlock() { |
{ | ||
"name": "@blocksuite/block-std", | ||
"version": "0.0.0-20230806233219-17ca6eee-nightly", | ||
"version": "0.0.0-20230807164933-9f6fb698-nightly", | ||
"description": "Std for blocksuite blocks", | ||
@@ -12,10 +12,10 @@ "main": "dist/index.js", | ||
"peerDependencies": { | ||
"@blocksuite/store": "0.0.0-20230806233219-17ca6eee-nightly" | ||
"@blocksuite/store": "0.0.0-20230807164933-9f6fb698-nightly" | ||
}, | ||
"dependencies": { | ||
"w3c-keyname": "^2.2.8", | ||
"@blocksuite/global": "0.0.0-20230806233219-17ca6eee-nightly" | ||
"@blocksuite/global": "0.0.0-20230807164933-9f6fb698-nightly" | ||
}, | ||
"devDependencies": { | ||
"@blocksuite/store": "0.0.0-20230806233219-17ca6eee-nightly" | ||
"@blocksuite/store": "0.0.0-20230807164933-9f6fb698-nightly" | ||
}, | ||
@@ -22,0 +22,0 @@ "exports": { |
@@ -1,2 +0,1 @@ | ||
import { assertExists } from '@blocksuite/global/utils'; | ||
import type { BlockElement } from '@blocksuite/lit'; | ||
@@ -117,4 +116,5 @@ | ||
const view = getBlockView(ancestor)?.view; | ||
assertExists(view); | ||
return [view]; | ||
if (view) { | ||
return [view]; | ||
} | ||
} | ||
@@ -121,0 +121,0 @@ const nodes = new Set<Node>(); |
@@ -76,3 +76,3 @@ import { PathFinder } from '../../store/path-finder.js'; | ||
isCollapsed(): boolean { | ||
return this.to === null; | ||
return this.to === null && this.from.length === 0; | ||
} | ||
@@ -79,0 +79,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
423529
+ Added@blocksuite/global@0.0.0-20230807164933-9f6fb698-nightly(transitive)
+ Added@blocksuite/store@0.0.0-20230807164933-9f6fb698-nightly(transitive)
+ Added@blocksuite/virgo@0.0.0-20230807164933-9f6fb698-nightly(transitive)
- Removed@blocksuite/global@0.0.0-20230806233219-17ca6eee-nightly(transitive)
- Removed@blocksuite/store@0.0.0-20230806233219-17ca6eee-nightly(transitive)
- Removed@blocksuite/virgo@0.0.0-20230806233219-17ca6eee-nightly(transitive)
Updated@blocksuite/global@0.0.0-20230807164933-9f6fb698-nightly