@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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_loader","_interopRequireWildcard","require","_loadingResult","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"names":["_loader","_interopRequireWildcard","require","_loadingResult","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set"],"sources":["index.ts"],"sourcesContent":["import LoaderView, { LoaderViewProps, LoaderViewState } from './loader';\nimport LoadingResultScreen, { LoadingResultScreenProps } from './loading-result';\n\nexport { LoaderView, LoaderViewProps, LoaderViewState };\nexport { LoadingResultScreen, LoadingResultScreenProps };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAF,uBAAA,CAAAC,OAAA;AAAiF,SAAAE,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA","ignoreList":[]}
|
|
@@ -9,22 +9,20 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
10
|
var _utils = require("../../utils");
|
|
11
11
|
var _loader = require("../icons/loader");
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
14
|
-
let LoaderViewState
|
|
15
|
-
exports.LoaderViewState = LoaderViewState;
|
|
16
|
-
(function (LoaderViewState) {
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
+
let LoaderViewState = exports.LoaderViewState = /*#__PURE__*/function (LoaderViewState) {
|
|
17
15
|
LoaderViewState["Error"] = "error";
|
|
18
16
|
LoaderViewState["InProgress"] = "inProgress";
|
|
19
17
|
LoaderViewState["Success"] = "success";
|
|
20
18
|
LoaderViewState["Warning"] = "warning";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
return LoaderViewState;
|
|
20
|
+
}({});
|
|
21
|
+
const LoaderView = ({
|
|
22
|
+
animate,
|
|
23
|
+
state,
|
|
24
|
+
testID
|
|
25
|
+
}) => {
|
|
28
26
|
const [initialDelayPassed, setInitialDelayPassed] = (0, _react.useState)(false);
|
|
29
27
|
const rotationIsAnimating = (0, _react.useRef)(false);
|
|
30
28
|
const rotation = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
@@ -52,20 +50,23 @@ const LoaderView = _ref => {
|
|
|
52
50
|
duration: 1000,
|
|
53
51
|
easing: _reactNativeReanimated.Easing.linear
|
|
54
52
|
}), -1);
|
|
55
|
-
}, [
|
|
53
|
+
}, [rotation]);
|
|
56
54
|
const stopRotationAnimation = (0, _react.useCallback)(() => {
|
|
57
55
|
Promise.resolve(_reactNative.InteractionManager.runAfterInteractions(() => {
|
|
58
56
|
rotationIsAnimating.current = false;
|
|
59
57
|
(0, _reactNativeReanimated.cancelAnimation)(rotation);
|
|
60
58
|
rotation.value = 0;
|
|
61
59
|
})).catch(() => {});
|
|
62
|
-
}, [
|
|
60
|
+
}, [rotation]);
|
|
63
61
|
(0, _react.useEffect)(() => {
|
|
64
62
|
if (animate) {
|
|
65
|
-
|
|
63
|
+
if (!finished) {
|
|
64
|
+
startRotationAnimation();
|
|
65
|
+
}
|
|
66
66
|
} else {
|
|
67
67
|
stopRotationAnimation();
|
|
68
68
|
}
|
|
69
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
69
70
|
}, [animate, startRotationAnimation, stopRotationAnimation]);
|
|
70
71
|
(0, _react.useEffect)(() => {
|
|
71
72
|
if (!initialDelayPassed) {
|
|
@@ -135,6 +136,5 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
135
136
|
width: 64
|
|
136
137
|
}
|
|
137
138
|
});
|
|
138
|
-
var _default = LoaderView;
|
|
139
|
-
exports.default = _default;
|
|
139
|
+
var _default = exports.default = LoaderView;
|
|
140
140
|
//# sourceMappingURL=loader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_utils","_loader","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","LoaderViewState","exports","LoaderView","_ref","animate","state","testID","initialDelayPassed","setInitialDelayPassed","useState","rotationIsAnimating","useRef","rotation","useSharedValue","opacity","InProgress","finished","useEffect","timeout","setTimeout","clearTimeout","cancelAnimation","startRotationAnimation","useCallback","current","value","withRepeat","withTiming","duration","easing","Easing","linear","stopRotationAnimation","Promise","resolve","InteractionManager","runAfterInteractions","catch","toValue","ease","runOnJS","spinnerAnimatedStyle","useAnimatedStyle","transform","rotateZ","resultAnimatedStyle","finishedIcon","useMemo","Success","createElement","LoaderSuccess","Warning","LoaderWarning","Error","LoaderError","View","style","styles","loader","concatTestID","loaderElement","LoaderProgressSpinner","StyleSheet","create","height","width","left","position","top","_default"],"sources":["loader.tsx"],"sourcesContent":["import React, { FC, useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { InteractionManager, StyleSheet, View } from 'react-native';\nimport Animated, {\n cancelAnimation,\n Easing,\n runOnJS,\n useAnimatedStyle,\n useSharedValue,\n withRepeat,\n withTiming,\n} from 'react-native-reanimated';\n\nimport { concatTestID } from '../../utils';\nimport { LoaderError, LoaderProgressSpinner, LoaderSuccess, LoaderWarning } from '../icons/loader';\n\nexport enum LoaderViewState {\n Error = 'error',\n InProgress = 'inProgress',\n Success = 'success',\n Warning = 'warning',\n}\n\nexport type LoaderViewProps = {\n animate: boolean;\n state?: LoaderViewState;\n testID?: string;\n};\n\nconst LoaderView: FC<LoaderViewProps> = ({ animate, state, testID }) => {\n const [initialDelayPassed, setInitialDelayPassed] = useState(false);\n const rotationIsAnimating = useRef(false);\n const rotation = useSharedValue(0);\n const opacity = useSharedValue(state === LoaderViewState.InProgress ? 0 : 1);\n\n const finished = state !== LoaderViewState.InProgress;\n\n useEffect(() => {\n const timeout = setTimeout(() => {\n setInitialDelayPassed(true);\n }, 1000);\n\n return () => {\n clearTimeout(timeout);\n };\n }, []);\n\n useEffect(() => {\n return () => {\n cancelAnimation(rotation);\n };\n }, [rotation]);\n\n const startRotationAnimation = useCallback(() => {\n if (rotationIsAnimating.current) {\n return;\n }\n rotationIsAnimating.current = true;\n rotation.value = withRepeat(\n withTiming(360, {\n duration: 1000,\n easing: Easing.linear,\n }),\n -1,\n );\n }, [rotationIsAnimating, rotation]);\n\n const stopRotationAnimation = useCallback(() => {\n Promise.resolve(\n InteractionManager.runAfterInteractions(() => {\n rotationIsAnimating.current = false;\n cancelAnimation(rotation);\n rotation.value = 0;\n }),\n ).catch(() => {});\n }, [rotationIsAnimating, rotation]);\n\n useEffect(() => {\n if (animate) {\n startRotationAnimation();\n } else {\n stopRotationAnimation();\n }\n }, [animate, startRotationAnimation, stopRotationAnimation]);\n\n useEffect(() => {\n if (!initialDelayPassed) {\n return;\n }\n const toValue = finished ? 1 : 0;\n if (opacity.value === toValue) {\n return;\n }\n if (animate) {\n if (!finished) {\n startRotationAnimation();\n }\n opacity.value = withTiming(\n toValue,\n {\n duration: 300,\n easing: Easing.ease,\n },\n () => {\n if (finished) {\n runOnJS(stopRotationAnimation)();\n }\n },\n );\n } else {\n opacity.value = toValue;\n stopRotationAnimation();\n }\n }, [opacity, finished, initialDelayPassed, animate, stopRotationAnimation, startRotationAnimation]);\n\n const spinnerAnimatedStyle = useAnimatedStyle(\n () => ({\n opacity: 1 - opacity.value,\n transform: [\n {\n rotateZ: `${rotation.value}deg`,\n },\n ],\n }),\n [opacity, rotation],\n );\n\n const resultAnimatedStyle = useAnimatedStyle(\n () => ({\n opacity: opacity.value,\n }),\n [opacity],\n );\n\n const finishedIcon = useMemo(() => {\n switch (state) {\n case LoaderViewState.Success:\n return <LoaderSuccess />;\n case LoaderViewState.Warning:\n return <LoaderWarning />;\n case LoaderViewState.Error:\n return <LoaderError />;\n default:\n return null;\n }\n }, [state]);\n\n return (\n <View style={styles.loader} testID={concatTestID(testID, state)}>\n <Animated.View style={[styles.loaderElement, spinnerAnimatedStyle]}>\n <LoaderProgressSpinner />\n </Animated.View>\n <Animated.View style={[styles.loaderElement, resultAnimatedStyle]}>{finishedIcon}</Animated.View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n loader: {\n height: 64,\n width: 64,\n },\n loaderElement: {\n height: 64,\n left: 0,\n position: 'absolute',\n top: 0,\n width: 64,\n },\n});\n\nexport default LoaderView;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAUA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAAmG,SAAAK,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAP,wBAAAW,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA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G,aAAa,EAAEf,mBAAmB;EAAE,GAAEC,YAAY,CAAiB,CAC5F;AAEX,CAAC;AAED,MAAMW,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAC/BL,MAAM,EAAE;IACNM,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE;EACT,CAAC;EACDL,aAAa,EAAE;IACbI,MAAM,EAAE,EAAE;IACVE,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNH,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAAC,IAAAI,QAAA,GAEYnE,UAAU;AAAAD,OAAA,CAAAhB,OAAA,GAAAoF,QAAA"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_utils","_loader","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","LoaderViewState","exports","LoaderView","animate","state","testID","initialDelayPassed","setInitialDelayPassed","useState","rotationIsAnimating","useRef","rotation","useSharedValue","opacity","InProgress","finished","useEffect","timeout","setTimeout","clearTimeout","cancelAnimation","startRotationAnimation","useCallback","current","value","withRepeat","withTiming","duration","easing","Easing","linear","stopRotationAnimation","Promise","resolve","InteractionManager","runAfterInteractions","catch","toValue","ease","runOnJS","spinnerAnimatedStyle","useAnimatedStyle","transform","rotateZ","resultAnimatedStyle","finishedIcon","useMemo","Success","createElement","LoaderSuccess","Warning","LoaderWarning","Error","LoaderError","View","style","styles","loader","concatTestID","loaderElement","LoaderProgressSpinner","StyleSheet","create","height","width","left","position","top","_default"],"sources":["loader.tsx"],"sourcesContent":["import React, { FC, useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { InteractionManager, StyleSheet, View } from 'react-native';\nimport Animated, {\n cancelAnimation,\n Easing,\n runOnJS,\n useAnimatedStyle,\n useSharedValue,\n withRepeat,\n withTiming,\n} from 'react-native-reanimated';\n\nimport { concatTestID } from '../../utils';\nimport { LoaderError, LoaderProgressSpinner, LoaderSuccess, LoaderWarning } from '../icons/loader';\n\nexport enum LoaderViewState {\n Error = 'error',\n InProgress = 'inProgress',\n Success = 'success',\n Warning = 'warning',\n}\n\nexport type LoaderViewProps = {\n animate: boolean;\n state?: LoaderViewState;\n testID?: string;\n};\n\nconst LoaderView: FC<LoaderViewProps> = ({ animate, state, testID }) => {\n const [initialDelayPassed, setInitialDelayPassed] = useState(false);\n const rotationIsAnimating = useRef(false);\n const rotation = useSharedValue(0);\n const opacity = useSharedValue(state === LoaderViewState.InProgress ? 0 : 1);\n\n const finished = state !== LoaderViewState.InProgress;\n\n useEffect(() => {\n const timeout = setTimeout(() => {\n setInitialDelayPassed(true);\n }, 1000);\n\n return () => {\n clearTimeout(timeout);\n };\n }, []);\n\n useEffect(() => {\n return () => {\n cancelAnimation(rotation);\n };\n }, [rotation]);\n\n const startRotationAnimation = useCallback(() => {\n if (rotationIsAnimating.current) {\n return;\n }\n rotationIsAnimating.current = true;\n rotation.value = withRepeat(\n withTiming(360, {\n duration: 1000,\n easing: Easing.linear,\n }),\n -1,\n );\n }, [rotation]);\n\n const stopRotationAnimation = useCallback(() => {\n Promise.resolve(\n InteractionManager.runAfterInteractions(() => {\n rotationIsAnimating.current = false;\n cancelAnimation(rotation);\n rotation.value = 0;\n }),\n ).catch(() => {});\n }, [rotation]);\n\n useEffect(() => {\n if (animate) {\n if (!finished) {\n startRotationAnimation();\n }\n } else {\n stopRotationAnimation();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [animate, startRotationAnimation, stopRotationAnimation]);\n\n useEffect(() => {\n if (!initialDelayPassed) {\n return;\n }\n const toValue = finished ? 1 : 0;\n if (opacity.value === toValue) {\n return;\n }\n if (animate) {\n if (!finished) {\n startRotationAnimation();\n }\n opacity.value = withTiming(\n toValue,\n {\n duration: 300,\n easing: Easing.ease,\n },\n () => {\n if (finished) {\n runOnJS(stopRotationAnimation)();\n }\n },\n );\n } else {\n opacity.value = toValue;\n stopRotationAnimation();\n }\n }, [opacity, finished, initialDelayPassed, animate, stopRotationAnimation, startRotationAnimation]);\n\n const spinnerAnimatedStyle = useAnimatedStyle(\n () => ({\n opacity: 1 - opacity.value,\n transform: [\n {\n rotateZ: `${rotation.value}deg`,\n },\n ],\n }),\n [opacity, rotation],\n );\n\n const resultAnimatedStyle = useAnimatedStyle(\n () => ({\n opacity: opacity.value,\n }),\n [opacity],\n );\n\n const finishedIcon = useMemo(() => {\n switch (state) {\n case LoaderViewState.Success:\n return <LoaderSuccess />;\n case LoaderViewState.Warning:\n return <LoaderWarning />;\n case LoaderViewState.Error:\n return <LoaderError />;\n default:\n return null;\n }\n }, [state]);\n\n return (\n <View style={styles.loader} testID={concatTestID(testID, state)}>\n <Animated.View style={[styles.loaderElement, spinnerAnimatedStyle]}>\n <LoaderProgressSpinner />\n </Animated.View>\n <Animated.View style={[styles.loaderElement, resultAnimatedStyle]}>{finishedIcon}</Animated.View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n loader: {\n height: 64,\n width: 64,\n },\n loaderElement: {\n height: 64,\n left: 0,\n position: 'absolute',\n top: 0,\n width: 64,\n },\n});\n\nexport default LoaderView;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAUA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAAmG,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CA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,CAACC,MAAM,CAACG,aAAa,EAAEf,mBAAmB;EAAE,GAAEC,YAA4B,CAC5F,CAAC;AAEX,CAAC;AAED,MAAMW,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAC/BL,MAAM,EAAE;IACNM,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE;EACT,CAAC;EACDL,aAAa,EAAE;IACbI,MAAM,EAAE,EAAE;IACVE,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNH,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAAC,IAAAI,QAAA,GAAAnE,OAAA,CAAAf,OAAA,GAEYgB,UAAU","ignoreList":[]}
|
|
@@ -12,24 +12,24 @@ var _navigationHeader = _interopRequireDefault(require("../header/navigation-hea
|
|
|
12
12
|
var _typography = _interopRequireDefault(require("../text/typography"));
|
|
13
13
|
var _colorSchemeContext = require("../theme/color-scheme-context");
|
|
14
14
|
var _loader = _interopRequireDefault(require("./loader"));
|
|
15
|
-
function _interopRequireDefault(
|
|
16
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
17
|
-
const LoadingResultScreen =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} = _ref;
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
17
|
+
const LoadingResultScreen = ({
|
|
18
|
+
button,
|
|
19
|
+
header,
|
|
20
|
+
loader: {
|
|
21
|
+
label,
|
|
22
|
+
...loaderProps
|
|
23
|
+
},
|
|
24
|
+
secondaryButton: button2,
|
|
25
|
+
style,
|
|
26
|
+
tertiaryButton: button3,
|
|
27
|
+
...viewProps
|
|
28
|
+
}) => {
|
|
30
29
|
const colorScheme = (0, _colorSchemeContext.useAppColorScheme)();
|
|
31
30
|
const {
|
|
32
|
-
top
|
|
31
|
+
top,
|
|
32
|
+
bottom
|
|
33
33
|
} = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
34
34
|
let headerPaddingStyle;
|
|
35
35
|
if (_reactNative.Platform.OS === 'android') {
|
|
@@ -39,6 +39,9 @@ const LoadingResultScreen = _ref => {
|
|
|
39
39
|
} else if (!(header !== null && header !== void 0 && header.modalHandleVisible) && _reactNative.Platform.OS === 'ios') {
|
|
40
40
|
headerPaddingStyle = styles.modalHeaderWithoutHandle;
|
|
41
41
|
}
|
|
42
|
+
let buttonsWrapperMarginStyle = {
|
|
43
|
+
marginBottom: bottom
|
|
44
|
+
};
|
|
42
45
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
|
|
43
46
|
style: [styles.container, {
|
|
44
47
|
backgroundColor: colorScheme.background
|
|
@@ -52,9 +55,8 @@ const LoadingResultScreen = _ref => {
|
|
|
52
55
|
color: colorScheme.text,
|
|
53
56
|
preset: "regular",
|
|
54
57
|
style: styles.label
|
|
55
|
-
}, label)), /*#__PURE__*/_react.default.createElement(
|
|
56
|
-
|
|
57
|
-
style: styles.buttonWrapper
|
|
58
|
+
}, label)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
59
|
+
style: [styles.buttonWrapper, buttonsWrapperMarginStyle]
|
|
58
60
|
}, button && /*#__PURE__*/_react.default.createElement(_button.Button, button, button.title), button2 && /*#__PURE__*/_react.default.createElement(_button.Button, button2, button2.title), button3 && /*#__PURE__*/_react.default.createElement(_button.Button, button3, button3.title)));
|
|
59
61
|
};
|
|
60
62
|
const styles = _reactNative.StyleSheet.create({
|
|
@@ -87,6 +89,5 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
87
89
|
paddingTop: 15
|
|
88
90
|
}
|
|
89
91
|
});
|
|
90
|
-
var _default = LoadingResultScreen;
|
|
91
|
-
exports.default = _default;
|
|
92
|
+
var _default = exports.default = LoadingResultScreen;
|
|
92
93
|
//# sourceMappingURL=loading-result.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeSafeAreaContext","_button","_navigationHeader","_typography","_colorSchemeContext","_loader","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeSafeAreaContext","_button","_navigationHeader","_typography","_colorSchemeContext","_loader","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","LoadingResultScreen","button","header","loader","label","loaderProps","secondaryButton","button2","style","tertiaryButton","button3","viewProps","colorScheme","useAppColorScheme","top","bottom","useSafeAreaInsets","headerPaddingStyle","Platform","OS","paddingTop","modalHandleVisible","styles","modalHeaderWithoutHandle","buttonsWrapperMarginStyle","marginBottom","createElement","View","container","backgroundColor","background","headerWrapper","loaderWrapper","align","color","text","preset","buttonWrapper","Button","title","StyleSheet","create","gap","height","justifyContent","padding","alignItems","flex","flexDirection","marginHorizontal","marginTop","_default","exports"],"sources":["loading-result.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { Platform, StyleSheet, View, ViewProps, ViewStyle } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nimport { Button, ButtonProps } from '../buttons/button';\nimport NavigationHeader, { NavigationHeaderProps } from '../header/navigation-header';\nimport Typography from '../text/typography';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\nimport LoaderView, { LoaderViewProps } from './loader';\n\nexport type LoadingResultScreenProps = ViewProps & {\n button?: ButtonProps;\n header?: NavigationHeaderProps;\n loader: LoaderViewProps & {\n label?: string;\n };\n secondaryButton?: ButtonProps;\n tertiaryButton?: ButtonProps;\n};\n\nconst LoadingResultScreen: FC<LoadingResultScreenProps> = ({\n button,\n header,\n loader: { label, ...loaderProps },\n secondaryButton: button2,\n style,\n tertiaryButton: button3,\n ...viewProps\n}) => {\n const colorScheme = useAppColorScheme();\n const { top, bottom } = useSafeAreaInsets();\n\n let headerPaddingStyle: ViewStyle | undefined;\n if (Platform.OS === 'android') {\n headerPaddingStyle = {\n paddingTop: top,\n };\n } else if (!header?.modalHandleVisible && Platform.OS === 'ios') {\n headerPaddingStyle = styles.modalHeaderWithoutHandle;\n }\n\n let buttonsWrapperMarginStyle: ViewStyle = {\n marginBottom: bottom,\n };\n\n return (\n <View style={[styles.container, { backgroundColor: colorScheme.background }, style]} {...viewProps}>\n <View style={[styles.headerWrapper, headerPaddingStyle]}>\n <NavigationHeader {...header} />\n </View>\n <View style={styles.loaderWrapper}>\n <LoaderView {...loaderProps} />\n <Typography align=\"center\" color={colorScheme.text} preset=\"regular\" style={styles.label}>\n {label}\n </Typography>\n </View>\n <View style={[styles.buttonWrapper, buttonsWrapperMarginStyle]}>\n {button && <Button {...button}>{button.title}</Button>}\n {button2 && <Button {...button2}>{button2.title}</Button>}\n {button3 && <Button {...button3}>{button3.title}</Button>}\n </View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n buttonWrapper: {\n gap: 12,\n height: 274,\n justifyContent: 'flex-end',\n padding: 12,\n },\n container: {\n alignItems: 'stretch',\n flex: 1,\n flexDirection: 'column',\n justifyContent: 'space-between',\n },\n headerWrapper: {\n height: 215,\n },\n label: {\n marginHorizontal: 20,\n marginTop: 20,\n },\n loaderWrapper: {\n alignItems: 'center',\n flexDirection: 'column',\n height: 108,\n justifyContent: 'space-between',\n },\n modalHeaderWithoutHandle: {\n paddingTop: 15,\n },\n});\n\nexport default LoadingResultScreen;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAC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AAC9C,OAAA,CAAA0D,MAAM,EAAKrC,MAAM,EAAGA,MAAM,CAACsC,KAAc,CAAC,EACrDhC,OAAO,iBAAIhC,MAAA,CAAAY,OAAA,CAAAuC,aAAA,CAAC9C,OAAA,CAAA0D,MAAM,EAAK/B,OAAO,EAAGA,OAAO,CAACgC,KAAc,CAAC,EACxD7B,OAAO,iBAAInC,MAAA,CAAAY,OAAA,CAAAuC,aAAA,CAAC9C,OAAA,CAAA0D,MAAM,EAAK5B,OAAO,EAAGA,OAAO,CAAC6B,KAAc,CACpD,CACF,CAAC;AAEX,CAAC;AAED,MAAMjB,MAAM,GAAGkB,uBAAU,CAACC,MAAM,CAAC;EAC/BJ,aAAa,EAAE;IACbK,GAAG,EAAE,EAAE;IACPC,MAAM,EAAE,GAAG;IACXC,cAAc,EAAE,UAAU;IAC1BC,OAAO,EAAE;EACX,CAAC;EACDjB,SAAS,EAAE;IACTkB,UAAU,EAAE,SAAS;IACrBC,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,QAAQ;IACvBJ,cAAc,EAAE;EAClB,CAAC;EACDb,aAAa,EAAE;IACbY,MAAM,EAAE;EACV,CAAC;EACDvC,KAAK,EAAE;IACL6C,gBAAgB,EAAE,EAAE;IACpBC,SAAS,EAAE;EACb,CAAC;EACDlB,aAAa,EAAE;IACbc,UAAU,EAAE,QAAQ;IACpBE,aAAa,EAAE,QAAQ;IACvBL,MAAM,EAAE,GAAG;IACXC,cAAc,EAAE;EAClB,CAAC;EACDrB,wBAAwB,EAAE;IACxBH,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAAC,IAAA+B,QAAA,GAAAC,OAAA,CAAAjE,OAAA,GAEYa,mBAAmB","ignoreList":[]}
|
|
@@ -15,13 +15,7 @@ Object.defineProperty(exports, "NerdModeItem", {
|
|
|
15
15
|
return _nerdModeItem.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "NerdModeItemProps", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _nerdModeItem.NerdModeItemProps;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
18
|
var _nerdModeItem = _interopRequireWildcard(require("./nerd-mode-item"));
|
|
25
|
-
function _getRequireWildcardCache(
|
|
26
|
-
function _interopRequireWildcard(
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_nerdModeItem","_interopRequireWildcard","require","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"names":["_nerdModeItem","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set"],"sources":["index.ts"],"sourcesContent":["import type { NerdModeItemProps } from './nerd-mode-item';\nimport NerdModeItem, { ActionIcon } from './nerd-mode-item';\n\nexport { ActionIcon, NerdModeItem, NerdModeItemProps };\n"],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAAA,aAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA4D,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA","ignoreList":[]}
|
|
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.ActionIcon = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
10
9
|
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
11
10
|
var _utils = require("../../utils");
|
|
12
11
|
var _testID = require("../../utils/testID");
|
|
12
|
+
var _accessibilityHistoryWrappers = require("../accessibility/accessibilityHistoryWrappers");
|
|
13
13
|
var _button = require("../buttons/button");
|
|
14
14
|
var _nerdView = require("../icons/nerd-view");
|
|
15
15
|
var _typography = _interopRequireDefault(require("../text/typography"));
|
|
16
16
|
var _colorSchemeContext = require("../theme/color-scheme-context");
|
|
17
|
-
function _interopRequireDefault(
|
|
18
|
-
function _getRequireWildcardCache(
|
|
19
|
-
function _interopRequireWildcard(
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
20
|
const VALUE_PREVIEW_LENGTH = 80;
|
|
21
21
|
const ICON_HEIGHT = 48;
|
|
22
22
|
const CONTAINER_PADDING = 8;
|
|
@@ -62,14 +62,13 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
62
62
|
paddingBottom: 30
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
-
const ActionIcon =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
} = _ref;
|
|
65
|
+
const ActionIcon = ({
|
|
66
|
+
value,
|
|
67
|
+
link,
|
|
68
|
+
onCopyToClipboard,
|
|
69
|
+
testID,
|
|
70
|
+
copy
|
|
71
|
+
}) => {
|
|
73
72
|
const handleCopy = (0, _react.useCallback)(() => {
|
|
74
73
|
onCopyToClipboard(value);
|
|
75
74
|
}, [onCopyToClipboard, value]);
|
|
@@ -81,13 +80,13 @@ const ActionIcon = _ref => {
|
|
|
81
80
|
}
|
|
82
81
|
}, [link]);
|
|
83
82
|
if (copy) {
|
|
84
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
83
|
+
return /*#__PURE__*/_react.default.createElement(_accessibilityHistoryWrappers.TouchableOpacity, {
|
|
85
84
|
onPress: handleCopy,
|
|
86
85
|
testID: testID
|
|
87
86
|
}, /*#__PURE__*/_react.default.createElement(_nerdView.CopyContentIcon, null));
|
|
88
87
|
}
|
|
89
88
|
if (link) {
|
|
90
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
89
|
+
return /*#__PURE__*/_react.default.createElement(_accessibilityHistoryWrappers.TouchableOpacity, {
|
|
91
90
|
onPress: openLink,
|
|
92
91
|
testID: testID
|
|
93
92
|
}, /*#__PURE__*/_react.default.createElement(_nerdView.OpenLinkIcon, null));
|
|
@@ -95,13 +94,12 @@ const ActionIcon = _ref => {
|
|
|
95
94
|
return null;
|
|
96
95
|
};
|
|
97
96
|
exports.ActionIcon = ActionIcon;
|
|
98
|
-
const TextWithHighlight =
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
} = _ref2;
|
|
97
|
+
const TextWithHighlight = ({
|
|
98
|
+
highlightedText,
|
|
99
|
+
onLayout,
|
|
100
|
+
testID,
|
|
101
|
+
text
|
|
102
|
+
}) => {
|
|
105
103
|
const colorScheme = (0, _colorSchemeContext.useAppColorScheme)();
|
|
106
104
|
return /*#__PURE__*/_react.default.createElement(_typography.default, {
|
|
107
105
|
color: colorScheme.white,
|
|
@@ -114,22 +112,21 @@ const TextWithHighlight = _ref2 => {
|
|
|
114
112
|
preset: "s/code"
|
|
115
113
|
}, highlightedText), text);
|
|
116
114
|
};
|
|
117
|
-
const NerdModeItem =
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
} = _ref3;
|
|
115
|
+
const NerdModeItem = ({
|
|
116
|
+
highlightedText = '',
|
|
117
|
+
attributeText = '',
|
|
118
|
+
attributeKey,
|
|
119
|
+
labels,
|
|
120
|
+
link,
|
|
121
|
+
canBeCopied,
|
|
122
|
+
onCopyToClipboard,
|
|
123
|
+
onExpand,
|
|
124
|
+
expandedAttributes,
|
|
125
|
+
last = false,
|
|
126
|
+
scrollOffset,
|
|
127
|
+
element,
|
|
128
|
+
testID
|
|
129
|
+
}) => {
|
|
133
130
|
const colorScheme = (0, _colorSchemeContext.useAppColorScheme)();
|
|
134
131
|
const valueViewRef = _react.default.useRef(null);
|
|
135
132
|
const [isSingleLine, setIsSingleLine] = (0, _react.useState)();
|
|
@@ -168,7 +165,7 @@ const NerdModeItem = _ref3 => {
|
|
|
168
165
|
translateY: iconTopPosition.value
|
|
169
166
|
}]
|
|
170
167
|
};
|
|
171
|
-
});
|
|
168
|
+
}, [iconTopPosition]);
|
|
172
169
|
const previewText = expanded ? attributeText : attributeText.slice(0, VALUE_PREVIEW_LENGTH) + '...';
|
|
173
170
|
(0, _react.useEffect)(() => {
|
|
174
171
|
if (!scrollOffset || isSingleLine === undefined) {
|
|
@@ -176,7 +173,7 @@ const NerdModeItem = _ref3 => {
|
|
|
176
173
|
}
|
|
177
174
|
setTimeout(() => {
|
|
178
175
|
var _valueViewRef$current;
|
|
179
|
-
(_valueViewRef$current = valueViewRef.current) === null || _valueViewRef$current === void 0
|
|
176
|
+
(_valueViewRef$current = valueViewRef.current) === null || _valueViewRef$current === void 0 || _valueViewRef$current.measure((x, y, w, h, px, py) => {
|
|
180
177
|
expandedView.value = {
|
|
181
178
|
expandedAtOffset: isSingleLine ? 0 : scrollOffset.value,
|
|
182
179
|
viewHeight: isSingleLine ? 0 : h - 2 * CONTAINER_PADDING,
|
|
@@ -233,6 +230,5 @@ const NerdModeItem = _ref3 => {
|
|
|
233
230
|
type: _button.ButtonType.SmallTech
|
|
234
231
|
}) : null);
|
|
235
232
|
};
|
|
236
|
-
var _default = NerdModeItem;
|
|
237
|
-
exports.default = _default;
|
|
233
|
+
var _default = exports.default = NerdModeItem;
|
|
238
234
|
//# sourceMappingURL=nerd-mode-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_utils","_testID","_button","_nerdView","_typography","_interopRequireDefault","_colorSchemeContext","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","VALUE_PREVIEW_LENGTH","ICON_HEIGHT","CONTAINER_PADDING","styles","StyleSheet","create","actionIcon","alignItems","flex","height","justifyContent","actionIconSingleLine","attributeLabel","marginBottom","paddingHorizontal","attributeValue","flexGrow","attributeValueContainer","borderRadius","borderWidth","flexDirection","padding","container","paddingTop","expandValueButton","marginTop","lastAttribute","paddingBottom","ActionIcon","_ref","value","link","onCopyToClipboard","testID","copy","handleCopy","useCallback","openLink","Linking","openURL","catch","e","reportException","createElement","TouchableOpacity","onPress","CopyContentIcon","OpenLinkIcon","exports","TextWithHighlight","_ref2","highlightedText","onLayout","text","colorScheme","useAppColorScheme","color","white","preset","style","nerdView","codeHighlightText","NerdModeItem","_ref3","attributeText","attributeKey","labels","canBeCopied","onExpand","expandedAttributes","last","scrollOffset","element","valueViewRef","React","useRef","isSingleLine","setIsSingleLine","useState","expandedView","useSharedValue","expandedAtOffset","viewHeight","viewStart","expandable","length","expanded","setExpanded","screenMiddle","useMemo","Dimensions","iconTopPosition","useDerivedValue","undefined","iconHeight","viewEnd","zeroedOffset","clamp","iconStyle","useAnimatedStyle","transform","translateY","previewText","slice","useEffect","setTimeout","_valueViewRef$current","current","measure","x","y","w","h","px","py","onTextLayout","event","nativeEvent","layout","View","backgroundColor","attributeSectionBackground","concatTestID","ref","attributeValueBackground","borderColor","attributeValueBorder","Button","title","collapse","expand","type","ButtonType","SmallTech","_default"],"sources":["nerd-mode-item.tsx"],"sourcesContent":["import React, { FunctionComponent, useCallback, useEffect, useMemo, useState } from 'react';\nimport { Dimensions, LayoutChangeEvent, Linking, StyleSheet, View, ViewStyle } from 'react-native';\nimport { TouchableOpacity } from 'react-native-gesture-handler';\nimport Animated, {\n clamp,\n SharedValue,\n useAnimatedStyle,\n useDerivedValue,\n useSharedValue,\n} from 'react-native-reanimated';\n\nimport { reportException } from '../../utils';\nimport { concatTestID } from '../../utils/testID';\nimport { Button, ButtonType } from '../buttons/button';\nimport { CopyContentIcon, OpenLinkIcon } from '../icons/nerd-view';\nimport Typography from '../text/typography';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\n\nconst VALUE_PREVIEW_LENGTH = 80;\nconst ICON_HEIGHT = 48;\nconst CONTAINER_PADDING = 8;\n\n// The onExpand and expandedAttributes props are used to notify other expanded fields\n// that the layout (and thus the scrollOffset / icon position) has changed. This\n// will trigger a view measurement and repositioning of the icon on all expanded fields.\n\nexport type NerdModeItemProps = {\n attributeKey: string;\n attributeText?: string;\n canBeCopied?: boolean;\n element?: React.ReactElement;\n expandedAttributes?: number;\n highlightedText?: string;\n labels: {\n expand: string;\n collapse: string;\n };\n last?: boolean;\n link?: string;\n onCopyToClipboard: (value: string) => void;\n onExpand?: (expanded: boolean) => void;\n scrollOffset?: SharedValue<number>;\n testID?: string;\n};\n\nconst styles = StyleSheet.create({\n actionIcon: {\n alignItems: 'center',\n flex: 0.15,\n height: ICON_HEIGHT,\n justifyContent: 'center',\n },\n actionIconSingleLine: {\n height: 24,\n },\n attributeLabel: {\n marginBottom: 4,\n paddingHorizontal: 6,\n },\n attributeValue: {\n flex: 0.85,\n flexGrow: 1,\n },\n attributeValueContainer: {\n borderRadius: 2,\n borderWidth: 0.2,\n flexDirection: 'row',\n padding: CONTAINER_PADDING,\n },\n container: {\n paddingHorizontal: 20,\n paddingTop: 16,\n },\n expandValueButton: {\n borderRadius: 4,\n borderWidth: 0,\n marginTop: 4,\n },\n lastAttribute: {\n paddingBottom: 30,\n },\n});\n\nexport const ActionIcon: FunctionComponent<{\n copy?: boolean;\n link?: string;\n onCopyToClipboard: (value: string) => void;\n style?: ViewStyle;\n testID?: string;\n value: string;\n}> = ({ value, link, onCopyToClipboard, testID, copy }) => {\n const handleCopy = useCallback(() => {\n onCopyToClipboard(value);\n }, [onCopyToClipboard, value]);\n\n const openLink = useCallback(() => {\n if (link) {\n Linking.openURL(link).catch((e) => {\n reportException(e, 'Error opening nerd link');\n });\n }\n }, [link]);\n\n if (copy) {\n return (\n <TouchableOpacity onPress={handleCopy} testID={testID}>\n <CopyContentIcon />\n </TouchableOpacity>\n );\n }\n\n if (link) {\n return (\n <TouchableOpacity onPress={openLink} testID={testID}>\n <OpenLinkIcon />\n </TouchableOpacity>\n );\n }\n\n return null;\n};\n\nconst TextWithHighlight: FunctionComponent<{\n highlightedText: string;\n onLayout?: (event: LayoutChangeEvent) => void;\n testID: string;\n text: string;\n}> = ({ highlightedText, onLayout, testID, text }) => {\n const colorScheme = useAppColorScheme();\n return (\n <Typography\n color={colorScheme.white}\n onLayout={onLayout}\n preset=\"s/code\"\n style={styles.attributeValue}\n testID={testID}>\n <Typography color={colorScheme.nerdView.codeHighlightText} preset=\"s/code\">\n {highlightedText}\n </Typography>\n {text}\n </Typography>\n );\n};\n\nconst NerdModeItem: FunctionComponent<NerdModeItemProps> = ({\n highlightedText = '',\n attributeText = '',\n attributeKey,\n labels,\n link,\n canBeCopied,\n onCopyToClipboard,\n onExpand,\n expandedAttributes,\n last = false,\n scrollOffset,\n element,\n testID,\n}) => {\n const colorScheme = useAppColorScheme();\n const valueViewRef = React.useRef<View>(null);\n const [isSingleLine, setIsSingleLine] = useState<boolean>();\n\n const expandedView = useSharedValue({\n expandedAtOffset: 0,\n viewHeight: 0,\n viewStart: 0,\n });\n\n const expandable = attributeText.length > VALUE_PREVIEW_LENGTH;\n const [expanded, setExpanded] = useState(!expandable);\n\n const screenMiddle = useMemo(() => Dimensions.get('screen').height / 2, []);\n\n const iconTopPosition = useDerivedValue(() => {\n if (isSingleLine === undefined) {\n return 0;\n }\n if (!expanded || !expandable || !scrollOffset || isSingleLine) {\n const iconHeight = isSingleLine ? 0 : ICON_HEIGHT;\n return expandedView.value.viewHeight / 2 - iconHeight / 2;\n }\n\n const viewEnd = expandedView.value.viewStart + expandedView.value.viewHeight;\n let zeroedOffset = scrollOffset.value - expandedView.value.expandedAtOffset;\n\n if (expandedView.value.viewStart > screenMiddle) {\n zeroedOffset = zeroedOffset - (expandedView.value.viewStart - screenMiddle + ICON_HEIGHT / 2);\n } else {\n if (viewEnd < screenMiddle + ICON_HEIGHT) {\n zeroedOffset = zeroedOffset + (screenMiddle - expandedView.value.viewStart - ICON_HEIGHT / 2);\n } else if (expandedView.value.viewStart < screenMiddle && viewEnd > screenMiddle) {\n zeroedOffset = zeroedOffset + (screenMiddle - expandedView.value.viewStart - ICON_HEIGHT / 2);\n }\n }\n\n return clamp(zeroedOffset, 0, expandedView.value.viewHeight - ICON_HEIGHT - 8);\n });\n\n const iconStyle = useAnimatedStyle(() => {\n return {\n transform: [\n {\n translateY: iconTopPosition.value,\n },\n ],\n };\n });\n\n const previewText = expanded ? attributeText : attributeText.slice(0, VALUE_PREVIEW_LENGTH) + '...';\n\n useEffect(() => {\n if (!scrollOffset || isSingleLine === undefined) {\n return;\n }\n\n setTimeout(() => {\n valueViewRef.current?.measure((x, y, w, h, px, py) => {\n expandedView.value = {\n expandedAtOffset: isSingleLine ? 0 : scrollOffset.value,\n viewHeight: isSingleLine ? 0 : h - 2 * CONTAINER_PADDING,\n viewStart: py,\n };\n });\n }, 0);\n // We only recompute when any attribute is expanded\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [expandedAttributes, isSingleLine]);\n\n const onTextLayout = useCallback((event: LayoutChangeEvent) => {\n const { height } = event.nativeEvent.layout;\n setIsSingleLine(height <= 24);\n }, []);\n\n return (\n <View\n style={[\n styles.container,\n { backgroundColor: colorScheme.nerdView.attributeSectionBackground },\n last ? styles.lastAttribute : {},\n ]}\n testID={testID}>\n <Typography\n color={colorScheme.nerdView.attributeLabel}\n preset=\"s/code\"\n style={styles.attributeLabel}\n testID={concatTestID(testID, 'attributeLabel')}>\n {attributeKey}\n </Typography>\n <View\n ref={valueViewRef}\n style={[\n styles.attributeValueContainer,\n {\n backgroundColor: colorScheme.nerdView.attributeValueBackground,\n borderColor: colorScheme.nerdView.attributeValueBorder,\n },\n ]}>\n {element ? (\n element\n ) : (\n <TextWithHighlight\n highlightedText={highlightedText}\n onLayout={onTextLayout}\n testID={concatTestID(testID, 'attributeValue')!}\n text={previewText}\n />\n )}\n {(canBeCopied || link) && isSingleLine !== undefined ? (\n <Animated.View style={[styles.actionIcon, isSingleLine ? styles.actionIconSingleLine : undefined, iconStyle]}>\n {\n <ActionIcon\n copy={canBeCopied}\n link={link}\n onCopyToClipboard={onCopyToClipboard}\n testID={concatTestID(testID, 'actionIcon')}\n value={`${highlightedText}${attributeText}`}\n />\n }\n </Animated.View>\n ) : null}\n </View>\n {expandable ? (\n <Button\n onPress={() => {\n onExpand && onExpand(!expanded);\n setExpanded(!expanded);\n }}\n style={styles.expandValueButton}\n testID={concatTestID(testID, 'expandValueButton')}\n title={expanded ? labels.collapse : labels.expand}\n type={ButtonType.SmallTech}\n />\n ) : null}\n </View>\n );\n};\n\nexport default NerdModeItem;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA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CAAA+D,aAAA,CAACzE,sBAAA,CAAAU,OAAQ,CAAC2I,IAAI;IAAC5D,KAAK,EAAE,CAACxD,MAAM,CAACG,UAAU,EAAEsE,YAAY,GAAGzE,MAAM,CAACQ,oBAAoB,GAAGkF,SAAS,EAAEK,SAAS;EAAE,gBAEzGrI,MAAA,CAAAe,OAAA,CAAA+D,aAAA,CAACf,UAAU;IACTM,IAAI,EAAEiC,WAAY;IAClBpC,IAAI,EAAEA,IAAK;IACXC,iBAAiB,EAAEA,iBAAkB;IACrCC,MAAM,EAAE,IAAAyF,oBAAY,EAACzF,MAAM,EAAE,YAAY,CAAE;IAC3CH,KAAK,EAAG,GAAEqB,eAAgB,GAAEa,aAAc;EAAE,EAC5C,CAEU,GACd,IAAI,CACH,EACNoB,UAAU,gBACTvH,MAAA,CAAAe,OAAA,CAAA+D,aAAA,CAACtE,OAAA,CAAA0J,MAAM;IACLlF,OAAO,EAAEA,CAAA,KAAM;MACbuB,QAAQ,IAAIA,QAAQ,CAAC,CAACkB,QAAQ,CAAC;MAC/BC,WAAW,CAAC,CAACD,QAAQ,CAAC;IACxB,CAAE;IACF3B,KAAK,EAAExD,MAAM,CAACqB,iBAAkB;IAChCS,MAAM,EAAE,IAAAyF,oBAAY,EAACzF,MAAM,EAAE,mBAAmB,CAAE;IAClD+F,KAAK,EAAE1C,QAAQ,GAAGpB,MAAM,CAAC+D,QAAQ,GAAG/D,MAAM,CAACgE,MAAO;IAClDC,IAAI,EAAEC,kBAAU,CAACC;EAAU,EAC3B,GACA,IAAI,CACH;AAEX,CAAC;AAAC,IAAAC,QAAA,GAEaxE,YAAY;AAAAd,OAAA,CAAApE,OAAA,GAAA0J,QAAA"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_utils","_testID","_accessibilityHistoryWrappers","_button","_nerdView","_typography","_interopRequireDefault","_colorSchemeContext","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","VALUE_PREVIEW_LENGTH","ICON_HEIGHT","CONTAINER_PADDING","styles","StyleSheet","create","actionIcon","alignItems","flex","height","justifyContent","actionIconSingleLine","attributeLabel","marginBottom","paddingHorizontal","attributeValue","flexGrow","attributeValueContainer","borderRadius","borderWidth","flexDirection","padding","container","paddingTop","expandValueButton","marginTop","lastAttribute","paddingBottom","ActionIcon","value","link","onCopyToClipboard","testID","copy","handleCopy","useCallback","openLink","Linking","openURL","catch","reportException","createElement","TouchableOpacity","onPress","CopyContentIcon","OpenLinkIcon","exports","TextWithHighlight","highlightedText","onLayout","text","colorScheme","useAppColorScheme","color","white","preset","style","nerdView","codeHighlightText","NerdModeItem","attributeText","attributeKey","labels","canBeCopied","onExpand","expandedAttributes","last","scrollOffset","element","valueViewRef","React","useRef","isSingleLine","setIsSingleLine","useState","expandedView","useSharedValue","expandedAtOffset","viewHeight","viewStart","expandable","length","expanded","setExpanded","screenMiddle","useMemo","Dimensions","iconTopPosition","useDerivedValue","undefined","iconHeight","viewEnd","zeroedOffset","clamp","iconStyle","useAnimatedStyle","transform","translateY","previewText","slice","useEffect","setTimeout","_valueViewRef$current","current","measure","x","y","w","h","px","py","onTextLayout","event","nativeEvent","layout","View","backgroundColor","attributeSectionBackground","concatTestID","ref","attributeValueBackground","borderColor","attributeValueBorder","Button","title","collapse","expand","type","ButtonType","SmallTech","_default"],"sources":["nerd-mode-item.tsx"],"sourcesContent":["import React, { FunctionComponent, useCallback, useEffect, useMemo, useState } from 'react';\nimport { Dimensions, LayoutChangeEvent, Linking, StyleSheet, View, ViewStyle } from 'react-native';\nimport Animated, {\n clamp,\n SharedValue,\n useAnimatedStyle,\n useDerivedValue,\n useSharedValue,\n} from 'react-native-reanimated';\n\nimport { reportException } from '../../utils';\nimport { concatTestID } from '../../utils/testID';\nimport { TouchableOpacity } from '../accessibility/accessibilityHistoryWrappers';\nimport { Button, ButtonType } from '../buttons/button';\nimport { CopyContentIcon, OpenLinkIcon } from '../icons/nerd-view';\nimport Typography from '../text/typography';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\n\nconst VALUE_PREVIEW_LENGTH = 80;\nconst ICON_HEIGHT = 48;\nconst CONTAINER_PADDING = 8;\n\n// The onExpand and expandedAttributes props are used to notify other expanded fields\n// that the layout (and thus the scrollOffset / icon position) has changed. This\n// will trigger a view measurement and repositioning of the icon on all expanded fields.\n\nexport type NerdModeItemProps = {\n attributeKey: string;\n attributeText?: string;\n canBeCopied?: boolean;\n element?: React.ReactElement;\n expandedAttributes?: number;\n highlightedText?: string;\n labels: {\n expand: string;\n collapse: string;\n };\n last?: boolean;\n link?: string;\n onCopyToClipboard: (value: string) => void;\n onExpand?: (expanded: boolean) => void;\n scrollOffset?: SharedValue<number>;\n testID?: string;\n};\n\nconst styles = StyleSheet.create({\n actionIcon: {\n alignItems: 'center',\n flex: 0.15,\n height: ICON_HEIGHT,\n justifyContent: 'center',\n },\n actionIconSingleLine: {\n height: 24,\n },\n attributeLabel: {\n marginBottom: 4,\n paddingHorizontal: 6,\n },\n attributeValue: {\n flex: 0.85,\n flexGrow: 1,\n },\n attributeValueContainer: {\n borderRadius: 2,\n borderWidth: 0.2,\n flexDirection: 'row',\n padding: CONTAINER_PADDING,\n },\n container: {\n paddingHorizontal: 20,\n paddingTop: 16,\n },\n expandValueButton: {\n borderRadius: 4,\n borderWidth: 0,\n marginTop: 4,\n },\n lastAttribute: {\n paddingBottom: 30,\n },\n});\n\nexport const ActionIcon: FunctionComponent<{\n copy?: boolean;\n link?: string;\n onCopyToClipboard: (value: string) => void;\n style?: ViewStyle;\n testID?: string;\n value: string;\n}> = ({ value, link, onCopyToClipboard, testID, copy }) => {\n const handleCopy = useCallback(() => {\n onCopyToClipboard(value);\n }, [onCopyToClipboard, value]);\n\n const openLink = useCallback(() => {\n if (link) {\n Linking.openURL(link).catch((e) => {\n reportException(e, 'Error opening nerd link');\n });\n }\n }, [link]);\n\n if (copy) {\n return (\n <TouchableOpacity onPress={handleCopy} testID={testID}>\n <CopyContentIcon />\n </TouchableOpacity>\n );\n }\n\n if (link) {\n return (\n <TouchableOpacity onPress={openLink} testID={testID}>\n <OpenLinkIcon />\n </TouchableOpacity>\n );\n }\n\n return null;\n};\n\nconst TextWithHighlight: FunctionComponent<{\n highlightedText: string;\n onLayout?: (event: LayoutChangeEvent) => void;\n testID: string;\n text: string;\n}> = ({ highlightedText, onLayout, testID, text }) => {\n const colorScheme = useAppColorScheme();\n return (\n <Typography\n color={colorScheme.white}\n onLayout={onLayout}\n preset=\"s/code\"\n style={styles.attributeValue}\n testID={testID}>\n <Typography color={colorScheme.nerdView.codeHighlightText} preset=\"s/code\">\n {highlightedText}\n </Typography>\n {text}\n </Typography>\n );\n};\n\nconst NerdModeItem: FunctionComponent<NerdModeItemProps> = ({\n highlightedText = '',\n attributeText = '',\n attributeKey,\n labels,\n link,\n canBeCopied,\n onCopyToClipboard,\n onExpand,\n expandedAttributes,\n last = false,\n scrollOffset,\n element,\n testID,\n}) => {\n const colorScheme = useAppColorScheme();\n const valueViewRef = React.useRef<View>(null);\n const [isSingleLine, setIsSingleLine] = useState<boolean>();\n\n const expandedView = useSharedValue({\n expandedAtOffset: 0,\n viewHeight: 0,\n viewStart: 0,\n });\n\n const expandable = attributeText.length > VALUE_PREVIEW_LENGTH;\n const [expanded, setExpanded] = useState(!expandable);\n\n const screenMiddle = useMemo(() => Dimensions.get('screen').height / 2, []);\n\n const iconTopPosition = useDerivedValue(() => {\n if (isSingleLine === undefined) {\n return 0;\n }\n if (!expanded || !expandable || !scrollOffset || isSingleLine) {\n const iconHeight = isSingleLine ? 0 : ICON_HEIGHT;\n return expandedView.value.viewHeight / 2 - iconHeight / 2;\n }\n\n const viewEnd = expandedView.value.viewStart + expandedView.value.viewHeight;\n let zeroedOffset = scrollOffset.value - expandedView.value.expandedAtOffset;\n\n if (expandedView.value.viewStart > screenMiddle) {\n zeroedOffset = zeroedOffset - (expandedView.value.viewStart - screenMiddle + ICON_HEIGHT / 2);\n } else {\n if (viewEnd < screenMiddle + ICON_HEIGHT) {\n zeroedOffset = zeroedOffset + (screenMiddle - expandedView.value.viewStart - ICON_HEIGHT / 2);\n } else if (expandedView.value.viewStart < screenMiddle && viewEnd > screenMiddle) {\n zeroedOffset = zeroedOffset + (screenMiddle - expandedView.value.viewStart - ICON_HEIGHT / 2);\n }\n }\n\n return clamp(zeroedOffset, 0, expandedView.value.viewHeight - ICON_HEIGHT - 8);\n });\n\n const iconStyle = useAnimatedStyle(() => {\n return {\n transform: [\n {\n translateY: iconTopPosition.value,\n },\n ],\n };\n }, [iconTopPosition]);\n\n const previewText = expanded ? attributeText : attributeText.slice(0, VALUE_PREVIEW_LENGTH) + '...';\n\n useEffect(() => {\n if (!scrollOffset || isSingleLine === undefined) {\n return;\n }\n\n setTimeout(() => {\n valueViewRef.current?.measure((x, y, w, h, px, py) => {\n expandedView.value = {\n expandedAtOffset: isSingleLine ? 0 : scrollOffset.value,\n viewHeight: isSingleLine ? 0 : h - 2 * CONTAINER_PADDING,\n viewStart: py,\n };\n });\n }, 0);\n // We only recompute when any attribute is expanded\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [expandedAttributes, isSingleLine]);\n\n const onTextLayout = useCallback((event: LayoutChangeEvent) => {\n const { height } = event.nativeEvent.layout;\n setIsSingleLine(height <= 24);\n }, []);\n\n return (\n <View\n style={[\n styles.container,\n { backgroundColor: colorScheme.nerdView.attributeSectionBackground },\n last ? styles.lastAttribute : {},\n ]}\n testID={testID}>\n <Typography\n color={colorScheme.nerdView.attributeLabel}\n preset=\"s/code\"\n style={styles.attributeLabel}\n testID={concatTestID(testID, 'attributeLabel')}>\n {attributeKey}\n </Typography>\n <View\n ref={valueViewRef}\n style={[\n styles.attributeValueContainer,\n {\n backgroundColor: colorScheme.nerdView.attributeValueBackground,\n borderColor: colorScheme.nerdView.attributeValueBorder,\n },\n ]}>\n {element ? (\n element\n ) : (\n <TextWithHighlight\n highlightedText={highlightedText}\n onLayout={onTextLayout}\n testID={concatTestID(testID, 'attributeValue')!}\n text={previewText}\n />\n )}\n {(canBeCopied || link) && isSingleLine !== undefined ? (\n <Animated.View style={[styles.actionIcon, isSingleLine ? styles.actionIconSingleLine : undefined, iconStyle]}>\n {\n <ActionIcon\n copy={canBeCopied}\n link={link}\n onCopyToClipboard={onCopyToClipboard}\n testID={concatTestID(testID, 'actionIcon')}\n value={`${highlightedText}${attributeText}`}\n />\n }\n </Animated.View>\n ) : null}\n </View>\n {expandable ? (\n <Button\n onPress={() => {\n onExpand && onExpand(!expanded);\n setExpanded(!expanded);\n }}\n style={styles.expandValueButton}\n testID={concatTestID(testID, 'expandValueButton')}\n title={expanded ? labels.collapse : labels.expand}\n type={ButtonType.SmallTech}\n />\n ) : null}\n </View>\n );\n};\n\nexport default NerdModeItem;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAQA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,6BAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAC,sBAAA,CAAAT,OAAA;AACA,IAAAU,mBAAA,GAAAV,OAAA;AAAkE,SAAAS,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAZ,wBAAAY,CAAA,EAAAK,CA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CAAC;IACxB,CAAE;IACF1B,KAAK,EAAErD,MAAM,CAACqB,iBAAkB;IAChCQ,MAAM,EAAE,IAAAsF,oBAAY,EAACtF,MAAM,EAAE,mBAAmB,CAAE;IAClD4F,KAAK,EAAE1C,QAAQ,GAAGpB,MAAM,CAAC+D,QAAQ,GAAG/D,MAAM,CAACgE,MAAO;IAClDC,IAAI,EAAEC,kBAAU,CAACC;EAAU,CAC5B,CAAC,GACA,IACA,CAAC;AAEX,CAAC;AAAC,IAAAC,QAAA,GAAApF,OAAA,CAAAhE,OAAA,GAEa6E,YAAY","ignoreList":[]}
|
|
@@ -42,6 +42,6 @@ Object.defineProperty(exports, "PinLockModalLabels", {
|
|
|
42
42
|
var _keypad = require("./keypad");
|
|
43
43
|
var _pinCodeScreen = require("./pin-code-screen");
|
|
44
44
|
var _pinLock = _interopRequireWildcard(require("./pin-lock"));
|
|
45
|
-
function _getRequireWildcardCache(
|
|
46
|
-
function _interopRequireWildcard(
|
|
45
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
46
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
47
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_keypad","require","_pinCodeScreen","_pinLock","_interopRequireWildcard","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"names":["_keypad","require","_pinCodeScreen","_pinLock","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set"],"sources":["index.ts"],"sourcesContent":["import { Biometry } from './keypad';\nimport { PinCodeScreen, PinCodeScreenActions, PinCodeScreenProps } from './pin-code-screen';\nimport PinLockModal, { PinLockModalLabels } from './pin-lock';\n\nexport { Biometry, PinCodeScreen, PinCodeScreenActions, PinCodeScreenProps, PinLockModal, PinLockModalLabels };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAC,uBAAA,CAAAH,OAAA;AAA8D,SAAAI,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBA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