@blocksuite/shared
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -1,2 +0,2 @@ | ||
import { TextEntity } from '@blocksuite/store'; | ||
import { Text } from '@blocksuite/store'; | ||
import { ALLOW_DEFAULT, PREVENT_DEFAULT } from './consts'; | ||
@@ -30,3 +30,3 @@ import { Point, Rect } from './rect'; | ||
export function handleBlockSplit(store, model, splitIndex) { | ||
if (!(model.text instanceof TextEntity)) | ||
if (!(model.text instanceof Text)) | ||
return; | ||
@@ -33,0 +33,0 @@ const parent = store.getParent(model); |
{ | ||
"name": "@blocksuite/shared", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"type": "module", | ||
@@ -11,3 +11,3 @@ "description": "", | ||
"dependencies": { | ||
"@blocksuite/store": "0.2.3", | ||
"@blocksuite/store": "0.2.4", | ||
"hotkeys-js": "^3.10.0" | ||
@@ -14,0 +14,0 @@ }, |
import type { Quill } from 'quill'; | ||
import { BaseBlockModel, Store, TextEntity } from '@blocksuite/store'; | ||
import { BaseBlockModel, Store, Text } from '@blocksuite/store'; | ||
@@ -53,3 +53,3 @@ import { BlockHost, Detail, SelectionPosition, SelectOptions } from './types'; | ||
) { | ||
if (!(model.text instanceof TextEntity)) return; | ||
if (!(model.text instanceof Text)) return; | ||
@@ -124,3 +124,3 @@ const parent = store.getParent(model); | ||
store.transact(() => { | ||
previousSibling.text?.join(model.text as TextEntity); | ||
previousSibling.text?.join(model.text as Text); | ||
}); | ||
@@ -127,0 +127,0 @@ store.deleteBlock(model); |
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
84073
+ Added@blocksuite/store@0.2.4(transitive)
- Removed@blocksuite/store@0.2.3(transitive)
Updated@blocksuite/store@0.2.4