mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
enhance(api): plugin class with ident like plugin.class.id/class-name (#12200)
* enhance(api): plugin class with ident like `plugin.class.id/class-name` * enhance(apis): remove support for namespace separator in create tag * enhance(apis): get tag with ident or uuid * fix(lint): remove unused vars * fix(apis): sanitize user property name * enhance(apis): get tag ex info * chore: bump libs version --------- Co-authored-by: charlie <xyhp915@qq.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@logseq/libs",
|
||||
"version": "0.2.7",
|
||||
"version": "0.2.8",
|
||||
"description": "Logseq SDK libraries",
|
||||
"main": "dist/lsplugin.user.js",
|
||||
"typings": "index.d.ts",
|
||||
|
||||
@@ -232,6 +232,7 @@ export interface PageEntity {
|
||||
children?: Array<PageEntity>
|
||||
properties?: Record<string, any>
|
||||
journalDay?: number
|
||||
ident?: string
|
||||
|
||||
[key: string]: unknown
|
||||
}
|
||||
@@ -779,8 +780,9 @@ export interface IEditorProxy extends Record<string, any> {
|
||||
getAllPages: (repo?: string) => Promise<PageEntity[] | null>
|
||||
getAllTags: () => Promise<PageEntity[] | null>
|
||||
getAllProperties: () => Promise<PageEntity[] | null>
|
||||
getTagObjects: (PageIdentity) => Promise<BlockEntity[] | null>
|
||||
getTagObjects: (nameOrIdent: string) => Promise<BlockEntity[] | null>
|
||||
createTag: (tagName: string, opts?: Partial<{ uuid: string }>) => Promise<PageEntity | null>
|
||||
getTag: (nameOrIdent: 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>
|
||||
|
||||
Reference in New Issue
Block a user