mirror of
https://github.com/penpot/penpot.git
synced 2025-06-27 05:37:00 +02:00
✨ Add text ranges support in plugins
This commit is contained in:
parent
018464aedf
commit
2da5dcb619
5 changed files with 285 additions and 14 deletions
|
@ -177,9 +177,11 @@
|
|||
|
||||
(defn array-to-js
|
||||
[value]
|
||||
(.freeze
|
||||
js/Object
|
||||
(apply array (->> value (map to-js)))))
|
||||
(if (coll? value)
|
||||
(.freeze
|
||||
js/Object
|
||||
(apply array (->> value (map to-js))))
|
||||
value))
|
||||
|
||||
(defn result-p
|
||||
"Creates a pair of atom+promise. The promise will be resolved when the atom gets a value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue