akumatus
2024-09-05 15:24:36 +00:00
parent f4db4058f8
commit 9cbe416c2c
14 changed files with 939 additions and 143 deletions
@@ -1,20 +1,7 @@
import {
BrushSchema,
ConnectorSchema,
EdgelessTextSchema,
NoteSchema,
ShapeSchema,
} from '@blocksuite/affine-shared/utils';
import { NodePropsSchema } from '@blocksuite/affine-shared/utils';
import { z } from 'zod';
// TODO import from BlockSuite
export const BSEditorSettingSchema = z.object({
connector: ConnectorSchema,
brush: BrushSchema,
shape: ShapeSchema,
'affine:edgeless-text': EdgelessTextSchema,
'affine:note': NoteSchema,
});
export const BSEditorSettingSchema = NodePropsSchema;
export type FontFamily = 'Sans' | 'Serif' | 'Mono' | 'Custom';