feat(editor): support file column and member column for database block (#10932)

close: BS-2630, BS-2631, BS-2629, BS-2632, BS-2635
This commit is contained in:
zzj3720
2025-03-18 14:51:45 +00:00
parent 321e3449ec
commit 3939cc1c52
34 changed files with 1796 additions and 77 deletions

View File

@@ -1,4 +1,4 @@
import type { Column } from '@blocksuite/affine-model';
import type { ColumnDataType } from '@blocksuite/affine-model';
import type { InsertToPosition } from '@blocksuite/affine-shared/utils';
import { computed, type ReadonlySignal } from '@preact/signals-core';
@@ -256,7 +256,7 @@ export abstract class DataSourceBase implements DataSource {
protected abstract getNormalPropertyAndIndex(propertyId: string):
| {
column: Column<Record<string, unknown>>;
column: ColumnDataType<Record<string, unknown>>;
index: number;
}
| undefined;

View File

@@ -39,7 +39,7 @@ export type PropertyConfig<Data, RawValue = unknown, JsonValue = unknown> = {
data: Data;
}>
) => JsonValue;
fromJson: (
fromJson?: (
config: WithCommonPropertyConfig<{
value: JsonValue;
data: Data;

View File

@@ -1,2 +1,5 @@
export * from './cell';
export * from './property';
export * from './row';
export * from './single-view.js';
export * from './view-manager.js';