Skip to content

Commit dc4c712

Browse files
committed
enhance(apis): add note for setBlockIcon method
1 parent e8d06f6 commit dc4c712

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

libs/src/LSPlugin.core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const DIR_PLUGINS = 'plugins'
5454
declare global {
5555
interface Window {
5656
LSPluginCore: LSPluginCore
57-
DOMPurify: typeof DOMPurify
57+
DOMPurify: any
5858
$$callerPluginID: string | undefined
5959
}
6060
}

libs/src/LSPlugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,9 @@ export interface IEditorProxy extends Record<string, any> {
789789
removeTagExtends: (tagId: BlockIdentity, parentTagIdOrName: BlockIdentity) => Promise<void>
790790
addBlockTag: (blockId: BlockIdentity, tagId: BlockIdentity) => Promise<void>
791791
removeBlockTag: (blockId: BlockIdentity, tagId: BlockIdentity) => Promise<void>
792+
/**
793+
* @note Emoji icon name from https://learn.missiveapp.com/open/emoji-mart
794+
* */
792795
setBlockIcon: (blockId: BlockIdentity, iconType: 'tabler-icon' | 'emoji', iconName: string) => Promise<void>
793796
removeBlockIcon: (blockId: BlockIdentity) => Promise<void>
794797

0 commit comments

Comments
 (0)