@procivis/one-react-native-components 0.3.95 → 0.3.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/lib/commonjs/components/backup/preview-credentials.js.map +1 -1
  2. package/lib/commonjs/components/credential/credential.js.map +1 -1
  3. package/lib/commonjs/components/entity/EntityButtons.js.map +1 -1
  4. package/lib/commonjs/components/entity/entity-attributes.js.map +1 -1
  5. package/lib/commonjs/components/entity/entity-details-with-buttons.js +2 -2
  6. package/lib/commonjs/components/entity/entity-details-with-buttons.js.map +1 -1
  7. package/lib/commonjs/components/entity/entity-details.js +3 -3
  8. package/lib/commonjs/components/entity/entity-details.js.map +1 -1
  9. package/lib/commonjs/components/history/history-details-screen.js +10 -10
  10. package/lib/commonjs/components/history/history-details-screen.js.map +1 -1
  11. package/lib/commonjs/components/history/history-list-item-icon.js +10 -8
  12. package/lib/commonjs/components/history/history-list-item-icon.js.map +1 -1
  13. package/lib/commonjs/components/history/history-list-item.js.map +1 -1
  14. package/lib/commonjs/components/history/history-list-screen.js +1 -0
  15. package/lib/commonjs/components/history/history-list-screen.js.map +1 -1
  16. package/lib/commonjs/components/history/history-list-section-header.js +1 -1
  17. package/lib/commonjs/components/history/history-list-section-header.js.map +1 -1
  18. package/lib/commonjs/components/history/history-list.js.map +1 -1
  19. package/lib/commonjs/components/proof-request/share-credential-card-notice.js.map +1 -1
  20. package/lib/commonjs/components/proof-request/v1/select-credential.js.map +1 -1
  21. package/lib/commonjs/components/proof-request/v1/share-credential.js +1 -1
  22. package/lib/commonjs/components/proof-request/v1/share-credential.js.map +1 -1
  23. package/lib/commonjs/components/proof-request/v2/select-credential-v2.js.map +1 -1
  24. package/lib/commonjs/components/proof-request/v2/share-credential-v2-group.js +3 -2
  25. package/lib/commonjs/components/proof-request/v2/share-credential-v2-group.js.map +1 -1
  26. package/lib/commonjs/components/proof-request/v2/share-credential-v2.js +3 -2
  27. package/lib/commonjs/components/proof-request/v2/share-credential-v2.js.map +1 -1
  28. package/lib/commonjs/ui-components/accessibility/accessibilityHistoryWrappers.js.map +1 -1
  29. package/lib/commonjs/ui-components/accessibility/locale/fi.json +1 -1
  30. package/lib/commonjs/ui-components/buttons/connectivity-button.js +1 -0
  31. package/lib/commonjs/ui-components/buttons/connectivity-button.js.map +1 -1
  32. package/lib/commonjs/ui-components/buttons/filter-button.js +1 -0
  33. package/lib/commonjs/ui-components/buttons/filter-button.js.map +1 -1
  34. package/lib/commonjs/ui-components/buttons/ghost-button.js +1 -0
  35. package/lib/commonjs/ui-components/buttons/ghost-button.js.map +1 -1
  36. package/lib/commonjs/ui-components/buttons/hold-button.js +1 -0
  37. package/lib/commonjs/ui-components/buttons/hold-button.js.map +1 -1
  38. package/lib/commonjs/ui-components/buttons/scan-button.js +3 -0
  39. package/lib/commonjs/ui-components/buttons/scan-button.js.map +1 -1
  40. package/lib/commonjs/ui-components/buttons/share-button.js +1 -0
  41. package/lib/commonjs/ui-components/buttons/share-button.js.map +1 -1
  42. package/lib/commonjs/ui-components/control/checkbox.js +1 -0
  43. package/lib/commonjs/ui-components/control/checkbox.js.map +1 -1
  44. package/lib/commonjs/ui-components/credential/card/credential-card.js +1 -0
  45. package/lib/commonjs/ui-components/credential/card/credential-card.js.map +1 -1
  46. package/lib/commonjs/ui-components/credential/card/credential-details-card.js +3 -1
  47. package/lib/commonjs/ui-components/credential/card/credential-details-card.js.map +1 -1
  48. package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js +1 -0
  49. package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js.map +1 -1
  50. package/lib/commonjs/ui-components/credential/card/credential-header.js +1 -0
  51. package/lib/commonjs/ui-components/credential/card/credential-header.js.map +1 -1
  52. package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js +2 -0
  53. package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js.map +1 -1
  54. package/lib/commonjs/ui-components/credential/credential-attribute-item.js +1 -0
  55. package/lib/commonjs/ui-components/credential/credential-attribute-item.js.map +1 -1
  56. package/lib/commonjs/ui-components/credential/credential-carousel-images.js +2 -1
  57. package/lib/commonjs/ui-components/credential/credential-carousel-images.js.map +1 -1
  58. package/lib/commonjs/ui-components/credential/selector.js +1 -0
  59. package/lib/commonjs/ui-components/credential/selector.js.map +1 -1
  60. package/lib/commonjs/ui-components/entity/avatar.js +1 -0
  61. package/lib/commonjs/ui-components/entity/avatar.js.map +1 -1
  62. package/lib/commonjs/ui-components/entity/entity-cluster.js.map +1 -1
  63. package/lib/commonjs/ui-components/header/foldable-header.js.map +1 -1
  64. package/lib/commonjs/ui-components/header/navigation-header.js +1 -0
  65. package/lib/commonjs/ui-components/header/navigation-header.js.map +1 -1
  66. package/lib/commonjs/ui-components/history/history-details.js +3 -1
  67. package/lib/commonjs/ui-components/history/history-details.js.map +1 -1
  68. package/lib/commonjs/ui-components/history/history-section-header.js +1 -1
  69. package/lib/commonjs/ui-components/history/history-section-header.js.map +1 -1
  70. package/lib/commonjs/ui-components/history/history-section-list-item.js +1 -1
  71. package/lib/commonjs/ui-components/history/history-section-list-item.js.map +1 -1
  72. package/lib/commonjs/ui-components/icons/entity.js.map +1 -1
  73. package/lib/commonjs/ui-components/icons/history.js +1 -0
  74. package/lib/commonjs/ui-components/icons/history.js.map +1 -1
  75. package/lib/commonjs/ui-components/pin/keypad.js +1 -0
  76. package/lib/commonjs/ui-components/pin/keypad.js.map +1 -1
  77. package/lib/commonjs/ui-components/pin/pins.js +1 -0
  78. package/lib/commonjs/ui-components/pin/pins.js.map +1 -1
  79. package/lib/commonjs/ui-components/screens/nerd-mode-screen.js.map +1 -1
  80. package/lib/commonjs/ui-components/screens/section-list-screen.js.map +1 -1
  81. package/lib/commonjs/ui-components/settings/button-setting.js +3 -1
  82. package/lib/commonjs/ui-components/settings/button-setting.js.map +1 -1
  83. package/lib/commonjs/ui-components/settings/setting-item.js +5 -2
  84. package/lib/commonjs/ui-components/settings/setting-item.js.map +1 -1
  85. package/lib/commonjs/ui-components/settings/settings-button.js +1 -0
  86. package/lib/commonjs/ui-components/settings/settings-button.js.map +1 -1
  87. package/lib/commonjs/ui-components/settings/switch-setting.js +4 -2
  88. package/lib/commonjs/ui-components/settings/switch-setting.js.map +1 -1
  89. package/lib/commonjs/utils/date.js.map +1 -1
  90. package/lib/commonjs/utils/history.js.map +1 -1
  91. package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js.map +1 -1
  92. package/lib/commonjs/utils/hooks/core/backup.js +3 -3
  93. package/lib/commonjs/utils/hooks/core/backup.js.map +1 -1
  94. package/lib/commonjs/utils/hooks/core/cache.js +10 -10
  95. package/lib/commonjs/utils/hooks/core/cache.js.map +1 -1
  96. package/lib/commonjs/utils/hooks/core/core-context.js +5 -5
  97. package/lib/commonjs/utils/hooks/core/core-context.js.map +1 -1
  98. package/lib/commonjs/utils/hooks/core/credential-schemas.js.map +1 -1
  99. package/lib/commonjs/utils/hooks/core/credentials.js +3 -3
  100. package/lib/commonjs/utils/hooks/core/credentials.js.map +1 -1
  101. package/lib/commonjs/utils/hooks/core/dids.js +1 -1
  102. package/lib/commonjs/utils/hooks/core/dids.js.map +1 -1
  103. package/lib/commonjs/utils/hooks/core/history.js +1 -1
  104. package/lib/commonjs/utils/hooks/core/history.js.map +1 -1
  105. package/lib/commonjs/utils/hooks/core/identifiers.js +3 -3
  106. package/lib/commonjs/utils/hooks/core/identifiers.js.map +1 -1
  107. package/lib/commonjs/utils/hooks/core/proof-schemas.js.map +1 -1
  108. package/lib/commonjs/utils/hooks/core/proofs.js +9 -9
  109. package/lib/commonjs/utils/hooks/core/proofs.js.map +1 -1
  110. package/lib/commonjs/utils/hooks/core/trust-entity.js +5 -5
  111. package/lib/commonjs/utils/hooks/core/trust-entity.js.map +1 -1
  112. package/lib/commonjs/utils/hooks/core/wallet-unit.js +1 -1
  113. package/lib/commonjs/utils/hooks/core/wallet-unit.js.map +1 -1
  114. package/lib/commonjs/utils/hooks/navigation/open-settings.js.map +1 -1
  115. package/lib/commonjs/utils/hooks/revocation/credential-status.js +1 -1
  116. package/lib/commonjs/utils/hooks/revocation/credential-status.js.map +1 -1
  117. package/lib/commonjs/utils/parsers/credential-images.js +11 -10
  118. package/lib/commonjs/utils/parsers/credential-images.js.map +1 -1
  119. package/lib/commonjs/utils/parsers/credential-sharing-v2.js +11 -8
  120. package/lib/commonjs/utils/parsers/credential-sharing-v2.js.map +1 -1
  121. package/lib/commonjs/utils/parsers/credential-sharing.js +2 -2
  122. package/lib/commonjs/utils/parsers/credential-sharing.js.map +1 -1
  123. package/lib/commonjs/utils/parsers/credential.js +29 -16
  124. package/lib/commonjs/utils/parsers/credential.js.map +1 -1
  125. package/lib/commonjs/utils/parsers/query.js.map +1 -1
  126. package/lib/commonjs/utils/url.js.map +1 -1
  127. package/lib/module/components/backup/preview-credentials.js.map +1 -1
  128. package/lib/module/components/credential/credential.js.map +1 -1
  129. package/lib/module/components/entity/EntityButtons.js.map +1 -1
  130. package/lib/module/components/entity/entity-attributes.js.map +1 -1
  131. package/lib/module/components/entity/entity-details-with-buttons.js +3 -3
  132. package/lib/module/components/entity/entity-details-with-buttons.js.map +1 -1
  133. package/lib/module/components/entity/entity-details.js +4 -4
  134. package/lib/module/components/entity/entity-details.js.map +1 -1
  135. package/lib/module/components/history/history-details-screen.js +11 -11
  136. package/lib/module/components/history/history-details-screen.js.map +1 -1
  137. package/lib/module/components/history/history-list-item-icon.js +11 -9
  138. package/lib/module/components/history/history-list-item-icon.js.map +1 -1
  139. package/lib/module/components/history/history-list-item.js.map +1 -1
  140. package/lib/module/components/history/history-list-screen.js +1 -0
  141. package/lib/module/components/history/history-list-screen.js.map +1 -1
  142. package/lib/module/components/history/history-list-section-header.js +1 -1
  143. package/lib/module/components/history/history-list-section-header.js.map +1 -1
  144. package/lib/module/components/history/history-list.js.map +1 -1
  145. package/lib/module/components/proof-request/share-credential-card-notice.js.map +1 -1
  146. package/lib/module/components/proof-request/v1/select-credential.js.map +1 -1
  147. package/lib/module/components/proof-request/v1/share-credential.js +2 -2
  148. package/lib/module/components/proof-request/v1/share-credential.js.map +1 -1
  149. package/lib/module/components/proof-request/v2/select-credential-v2.js.map +1 -1
  150. package/lib/module/components/proof-request/v2/share-credential-v2-group.js +3 -2
  151. package/lib/module/components/proof-request/v2/share-credential-v2-group.js.map +1 -1
  152. package/lib/module/components/proof-request/v2/share-credential-v2.js +3 -2
  153. package/lib/module/components/proof-request/v2/share-credential-v2.js.map +1 -1
  154. package/lib/module/ui-components/accessibility/accessibilityHistoryWrappers.js.map +1 -1
  155. package/lib/module/ui-components/accessibility/locale/fi.json +1 -1
  156. package/lib/module/ui-components/buttons/connectivity-button.js +1 -0
  157. package/lib/module/ui-components/buttons/connectivity-button.js.map +1 -1
  158. package/lib/module/ui-components/buttons/filter-button.js +1 -0
  159. package/lib/module/ui-components/buttons/filter-button.js.map +1 -1
  160. package/lib/module/ui-components/buttons/ghost-button.js +1 -0
  161. package/lib/module/ui-components/buttons/ghost-button.js.map +1 -1
  162. package/lib/module/ui-components/buttons/hold-button.js +1 -0
  163. package/lib/module/ui-components/buttons/hold-button.js.map +1 -1
  164. package/lib/module/ui-components/buttons/scan-button.js +3 -0
  165. package/lib/module/ui-components/buttons/scan-button.js.map +1 -1
  166. package/lib/module/ui-components/buttons/share-button.js +1 -0
  167. package/lib/module/ui-components/buttons/share-button.js.map +1 -1
  168. package/lib/module/ui-components/control/checkbox.js +1 -0
  169. package/lib/module/ui-components/control/checkbox.js.map +1 -1
  170. package/lib/module/ui-components/credential/card/credential-card.js +1 -0
  171. package/lib/module/ui-components/credential/card/credential-card.js.map +1 -1
  172. package/lib/module/ui-components/credential/card/credential-details-card.js +3 -1
  173. package/lib/module/ui-components/credential/card/credential-details-card.js.map +1 -1
  174. package/lib/module/ui-components/credential/card/credential-details-list-item.js +1 -0
  175. package/lib/module/ui-components/credential/card/credential-details-list-item.js.map +1 -1
  176. package/lib/module/ui-components/credential/card/credential-header.js +1 -0
  177. package/lib/module/ui-components/credential/card/credential-header.js.map +1 -1
  178. package/lib/module/ui-components/credential/card/credential-image-carousel.js +2 -0
  179. package/lib/module/ui-components/credential/card/credential-image-carousel.js.map +1 -1
  180. package/lib/module/ui-components/credential/credential-attribute-item.js +1 -0
  181. package/lib/module/ui-components/credential/credential-attribute-item.js.map +1 -1
  182. package/lib/module/ui-components/credential/credential-carousel-images.js +2 -1
  183. package/lib/module/ui-components/credential/credential-carousel-images.js.map +1 -1
  184. package/lib/module/ui-components/credential/selector.js +1 -0
  185. package/lib/module/ui-components/credential/selector.js.map +1 -1
  186. package/lib/module/ui-components/entity/avatar.js +1 -0
  187. package/lib/module/ui-components/entity/avatar.js.map +1 -1
  188. package/lib/module/ui-components/entity/entity-cluster.js.map +1 -1
  189. package/lib/module/ui-components/header/foldable-header.js.map +1 -1
  190. package/lib/module/ui-components/header/navigation-header.js +1 -0
  191. package/lib/module/ui-components/header/navigation-header.js.map +1 -1
  192. package/lib/module/ui-components/history/history-details.js +3 -1
  193. package/lib/module/ui-components/history/history-details.js.map +1 -1
  194. package/lib/module/ui-components/history/history-section-header.js +1 -1
  195. package/lib/module/ui-components/history/history-section-header.js.map +1 -1
  196. package/lib/module/ui-components/history/history-section-list-item.js +1 -1
  197. package/lib/module/ui-components/history/history-section-list-item.js.map +1 -1
  198. package/lib/module/ui-components/icons/entity.js.map +1 -1
  199. package/lib/module/ui-components/icons/history.js +1 -0
  200. package/lib/module/ui-components/icons/history.js.map +1 -1
  201. package/lib/module/ui-components/pin/keypad.js +1 -0
  202. package/lib/module/ui-components/pin/keypad.js.map +1 -1
  203. package/lib/module/ui-components/pin/pins.js +1 -0
  204. package/lib/module/ui-components/pin/pins.js.map +1 -1
  205. package/lib/module/ui-components/screens/nerd-mode-screen.js.map +1 -1
  206. package/lib/module/ui-components/screens/section-list-screen.js.map +1 -1
  207. package/lib/module/ui-components/settings/button-setting.js +3 -1
  208. package/lib/module/ui-components/settings/button-setting.js.map +1 -1
  209. package/lib/module/ui-components/settings/setting-item.js +5 -2
  210. package/lib/module/ui-components/settings/setting-item.js.map +1 -1
  211. package/lib/module/ui-components/settings/settings-button.js +1 -0
  212. package/lib/module/ui-components/settings/settings-button.js.map +1 -1
  213. package/lib/module/ui-components/settings/switch-setting.js +4 -2
  214. package/lib/module/ui-components/settings/switch-setting.js.map +1 -1
  215. package/lib/module/utils/date.js.map +1 -1
  216. package/lib/module/utils/history.js.map +1 -1
  217. package/lib/module/utils/hooks/connectivity/connectivity.test.js.map +1 -1
  218. package/lib/module/utils/hooks/core/backup.js +4 -4
  219. package/lib/module/utils/hooks/core/backup.js.map +1 -1
  220. package/lib/module/utils/hooks/core/cache.js +11 -11
  221. package/lib/module/utils/hooks/core/cache.js.map +1 -1
  222. package/lib/module/utils/hooks/core/core-context.js +5 -5
  223. package/lib/module/utils/hooks/core/core-context.js.map +1 -1
  224. package/lib/module/utils/hooks/core/credential-schemas.js.map +1 -1
  225. package/lib/module/utils/hooks/core/credentials.js +4 -4
  226. package/lib/module/utils/hooks/core/credentials.js.map +1 -1
  227. package/lib/module/utils/hooks/core/dids.js +2 -2
  228. package/lib/module/utils/hooks/core/dids.js.map +1 -1
  229. package/lib/module/utils/hooks/core/history.js +1 -1
  230. package/lib/module/utils/hooks/core/history.js.map +1 -1
  231. package/lib/module/utils/hooks/core/identifiers.js +4 -4
  232. package/lib/module/utils/hooks/core/identifiers.js.map +1 -1
  233. package/lib/module/utils/hooks/core/proof-schemas.js.map +1 -1
  234. package/lib/module/utils/hooks/core/proofs.js +10 -10
  235. package/lib/module/utils/hooks/core/proofs.js.map +1 -1
  236. package/lib/module/utils/hooks/core/trust-entity.js +6 -6
  237. package/lib/module/utils/hooks/core/trust-entity.js.map +1 -1
  238. package/lib/module/utils/hooks/core/wallet-unit.js +2 -2
  239. package/lib/module/utils/hooks/core/wallet-unit.js.map +1 -1
  240. package/lib/module/utils/hooks/navigation/open-settings.js.map +1 -1
  241. package/lib/module/utils/hooks/revocation/credential-status.js +2 -2
  242. package/lib/module/utils/hooks/revocation/credential-status.js.map +1 -1
  243. package/lib/module/utils/parsers/credential-images.js +12 -11
  244. package/lib/module/utils/parsers/credential-images.js.map +1 -1
  245. package/lib/module/utils/parsers/credential-sharing-v2.js +11 -8
  246. package/lib/module/utils/parsers/credential-sharing-v2.js.map +1 -1
  247. package/lib/module/utils/parsers/credential-sharing.js +2 -2
  248. package/lib/module/utils/parsers/credential-sharing.js.map +1 -1
  249. package/lib/module/utils/parsers/credential.js +30 -17
  250. package/lib/module/utils/parsers/credential.js.map +1 -1
  251. package/lib/module/utils/parsers/query.js.map +1 -1
  252. package/lib/module/utils/url.js.map +1 -1
  253. package/lib/typescript/components/backup/preview-credentials.d.ts +2 -2
  254. package/lib/typescript/components/credential/credential.d.ts +2 -2
  255. package/lib/typescript/components/entity/EntityButtons.d.ts +2 -2
  256. package/lib/typescript/components/entity/entity-attributes.d.ts +2 -2
  257. package/lib/typescript/components/entity/entity-details-with-buttons.d.ts +3 -3
  258. package/lib/typescript/components/entity/entity-details.d.ts +5 -5
  259. package/lib/typescript/components/history/history-details-screen.d.ts +2 -2
  260. package/lib/typescript/components/history/history-list-item-icon.d.ts +3 -3
  261. package/lib/typescript/components/history/history-list-item.d.ts +5 -5
  262. package/lib/typescript/components/history/history-list-screen.d.ts +4 -4
  263. package/lib/typescript/components/history/history-list.d.ts +5 -5
  264. package/lib/typescript/components/proof-request/v1/select-credential.d.ts +2 -2
  265. package/lib/typescript/components/proof-request/v1/share-credential.d.ts +6 -6
  266. package/lib/typescript/components/proof-request/v2/select-credential-v2.d.ts +3 -3
  267. package/lib/typescript/components/proof-request/v2/share-credential-v2-group.d.ts +4 -4
  268. package/lib/typescript/components/proof-request/v2/share-credential-v2.d.ts +5 -5
  269. package/lib/typescript/ui-components/screens/nerd-mode-screen.d.ts +2 -2
  270. package/lib/typescript/ui-components/settings/setting-item.d.ts +1 -0
  271. package/lib/typescript/utils/history.d.ts +3 -3
  272. package/lib/typescript/utils/hooks/core/backup.d.ts +3 -3
  273. package/lib/typescript/utils/hooks/core/cache.d.ts +2 -2
  274. package/lib/typescript/utils/hooks/core/core-context.d.ts +1 -1
  275. package/lib/typescript/utils/hooks/core/credential-schemas.d.ts +6 -6
  276. package/lib/typescript/utils/hooks/core/credentials.d.ts +8 -8
  277. package/lib/typescript/utils/hooks/core/dids.d.ts +2 -2
  278. package/lib/typescript/utils/hooks/core/history.d.ts +2 -2
  279. package/lib/typescript/utils/hooks/core/identifiers.d.ts +3 -3
  280. package/lib/typescript/utils/hooks/core/proof-schemas.d.ts +7 -7
  281. package/lib/typescript/utils/hooks/core/proofs.d.ts +9 -9
  282. package/lib/typescript/utils/hooks/core/trust-entity.d.ts +6 -6
  283. package/lib/typescript/utils/hooks/core/wallet-unit.d.ts +5 -5
  284. package/lib/typescript/utils/parsers/credential-images.d.ts +2 -2
  285. package/lib/typescript/utils/parsers/credential-sharing-v2.d.ts +7 -7
  286. package/lib/typescript/utils/parsers/credential-sharing.d.ts +8 -8
  287. package/lib/typescript/utils/parsers/credential.d.ts +11 -37
  288. package/lib/typescript/utils/parsers/query.d.ts +8 -8
  289. package/package.json +6 -4
  290. package/src/components/backup/preview-credentials.tsx +2 -2
  291. package/src/components/credential/credential.tsx +2 -2
  292. package/src/components/entity/EntityButtons.tsx +2 -2
  293. package/src/components/entity/entity-attributes.tsx +4 -4
  294. package/src/components/entity/entity-details-with-buttons.tsx +11 -6
  295. package/src/components/entity/entity-details.tsx +17 -16
  296. package/src/components/history/history-details-screen.tsx +13 -16
  297. package/src/components/history/history-list-item-icon.tsx +17 -11
  298. package/src/components/history/history-list-item.tsx +9 -5
  299. package/src/components/history/history-list-screen.tsx +5 -4
  300. package/src/components/history/history-list-section-header.tsx +1 -1
  301. package/src/components/history/history-list.tsx +6 -6
  302. package/src/components/proof-request/share-credential-card-notice.tsx +1 -1
  303. package/src/components/proof-request/v1/select-credential.tsx +2 -2
  304. package/src/components/proof-request/v1/share-credential.tsx +13 -11
  305. package/src/components/proof-request/v2/select-credential-v2.tsx +6 -3
  306. package/src/components/proof-request/v2/share-credential-v2-group.tsx +13 -12
  307. package/src/components/proof-request/v2/share-credential-v2.tsx +12 -11
  308. package/src/ui-components/accessibility/accessibilityHistoryWrappers.tsx +4 -1
  309. package/src/ui-components/accessibility/locale/fi.json +1 -1
  310. package/src/ui-components/buttons/connectivity-button.tsx +1 -0
  311. package/src/ui-components/buttons/filter-button.tsx +1 -0
  312. package/src/ui-components/buttons/ghost-button.stories.tsx +0 -1
  313. package/src/ui-components/buttons/ghost-button.tsx +1 -0
  314. package/src/ui-components/buttons/hold-button.tsx +1 -0
  315. package/src/ui-components/buttons/scan-button.tsx +3 -0
  316. package/src/ui-components/buttons/share-button.tsx +1 -0
  317. package/src/ui-components/control/checkbox.stories.tsx +1 -1
  318. package/src/ui-components/control/checkbox.tsx +1 -0
  319. package/src/ui-components/control/switch.stories.tsx +1 -1
  320. package/src/ui-components/credential/card/credential-card.tsx +1 -0
  321. package/src/ui-components/credential/card/credential-details-card.tsx +2 -0
  322. package/src/ui-components/credential/card/credential-details-list-item.tsx +1 -0
  323. package/src/ui-components/credential/card/credential-header.stories.tsx +0 -1
  324. package/src/ui-components/credential/card/credential-header.tsx +1 -0
  325. package/src/ui-components/credential/card/credential-image-carousel.tsx +2 -2
  326. package/src/ui-components/credential/credential-attribute-item.tsx +1 -0
  327. package/src/ui-components/credential/credential-carousel-images.tsx +1 -0
  328. package/src/ui-components/credential/selector.tsx +1 -0
  329. package/src/ui-components/entity/avatar.tsx +1 -0
  330. package/src/ui-components/entity/entity-cluster.tsx +7 -6
  331. package/src/ui-components/header/foldable-header.tsx +8 -11
  332. package/src/ui-components/header/navigation-header.tsx +1 -0
  333. package/src/ui-components/history/history-details.tsx +2 -0
  334. package/src/ui-components/history/history-section-header.tsx +1 -1
  335. package/src/ui-components/history/history-section-list-item.tsx +1 -1
  336. package/src/ui-components/icons/entity.tsx +2 -2
  337. package/src/ui-components/icons/history.tsx +1 -0
  338. package/src/ui-components/pin/keypad.tsx +1 -0
  339. package/src/ui-components/pin/pin-code-screen.stories.tsx +1 -1
  340. package/src/ui-components/pin/pins.tsx +1 -0
  341. package/src/ui-components/screens/image-preview-screen.stories.tsx +1 -1
  342. package/src/ui-components/screens/nerd-mode-screen.tsx +2 -2
  343. package/src/ui-components/screens/qr-code-scanner-screen.stories.tsx +1 -1
  344. package/src/ui-components/screens/section-list-screen.tsx +10 -1
  345. package/src/ui-components/searchbar/search-bar.stories.tsx +0 -1
  346. package/src/ui-components/settings/button-setting.tsx +2 -1
  347. package/src/ui-components/settings/setting-item.tsx +10 -2
  348. package/src/ui-components/settings/settings-button.tsx +1 -0
  349. package/src/ui-components/settings/switch-setting.tsx +9 -2
  350. package/src/ui-components/text/typography.stories.tsx +2 -2
  351. package/src/utils/date.ts +2 -2
  352. package/src/utils/history.ts +4 -4
  353. package/src/utils/hooks/connectivity/connectivity.test.ts +2 -2
  354. package/src/utils/hooks/core/backup.ts +4 -4
  355. package/src/utils/hooks/core/cache.ts +13 -13
  356. package/src/utils/hooks/core/core-context.tsx +6 -6
  357. package/src/utils/hooks/core/credential-schemas.ts +7 -4
  358. package/src/utils/hooks/core/credentials.ts +21 -13
  359. package/src/utils/hooks/core/dids.ts +3 -3
  360. package/src/utils/hooks/core/history.ts +3 -3
  361. package/src/utils/hooks/core/identifiers.ts +9 -5
  362. package/src/utils/hooks/core/proof-schemas.ts +21 -16
  363. package/src/utils/hooks/core/proofs.ts +31 -27
  364. package/src/utils/hooks/core/trust-entity.ts +19 -12
  365. package/src/utils/hooks/core/wallet-unit.ts +21 -11
  366. package/src/utils/hooks/navigation/open-settings.ts +1 -1
  367. package/src/utils/hooks/revocation/credential-status.ts +2 -2
  368. package/src/utils/parsers/credential-images.tsx +19 -13
  369. package/src/utils/parsers/credential-sharing-v2.tsx +29 -24
  370. package/src/utils/parsers/credential-sharing.tsx +24 -24
  371. package/src/utils/parsers/credential.ts +63 -40
  372. package/src/utils/parsers/query.ts +16 -14
  373. package/src/utils/url.ts +1 -1
