@blocksuite/store
Advanced tools
Comparing version 0.4.1-20230225180029-daf8dec to 0.4.1-20230226175811-d32fc6d
{ | ||
"name": "@blocksuite/store", | ||
"version": "0.4.1-20230225180029-daf8dec", | ||
"version": "0.4.1-20230226175811-d32fc6d", | ||
"description": "BlockSuite data store built for general purpose state management.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.ts", |
@@ -12,5 +12,3 @@ import { Signal } from '@blocksuite/global/utils'; | ||
endOffset: number; | ||
startBlockId: string; | ||
endBlockId: string; | ||
betweenBlockIds: string[]; | ||
blockIds: string[]; | ||
} | ||
@@ -17,0 +15,0 @@ |
@@ -0,1 +1,2 @@ | ||
import type { BlockModels } from '@blocksuite/global/types'; | ||
import { Signal } from '@blocksuite/global/utils'; | ||
@@ -102,3 +103,3 @@ import type * as Y from 'yjs'; | ||
static version: number; | ||
flavour!: keyof BlockSuiteInternal.BlockModels & string; | ||
flavour!: keyof BlockModels & string; | ||
tag!: StaticValue; | ||
@@ -105,0 +106,0 @@ id: string; |
@@ -0,1 +1,2 @@ | ||
import type { BlockModels } from '@blocksuite/global/types'; | ||
import { isPrimitive, matchFlavours, SYS_KEYS } from '@blocksuite/global/utils'; | ||
@@ -123,3 +124,3 @@ import { fromBase64, toBase64 } from 'lib0/buffer.js'; | ||
block: BaseBlockModel | string, | ||
flavour: keyof BlockSuiteInternal.BlockModels | ||
flavour: keyof BlockModels | ||
): boolean { | ||
@@ -126,0 +127,0 @@ const parent = page.getParent(block); |
159623