@blocksuite/inline
Advanced tools
Comparing version 0.11.0-nightly-202312130039-9833e9f to 0.11.0-nightly-202312130833-3d913f0
import { VElement, VLine } from '../components/index.js'; | ||
export function isNativeTextInVText(text) { | ||
return (text instanceof Text && | ||
(text.parentElement?.dataset.vText === 'true' ?? false)); | ||
return text instanceof Text && text.parentElement?.dataset.vText === 'true'; | ||
} | ||
@@ -6,0 +5,0 @@ export function isVElement(element) { |
{ | ||
"name": "@blocksuite/inline", | ||
"version": "0.11.0-nightly-202312130039-9833e9f", | ||
"version": "0.11.0-nightly-202312130833-3d913f0", | ||
"description": "A micro editor.", | ||
@@ -27,3 +27,3 @@ "type": "module", | ||
"zod": "^3.22.4", | ||
"@blocksuite/global": "0.11.0-nightly-202312130039-9833e9f" | ||
"@blocksuite/global": "0.11.0-nightly-202312130833-3d913f0" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
import { VElement, VLine } from '../components/index.js'; | ||
export function isNativeTextInVText(text: unknown): text is Text { | ||
return ( | ||
text instanceof Text && | ||
(text.parentElement?.dataset.vText === 'true' ?? false) | ||
); | ||
return text instanceof Text && text.parentElement?.dataset.vText === 'true'; | ||
} | ||
@@ -9,0 +6,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
539007
8610
+ Added@blocksuite/global@0.11.0-nightly-202312130833-3d913f0(transitive)
- Removed@blocksuite/global@0.11.0-nightly-202312130039-9833e9f(transitive)
Updated@blocksuite/global@0.11.0-nightly-202312130833-3d913f0