mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 00:21:37 +02:00
🐛 Fix text validation
This commit is contained in:
parent
cf68a9cf1e
commit
766040198a
1 changed files with 40 additions and 38 deletions
|
@ -21,44 +21,46 @@
|
||||||
[:type [:= "root"]]
|
[:type [:= "root"]]
|
||||||
[:key {:optional true} :string]
|
[:key {:optional true} :string]
|
||||||
[:children
|
[:children
|
||||||
[:vector {:min 1 :gen/max 2 :gen/min 1}
|
{:optional true}
|
||||||
[:map
|
[:maybe
|
||||||
[:type [:= "paragraph-set"]]
|
[:vector {:min 1 :gen/max 2 :gen/min 1}
|
||||||
[:key {:optional true} :string]
|
[:map
|
||||||
[:children
|
[:type [:= "paragraph-set"]]
|
||||||
[:vector {:min 1 :gen/max 2 :gen/min 1}
|
[:key {:optional true} :string]
|
||||||
[:map
|
[:children
|
||||||
[:type [:= "paragraph"]]
|
[:vector {:min 1 :gen/max 2 :gen/min 1}
|
||||||
[:key {:optional true} :string]
|
[:map
|
||||||
[:fills {:optional true}
|
[:type [:= "paragraph"]]
|
||||||
[:maybe
|
[:key {:optional true} :string]
|
||||||
[:vector {:gen/max 2} ::shape/fill]]]
|
[:fills {:optional true}
|
||||||
[:font-family {:optional true} :string]
|
[:maybe
|
||||||
[:font-size {:optional true} :string]
|
[:vector {:gen/max 2} ::shape/fill]]]
|
||||||
[:font-style {:optional true} :string]
|
[:font-family {:optional true} :string]
|
||||||
[:font-weight {:optional true} :string]
|
[:font-size {:optional true} :string]
|
||||||
[:direction {:optional true} :string]
|
[:font-style {:optional true} :string]
|
||||||
[:text-decoration {:optional true} :string]
|
[:font-weight {:optional true} :string]
|
||||||
[:text-transform {:optional true} :string]
|
[:direction {:optional true} :string]
|
||||||
[:typography-ref-id {:optional true} [:maybe ::sm/uuid]]
|
[:text-decoration {:optional true} :string]
|
||||||
[:typography-ref-file {:optional true} [:maybe ::sm/uuid]]
|
[:text-transform {:optional true} :string]
|
||||||
[:children
|
[:typography-ref-id {:optional true} [:maybe ::sm/uuid]]
|
||||||
[:vector {:min 1 :gen/max 2 :gen/min 1}
|
[:typography-ref-file {:optional true} [:maybe ::sm/uuid]]
|
||||||
[:map
|
[:children
|
||||||
[:text :string]
|
[:vector {:min 1 :gen/max 2 :gen/min 1}
|
||||||
[:key {:optional true} :string]
|
[:map
|
||||||
[:fills {:optional true}
|
[:text :string]
|
||||||
[:maybe
|
[:key {:optional true} :string]
|
||||||
[:vector {:gen/max 2} ::shape/fill]]]
|
[:fills {:optional true}
|
||||||
[:font-family {:optional true} :string]
|
[:maybe
|
||||||
[:font-size {:optional true} :string]
|
[:vector {:gen/max 2} ::shape/fill]]]
|
||||||
[:font-style {:optional true} :string]
|
[:font-family {:optional true} :string]
|
||||||
[:font-weight {:optional true} :string]
|
[:font-size {:optional true} :string]
|
||||||
[:direction {:optional true} :string]
|
[:font-style {:optional true} :string]
|
||||||
[:text-decoration {:optional true} :string]
|
[:font-weight {:optional true} :string]
|
||||||
[:text-transform {:optional true} :string]
|
[:direction {:optional true} :string]
|
||||||
[:typography-ref-id {:optional true} [:maybe ::sm/uuid]]
|
[:text-decoration {:optional true} :string]
|
||||||
[:typography-ref-file {:optional true} [:maybe ::sm/uuid]]]]]]]]]]]])
|
[:text-transform {:optional true} :string]
|
||||||
|
[:typography-ref-id {:optional true} [:maybe ::sm/uuid]]
|
||||||
|
[:typography-ref-file {:optional true} [:maybe ::sm/uuid]]]]]]]]]]]]])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue