Updated primitives

This commit is contained in:
Julien Eluard 2019-03-18 21:59:15 +01:00
parent 808ac1616d
commit 6ee3640801
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
2 changed files with 18 additions and 3 deletions

View File

@ -29,9 +29,21 @@
'activity-indicator {:data component :properties {:animating :boolean :color :string :size :keyword :hides-when-stopped :boolean}}
'picker {:data component :properties {:on-change :event :selected :string :enabled :boolean :data :vector}}
'nft-token-viewer {:data component :properties {:token :string}}
'transaction-status {:data component :properties {:outgoing :string :tx-hash :string}}}
'transaction-status {:data component :properties {:outgoing :string :tx-hash :string}}
'map {:data component
:properties {:marker {:lng :number
:lat :number
:boundingbox {:lng1 :number
:lat1 :number
:lng2 :number
:lat2 :number}}
:fly? :boolean
:interactive? :boolean
:on-change :event}}
'map-link {:data component :properties {:text :string :lng :any :lat :any}}}
:queries {'identity {:data :extensions/identity :arguments {:value :map}}
'store/get {:data :store/get :arguments {:key :string}}
'contacts/all {:data :extensions.contacts/all}
'wallet/collectibles {:data :get-collectible-token :arguments {:token :string :symbol :string}}
'wallet/balance {:data :extensions.wallet/balance :arguments {:token :string}}
'wallet/token {:data :extensions.wallet/token :arguments {:token :string :amount? :number :amount-in-wei? :number}}
@ -314,7 +326,7 @@
:view :view
:on-click? :event}}
:chat.command {:properties {:description? :string
:scope #{:personal-chats :public-chats}
:scope #{:personal-chats :public-chats :group-chats}
:short-preview :view
:preview :view
:parameters? [{:id :keyword

View File

@ -77,5 +77,8 @@
(deftest unresolved-properties
(is (= #{} (views/unresolved-properties #{} [:view {} ""])))
(is (= #{'a} (views/unresolved-properties #{} [:view {} 'a])))
#_(is (= #{'a} (views/unresolved-properties #{} [:view {:style {:key 'a}} ""])))
(is (= #{'a} (views/unresolved-properties #{} [:view {} [:view 'a]])))
(is (= #{'a} (views/unresolved-properties #{} [:view {:style {:key 'a}} ""])))
(is (= #{'a} (views/unresolved-properties #{} [:view {:style [:event ['a]]}])))
(is (= #{'a} (views/unresolved-properties #{} [:view {:style [:event {:params {:title 'a}}]}])))
(is (= #{'a} (views/unresolved-properties #{} [:view {} [:view {} 'a]]))))