Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@logseq/libs

Package Overview
Dependencies
Maintainers
6
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logseq/libs - npm Package Compare versions

Comparing version
0.0.14
to
0.0.15
+14
-0
CHANGELOG.md

@@ -7,2 +7,16 @@ # Changelog

## [0.0.15]
### Added
- Support a plug-in flag for the plugin slash commands item
- Support api of `logseq.App.setCurrentGraphConfigs: (configs: {}) => Promise<void>`
- Support hook of `logseq.App.onTodayJournalCreated: IUserHook<{ title: string }`
- Support more template-related APIs
- Support auto-check updates for the installed plugins from Marketplace
### Fixed
- Select and Input elements rendered using provideUI via `onMacroRendererSlotted` don't function [#8374](https://github.com/logseq/logseq/issues/8374)
- `logseq.Editor.getPageBlocksTree` does not work when page uuid is passed in as param [#4920](https://github.com/logseq/logseq/issues/4920)
## [0.0.14]

@@ -9,0 +23,0 @@

+1
-1

@@ -119,3 +119,3 @@ import EventEmitter from 'eventemitter3';

*/
unload(unregister?: boolean): Promise<boolean>;
unload(unregister?: boolean): Promise<void>;
private dispose;

@@ -122,0 +122,0 @@ _dispose(fn: any): void;

@@ -234,3 +234,3 @@ import * as CSS from 'csstype';

added: Array<SearchBlockItem>;
removed: Array<BlockEntity>;
removed: Array<EntityID>;
}) => Promise<void>;

@@ -277,3 +277,3 @@ onGraphRemoved: (graph: string, opts?: {}) => Promise<any>;

/**
* Call external plugin command provided by models or registerd commands
* Call external plugin command provided by models or registered commands
* @added 0.0.13

@@ -312,7 +312,16 @@ * @param type `xx-plugin-id.commands.xx-key`, `xx-plugin-id.models.xx-key`

getCurrentGraph: () => Promise<AppGraphInfo | null>;
getCurrentGraphConfigs: () => Promise<any>;
getCurrentGraphConfigs: (...keys: string[]) => Promise<any>;
setCurrentGraphConfigs: (configs: {}) => Promise<void>;
getCurrentGraphFavorites: () => Promise<Array<string> | null>;
getCurrentGraphRecent: () => Promise<Array<string> | null>;
getCurrentGraphTemplates: () => Promise<Record<string, BlockEntity> | null>;
pushState: (k: string, params?: Record<string, any>, query?: Record<string, any>) => void;
replaceState: (k: string, params?: Record<string, any>, query?: Record<string, any>) => void;
getTemplate: (name: string) => Promise<BlockEntity | null>;
existTemplate: (name: string) => Promise<Boolean>;
createTemplate: (target: BlockUUID, name: string, opts?: {
overwrite: boolean;
}) => Promise<any>;
removeTemplate: (name: string) => Promise<any>;
insertTemplate: (target: BlockUUID, name: string) => Promise<any>;
queryElementById: (id: string) => Promise<string | boolean>;

@@ -357,2 +366,5 @@ /**

}>>;
onTodayJournalCreated: IUserHook<{
title: string;
}>;
/**

@@ -399,3 +411,3 @@ * provide ui slot to specific block with UUID

}>;
_installPluginHook: (pid: string, hook: string) => void;
_installPluginHook: (pid: string, hook: string, opts?: any) => void;
_uninstallPluginHook: (pid: string, hookOrAll: string | boolean) => void;

@@ -677,2 +689,8 @@ }

makeSandboxStorage(): IAsyncStorage;
/**
* make assets scheme url based on current graph
* @added 0.0.15
* @param path
*/
makeUrl(path: string): Promise<string>;
}

@@ -679,0 +697,0 @@ export interface ILSPluginThemeManager {

{
"name": "@logseq/libs",
"version": "0.0.14",
"version": "0.0.15",
"description": "Logseq SDK libraries",

@@ -5,0 +5,0 @@ "main": "dist/lsplugin.user.js",

Sorry, the diff of this file is too big to display