diff --git a/libs/src/LSPlugin.ts b/libs/src/LSPlugin.ts index fb1647c99e..28617ce5cf 100644 --- a/libs/src/LSPlugin.ts +++ b/libs/src/LSPlugin.ts @@ -191,14 +191,14 @@ export interface BlockEntity { parent: IEntityID title: string content?: string // @deprecated. Use :title instead! - page: IEntityID + page: IEntityID // owner page createdAt: number updatedAt: number + ident?: string // ident for property block properties?: Record 'collapsed?': boolean // optional fields in dummy page - left?: IEntityID anchor?: string body?: any children?: Array @@ -812,7 +812,7 @@ export interface IEditorProxy extends Record { upsertProperty: ( key: string, schema?: Partial<{ - type: 'default' | 'map' | 'number' | 'keyword' | 'node' | 'date' | 'checkbox' | string, + type: 'default' | 'number' | 'node' | 'date' | 'checkbox' | 'url' | string, cardinality: 'many' | 'one', hide: boolean public: boolean @@ -831,7 +831,7 @@ export interface IEditorProxy extends Record { removeBlockProperty: (block: BlockIdentity, key: string) => Promise - getBlockProperty: (block: BlockIdentity, key: string) => Promise + getBlockProperty: (block: BlockIdentity, key: string) => Promise getBlockProperties: (block: BlockIdentity) => Promise | null> diff --git a/src/main/logseq/api/block.cljs b/src/main/logseq/api/block.cljs index 3688dfcfd1..9559b28851 100644 --- a/src/main/logseq/api/block.cljs +++ b/src/main/logseq/api/block.cljs @@ -46,7 +46,7 @@ (defn resolve-property-prefix-for-db [^js plugin] (when (some-> js/window.LSPlugin (.-PluginLocal)) - (or (some-> plugin (.-id) (sanitize-user-property-name) (str ".")) + (or (some->> plugin (.-id) (sanitize-user-property-name) (str ".")) "._api"))) ;; FIXME: This ns should not be creating idents. This allows for ident conflicts