@procivis/one-react-native-components 0.1.63 → 0.3.22

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 (1697) hide show
  1. package/README.md +15 -9
  2. package/lib/commonjs/components/backup/index.js +17 -0
  3. package/lib/commonjs/components/backup/index.js.map +1 -0
  4. package/lib/commonjs/components/backup/preview-credentials.js +38 -0
  5. package/lib/commonjs/components/backup/preview-credentials.js.map +1 -0
  6. package/lib/commonjs/components/credential/credential.js +62 -0
  7. package/lib/commonjs/components/credential/credential.js.map +1 -0
  8. package/lib/commonjs/components/credential/index.js +17 -0
  9. package/lib/commonjs/components/credential/index.js.map +1 -0
  10. package/lib/commonjs/components/entity/EntityButtons.js +64 -0
  11. package/lib/commonjs/components/entity/EntityButtons.js.map +1 -0
  12. package/lib/commonjs/components/entity/entity-attributes.js +50 -0
  13. package/lib/commonjs/components/entity/entity-attributes.js.map +1 -0
  14. package/lib/commonjs/components/entity/entity-details-with-buttons.js +90 -0
  15. package/lib/commonjs/components/entity/entity-details-with-buttons.js.map +1 -0
  16. package/lib/commonjs/components/entity/entity-details.js +72 -0
  17. package/lib/commonjs/components/entity/entity-details.js.map +1 -0
  18. package/lib/commonjs/components/entity/index.js +27 -0
  19. package/lib/commonjs/components/entity/index.js.map +1 -0
  20. package/lib/commonjs/components/history/history-details-screen.js +67 -0
  21. package/lib/commonjs/components/history/history-details-screen.js.map +1 -0
  22. package/lib/commonjs/components/history/history-list-item-icon.js +94 -0
  23. package/lib/commonjs/components/history/history-list-item-icon.js.map +1 -0
  24. package/lib/commonjs/components/history/history-list-item.js +45 -0
  25. package/lib/commonjs/components/history/history-list-item.js.map +1 -0
  26. package/lib/commonjs/components/history/history-list-screen.js +121 -0
  27. package/lib/commonjs/components/history/history-list-screen.js.map +1 -0
  28. package/lib/commonjs/components/history/history-list-section-header.js +39 -0
  29. package/lib/commonjs/components/history/history-list-section-header.js.map +1 -0
  30. package/lib/commonjs/components/history/history-list.js +100 -0
  31. package/lib/commonjs/components/history/history-list.js.map +1 -0
  32. package/lib/commonjs/components/history/index.js +72 -0
  33. package/lib/commonjs/components/history/index.js.map +1 -0
  34. package/lib/commonjs/components/index.js +72 -0
  35. package/lib/commonjs/components/index.js.map +1 -0
  36. package/lib/commonjs/components/navigation/header-buttons.js +78 -0
  37. package/lib/commonjs/components/navigation/header-buttons.js.map +1 -0
  38. package/lib/commonjs/components/navigation/index.js +17 -0
  39. package/lib/commonjs/components/navigation/index.js.map +1 -0
  40. package/lib/commonjs/components/proof-request/group.js +35 -0
  41. package/lib/commonjs/components/proof-request/group.js.map +1 -0
  42. package/lib/commonjs/components/proof-request/index.js +39 -0
  43. package/lib/commonjs/components/proof-request/index.js.map +1 -0
  44. package/lib/commonjs/components/proof-request/select-credential.js +48 -0
  45. package/lib/commonjs/components/proof-request/select-credential.js.map +1 -0
  46. package/lib/commonjs/components/proof-request/share-credential.js +159 -0
  47. package/lib/commonjs/components/proof-request/share-credential.js.map +1 -0
  48. package/lib/commonjs/index.js +8 -261
  49. package/lib/commonjs/index.js.map +1 -1
  50. package/lib/commonjs/normalize-color.d.js.map +1 -1
  51. package/lib/commonjs/ui-components/accessibility/accessibility.js +197 -0
  52. package/lib/commonjs/ui-components/accessibility/accessibility.js.map +1 -0
  53. package/lib/commonjs/ui-components/accessibility/accessibilityHistory.js +77 -0
  54. package/lib/commonjs/ui-components/accessibility/accessibilityHistory.js.map +1 -0
  55. package/lib/commonjs/ui-components/accessibility/accessibilityHistoryWrappers.js +47 -0
  56. package/lib/commonjs/ui-components/accessibility/accessibilityHistoryWrappers.js.map +1 -0
  57. package/lib/commonjs/ui-components/accessibility/accessibilityLanguage.js +61 -0
  58. package/lib/commonjs/ui-components/accessibility/accessibilityLanguage.js.map +1 -0
  59. package/lib/commonjs/ui-components/accessibility/index.js +100 -0
  60. package/lib/commonjs/ui-components/accessibility/index.js.map +1 -0
  61. package/lib/commonjs/ui-components/accessibility/locale/index.js +20 -0
  62. package/lib/commonjs/ui-components/accessibility/locale/index.js.map +1 -0
  63. package/lib/commonjs/ui-components/accessibility/locale.test.js.map +1 -0
  64. package/lib/commonjs/ui-components/action-modal/ActionModal.js +50 -0
  65. package/lib/commonjs/ui-components/action-modal/ActionModal.js.map +1 -0
  66. package/lib/commonjs/ui-components/action-modal/index.js +14 -0
  67. package/lib/commonjs/ui-components/action-modal/index.js.map +1 -0
  68. package/lib/commonjs/ui-components/activity-indicator/activity-indicator.js +32 -0
  69. package/lib/commonjs/ui-components/activity-indicator/activity-indicator.js.map +1 -0
  70. package/lib/commonjs/ui-components/activity-indicator/index.js +14 -0
  71. package/lib/commonjs/ui-components/activity-indicator/index.js.map +1 -0
  72. package/lib/commonjs/ui-components/blur/blur-view.js +74 -0
  73. package/lib/commonjs/ui-components/blur/blur-view.js.map +1 -0
  74. package/lib/commonjs/ui-components/blur/index.js +21 -0
  75. package/lib/commonjs/ui-components/blur/index.js.map +1 -0
  76. package/lib/commonjs/ui-components/buttons/back-button.js +34 -0
  77. package/lib/commonjs/ui-components/buttons/back-button.js.map +1 -0
  78. package/lib/commonjs/ui-components/buttons/button.js +150 -0
  79. package/lib/commonjs/ui-components/buttons/button.js.map +1 -0
  80. package/lib/commonjs/ui-components/buttons/connectivity-button.js +80 -0
  81. package/lib/commonjs/ui-components/buttons/connectivity-button.js.map +1 -0
  82. package/lib/commonjs/ui-components/buttons/filter-button.js +49 -0
  83. package/lib/commonjs/ui-components/buttons/filter-button.js.map +1 -0
  84. package/lib/commonjs/ui-components/buttons/ghost-button.js +60 -0
  85. package/lib/commonjs/ui-components/buttons/ghost-button.js.map +1 -0
  86. package/lib/commonjs/ui-components/buttons/hold-button.js +244 -0
  87. package/lib/commonjs/ui-components/buttons/hold-button.js.map +1 -0
  88. package/lib/commonjs/ui-components/buttons/index.js +76 -0
  89. package/lib/commonjs/ui-components/buttons/index.js.map +1 -0
  90. package/lib/commonjs/ui-components/buttons/scan-button.js +81 -0
  91. package/lib/commonjs/ui-components/buttons/scan-button.js.map +1 -0
  92. package/lib/commonjs/ui-components/camera/camera-overlay.js +58 -0
  93. package/lib/commonjs/ui-components/camera/camera-overlay.js.map +1 -0
  94. package/lib/commonjs/ui-components/camera/index.js +21 -0
  95. package/lib/commonjs/ui-components/camera/index.js.map +1 -0
  96. package/lib/commonjs/ui-components/camera/qr-code-scanner.js +48 -0
  97. package/lib/commonjs/ui-components/camera/qr-code-scanner.js.map +1 -0
  98. package/lib/commonjs/ui-components/control/checkbox.js +78 -0
  99. package/lib/commonjs/ui-components/control/checkbox.js.map +1 -0
  100. package/lib/commonjs/ui-components/control/index.js.map +1 -0
  101. package/lib/commonjs/ui-components/control/switch.js +63 -0
  102. package/lib/commonjs/ui-components/control/switch.js.map +1 -0
  103. package/lib/commonjs/ui-components/credential/card/credential-card.js +179 -0
  104. package/lib/commonjs/ui-components/credential/card/credential-card.js.map +1 -0
  105. package/lib/commonjs/ui-components/credential/card/credential-details-card.js +194 -0
  106. package/lib/commonjs/ui-components/credential/card/credential-details-card.js.map +1 -0
  107. package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js +91 -0
  108. package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js.map +1 -0
  109. package/lib/commonjs/ui-components/credential/card/credential-header.js +174 -0
  110. package/lib/commonjs/ui-components/credential/card/credential-header.js.map +1 -0
  111. package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js +122 -0
  112. package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js.map +1 -0
  113. package/lib/commonjs/ui-components/credential/card/index.js +56 -0
  114. package/lib/commonjs/ui-components/credential/card/index.js.map +1 -0
  115. package/lib/commonjs/ui-components/credential/credential-attribute-item.js +280 -0
  116. package/lib/commonjs/ui-components/credential/credential-attribute-item.js.map +1 -0
  117. package/lib/commonjs/ui-components/credential/credential-carousel-images.js +95 -0
  118. package/lib/commonjs/ui-components/credential/credential-carousel-images.js.map +1 -0
  119. package/lib/commonjs/ui-components/credential/index.js +67 -0
  120. package/lib/commonjs/ui-components/credential/index.js.map +1 -0
  121. package/lib/commonjs/ui-components/credential/selector-status.js +16 -0
  122. package/lib/commonjs/ui-components/credential/selector-status.js.map +1 -0
  123. package/lib/commonjs/ui-components/credential/selector.js +77 -0
  124. package/lib/commonjs/ui-components/credential/selector.js.map +1 -0
  125. package/lib/commonjs/ui-components/detail/detail.js +82 -0
  126. package/lib/commonjs/ui-components/detail/detail.js.map +1 -0
  127. package/lib/commonjs/ui-components/detail/index.js +14 -0
  128. package/lib/commonjs/ui-components/detail/index.js.map +1 -0
  129. package/lib/commonjs/ui-components/entity/avatar.js +104 -0
  130. package/lib/commonjs/ui-components/entity/avatar.js.map +1 -0
  131. package/lib/commonjs/ui-components/entity/entity-cluster.js +72 -0
  132. package/lib/commonjs/ui-components/entity/entity-cluster.js.map +1 -0
  133. package/lib/commonjs/ui-components/entity/index.js +34 -0
  134. package/lib/commonjs/ui-components/entity/index.js.map +1 -0
  135. package/lib/commonjs/ui-components/header/focus-aware-status-bar.js +19 -0
  136. package/lib/commonjs/ui-components/header/focus-aware-status-bar.js.map +1 -0
  137. package/lib/commonjs/ui-components/header/foldable-header.js +86 -0
  138. package/lib/commonjs/ui-components/header/foldable-header.js.map +1 -0
  139. package/lib/commonjs/ui-components/header/header.js +103 -0
  140. package/lib/commonjs/ui-components/header/header.js.map +1 -0
  141. package/lib/commonjs/ui-components/header/index.js +35 -0
  142. package/lib/commonjs/ui-components/header/index.js.map +1 -0
  143. package/lib/commonjs/ui-components/header/navigation-header.js +142 -0
  144. package/lib/commonjs/ui-components/header/navigation-header.js.map +1 -0
  145. package/lib/commonjs/ui-components/history/data-item.js +77 -0
  146. package/lib/commonjs/ui-components/history/data-item.js.map +1 -0
  147. package/lib/commonjs/ui-components/history/history-details.js +181 -0
  148. package/lib/commonjs/ui-components/history/history-details.js.map +1 -0
  149. package/lib/commonjs/ui-components/history/history-item.js +111 -0
  150. package/lib/commonjs/ui-components/history/history-item.js.map +1 -0
  151. package/lib/commonjs/ui-components/history/history-section-header.js +47 -0
  152. package/lib/commonjs/ui-components/history/history-section-header.js.map +1 -0
  153. package/lib/commonjs/ui-components/history/history-section-list-item.js +48 -0
  154. package/lib/commonjs/ui-components/history/history-section-list-item.js.map +1 -0
  155. package/lib/commonjs/ui-components/history/index.js +76 -0
  156. package/lib/commonjs/ui-components/history/index.js.map +1 -0
  157. package/lib/commonjs/ui-components/icons/connectivity.js +134 -0
  158. package/lib/commonjs/ui-components/icons/connectivity.js.map +1 -0
  159. package/lib/commonjs/ui-components/icons/credential.js +151 -0
  160. package/lib/commonjs/ui-components/icons/credential.js.map +1 -0
  161. package/lib/commonjs/ui-components/icons/entity.js +51 -0
  162. package/lib/commonjs/ui-components/icons/entity.js.map +1 -0
  163. package/lib/commonjs/ui-components/icons/history.js +388 -0
  164. package/lib/commonjs/ui-components/icons/history.js.map +1 -0
  165. package/lib/commonjs/ui-components/icons/icons.js +233 -0
  166. package/lib/commonjs/ui-components/icons/icons.js.map +1 -0
  167. package/lib/commonjs/ui-components/icons/index.js.map +1 -0
  168. package/lib/commonjs/ui-components/icons/input.js +44 -0
  169. package/lib/commonjs/ui-components/icons/input.js.map +1 -0
  170. package/lib/commonjs/ui-components/icons/keypad.js +82 -0
  171. package/lib/commonjs/ui-components/icons/keypad.js.map +1 -0
  172. package/lib/commonjs/ui-components/icons/loader.js +180 -0
  173. package/lib/commonjs/ui-components/icons/loader.js.map +1 -0
  174. package/lib/commonjs/ui-components/icons/nerd-view.js +120 -0
  175. package/lib/commonjs/ui-components/icons/nerd-view.js.map +1 -0
  176. package/lib/commonjs/ui-components/icons/selector.js +55 -0
  177. package/lib/commonjs/ui-components/icons/selector.js.map +1 -0
  178. package/lib/commonjs/ui-components/icons/wallet.js +118 -0
  179. package/lib/commonjs/ui-components/icons/wallet.js.map +1 -0
  180. package/lib/commonjs/ui-components/image/image-or-component.js +77 -0
  181. package/lib/commonjs/ui-components/image/image-or-component.js.map +1 -0
  182. package/lib/commonjs/ui-components/image/index.js +14 -0
  183. package/lib/commonjs/ui-components/image/index.js.map +1 -0
  184. package/lib/commonjs/ui-components/index.js +281 -0
  185. package/lib/commonjs/ui-components/index.js.map +1 -0
  186. package/lib/commonjs/ui-components/input/index.js +65 -0
  187. package/lib/commonjs/ui-components/input/index.js.map +1 -0
  188. package/lib/commonjs/ui-components/input/radio-group.js +98 -0
  189. package/lib/commonjs/ui-components/input/radio-group.js.map +1 -0
  190. package/lib/commonjs/ui-components/input/selection-input.js +91 -0
  191. package/lib/commonjs/ui-components/input/selection-input.js.map +1 -0
  192. package/lib/commonjs/ui-components/input/text-input.js +192 -0
  193. package/lib/commonjs/ui-components/input/text-input.js.map +1 -0
  194. package/lib/commonjs/ui-components/list/index.js +52 -0
  195. package/lib/commonjs/ui-components/list/index.js.map +1 -0
  196. package/lib/commonjs/ui-components/list/list-page-loading-indicator.js +14 -0
  197. package/lib/commonjs/ui-components/list/list-page-loading-indicator.js.map +1 -0
  198. package/lib/commonjs/ui-components/list/list-section-header.js +34 -0
  199. package/lib/commonjs/ui-components/list/list-section-header.js.map +1 -0
  200. package/lib/commonjs/ui-components/list/list-title-header.js +33 -0
  201. package/lib/commonjs/ui-components/list/list-title-header.js.map +1 -0
  202. package/lib/commonjs/ui-components/list/wallet/empty-list.js +73 -0
  203. package/lib/commonjs/ui-components/list/wallet/empty-list.js.map +1 -0
  204. package/lib/commonjs/ui-components/list/wallet/empty-search-result.js +41 -0
  205. package/lib/commonjs/ui-components/list/wallet/empty-search-result.js.map +1 -0
  206. package/lib/commonjs/ui-components/list/wallet/index.js +21 -0
  207. package/lib/commonjs/ui-components/list/wallet/index.js.map +1 -0
  208. package/lib/commonjs/ui-components/loader/index.js +40 -0
  209. package/lib/commonjs/ui-components/loader/index.js.map +1 -0
  210. package/lib/commonjs/ui-components/loader/loader.js +140 -0
  211. package/lib/commonjs/ui-components/loader/loader.js.map +1 -0
  212. package/lib/commonjs/ui-components/loader/loading-result.js +93 -0
  213. package/lib/commonjs/ui-components/loader/loading-result.js.map +1 -0
  214. package/lib/commonjs/ui-components/nerd-view/index.js +21 -0
  215. package/lib/commonjs/ui-components/nerd-view/index.js.map +1 -0
  216. package/lib/commonjs/ui-components/nerd-view/nerd-mode-item.js +234 -0
  217. package/lib/commonjs/ui-components/nerd-view/nerd-mode-item.js.map +1 -0
  218. package/lib/commonjs/ui-components/pin/index.js +47 -0
  219. package/lib/commonjs/ui-components/pin/index.js.map +1 -0
  220. package/lib/commonjs/ui-components/pin/keypad.js +197 -0
  221. package/lib/commonjs/ui-components/pin/keypad.js.map +1 -0
  222. package/lib/commonjs/ui-components/pin/pin-code-screen.js +160 -0
  223. package/lib/commonjs/ui-components/pin/pin-code-screen.js.map +1 -0
  224. package/lib/commonjs/ui-components/pin/pin-lock-animation.js +823 -0
  225. package/lib/commonjs/ui-components/pin/pin-lock-animation.js.map +1 -0
  226. package/lib/commonjs/ui-components/pin/pin-lock.js +81 -0
  227. package/lib/commonjs/ui-components/pin/pin-lock.js.map +1 -0
  228. package/lib/commonjs/ui-components/pin/pins.js +53 -0
  229. package/lib/commonjs/ui-components/pin/pins.js.map +1 -0
  230. package/lib/commonjs/ui-components/screens/backup-screen.js +84 -0
  231. package/lib/commonjs/ui-components/screens/backup-screen.js.map +1 -0
  232. package/lib/commonjs/ui-components/screens/image-preview-screen.js +90 -0
  233. package/lib/commonjs/ui-components/screens/image-preview-screen.js.map +1 -0
  234. package/lib/commonjs/ui-components/screens/index.js +57 -0
  235. package/lib/commonjs/ui-components/screens/index.js.map +1 -0
  236. package/lib/commonjs/ui-components/screens/nerd-mode-screen.js +165 -0
  237. package/lib/commonjs/ui-components/screens/nerd-mode-screen.js.map +1 -0
  238. package/lib/commonjs/ui-components/screens/qr-code-scanner-screen.js +118 -0
  239. package/lib/commonjs/ui-components/screens/qr-code-scanner-screen.js.map +1 -0
  240. package/lib/commonjs/ui-components/screens/scroll-view-screen.js +92 -0
  241. package/lib/commonjs/ui-components/screens/scroll-view-screen.js.map +1 -0
  242. package/lib/commonjs/ui-components/screens/section-list-screen.js +65 -0
  243. package/lib/commonjs/ui-components/screens/section-list-screen.js.map +1 -0
  244. package/lib/commonjs/ui-components/searchbar/animated-search-bar.js +86 -0
  245. package/lib/commonjs/ui-components/searchbar/animated-search-bar.js.map +1 -0
  246. package/lib/commonjs/ui-components/searchbar/index.js +34 -0
  247. package/lib/commonjs/ui-components/searchbar/index.js.map +1 -0
  248. package/lib/commonjs/ui-components/searchbar/search-bar.js +97 -0
  249. package/lib/commonjs/ui-components/searchbar/search-bar.js.map +1 -0
  250. package/lib/commonjs/ui-components/settings/button-setting.js +65 -0
  251. package/lib/commonjs/ui-components/settings/button-setting.js.map +1 -0
  252. package/lib/commonjs/ui-components/settings/index.js +73 -0
  253. package/lib/commonjs/ui-components/settings/index.js.map +1 -0
  254. package/lib/commonjs/ui-components/settings/setting-item-separator.js +38 -0
  255. package/lib/commonjs/ui-components/settings/setting-item-separator.js.map +1 -0
  256. package/lib/commonjs/ui-components/settings/setting-item.js +77 -0
  257. package/lib/commonjs/ui-components/settings/setting-item.js.map +1 -0
  258. package/lib/commonjs/ui-components/settings/settings-button.js +33 -0
  259. package/lib/commonjs/ui-components/settings/settings-button.js.map +1 -0
  260. package/lib/commonjs/ui-components/settings/switch-setting.js +33 -0
  261. package/lib/commonjs/ui-components/settings/switch-setting.js.map +1 -0
  262. package/lib/commonjs/ui-components/state/error-screen.js +69 -0
  263. package/lib/commonjs/ui-components/state/error-screen.js.map +1 -0
  264. package/lib/commonjs/ui-components/state/index.js +27 -0
  265. package/lib/commonjs/ui-components/state/index.js.map +1 -0
  266. package/lib/commonjs/ui-components/text/base.js +38 -0
  267. package/lib/commonjs/ui-components/text/base.js.map +1 -0
  268. package/lib/commonjs/ui-components/text/font.js +62 -0
  269. package/lib/commonjs/ui-components/text/font.js.map +1 -0
  270. package/lib/commonjs/ui-components/text/index.js +14 -0
  271. package/lib/commonjs/ui-components/text/index.js.map +1 -0
  272. package/lib/commonjs/ui-components/text/typography.js +116 -0
  273. package/lib/commonjs/ui-components/text/typography.js.map +1 -0
  274. package/lib/commonjs/ui-components/theme/color-scheme-context.js +53 -0
  275. package/lib/commonjs/ui-components/theme/color-scheme-context.js.map +1 -0
  276. package/lib/commonjs/ui-components/theme/color-scheme.js.map +1 -0
  277. package/lib/commonjs/ui-components/theme/index.js.map +1 -0
  278. package/lib/commonjs/utils/array.js +10 -0
  279. package/lib/commonjs/utils/array.js.map +1 -0
  280. package/lib/commonjs/utils/backup.js +12 -0
  281. package/lib/commonjs/utils/backup.js.map +1 -0
  282. package/lib/commonjs/utils/color.js +1 -1
  283. package/lib/commonjs/utils/color.js.map +1 -1
  284. package/lib/commonjs/utils/contrasting-status-bar.js +8 -10
  285. package/lib/commonjs/utils/contrasting-status-bar.js.map +1 -1
  286. package/lib/commonjs/utils/date.js +100 -3
  287. package/lib/commonjs/utils/date.js.map +1 -1
  288. package/lib/commonjs/utils/filtering.js +11 -0
  289. package/lib/commonjs/utils/filtering.js.map +1 -0
  290. package/lib/commonjs/utils/history.js +76 -0
  291. package/lib/commonjs/utils/history.js.map +1 -0
  292. package/lib/commonjs/utils/hooks/connectivity/connectivity.js +162 -0
  293. package/lib/commonjs/utils/hooks/connectivity/connectivity.js.map +1 -0
  294. package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js +62 -0
  295. package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js.map +1 -0
  296. package/lib/commonjs/utils/hooks/core/backup.js +155 -0
  297. package/lib/commonjs/utils/hooks/core/backup.js.map +1 -0
  298. package/lib/commonjs/utils/hooks/core/cache.js +44 -0
  299. package/lib/commonjs/utils/hooks/core/cache.js.map +1 -0
  300. package/lib/commonjs/utils/hooks/core/core-config.js +33 -0
  301. package/lib/commonjs/utils/hooks/core/core-config.js.map +1 -0
  302. package/lib/commonjs/utils/hooks/core/core-context.js +77 -0
  303. package/lib/commonjs/utils/hooks/core/core-context.js.map +1 -0
  304. package/lib/commonjs/utils/hooks/core/core-init.js +97 -0
  305. package/lib/commonjs/utils/hooks/core/core-init.js.map +1 -0
  306. package/lib/commonjs/utils/hooks/core/credential-schemas.js +100 -0
  307. package/lib/commonjs/utils/hooks/core/credential-schemas.js.map +1 -0
  308. package/lib/commonjs/utils/hooks/core/credentials.js +160 -0
  309. package/lib/commonjs/utils/hooks/core/credentials.js.map +1 -0
  310. package/lib/commonjs/utils/hooks/core/dids.js +33 -0
  311. package/lib/commonjs/utils/hooks/core/dids.js.map +1 -0
  312. package/lib/commonjs/utils/hooks/core/error-code.js +14 -0
  313. package/lib/commonjs/utils/hooks/core/error-code.js.map +1 -0
  314. package/lib/commonjs/utils/hooks/core/history.js +33 -0
  315. package/lib/commonjs/utils/hooks/core/history.js.map +1 -0
  316. package/lib/commonjs/utils/hooks/core/index.js +149 -0
  317. package/lib/commonjs/utils/hooks/core/index.js.map +1 -0
  318. package/lib/commonjs/utils/hooks/core/proof-schemas.js +117 -0
  319. package/lib/commonjs/utils/hooks/core/proof-schemas.js.map +1 -0
  320. package/lib/commonjs/utils/hooks/core/proofs.js +367 -0
  321. package/lib/commonjs/utils/hooks/core/proofs.js.map +1 -0
  322. package/lib/commonjs/utils/hooks/core/query.js +24 -0
  323. package/lib/commonjs/utils/hooks/core/query.js.map +1 -0
  324. package/lib/commonjs/utils/hooks/core/trust-entity.js +99 -0
  325. package/lib/commonjs/utils/hooks/core/trust-entity.js.map +1 -0
  326. package/lib/commonjs/utils/hooks/credential-card/credential-card-expanding.js +51 -0
  327. package/lib/commonjs/utils/hooks/credential-card/credential-card-expanding.js.map +1 -0
  328. package/lib/commonjs/utils/hooks/header/on-scroll-header-state.js +1 -2
  329. package/lib/commonjs/utils/hooks/header/on-scroll-header-state.js.map +1 -1
  330. package/lib/commonjs/utils/hooks/http/client.js +20 -0
  331. package/lib/commonjs/utils/hooks/http/client.js.map +1 -0
  332. package/lib/commonjs/utils/hooks/index.js +85 -11
  333. package/lib/commonjs/utils/hooks/index.js.map +1 -1
  334. package/lib/commonjs/utils/hooks/list/list-content-inset.js +9 -10
  335. package/lib/commonjs/utils/hooks/list/list-content-inset.js.map +1 -1
  336. package/lib/commonjs/utils/hooks/navigation/before-remove.js +28 -0
  337. package/lib/commonjs/utils/hooks/navigation/before-remove.js.map +1 -0
  338. package/lib/commonjs/utils/hooks/navigation/close-button-timeout.js +34 -0
  339. package/lib/commonjs/utils/hooks/navigation/close-button-timeout.js.map +1 -0
  340. package/lib/commonjs/utils/hooks/navigation/deep-link.js +45 -0
  341. package/lib/commonjs/utils/hooks/navigation/deep-link.js.map +1 -0
  342. package/lib/commonjs/utils/hooks/navigation/index.js +50 -0
  343. package/lib/commonjs/utils/hooks/navigation/index.js.map +1 -0
  344. package/lib/commonjs/utils/hooks/navigation/open-settings.js +42 -0
  345. package/lib/commonjs/utils/hooks/navigation/open-settings.js.map +1 -0
  346. package/lib/commonjs/utils/hooks/pin-security/pin-security.js +86 -0
  347. package/lib/commonjs/utils/hooks/pin-security/pin-security.js.map +1 -0
  348. package/lib/commonjs/utils/hooks/revocation/credential-status.js +58 -0
  349. package/lib/commonjs/utils/hooks/revocation/credential-status.js.map +1 -0
  350. package/lib/commonjs/utils/index.js +154 -44
  351. package/lib/commonjs/utils/index.js.map +1 -1
  352. package/lib/commonjs/utils/navigation.js +5 -5
  353. package/lib/commonjs/utils/navigation.js.map +1 -1
  354. package/lib/commonjs/utils/parsers/credential-images.js +86 -0
  355. package/lib/commonjs/utils/parsers/credential-images.js.map +1 -0
  356. package/lib/commonjs/utils/parsers/credential-sharing.js +251 -0
  357. package/lib/commonjs/utils/parsers/credential-sharing.js.map +1 -0
  358. package/lib/commonjs/utils/parsers/credential.js +313 -0
  359. package/lib/commonjs/utils/parsers/credential.js.map +1 -0
  360. package/lib/commonjs/utils/parsers/index.js +61 -0
  361. package/lib/commonjs/utils/parsers/index.js.map +1 -0
  362. package/lib/commonjs/utils/parsers/query.js +104 -0
  363. package/lib/commonjs/utils/parsers/query.js.map +1 -0
  364. package/lib/commonjs/utils/parsers/universal-links.js +33 -0
  365. package/lib/commonjs/utils/parsers/universal-links.js.map +1 -0
  366. package/lib/commonjs/utils/parsers/universal-links.test.js +40 -0
  367. package/lib/commonjs/utils/parsers/universal-links.test.js.map +1 -0
  368. package/lib/commonjs/utils/ref.js.map +1 -1
  369. package/lib/commonjs/utils/reporting.js +88 -0
  370. package/lib/commonjs/utils/reporting.js.map +1 -0
  371. package/lib/commonjs/utils/string.js +20 -0
  372. package/lib/commonjs/utils/string.js.map +1 -0
  373. package/lib/commonjs/utils/testID.js +1 -4
  374. package/lib/commonjs/utils/testID.js.map +1 -1
  375. package/lib/commonjs/utils/testID.test.js.map +1 -1
  376. package/lib/commonjs/utils/useMemoAsync.js +10 -1
  377. package/lib/commonjs/utils/useMemoAsync.js.map +1 -1
  378. package/lib/commonjs/utils/uuid.js +16 -0
  379. package/lib/commonjs/utils/uuid.js.map +1 -0
  380. package/lib/module/components/backup/index.js +2 -0
  381. package/lib/module/components/backup/index.js.map +1 -0
  382. package/lib/module/components/backup/preview-credentials.js +30 -0
  383. package/lib/module/components/backup/preview-credentials.js.map +1 -0
  384. package/lib/module/components/credential/credential.js +54 -0
  385. package/lib/module/components/credential/credential.js.map +1 -0
  386. package/lib/module/components/credential/index.js +2 -0
  387. package/lib/module/components/credential/index.js.map +1 -0
  388. package/lib/module/components/entity/EntityButtons.js +56 -0
  389. package/lib/module/components/entity/EntityButtons.js.map +1 -0
  390. package/lib/module/components/entity/entity-attributes.js +42 -0
  391. package/lib/module/components/entity/entity-attributes.js.map +1 -0
  392. package/lib/module/components/entity/entity-details-with-buttons.js +81 -0
  393. package/lib/module/components/entity/entity-details-with-buttons.js.map +1 -0
  394. package/lib/module/components/entity/entity-details.js +63 -0
  395. package/lib/module/components/entity/entity-details.js.map +1 -0
  396. package/lib/module/components/entity/index.js +3 -0
  397. package/lib/module/components/entity/index.js.map +1 -0
  398. package/lib/module/components/history/history-details-screen.js +59 -0
  399. package/lib/module/components/history/history-details-screen.js.map +1 -0
  400. package/lib/module/components/history/history-list-item-icon.js +84 -0
  401. package/lib/module/components/history/history-list-item-icon.js.map +1 -0
  402. package/lib/module/components/history/history-list-item.js +36 -0
  403. package/lib/module/components/history/history-list-item.js.map +1 -0
  404. package/lib/module/components/history/history-list-screen.js +112 -0
  405. package/lib/module/components/history/history-list-screen.js.map +1 -0
  406. package/lib/module/components/history/history-list-section-header.js +29 -0
  407. package/lib/module/components/history/history-list-section-header.js.map +1 -0
  408. package/lib/module/components/history/history-list.js +90 -0
  409. package/lib/module/components/history/history-list.js.map +1 -0
  410. package/lib/module/components/history/index.js +7 -0
  411. package/lib/module/components/history/index.js.map +1 -0
  412. package/lib/module/components/index.js +7 -0
  413. package/lib/module/components/index.js.map +1 -0
  414. package/lib/module/components/navigation/header-buttons.js +66 -0
  415. package/lib/module/components/navigation/header-buttons.js.map +1 -0
  416. package/lib/module/components/navigation/index.js +2 -0
  417. package/lib/module/components/navigation/index.js.map +1 -0
  418. package/lib/module/components/proof-request/group.js +27 -0
  419. package/lib/module/components/proof-request/group.js.map +1 -0
  420. package/lib/module/components/proof-request/index.js +4 -0
  421. package/lib/module/components/proof-request/index.js.map +1 -0
  422. package/lib/module/components/proof-request/select-credential.js +40 -0
  423. package/lib/module/components/proof-request/select-credential.js.map +1 -0
  424. package/lib/module/components/proof-request/share-credential.js +150 -0
  425. package/lib/module/components/proof-request/share-credential.js.map +1 -0
  426. package/lib/module/index.js +2 -25
  427. package/lib/module/index.js.map +1 -1
  428. package/lib/module/normalize-color.d.js.map +1 -1
  429. package/lib/module/ui-components/accessibility/accessibility.js +183 -0
  430. package/lib/module/ui-components/accessibility/accessibility.js.map +1 -0
  431. package/lib/module/ui-components/accessibility/accessibilityHistory.js +67 -0
  432. package/lib/module/ui-components/accessibility/accessibilityHistory.js.map +1 -0
  433. package/lib/module/ui-components/accessibility/accessibilityHistoryWrappers.js +40 -0
  434. package/lib/module/ui-components/accessibility/accessibilityHistoryWrappers.js.map +1 -0
  435. package/lib/module/ui-components/accessibility/accessibilityLanguage.js +51 -0
  436. package/lib/module/ui-components/accessibility/accessibilityLanguage.js.map +1 -0
  437. package/lib/module/ui-components/accessibility/index.js +8 -0
  438. package/lib/module/ui-components/accessibility/index.js.map +1 -0
  439. package/lib/module/ui-components/accessibility/locale/index.js.map +1 -0
  440. package/lib/module/ui-components/accessibility/locale.test.js.map +1 -0
  441. package/lib/module/ui-components/action-modal/ActionModal.js +43 -0
  442. package/lib/module/ui-components/action-modal/ActionModal.js.map +1 -0
  443. package/lib/module/ui-components/action-modal/index.js.map +1 -0
  444. package/lib/module/ui-components/activity-indicator/activity-indicator.js +23 -0
  445. package/lib/module/ui-components/activity-indicator/activity-indicator.js.map +1 -0
  446. package/lib/module/ui-components/activity-indicator/index.js.map +1 -0
  447. package/lib/module/ui-components/blur/blur-view.js +66 -0
  448. package/lib/module/ui-components/blur/blur-view.js.map +1 -0
  449. package/lib/module/ui-components/blur/index.js.map +1 -0
  450. package/lib/module/ui-components/buttons/back-button.js +27 -0
  451. package/lib/module/ui-components/buttons/back-button.js.map +1 -0
  452. package/lib/module/ui-components/buttons/button.js +142 -0
  453. package/lib/module/ui-components/buttons/button.js.map +1 -0
  454. package/lib/module/ui-components/buttons/connectivity-button.js +73 -0
  455. package/lib/module/ui-components/buttons/connectivity-button.js.map +1 -0
  456. package/lib/module/ui-components/buttons/filter-button.js +42 -0
  457. package/lib/module/ui-components/buttons/filter-button.js.map +1 -0
  458. package/lib/module/ui-components/buttons/ghost-button.js +52 -0
  459. package/lib/module/ui-components/buttons/ghost-button.js.map +1 -0
  460. package/lib/module/ui-components/buttons/hold-button.js +236 -0
  461. package/lib/module/ui-components/buttons/hold-button.js.map +1 -0
  462. package/lib/module/ui-components/buttons/index.js +9 -0
  463. package/lib/module/ui-components/buttons/index.js.map +1 -0
  464. package/lib/module/ui-components/buttons/scan-button.js +74 -0
  465. package/lib/module/ui-components/buttons/scan-button.js.map +1 -0
  466. package/lib/module/ui-components/camera/camera-overlay.js +49 -0
  467. package/lib/module/ui-components/camera/camera-overlay.js.map +1 -0
  468. package/lib/module/ui-components/camera/index.js.map +1 -0
  469. package/lib/module/ui-components/camera/qr-code-scanner.js +39 -0
  470. package/lib/module/ui-components/camera/qr-code-scanner.js.map +1 -0
  471. package/lib/module/ui-components/control/checkbox.js +69 -0
  472. package/lib/module/ui-components/control/checkbox.js.map +1 -0
  473. package/lib/module/ui-components/control/index.js.map +1 -0
  474. package/lib/module/ui-components/control/switch.js +55 -0
  475. package/lib/module/ui-components/control/switch.js.map +1 -0
  476. package/lib/module/ui-components/credential/card/credential-card.js +170 -0
  477. package/lib/module/ui-components/credential/card/credential-card.js.map +1 -0
  478. package/lib/module/ui-components/credential/card/credential-details-card.js +185 -0
  479. package/lib/module/ui-components/credential/card/credential-details-card.js.map +1 -0
  480. package/lib/module/ui-components/credential/card/credential-details-list-item.js +82 -0
  481. package/lib/module/ui-components/credential/card/credential-details-list-item.js.map +1 -0
  482. package/lib/module/ui-components/credential/card/credential-header.js +165 -0
  483. package/lib/module/ui-components/credential/card/credential-header.js.map +1 -0
  484. package/lib/module/ui-components/credential/card/credential-image-carousel.js +113 -0
  485. package/lib/module/ui-components/credential/card/credential-image-carousel.js.map +1 -0
  486. package/lib/module/ui-components/credential/card/index.js +11 -0
  487. package/lib/module/ui-components/credential/card/index.js.map +1 -0
  488. package/lib/module/ui-components/credential/credential-attribute-item.js +271 -0
  489. package/lib/module/ui-components/credential/credential-attribute-item.js.map +1 -0
  490. package/lib/module/ui-components/credential/credential-carousel-images.js +83 -0
  491. package/lib/module/ui-components/credential/credential-carousel-images.js.map +1 -0
  492. package/lib/module/ui-components/credential/index.js +9 -0
  493. package/lib/module/ui-components/credential/index.js.map +1 -0
  494. package/lib/module/ui-components/credential/selector-status.js +10 -0
  495. package/lib/module/ui-components/credential/selector-status.js.map +1 -0
  496. package/lib/module/ui-components/credential/selector.js +69 -0
  497. package/lib/module/ui-components/credential/selector.js.map +1 -0
  498. package/lib/module/ui-components/detail/detail.js +74 -0
  499. package/lib/module/ui-components/detail/detail.js.map +1 -0
  500. package/lib/module/ui-components/detail/index.js.map +1 -0
  501. package/lib/module/ui-components/entity/avatar.js +95 -0
  502. package/lib/module/ui-components/entity/avatar.js.map +1 -0
  503. package/lib/module/ui-components/entity/entity-cluster.js +63 -0
  504. package/lib/module/ui-components/entity/entity-cluster.js.map +1 -0
  505. package/lib/module/ui-components/entity/index.js.map +1 -0
  506. package/lib/module/ui-components/header/focus-aware-status-bar.js +12 -0
  507. package/lib/module/ui-components/header/focus-aware-status-bar.js.map +1 -0
  508. package/lib/module/ui-components/header/foldable-header.js +77 -0
  509. package/lib/module/ui-components/header/foldable-header.js.map +1 -0
  510. package/lib/module/ui-components/header/header.js +96 -0
  511. package/lib/module/ui-components/header/header.js.map +1 -0
  512. package/lib/module/ui-components/header/index.js +9 -0
  513. package/lib/module/ui-components/header/index.js.map +1 -0
  514. package/lib/module/ui-components/header/navigation-header.js +133 -0
  515. package/lib/module/ui-components/header/navigation-header.js.map +1 -0
  516. package/lib/module/ui-components/history/data-item.js +68 -0
  517. package/lib/module/ui-components/history/data-item.js.map +1 -0
  518. package/lib/module/ui-components/history/history-details.js +171 -0
  519. package/lib/module/ui-components/history/history-details.js.map +1 -0
  520. package/lib/module/ui-components/history/history-item.js +102 -0
  521. package/lib/module/ui-components/history/history-item.js.map +1 -0
  522. package/lib/module/ui-components/history/history-section-header.js +41 -0
  523. package/lib/module/ui-components/history/history-section-header.js.map +1 -0
  524. package/lib/module/ui-components/history/history-section-list-item.js +42 -0
  525. package/lib/module/ui-components/history/history-section-list-item.js.map +1 -0
  526. package/lib/module/ui-components/history/index.js +10 -0
  527. package/lib/module/ui-components/history/index.js.map +1 -0
  528. package/lib/module/ui-components/icons/connectivity.js +120 -0
  529. package/lib/module/ui-components/icons/connectivity.js.map +1 -0
  530. package/lib/module/ui-components/icons/credential.js +136 -0
  531. package/lib/module/ui-components/icons/credential.js.map +1 -0
  532. package/lib/module/ui-components/icons/entity.js +42 -0
  533. package/lib/module/ui-components/icons/entity.js.map +1 -0
  534. package/lib/module/ui-components/icons/history.js +364 -0
  535. package/lib/module/ui-components/icons/history.js.map +1 -0
  536. package/lib/module/ui-components/icons/icons.js +214 -0
  537. package/lib/module/ui-components/icons/icons.js.map +1 -0
  538. package/lib/module/ui-components/icons/index.js.map +1 -0
  539. package/lib/module/ui-components/icons/input.js.map +1 -0
  540. package/lib/module/ui-components/icons/keypad.js +69 -0
  541. package/lib/module/ui-components/icons/keypad.js.map +1 -0
  542. package/lib/module/ui-components/icons/loader.js +168 -0
  543. package/lib/module/ui-components/icons/loader.js.map +1 -0
  544. package/lib/module/ui-components/icons/nerd-view.js.map +1 -0
  545. package/lib/module/ui-components/icons/selector.js +44 -0
  546. package/lib/module/ui-components/icons/selector.js.map +1 -0
  547. package/lib/module/ui-components/icons/wallet.js +108 -0
  548. package/lib/module/ui-components/icons/wallet.js.map +1 -0
  549. package/lib/module/ui-components/image/image-or-component.js +69 -0
  550. package/lib/module/ui-components/image/image-or-component.js.map +1 -0
  551. package/lib/module/ui-components/image/index.js +3 -0
  552. package/lib/module/ui-components/image/index.js.map +1 -0
  553. package/lib/module/ui-components/index.js +26 -0
  554. package/lib/module/ui-components/index.js.map +1 -0
  555. package/lib/module/ui-components/input/index.js.map +1 -0
  556. package/lib/module/ui-components/input/radio-group.js +91 -0
  557. package/lib/module/ui-components/input/radio-group.js.map +1 -0
  558. package/lib/module/ui-components/input/selection-input.js +82 -0
  559. package/lib/module/ui-components/input/selection-input.js.map +1 -0
  560. package/lib/module/ui-components/input/text-input.js +184 -0
  561. package/lib/module/ui-components/input/text-input.js.map +1 -0
  562. package/lib/module/ui-components/list/index.js +6 -0
  563. package/lib/module/ui-components/list/index.js.map +1 -0
  564. package/lib/module/ui-components/list/list-page-loading-indicator.js +7 -0
  565. package/lib/module/ui-components/list/list-page-loading-indicator.js.map +1 -0
  566. package/lib/module/ui-components/list/list-section-header.js +27 -0
  567. package/lib/module/ui-components/list/list-section-header.js.map +1 -0
  568. package/lib/module/ui-components/list/list-title-header.js +26 -0
  569. package/lib/module/ui-components/list/list-title-header.js.map +1 -0
  570. package/lib/module/ui-components/list/wallet/empty-list.js +66 -0
  571. package/lib/module/ui-components/list/wallet/empty-list.js.map +1 -0
  572. package/lib/module/ui-components/list/wallet/empty-search-result.js +34 -0
  573. package/lib/module/ui-components/list/wallet/empty-search-result.js.map +1 -0
  574. package/lib/module/ui-components/list/wallet/index.js +4 -0
  575. package/lib/module/ui-components/list/wallet/index.js.map +1 -0
  576. package/lib/module/ui-components/loader/index.js.map +1 -0
  577. package/lib/module/ui-components/loader/loader.js +132 -0
  578. package/lib/module/ui-components/loader/loader.js.map +1 -0
  579. package/lib/module/ui-components/loader/loading-result.js +86 -0
  580. package/lib/module/ui-components/loader/loading-result.js.map +1 -0
  581. package/lib/module/ui-components/nerd-view/index.js +3 -0
  582. package/lib/module/ui-components/nerd-view/index.js.map +1 -0
  583. package/lib/module/ui-components/nerd-view/nerd-mode-item.js +224 -0
  584. package/lib/module/ui-components/nerd-view/nerd-mode-item.js.map +1 -0
  585. package/lib/module/ui-components/pin/index.js +5 -0
  586. package/lib/module/ui-components/pin/index.js.map +1 -0
  587. package/lib/module/ui-components/pin/keypad.js +189 -0
  588. package/lib/module/ui-components/pin/keypad.js.map +1 -0
  589. package/lib/module/ui-components/pin/pin-code-screen.js +151 -0
  590. package/lib/module/ui-components/pin/pin-code-screen.js.map +1 -0
  591. package/lib/module/ui-components/pin/pin-lock-animation.js +817 -0
  592. package/lib/module/ui-components/pin/pin-lock-animation.js.map +1 -0
  593. package/lib/module/ui-components/pin/pin-lock.js +72 -0
  594. package/lib/module/ui-components/pin/pin-lock.js.map +1 -0
  595. package/lib/module/ui-components/pin/pins.js +45 -0
  596. package/lib/module/ui-components/pin/pins.js.map +1 -0
  597. package/lib/module/ui-components/screens/backup-screen.js +77 -0
  598. package/lib/module/ui-components/screens/backup-screen.js.map +1 -0
  599. package/lib/module/ui-components/screens/image-preview-screen.js +82 -0
  600. package/lib/module/ui-components/screens/image-preview-screen.js.map +1 -0
  601. package/lib/module/ui-components/screens/index.js +13 -0
  602. package/lib/module/ui-components/screens/index.js.map +1 -0
  603. package/lib/module/ui-components/screens/nerd-mode-screen.js +156 -0
  604. package/lib/module/ui-components/screens/nerd-mode-screen.js.map +1 -0
  605. package/lib/module/ui-components/screens/qr-code-scanner-screen.js +109 -0
  606. package/lib/module/ui-components/screens/qr-code-scanner-screen.js.map +1 -0
  607. package/lib/module/ui-components/screens/scroll-view-screen.js +85 -0
  608. package/lib/module/ui-components/screens/scroll-view-screen.js.map +1 -0
  609. package/lib/module/ui-components/screens/section-list-screen.js +58 -0
  610. package/lib/module/ui-components/screens/section-list-screen.js.map +1 -0
  611. package/lib/module/ui-components/searchbar/animated-search-bar.js +77 -0
  612. package/lib/module/ui-components/searchbar/animated-search-bar.js.map +1 -0
  613. package/lib/module/ui-components/searchbar/index.js.map +1 -0
  614. package/lib/module/ui-components/searchbar/search-bar.js +88 -0
  615. package/lib/module/ui-components/searchbar/search-bar.js.map +1 -0
  616. package/lib/module/ui-components/settings/button-setting.js +56 -0
  617. package/lib/module/ui-components/settings/button-setting.js.map +1 -0
  618. package/lib/module/ui-components/settings/index.js.map +1 -0
  619. package/lib/module/ui-components/settings/setting-item-separator.js +31 -0
  620. package/lib/module/ui-components/settings/setting-item-separator.js.map +1 -0
  621. package/lib/module/ui-components/settings/setting-item.js +68 -0
  622. package/lib/module/ui-components/settings/setting-item.js.map +1 -0
  623. package/lib/module/ui-components/settings/settings-button.js +26 -0
  624. package/lib/module/ui-components/settings/settings-button.js.map +1 -0
  625. package/lib/module/ui-components/settings/switch-setting.js +26 -0
  626. package/lib/module/ui-components/settings/switch-setting.js.map +1 -0
  627. package/lib/module/ui-components/state/error-screen.js +62 -0
  628. package/lib/module/ui-components/state/error-screen.js.map +1 -0
  629. package/lib/module/ui-components/state/index.js.map +1 -0
  630. package/lib/module/ui-components/text/base.js +30 -0
  631. package/lib/module/ui-components/text/base.js.map +1 -0
  632. package/lib/module/ui-components/text/font.js +55 -0
  633. package/lib/module/ui-components/text/font.js.map +1 -0
  634. package/lib/module/ui-components/text/index.js +3 -0
  635. package/lib/module/ui-components/text/index.js.map +1 -0
  636. package/lib/module/ui-components/text/typography.js +109 -0
  637. package/lib/module/ui-components/text/typography.js.map +1 -0
  638. package/lib/module/ui-components/theme/color-scheme-context.js +45 -0
  639. package/lib/module/ui-components/theme/color-scheme-context.js.map +1 -0
  640. package/lib/module/ui-components/theme/color-scheme.js.map +1 -0
  641. package/lib/module/ui-components/theme/index.js.map +1 -0
  642. package/lib/module/utils/array.js +4 -0
  643. package/lib/module/utils/array.js.map +1 -0
  644. package/lib/module/utils/backup.js +5 -0
  645. package/lib/module/utils/backup.js.map +1 -0
  646. package/lib/module/utils/color.js.map +1 -1
  647. package/lib/module/utils/contrasting-status-bar.js +5 -6
  648. package/lib/module/utils/contrasting-status-bar.js.map +1 -1
  649. package/lib/module/utils/date.js +91 -3
  650. package/lib/module/utils/date.js.map +1 -1
  651. package/lib/module/utils/filtering.js +4 -0
  652. package/lib/module/utils/filtering.js.map +1 -0
  653. package/lib/module/utils/history.js +66 -0
  654. package/lib/module/utils/history.js.map +1 -0
  655. package/lib/module/utils/hooks/connectivity/connectivity.js +153 -0
  656. package/lib/module/utils/hooks/connectivity/connectivity.js.map +1 -0
  657. package/lib/module/utils/hooks/connectivity/connectivity.test.js +60 -0
  658. package/lib/module/utils/hooks/connectivity/connectivity.test.js.map +1 -0
  659. package/lib/module/utils/hooks/core/backup.js +143 -0
  660. package/lib/module/utils/hooks/core/backup.js.map +1 -0
  661. package/lib/module/utils/hooks/core/cache.js +37 -0
  662. package/lib/module/utils/hooks/core/cache.js.map +1 -0
  663. package/lib/module/utils/hooks/core/core-config.js +23 -0
  664. package/lib/module/utils/hooks/core/core-config.js.map +1 -0
  665. package/lib/module/utils/hooks/core/core-context.js +67 -0
  666. package/lib/module/utils/hooks/core/core-context.js.map +1 -0
  667. package/lib/module/utils/hooks/core/core-init.js +90 -0
  668. package/lib/module/utils/hooks/core/core-init.js.map +1 -0
  669. package/lib/module/utils/hooks/core/credential-schemas.js +88 -0
  670. package/lib/module/utils/hooks/core/credential-schemas.js.map +1 -0
  671. package/lib/module/utils/hooks/core/credentials.js +145 -0
  672. package/lib/module/utils/hooks/core/credentials.js.map +1 -0
  673. package/lib/module/utils/hooks/core/dids.js +26 -0
  674. package/lib/module/utils/hooks/core/dids.js.map +1 -0
  675. package/lib/module/utils/hooks/core/error-code.js +8 -0
  676. package/lib/module/utils/hooks/core/error-code.js.map +1 -0
  677. package/lib/module/utils/hooks/core/history.js +26 -0
  678. package/lib/module/utils/hooks/core/history.js.map +1 -0
  679. package/lib/module/utils/hooks/core/index.js +14 -0
  680. package/lib/module/utils/hooks/core/index.js.map +1 -0
  681. package/lib/module/utils/hooks/core/proof-schemas.js +104 -0
  682. package/lib/module/utils/hooks/core/proof-schemas.js.map +1 -0
  683. package/lib/module/utils/hooks/core/proofs.js +346 -0
  684. package/lib/module/utils/hooks/core/proofs.js.map +1 -0
  685. package/lib/module/utils/hooks/core/query.js +18 -0
  686. package/lib/module/utils/hooks/core/query.js.map +1 -0
  687. package/lib/module/utils/hooks/core/trust-entity.js +88 -0
  688. package/lib/module/utils/hooks/core/trust-entity.js.map +1 -0
  689. package/lib/module/utils/hooks/credential-card/credential-card-expanding.js +43 -0
  690. package/lib/module/utils/hooks/credential-card/credential-card-expanding.js.map +1 -0
  691. package/lib/module/utils/hooks/header/on-scroll-header-state.js +1 -2
  692. package/lib/module/utils/hooks/header/on-scroll-header-state.js.map +1 -1
  693. package/lib/module/utils/hooks/http/client.js +13 -0
  694. package/lib/module/utils/hooks/http/client.js.map +1 -0
  695. package/lib/module/utils/hooks/index.js +8 -4
  696. package/lib/module/utils/hooks/index.js.map +1 -1
  697. package/lib/module/utils/hooks/list/list-content-inset.js +9 -10
  698. package/lib/module/utils/hooks/list/list-content-inset.js.map +1 -1
  699. package/lib/module/utils/hooks/navigation/before-remove.js +21 -0
  700. package/lib/module/utils/hooks/navigation/before-remove.js.map +1 -0
  701. package/lib/module/utils/hooks/navigation/close-button-timeout.js +27 -0
  702. package/lib/module/utils/hooks/navigation/close-button-timeout.js.map +1 -0
  703. package/lib/module/utils/hooks/navigation/deep-link.js +37 -0
  704. package/lib/module/utils/hooks/navigation/deep-link.js.map +1 -0
  705. package/lib/module/utils/hooks/navigation/index.js +5 -0
  706. package/lib/module/utils/hooks/navigation/index.js.map +1 -0
  707. package/lib/module/utils/hooks/navigation/open-settings.js +35 -0
  708. package/lib/module/utils/hooks/navigation/open-settings.js.map +1 -0
  709. package/lib/module/utils/hooks/pin-security/pin-security.js +79 -0
  710. package/lib/module/utils/hooks/pin-security/pin-security.js.map +1 -0
  711. package/lib/module/utils/hooks/revocation/credential-status.js +52 -0
  712. package/lib/module/utils/hooks/revocation/credential-status.js.map +1 -0
  713. package/lib/module/utils/index.js +14 -5
  714. package/lib/module/utils/index.js.map +1 -1
  715. package/lib/module/utils/navigation.js +5 -5
  716. package/lib/module/utils/navigation.js.map +1 -1
  717. package/lib/module/utils/parsers/credential-images.js +78 -0
  718. package/lib/module/utils/parsers/credential-images.js.map +1 -0
  719. package/lib/module/utils/parsers/credential-sharing.js +238 -0
  720. package/lib/module/utils/parsers/credential-sharing.js.map +1 -0
  721. package/lib/module/utils/parsers/credential.js +295 -0
  722. package/lib/module/utils/parsers/credential.js.map +1 -0
  723. package/lib/module/utils/parsers/index.js +6 -0
  724. package/lib/module/utils/parsers/index.js.map +1 -0
  725. package/lib/module/utils/parsers/query.js +92 -0
  726. package/lib/module/utils/parsers/query.js.map +1 -0
  727. package/lib/module/utils/parsers/universal-links.js +25 -0
  728. package/lib/module/utils/parsers/universal-links.js.map +1 -0
  729. package/lib/module/utils/parsers/universal-links.test.js +38 -0
  730. package/lib/module/utils/parsers/universal-links.test.js.map +1 -0
  731. package/lib/module/utils/ref.js.map +1 -1
  732. package/lib/module/utils/reporting.js +77 -0
  733. package/lib/module/utils/reporting.js.map +1 -0
  734. package/lib/module/utils/string.js +10 -0
  735. package/lib/module/utils/string.js.map +1 -0
  736. package/lib/module/utils/testID.js +1 -4
  737. package/lib/module/utils/testID.js.map +1 -1
  738. package/lib/module/utils/testID.test.js.map +1 -1
  739. package/lib/module/utils/useMemoAsync.js +11 -1
  740. package/lib/module/utils/useMemoAsync.js.map +1 -1
  741. package/lib/module/utils/uuid.js +9 -0
  742. package/lib/module/utils/uuid.js.map +1 -0
  743. package/lib/typescript/components/backup/index.d.ts +1 -0
  744. package/lib/typescript/components/backup/preview-credentials.d.ts +11 -0
  745. package/lib/typescript/components/credential/credential.d.ts +16 -0
  746. package/lib/typescript/components/credential/index.d.ts +1 -0
  747. package/lib/typescript/components/entity/EntityButtons.d.ts +14 -0
  748. package/lib/typescript/components/entity/entity-attributes.d.ts +13 -0
  749. package/lib/typescript/components/entity/entity-details-with-buttons.d.ts +18 -0
  750. package/lib/typescript/components/entity/entity-details.d.ts +19 -0
  751. package/lib/typescript/components/entity/index.d.ts +2 -0
  752. package/lib/typescript/components/history/history-details-screen.d.ts +20 -0
  753. package/lib/typescript/components/history/history-list-item-icon.d.ts +8 -0
  754. package/lib/typescript/components/history/history-list-item.d.ts +20 -0
  755. package/lib/typescript/components/history/history-list-screen.d.ts +22 -0
  756. package/lib/typescript/components/history/history-list-section-header.d.ts +13 -0
  757. package/lib/typescript/components/history/history-list.d.ts +19 -0
  758. package/lib/typescript/components/history/index.d.ts +6 -0
  759. package/lib/typescript/components/index.d.ts +6 -0
  760. package/lib/typescript/components/navigation/header-buttons.d.ts +21 -0
  761. package/lib/typescript/components/navigation/index.d.ts +1 -0
  762. package/lib/typescript/components/proof-request/group.d.ts +2 -0
  763. package/lib/typescript/components/proof-request/index.d.ts +3 -0
  764. package/lib/typescript/components/proof-request/select-credential.d.ts +14 -0
  765. package/lib/typescript/components/proof-request/share-credential.d.ts +27 -0
  766. package/lib/typescript/index.d.ts +2 -25
  767. package/lib/typescript/ui-components/accessibility/accessibility.d.ts +55 -0
  768. package/lib/typescript/ui-components/accessibility/accessibilityHistory.d.ts +13 -0
  769. package/lib/typescript/ui-components/accessibility/accessibilityHistoryWrappers.d.ts +18 -0
  770. package/lib/typescript/ui-components/accessibility/index.d.ts +8 -0
  771. package/lib/typescript/ui-components/buttons/back-button.d.ts +9 -0
  772. package/lib/typescript/ui-components/buttons/button.d.ts +22 -0
  773. package/lib/typescript/ui-components/buttons/hold-button.d.ts +16 -0
  774. package/lib/typescript/ui-components/buttons/index.d.ts +15 -0
  775. package/lib/typescript/ui-components/buttons/scan-button.d.ts +5 -0
  776. package/lib/typescript/ui-components/credential/card/credential-card.d.ts +25 -0
  777. package/lib/typescript/ui-components/credential/card/credential-header.d.ts +20 -0
  778. package/lib/typescript/ui-components/credential/card/index.d.ts +15 -0
  779. package/lib/typescript/ui-components/credential/credential-attribute-item.d.ts +49 -0
  780. package/lib/typescript/ui-components/credential/index.d.ts +9 -0
  781. package/lib/typescript/ui-components/entity/avatar.d.ts +11 -0
  782. package/lib/typescript/ui-components/entity/entity-cluster.d.ts +13 -0
  783. package/lib/typescript/ui-components/header/index.d.ts +11 -0
  784. package/lib/typescript/ui-components/history/data-item.d.ts +12 -0
  785. package/lib/typescript/ui-components/history/history-details.d.ts +51 -0
  786. package/lib/typescript/ui-components/history/history-item.d.ts +15 -0
  787. package/lib/typescript/ui-components/history/history-section-header.d.ts +7 -0
  788. package/lib/typescript/ui-components/history/history-section-list-item.d.ts +7 -0
  789. package/lib/typescript/ui-components/history/index.d.ts +9 -0
  790. package/lib/typescript/ui-components/icons/history.d.ts +27 -0
  791. package/lib/typescript/ui-components/image/index.d.ts +3 -0
  792. package/lib/typescript/ui-components/index.d.ts +25 -0
  793. package/lib/typescript/ui-components/input/selection-input.d.ts +32 -0
  794. package/lib/typescript/ui-components/list/index.d.ts +5 -0
  795. package/lib/typescript/ui-components/list/list-page-loading-indicator.d.ts +4 -0
  796. package/lib/typescript/ui-components/list/wallet/empty-list.d.ts +10 -0
  797. package/lib/typescript/ui-components/list/wallet/empty-search-result.d.ts +7 -0
  798. package/lib/typescript/ui-components/list/wallet/index.d.ts +3 -0
  799. package/lib/typescript/ui-components/nerd-view/index.d.ts +3 -0
  800. package/lib/typescript/ui-components/pin/index.d.ts +4 -0
  801. package/lib/typescript/ui-components/pin/keypad.d.ts +16 -0
  802. package/lib/typescript/ui-components/pin/pin-lock-animation.d.ts +731 -0
  803. package/lib/typescript/ui-components/pin/pin-lock.d.ts +13 -0
  804. package/lib/typescript/ui-components/screens/index.d.ts +18 -0
  805. package/lib/typescript/ui-components/screens/nerd-mode-screen.d.ts +49 -0
  806. package/lib/typescript/ui-components/text/index.d.ts +3 -0
  807. package/lib/typescript/ui-components/text/typography.d.ts +112 -0
  808. package/lib/typescript/ui-components/theme/color-scheme.d.ts +32 -0
  809. package/lib/typescript/utils/array.d.ts +1 -0
  810. package/lib/typescript/utils/backup.d.ts +1 -0
  811. package/lib/typescript/utils/date.d.ts +32 -0
  812. package/lib/typescript/utils/filtering.d.ts +1 -0
  813. package/lib/typescript/utils/history.d.ts +10 -0
  814. package/lib/typescript/utils/hooks/connectivity/connectivity.d.ts +27 -0
  815. package/lib/typescript/utils/hooks/connectivity/connectivity.test.d.ts +1 -0
  816. package/lib/typescript/utils/hooks/core/backup.d.ts +13 -0
  817. package/lib/typescript/utils/hooks/core/cache.d.ts +2 -0
  818. package/lib/typescript/utils/hooks/core/core-config.d.ts +5 -0
  819. package/lib/typescript/utils/hooks/core/core-context.d.ts +15 -0
  820. package/lib/typescript/utils/hooks/core/core-init.d.ts +12 -0
  821. package/lib/typescript/utils/hooks/core/credential-schemas.d.ts +11 -0
  822. package/lib/typescript/utils/hooks/core/credentials.d.ts +22 -0
  823. package/lib/typescript/utils/hooks/core/dids.d.ts +3 -0
  824. package/lib/typescript/utils/hooks/core/error-code.d.ts +6 -0
  825. package/lib/typescript/utils/hooks/core/history.d.ts +3 -0
  826. package/lib/typescript/utils/hooks/core/index.d.ts +13 -0
  827. package/lib/typescript/utils/hooks/core/proof-schemas.d.ts +14 -0
  828. package/lib/typescript/utils/hooks/core/proofs.d.ts +43 -0
  829. package/lib/typescript/utils/hooks/core/query.d.ts +2 -0
  830. package/lib/typescript/utils/hooks/core/trust-entity.d.ts +11 -0
  831. package/lib/typescript/utils/hooks/credential-card/credential-card-expanding.d.ts +10 -0
  832. package/lib/typescript/utils/hooks/http/client.d.ts +2 -0
  833. package/lib/typescript/utils/hooks/index.d.ts +8 -4
  834. package/lib/typescript/utils/hooks/navigation/before-remove.d.ts +1 -0
  835. package/lib/typescript/utils/hooks/navigation/close-button-timeout.d.ts +3 -0
  836. package/lib/typescript/utils/hooks/navigation/deep-link.d.ts +2 -0
  837. package/lib/typescript/utils/hooks/navigation/index.d.ts +4 -0
  838. package/lib/typescript/utils/hooks/navigation/open-settings.d.ts +6 -0
  839. package/lib/typescript/utils/hooks/pin-security/pin-security.d.ts +6 -0
  840. package/lib/typescript/utils/hooks/revocation/credential-status.d.ts +8 -0
  841. package/lib/typescript/utils/index.d.ts +14 -5
  842. package/lib/typescript/utils/parsers/credential-images.d.ts +3 -0
  843. package/lib/typescript/utils/parsers/credential-sharing.d.ts +16 -0
  844. package/lib/typescript/utils/parsers/credential.d.ts +76 -0
  845. package/lib/typescript/utils/parsers/index.d.ts +5 -0
  846. package/lib/typescript/utils/parsers/query.d.ts +7 -0
  847. package/lib/typescript/utils/parsers/universal-links.d.ts +1 -0
  848. package/lib/typescript/utils/parsers/universal-links.test.d.ts +1 -0
  849. package/lib/typescript/utils/ref.d.ts +1 -1
  850. package/lib/typescript/utils/reporting.d.ts +4 -0
  851. package/lib/typescript/utils/string.d.ts +4 -0
  852. package/lib/typescript/utils/uuid.d.ts +6 -0
  853. package/package.json +86 -45
  854. package/src/components/backup/index.ts +1 -0
  855. package/src/components/backup/preview-credentials.tsx +38 -0
  856. package/src/components/credential/credential.tsx +72 -0
  857. package/src/components/credential/index.ts +1 -0
  858. package/src/components/entity/EntityButtons.tsx +79 -0
  859. package/src/components/entity/entity-attributes.tsx +63 -0
  860. package/src/components/entity/entity-details-with-buttons.tsx +99 -0
  861. package/src/components/entity/entity-details.tsx +85 -0
  862. package/src/components/entity/index.ts +3 -0
  863. package/src/components/history/history-details-screen.tsx +89 -0
  864. package/src/components/history/history-list-item-icon.tsx +108 -0
  865. package/src/components/history/history-list-item.tsx +53 -0
  866. package/src/components/history/history-list-screen.tsx +154 -0
  867. package/src/components/history/history-list-section-header.tsx +42 -0
  868. package/src/components/history/history-list.tsx +116 -0
  869. package/src/components/history/index.tsx +6 -0
  870. package/src/components/index.ts +6 -0
  871. package/src/components/navigation/header-buttons.tsx +64 -0
  872. package/src/components/navigation/index.ts +1 -0
  873. package/src/components/proof-request/group.tsx +26 -0
  874. package/src/components/proof-request/index.ts +3 -0
  875. package/src/components/proof-request/select-credential.tsx +48 -0
  876. package/src/components/proof-request/share-credential.tsx +194 -0
  877. package/src/index.ts +2 -25
  878. package/src/ui-components/accessibility/accessibility.ts +215 -0
  879. package/src/ui-components/accessibility/accessibilityHistory.tsx +77 -0
  880. package/src/ui-components/accessibility/accessibilityHistoryWrappers.tsx +78 -0
  881. package/src/ui-components/accessibility/index.ts +36 -0
  882. package/src/ui-components/action-modal/ActionModal.stories.tsx +39 -0
  883. package/src/ui-components/activity-indicator/activity-indicator.stories.tsx +18 -0
  884. package/src/ui-components/blur/blur-view.tsx +82 -0
  885. package/src/ui-components/buttons/back-button.stories.tsx +30 -0
  886. package/src/ui-components/buttons/back-button.tsx +30 -0
  887. package/src/ui-components/buttons/button.stories.tsx +28 -0
  888. package/src/ui-components/buttons/button.tsx +169 -0
  889. package/src/ui-components/buttons/connectivity-button.stories.tsx +33 -0
  890. package/src/ui-components/buttons/connectivity-button.tsx +95 -0
  891. package/src/ui-components/buttons/ghost-button.stories.tsx +28 -0
  892. package/src/ui-components/buttons/hold-button.stories.tsx +29 -0
  893. package/src/ui-components/buttons/hold-button.tsx +276 -0
  894. package/src/ui-components/buttons/index.ts +34 -0
  895. package/src/ui-components/buttons/scan-button.stories.tsx +30 -0
  896. package/src/ui-components/control/checkbox.stories.tsx +27 -0
  897. package/src/ui-components/control/switch.stories.tsx +32 -0
  898. package/src/ui-components/credential/card/credential-card.stories.tsx +51 -0
  899. package/src/ui-components/credential/card/credential-card.tsx +189 -0
  900. package/src/ui-components/credential/card/credential-details-card.stories.tsx +303 -0
  901. package/src/ui-components/credential/card/credential-details-card.tsx +242 -0
  902. package/src/ui-components/credential/card/credential-details-list-item.tsx +97 -0
  903. package/src/ui-components/credential/card/credential-header.stories.tsx +48 -0
  904. package/src/ui-components/credential/card/credential-header.tsx +199 -0
  905. package/src/ui-components/credential/card/credential-image-carousel.tsx +117 -0
  906. package/src/ui-components/credential/card/index.ts +22 -0
  907. package/src/ui-components/credential/credential-attribute-item.tsx +373 -0
  908. package/src/ui-components/credential/index.ts +14 -0
  909. package/src/ui-components/credential/selector.stories.tsx +37 -0
  910. package/src/ui-components/credential/selector.tsx +64 -0
  911. package/src/ui-components/detail/detail.stories.tsx +68 -0
  912. package/src/ui-components/detail/detail.tsx +98 -0
  913. package/src/ui-components/entity/avatar.stories.tsx +42 -0
  914. package/src/ui-components/entity/avatar.tsx +100 -0
  915. package/src/ui-components/entity/entity-cluster.stories.tsx +45 -0
  916. package/src/ui-components/entity/entity-cluster.tsx +82 -0
  917. package/src/ui-components/header/header.stories.tsx +62 -0
  918. package/src/ui-components/header/header.tsx +105 -0
  919. package/src/ui-components/header/index.ts +12 -0
  920. package/src/ui-components/header/navigation-header.stories.tsx +59 -0
  921. package/src/ui-components/header/navigation-header.tsx +147 -0
  922. package/src/ui-components/history/data-item.tsx +88 -0
  923. package/src/ui-components/history/history-details.tsx +247 -0
  924. package/src/ui-components/history/history-item.tsx +141 -0
  925. package/src/ui-components/history/history-section-header.tsx +44 -0
  926. package/src/ui-components/history/history-section-list-item.tsx +41 -0
  927. package/src/ui-components/history/index.ts +10 -0
  928. package/src/ui-components/icons/entity.tsx +31 -0
  929. package/src/ui-components/icons/history.tsx +329 -0
  930. package/src/ui-components/image/index.tsx +4 -0
  931. package/src/ui-components/index.ts +25 -0
  932. package/src/ui-components/input/radio-group.stories.tsx +34 -0
  933. package/src/ui-components/input/radio-group.tsx +116 -0
  934. package/src/ui-components/input/selection-input.stories.tsx +49 -0
  935. package/src/ui-components/input/selection-input.tsx +112 -0
  936. package/src/ui-components/input/text-input.tsx +253 -0
  937. package/src/ui-components/list/index.ts +6 -0
  938. package/src/ui-components/list/list-page-loading-indicator.tsx +8 -0
  939. package/src/ui-components/list/wallet/empty-list.tsx +75 -0
  940. package/src/ui-components/list/wallet/empty-search-result.tsx +39 -0
  941. package/src/ui-components/list/wallet/index.tsx +4 -0
  942. package/src/ui-components/loader/loader.stories.tsx +28 -0
  943. package/src/ui-components/loader/loader.tsx +174 -0
  944. package/src/ui-components/loader/loading-result.stories.tsx +70 -0
  945. package/src/ui-components/loader/loading-result.tsx +97 -0
  946. package/src/ui-components/nerd-view/index.ts +4 -0
  947. package/src/ui-components/nerd-view/nerd-mode-item.tsx +299 -0
  948. package/src/ui-components/pin/index.ts +5 -0
  949. package/src/ui-components/pin/keypad.tsx +166 -0
  950. package/src/ui-components/pin/pin-code-screen.stories.tsx +87 -0
  951. package/src/ui-components/pin/pin-code-screen.tsx +195 -0
  952. package/src/ui-components/pin/pin-lock-animation.tsx +500 -0
  953. package/src/ui-components/pin/pin-lock.tsx +82 -0
  954. package/src/ui-components/screens/backup-screen.tsx +92 -0
  955. package/src/ui-components/screens/image-preview-screen.stories.tsx +31 -0
  956. package/src/ui-components/screens/image-preview-screen.tsx +82 -0
  957. package/src/ui-components/screens/index.ts +19 -0
  958. package/src/ui-components/screens/nerd-mode-screen.tsx +214 -0
  959. package/src/ui-components/screens/qr-code-scanner-screen.stories.tsx +40 -0
  960. package/src/ui-components/screens/qr-code-scanner-screen.tsx +124 -0
  961. package/src/ui-components/screens/scroll-view-screen.tsx +91 -0
  962. package/src/ui-components/screens/section-list-screen.tsx +61 -0
  963. package/src/ui-components/searchbar/search-bar.stories.tsx +38 -0
  964. package/src/ui-components/searchbar/search-bar.tsx +94 -0
  965. package/src/ui-components/state/error-screen.stories.tsx +21 -0
  966. package/src/ui-components/state/error-screen.tsx +71 -0
  967. package/src/ui-components/text/index.ts +4 -0
  968. package/src/ui-components/text/typography.stories.tsx +77 -0
  969. package/src/ui-components/theme/color-scheme-context.tsx +49 -0
  970. package/src/ui-components/theme/color-scheme.ts +32 -0
  971. package/src/utils/array.ts +3 -0
  972. package/src/utils/backup.ts +5 -0
  973. package/src/utils/date.ts +106 -2
  974. package/src/utils/filtering.ts +5 -0
  975. package/src/utils/history.ts +71 -0
  976. package/src/utils/hooks/connectivity/connectivity.test.ts +95 -0
  977. package/src/utils/hooks/connectivity/connectivity.ts +186 -0
  978. package/src/utils/hooks/core/backup.ts +144 -0
  979. package/src/utils/hooks/core/cache.ts +43 -0
  980. package/src/utils/hooks/core/core-config.ts +32 -0
  981. package/src/utils/hooks/core/core-context.tsx +114 -0
  982. package/src/utils/hooks/core/core-init.ts +106 -0
  983. package/src/utils/hooks/core/credential-schemas.ts +110 -0
  984. package/src/utils/hooks/core/credentials.ts +166 -0
  985. package/src/utils/hooks/core/dids.ts +28 -0
  986. package/src/utils/hooks/core/error-code.ts +6 -0
  987. package/src/utils/hooks/core/history.ts +30 -0
  988. package/src/utils/hooks/core/index.ts +13 -0
  989. package/src/utils/hooks/core/proof-schemas.ts +130 -0
  990. package/src/utils/hooks/core/proofs.ts +409 -0
  991. package/src/utils/hooks/core/query.ts +19 -0
  992. package/src/utils/hooks/core/trust-entity.ts +113 -0
  993. package/src/utils/hooks/credential-card/credential-card-expanding.tsx +45 -0
  994. package/src/utils/hooks/http/client.ts +13 -0
  995. package/src/utils/hooks/index.ts +8 -5
  996. package/src/utils/hooks/navigation/before-remove.tsx +22 -0
  997. package/src/utils/hooks/navigation/close-button-timeout.tsx +29 -0
  998. package/src/utils/hooks/navigation/deep-link.ts +40 -0
  999. package/src/utils/hooks/navigation/index.ts +4 -0
  1000. package/src/utils/hooks/navigation/open-settings.ts +39 -0
  1001. package/src/utils/hooks/pin-security/pin-security.ts +99 -0
  1002. package/src/utils/hooks/revocation/credential-status.ts +45 -0
  1003. package/src/utils/index.ts +14 -14
  1004. package/src/utils/navigation.ts +4 -2
  1005. package/src/utils/parsers/credential-images.tsx +78 -0
  1006. package/src/utils/parsers/credential-sharing.tsx +366 -0
  1007. package/src/utils/parsers/credential.ts +365 -0
  1008. package/src/utils/parsers/index.ts +5 -0
  1009. package/src/utils/parsers/query.tsx +82 -0
  1010. package/src/utils/parsers/universal-links.test.ts +57 -0
  1011. package/src/utils/parsers/universal-links.ts +26 -0
  1012. package/src/utils/ref.ts +1 -1
  1013. package/src/utils/reporting.ts +85 -0
  1014. package/src/utils/string.ts +17 -0
  1015. package/src/utils/useMemoAsync.ts +1 -1
  1016. package/src/utils/uuid.ts +8 -0
  1017. package/lib/commonjs/accessibility/accessibility.js +0 -193
  1018. package/lib/commonjs/accessibility/accessibility.js.map +0 -1
  1019. package/lib/commonjs/accessibility/accessibilityHistory.js +0 -81
  1020. package/lib/commonjs/accessibility/accessibilityHistory.js.map +0 -1
  1021. package/lib/commonjs/accessibility/accessibilityHistoryWrappers.js +0 -49
  1022. package/lib/commonjs/accessibility/accessibilityHistoryWrappers.js.map +0 -1
  1023. package/lib/commonjs/accessibility/accessibilityLanguage.js +0 -63
  1024. package/lib/commonjs/accessibility/accessibilityLanguage.js.map +0 -1
  1025. package/lib/commonjs/accessibility/index.js +0 -129
  1026. package/lib/commonjs/accessibility/index.js.map +0 -1
  1027. package/lib/commonjs/accessibility/locale/index.js +0 -21
  1028. package/lib/commonjs/accessibility/locale/index.js.map +0 -1
  1029. package/lib/commonjs/accessibility/locale.test.js.map +0 -1
  1030. package/lib/commonjs/action-modal/ActionModal.js +0 -52
  1031. package/lib/commonjs/action-modal/ActionModal.js.map +0 -1
  1032. package/lib/commonjs/action-modal/index.js +0 -14
  1033. package/lib/commonjs/action-modal/index.js.map +0 -1
  1034. package/lib/commonjs/activity-indicator/activity-indicator.js +0 -34
  1035. package/lib/commonjs/activity-indicator/activity-indicator.js.map +0 -1
  1036. package/lib/commonjs/activity-indicator/index.js +0 -14
  1037. package/lib/commonjs/activity-indicator/index.js.map +0 -1
  1038. package/lib/commonjs/blur/blur-view.js +0 -76
  1039. package/lib/commonjs/blur/blur-view.js.map +0 -1
  1040. package/lib/commonjs/blur/index.js +0 -21
  1041. package/lib/commonjs/blur/index.js.map +0 -1
  1042. package/lib/commonjs/buttons/back-button.js +0 -37
  1043. package/lib/commonjs/buttons/back-button.js.map +0 -1
  1044. package/lib/commonjs/buttons/button.js +0 -153
  1045. package/lib/commonjs/buttons/button.js.map +0 -1
  1046. package/lib/commonjs/buttons/connectivity-button.js +0 -82
  1047. package/lib/commonjs/buttons/connectivity-button.js.map +0 -1
  1048. package/lib/commonjs/buttons/filter-button.js +0 -51
  1049. package/lib/commonjs/buttons/filter-button.js.map +0 -1
  1050. package/lib/commonjs/buttons/ghost-button.js +0 -62
  1051. package/lib/commonjs/buttons/ghost-button.js.map +0 -1
  1052. package/lib/commonjs/buttons/index.js +0 -104
  1053. package/lib/commonjs/buttons/index.js.map +0 -1
  1054. package/lib/commonjs/buttons/scan-button.js +0 -83
  1055. package/lib/commonjs/buttons/scan-button.js.map +0 -1
  1056. package/lib/commonjs/camera/camera-overlay.js +0 -61
  1057. package/lib/commonjs/camera/camera-overlay.js.map +0 -1
  1058. package/lib/commonjs/camera/index.js +0 -21
  1059. package/lib/commonjs/camera/index.js.map +0 -1
  1060. package/lib/commonjs/camera/qr-code-scanner.js +0 -50
  1061. package/lib/commonjs/camera/qr-code-scanner.js.map +0 -1
  1062. package/lib/commonjs/control/checkbox.js +0 -79
  1063. package/lib/commonjs/control/checkbox.js.map +0 -1
  1064. package/lib/commonjs/control/index.js.map +0 -1
  1065. package/lib/commonjs/control/switch.js +0 -65
  1066. package/lib/commonjs/control/switch.js.map +0 -1
  1067. package/lib/commonjs/credential/card/credential-card.js +0 -189
  1068. package/lib/commonjs/credential/card/credential-card.js.map +0 -1
  1069. package/lib/commonjs/credential/card/credential-details-card.js +0 -201
  1070. package/lib/commonjs/credential/card/credential-details-card.js.map +0 -1
  1071. package/lib/commonjs/credential/card/credential-details-list-item.js +0 -84
  1072. package/lib/commonjs/credential/card/credential-details-list-item.js.map +0 -1
  1073. package/lib/commonjs/credential/card/credential-header.js +0 -172
  1074. package/lib/commonjs/credential/card/credential-header.js.map +0 -1
  1075. package/lib/commonjs/credential/card/credential-image-carousel.js +0 -124
  1076. package/lib/commonjs/credential/card/credential-image-carousel.js.map +0 -1
  1077. package/lib/commonjs/credential/card/index.js +0 -85
  1078. package/lib/commonjs/credential/card/index.js.map +0 -1
  1079. package/lib/commonjs/credential/credential-attribute-item.js +0 -289
  1080. package/lib/commonjs/credential/credential-attribute-item.js.map +0 -1
  1081. package/lib/commonjs/credential/credential-carousel-images.js +0 -98
  1082. package/lib/commonjs/credential/credential-carousel-images.js.map +0 -1
  1083. package/lib/commonjs/credential/index.js +0 -90
  1084. package/lib/commonjs/credential/index.js.map +0 -1
  1085. package/lib/commonjs/credential/selector-status.js +0 -17
  1086. package/lib/commonjs/credential/selector-status.js.map +0 -1
  1087. package/lib/commonjs/credential/selector.js +0 -79
  1088. package/lib/commonjs/credential/selector.js.map +0 -1
  1089. package/lib/commonjs/detail/detail.js +0 -84
  1090. package/lib/commonjs/detail/detail.js.map +0 -1
  1091. package/lib/commonjs/detail/index.js +0 -14
  1092. package/lib/commonjs/detail/index.js.map +0 -1
  1093. package/lib/commonjs/entity/avatar.js +0 -96
  1094. package/lib/commonjs/entity/avatar.js.map +0 -1
  1095. package/lib/commonjs/entity/entity-cluster.js +0 -66
  1096. package/lib/commonjs/entity/entity-cluster.js.map +0 -1
  1097. package/lib/commonjs/entity/index.js +0 -34
  1098. package/lib/commonjs/entity/index.js.map +0 -1
  1099. package/lib/commonjs/header/focus-aware-status-bar.js +0 -20
  1100. package/lib/commonjs/header/focus-aware-status-bar.js.map +0 -1
  1101. package/lib/commonjs/header/foldable-header.js +0 -89
  1102. package/lib/commonjs/header/foldable-header.js.map +0 -1
  1103. package/lib/commonjs/header/header.js +0 -105
  1104. package/lib/commonjs/header/header.js.map +0 -1
  1105. package/lib/commonjs/header/index.js +0 -55
  1106. package/lib/commonjs/header/index.js.map +0 -1
  1107. package/lib/commonjs/header/navigation-header.js +0 -148
  1108. package/lib/commonjs/header/navigation-header.js.map +0 -1
  1109. package/lib/commonjs/history/data-item.js +0 -70
  1110. package/lib/commonjs/history/data-item.js.map +0 -1
  1111. package/lib/commonjs/history/history-list-item.js +0 -90
  1112. package/lib/commonjs/history/history-list-item.js.map +0 -1
  1113. package/lib/commonjs/history/history-section-header.js +0 -49
  1114. package/lib/commonjs/history/history-section-header.js.map +0 -1
  1115. package/lib/commonjs/history/history-section-list-item.js +0 -47
  1116. package/lib/commonjs/history/history-section-list-item.js.map +0 -1
  1117. package/lib/commonjs/history/index.js +0 -55
  1118. package/lib/commonjs/history/index.js.map +0 -1
  1119. package/lib/commonjs/icons/connectivity.js +0 -139
  1120. package/lib/commonjs/icons/connectivity.js.map +0 -1
  1121. package/lib/commonjs/icons/credential.js +0 -162
  1122. package/lib/commonjs/icons/credential.js.map +0 -1
  1123. package/lib/commonjs/icons/entity.js +0 -34
  1124. package/lib/commonjs/icons/entity.js.map +0 -1
  1125. package/lib/commonjs/icons/history.js +0 -408
  1126. package/lib/commonjs/icons/history.js.map +0 -1
  1127. package/lib/commonjs/icons/icons.js +0 -250
  1128. package/lib/commonjs/icons/icons.js.map +0 -1
  1129. package/lib/commonjs/icons/index.js.map +0 -1
  1130. package/lib/commonjs/icons/input.js +0 -44
  1131. package/lib/commonjs/icons/input.js.map +0 -1
  1132. package/lib/commonjs/icons/keypad.js +0 -94
  1133. package/lib/commonjs/icons/keypad.js.map +0 -1
  1134. package/lib/commonjs/icons/loader.js +0 -180
  1135. package/lib/commonjs/icons/loader.js.map +0 -1
  1136. package/lib/commonjs/icons/nerd-view.js +0 -123
  1137. package/lib/commonjs/icons/nerd-view.js.map +0 -1
  1138. package/lib/commonjs/icons/selector.js +0 -56
  1139. package/lib/commonjs/icons/selector.js.map +0 -1
  1140. package/lib/commonjs/icons/wallet.js +0 -121
  1141. package/lib/commonjs/icons/wallet.js.map +0 -1
  1142. package/lib/commonjs/image/image-or-component.js +0 -80
  1143. package/lib/commonjs/image/image-or-component.js.map +0 -1
  1144. package/lib/commonjs/image/index.js +0 -21
  1145. package/lib/commonjs/image/index.js.map +0 -1
  1146. package/lib/commonjs/input/index.js +0 -65
  1147. package/lib/commonjs/input/index.js.map +0 -1
  1148. package/lib/commonjs/input/radio-group.js +0 -95
  1149. package/lib/commonjs/input/radio-group.js.map +0 -1
  1150. package/lib/commonjs/input/selection-input.js +0 -102
  1151. package/lib/commonjs/input/selection-input.js.map +0 -1
  1152. package/lib/commonjs/input/text-input.js +0 -195
  1153. package/lib/commonjs/input/text-input.js.map +0 -1
  1154. package/lib/commonjs/list/index.js +0 -34
  1155. package/lib/commonjs/list/index.js.map +0 -1
  1156. package/lib/commonjs/list/list-section-header.js +0 -36
  1157. package/lib/commonjs/list/list-section-header.js.map +0 -1
  1158. package/lib/commonjs/list/list-title-header.js +0 -35
  1159. package/lib/commonjs/list/list-title-header.js.map +0 -1
  1160. package/lib/commonjs/loader/index.js +0 -40
  1161. package/lib/commonjs/loader/index.js.map +0 -1
  1162. package/lib/commonjs/loader/loader.js +0 -140
  1163. package/lib/commonjs/loader/loader.js.map +0 -1
  1164. package/lib/commonjs/loader/loading-result.js +0 -92
  1165. package/lib/commonjs/loader/loading-result.js.map +0 -1
  1166. package/lib/commonjs/nerd-view/index.js +0 -27
  1167. package/lib/commonjs/nerd-view/index.js.map +0 -1
  1168. package/lib/commonjs/nerd-view/nerd-mode-item.js +0 -235
  1169. package/lib/commonjs/nerd-view/nerd-mode-item.js.map +0 -1
  1170. package/lib/commonjs/pin/index.js +0 -32
  1171. package/lib/commonjs/pin/index.js.map +0 -1
  1172. package/lib/commonjs/pin/keypad.js +0 -201
  1173. package/lib/commonjs/pin/keypad.js.map +0 -1
  1174. package/lib/commonjs/pin/pin-code-screen.js +0 -162
  1175. package/lib/commonjs/pin/pin-code-screen.js.map +0 -1
  1176. package/lib/commonjs/pin/pins.js +0 -54
  1177. package/lib/commonjs/pin/pins.js.map +0 -1
  1178. package/lib/commonjs/screens/backup-screen.js +0 -87
  1179. package/lib/commonjs/screens/backup-screen.js.map +0 -1
  1180. package/lib/commonjs/screens/image-preview-screen.js +0 -92
  1181. package/lib/commonjs/screens/image-preview-screen.js.map +0 -1
  1182. package/lib/commonjs/screens/index.js +0 -98
  1183. package/lib/commonjs/screens/index.js.map +0 -1
  1184. package/lib/commonjs/screens/nerd-mode-screen.js +0 -142
  1185. package/lib/commonjs/screens/nerd-mode-screen.js.map +0 -1
  1186. package/lib/commonjs/screens/qr-code-scanner-screen.js +0 -120
  1187. package/lib/commonjs/screens/qr-code-scanner-screen.js.map +0 -1
  1188. package/lib/commonjs/screens/scroll-view-screen.js +0 -94
  1189. package/lib/commonjs/screens/scroll-view-screen.js.map +0 -1
  1190. package/lib/commonjs/screens/section-list-screen.js +0 -67
  1191. package/lib/commonjs/screens/section-list-screen.js.map +0 -1
  1192. package/lib/commonjs/searchbar/animated-search-bar.js +0 -88
  1193. package/lib/commonjs/searchbar/animated-search-bar.js.map +0 -1
  1194. package/lib/commonjs/searchbar/index.js +0 -34
  1195. package/lib/commonjs/searchbar/index.js.map +0 -1
  1196. package/lib/commonjs/searchbar/search-bar.js +0 -99
  1197. package/lib/commonjs/searchbar/search-bar.js.map +0 -1
  1198. package/lib/commonjs/settings/button-setting.js +0 -67
  1199. package/lib/commonjs/settings/button-setting.js.map +0 -1
  1200. package/lib/commonjs/settings/index.js +0 -73
  1201. package/lib/commonjs/settings/index.js.map +0 -1
  1202. package/lib/commonjs/settings/setting-item-separator.js +0 -40
  1203. package/lib/commonjs/settings/setting-item-separator.js.map +0 -1
  1204. package/lib/commonjs/settings/setting-item.js +0 -79
  1205. package/lib/commonjs/settings/setting-item.js.map +0 -1
  1206. package/lib/commonjs/settings/settings-button.js +0 -35
  1207. package/lib/commonjs/settings/settings-button.js.map +0 -1
  1208. package/lib/commonjs/settings/switch-setting.js +0 -35
  1209. package/lib/commonjs/settings/switch-setting.js.map +0 -1
  1210. package/lib/commonjs/state/error-screen.js +0 -71
  1211. package/lib/commonjs/state/error-screen.js.map +0 -1
  1212. package/lib/commonjs/state/index.js +0 -27
  1213. package/lib/commonjs/state/index.js.map +0 -1
  1214. package/lib/commonjs/text/base.js +0 -40
  1215. package/lib/commonjs/text/base.js.map +0 -1
  1216. package/lib/commonjs/text/font.js +0 -64
  1217. package/lib/commonjs/text/font.js.map +0 -1
  1218. package/lib/commonjs/text/index.js +0 -21
  1219. package/lib/commonjs/text/index.js.map +0 -1
  1220. package/lib/commonjs/text/typography.js +0 -119
  1221. package/lib/commonjs/text/typography.js.map +0 -1
  1222. package/lib/commonjs/theme/color-scheme-context.js +0 -52
  1223. package/lib/commonjs/theme/color-scheme-context.js.map +0 -1
  1224. package/lib/commonjs/theme/color-scheme.js.map +0 -1
  1225. package/lib/commonjs/theme/index.js.map +0 -1
  1226. package/lib/module/accessibility/accessibility.js +0 -185
  1227. package/lib/module/accessibility/accessibility.js.map +0 -1
  1228. package/lib/module/accessibility/accessibilityHistory.js +0 -71
  1229. package/lib/module/accessibility/accessibilityHistory.js.map +0 -1
  1230. package/lib/module/accessibility/accessibilityHistoryWrappers.js +0 -38
  1231. package/lib/module/accessibility/accessibilityHistoryWrappers.js.map +0 -1
  1232. package/lib/module/accessibility/accessibilityLanguage.js +0 -53
  1233. package/lib/module/accessibility/accessibilityLanguage.js.map +0 -1
  1234. package/lib/module/accessibility/index.js +0 -8
  1235. package/lib/module/accessibility/index.js.map +0 -1
  1236. package/lib/module/accessibility/locale/index.js.map +0 -1
  1237. package/lib/module/accessibility/locale.test.js.map +0 -1
  1238. package/lib/module/action-modal/ActionModal.js +0 -44
  1239. package/lib/module/action-modal/ActionModal.js.map +0 -1
  1240. package/lib/module/action-modal/index.js.map +0 -1
  1241. package/lib/module/activity-indicator/activity-indicator.js +0 -24
  1242. package/lib/module/activity-indicator/activity-indicator.js.map +0 -1
  1243. package/lib/module/activity-indicator/index.js.map +0 -1
  1244. package/lib/module/blur/blur-view.js +0 -67
  1245. package/lib/module/blur/blur-view.js.map +0 -1
  1246. package/lib/module/blur/index.js.map +0 -1
  1247. package/lib/module/buttons/back-button.js +0 -28
  1248. package/lib/module/buttons/back-button.js.map +0 -1
  1249. package/lib/module/buttons/button.js +0 -143
  1250. package/lib/module/buttons/button.js.map +0 -1
  1251. package/lib/module/buttons/connectivity-button.js +0 -73
  1252. package/lib/module/buttons/connectivity-button.js.map +0 -1
  1253. package/lib/module/buttons/filter-button.js +0 -43
  1254. package/lib/module/buttons/filter-button.js.map +0 -1
  1255. package/lib/module/buttons/ghost-button.js +0 -53
  1256. package/lib/module/buttons/ghost-button.js.map +0 -1
  1257. package/lib/module/buttons/index.js +0 -8
  1258. package/lib/module/buttons/index.js.map +0 -1
  1259. package/lib/module/buttons/scan-button.js +0 -75
  1260. package/lib/module/buttons/scan-button.js.map +0 -1
  1261. package/lib/module/camera/camera-overlay.js +0 -51
  1262. package/lib/module/camera/camera-overlay.js.map +0 -1
  1263. package/lib/module/camera/index.js.map +0 -1
  1264. package/lib/module/camera/qr-code-scanner.js +0 -40
  1265. package/lib/module/camera/qr-code-scanner.js.map +0 -1
  1266. package/lib/module/control/checkbox.js +0 -70
  1267. package/lib/module/control/checkbox.js.map +0 -1
  1268. package/lib/module/control/index.js.map +0 -1
  1269. package/lib/module/control/switch.js +0 -56
  1270. package/lib/module/control/switch.js.map +0 -1
  1271. package/lib/module/credential/card/credential-card.js +0 -177
  1272. package/lib/module/credential/card/credential-card.js.map +0 -1
  1273. package/lib/module/credential/card/credential-details-card.js +0 -191
  1274. package/lib/module/credential/card/credential-details-card.js.map +0 -1
  1275. package/lib/module/credential/card/credential-details-list-item.js +0 -74
  1276. package/lib/module/credential/card/credential-details-list-item.js.map +0 -1
  1277. package/lib/module/credential/card/credential-header.js +0 -162
  1278. package/lib/module/credential/card/credential-header.js.map +0 -1
  1279. package/lib/module/credential/card/credential-image-carousel.js +0 -113
  1280. package/lib/module/credential/card/credential-image-carousel.js.map +0 -1
  1281. package/lib/module/credential/card/index.js +0 -11
  1282. package/lib/module/credential/card/index.js.map +0 -1
  1283. package/lib/module/credential/credential-attribute-item.js +0 -279
  1284. package/lib/module/credential/credential-attribute-item.js.map +0 -1
  1285. package/lib/module/credential/credential-carousel-images.js +0 -86
  1286. package/lib/module/credential/credential-carousel-images.js.map +0 -1
  1287. package/lib/module/credential/index.js +0 -9
  1288. package/lib/module/credential/index.js.map +0 -1
  1289. package/lib/module/credential/selector-status.js +0 -10
  1290. package/lib/module/credential/selector-status.js.map +0 -1
  1291. package/lib/module/credential/selector.js +0 -70
  1292. package/lib/module/credential/selector.js.map +0 -1
  1293. package/lib/module/detail/detail.js +0 -75
  1294. package/lib/module/detail/detail.js.map +0 -1
  1295. package/lib/module/detail/index.js.map +0 -1
  1296. package/lib/module/entity/avatar.js +0 -86
  1297. package/lib/module/entity/avatar.js.map +0 -1
  1298. package/lib/module/entity/entity-cluster.js +0 -56
  1299. package/lib/module/entity/entity-cluster.js.map +0 -1
  1300. package/lib/module/entity/index.js.map +0 -1
  1301. package/lib/module/header/focus-aware-status-bar.js +0 -12
  1302. package/lib/module/header/focus-aware-status-bar.js.map +0 -1
  1303. package/lib/module/header/foldable-header.js +0 -79
  1304. package/lib/module/header/foldable-header.js.map +0 -1
  1305. package/lib/module/header/header.js +0 -97
  1306. package/lib/module/header/header.js.map +0 -1
  1307. package/lib/module/header/index.js +0 -9
  1308. package/lib/module/header/index.js.map +0 -1
  1309. package/lib/module/header/navigation-header.js +0 -138
  1310. package/lib/module/header/navigation-header.js.map +0 -1
  1311. package/lib/module/history/data-item.js +0 -60
  1312. package/lib/module/history/data-item.js.map +0 -1
  1313. package/lib/module/history/history-list-item.js +0 -80
  1314. package/lib/module/history/history-list-item.js.map +0 -1
  1315. package/lib/module/history/history-section-header.js +0 -42
  1316. package/lib/module/history/history-section-header.js.map +0 -1
  1317. package/lib/module/history/history-section-list-item.js +0 -43
  1318. package/lib/module/history/history-section-list-item.js.map +0 -1
  1319. package/lib/module/history/index.js +0 -9
  1320. package/lib/module/history/index.js.map +0 -1
  1321. package/lib/module/icons/connectivity.js +0 -125
  1322. package/lib/module/icons/connectivity.js.map +0 -1
  1323. package/lib/module/icons/credential.js +0 -147
  1324. package/lib/module/icons/credential.js.map +0 -1
  1325. package/lib/module/icons/entity.js +0 -25
  1326. package/lib/module/icons/entity.js.map +0 -1
  1327. package/lib/module/icons/history.js +0 -391
  1328. package/lib/module/icons/history.js.map +0 -1
  1329. package/lib/module/icons/icons.js +0 -231
  1330. package/lib/module/icons/icons.js.map +0 -1
  1331. package/lib/module/icons/index.js.map +0 -1
  1332. package/lib/module/icons/input.js.map +0 -1
  1333. package/lib/module/icons/keypad.js +0 -81
  1334. package/lib/module/icons/keypad.js.map +0 -1
  1335. package/lib/module/icons/loader.js +0 -168
  1336. package/lib/module/icons/loader.js.map +0 -1
  1337. package/lib/module/icons/nerd-view.js.map +0 -1
  1338. package/lib/module/icons/selector.js +0 -45
  1339. package/lib/module/icons/selector.js.map +0 -1
  1340. package/lib/module/icons/wallet.js +0 -111
  1341. package/lib/module/icons/wallet.js.map +0 -1
  1342. package/lib/module/image/image-or-component.js +0 -71
  1343. package/lib/module/image/image-or-component.js.map +0 -1
  1344. package/lib/module/image/index.js +0 -3
  1345. package/lib/module/image/index.js.map +0 -1
  1346. package/lib/module/input/index.js.map +0 -1
  1347. package/lib/module/input/radio-group.js +0 -87
  1348. package/lib/module/input/radio-group.js.map +0 -1
  1349. package/lib/module/input/selection-input.js +0 -92
  1350. package/lib/module/input/selection-input.js.map +0 -1
  1351. package/lib/module/input/text-input.js +0 -185
  1352. package/lib/module/input/text-input.js.map +0 -1
  1353. package/lib/module/list/index.js +0 -5
  1354. package/lib/module/list/index.js.map +0 -1
  1355. package/lib/module/list/list-section-header.js +0 -28
  1356. package/lib/module/list/list-section-header.js.map +0 -1
  1357. package/lib/module/list/list-title-header.js +0 -27
  1358. package/lib/module/list/list-title-header.js.map +0 -1
  1359. package/lib/module/loader/index.js.map +0 -1
  1360. package/lib/module/loader/loader.js +0 -130
  1361. package/lib/module/loader/loader.js.map +0 -1
  1362. package/lib/module/loader/loading-result.js +0 -84
  1363. package/lib/module/loader/loading-result.js.map +0 -1
  1364. package/lib/module/nerd-view/index.js +0 -3
  1365. package/lib/module/nerd-view/index.js.map +0 -1
  1366. package/lib/module/nerd-view/nerd-mode-item.js +0 -224
  1367. package/lib/module/nerd-view/nerd-mode-item.js.map +0 -1
  1368. package/lib/module/pin/index.js +0 -4
  1369. package/lib/module/pin/index.js.map +0 -1
  1370. package/lib/module/pin/keypad.js +0 -191
  1371. package/lib/module/pin/keypad.js.map +0 -1
  1372. package/lib/module/pin/pin-code-screen.js +0 -152
  1373. package/lib/module/pin/pin-code-screen.js.map +0 -1
  1374. package/lib/module/pin/pins.js +0 -46
  1375. package/lib/module/pin/pins.js.map +0 -1
  1376. package/lib/module/screens/backup-screen.js +0 -78
  1377. package/lib/module/screens/backup-screen.js.map +0 -1
  1378. package/lib/module/screens/image-preview-screen.js +0 -83
  1379. package/lib/module/screens/image-preview-screen.js.map +0 -1
  1380. package/lib/module/screens/index.js +0 -13
  1381. package/lib/module/screens/index.js.map +0 -1
  1382. package/lib/module/screens/nerd-mode-screen.js +0 -132
  1383. package/lib/module/screens/nerd-mode-screen.js.map +0 -1
  1384. package/lib/module/screens/qr-code-scanner-screen.js +0 -110
  1385. package/lib/module/screens/qr-code-scanner-screen.js.map +0 -1
  1386. package/lib/module/screens/scroll-view-screen.js +0 -86
  1387. package/lib/module/screens/scroll-view-screen.js.map +0 -1
  1388. package/lib/module/screens/section-list-screen.js +0 -59
  1389. package/lib/module/screens/section-list-screen.js.map +0 -1
  1390. package/lib/module/searchbar/animated-search-bar.js +0 -78
  1391. package/lib/module/searchbar/animated-search-bar.js.map +0 -1
  1392. package/lib/module/searchbar/index.js.map +0 -1
  1393. package/lib/module/searchbar/search-bar.js +0 -89
  1394. package/lib/module/searchbar/search-bar.js.map +0 -1
  1395. package/lib/module/settings/button-setting.js +0 -57
  1396. package/lib/module/settings/button-setting.js.map +0 -1
  1397. package/lib/module/settings/index.js.map +0 -1
  1398. package/lib/module/settings/setting-item-separator.js +0 -32
  1399. package/lib/module/settings/setting-item-separator.js.map +0 -1
  1400. package/lib/module/settings/setting-item.js +0 -69
  1401. package/lib/module/settings/setting-item.js.map +0 -1
  1402. package/lib/module/settings/settings-button.js +0 -27
  1403. package/lib/module/settings/settings-button.js.map +0 -1
  1404. package/lib/module/settings/switch-setting.js +0 -27
  1405. package/lib/module/settings/switch-setting.js.map +0 -1
  1406. package/lib/module/state/error-screen.js +0 -63
  1407. package/lib/module/state/error-screen.js.map +0 -1
  1408. package/lib/module/state/index.js.map +0 -1
  1409. package/lib/module/text/base.js +0 -31
  1410. package/lib/module/text/base.js.map +0 -1
  1411. package/lib/module/text/font.js +0 -56
  1412. package/lib/module/text/font.js.map +0 -1
  1413. package/lib/module/text/index.js +0 -3
  1414. package/lib/module/text/index.js.map +0 -1
  1415. package/lib/module/text/typography.js +0 -111
  1416. package/lib/module/text/typography.js.map +0 -1
  1417. package/lib/module/theme/color-scheme-context.js +0 -44
  1418. package/lib/module/theme/color-scheme-context.js.map +0 -1
  1419. package/lib/module/theme/color-scheme.js.map +0 -1
  1420. package/lib/module/theme/index.js.map +0 -1
  1421. package/lib/typescript/accessibility/accessibility.d.ts +0 -55
  1422. package/lib/typescript/accessibility/accessibilityHistory.d.ts +0 -13
  1423. package/lib/typescript/accessibility/accessibilityHistoryWrappers.d.ts +0 -18
  1424. package/lib/typescript/accessibility/index.d.ts +0 -6
  1425. package/lib/typescript/buttons/back-button.d.ts +0 -9
  1426. package/lib/typescript/buttons/button.d.ts +0 -22
  1427. package/lib/typescript/buttons/index.d.ts +0 -7
  1428. package/lib/typescript/buttons/scan-button.d.ts +0 -5
  1429. package/lib/typescript/credential/card/credential-card.d.ts +0 -22
  1430. package/lib/typescript/credential/card/credential-header.d.ts +0 -20
  1431. package/lib/typescript/credential/card/index.d.ts +0 -10
  1432. package/lib/typescript/credential/credential-attribute-item.d.ts +0 -48
  1433. package/lib/typescript/credential/index.d.ts +0 -8
  1434. package/lib/typescript/entity/avatar.d.ts +0 -10
  1435. package/lib/typescript/entity/entity-cluster.d.ts +0 -12
  1436. package/lib/typescript/header/index.d.ts +0 -8
  1437. package/lib/typescript/history/data-item.d.ts +0 -12
  1438. package/lib/typescript/history/history-list-item.d.ts +0 -14
  1439. package/lib/typescript/history/history-section-header.d.ts +0 -7
  1440. package/lib/typescript/history/history-section-list-item.d.ts +0 -7
  1441. package/lib/typescript/history/index.d.ts +0 -8
  1442. package/lib/typescript/icons/history.d.ts +0 -42
  1443. package/lib/typescript/image/index.d.ts +0 -2
  1444. package/lib/typescript/input/selection-input.d.ts +0 -32
  1445. package/lib/typescript/list/index.d.ts +0 -4
  1446. package/lib/typescript/nerd-view/index.d.ts +0 -2
  1447. package/lib/typescript/pin/index.d.ts +0 -3
  1448. package/lib/typescript/pin/keypad.d.ts +0 -16
  1449. package/lib/typescript/screens/index.d.ts +0 -12
  1450. package/lib/typescript/screens/nerd-mode-screen.d.ts +0 -22
  1451. package/lib/typescript/text/index.d.ts +0 -2
  1452. package/lib/typescript/text/typography.d.ts +0 -112
  1453. package/lib/typescript/theme/color-scheme.d.ts +0 -31
  1454. package/src/accessibility/accessibility.ts +0 -215
  1455. package/src/accessibility/accessibilityHistory.tsx +0 -77
  1456. package/src/accessibility/accessibilityHistoryWrappers.tsx +0 -80
  1457. package/src/accessibility/index.ts +0 -35
  1458. package/src/action-modal/ActionModal.stories.tsx +0 -35
  1459. package/src/activity-indicator/activity-indicator.stories.tsx +0 -21
  1460. package/src/blur/blur-view.tsx +0 -82
  1461. package/src/buttons/back-button.stories.tsx +0 -31
  1462. package/src/buttons/back-button.tsx +0 -31
  1463. package/src/buttons/button.stories.tsx +0 -29
  1464. package/src/buttons/button.tsx +0 -169
  1465. package/src/buttons/connectivity-button.stories.tsx +0 -34
  1466. package/src/buttons/connectivity-button.tsx +0 -95
  1467. package/src/buttons/ghost-button.stories.tsx +0 -28
  1468. package/src/buttons/index.ts +0 -24
  1469. package/src/buttons/scan-button.stories.tsx +0 -26
  1470. package/src/control/checkbox.stories.tsx +0 -27
  1471. package/src/control/switch.stories.tsx +0 -29
  1472. package/src/credential/card/credential-card.stories.tsx +0 -52
  1473. package/src/credential/card/credential-card.tsx +0 -195
  1474. package/src/credential/card/credential-details-card.stories.tsx +0 -268
  1475. package/src/credential/card/credential-details-card.tsx +0 -242
  1476. package/src/credential/card/credential-details-list-item.tsx +0 -87
  1477. package/src/credential/card/credential-header.stories.tsx +0 -50
  1478. package/src/credential/card/credential-header.tsx +0 -195
  1479. package/src/credential/card/credential-image-carousel.tsx +0 -113
  1480. package/src/credential/card/index.ts +0 -11
  1481. package/src/credential/credential-attribute-item.tsx +0 -372
  1482. package/src/credential/index.ts +0 -13
  1483. package/src/credential/selector.stories.tsx +0 -37
  1484. package/src/credential/selector.tsx +0 -64
  1485. package/src/detail/detail.stories.tsx +0 -65
  1486. package/src/detail/detail.tsx +0 -98
  1487. package/src/entity/avatar.stories.tsx +0 -39
  1488. package/src/entity/avatar.tsx +0 -87
  1489. package/src/entity/entity-cluster.stories.tsx +0 -42
  1490. package/src/entity/entity-cluster.tsx +0 -72
  1491. package/src/header/header.stories.tsx +0 -59
  1492. package/src/header/header.tsx +0 -105
  1493. package/src/header/index.ts +0 -9
  1494. package/src/header/navigation-header.stories.tsx +0 -56
  1495. package/src/header/navigation-header.tsx +0 -147
  1496. package/src/history/data-item.tsx +0 -79
  1497. package/src/history/history-list-item.tsx +0 -102
  1498. package/src/history/history-section-header.tsx +0 -44
  1499. package/src/history/history-section-list-item.tsx +0 -41
  1500. package/src/history/index.ts +0 -9
  1501. package/src/icons/entity.tsx +0 -21
  1502. package/src/icons/history.tsx +0 -378
  1503. package/src/image/index.tsx +0 -3
  1504. package/src/input/radio-group.tsx +0 -110
  1505. package/src/input/selection-input.stories.tsx +0 -46
  1506. package/src/input/selection-input.tsx +0 -112
  1507. package/src/input/text-input.tsx +0 -253
  1508. package/src/list/index.ts +0 -5
  1509. package/src/loader/loader.stories.tsx +0 -31
  1510. package/src/loader/loader.tsx +0 -169
  1511. package/src/loader/loading-result.stories.tsx +0 -67
  1512. package/src/loader/loading-result.tsx +0 -93
  1513. package/src/nerd-view/index.ts +0 -3
  1514. package/src/nerd-view/nerd-mode-item.tsx +0 -296
  1515. package/src/pin/index.ts +0 -4
  1516. package/src/pin/keypad.tsx +0 -166
  1517. package/src/pin/pin-code-screen.stories.tsx +0 -80
  1518. package/src/pin/pin-code-screen.tsx +0 -195
  1519. package/src/screens/backup-screen.tsx +0 -92
  1520. package/src/screens/image-preview-screen.stories.tsx +0 -28
  1521. package/src/screens/image-preview-screen.tsx +0 -82
  1522. package/src/screens/index.ts +0 -13
  1523. package/src/screens/nerd-mode-screen.tsx +0 -150
  1524. package/src/screens/qr-code-scanner-screen.stories.tsx +0 -37
  1525. package/src/screens/qr-code-scanner-screen.tsx +0 -124
  1526. package/src/screens/scroll-view-screen.tsx +0 -91
  1527. package/src/screens/section-list-screen.tsx +0 -61
  1528. package/src/searchbar/search-bar.stories.tsx +0 -31
  1529. package/src/searchbar/search-bar.tsx +0 -94
  1530. package/src/state/error-screen.stories.tsx +0 -22
  1531. package/src/state/error-screen.tsx +0 -71
  1532. package/src/text/index.ts +0 -3
  1533. package/src/text/typography.stories.tsx +0 -70
  1534. package/src/theme/color-scheme-context.tsx +0 -48
  1535. package/src/theme/color-scheme.ts +0 -31
  1536. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/de.json +0 -0
  1537. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/en.json +0 -0
  1538. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/fr.json +0 -0
  1539. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/it.json +0 -0
  1540. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale.test.js +0 -0
  1541. /package/lib/commonjs/{control → ui-components/control}/index.js +0 -0
  1542. /package/lib/commonjs/{icons → ui-components/icons}/index.js +0 -0
  1543. /package/lib/commonjs/{theme → ui-components/theme}/color-scheme.js +0 -0
  1544. /package/lib/commonjs/{theme → ui-components/theme}/index.js +0 -0
  1545. /package/lib/module/{accessibility → ui-components/accessibility}/locale/de.json +0 -0
  1546. /package/lib/module/{accessibility → ui-components/accessibility}/locale/en.json +0 -0
  1547. /package/lib/module/{accessibility → ui-components/accessibility}/locale/fr.json +0 -0
  1548. /package/lib/module/{accessibility → ui-components/accessibility}/locale/index.js +0 -0
  1549. /package/lib/module/{accessibility → ui-components/accessibility}/locale/it.json +0 -0
  1550. /package/lib/module/{accessibility → ui-components/accessibility}/locale.test.js +0 -0
  1551. /package/lib/module/{action-modal → ui-components/action-modal}/index.js +0 -0
  1552. /package/lib/module/{activity-indicator → ui-components/activity-indicator}/index.js +0 -0
  1553. /package/lib/module/{blur → ui-components/blur}/index.js +0 -0
  1554. /package/lib/module/{camera → ui-components/camera}/index.js +0 -0
  1555. /package/lib/module/{control → ui-components/control}/index.js +0 -0
  1556. /package/lib/module/{detail → ui-components/detail}/index.js +0 -0
  1557. /package/lib/module/{entity → ui-components/entity}/index.js +0 -0
  1558. /package/lib/module/{icons → ui-components/icons}/index.js +0 -0
  1559. /package/lib/module/{icons → ui-components/icons}/input.js +0 -0
  1560. /package/lib/module/{icons → ui-components/icons}/nerd-view.js +0 -0
  1561. /package/lib/module/{input → ui-components/input}/index.js +0 -0
  1562. /package/lib/module/{loader → ui-components/loader}/index.js +0 -0
  1563. /package/lib/module/{searchbar → ui-components/searchbar}/index.js +0 -0
  1564. /package/lib/module/{settings → ui-components/settings}/index.js +0 -0
  1565. /package/lib/module/{state → ui-components/state}/index.js +0 -0
  1566. /package/lib/module/{theme → ui-components/theme}/color-scheme.js +0 -0
  1567. /package/lib/module/{theme → ui-components/theme}/index.js +0 -0
  1568. /package/lib/typescript/{accessibility → ui-components/accessibility}/accessibilityLanguage.d.ts +0 -0
  1569. /package/lib/typescript/{accessibility → ui-components/accessibility}/locale/index.d.ts +0 -0
  1570. /package/lib/typescript/{accessibility → ui-components/accessibility}/locale.test.d.ts +0 -0
  1571. /package/lib/typescript/{action-modal → ui-components/action-modal}/ActionModal.d.ts +0 -0
  1572. /package/lib/typescript/{action-modal → ui-components/action-modal}/index.d.ts +0 -0
  1573. /package/lib/typescript/{activity-indicator → ui-components/activity-indicator}/activity-indicator.d.ts +0 -0
  1574. /package/lib/typescript/{activity-indicator → ui-components/activity-indicator}/index.d.ts +0 -0
  1575. /package/lib/typescript/{blur → ui-components/blur}/blur-view.d.ts +0 -0
  1576. /package/lib/typescript/{blur → ui-components/blur}/index.d.ts +0 -0
  1577. /package/lib/typescript/{buttons → ui-components/buttons}/connectivity-button.d.ts +0 -0
  1578. /package/lib/typescript/{buttons → ui-components/buttons}/filter-button.d.ts +0 -0
  1579. /package/lib/typescript/{buttons → ui-components/buttons}/ghost-button.d.ts +0 -0
  1580. /package/lib/typescript/{camera → ui-components/camera}/camera-overlay.d.ts +0 -0
  1581. /package/lib/typescript/{camera → ui-components/camera}/index.d.ts +0 -0
  1582. /package/lib/typescript/{camera → ui-components/camera}/qr-code-scanner.d.ts +0 -0
  1583. /package/lib/typescript/{control → ui-components/control}/checkbox.d.ts +0 -0
  1584. /package/lib/typescript/{control → ui-components/control}/index.d.ts +0 -0
  1585. /package/lib/typescript/{control → ui-components/control}/switch.d.ts +0 -0
  1586. /package/lib/typescript/{credential → ui-components/credential}/card/credential-details-card.d.ts +0 -0
  1587. /package/lib/typescript/{credential → ui-components/credential}/card/credential-details-list-item.d.ts +0 -0
  1588. /package/lib/typescript/{credential → ui-components/credential}/card/credential-image-carousel.d.ts +0 -0
  1589. /package/lib/typescript/{credential → ui-components/credential}/credential-carousel-images.d.ts +0 -0
  1590. /package/lib/typescript/{credential → ui-components/credential}/selector-status.d.ts +0 -0
  1591. /package/lib/typescript/{credential → ui-components/credential}/selector.d.ts +0 -0
  1592. /package/lib/typescript/{detail → ui-components/detail}/detail.d.ts +0 -0
  1593. /package/lib/typescript/{detail → ui-components/detail}/index.d.ts +0 -0
  1594. /package/lib/typescript/{entity → ui-components/entity}/index.d.ts +0 -0
  1595. /package/lib/typescript/{header → ui-components/header}/focus-aware-status-bar.d.ts +0 -0
  1596. /package/lib/typescript/{header → ui-components/header}/foldable-header.d.ts +0 -0
  1597. /package/lib/typescript/{header → ui-components/header}/header.d.ts +0 -0
  1598. /package/lib/typescript/{header → ui-components/header}/navigation-header.d.ts +0 -0
  1599. /package/lib/typescript/{icons → ui-components/icons}/connectivity.d.ts +0 -0
  1600. /package/lib/typescript/{icons → ui-components/icons}/credential.d.ts +0 -0
  1601. /package/lib/typescript/{icons → ui-components/icons}/entity.d.ts +0 -0
  1602. /package/lib/typescript/{icons → ui-components/icons}/icons.d.ts +0 -0
  1603. /package/lib/typescript/{icons → ui-components/icons}/index.d.ts +0 -0
  1604. /package/lib/typescript/{icons → ui-components/icons}/input.d.ts +0 -0
  1605. /package/lib/typescript/{icons → ui-components/icons}/keypad.d.ts +0 -0
  1606. /package/lib/typescript/{icons → ui-components/icons}/loader.d.ts +0 -0
  1607. /package/lib/typescript/{icons → ui-components/icons}/nerd-view.d.ts +0 -0
  1608. /package/lib/typescript/{icons → ui-components/icons}/selector.d.ts +0 -0
  1609. /package/lib/typescript/{icons → ui-components/icons}/wallet.d.ts +0 -0
  1610. /package/lib/typescript/{image → ui-components/image}/image-or-component.d.ts +0 -0
  1611. /package/lib/typescript/{input → ui-components/input}/index.d.ts +0 -0
  1612. /package/lib/typescript/{input → ui-components/input}/radio-group.d.ts +0 -0
  1613. /package/lib/typescript/{input → ui-components/input}/text-input.d.ts +0 -0
  1614. /package/lib/typescript/{list → ui-components/list}/list-section-header.d.ts +0 -0
  1615. /package/lib/typescript/{list → ui-components/list}/list-title-header.d.ts +0 -0
  1616. /package/lib/typescript/{loader → ui-components/loader}/index.d.ts +0 -0
  1617. /package/lib/typescript/{loader → ui-components/loader}/loader.d.ts +0 -0
  1618. /package/lib/typescript/{loader → ui-components/loader}/loading-result.d.ts +0 -0
  1619. /package/lib/typescript/{nerd-view → ui-components/nerd-view}/nerd-mode-item.d.ts +0 -0
  1620. /package/lib/typescript/{pin → ui-components/pin}/pin-code-screen.d.ts +0 -0
  1621. /package/lib/typescript/{pin → ui-components/pin}/pins.d.ts +0 -0
  1622. /package/lib/typescript/{screens → ui-components/screens}/backup-screen.d.ts +0 -0
  1623. /package/lib/typescript/{screens → ui-components/screens}/image-preview-screen.d.ts +0 -0
  1624. /package/lib/typescript/{screens → ui-components/screens}/qr-code-scanner-screen.d.ts +0 -0
  1625. /package/lib/typescript/{screens → ui-components/screens}/scroll-view-screen.d.ts +0 -0
  1626. /package/lib/typescript/{screens → ui-components/screens}/section-list-screen.d.ts +0 -0
  1627. /package/lib/typescript/{searchbar → ui-components/searchbar}/animated-search-bar.d.ts +0 -0
  1628. /package/lib/typescript/{searchbar → ui-components/searchbar}/index.d.ts +0 -0
  1629. /package/lib/typescript/{searchbar → ui-components/searchbar}/search-bar.d.ts +0 -0
  1630. /package/lib/typescript/{settings → ui-components/settings}/button-setting.d.ts +0 -0
  1631. /package/lib/typescript/{settings → ui-components/settings}/index.d.ts +0 -0
  1632. /package/lib/typescript/{settings → ui-components/settings}/setting-item-separator.d.ts +0 -0
  1633. /package/lib/typescript/{settings → ui-components/settings}/setting-item.d.ts +0 -0
  1634. /package/lib/typescript/{settings → ui-components/settings}/settings-button.d.ts +0 -0
  1635. /package/lib/typescript/{settings → ui-components/settings}/switch-setting.d.ts +0 -0
  1636. /package/lib/typescript/{state → ui-components/state}/error-screen.d.ts +0 -0
  1637. /package/lib/typescript/{state → ui-components/state}/index.d.ts +0 -0
  1638. /package/lib/typescript/{text → ui-components/text}/base.d.ts +0 -0
  1639. /package/lib/typescript/{text → ui-components/text}/font.d.ts +0 -0
  1640. /package/lib/typescript/{theme → ui-components/theme}/color-scheme-context.d.ts +0 -0
  1641. /package/lib/typescript/{theme → ui-components/theme}/index.d.ts +0 -0
  1642. /package/src/{accessibility → ui-components/accessibility}/accessibilityLanguage.tsx +0 -0
  1643. /package/src/{accessibility → ui-components/accessibility}/locale/de.json +0 -0
  1644. /package/src/{accessibility → ui-components/accessibility}/locale/en.json +0 -0
  1645. /package/src/{accessibility → ui-components/accessibility}/locale/fr.json +0 -0
  1646. /package/src/{accessibility → ui-components/accessibility}/locale/index.ts +0 -0
  1647. /package/src/{accessibility → ui-components/accessibility}/locale/it.json +0 -0
  1648. /package/src/{accessibility → ui-components/accessibility}/locale.test.ts +0 -0
  1649. /package/src/{action-modal → ui-components/action-modal}/ActionModal.tsx +0 -0
  1650. /package/src/{action-modal → ui-components/action-modal}/index.ts +0 -0
  1651. /package/src/{activity-indicator → ui-components/activity-indicator}/activity-indicator.tsx +0 -0
  1652. /package/src/{activity-indicator → ui-components/activity-indicator}/index.ts +0 -0
  1653. /package/src/{blur → ui-components/blur}/index.ts +0 -0
  1654. /package/src/{buttons → ui-components/buttons}/filter-button.tsx +0 -0
  1655. /package/src/{buttons → ui-components/buttons}/ghost-button.tsx +0 -0
  1656. /package/src/{buttons → ui-components/buttons}/scan-button.tsx +0 -0
  1657. /package/src/{camera → ui-components/camera}/camera-overlay.tsx +0 -0
  1658. /package/src/{camera → ui-components/camera}/index.tsx +0 -0
  1659. /package/src/{camera → ui-components/camera}/qr-code-scanner.tsx +0 -0
  1660. /package/src/{control → ui-components/control}/checkbox.tsx +0 -0
  1661. /package/src/{control → ui-components/control}/index.ts +0 -0
  1662. /package/src/{control → ui-components/control}/switch.tsx +0 -0
  1663. /package/src/{credential → ui-components/credential}/credential-carousel-images.tsx +0 -0
  1664. /package/src/{credential → ui-components/credential}/selector-status.ts +0 -0
  1665. /package/src/{detail → ui-components/detail}/index.tsx +0 -0
  1666. /package/src/{entity → ui-components/entity}/index.ts +0 -0
  1667. /package/src/{header → ui-components/header}/focus-aware-status-bar.tsx +0 -0
  1668. /package/src/{header → ui-components/header}/foldable-header.tsx +0 -0
  1669. /package/src/{icons → ui-components/icons}/connectivity.tsx +0 -0
  1670. /package/src/{icons → ui-components/icons}/credential.tsx +0 -0
  1671. /package/src/{icons → ui-components/icons}/icons.tsx +0 -0
  1672. /package/src/{icons → ui-components/icons}/index.ts +0 -0
  1673. /package/src/{icons → ui-components/icons}/input.tsx +0 -0
  1674. /package/src/{icons → ui-components/icons}/keypad.tsx +0 -0
  1675. /package/src/{icons → ui-components/icons}/loader.tsx +0 -0
  1676. /package/src/{icons → ui-components/icons}/nerd-view.tsx +0 -0
  1677. /package/src/{icons → ui-components/icons}/selector.tsx +0 -0
  1678. /package/src/{icons → ui-components/icons}/wallet.tsx +0 -0
  1679. /package/src/{image → ui-components/image}/image-or-component.tsx +0 -0
  1680. /package/src/{input → ui-components/input}/index.ts +0 -0
  1681. /package/src/{list → ui-components/list}/list-section-header.tsx +0 -0
  1682. /package/src/{list → ui-components/list}/list-title-header.tsx +0 -0
  1683. /package/src/{loader → ui-components/loader}/index.ts +0 -0
  1684. /package/src/{pin → ui-components/pin}/pins.tsx +0 -0
  1685. /package/src/{searchbar → ui-components/searchbar}/animated-search-bar.tsx +0 -0
  1686. /package/src/{searchbar → ui-components/searchbar}/index.ts +0 -0
  1687. /package/src/{settings → ui-components/settings}/button-setting.tsx +0 -0
  1688. /package/src/{settings → ui-components/settings}/index.ts +0 -0
  1689. /package/src/{settings → ui-components/settings}/setting-item-separator.tsx +0 -0
  1690. /package/src/{settings → ui-components/settings}/setting-item.tsx +0 -0
  1691. /package/src/{settings → ui-components/settings}/settings-button.tsx +0 -0
  1692. /package/src/{settings → ui-components/settings}/switch-setting.tsx +0 -0
  1693. /package/src/{state → ui-components/state}/index.ts +0 -0
  1694. /package/src/{text → ui-components/text}/base.tsx +0 -0
  1695. /package/src/{text → ui-components/text}/font.ts +0 -0
  1696. /package/src/{text → ui-components/text}/typography.tsx +0 -0
  1697. /package/src/{theme → ui-components/theme}/index.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_credential","_icons","_testID","_credential2","e","__esModule","default","validityCheckedCardFromCredential","credential","invalidLVVC","expanded","multipleCredentialsAvailable","config","notice","testID","labels","credentialHeaderDetail","credentialDetailErrorColor","credentialDetailPrimary","revoked","credentialDetailTestID","concatTestID","multipleCredentials","statusIcon","CredentialWarningIcon","card","getCredentialCardPropsFromCredential","claims","header","exports","missingCredentialCardFromRequest","request","_request$name","cardImage","undefined","color","missingCredential","credentialName","name","id","getAttributeSelectorStatus","field","validityState","claim","selected","ValidityState","Valid","SelectorStatus","Rejected","required","Required","Disabled","SelectedCheckmark","Empty","spreadClaims","parentClaimPath","reduce","acc","result","Array","isArray","value","claimPath","key","push","getDisplayedAttributes","selectiveDisclosureSupported","selectedFields","map","status","fields","includes","find","keyMap","shareCredentialCardAttributeFromClaim","_field$name$split$pop","_field$name","_field$name2","detailsCardAttributeFromClaim","split","pop","path","missingAttribute","valueErrorColor","setStatusForNestedObjectOrArrayFields","attribute","disabled","accessory","createElement","Selector","isObject","attributes","length","values","rightAccessory","_attribute$attributes","nested","nestedAttribute","shareCredentialCardFromCredential","_credential$issuerDid","_credential$issuerDid2","supportsSelectiveDisclosure","issuerDid","did","text","selectiveDisclosureNotice","noticeIcon","CredentialNoticeWarningIcon","cardTestId","getValidityState","displayedAttributes","index","nestAttributes","selectCredentialCardAttributeFromClaim","RequiredAttributeIcon","selectCredentialCardFromCredential","_credential$issuerDid3","SelectedRadio","cardProps"],"sources":["credential-sharing.tsx"],"sourcesContent":["import {\n Claim,\n Config,\n CredentialDetail,\n PresentationDefinitionField,\n PresentationDefinitionRequestedCredential,\n} from '@procivis/react-native-one-core';\nimport React from 'react';\n\nimport {\n CredentialAttribute,\n CredentialCardProps,\n CredentialDetailsCardProps,\n CredentialHeaderProps,\n Selector,\n SelectorStatus,\n} from '../../ui-components/credential';\nimport { CredentialCardNotice } from '../../ui-components/credential/card/credential-card';\nimport { CredentialNoticeWarningIcon, CredentialWarningIcon, RequiredAttributeIcon } from '../../ui-components/icons';\nimport { concatTestID } from '../testID';\nimport {\n CardLabels,\n detailsCardAttributeFromClaim,\n getCredentialCardPropsFromCredential,\n getValidityState,\n nestAttributes,\n supportsSelectiveDisclosure,\n ValidityState,\n} from './credential';\n\nexport const validityCheckedCardFromCredential = (\n credential: CredentialDetail,\n invalidLVVC: boolean,\n expanded: boolean,\n multipleCredentialsAvailable: boolean,\n config: Config,\n notice: CredentialCardNotice | undefined,\n testID: string,\n labels: ShareCredentialCardLabels,\n): Omit<CredentialCardProps, 'onHeaderPress' | 'style' | 'testID'> => {\n let credentialHeaderDetail:\n | Pick<\n CredentialHeaderProps,\n | 'credentialDetailPrimary'\n | 'credentialDetailSecondary'\n | 'credentialDetailErrorColor'\n | 'credentialDetailTestID'\n | 'statusIcon'\n >\n | undefined;\n if (invalidLVVC) {\n credentialHeaderDetail = {\n credentialDetailErrorColor: true,\n credentialDetailPrimary: labels.revoked,\n credentialDetailTestID: concatTestID(testID, 'header.invalid'),\n };\n } else if (!expanded && multipleCredentialsAvailable) {\n credentialHeaderDetail = {\n credentialDetailPrimary: labels.multipleCredentials,\n credentialDetailTestID: concatTestID(testID, 'header.multiple'),\n statusIcon: CredentialWarningIcon,\n };\n }\n\n const card = getCredentialCardPropsFromCredential(credential, credential.claims, config, notice, testID, labels);\n return {\n ...card,\n header: {\n ...card.header,\n ...credentialHeaderDetail,\n },\n };\n};\n\nexport const missingCredentialCardFromRequest = (\n request: PresentationDefinitionRequestedCredential,\n notice: CredentialCardNotice | undefined,\n testID: string,\n labels: ShareCredentialCardLabels,\n): Omit<CredentialCardProps, 'onHeaderPress' | 'style'> => {\n return {\n cardImage: undefined,\n color: undefined,\n testID,\n header: {\n credentialDetailErrorColor: true,\n credentialDetailPrimary: labels.missingCredential,\n credentialDetailTestID: concatTestID(testID, 'header.missing'),\n credentialName: request.name ?? request.id,\n statusIcon: CredentialWarningIcon,\n },\n ...notice,\n };\n};\n\ninterface DisplayedAttribute {\n claim?: Claim;\n field?: PresentationDefinitionField;\n id: string;\n selected?: boolean;\n status: SelectorStatus;\n}\n\nconst getAttributeSelectorStatus = (\n field: PresentationDefinitionField,\n validityState: ValidityState,\n credential?: CredentialDetail,\n claim?: Claim,\n selected?: boolean,\n): SelectorStatus => {\n if (!credential || validityState !== ValidityState.Valid) {\n return SelectorStatus.Rejected;\n }\n if (field.required) {\n if (claim) {\n return SelectorStatus.Required;\n } else {\n return SelectorStatus.Rejected;\n }\n }\n if (!claim) {\n return SelectorStatus.Disabled;\n }\n return selected ? SelectorStatus.SelectedCheckmark : SelectorStatus.Empty;\n};\n\n// Returns a spread list of all claims with their full JSON path as key, including all intermediate objects\nconst spreadClaims = (claims: Claim[], parentClaimPath = ''): Claim[] => {\n return claims.reduce((acc, claim) => {\n const result = [claim];\n if (Array.isArray(claim.value)) {\n const claimPath = parentClaimPath ? `${parentClaimPath}/${claim.key}` : claim.key;\n result.push(...spreadClaims(claim.value, claimPath));\n }\n return [...acc, ...result];\n }, [] as Claim[]);\n};\n\nconst getDisplayedAttributes = (\n request: PresentationDefinitionRequestedCredential,\n validityState: ValidityState,\n credential?: CredentialDetail,\n selectiveDisclosureSupported?: boolean,\n selectedFields?: string[],\n): DisplayedAttribute[] => {\n if (credential && selectiveDisclosureSupported === false) {\n return credential.claims.map((claim) => ({\n claim,\n id: claim.id,\n status: SelectorStatus.Required,\n }));\n }\n\n return request.fields.map((field) => {\n const selected = !field.required && selectedFields?.includes(field.id);\n const claim =\n credential &&\n spreadClaims(credential.claims).find(({ key }) => {\n return key === field.keyMap[credential.id];\n });\n const status = getAttributeSelectorStatus(field, validityState, credential, claim, selected);\n return { claim, field, id: field.id, selected, status };\n });\n};\n\nexport const shareCredentialCardAttributeFromClaim = (\n id: string,\n config: Config,\n testID: string,\n labels: ShareCredentialCardLabels,\n claim?: Claim,\n field?: PresentationDefinitionField,\n): CredentialAttribute => {\n if (claim) {\n return { ...detailsCardAttributeFromClaim(claim, config, testID), id };\n }\n return {\n id,\n name: field?.name?.split('/').pop() ?? id,\n path: field?.name ?? id,\n value: labels.missingAttribute,\n valueErrorColor: true,\n };\n};\n\n// Will propagate the attribute status (right accessory + selected?) for all nested attributes\n// Note: This function MUTATES the input attribute\nconst setStatusForNestedObjectOrArrayFields = (\n attribute: CredentialAttribute,\n status?: SelectorStatus,\n disabled?: boolean,\n) => {\n const accessory = status && <Selector status={status} />;\n const isObject = attribute.attributes && attribute.attributes.length > 0;\n const isArray = attribute.values && attribute.values.length > 0;\n\n // If the attribute is not an object or array, we update the attribute and return\n if (!isObject && !isArray) {\n attribute.rightAccessory = accessory;\n attribute.disabled = disabled;\n return attribute;\n }\n\n // The object can be optional (tappable radio-checkmark), or required (checkmark)\n if (status === SelectorStatus.SelectedCheckmark || status === SelectorStatus.Empty) {\n // If it's a selectable object, the accessory is rendered next to the object title,\n // The nested attributes have no accessory, and can not be selected\n attribute.rightAccessory = accessory;\n setStatusForNestedObjectOrArrayFields(attribute, undefined, true);\n } else {\n const nested = attribute.attributes ?? attribute.values;\n // If the object is required / rejected, the accessory is rendered next to each nested attribute (except other object titles)\n // all fields are disabled\n for (const nestedAttribute of nested) {\n setStatusForNestedObjectOrArrayFields(nestedAttribute, status, true);\n }\n }\n};\n\nexport type ShareCredentialCardLabels = CardLabels & {\n selectiveDisclosureNotice: string;\n missingAttribute: string;\n missingCredential: string;\n multipleCredentials: string;\n};\n\nexport const shareCredentialCardFromCredential = (\n credential: CredentialDetail | undefined,\n invalidLVVC: boolean,\n expanded: boolean,\n multipleCredentialsAvailable: boolean,\n request: PresentationDefinitionRequestedCredential,\n selectedFields: string[] | undefined,\n config: Config,\n testID: string,\n labels: ShareCredentialCardLabels,\n): Omit<CredentialDetailsCardProps, 'expanded'> => {\n const selectiveDisclosureSupported = supportsSelectiveDisclosure(\n credential ? { ...credential, issuerDid: credential.issuerDid?.did } : undefined,\n config,\n );\n const notice: CredentialCardNotice | undefined =\n selectiveDisclosureSupported === false\n ? {\n text: labels.selectiveDisclosureNotice,\n noticeIcon: CredentialNoticeWarningIcon,\n }\n : undefined;\n const cardTestId = concatTestID(testID, 'card');\n const card = credential\n ? validityCheckedCardFromCredential(\n credential,\n invalidLVVC,\n expanded,\n multipleCredentialsAvailable,\n config,\n notice,\n cardTestId,\n labels,\n )\n : missingCredentialCardFromRequest(request, notice, cardTestId, labels);\n const validityState = getValidityState(\n credential ? { ...credential, issuerDid: credential.issuerDid?.did } : undefined,\n );\n const displayedAttributes = getDisplayedAttributes(\n request,\n validityState,\n credential,\n selectiveDisclosureSupported,\n selectedFields,\n );\n\n const attributes: CredentialAttribute[] = displayedAttributes.map(({ claim, field, id, selected, status }, index) => {\n const disabled = !credential || !field || field.required || !claim;\n const attribute: CredentialAttribute = {\n ...shareCredentialCardAttributeFromClaim(\n id,\n config,\n concatTestID(testID, 'attribute', `${index}`),\n labels,\n claim,\n field,\n ),\n selected,\n };\n\n setStatusForNestedObjectOrArrayFields(attribute, status, disabled);\n return attribute;\n });\n return {\n attributes: nestAttributes(attributes),\n card,\n };\n};\n\nexport const selectCredentialCardAttributeFromClaim = (\n id: string,\n config: Config,\n testID: string,\n labels: ShareCredentialCardLabels,\n claim?: Claim,\n field?: PresentationDefinitionField,\n): CredentialAttribute => {\n const attribute = shareCredentialCardAttributeFromClaim(id, config, testID, labels, claim, field);\n if (!claim) {\n return attribute;\n }\n return {\n ...attribute,\n rightAccessory: RequiredAttributeIcon,\n };\n};\n\nexport const selectCredentialCardFromCredential = (\n credential: CredentialDetail,\n selected: boolean,\n request: PresentationDefinitionRequestedCredential,\n config: Config,\n testID: string,\n labels: ShareCredentialCardLabels,\n): Omit<CredentialDetailsCardProps, 'expanded'> => {\n const selectiveDisclosureSupported = supportsSelectiveDisclosure(\n credential ? { ...credential, issuerDid: credential.issuerDid?.did } : undefined,\n config,\n );\n const rightAccessory = <Selector status={selected ? SelectorStatus.SelectedRadio : SelectorStatus.Empty} />;\n const notice: CredentialCardNotice | undefined =\n selectiveDisclosureSupported === false\n ? {\n text: labels.selectiveDisclosureNotice,\n noticeIcon: CredentialNoticeWarningIcon,\n }\n : undefined;\n const { header, ...cardProps } = getCredentialCardPropsFromCredential(\n credential,\n credential.claims,\n config,\n notice,\n testID,\n labels,\n );\n const card = {\n header: {\n ...header,\n accessory: rightAccessory,\n },\n ...cardProps,\n };\n const attributes: CredentialAttribute[] = request.fields.map((field) => {\n const claim = spreadClaims(credential.claims).find(({ key }) => {\n return key === field.keyMap[credential.id];\n });\n\n const attribute = selectCredentialCardAttributeFromClaim(field.id, config, testID, labels, claim, field);\n return {\n ...attribute,\n rightAccessory: (\n <Selector status={field.required && !claim ? SelectorStatus.Rejected : SelectorStatus.Required} />\n ),\n };\n });\n return {\n attributes: nestAttributes(attributes),\n card,\n };\n};\n"],"mappings":";;;;;;AAOA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AASA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAQsB,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEf,MAAMG,iCAAiC,GAAGA,CAC/CC,UAA4B,EAC5BC,WAAoB,EACpBC,QAAiB,EACjBC,4BAAqC,EACrCC,MAAc,EACdC,MAAwC,EACxCC,MAAc,EACdC,MAAiC,KACmC;EACpE,IAAIC,sBASS;EACb,IAAIP,WAAW,EAAE;IACfO,sBAAsB,GAAG;MACvBC,0BAA0B,EAAE,IAAI;MAChCC,uBAAuB,EAA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,GAAG,CAAE3B,KAAK,IAAK;IACtE,MAAME,KAAK,GAAGW,YAAY,CAAC9C,UAAU,CAACmB,MAAM,CAAC,CAAC6C,IAAI,CAAC,CAAC;MAAET;IAAI,CAAC,KAAK;MAC9D,OAAOA,GAAG,KAAKtB,KAAK,CAACgC,MAAM,CAACjE,UAAU,CAAC+B,EAAE,CAAC;IAC5C,CAAC,CAAC;IAEF,MAAM8C,SAAS,GAAG4B,sCAAsC,CAACxE,KAAK,CAACF,EAAE,EAAE3B,MAAM,EAAEE,MAAM,EAAEC,MAAM,EAAE4B,KAAK,EAAEF,KAAK,CAAC;IACxG,OAAO;MACL,GAAG4C,SAAS;MACZS,cAAc,eACZjG,MAAA,CAAAS,OAAA,CAAAkF,aAAA,CAACxF,WAAA,CAAAyF,QAAQ;QAACpB,MAAM,EAAE5B,KAAK,CAACQ,QAAQ,IAAI,CAACN,KAAK,GAAGI,0BAAc,CAACC,QAAQ,GAAGD,0BAAc,CAACG;MAAS,CAAE;IAErG,CAAC;EACH,CAAC,CAAC;EACF,OAAO;IACLyC,UAAU,EAAE,IAAAqB,2BAAc,EAACrB,UAAU,CAAC;IACtClE;EACF,CAAC;AACH,CAAC;AAACI,OAAA,CAAAsF,kCAAA,GAAAA,kCAAA","ignoreList":[]}
