mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
Enhance: APIs related issues (#10782)
* fix(plugins): load unpacked package for the existed plugin * enhance(plugin): increase timeout time for the plugin handshake * enhance(api): support option to insert block with auto ordered list * fix(api): skip empty target for the batch insertion blocks * fix(api): before option for the batch blocks insertion * enhance(api): types * chore: bump minor version * fix(apis): Empty `payload.uuid` when executing onMacroRendererSlotted inside query table
This commit is contained in:
@@ -119,14 +119,14 @@
|
||||
(rum/use-effect!
|
||||
(fn []
|
||||
(let [err-handle
|
||||
(fn [^js e]
|
||||
(case (keyword (aget e "name"))
|
||||
:IllegalPluginPackageError
|
||||
(notification/show! "Illegal Logseq plugin package." :error)
|
||||
:ExistedImportedPluginPackageError
|
||||
(notification/show! "Existed Imported plugin package." :error)
|
||||
:default)
|
||||
(plugin-handler/reset-unpacked-state))
|
||||
(fn [^js e]
|
||||
(case (keyword (aget e "name"))
|
||||
:IllegalPluginPackageError
|
||||
(notification/show! "Illegal Logseq plugin package." :error)
|
||||
:ExistedImportedPluginPackageError
|
||||
(notification/show! (str "Existed plugin package (" (.-message e) ").") :error)
|
||||
:default)
|
||||
(plugin-handler/reset-unpacked-state))
|
||||
reg-handle #(plugin-handler/reset-unpacked-state)]
|
||||
(when unpacked-pkg-path
|
||||
(doto js/LSPluginCore
|
||||
|
||||
Reference in New Issue
Block a user