Include advanced interactions and flows in import/export

This commit is contained in:
Andrés Moya 2021-10-07 17:09:16 +02:00 committed by Alonso Torres
parent a6dfa6bbbd
commit 09d1c958ce
5 changed files with 146 additions and 50 deletions

View file

@ -315,7 +315,10 @@
page-data (-> (cip/parse-page-data content)
(assoc :name page-name)
(assoc :id (resolve page-id)))
file (-> file (fb/add-page page-data))]
flows (->> (get-in page-data [:options :flows])
(mapv #(update % :starting-frame resolve)))
page-data (d/assoc-in-when page-data [:options :flows] flows)
file (-> file (fb/add-page page-data))]
(->> (rx/from nodes)
(rx/filter cip/shape?)
(rx/mapcat (partial resolve-media context file-id))