@procivis/one-react-native-components 0.2.54 → 0.3.27
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.
- package/README.md +3 -8
- package/lib/commonjs/components/backup/index.js.map +1 -1
- package/lib/commonjs/components/backup/preview-credentials.js +18 -22
- package/lib/commonjs/components/backup/preview-credentials.js.map +1 -1
- package/lib/commonjs/components/credential/credential.js +11 -12
- package/lib/commonjs/components/credential/credential.js.map +1 -1
- package/lib/commonjs/components/credential/index.js.map +1 -1
- package/lib/commonjs/components/entity/EntityButtons.js +20 -25
- package/lib/commonjs/components/entity/EntityButtons.js.map +1 -1
- package/lib/commonjs/components/entity/entity-attributes.js +16 -18
- package/lib/commonjs/components/entity/entity-attributes.js.map +1 -1
- package/lib/commonjs/components/entity/entity-details-with-buttons.js +31 -23
- package/lib/commonjs/components/entity/entity-details-with-buttons.js.map +1 -1
- package/lib/commonjs/components/entity/entity-details.js +30 -31
- package/lib/commonjs/components/entity/entity-details.js.map +1 -1
- package/lib/commonjs/components/entity/index.js +2 -2
- package/lib/commonjs/components/entity/index.js.map +1 -1
- package/lib/commonjs/components/history/history-details-screen.js +67 -0
- package/lib/commonjs/components/history/history-details-screen.js.map +1 -0
- package/lib/commonjs/components/history/history-list-item-icon.js +97 -0
- package/lib/commonjs/components/history/history-list-item-icon.js.map +1 -0
- package/lib/commonjs/components/history/history-list-item.js +55 -0
- package/lib/commonjs/components/history/history-list-item.js.map +1 -0
- package/lib/commonjs/components/history/history-list-screen.js +123 -0
- package/lib/commonjs/components/history/history-list-screen.js.map +1 -0
- package/lib/commonjs/components/history/history-list-section-header.js +39 -0
- package/lib/commonjs/components/history/history-list-section-header.js.map +1 -0
- package/lib/commonjs/components/history/history-list.js +100 -0
- package/lib/commonjs/components/history/history-list.js.map +1 -0
- package/lib/commonjs/components/history/index.js +72 -0
- package/lib/commonjs/components/history/index.js.map +1 -0
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/navigation/header-buttons.js +21 -25
- package/lib/commonjs/components/navigation/header-buttons.js.map +1 -1
- package/lib/commonjs/components/navigation/index.js.map +1 -1
- package/lib/commonjs/components/proof-request/group.js +4 -5
- package/lib/commonjs/components/proof-request/group.js.map +1 -1
- package/lib/commonjs/components/proof-request/index.js.map +1 -1
- package/lib/commonjs/components/proof-request/select-credential.js +11 -12
- package/lib/commonjs/components/proof-request/select-credential.js.map +1 -1
- package/lib/commonjs/components/proof-request/share-credential.js +25 -28
- package/lib/commonjs/components/proof-request/share-credential.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/normalize-color.d.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/accessibility.js +11 -7
- package/lib/commonjs/ui-components/accessibility/accessibility.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/accessibilityHistory.js +8 -12
- package/lib/commonjs/ui-components/accessibility/accessibilityHistory.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/accessibilityHistoryWrappers.js +15 -17
- package/lib/commonjs/ui-components/accessibility/accessibilityHistoryWrappers.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/accessibilityLanguage.js +8 -10
- package/lib/commonjs/ui-components/accessibility/accessibilityLanguage.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/index.js +1 -30
- package/lib/commonjs/ui-components/accessibility/index.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/locale/index.js +2 -3
- package/lib/commonjs/ui-components/accessibility/locale/index.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/locale.test.js.map +1 -1
- package/lib/commonjs/ui-components/action-modal/ActionModal.js +9 -11
- package/lib/commonjs/ui-components/action-modal/ActionModal.js.map +1 -1
- package/lib/commonjs/ui-components/action-modal/index.js +1 -1
- package/lib/commonjs/ui-components/action-modal/index.js.map +1 -1
- package/lib/commonjs/ui-components/activity-indicator/activity-indicator.js +10 -12
- package/lib/commonjs/ui-components/activity-indicator/activity-indicator.js.map +1 -1
- package/lib/commonjs/ui-components/activity-indicator/index.js +1 -1
- package/lib/commonjs/ui-components/activity-indicator/index.js.map +1 -1
- package/lib/commonjs/ui-components/blur/blur-view.js +13 -15
- package/lib/commonjs/ui-components/blur/blur-view.js.map +1 -1
- package/lib/commonjs/ui-components/blur/index.js +2 -2
- package/lib/commonjs/ui-components/blur/index.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/back-button.js +12 -15
- package/lib/commonjs/ui-components/buttons/back-button.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/button.js +19 -22
- package/lib/commonjs/ui-components/buttons/button.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/connectivity-button.js +16 -18
- package/lib/commonjs/ui-components/buttons/connectivity-button.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/filter-button.js +8 -10
- package/lib/commonjs/ui-components/buttons/filter-button.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/ghost-button.js +12 -14
- package/lib/commonjs/ui-components/buttons/ghost-button.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/hold-button.js +244 -0
- package/lib/commonjs/ui-components/buttons/hold-button.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/index.js +9 -37
- package/lib/commonjs/ui-components/buttons/index.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/scan-button.js +7 -9
- package/lib/commonjs/ui-components/buttons/scan-button.js.map +1 -1
- package/lib/commonjs/ui-components/camera/camera-overlay.js +11 -14
- package/lib/commonjs/ui-components/camera/camera-overlay.js.map +1 -1
- package/lib/commonjs/ui-components/camera/index.js +2 -2
- package/lib/commonjs/ui-components/camera/index.js.map +1 -1
- package/lib/commonjs/ui-components/camera/qr-code-scanner.js +12 -14
- package/lib/commonjs/ui-components/camera/qr-code-scanner.js.map +1 -1
- package/lib/commonjs/ui-components/control/checkbox.js +11 -12
- package/lib/commonjs/ui-components/control/checkbox.js.map +1 -1
- package/lib/commonjs/ui-components/control/index.js.map +1 -1
- package/lib/commonjs/ui-components/control/switch.js +10 -12
- package/lib/commonjs/ui-components/control/switch.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/credential-card.js +22 -26
- package/lib/commonjs/ui-components/credential/card/credential-card.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/credential-details-card.js +30 -35
- package/lib/commonjs/ui-components/credential/card/credential-details-card.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js +27 -20
- package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/credential-header.js +25 -24
- package/lib/commonjs/ui-components/credential/card/credential-header.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js +27 -29
- package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/index.js +6 -41
- package/lib/commonjs/ui-components/credential/card/index.js.map +1 -1
- package/lib/commonjs/ui-components/credential/credential-attribute-item.js +51 -60
- package/lib/commonjs/ui-components/credential/credential-attribute-item.js.map +1 -1
- package/lib/commonjs/ui-components/credential/credential-carousel-images.js +18 -21
- package/lib/commonjs/ui-components/credential/credential-carousel-images.js.map +1 -1
- package/lib/commonjs/ui-components/credential/index.js +2 -25
- package/lib/commonjs/ui-components/credential/index.js.map +1 -1
- package/lib/commonjs/ui-components/credential/selector-status.js +3 -4
- package/lib/commonjs/ui-components/credential/selector-status.js.map +1 -1
- package/lib/commonjs/ui-components/credential/selector.js +8 -10
- package/lib/commonjs/ui-components/credential/selector.js.map +1 -1
- package/lib/commonjs/ui-components/detail/detail.js +12 -14
- package/lib/commonjs/ui-components/detail/detail.js.map +1 -1
- package/lib/commonjs/ui-components/detail/index.js +1 -1
- package/lib/commonjs/ui-components/detail/index.js.map +1 -1
- package/lib/commonjs/ui-components/entity/avatar.js +14 -16
- package/lib/commonjs/ui-components/entity/avatar.js.map +1 -1
- package/lib/commonjs/ui-components/entity/entity-cluster.js +16 -19
- package/lib/commonjs/ui-components/entity/entity-cluster.js.map +1 -1
- package/lib/commonjs/ui-components/entity/index.js +2 -2
- package/lib/commonjs/ui-components/entity/index.js.map +1 -1
- package/lib/commonjs/ui-components/header/focus-aware-status-bar.js +3 -4
- package/lib/commonjs/ui-components/header/focus-aware-status-bar.js.map +1 -1
- package/lib/commonjs/ui-components/header/foldable-header.js +14 -17
- package/lib/commonjs/ui-components/header/foldable-header.js.map +1 -1
- package/lib/commonjs/ui-components/header/header.js +12 -14
- package/lib/commonjs/ui-components/header/header.js.map +1 -1
- package/lib/commonjs/ui-components/header/index.js +4 -24
- package/lib/commonjs/ui-components/header/index.js.map +1 -1
- package/lib/commonjs/ui-components/header/navigation-header.js +27 -33
- package/lib/commonjs/ui-components/header/navigation-header.js.map +1 -1
- package/lib/commonjs/ui-components/history/data-item.js +30 -23
- package/lib/commonjs/ui-components/history/data-item.js.map +1 -1
- package/lib/commonjs/ui-components/history/history-details.js +181 -0
- package/lib/commonjs/ui-components/history/history-details.js.map +1 -0
- package/lib/commonjs/ui-components/history/{history-list-item.js → history-item.js} +47 -26
- package/lib/commonjs/ui-components/history/history-item.js.map +1 -0
- package/lib/commonjs/ui-components/history/history-section-header.js +7 -9
- package/lib/commonjs/ui-components/history/history-section-header.js.map +1 -1
- package/lib/commonjs/ui-components/history/history-section-list-item.js +13 -12
- package/lib/commonjs/ui-components/history/history-section-list-item.js.map +1 -1
- package/lib/commonjs/ui-components/history/index.js +30 -9
- package/lib/commonjs/ui-components/history/index.js.map +1 -1
- package/lib/commonjs/ui-components/icons/connectivity.js +19 -24
- package/lib/commonjs/ui-components/icons/connectivity.js.map +1 -1
- package/lib/commonjs/ui-components/icons/credential.js +60 -71
- package/lib/commonjs/ui-components/icons/credential.js.map +1 -1
- package/lib/commonjs/ui-components/icons/entity.js +36 -9
- package/lib/commonjs/ui-components/icons/entity.js.map +1 -1
- package/lib/commonjs/ui-components/icons/history.js +115 -133
- package/lib/commonjs/ui-components/icons/history.js.map +1 -1
- package/lib/commonjs/ui-components/icons/icons.js +73 -90
- package/lib/commonjs/ui-components/icons/icons.js.map +1 -1
- package/lib/commonjs/ui-components/icons/index.js.map +1 -1
- package/lib/commonjs/ui-components/icons/input.js +3 -3
- package/lib/commonjs/ui-components/icons/input.js.map +1 -1
- package/lib/commonjs/ui-components/icons/keypad.js +69 -81
- package/lib/commonjs/ui-components/icons/keypad.js.map +1 -1
- package/lib/commonjs/ui-components/icons/loader.js +4 -4
- package/lib/commonjs/ui-components/icons/loader.js.map +1 -1
- package/lib/commonjs/ui-components/icons/nerd-view.js +6 -9
- package/lib/commonjs/ui-components/icons/nerd-view.js.map +1 -1
- package/lib/commonjs/ui-components/icons/selector.js +8 -9
- package/lib/commonjs/ui-components/icons/selector.js.map +1 -1
- package/lib/commonjs/ui-components/icons/wallet.js +16 -19
- package/lib/commonjs/ui-components/icons/wallet.js.map +1 -1
- package/lib/commonjs/ui-components/image/image-or-component.js +15 -18
- package/lib/commonjs/ui-components/image/image-or-component.js.map +1 -1
- package/lib/commonjs/ui-components/image/index.js +2 -9
- package/lib/commonjs/ui-components/image/index.js.map +1 -1
- package/lib/commonjs/ui-components/index.js.map +1 -1
- package/lib/commonjs/ui-components/input/index.js +2 -2
- package/lib/commonjs/ui-components/input/index.js.map +1 -1
- package/lib/commonjs/ui-components/input/radio-group.js +28 -25
- package/lib/commonjs/ui-components/input/radio-group.js.map +1 -1
- package/lib/commonjs/ui-components/input/selection-input.js +27 -38
- package/lib/commonjs/ui-components/input/selection-input.js.map +1 -1
- package/lib/commonjs/ui-components/input/text-input.js +25 -28
- package/lib/commonjs/ui-components/input/text-input.js.map +1 -1
- package/lib/commonjs/ui-components/list/index.js +20 -2
- package/lib/commonjs/ui-components/list/index.js.map +1 -1
- package/lib/commonjs/ui-components/list/list-page-loading-indicator.js +14 -0
- package/lib/commonjs/ui-components/list/list-page-loading-indicator.js.map +1 -0
- package/lib/commonjs/ui-components/list/list-section-header.js +10 -12
- package/lib/commonjs/ui-components/list/list-section-header.js.map +1 -1
- package/lib/commonjs/ui-components/list/list-title-header.js +6 -8
- package/lib/commonjs/ui-components/list/list-title-header.js.map +1 -1
- package/lib/commonjs/ui-components/list/wallet/empty-list.js +73 -0
- package/lib/commonjs/ui-components/list/wallet/empty-list.js.map +1 -0
- package/lib/commonjs/ui-components/list/wallet/empty-search-result.js +41 -0
- package/lib/commonjs/ui-components/list/wallet/empty-search-result.js.map +1 -0
- package/lib/commonjs/ui-components/list/wallet/index.js +21 -0
- package/lib/commonjs/ui-components/list/wallet/index.js.map +1 -0
- package/lib/commonjs/ui-components/loader/index.js +2 -2
- package/lib/commonjs/ui-components/loader/index.js.map +1 -1
- package/lib/commonjs/ui-components/loader/loader.js +17 -17
- package/lib/commonjs/ui-components/loader/loader.js.map +1 -1
- package/lib/commonjs/ui-components/loader/loading-result.js +22 -21
- package/lib/commonjs/ui-components/loader/loading-result.js.map +1 -1
- package/lib/commonjs/ui-components/nerd-view/index.js +2 -8
- package/lib/commonjs/ui-components/nerd-view/index.js.map +1 -1
- package/lib/commonjs/ui-components/nerd-view/nerd-mode-item.js +37 -41
- package/lib/commonjs/ui-components/nerd-view/nerd-mode-item.js.map +1 -1
- package/lib/commonjs/ui-components/pin/index.js +2 -2
- package/lib/commonjs/ui-components/pin/index.js.map +1 -1
- package/lib/commonjs/ui-components/pin/keypad.js +19 -23
- package/lib/commonjs/ui-components/pin/keypad.js.map +1 -1
- package/lib/commonjs/ui-components/pin/pin-code-screen.js +19 -21
- package/lib/commonjs/ui-components/pin/pin-code-screen.js.map +1 -1
- package/lib/commonjs/ui-components/pin/pin-lock-animation.js +1 -2
- package/lib/commonjs/ui-components/pin/pin-lock-animation.js.map +1 -1
- package/lib/commonjs/ui-components/pin/pin-lock.js +10 -12
- package/lib/commonjs/ui-components/pin/pin-lock.js.map +1 -1
- package/lib/commonjs/ui-components/pin/pins.js +8 -9
- package/lib/commonjs/ui-components/pin/pins.js.map +1 -1
- package/lib/commonjs/ui-components/screens/backup-screen.js +15 -18
- package/lib/commonjs/ui-components/screens/backup-screen.js.map +1 -1
- package/lib/commonjs/ui-components/screens/image-preview-screen.js +12 -14
- package/lib/commonjs/ui-components/screens/image-preview-screen.js.map +1 -1
- package/lib/commonjs/ui-components/screens/index.js +8 -49
- package/lib/commonjs/ui-components/screens/index.js.map +1 -1
- package/lib/commonjs/ui-components/screens/nerd-mode-screen.js +35 -42
- package/lib/commonjs/ui-components/screens/nerd-mode-screen.js.map +1 -1
- package/lib/commonjs/ui-components/screens/qr-code-scanner-screen.js +14 -16
- package/lib/commonjs/ui-components/screens/qr-code-scanner-screen.js.map +1 -1
- package/lib/commonjs/ui-components/screens/scroll-view-screen.js +12 -14
- package/lib/commonjs/ui-components/screens/scroll-view-screen.js.map +1 -1
- package/lib/commonjs/ui-components/screens/section-list-screen.js +13 -15
- package/lib/commonjs/ui-components/screens/section-list-screen.js.map +1 -1
- package/lib/commonjs/ui-components/searchbar/animated-search-bar.js +10 -12
- package/lib/commonjs/ui-components/searchbar/animated-search-bar.js.map +1 -1
- package/lib/commonjs/ui-components/searchbar/index.js +2 -2
- package/lib/commonjs/ui-components/searchbar/index.js.map +1 -1
- package/lib/commonjs/ui-components/searchbar/search-bar.js +15 -17
- package/lib/commonjs/ui-components/searchbar/search-bar.js.map +1 -1
- package/lib/commonjs/ui-components/settings/button-setting.js +14 -16
- package/lib/commonjs/ui-components/settings/button-setting.js.map +1 -1
- package/lib/commonjs/ui-components/settings/index.js +2 -2
- package/lib/commonjs/ui-components/settings/index.js.map +1 -1
- package/lib/commonjs/ui-components/settings/setting-item-separator.js +6 -8
- package/lib/commonjs/ui-components/settings/setting-item-separator.js.map +1 -1
- package/lib/commonjs/ui-components/settings/setting-item.js +11 -13
- package/lib/commonjs/ui-components/settings/setting-item.js.map +1 -1
- package/lib/commonjs/ui-components/settings/settings-button.js +7 -9
- package/lib/commonjs/ui-components/settings/settings-button.js.map +1 -1
- package/lib/commonjs/ui-components/settings/switch-setting.js +11 -13
- package/lib/commonjs/ui-components/settings/switch-setting.js.map +1 -1
- package/lib/commonjs/ui-components/state/error-screen.js +10 -12
- package/lib/commonjs/ui-components/state/error-screen.js.map +1 -1
- package/lib/commonjs/ui-components/state/index.js +2 -2
- package/lib/commonjs/ui-components/state/index.js.map +1 -1
- package/lib/commonjs/ui-components/text/base.js +14 -16
- package/lib/commonjs/ui-components/text/base.js.map +1 -1
- package/lib/commonjs/ui-components/text/font.js +11 -13
- package/lib/commonjs/ui-components/text/font.js.map +1 -1
- package/lib/commonjs/ui-components/text/index.js +2 -9
- package/lib/commonjs/ui-components/text/index.js.map +1 -1
- package/lib/commonjs/ui-components/text/typography.js +10 -13
- package/lib/commonjs/ui-components/text/typography.js.map +1 -1
- package/lib/commonjs/ui-components/theme/color-scheme-context.js +2 -1
- package/lib/commonjs/ui-components/theme/color-scheme-context.js.map +1 -1
- package/lib/commonjs/ui-components/theme/color-scheme.js.map +1 -1
- package/lib/commonjs/ui-components/theme/index.js.map +1 -1
- package/lib/commonjs/utils/array.js.map +1 -1
- package/lib/commonjs/utils/backup.js.map +1 -1
- package/lib/commonjs/utils/color.js +1 -1
- package/lib/commonjs/utils/color.js.map +1 -1
- package/lib/commonjs/utils/contrasting-status-bar.js +8 -10
- package/lib/commonjs/utils/contrasting-status-bar.js.map +1 -1
- package/lib/commonjs/utils/date.js +3 -3
- package/lib/commonjs/utils/date.js.map +1 -1
- package/lib/commonjs/utils/filtering.js +11 -0
- package/lib/commonjs/utils/filtering.js.map +1 -0
- package/lib/commonjs/utils/history.js +76 -0
- package/lib/commonjs/utils/history.js.map +1 -0
- package/lib/commonjs/utils/hooks/connectivity/connectivity.js +37 -23
- package/lib/commonjs/utils/hooks/connectivity/connectivity.js.map +1 -1
- package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js +6 -0
- package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/backup.js +31 -31
- package/lib/commonjs/utils/hooks/core/backup.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/cache.js +44 -0
- package/lib/commonjs/utils/hooks/core/cache.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/core-config.js +15 -1
- package/lib/commonjs/utils/hooks/core/core-config.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/core-context.js +15 -10
- package/lib/commonjs/utils/hooks/core/core-context.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/core-init.js +44 -34
- package/lib/commonjs/utils/hooks/core/core-init.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/credential-schemas.js +16 -27
- package/lib/commonjs/utils/hooks/core/credential-schemas.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/credentials.js +28 -37
- package/lib/commonjs/utils/hooks/core/credentials.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/dids.js +4 -6
- package/lib/commonjs/utils/hooks/core/dids.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/error-code.js +3 -4
- package/lib/commonjs/utils/hooks/core/error-code.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/history.js +5 -37
- package/lib/commonjs/utils/hooks/core/history.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/identifiers.js +20 -0
- package/lib/commonjs/utils/hooks/core/identifiers.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/index.js +22 -0
- package/lib/commonjs/utils/hooks/core/index.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/proof-schemas.js +23 -38
- package/lib/commonjs/utils/hooks/core/proof-schemas.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/proofs.js +108 -76
- package/lib/commonjs/utils/hooks/core/proofs.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/query.js +1 -2
- package/lib/commonjs/utils/hooks/core/query.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/trust-entity.js +17 -7
- package/lib/commonjs/utils/hooks/core/trust-entity.js.map +1 -1
- package/lib/commonjs/utils/hooks/credential-card/credential-card-expanding.js.map +1 -1
- package/lib/commonjs/utils/hooks/header/on-scroll-header-state.js +1 -2
- package/lib/commonjs/utils/hooks/header/on-scroll-header-state.js.map +1 -1
- package/lib/commonjs/utils/hooks/http/client.js.map +1 -1
- package/lib/commonjs/utils/hooks/index.js.map +1 -1
- package/lib/commonjs/utils/hooks/list/list-content-inset.js +9 -10
- package/lib/commonjs/utils/hooks/list/list-content-inset.js.map +1 -1
- package/lib/commonjs/utils/hooks/navigation/before-remove.js.map +1 -1
- package/lib/commonjs/utils/hooks/navigation/close-button-timeout.js.map +1 -1
- package/lib/commonjs/utils/hooks/navigation/deep-link.js +3 -4
- package/lib/commonjs/utils/hooks/navigation/deep-link.js.map +1 -1
- package/lib/commonjs/utils/hooks/navigation/index.js.map +1 -1
- package/lib/commonjs/utils/hooks/navigation/open-settings.js +1 -2
- package/lib/commonjs/utils/hooks/navigation/open-settings.js.map +1 -1
- package/lib/commonjs/utils/hooks/pin-security/pin-security.js +1 -2
- package/lib/commonjs/utils/hooks/pin-security/pin-security.js.map +1 -1
- package/lib/commonjs/utils/hooks/revocation/credential-status.js +17 -26
- package/lib/commonjs/utils/hooks/revocation/credential-status.js.map +1 -1
- package/lib/commonjs/utils/index.js +37 -1
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/navigation.js +5 -5
- package/lib/commonjs/utils/navigation.js.map +1 -1
- package/lib/commonjs/utils/parsers/credential-images.js +1 -1
- package/lib/commonjs/utils/parsers/credential-images.js.map +1 -1
- package/lib/commonjs/utils/parsers/credential-sharing.js +24 -25
- package/lib/commonjs/utils/parsers/credential-sharing.js.map +1 -1
- package/lib/commonjs/utils/parsers/credential.js +23 -26
- package/lib/commonjs/utils/parsers/credential.js.map +1 -1
- package/lib/commonjs/utils/parsers/index.js +11 -0
- package/lib/commonjs/utils/parsers/index.js.map +1 -1
- package/lib/commonjs/utils/parsers/query.js +4 -3
- package/lib/commonjs/utils/parsers/query.js.map +1 -1
- package/lib/commonjs/utils/parsers/universal-links.js +33 -0
- package/lib/commonjs/utils/parsers/universal-links.js.map +1 -0
- package/lib/commonjs/utils/parsers/universal-links.test.js +40 -0
- package/lib/commonjs/utils/parsers/universal-links.test.js.map +1 -0
- package/lib/commonjs/utils/ref.js.map +1 -1
- package/lib/commonjs/utils/reporting.js +4 -2
- package/lib/commonjs/utils/reporting.js.map +1 -1
- package/lib/commonjs/utils/string.js.map +1 -1
- package/lib/commonjs/utils/testID.js +1 -4
- package/lib/commonjs/utils/testID.js.map +1 -1
- package/lib/commonjs/utils/testID.test.js.map +1 -1
- package/lib/commonjs/utils/useMemoAsync.js +9 -0
- package/lib/commonjs/utils/useMemoAsync.js.map +1 -1
- package/lib/commonjs/utils/uuid.js +1 -1
- package/lib/commonjs/utils/uuid.js.map +1 -1
- package/lib/module/components/backup/index.js.map +1 -1
- package/lib/module/components/backup/preview-credentials.js +17 -21
- package/lib/module/components/backup/preview-credentials.js.map +1 -1
- package/lib/module/components/credential/credential.js +10 -11
- package/lib/module/components/credential/credential.js.map +1 -1
- package/lib/module/components/credential/index.js.map +1 -1
- package/lib/module/components/entity/EntityButtons.js +17 -21
- package/lib/module/components/entity/EntityButtons.js.map +1 -1
- package/lib/module/components/entity/entity-attributes.js +13 -14
- package/lib/module/components/entity/entity-attributes.js.map +1 -1
- package/lib/module/components/entity/entity-details-with-buttons.js +29 -20
- package/lib/module/components/entity/entity-details-with-buttons.js.map +1 -1
- package/lib/module/components/entity/entity-details.js +28 -28
- package/lib/module/components/entity/entity-details.js.map +1 -1
- package/lib/module/components/entity/index.js.map +1 -1
- package/lib/module/components/history/history-details-screen.js +59 -0
- package/lib/module/components/history/history-details-screen.js.map +1 -0
- package/lib/module/components/history/history-list-item-icon.js +87 -0
- package/lib/module/components/history/history-list-item-icon.js.map +1 -0
- package/lib/module/components/history/history-list-item.js +46 -0
- package/lib/module/components/history/history-list-item.js.map +1 -0
- package/lib/module/components/history/history-list-screen.js +114 -0
- package/lib/module/components/history/history-list-screen.js.map +1 -0
- package/lib/module/components/history/history-list-section-header.js +29 -0
- package/lib/module/components/history/history-list-section-header.js.map +1 -0
- package/lib/module/components/history/history-list.js +90 -0
- package/lib/module/components/history/history-list.js.map +1 -0
- package/lib/module/components/history/index.js +7 -0
- package/lib/module/components/history/index.js.map +1 -0
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/navigation/header-buttons.js +19 -23
- package/lib/module/components/navigation/header-buttons.js.map +1 -1
- package/lib/module/components/navigation/index.js.map +1 -1
- package/lib/module/components/proof-request/group.js +3 -4
- package/lib/module/components/proof-request/group.js.map +1 -1
- package/lib/module/components/proof-request/index.js.map +1 -1
- package/lib/module/components/proof-request/select-credential.js +10 -11
- package/lib/module/components/proof-request/select-credential.js.map +1 -1
- package/lib/module/components/proof-request/share-credential.js +23 -26
- package/lib/module/components/proof-request/share-credential.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/normalize-color.d.js.map +1 -1
- package/lib/module/ui-components/accessibility/accessibility.js +5 -7
- package/lib/module/ui-components/accessibility/accessibility.js.map +1 -1
- package/lib/module/ui-components/accessibility/accessibilityHistory.js +4 -8
- package/lib/module/ui-components/accessibility/accessibilityHistory.js.map +1 -1
- package/lib/module/ui-components/accessibility/accessibilityHistoryWrappers.js +10 -8
- package/lib/module/ui-components/accessibility/accessibilityHistoryWrappers.js.map +1 -1
- package/lib/module/ui-components/accessibility/accessibilityLanguage.js +6 -8
- package/lib/module/ui-components/accessibility/accessibilityLanguage.js.map +1 -1
- package/lib/module/ui-components/accessibility/index.js +4 -4
- package/lib/module/ui-components/accessibility/index.js.map +1 -1
- package/lib/module/ui-components/accessibility/locale/index.js.map +1 -1
- package/lib/module/ui-components/accessibility/locale.test.js.map +1 -1
- package/lib/module/ui-components/action-modal/ActionModal.js +7 -8
- package/lib/module/ui-components/action-modal/ActionModal.js.map +1 -1
- package/lib/module/ui-components/action-modal/index.js.map +1 -1
- package/lib/module/ui-components/activity-indicator/activity-indicator.js +6 -7
- package/lib/module/ui-components/activity-indicator/activity-indicator.js.map +1 -1
- package/lib/module/ui-components/activity-indicator/index.js.map +1 -1
- package/lib/module/ui-components/blur/blur-view.js +10 -11
- package/lib/module/ui-components/blur/blur-view.js.map +1 -1
- package/lib/module/ui-components/blur/index.js.map +1 -1
- package/lib/module/ui-components/buttons/back-button.js +10 -11
- package/lib/module/ui-components/buttons/back-button.js.map +1 -1
- package/lib/module/ui-components/buttons/button.js +17 -18
- package/lib/module/ui-components/buttons/button.js.map +1 -1
- package/lib/module/ui-components/buttons/connectivity-button.js +14 -14
- package/lib/module/ui-components/buttons/connectivity-button.js.map +1 -1
- package/lib/module/ui-components/buttons/filter-button.js +6 -7
- package/lib/module/ui-components/buttons/filter-button.js.map +1 -1
- package/lib/module/ui-components/buttons/ghost-button.js +9 -10
- package/lib/module/ui-components/buttons/ghost-button.js.map +1 -1
- package/lib/module/ui-components/buttons/hold-button.js +236 -0
- package/lib/module/ui-components/buttons/hold-button.js.map +1 -0
- package/lib/module/ui-components/buttons/index.js +8 -7
- package/lib/module/ui-components/buttons/index.js.map +1 -1
- package/lib/module/ui-components/buttons/scan-button.js +5 -6
- package/lib/module/ui-components/buttons/scan-button.js.map +1 -1
- package/lib/module/ui-components/camera/camera-overlay.js +7 -9
- package/lib/module/ui-components/camera/camera-overlay.js.map +1 -1
- package/lib/module/ui-components/camera/index.js.map +1 -1
- package/lib/module/ui-components/camera/qr-code-scanner.js +8 -9
- package/lib/module/ui-components/camera/qr-code-scanner.js.map +1 -1
- package/lib/module/ui-components/control/checkbox.js +9 -10
- package/lib/module/ui-components/control/checkbox.js.map +1 -1
- package/lib/module/ui-components/control/index.js.map +1 -1
- package/lib/module/ui-components/control/switch.js +8 -9
- package/lib/module/ui-components/control/switch.js.map +1 -1
- package/lib/module/ui-components/credential/card/credential-card.js +16 -17
- package/lib/module/ui-components/credential/card/credential-card.js.map +1 -1
- package/lib/module/ui-components/credential/card/credential-details-card.js +26 -30
- package/lib/module/ui-components/credential/card/credential-details-card.js.map +1 -1
- package/lib/module/ui-components/credential/card/credential-details-list-item.js +23 -15
- package/lib/module/ui-components/credential/card/credential-details-list-item.js.map +1 -1
- package/lib/module/ui-components/credential/card/credential-header.js +21 -19
- package/lib/module/ui-components/credential/card/credential-header.js.map +1 -1
- package/lib/module/ui-components/credential/card/credential-image-carousel.js +23 -23
- package/lib/module/ui-components/credential/card/credential-image-carousel.js.map +1 -1
- package/lib/module/ui-components/credential/card/index.js +10 -10
- package/lib/module/ui-components/credential/card/index.js.map +1 -1
- package/lib/module/ui-components/credential/credential-attribute-item.js +47 -55
- package/lib/module/ui-components/credential/credential-attribute-item.js.map +1 -1
- package/lib/module/ui-components/credential/credential-carousel-images.js +15 -18
- package/lib/module/ui-components/credential/credential-carousel-images.js.map +1 -1
- package/lib/module/ui-components/credential/index.js +2 -2
- package/lib/module/ui-components/credential/index.js.map +1 -1
- package/lib/module/ui-components/credential/selector-status.js +3 -3
- package/lib/module/ui-components/credential/selector-status.js.map +1 -1
- package/lib/module/ui-components/credential/selector.js +5 -6
- package/lib/module/ui-components/credential/selector.js.map +1 -1
- package/lib/module/ui-components/detail/detail.js +9 -10
- package/lib/module/ui-components/detail/detail.js.map +1 -1
- package/lib/module/ui-components/detail/index.js.map +1 -1
- package/lib/module/ui-components/entity/avatar.js +10 -11
- package/lib/module/ui-components/entity/avatar.js.map +1 -1
- package/lib/module/ui-components/entity/entity-cluster.js +12 -14
- package/lib/module/ui-components/entity/entity-cluster.js.map +1 -1
- package/lib/module/ui-components/entity/index.js.map +1 -1
- package/lib/module/ui-components/header/focus-aware-status-bar.js +1 -1
- package/lib/module/ui-components/header/focus-aware-status-bar.js.map +1 -1
- package/lib/module/ui-components/header/foldable-header.js +10 -12
- package/lib/module/ui-components/header/foldable-header.js.map +1 -1
- package/lib/module/ui-components/header/header.js +10 -11
- package/lib/module/ui-components/header/header.js.map +1 -1
- package/lib/module/ui-components/header/index.js +6 -6
- package/lib/module/ui-components/header/index.js.map +1 -1
- package/lib/module/ui-components/header/navigation-header.js +23 -28
- package/lib/module/ui-components/header/navigation-header.js.map +1 -1
- package/lib/module/ui-components/history/data-item.js +23 -15
- package/lib/module/ui-components/history/data-item.js.map +1 -1
- package/lib/module/ui-components/history/history-details.js +171 -0
- package/lib/module/ui-components/history/history-details.js.map +1 -0
- package/lib/module/ui-components/history/{history-list-item.js → history-item.js} +44 -22
- package/lib/module/ui-components/history/history-item.js.map +1 -0
- package/lib/module/ui-components/history/history-section-header.js +6 -7
- package/lib/module/ui-components/history/history-section-header.js.map +1 -1
- package/lib/module/ui-components/history/history-section-list-item.js +8 -9
- package/lib/module/ui-components/history/history-section-list-item.js.map +1 -1
- package/lib/module/ui-components/history/index.js +5 -4
- package/lib/module/ui-components/history/index.js.map +1 -1
- package/lib/module/ui-components/icons/connectivity.js +16 -21
- package/lib/module/ui-components/icons/connectivity.js.map +1 -1
- package/lib/module/ui-components/icons/credential.js +57 -68
- package/lib/module/ui-components/icons/credential.js.map +1 -1
- package/lib/module/ui-components/icons/entity.js +31 -5
- package/lib/module/ui-components/icons/entity.js.map +1 -1
- package/lib/module/ui-components/icons/history.js +103 -128
- package/lib/module/ui-components/icons/history.js.map +1 -1
- package/lib/module/ui-components/icons/icons.js +70 -87
- package/lib/module/ui-components/icons/icons.js.map +1 -1
- package/lib/module/ui-components/icons/index.js.map +1 -1
- package/lib/module/ui-components/icons/input.js.map +1 -1
- package/lib/module/ui-components/icons/keypad.js +66 -78
- package/lib/module/ui-components/icons/keypad.js.map +1 -1
- package/lib/module/ui-components/icons/loader.js +1 -1
- package/lib/module/ui-components/icons/loader.js.map +1 -1
- package/lib/module/ui-components/icons/nerd-view.js.map +1 -1
- package/lib/module/ui-components/icons/selector.js +5 -6
- package/lib/module/ui-components/icons/selector.js.map +1 -1
- package/lib/module/ui-components/icons/wallet.js +13 -16
- package/lib/module/ui-components/icons/wallet.js.map +1 -1
- package/lib/module/ui-components/image/image-or-component.js +12 -14
- package/lib/module/ui-components/image/image-or-component.js.map +1 -1
- package/lib/module/ui-components/image/index.js +2 -2
- package/lib/module/ui-components/image/index.js.map +1 -1
- package/lib/module/ui-components/index.js.map +1 -1
- package/lib/module/ui-components/input/index.js.map +1 -1
- package/lib/module/ui-components/input/radio-group.js +26 -22
- package/lib/module/ui-components/input/radio-group.js.map +1 -1
- package/lib/module/ui-components/input/selection-input.js +21 -31
- package/lib/module/ui-components/input/selection-input.js.map +1 -1
- package/lib/module/ui-components/input/text-input.js +21 -22
- package/lib/module/ui-components/input/text-input.js.map +1 -1
- package/lib/module/ui-components/list/index.js +1 -0
- package/lib/module/ui-components/list/index.js.map +1 -1
- package/lib/module/ui-components/list/list-page-loading-indicator.js +7 -0
- package/lib/module/ui-components/list/list-page-loading-indicator.js.map +1 -0
- package/lib/module/ui-components/list/list-section-header.js +8 -9
- package/lib/module/ui-components/list/list-section-header.js.map +1 -1
- package/lib/module/ui-components/list/list-title-header.js +4 -5
- package/lib/module/ui-components/list/list-title-header.js.map +1 -1
- package/lib/module/ui-components/list/wallet/empty-list.js +66 -0
- package/lib/module/ui-components/list/wallet/empty-list.js.map +1 -0
- package/lib/module/ui-components/list/wallet/empty-search-result.js +34 -0
- package/lib/module/ui-components/list/wallet/empty-search-result.js.map +1 -0
- package/lib/module/ui-components/list/wallet/index.js +4 -0
- package/lib/module/ui-components/list/wallet/index.js.map +1 -0
- package/lib/module/ui-components/loader/index.js.map +1 -1
- package/lib/module/ui-components/loader/loader.js +14 -12
- package/lib/module/ui-components/loader/loader.js.map +1 -1
- package/lib/module/ui-components/loader/loading-result.js +21 -19
- package/lib/module/ui-components/loader/loading-result.js.map +1 -1
- package/lib/module/ui-components/nerd-view/index.js +2 -2
- package/lib/module/ui-components/nerd-view/index.js.map +1 -1
- package/lib/module/ui-components/nerd-view/nerd-mode-item.js +31 -34
- package/lib/module/ui-components/nerd-view/nerd-mode-item.js.map +1 -1
- package/lib/module/ui-components/pin/index.js.map +1 -1
- package/lib/module/ui-components/pin/keypad.js +17 -19
- package/lib/module/ui-components/pin/keypad.js.map +1 -1
- package/lib/module/ui-components/pin/pin-code-screen.js +16 -17
- package/lib/module/ui-components/pin/pin-code-screen.js.map +1 -1
- package/lib/module/ui-components/pin/pin-lock-animation.js.map +1 -1
- package/lib/module/ui-components/pin/pin-lock.js +6 -7
- package/lib/module/ui-components/pin/pin-lock.js.map +1 -1
- package/lib/module/ui-components/pin/pins.js +7 -8
- package/lib/module/ui-components/pin/pins.js.map +1 -1
- package/lib/module/ui-components/screens/backup-screen.js +13 -14
- package/lib/module/ui-components/screens/backup-screen.js.map +1 -1
- package/lib/module/ui-components/screens/image-preview-screen.js +9 -10
- package/lib/module/ui-components/screens/image-preview-screen.js.map +1 -1
- package/lib/module/ui-components/screens/index.js +12 -12
- package/lib/module/ui-components/screens/index.js.map +1 -1
- package/lib/module/ui-components/screens/nerd-mode-screen.js +30 -35
- package/lib/module/ui-components/screens/nerd-mode-screen.js.map +1 -1
- package/lib/module/ui-components/screens/qr-code-scanner-screen.js +10 -11
- package/lib/module/ui-components/screens/qr-code-scanner-screen.js.map +1 -1
- package/lib/module/ui-components/screens/scroll-view-screen.js +10 -11
- package/lib/module/ui-components/screens/scroll-view-screen.js.map +1 -1
- package/lib/module/ui-components/screens/section-list-screen.js +11 -12
- package/lib/module/ui-components/screens/section-list-screen.js.map +1 -1
- package/lib/module/ui-components/searchbar/animated-search-bar.js +6 -7
- package/lib/module/ui-components/searchbar/animated-search-bar.js.map +1 -1
- package/lib/module/ui-components/searchbar/index.js.map +1 -1
- package/lib/module/ui-components/searchbar/search-bar.js +11 -12
- package/lib/module/ui-components/searchbar/search-bar.js.map +1 -1
- package/lib/module/ui-components/settings/button-setting.js +10 -11
- package/lib/module/ui-components/settings/button-setting.js.map +1 -1
- package/lib/module/ui-components/settings/index.js.map +1 -1
- package/lib/module/ui-components/settings/setting-item-separator.js +4 -5
- package/lib/module/ui-components/settings/setting-item-separator.js.map +1 -1
- package/lib/module/ui-components/settings/setting-item.js +7 -8
- package/lib/module/ui-components/settings/setting-item.js.map +1 -1
- package/lib/module/ui-components/settings/settings-button.js +5 -6
- package/lib/module/ui-components/settings/settings-button.js.map +1 -1
- package/lib/module/ui-components/settings/switch-setting.js +9 -10
- package/lib/module/ui-components/settings/switch-setting.js.map +1 -1
- package/lib/module/ui-components/state/error-screen.js +7 -8
- package/lib/module/ui-components/state/error-screen.js.map +1 -1
- package/lib/module/ui-components/state/index.js.map +1 -1
- package/lib/module/ui-components/text/base.js +12 -13
- package/lib/module/ui-components/text/base.js.map +1 -1
- package/lib/module/ui-components/text/font.js +10 -11
- package/lib/module/ui-components/text/font.js.map +1 -1
- package/lib/module/ui-components/text/index.js +2 -2
- package/lib/module/ui-components/text/index.js.map +1 -1
- package/lib/module/ui-components/text/typography.js +8 -10
- package/lib/module/ui-components/text/typography.js.map +1 -1
- package/lib/module/ui-components/theme/color-scheme-context.js +1 -0
- package/lib/module/ui-components/theme/color-scheme-context.js.map +1 -1
- package/lib/module/ui-components/theme/color-scheme.js.map +1 -1
- package/lib/module/ui-components/theme/index.js.map +1 -1
- package/lib/module/utils/array.js.map +1 -1
- package/lib/module/utils/backup.js.map +1 -1
- package/lib/module/utils/color.js.map +1 -1
- package/lib/module/utils/contrasting-status-bar.js +5 -6
- package/lib/module/utils/contrasting-status-bar.js.map +1 -1
- package/lib/module/utils/date.js +4 -4
- package/lib/module/utils/date.js.map +1 -1
- package/lib/module/utils/filtering.js +4 -0
- package/lib/module/utils/filtering.js.map +1 -0
- package/lib/module/utils/history.js +66 -0
- package/lib/module/utils/history.js.map +1 -0
- package/lib/module/utils/hooks/connectivity/connectivity.js +36 -19
- package/lib/module/utils/hooks/connectivity/connectivity.js.map +1 -1
- package/lib/module/utils/hooks/connectivity/connectivity.test.js +6 -0
- package/lib/module/utils/hooks/connectivity/connectivity.test.js.map +1 -1
- package/lib/module/utils/hooks/core/backup.js +31 -31
- package/lib/module/utils/hooks/core/backup.js.map +1 -1
- package/lib/module/utils/hooks/core/cache.js +37 -0
- package/lib/module/utils/hooks/core/cache.js.map +1 -0
- package/lib/module/utils/hooks/core/core-config.js +11 -0
- package/lib/module/utils/hooks/core/core-config.js.map +1 -1
- package/lib/module/utils/hooks/core/core-context.js +14 -9
- package/lib/module/utils/hooks/core/core-context.js.map +1 -1
- package/lib/module/utils/hooks/core/core-init.js +42 -30
- package/lib/module/utils/hooks/core/core-init.js.map +1 -1
- package/lib/module/utils/hooks/core/credential-schemas.js +12 -19
- package/lib/module/utils/hooks/core/credential-schemas.js.map +1 -1
- package/lib/module/utils/hooks/core/credentials.js +27 -36
- package/lib/module/utils/hooks/core/credentials.js.map +1 -1
- package/lib/module/utils/hooks/core/dids.js +3 -4
- package/lib/module/utils/hooks/core/dids.js.map +1 -1
- package/lib/module/utils/hooks/core/error-code.js +3 -3
- package/lib/module/utils/hooks/core/error-code.js.map +1 -1
- package/lib/module/utils/hooks/core/history.js +4 -35
- package/lib/module/utils/hooks/core/history.js.map +1 -1
- package/lib/module/utils/hooks/core/identifiers.js +13 -0
- package/lib/module/utils/hooks/core/identifiers.js.map +1 -0
- package/lib/module/utils/hooks/core/index.js +2 -0
- package/lib/module/utils/hooks/core/index.js.map +1 -1
- package/lib/module/utils/hooks/core/proof-schemas.js +19 -30
- package/lib/module/utils/hooks/core/proof-schemas.js.map +1 -1
- package/lib/module/utils/hooks/core/proofs.js +102 -67
- package/lib/module/utils/hooks/core/proofs.js.map +1 -1
- package/lib/module/utils/hooks/core/query.js.map +1 -1
- package/lib/module/utils/hooks/core/trust-entity.js +16 -6
- package/lib/module/utils/hooks/core/trust-entity.js.map +1 -1
- package/lib/module/utils/hooks/credential-card/credential-card-expanding.js.map +1 -1
- package/lib/module/utils/hooks/header/on-scroll-header-state.js +1 -2
- package/lib/module/utils/hooks/header/on-scroll-header-state.js.map +1 -1
- package/lib/module/utils/hooks/http/client.js.map +1 -1
- package/lib/module/utils/hooks/index.js.map +1 -1
- package/lib/module/utils/hooks/list/list-content-inset.js +9 -10
- package/lib/module/utils/hooks/list/list-content-inset.js.map +1 -1
- package/lib/module/utils/hooks/navigation/before-remove.js.map +1 -1
- package/lib/module/utils/hooks/navigation/close-button-timeout.js.map +1 -1
- package/lib/module/utils/hooks/navigation/deep-link.js +3 -4
- package/lib/module/utils/hooks/navigation/deep-link.js.map +1 -1
- package/lib/module/utils/hooks/navigation/index.js.map +1 -1
- package/lib/module/utils/hooks/navigation/open-settings.js +1 -2
- package/lib/module/utils/hooks/navigation/open-settings.js.map +1 -1
- package/lib/module/utils/hooks/pin-security/pin-security.js +1 -2
- package/lib/module/utils/hooks/pin-security/pin-security.js.map +1 -1
- package/lib/module/utils/hooks/revocation/credential-status.js +17 -26
- package/lib/module/utils/hooks/revocation/credential-status.js.map +1 -1
- package/lib/module/utils/index.js +3 -0
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/navigation.js +5 -5
- package/lib/module/utils/navigation.js.map +1 -1
- package/lib/module/utils/parsers/credential-images.js.map +1 -1
- package/lib/module/utils/parsers/credential-sharing.js +23 -24
- package/lib/module/utils/parsers/credential-sharing.js.map +1 -1
- package/lib/module/utils/parsers/credential.js +23 -25
- package/lib/module/utils/parsers/credential.js.map +1 -1
- package/lib/module/utils/parsers/index.js +1 -0
- package/lib/module/utils/parsers/index.js.map +1 -1
- package/lib/module/utils/parsers/query.js +4 -3
- package/lib/module/utils/parsers/query.js.map +1 -1
- package/lib/module/utils/parsers/universal-links.js +25 -0
- package/lib/module/utils/parsers/universal-links.js.map +1 -0
- package/lib/module/utils/parsers/universal-links.test.js +38 -0
- package/lib/module/utils/parsers/universal-links.test.js.map +1 -0
- package/lib/module/utils/ref.js.map +1 -1
- package/lib/module/utils/reporting.js +1 -0
- package/lib/module/utils/reporting.js.map +1 -1
- package/lib/module/utils/string.js.map +1 -1
- package/lib/module/utils/testID.js +1 -4
- package/lib/module/utils/testID.js.map +1 -1
- package/lib/module/utils/testID.test.js.map +1 -1
- package/lib/module/utils/useMemoAsync.js +10 -0
- package/lib/module/utils/useMemoAsync.js.map +1 -1
- package/lib/module/utils/uuid.js.map +1 -1
- package/lib/typescript/components/entity/entity-attributes.d.ts +1 -0
- package/lib/typescript/components/entity/entity-details-with-buttons.d.ts +3 -2
- package/lib/typescript/components/entity/entity-details.d.ts +3 -2
- package/lib/typescript/components/history/history-details-screen.d.ts +20 -0
- package/lib/typescript/components/history/history-list-item-icon.d.ts +8 -0
- package/lib/typescript/components/history/history-list-item.d.ts +21 -0
- package/lib/typescript/components/history/history-list-screen.d.ts +24 -0
- package/lib/typescript/components/history/history-list-section-header.d.ts +13 -0
- package/lib/typescript/components/history/history-list.d.ts +19 -0
- package/lib/typescript/components/history/index.d.ts +6 -0
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/ui-components/accessibility/accessibility.d.ts +2 -2
- package/lib/typescript/ui-components/accessibility/accessibilityHistory.d.ts +1 -1
- package/lib/typescript/ui-components/accessibility/accessibilityHistoryWrappers.d.ts +3 -3
- package/lib/typescript/ui-components/accessibility/index.d.ts +5 -3
- package/lib/typescript/ui-components/buttons/button.d.ts +2 -2
- package/lib/typescript/ui-components/buttons/hold-button.d.ts +16 -0
- package/lib/typescript/ui-components/buttons/index.d.ts +15 -7
- package/lib/typescript/ui-components/buttons/scan-button.d.ts +2 -2
- package/lib/typescript/ui-components/credential/card/credential-header.d.ts +1 -1
- package/lib/typescript/ui-components/credential/card/index.d.ts +10 -5
- package/lib/typescript/ui-components/credential/index.d.ts +2 -1
- package/lib/typescript/ui-components/header/index.d.ts +6 -3
- package/lib/typescript/ui-components/history/data-item.d.ts +2 -2
- package/lib/typescript/ui-components/history/history-details.d.ts +51 -0
- package/lib/typescript/ui-components/history/{history-list-item.d.ts → history-item.d.ts} +4 -3
- package/lib/typescript/ui-components/history/history-section-header.d.ts +2 -2
- package/lib/typescript/ui-components/history/history-section-list-item.d.ts +2 -2
- package/lib/typescript/ui-components/history/index.d.ts +5 -4
- package/lib/typescript/ui-components/icons/entity.d.ts +1 -0
- package/lib/typescript/ui-components/icons/history.d.ts +22 -35
- package/lib/typescript/ui-components/image/index.d.ts +2 -1
- package/lib/typescript/ui-components/input/selection-input.d.ts +1 -1
- package/lib/typescript/ui-components/list/index.d.ts +1 -0
- package/lib/typescript/ui-components/list/list-page-loading-indicator.d.ts +4 -0
- package/lib/typescript/ui-components/list/wallet/empty-list.d.ts +10 -0
- package/lib/typescript/ui-components/list/wallet/empty-search-result.d.ts +7 -0
- package/lib/typescript/ui-components/list/wallet/index.d.ts +3 -0
- package/lib/typescript/ui-components/nerd-view/index.d.ts +2 -1
- package/lib/typescript/ui-components/pin/keypad.d.ts +2 -2
- package/lib/typescript/ui-components/screens/index.d.ts +12 -6
- package/lib/typescript/ui-components/screens/nerd-mode-screen.d.ts +4 -4
- package/lib/typescript/ui-components/text/index.d.ts +2 -1
- package/lib/typescript/ui-components/text/typography.d.ts +14 -14
- package/lib/typescript/ui-components/theme/color-scheme.d.ts +1 -0
- package/lib/typescript/utils/filtering.d.ts +1 -0
- package/lib/typescript/utils/history.d.ts +10 -0
- package/lib/typescript/utils/hooks/connectivity/connectivity.d.ts +1 -1
- package/lib/typescript/utils/hooks/core/backup.d.ts +2 -1
- package/lib/typescript/utils/hooks/core/cache.d.ts +2 -0
- package/lib/typescript/utils/hooks/core/core-config.d.ts +5 -1
- package/lib/typescript/utils/hooks/core/core-init.d.ts +10 -1
- package/lib/typescript/utils/hooks/core/credentials.d.ts +9 -4
- package/lib/typescript/utils/hooks/core/history.d.ts +2 -5
- package/lib/typescript/utils/hooks/core/identifiers.d.ts +2 -0
- package/lib/typescript/utils/hooks/core/index.d.ts +2 -0
- package/lib/typescript/utils/hooks/core/proofs.d.ts +16 -9
- package/lib/typescript/utils/hooks/core/trust-entity.d.ts +6 -1
- package/lib/typescript/utils/hooks/revocation/credential-status.d.ts +2 -1
- package/lib/typescript/utils/index.d.ts +3 -0
- package/lib/typescript/utils/parsers/index.d.ts +1 -0
- package/lib/typescript/utils/parsers/universal-links.d.ts +1 -0
- package/lib/typescript/utils/parsers/universal-links.test.d.ts +1 -0
- package/lib/typescript/utils/ref.d.ts +1 -1
- package/package.json +61 -47
- package/src/components/entity/entity-attributes.tsx +5 -4
- package/src/components/entity/entity-details-with-buttons.tsx +20 -13
- package/src/components/entity/entity-details.tsx +24 -27
- package/src/components/history/history-details-screen.tsx +89 -0
- package/src/components/history/history-list-item-icon.tsx +113 -0
- package/src/components/history/history-list-item.tsx +64 -0
- package/src/components/history/history-list-screen.tsx +157 -0
- package/src/components/history/history-list-section-header.tsx +42 -0
- package/src/components/history/history-list.tsx +116 -0
- package/src/components/history/index.tsx +6 -0
- package/src/components/index.ts +1 -0
- package/src/components/proof-request/share-credential.tsx +2 -1
- package/src/ui-components/accessibility/accessibility.ts +2 -2
- package/src/ui-components/accessibility/accessibilityHistory.tsx +2 -2
- package/src/ui-components/accessibility/accessibilityHistoryWrappers.tsx +3 -5
- package/src/ui-components/accessibility/index.ts +4 -3
- package/src/ui-components/action-modal/ActionModal.stories.tsx +7 -3
- package/src/ui-components/activity-indicator/activity-indicator.stories.tsx +3 -6
- package/src/ui-components/buttons/back-button.stories.tsx +7 -8
- package/src/ui-components/buttons/button.stories.tsx +9 -10
- package/src/ui-components/buttons/connectivity-button.stories.tsx +10 -11
- package/src/ui-components/buttons/connectivity-button.tsx +1 -1
- package/src/ui-components/buttons/ghost-button.stories.tsx +8 -8
- package/src/ui-components/buttons/hold-button.stories.tsx +29 -0
- package/src/ui-components/buttons/hold-button.tsx +276 -0
- package/src/ui-components/buttons/index.ts +16 -6
- package/src/ui-components/buttons/scan-button.stories.tsx +8 -4
- package/src/ui-components/control/checkbox.stories.tsx +8 -8
- package/src/ui-components/control/switch.stories.tsx +11 -8
- package/src/ui-components/credential/card/credential-card.stories.tsx +22 -25
- package/src/ui-components/credential/card/credential-details-card.stories.tsx +249 -245
- package/src/ui-components/credential/card/credential-details-card.tsx +2 -2
- package/src/ui-components/credential/card/credential-details-list-item.tsx +16 -6
- package/src/ui-components/credential/card/credential-header.stories.tsx +15 -17
- package/src/ui-components/credential/card/credential-header.tsx +4 -1
- package/src/ui-components/credential/card/credential-image-carousel.tsx +4 -0
- package/src/ui-components/credential/card/index.ts +11 -5
- package/src/ui-components/credential/index.ts +2 -1
- package/src/ui-components/credential/selector.stories.tsx +7 -7
- package/src/ui-components/detail/detail.stories.tsx +11 -8
- package/src/ui-components/entity/avatar.stories.tsx +10 -7
- package/src/ui-components/entity/entity-cluster.stories.tsx +11 -8
- package/src/ui-components/entity/entity-cluster.tsx +1 -1
- package/src/ui-components/header/header.stories.tsx +10 -7
- package/src/ui-components/header/index.ts +6 -3
- package/src/ui-components/header/navigation-header.stories.tsx +11 -8
- package/src/ui-components/history/data-item.tsx +13 -4
- package/src/ui-components/history/history-details.tsx +247 -0
- package/src/ui-components/history/{history-list-item.tsx → history-item.tsx} +72 -33
- package/src/ui-components/history/history-section-header.tsx +2 -2
- package/src/ui-components/history/history-section-list-item.tsx +3 -3
- package/src/ui-components/history/index.ts +5 -4
- package/src/ui-components/icons/entity.tsx +27 -0
- package/src/ui-components/icons/history.tsx +84 -131
- package/src/ui-components/image/index.tsx +2 -1
- package/src/ui-components/input/radio-group.stories.tsx +34 -0
- package/src/ui-components/input/radio-group.tsx +8 -2
- package/src/ui-components/input/selection-input.stories.tsx +20 -17
- package/src/ui-components/list/index.ts +1 -0
- package/src/ui-components/list/list-page-loading-indicator.tsx +8 -0
- package/src/ui-components/list/wallet/empty-list.tsx +75 -0
- package/src/ui-components/list/wallet/empty-search-result.tsx +39 -0
- package/src/ui-components/list/wallet/index.tsx +4 -0
- package/src/ui-components/loader/loader.stories.tsx +6 -9
- package/src/ui-components/loader/loader.tsx +6 -3
- package/src/ui-components/loader/loading-result.stories.tsx +13 -10
- package/src/ui-components/loader/loading-result.tsx +8 -4
- package/src/ui-components/nerd-view/index.ts +2 -1
- package/src/ui-components/nerd-view/nerd-mode-item.tsx +2 -2
- package/src/ui-components/pin/pin-code-screen.stories.tsx +20 -13
- package/src/ui-components/screens/image-preview-screen.stories.tsx +9 -6
- package/src/ui-components/screens/index.ts +12 -6
- package/src/ui-components/screens/nerd-mode-screen.tsx +6 -6
- package/src/ui-components/screens/qr-code-scanner-screen.stories.tsx +10 -7
- package/src/ui-components/searchbar/search-bar.stories.tsx +15 -8
- package/src/ui-components/searchbar/search-bar.tsx +2 -2
- package/src/ui-components/state/error-screen.stories.tsx +8 -9
- package/src/ui-components/state/error-screen.tsx +1 -1
- package/src/ui-components/text/index.ts +2 -1
- package/src/ui-components/text/typography.stories.tsx +19 -12
- package/src/ui-components/theme/color-scheme-context.tsx +1 -0
- package/src/ui-components/theme/color-scheme.ts +1 -0
- package/src/utils/date.ts +5 -5
- package/src/utils/filtering.ts +5 -0
- package/src/utils/history.ts +71 -0
- package/src/utils/hooks/connectivity/connectivity.test.ts +8 -0
- package/src/utils/hooks/connectivity/connectivity.ts +28 -4
- package/src/utils/hooks/core/backup.ts +25 -21
- package/src/utils/hooks/core/cache.ts +43 -0
- package/src/utils/hooks/core/core-config.ts +19 -0
- package/src/utils/hooks/core/core-context.tsx +15 -2
- package/src/utils/hooks/core/core-init.ts +45 -27
- package/src/utils/hooks/core/credential-schemas.ts +1 -1
- package/src/utils/hooks/core/credentials.ts +18 -17
- package/src/utils/hooks/core/history.ts +2 -57
- package/src/utils/hooks/core/identifiers.ts +18 -0
- package/src/utils/hooks/core/index.ts +3 -1
- package/src/utils/hooks/core/proof-schemas.ts +1 -1
- package/src/utils/hooks/core/proofs.ts +111 -51
- package/src/utils/hooks/core/trust-entity.ts +21 -13
- package/src/utils/hooks/navigation/open-settings.ts +2 -3
- package/src/utils/hooks/revocation/credential-status.ts +3 -2
- package/src/utils/index.ts +3 -0
- package/src/utils/navigation.ts +4 -2
- package/src/utils/parsers/credential-sharing.tsx +25 -25
- package/src/utils/parsers/credential.ts +5 -1
- package/src/utils/parsers/index.ts +1 -0
- package/src/utils/parsers/query.tsx +4 -2
- package/src/utils/parsers/universal-links.test.ts +57 -0
- package/src/utils/parsers/universal-links.ts +26 -0
- package/src/utils/ref.ts +1 -1
- package/src/utils/reporting.ts +1 -0
- package/lib/commonjs/ui-components/history/history-list-item.js.map +0 -1
- package/lib/module/ui-components/history/history-list-item.js.map +0 -1
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Meta,StoryObj } from '@storybook/react';
|
|
2
|
+
import { fn } from '@storybook/test';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import type { ColorValue } from 'react-native';
|
|
4
5
|
|
|
5
6
|
import ColorSchemes from '../../../storybook/colorScheme';
|
|
6
7
|
import { ColorScheme, useAppColorScheme } from '../theme';
|
|
7
|
-
import Typography from './typography';
|
|
8
|
+
import Typography, { TypographyProps } from './typography';
|
|
8
9
|
|
|
9
10
|
type ColorSchemeKey = keyof Omit<ColorScheme, 'darkMode'>;
|
|
10
11
|
|
|
11
|
-
const
|
|
12
|
+
const Render = ({ color, ...args }: TypographyProps) => {
|
|
12
13
|
const colorScheme = useAppColorScheme();
|
|
13
14
|
return <Typography {...args} color={colorScheme[color as ColorSchemeKey] as ColorValue} />;
|
|
14
15
|
};
|
|
15
16
|
|
|
16
|
-
Basic
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
const Basic: StoryObj<typeof Typography> = {
|
|
18
|
+
args: {
|
|
19
|
+
children: 'Text',
|
|
20
|
+
preset: 'regular',
|
|
21
|
+
caps: false,
|
|
22
|
+
color: 'text',
|
|
23
|
+
align: 'left',
|
|
24
|
+
numberOfLines: 1,
|
|
25
|
+
ellipsizeMode: 'tail',
|
|
26
|
+
},
|
|
27
|
+
render: Render,
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
export { Basic as Typography };
|
|
@@ -28,6 +32,9 @@ export { Basic as Typography };
|
|
|
28
32
|
export default {
|
|
29
33
|
title: 'base/Typography',
|
|
30
34
|
component: Typography,
|
|
35
|
+
args: {
|
|
36
|
+
onAnnouncementFinished: fn()
|
|
37
|
+
},
|
|
31
38
|
argTypes: {
|
|
32
39
|
preset: {
|
|
33
40
|
options: [
|
|
@@ -67,4 +74,4 @@ export default {
|
|
|
67
74
|
url: 'https://www.figma.com/file/52qDYWUMjXAGre1dcnz5bz/Procivis-One-Wallet?node-id=1045-30326',
|
|
68
75
|
},
|
|
69
76
|
},
|
|
70
|
-
} as
|
|
77
|
+
} as Meta<typeof Typography>;
|
package/src/utils/date.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Date & Time formatted as specified in SW-610
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { I18nManager, Platform, Settings } from 'react-native';
|
|
4
4
|
import { format } from 'timeago.js';
|
|
5
5
|
|
|
6
6
|
const MINUTE = 60 * 1000;
|
|
7
7
|
const DAY = 24 * 60 * MINUTE;
|
|
8
8
|
|
|
9
9
|
// OS locale
|
|
10
|
-
const systemLocale: string =
|
|
10
|
+
const systemLocale: string | undefined = I18nManager.getConstants().localeIdentifier
|
|
11
11
|
?.replace(/_/g, '-')
|
|
12
12
|
.split('#')[0]
|
|
13
13
|
.replace(/-$/, '');
|
|
@@ -138,10 +138,10 @@ export const formatDateOnlyFromUTCTimestamp = (utcTimestamp: number): string =>
|
|
|
138
138
|
|
|
139
139
|
const locale = (
|
|
140
140
|
Platform.OS === 'ios'
|
|
141
|
-
?
|
|
142
|
-
:
|
|
141
|
+
? Settings.get('AppleLocale')
|
|
142
|
+
: I18nManager.getConstants().localeIdentifier
|
|
143
143
|
)
|
|
144
|
-
|
|
144
|
+
?.split('@')[0]
|
|
145
145
|
.replace('_', '-');
|
|
146
146
|
|
|
147
147
|
export const formatDateTimeLocalized = (date: Date) => {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Claim, ClaimValue, DataTypeEnum, HistoryListItem, ProofInputClaim } from '@procivis/react-native-one-core';
|
|
2
|
+
import moment, { Moment } from 'moment';
|
|
3
|
+
|
|
4
|
+
import { nonEmptyFilter } from './filtering';
|
|
5
|
+
|
|
6
|
+
export interface HistoryGroupByDaySection {
|
|
7
|
+
data: HistoryListItem[];
|
|
8
|
+
date: Moment;
|
|
9
|
+
firstYearEntry: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const groupEntriesByDay = (entries: HistoryListItem[]) => {
|
|
13
|
+
const groupedEntries = entries.reduce((result: HistoryGroupByDaySection[], entry: HistoryListItem) => {
|
|
14
|
+
const entryDate = moment(entry.createdDate);
|
|
15
|
+
|
|
16
|
+
const matchingEntry = result.find(({ date }) => date.isSame(entryDate, 'day'));
|
|
17
|
+
if (matchingEntry) {
|
|
18
|
+
matchingEntry.data.push(entry);
|
|
19
|
+
} else {
|
|
20
|
+
result.push({ data: [entry], date: entryDate, firstYearEntry: false });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return result;
|
|
24
|
+
}, []);
|
|
25
|
+
|
|
26
|
+
return groupedEntries
|
|
27
|
+
.sort(({ date: a }, { date: b }) => b.valueOf() - a.valueOf())
|
|
28
|
+
.map((item, index, list) => {
|
|
29
|
+
item.firstYearEntry = !index || !list[index - 1].date.isSame(item.date, 'year');
|
|
30
|
+
return item;
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const claimValueFromProofInputClaim = ({ schema, value }: ProofInputClaim): ClaimValue | undefined => {
|
|
35
|
+
if (!value) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (Array.isArray(value)) {
|
|
40
|
+
const values = value.map(claimFromProofInputClaim).filter(nonEmptyFilter);
|
|
41
|
+
return schema.dataType === (DataTypeEnum.Object as string)
|
|
42
|
+
? {
|
|
43
|
+
array: schema.array,
|
|
44
|
+
dataType: DataTypeEnum.Object,
|
|
45
|
+
value: values,
|
|
46
|
+
}
|
|
47
|
+
: {
|
|
48
|
+
array: true,
|
|
49
|
+
dataType: schema.dataType,
|
|
50
|
+
value: values,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return {
|
|
55
|
+
array: false,
|
|
56
|
+
dataType: schema.dataType,
|
|
57
|
+
value,
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const claimFromProofInputClaim = (input: ProofInputClaim): Claim | undefined => {
|
|
62
|
+
const value = claimValueFromProofInputClaim(input);
|
|
63
|
+
if (!value) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
...value,
|
|
68
|
+
id: input.schema.id,
|
|
69
|
+
key: input.schema.key,
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { getInvitationUrlTransports, Transport } from './connectivity';
|
|
2
2
|
|
|
3
|
+
jest.mock('@procivis/react-native-one-core', () => ({
|
|
4
|
+
initializeCore: () => Promise.resolve({} as any),
|
|
5
|
+
}));
|
|
6
|
+
|
|
7
|
+
jest.mock('@sentry/react-native', () => ({
|
|
8
|
+
captureException: () => {},
|
|
9
|
+
}));
|
|
10
|
+
|
|
3
11
|
jest.mock('@react-native-community/netinfo', () => ({
|
|
4
12
|
addEventListener: () => {},
|
|
5
13
|
}));
|
|
@@ -8,6 +8,8 @@ import { useEffect, useMemo, useState } from 'react';
|
|
|
8
8
|
import { EventSubscription } from 'react-native';
|
|
9
9
|
import BTStateManager from 'react-native-bluetooth-state-manager';
|
|
10
10
|
|
|
11
|
+
import { getEnabledTransports, useCoreConfig } from '../core/core-config';
|
|
12
|
+
|
|
11
13
|
export enum InternetState {
|
|
12
14
|
Available,
|
|
13
15
|
Unreachable,
|
|
@@ -37,7 +39,7 @@ export type TransportError = {
|
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
export const useAvailableTransports = (
|
|
40
|
-
|
|
42
|
+
possibleTransports: Transport[],
|
|
41
43
|
): {
|
|
42
44
|
availableTransport: Transport[] | undefined;
|
|
43
45
|
transportError: TransportError;
|
|
@@ -45,7 +47,22 @@ export const useAvailableTransports = (
|
|
|
45
47
|
const [internetState, setInternetState] = useState<InternetState>();
|
|
46
48
|
const [bluetoothState, setBluetoothState] = useState<BluetoothState>();
|
|
47
49
|
|
|
50
|
+
const { data: coreConfig } = useCoreConfig();
|
|
51
|
+
|
|
52
|
+
const supportedTransports = useMemo(() => {
|
|
53
|
+
if (!coreConfig) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const enabledTransports = getEnabledTransports(coreConfig);
|
|
57
|
+
|
|
58
|
+
return possibleTransports.filter((t) => enabledTransports.includes(t));
|
|
59
|
+
}, [possibleTransports, coreConfig]);
|
|
60
|
+
|
|
48
61
|
useEffect(() => {
|
|
62
|
+
if (!supportedTransports) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
|
|
49
66
|
let btSubscription: EventSubscription | undefined;
|
|
50
67
|
if (supportedTransports.includes(Transport.Bluetooth)) {
|
|
51
68
|
btSubscription = BTStateManager.onStateChange((state) => {
|
|
@@ -88,6 +105,13 @@ export const useAvailableTransports = (
|
|
|
88
105
|
}, [supportedTransports]);
|
|
89
106
|
|
|
90
107
|
const transportStatus = useMemo(() => {
|
|
108
|
+
if (!supportedTransports) {
|
|
109
|
+
return {
|
|
110
|
+
availableTransport: undefined,
|
|
111
|
+
transportError: {},
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
91
115
|
const waitingForInternetState =
|
|
92
116
|
(supportedTransports.includes(Transport.HTTP) || supportedTransports.includes(Transport.MQTT)) &&
|
|
93
117
|
internetState === undefined;
|
|
@@ -101,8 +125,8 @@ export const useAvailableTransports = (
|
|
|
101
125
|
const availableTransport: Transport[] = [];
|
|
102
126
|
const transportError: TransportError = {};
|
|
103
127
|
if (internetState === InternetState.Available) {
|
|
104
|
-
availableTransport.push(Transport.MQTT);
|
|
105
|
-
availableTransport.push(Transport.HTTP);
|
|
128
|
+
supportedTransports.includes(Transport.MQTT) && availableTransport.push(Transport.MQTT);
|
|
129
|
+
supportedTransports.includes(Transport.HTTP) && availableTransport.push(Transport.HTTP);
|
|
106
130
|
} else {
|
|
107
131
|
transportError.internet = internetState;
|
|
108
132
|
}
|
|
@@ -144,7 +168,7 @@ export const getInvitationUrlTransports = (url: string, customOpenIdUrlScheme?:
|
|
|
144
168
|
if (hasAllParameters('name', 'key')) {
|
|
145
169
|
transports.push(Transport.Bluetooth);
|
|
146
170
|
}
|
|
147
|
-
if (hasAllParameters('
|
|
171
|
+
if (hasAllParameters('brokerUrl', 'topicId')) {
|
|
148
172
|
transports.push(Transport.MQTT);
|
|
149
173
|
}
|
|
150
174
|
|
|
@@ -4,7 +4,7 @@ import { useMutation, useQuery, useQueryClient } from 'react-query';
|
|
|
4
4
|
|
|
5
5
|
import { generateUUID } from '../../uuid';
|
|
6
6
|
import { useONECore } from './core-context';
|
|
7
|
-
import { HW_DID_NAME_PREFIX, SW_DID_NAME_PREFIX } from './core-init';
|
|
7
|
+
import { HW_DID_NAME_PREFIX, IdentifiersInitializationConfig, SW_DID_NAME_PREFIX } from './core-init';
|
|
8
8
|
import { OneErrorCode } from './error-code';
|
|
9
9
|
import { HISTORY_LIST_QUERY_KEY } from './history';
|
|
10
10
|
|
|
@@ -61,7 +61,7 @@ export const useRollbackImport = () => {
|
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
export const useBackupFinalizeImportProcedure = () => {
|
|
64
|
+
export const useBackupFinalizeImportProcedure = ({ generateHwKey, generateSwKey }: IdentifiersInitializationConfig) => {
|
|
65
65
|
const { mutateAsync: finalizeImport } = useFinalizeImport();
|
|
66
66
|
const { core, organisationId } = useONECore();
|
|
67
67
|
|
|
@@ -78,7 +78,7 @@ export const useBackupFinalizeImportProcedure = () => {
|
|
|
78
78
|
});
|
|
79
79
|
let swDidId = dids.values.find((did) => did.name.startsWith(SW_DID_NAME_PREFIX))?.id;
|
|
80
80
|
|
|
81
|
-
if (!swDidId) {
|
|
81
|
+
if (!swDidId && generateSwKey) {
|
|
82
82
|
const swKeyId = await core.generateKey({
|
|
83
83
|
keyParams: {},
|
|
84
84
|
keyType: 'EDDSA',
|
|
@@ -102,23 +102,27 @@ export const useBackupFinalizeImportProcedure = () => {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
let hwKeyId: string | null = null;
|
|
106
|
+
if (generateHwKey) {
|
|
107
|
+
hwKeyId = await core
|
|
108
|
+
.generateKey({
|
|
109
|
+
keyParams: {},
|
|
110
|
+
keyType: 'ECDSA',
|
|
111
|
+
name: `holder-key-hw-${generateUUID()}`,
|
|
112
|
+
organisationId,
|
|
113
|
+
storageParams: {},
|
|
114
|
+
storageType: 'SECURE_ELEMENT',
|
|
115
|
+
})
|
|
116
|
+
.catch((e) => {
|
|
117
|
+
// ignore if HW keys not supported by device
|
|
118
|
+
if (e instanceof OneError && e.code === OneErrorCode.KeyStorageNotSupported) {
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
throw e;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
|
|
105
125
|
let hwDidId: string | null = null;
|
|
106
|
-
const hwKeyId = await core
|
|
107
|
-
.generateKey({
|
|
108
|
-
keyParams: {},
|
|
109
|
-
keyType: 'ES256',
|
|
110
|
-
name: `holder-key-hw-${generateUUID()}`,
|
|
111
|
-
organisationId,
|
|
112
|
-
storageParams: {},
|
|
113
|
-
storageType: 'SECURE_ELEMENT',
|
|
114
|
-
})
|
|
115
|
-
.catch((e) => {
|
|
116
|
-
// ignore if HW keys not supported by device
|
|
117
|
-
if (e instanceof OneError && e.code === OneErrorCode.KeyStorageNotSupported) {
|
|
118
|
-
return null;
|
|
119
|
-
}
|
|
120
|
-
throw e;
|
|
121
|
-
});
|
|
122
126
|
if (hwKeyId) {
|
|
123
127
|
hwDidId = await core.createDid({
|
|
124
128
|
didMethod: 'KEY',
|
|
@@ -135,6 +139,6 @@ export const useBackupFinalizeImportProcedure = () => {
|
|
|
135
139
|
});
|
|
136
140
|
}
|
|
137
141
|
|
|
138
|
-
return [hwDidId, swDidId] as [string | null, string];
|
|
139
|
-
}, [core, organisationId, finalizeImport]);
|
|
142
|
+
return [hwDidId, swDidId] as [string | null, string | undefined];
|
|
143
|
+
}, [core, organisationId, finalizeImport, generateHwKey, generateSwKey]);
|
|
140
144
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CacheType } from '@procivis/react-native-one-core';
|
|
2
|
+
import { useMutation, useQueryClient } from 'react-query';
|
|
3
|
+
|
|
4
|
+
import { useONECore } from './core-context';
|
|
5
|
+
import { CREDENTIAL_DETAIL_QUERY_KEY, CREDENTIAL_LIST_PAGED_QUERY_KEY, CREDENTIAL_LIST_QUERY_KEY } from './credentials';
|
|
6
|
+
import { REMOTE_TRUST_ENTITY_DETAIL_QUERY_KEY, TRUST_ENTITY_DETAIL_QUERY_KEY } from './trust-entity';
|
|
7
|
+
|
|
8
|
+
const CREDENTIAL_QUERY_KEYS = [CREDENTIAL_LIST_QUERY_KEY, CREDENTIAL_LIST_PAGED_QUERY_KEY, CREDENTIAL_DETAIL_QUERY_KEY];
|
|
9
|
+
const TRUST_ENTITY_QUERY_KEYS = [TRUST_ENTITY_DETAIL_QUERY_KEY, REMOTE_TRUST_ENTITY_DETAIL_QUERY_KEY];
|
|
10
|
+
|
|
11
|
+
// Map each CacheType to the query keys that should be invalidated when that cache is cleared.
|
|
12
|
+
const cacheTypeToQueryKeys: Record<CacheType, string[]> = {
|
|
13
|
+
[CacheType.DID_DOCUMENT]: CREDENTIAL_QUERY_KEYS,
|
|
14
|
+
[CacheType.JSON_LD_CONTEXT]: CREDENTIAL_QUERY_KEYS,
|
|
15
|
+
[CacheType.STATUS_LIST_CREDENTIAL]: CREDENTIAL_QUERY_KEYS,
|
|
16
|
+
[CacheType.VCT_METADATA]: CREDENTIAL_QUERY_KEYS,
|
|
17
|
+
[CacheType.JSON_SCHEMA]: CREDENTIAL_QUERY_KEYS,
|
|
18
|
+
[CacheType.TRUST_LIST]: [...TRUST_ENTITY_QUERY_KEYS, ...CREDENTIAL_QUERY_KEYS],
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const useCacheClear = () => {
|
|
22
|
+
const queryClient = useQueryClient();
|
|
23
|
+
const { core } = useONECore();
|
|
24
|
+
|
|
25
|
+
return useMutation(
|
|
26
|
+
async (cacheTypes: CacheType[]) => {
|
|
27
|
+
await core.deleteCache(cacheTypes);
|
|
28
|
+
return cacheTypes;
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
onSuccess: async (_, cacheTypes) => {
|
|
32
|
+
const queryKeysToInvalidate = new Set<string>();
|
|
33
|
+
|
|
34
|
+
cacheTypes.forEach((cacheType) => {
|
|
35
|
+
const keys = cacheTypeToQueryKeys[cacheType] || [];
|
|
36
|
+
keys.forEach((key) => queryKeysToInvalidate.add(key));
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
await Promise.all([...queryKeysToInvalidate].map((queryKey) => queryClient.invalidateQueries(queryKey)));
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
);
|
|
43
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Config, ConfigEntities } from '@procivis/react-native-one-core';
|
|
1
2
|
import { useQuery } from 'react-query';
|
|
2
3
|
|
|
3
4
|
import { useONECore } from './core-context';
|
|
@@ -11,3 +12,21 @@ export const useCoreConfig = () => {
|
|
|
11
12
|
keepPreviousData: true,
|
|
12
13
|
});
|
|
13
14
|
};
|
|
15
|
+
|
|
16
|
+
export const getEnabledTransports = (config: Config): string[] => {
|
|
17
|
+
return Object.values(config?.transport ?? {})
|
|
18
|
+
.filter((t) => t.enabled !== false)
|
|
19
|
+
.map((transport) => transport.type);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const getEnabledExchangeProtocols = (exchangeProtocol: ConfigEntities<any>): string[] => {
|
|
23
|
+
return Object.values(exchangeProtocol ?? {})
|
|
24
|
+
.filter((t) => t.enabled !== false)
|
|
25
|
+
.map((exchange) => exchange.type);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const getEnabledTrustManagement = (config: Config): string[] => {
|
|
29
|
+
return Object.values(config?.trustManagement ?? {})
|
|
30
|
+
.filter((t) => t.enabled !== false)
|
|
31
|
+
.map((trustManagement) => trustManagement.type);
|
|
32
|
+
};
|
|
@@ -11,7 +11,8 @@ import React, {
|
|
|
11
11
|
} from 'react';
|
|
12
12
|
|
|
13
13
|
import { reportException } from '../../reporting';
|
|
14
|
-
import {
|
|
14
|
+
import { getEnabledTrustManagement } from './core-config';
|
|
15
|
+
import { TrustManagementEnum, useCreateTrustAnchor } from './trust-entity';
|
|
15
16
|
|
|
16
17
|
interface ContextValue {
|
|
17
18
|
core: ONECore;
|
|
@@ -79,7 +80,19 @@ export const ONECoreContextProvider: FC<PropsWithChildren<ONECoreContextProvider
|
|
|
79
80
|
if (!core) {
|
|
80
81
|
return;
|
|
81
82
|
}
|
|
82
|
-
|
|
83
|
+
|
|
84
|
+
core
|
|
85
|
+
.getConfig()
|
|
86
|
+
.then((coreConfig) => {
|
|
87
|
+
const trustManagementEnabled = getEnabledTrustManagement(coreConfig).includes(
|
|
88
|
+
TrustManagementEnum.SimpleTrustList,
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
if (trustManagementEnabled) {
|
|
92
|
+
createTrustAnchor(core).catch(() => {});
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
.catch(() => {});
|
|
83
96
|
}, [core, createTrustAnchor]);
|
|
84
97
|
|
|
85
98
|
const contextValue = useMemo(
|
|
@@ -8,11 +8,11 @@ import { OneErrorCode } from './error-code';
|
|
|
8
8
|
export const SW_DID_NAME_PREFIX = 'holder-did-sw-key';
|
|
9
9
|
export const HW_DID_NAME_PREFIX = 'holder-did-hw-key';
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const generateHwIdentifier = async (core: ONECore, organisationId: string) => {
|
|
12
12
|
const hwKeyId = await core
|
|
13
13
|
.generateKey({
|
|
14
14
|
keyParams: {},
|
|
15
|
-
keyType: '
|
|
15
|
+
keyType: 'ECDSA',
|
|
16
16
|
name: 'holder-key-hw',
|
|
17
17
|
organisationId,
|
|
18
18
|
storageParams: {},
|
|
@@ -27,66 +27,84 @@ const generateHwDid = async (core: ONECore, organisationId: string) => {
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
if (hwKeyId) {
|
|
30
|
-
return core.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
return core.createIdentifier({
|
|
31
|
+
did: {
|
|
32
|
+
method: 'KEY',
|
|
33
|
+
keys: {
|
|
34
|
+
assertionMethod: [hwKeyId],
|
|
35
|
+
authentication: [hwKeyId],
|
|
36
|
+
capabilityDelegation: [hwKeyId],
|
|
37
|
+
capabilityInvocation: [hwKeyId],
|
|
38
|
+
keyAgreement: [hwKeyId],
|
|
39
|
+
},
|
|
40
|
+
params: {},
|
|
38
41
|
},
|
|
39
42
|
name: HW_DID_NAME_PREFIX,
|
|
40
43
|
organisationId,
|
|
41
|
-
params: {},
|
|
42
44
|
});
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
return null;
|
|
46
48
|
};
|
|
47
49
|
|
|
48
|
-
const
|
|
50
|
+
const generateSwIdentifier = async (core: ONECore, organisationId: string) => {
|
|
49
51
|
const swKeyId = await core.generateKey({
|
|
50
52
|
keyParams: {},
|
|
51
|
-
keyType: '
|
|
53
|
+
keyType: 'ECDSA',
|
|
52
54
|
name: 'holder-key-sw',
|
|
53
55
|
organisationId,
|
|
54
56
|
storageParams: {},
|
|
55
57
|
storageType: 'INTERNAL',
|
|
56
58
|
});
|
|
57
59
|
|
|
58
|
-
return core.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
return core.createIdentifier({
|
|
61
|
+
did: {
|
|
62
|
+
method: 'KEY',
|
|
63
|
+
keys: {
|
|
64
|
+
assertionMethod: [swKeyId],
|
|
65
|
+
authentication: [swKeyId],
|
|
66
|
+
capabilityDelegation: [swKeyId],
|
|
67
|
+
capabilityInvocation: [swKeyId],
|
|
68
|
+
keyAgreement: [swKeyId],
|
|
69
|
+
},
|
|
70
|
+
params: {},
|
|
66
71
|
},
|
|
67
72
|
name: SW_DID_NAME_PREFIX,
|
|
68
73
|
organisationId,
|
|
69
|
-
params: {},
|
|
70
74
|
});
|
|
71
75
|
};
|
|
72
76
|
|
|
73
|
-
|
|
74
|
-
|
|
77
|
+
export interface IdentifiersInitializationConfig {
|
|
78
|
+
generateHwKey: boolean;
|
|
79
|
+
generateSwKey: boolean;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Create base local identifiers
|
|
84
|
+
* @param {IdentifiersInitializationConfig} config Select desired keys/dids to be created
|
|
85
|
+
* @returns [hwDidId, swDidId]
|
|
86
|
+
*/
|
|
87
|
+
export const useInitializeONECoreIdentifiers = ({ generateHwKey, generateSwKey }: IdentifiersInitializationConfig) => {
|
|
75
88
|
const { core, organisationId } = useONECore();
|
|
76
89
|
|
|
77
90
|
return useCallback(async () => {
|
|
78
91
|
return await core
|
|
79
|
-
.createOrganisation(organisationId)
|
|
92
|
+
.createOrganisation({ id: organisationId })
|
|
80
93
|
.catch((e) => {
|
|
81
94
|
if (e instanceof OneError && e.code === OneErrorCode.OrganisationAlreadyExists) {
|
|
82
95
|
return;
|
|
83
96
|
}
|
|
84
97
|
throw e;
|
|
85
98
|
})
|
|
86
|
-
.then(() =>
|
|
99
|
+
.then(() =>
|
|
100
|
+
Promise.all([
|
|
101
|
+
generateHwKey ? generateHwIdentifier(core, organisationId) : null,
|
|
102
|
+
generateSwKey ? generateSwIdentifier(core, organisationId) : null,
|
|
103
|
+
]),
|
|
104
|
+
)
|
|
87
105
|
.catch((err) => {
|
|
88
106
|
reportException(err, 'Failed to create base identifiers');
|
|
89
107
|
throw err;
|
|
90
108
|
});
|
|
91
|
-
}, [core, organisationId]);
|
|
109
|
+
}, [core, organisationId, generateHwKey, generateSwKey]);
|
|
92
110
|
};
|
|
@@ -90,7 +90,7 @@ export const useCredentialSchemaDelete = () => {
|
|
|
90
90
|
return useMutation(async (credentialSchemaId: string) => core.deleteCredentialSchema(credentialSchemaId), {
|
|
91
91
|
onSuccess: async (_, credentialId) => {
|
|
92
92
|
await queryClient.invalidateQueries(CREDENTIAL_SCHEMA_LIST_QUERY_KEY);
|
|
93
|
-
await queryClient.
|
|
93
|
+
await queryClient.removeQueries([CREDENTIAL_SCHEMA_DETAIL_QUERY_KEY, credentialId]);
|
|
94
94
|
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
95
95
|
},
|
|
96
96
|
});
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BypassCache,
|
|
3
|
-
CredentialListQuery,
|
|
4
|
-
CredentialStateEnum,
|
|
5
|
-
InvitationResult,
|
|
6
|
-
OneError,
|
|
7
|
-
} from '@procivis/react-native-one-core';
|
|
1
|
+
import { CredentialListQuery, CredentialStateEnum, InvitationResult, OneError } from '@procivis/react-native-one-core';
|
|
8
2
|
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from 'react-query';
|
|
9
3
|
|
|
10
4
|
import { getQueryKeyFromCredentialListQueryParams } from '../../parsers/query';
|
|
5
|
+
import { Transport } from '../connectivity/connectivity';
|
|
11
6
|
import { useONECore } from './core-context';
|
|
12
7
|
import { CREDENTIAL_SCHEMA_LIST_QUERY_KEY } from './credential-schemas';
|
|
13
8
|
import { OneErrorCode } from './error-code';
|
|
14
9
|
import { HISTORY_LIST_QUERY_KEY } from './history';
|
|
15
10
|
|
|
16
11
|
const PAGE_SIZE = 20;
|
|
17
|
-
const CREDENTIAL_LIST_QUERY_KEY = 'credential-list';
|
|
18
|
-
const CREDENTIAL_LIST_PAGED_QUERY_KEY = 'credential-list-paged';
|
|
19
|
-
const CREDENTIAL_DETAIL_QUERY_KEY = 'credential-detail';
|
|
12
|
+
export const CREDENTIAL_LIST_QUERY_KEY = 'credential-list';
|
|
13
|
+
export const CREDENTIAL_LIST_PAGED_QUERY_KEY = 'credential-list-paged';
|
|
14
|
+
export const CREDENTIAL_DETAIL_QUERY_KEY = 'credential-detail';
|
|
20
15
|
|
|
21
16
|
export const useCredentials = (queryParams?: Partial<CredentialListQuery>) => {
|
|
22
17
|
const { core, organisationId } = useONECore();
|
|
@@ -82,7 +77,7 @@ export const useInvitationHandler = () => {
|
|
|
82
77
|
const { core, organisationId } = useONECore();
|
|
83
78
|
|
|
84
79
|
return useMutation(
|
|
85
|
-
async ({ invitationUrl, transport }: { invitationUrl: string; transport:
|
|
80
|
+
async ({ invitationUrl, transport }: { invitationUrl: string; transport: Transport }) =>
|
|
86
81
|
core.handleInvitation(invitationUrl, organisationId, [transport]),
|
|
87
82
|
{
|
|
88
83
|
onSuccess: async (result: InvitationResult) => {
|
|
@@ -100,11 +95,17 @@ export const useCredentialAccept = () => {
|
|
|
100
95
|
const queryClient = useQueryClient();
|
|
101
96
|
const { core } = useONECore();
|
|
102
97
|
|
|
103
|
-
type CredentialAcceptHookParams = {
|
|
98
|
+
type CredentialAcceptHookParams = {
|
|
99
|
+
didId?: string;
|
|
100
|
+
identifierId?: string;
|
|
101
|
+
interactionId: string;
|
|
102
|
+
keyId?: string;
|
|
103
|
+
txCode?: string;
|
|
104
|
+
};
|
|
104
105
|
|
|
105
106
|
return useMutation(
|
|
106
|
-
async ({ interactionId, didId, keyId, txCode }: CredentialAcceptHookParams) =>
|
|
107
|
-
core.holderAcceptCredential(interactionId, didId, keyId, txCode),
|
|
107
|
+
async ({ interactionId, didId, identifierId, keyId, txCode }: CredentialAcceptHookParams) =>
|
|
108
|
+
core.holderAcceptCredential(interactionId, didId, identifierId, keyId, txCode),
|
|
108
109
|
{
|
|
109
110
|
onSuccess: async () => {
|
|
110
111
|
await queryClient.invalidateQueries(CREDENTIAL_LIST_QUERY_KEY);
|
|
@@ -137,11 +138,11 @@ export const useCredentialReject = () => {
|
|
|
137
138
|
);
|
|
138
139
|
};
|
|
139
140
|
|
|
140
|
-
export const useCredentialRevocationCheck = (
|
|
141
|
+
export const useCredentialRevocationCheck = (forceRefresh: boolean) => {
|
|
141
142
|
const queryClient = useQueryClient();
|
|
142
143
|
const { core } = useONECore();
|
|
143
144
|
|
|
144
|
-
return useMutation(async (credentialIds: string[]) => core.checkRevocation(credentialIds,
|
|
145
|
+
return useMutation(async (credentialIds: string[]) => core.checkRevocation(credentialIds, forceRefresh), {
|
|
145
146
|
onSuccess: async () => {
|
|
146
147
|
await queryClient.invalidateQueries(CREDENTIAL_LIST_QUERY_KEY);
|
|
147
148
|
await queryClient.invalidateQueries(CREDENTIAL_DETAIL_QUERY_KEY);
|
|
@@ -157,7 +158,7 @@ export const useCredentialDelete = () => {
|
|
|
157
158
|
return useMutation(async (credentialId: string) => core.deleteCredential(credentialId), {
|
|
158
159
|
onSuccess: async (_, credentialId) => {
|
|
159
160
|
await queryClient.invalidateQueries(CREDENTIAL_LIST_QUERY_KEY);
|
|
160
|
-
await queryClient.
|
|
161
|
+
await queryClient.removeQueries([CREDENTIAL_DETAIL_QUERY_KEY, credentialId]);
|
|
161
162
|
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
162
163
|
},
|
|
163
164
|
});
|