mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
Differentiate groups and sets
This commit is contained in:
@@ -63,10 +63,12 @@
|
|||||||
[:map-of {:gen/max 5} ::sm/uuid ::media-object]]
|
[:map-of {:gen/max 5} ::sm/uuid ::media-object]]
|
||||||
[:plugin-data {:optional true}
|
[:plugin-data {:optional true}
|
||||||
[:map-of {:gen/max 5} :keyword ::ctpg/plugin-data]]
|
[:map-of {:gen/max 5} :keyword ::ctpg/plugin-data]]
|
||||||
[:token-themes [:vector ::sm/uuid]]
|
[:token-themes {:optional true}
|
||||||
|
[:vector ::sm/uuid]]
|
||||||
[:token-themes-index {:optional true}
|
[:token-themes-index {:optional true}
|
||||||
[:map-of {:gen/max 5} ::sm/uuid ::ctt/token-theme]]
|
[:map-of {:gen/max 5} ::sm/uuid ::ctt/token-theme]]
|
||||||
[:token-set-groups [:vector ::sm/uuid]]
|
[:token-set-groups {:optional true}
|
||||||
|
[:vector ::sm/uuid]]
|
||||||
[:token-set-groups-index {:optional true}
|
[:token-set-groups-index {:optional true}
|
||||||
[:map-of {:gen/max 10} ::sm/uuid ::ctt/token-set-group]]
|
[:map-of {:gen/max 10} ::sm/uuid ::ctt/token-set-group]]
|
||||||
[:token-sets-index {:optional true}
|
[:token-sets-index {:optional true}
|
||||||
|
|||||||
@@ -16,11 +16,22 @@
|
|||||||
[:modified-at {:optional true} ::sm/inst]
|
[:modified-at {:optional true} ::sm/inst]
|
||||||
[:sets [:set {:gen/max 10 :gen/min 1} ::sm/uuid]]])
|
[:sets [:set {:gen/max 10 :gen/min 1} ::sm/uuid]]])
|
||||||
|
|
||||||
|
(sm/register! ::token-set-group-ref
|
||||||
|
[:map
|
||||||
|
[:id :sm/uuid]
|
||||||
|
[:type [:= :group]]])
|
||||||
|
|
||||||
|
(sm/register! ::token-set-ref
|
||||||
|
[:map
|
||||||
|
[:id :sm/uuid]
|
||||||
|
[:type [:= :set]]])
|
||||||
|
|
||||||
(sm/register! ::token-set-group
|
(sm/register! ::token-set-group
|
||||||
[:map {:title "TokenSetGroup"}
|
[:map {:title "TokenSetGroup"}
|
||||||
[:id ::sm/uuid]
|
[:id ::sm/uuid]
|
||||||
[:name :string]
|
[:name :string]
|
||||||
[:sets [:vector {:gen/max 10 :gen/min 1} ::sm/uuid]]])
|
[:items [:vector {:gen/max 10 :gen/min 1}
|
||||||
|
[:or ::token-set-group-ref ::token-set-ref]]]])
|
||||||
|
|
||||||
(sm/register! ::token-set
|
(sm/register! ::token-set
|
||||||
[:map {:title "TokenSet"}
|
[:map {:title "TokenSet"}
|
||||||
|
|||||||
Reference in New Issue
Block a user