@procivis/one-react-native-components 0.2.54 → 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.
- 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 +15 -17
- package/lib/commonjs/components/entity/entity-attributes.js.map +1 -1
- package/lib/commonjs/components/entity/entity-details-with-buttons.js +18 -19
- package/lib/commonjs/components/entity/entity-details-with-buttons.js.map +1 -1
- package/lib/commonjs/components/entity/entity-details.js +12 -14
- 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 +94 -0
- package/lib/commonjs/components/history/history-list-item-icon.js.map +1 -0
- package/lib/commonjs/components/history/history-list-item.js +45 -0
- package/lib/commonjs/components/history/history-list-item.js.map +1 -0
- package/lib/commonjs/components/history/history-list-screen.js +121 -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 +23 -27
- 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 +15 -18
- 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 +7 -8
- package/lib/commonjs/ui-components/icons/entity.js.map +1 -1
- package/lib/commonjs/ui-components/icons/history.js +113 -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 +34 -41
- 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 +18 -12
- 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 +27 -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/index.js +11 -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 +107 -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 +8 -4
- 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 +16 -20
- package/lib/commonjs/utils/parsers/credential-sharing.js.map +1 -1
- package/lib/commonjs/utils/parsers/credential.js +16 -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 +3 -2
- 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 +12 -13
- package/lib/module/components/entity/entity-attributes.js.map +1 -1
- package/lib/module/components/entity/entity-details-with-buttons.js +15 -15
- package/lib/module/components/entity/entity-details-with-buttons.js.map +1 -1
- package/lib/module/components/entity/entity-details.js +8 -9
- 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 +84 -0
- package/lib/module/components/history/history-list-item-icon.js.map +1 -0
- package/lib/module/components/history/history-list-item.js +36 -0
- package/lib/module/components/history/history-list-item.js.map +1 -0
- package/lib/module/components/history/history-list-screen.js +112 -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 +21 -25
- 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 +11 -13
- 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 +4 -5
- package/lib/module/ui-components/icons/entity.js.map +1 -1
- package/lib/module/ui-components/icons/history.js +101 -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 +29 -34
- 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 +16 -8
- 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 +26 -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/index.js +1 -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 +101 -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 +7 -3
- 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 +15 -19
- package/lib/module/utils/parsers/credential-sharing.js.map +1 -1
- package/lib/module/utils/parsers/credential.js +16 -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 +3 -2
- 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/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 +20 -0
- package/lib/typescript/components/history/history-list-screen.d.ts +22 -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/history.d.ts +20 -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/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 +7 -3
- package/lib/typescript/utils/hooks/core/history.d.ts +2 -5
- package/lib/typescript/utils/hooks/core/index.d.ts +1 -0
- package/lib/typescript/utils/hooks/core/proofs.d.ts +14 -8
- package/lib/typescript/utils/hooks/core/trust-entity.d.ts +5 -0
- 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 +60 -46
- package/src/components/entity/entity-attributes.tsx +4 -3
- package/src/components/entity/entity-details-with-buttons.tsx +4 -3
- package/src/components/history/history-details-screen.tsx +89 -0
- package/src/components/history/history-list-item-icon.tsx +108 -0
- package/src/components/history/history-list-item.tsx +53 -0
- package/src/components/history/history-list-screen.tsx +154 -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/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/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/history.tsx +82 -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 +1 -1
- 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 +21 -7
- package/src/utils/hooks/core/credential-schemas.ts +1 -1
- package/src/utils/hooks/core/credentials.ts +9 -14
- package/src/utils/hooks/core/history.ts +2 -57
- package/src/utils/hooks/core/index.ts +1 -0
- package/src/utils/hooks/core/proof-schemas.ts +1 -1
- package/src/utils/hooks/core/proofs.ts +107 -49
- package/src/utils/hooks/core/trust-entity.ts +7 -3
- 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.ts +1 -1
- package/src/utils/parsers/index.ts +1 -0
- package/src/utils/parsers/query.tsx +2 -0
- 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
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HistoryActionEnum,
|
|
3
|
+
HistoryListItem,
|
|
4
|
+
} from '@procivis/react-native-one-core';
|
|
5
|
+
import React, { FC, ReactElement } from 'react';
|
|
6
|
+
import { ImageSourcePropType } from 'react-native';
|
|
7
|
+
|
|
8
|
+
import { ColorScheme, useAppColorScheme } from '../../ui-components';
|
|
9
|
+
import {
|
|
10
|
+
HistoryDetailsLabels,
|
|
11
|
+
HistoryDetailsView,
|
|
12
|
+
HistoryDetailsViewProps,
|
|
13
|
+
} from '../../ui-components/history/history-details';
|
|
14
|
+
import { capitalizeFirstLetter, concatTestID, formatDateTimeLocalized } from '../../utils';
|
|
15
|
+
import { HistoryListItemLabels } from './history-list-item';
|
|
16
|
+
import { getHistoryItemActionIcon } from './history-list-item-icon';
|
|
17
|
+
|
|
18
|
+
const getStatusTextColor = (action: HistoryActionEnum, colorScheme: Readonly<ColorScheme>) => {
|
|
19
|
+
switch (action) {
|
|
20
|
+
case HistoryActionEnum.CLAIMS_REMOVED:
|
|
21
|
+
case HistoryActionEnum.DEACTIVATED:
|
|
22
|
+
case HistoryActionEnum.DELETED:
|
|
23
|
+
case HistoryActionEnum.REJECTED:
|
|
24
|
+
case HistoryActionEnum.REVOKED:
|
|
25
|
+
case HistoryActionEnum.ERRORED:
|
|
26
|
+
return colorScheme.errorText;
|
|
27
|
+
case HistoryActionEnum.SUSPENDED:
|
|
28
|
+
case HistoryActionEnum.OFFERED:
|
|
29
|
+
case HistoryActionEnum.PENDING:
|
|
30
|
+
case HistoryActionEnum.REQUESTED:
|
|
31
|
+
return colorScheme.text;
|
|
32
|
+
default:
|
|
33
|
+
return colorScheme.successText;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type HistoryDetailsScreenLabels = HistoryDetailsLabels & {
|
|
38
|
+
item: HistoryListItemLabels;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type HistoryDetailsScreenProps = {
|
|
42
|
+
assets: HistoryDetailsViewProps['assets'];
|
|
43
|
+
dataHeader: HistoryDetailsViewProps['data']['header'];
|
|
44
|
+
headerButton?: ReactElement;
|
|
45
|
+
item: HistoryListItem;
|
|
46
|
+
labels: HistoryDetailsScreenLabels;
|
|
47
|
+
onBackPressed: () => void;
|
|
48
|
+
onInfoPressed?: () => void;
|
|
49
|
+
onImagePreview: (title: string, image: ImageSourcePropType) => void;
|
|
50
|
+
testID?: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const HistoryDetailsScreen: FC<HistoryDetailsScreenProps> = ({
|
|
54
|
+
assets,
|
|
55
|
+
dataHeader,
|
|
56
|
+
headerButton,
|
|
57
|
+
item,
|
|
58
|
+
labels,
|
|
59
|
+
onBackPressed,
|
|
60
|
+
onInfoPressed,
|
|
61
|
+
onImagePreview,
|
|
62
|
+
testID = 'HistoryDetailScreen',
|
|
63
|
+
}) => {
|
|
64
|
+
const colorScheme = useAppColorScheme();
|
|
65
|
+
|
|
66
|
+
const actionValueColor = getStatusTextColor(item.action, colorScheme);
|
|
67
|
+
|
|
68
|
+
return (
|
|
69
|
+
<HistoryDetailsView
|
|
70
|
+
assets={assets}
|
|
71
|
+
data={{
|
|
72
|
+
header: dataHeader,
|
|
73
|
+
date: formatDateTimeLocalized(new Date(item.createdDate)) ?? '',
|
|
74
|
+
action: {
|
|
75
|
+
icon: getHistoryItemActionIcon(item.action),
|
|
76
|
+
label: capitalizeFirstLetter(labels.item.actions[item.action]),
|
|
77
|
+
color: actionValueColor,
|
|
78
|
+
testID: concatTestID(testID, 'action', item.action),
|
|
79
|
+
},
|
|
80
|
+
}}
|
|
81
|
+
headerButton={headerButton}
|
|
82
|
+
labels={labels}
|
|
83
|
+
onBackPressed={onBackPressed}
|
|
84
|
+
onInfoPressed={onInfoPressed}
|
|
85
|
+
onImagePreview={onImagePreview}
|
|
86
|
+
testID={testID}
|
|
87
|
+
/>
|
|
88
|
+
);
|
|
89
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { HistoryActionEnum, HistoryEntityTypeEnum, HistoryListItem } from '@procivis/react-native-one-core';
|
|
2
|
+
import React, { FC, useMemo } from 'react';
|
|
3
|
+
import { SvgProps } from 'react-native-svg';
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
HistoryBackupCreatedIcon,
|
|
7
|
+
HistoryBackupRestoredIcon,
|
|
8
|
+
HistoryCredentialIcon,
|
|
9
|
+
HistoryDidIcon,
|
|
10
|
+
HistoryIssueIcon,
|
|
11
|
+
HistoryItemIcon,
|
|
12
|
+
HistoryKeyIcon,
|
|
13
|
+
HistoryOrganisationIcon,
|
|
14
|
+
HistoryProofRequestIcon,
|
|
15
|
+
HistoryRevokeIcon,
|
|
16
|
+
HistorySchemaIcon,
|
|
17
|
+
HistoryStatusAcceptedIcon,
|
|
18
|
+
HistoryStatusDeleteIcon,
|
|
19
|
+
HistoryStatusErrorIcon,
|
|
20
|
+
HistoryStatusSuspendIcon,
|
|
21
|
+
HistorySuspendIcon,
|
|
22
|
+
HistoryTrustAnchorIcon,
|
|
23
|
+
HistoryTrustedEntityIcon,
|
|
24
|
+
} from '../../ui-components';
|
|
25
|
+
|
|
26
|
+
const defaultIcons: {
|
|
27
|
+
actions: { [key in keyof typeof HistoryActionEnum]: FC<SvgProps> };
|
|
28
|
+
entityTypes: { [key in keyof typeof HistoryEntityTypeEnum]: FC<SvgProps> };
|
|
29
|
+
} = {
|
|
30
|
+
actions: {
|
|
31
|
+
ACCEPTED: HistoryStatusAcceptedIcon,
|
|
32
|
+
ACTIVATED: HistoryStatusAcceptedIcon,
|
|
33
|
+
CLAIMS_REMOVED: HistoryStatusDeleteIcon,
|
|
34
|
+
CREATED: HistoryStatusAcceptedIcon,
|
|
35
|
+
DEACTIVATED: HistoryStatusErrorIcon,
|
|
36
|
+
DELETED: HistoryStatusDeleteIcon,
|
|
37
|
+
ERRORED: HistoryStatusErrorIcon,
|
|
38
|
+
IMPORTED: HistoryStatusAcceptedIcon,
|
|
39
|
+
ISSUED: HistoryStatusAcceptedIcon,
|
|
40
|
+
OFFERED: HistoryStatusAcceptedIcon,
|
|
41
|
+
PENDING: HistoryStatusAcceptedIcon,
|
|
42
|
+
REJECTED: HistoryStatusErrorIcon,
|
|
43
|
+
REMOVED: HistoryStatusDeleteIcon,
|
|
44
|
+
REQUESTED: HistoryStatusAcceptedIcon,
|
|
45
|
+
RESTORED: HistoryStatusAcceptedIcon,
|
|
46
|
+
RETRACTED: HistoryStatusErrorIcon,
|
|
47
|
+
REVOKED: HistoryStatusErrorIcon,
|
|
48
|
+
SHARED: HistoryStatusAcceptedIcon,
|
|
49
|
+
SUSPENDED: HistoryStatusSuspendIcon,
|
|
50
|
+
UPDATED: HistoryStatusAcceptedIcon,
|
|
51
|
+
WITHDRAWN: HistoryStatusErrorIcon,
|
|
52
|
+
REACTIVATED: HistoryStatusAcceptedIcon,
|
|
53
|
+
CSR_GENERATED: HistoryStatusAcceptedIcon,
|
|
54
|
+
},
|
|
55
|
+
entityTypes: {
|
|
56
|
+
BACKUP: HistoryRevokeIcon,
|
|
57
|
+
CREDENTIAL: HistoryCredentialIcon,
|
|
58
|
+
CREDENTIAL_SCHEMA: HistorySchemaIcon,
|
|
59
|
+
DID: HistoryDidIcon,
|
|
60
|
+
KEY: HistoryKeyIcon,
|
|
61
|
+
ORGANISATION: HistoryOrganisationIcon,
|
|
62
|
+
PROOF: HistoryProofRequestIcon,
|
|
63
|
+
PROOF_SCHEMA: HistorySchemaIcon,
|
|
64
|
+
TRUST_ANCHOR: HistoryTrustAnchorIcon,
|
|
65
|
+
TRUST_ENTITY: HistoryTrustedEntityIcon,
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const getHistoryItemActionIcon = (action: HistoryActionEnum) => {
|
|
70
|
+
return defaultIcons.actions[action] ?? HistoryStatusAcceptedIcon;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export type HistoryListItemIconProps = {
|
|
74
|
+
item: HistoryListItem;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export const HistoryListItemIcon: FC<HistoryListItemIconProps> = ({ item }) => {
|
|
78
|
+
const statusIcon = getHistoryItemActionIcon(item.action);
|
|
79
|
+
const typeIcon = useMemo(() => {
|
|
80
|
+
switch (item.entityType) {
|
|
81
|
+
case HistoryEntityTypeEnum.BACKUP:
|
|
82
|
+
switch (item.action) {
|
|
83
|
+
case HistoryActionEnum.CREATED:
|
|
84
|
+
return HistoryBackupCreatedIcon;
|
|
85
|
+
case HistoryActionEnum.RESTORED:
|
|
86
|
+
return HistoryBackupRestoredIcon;
|
|
87
|
+
default:
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
break;
|
|
91
|
+
case HistoryEntityTypeEnum.CREDENTIAL:
|
|
92
|
+
switch (item.action) {
|
|
93
|
+
case HistoryActionEnum.REVOKED:
|
|
94
|
+
return HistoryRevokeIcon;
|
|
95
|
+
case HistoryActionEnum.SUSPENDED:
|
|
96
|
+
return HistorySuspendIcon;
|
|
97
|
+
default:
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
break;
|
|
101
|
+
default:
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return defaultIcons.entityTypes[item.entityType] ?? HistoryIssueIcon;
|
|
106
|
+
}, [item.action, item.entityType]);
|
|
107
|
+
return <HistoryItemIcon StatusIcon={statusIcon} TypeIcon={typeIcon} />;
|
|
108
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { HistoryActionEnum, HistoryEntityTypeEnum, HistoryListItem } from '@procivis/react-native-one-core';
|
|
2
|
+
import React, { FC, useCallback } from 'react';
|
|
3
|
+
|
|
4
|
+
import { HistoryItemView } from '../../ui-components';
|
|
5
|
+
import { formatTime, useTrustEntity } from '../../utils';
|
|
6
|
+
import { HistoryListItemIcon } from './history-list-item-icon';
|
|
7
|
+
|
|
8
|
+
export type HistoryListItemLabels = {
|
|
9
|
+
actions: { [key in keyof typeof HistoryActionEnum]: string };
|
|
10
|
+
entityTypes: { [key in keyof typeof HistoryEntityTypeEnum]: string };
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export interface HistoryListItemViewProps {
|
|
14
|
+
dateFormatter?: (date: Date) => string;
|
|
15
|
+
first?: boolean;
|
|
16
|
+
item: HistoryListItem;
|
|
17
|
+
labels: HistoryListItemLabels;
|
|
18
|
+
last?: boolean;
|
|
19
|
+
onPress?: (item: HistoryListItem) => void;
|
|
20
|
+
testID?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const HistoryListItemView: FC<HistoryListItemViewProps> = ({
|
|
24
|
+
dateFormatter = formatTime,
|
|
25
|
+
first,
|
|
26
|
+
item,
|
|
27
|
+
labels,
|
|
28
|
+
last,
|
|
29
|
+
onPress,
|
|
30
|
+
testID
|
|
31
|
+
}) => {
|
|
32
|
+
const { data: entity } = useTrustEntity(item.target);
|
|
33
|
+
|
|
34
|
+
const label = `${labels.entityTypes[item.entityType]} ${labels.actions[item.action]}`;
|
|
35
|
+
const icon = <HistoryListItemIcon item={item} />;
|
|
36
|
+
|
|
37
|
+
const pressHandler = useCallback(() => {
|
|
38
|
+
onPress?.(item);
|
|
39
|
+
}, [onPress, item]);
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<HistoryItemView
|
|
43
|
+
first={first}
|
|
44
|
+
icon={icon}
|
|
45
|
+
info={entity?.name}
|
|
46
|
+
label={label}
|
|
47
|
+
last={last}
|
|
48
|
+
onPress={pressHandler}
|
|
49
|
+
testID={testID}
|
|
50
|
+
time={dateFormatter(new Date(item.createdDate)) ?? ''}
|
|
51
|
+
/>
|
|
52
|
+
);
|
|
53
|
+
};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { HistoryListItem, HistoryListQuery } from '@procivis/react-native-one-core';
|
|
2
|
+
import { debounce } from 'lodash';
|
|
3
|
+
import React, { FC, PropsWithChildren, useEffect, useMemo, useState } from 'react';
|
|
4
|
+
import { Animated, StyleSheet, View } from 'react-native';
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
BackButton,
|
|
8
|
+
FilterButton,
|
|
9
|
+
FoldableHeader,
|
|
10
|
+
NavigationHeader,
|
|
11
|
+
Typography,
|
|
12
|
+
useAppColorScheme,
|
|
13
|
+
} from '../../ui-components';
|
|
14
|
+
import { concatTestID, groupEntriesByDay, HistoryGroupByDaySection, useListContentInset } from '../../utils';
|
|
15
|
+
import { HistoryListLabels, HistoryListView } from './history-list';
|
|
16
|
+
|
|
17
|
+
export type HistoryListScreenLabels = {
|
|
18
|
+
emptyTitle: string;
|
|
19
|
+
emptySubtitle: string;
|
|
20
|
+
list: HistoryListLabels;
|
|
21
|
+
title: string;
|
|
22
|
+
search: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type HistoryListScreenProps = {
|
|
26
|
+
groupItems?: (entries: HistoryListItem[]) => HistoryGroupByDaySection[];
|
|
27
|
+
labels: HistoryListScreenLabels;
|
|
28
|
+
onBackPressed: () => void;
|
|
29
|
+
onHistoryItemPressed: (historyItem: HistoryListItem) => void;
|
|
30
|
+
onOpenFilter?: () => void;
|
|
31
|
+
onSearchPhraseChange: (searchPhrase: string | undefined) => void;
|
|
32
|
+
queryParams: Partial<HistoryListQuery>;
|
|
33
|
+
testID?: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const HistoryListScreen: FC<PropsWithChildren<HistoryListScreenProps>> = ({
|
|
37
|
+
children,
|
|
38
|
+
groupItems = groupEntriesByDay,
|
|
39
|
+
labels,
|
|
40
|
+
onBackPressed,
|
|
41
|
+
onHistoryItemPressed,
|
|
42
|
+
onOpenFilter,
|
|
43
|
+
onSearchPhraseChange,
|
|
44
|
+
queryParams,
|
|
45
|
+
testID = 'HistoryScreen',
|
|
46
|
+
}) => {
|
|
47
|
+
const colorScheme = useAppColorScheme();
|
|
48
|
+
const [empty, setEmpty] = useState<boolean>(false);
|
|
49
|
+
const [scrollOffset] = useState(() => new Animated.Value(0));
|
|
50
|
+
|
|
51
|
+
const [searchPhrase, setSearchPhrase] = useState<string>('');
|
|
52
|
+
const searchBarVisible = !empty || Boolean(queryParams.searchText);
|
|
53
|
+
|
|
54
|
+
const handleSearchPhraseChange = useMemo(() => debounce(onSearchPhraseChange, 500), [onSearchPhraseChange]);
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
handleSearchPhraseChange(searchPhrase || undefined);
|
|
57
|
+
}, [searchPhrase, handleSearchPhraseChange]);
|
|
58
|
+
|
|
59
|
+
const headerHeight = searchBarVisible ? 112 : 70;
|
|
60
|
+
|
|
61
|
+
const insets = useListContentInset({
|
|
62
|
+
additionalBottomPadding: 24,
|
|
63
|
+
headerHeight,
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<View
|
|
68
|
+
style={[
|
|
69
|
+
styles.container,
|
|
70
|
+
{
|
|
71
|
+
backgroundColor: colorScheme.background,
|
|
72
|
+
},
|
|
73
|
+
]}
|
|
74
|
+
testID={testID}>
|
|
75
|
+
{empty && (
|
|
76
|
+
<View
|
|
77
|
+
style={[
|
|
78
|
+
styles.emptyNotice,
|
|
79
|
+
{
|
|
80
|
+
backgroundColor: colorScheme.white,
|
|
81
|
+
marginTop: insets.paddingTop,
|
|
82
|
+
},
|
|
83
|
+
]}>
|
|
84
|
+
<Typography align="center" color={colorScheme.text} preset="s">
|
|
85
|
+
{labels.emptyTitle}
|
|
86
|
+
</Typography>
|
|
87
|
+
<Typography align="center" color={colorScheme.text} preset="s/line-height-small" style={styles.shaded}>
|
|
88
|
+
{labels.emptySubtitle}
|
|
89
|
+
</Typography>
|
|
90
|
+
</View>
|
|
91
|
+
)}
|
|
92
|
+
<HistoryListView
|
|
93
|
+
contentContainerStyle={insets}
|
|
94
|
+
groupItems={groupItems}
|
|
95
|
+
itemProps={{ onPress: onHistoryItemPressed }}
|
|
96
|
+
onEmpty={setEmpty}
|
|
97
|
+
onScroll={Animated.event([{ nativeEvent: { contentOffset: { y: scrollOffset } } }], {
|
|
98
|
+
useNativeDriver: true,
|
|
99
|
+
})}
|
|
100
|
+
query={queryParams}
|
|
101
|
+
testID={concatTestID(testID, 'list')}
|
|
102
|
+
labels={labels.list}
|
|
103
|
+
/>
|
|
104
|
+
{children}
|
|
105
|
+
<FoldableHeader
|
|
106
|
+
header={
|
|
107
|
+
<NavigationHeader
|
|
108
|
+
backgroundColor={'transparent'}
|
|
109
|
+
leftItem={<BackButton onPress={onBackPressed} testID={concatTestID(testID, 'back')} />}
|
|
110
|
+
title={labels.title}
|
|
111
|
+
/>
|
|
112
|
+
}
|
|
113
|
+
scrollOffset={scrollOffset}
|
|
114
|
+
searchBar={
|
|
115
|
+
!searchBarVisible
|
|
116
|
+
? undefined
|
|
117
|
+
: {
|
|
118
|
+
rightButton: onOpenFilter ? (
|
|
119
|
+
<FilterButton
|
|
120
|
+
active={Boolean(queryParams.credentialSchemaId)}
|
|
121
|
+
onPress={onOpenFilter}
|
|
122
|
+
testID={concatTestID(testID, 'filter')}
|
|
123
|
+
/>
|
|
124
|
+
) : undefined,
|
|
125
|
+
rightButtonAlwaysVisible: true,
|
|
126
|
+
searchBarProps: {
|
|
127
|
+
onSearchPhraseChange: setSearchPhrase,
|
|
128
|
+
placeholder: labels.search,
|
|
129
|
+
searchPhrase,
|
|
130
|
+
testID: concatTestID(testID, 'search'),
|
|
131
|
+
},
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
staticHeader={!searchBarVisible}
|
|
135
|
+
/>
|
|
136
|
+
</View>
|
|
137
|
+
);
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
const styles = StyleSheet.create({
|
|
141
|
+
container: {
|
|
142
|
+
flex: 1,
|
|
143
|
+
},
|
|
144
|
+
emptyNotice: {
|
|
145
|
+
borderRadius: 12,
|
|
146
|
+
marginHorizontal: 16,
|
|
147
|
+
paddingBottom: 20,
|
|
148
|
+
paddingHorizontal: 12,
|
|
149
|
+
paddingTop: 16,
|
|
150
|
+
},
|
|
151
|
+
shaded: {
|
|
152
|
+
opacity: 0.7,
|
|
153
|
+
},
|
|
154
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import moment, { Moment } from 'moment';
|
|
2
|
+
import React, { FC, useMemo } from 'react';
|
|
3
|
+
|
|
4
|
+
import { HistorySectionHeaderView } from '../../ui-components';
|
|
5
|
+
|
|
6
|
+
export type HistoryListSectionHeaderLabels = {
|
|
7
|
+
today: string;
|
|
8
|
+
yesterday: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type HistoryListSectionHeaderViewProps = {
|
|
12
|
+
date: Moment;
|
|
13
|
+
firstYearEntry: boolean;
|
|
14
|
+
labels: HistoryListSectionHeaderLabels;
|
|
15
|
+
testID?: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// components used on the history section lists (Settings->History, CredentialDetail->History)
|
|
19
|
+
// https://www.figma.com/file/52qDYWUMjXAGre1dcnz5bz/Procivis-One-Wallet?type=design&node-id=1246-51813&mode=dev
|
|
20
|
+
|
|
21
|
+
export const HistoryListSectionHeaderView: FC<HistoryListSectionHeaderViewProps> = ({
|
|
22
|
+
date,
|
|
23
|
+
firstYearEntry,
|
|
24
|
+
labels,
|
|
25
|
+
testID,
|
|
26
|
+
}) => {
|
|
27
|
+
const day = useMemo(() => {
|
|
28
|
+
const now = moment();
|
|
29
|
+
const dateString = moment(date);
|
|
30
|
+
|
|
31
|
+
if (dateString.isSame(now, 'day')) {
|
|
32
|
+
return labels.today;
|
|
33
|
+
} else if (dateString.isSame(now.subtract(1, 'day'), 'day')) {
|
|
34
|
+
return labels.yesterday;
|
|
35
|
+
}
|
|
36
|
+
return dateString.format('Do MMMM');
|
|
37
|
+
}, [date, labels]);
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<HistorySectionHeaderView day={day} testID={testID} year={firstYearEntry ? date.year().toString() : undefined} />
|
|
41
|
+
);
|
|
42
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { HistoryListItem, HistoryListQuery } from '@procivis/react-native-one-core';
|
|
2
|
+
import { useIsFocused } from '@react-navigation/native';
|
|
3
|
+
import React, { FC, useCallback, useMemo } from 'react';
|
|
4
|
+
import { Animated, SectionListProps, StyleSheet } from 'react-native';
|
|
5
|
+
|
|
6
|
+
import { ActivityIndicator, useAppColorScheme } from '../../ui-components';
|
|
7
|
+
import ListPageLoadingIndicator from '../../ui-components/list/list-page-loading-indicator';
|
|
8
|
+
import { concatTestID, useHistory } from '../../utils';
|
|
9
|
+
import { groupEntriesByDay, HistoryGroupByDaySection } from '../../utils/history';
|
|
10
|
+
import { HistoryListItemLabels, HistoryListItemView, HistoryListItemViewProps } from './history-list-item';
|
|
11
|
+
import { HistoryListSectionHeaderLabels, HistoryListSectionHeaderView } from './history-list-section-header';
|
|
12
|
+
|
|
13
|
+
export type HistoryListLabels = {
|
|
14
|
+
sectionHeader: HistoryListSectionHeaderLabels;
|
|
15
|
+
item: HistoryListItemLabels;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export interface HistoryListViewProps
|
|
19
|
+
extends Omit<SectionListProps<HistoryListItem, HistoryGroupByDaySection>, 'sections'> {
|
|
20
|
+
// optional customization of item props
|
|
21
|
+
getItemProps?: (item: HistoryListItem) => Partial<HistoryListItemViewProps> | undefined;
|
|
22
|
+
groupItems?: (entries: HistoryListItem[]) => HistoryGroupByDaySection[];
|
|
23
|
+
itemProps?: Partial<HistoryListItemViewProps>;
|
|
24
|
+
labels: HistoryListLabels;
|
|
25
|
+
// callback when empty list displayed
|
|
26
|
+
onEmpty?: (empty: boolean) => void;
|
|
27
|
+
query: Partial<HistoryListQuery>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const HistoryListView: FC<HistoryListViewProps> = ({
|
|
31
|
+
query,
|
|
32
|
+
contentContainerStyle,
|
|
33
|
+
getItemProps,
|
|
34
|
+
groupItems = groupEntriesByDay,
|
|
35
|
+
itemProps,
|
|
36
|
+
labels,
|
|
37
|
+
onEmpty,
|
|
38
|
+
onScroll,
|
|
39
|
+
...props
|
|
40
|
+
}) => {
|
|
41
|
+
const isFocused = useIsFocused();
|
|
42
|
+
const colorScheme = useAppColorScheme();
|
|
43
|
+
const {
|
|
44
|
+
data: historyData,
|
|
45
|
+
fetchNextPage: fetchNextHistoryPage,
|
|
46
|
+
hasNextPage: hasNextHistoryPage,
|
|
47
|
+
isLoading,
|
|
48
|
+
} = useHistory(query);
|
|
49
|
+
|
|
50
|
+
const history = useMemo(() => {
|
|
51
|
+
const items = historyData?.pages
|
|
52
|
+
.flat()
|
|
53
|
+
.map((page) => page.values)
|
|
54
|
+
.flat();
|
|
55
|
+
if (!items) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (historyData) {
|
|
59
|
+
setImmediate(() => onEmpty?.(!items.length));
|
|
60
|
+
}
|
|
61
|
+
return groupItems(items);
|
|
62
|
+
}, [historyData, onEmpty, groupItems]);
|
|
63
|
+
|
|
64
|
+
const onEndReached = useCallback(() => {
|
|
65
|
+
if (hasNextHistoryPage) {
|
|
66
|
+
fetchNextHistoryPage().catch(() => {});
|
|
67
|
+
}
|
|
68
|
+
}, [fetchNextHistoryPage, hasNextHistoryPage]);
|
|
69
|
+
|
|
70
|
+
if (!history) {
|
|
71
|
+
return <ActivityIndicator animate={isFocused} />;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return (
|
|
75
|
+
<Animated.SectionList<HistoryListItem, HistoryGroupByDaySection>
|
|
76
|
+
ListFooterComponent={
|
|
77
|
+
isLoading ? <ListPageLoadingIndicator color={colorScheme.accent} style={styles.footer} /> : undefined
|
|
78
|
+
}
|
|
79
|
+
contentContainerStyle={[styles.listContent, contentContainerStyle]}
|
|
80
|
+
keyExtractor={(item) => item.id}
|
|
81
|
+
onEndReached={onEndReached}
|
|
82
|
+
onScroll={onScroll}
|
|
83
|
+
renderItem={({ item, index, section }) => (
|
|
84
|
+
<HistoryListItemView
|
|
85
|
+
first={!index}
|
|
86
|
+
item={item}
|
|
87
|
+
labels={labels.item}
|
|
88
|
+
last={index === section.data.length - 1}
|
|
89
|
+
testID={concatTestID(props.testID, 'item', index.toString())}
|
|
90
|
+
{...itemProps}
|
|
91
|
+
{...getItemProps?.(item)}
|
|
92
|
+
/>
|
|
93
|
+
)}
|
|
94
|
+
renderSectionHeader={({ section }) => (
|
|
95
|
+
<HistoryListSectionHeaderView
|
|
96
|
+
date={section.date}
|
|
97
|
+
firstYearEntry={section.firstYearEntry}
|
|
98
|
+
labels={labels.sectionHeader}
|
|
99
|
+
testID={concatTestID(props.testID, 'section')}
|
|
100
|
+
/>
|
|
101
|
+
)}
|
|
102
|
+
sections={history}
|
|
103
|
+
stickySectionHeadersEnabled={false}
|
|
104
|
+
{...props}
|
|
105
|
+
/>
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
const styles = StyleSheet.create({
|
|
110
|
+
footer: {
|
|
111
|
+
marginVertical: 16,
|
|
112
|
+
},
|
|
113
|
+
listContent: {
|
|
114
|
+
paddingHorizontal: 16,
|
|
115
|
+
},
|
|
116
|
+
});
|
package/src/components/index.ts
CHANGED
|
@@ -104,7 +104,7 @@ export function useIsOutsideTransition<
|
|
|
104
104
|
* @param component component ref
|
|
105
105
|
* @note Disabled on android as it is not reliable
|
|
106
106
|
*/
|
|
107
|
-
export const focusAccessibility = (component?: React.
|
|
107
|
+
export const focusAccessibility = (component?: React.ElementType<any, any> | null) => {
|
|
108
108
|
if (Platform.OS === 'ios' && component) {
|
|
109
109
|
const nodeHandle = findNodeHandle(component);
|
|
110
110
|
if (nodeHandle) {
|
|
@@ -118,7 +118,7 @@ export const focusAccessibility = (component?: React.Component | React.Component
|
|
|
118
118
|
* @param {boolean} focused Focusing happens when this changes to `true`
|
|
119
119
|
* @returns reference to be used with the target element
|
|
120
120
|
*/
|
|
121
|
-
export const useAccessibilityFocus = <T extends React.
|
|
121
|
+
export const useAccessibilityFocus = <T extends React.ElementType<any, any>>(focused: boolean = true) => {
|
|
122
122
|
const ref = useRef<T>(null);
|
|
123
123
|
|
|
124
124
|
useEffect(() => {
|
|
@@ -4,7 +4,7 @@ import React, { FC, PropsWithChildren, useCallback, useContext, useEffect, useMe
|
|
|
4
4
|
import { useForwardedRef } from '../../utils/ref';
|
|
5
5
|
import { focusAccessibility, useAccessibleAfterTransition } from './accessibility';
|
|
6
6
|
|
|
7
|
-
type AccessibilityRefComponent = React.
|
|
7
|
+
type AccessibilityRefComponent = React.ElementType<any, any> | null;
|
|
8
8
|
interface AccessibilityRefContextValue {
|
|
9
9
|
setRef: (route: string, ref: AccessibilityRefComponent) => void;
|
|
10
10
|
getRef: (route: string) => AccessibilityRefComponent;
|
|
@@ -36,7 +36,7 @@ export const AccessibilityFocusHistoryProvider: FC<PropsWithChildren<{}>> = ({ c
|
|
|
36
36
|
* @note This needs to be used inside {@link AccessibilityFocusHistoryProvider} and navigation context
|
|
37
37
|
*/
|
|
38
38
|
export const useAccessibilityFocusHistory = <
|
|
39
|
-
Component extends React.
|
|
39
|
+
Component extends React.ElementType<any, any>,
|
|
40
40
|
OnPress extends (...args: never[]) => void = () => void,
|
|
41
41
|
>(
|
|
42
42
|
pressHandler: OnPress | undefined,
|
|
@@ -20,7 +20,7 @@ interface OnPressProps {
|
|
|
20
20
|
onPress?: RNOnPress | null;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
const WithAccessibilityFocusHistory = <ComponentProps extends OnPressProps, RefType extends React.
|
|
23
|
+
const WithAccessibilityFocusHistory = <ComponentProps extends OnPressProps, RefType extends React.ElementType<any, any>>(
|
|
24
24
|
C: React.ComponentType<ComponentProps>,
|
|
25
25
|
displayName: string,
|
|
26
26
|
) => {
|
|
@@ -52,8 +52,7 @@ const WithAccessibilityFocusHistory = <ComponentProps extends OnPressProps, RefT
|
|
|
52
52
|
/**
|
|
53
53
|
* Wrappers of RN touchable components with accessibilty focus history support
|
|
54
54
|
*/
|
|
55
|
-
|
|
56
|
-
export const TouchableOpacity = WithAccessibilityFocusHistory<TouchableOpacityProps, RNTouchableOpacity>(
|
|
55
|
+
export const TouchableOpacity = WithAccessibilityFocusHistory<TouchableOpacityProps, typeof RNTouchableOpacity>(
|
|
57
56
|
RNTouchableOpacity,
|
|
58
57
|
'TouchableOpacity',
|
|
59
58
|
);
|
|
@@ -61,7 +60,7 @@ export const TouchableWithoutFeedback = WithAccessibilityFocusHistory<
|
|
|
61
60
|
TouchableWithoutFeedbackProps,
|
|
62
61
|
RNTouchableWithoutFeedback
|
|
63
62
|
>(RNTouchableWithoutFeedback, 'TouchableWithoutFeedback');
|
|
64
|
-
export const TouchableHighlight = WithAccessibilityFocusHistory<TouchableHighlightProps, RNTouchableHighlight>(
|
|
63
|
+
export const TouchableHighlight = WithAccessibilityFocusHistory<TouchableHighlightProps, typeof RNTouchableHighlight>(
|
|
65
64
|
RNTouchableHighlight,
|
|
66
65
|
'TouchableHighlight',
|
|
67
66
|
);
|
|
@@ -73,7 +72,6 @@ type WrapperRefType<C extends React.ForwardRefExoticComponent<React.RefAttribute
|
|
|
73
72
|
/**
|
|
74
73
|
* Ref types to be used in forwardRef for the wrappers
|
|
75
74
|
*/
|
|
76
|
-
|
|
77
75
|
export type TouchableOpacityRef = WrapperRefType<typeof TouchableOpacity>;
|
|
78
76
|
export type TouchableWithoutFeedbackRef = WrapperRefType<typeof TouchableWithoutFeedback>;
|
|
79
77
|
export type TouchableHighlightRef = WrapperRefType<typeof TouchableHighlight>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { AccessibilityTextTransformer } from './accessibility';
|
|
1
2
|
import {
|
|
2
|
-
AccessibilityTextTransformer,
|
|
3
3
|
focusAccessibility,
|
|
4
4
|
setAccessibilityTextTransformer,
|
|
5
5
|
transformAccessibilityText,
|
|
@@ -10,9 +10,10 @@ import {
|
|
|
10
10
|
useIsOutsideTransition,
|
|
11
11
|
} from './accessibility';
|
|
12
12
|
import { AccessibilityFocusHistoryProvider, useAccessibilityFocusHistory } from './accessibilityHistory';
|
|
13
|
-
import {
|
|
13
|
+
import type { AccessibilityLanguageProviderProps } from './accessibilityLanguage';
|
|
14
|
+
import { AccessibilityLanguageProvider } from './accessibilityLanguage';
|
|
14
15
|
// @ts-ignore
|
|
15
|
-
import { AccessibilityLanguageFile, SupportedAccessibilityLanguage } from './locale';
|
|
16
|
+
import type { AccessibilityLanguageFile, SupportedAccessibilityLanguage } from './locale';
|
|
16
17
|
|
|
17
18
|
export * from './accessibilityHistoryWrappers';
|
|
18
19
|
|