mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 20:16:26 +08:00
feat(editor): block comment extension (#12980)
#### PR Dependency Tree * **PR #12980** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal)
This commit is contained in:
@@ -10,7 +10,11 @@ import {
|
||||
|
||||
import type { BlockMeta } from './types';
|
||||
|
||||
export type EmbedProps<Props = object> = Props & GfxCompatibleProps & BlockMeta;
|
||||
export type EmbedProps<Props = object> = Props &
|
||||
GfxCompatibleProps &
|
||||
BlockMeta & {
|
||||
comments?: Record<string, boolean>;
|
||||
};
|
||||
|
||||
export function defineEmbedModel<
|
||||
Props extends object,
|
||||
@@ -52,6 +56,7 @@ export function createEmbedBlockSchema<
|
||||
xywh: '[0,0,0,0]',
|
||||
lockedBySelf: false,
|
||||
rotate: 0,
|
||||
comments: undefined,
|
||||
'meta:createdAt': undefined,
|
||||
'meta:updatedAt': undefined,
|
||||
'meta:createdBy': undefined,
|
||||
|
||||
Reference in New Issue
Block a user