@logseq/libs
Advanced tools
+14
-0
@@ -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 @@ |
@@ -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; |
+22
-4
@@ -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 { |
+1
-1
| { | ||
| "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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
179144
0.8%2319
0.78%24
4.35%