@@ -40,12 +40,14 @@ export default ScanButton;
40
40
  const styles = StyleSheet.create({
41
41
  blurWrapper: {
42
42
  borderRadius: 28,
43
+ borderWidth: 0,
43
44
  height: 80,
44
45
  padding: 8,
45
46
  width: 104,
46
47
  },
47
48
  button: {
48
49
  borderRadius: 28,
50
+ borderWidth: 0,
49
51
  height: 80,
50
52
  left: '50%',
51
53
  marginLeft: -52,
@@ -59,6 +61,7 @@ const styles = StyleSheet.create({
59
61
  iconWrapper: {
60
62
  alignItems: 'center',
61
63
  borderRadius: 20,
64
+ borderWidth: 0,
62
65
  height: '100%',
63
66
  justifyContent: 'center',
64
67
  width: '100%',
@@ -39,6 +39,7 @@ const ShareButton: FC<ShareButtonProps> = ({
39
39
  const styles = StyleSheet.create({
40
40
  button: {
41
41
  borderRadius: 5,
42
+ borderWidth: 0,
42
43
  overflow: 'hidden',
43
44
  },
44
45
  container: {
@@ -1,4 +1,4 @@
1
- import type { Meta,StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
2
 
3
3
  import { Checkbox } from './checkbox';
4
4
 
@@ -62,6 +62,7 @@ const styles = StyleSheet.create({
62
62
  container: {
63
63
  alignItems: 'center',
64
64
  borderRadius: 12,
65
+ borderWidth: 0,
65
66
  flexDirection: 'row',
66
67
  padding: 12,
67
68
  },
@@ -1,4 +1,4 @@
1
- import type { Meta,StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
2
  import React, { useEffect, useState } from 'react';
3
3
 
4
4
  import { Switch, SwitchProps } from './switch';
@@ -138,6 +138,7 @@ const CredentialCard: FC<CredentialCardProps> = ({
138
138
  const styles = StyleSheet.create({
139
139
  card: {
140
140
  borderRadius: 10,
141
+ borderWidth: 0,
141
142
  overflow: 'hidden',
142
143
  },
143
144
  cardButton: {
@@ -223,9 +223,11 @@ const styles = StyleSheet.create({
223
223
  },
224
224
  card: {
225
225
  borderRadius: 0,
226
+ borderWidth: 0,
226
227
  },
227
228
  detailsCard: {
228
229
  borderRadius: 10,
230
+ borderWidth: 0,
229
231
  overflow: 'hidden',
230
232
  },
231
233
  footer: {
@@ -72,6 +72,7 @@ const styles = StyleSheet.create({
72
72
  },
73
73
  cardWrapper: {
74
74
  borderRadius: 10,
75
+ borderWidth: 0,
75
76
  overflow: 'hidden',
76
77
  },
77
78
  });
@@ -19,7 +19,6 @@ const Basic: StoryObj<typeof CredentialHeader> = {
19
19
  },
20
20
  };
21
21
 
22
-
23
22
  export { Basic as CredentialHeader };
24
23
 
25
24
  export default {
@@ -167,6 +167,7 @@ const styles = StyleSheet.create({
167
167
  imageContainer: {
168
168
  alignItems: 'center',
169
169
  borderRadius: 5,
170
+ borderWidth: 0,
170
171
  height: 44,
171
172
  justifyContent: 'center',
172
173
  marginRight: 8,
@@ -78,7 +78,7 @@ const CarouselComponent: FC<CarouselProps> = ({ carouselSize, imagesToRender, st
78
78
 
79
79
  const styles = StyleSheet.create({
80
80
  // eslint-disable-next-line react-native/no-unused-styles
81
- Barcode: { borderRadius: 4, height: '50%', width: '80%' },
81
+ Barcode: { borderRadius: 4, borderWidth: 0, height: '50%', width: '80%' },
82
82
  // eslint-disable-next-line react-native/no-unused-styles
83
83
  MRZ: {
84
84
  height: '50%',
@@ -94,7 +94,7 @@ const styles = StyleSheet.create({
94
94
  overflow: 'hidden',
95
95
  },
96
96
  // eslint-disable-next-line react-native/no-unused-styles
97
- QrCode: { aspectRatio: 1, borderRadius: 4, height: '70%' },
97
+ QrCode: { aspectRatio: 1, borderRadius: 4, borderWidth: 0, height: '70%' },
98
98
  carouselItem: {
99
99
  alignItems: 'center',
100
100
  height: '100%',
@@ -367,6 +367,7 @@ const styles = StyleSheet.create({
367
367
  },
368
368
  touchableAttribute: {
369
369
  borderRadius: 8,
370
+ borderWidth: 0,
370
371
  flex: 1,
371
372
  paddingVertical: 11,
372
373
  },
@@ -12,6 +12,7 @@ const styles = StyleSheet.create({
12
12
  alignSelf: 'center',
13
13
  backgroundColor: 'white',
14
14
  borderRadius: 5,
15
+ borderWidth: 0,
15
16
  },
16
17
  barcodeContent: {
17
18
  margin: 12,
@@ -55,6 +55,7 @@ const styles = StyleSheet.create({
55
55
  wrapper: {
56
56
  alignItems: 'center',
57
57
  borderRadius: 12,
58
+ borderWidth: 0,
58
59
  height: 24,
59
60
  justifyContent: 'center',
60
61
  width: 24,
@@ -86,6 +86,7 @@ const styles = StyleSheet.create({
86
86
  },
87
87
  imageWrapper: {
88
88
  borderRadius: 36,
89
+ borderWidth: 0,
89
90
  height: '100%',
90
91
  overflow: 'hidden',
91
92
  width: '100%',
@@ -36,7 +36,7 @@ const EntityCluster: FunctionComponent<EntityClusterProps> = ({
36
36
  ...viewProps
37
37
  }) => {
38
38
  const colorScheme = useAppColorScheme();
39
-
39
+
40
40
  const opacity = useSharedValue<number>(1);
41
41
 
42
42
  const animatedStyle = useAnimatedStyle(() => ({
@@ -58,14 +58,15 @@ const EntityCluster: FunctionComponent<EntityClusterProps> = ({
58
58
  if (isLoading) {
59
59
  return {
60
60
  avatar: {
61
- component:
61
+ component: (
62
62
  <View style={[styles.loaderWrapper, { backgroundColor: colorScheme.grayDark }]}>
63
63
  <View style={styles.loader}>
64
64
  <LoaderView animate={true} state={LoaderViewState.InProgress} />
65
65
  </View>
66
66
  </View>
67
- }
68
- }
67
+ ),
68
+ },
69
+ };
69
70
  }
70
71
  const initials = entityName.split(' ', 3).map((word: string) => word[0]);
71
72
  const placeholderText = initials.length > 0 ? initials.join('') : '';
@@ -122,14 +123,14 @@ const styles = StyleSheet.create({
122
123
  marginLeft: 12,
123
124
  },
124
125
  loader: {
125
- transform: [{scale: 0.5}],
126
+ transform: [{ scale: 0.5 }],
126
127
  },
127
128
  loaderWrapper: {
128
129
  height: 72,
129
130
  paddingLeft: 3,
130
131
  paddingTop: 4,
131
132
  width: 72,
132
- }
133
+ },
133
134
  });
134
135
 
135
136
  export default EntityCluster;
@@ -55,8 +55,8 @@ const FoldableSearchHeader: FunctionComponent<FoldableHeaderProps> = ({
55
55
  paddingTop: scrollOffset.interpolate({
56
56
  extrapolate: 'clamp',
57
57
  inputRange: [0, headerHeight],
58
- outputRange: [headerHeight, 0]
59
- })
58
+ outputRange: [headerHeight, 0],
59
+ }),
60
60
  }
61
61
  : undefined;
62
62
 
@@ -79,16 +79,13 @@ const FoldableSearchHeader: FunctionComponent<FoldableHeaderProps> = ({
79
79
 
80
80
  return (
81
81
  <Animated.View
82
- style={[
83
- styles.headerContainer,
84
- containerPaddingStyle,
85
- withNotice ? styles.noticeBorderRadius : undefined,
86
- ]}>
82
+ style={[styles.headerContainer, containerPaddingStyle, withNotice ? styles.noticeBorderRadius : undefined]}>
87
83
  <View style={[styles.blurWrapper, StyleSheet.absoluteFill]}>
88
- <BlurView blurStyle={'header'} color={colorScheme.background} style={[
89
- StyleSheet.absoluteFill,
90
- withNotice ? styles.noticeBorderRadius : undefined,
91
- ]} />
84
+ <BlurView
85
+ blurStyle={'header'}
86
+ color={colorScheme.background}
87
+ style={[StyleSheet.absoluteFill, withNotice ? styles.noticeBorderRadius : undefined]}
88
+ />
92
89
  </View>
93
90
  <View>
94
91
  <Animated.View style={scrollHeaderAnimatedStyle}>
@@ -129,6 +129,7 @@ const styles = StyleSheet.create({
129
129
  },
130
130
  modalHandle: {
131
131
  borderRadius: 2.5,
132
+ borderWidth: 0,
132
133
  height: 5,
133
134
  marginVertical: 5,
134
135
  width: 36,
@@ -222,6 +222,7 @@ export const HistoryDetailsView: FC<HistoryDetailsViewProps> = ({
222
222
  const styles = StyleSheet.create({
223
223
  assetsHeader: {
224
224
  borderRadius: 8,
225
+ borderWidth: 0,
225
226
  },
226
227
  content: {
227
228
  paddingHorizontal: 16,
@@ -242,6 +243,7 @@ const styles = StyleSheet.create({
242
243
  },
243
244
  section: {
244
245
  borderRadius: 8,
246
+ borderWidth: 0,
245
247
  marginBottom: 12,
246
248
  padding: 12,
247
249
  },
@@ -5,7 +5,7 @@ import { concatTestID } from '../../utils/testID';
5
5
  import Typography from '../text/typography';
6
6
  import { useAppColorScheme } from '../theme/color-scheme-context';
7
7
 
8
- // component used on the history section lists (Settings->History, CredentialDetail->History)
8
+ // component used on the history section lists (Settings->History, CredentialDetailBindingDto->History)
9
9
  // https://www.figma.com/file/52qDYWUMjXAGre1dcnz5bz/Procivis-One-Wallet?type=design&node-id=1246-51813&mode=dev
10
10
 
11
11
  const HistorySectionHeaderView: FC<{
@@ -4,7 +4,7 @@ import { StyleSheet, View } from 'react-native';
4
4
  import { useAppColorScheme } from '../theme/color-scheme-context';
5
5
  import HistoryItemView, { HistoryItemViewProps } from './history-item';
6
6
 
7
- // component used on the history section lists (Settings->History, CredentialDetail->History)
7
+ // component used on the history section lists (Settings->History, CredentialDetailBindingDto->History)
8
8
  // https://www.figma.com/file/52qDYWUMjXAGre1dcnz5bz/Procivis-One-Wallet?type=design&node-id=1246-51813&mode=dev
9
9
 
10
10
  export interface HistorySectionListItemProps extends HistoryItemViewProps {
@@ -50,5 +50,5 @@ export const EntityNotTrustedIcon: FC<SvgProps> = ({ ...props }) => {
50
50
  fill={colorScheme.white}
51
51
  />
52
52
  </Svg>
53
- )
54
- }
53
+ );
54
+ };
@@ -317,6 +317,7 @@ export const HistoryItemIcon: FC<HistoryItemIconProps> = (props) => {
317
317
  const styles = StyleSheet.create({
318
318
  round: {
319
319
  borderRadius: 24,
320
+ borderWidth: 0,
320
321
  overflow: 'hidden',
321
322
  },
322
323
  status: {
@@ -155,6 +155,7 @@ const styles = StyleSheet.create({
155
155
  key: {
156
156
  alignItems: 'center',
157
157
  borderRadius: KEY_SIZE / 2,
158
+ borderWidth: 0,
158
159
  height: KEY_SIZE,
159
160
  justifyContent: 'center',
160
161
  width: KEY_SIZE,
@@ -71,7 +71,7 @@ export default {
71
71
  },
72
72
  },
73
73
  args: {
74
- onAccessibilityAnnounced: fn()
74
+ onAccessibilityAnnounced: fn(),
75
75
  },
76
76
  argTypes: {
77
77
  onBack: { action: 'onBack' },
@@ -37,6 +37,7 @@ export const Pins: FC<PinsProps> = ({ enteredLength, maxLength, style, ...props
37
37
  const styles = StyleSheet.create({
38
38
  pin: {
39
39
  borderRadius: 3,
40
+ borderWidth: 0,
40
41
  height: 10,
41
42
  width: 10,
42
43
  },
@@ -1,4 +1,4 @@
1
- import type { Meta,StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
2
  import React from 'react';
3
3
 
4
4
  import ImagePreviewScreen, { ImagePreviewScreenProps } from './image-preview-screen';
@@ -1,4 +1,4 @@
1
- import { IdentifierListItem } from '@procivis/react-native-one-core';
1
+ import { GetIdentifierListItemBindingDto } from '@procivis/react-native-one-core';
2
2
  import React, { FunctionComponent, useState } from 'react';
3
3
  import { SectionList, StyleSheet, View } from 'react-native';
4
4
  import Animated, { useAnimatedScrollHandler, useSharedValue } from 'react-native-reanimated';
@@ -34,7 +34,7 @@ export interface AttributesLabels {
34
34
  }
35
35
 
36
36
  interface SectionEntityCluster {
37
- identifier?: IdentifierListItem;
37
+ identifier?: GetIdentifierListItemBindingDto;
38
38
  subline?: string;
39
39
  entityLabels: EntityLabels;
40
40
  role: ContextRole;
@@ -20,7 +20,7 @@ const Basic: StoryObj<typeof QRCodeScannerScreen> = {
20
20
  title: 'Scan QR Code to connect.',
21
21
  },
22
22
  render: Render,
23
- }
23
+ };
24
24
 
25
25
  export { Basic as QRCodeScannerScreen };
26
26
 
@@ -58,7 +58,16 @@ const SectionListScreen = <ItemT, SectionT>({
58
58
  return (
59
59
  <View style={[styles.container, { backgroundColor: colorScheme.background }, style]} {...viewProps}>
60
60
  <SectionList<ItemT, SectionT>
61
- ListHeaderComponent={!header.static ? <View><ListTitleHeader title={header.title} />{headerView}</View> : headerView}
61
+ ListHeaderComponent={
62
+ !header.static ? (
63
+ <View>
64
+ <ListTitleHeader title={header.title} />
65
+ {headerView}
66
+ </View>
67
+ ) : (
68
+ headerView
69
+ )
70
+ }
62
71
  contentContainerStyle={[contentInsetsStyle, contentContainerStyle]}
63
72
  onScroll={onScroll}
64
73
  scrollEventThrottle={100}
@@ -16,7 +16,6 @@ const Basic: StoryObj<Omit<SearchBarProps, 'searchPhrase' | 'onSearchPhraseChang
16
16
  render: Render,
17
17
  };
18
18
 
19
-
20
19
  export { Basic as SearchBar };
21
20
 
22
21
  export default {
@@ -1,6 +1,7 @@
1
1
  import React, { ComponentType, FunctionComponent, ReactElement, useMemo } from 'react';
2
2
  import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
3
3
 
4
+ import { concatTestID } from '../../utils';
4
5
  import { TouchableOpacity } from '../accessibility/accessibilityHistoryWrappers';
5
6
  import { NextIcon } from '../icons/wallet';
6
7
  import { useAppColorScheme } from '../theme/color-scheme-context';
@@ -50,7 +51,7 @@ const ButtonSetting: FunctionComponent<ButtonSettingProps> = ({
50
51
  onPress={onPress}
51
52
  style={styles.container}
52
53
  testID={testID}>
53
- <SettingItem icon={icon} style={style} title={title}>
54
+ <SettingItem icon={icon} style={style} title={title} testID={concatTestID(testID, 'text')}>
54
55
  {accessoryView}
55
56
  </SettingItem>
56
57
  </TouchableOpacity>
@@ -15,6 +15,7 @@ const styles = StyleSheet.create({
15
15
  icon: {
16
16
  alignItems: 'center',
17
17
  borderRadius: 18,
18
+ borderWidth: 0,
18
19
  height: 36,
19
20
  justifyContent: 'center',
20
21
  marginRight: 12,
@@ -36,9 +37,16 @@ export type SettingItemProps = {
36
37
  icon?: ComponentType<any> | ReactElement;
37
38
  style?: StyleProp<ViewStyle>;
38
39
  title: string;
40
+ testID?: string;
39
41
  };
40
42
 
41
- const SettingItem: FunctionComponent<PropsWithChildren<SettingItemProps>> = ({ title, icon, style, children }) => {
43
+ const SettingItem: FunctionComponent<PropsWithChildren<SettingItemProps>> = ({
44
+ title,
45
+ icon,
46
+ style,
47
+ children,
48
+ testID,
49
+ }) => {
42
50
  const colorScheme = useAppColorScheme();
43
51
  const iconView: React.ReactElement | undefined = useMemo(() => {
44
52
  if (!icon) {
@@ -56,7 +64,7 @@ const SettingItem: FunctionComponent<PropsWithChildren<SettingItemProps>> = ({ t
56
64
  <View style={[styles.wrapper, { backgroundColor: colorScheme.white }, style]}>
57
65
  <View style={styles.container}>
58
66
  {iconView && <View style={[styles.icon, { backgroundColor: colorScheme.background }]}>{iconView}</View>}
59
- <Typography accessible={false} color={colorScheme.text} preset="s" style={styles.label}>
67
+ <Typography accessible={false} color={colorScheme.text} preset="s" style={styles.label} testID={testID}>
60
68
  {title}
61
69
  </Typography>
62
70
  {children}
@@ -14,6 +14,7 @@ const SettingsButton: FC<SettingsButtonProps> = ({ style, ...props }) => {
14
14
  const styles = StyleSheet.create({
15
15
  button: {
16
16
  borderRadius: 12,
17
+ borderWidth: 0,
17
18
  height: 68,
18
19
  marginHorizontal: 0,
19
20
  paddingHorizontal: 12,
@@ -1,6 +1,7 @@
1
1
  import React, { ComponentType, FunctionComponent, ReactElement } from 'react';
2
2
  import type { StyleProp, ViewStyle } from 'react-native';
3
3
 
4
+ import { concatTestID } from '../../utils';
4
5
  import { Switch } from '../control/switch';
5
6
  import SettingItem from './setting-item';
6
7
 
@@ -24,8 +25,14 @@ const SwitchSetting: FunctionComponent<SwitchSettingProps> = ({
24
25
  testID,
25
26
  }) => {
26
27
  return (
27
- <SettingItem icon={icon} style={style} title={title}>
28
- <Switch accessibilityLabel={title} disabled={disabled} onChange={onChange} testID={testID} value={value} />
28
+ <SettingItem icon={icon} style={style} title={title} testID={concatTestID(testID, 'text')}>
29
+ <Switch
30
+ accessibilityLabel={title}
31
+ disabled={disabled}
32
+ onChange={onChange}
33
+ testID={concatTestID(testID, 'switch')}
34
+ value={value}
35
+ />
29
36
  </SettingItem>
30
37
  );
31
38
  };
@@ -1,4 +1,4 @@
1
- import type { Meta,StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
2
  import { fn } from '@storybook/test';
3
3
  import React from 'react';
4
4
  import type { ColorValue } from 'react-native';
@@ -33,7 +33,7 @@ export default {
33
33
  title: 'base/Typography',
34
34
  component: Typography,
35
35
  args: {
36
- onAnnouncementFinished: fn()
36
+ onAnnouncementFinished: fn(),
37
37
  },
38
38
  argTypes: {
39
39
  preset: {
package/src/utils/date.ts CHANGED
@@ -7,8 +7,8 @@ const MINUTE = 60 * 1000;
7
7
  const DAY = 24 * 60 * MINUTE;
8
8
 
9
9
  // OS locale
10
- const systemLocale: string | undefined = I18nManager.getConstants().localeIdentifier
11
- ?.replace(/_/g, '-')
10
+ const systemLocale: string | undefined = I18nManager.getConstants()
11
+ .localeIdentifier?.replace(/_/g, '-')
12
12
  .split(/[#@]/)[0]
13
13
  .replace(/-$/, '');
14
14
 
@@ -1,14 +1,14 @@
1
- import { HistoryListItem } from '@procivis/react-native-one-core';
1
+ import { HistoryListItemBindingDto } from '@procivis/react-native-one-core';
2
2
  import moment, { Moment } from 'moment';
3
3
 
4
4
  export interface HistoryGroupByDaySection {
5
- data: HistoryListItem[];
5
+ data: HistoryListItemBindingDto[];
6
6
  date: Moment;
7
7
  firstYearEntry: boolean;
8
8
  }
9
9
 
10
- export const groupEntriesByDay = (entries: HistoryListItem[]) => {
11
- const groupedEntries = entries.reduce((result: HistoryGroupByDaySection[], entry: HistoryListItem) => {
10
+ export const groupEntriesByDay = (entries: HistoryListItemBindingDto[]) => {
11
+ const groupedEntries = entries.reduce((result: HistoryGroupByDaySection[], entry: HistoryListItemBindingDto) => {
12
12
  const entryDate = moment(entry.createdDate);
13
13
 
14
14
  const matchingEntry = result.find(({ date }) => date.isSame(entryDate, 'day'));
@@ -14,11 +14,11 @@ jest.mock('../core/core-config', () => ({
14
14
  }));
15
15
 
16
16
  jest.mock('@react-native-community/netinfo', () => ({
17
- addEventListener: () => { },
17
+ addEventListener: () => {},
18
18
  }));
19
19
 
20
20
  jest.mock('react-native-bluetooth-state-manager', () => ({
21
- onStateChange: () => { },
21
+ onStateChange: () => {},
22
22
  }));
23
23
 
24
24
  describe('getInvitationUrlTransports', () => {
@@ -1,4 +1,4 @@
1
- import { IdentifierStateEnum, IdentifierTypeEnum } from '@procivis/react-native-one-core';
1
+ import { IdentifierStateBindingEnum, IdentifierTypeBindingEnum } from '@procivis/react-native-one-core';
2
2
  import { useCallback } from 'react';
3
3
  import { useMutation, useQuery, useQueryClient } from 'react-query';
4
4
 
@@ -80,12 +80,12 @@ export const useBackupFinalizeImportProcedure = ({ generateHwKey, generateSwKey
80
80
  // update wallet identifier references
81
81
  let swIdentifierId: string | undefined;
82
82
  if (generateSwKey) {
83
- const identifiers = await core.getIdentifiers({
84
- states: [IdentifierStateEnum.ACTIVE],
83
+ const identifiers = await core.listIdentifiers({
84
+ states: [IdentifierStateBindingEnum.ACTIVE],
85
85
  organisationId,
86
86
  page: 0,
87
87
  pageSize: 1,
88
- types: [IdentifierTypeEnum.DID],
88
+ types: [IdentifierTypeBindingEnum.DID],
89
89
  isRemote: false,
90
90
  });
91
91
  swIdentifierId = identifiers.values.find((identifier) => identifier.name.startsWith(SW_DID_NAME_PREFIX))?.id;
@@ -1,4 +1,4 @@
1
- import { CacheType } from '@procivis/react-native-one-core';
1
+ import { CacheTypeBindingDto } from '@procivis/react-native-one-core';
2
2
  import { useMutation, useQueryClient } from 'react-query';
3
3
 
4
4
  import { useONECore } from './core-context';
@@ -8,17 +8,17 @@ import { REMOTE_TRUST_ENTITY_DETAIL_QUERY_KEY, TRUST_ENTITY_DETAIL_QUERY_KEY } f
8
8
  const CREDENTIAL_QUERY_KEYS = [CREDENTIAL_LIST_QUERY_KEY, CREDENTIAL_LIST_PAGED_QUERY_KEY, CREDENTIAL_DETAIL_QUERY_KEY];
9
9
  const TRUST_ENTITY_QUERY_KEYS = [TRUST_ENTITY_DETAIL_QUERY_KEY, REMOTE_TRUST_ENTITY_DETAIL_QUERY_KEY];
10
10
 
11
- // Map each CacheType to the query keys that should be invalidated when that cache is cleared.
12
- const cacheTypeToQueryKeys: Record<CacheType, string[]> = {
13
- [CacheType.DID_DOCUMENT]: CREDENTIAL_QUERY_KEYS,
14
- [CacheType.JSON_LD_CONTEXT]: CREDENTIAL_QUERY_KEYS,
15
- [CacheType.STATUS_LIST_CREDENTIAL]: CREDENTIAL_QUERY_KEYS,
16
- [CacheType.VCT_METADATA]: CREDENTIAL_QUERY_KEYS,
17
- [CacheType.JSON_SCHEMA]: CREDENTIAL_QUERY_KEYS,
18
- [CacheType.TRUST_LIST]: [...TRUST_ENTITY_QUERY_KEYS, ...CREDENTIAL_QUERY_KEYS],
19
- [CacheType.X509_CRL]: CREDENTIAL_QUERY_KEYS,
20
- [CacheType.ANDROID_ATTESTATION_CRL]: CREDENTIAL_QUERY_KEYS,
21
- [CacheType.OPEN_ID_METADATA]: CREDENTIAL_QUERY_KEYS,
11
+ // Map each CacheTypeBindingDto to the query keys that should be invalidated when that cache is cleared.
12
+ const cacheTypeToQueryKeys: Record<CacheTypeBindingDto, string[]> = {
13
+ [CacheTypeBindingDto.DID_DOCUMENT]: CREDENTIAL_QUERY_KEYS,
14
+ [CacheTypeBindingDto.JSON_LD_CONTEXT]: CREDENTIAL_QUERY_KEYS,
15
+ [CacheTypeBindingDto.STATUS_LIST_CREDENTIAL]: CREDENTIAL_QUERY_KEYS,
16
+ [CacheTypeBindingDto.VCT_METADATA]: CREDENTIAL_QUERY_KEYS,
17
+ [CacheTypeBindingDto.JSON_SCHEMA]: CREDENTIAL_QUERY_KEYS,
18
+ [CacheTypeBindingDto.TRUST_LIST]: [...TRUST_ENTITY_QUERY_KEYS, ...CREDENTIAL_QUERY_KEYS],
19
+ [CacheTypeBindingDto.X509_CRL]: CREDENTIAL_QUERY_KEYS,
20
+ [CacheTypeBindingDto.ANDROID_ATTESTATION_CRL]: CREDENTIAL_QUERY_KEYS,
21
+ [CacheTypeBindingDto.OPEN_ID_METADATA]: CREDENTIAL_QUERY_KEYS,
22
22
  };
23
23
 
24
24
  export const useCacheClear = () => {
@@ -26,7 +26,7 @@ export const useCacheClear = () => {
26
26
  const { core } = useONECore();
27
27
 
28
28
  return useMutation(
29
- async (cacheTypes: CacheType[]) => {
29
+ async (cacheTypes: CacheTypeBindingDto[]) => {
30
30
  await core.deleteCache(cacheTypes);
31
31
  return cacheTypes;
32
32
  },