@blocksuite/store
Advanced tools
Comparing version 0.0.0-20230406032111-01cf598b-nightly to 0.0.0-20230406182220-0e8dac41-nightly
@@ -21,3 +21,3 @@ import type { Cell, Column, SelectTag } from '@blocksuite/global/database'; | ||
deleteColumn(columnId: Column['id']): void; | ||
getCell(modelId: BaseBlockModel['id'], schemaId: Column['id']): Cell | null; | ||
getCell(rowId: BaseBlockModel['id'], columnId: Column['id']): Cell | null; | ||
updateCell(rowId: string, cell: Cell): void; | ||
@@ -24,0 +24,0 @@ copyCellsByColumn(fromId: Column['id'], toId: Column['id']): void; |
@@ -29,5 +29,5 @@ import { assertExists } from '@blocksuite/global/utils'; | ||
} | ||
getCell(modelId, schemaId) { | ||
const yRow = this.yCells.get(modelId); | ||
const yCell = yRow?.get(schemaId) ?? null; | ||
getCell(rowId, columnId) { | ||
const yRow = this.yCells.get(rowId); | ||
const yCell = yRow?.get(columnId) ?? null; | ||
if (!yCell) | ||
@@ -34,0 +34,0 @@ return null; |
{ | ||
"name": "@blocksuite/store", | ||
"version": "0.0.0-20230406032111-01cf598b-nightly", | ||
"version": "0.0.0-20230406182220-0e8dac41-nightly", | ||
"description": "BlockSuite data store built for general purpose state management.", | ||
@@ -22,4 +22,4 @@ "main": "dist/index.js", | ||
"zod": "^3.21.4", | ||
"@blocksuite/global": "0.0.0-20230406032111-01cf598b-nightly", | ||
"@blocksuite/virgo": "0.0.0-20230406032111-01cf598b-nightly" | ||
"@blocksuite/global": "0.0.0-20230406182220-0e8dac41-nightly", | ||
"@blocksuite/virgo": "0.0.0-20230406182220-0e8dac41-nightly" | ||
}, | ||
@@ -26,0 +26,0 @@ "devDependencies": { |
@@ -51,5 +51,5 @@ import type { Cell, Column, SelectTag } from '@blocksuite/global/database'; | ||
getCell(modelId: BaseBlockModel['id'], schemaId: Column['id']): Cell | null { | ||
const yRow = this.yCells.get(modelId); | ||
const yCell = (yRow?.get(schemaId) as Y.Map<unknown>) ?? null; | ||
getCell(rowId: BaseBlockModel['id'], columnId: Column['id']): Cell | null { | ||
const yRow = this.yCells.get(rowId); | ||
const yCell = (yRow?.get(columnId) as Y.Map<unknown>) ?? null; | ||
if (!yCell) return null; | ||
@@ -56,0 +56,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
608273
+ Added@blocksuite/global@0.0.0-20230406182220-0e8dac41-nightly(transitive)
+ Added@blocksuite/virgo@0.0.0-20230406182220-0e8dac41-nightly(transitive)
- Removed@blocksuite/global@0.0.0-20230406032111-01cf598b-nightly(transitive)
- Removed@blocksuite/virgo@0.0.0-20230406032111-01cf598b-nightly(transitive)
Updated@blocksuite/global@0.0.0-20230406182220-0e8dac41-nightly
Updated@blocksuite/virgo@0.0.0-20230406182220-0e8dac41-nightly