@procivis/one-react-native-components 0.1.63 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -9
- package/lib/commonjs/components/backup/index.js +17 -0
- package/lib/commonjs/components/backup/index.js.map +1 -0
- package/lib/commonjs/components/backup/preview-credentials.js +38 -0
- package/lib/commonjs/components/backup/preview-credentials.js.map +1 -0
- package/lib/commonjs/components/credential/credential.js +62 -0
- package/lib/commonjs/components/credential/credential.js.map +1 -0
- package/lib/commonjs/components/credential/index.js +17 -0
- package/lib/commonjs/components/credential/index.js.map +1 -0
- package/lib/commonjs/components/entity/EntityButtons.js +64 -0
- package/lib/commonjs/components/entity/EntityButtons.js.map +1 -0
- package/lib/commonjs/components/entity/entity-attributes.js +50 -0
- package/lib/commonjs/components/entity/entity-attributes.js.map +1 -0
- package/lib/commonjs/components/entity/entity-details-with-buttons.js +90 -0
- package/lib/commonjs/components/entity/entity-details-with-buttons.js.map +1 -0
- package/lib/commonjs/components/entity/entity-details.js +72 -0
- package/lib/commonjs/components/entity/entity-details.js.map +1 -0
- package/lib/commonjs/components/entity/index.js +27 -0
- package/lib/commonjs/components/entity/index.js.map +1 -0
- package/lib/commonjs/components/history/history-details-screen.js +67 -0
- package/lib/commonjs/components/history/history-details-screen.js.map +1 -0
- package/lib/commonjs/components/history/history-list-item-icon.js +94 -0
- package/lib/commonjs/components/history/history-list-item-icon.js.map +1 -0
- package/lib/commonjs/components/history/history-list-item.js +45 -0
- package/lib/commonjs/components/history/history-list-item.js.map +1 -0
- package/lib/commonjs/components/history/history-list-screen.js +121 -0
- package/lib/commonjs/components/history/history-list-screen.js.map +1 -0
- package/lib/commonjs/components/history/history-list-section-header.js +39 -0
- package/lib/commonjs/components/history/history-list-section-header.js.map +1 -0
- package/lib/commonjs/components/history/history-list.js +100 -0
- package/lib/commonjs/components/history/history-list.js.map +1 -0
- package/lib/commonjs/components/history/index.js +72 -0
- package/lib/commonjs/components/history/index.js.map +1 -0
- package/lib/commonjs/components/index.js +72 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/components/navigation/header-buttons.js +78 -0
- package/lib/commonjs/components/navigation/header-buttons.js.map +1 -0
- package/lib/commonjs/components/navigation/index.js +17 -0
- package/lib/commonjs/components/navigation/index.js.map +1 -0
- package/lib/commonjs/components/proof-request/group.js +35 -0
- package/lib/commonjs/components/proof-request/group.js.map +1 -0
- package/lib/commonjs/components/proof-request/index.js +39 -0
- package/lib/commonjs/components/proof-request/index.js.map +1 -0
- package/lib/commonjs/components/proof-request/select-credential.js +48 -0
- package/lib/commonjs/components/proof-request/select-credential.js.map +1 -0
- package/lib/commonjs/components/proof-request/share-credential.js +159 -0
- package/lib/commonjs/components/proof-request/share-credential.js.map +1 -0
- package/lib/commonjs/index.js +8 -261
- 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 +197 -0
- package/lib/commonjs/ui-components/accessibility/accessibility.js.map +1 -0
- package/lib/commonjs/ui-components/accessibility/accessibilityHistory.js +77 -0
- package/lib/commonjs/ui-components/accessibility/accessibilityHistory.js.map +1 -0
- package/lib/commonjs/ui-components/accessibility/accessibilityHistoryWrappers.js +47 -0
- package/lib/commonjs/ui-components/accessibility/accessibilityHistoryWrappers.js.map +1 -0
- package/lib/commonjs/ui-components/accessibility/accessibilityLanguage.js +61 -0
- package/lib/commonjs/ui-components/accessibility/accessibilityLanguage.js.map +1 -0
- package/lib/commonjs/ui-components/accessibility/index.js +100 -0
- package/lib/commonjs/ui-components/accessibility/index.js.map +1 -0
- package/lib/commonjs/ui-components/accessibility/locale/index.js +20 -0
- package/lib/commonjs/ui-components/accessibility/locale/index.js.map +1 -0
- package/lib/commonjs/ui-components/accessibility/locale.test.js.map +1 -0
- package/lib/commonjs/ui-components/action-modal/ActionModal.js +50 -0
- package/lib/commonjs/ui-components/action-modal/ActionModal.js.map +1 -0
- package/lib/commonjs/ui-components/action-modal/index.js +14 -0
- package/lib/commonjs/ui-components/action-modal/index.js.map +1 -0
- package/lib/commonjs/ui-components/activity-indicator/activity-indicator.js +32 -0
- package/lib/commonjs/ui-components/activity-indicator/activity-indicator.js.map +1 -0
- package/lib/commonjs/ui-components/activity-indicator/index.js +14 -0
- package/lib/commonjs/ui-components/activity-indicator/index.js.map +1 -0
- package/lib/commonjs/ui-components/blur/blur-view.js +74 -0
- package/lib/commonjs/ui-components/blur/blur-view.js.map +1 -0
- package/lib/commonjs/ui-components/blur/index.js +21 -0
- package/lib/commonjs/ui-components/blur/index.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/back-button.js +34 -0
- package/lib/commonjs/ui-components/buttons/back-button.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/button.js +150 -0
- package/lib/commonjs/ui-components/buttons/button.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/connectivity-button.js +80 -0
- package/lib/commonjs/ui-components/buttons/connectivity-button.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/filter-button.js +49 -0
- package/lib/commonjs/ui-components/buttons/filter-button.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/ghost-button.js +60 -0
- package/lib/commonjs/ui-components/buttons/ghost-button.js.map +1 -0
- 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 +76 -0
- package/lib/commonjs/ui-components/buttons/index.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/scan-button.js +81 -0
- package/lib/commonjs/ui-components/buttons/scan-button.js.map +1 -0
- package/lib/commonjs/ui-components/camera/camera-overlay.js +58 -0
- package/lib/commonjs/ui-components/camera/camera-overlay.js.map +1 -0
- package/lib/commonjs/ui-components/camera/index.js +21 -0
- package/lib/commonjs/ui-components/camera/index.js.map +1 -0
- package/lib/commonjs/ui-components/camera/qr-code-scanner.js +48 -0
- package/lib/commonjs/ui-components/camera/qr-code-scanner.js.map +1 -0
- package/lib/commonjs/ui-components/control/checkbox.js +78 -0
- package/lib/commonjs/ui-components/control/checkbox.js.map +1 -0
- package/lib/commonjs/ui-components/control/index.js.map +1 -0
- package/lib/commonjs/ui-components/control/switch.js +63 -0
- package/lib/commonjs/ui-components/control/switch.js.map +1 -0
- package/lib/commonjs/ui-components/credential/card/credential-card.js +179 -0
- package/lib/commonjs/ui-components/credential/card/credential-card.js.map +1 -0
- package/lib/commonjs/ui-components/credential/card/credential-details-card.js +194 -0
- package/lib/commonjs/ui-components/credential/card/credential-details-card.js.map +1 -0
- package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js +91 -0
- package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js.map +1 -0
- package/lib/commonjs/ui-components/credential/card/credential-header.js +174 -0
- package/lib/commonjs/ui-components/credential/card/credential-header.js.map +1 -0
- package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js +122 -0
- package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js.map +1 -0
- package/lib/commonjs/ui-components/credential/card/index.js +56 -0
- package/lib/commonjs/ui-components/credential/card/index.js.map +1 -0
- package/lib/commonjs/ui-components/credential/credential-attribute-item.js +280 -0
- package/lib/commonjs/ui-components/credential/credential-attribute-item.js.map +1 -0
- package/lib/commonjs/ui-components/credential/credential-carousel-images.js +95 -0
- package/lib/commonjs/ui-components/credential/credential-carousel-images.js.map +1 -0
- package/lib/commonjs/ui-components/credential/index.js +67 -0
- package/lib/commonjs/ui-components/credential/index.js.map +1 -0
- package/lib/commonjs/ui-components/credential/selector-status.js +16 -0
- package/lib/commonjs/ui-components/credential/selector-status.js.map +1 -0
- package/lib/commonjs/ui-components/credential/selector.js +77 -0
- package/lib/commonjs/ui-components/credential/selector.js.map +1 -0
- package/lib/commonjs/ui-components/detail/detail.js +82 -0
- package/lib/commonjs/ui-components/detail/detail.js.map +1 -0
- package/lib/commonjs/ui-components/detail/index.js +14 -0
- package/lib/commonjs/ui-components/detail/index.js.map +1 -0
- package/lib/commonjs/ui-components/entity/avatar.js +104 -0
- package/lib/commonjs/ui-components/entity/avatar.js.map +1 -0
- package/lib/commonjs/ui-components/entity/entity-cluster.js +72 -0
- package/lib/commonjs/ui-components/entity/entity-cluster.js.map +1 -0
- package/lib/commonjs/ui-components/entity/index.js +34 -0
- package/lib/commonjs/ui-components/entity/index.js.map +1 -0
- package/lib/commonjs/ui-components/header/focus-aware-status-bar.js +19 -0
- package/lib/commonjs/ui-components/header/focus-aware-status-bar.js.map +1 -0
- package/lib/commonjs/ui-components/header/foldable-header.js +86 -0
- package/lib/commonjs/ui-components/header/foldable-header.js.map +1 -0
- package/lib/commonjs/ui-components/header/header.js +103 -0
- package/lib/commonjs/ui-components/header/header.js.map +1 -0
- package/lib/commonjs/ui-components/header/index.js +35 -0
- package/lib/commonjs/ui-components/header/index.js.map +1 -0
- package/lib/commonjs/ui-components/header/navigation-header.js +142 -0
- package/lib/commonjs/ui-components/header/navigation-header.js.map +1 -0
- package/lib/commonjs/ui-components/history/data-item.js +77 -0
- package/lib/commonjs/ui-components/history/data-item.js.map +1 -0
- 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-item.js +111 -0
- package/lib/commonjs/ui-components/history/history-item.js.map +1 -0
- package/lib/commonjs/ui-components/history/history-section-header.js +47 -0
- package/lib/commonjs/ui-components/history/history-section-header.js.map +1 -0
- package/lib/commonjs/ui-components/history/history-section-list-item.js +48 -0
- package/lib/commonjs/ui-components/history/history-section-list-item.js.map +1 -0
- package/lib/commonjs/ui-components/history/index.js +76 -0
- package/lib/commonjs/ui-components/history/index.js.map +1 -0
- package/lib/commonjs/ui-components/icons/connectivity.js +134 -0
- package/lib/commonjs/ui-components/icons/connectivity.js.map +1 -0
- package/lib/commonjs/ui-components/icons/credential.js +151 -0
- package/lib/commonjs/ui-components/icons/credential.js.map +1 -0
- package/lib/commonjs/ui-components/icons/entity.js +51 -0
- package/lib/commonjs/ui-components/icons/entity.js.map +1 -0
- package/lib/commonjs/ui-components/icons/history.js +388 -0
- package/lib/commonjs/ui-components/icons/history.js.map +1 -0
- package/lib/commonjs/ui-components/icons/icons.js +233 -0
- package/lib/commonjs/ui-components/icons/icons.js.map +1 -0
- package/lib/commonjs/ui-components/icons/index.js.map +1 -0
- package/lib/commonjs/ui-components/icons/input.js +44 -0
- package/lib/commonjs/ui-components/icons/input.js.map +1 -0
- package/lib/commonjs/ui-components/icons/keypad.js +82 -0
- package/lib/commonjs/ui-components/icons/keypad.js.map +1 -0
- package/lib/commonjs/ui-components/icons/loader.js +180 -0
- package/lib/commonjs/ui-components/icons/loader.js.map +1 -0
- package/lib/commonjs/ui-components/icons/nerd-view.js +120 -0
- package/lib/commonjs/ui-components/icons/nerd-view.js.map +1 -0
- package/lib/commonjs/ui-components/icons/selector.js +55 -0
- package/lib/commonjs/ui-components/icons/selector.js.map +1 -0
- package/lib/commonjs/ui-components/icons/wallet.js +118 -0
- package/lib/commonjs/ui-components/icons/wallet.js.map +1 -0
- package/lib/commonjs/ui-components/image/image-or-component.js +77 -0
- package/lib/commonjs/ui-components/image/image-or-component.js.map +1 -0
- package/lib/commonjs/ui-components/image/index.js +14 -0
- package/lib/commonjs/ui-components/image/index.js.map +1 -0
- package/lib/commonjs/ui-components/index.js +281 -0
- package/lib/commonjs/ui-components/index.js.map +1 -0
- package/lib/commonjs/ui-components/input/index.js +65 -0
- package/lib/commonjs/ui-components/input/index.js.map +1 -0
- package/lib/commonjs/ui-components/input/radio-group.js +98 -0
- package/lib/commonjs/ui-components/input/radio-group.js.map +1 -0
- package/lib/commonjs/ui-components/input/selection-input.js +91 -0
- package/lib/commonjs/ui-components/input/selection-input.js.map +1 -0
- package/lib/commonjs/ui-components/input/text-input.js +192 -0
- package/lib/commonjs/ui-components/input/text-input.js.map +1 -0
- package/lib/commonjs/ui-components/list/index.js +52 -0
- package/lib/commonjs/ui-components/list/index.js.map +1 -0
- 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 +34 -0
- package/lib/commonjs/ui-components/list/list-section-header.js.map +1 -0
- package/lib/commonjs/ui-components/list/list-title-header.js +33 -0
- package/lib/commonjs/ui-components/list/list-title-header.js.map +1 -0
- 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 +40 -0
- package/lib/commonjs/ui-components/loader/index.js.map +1 -0
- package/lib/commonjs/ui-components/loader/loader.js +140 -0
- package/lib/commonjs/ui-components/loader/loader.js.map +1 -0
- package/lib/commonjs/ui-components/loader/loading-result.js +93 -0
- package/lib/commonjs/ui-components/loader/loading-result.js.map +1 -0
- package/lib/commonjs/ui-components/nerd-view/index.js +21 -0
- package/lib/commonjs/ui-components/nerd-view/index.js.map +1 -0
- package/lib/commonjs/ui-components/nerd-view/nerd-mode-item.js +234 -0
- package/lib/commonjs/ui-components/nerd-view/nerd-mode-item.js.map +1 -0
- package/lib/commonjs/ui-components/pin/index.js +47 -0
- package/lib/commonjs/ui-components/pin/index.js.map +1 -0
- package/lib/commonjs/ui-components/pin/keypad.js +197 -0
- package/lib/commonjs/ui-components/pin/keypad.js.map +1 -0
- package/lib/commonjs/ui-components/pin/pin-code-screen.js +160 -0
- package/lib/commonjs/ui-components/pin/pin-code-screen.js.map +1 -0
- package/lib/commonjs/ui-components/pin/pin-lock-animation.js +823 -0
- package/lib/commonjs/ui-components/pin/pin-lock-animation.js.map +1 -0
- package/lib/commonjs/ui-components/pin/pin-lock.js +81 -0
- package/lib/commonjs/ui-components/pin/pin-lock.js.map +1 -0
- package/lib/commonjs/ui-components/pin/pins.js +53 -0
- package/lib/commonjs/ui-components/pin/pins.js.map +1 -0
- package/lib/commonjs/ui-components/screens/backup-screen.js +84 -0
- package/lib/commonjs/ui-components/screens/backup-screen.js.map +1 -0
- package/lib/commonjs/ui-components/screens/image-preview-screen.js +90 -0
- package/lib/commonjs/ui-components/screens/image-preview-screen.js.map +1 -0
- package/lib/commonjs/ui-components/screens/index.js +57 -0
- package/lib/commonjs/ui-components/screens/index.js.map +1 -0
- package/lib/commonjs/ui-components/screens/nerd-mode-screen.js +165 -0
- package/lib/commonjs/ui-components/screens/nerd-mode-screen.js.map +1 -0
- package/lib/commonjs/ui-components/screens/qr-code-scanner-screen.js +118 -0
- package/lib/commonjs/ui-components/screens/qr-code-scanner-screen.js.map +1 -0
- package/lib/commonjs/ui-components/screens/scroll-view-screen.js +92 -0
- package/lib/commonjs/ui-components/screens/scroll-view-screen.js.map +1 -0
- package/lib/commonjs/ui-components/screens/section-list-screen.js +65 -0
- package/lib/commonjs/ui-components/screens/section-list-screen.js.map +1 -0
- package/lib/commonjs/ui-components/searchbar/animated-search-bar.js +86 -0
- package/lib/commonjs/ui-components/searchbar/animated-search-bar.js.map +1 -0
- package/lib/commonjs/ui-components/searchbar/index.js +34 -0
- package/lib/commonjs/ui-components/searchbar/index.js.map +1 -0
- package/lib/commonjs/ui-components/searchbar/search-bar.js +97 -0
- package/lib/commonjs/ui-components/searchbar/search-bar.js.map +1 -0
- package/lib/commonjs/ui-components/settings/button-setting.js +65 -0
- package/lib/commonjs/ui-components/settings/button-setting.js.map +1 -0
- package/lib/commonjs/ui-components/settings/index.js +73 -0
- package/lib/commonjs/ui-components/settings/index.js.map +1 -0
- package/lib/commonjs/ui-components/settings/setting-item-separator.js +38 -0
- package/lib/commonjs/ui-components/settings/setting-item-separator.js.map +1 -0
- package/lib/commonjs/ui-components/settings/setting-item.js +77 -0
- package/lib/commonjs/ui-components/settings/setting-item.js.map +1 -0
- package/lib/commonjs/ui-components/settings/settings-button.js +33 -0
- package/lib/commonjs/ui-components/settings/settings-button.js.map +1 -0
- package/lib/commonjs/ui-components/settings/switch-setting.js +33 -0
- package/lib/commonjs/ui-components/settings/switch-setting.js.map +1 -0
- package/lib/commonjs/ui-components/state/error-screen.js +69 -0
- package/lib/commonjs/ui-components/state/error-screen.js.map +1 -0
- package/lib/commonjs/ui-components/state/index.js +27 -0
- package/lib/commonjs/ui-components/state/index.js.map +1 -0
- package/lib/commonjs/ui-components/text/base.js +38 -0
- package/lib/commonjs/ui-components/text/base.js.map +1 -0
- package/lib/commonjs/ui-components/text/font.js +62 -0
- package/lib/commonjs/ui-components/text/font.js.map +1 -0
- package/lib/commonjs/ui-components/text/index.js +14 -0
- package/lib/commonjs/ui-components/text/index.js.map +1 -0
- package/lib/commonjs/ui-components/text/typography.js +116 -0
- package/lib/commonjs/ui-components/text/typography.js.map +1 -0
- package/lib/commonjs/ui-components/theme/color-scheme-context.js +53 -0
- package/lib/commonjs/ui-components/theme/color-scheme-context.js.map +1 -0
- package/lib/commonjs/ui-components/theme/color-scheme.js.map +1 -0
- package/lib/commonjs/ui-components/theme/index.js.map +1 -0
- package/lib/commonjs/utils/array.js +10 -0
- package/lib/commonjs/utils/array.js.map +1 -0
- package/lib/commonjs/utils/backup.js +12 -0
- package/lib/commonjs/utils/backup.js.map +1 -0
- 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 +100 -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 +162 -0
- package/lib/commonjs/utils/hooks/connectivity/connectivity.js.map +1 -0
- package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js +62 -0
- package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/backup.js +155 -0
- package/lib/commonjs/utils/hooks/core/backup.js.map +1 -0
- 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 +33 -0
- package/lib/commonjs/utils/hooks/core/core-config.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/core-context.js +77 -0
- package/lib/commonjs/utils/hooks/core/core-context.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/core-init.js +97 -0
- package/lib/commonjs/utils/hooks/core/core-init.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/credential-schemas.js +100 -0
- package/lib/commonjs/utils/hooks/core/credential-schemas.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/credentials.js +160 -0
- package/lib/commonjs/utils/hooks/core/credentials.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/dids.js +33 -0
- package/lib/commonjs/utils/hooks/core/dids.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/error-code.js +14 -0
- package/lib/commonjs/utils/hooks/core/error-code.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/history.js +33 -0
- package/lib/commonjs/utils/hooks/core/history.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/index.js +149 -0
- package/lib/commonjs/utils/hooks/core/index.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/proof-schemas.js +117 -0
- package/lib/commonjs/utils/hooks/core/proof-schemas.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/proofs.js +367 -0
- package/lib/commonjs/utils/hooks/core/proofs.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/query.js +24 -0
- package/lib/commonjs/utils/hooks/core/query.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/trust-entity.js +99 -0
- package/lib/commonjs/utils/hooks/core/trust-entity.js.map +1 -0
- package/lib/commonjs/utils/hooks/credential-card/credential-card-expanding.js +51 -0
- package/lib/commonjs/utils/hooks/credential-card/credential-card-expanding.js.map +1 -0
- 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 +20 -0
- package/lib/commonjs/utils/hooks/http/client.js.map +1 -0
- package/lib/commonjs/utils/hooks/index.js +85 -11
- 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 +28 -0
- package/lib/commonjs/utils/hooks/navigation/before-remove.js.map +1 -0
- package/lib/commonjs/utils/hooks/navigation/close-button-timeout.js +34 -0
- package/lib/commonjs/utils/hooks/navigation/close-button-timeout.js.map +1 -0
- package/lib/commonjs/utils/hooks/navigation/deep-link.js +45 -0
- package/lib/commonjs/utils/hooks/navigation/deep-link.js.map +1 -0
- package/lib/commonjs/utils/hooks/navigation/index.js +50 -0
- package/lib/commonjs/utils/hooks/navigation/index.js.map +1 -0
- package/lib/commonjs/utils/hooks/navigation/open-settings.js +42 -0
- package/lib/commonjs/utils/hooks/navigation/open-settings.js.map +1 -0
- package/lib/commonjs/utils/hooks/pin-security/pin-security.js +86 -0
- package/lib/commonjs/utils/hooks/pin-security/pin-security.js.map +1 -0
- package/lib/commonjs/utils/hooks/revocation/credential-status.js +58 -0
- package/lib/commonjs/utils/hooks/revocation/credential-status.js.map +1 -0
- package/lib/commonjs/utils/index.js +154 -44
- 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 +86 -0
- package/lib/commonjs/utils/parsers/credential-images.js.map +1 -0
- package/lib/commonjs/utils/parsers/credential-sharing.js +251 -0
- package/lib/commonjs/utils/parsers/credential-sharing.js.map +1 -0
- package/lib/commonjs/utils/parsers/credential.js +313 -0
- package/lib/commonjs/utils/parsers/credential.js.map +1 -0
- package/lib/commonjs/utils/parsers/index.js +61 -0
- package/lib/commonjs/utils/parsers/index.js.map +1 -0
- package/lib/commonjs/utils/parsers/query.js +104 -0
- package/lib/commonjs/utils/parsers/query.js.map +1 -0
- 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 +88 -0
- package/lib/commonjs/utils/reporting.js.map +1 -0
- package/lib/commonjs/utils/string.js +20 -0
- package/lib/commonjs/utils/string.js.map +1 -0
- 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 +10 -1
- package/lib/commonjs/utils/useMemoAsync.js.map +1 -1
- package/lib/commonjs/utils/uuid.js +16 -0
- package/lib/commonjs/utils/uuid.js.map +1 -0
- package/lib/module/components/backup/index.js +2 -0
- package/lib/module/components/backup/index.js.map +1 -0
- package/lib/module/components/backup/preview-credentials.js +30 -0
- package/lib/module/components/backup/preview-credentials.js.map +1 -0
- package/lib/module/components/credential/credential.js +54 -0
- package/lib/module/components/credential/credential.js.map +1 -0
- package/lib/module/components/credential/index.js +2 -0
- package/lib/module/components/credential/index.js.map +1 -0
- package/lib/module/components/entity/EntityButtons.js +56 -0
- package/lib/module/components/entity/EntityButtons.js.map +1 -0
- package/lib/module/components/entity/entity-attributes.js +42 -0
- package/lib/module/components/entity/entity-attributes.js.map +1 -0
- package/lib/module/components/entity/entity-details-with-buttons.js +81 -0
- package/lib/module/components/entity/entity-details-with-buttons.js.map +1 -0
- package/lib/module/components/entity/entity-details.js +63 -0
- package/lib/module/components/entity/entity-details.js.map +1 -0
- package/lib/module/components/entity/index.js +3 -0
- package/lib/module/components/entity/index.js.map +1 -0
- package/lib/module/components/history/history-details-screen.js +59 -0
- package/lib/module/components/history/history-details-screen.js.map +1 -0
- package/lib/module/components/history/history-list-item-icon.js +84 -0
- package/lib/module/components/history/history-list-item-icon.js.map +1 -0
- package/lib/module/components/history/history-list-item.js +36 -0
- package/lib/module/components/history/history-list-item.js.map +1 -0
- package/lib/module/components/history/history-list-screen.js +112 -0
- package/lib/module/components/history/history-list-screen.js.map +1 -0
- package/lib/module/components/history/history-list-section-header.js +29 -0
- package/lib/module/components/history/history-list-section-header.js.map +1 -0
- package/lib/module/components/history/history-list.js +90 -0
- package/lib/module/components/history/history-list.js.map +1 -0
- package/lib/module/components/history/index.js +7 -0
- package/lib/module/components/history/index.js.map +1 -0
- package/lib/module/components/index.js +7 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/navigation/header-buttons.js +66 -0
- package/lib/module/components/navigation/header-buttons.js.map +1 -0
- package/lib/module/components/navigation/index.js +2 -0
- package/lib/module/components/navigation/index.js.map +1 -0
- package/lib/module/components/proof-request/group.js +27 -0
- package/lib/module/components/proof-request/group.js.map +1 -0
- package/lib/module/components/proof-request/index.js +4 -0
- package/lib/module/components/proof-request/index.js.map +1 -0
- package/lib/module/components/proof-request/select-credential.js +40 -0
- package/lib/module/components/proof-request/select-credential.js.map +1 -0
- package/lib/module/components/proof-request/share-credential.js +150 -0
- package/lib/module/components/proof-request/share-credential.js.map +1 -0
- package/lib/module/index.js +2 -25
- 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 +183 -0
- package/lib/module/ui-components/accessibility/accessibility.js.map +1 -0
- package/lib/module/ui-components/accessibility/accessibilityHistory.js +67 -0
- package/lib/module/ui-components/accessibility/accessibilityHistory.js.map +1 -0
- package/lib/module/ui-components/accessibility/accessibilityHistoryWrappers.js +40 -0
- package/lib/module/ui-components/accessibility/accessibilityHistoryWrappers.js.map +1 -0
- package/lib/module/ui-components/accessibility/accessibilityLanguage.js +51 -0
- package/lib/module/ui-components/accessibility/accessibilityLanguage.js.map +1 -0
- package/lib/module/ui-components/accessibility/index.js +8 -0
- package/lib/module/ui-components/accessibility/index.js.map +1 -0
- package/lib/module/ui-components/accessibility/locale/index.js.map +1 -0
- package/lib/module/ui-components/accessibility/locale.test.js.map +1 -0
- package/lib/module/ui-components/action-modal/ActionModal.js +43 -0
- package/lib/module/ui-components/action-modal/ActionModal.js.map +1 -0
- package/lib/module/ui-components/action-modal/index.js.map +1 -0
- package/lib/module/ui-components/activity-indicator/activity-indicator.js +23 -0
- package/lib/module/ui-components/activity-indicator/activity-indicator.js.map +1 -0
- package/lib/module/ui-components/activity-indicator/index.js.map +1 -0
- package/lib/module/ui-components/blur/blur-view.js +66 -0
- package/lib/module/ui-components/blur/blur-view.js.map +1 -0
- package/lib/module/ui-components/blur/index.js.map +1 -0
- package/lib/module/ui-components/buttons/back-button.js +27 -0
- package/lib/module/ui-components/buttons/back-button.js.map +1 -0
- package/lib/module/ui-components/buttons/button.js +142 -0
- package/lib/module/ui-components/buttons/button.js.map +1 -0
- package/lib/module/ui-components/buttons/connectivity-button.js +73 -0
- package/lib/module/ui-components/buttons/connectivity-button.js.map +1 -0
- package/lib/module/ui-components/buttons/filter-button.js +42 -0
- package/lib/module/ui-components/buttons/filter-button.js.map +1 -0
- package/lib/module/ui-components/buttons/ghost-button.js +52 -0
- package/lib/module/ui-components/buttons/ghost-button.js.map +1 -0
- 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 +9 -0
- package/lib/module/ui-components/buttons/index.js.map +1 -0
- package/lib/module/ui-components/buttons/scan-button.js +74 -0
- package/lib/module/ui-components/buttons/scan-button.js.map +1 -0
- package/lib/module/ui-components/camera/camera-overlay.js +49 -0
- package/lib/module/ui-components/camera/camera-overlay.js.map +1 -0
- package/lib/module/ui-components/camera/index.js.map +1 -0
- package/lib/module/ui-components/camera/qr-code-scanner.js +39 -0
- package/lib/module/ui-components/camera/qr-code-scanner.js.map +1 -0
- package/lib/module/ui-components/control/checkbox.js +69 -0
- package/lib/module/ui-components/control/checkbox.js.map +1 -0
- package/lib/module/ui-components/control/index.js.map +1 -0
- package/lib/module/ui-components/control/switch.js +55 -0
- package/lib/module/ui-components/control/switch.js.map +1 -0
- package/lib/module/ui-components/credential/card/credential-card.js +170 -0
- package/lib/module/ui-components/credential/card/credential-card.js.map +1 -0
- package/lib/module/ui-components/credential/card/credential-details-card.js +185 -0
- package/lib/module/ui-components/credential/card/credential-details-card.js.map +1 -0
- package/lib/module/ui-components/credential/card/credential-details-list-item.js +82 -0
- package/lib/module/ui-components/credential/card/credential-details-list-item.js.map +1 -0
- package/lib/module/ui-components/credential/card/credential-header.js +165 -0
- package/lib/module/ui-components/credential/card/credential-header.js.map +1 -0
- package/lib/module/ui-components/credential/card/credential-image-carousel.js +113 -0
- package/lib/module/ui-components/credential/card/credential-image-carousel.js.map +1 -0
- package/lib/module/ui-components/credential/card/index.js +11 -0
- package/lib/module/ui-components/credential/card/index.js.map +1 -0
- package/lib/module/ui-components/credential/credential-attribute-item.js +271 -0
- package/lib/module/ui-components/credential/credential-attribute-item.js.map +1 -0
- package/lib/module/ui-components/credential/credential-carousel-images.js +83 -0
- package/lib/module/ui-components/credential/credential-carousel-images.js.map +1 -0
- package/lib/module/ui-components/credential/index.js +9 -0
- package/lib/module/ui-components/credential/index.js.map +1 -0
- package/lib/module/ui-components/credential/selector-status.js +10 -0
- package/lib/module/ui-components/credential/selector-status.js.map +1 -0
- package/lib/module/ui-components/credential/selector.js +69 -0
- package/lib/module/ui-components/credential/selector.js.map +1 -0
- package/lib/module/ui-components/detail/detail.js +74 -0
- package/lib/module/ui-components/detail/detail.js.map +1 -0
- package/lib/module/ui-components/detail/index.js.map +1 -0
- package/lib/module/ui-components/entity/avatar.js +95 -0
- package/lib/module/ui-components/entity/avatar.js.map +1 -0
- package/lib/module/ui-components/entity/entity-cluster.js +63 -0
- package/lib/module/ui-components/entity/entity-cluster.js.map +1 -0
- package/lib/module/ui-components/entity/index.js.map +1 -0
- package/lib/module/ui-components/header/focus-aware-status-bar.js +12 -0
- package/lib/module/ui-components/header/focus-aware-status-bar.js.map +1 -0
- package/lib/module/ui-components/header/foldable-header.js +77 -0
- package/lib/module/ui-components/header/foldable-header.js.map +1 -0
- package/lib/module/ui-components/header/header.js +96 -0
- package/lib/module/ui-components/header/header.js.map +1 -0
- package/lib/module/ui-components/header/index.js +9 -0
- package/lib/module/ui-components/header/index.js.map +1 -0
- package/lib/module/ui-components/header/navigation-header.js +133 -0
- package/lib/module/ui-components/header/navigation-header.js.map +1 -0
- package/lib/module/ui-components/history/data-item.js +68 -0
- package/lib/module/ui-components/history/data-item.js.map +1 -0
- 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-item.js +102 -0
- package/lib/module/ui-components/history/history-item.js.map +1 -0
- package/lib/module/ui-components/history/history-section-header.js +41 -0
- package/lib/module/ui-components/history/history-section-header.js.map +1 -0
- package/lib/module/ui-components/history/history-section-list-item.js +42 -0
- package/lib/module/ui-components/history/history-section-list-item.js.map +1 -0
- package/lib/module/ui-components/history/index.js +10 -0
- package/lib/module/ui-components/history/index.js.map +1 -0
- package/lib/module/ui-components/icons/connectivity.js +120 -0
- package/lib/module/ui-components/icons/connectivity.js.map +1 -0
- package/lib/module/ui-components/icons/credential.js +136 -0
- package/lib/module/ui-components/icons/credential.js.map +1 -0
- package/lib/module/ui-components/icons/entity.js +42 -0
- package/lib/module/ui-components/icons/entity.js.map +1 -0
- package/lib/module/ui-components/icons/history.js +364 -0
- package/lib/module/ui-components/icons/history.js.map +1 -0
- package/lib/module/ui-components/icons/icons.js +214 -0
- package/lib/module/ui-components/icons/icons.js.map +1 -0
- package/lib/module/ui-components/icons/index.js.map +1 -0
- package/lib/module/ui-components/icons/input.js.map +1 -0
- package/lib/module/ui-components/icons/keypad.js +69 -0
- package/lib/module/ui-components/icons/keypad.js.map +1 -0
- package/lib/module/ui-components/icons/loader.js +168 -0
- package/lib/module/ui-components/icons/loader.js.map +1 -0
- package/lib/module/ui-components/icons/nerd-view.js.map +1 -0
- package/lib/module/ui-components/icons/selector.js +44 -0
- package/lib/module/ui-components/icons/selector.js.map +1 -0
- package/lib/module/ui-components/icons/wallet.js +108 -0
- package/lib/module/ui-components/icons/wallet.js.map +1 -0
- package/lib/module/ui-components/image/image-or-component.js +69 -0
- package/lib/module/ui-components/image/image-or-component.js.map +1 -0
- package/lib/module/ui-components/image/index.js +3 -0
- package/lib/module/ui-components/image/index.js.map +1 -0
- package/lib/module/ui-components/index.js +26 -0
- package/lib/module/ui-components/index.js.map +1 -0
- package/lib/module/ui-components/input/index.js.map +1 -0
- package/lib/module/ui-components/input/radio-group.js +91 -0
- package/lib/module/ui-components/input/radio-group.js.map +1 -0
- package/lib/module/ui-components/input/selection-input.js +82 -0
- package/lib/module/ui-components/input/selection-input.js.map +1 -0
- package/lib/module/ui-components/input/text-input.js +184 -0
- package/lib/module/ui-components/input/text-input.js.map +1 -0
- package/lib/module/ui-components/list/index.js +6 -0
- package/lib/module/ui-components/list/index.js.map +1 -0
- 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 +27 -0
- package/lib/module/ui-components/list/list-section-header.js.map +1 -0
- package/lib/module/ui-components/list/list-title-header.js +26 -0
- package/lib/module/ui-components/list/list-title-header.js.map +1 -0
- 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 -0
- package/lib/module/ui-components/loader/loader.js +132 -0
- package/lib/module/ui-components/loader/loader.js.map +1 -0
- package/lib/module/ui-components/loader/loading-result.js +86 -0
- package/lib/module/ui-components/loader/loading-result.js.map +1 -0
- package/lib/module/ui-components/nerd-view/index.js +3 -0
- package/lib/module/ui-components/nerd-view/index.js.map +1 -0
- package/lib/module/ui-components/nerd-view/nerd-mode-item.js +224 -0
- package/lib/module/ui-components/nerd-view/nerd-mode-item.js.map +1 -0
- package/lib/module/ui-components/pin/index.js +5 -0
- package/lib/module/ui-components/pin/index.js.map +1 -0
- package/lib/module/ui-components/pin/keypad.js +189 -0
- package/lib/module/ui-components/pin/keypad.js.map +1 -0
- package/lib/module/ui-components/pin/pin-code-screen.js +151 -0
- package/lib/module/ui-components/pin/pin-code-screen.js.map +1 -0
- package/lib/module/ui-components/pin/pin-lock-animation.js +817 -0
- package/lib/module/ui-components/pin/pin-lock-animation.js.map +1 -0
- package/lib/module/ui-components/pin/pin-lock.js +72 -0
- package/lib/module/ui-components/pin/pin-lock.js.map +1 -0
- package/lib/module/ui-components/pin/pins.js +45 -0
- package/lib/module/ui-components/pin/pins.js.map +1 -0
- package/lib/module/ui-components/screens/backup-screen.js +77 -0
- package/lib/module/ui-components/screens/backup-screen.js.map +1 -0
- package/lib/module/ui-components/screens/image-preview-screen.js +82 -0
- package/lib/module/ui-components/screens/image-preview-screen.js.map +1 -0
- package/lib/module/ui-components/screens/index.js +13 -0
- package/lib/module/ui-components/screens/index.js.map +1 -0
- package/lib/module/ui-components/screens/nerd-mode-screen.js +156 -0
- package/lib/module/ui-components/screens/nerd-mode-screen.js.map +1 -0
- package/lib/module/ui-components/screens/qr-code-scanner-screen.js +109 -0
- package/lib/module/ui-components/screens/qr-code-scanner-screen.js.map +1 -0
- package/lib/module/ui-components/screens/scroll-view-screen.js +85 -0
- package/lib/module/ui-components/screens/scroll-view-screen.js.map +1 -0
- package/lib/module/ui-components/screens/section-list-screen.js +58 -0
- package/lib/module/ui-components/screens/section-list-screen.js.map +1 -0
- package/lib/module/ui-components/searchbar/animated-search-bar.js +77 -0
- package/lib/module/ui-components/searchbar/animated-search-bar.js.map +1 -0
- package/lib/module/ui-components/searchbar/index.js.map +1 -0
- package/lib/module/ui-components/searchbar/search-bar.js +88 -0
- package/lib/module/ui-components/searchbar/search-bar.js.map +1 -0
- package/lib/module/ui-components/settings/button-setting.js +56 -0
- package/lib/module/ui-components/settings/button-setting.js.map +1 -0
- package/lib/module/ui-components/settings/index.js.map +1 -0
- package/lib/module/ui-components/settings/setting-item-separator.js +31 -0
- package/lib/module/ui-components/settings/setting-item-separator.js.map +1 -0
- package/lib/module/ui-components/settings/setting-item.js +68 -0
- package/lib/module/ui-components/settings/setting-item.js.map +1 -0
- package/lib/module/ui-components/settings/settings-button.js +26 -0
- package/lib/module/ui-components/settings/settings-button.js.map +1 -0
- package/lib/module/ui-components/settings/switch-setting.js +26 -0
- package/lib/module/ui-components/settings/switch-setting.js.map +1 -0
- package/lib/module/ui-components/state/error-screen.js +62 -0
- package/lib/module/ui-components/state/error-screen.js.map +1 -0
- package/lib/module/ui-components/state/index.js.map +1 -0
- package/lib/module/ui-components/text/base.js +30 -0
- package/lib/module/ui-components/text/base.js.map +1 -0
- package/lib/module/ui-components/text/font.js +55 -0
- package/lib/module/ui-components/text/font.js.map +1 -0
- package/lib/module/ui-components/text/index.js +3 -0
- package/lib/module/ui-components/text/index.js.map +1 -0
- package/lib/module/ui-components/text/typography.js +109 -0
- package/lib/module/ui-components/text/typography.js.map +1 -0
- package/lib/module/ui-components/theme/color-scheme-context.js +45 -0
- package/lib/module/ui-components/theme/color-scheme-context.js.map +1 -0
- package/lib/module/ui-components/theme/color-scheme.js.map +1 -0
- package/lib/module/ui-components/theme/index.js.map +1 -0
- package/lib/module/utils/array.js +4 -0
- package/lib/module/utils/array.js.map +1 -0
- package/lib/module/utils/backup.js +5 -0
- package/lib/module/utils/backup.js.map +1 -0
- 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 +91 -3
- 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 +153 -0
- package/lib/module/utils/hooks/connectivity/connectivity.js.map +1 -0
- package/lib/module/utils/hooks/connectivity/connectivity.test.js +60 -0
- package/lib/module/utils/hooks/connectivity/connectivity.test.js.map +1 -0
- package/lib/module/utils/hooks/core/backup.js +143 -0
- package/lib/module/utils/hooks/core/backup.js.map +1 -0
- 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 +23 -0
- package/lib/module/utils/hooks/core/core-config.js.map +1 -0
- package/lib/module/utils/hooks/core/core-context.js +67 -0
- package/lib/module/utils/hooks/core/core-context.js.map +1 -0
- package/lib/module/utils/hooks/core/core-init.js +90 -0
- package/lib/module/utils/hooks/core/core-init.js.map +1 -0
- package/lib/module/utils/hooks/core/credential-schemas.js +88 -0
- package/lib/module/utils/hooks/core/credential-schemas.js.map +1 -0
- package/lib/module/utils/hooks/core/credentials.js +145 -0
- package/lib/module/utils/hooks/core/credentials.js.map +1 -0
- package/lib/module/utils/hooks/core/dids.js +26 -0
- package/lib/module/utils/hooks/core/dids.js.map +1 -0
- package/lib/module/utils/hooks/core/error-code.js +8 -0
- package/lib/module/utils/hooks/core/error-code.js.map +1 -0
- package/lib/module/utils/hooks/core/history.js +26 -0
- package/lib/module/utils/hooks/core/history.js.map +1 -0
- package/lib/module/utils/hooks/core/index.js +14 -0
- package/lib/module/utils/hooks/core/index.js.map +1 -0
- package/lib/module/utils/hooks/core/proof-schemas.js +104 -0
- package/lib/module/utils/hooks/core/proof-schemas.js.map +1 -0
- package/lib/module/utils/hooks/core/proofs.js +346 -0
- package/lib/module/utils/hooks/core/proofs.js.map +1 -0
- package/lib/module/utils/hooks/core/query.js +18 -0
- package/lib/module/utils/hooks/core/query.js.map +1 -0
- package/lib/module/utils/hooks/core/trust-entity.js +88 -0
- package/lib/module/utils/hooks/core/trust-entity.js.map +1 -0
- package/lib/module/utils/hooks/credential-card/credential-card-expanding.js +43 -0
- package/lib/module/utils/hooks/credential-card/credential-card-expanding.js.map +1 -0
- 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 +13 -0
- package/lib/module/utils/hooks/http/client.js.map +1 -0
- package/lib/module/utils/hooks/index.js +8 -4
- 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 +21 -0
- package/lib/module/utils/hooks/navigation/before-remove.js.map +1 -0
- package/lib/module/utils/hooks/navigation/close-button-timeout.js +27 -0
- package/lib/module/utils/hooks/navigation/close-button-timeout.js.map +1 -0
- package/lib/module/utils/hooks/navigation/deep-link.js +37 -0
- package/lib/module/utils/hooks/navigation/deep-link.js.map +1 -0
- package/lib/module/utils/hooks/navigation/index.js +5 -0
- package/lib/module/utils/hooks/navigation/index.js.map +1 -0
- package/lib/module/utils/hooks/navigation/open-settings.js +35 -0
- package/lib/module/utils/hooks/navigation/open-settings.js.map +1 -0
- package/lib/module/utils/hooks/pin-security/pin-security.js +79 -0
- package/lib/module/utils/hooks/pin-security/pin-security.js.map +1 -0
- package/lib/module/utils/hooks/revocation/credential-status.js +52 -0
- package/lib/module/utils/hooks/revocation/credential-status.js.map +1 -0
- package/lib/module/utils/index.js +14 -5
- 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 +78 -0
- package/lib/module/utils/parsers/credential-images.js.map +1 -0
- package/lib/module/utils/parsers/credential-sharing.js +238 -0
- package/lib/module/utils/parsers/credential-sharing.js.map +1 -0
- package/lib/module/utils/parsers/credential.js +295 -0
- package/lib/module/utils/parsers/credential.js.map +1 -0
- package/lib/module/utils/parsers/index.js +6 -0
- package/lib/module/utils/parsers/index.js.map +1 -0
- package/lib/module/utils/parsers/query.js +92 -0
- package/lib/module/utils/parsers/query.js.map +1 -0
- 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 +77 -0
- package/lib/module/utils/reporting.js.map +1 -0
- package/lib/module/utils/string.js +10 -0
- package/lib/module/utils/string.js.map +1 -0
- 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 +11 -1
- package/lib/module/utils/useMemoAsync.js.map +1 -1
- package/lib/module/utils/uuid.js +9 -0
- package/lib/module/utils/uuid.js.map +1 -0
- package/lib/typescript/components/backup/index.d.ts +1 -0
- package/lib/typescript/components/backup/preview-credentials.d.ts +11 -0
- package/lib/typescript/components/credential/credential.d.ts +16 -0
- package/lib/typescript/components/credential/index.d.ts +1 -0
- package/lib/typescript/components/entity/EntityButtons.d.ts +14 -0
- package/lib/typescript/components/entity/entity-attributes.d.ts +13 -0
- package/lib/typescript/components/entity/entity-details-with-buttons.d.ts +18 -0
- package/lib/typescript/components/entity/entity-details.d.ts +19 -0
- package/lib/typescript/components/entity/index.d.ts +2 -0
- package/lib/typescript/components/history/history-details-screen.d.ts +20 -0
- package/lib/typescript/components/history/history-list-item-icon.d.ts +8 -0
- package/lib/typescript/components/history/history-list-item.d.ts +20 -0
- package/lib/typescript/components/history/history-list-screen.d.ts +22 -0
- package/lib/typescript/components/history/history-list-section-header.d.ts +13 -0
- package/lib/typescript/components/history/history-list.d.ts +19 -0
- package/lib/typescript/components/history/index.d.ts +6 -0
- package/lib/typescript/components/index.d.ts +6 -0
- package/lib/typescript/components/navigation/header-buttons.d.ts +21 -0
- package/lib/typescript/components/navigation/index.d.ts +1 -0
- package/lib/typescript/components/proof-request/group.d.ts +2 -0
- package/lib/typescript/components/proof-request/index.d.ts +3 -0
- package/lib/typescript/components/proof-request/select-credential.d.ts +14 -0
- package/lib/typescript/components/proof-request/share-credential.d.ts +27 -0
- package/lib/typescript/index.d.ts +2 -25
- package/lib/typescript/ui-components/accessibility/accessibility.d.ts +55 -0
- package/lib/typescript/ui-components/accessibility/accessibilityHistory.d.ts +13 -0
- package/lib/typescript/ui-components/accessibility/accessibilityHistoryWrappers.d.ts +18 -0
- package/lib/typescript/ui-components/accessibility/index.d.ts +8 -0
- package/lib/typescript/ui-components/buttons/back-button.d.ts +9 -0
- package/lib/typescript/ui-components/buttons/button.d.ts +22 -0
- package/lib/typescript/ui-components/buttons/hold-button.d.ts +16 -0
- package/lib/typescript/ui-components/buttons/index.d.ts +15 -0
- package/lib/typescript/ui-components/buttons/scan-button.d.ts +5 -0
- package/lib/typescript/ui-components/credential/card/credential-card.d.ts +25 -0
- package/lib/typescript/ui-components/credential/card/credential-header.d.ts +20 -0
- package/lib/typescript/ui-components/credential/card/index.d.ts +15 -0
- package/lib/typescript/ui-components/credential/credential-attribute-item.d.ts +49 -0
- package/lib/typescript/ui-components/credential/index.d.ts +9 -0
- package/lib/typescript/ui-components/entity/avatar.d.ts +11 -0
- package/lib/typescript/ui-components/entity/entity-cluster.d.ts +13 -0
- package/lib/typescript/ui-components/header/index.d.ts +11 -0
- package/lib/typescript/ui-components/history/data-item.d.ts +12 -0
- package/lib/typescript/ui-components/history/history-details.d.ts +51 -0
- package/lib/typescript/ui-components/history/history-item.d.ts +15 -0
- package/lib/typescript/ui-components/history/history-section-header.d.ts +7 -0
- package/lib/typescript/ui-components/history/history-section-list-item.d.ts +7 -0
- package/lib/typescript/ui-components/history/index.d.ts +9 -0
- package/lib/typescript/ui-components/icons/history.d.ts +27 -0
- package/lib/typescript/ui-components/image/index.d.ts +3 -0
- package/lib/typescript/ui-components/index.d.ts +25 -0
- package/lib/typescript/ui-components/input/selection-input.d.ts +32 -0
- package/lib/typescript/ui-components/list/index.d.ts +5 -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 +3 -0
- package/lib/typescript/ui-components/pin/index.d.ts +4 -0
- package/lib/typescript/ui-components/pin/keypad.d.ts +16 -0
- package/lib/typescript/ui-components/pin/pin-lock-animation.d.ts +731 -0
- package/lib/typescript/ui-components/pin/pin-lock.d.ts +13 -0
- package/lib/typescript/ui-components/screens/index.d.ts +18 -0
- package/lib/typescript/ui-components/screens/nerd-mode-screen.d.ts +49 -0
- package/lib/typescript/ui-components/text/index.d.ts +3 -0
- package/lib/typescript/ui-components/text/typography.d.ts +112 -0
- package/lib/typescript/ui-components/theme/color-scheme.d.ts +32 -0
- package/lib/typescript/utils/array.d.ts +1 -0
- package/lib/typescript/utils/backup.d.ts +1 -0
- package/lib/typescript/utils/date.d.ts +32 -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 +27 -0
- package/lib/typescript/utils/hooks/connectivity/connectivity.test.d.ts +1 -0
- package/lib/typescript/utils/hooks/core/backup.d.ts +13 -0
- package/lib/typescript/utils/hooks/core/cache.d.ts +2 -0
- package/lib/typescript/utils/hooks/core/core-config.d.ts +5 -0
- package/lib/typescript/utils/hooks/core/core-context.d.ts +15 -0
- package/lib/typescript/utils/hooks/core/core-init.d.ts +12 -0
- package/lib/typescript/utils/hooks/core/credential-schemas.d.ts +11 -0
- package/lib/typescript/utils/hooks/core/credentials.d.ts +22 -0
- package/lib/typescript/utils/hooks/core/dids.d.ts +3 -0
- package/lib/typescript/utils/hooks/core/error-code.d.ts +6 -0
- package/lib/typescript/utils/hooks/core/history.d.ts +3 -0
- package/lib/typescript/utils/hooks/core/index.d.ts +13 -0
- package/lib/typescript/utils/hooks/core/proof-schemas.d.ts +14 -0
- package/lib/typescript/utils/hooks/core/proofs.d.ts +43 -0
- package/lib/typescript/utils/hooks/core/query.d.ts +2 -0
- package/lib/typescript/utils/hooks/core/trust-entity.d.ts +11 -0
- package/lib/typescript/utils/hooks/credential-card/credential-card-expanding.d.ts +10 -0
- package/lib/typescript/utils/hooks/http/client.d.ts +2 -0
- package/lib/typescript/utils/hooks/index.d.ts +8 -4
- package/lib/typescript/utils/hooks/navigation/before-remove.d.ts +1 -0
- package/lib/typescript/utils/hooks/navigation/close-button-timeout.d.ts +3 -0
- package/lib/typescript/utils/hooks/navigation/deep-link.d.ts +2 -0
- package/lib/typescript/utils/hooks/navigation/index.d.ts +4 -0
- package/lib/typescript/utils/hooks/navigation/open-settings.d.ts +6 -0
- package/lib/typescript/utils/hooks/pin-security/pin-security.d.ts +6 -0
- package/lib/typescript/utils/hooks/revocation/credential-status.d.ts +8 -0
- package/lib/typescript/utils/index.d.ts +14 -5
- package/lib/typescript/utils/parsers/credential-images.d.ts +3 -0
- package/lib/typescript/utils/parsers/credential-sharing.d.ts +16 -0
- package/lib/typescript/utils/parsers/credential.d.ts +76 -0
- package/lib/typescript/utils/parsers/index.d.ts +5 -0
- package/lib/typescript/utils/parsers/query.d.ts +7 -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/lib/typescript/utils/reporting.d.ts +4 -0
- package/lib/typescript/utils/string.d.ts +4 -0
- package/lib/typescript/utils/uuid.d.ts +6 -0
- package/package.json +86 -45
- package/src/components/backup/index.ts +1 -0
- package/src/components/backup/preview-credentials.tsx +38 -0
- package/src/components/credential/credential.tsx +72 -0
- package/src/components/credential/index.ts +1 -0
- package/src/components/entity/EntityButtons.tsx +79 -0
- package/src/components/entity/entity-attributes.tsx +63 -0
- package/src/components/entity/entity-details-with-buttons.tsx +99 -0
- package/src/components/entity/entity-details.tsx +85 -0
- package/src/components/entity/index.ts +3 -0
- package/src/components/history/history-details-screen.tsx +89 -0
- package/src/components/history/history-list-item-icon.tsx +108 -0
- package/src/components/history/history-list-item.tsx +53 -0
- package/src/components/history/history-list-screen.tsx +154 -0
- package/src/components/history/history-list-section-header.tsx +42 -0
- package/src/components/history/history-list.tsx +116 -0
- package/src/components/history/index.tsx +6 -0
- package/src/components/index.ts +6 -0
- package/src/components/navigation/header-buttons.tsx +64 -0
- package/src/components/navigation/index.ts +1 -0
- package/src/components/proof-request/group.tsx +26 -0
- package/src/components/proof-request/index.ts +3 -0
- package/src/components/proof-request/select-credential.tsx +48 -0
- package/src/components/proof-request/share-credential.tsx +194 -0
- package/src/index.ts +2 -25
- package/src/ui-components/accessibility/accessibility.ts +215 -0
- package/src/ui-components/accessibility/accessibilityHistory.tsx +77 -0
- package/src/ui-components/accessibility/accessibilityHistoryWrappers.tsx +78 -0
- package/src/ui-components/accessibility/index.ts +36 -0
- package/src/ui-components/action-modal/ActionModal.stories.tsx +39 -0
- package/src/ui-components/activity-indicator/activity-indicator.stories.tsx +18 -0
- package/src/ui-components/blur/blur-view.tsx +82 -0
- package/src/ui-components/buttons/back-button.stories.tsx +30 -0
- package/src/ui-components/buttons/back-button.tsx +30 -0
- package/src/ui-components/buttons/button.stories.tsx +28 -0
- package/src/ui-components/buttons/button.tsx +169 -0
- package/src/ui-components/buttons/connectivity-button.stories.tsx +33 -0
- package/src/ui-components/buttons/connectivity-button.tsx +95 -0
- package/src/ui-components/buttons/ghost-button.stories.tsx +28 -0
- 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 +34 -0
- package/src/ui-components/buttons/scan-button.stories.tsx +30 -0
- package/src/ui-components/control/checkbox.stories.tsx +27 -0
- package/src/ui-components/control/switch.stories.tsx +32 -0
- package/src/ui-components/credential/card/credential-card.stories.tsx +51 -0
- package/src/ui-components/credential/card/credential-card.tsx +189 -0
- package/src/ui-components/credential/card/credential-details-card.stories.tsx +303 -0
- package/src/ui-components/credential/card/credential-details-card.tsx +242 -0
- package/src/ui-components/credential/card/credential-details-list-item.tsx +97 -0
- package/src/ui-components/credential/card/credential-header.stories.tsx +48 -0
- package/src/ui-components/credential/card/credential-header.tsx +199 -0
- package/src/ui-components/credential/card/credential-image-carousel.tsx +117 -0
- package/src/ui-components/credential/card/index.ts +22 -0
- package/src/ui-components/credential/credential-attribute-item.tsx +373 -0
- package/src/ui-components/credential/index.ts +14 -0
- package/src/ui-components/credential/selector.stories.tsx +37 -0
- package/src/ui-components/credential/selector.tsx +64 -0
- package/src/ui-components/detail/detail.stories.tsx +68 -0
- package/src/ui-components/detail/detail.tsx +98 -0
- package/src/ui-components/entity/avatar.stories.tsx +42 -0
- package/src/ui-components/entity/avatar.tsx +100 -0
- package/src/ui-components/entity/entity-cluster.stories.tsx +45 -0
- package/src/ui-components/entity/entity-cluster.tsx +82 -0
- package/src/ui-components/header/header.stories.tsx +62 -0
- package/src/ui-components/header/header.tsx +105 -0
- package/src/ui-components/header/index.ts +12 -0
- package/src/ui-components/header/navigation-header.stories.tsx +59 -0
- package/src/ui-components/header/navigation-header.tsx +147 -0
- package/src/ui-components/history/data-item.tsx +88 -0
- package/src/ui-components/history/history-details.tsx +247 -0
- package/src/ui-components/history/history-item.tsx +141 -0
- package/src/ui-components/history/history-section-header.tsx +44 -0
- package/src/ui-components/history/history-section-list-item.tsx +41 -0
- package/src/ui-components/history/index.ts +10 -0
- package/src/ui-components/icons/entity.tsx +31 -0
- package/src/ui-components/icons/history.tsx +329 -0
- package/src/ui-components/image/index.tsx +4 -0
- package/src/ui-components/index.ts +25 -0
- package/src/ui-components/input/radio-group.stories.tsx +34 -0
- package/src/ui-components/input/radio-group.tsx +116 -0
- package/src/ui-components/input/selection-input.stories.tsx +49 -0
- package/src/ui-components/input/selection-input.tsx +112 -0
- package/src/ui-components/input/text-input.tsx +253 -0
- package/src/ui-components/list/index.ts +6 -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 +28 -0
- package/src/ui-components/loader/loader.tsx +174 -0
- package/src/ui-components/loader/loading-result.stories.tsx +70 -0
- package/src/ui-components/loader/loading-result.tsx +97 -0
- package/src/ui-components/nerd-view/index.ts +4 -0
- package/src/ui-components/nerd-view/nerd-mode-item.tsx +299 -0
- package/src/ui-components/pin/index.ts +5 -0
- package/src/ui-components/pin/keypad.tsx +166 -0
- package/src/ui-components/pin/pin-code-screen.stories.tsx +87 -0
- package/src/ui-components/pin/pin-code-screen.tsx +195 -0
- package/src/ui-components/pin/pin-lock-animation.tsx +500 -0
- package/src/ui-components/pin/pin-lock.tsx +82 -0
- package/src/ui-components/screens/backup-screen.tsx +92 -0
- package/src/ui-components/screens/image-preview-screen.stories.tsx +31 -0
- package/src/ui-components/screens/image-preview-screen.tsx +82 -0
- package/src/ui-components/screens/index.ts +19 -0
- package/src/ui-components/screens/nerd-mode-screen.tsx +214 -0
- package/src/ui-components/screens/qr-code-scanner-screen.stories.tsx +40 -0
- package/src/ui-components/screens/qr-code-scanner-screen.tsx +124 -0
- package/src/ui-components/screens/scroll-view-screen.tsx +91 -0
- package/src/ui-components/screens/section-list-screen.tsx +61 -0
- package/src/ui-components/searchbar/search-bar.stories.tsx +38 -0
- package/src/ui-components/searchbar/search-bar.tsx +94 -0
- package/src/ui-components/state/error-screen.stories.tsx +21 -0
- package/src/ui-components/state/error-screen.tsx +71 -0
- package/src/ui-components/text/index.ts +4 -0
- package/src/ui-components/text/typography.stories.tsx +77 -0
- package/src/ui-components/theme/color-scheme-context.tsx +49 -0
- package/src/ui-components/theme/color-scheme.ts +32 -0
- package/src/utils/array.ts +3 -0
- package/src/utils/backup.ts +5 -0
- package/src/utils/date.ts +106 -2
- package/src/utils/filtering.ts +5 -0
- package/src/utils/history.ts +71 -0
- package/src/utils/hooks/connectivity/connectivity.test.ts +95 -0
- package/src/utils/hooks/connectivity/connectivity.ts +186 -0
- package/src/utils/hooks/core/backup.ts +144 -0
- package/src/utils/hooks/core/cache.ts +43 -0
- package/src/utils/hooks/core/core-config.ts +32 -0
- package/src/utils/hooks/core/core-context.tsx +114 -0
- package/src/utils/hooks/core/core-init.ts +106 -0
- package/src/utils/hooks/core/credential-schemas.ts +110 -0
- package/src/utils/hooks/core/credentials.ts +166 -0
- package/src/utils/hooks/core/dids.ts +28 -0
- package/src/utils/hooks/core/error-code.ts +6 -0
- package/src/utils/hooks/core/history.ts +30 -0
- package/src/utils/hooks/core/index.ts +13 -0
- package/src/utils/hooks/core/proof-schemas.ts +130 -0
- package/src/utils/hooks/core/proofs.ts +409 -0
- package/src/utils/hooks/core/query.ts +19 -0
- package/src/utils/hooks/core/trust-entity.ts +113 -0
- package/src/utils/hooks/credential-card/credential-card-expanding.tsx +45 -0
- package/src/utils/hooks/http/client.ts +13 -0
- package/src/utils/hooks/index.ts +8 -5
- package/src/utils/hooks/navigation/before-remove.tsx +22 -0
- package/src/utils/hooks/navigation/close-button-timeout.tsx +29 -0
- package/src/utils/hooks/navigation/deep-link.ts +40 -0
- package/src/utils/hooks/navigation/index.ts +4 -0
- package/src/utils/hooks/navigation/open-settings.ts +39 -0
- package/src/utils/hooks/pin-security/pin-security.ts +99 -0
- package/src/utils/hooks/revocation/credential-status.ts +45 -0
- package/src/utils/index.ts +14 -14
- package/src/utils/navigation.ts +4 -2
- package/src/utils/parsers/credential-images.tsx +78 -0
- package/src/utils/parsers/credential-sharing.tsx +366 -0
- package/src/utils/parsers/credential.ts +365 -0
- package/src/utils/parsers/index.ts +5 -0
- package/src/utils/parsers/query.tsx +82 -0
- package/src/utils/parsers/universal-links.test.ts +57 -0
- package/src/utils/parsers/universal-links.ts +26 -0
- package/src/utils/ref.ts +1 -1
- package/src/utils/reporting.ts +85 -0
- package/src/utils/string.ts +17 -0
- package/src/utils/useMemoAsync.ts +1 -1
- package/src/utils/uuid.ts +8 -0
- package/lib/commonjs/accessibility/accessibility.js +0 -193
- package/lib/commonjs/accessibility/accessibility.js.map +0 -1
- package/lib/commonjs/accessibility/accessibilityHistory.js +0 -81
- package/lib/commonjs/accessibility/accessibilityHistory.js.map +0 -1
- package/lib/commonjs/accessibility/accessibilityHistoryWrappers.js +0 -49
- package/lib/commonjs/accessibility/accessibilityHistoryWrappers.js.map +0 -1
- package/lib/commonjs/accessibility/accessibilityLanguage.js +0 -63
- package/lib/commonjs/accessibility/accessibilityLanguage.js.map +0 -1
- package/lib/commonjs/accessibility/index.js +0 -129
- package/lib/commonjs/accessibility/index.js.map +0 -1
- package/lib/commonjs/accessibility/locale/index.js +0 -21
- package/lib/commonjs/accessibility/locale/index.js.map +0 -1
- package/lib/commonjs/accessibility/locale.test.js.map +0 -1
- package/lib/commonjs/action-modal/ActionModal.js +0 -52
- package/lib/commonjs/action-modal/ActionModal.js.map +0 -1
- package/lib/commonjs/action-modal/index.js +0 -14
- package/lib/commonjs/action-modal/index.js.map +0 -1
- package/lib/commonjs/activity-indicator/activity-indicator.js +0 -34
- package/lib/commonjs/activity-indicator/activity-indicator.js.map +0 -1
- package/lib/commonjs/activity-indicator/index.js +0 -14
- package/lib/commonjs/activity-indicator/index.js.map +0 -1
- package/lib/commonjs/blur/blur-view.js +0 -76
- package/lib/commonjs/blur/blur-view.js.map +0 -1
- package/lib/commonjs/blur/index.js +0 -21
- package/lib/commonjs/blur/index.js.map +0 -1
- package/lib/commonjs/buttons/back-button.js +0 -37
- package/lib/commonjs/buttons/back-button.js.map +0 -1
- package/lib/commonjs/buttons/button.js +0 -153
- package/lib/commonjs/buttons/button.js.map +0 -1
- package/lib/commonjs/buttons/connectivity-button.js +0 -82
- package/lib/commonjs/buttons/connectivity-button.js.map +0 -1
- package/lib/commonjs/buttons/filter-button.js +0 -51
- package/lib/commonjs/buttons/filter-button.js.map +0 -1
- package/lib/commonjs/buttons/ghost-button.js +0 -62
- package/lib/commonjs/buttons/ghost-button.js.map +0 -1
- package/lib/commonjs/buttons/index.js +0 -104
- package/lib/commonjs/buttons/index.js.map +0 -1
- package/lib/commonjs/buttons/scan-button.js +0 -83
- package/lib/commonjs/buttons/scan-button.js.map +0 -1
- package/lib/commonjs/camera/camera-overlay.js +0 -61
- package/lib/commonjs/camera/camera-overlay.js.map +0 -1
- package/lib/commonjs/camera/index.js +0 -21
- package/lib/commonjs/camera/index.js.map +0 -1
- package/lib/commonjs/camera/qr-code-scanner.js +0 -50
- package/lib/commonjs/camera/qr-code-scanner.js.map +0 -1
- package/lib/commonjs/control/checkbox.js +0 -79
- package/lib/commonjs/control/checkbox.js.map +0 -1
- package/lib/commonjs/control/index.js.map +0 -1
- package/lib/commonjs/control/switch.js +0 -65
- package/lib/commonjs/control/switch.js.map +0 -1
- package/lib/commonjs/credential/card/credential-card.js +0 -189
- package/lib/commonjs/credential/card/credential-card.js.map +0 -1
- package/lib/commonjs/credential/card/credential-details-card.js +0 -201
- package/lib/commonjs/credential/card/credential-details-card.js.map +0 -1
- package/lib/commonjs/credential/card/credential-details-list-item.js +0 -84
- package/lib/commonjs/credential/card/credential-details-list-item.js.map +0 -1
- package/lib/commonjs/credential/card/credential-header.js +0 -172
- package/lib/commonjs/credential/card/credential-header.js.map +0 -1
- package/lib/commonjs/credential/card/credential-image-carousel.js +0 -124
- package/lib/commonjs/credential/card/credential-image-carousel.js.map +0 -1
- package/lib/commonjs/credential/card/index.js +0 -85
- package/lib/commonjs/credential/card/index.js.map +0 -1
- package/lib/commonjs/credential/credential-attribute-item.js +0 -289
- package/lib/commonjs/credential/credential-attribute-item.js.map +0 -1
- package/lib/commonjs/credential/credential-carousel-images.js +0 -98
- package/lib/commonjs/credential/credential-carousel-images.js.map +0 -1
- package/lib/commonjs/credential/index.js +0 -90
- package/lib/commonjs/credential/index.js.map +0 -1
- package/lib/commonjs/credential/selector-status.js +0 -17
- package/lib/commonjs/credential/selector-status.js.map +0 -1
- package/lib/commonjs/credential/selector.js +0 -79
- package/lib/commonjs/credential/selector.js.map +0 -1
- package/lib/commonjs/detail/detail.js +0 -84
- package/lib/commonjs/detail/detail.js.map +0 -1
- package/lib/commonjs/detail/index.js +0 -14
- package/lib/commonjs/detail/index.js.map +0 -1
- package/lib/commonjs/entity/avatar.js +0 -96
- package/lib/commonjs/entity/avatar.js.map +0 -1
- package/lib/commonjs/entity/entity-cluster.js +0 -66
- package/lib/commonjs/entity/entity-cluster.js.map +0 -1
- package/lib/commonjs/entity/index.js +0 -34
- package/lib/commonjs/entity/index.js.map +0 -1
- package/lib/commonjs/header/focus-aware-status-bar.js +0 -20
- package/lib/commonjs/header/focus-aware-status-bar.js.map +0 -1
- package/lib/commonjs/header/foldable-header.js +0 -89
- package/lib/commonjs/header/foldable-header.js.map +0 -1
- package/lib/commonjs/header/header.js +0 -105
- package/lib/commonjs/header/header.js.map +0 -1
- package/lib/commonjs/header/index.js +0 -55
- package/lib/commonjs/header/index.js.map +0 -1
- package/lib/commonjs/header/navigation-header.js +0 -148
- package/lib/commonjs/header/navigation-header.js.map +0 -1
- package/lib/commonjs/history/data-item.js +0 -70
- package/lib/commonjs/history/data-item.js.map +0 -1
- package/lib/commonjs/history/history-list-item.js +0 -90
- package/lib/commonjs/history/history-list-item.js.map +0 -1
- package/lib/commonjs/history/history-section-header.js +0 -49
- package/lib/commonjs/history/history-section-header.js.map +0 -1
- package/lib/commonjs/history/history-section-list-item.js +0 -47
- package/lib/commonjs/history/history-section-list-item.js.map +0 -1
- package/lib/commonjs/history/index.js +0 -55
- package/lib/commonjs/history/index.js.map +0 -1
- package/lib/commonjs/icons/connectivity.js +0 -139
- package/lib/commonjs/icons/connectivity.js.map +0 -1
- package/lib/commonjs/icons/credential.js +0 -162
- package/lib/commonjs/icons/credential.js.map +0 -1
- package/lib/commonjs/icons/entity.js +0 -34
- package/lib/commonjs/icons/entity.js.map +0 -1
- package/lib/commonjs/icons/history.js +0 -408
- package/lib/commonjs/icons/history.js.map +0 -1
- package/lib/commonjs/icons/icons.js +0 -250
- package/lib/commonjs/icons/icons.js.map +0 -1
- package/lib/commonjs/icons/index.js.map +0 -1
- package/lib/commonjs/icons/input.js +0 -44
- package/lib/commonjs/icons/input.js.map +0 -1
- package/lib/commonjs/icons/keypad.js +0 -94
- package/lib/commonjs/icons/keypad.js.map +0 -1
- package/lib/commonjs/icons/loader.js +0 -180
- package/lib/commonjs/icons/loader.js.map +0 -1
- package/lib/commonjs/icons/nerd-view.js +0 -123
- package/lib/commonjs/icons/nerd-view.js.map +0 -1
- package/lib/commonjs/icons/selector.js +0 -56
- package/lib/commonjs/icons/selector.js.map +0 -1
- package/lib/commonjs/icons/wallet.js +0 -121
- package/lib/commonjs/icons/wallet.js.map +0 -1
- package/lib/commonjs/image/image-or-component.js +0 -80
- package/lib/commonjs/image/image-or-component.js.map +0 -1
- package/lib/commonjs/image/index.js +0 -21
- package/lib/commonjs/image/index.js.map +0 -1
- package/lib/commonjs/input/index.js +0 -65
- package/lib/commonjs/input/index.js.map +0 -1
- package/lib/commonjs/input/radio-group.js +0 -95
- package/lib/commonjs/input/radio-group.js.map +0 -1
- package/lib/commonjs/input/selection-input.js +0 -102
- package/lib/commonjs/input/selection-input.js.map +0 -1
- package/lib/commonjs/input/text-input.js +0 -195
- package/lib/commonjs/input/text-input.js.map +0 -1
- package/lib/commonjs/list/index.js +0 -34
- package/lib/commonjs/list/index.js.map +0 -1
- package/lib/commonjs/list/list-section-header.js +0 -36
- package/lib/commonjs/list/list-section-header.js.map +0 -1
- package/lib/commonjs/list/list-title-header.js +0 -35
- package/lib/commonjs/list/list-title-header.js.map +0 -1
- package/lib/commonjs/loader/index.js +0 -40
- package/lib/commonjs/loader/index.js.map +0 -1
- package/lib/commonjs/loader/loader.js +0 -140
- package/lib/commonjs/loader/loader.js.map +0 -1
- package/lib/commonjs/loader/loading-result.js +0 -92
- package/lib/commonjs/loader/loading-result.js.map +0 -1
- package/lib/commonjs/nerd-view/index.js +0 -27
- package/lib/commonjs/nerd-view/index.js.map +0 -1
- package/lib/commonjs/nerd-view/nerd-mode-item.js +0 -235
- package/lib/commonjs/nerd-view/nerd-mode-item.js.map +0 -1
- package/lib/commonjs/pin/index.js +0 -32
- package/lib/commonjs/pin/index.js.map +0 -1
- package/lib/commonjs/pin/keypad.js +0 -201
- package/lib/commonjs/pin/keypad.js.map +0 -1
- package/lib/commonjs/pin/pin-code-screen.js +0 -162
- package/lib/commonjs/pin/pin-code-screen.js.map +0 -1
- package/lib/commonjs/pin/pins.js +0 -54
- package/lib/commonjs/pin/pins.js.map +0 -1
- package/lib/commonjs/screens/backup-screen.js +0 -87
- package/lib/commonjs/screens/backup-screen.js.map +0 -1
- package/lib/commonjs/screens/image-preview-screen.js +0 -92
- package/lib/commonjs/screens/image-preview-screen.js.map +0 -1
- package/lib/commonjs/screens/index.js +0 -98
- package/lib/commonjs/screens/index.js.map +0 -1
- package/lib/commonjs/screens/nerd-mode-screen.js +0 -142
- package/lib/commonjs/screens/nerd-mode-screen.js.map +0 -1
- package/lib/commonjs/screens/qr-code-scanner-screen.js +0 -120
- package/lib/commonjs/screens/qr-code-scanner-screen.js.map +0 -1
- package/lib/commonjs/screens/scroll-view-screen.js +0 -94
- package/lib/commonjs/screens/scroll-view-screen.js.map +0 -1
- package/lib/commonjs/screens/section-list-screen.js +0 -67
- package/lib/commonjs/screens/section-list-screen.js.map +0 -1
- package/lib/commonjs/searchbar/animated-search-bar.js +0 -88
- package/lib/commonjs/searchbar/animated-search-bar.js.map +0 -1
- package/lib/commonjs/searchbar/index.js +0 -34
- package/lib/commonjs/searchbar/index.js.map +0 -1
- package/lib/commonjs/searchbar/search-bar.js +0 -99
- package/lib/commonjs/searchbar/search-bar.js.map +0 -1
- package/lib/commonjs/settings/button-setting.js +0 -67
- package/lib/commonjs/settings/button-setting.js.map +0 -1
- package/lib/commonjs/settings/index.js +0 -73
- package/lib/commonjs/settings/index.js.map +0 -1
- package/lib/commonjs/settings/setting-item-separator.js +0 -40
- package/lib/commonjs/settings/setting-item-separator.js.map +0 -1
- package/lib/commonjs/settings/setting-item.js +0 -79
- package/lib/commonjs/settings/setting-item.js.map +0 -1
- package/lib/commonjs/settings/settings-button.js +0 -35
- package/lib/commonjs/settings/settings-button.js.map +0 -1
- package/lib/commonjs/settings/switch-setting.js +0 -35
- package/lib/commonjs/settings/switch-setting.js.map +0 -1
- package/lib/commonjs/state/error-screen.js +0 -71
- package/lib/commonjs/state/error-screen.js.map +0 -1
- package/lib/commonjs/state/index.js +0 -27
- package/lib/commonjs/state/index.js.map +0 -1
- package/lib/commonjs/text/base.js +0 -40
- package/lib/commonjs/text/base.js.map +0 -1
- package/lib/commonjs/text/font.js +0 -64
- package/lib/commonjs/text/font.js.map +0 -1
- package/lib/commonjs/text/index.js +0 -21
- package/lib/commonjs/text/index.js.map +0 -1
- package/lib/commonjs/text/typography.js +0 -119
- package/lib/commonjs/text/typography.js.map +0 -1
- package/lib/commonjs/theme/color-scheme-context.js +0 -52
- package/lib/commonjs/theme/color-scheme-context.js.map +0 -1
- package/lib/commonjs/theme/color-scheme.js.map +0 -1
- package/lib/commonjs/theme/index.js.map +0 -1
- package/lib/module/accessibility/accessibility.js +0 -185
- package/lib/module/accessibility/accessibility.js.map +0 -1
- package/lib/module/accessibility/accessibilityHistory.js +0 -71
- package/lib/module/accessibility/accessibilityHistory.js.map +0 -1
- package/lib/module/accessibility/accessibilityHistoryWrappers.js +0 -38
- package/lib/module/accessibility/accessibilityHistoryWrappers.js.map +0 -1
- package/lib/module/accessibility/accessibilityLanguage.js +0 -53
- package/lib/module/accessibility/accessibilityLanguage.js.map +0 -1
- package/lib/module/accessibility/index.js +0 -8
- package/lib/module/accessibility/index.js.map +0 -1
- package/lib/module/accessibility/locale/index.js.map +0 -1
- package/lib/module/accessibility/locale.test.js.map +0 -1
- package/lib/module/action-modal/ActionModal.js +0 -44
- package/lib/module/action-modal/ActionModal.js.map +0 -1
- package/lib/module/action-modal/index.js.map +0 -1
- package/lib/module/activity-indicator/activity-indicator.js +0 -24
- package/lib/module/activity-indicator/activity-indicator.js.map +0 -1
- package/lib/module/activity-indicator/index.js.map +0 -1
- package/lib/module/blur/blur-view.js +0 -67
- package/lib/module/blur/blur-view.js.map +0 -1
- package/lib/module/blur/index.js.map +0 -1
- package/lib/module/buttons/back-button.js +0 -28
- package/lib/module/buttons/back-button.js.map +0 -1
- package/lib/module/buttons/button.js +0 -143
- package/lib/module/buttons/button.js.map +0 -1
- package/lib/module/buttons/connectivity-button.js +0 -73
- package/lib/module/buttons/connectivity-button.js.map +0 -1
- package/lib/module/buttons/filter-button.js +0 -43
- package/lib/module/buttons/filter-button.js.map +0 -1
- package/lib/module/buttons/ghost-button.js +0 -53
- package/lib/module/buttons/ghost-button.js.map +0 -1
- package/lib/module/buttons/index.js +0 -8
- package/lib/module/buttons/index.js.map +0 -1
- package/lib/module/buttons/scan-button.js +0 -75
- package/lib/module/buttons/scan-button.js.map +0 -1
- package/lib/module/camera/camera-overlay.js +0 -51
- package/lib/module/camera/camera-overlay.js.map +0 -1
- package/lib/module/camera/index.js.map +0 -1
- package/lib/module/camera/qr-code-scanner.js +0 -40
- package/lib/module/camera/qr-code-scanner.js.map +0 -1
- package/lib/module/control/checkbox.js +0 -70
- package/lib/module/control/checkbox.js.map +0 -1
- package/lib/module/control/index.js.map +0 -1
- package/lib/module/control/switch.js +0 -56
- package/lib/module/control/switch.js.map +0 -1
- package/lib/module/credential/card/credential-card.js +0 -177
- package/lib/module/credential/card/credential-card.js.map +0 -1
- package/lib/module/credential/card/credential-details-card.js +0 -191
- package/lib/module/credential/card/credential-details-card.js.map +0 -1
- package/lib/module/credential/card/credential-details-list-item.js +0 -74
- package/lib/module/credential/card/credential-details-list-item.js.map +0 -1
- package/lib/module/credential/card/credential-header.js +0 -162
- package/lib/module/credential/card/credential-header.js.map +0 -1
- package/lib/module/credential/card/credential-image-carousel.js +0 -113
- package/lib/module/credential/card/credential-image-carousel.js.map +0 -1
- package/lib/module/credential/card/index.js +0 -11
- package/lib/module/credential/card/index.js.map +0 -1
- package/lib/module/credential/credential-attribute-item.js +0 -279
- package/lib/module/credential/credential-attribute-item.js.map +0 -1
- package/lib/module/credential/credential-carousel-images.js +0 -86
- package/lib/module/credential/credential-carousel-images.js.map +0 -1
- package/lib/module/credential/index.js +0 -9
- package/lib/module/credential/index.js.map +0 -1
- package/lib/module/credential/selector-status.js +0 -10
- package/lib/module/credential/selector-status.js.map +0 -1
- package/lib/module/credential/selector.js +0 -70
- package/lib/module/credential/selector.js.map +0 -1
- package/lib/module/detail/detail.js +0 -75
- package/lib/module/detail/detail.js.map +0 -1
- package/lib/module/detail/index.js.map +0 -1
- package/lib/module/entity/avatar.js +0 -86
- package/lib/module/entity/avatar.js.map +0 -1
- package/lib/module/entity/entity-cluster.js +0 -56
- package/lib/module/entity/entity-cluster.js.map +0 -1
- package/lib/module/entity/index.js.map +0 -1
- package/lib/module/header/focus-aware-status-bar.js +0 -12
- package/lib/module/header/focus-aware-status-bar.js.map +0 -1
- package/lib/module/header/foldable-header.js +0 -79
- package/lib/module/header/foldable-header.js.map +0 -1
- package/lib/module/header/header.js +0 -97
- package/lib/module/header/header.js.map +0 -1
- package/lib/module/header/index.js +0 -9
- package/lib/module/header/index.js.map +0 -1
- package/lib/module/header/navigation-header.js +0 -138
- package/lib/module/header/navigation-header.js.map +0 -1
- package/lib/module/history/data-item.js +0 -60
- package/lib/module/history/data-item.js.map +0 -1
- package/lib/module/history/history-list-item.js +0 -80
- package/lib/module/history/history-list-item.js.map +0 -1
- package/lib/module/history/history-section-header.js +0 -42
- package/lib/module/history/history-section-header.js.map +0 -1
- package/lib/module/history/history-section-list-item.js +0 -43
- package/lib/module/history/history-section-list-item.js.map +0 -1
- package/lib/module/history/index.js +0 -9
- package/lib/module/history/index.js.map +0 -1
- package/lib/module/icons/connectivity.js +0 -125
- package/lib/module/icons/connectivity.js.map +0 -1
- package/lib/module/icons/credential.js +0 -147
- package/lib/module/icons/credential.js.map +0 -1
- package/lib/module/icons/entity.js +0 -25
- package/lib/module/icons/entity.js.map +0 -1
- package/lib/module/icons/history.js +0 -391
- package/lib/module/icons/history.js.map +0 -1
- package/lib/module/icons/icons.js +0 -231
- package/lib/module/icons/icons.js.map +0 -1
- package/lib/module/icons/index.js.map +0 -1
- package/lib/module/icons/input.js.map +0 -1
- package/lib/module/icons/keypad.js +0 -81
- package/lib/module/icons/keypad.js.map +0 -1
- package/lib/module/icons/loader.js +0 -168
- package/lib/module/icons/loader.js.map +0 -1
- package/lib/module/icons/nerd-view.js.map +0 -1
- package/lib/module/icons/selector.js +0 -45
- package/lib/module/icons/selector.js.map +0 -1
- package/lib/module/icons/wallet.js +0 -111
- package/lib/module/icons/wallet.js.map +0 -1
- package/lib/module/image/image-or-component.js +0 -71
- package/lib/module/image/image-or-component.js.map +0 -1
- package/lib/module/image/index.js +0 -3
- package/lib/module/image/index.js.map +0 -1
- package/lib/module/input/index.js.map +0 -1
- package/lib/module/input/radio-group.js +0 -87
- package/lib/module/input/radio-group.js.map +0 -1
- package/lib/module/input/selection-input.js +0 -92
- package/lib/module/input/selection-input.js.map +0 -1
- package/lib/module/input/text-input.js +0 -185
- package/lib/module/input/text-input.js.map +0 -1
- package/lib/module/list/index.js +0 -5
- package/lib/module/list/index.js.map +0 -1
- package/lib/module/list/list-section-header.js +0 -28
- package/lib/module/list/list-section-header.js.map +0 -1
- package/lib/module/list/list-title-header.js +0 -27
- package/lib/module/list/list-title-header.js.map +0 -1
- package/lib/module/loader/index.js.map +0 -1
- package/lib/module/loader/loader.js +0 -130
- package/lib/module/loader/loader.js.map +0 -1
- package/lib/module/loader/loading-result.js +0 -84
- package/lib/module/loader/loading-result.js.map +0 -1
- package/lib/module/nerd-view/index.js +0 -3
- package/lib/module/nerd-view/index.js.map +0 -1
- package/lib/module/nerd-view/nerd-mode-item.js +0 -224
- package/lib/module/nerd-view/nerd-mode-item.js.map +0 -1
- package/lib/module/pin/index.js +0 -4
- package/lib/module/pin/index.js.map +0 -1
- package/lib/module/pin/keypad.js +0 -191
- package/lib/module/pin/keypad.js.map +0 -1
- package/lib/module/pin/pin-code-screen.js +0 -152
- package/lib/module/pin/pin-code-screen.js.map +0 -1
- package/lib/module/pin/pins.js +0 -46
- package/lib/module/pin/pins.js.map +0 -1
- package/lib/module/screens/backup-screen.js +0 -78
- package/lib/module/screens/backup-screen.js.map +0 -1
- package/lib/module/screens/image-preview-screen.js +0 -83
- package/lib/module/screens/image-preview-screen.js.map +0 -1
- package/lib/module/screens/index.js +0 -13
- package/lib/module/screens/index.js.map +0 -1
- package/lib/module/screens/nerd-mode-screen.js +0 -132
- package/lib/module/screens/nerd-mode-screen.js.map +0 -1
- package/lib/module/screens/qr-code-scanner-screen.js +0 -110
- package/lib/module/screens/qr-code-scanner-screen.js.map +0 -1
- package/lib/module/screens/scroll-view-screen.js +0 -86
- package/lib/module/screens/scroll-view-screen.js.map +0 -1
- package/lib/module/screens/section-list-screen.js +0 -59
- package/lib/module/screens/section-list-screen.js.map +0 -1
- package/lib/module/searchbar/animated-search-bar.js +0 -78
- package/lib/module/searchbar/animated-search-bar.js.map +0 -1
- package/lib/module/searchbar/index.js.map +0 -1
- package/lib/module/searchbar/search-bar.js +0 -89
- package/lib/module/searchbar/search-bar.js.map +0 -1
- package/lib/module/settings/button-setting.js +0 -57
- package/lib/module/settings/button-setting.js.map +0 -1
- package/lib/module/settings/index.js.map +0 -1
- package/lib/module/settings/setting-item-separator.js +0 -32
- package/lib/module/settings/setting-item-separator.js.map +0 -1
- package/lib/module/settings/setting-item.js +0 -69
- package/lib/module/settings/setting-item.js.map +0 -1
- package/lib/module/settings/settings-button.js +0 -27
- package/lib/module/settings/settings-button.js.map +0 -1
- package/lib/module/settings/switch-setting.js +0 -27
- package/lib/module/settings/switch-setting.js.map +0 -1
- package/lib/module/state/error-screen.js +0 -63
- package/lib/module/state/error-screen.js.map +0 -1
- package/lib/module/state/index.js.map +0 -1
- package/lib/module/text/base.js +0 -31
- package/lib/module/text/base.js.map +0 -1
- package/lib/module/text/font.js +0 -56
- package/lib/module/text/font.js.map +0 -1
- package/lib/module/text/index.js +0 -3
- package/lib/module/text/index.js.map +0 -1
- package/lib/module/text/typography.js +0 -111
- package/lib/module/text/typography.js.map +0 -1
- package/lib/module/theme/color-scheme-context.js +0 -44
- package/lib/module/theme/color-scheme-context.js.map +0 -1
- package/lib/module/theme/color-scheme.js.map +0 -1
- package/lib/module/theme/index.js.map +0 -1
- package/lib/typescript/accessibility/accessibility.d.ts +0 -55
- package/lib/typescript/accessibility/accessibilityHistory.d.ts +0 -13
- package/lib/typescript/accessibility/accessibilityHistoryWrappers.d.ts +0 -18
- package/lib/typescript/accessibility/index.d.ts +0 -6
- package/lib/typescript/buttons/back-button.d.ts +0 -9
- package/lib/typescript/buttons/button.d.ts +0 -22
- package/lib/typescript/buttons/index.d.ts +0 -7
- package/lib/typescript/buttons/scan-button.d.ts +0 -5
- package/lib/typescript/credential/card/credential-card.d.ts +0 -22
- package/lib/typescript/credential/card/credential-header.d.ts +0 -20
- package/lib/typescript/credential/card/index.d.ts +0 -10
- package/lib/typescript/credential/credential-attribute-item.d.ts +0 -48
- package/lib/typescript/credential/index.d.ts +0 -8
- package/lib/typescript/entity/avatar.d.ts +0 -10
- package/lib/typescript/entity/entity-cluster.d.ts +0 -12
- package/lib/typescript/header/index.d.ts +0 -8
- package/lib/typescript/history/data-item.d.ts +0 -12
- package/lib/typescript/history/history-list-item.d.ts +0 -14
- package/lib/typescript/history/history-section-header.d.ts +0 -7
- package/lib/typescript/history/history-section-list-item.d.ts +0 -7
- package/lib/typescript/history/index.d.ts +0 -8
- package/lib/typescript/icons/history.d.ts +0 -42
- package/lib/typescript/image/index.d.ts +0 -2
- package/lib/typescript/input/selection-input.d.ts +0 -32
- package/lib/typescript/list/index.d.ts +0 -4
- package/lib/typescript/nerd-view/index.d.ts +0 -2
- package/lib/typescript/pin/index.d.ts +0 -3
- package/lib/typescript/pin/keypad.d.ts +0 -16
- package/lib/typescript/screens/index.d.ts +0 -12
- package/lib/typescript/screens/nerd-mode-screen.d.ts +0 -22
- package/lib/typescript/text/index.d.ts +0 -2
- package/lib/typescript/text/typography.d.ts +0 -112
- package/lib/typescript/theme/color-scheme.d.ts +0 -31
- package/src/accessibility/accessibility.ts +0 -215
- package/src/accessibility/accessibilityHistory.tsx +0 -77
- package/src/accessibility/accessibilityHistoryWrappers.tsx +0 -80
- package/src/accessibility/index.ts +0 -35
- package/src/action-modal/ActionModal.stories.tsx +0 -35
- package/src/activity-indicator/activity-indicator.stories.tsx +0 -21
- package/src/blur/blur-view.tsx +0 -82
- package/src/buttons/back-button.stories.tsx +0 -31
- package/src/buttons/back-button.tsx +0 -31
- package/src/buttons/button.stories.tsx +0 -29
- package/src/buttons/button.tsx +0 -169
- package/src/buttons/connectivity-button.stories.tsx +0 -34
- package/src/buttons/connectivity-button.tsx +0 -95
- package/src/buttons/ghost-button.stories.tsx +0 -28
- package/src/buttons/index.ts +0 -24
- package/src/buttons/scan-button.stories.tsx +0 -26
- package/src/control/checkbox.stories.tsx +0 -27
- package/src/control/switch.stories.tsx +0 -29
- package/src/credential/card/credential-card.stories.tsx +0 -52
- package/src/credential/card/credential-card.tsx +0 -195
- package/src/credential/card/credential-details-card.stories.tsx +0 -268
- package/src/credential/card/credential-details-card.tsx +0 -242
- package/src/credential/card/credential-details-list-item.tsx +0 -87
- package/src/credential/card/credential-header.stories.tsx +0 -50
- package/src/credential/card/credential-header.tsx +0 -195
- package/src/credential/card/credential-image-carousel.tsx +0 -113
- package/src/credential/card/index.ts +0 -11
- package/src/credential/credential-attribute-item.tsx +0 -372
- package/src/credential/index.ts +0 -13
- package/src/credential/selector.stories.tsx +0 -37
- package/src/credential/selector.tsx +0 -64
- package/src/detail/detail.stories.tsx +0 -65
- package/src/detail/detail.tsx +0 -98
- package/src/entity/avatar.stories.tsx +0 -39
- package/src/entity/avatar.tsx +0 -87
- package/src/entity/entity-cluster.stories.tsx +0 -42
- package/src/entity/entity-cluster.tsx +0 -72
- package/src/header/header.stories.tsx +0 -59
- package/src/header/header.tsx +0 -105
- package/src/header/index.ts +0 -9
- package/src/header/navigation-header.stories.tsx +0 -56
- package/src/header/navigation-header.tsx +0 -147
- package/src/history/data-item.tsx +0 -79
- package/src/history/history-list-item.tsx +0 -102
- package/src/history/history-section-header.tsx +0 -44
- package/src/history/history-section-list-item.tsx +0 -41
- package/src/history/index.ts +0 -9
- package/src/icons/entity.tsx +0 -21
- package/src/icons/history.tsx +0 -378
- package/src/image/index.tsx +0 -3
- package/src/input/radio-group.tsx +0 -110
- package/src/input/selection-input.stories.tsx +0 -46
- package/src/input/selection-input.tsx +0 -112
- package/src/input/text-input.tsx +0 -253
- package/src/list/index.ts +0 -5
- package/src/loader/loader.stories.tsx +0 -31
- package/src/loader/loader.tsx +0 -169
- package/src/loader/loading-result.stories.tsx +0 -67
- package/src/loader/loading-result.tsx +0 -93
- package/src/nerd-view/index.ts +0 -3
- package/src/nerd-view/nerd-mode-item.tsx +0 -296
- package/src/pin/index.ts +0 -4
- package/src/pin/keypad.tsx +0 -166
- package/src/pin/pin-code-screen.stories.tsx +0 -80
- package/src/pin/pin-code-screen.tsx +0 -195
- package/src/screens/backup-screen.tsx +0 -92
- package/src/screens/image-preview-screen.stories.tsx +0 -28
- package/src/screens/image-preview-screen.tsx +0 -82
- package/src/screens/index.ts +0 -13
- package/src/screens/nerd-mode-screen.tsx +0 -150
- package/src/screens/qr-code-scanner-screen.stories.tsx +0 -37
- package/src/screens/qr-code-scanner-screen.tsx +0 -124
- package/src/screens/scroll-view-screen.tsx +0 -91
- package/src/screens/section-list-screen.tsx +0 -61
- package/src/searchbar/search-bar.stories.tsx +0 -31
- package/src/searchbar/search-bar.tsx +0 -94
- package/src/state/error-screen.stories.tsx +0 -22
- package/src/state/error-screen.tsx +0 -71
- package/src/text/index.ts +0 -3
- package/src/text/typography.stories.tsx +0 -70
- package/src/theme/color-scheme-context.tsx +0 -48
- package/src/theme/color-scheme.ts +0 -31
- /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/de.json +0 -0
- /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/en.json +0 -0
- /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/fr.json +0 -0
- /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/it.json +0 -0
- /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale.test.js +0 -0
- /package/lib/commonjs/{control → ui-components/control}/index.js +0 -0
- /package/lib/commonjs/{icons → ui-components/icons}/index.js +0 -0
- /package/lib/commonjs/{theme → ui-components/theme}/color-scheme.js +0 -0
- /package/lib/commonjs/{theme → ui-components/theme}/index.js +0 -0
- /package/lib/module/{accessibility → ui-components/accessibility}/locale/de.json +0 -0
- /package/lib/module/{accessibility → ui-components/accessibility}/locale/en.json +0 -0
- /package/lib/module/{accessibility → ui-components/accessibility}/locale/fr.json +0 -0
- /package/lib/module/{accessibility → ui-components/accessibility}/locale/index.js +0 -0
- /package/lib/module/{accessibility → ui-components/accessibility}/locale/it.json +0 -0
- /package/lib/module/{accessibility → ui-components/accessibility}/locale.test.js +0 -0
- /package/lib/module/{action-modal → ui-components/action-modal}/index.js +0 -0
- /package/lib/module/{activity-indicator → ui-components/activity-indicator}/index.js +0 -0
- /package/lib/module/{blur → ui-components/blur}/index.js +0 -0
- /package/lib/module/{camera → ui-components/camera}/index.js +0 -0
- /package/lib/module/{control → ui-components/control}/index.js +0 -0
- /package/lib/module/{detail → ui-components/detail}/index.js +0 -0
- /package/lib/module/{entity → ui-components/entity}/index.js +0 -0
- /package/lib/module/{icons → ui-components/icons}/index.js +0 -0
- /package/lib/module/{icons → ui-components/icons}/input.js +0 -0
- /package/lib/module/{icons → ui-components/icons}/nerd-view.js +0 -0
- /package/lib/module/{input → ui-components/input}/index.js +0 -0
- /package/lib/module/{loader → ui-components/loader}/index.js +0 -0
- /package/lib/module/{searchbar → ui-components/searchbar}/index.js +0 -0
- /package/lib/module/{settings → ui-components/settings}/index.js +0 -0
- /package/lib/module/{state → ui-components/state}/index.js +0 -0
- /package/lib/module/{theme → ui-components/theme}/color-scheme.js +0 -0
- /package/lib/module/{theme → ui-components/theme}/index.js +0 -0
- /package/lib/typescript/{accessibility → ui-components/accessibility}/accessibilityLanguage.d.ts +0 -0
- /package/lib/typescript/{accessibility → ui-components/accessibility}/locale/index.d.ts +0 -0
- /package/lib/typescript/{accessibility → ui-components/accessibility}/locale.test.d.ts +0 -0
- /package/lib/typescript/{action-modal → ui-components/action-modal}/ActionModal.d.ts +0 -0
- /package/lib/typescript/{action-modal → ui-components/action-modal}/index.d.ts +0 -0
- /package/lib/typescript/{activity-indicator → ui-components/activity-indicator}/activity-indicator.d.ts +0 -0
- /package/lib/typescript/{activity-indicator → ui-components/activity-indicator}/index.d.ts +0 -0
- /package/lib/typescript/{blur → ui-components/blur}/blur-view.d.ts +0 -0
- /package/lib/typescript/{blur → ui-components/blur}/index.d.ts +0 -0
- /package/lib/typescript/{buttons → ui-components/buttons}/connectivity-button.d.ts +0 -0
- /package/lib/typescript/{buttons → ui-components/buttons}/filter-button.d.ts +0 -0
- /package/lib/typescript/{buttons → ui-components/buttons}/ghost-button.d.ts +0 -0
- /package/lib/typescript/{camera → ui-components/camera}/camera-overlay.d.ts +0 -0
- /package/lib/typescript/{camera → ui-components/camera}/index.d.ts +0 -0
- /package/lib/typescript/{camera → ui-components/camera}/qr-code-scanner.d.ts +0 -0
- /package/lib/typescript/{control → ui-components/control}/checkbox.d.ts +0 -0
- /package/lib/typescript/{control → ui-components/control}/index.d.ts +0 -0
- /package/lib/typescript/{control → ui-components/control}/switch.d.ts +0 -0
- /package/lib/typescript/{credential → ui-components/credential}/card/credential-details-card.d.ts +0 -0
- /package/lib/typescript/{credential → ui-components/credential}/card/credential-details-list-item.d.ts +0 -0
- /package/lib/typescript/{credential → ui-components/credential}/card/credential-image-carousel.d.ts +0 -0
- /package/lib/typescript/{credential → ui-components/credential}/credential-carousel-images.d.ts +0 -0
- /package/lib/typescript/{credential → ui-components/credential}/selector-status.d.ts +0 -0
- /package/lib/typescript/{credential → ui-components/credential}/selector.d.ts +0 -0
- /package/lib/typescript/{detail → ui-components/detail}/detail.d.ts +0 -0
- /package/lib/typescript/{detail → ui-components/detail}/index.d.ts +0 -0
- /package/lib/typescript/{entity → ui-components/entity}/index.d.ts +0 -0
- /package/lib/typescript/{header → ui-components/header}/focus-aware-status-bar.d.ts +0 -0
- /package/lib/typescript/{header → ui-components/header}/foldable-header.d.ts +0 -0
- /package/lib/typescript/{header → ui-components/header}/header.d.ts +0 -0
- /package/lib/typescript/{header → ui-components/header}/navigation-header.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/connectivity.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/credential.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/entity.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/icons.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/index.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/input.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/keypad.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/loader.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/nerd-view.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/selector.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/wallet.d.ts +0 -0
- /package/lib/typescript/{image → ui-components/image}/image-or-component.d.ts +0 -0
- /package/lib/typescript/{input → ui-components/input}/index.d.ts +0 -0
- /package/lib/typescript/{input → ui-components/input}/radio-group.d.ts +0 -0
- /package/lib/typescript/{input → ui-components/input}/text-input.d.ts +0 -0
- /package/lib/typescript/{list → ui-components/list}/list-section-header.d.ts +0 -0
- /package/lib/typescript/{list → ui-components/list}/list-title-header.d.ts +0 -0
- /package/lib/typescript/{loader → ui-components/loader}/index.d.ts +0 -0
- /package/lib/typescript/{loader → ui-components/loader}/loader.d.ts +0 -0
- /package/lib/typescript/{loader → ui-components/loader}/loading-result.d.ts +0 -0
- /package/lib/typescript/{nerd-view → ui-components/nerd-view}/nerd-mode-item.d.ts +0 -0
- /package/lib/typescript/{pin → ui-components/pin}/pin-code-screen.d.ts +0 -0
- /package/lib/typescript/{pin → ui-components/pin}/pins.d.ts +0 -0
- /package/lib/typescript/{screens → ui-components/screens}/backup-screen.d.ts +0 -0
- /package/lib/typescript/{screens → ui-components/screens}/image-preview-screen.d.ts +0 -0
- /package/lib/typescript/{screens → ui-components/screens}/qr-code-scanner-screen.d.ts +0 -0
- /package/lib/typescript/{screens → ui-components/screens}/scroll-view-screen.d.ts +0 -0
- /package/lib/typescript/{screens → ui-components/screens}/section-list-screen.d.ts +0 -0
- /package/lib/typescript/{searchbar → ui-components/searchbar}/animated-search-bar.d.ts +0 -0
- /package/lib/typescript/{searchbar → ui-components/searchbar}/index.d.ts +0 -0
- /package/lib/typescript/{searchbar → ui-components/searchbar}/search-bar.d.ts +0 -0
- /package/lib/typescript/{settings → ui-components/settings}/button-setting.d.ts +0 -0
- /package/lib/typescript/{settings → ui-components/settings}/index.d.ts +0 -0
- /package/lib/typescript/{settings → ui-components/settings}/setting-item-separator.d.ts +0 -0
- /package/lib/typescript/{settings → ui-components/settings}/setting-item.d.ts +0 -0
- /package/lib/typescript/{settings → ui-components/settings}/settings-button.d.ts +0 -0
- /package/lib/typescript/{settings → ui-components/settings}/switch-setting.d.ts +0 -0
- /package/lib/typescript/{state → ui-components/state}/error-screen.d.ts +0 -0
- /package/lib/typescript/{state → ui-components/state}/index.d.ts +0 -0
- /package/lib/typescript/{text → ui-components/text}/base.d.ts +0 -0
- /package/lib/typescript/{text → ui-components/text}/font.d.ts +0 -0
- /package/lib/typescript/{theme → ui-components/theme}/color-scheme-context.d.ts +0 -0
- /package/lib/typescript/{theme → ui-components/theme}/index.d.ts +0 -0
- /package/src/{accessibility → ui-components/accessibility}/accessibilityLanguage.tsx +0 -0
- /package/src/{accessibility → ui-components/accessibility}/locale/de.json +0 -0
- /package/src/{accessibility → ui-components/accessibility}/locale/en.json +0 -0
- /package/src/{accessibility → ui-components/accessibility}/locale/fr.json +0 -0
- /package/src/{accessibility → ui-components/accessibility}/locale/index.ts +0 -0
- /package/src/{accessibility → ui-components/accessibility}/locale/it.json +0 -0
- /package/src/{accessibility → ui-components/accessibility}/locale.test.ts +0 -0
- /package/src/{action-modal → ui-components/action-modal}/ActionModal.tsx +0 -0
- /package/src/{action-modal → ui-components/action-modal}/index.ts +0 -0
- /package/src/{activity-indicator → ui-components/activity-indicator}/activity-indicator.tsx +0 -0
- /package/src/{activity-indicator → ui-components/activity-indicator}/index.ts +0 -0
- /package/src/{blur → ui-components/blur}/index.ts +0 -0
- /package/src/{buttons → ui-components/buttons}/filter-button.tsx +0 -0
- /package/src/{buttons → ui-components/buttons}/ghost-button.tsx +0 -0
- /package/src/{buttons → ui-components/buttons}/scan-button.tsx +0 -0
- /package/src/{camera → ui-components/camera}/camera-overlay.tsx +0 -0
- /package/src/{camera → ui-components/camera}/index.tsx +0 -0
- /package/src/{camera → ui-components/camera}/qr-code-scanner.tsx +0 -0
- /package/src/{control → ui-components/control}/checkbox.tsx +0 -0
- /package/src/{control → ui-components/control}/index.ts +0 -0
- /package/src/{control → ui-components/control}/switch.tsx +0 -0
- /package/src/{credential → ui-components/credential}/credential-carousel-images.tsx +0 -0
- /package/src/{credential → ui-components/credential}/selector-status.ts +0 -0
- /package/src/{detail → ui-components/detail}/index.tsx +0 -0
- /package/src/{entity → ui-components/entity}/index.ts +0 -0
- /package/src/{header → ui-components/header}/focus-aware-status-bar.tsx +0 -0
- /package/src/{header → ui-components/header}/foldable-header.tsx +0 -0
- /package/src/{icons → ui-components/icons}/connectivity.tsx +0 -0
- /package/src/{icons → ui-components/icons}/credential.tsx +0 -0
- /package/src/{icons → ui-components/icons}/icons.tsx +0 -0
- /package/src/{icons → ui-components/icons}/index.ts +0 -0
- /package/src/{icons → ui-components/icons}/input.tsx +0 -0
- /package/src/{icons → ui-components/icons}/keypad.tsx +0 -0
- /package/src/{icons → ui-components/icons}/loader.tsx +0 -0
- /package/src/{icons → ui-components/icons}/nerd-view.tsx +0 -0
- /package/src/{icons → ui-components/icons}/selector.tsx +0 -0
- /package/src/{icons → ui-components/icons}/wallet.tsx +0 -0
- /package/src/{image → ui-components/image}/image-or-component.tsx +0 -0
- /package/src/{input → ui-components/input}/index.ts +0 -0
- /package/src/{list → ui-components/list}/list-section-header.tsx +0 -0
- /package/src/{list → ui-components/list}/list-title-header.tsx +0 -0
- /package/src/{loader → ui-components/loader}/index.ts +0 -0
- /package/src/{pin → ui-components/pin}/pins.tsx +0 -0
- /package/src/{searchbar → ui-components/searchbar}/animated-search-bar.tsx +0 -0
- /package/src/{searchbar → ui-components/searchbar}/index.ts +0 -0
- /package/src/{settings → ui-components/settings}/button-setting.tsx +0 -0
- /package/src/{settings → ui-components/settings}/index.ts +0 -0
- /package/src/{settings → ui-components/settings}/setting-item-separator.tsx +0 -0
- /package/src/{settings → ui-components/settings}/setting-item.tsx +0 -0
- /package/src/{settings → ui-components/settings}/settings-button.tsx +0 -0
- /package/src/{settings → ui-components/settings}/switch-setting.tsx +0 -0
- /package/src/{state → ui-components/state}/index.ts +0 -0
- /package/src/{text → ui-components/text}/base.tsx +0 -0
- /package/src/{text → ui-components/text}/font.ts +0 -0
- /package/src/{text → ui-components/text}/typography.tsx +0 -0
- /package/src/{theme → ui-components/theme}/index.ts +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useInfiniteQuery } from 'react-query';
|
|
2
|
+
import { getQueryKeyFromHistoryListQueryParams } from '../../parsers/query';
|
|
3
|
+
import { useONECore } from './core-context';
|
|
4
|
+
const PAGE_SIZE = 20;
|
|
5
|
+
export const HISTORY_LIST_QUERY_KEY = 'history-list';
|
|
6
|
+
export const useHistory = queryParams => {
|
|
7
|
+
const {
|
|
8
|
+
core,
|
|
9
|
+
organisationId
|
|
10
|
+
} = useONECore();
|
|
11
|
+
return useInfiniteQuery([HISTORY_LIST_QUERY_KEY, ...getQueryKeyFromHistoryListQueryParams(queryParams)], async ({
|
|
12
|
+
pageParam = 0
|
|
13
|
+
}) => {
|
|
14
|
+
const historyPage = await core.getHistory({
|
|
15
|
+
organisationId,
|
|
16
|
+
page: pageParam,
|
|
17
|
+
pageSize: PAGE_SIZE,
|
|
18
|
+
...queryParams
|
|
19
|
+
});
|
|
20
|
+
return historyPage;
|
|
21
|
+
}, {
|
|
22
|
+
getNextPageParam: (lastPage, allPages) => allPages.length < lastPage.totalPages ? allPages.length : undefined,
|
|
23
|
+
keepPreviousData: true
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=history.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useInfiniteQuery","getQueryKeyFromHistoryListQueryParams","useONECore","PAGE_SIZE","HISTORY_LIST_QUERY_KEY","useHistory","queryParams","core","organisationId","pageParam","historyPage","getHistory","page","pageSize","getNextPageParam","lastPage","allPages","length","totalPages","undefined","keepPreviousData"],"sources":["history.ts"],"sourcesContent":["import { HistoryListQuery } from '@procivis/react-native-one-core';\nimport { useInfiniteQuery } from 'react-query';\n\nimport { getQueryKeyFromHistoryListQueryParams } from '../../parsers/query';\nimport { useONECore } from './core-context';\n\nconst PAGE_SIZE = 20;\nexport const HISTORY_LIST_QUERY_KEY = 'history-list';\n\nexport const useHistory = (queryParams?: Partial<HistoryListQuery>) => {\n const { core, organisationId } = useONECore();\n\n return useInfiniteQuery(\n [HISTORY_LIST_QUERY_KEY, ...getQueryKeyFromHistoryListQueryParams(queryParams)],\n async ({ pageParam = 0 }) => {\n const historyPage = await core.getHistory({\n organisationId,\n page: pageParam,\n pageSize: PAGE_SIZE,\n ...queryParams,\n });\n\n return historyPage;\n },\n {\n getNextPageParam: (lastPage, allPages) => (allPages.length < lastPage.totalPages ? allPages.length : undefined),\n keepPreviousData: true,\n },\n );\n};\n"],"mappings":"AACA,SAASA,gBAAgB,QAAQ,aAAa;AAE9C,SAASC,qCAAqC,QAAQ,qBAAqB;AAC3E,SAASC,UAAU,QAAQ,gBAAgB;AAE3C,MAAMC,SAAS,GAAG,EAAE;AACpB,OAAO,MAAMC,sBAAsB,GAAG,cAAc;AAEpD,OAAO,MAAMC,UAAU,GAAIC,WAAuC,IAAK;EACrE,MAAM;IAAEC,IAAI;IAAEC;EAAe,CAAC,GAAGN,UAAU,CAAC,CAAC;EAE7C,OAAOF,gBAAgB,CACrB,CAACI,sBAAsB,EAAE,GAAGH,qCAAqC,CAACK,WAAW,CAAC,CAAC,EAC/E,OAAO;IAAEG,SAAS,GAAG;EAAE,CAAC,KAAK;IAC3B,MAAMC,WAAW,GAAG,MAAMH,IAAI,CAACI,UAAU,CAAC;MACxCH,cAAc;MACdI,IAAI,EAAEH,SAAS;MACfI,QAAQ,EAAEV,SAAS;MACnB,GAAGG;IACL,CAAC,CAAC;IAEF,OAAOI,WAAW;EACpB,CAAC,EACD;IACEI,gBAAgB,EAAEA,CAACC,QAAQ,EAAEC,QAAQ,KAAMA,QAAQ,CAACC,MAAM,GAAGF,QAAQ,CAACG,UAAU,GAAGF,QAAQ,CAACC,MAAM,GAAGE,SAAU;IAC/GC,gBAAgB,EAAE;EACpB,CACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './backup';
|
|
2
|
+
export * from './cache';
|
|
3
|
+
export * from './core-config';
|
|
4
|
+
export * from './core-context';
|
|
5
|
+
export * from './core-init';
|
|
6
|
+
export * from './credential-schemas';
|
|
7
|
+
export * from './credentials';
|
|
8
|
+
export * from './dids';
|
|
9
|
+
export * from './history';
|
|
10
|
+
export * from './proof-schemas';
|
|
11
|
+
export * from './proofs';
|
|
12
|
+
export * from './query';
|
|
13
|
+
export * from './trust-entity';
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from './backup';\nexport * from './cache';\nexport * from './core-config';\nexport * from './core-context';\nexport * from './core-init';\nexport * from './credential-schemas';\nexport * from './credentials';\nexport * from './dids';\nexport * from './history';\nexport * from './proof-schemas';\nexport * from './proofs';\nexport * from './query';\nexport * from './trust-entity';\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,gBAAgB;AAC9B,cAAc,aAAa;AAC3B,cAAc,sBAAsB;AACpC,cAAc,eAAe;AAC7B,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,iBAAiB;AAC/B,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from 'react-query';
|
|
2
|
+
import { getQueryKeyFromProofSchemaListQueryParams } from '../../parsers/query';
|
|
3
|
+
import { useHTTPClient } from '../http/client';
|
|
4
|
+
import { useONECore } from './core-context';
|
|
5
|
+
import { CREDENTIAL_SCHEMA_LIST_QUERY_KEY } from './credential-schemas';
|
|
6
|
+
import { HISTORY_LIST_QUERY_KEY } from './history';
|
|
7
|
+
const PAGE_SIZE = 10;
|
|
8
|
+
export const PROOF_SCHEMA_LIST_QUERY_KEY = 'proof-schema-list';
|
|
9
|
+
export const PROOF_SCHEMA_IMPORT_DETAIL_QUERY_KEY = 'proof-schema-import';
|
|
10
|
+
export const PROOF_SCHEMA_DETAIL_QUERY_KEY = 'proof-schema-detail';
|
|
11
|
+
export const PROOF_SCHEMA_SHARE_QUERY_KEY = 'proof-schema-share';
|
|
12
|
+
export const useProofSchemas = (queryParams, keepPreviousData = true) => {
|
|
13
|
+
const {
|
|
14
|
+
core,
|
|
15
|
+
organisationId
|
|
16
|
+
} = useONECore();
|
|
17
|
+
return useInfiniteQuery([PROOF_SCHEMA_LIST_QUERY_KEY, ...getQueryKeyFromProofSchemaListQueryParams(queryParams)], ({
|
|
18
|
+
pageParam = 0
|
|
19
|
+
}) => core.getProofSchemas({
|
|
20
|
+
organisationId,
|
|
21
|
+
page: pageParam,
|
|
22
|
+
pageSize: PAGE_SIZE,
|
|
23
|
+
...queryParams
|
|
24
|
+
}).then(({
|
|
25
|
+
values
|
|
26
|
+
}) => values), {
|
|
27
|
+
getNextPageParam: (lastPage, allPages) => lastPage.length === PAGE_SIZE ? allPages.length : undefined,
|
|
28
|
+
keepPreviousData
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
export const useProofSchemaDetail = (proofSchemaId, active = true) => {
|
|
32
|
+
const {
|
|
33
|
+
core
|
|
34
|
+
} = useONECore();
|
|
35
|
+
return useQuery([PROOF_SCHEMA_DETAIL_QUERY_KEY, proofSchemaId], () => proofSchemaId ? core.getProofSchema(proofSchemaId) : undefined, {
|
|
36
|
+
enabled: active && Boolean(proofSchemaId),
|
|
37
|
+
keepPreviousData: true
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
export const useProofSchemaImportDetail = url => {
|
|
41
|
+
const httpClient = useHTTPClient();
|
|
42
|
+
return useQuery([PROOF_SCHEMA_IMPORT_DETAIL_QUERY_KEY, url], () => httpClient.get(url).then(response => {
|
|
43
|
+
if (!response.ok) {
|
|
44
|
+
throw response.originalError;
|
|
45
|
+
}
|
|
46
|
+
return response.data;
|
|
47
|
+
}), {
|
|
48
|
+
keepPreviousData: true
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
export const useProofSchemaAccept = () => {
|
|
52
|
+
const queryClient = useQueryClient();
|
|
53
|
+
const {
|
|
54
|
+
core,
|
|
55
|
+
organisationId
|
|
56
|
+
} = useONECore();
|
|
57
|
+
return useMutation(async ({
|
|
58
|
+
schema
|
|
59
|
+
}) => core.importProofSchema({
|
|
60
|
+
organisationId,
|
|
61
|
+
schema
|
|
62
|
+
}), {
|
|
63
|
+
onSuccess: async () => {
|
|
64
|
+
await queryClient.invalidateQueries(PROOF_SCHEMA_LIST_QUERY_KEY);
|
|
65
|
+
await queryClient.invalidateQueries(CREDENTIAL_SCHEMA_LIST_QUERY_KEY);
|
|
66
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
export const useProofSchemaCreate = () => {
|
|
71
|
+
const queryClient = useQueryClient();
|
|
72
|
+
const {
|
|
73
|
+
core
|
|
74
|
+
} = useONECore();
|
|
75
|
+
return useMutation(async proofSchema => core.createProofSchema(proofSchema), {
|
|
76
|
+
onSuccess: async () => {
|
|
77
|
+
await queryClient.invalidateQueries(PROOF_SCHEMA_LIST_QUERY_KEY);
|
|
78
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
export const useProofSchemaDelete = () => {
|
|
83
|
+
const queryClient = useQueryClient();
|
|
84
|
+
const {
|
|
85
|
+
core
|
|
86
|
+
} = useONECore();
|
|
87
|
+
return useMutation(async proofSchemaId => core.deleteProofSchema(proofSchemaId), {
|
|
88
|
+
onSuccess: async (_, proofSchemaId) => {
|
|
89
|
+
await queryClient.invalidateQueries(PROOF_SCHEMA_LIST_QUERY_KEY);
|
|
90
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
91
|
+
await queryClient.removeQueries([PROOF_SCHEMA_DETAIL_QUERY_KEY, proofSchemaId]);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
export const useShareProofSchema = schemaId => {
|
|
96
|
+
const {
|
|
97
|
+
core
|
|
98
|
+
} = useONECore();
|
|
99
|
+
return useQuery([PROOF_SCHEMA_SHARE_QUERY_KEY, schemaId], () => schemaId ? core.shareProofSchema(schemaId) : Promise.reject(), {
|
|
100
|
+
enabled: Boolean(schemaId),
|
|
101
|
+
keepPreviousData: true
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=proof-schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useInfiniteQuery","useMutation","useQuery","useQueryClient","getQueryKeyFromProofSchemaListQueryParams","useHTTPClient","useONECore","CREDENTIAL_SCHEMA_LIST_QUERY_KEY","HISTORY_LIST_QUERY_KEY","PAGE_SIZE","PROOF_SCHEMA_LIST_QUERY_KEY","PROOF_SCHEMA_IMPORT_DETAIL_QUERY_KEY","PROOF_SCHEMA_DETAIL_QUERY_KEY","PROOF_SCHEMA_SHARE_QUERY_KEY","useProofSchemas","queryParams","keepPreviousData","core","organisationId","pageParam","getProofSchemas","page","pageSize","then","values","getNextPageParam","lastPage","allPages","length","undefined","useProofSchemaDetail","proofSchemaId","active","getProofSchema","enabled","Boolean","useProofSchemaImportDetail","url","httpClient","get","response","ok","originalError","data","useProofSchemaAccept","queryClient","schema","importProofSchema","onSuccess","invalidateQueries","useProofSchemaCreate","proofSchema","createProofSchema","useProofSchemaDelete","deleteProofSchema","_","removeQueries","useShareProofSchema","schemaId","shareProofSchema","Promise","reject"],"sources":["proof-schemas.ts"],"sourcesContent":["import {\n CreateProofSchemaRequest,\n ImportProofSchema,\n ProofSchema,\n ProofSchemaListItem,\n ProofSchemaListQuery,\n} from '@procivis/react-native-one-core';\nimport { useInfiniteQuery, useMutation, useQuery, useQueryClient } from 'react-query';\n\nimport { getQueryKeyFromProofSchemaListQueryParams } from '../../parsers/query';\nimport { useHTTPClient } from '../http/client';\nimport { useONECore } from './core-context';\nimport { CREDENTIAL_SCHEMA_LIST_QUERY_KEY } from './credential-schemas';\nimport { HISTORY_LIST_QUERY_KEY } from './history';\n\nconst PAGE_SIZE = 10;\nexport const PROOF_SCHEMA_LIST_QUERY_KEY = 'proof-schema-list';\nexport const PROOF_SCHEMA_IMPORT_DETAIL_QUERY_KEY = 'proof-schema-import';\nexport const PROOF_SCHEMA_DETAIL_QUERY_KEY = 'proof-schema-detail';\nexport const PROOF_SCHEMA_SHARE_QUERY_KEY = 'proof-schema-share';\n\nexport const useProofSchemas = (queryParams?: Partial<ProofSchemaListQuery>, keepPreviousData = true) => {\n const { core, organisationId } = useONECore();\n\n return useInfiniteQuery(\n [PROOF_SCHEMA_LIST_QUERY_KEY, ...getQueryKeyFromProofSchemaListQueryParams(queryParams)],\n ({ pageParam = 0 }) =>\n core\n .getProofSchemas({\n organisationId,\n page: pageParam,\n pageSize: PAGE_SIZE,\n ...queryParams,\n })\n .then(({ values }) => values),\n {\n getNextPageParam: (lastPage, allPages) => (lastPage.length === PAGE_SIZE ? allPages.length : undefined),\n keepPreviousData,\n },\n );\n};\n\nexport const useProofSchemaDetail = (proofSchemaId: ProofSchemaListItem['id'] | undefined, active = true) => {\n const { core } = useONECore();\n\n return useQuery(\n [PROOF_SCHEMA_DETAIL_QUERY_KEY, proofSchemaId],\n () => (proofSchemaId ? core.getProofSchema(proofSchemaId) : undefined),\n {\n enabled: active && Boolean(proofSchemaId),\n keepPreviousData: true,\n },\n );\n};\n\nexport const useProofSchemaImportDetail = (url: string) => {\n const httpClient = useHTTPClient();\n\n return useQuery(\n [PROOF_SCHEMA_IMPORT_DETAIL_QUERY_KEY, url],\n () =>\n httpClient.get(url).then((response) => {\n if (!response.ok) {\n throw response.originalError;\n }\n return response.data as ImportProofSchema;\n }),\n {\n keepPreviousData: true,\n },\n );\n};\n\nexport const useProofSchemaAccept = () => {\n const queryClient = useQueryClient();\n const { core, organisationId } = useONECore();\n\n return useMutation(\n async ({ schema }: { schema: ImportProofSchema }) =>\n core.importProofSchema({\n organisationId,\n schema,\n }),\n {\n onSuccess: async () => {\n await queryClient.invalidateQueries(PROOF_SCHEMA_LIST_QUERY_KEY);\n await queryClient.invalidateQueries(CREDENTIAL_SCHEMA_LIST_QUERY_KEY);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n },\n );\n};\n\nexport const useProofSchemaCreate = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(async (proofSchema: CreateProofSchemaRequest) => core.createProofSchema(proofSchema), {\n onSuccess: async () => {\n await queryClient.invalidateQueries(PROOF_SCHEMA_LIST_QUERY_KEY);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n });\n};\n\nexport const useProofSchemaDelete = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(async (proofSchemaId: ProofSchema['id']) => core.deleteProofSchema(proofSchemaId), {\n onSuccess: async (_, proofSchemaId) => {\n await queryClient.invalidateQueries(PROOF_SCHEMA_LIST_QUERY_KEY);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n await queryClient.removeQueries([PROOF_SCHEMA_DETAIL_QUERY_KEY, proofSchemaId]);\n },\n });\n};\n\nexport const useShareProofSchema = (schemaId?: string) => {\n const { core } = useONECore();\n\n return useQuery(\n [PROOF_SCHEMA_SHARE_QUERY_KEY, schemaId],\n () => (schemaId ? core.shareProofSchema(schemaId) : Promise.reject()),\n {\n enabled: Boolean(schemaId),\n keepPreviousData: true,\n },\n );\n};\n"],"mappings":"AAOA,SAASA,gBAAgB,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,cAAc,Q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AAgB,EAAE;EACpB,CACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import { OneError, ProofStateEnum } from '@procivis/react-native-one-core';
|
|
2
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
3
|
+
import { useMutation, useQuery, useQueryClient } from 'react-query';
|
|
4
|
+
import { getQueryKeyFromProofListQueryParams } from '../../parsers/query';
|
|
5
|
+
import { useCoreConfig } from './core-config';
|
|
6
|
+
import { useONECore } from './core-context';
|
|
7
|
+
import { useDids } from './dids';
|
|
8
|
+
import { OneErrorCode } from './error-code';
|
|
9
|
+
import { HISTORY_LIST_QUERY_KEY } from './history';
|
|
10
|
+
import { useProofSchemaDetail } from './proof-schemas';
|
|
11
|
+
const PAGE_SIZE = 10;
|
|
12
|
+
export const PROOF_DETAIL_QUERY_KEY = 'proof-detail';
|
|
13
|
+
export const PROOF_STATE_QUERY_KEY = 'proof-state';
|
|
14
|
+
export const PROOF_LIST_QUERY_KEY = 'proof-list';
|
|
15
|
+
export const useProofDetail = proofId => {
|
|
16
|
+
const {
|
|
17
|
+
core
|
|
18
|
+
} = useONECore();
|
|
19
|
+
return useQuery([PROOF_DETAIL_QUERY_KEY, proofId], () => proofId ? core.getProof(proofId) : undefined, {
|
|
20
|
+
enabled: Boolean(proofId),
|
|
21
|
+
keepPreviousData: true
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export const useProofState = (proofId, isPolling) => {
|
|
25
|
+
const {
|
|
26
|
+
core
|
|
27
|
+
} = useONECore();
|
|
28
|
+
return useQuery([PROOF_STATE_QUERY_KEY, proofId], () => proofId ? core.getProof(proofId).then(proof => proof.state) : undefined, {
|
|
29
|
+
enabled: Boolean(proofId),
|
|
30
|
+
refetchInterval: isPolling ? 1000 : false
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export const useProofUrl = () => {
|
|
34
|
+
const queryClient = useQueryClient();
|
|
35
|
+
const {
|
|
36
|
+
core
|
|
37
|
+
} = useONECore();
|
|
38
|
+
return useMutation(async ({
|
|
39
|
+
proofId,
|
|
40
|
+
request
|
|
41
|
+
}) => core.shareProof(proofId, request !== null && request !== void 0 ? request : {}).then(proof => proof.url), {
|
|
42
|
+
onSuccess: async () => {
|
|
43
|
+
await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);
|
|
44
|
+
await queryClient.invalidateQueries(PROOF_STATE_QUERY_KEY);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
export const useProofAccept = () => {
|
|
49
|
+
const queryClient = useQueryClient();
|
|
50
|
+
const {
|
|
51
|
+
core
|
|
52
|
+
} = useONECore();
|
|
53
|
+
return useMutation(async ({
|
|
54
|
+
interactionId,
|
|
55
|
+
credentials,
|
|
56
|
+
didId,
|
|
57
|
+
keyId
|
|
58
|
+
}) => core.holderSubmitProof(interactionId, credentials, didId, keyId), {
|
|
59
|
+
onError: async () => {
|
|
60
|
+
await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);
|
|
61
|
+
},
|
|
62
|
+
onSuccess: async () => {
|
|
63
|
+
await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);
|
|
64
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
export const useProofReject = () => {
|
|
69
|
+
const queryClient = useQueryClient();
|
|
70
|
+
const {
|
|
71
|
+
core
|
|
72
|
+
} = useONECore();
|
|
73
|
+
return useMutation(async interactionId => core.holderRejectProof(interactionId).catch(e => {
|
|
74
|
+
if (e instanceof OneError && e.code === OneErrorCode.OperationNotSupported) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
throw e;
|
|
78
|
+
}), {
|
|
79
|
+
onSuccess: async () => {
|
|
80
|
+
await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);
|
|
81
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
export let IssuanceProtocol = /*#__PURE__*/function (IssuanceProtocol) {
|
|
86
|
+
IssuanceProtocol["OPENID4VCI_DRAFT13"] = "OPENID4VCI_DRAFT13";
|
|
87
|
+
return IssuanceProtocol;
|
|
88
|
+
}({});
|
|
89
|
+
export let VerificationProtocol = /*#__PURE__*/function (VerificationProtocol) {
|
|
90
|
+
VerificationProtocol["ISO_MDL"] = "ISO_MDL";
|
|
91
|
+
VerificationProtocol["OPENID4VP_DRAFT20"] = "OPENID4VP_DRAFT20";
|
|
92
|
+
VerificationProtocol["OPENID4VP_DRAFT25"] = "OPENID4VP_DRAFT25";
|
|
93
|
+
VerificationProtocol["OPENID4VP_PROXIMITY_DRAFT00"] = "OPENID4VP_PROXIMITY_DRAFT00";
|
|
94
|
+
VerificationProtocol["SCAN_TO_VERIFY"] = "SCAN_TO_VERIFY";
|
|
95
|
+
return VerificationProtocol;
|
|
96
|
+
}({});
|
|
97
|
+
export const useProposeProof = () => {
|
|
98
|
+
const queryClient = useQueryClient();
|
|
99
|
+
const {
|
|
100
|
+
core,
|
|
101
|
+
organisationId
|
|
102
|
+
} = useONECore();
|
|
103
|
+
return useMutation(async exchange => core.proposeProof(exchange, organisationId), {
|
|
104
|
+
onSuccess: async () => {
|
|
105
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
export const useProofDelete = () => {
|
|
110
|
+
const queryClient = useQueryClient();
|
|
111
|
+
const {
|
|
112
|
+
core
|
|
113
|
+
} = useONECore();
|
|
114
|
+
return useMutation(async proofId => {
|
|
115
|
+
return core.deleteProof(proofId).catch(e => {
|
|
116
|
+
if (e instanceof OneError && e.code === OneErrorCode.OperationNotSupported) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
throw e;
|
|
120
|
+
});
|
|
121
|
+
}, {
|
|
122
|
+
onSuccess: async () => {
|
|
123
|
+
await queryClient.invalidateQueries(PROOF_LIST_QUERY_KEY);
|
|
124
|
+
await queryClient.invalidateQueries(PROOF_STATE_QUERY_KEY);
|
|
125
|
+
await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);
|
|
126
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
export const useProofs = queryParams => {
|
|
131
|
+
const {
|
|
132
|
+
core,
|
|
133
|
+
organisationId
|
|
134
|
+
} = useONECore();
|
|
135
|
+
const queryKey = [PROOF_LIST_QUERY_KEY, ...getQueryKeyFromProofListQueryParams(queryParams)];
|
|
136
|
+
return useQuery(queryKey, ({
|
|
137
|
+
pageParam = 0
|
|
138
|
+
}) => core.getProofs({
|
|
139
|
+
organisationId,
|
|
140
|
+
page: pageParam,
|
|
141
|
+
pageSize: PAGE_SIZE,
|
|
142
|
+
...queryParams
|
|
143
|
+
}), {
|
|
144
|
+
keepPreviousData: false
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
export const useProofCreate = () => {
|
|
148
|
+
const queryClient = useQueryClient();
|
|
149
|
+
const {
|
|
150
|
+
core
|
|
151
|
+
} = useONECore();
|
|
152
|
+
return useMutation(async data => core.createProof(data), {
|
|
153
|
+
onSuccess: async () => {
|
|
154
|
+
await queryClient.invalidateQueries(PROOF_LIST_QUERY_KEY);
|
|
155
|
+
await queryClient.invalidateQueries(PROOF_STATE_QUERY_KEY);
|
|
156
|
+
await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
const getDidFilterForProofSchema = (proofSchema, config) => {
|
|
161
|
+
const requestedFormats = proofSchema.proofInputSchemas.map(schema => schema.credentialSchema.format);
|
|
162
|
+
const requestedFormatsCapabilities = requestedFormats.map(format => {
|
|
163
|
+
var _config$format$format;
|
|
164
|
+
return (_config$format$format = config.format[format]) === null || _config$format$format === void 0 ? void 0 : _config$format$format.capabilities;
|
|
165
|
+
}).filter(x => x);
|
|
166
|
+
|
|
167
|
+
// key algorithms must be supported by all requested formats
|
|
168
|
+
const keyAlgorithms = requestedFormatsCapabilities.reduce((others, capabilities) => {
|
|
169
|
+
var _others$filter;
|
|
170
|
+
const current = capabilities.verificationKeyAlgorithms;
|
|
171
|
+
return (_others$filter = others === null || others === void 0 ? void 0 : others.filter(item => current.includes(item))) !== null && _others$filter !== void 0 ? _others$filter : current;
|
|
172
|
+
}, undefined);
|
|
173
|
+
|
|
174
|
+
// key storages must be supported by all requested formats
|
|
175
|
+
const keyStorages = requestedFormatsCapabilities.reduce((others, capabilities) => {
|
|
176
|
+
var _others$filter2;
|
|
177
|
+
const current = capabilities.verificationKeyStorages;
|
|
178
|
+
return (_others$filter2 = others === null || others === void 0 ? void 0 : others.filter(item => current.includes(item))) !== null && _others$filter2 !== void 0 ? _others$filter2 : current;
|
|
179
|
+
}, undefined);
|
|
180
|
+
return {
|
|
181
|
+
keyAlgorithms,
|
|
182
|
+
keyStorages
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
export const useProofForSchemaIdWithTransport = (proofSchemaId, transport, enabled) => {
|
|
186
|
+
const {
|
|
187
|
+
data: proofSchema
|
|
188
|
+
} = useProofSchemaDetail(proofSchemaId, enabled);
|
|
189
|
+
const {
|
|
190
|
+
data: config
|
|
191
|
+
} = useCoreConfig();
|
|
192
|
+
const didFilter = useMemo(() => proofSchema && config ? getDidFilterForProofSchema(proofSchema, config) : undefined, [config, proofSchema]);
|
|
193
|
+
const {
|
|
194
|
+
data: dids
|
|
195
|
+
} = useDids(didFilter);
|
|
196
|
+
const {
|
|
197
|
+
mutateAsync: createProof
|
|
198
|
+
} = useProofCreate();
|
|
199
|
+
const {
|
|
200
|
+
mutateAsync: deleteProof
|
|
201
|
+
} = useProofDelete();
|
|
202
|
+
const [deleting, setDeleting] = useState(false);
|
|
203
|
+
const [proofId, setProofIdState] = useState(undefined);
|
|
204
|
+
const proofIdRef = useRef();
|
|
205
|
+
const {
|
|
206
|
+
data: proofState
|
|
207
|
+
} = useProofState(deleting ? undefined : proofId, enabled);
|
|
208
|
+
const setProofId = useCallback(id => {
|
|
209
|
+
proofIdRef.current = id;
|
|
210
|
+
setProofIdState(id);
|
|
211
|
+
}, []);
|
|
212
|
+
useEffect(() => {
|
|
213
|
+
if (!proofIdRef.current) {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
setDeleting(true);
|
|
217
|
+
deleteProof(proofIdRef.current).then(() => {
|
|
218
|
+
setProofId(undefined);
|
|
219
|
+
setDeleting(false);
|
|
220
|
+
}).catch(() => {});
|
|
221
|
+
}, [proofIdRef, deleteProof, proofSchemaId, transport, setProofId]);
|
|
222
|
+
useEffect(() => {
|
|
223
|
+
if (enabled) {
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
if (proofState !== ProofStateEnum.CREATED && proofState !== ProofStateEnum.PENDING) {
|
|
227
|
+
setProofId(undefined);
|
|
228
|
+
}
|
|
229
|
+
}, [enabled, proofState, setProofId]);
|
|
230
|
+
useEffect(() => {
|
|
231
|
+
if (deleting || !enabled || proofId || !dids || !didFilter || !dids.values.length || !transport || transport.length === 0) {
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
createProof({
|
|
235
|
+
exchange: VerificationProtocol.OPENID4VP_PROXIMITY_DRAFT00,
|
|
236
|
+
proofSchemaId,
|
|
237
|
+
transport,
|
|
238
|
+
verifierDidId: dids.values[0].id
|
|
239
|
+
}).then(id => {
|
|
240
|
+
setProofId(id);
|
|
241
|
+
}).catch(() => {});
|
|
242
|
+
}, [proofSchemaId, dids, didFilter, createProof, enabled, transport, proofId, setProofId, deleting]);
|
|
243
|
+
return deleting ? undefined : proofId;
|
|
244
|
+
};
|
|
245
|
+
export const useCleanupUnusedProofs = () => {
|
|
246
|
+
const {
|
|
247
|
+
mutateAsync: deleteProof
|
|
248
|
+
} = useProofDelete();
|
|
249
|
+
const {
|
|
250
|
+
data: proofs
|
|
251
|
+
} = useProofs({
|
|
252
|
+
page: 0,
|
|
253
|
+
pageSize: 100,
|
|
254
|
+
proofStates: [ProofStateEnum.CREATED, ProofStateEnum.PENDING]
|
|
255
|
+
});
|
|
256
|
+
const [cleaned, setCleaned] = useState(false);
|
|
257
|
+
useEffect(() => {
|
|
258
|
+
if (cleaned || !proofs) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
setCleaned(true);
|
|
262
|
+
proofs.values.forEach(proof => deleteProof(proof.id));
|
|
263
|
+
}, [cleaned, deleteProof, proofs]);
|
|
264
|
+
};
|
|
265
|
+
export const useShareProof = (proofUrlProps, enabled) => {
|
|
266
|
+
const {
|
|
267
|
+
mutateAsync: shareProof
|
|
268
|
+
} = useProofUrl();
|
|
269
|
+
const {
|
|
270
|
+
data: proofState
|
|
271
|
+
} = useProofState(proofUrlProps === null || proofUrlProps === void 0 ? void 0 : proofUrlProps.proofId, enabled);
|
|
272
|
+
const [sharedProof, setSharedProof] = useState();
|
|
273
|
+
|
|
274
|
+
// reset when proofId changes or the proof was retracted
|
|
275
|
+
useEffect(() => {
|
|
276
|
+
if (!(proofUrlProps !== null && proofUrlProps !== void 0 && proofUrlProps.proofId) || proofState === ProofStateEnum.CREATED) {
|
|
277
|
+
setSharedProof(undefined);
|
|
278
|
+
}
|
|
279
|
+
}, [proofUrlProps === null || proofUrlProps === void 0 ? void 0 : proofUrlProps.proofId, proofState]);
|
|
280
|
+
useEffect(() => {
|
|
281
|
+
if (!proofUrlProps || !enabled || sharedProof) {
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
shareProof(proofUrlProps).then(url => {
|
|
285
|
+
setSharedProof({
|
|
286
|
+
bleAdapterDisabled: false,
|
|
287
|
+
url
|
|
288
|
+
});
|
|
289
|
+
}).catch(err => {
|
|
290
|
+
var _err$cause;
|
|
291
|
+
// TODO emit error with specific error code from core.
|
|
292
|
+
if (err instanceof OneError && (_err$cause = err.cause) !== null && _err$cause !== void 0 && _err$cause.includes('BLE adapter not enabled')) {
|
|
293
|
+
setSharedProof({
|
|
294
|
+
bleAdapterDisabled: true
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}, [enabled, proofUrlProps, shareProof, sharedProof]);
|
|
299
|
+
return sharedProof;
|
|
300
|
+
};
|
|
301
|
+
export const useRetainProofCheck = proofId => {
|
|
302
|
+
const queryClient = useQueryClient();
|
|
303
|
+
const {
|
|
304
|
+
core
|
|
305
|
+
} = useONECore();
|
|
306
|
+
return useMutation(async () => core.runTask('RETAIN_PROOF_CHECK'), {
|
|
307
|
+
onSuccess: async () => {
|
|
308
|
+
if (proofId) {
|
|
309
|
+
await queryClient.removeQueries([PROOF_DETAIL_QUERY_KEY, proofId]);
|
|
310
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
};
|
|
315
|
+
export const useDeleteProofData = proofId => {
|
|
316
|
+
const queryClient = useQueryClient();
|
|
317
|
+
const {
|
|
318
|
+
core
|
|
319
|
+
} = useONECore();
|
|
320
|
+
return useMutation(async () => core.deleteProofClaims(proofId), {
|
|
321
|
+
onSuccess: async () => {
|
|
322
|
+
await queryClient.removeQueries([PROOF_DETAIL_QUERY_KEY, proofId]);
|
|
323
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
};
|
|
327
|
+
export const useDeleteAllProofsData = schemaId => {
|
|
328
|
+
const queryClient = useQueryClient();
|
|
329
|
+
const {
|
|
330
|
+
core,
|
|
331
|
+
organisationId
|
|
332
|
+
} = useONECore();
|
|
333
|
+
return useMutation(async () => core.getProofs({
|
|
334
|
+
organisationId,
|
|
335
|
+
page: 0,
|
|
336
|
+
pageSize: 1000,
|
|
337
|
+
proofSchemaIds: [schemaId],
|
|
338
|
+
proofStates: [ProofStateEnum.ACCEPTED]
|
|
339
|
+
}).then(result => Promise.all(result.values.reverse().map(proof => core.deleteProofClaims(proof.id)))), {
|
|
340
|
+
onSuccess: async () => {
|
|
341
|
+
await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);
|
|
342
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
//# sourceMappingURL=proofs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["OneError","ProofStateEnum","useCallback","useEffect","useMemo","useRef","useState","useMutation","useQuery","useQueryClient","getQueryKeyFromProofListQueryParams","useCoreConfig","useONECore","useDids","OneErrorCode","HISTORY_LIST_QUERY_KEY","useProofSchemaDetail","PAGE_SIZE","PROOF_DETAIL_QUERY_KEY","PROOF_STATE_QUERY_KEY","PROOF_LIST_QUERY_KEY","useProofDetail","proofId","core","getProof","undefined","enabled","Boolean","keepPreviousData","useProofState","isPolling","then","proof","state","refetchInterval","useProofUrl","queryClient","request","shareProof","url","onSuccess","invalidateQueries","useProofAccept","interactionId","credentials","didId","keyId","holderSubmitProof","onError","useProofReject","holderRejectProof","catch","e","code","OperationNotSupported","IssuanceProtocol","VerificationProtocol","useProposeProof","organisationId","exchange","proposeProof","useProofDelete","deleteProof","useProofs","queryParams","queryKey","pageParam","getProofs","page","pageSize","useProofCreate","data","createProof","getDidFilterForProofSchema","proofSchema","config","requestedFormats","proofInputSchemas","map","schema","credentialSchema","format","requestedFormatsCapabilities","_config$format$format","capabilities","filter","x","keyAlgorithms","reduce","others","_others$filter","current","verificationKeyAlgorithms","item","includes","keyStorages","_others$filter2","verificationKeyStorages","useProofForSchemaIdWithTransport","proofSchemaId","transport","didFilter","dids","mutateAsync","deleting","setDeleting","setProofIdState","proofIdRef","proofState","setProofId","id","CREATED","PENDING","values","length","OPENID4VP_PROXIMITY_DRAFT00","verifierDidId","useCleanupUnusedProofs","proofs","proofStates","cleaned","setCleaned","forEach","useShareProof","proofUrlProps","sharedProof","setSharedProof","bleAdapterDisabled","err","_err$cause","cause","useRetainProofCheck","runTask","removeQueries","useDeleteProofData","deleteProofClaims","useDeleteAllProofsData","schemaId","proofSchemaIds","ACCEPTED","result","Promise","all","reverse"],"sources":["proofs.ts"],"sourcesContent":["import {\n Config,\n CreateProofRequest,\n DidListQuery,\n OneError,\n PresentationSubmitCredentialRequest,\n ProofListQuery,\n ProofSchema,\n ProofStateEnum,\n ShareProofRequest,\n} from '@procivis/react-native-one-core';\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useMutation, useQuery, useQueryClient } from 'react-query';\n\nimport { getQueryKeyFromProofListQueryParams } from '../../parsers/query';\nimport { Transport } from '../connectivity/connectivity';\nimport { useCoreConfig } from './core-config';\nimport { useONECore } from './core-context';\nimport { useDids } from './dids';\nimport { OneErrorCode } from './error-code';\nimport { HISTORY_LIST_QUERY_KEY } from './history';\nimport { useProofSchemaDetail } from './proof-schemas';\n\nconst PAGE_SIZE = 10;\nexport const PROOF_DETAIL_QUERY_KEY = 'proof-detail';\nexport const PROOF_STATE_QUERY_KEY = 'proof-state';\nexport const PROOF_LIST_QUERY_KEY = 'proof-list';\n\nexport const useProofDetail = (proofId: string | undefined) => {\n const { core } = useONECore();\n\n return useQuery([PROOF_DETAIL_QUERY_KEY, proofId], () => (proofId ? core.getProof(proofId) : undefined), {\n enabled: Boolean(proofId),\n keepPreviousData: true,\n });\n};\n\nexport const useProofState = (proofId: string | undefined, isPolling: boolean) => {\n const { core } = useONECore();\n\n return useQuery(\n [PROOF_STATE_QUERY_KEY, proofId],\n () => (proofId ? core.getProof(proofId).then((proof) => proof.state) : undefined),\n {\n enabled: Boolean(proofId),\n refetchInterval: isPolling ? 1000 : false,\n },\n );\n};\n\ntype ProofUrlHookParams = { proofId: string; request?: ShareProofRequest };\n\nexport const useProofUrl = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(\n async ({ proofId, request }: ProofUrlHookParams) =>\n core.shareProof(proofId, request ?? {}).then((proof) => proof.url),\n {\n onSuccess: async () => {\n await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);\n await queryClient.invalidateQueries(PROOF_STATE_QUERY_KEY);\n },\n },\n );\n};\n\nexport const useProofAccept = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(\n async ({\n interactionId,\n credentials,\n didId,\n keyId,\n }: {\n credentials: Record<string, PresentationSubmitCredentialRequest>;\n didId: string;\n interactionId: string;\n keyId?: string;\n }) => core.holderSubmitProof(interactionId, credentials, didId, keyId),\n {\n onError: async () => {\n await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);\n },\n onSuccess: async () => {\n await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n },\n );\n};\n\nexport const useProofReject = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(\n async (interactionId: string) =>\n core.holderRejectProof(interactionId).catch((e) => {\n if (e instanceof OneError && e.code === OneErrorCode.OperationNotSupported) {\n return;\n }\n throw e;\n }),\n {\n onSuccess: async () => {\n await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n },\n );\n};\n\nexport enum IssuanceProtocol {\n OPENID4VCI_DRAFT13 = 'OPENID4VCI_DRAFT13',\n}\n\nexport enum VerificationProtocol {\n ISO_MDL = 'ISO_MDL',\n OPENID4VP_DRAFT20 = 'OPENID4VP_DRAFT20',\n OPENID4VP_DRAFT25 = 'OPENID4VP_DRAFT25',\n OPENID4VP_PROXIMITY_DRAFT00 = 'OPENID4VP_PROXIMITY_DRAFT00',\n SCAN_TO_VERIFY = 'SCAN_TO_VERIFY',\n}\n\nexport const useProposeProof = () => {\n const queryClient = useQueryClient();\n const { core, organisationId } = useONECore();\n\n return useMutation(async (exchange: VerificationProtocol) => core.proposeProof(exchange, organisationId), {\n onSuccess: async () => {\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n });\n};\n\nexport const useProofDelete = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(\n async (proofId: string) => {\n return core.deleteProof(proofId).catch((e) => {\n if (e instanceof OneError && e.code === OneErrorCode.OperationNotSupported) {\n return;\n }\n throw e;\n });\n },\n {\n onSuccess: async () => {\n await queryClient.invalidateQueries(PROOF_LIST_QUERY_KEY);\n await queryClient.invalidateQueries(PROOF_STATE_QUERY_KEY);\n await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n },\n );\n};\n\nexport const useProofs = (queryParams?: Partial<ProofListQuery>) => {\n const { core, organisationId } = useONECore();\n\n const queryKey = [PROOF_LIST_QUERY_KEY, ...getQueryKeyFromProofListQueryParams(queryParams)];\n\n return useQuery(\n queryKey,\n ({ pageParam = 0 }) =>\n core.getProofs({\n organisationId,\n page: pageParam,\n pageSize: PAGE_SIZE,\n ...queryParams,\n }),\n {\n keepPreviousData: false,\n },\n );\n};\n\nexport const useProofCreate = () => {\n const queryClient = useQueryClient();\n\n const { core } = useONECore();\n\n return useMutation(async (data: CreateProofRequest) => core.createProof(data), {\n onSuccess: async () => {\n await queryClient.invalidateQueries(PROOF_LIST_QUERY_KEY);\n await queryClient.invalidateQueries(PROOF_STATE_QUERY_KEY);\n await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);\n },\n });\n};\n\nconst getDidFilterForProofSchema = (proofSchema: ProofSchema, config: Config): Partial<DidListQuery> => {\n const requestedFormats = proofSchema.proofInputSchemas.map((schema) => schema.credentialSchema.format);\n const requestedFormatsCapabilities = requestedFormats\n .map((format) => config.format[format]?.capabilities)\n .filter((x) => x);\n\n // key algorithms must be supported by all requested formats\n const keyAlgorithms = requestedFormatsCapabilities.reduce<string[] | undefined>((others, capabilities) => {\n const current = capabilities.verificationKeyAlgorithms;\n return others?.filter((item) => current.includes(item)) ?? current;\n }, undefined);\n\n // key storages must be supported by all requested formats\n const keyStorages = requestedFormatsCapabilities.reduce<string[] | undefined>((others, capabilities) => {\n const current = capabilities.verificationKeyStorages;\n return others?.filter((item) => current.includes(item)) ?? current;\n }, undefined);\n\n return { keyAlgorithms, keyStorages };\n};\n\nexport const useProofForSchemaIdWithTransport = (\n proofSchemaId: string,\n transport: Transport[] | undefined,\n enabled: boolean,\n) => {\n const { data: proofSchema } = useProofSchemaDetail(proofSchemaId, enabled);\n const { data: config } = useCoreConfig();\n\n const didFilter = useMemo(\n () => (proofSchema && config ? getDidFilterForProofSchema(proofSchema, config) : undefined),\n [config, proofSchema],\n );\n\n const { data: dids } = useDids(didFilter);\n const { mutateAsync: createProof } = useProofCreate();\n const { mutateAsync: deleteProof } = useProofDelete();\n\n const [deleting, setDeleting] = useState(false);\n const [proofId, setProofIdState] = useState<string | undefined>(undefined);\n const proofIdRef = useRef<string>();\n\n const { data: proofState } = useProofState(deleting ? undefined : proofId, enabled);\n\n const setProofId = useCallback((id: string | undefined) => {\n proofIdRef.current = id;\n setProofIdState(id);\n }, []);\n\n useEffect(() => {\n if (!proofIdRef.current) {\n return;\n }\n setDeleting(true);\n deleteProof(proofIdRef.current)\n .then(() => {\n setProofId(undefined);\n setDeleting(false);\n })\n .catch(() => {});\n }, [proofIdRef, deleteProof, proofSchemaId, transport, setProofId]);\n\n useEffect(() => {\n if (enabled) {\n return;\n }\n if (proofState !== ProofStateEnum.CREATED && proofState !== ProofStateEnum.PENDING) {\n setProofId(undefined);\n }\n }, [enabled, proofState, setProofId]);\n\n useEffect(() => {\n if (\n deleting ||\n !enabled ||\n proofId ||\n !dids ||\n !didFilter ||\n !dids.values.length ||\n !transport ||\n transport.length === 0\n ) {\n return;\n }\n\n createProof({\n exchange: VerificationProtocol.OPENID4VP_PROXIMITY_DRAFT00,\n proofSchemaId,\n transport,\n verifierDidId: dids.values[0].id,\n })\n .then((id) => {\n setProofId(id);\n })\n .catch(() => {});\n }, [proofSchemaId, dids, didFilter, createProof, enabled, transport, proofId, setProofId, deleting]);\n\n return deleting ? undefined : proofId;\n};\n\nexport const useCleanupUnusedProofs = () => {\n const { mutateAsync: deleteProof } = useProofDelete();\n const { data: proofs } = useProofs({\n page: 0,\n pageSize: 100,\n proofStates: [ProofStateEnum.CREATED, ProofStateEnum.PENDING],\n });\n const [cleaned, setCleaned] = useState(false);\n\n useEffect(() => {\n if (cleaned || !proofs) {\n return;\n }\n setCleaned(true);\n proofs.values.forEach((proof) => deleteProof(proof.id));\n }, [cleaned, deleteProof, proofs]);\n};\n\nexport const useShareProof = (proofUrlProps: ProofUrlHookParams | undefined, enabled: boolean) => {\n const { mutateAsync: shareProof } = useProofUrl();\n const { data: proofState } = useProofState(proofUrlProps?.proofId, enabled);\n\n const [sharedProof, setSharedProof] = useState<{\n bleAdapterDisabled: boolean;\n url?: string;\n }>();\n\n // reset when proofId changes or the proof was retracted\n useEffect(() => {\n if (!proofUrlProps?.proofId || proofState === ProofStateEnum.CREATED) {\n setSharedProof(undefined);\n }\n }, [proofUrlProps?.proofId, proofState]);\n\n useEffect(() => {\n if (!proofUrlProps || !enabled || sharedProof) {\n return;\n }\n\n shareProof(proofUrlProps)\n .then((url) => {\n setSharedProof({\n bleAdapterDisabled: false,\n url,\n });\n })\n .catch((err: unknown) => {\n // TODO emit error with specific error code from core.\n if (err instanceof OneError && err.cause?.includes('BLE adapter not enabled')) {\n setSharedProof({\n bleAdapterDisabled: true,\n });\n }\n });\n }, [enabled, proofUrlProps, shareProof, sharedProof]);\n\n return sharedProof;\n};\n\nexport const useRetainProofCheck = (proofId?: string) => {\n const queryClient = useQueryClient();\n\n const { core } = useONECore();\n\n return useMutation(async () => core.runTask('RETAIN_PROOF_CHECK'), {\n onSuccess: async () => {\n if (proofId) {\n await queryClient.removeQueries([PROOF_DETAIL_QUERY_KEY, proofId]);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n }\n },\n });\n};\n\nexport const useDeleteProofData = (proofId: string) => {\n const queryClient = useQueryClient();\n\n const { core } = useONECore();\n\n return useMutation(async () => core.deleteProofClaims(proofId), {\n onSuccess: async () => {\n await queryClient.removeQueries([PROOF_DETAIL_QUERY_KEY, proofId]);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n });\n};\n\nexport const useDeleteAllProofsData = (schemaId: string) => {\n const queryClient = useQueryClient();\n\n const { core, organisationId } = useONECore();\n\n return useMutation(\n async () =>\n core\n .getProofs({\n organisationId,\n page: 0,\n pageSize: 1000,\n proofSchemaIds: [schemaId],\n proofStates: [ProofStateEnum.ACCEPTED],\n })\n .then((result) => Promise.all(result.values.reverse().map((proof) => core.deleteProofClaims(proof.id)))),\n {\n onSuccess: async () => {\n await queryClient.invalidateQueries(PROOF_DETAIL_QUERY_KEY);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n },\n );\n};\n"],"mappings":"AAAA,SAIEA,QAAQ,EAIRC,cAAc,QAET,iCAAiC;AACxC,SAASC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACzE,SAASC,WAAW,EAAEC,QAAQ,EAAEC,cAAc,QAAQ,aAAa;AAEnE,SAASC,mCAAmC,QAAQ,qBAAqB;AAEzE,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,SAASC,OAAO,QAAQ,QAAQ;AAChC,SAASC,YAAY,QAAQ,cAAc;AAC3C,SAASC,sBAAsB,QAAQ,WAAW;AAClD,SAASC,oBAAoB,QAAQ,iBAAiB;AAEtD,MAAMC,SAAS,GAAG,EAAE;AACpB,OAAO,MAAMC,sBAAsB,GAAG,cAAc;AACpD,OAAO,MAAMC,qBAAqB,GAAG,aAAa;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E,MAAAA,CAAA,KAAY;MACrB,MAAMJ,WAAW,CAACK,iBAAiB,CAACvB,sBAAsB,CAAC;MAC3D,MAAMkB,WAAW,CAACK,iBAAiB,CAAC1B,sBAAsB,CAAC;IAC7D;EACF,CACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { QueryClient } from 'react-query';
|
|
2
|
+
import { reportException } from '../../reporting';
|
|
3
|
+
export const queryClient = new QueryClient({
|
|
4
|
+
defaultOptions: {
|
|
5
|
+
mutations: {
|
|
6
|
+
onError: err => {
|
|
7
|
+
reportException(err, 'Mutation failure');
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
queries: {
|
|
11
|
+
onError: err => {
|
|
12
|
+
reportException(err, 'Query failure');
|
|
13
|
+
},
|
|
14
|
+
staleTime: Infinity
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["QueryClient","reportException","queryClient","defaultOptions","mutations","onError","err","queries","staleTime","Infinity"],"sources":["query.ts"],"sourcesContent":["import { QueryClient } from 'react-query';\n\nimport { reportException } from '../../reporting';\n\nexport const queryClient = new QueryClient({\n defaultOptions: {\n mutations: {\n onError: (err) => {\n reportException(err, 'Mutation failure');\n },\n },\n queries: {\n onError: (err) => {\n reportException(err, 'Query failure');\n },\n staleTime: Infinity,\n },\n },\n});\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,aAAa;AAEzC,SAASC,eAAe,QAAQ,iBAAiB;AAEjD,OAAO,MAAMC,WAAW,GAAG,IAAIF,WAAW,CAAC;EACzCG,cAAc,EAAE;IACdC,SAAS,EAAE;MACTC,OAAO,EAAGC,GAAG,IAAK;QAChBL,eAAe,CAACK,GAAG,EAAE,kBAAkB,CAAC;MAC1C;IACF,CAAC;IACDC,OAAO,EAAE;MACPF,OAAO,EAAGC,GAAG,IAAK;QAChBL,eAAe,CAACK,GAAG,EAAE,eAAe,CAAC;MACvC,CAAC;MACDE,SAAS,EAAEC;IACb;EACF;AACF,CAAC,CAAC","ignoreList":[]}
|