enhance(apis): enhance createTag function to accept options for custom UUID

This commit is contained in:
charlie
2025-11-06 15:46:31 +08:00
parent fa407c1564
commit bd4b022a08
3 changed files with 18 additions and 7 deletions

View File

@@ -780,7 +780,7 @@ export interface IEditorProxy extends Record<string, any> {
getAllTags: () => Promise<PageEntity[] | null>
getAllProperties: () => Promise<PageEntity[] | null>
getTagObjects: (PageIdentity) => Promise<BlockEntity[] | null>
createTag: (tagName: string) => Promise<PageEntity | null>
createTag: (tagName: string, opts?: Partial<{ uuid: string }>) => Promise<PageEntity | null>
addTagProperty: (tagId: BlockIdentity, propertyIdOrName: BlockIdentity) => Promise<void>
removeTagProperty: (tagId: BlockIdentity, propertyIdOrName: BlockIdentity) => Promise<void>
addBlockTag: (blockId: BlockIdentity, tagId: BlockIdentity) => Promise<void>