@@ -0,0 +1,313 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getCredentialCardPropsFromCredential = exports.findClaimByPath = exports.detailsCardFromCredentialWithClaims = exports.detailsCardFromCredential = exports.detailsCardAttributeFromClaim = exports.cardHeaderFromCredential = exports.ValidityState = void 0;
7
+ exports.getCredentialSchemaWithoutImages = getCredentialSchemaWithoutImages;
8
+ exports.supportsSelectiveDisclosure = exports.nestAttributes = exports.hasMsoValidityIssues = exports.getValidityState = void 0;
9
+ var _reactNativeOneCore = require("@procivis/react-native-one-core");
10
+ var _icons = require("../../ui-components/icons");
11
+ var _date = require("../date");
12
+ var _testID = require("../testID");
13
+ var _credentialImages = require("./credential-images");
14
+ let ValidityState = exports.ValidityState = /*#__PURE__*/function (ValidityState) {
15
+ ValidityState["Revoked"] = "revoked";
16
+ ValidityState["Suspended"] = "suspended";
17
+ ValidityState["Valid"] = "valid";
18
+ return ValidityState;
19
+ }({});
20
+ const getValidityState = credential => {
21
+ if ((credential === null || credential === void 0 ? void 0 : credential.state) === _reactNativeOneCore.CredentialStateEnum.REVOKED) {
22
+ return ValidityState.Revoked;
23
+ }
24
+ if ((credential === null || credential === void 0 ? void 0 : credential.state) === _reactNativeOneCore.CredentialStateEnum.SUSPENDED) {
25
+ return ValidityState.Suspended;
26
+ }
27
+ return ValidityState.Valid;
28
+ };
29
+ exports.getValidityState = getValidityState;
30
+ const supportsSelectiveDisclosure = (credential, config) => {
31
+ var _formatConfig$capabil;
32
+ const formatConfig = credential && (config === null || config === void 0 ? void 0 : config.format[credential.schema.format]);
33
+ return formatConfig ? Boolean((_formatConfig$capabil = formatConfig.capabilities) === null || _formatConfig$capabil === void 0 || (_formatConfig$capabil = _formatConfig$capabil.features) === null || _formatConfig$capabil === void 0 ? void 0 : _formatConfig$capabil.includes(_reactNativeOneCore.FormatFeatureEnum.SelectiveDisclosure)) : undefined;
34
+ };
35
+ exports.supportsSelectiveDisclosure = supportsSelectiveDisclosure;
36
+ const findClaimByPathParts = (path, claims) => {
37
+ if (!(claims !== null && claims !== void 0 && claims.length)) {
38
+ return undefined;
39
+ }
40
+ const [first, second, ...rest] = path;
41
+ const claim = claims.find(c => c.key === first);
42
+ if (claim === undefined || second === undefined || claim.dataType !== _reactNativeOneCore.DataTypeEnum.Object) {
43
+ return claim;
44
+ }
45
+ return findClaimByPathParts([`${first}/${second}`, ...rest], claim.value);
46
+ };
47
+ const findClaimByPath = (path, claims) => path ? findClaimByPathParts(path.split('/'), claims) : undefined;
48
+ exports.findClaimByPath = findClaimByPath;
49
+ const formatCredentialDetail = (claim, config, testID) => {
50
+ var _attributeValue$value;
51
+ const attributeValue = detailsCardAttributeValueFromClaim(claim, config, testID);
52
+ return (_attributeValue$value = attributeValue.value) !== null && _attributeValue$value !== void 0 ? _attributeValue$value : '';
53
+ };
54
+ const hasMsoValidityIssues = credential => {
55
+ const mdocMsoValidity = 'mdocMsoValidity' in credential ? credential.mdocMsoValidity : undefined;
56
+ const mdocMsoValidityIssue = Boolean((mdocMsoValidity === null || mdocMsoValidity === void 0 ? void 0 : mdocMsoValidity.nextUpdate) && new Date(mdocMsoValidity.nextUpdate) < new Date());
57
+ return mdocMsoValidityIssue;
58
+ };
59
+ exports.hasMsoValidityIssues = hasMsoValidityIssues;
60
+ const cardHeaderFromCredential = (credential, claims = [], config, testID, labels) => {
61
+ var _formatDateTimeLocali, _layoutProperties$log, _layoutProperties$log2, _layoutProperties$log3;
62
+ let credentialDetailPrimary = (_formatDateTimeLocali = (0, _date.formatDateTimeLocalized)(new Date(credential.issuanceDate))) !== null && _formatDateTimeLocali !== void 0 ? _formatDateTimeLocali : '';
63
+ let credentialDetailSecondary;
64
+ let credentialDetailErrorColor;
65
+ let credentialDetailTestID;
66
+ let statusIcon;
67
+ const {
68
+ layoutProperties
69
+ } = credential.schema;
70
+ switch (credential.state) {
71
+ case _reactNativeOneCore.CredentialStateEnum.SUSPENDED:
72
+ credentialDetailPrimary = credential.suspendEndDate ? labels.suspendedUntil((0, _date.formatDateTimeLocalized)(new Date(credential.suspendEndDate))) : labels.suspended;
73
+ credentialDetailTestID = (0, _testID.concatTestID)(testID, 'suspended');
74
+ statusIcon = _icons.CredentialWarningIcon;
75
+ break;
76
+ case _reactNativeOneCore.CredentialStateEnum.REVOKED:
77
+ credentialDetailPrimary = labels.revoked;
78
+ credentialDetailErrorColor = true;
79
+ credentialDetailTestID = (0, _testID.concatTestID)(testID, 'revoked');
80
+ statusIcon = _icons.CredentialErrorIcon;
81
+ break;
82
+ default:
83
+ {
84
+ if (hasMsoValidityIssues(credential)) {
85
+ credentialDetailPrimary = labels.validityIssues;
86
+ credentialDetailTestID = (0, _testID.concatTestID)(testID, 'validity-issue');
87
+ statusIcon = _icons.CredentialWarningIcon;
88
+ } else {
89
+ const primary = findClaimByPath(layoutProperties === null || layoutProperties === void 0 ? void 0 : layoutProperties.primaryAttribute, claims);
90
+ if (primary) {
91
+ credentialDetailPrimary = formatCredentialDetail(primary, config, (0, _testID.concatTestID)(testID, 'primary'));
92
+ }
93
+ const secondary = findClaimByPath(layoutProperties === null || layoutProperties === void 0 ? void 0 : layoutProperties.secondaryAttribute, claims);
94
+ if (secondary) {
95
+ credentialDetailSecondary = formatCredentialDetail(secondary, config, (0, _testID.concatTestID)(testID, 'secondary'));
96
+ }
97
+ credentialDetailTestID = (0, _testID.concatTestID)(testID, 'detail');
98
+ }
99
+ break;
100
+ }
101
+ }
102
+ return {
103
+ color: layoutProperties === null || layoutProperties === void 0 || (_layoutProperties$log = layoutProperties.logo) === null || _layoutProperties$log === void 0 ? void 0 : _layoutProperties$log.backgroundColor,
104
+ credentialDetailErrorColor,
105
+ credentialDetailPrimary,
106
+ credentialDetailSecondary,
107
+ credentialDetailTestID,
108
+ credentialName: credential.schema.name,
109
+ icon: layoutProperties !== null && layoutProperties !== void 0 && (_layoutProperties$log2 = layoutProperties.logo) !== null && _layoutProperties$log2 !== void 0 && _layoutProperties$log2.image ? {
110
+ imageSource: {
111
+ uri: layoutProperties.logo.image
112
+ }
113
+ } : undefined,
114
+ iconLabelColor: layoutProperties === null || layoutProperties === void 0 || (_layoutProperties$log3 = layoutProperties.logo) === null || _layoutProperties$log3 === void 0 ? void 0 : _layoutProperties$log3.fontColor,
115
+ statusIcon,
116
+ testID
117
+ };
118
+ };
119
+ exports.cardHeaderFromCredential = cardHeaderFromCredential;
120
+ const getCredentialCardPropsFromCredential = (credential, claims = [], config, notice, testID, labels) => {
121
+ var _layoutProperties$bac, _layoutProperties$bac2;
122
+ const {
123
+ layoutProperties
124
+ } = credential.schema;
125
+ if (hasMsoValidityIssues(credential)) {
126
+ notice = {
127
+ text: labels.validityIssuesNotice,
128
+ noticeIcon: _icons.CredentialNoticeWarningIcon
129
+ };
130
+ }
131
+ const result = {
132
+ cardCarouselImages: (0, _credentialImages.getCarouselImagesFromClaims)(claims, layoutProperties, (0, _testID.concatTestID)(testID, 'carousel')),
133
+ cardImage: layoutProperties !== null && layoutProperties !== void 0 && (_layoutProperties$bac = layoutProperties.background) !== null && _layoutProperties$bac !== void 0 && _layoutProperties$bac.image ? {
134
+ imageSource: {
135
+ uri: layoutProperties.background.image
136
+ }
137
+ } : undefined,
138
+ color: layoutProperties === null || layoutProperties === void 0 || (_layoutProperties$bac2 = layoutProperties.background) === null || _layoutProperties$bac2 === void 0 ? void 0 : _layoutProperties$bac2.color,
139
+ header: cardHeaderFromCredential(credential, claims, config, (0, _testID.concatTestID)(testID, 'header'), labels),
140
+ testID,
141
+ notice
142
+ };
143
+ return result;
144
+ };
145
+ exports.getCredentialCardPropsFromCredential = getCredentialCardPropsFromCredential;
146
+ const detailsCardAttributeFromClaim = (claim, config, testID) => {
147
+ const value = detailsCardAttributeValueFromClaim(claim, config, testID);
148
+ return {
149
+ id: claim.id,
150
+ name: claim.key.split('/').pop(),
151
+ path: claim.key,
152
+ ...value
153
+ };
154
+ };
155
+ exports.detailsCardAttributeFromClaim = detailsCardAttributeFromClaim;
156
+ const detailsCardAttributeValueFromClaim = (claim, config, testID) => {
157
+ const typeConfig = config === null || config === void 0 ? void 0 : config.datatype[claim.dataType];
158
+ if (claim.array) {
159
+ return {
160
+ values: (claim.value || []).map((arrayValue, index) => {
161
+ return detailsCardAttributeFromClaim({
162
+ ...arrayValue,
163
+ id: `${arrayValue.id}/${index}`
164
+ }, config, (0, _testID.concatTestID)(testID, index.toString()));
165
+ })
166
+ };
167
+ } else {
168
+ switch (typeConfig === null || typeConfig === void 0 ? void 0 : typeConfig.type) {
169
+ case _reactNativeOneCore.DataTypeEnum.Object:
170
+ {
171
+ if (!Array.isArray(claim.value)) {
172
+ return {
173
+ attributes: []
174
+ };
175
+ }
176
+ return {
177
+ attributes: claim.value.map((nestedClaim, index) => detailsCardAttributeFromClaim(nestedClaim, config, (0, _testID.concatTestID)(testID, index.toString())))
178
+ };
179
+ }
180
+ case _reactNativeOneCore.DataTypeEnum.Date:
181
+ {
182
+ var _formatDateLocalized;
183
+ const date = claim.value;
184
+ return {
185
+ testID: testID,
186
+ value: (_formatDateLocalized = (0, _date.formatDateLocalized)(new Date(date))) !== null && _formatDateLocalized !== void 0 ? _formatDateLocalized : date
187
+ };
188
+ }
189
+ case _reactNativeOneCore.DataTypeEnum.File:
190
+ {
191
+ var _typeConfig$params;
192
+ if (((_typeConfig$params = typeConfig.params) === null || _typeConfig$params === void 0 ? void 0 : _typeConfig$params.showAs) === 'IMAGE') {
193
+ return {
194
+ image: {
195
+ uri: claim.value
196
+ },
197
+ testID: testID
198
+ };
199
+ } else {
200
+ return {
201
+ testID: testID,
202
+ value: claim.value
203
+ };
204
+ }
205
+ }
206
+ default:
207
+ return {
208
+ testID: testID,
209
+ value: String(claim.value)
210
+ };
211
+ }
212
+ }
213
+ };
214
+ const detailsCardFromCredential = (credential, config, testID, labels) => {
215
+ return detailsCardFromCredentialWithClaims(credential, credential.claims, config, testID, labels);
216
+ };
217
+ exports.detailsCardFromCredential = detailsCardFromCredential;
218
+ const detailsCardFromCredentialWithClaims = (credential, claims, config, testID, labels) => {
219
+ const attributes = claims.map((claim, index) => detailsCardAttributeFromClaim(claim, config, (0, _testID.concatTestID)(testID, 'attribute', index.toString())));
220
+ const card = getCredentialCardPropsFromCredential(credential, claims, config, undefined, (0, _testID.concatTestID)(testID, 'card'), labels);
221
+ return {
222
+ attributes,
223
+ card
224
+ };
225
+ };
226
+
227
+ // Converts a flat list of attributes into a nested structure
228
+ // modifies the names to not include slashes
229
+ exports.detailsCardFromCredentialWithClaims = detailsCardFromCredentialWithClaims;
230
+ const nestAttributes = attributes => {
231
+ const result = [];
232
+ for (const attribute of attributes) {
233
+ const attributePath = attribute.path.split('/');
234
+ if (attributePath.length === 0) {
235
+ result.push(attribute);
236
+ } else {
237
+ const [first, ...rest] = attributePath;
238
+ const parent = result.find(a => a.name === first);
239
+ if (parent) {
240
+ insertAttributeInObject({
241
+ ...attribute,
242
+ path: rest.join('/')
243
+ }, parent);
244
+ } else {
245
+ result.push(nestAttributeInDummyObject(attribute));
246
+ }
247
+ }
248
+ }
249
+ return result;
250
+ };
251
+
252
+ // We nest the leaf node in a (one or more) nested object(s)
253
+ // to make sure the tree structure is correctly rendered in proof request screens.
254
+ exports.nestAttributes = nestAttributes;
255
+ const nestAttributeInDummyObject = attribute => {
256
+ const pathParts = attribute.path.split('/');
257
+ const [first, ...rest] = pathParts;
258
+ if (!rest.length) {
259
+ return attribute;
260
+ }
261
+
262
+ // The dummy object is not selectable, and contains a placeholder ID
263
+ // the user can't interact with it.
264
+ return {
265
+ attributes: [nestAttributeInDummyObject({
266
+ ...attribute,
267
+ path: rest.join('/')
268
+ })],
269
+ disabled: true,
270
+ id: `${attribute.id}/${first}`,
271
+ name: first,
272
+ path: attribute.path
273
+ };
274
+ };
275
+
276
+ // Recursively insert an attribute into an object
277
+ // Will create nested objects if necessary
278
+ const insertAttributeInObject = (attribute, object) => {
279
+ var _object$attributes;
280
+ const pathParts = attribute.path.split('/');
281
+ const [first, ...rest] = pathParts;
282
+ const nextParent = (_object$attributes = object.attributes) === null || _object$attributes === void 0 ? void 0 : _object$attributes.find(a => a.name === first);
283
+ if (!nextParent) {
284
+ var _object$attributes2;
285
+ (_object$attributes2 = object.attributes) === null || _object$attributes2 === void 0 || _object$attributes2.push(nestAttributeInDummyObject(attribute));
286
+ } else {
287
+ insertAttributeInObject({
288
+ ...attribute,
289
+ path: rest.join('/')
290
+ }, nextParent);
291
+ }
292
+ };
293
+ function parseBase64Image(image) {
294
+ return image ? '__BASE64IMAGE__' : '';
295
+ }
296
+ function getCredentialSchemaWithoutImages(credentialSchema) {
297
+ var _credentialSchema$lay, _credentialSchema$lay2, _credentialSchema$lay3, _credentialSchema$lay4;
298
+ return {
299
+ ...credentialSchema,
300
+ layoutProperties: {
301
+ ...credentialSchema.layoutProperties,
302
+ background: {
303
+ ...((_credentialSchema$lay = credentialSchema.layoutProperties) === null || _credentialSchema$lay === void 0 ? void 0 : _credentialSchema$lay.background),
304
+ image: parseBase64Image((_credentialSchema$lay2 = credentialSchema.layoutProperties) === null || _credentialSchema$lay2 === void 0 || (_credentialSchema$lay2 = _credentialSchema$lay2.background) === null || _credentialSchema$lay2 === void 0 ? void 0 : _credentialSchema$lay2.image)
305
+ },
306
+ logo: {
307
+ ...((_credentialSchema$lay3 = credentialSchema.layoutProperties) === null || _credentialSchema$lay3 === void 0 ? void 0 : _credentialSchema$lay3.logo),
308
+ image: parseBase64Image((_credentialSchema$lay4 = credentialSchema.layoutProperties) === null || _credentialSchema$lay4 === void 0 || (_credentialSchema$lay4 = _credentialSchema$lay4.logo) === null || _credentialSchema$lay4 === void 0 ? void 0 : _credentialSchema$lay4.image)
309
+ }
310
+ }
311
+ };
312
+ }
313
+ //# sourceMappingURL=credential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeOneCore","require","_icons","_date","_testID","_credentialImages","ValidityState","exports","getValidityState","credential","state","CredentialStateEnum","REVOKED","Revoked","SUSPENDED","Suspended","Valid","supportsSelectiveDisclosure","config","_formatConfig$capabil","formatConfig","format","schema","Boolean","capabilities","features","includes","FormatFeatureEnum","SelectiveDisclosure","undefined","findClaimByPathParts","path","claims","length","first","second","rest","claim","find","c","key","dataType","DataTypeEnum","Object","value","findClaimByPath","split","formatCredentialDetail","testID","_attributeValue$value","attributeValue","detailsCardAttributeValueFromClaim","hasMsoValidityIssues","mdocMsoValidity","mdocMsoValidityIssue","nextUpdate","Date","cardHeaderFromCredential","labels","_formatDateTimeLocali","_layoutProperties$log","_layoutProperties$log2","_layoutProperties$log3","credentialDetailPrimary","formatDateTimeLocalized","issuanceDate","credentialDetailSecondary","credentialDetailErrorColor","credentialDetailTestID","statusIcon","layoutProperties","suspendEndDate","suspendedUntil","suspended","concatTestID","CredentialWarningIcon","revoked","CredentialErrorIcon","validityIssues","primary","primaryAttribute","secondary","secondaryAttribute","color","logo","backgroundColor","credentialName","name","icon","image","imageSource","uri","iconLabelColor","fontColor","getCredentialCardPropsFromCredential","notice","_layoutProperties$bac","_layoutProperties$bac2","text","validityIssuesNotice","noticeIcon","CredentialNoticeWarningIcon","result","cardCarouselImages","getCarouselImagesFromClaims","cardImage","background","header","detailsCardAttributeFromClaim","id","pop","typeConfig","datatype","array","values","map","arrayValue","index","toString","type","Array","isArray","attributes","nestedClaim","_formatDateLocalized","date","formatDateLocalized","File","_typeConfig$params","params","showAs","String","detailsCardFromCredential","detailsCardFromCredentialWithClaims","card","nestAttributes","attribute","attributePath","push","parent","a","insertAttributeInObject","join","nestAttributeInDummyObject","pathParts","disabled","object","_object$attributes","nextParent","_object$attributes2","parseBase64Image","getCredentialSchemaWithoutImages","credentialSchema","_credentialSchema$lay","_credentialSchema$lay2","_credentialSchema$lay3","_credentialSchema$lay4"],"sources":["credential.ts"],"sourcesContent":["import {\n Claim,\n Config,\n CredentialDetail,\n CredentialListItem,\n CredentialSchema,\n CredentialStateEnum,\n DataTypeEnum,\n FormatFeatureEnum,\n} from '@procivis/react-native-one-core';\n\nimport {\n CredentialAttribute,\n CredentialAttributeValue,\n CredentialCardProps,\n CredentialDetailsCardProps,\n CredentialHeaderProps,\n} from '../../ui-components/credential';\nimport { CredentialCardNotice } from '../../ui-components/credential/card/credential-card';\nimport { CredentialErrorIcon, CredentialNoticeWarningIcon, CredentialWarningIcon } from '../../ui-components/icons';\nimport { formatDateLocalized, formatDateTimeLocalized } from '../date';\nimport { concatTestID } from '../testID';\nimport { getCarouselImagesFromClaims } from './credential-images';\n\nexport enum ValidityState {\n Revoked = 'revoked',\n Suspended = 'suspended',\n Valid = 'valid',\n}\n\nexport const getValidityState = (credential: CredentialListItem | undefined) => {\n if (credential?.state === CredentialStateEnum.REVOKED) {\n return ValidityState.Revoked;\n }\n if (credential?.state === CredentialStateEnum.SUSPENDED) {\n return ValidityState.Suspended;\n }\n return ValidityState.Valid;\n};\n\nexport const supportsSelectiveDisclosure = (credential: CredentialListItem | undefined, config: Config | undefined) => {\n const formatConfig = credential && config?.format[credential.schema.format];\n return formatConfig\n ? Boolean(formatConfig.capabilities?.features?.includes(FormatFeatureEnum.SelectiveDisclosure))\n : undefined;\n};\n\nconst findClaimByPathParts = (path: string[], claims?: Claim[]): Claim | undefined => {\n if (!claims?.length) {\n return undefined;\n }\n const [first, second, ...rest] = path;\n const claim = claims.find((c) => c.key === first);\n if (claim === undefined || second === undefined || claim.dataType !== DataTypeEnum.Object) {\n return claim;\n }\n\n return findClaimByPathParts([`${first}/${second}`, ...rest], claim.value as Claim[]);\n};\n\nexport const findClaimByPath = (path: string | undefined, claims: Claim[] | undefined) =>\n path ? findClaimByPathParts(path.split('/'), claims) : undefined;\n\nconst formatCredentialDetail = (claim: Claim, config: Config, testID: string): string => {\n const attributeValue = detailsCardAttributeValueFromClaim(claim, config, testID);\n return attributeValue.value ?? '';\n};\n\nexport const hasMsoValidityIssues = (credential: CredentialDetail): boolean => {\n const mdocMsoValidity: { nextUpdate: string } | undefined =\n 'mdocMsoValidity' in credential ? (credential.mdocMsoValidity as { nextUpdate: string }) : undefined;\n\n const mdocMsoValidityIssue = Boolean(\n mdocMsoValidity?.nextUpdate && new Date(mdocMsoValidity.nextUpdate) < new Date(),\n );\n\n return mdocMsoValidityIssue;\n};\n\nexport type CardHeaderLabels = {\n validityIssues: string;\n revoked: string;\n suspended: string;\n suspendedUntil: (date: string) => string;\n};\n\nexport const cardHeaderFromCredential = (\n credential: CredentialDetail,\n claims: Claim[] = [],\n config: Config,\n testID: string,\n labels: CardHeaderLabels,\n): Omit<CredentialHeaderProps, 'style'> => {\n let credentialDetailPrimary = formatDateTimeLocalized(new Date(credential.issuanceDate)) ?? '';\n\n let credentialDetailSecondary: string | undefined;\n let credentialDetailErrorColor: boolean | undefined;\n let credentialDetailTestID: string | undefined;\n let statusIcon;\n\n const { layoutProperties } = credential.schema;\n\n switch (credential.state) {\n case CredentialStateEnum.SUSPENDED:\n credentialDetailPrimary = credential.suspendEndDate\n ? labels.suspendedUntil(formatDateTimeLocalized(new Date(credential.suspendEndDate))!)\n : labels.suspended;\n credentialDetailTestID = concatTestID(testID, 'suspended');\n statusIcon = CredentialWarningIcon;\n break;\n case CredentialStateEnum.REVOKED:\n credentialDetailPrimary = labels.revoked;\n credentialDetailErrorColor = true;\n credentialDetailTestID = concatTestID(testID, 'revoked');\n statusIcon = CredentialErrorIcon;\n break;\n default: {\n if (hasMsoValidityIssues(credential)) {\n credentialDetailPrimary = labels.validityIssues;\n credentialDetailTestID = concatTestID(testID, 'validity-issue');\n statusIcon = CredentialWarningIcon;\n } else {\n const primary = findClaimByPath(layoutProperties?.primaryAttribute, claims);\n\n if (primary) {\n credentialDetailPrimary = formatCredentialDetail(primary, config, concatTestID(testID, 'primary'));\n }\n\n const secondary = findClaimByPath(layoutProperties?.secondaryAttribute, claims);\n\n if (secondary) {\n credentialDetailSecondary = formatCredentialDetail(secondary, config, concatTestID(testID, 'secondary'));\n }\n\n credentialDetailTestID = concatTestID(testID, 'detail');\n }\n break;\n }\n }\n return {\n color: layoutProperties?.logo?.backgroundColor,\n credentialDetailErrorColor,\n credentialDetailPrimary,\n credentialDetailSecondary,\n credentialDetailTestID,\n credentialName: credential.schema.name,\n icon: layoutProperties?.logo?.image\n ? {\n imageSource: {\n uri: layoutProperties.logo.image,\n },\n }\n : undefined,\n iconLabelColor: layoutProperties?.logo?.fontColor,\n statusIcon,\n testID,\n };\n};\n\nexport type CardLabels = CardHeaderLabels & {\n validityIssuesNotice: string;\n};\n\nexport const getCredentialCardPropsFromCredential = (\n credential: CredentialDetail,\n claims: Claim[] = [],\n config: Config,\n notice: CredentialCardNotice | undefined,\n testID: string,\n labels: CardLabels,\n): Omit<CredentialCardProps, 'onHeaderPress' | 'style'> => {\n const { layoutProperties } = credential.schema;\n\n if (hasMsoValidityIssues(credential)) {\n notice = {\n text: labels.validityIssuesNotice,\n noticeIcon: CredentialNoticeWarningIcon,\n };\n }\n\n const result: Omit<CredentialCardProps, 'onHeaderPress' | 'style'> = {\n cardCarouselImages: getCarouselImagesFromClaims(claims, layoutProperties, concatTestID(testID, 'carousel')),\n cardImage: layoutProperties?.background?.image\n ? { imageSource: { uri: layoutProperties.background.image } }\n : undefined,\n color: layoutProperties?.background?.color,\n header: cardHeaderFromCredential(credential, claims, config, concatTestID(testID, 'header'), labels),\n testID,\n notice,\n };\n\n return result;\n};\n\nexport const detailsCardAttributeFromClaim = (claim: Claim, config: Config, testID: string): CredentialAttribute => {\n const value = detailsCardAttributeValueFromClaim(claim, config, testID);\n return {\n id: claim.id,\n name: claim.key.split('/').pop(),\n path: claim.key,\n ...value,\n };\n};\n\nconst detailsCardAttributeValueFromClaim = (claim: Claim, config: Config, testID: string): CredentialAttributeValue => {\n const typeConfig = config?.datatype[claim.dataType];\n\n if (claim.array) {\n return {\n values: (claim.value || []).map((arrayValue, index) => {\n return detailsCardAttributeFromClaim(\n {\n ...arrayValue,\n id: `${arrayValue.id}/${index}`,\n },\n config,\n concatTestID(testID, index.toString()),\n );\n }),\n };\n } else {\n switch (typeConfig?.type) {\n case DataTypeEnum.Object: {\n if (!Array.isArray(claim.value)) {\n return { attributes: [] };\n }\n return {\n attributes: (claim.value as Claim[]).map((nestedClaim, index) =>\n detailsCardAttributeFromClaim(nestedClaim, config, concatTestID(testID, index.toString())),\n ),\n };\n }\n case DataTypeEnum.Date: {\n const date = claim.value as string;\n return {\n testID: testID,\n value: formatDateLocalized(new Date(date)) ?? date,\n };\n }\n case DataTypeEnum.File: {\n if (typeConfig.params?.showAs === 'IMAGE') {\n return { image: { uri: claim.value as string }, testID: testID };\n } else {\n return { testID: testID, value: claim.value as string };\n }\n }\n default:\n return { testID: testID, value: String(claim.value) };\n }\n }\n};\n\nexport const detailsCardFromCredential = (\n credential: CredentialDetail,\n config: Config,\n testID: string,\n labels: CardLabels,\n): Omit<CredentialDetailsCardProps, 'expanded'> => {\n return detailsCardFromCredentialWithClaims(credential, credential.claims, config, testID, labels);\n};\n\nexport const detailsCardFromCredentialWithClaims = (\n credential: CredentialDetail,\n claims: Claim[],\n config: Config,\n testID: string,\n labels: CardLabels,\n): Omit<CredentialDetailsCardProps, 'expanded'> => {\n const attributes: CredentialAttribute[] = claims.map((claim, index) =>\n detailsCardAttributeFromClaim(claim, config, concatTestID(testID, 'attribute', index.toString())),\n );\n\n const card = getCredentialCardPropsFromCredential(\n credential,\n claims,\n config,\n undefined,\n concatTestID(testID, 'card'),\n labels,\n );\n\n return {\n attributes,\n card,\n };\n};\n\n// Converts a flat list of attributes into a nested structure\n// modifies the names to not include slashes\nexport const nestAttributes = (attributes: CredentialAttribute[]): CredentialAttribute[] => {\n const result: CredentialAttribute[] = [];\n\n for (const attribute of attributes) {\n const attributePath = attribute.path.split('/');\n if (attributePath.length === 0) {\n result.push(attribute);\n } else {\n const [first, ...rest] = attributePath;\n const parent = result.find((a) => a.name === first);\n if (parent) {\n insertAttributeInObject({ ...attribute, path: rest.join('/') }, parent);\n } else {\n result.push(nestAttributeInDummyObject(attribute));\n }\n }\n }\n\n return result;\n};\n\n// We nest the leaf node in a (one or more) nested object(s)\n// to make sure the tree structure is correctly rendered in proof request screens.\nconst nestAttributeInDummyObject = (attribute: CredentialAttribute): CredentialAttribute => {\n const pathParts = attribute.path.split('/');\n const [first, ...rest] = pathParts;\n if (!rest.length) {\n return attribute;\n }\n\n // The dummy object is not selectable, and contains a placeholder ID\n // the user can't interact with it.\n return {\n attributes: [nestAttributeInDummyObject({ ...attribute, path: rest.join('/') })],\n disabled: true,\n id: `${attribute.id}/${first}`,\n name: first,\n path: attribute.path,\n };\n};\n\n// Recursively insert an attribute into an object\n// Will create nested objects if necessary\nconst insertAttributeInObject = (attribute: CredentialAttribute, object: CredentialAttribute) => {\n const pathParts = attribute.path.split('/');\n const [first, ...rest] = pathParts;\n\n const nextParent = object.attributes?.find((a) => a.name === first);\n\n if (!nextParent) {\n object.attributes?.push(nestAttributeInDummyObject(attribute));\n } else {\n insertAttributeInObject({ ...attribute, path: rest.join('/') }, nextParent);\n }\n};\n\nfunction parseBase64Image(image: string | undefined) {\n return image ? '__BASE64IMAGE__' : '';\n}\n\nexport function getCredentialSchemaWithoutImages(credentialSchema: CredentialSchema) {\n return {\n ...credentialSchema,\n layoutProperties: {\n ...credentialSchema.layoutProperties,\n background: {\n ...credentialSchema.layoutProperties?.background,\n image: parseBase64Image(credentialSchema.layoutProperties?.background?.image),\n },\n logo: {\n ...credentialSchema.layoutProperties?.logo,\n image: parseBase64Image(credentialSchema.layoutProperties?.logo?.image),\n },\n },\n };\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAmBA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAAkE,IAEtDK,aAAa,GAAAC,OAAA,CAAAD,aAAA,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAMlB,MAAME,gBAAgB,GAAIC,UAA0C,IAAK;EAC9E,IAAI,CAAAA,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEC,KAAK,MAAKC,uCAAmB,CAACC,OAAO,EAAE;IACrD,OAAON,aAAa,CAACO,OAAO;EAC9B;EACA,IAAI,CAAAJ,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEC,KAAK,MAAKC,uCAAmB,CAACG,SAAS,EAAE;IACvD,OAAOR,aAAa,CAACS,SAAS;EAChC;EACA,OAAOT,aAAa,CAACU,KAAK;AAC5B,CAAC;AAACT,OAAA,CAAAC,gBAAA,GAAAA,gBAAA;AAEK,MAAMS,2BAA2B,GAAGA,CAACR,UAA0C,EAAES,MAA0B,KAAK;EAAA,IAAAC,qBAAA;EACrH,MAAMC,YAA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SAASE,gBAAgBA,CAAC7D,KAAyB,EAAE;EACnD,OAAOA,KAAK,GAAG,iBAAiB,GAAG,EAAE;AACvC;AAEO,SAAS8D,gCAAgCA,CAACC,gBAAkC,EAAE;EAAA,IAAAC,qBAAA,EAAAC,sBAAA,EAAAC,sBAAA,EAAAC,sBAAA;EACnF,OAAO;IACL,GAAGJ,gBAAgB;IACnBlF,gBAAgB,EAAE;MAChB,GAAGkF,gBAAgB,CAAClF,gBAAgB;MACpCoC,UAAU,EAAE;QACV,KAAA+C,qBAAA,GAAGD,gBAAgB,CAAClF,gBAAgB,cAAAmF,qBAAA,uBAAjCA,qBAAA,CAAmC/C,UAAU;QAChDjB,KAAK,EAAE6D,gBAAgB,EAAAI,sBAAA,GAACF,gBAAgB,CAAClF,gBAAgB,cAAAoF,sBAAA,gBAAAA,sBAAA,GAAjCA,sBAAA,CAAmChD,UAAU,cAAAgD,sBAAA,uBAA7CA,sBAAA,CAA+CjE,KAAK;MAC9E,CAAC;MACDL,IAAI,EAAE;QACJ,KAAAuE,sBAAA,GAAGH,gBAAgB,CAAClF,gBAAgB,cAAAqF,sBAAA,uBAAjCA,sBAAA,CAAmCvE,IAAI;QAC1CK,KAAK,EAAE6D,gBAAgB,EAAAM,sBAAA,GAACJ,gBAAgB,CAAClF,gBAAgB,cAAAsF,sBAAA,gBAAAA,sBAAA,GAAjCA,sBAAA,CAAmCxE,IAAI,cAAAwE,sBAAA,uBAAvCA,sBAAA,CAAyCnE,KAAK;MACxE;IACF;EACF,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _credential = require("./credential");
7
+ Object.keys(_credential).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _credential[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _credential[key];
14
+ }
15
+ });
16
+ });
17
+ var _credentialImages = require("./credential-images");
18
+ Object.keys(_credentialImages).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _credentialImages[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _credentialImages[key];
25
+ }
26
+ });
27
+ });
28
+ var _credentialSharing = require("./credential-sharing");
29
+ Object.keys(_credentialSharing).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _credentialSharing[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _credentialSharing[key];
36
+ }
37
+ });
38
+ });
39
+ var _query = require("./query");
40
+ Object.keys(_query).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _query[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _query[key];
47
+ }
48
+ });
49
+ });
50
+ var _universalLinks = require("./universal-links");
51
+ Object.keys(_universalLinks).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _universalLinks[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _universalLinks[key];
58
+ }
59
+ });
60
+ });
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_credential","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_credentialImages","_credentialSharing","_query","_universalLinks"],"sources":["index.ts"],"sourcesContent":["export * from './credential';\nexport * from './credential-images';\nexport * from './credential-sharing';\nexport * from './query';\nexport * from './universal-links';\n"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAA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CAAA;MAAA,OAAAG,MAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,eAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,eAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,eAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,eAAA,CAAAR,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getQueryKeyFromProofSchemaListQueryParams = exports.getQueryKeyFromProofListQueryParams = exports.getQueryKeyFromHistoryListQueryParams = exports.getQueryKeyFromDidListQueryParams = exports.getQueryKeyFromCredentialSchemaListQueryParams = exports.getQueryKeyFromCredentialListQueryParams = void 0;
7
+ const getQueryKeyFromCredentialListQueryParams = queryParams => {
8
+ if (!queryParams) {
9
+ return [];
10
+ }
11
+ const {
12
+ name,
13
+ sort,
14
+ sortDirection,
15
+ exact,
16
+ role,
17
+ ids,
18
+ status,
19
+ include
20
+ } = queryParams;
21
+ return [name, sort, sortDirection, exact, role, ids, status, include];
22
+ };
23
+ exports.getQueryKeyFromCredentialListQueryParams = getQueryKeyFromCredentialListQueryParams;
24
+ const getQueryKeyFromHistoryListQueryParams = queryParams => {
25
+ if (!queryParams) {
26
+ return [];
27
+ }
28
+ const {
29
+ entityId,
30
+ action,
31
+ entityTypes,
32
+ createdDateFrom,
33
+ createdDateTo,
34
+ didId,
35
+ credentialId,
36
+ credentialSchemaId,
37
+ searchText,
38
+ searchType,
39
+ proofSchemaId
40
+ } = queryParams;
41
+ return [entityId, action, entityTypes, createdDateFrom, createdDateTo, didId, credentialId, credentialSchemaId, searchText, searchType, proofSchemaId];
42
+ };
43
+ exports.getQueryKeyFromHistoryListQueryParams = getQueryKeyFromHistoryListQueryParams;
44
+ const getQueryKeyFromCredentialSchemaListQueryParams = queryParams => {
45
+ if (!queryParams) {
46
+ return [];
47
+ }
48
+ const {
49
+ name,
50
+ sort,
51
+ sortDirection,
52
+ exact,
53
+ ids,
54
+ include
55
+ } = queryParams;
56
+ return [name, sort, sortDirection, exact, ids, include];
57
+ };
58
+ exports.getQueryKeyFromCredentialSchemaListQueryParams = getQueryKeyFromCredentialSchemaListQueryParams;
59
+ const getQueryKeyFromProofSchemaListQueryParams = queryParams => {
60
+ if (!queryParams) {
61
+ return [];
62
+ }
63
+ const {
64
+ name,
65
+ sort,
66
+ sortDirection,
67
+ exact,
68
+ ids
69
+ } = queryParams;
70
+ return [name, sort, sortDirection, exact, ids];
71
+ };
72
+ exports.getQueryKeyFromProofSchemaListQueryParams = getQueryKeyFromProofSchemaListQueryParams;
73
+ const getQueryKeyFromProofListQueryParams = queryParams => {
74
+ if (!queryParams) {
75
+ return [];
76
+ }
77
+ const {
78
+ name,
79
+ sort,
80
+ sortDirection,
81
+ exact,
82
+ ids,
83
+ proofStates,
84
+ proofSchemaIds
85
+ } = queryParams;
86
+ return [name, sort, sortDirection, exact, ids, proofStates, proofSchemaIds];
87
+ };
88
+ exports.getQueryKeyFromProofListQueryParams = getQueryKeyFromProofListQueryParams;
89
+ const getQueryKeyFromDidListQueryParams = queryParams => {
90
+ if (!queryParams) {
91
+ return [];
92
+ }
93
+ const {
94
+ name,
95
+ did,
96
+ type,
97
+ deactivated,
98
+ keyAlgorithms,
99
+ keyRoles
100
+ } = queryParams;
101
+ return [name, did, type, deactivated, keyAlgorithms, keyRoles];
102
+ };
103
+ exports.getQueryKeyFromDidListQueryParams = getQueryKeyFromDidListQueryParams;
104
+ //# sourceMappingURL=query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getQueryKeyFromCredentialListQueryParams","queryParams","name","sort","sortDirection","exact","role","ids","status","include","exports","getQueryKeyFromHistoryListQueryParams","entityId","action","entityTypes","createdDateFrom","createdDateTo","didId","credentialId","credentialSchemaId","searchText","searchType","proofSchemaId","getQueryKeyFromCredentialSchemaListQueryParams","getQueryKeyFromProofSchemaListQueryParams","getQueryKeyFromProofListQueryParams","proofStates","proofSchemaIds","getQueryKeyFromDidListQueryParams","did","type","deactivated","keyAlgorithms","keyRoles"],"sources":["query.tsx"],"sourcesContent":["import {\n CredentialListQuery,\n CredentialSchemaListQuery,\n DidListQuery,\n HistoryListQuery,\n ProofListQuery,\n ProofSchemaListQuery,\n} from '@procivis/react-native-one-core';\n\nexport const getQueryKeyFromCredentialListQueryParams = (queryParams?: Partial<CredentialListQuery>) => {\n if (!queryParams) {\n return [];\n }\n const { name, sort, sortDirection, exact, role, ids, status, include } = queryParams;\n return [name, sort, sortDirection, exact, role, ids, status, include];\n};\n\nexport const getQueryKeyFromHistoryListQueryParams = (queryParams?: Partial<HistoryListQuery>) => {\n if (!queryParams) {\n return [];\n }\n\n const {\n entityId,\n action,\n entityTypes,\n createdDateFrom,\n createdDateTo,\n didId,\n credentialId,\n credentialSchemaId,\n searchText,\n searchType,\n proofSchemaId,\n } = queryParams;\n return [\n entityId,\n action,\n entityTypes,\n createdDateFrom,\n createdDateTo,\n didId,\n credentialId,\n credentialSchemaId,\n searchText,\n searchType,\n proofSchemaId,\n ];\n};\n\nexport const getQueryKeyFromCredentialSchemaListQueryParams = (queryParams?: Partial<CredentialSchemaListQuery>) => {\n if (!queryParams) {\n return [];\n }\n const { name, sort, sortDirection, exact, ids, include } = queryParams;\n return [name, sort, sortDirection, exact, ids, include];\n};\n\nexport const getQueryKeyFromProofSchemaListQueryParams = (queryParams?: Partial<ProofSchemaListQuery>) => {\n if (!queryParams) {\n return [];\n }\n const { name, sort, sortDirection, exact, ids } = queryParams;\n return [name, sort, sortDirection, exact, ids];\n};\n\nexport const getQueryKeyFromProofListQueryParams = (queryParams?: Partial<ProofListQuery>) => {\n if (!queryParams) {\n return [];\n }\n const { name, sort, sortDirection, exact, ids, proofStates, proofSchemaIds } = queryParams;\n return [name, sort, sortDirection, exact, ids, proofStates, proofSchemaIds];\n};\n\nexport const getQueryKeyFromDidListQueryParams = (queryParams?: Partial<DidListQuery>) => {\n if (!queryParams) {\n return [];\n }\n\n const { name, did, type, deactivated, keyAlgorithms, keyRoles } = queryParams;\n return [name, did, type, deactivated, keyAlgorithms, keyRoles];\n};\n"],"mappings":";;;;;;AASO,MAAMA,wCAAwC,GAAIC,WAA0C,IAAK;EACtG,IAAI,CAACA,WAAW,EAAE;IAChB,OAAO,EAAE;EACX;EACA,MAAM;IAAEC,IAAI;IAAEC,IAAI;IAAEC,aAAa;IAAEC,KAAK;IAAEC,IAAI;IAAEC,GAAG;IAAEC,MAAM;IAAEC;EAAQ,CAAC,GAAGR,WAAW;EACpF,OAAO,CAACC,IAAI,EAAEC,IAAI,EAAEC,aAAa,EAAEC,KAAK,EAAEC,IAAI,EAAEC,GAAG,EAAEC,MAAM,EAAEC,OAAO,CAAC;AACvE,CAAC;AAACC,OAAA,CAAAV,wCAAA,GAAAA,wCAAA;AAEK,MAAMW,qCAAqC,GAAIV,WAAuC,IAAK;EAChG,IAAI,CAACA,WAAW,EAAE;IAChB,OAAO,EAAE;EACX;EAEA,MAAM;IACJW,QAAQ;IACRC,MAAM;IACNC,WAAW;IACXC,eAAe;IACfC,aAAa;IACbC,KAAK;IACLC,YAAY;IACZC,kBAAkB;IAClBC,UAAU;IACVC,UAAU;IACVC;EACF,CAAC,GAAGrB,WAAW;EACf,OAAO,CACLW,QAAQ,EACRC,MAAM,EACNC,WAAW,EACXC,eAAe,EACfC,aAAa,EACbC,KAAK,EACLC,YAAY,EACZC,kBAAkB,EAClBC,UAAU,EACVC,UAAU,EACVC,aAAa,CACd;AACH,CAAC;AAACZ,OAAA,CAAAC,qCAAA,GAAAA,qCAAA;AAEK,MAAMY,8CAA8C,GAAItB,WAAgD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C,GAAGhC,WAAW;EAC7E,OAAO,CAACC,IAAI,EAAE2B,GAAG,EAAEC,IAAI,EAAEC,WAAW,EAAEC,aAAa,EAAEC,QAAQ,CAAC;AAChE,CAAC;AAACvB,OAAA,CAAAkB,iCAAA,GAAAA,iCAAA","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.parseUniversalLink = void 0;
7
+ var _parseUrl = _interopRequireDefault(require("parse-url"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const parseUniversalLink = universalLink => {
10
+ let parsedUrl;
11
+ try {
12
+ parsedUrl = (0, _parseUrl.default)(universalLink);
13
+ } catch (e) {
14
+ return undefined;
15
+ }
16
+ if (parsedUrl.parse_failed) {
17
+ return undefined;
18
+ }
19
+ const protocol = parsedUrl.protocol;
20
+ if (!['http', 'https'].includes(protocol)) {
21
+ return undefined;
22
+ }
23
+ if (!parsedUrl.pathname.startsWith('/app-link/')) {
24
+ return undefined;
25
+ }
26
+ if (parsedUrl.pathname === '/app-link/schema') {
27
+ return parsedUrl.query.url;
28
+ }
29
+ const originalProtocol = parsedUrl.pathname.split('/').pop();
30
+ return `${originalProtocol}://?${parsedUrl.search}`;
31
+ };
32
+ exports.parseUniversalLink = parseUniversalLink;
33
+ //# sourceMappingURL=universal-links.js.map