0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 09:08:31 -05:00

Add detach method to plugins

This commit is contained in:
alonso.torres 2024-07-12 10:06:27 +02:00
parent 59005e3bb8
commit 21b15167dd

View file

@ -32,6 +32,7 @@
[app.common.uuid :as uuid]
[app.main.data.workspace :as dw]
[app.main.data.workspace.groups :as dwg]
[app.main.data.workspace.libraries :as dwl]
[app.main.data.workspace.selection :as dws]
[app.main.data.workspace.shape-layout :as dwsl]
[app.main.data.workspace.shapes :as dwsh]
@ -441,6 +442,10 @@
(let [[root component] (u/locate-component objects shape)]
(lib-component-proxy $plugin (:component-file root) (:id component))))))
(detach
[_]
(st/emit! (dwl/detach-component $id)))
(export
[self value]
(let [value (parser/parse-export value)]