@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 @@
|
|
|
1
|
+
{"version":3,"names":["DidTypeEnum","OneError","useCallback","useMutation","useQuery","useQueryClient","generateUUID","useONECore","HW_DID_NAME_PREFIX","SW_DID_NAME_PREFIX","OneErrorCode","HISTORY_LIST_QUERY_KEY","BACKUP_INFO_QUERY_KEY","useBackupInfo","core","backupInfo","keepPreviousData","useCreateBackup","queryClient","password","outputPath","createBackup","onSuccess","invalidateQueries","useUnpackBackup","inputPath","unpackBackup","resetQueries","useFinalizeImport","finalizeImport","useRollbackImport","rollbackImport","useBackupFinalizeImportProcedure","generateHwKey","generateSwKey","mutateAsync","organisationId","_dids$values$find","dids","getDids","deactivated","page","pageSize","type","LOCAL","swDidId","values","find","did","name","startsWith","id","swKeyId","generateKey","keyParams","keyType","storageParams","storageType","createDid","didMethod","keys","assertionMethod","authentication","capabilityDelegation","capabilityInvocation","keyAgreement","params","hwKeyId","catch","e","code","KeyStorageNotSupported","hwDidId"],"sources":["backup.ts"],"sourcesContent":["import { DidTypeEnum, OneError } from '@procivis/react-native-one-core';\nimport { useCallback } from 'react';\nimport { useMutation, useQuery, useQueryClient } from 'react-query';\n\nimport { generateUUID } from '../../uuid';\nimport { useONECore } from './core-context';\nimport { HW_DID_NAME_PREFIX, IdentifiersInitializationConfig, SW_DID_NAME_PREFIX } from './core-init';\nimport { OneErrorCode } from './error-code';\nimport { HISTORY_LIST_QUERY_KEY } from './history';\n\nconst BACKUP_INFO_QUERY_KEY = 'backup-info';\n\nexport const useBackupInfo = () => {\n const { core } = useONECore();\n\n return useQuery([BACKUP_INFO_QUERY_KEY], () => core.backupInfo(), {\n keepPreviousData: true,\n });\n};\n\nexport const useCreateBackup = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(\n async ({ password, outputPath }: { outputPath: string; password: string }) =>\n core.createBackup(password, outputPath),\n {\n onSuccess: () => queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY),\n },\n );\n};\n\nexport const useUnpackBackup = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(\n async ({ password, inputPath }: { inputPath: string; password: string }) => core.unpackBackup(password, inputPath),\n {\n onSuccess: () => queryClient.resetQueries(),\n },\n );\n};\n\nexport const useFinalizeImport = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(async () => core.finalizeImport(), {\n onSuccess: () => queryClient.resetQueries(),\n });\n};\n\nexport const useRollbackImport = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(async () => core.rollbackImport(), {\n onSuccess: () => queryClient.resetQueries(),\n });\n};\n\nexport const useBackupFinalizeImportProcedure = ({ generateHwKey, generateSwKey }: IdentifiersInitializationConfig) => {\n const { mutateAsync: finalizeImport } = useFinalizeImport();\n const { core, organisationId } = useONECore();\n\n return useCallback(async () => {\n await finalizeImport();\n\n // update wallet did references\n const dids = await core.getDids({\n deactivated: false,\n organisationId,\n page: 0,\n pageSize: 1,\n type: DidTypeEnum.LOCAL,\n });\n let swDidId = dids.values.find((did) => did.name.startsWith(SW_DID_NAME_PREFIX))?.id;\n\n if (!swDidId && generateSwKey) {\n const swKeyId = await core.generateKey({\n keyParams: {},\n keyType: 'EDDSA',\n name: `holder-key-sw-${generateUUID()}`,\n organisationId,\n storageParams: {},\n storageType: 'INTERNAL',\n });\n swDidId = await core.createDid({\n didMethod: 'KEY',\n keys: {\n assertionMethod: [swKeyId],\n authentication: [swKeyId],\n capabilityDelegation: [swKeyId],\n capabilityInvocation: [swKeyId],\n keyAgreement: [swKeyId],\n },\n name: `${SW_DID_NAME_PREFIX}-${generateUUID()}`,\n organisationId,\n params: {},\n });\n }\n\n let hwKeyId: string | null = null;\n if (generateHwKey) {\n hwKeyId = await core\n .generateKey({\n keyParams: {},\n keyType: 'ECDSA',\n name: `holder-key-hw-${generateUUID()}`,\n organisationId,\n storageParams: {},\n storageType: 'SECURE_ELEMENT',\n })\n .catch((e) => {\n // ignore if HW keys not supported by device\n if (e instanceof OneError && e.code === OneErrorCode.KeyStorageNotSupported) {\n return null;\n }\n throw e;\n });\n }\n\n let hwDidId: string | null = null;\n if (hwKeyId) {\n hwDidId = await core.createDid({\n didMethod: 'KEY',\n keys: {\n assertionMethod: [hwKeyId],\n authentication: [hwKeyId],\n capabilityDelegation: [hwKeyId],\n capabilityInvocation: [hwKeyId],\n keyAgreement: [hwKeyId],\n },\n name: `${HW_DID_NAME_PREFIX}-${generateUUID()}`,\n organisationId,\n params: {},\n });\n }\n\n return [hwDidId, swDidId] as [string | null, string | undefined];\n }, [core, organisationId, finalizeImport, generateHwKey, generateSwKey]);\n};\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,iCAAiC;AACvE,SAASC,WAAW,QAAQ,OAAO;AACnC,SAASC,WAAW,EAAEC,QAAQ,EAAEC,cAAc,QAAQ,aAAa;AAEnE,SAASC,YAAY,QAAQ,YAAY;AACzC,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,SAASC,kBAAkB,EAAmCC,kBAAkB,QAAQ,aAAa;AACrG,SAASC,YAAY,QAAQ,cAAc;AAC3C,SAASC,sBAAsB,QAAQ,WAAW;AAElD,MAAMC,qBAAqB,GAAG,aAAa;AAE3C,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EACjC,MAAM;IAAEC;EAAK,CAAC,GAAGP,UAAU,CAAC,CAAC;EAE7B,OAAOH,QAAQ,CAAC,CAACQ,qBAAqB,CAAC,EAAE,MAAME,IAAI,CAACC,UAAU,CAAC,CAAC,EAAE;IAChEC,gBAAgB,EAAE;EACpB,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,MAAMC,eAAe,GAAGA,CAAA,KAAM;EACnC,MAAMC,WAAW,GAAGb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AC;MACX,CAAC,CAAC;IACJ;IAEA,OAAO,CAACM,OAAO,EAAE3B,OAAO,CAAC;EAC3B,CAAC,EAAE,CAAC/B,IAAI,EAAEsB,cAAc,EAAEP,cAAc,EAAEI,aAAa,EAAEC,aAAa,CAAC,CAAC;AAC1E,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CacheType } from '@procivis/react-native-one-core';
|
|
2
|
+
import { useMutation, useQueryClient } from 'react-query';
|
|
3
|
+
import { useONECore } from './core-context';
|
|
4
|
+
import { CREDENTIAL_DETAIL_QUERY_KEY, CREDENTIAL_LIST_PAGED_QUERY_KEY, CREDENTIAL_LIST_QUERY_KEY } from './credentials';
|
|
5
|
+
import { REMOTE_TRUST_ENTITY_DETAIL_QUERY_KEY, TRUST_ENTITY_DETAIL_QUERY_KEY } from './trust-entity';
|
|
6
|
+
const CREDENTIAL_QUERY_KEYS = [CREDENTIAL_LIST_QUERY_KEY, CREDENTIAL_LIST_PAGED_QUERY_KEY, CREDENTIAL_DETAIL_QUERY_KEY];
|
|
7
|
+
const TRUST_ENTITY_QUERY_KEYS = [TRUST_ENTITY_DETAIL_QUERY_KEY, REMOTE_TRUST_ENTITY_DETAIL_QUERY_KEY];
|
|
8
|
+
|
|
9
|
+
// Map each CacheType to the query keys that should be invalidated when that cache is cleared.
|
|
10
|
+
const cacheTypeToQueryKeys = {
|
|
11
|
+
[CacheType.DID_DOCUMENT]: CREDENTIAL_QUERY_KEYS,
|
|
12
|
+
[CacheType.JSON_LD_CONTEXT]: CREDENTIAL_QUERY_KEYS,
|
|
13
|
+
[CacheType.STATUS_LIST_CREDENTIAL]: CREDENTIAL_QUERY_KEYS,
|
|
14
|
+
[CacheType.VCT_METADATA]: CREDENTIAL_QUERY_KEYS,
|
|
15
|
+
[CacheType.JSON_SCHEMA]: CREDENTIAL_QUERY_KEYS,
|
|
16
|
+
[CacheType.TRUST_LIST]: [...TRUST_ENTITY_QUERY_KEYS, ...CREDENTIAL_QUERY_KEYS]
|
|
17
|
+
};
|
|
18
|
+
export const useCacheClear = () => {
|
|
19
|
+
const queryClient = useQueryClient();
|
|
20
|
+
const {
|
|
21
|
+
core
|
|
22
|
+
} = useONECore();
|
|
23
|
+
return useMutation(async cacheTypes => {
|
|
24
|
+
await core.deleteCache(cacheTypes);
|
|
25
|
+
return cacheTypes;
|
|
26
|
+
}, {
|
|
27
|
+
onSuccess: async (_, cacheTypes) => {
|
|
28
|
+
const queryKeysToInvalidate = new Set();
|
|
29
|
+
cacheTypes.forEach(cacheType => {
|
|
30
|
+
const keys = cacheTypeToQueryKeys[cacheType] || [];
|
|
31
|
+
keys.forEach(key => queryKeysToInvalidate.add(key));
|
|
32
|
+
});
|
|
33
|
+
await Promise.all([...queryKeysToInvalidate].map(queryKey => queryClient.invalidateQueries(queryKey)));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=cache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CacheType","useMutation","useQueryClient","useONECore","CREDENTIAL_DETAIL_QUERY_KEY","CREDENTIAL_LIST_PAGED_QUERY_KEY","CREDENTIAL_LIST_QUERY_KEY","REMOTE_TRUST_ENTITY_DETAIL_QUERY_KEY","TRUST_ENTITY_DETAIL_QUERY_KEY","CREDENTIAL_QUERY_KEYS","TRUST_ENTITY_QUERY_KEYS","cacheTypeToQueryKeys","DID_DOCUMENT","JSON_LD_CONTEXT","STATUS_LIST_CREDENTIAL","VCT_METADATA","JSON_SCHEMA","TRUST_LIST","useCacheClear","queryClient","core","cacheTypes","deleteCache","onSuccess","_","queryKeysToInvalidate","Set","forEach","cacheType","keys","key","add","Promise","all","map","queryKey","invalidateQueries"],"sources":["cache.ts"],"sourcesContent":["import { CacheType } from '@procivis/react-native-one-core';\nimport { useMutation, useQueryClient } from 'react-query';\n\nimport { useONECore } from './core-context';\nimport { CREDENTIAL_DETAIL_QUERY_KEY, CREDENTIAL_LIST_PAGED_QUERY_KEY, CREDENTIAL_LIST_QUERY_KEY } from './credentials';\nimport { REMOTE_TRUST_ENTITY_DETAIL_QUERY_KEY, TRUST_ENTITY_DETAIL_QUERY_KEY } from './trust-entity';\n\nconst CREDENTIAL_QUERY_KEYS = [CREDENTIAL_LIST_QUERY_KEY, CREDENTIAL_LIST_PAGED_QUERY_KEY, CREDENTIAL_DETAIL_QUERY_KEY];\nconst TRUST_ENTITY_QUERY_KEYS = [TRUST_ENTITY_DETAIL_QUERY_KEY, REMOTE_TRUST_ENTITY_DETAIL_QUERY_KEY];\n\n// Map each CacheType to the query keys that should be invalidated when that cache is cleared.\nconst cacheTypeToQueryKeys: Record<CacheType, string[]> = {\n [CacheType.DID_DOCUMENT]: CREDENTIAL_QUERY_KEYS,\n [CacheType.JSON_LD_CONTEXT]: CREDENTIAL_QUERY_KEYS,\n [CacheType.STATUS_LIST_CREDENTIAL]: CREDENTIAL_QUERY_KEYS,\n [CacheType.VCT_METADATA]: CREDENTIAL_QUERY_KEYS,\n [CacheType.JSON_SCHEMA]: CREDENTIAL_QUERY_KEYS,\n [CacheType.TRUST_LIST]: [...TRUST_ENTITY_QUERY_KEYS, ...CREDENTIAL_QUERY_KEYS],\n};\n\nexport const useCacheClear = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(\n async (cacheTypes: CacheType[]) => {\n await core.deleteCache(cacheTypes);\n return cacheTypes;\n },\n {\n onSuccess: async (_, cacheTypes) => {\n const queryKeysToInvalidate = new Set<string>();\n\n cacheTypes.forEach((cacheType) => {\n const keys = cacheTypeToQueryKeys[cacheType] || [];\n keys.forEach((key) => queryKeysToInvalidate.add(key));\n });\n\n await Promise.all([...queryKeysToInvalidate].map((queryKey) => queryClient.invalidateQueries(queryKey)));\n },\n },\n );\n};\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,WAAW,EAAEC,cAAc,QAAQ,aAAa;AAEzD,SAASC,UAAU,QAAQ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vD,CAAC,CAAC;MAEF,MAAME,OAAO,CAACC,GAAG,CAAC,CAAC,GAAGR,qBAAqB,CAAC,CAACS,GAAG,CAAEC,QAAQ,IAAKhB,WAAW,CAACiB,iBAAiB,CAACD,QAAQ,CAAC,CAAC,CAAC;IAC1G;EACF,CACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useQuery } from 'react-query';
|
|
2
|
+
import { useONECore } from './core-context';
|
|
3
|
+
const CONFIG_QUERY_KEY = 'config';
|
|
4
|
+
export const useCoreConfig = () => {
|
|
5
|
+
const {
|
|
6
|
+
core
|
|
7
|
+
} = useONECore();
|
|
8
|
+
return useQuery([CONFIG_QUERY_KEY], () => core === null || core === void 0 ? void 0 : core.getConfig(), {
|
|
9
|
+
keepPreviousData: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
export const getEnabledTransports = config => {
|
|
13
|
+
var _config$transport;
|
|
14
|
+
return Object.values((_config$transport = config === null || config === void 0 ? void 0 : config.transport) !== null && _config$transport !== void 0 ? _config$transport : {}).filter(t => t.enabled !== false).map(transport => transport.type);
|
|
15
|
+
};
|
|
16
|
+
export const getEnabledExchangeProtocols = exchangeProtocol => {
|
|
17
|
+
return Object.values(exchangeProtocol !== null && exchangeProtocol !== void 0 ? exchangeProtocol : {}).filter(t => t.enabled !== false).map(exchange => exchange.type);
|
|
18
|
+
};
|
|
19
|
+
export const getEnabledTrustManagement = config => {
|
|
20
|
+
var _config$trustManageme;
|
|
21
|
+
return Object.values((_config$trustManageme = config === null || config === void 0 ? void 0 : config.trustManagement) !== null && _config$trustManageme !== void 0 ? _config$trustManageme : {}).filter(t => t.enabled !== false).map(trustManagement => trustManagement.type);
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=core-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useQuery","useONECore","CONFIG_QUERY_KEY","useCoreConfig","core","getConfig","keepPreviousData","getEnabledTransports","config","_config$transport","Object","values","transport","filter","t","enabled","map","type","getEnabledExchangeProtocols","exchangeProtocol","exchange","getEnabledTrustManagement","_config$trustManageme","trustManagement"],"sources":["core-config.ts"],"sourcesContent":["import { Config, ConfigEntities } from '@procivis/react-native-one-core';\nimport { useQuery } from 'react-query';\n\nimport { useONECore } from './core-context';\n\nconst CONFIG_QUERY_KEY = 'config';\n\nexport const useCoreConfig = () => {\n const { core } = useONECore();\n\n return useQuery([CONFIG_QUERY_KEY], () => core?.getConfig(), {\n keepPreviousData: true,\n });\n};\n\nexport const getEnabledTransports = (config: Config): string[] => {\n return Object.values(config?.transport ?? {})\n .filter((t) => t.enabled !== false)\n .map((transport) => transport.type);\n};\n\nexport const getEnabledExchangeProtocols = (exchangeProtocol: ConfigEntities<any>): string[] => {\n return Object.values(exchangeProtocol ?? {})\n .filter((t) => t.enabled !== false)\n .map((exchange) => exchange.type);\n};\n\nexport const getEnabledTrustManagement = (config: Config): string[] => {\n return Object.values(config?.trustManagement ?? {})\n .filter((t) => t.enabled !== false)\n .map((trustManagement) => trustManagement.type);\n};\n"],"mappings":"AACA,SAASA,QAAQ,QAAQ,aAAa;AAEtC,SAASC,UAAU,QAAQ,gBAAgB;AAE3C,MAAMC,gBAAgB,GAAG,QAAQ;AAEjC,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EACjC,MAAM;IAAEC;EAAK,CAAC,GAAGH,UAAU,CAAC,CAAC;EAE7B,OAAOD,QAAQ,CAAC,CAACE,gBAAgB,CAAC,EAAE,MAAME,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEC,SAAS,CAAC,CAAC,EAAE;IAC3DC,gBAAgB,EAAE;EACpB,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,MAAMC,oBAAoB,GAAIC,MAAc,IAAe;EAAA,IAAAC,iBAAA;EAChE,OAAOC,MAAM,CAACC,MAAM,EAAAF,iBAAA,GAACD,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEI,SAAS,cAAAH,iBAAA,cAAAA,iBAAA,GAAI,CAAC,CAAC,CAAC,CAC1CI,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,OAAO,KAAK,KAAK,CAAC,CAClCC,GAAG,CAAEJ,SAAS,IAAKA,SAAS,CAACK,IAAI,CAAC;AACvC,CAAC;AAED,OAAO,MAAMC,2BAA2B,GAAIC,gBAAqC,IAAe;EAC9F,OAAOT,MAAM,CAACC,MAAM,CAACQ,gBAAgB,aAAhBA,gBAAgB,cAAhBA,gBAAgB,GAAI,CAAC,CAAC,CAAC,CACzCN,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,OAAO,KAAK,KAAK,CAAC,CAClCC,GAAG,CAAEI,QAAQ,IAAKA,QAAQ,CAACH,IAAI,CAAC;AACrC,CAAC;AAED,OAAO,MAAMI,yBAAyB,GAAIb,MAAc,IAAe;EAAA,IAAAc,qBAAA;EACrE,OAAOZ,MAAM,CAACC,MAAM,EAAAW,qBAAA,GAACd,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEe,eAAe,cAAAD,qBAAA,cAAAA,qBAAA,GAAI,CAAC,CAAC,CAAC,CAChDT,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,OAAO,KAAK,KAAK,CAAC,CAClCC,GAAG,CAAEO,eAAe,IAAKA,eAAe,CAACN,IAAI,CAAC;AACnD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { initializeCore } from '@procivis/react-native-one-core';
|
|
2
|
+
import React, { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import { reportException } from '../../reporting';
|
|
4
|
+
import { getEnabledTrustManagement } from './core-config';
|
|
5
|
+
import { TrustManagementEnum, useCreateTrustAnchor } from './trust-entity';
|
|
6
|
+
const defaultContextValue = {
|
|
7
|
+
core: {},
|
|
8
|
+
organisationId: '11111111-2222-3333-a444-ffffffffffff',
|
|
9
|
+
initialize: () => Promise.reject()
|
|
10
|
+
};
|
|
11
|
+
const ONECoreContext = /*#__PURE__*/createContext(defaultContextValue);
|
|
12
|
+
export const ONECoreContextProvider = ({
|
|
13
|
+
children,
|
|
14
|
+
organisationId = '11111111-2222-3333-a444-ffffffffffff',
|
|
15
|
+
publisherReference,
|
|
16
|
+
config
|
|
17
|
+
}) => {
|
|
18
|
+
const [core, setCore] = useState();
|
|
19
|
+
const createTrustAnchor = useCreateTrustAnchor(publisherReference);
|
|
20
|
+
const initialize = useCallback(async force => {
|
|
21
|
+
if (core && !force) {
|
|
22
|
+
return core;
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
const coreInstance = await initializeCore(config);
|
|
26
|
+
setCore(coreInstance);
|
|
27
|
+
return coreInstance;
|
|
28
|
+
} catch (e) {
|
|
29
|
+
reportException(e, 'Failed to initialize core');
|
|
30
|
+
throw e;
|
|
31
|
+
}
|
|
32
|
+
}, [core, config]);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
const corePromise = initialize();
|
|
35
|
+
return () => {
|
|
36
|
+
corePromise.then(c => c === null || c === void 0 ? void 0 : c.uninitialize(false)).catch(e => {
|
|
37
|
+
reportException(e, 'Core uninitialization error');
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
42
|
+
[]);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (!core) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
core.getConfig().then(coreConfig => {
|
|
48
|
+
const trustManagementEnabled = getEnabledTrustManagement(coreConfig).includes(TrustManagementEnum.SimpleTrustList);
|
|
49
|
+
if (trustManagementEnabled) {
|
|
50
|
+
createTrustAnchor(core).catch(() => {});
|
|
51
|
+
}
|
|
52
|
+
}).catch(() => {});
|
|
53
|
+
}, [core, createTrustAnchor]);
|
|
54
|
+
const contextValue = useMemo(() => ({
|
|
55
|
+
core: core !== null && core !== void 0 ? core : defaultContextValue.core,
|
|
56
|
+
organisationId,
|
|
57
|
+
initialize
|
|
58
|
+
}), [core, initialize, organisationId]);
|
|
59
|
+
if (!core) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return /*#__PURE__*/React.createElement(ONECoreContext.Provider, {
|
|
63
|
+
value: contextValue
|
|
64
|
+
}, children);
|
|
65
|
+
};
|
|
66
|
+
export const useONECore = () => useContext(ONECoreContext);
|
|
67
|
+
//# sourceMappingURL=core-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["initializeCore","React","createContext","useCallback","useContext","useEffect","useMemo","useState","reportException","getEnabledTrustManagement","TrustManagementEnum","useCreateTrustAnchor","defaultContextValue","core","organisationId","initialize","Promise","reject","ONECoreContext","ONECoreContextProvider","children","publisherReference","config","setCore","createTrustAnchor","force","coreInstance","e","corePromise","then","c","uninitialize","catch","getConfig","coreConfig","trustManagementEnabled","includes","SimpleTrustList","contextValue","createElement","Provider","value","useONECore"],"sources":["core-context.tsx"],"sourcesContent":["import { initializeCore, ONECore } from '@procivis/react-native-one-core';\nimport React, {\n createContext,\n FC,\n PropsWithChildren,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react';\n\nimport { reportException } from '../../reporting';\nimport { getEnabledTrustManagement } from './core-config';\nimport { TrustManagementEnum, useCreateTrustAnchor } from './trust-entity';\n\ninterface ContextValue {\n core: ONECore;\n organisationId: string;\n initialize: (force?: boolean) => Promise<ONECore>;\n}\n\nconst defaultContextValue: ContextValue = {\n core: {} as ONECore,\n organisationId: '11111111-2222-3333-a444-ffffffffffff',\n initialize: () => Promise.reject(),\n};\n\nexport type ONECoreContextProviderProps = {\n config?: Record<string, unknown>;\n organisationId?: string;\n publisherReference: string;\n};\n\nconst ONECoreContext = createContext<ContextValue>(defaultContextValue);\n\nexport const ONECoreContextProvider: FC<PropsWithChildren<ONECoreContextProviderProps>> = ({\n children,\n organisationId = '11111111-2222-3333-a444-ffffffffffff',\n publisherReference,\n config,\n}) => {\n const [core, setCore] = useState<ONECore>();\n const createTrustAnchor = useCreateTrustAnchor(publisherReference);\n\n const initialize = useCallback(\n async (force?: boolean) => {\n if (core && !force) {\n return core;\n }\n\n try {\n const coreInstance = await initializeCore(config);\n setCore(coreInstance);\n return coreInstance;\n } catch (e) {\n reportException(e, 'Failed to initialize core');\n throw e;\n }\n },\n [core, config],\n );\n\n useEffect(\n () => {\n const corePromise = initialize();\n return () => {\n corePromise\n .then((c) => c?.uninitialize(false))\n .catch((e) => {\n reportException(e, 'Core uninitialization error');\n });\n };\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [],\n );\n\n useEffect(() => {\n if (!core) {\n return;\n }\n\n core\n .getConfig()\n .then((coreConfig) => {\n const trustManagementEnabled = getEnabledTrustManagement(coreConfig).includes(\n TrustManagementEnum.SimpleTrustList,\n );\n\n if (trustManagementEnabled) {\n createTrustAnchor(core).catch(() => {});\n }\n })\n .catch(() => {});\n }, [core, createTrustAnchor]);\n\n const contextValue = useMemo(\n () => ({\n core: core ?? defaultContextValue.core,\n organisationId,\n initialize,\n }),\n [core, initialize, organisationId],\n );\n\n if (!core) {\n return null;\n }\n\n return <ONECoreContext.Provider value={contextValue}>{children}</ONECoreContext.Provider>;\n};\n\nexport const useONECore = () => useContext(ONECoreContext);\n"],"mappings":"AAAA,SAASA,cAAc,QAAiB,iCAAiC;AACzE,OAAOC,KAAK,IACVC,aAAa,EAGbC,WAAW,EACXC,UAAU,EACVC,SAAS,EACTC,OAAO,EACPC,QAAQ,QACH,OAAO;AAEd,SAASC,eAAe,QAAQ,iBAAiB;AACjD,SAASC,yBAAyB,QAAQ,eAAe;AACzD,SAASC,mBAAmB,EAAEC,oBAAoB,QAAQ,gBAAgB;AAQ1E,MAAMC,mBAAiC,GAAG;EACxCC,IAAI,EAAE,CAAC,CAAY;EACnBC,cAAc,EAAE,sCAAsC;EACtDC,UAAU,EAAEA,CAAA,KAAMC,OAAO,CAACC,MAAM,CAAC;AACnC,CAAC;A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AAyB,CAACyB,UAAU,CAAC,CAACE,QAAQ,CAC3E1B,mBAAmB,CAAC2B,eACtB,CAAC;MAED,IAAIF,sBAAsB,EAAE;QAC1BX,iBAAiB,CAACX,IAAI,CAAC,CAACmB,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;MACzC;IACF,CAAC,CAAC,CACDA,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;EACpB,CAAC,EAAE,CAACnB,IAAI,EAAEW,iBAAiB,CAAC,CAAC;EAE7B,MAAMc,YAAY,GAAGhC,OAAO,CAC1B,OAAO;IACLO,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAID,mBAAmB,CAACC,IAAI;IACtCC,cAAc;IACdC;EACF,CAAC,CAAC,EACF,CAACF,IAAI,EAAEE,UAAU,EAAED,cAAc,CACnC,CAAC;EAED,IAAI,CAACD,IAAI,EAAE;IACT,OAAO,IAAI;EACb;EAEA,oBAAOZ,KAAA,CAAAsC,aAAA,CAACrB,cAAc,CAACsB,QAAQ;IAACC,KAAK,EAAEH;EAAa,GAAElB,QAAkC,CAAC;AAC3F,CAAC;AAED,OAAO,MAAMsB,UAAU,GAAGA,CAAA,KAAMtC,UAAU,CAACc,cAAc,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { OneError } from '@procivis/react-native-one-core';
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
import { reportException } from '../../reporting';
|
|
4
|
+
import { useONECore } from './core-context';
|
|
5
|
+
import { OneErrorCode } from './error-code';
|
|
6
|
+
export const SW_DID_NAME_PREFIX = 'holder-did-sw-key';
|
|
7
|
+
export const HW_DID_NAME_PREFIX = 'holder-did-hw-key';
|
|
8
|
+
const generateHwDid = async (core, organisationId) => {
|
|
9
|
+
const hwKeyId = await core.generateKey({
|
|
10
|
+
keyParams: {},
|
|
11
|
+
keyType: 'ECDSA',
|
|
12
|
+
name: 'holder-key-hw',
|
|
13
|
+
organisationId,
|
|
14
|
+
storageParams: {},
|
|
15
|
+
storageType: 'SECURE_ELEMENT'
|
|
16
|
+
}).catch(e => {
|
|
17
|
+
// ignore if HW keys not supported by device
|
|
18
|
+
if (e instanceof OneError && e.code === OneErrorCode.KeyStorageNotSupported) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
throw e;
|
|
22
|
+
});
|
|
23
|
+
if (hwKeyId) {
|
|
24
|
+
return core.createDid({
|
|
25
|
+
didMethod: 'KEY',
|
|
26
|
+
keys: {
|
|
27
|
+
assertionMethod: [hwKeyId],
|
|
28
|
+
authentication: [hwKeyId],
|
|
29
|
+
capabilityDelegation: [hwKeyId],
|
|
30
|
+
capabilityInvocation: [hwKeyId],
|
|
31
|
+
keyAgreement: [hwKeyId]
|
|
32
|
+
},
|
|
33
|
+
name: HW_DID_NAME_PREFIX,
|
|
34
|
+
organisationId,
|
|
35
|
+
params: {}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
};
|
|
40
|
+
const generateSwDid = async (core, organisationId) => {
|
|
41
|
+
const swKeyId = await core.generateKey({
|
|
42
|
+
keyParams: {},
|
|
43
|
+
keyType: 'ECDSA',
|
|
44
|
+
name: 'holder-key-sw',
|
|
45
|
+
organisationId,
|
|
46
|
+
storageParams: {},
|
|
47
|
+
storageType: 'INTERNAL'
|
|
48
|
+
});
|
|
49
|
+
return core.createDid({
|
|
50
|
+
didMethod: 'KEY',
|
|
51
|
+
keys: {
|
|
52
|
+
assertionMethod: [swKeyId],
|
|
53
|
+
authentication: [swKeyId],
|
|
54
|
+
capabilityDelegation: [swKeyId],
|
|
55
|
+
capabilityInvocation: [swKeyId],
|
|
56
|
+
keyAgreement: [swKeyId]
|
|
57
|
+
},
|
|
58
|
+
name: SW_DID_NAME_PREFIX,
|
|
59
|
+
organisationId,
|
|
60
|
+
params: {}
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Create base local identifiers
|
|
65
|
+
* @param {IdentifiersInitializationConfig} config Select desired keys/dids to be created
|
|
66
|
+
* @returns [hwDidId, swDidId]
|
|
67
|
+
*/
|
|
68
|
+
export const useInitializeONECoreIdentifiers = ({
|
|
69
|
+
generateHwKey,
|
|
70
|
+
generateSwKey
|
|
71
|
+
}) => {
|
|
72
|
+
const {
|
|
73
|
+
core,
|
|
74
|
+
organisationId
|
|
75
|
+
} = useONECore();
|
|
76
|
+
return useCallback(async () => {
|
|
77
|
+
return await core.createOrganisation({
|
|
78
|
+
id: organisationId
|
|
79
|
+
}).catch(e => {
|
|
80
|
+
if (e instanceof OneError && e.code === OneErrorCode.OrganisationAlreadyExists) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
throw e;
|
|
84
|
+
}).then(() => Promise.all([generateHwKey ? generateHwDid(core, organisationId) : null, generateSwKey ? generateSwDid(core, organisationId) : null])).catch(err => {
|
|
85
|
+
reportException(err, 'Failed to create base identifiers');
|
|
86
|
+
throw err;
|
|
87
|
+
});
|
|
88
|
+
}, [core, organisationId, generateHwKey, generateSwKey]);
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=core-init.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["OneError","useCallback","reportException","useONECore","OneErrorCode","SW_DID_NAME_PREFIX","HW_DID_NAME_PREFIX","generateHwDid","core","organisationId","hwKeyId","generateKey","keyParams","keyType","name","storageParams","storageType","catch","e","code","KeyStorageNotSupported","createDid","didMethod","keys","assertionMethod","authentication","capabilityDelegation","capabilityInvocation","keyAgreement","params","generateSwDid","swKeyId","useInitializeONECoreIdentifiers","generateHwKey","generateSwKey","createOrganisation","id","OrganisationAlreadyExists","then","Promise","all","err"],"sources":["core-init.ts"],"sourcesContent":["import { ONECore, OneError } from '@procivis/react-native-one-core';\nimport { useCallback } from 'react';\n\nimport { reportException } from '../../reporting';\nimport { useONECore } from './core-context';\nimport { OneErrorCode } from './error-code';\n\nexport const SW_DID_NAME_PREFIX = 'holder-did-sw-key';\nexport const HW_DID_NAME_PREFIX = 'holder-did-hw-key';\n\nconst generateHwDid = async (core: ONECore, organisationId: string) => {\n const hwKeyId = await core\n .generateKey({\n keyParams: {},\n keyType: 'ECDSA',\n name: 'holder-key-hw',\n organisationId,\n storageParams: {},\n storageType: 'SECURE_ELEMENT',\n })\n .catch((e) => {\n // ignore if HW keys not supported by device\n if (e instanceof OneError && e.code === OneErrorCode.KeyStorageNotSupported) {\n return null;\n }\n throw e;\n });\n\n if (hwKeyId) {\n return core.createDid({\n didMethod: 'KEY',\n keys: {\n assertionMethod: [hwKeyId],\n authentication: [hwKeyId],\n capabilityDelegation: [hwKeyId],\n capabilityInvocation: [hwKeyId],\n keyAgreement: [hwKeyId],\n },\n name: HW_DID_NAME_PREFIX,\n organisationId,\n params: {},\n });\n }\n\n return null;\n};\n\nconst generateSwDid = async (core: ONECore, organisationId: string) => {\n const swKeyId = await core.generateKey({\n keyParams: {},\n keyType: 'ECDSA',\n name: 'holder-key-sw',\n organisationId,\n storageParams: {},\n storageType: 'INTERNAL',\n });\n\n return core.createDid({\n didMethod: 'KEY',\n keys: {\n assertionMethod: [swKeyId],\n authentication: [swKeyId],\n capabilityDelegation: [swKeyId],\n capabilityInvocation: [swKeyId],\n keyAgreement: [swKeyId],\n },\n name: SW_DID_NAME_PREFIX,\n organisationId,\n params: {},\n });\n};\n\nexport interface IdentifiersInitializationConfig {\n generateHwKey: boolean;\n generateSwKey: boolean;\n}\n\n/**\n * Create base local identifiers\n * @param {IdentifiersInitializationConfig} config Select desired keys/dids to be created\n * @returns [hwDidId, swDidId]\n */\nexport const useInitializeONECoreIdentifiers = ({ generateHwKey, generateSwKey }: IdentifiersInitializationConfig) => {\n const { core, organisationId } = useONECore();\n\n return useCallback(async () => {\n return await core\n .createOrganisation({ id: organisationId })\n .catch((e) => {\n if (e instanceof OneError && e.code === OneErrorCode.OrganisationAlreadyExists) {\n return;\n }\n throw e;\n })\n .then(() =>\n Promise.all([\n generateHwKey ? generateHwDid(core, organisationId) : null,\n generateSwKey ? generateSwDid(core, organisationId) : null,\n ]),\n )\n .catch((err) => {\n reportException(err, 'Failed to create base identifiers');\n throw err;\n });\n }, [core, organisationId, generateHwKey, generateSwKey]);\n};\n"],"mappings":"AAAA,SAAkBA,QAAQ,QAAQ,iCAAiC;AACnE,SAASC,WAAW,QAAQ,OAAO;AAEnC,SAASC,eAAe,QAAQ,iBAAiB;AACjD,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,SAASC,YAAY,QAAQ,cAAc;AAE3C,OAAO,MAAMC,kBAAkB,GAAG,mBAAmB;AACrD,OAAO,MAAMC,kBAAkB,GAAG,mBAAmB;AAErD,MAAMC,aAAa,GAAG,MAAAA,CAAOC,IAAa,EAAEC,cAAsB,KAAK;EACrE,MAAMC,OAAO,GAAG,MAAMF,IAAI,CACvBG,WAAW,CAAC;IACXC,SAAS,EAAE,CAAC,CAAC;IACbC,OAAO,EAAE,OAAO;IAChBC,IAAI,EAAE,eAAe;IACrBL,cAAc;IACdM,aAAa,EAAE,CAAC,CAAC;IACjBC,WAAW,EAAE;EACf,CAAC,CAAC,CACDC,KAAK,CAAEC,CAAC,IAAK;IACZ;IACA,IAAIA,CAAC,YAAYlB,QAAQ,IAAIkB,CAAC,CAACC,IAAI,KAAKf,YAAY,CAACgB,sBAAsB,EAAE;MAC3E,OAAO,IAAI;IACb;IACA,MAAMF,CAAC;EACT,CAAC,CAAC;EAEJ,IAAIR,OAAO,EAAE;IACX,OAAOF,IAAI,CAACa,SAAS,CAAC;MACpBC,SAAS,EAAE,KAAK;MAChBC,IAAI,EAAE;QACJC,eAAe,EAAE,CAACd,OAAO,CAAC;QAC1Be,cAAc,EAAE,CAACf,OAAO,CAAC;QACzBgB,oBAAoB,EAAE,CAAChB,OAAO,CAAC;QAC/BiB,oBAAoB,EAAE,CAACjB,OAAO,CAAC;QAC/BkB,YAAY,EAAE,CAAClB,OAAO;MACxB,CAAC;MACDI,IAAI,EAAER,kBAAkB;M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B,IAAI,CAAC,MACJC,OAAO,CAACC,GAAG,CAAC,CACVP,aAAa,GAAG1B,aAAa,CAACC,IAAI,EAAEC,cAAc,CAAC,GAAG,IAAI,EAC1DyB,aAAa,GAAGJ,aAAa,CAACtB,IAAI,EAAEC,cAAc,CAAC,GAAG,IAAI,CAC3D,CACH,CAAC,CACAQ,KAAK,CAAEwB,GAAG,IAAK;MACdvC,eAAe,CAACuC,GAAG,EAAE,mCAAmC,CAAC;MACzD,MAAMA,GAAG;IACX,CAAC,CAAC;EACN,CAAC,EAAE,CAACjC,IAAI,EAAEC,cAAc,EAAEwB,aAAa,EAAEC,aAAa,CAAC,CAAC;AAC1D,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from 'react-query';
|
|
2
|
+
import { getQueryKeyFromCredentialSchemaListQueryParams } from '../../parsers/query';
|
|
3
|
+
import { useHTTPClient } from '../http/client';
|
|
4
|
+
import { useONECore } from './core-context';
|
|
5
|
+
import { HISTORY_LIST_QUERY_KEY } from './history';
|
|
6
|
+
const PAGE_SIZE = 10;
|
|
7
|
+
export const CREDENTIAL_SCHEMA_LIST_QUERY_KEY = 'credential-schema-list';
|
|
8
|
+
export const CREDENTIAL_SCHEMA_DETAIL_QUERY_KEY = 'credential-schema-detail';
|
|
9
|
+
export const CREDENTIAL_SCHEMA_PREVIEW_QUERY_KEY = 'credential-schema-preview';
|
|
10
|
+
export const CREDENTIAL_SCHEMA_SHARE_QUERY_KEY = 'credential-schema-share';
|
|
11
|
+
export const useCredentialSchemas = queryParams => {
|
|
12
|
+
const {
|
|
13
|
+
core,
|
|
14
|
+
organisationId
|
|
15
|
+
} = useONECore();
|
|
16
|
+
return useInfiniteQuery([CREDENTIAL_SCHEMA_LIST_QUERY_KEY, ...getQueryKeyFromCredentialSchemaListQueryParams(queryParams)], ({
|
|
17
|
+
pageParam = 0
|
|
18
|
+
}) => core.getCredentialSchemas({
|
|
19
|
+
organisationId,
|
|
20
|
+
page: pageParam,
|
|
21
|
+
pageSize: PAGE_SIZE,
|
|
22
|
+
...queryParams
|
|
23
|
+
}).then(({
|
|
24
|
+
values
|
|
25
|
+
}) => values), {
|
|
26
|
+
getNextPageParam: (lastPage, allPages) => lastPage.length === PAGE_SIZE ? allPages.length : undefined,
|
|
27
|
+
keepPreviousData: true
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
export const useCredentialSchemaPreview = url => {
|
|
31
|
+
const httpClient = useHTTPClient();
|
|
32
|
+
return useQuery([CREDENTIAL_SCHEMA_PREVIEW_QUERY_KEY, url], () => httpClient.get(url).then(response => {
|
|
33
|
+
if (!response.ok) {
|
|
34
|
+
throw response.originalError;
|
|
35
|
+
}
|
|
36
|
+
return response.data;
|
|
37
|
+
}), {
|
|
38
|
+
keepPreviousData: true
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
export const useCredentialSchemaAccept = () => {
|
|
42
|
+
const queryClient = useQueryClient();
|
|
43
|
+
const {
|
|
44
|
+
core,
|
|
45
|
+
organisationId
|
|
46
|
+
} = useONECore();
|
|
47
|
+
return useMutation(async schema => core.importCredentialSchema({
|
|
48
|
+
organisationId,
|
|
49
|
+
schema
|
|
50
|
+
}), {
|
|
51
|
+
onSuccess: async () => {
|
|
52
|
+
await queryClient.invalidateQueries(CREDENTIAL_SCHEMA_LIST_QUERY_KEY);
|
|
53
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
export const useCredentialSchemaDetail = (credentialId, active = true) => {
|
|
58
|
+
const {
|
|
59
|
+
core
|
|
60
|
+
} = useONECore();
|
|
61
|
+
return useQuery([CREDENTIAL_SCHEMA_DETAIL_QUERY_KEY, credentialId], () => credentialId ? core.getCredentialSchema(credentialId) : undefined, {
|
|
62
|
+
enabled: active && Boolean(credentialId),
|
|
63
|
+
keepPreviousData: true
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
export const useCredentialSchemaDelete = () => {
|
|
67
|
+
const queryClient = useQueryClient();
|
|
68
|
+
const {
|
|
69
|
+
core
|
|
70
|
+
} = useONECore();
|
|
71
|
+
return useMutation(async credentialSchemaId => core.deleteCredentialSchema(credentialSchemaId), {
|
|
72
|
+
onSuccess: async (_, credentialId) => {
|
|
73
|
+
await queryClient.invalidateQueries(CREDENTIAL_SCHEMA_LIST_QUERY_KEY);
|
|
74
|
+
await queryClient.removeQueries([CREDENTIAL_SCHEMA_DETAIL_QUERY_KEY, credentialId]);
|
|
75
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
export const useShareCredentialSchema = schemaId => {
|
|
80
|
+
const {
|
|
81
|
+
core
|
|
82
|
+
} = useONECore();
|
|
83
|
+
return useQuery([CREDENTIAL_SCHEMA_SHARE_QUERY_KEY, schemaId], () => schemaId ? core.shareCredentialSchema(schemaId) : Promise.reject(), {
|
|
84
|
+
enabled: Boolean(schemaId),
|
|
85
|
+
keepPreviousData: true
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=credential-schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useInfiniteQuery","useMutation","useQuery","useQueryClient","getQueryKeyFromCredentialSchemaListQueryParams","useHTTPClient","useONECore","HISTORY_LIST_QUERY_KEY","PAGE_SIZE","CREDENTIAL_SCHEMA_LIST_QUERY_KEY","CREDENTIAL_SCHEMA_DETAIL_QUERY_KEY","CREDENTIAL_SCHEMA_PREVIEW_QUERY_KEY","CREDENTIAL_SCHEMA_SHARE_QUERY_KEY","useCredentialSchemas","queryParams","core","organisationId","pageParam","getCredentialSchemas","page","pageSize","then","values","getNextPageParam","lastPage","allPages","length","undefined","keepPreviousData","useCredentialSchemaPreview","url","httpClient","get","response","ok","originalError","data","useCredentialSchemaAccept","queryClient","schema","importCredentialSchema","onSuccess","invalidateQueries","useCredentialSchemaDetail","credentialId","active","getCredentialSchema","enabled","Boolean","useCredentialSchemaDelete","credentialSchemaId","deleteCredentialSchema","_","removeQueries","useShareCredentialSchema","schemaId","shareCredentialSchema","Promise","reject"],"sources":["credential-schemas.ts"],"sourcesContent":["import { CredentialSchemaListQuery, ImportCredentialSchemaRequestSchema } from '@procivis/react-native-one-core';\nimport { useInfiniteQuery, useMutation, useQuery, useQueryClient } from 'react-query';\n\nimport { getQueryKeyFromCredentialSchemaListQueryParams } from '../../parsers/query';\nimport { useHTTPClient } from '../http/client';\nimport { useONECore } from './core-context';\nimport { HISTORY_LIST_QUERY_KEY } from './history';\n\nconst PAGE_SIZE = 10;\nexport const CREDENTIAL_SCHEMA_LIST_QUERY_KEY = 'credential-schema-list';\nexport const CREDENTIAL_SCHEMA_DETAIL_QUERY_KEY = 'credential-schema-detail';\nexport const CREDENTIAL_SCHEMA_PREVIEW_QUERY_KEY = 'credential-schema-preview';\nexport const CREDENTIAL_SCHEMA_SHARE_QUERY_KEY = 'credential-schema-share';\n\nexport const useCredentialSchemas = (queryParams?: Partial<CredentialSchemaListQuery>) => {\n const { core, organisationId } = useONECore();\n\n return useInfiniteQuery(\n [CREDENTIAL_SCHEMA_LIST_QUERY_KEY, ...getQueryKeyFromCredentialSchemaListQueryParams(queryParams)],\n ({ pageParam = 0 }) =>\n core\n .getCredentialSchemas({\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: true,\n },\n );\n};\n\nexport const useCredentialSchemaPreview = (url: string) => {\n const httpClient = useHTTPClient();\n\n return useQuery(\n [CREDENTIAL_SCHEMA_PREVIEW_QUERY_KEY, url],\n () =>\n httpClient.get(url).then((response) => {\n if (!response.ok) {\n throw response.originalError;\n }\n return response.data as ImportCredentialSchemaRequestSchema;\n }),\n {\n keepPreviousData: true,\n },\n );\n};\n\nexport const useCredentialSchemaAccept = () => {\n const queryClient = useQueryClient();\n const { core, organisationId } = useONECore();\n\n return useMutation(\n async (schema: ImportCredentialSchemaRequestSchema) =>\n core.importCredentialSchema({\n organisationId,\n schema,\n }),\n {\n onSuccess: async () => {\n await queryClient.invalidateQueries(CREDENTIAL_SCHEMA_LIST_QUERY_KEY);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n },\n );\n};\n\nexport const useCredentialSchemaDetail = (credentialId: string | undefined, active = true) => {\n const { core } = useONECore();\n\n return useQuery(\n [CREDENTIAL_SCHEMA_DETAIL_QUERY_KEY, credentialId],\n () => (credentialId ? core.getCredentialSchema(credentialId) : undefined),\n {\n enabled: active && Boolean(credentialId),\n keepPreviousData: true,\n },\n );\n};\n\nexport const useCredentialSchemaDelete = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(async (credentialSchemaId: string) => core.deleteCredentialSchema(credentialSchemaId), {\n onSuccess: async (_, credentialId) => {\n await queryClient.invalidateQueries(CREDENTIAL_SCHEMA_LIST_QUERY_KEY);\n await queryClient.removeQueries([CREDENTIAL_SCHEMA_DETAIL_QUERY_KEY, credentialId]);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n });\n};\n\nexport const useShareCredentialSchema = (schemaId?: string) => {\n const { core } = useONECore();\n\n return useQuery(\n [CREDENTIAL_SCHEMA_SHARE_QUERY_KEY, schemaId],\n () => (schemaId ? core.shareCredentialSchema(schemaId) : Promise.reject()),\n {\n enabled: Boolean(schemaId),\n keepPreviousData: true,\n },\n );\n};\n"],"mappings":"AACA,SAASA,gBAAgB,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,cAAc,QAAQ,aAAa;AAErF,SAASC,8CAA8C,QAAQ,qBAAqB;AACpF,SAASC,aAAa,QAAQ,gBAAgB;AAC9C,SAASC,UAAU,QAAQ,gBAAgB;AAC3C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MN,WAAW,CAACI,iBAAiB,CAACjC,gCAAgC,CAAC;MACrE,MAAM6B,WAAW,CAACe,aAAa,CAAC,CAAC3C,kCAAkC,EAAEkC,YAAY,CAAC,CAAC;MACnF,MAAMN,WAAW,CAACI,iBAAiB,CAACnC,sBAAsB,CAAC;IAC7D;EACF,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,MAAM+C,wBAAwB,GAAIC,QAAiB,IAAK;EAC7D,MAAM;IAAExC;EAAK,CAAC,GAAGT,UAAU,CAAC,CAAC;EAE7B,OAAOJ,QAAQ,CACb,CAACU,iCAAiC,EAAE2C,QAAQ,CAAC,EAC7C,MAAOA,QAAQ,GAAGxC,IAAI,CAACyC,qBAAqB,CAACD,QAAQ,CAAC,GAAGE,OAAO,CAACC,MAAM,CAAC,CAAE,EAC1E;IACEX,OAAO,EAAEC,OAAO,CAACO,QAAQ,CAAC;IAC1B3B,gBAAgB,EAAE;EACpB,CACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { CredentialStateEnum, OneError } from '@procivis/react-native-one-core';
|
|
2
|
+
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from 'react-query';
|
|
3
|
+
import { getQueryKeyFromCredentialListQueryParams } from '../../parsers/query';
|
|
4
|
+
import { useONECore } from './core-context';
|
|
5
|
+
import { CREDENTIAL_SCHEMA_LIST_QUERY_KEY } from './credential-schemas';
|
|
6
|
+
import { OneErrorCode } from './error-code';
|
|
7
|
+
import { HISTORY_LIST_QUERY_KEY } from './history';
|
|
8
|
+
const PAGE_SIZE = 20;
|
|
9
|
+
export const CREDENTIAL_LIST_QUERY_KEY = 'credential-list';
|
|
10
|
+
export const CREDENTIAL_LIST_PAGED_QUERY_KEY = 'credential-list-paged';
|
|
11
|
+
export const CREDENTIAL_DETAIL_QUERY_KEY = 'credential-detail';
|
|
12
|
+
export const useCredentials = queryParams => {
|
|
13
|
+
const {
|
|
14
|
+
core,
|
|
15
|
+
organisationId
|
|
16
|
+
} = useONECore();
|
|
17
|
+
return useQuery([CREDENTIAL_LIST_QUERY_KEY, ...getQueryKeyFromCredentialListQueryParams(queryParams)], async () => {
|
|
18
|
+
const {
|
|
19
|
+
values
|
|
20
|
+
} = await core.getCredentials({
|
|
21
|
+
organisationId,
|
|
22
|
+
page: 0,
|
|
23
|
+
// TODO: workaround pagination for now, until it's supported by UI
|
|
24
|
+
pageSize: 10000,
|
|
25
|
+
status: [CredentialStateEnum.ACCEPTED, CredentialStateEnum.SUSPENDED, CredentialStateEnum.REVOKED],
|
|
26
|
+
...queryParams
|
|
27
|
+
});
|
|
28
|
+
return values;
|
|
29
|
+
}, {
|
|
30
|
+
keepPreviousData: true
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export const usePagedCredentials = queryParams => {
|
|
34
|
+
const {
|
|
35
|
+
core,
|
|
36
|
+
organisationId
|
|
37
|
+
} = useONECore();
|
|
38
|
+
return useInfiniteQuery([CREDENTIAL_LIST_QUERY_KEY, CREDENTIAL_LIST_PAGED_QUERY_KEY, ...getQueryKeyFromCredentialListQueryParams(queryParams)], ({
|
|
39
|
+
pageParam = 0
|
|
40
|
+
}) => core.getCredentials({
|
|
41
|
+
organisationId,
|
|
42
|
+
page: pageParam,
|
|
43
|
+
pageSize: PAGE_SIZE,
|
|
44
|
+
status: [CredentialStateEnum.ACCEPTED, CredentialStateEnum.SUSPENDED, CredentialStateEnum.REVOKED],
|
|
45
|
+
...queryParams
|
|
46
|
+
}), {
|
|
47
|
+
getNextPageParam: (lastPage, allPages) => allPages.length < lastPage.totalPages ? allPages.length : undefined,
|
|
48
|
+
keepPreviousData: true
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
export const useCredentialDetail = (credentialId, active = true) => {
|
|
52
|
+
const {
|
|
53
|
+
core
|
|
54
|
+
} = useONECore();
|
|
55
|
+
return useQuery([CREDENTIAL_DETAIL_QUERY_KEY, credentialId], () => credentialId ? core.getCredential(credentialId) : undefined, {
|
|
56
|
+
enabled: active && Boolean(credentialId),
|
|
57
|
+
keepPreviousData: true
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
export const useInvitationHandler = () => {
|
|
61
|
+
const queryClient = useQueryClient();
|
|
62
|
+
const {
|
|
63
|
+
core,
|
|
64
|
+
organisationId
|
|
65
|
+
} = useONECore();
|
|
66
|
+
return useMutation(async ({
|
|
67
|
+
invitationUrl,
|
|
68
|
+
transport
|
|
69
|
+
}) => core.handleInvitation(invitationUrl, organisationId, [transport]), {
|
|
70
|
+
onSuccess: async result => {
|
|
71
|
+
if ('credentialIds' in result) {
|
|
72
|
+
await queryClient.invalidateQueries(CREDENTIAL_LIST_QUERY_KEY);
|
|
73
|
+
await queryClient.invalidateQueries(CREDENTIAL_SCHEMA_LIST_QUERY_KEY);
|
|
74
|
+
}
|
|
75
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
export const useCredentialAccept = () => {
|
|
80
|
+
const queryClient = useQueryClient();
|
|
81
|
+
const {
|
|
82
|
+
core
|
|
83
|
+
} = useONECore();
|
|
84
|
+
return useMutation(async ({
|
|
85
|
+
interactionId,
|
|
86
|
+
didId,
|
|
87
|
+
keyId,
|
|
88
|
+
txCode
|
|
89
|
+
}) => core.holderAcceptCredential(interactionId, didId, keyId, txCode), {
|
|
90
|
+
onSuccess: async () => {
|
|
91
|
+
await queryClient.invalidateQueries(CREDENTIAL_LIST_QUERY_KEY);
|
|
92
|
+
await queryClient.invalidateQueries(CREDENTIAL_DETAIL_QUERY_KEY);
|
|
93
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
export const useCredentialReject = () => {
|
|
98
|
+
const queryClient = useQueryClient();
|
|
99
|
+
const {
|
|
100
|
+
core
|
|
101
|
+
} = useONECore();
|
|
102
|
+
return useMutation(async interactionId => core.holderRejectCredential(interactionId).catch(e => {
|
|
103
|
+
if (e instanceof OneError && e.code === OneErrorCode.OperationNotSupported) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
throw e;
|
|
107
|
+
}), {
|
|
108
|
+
onSuccess: async () => {
|
|
109
|
+
await queryClient.invalidateQueries(CREDENTIAL_LIST_QUERY_KEY);
|
|
110
|
+
await queryClient.invalidateQueries(CREDENTIAL_DETAIL_QUERY_KEY);
|
|
111
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
export const useCredentialRevocationCheck = forceRefresh => {
|
|
116
|
+
const queryClient = useQueryClient();
|
|
117
|
+
const {
|
|
118
|
+
core
|
|
119
|
+
} = useONECore();
|
|
120
|
+
return useMutation(async credentialIds => core.checkRevocation(credentialIds, forceRefresh), {
|
|
121
|
+
onSuccess: async () => {
|
|
122
|
+
await queryClient.invalidateQueries(CREDENTIAL_LIST_QUERY_KEY);
|
|
123
|
+
await queryClient.invalidateQueries(CREDENTIAL_DETAIL_QUERY_KEY);
|
|
124
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
export const useCredentialDelete = () => {
|
|
129
|
+
const queryClient = useQueryClient();
|
|
130
|
+
const {
|
|
131
|
+
core
|
|
132
|
+
} = useONECore();
|
|
133
|
+
return useMutation(async credentialId => core.deleteCredential(credentialId), {
|
|
134
|
+
onSuccess: async (_, credentialId) => {
|
|
135
|
+
await queryClient.invalidateQueries(CREDENTIAL_LIST_QUERY_KEY);
|
|
136
|
+
await queryClient.removeQueries([CREDENTIAL_DETAIL_QUERY_KEY, credentialId]);
|
|
137
|
+
await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
export const useInvalidateCredentialDetails = () => {
|
|
142
|
+
const queryClient = useQueryClient();
|
|
143
|
+
return credentialId => queryClient.invalidateQueries([CREDENTIAL_DETAIL_QUERY_KEY, credentialId]);
|
|
144
|
+
};
|
|
145
|
+
//# sourceMappingURL=credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CredentialStateEnum","OneError","useInfiniteQuery","useMutation","useQuery","useQueryClient","getQueryKeyFromCredentialListQueryParams","useONECore","CREDENTIAL_SCHEMA_LIST_QUERY_KEY","OneErrorCode","HISTORY_LIST_QUERY_KEY","PAGE_SIZE","CREDENTIAL_LIST_QUERY_KEY","CREDENTIAL_LIST_PAGED_QUERY_KEY","CREDENTIAL_DETAIL_QUERY_KEY","useCredentials","queryParams","core","organisationId","values","getCredentials","page","pageSize","status","ACCEPTED","SUSPENDED","REVOKED","keepPreviousData","usePagedCredentials","pageParam","getNextPageParam","lastPage","allPages","length","totalPages","undefined","useCredentialDetail","credentialId","active","getCredential","enabled","Boolean","useInvitationHandler","queryClient","invitationUrl","transport","handleInvitation","onSuccess","result","invalidateQueries","useCredentialAccept","interactionId","didId","keyId","txCode","holderAcceptCredential","useCredentialReject","holderRejectCredential","catch","e","code","OperationNotSupported","useCredentialRevocationCheck","forceRefresh","credentialIds","checkRevocation","useCredentialDelete","deleteCredential","_","removeQueries","useInvalidateCredentialDetails"],"sources":["credentials.ts"],"sourcesContent":["import { CredentialListQuery, CredentialStateEnum, InvitationResult, OneError } from '@procivis/react-native-one-core';\nimport { useInfiniteQuery, useMutation, useQuery, useQueryClient } from 'react-query';\n\nimport { getQueryKeyFromCredentialListQueryParams } from '../../parsers/query';\nimport { Transport } from '../connectivity/connectivity';\nimport { useONECore } from './core-context';\nimport { CREDENTIAL_SCHEMA_LIST_QUERY_KEY } from './credential-schemas';\nimport { OneErrorCode } from './error-code';\nimport { HISTORY_LIST_QUERY_KEY } from './history';\n\nconst PAGE_SIZE = 20;\nexport const CREDENTIAL_LIST_QUERY_KEY = 'credential-list';\nexport const CREDENTIAL_LIST_PAGED_QUERY_KEY = 'credential-list-paged';\nexport const CREDENTIAL_DETAIL_QUERY_KEY = 'credential-detail';\n\nexport const useCredentials = (queryParams?: Partial<CredentialListQuery>) => {\n const { core, organisationId } = useONECore();\n\n return useQuery(\n [CREDENTIAL_LIST_QUERY_KEY, ...getQueryKeyFromCredentialListQueryParams(queryParams)],\n async () => {\n const { values } = await core.getCredentials({\n organisationId,\n page: 0,\n // TODO: workaround pagination for now, until it's supported by UI\n pageSize: 10000,\n status: [CredentialStateEnum.ACCEPTED, CredentialStateEnum.SUSPENDED, CredentialStateEnum.REVOKED],\n ...queryParams,\n });\n return values;\n },\n {\n keepPreviousData: true,\n },\n );\n};\n\nexport const usePagedCredentials = (queryParams?: Partial<CredentialListQuery>) => {\n const { core, organisationId } = useONECore();\n\n return useInfiniteQuery(\n [\n CREDENTIAL_LIST_QUERY_KEY,\n CREDENTIAL_LIST_PAGED_QUERY_KEY,\n ...getQueryKeyFromCredentialListQueryParams(queryParams),\n ],\n ({ pageParam = 0 }) =>\n core.getCredentials({\n organisationId,\n page: pageParam,\n pageSize: PAGE_SIZE,\n status: [CredentialStateEnum.ACCEPTED, CredentialStateEnum.SUSPENDED, CredentialStateEnum.REVOKED],\n ...queryParams,\n }),\n {\n getNextPageParam: (lastPage, allPages) => (allPages.length < lastPage.totalPages ? allPages.length : undefined),\n keepPreviousData: true,\n },\n );\n};\n\nexport const useCredentialDetail = (credentialId: string | undefined, active = true) => {\n const { core } = useONECore();\n\n return useQuery(\n [CREDENTIAL_DETAIL_QUERY_KEY, credentialId],\n () => (credentialId ? core.getCredential(credentialId) : undefined),\n {\n enabled: active && Boolean(credentialId),\n keepPreviousData: true,\n },\n );\n};\n\nexport const useInvitationHandler = () => {\n const queryClient = useQueryClient();\n const { core, organisationId } = useONECore();\n\n return useMutation(\n async ({ invitationUrl, transport }: { invitationUrl: string; transport: Transport }) =>\n core.handleInvitation(invitationUrl, organisationId, [transport]),\n {\n onSuccess: async (result: InvitationResult) => {\n if ('credentialIds' in result) {\n await queryClient.invalidateQueries(CREDENTIAL_LIST_QUERY_KEY);\n await queryClient.invalidateQueries(CREDENTIAL_SCHEMA_LIST_QUERY_KEY);\n }\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n },\n );\n};\n\nexport const useCredentialAccept = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n type CredentialAcceptHookParams = { didId: string; interactionId: string; keyId?: string; txCode?: string };\n\n return useMutation(\n async ({ interactionId, didId, keyId, txCode }: CredentialAcceptHookParams) =>\n core.holderAcceptCredential(interactionId, didId, keyId, txCode),\n {\n onSuccess: async () => {\n await queryClient.invalidateQueries(CREDENTIAL_LIST_QUERY_KEY);\n await queryClient.invalidateQueries(CREDENTIAL_DETAIL_QUERY_KEY);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n },\n );\n};\n\nexport const useCredentialReject = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(\n async (interactionId: string) =>\n core.holderRejectCredential(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(CREDENTIAL_LIST_QUERY_KEY);\n await queryClient.invalidateQueries(CREDENTIAL_DETAIL_QUERY_KEY);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n },\n );\n};\n\nexport const useCredentialRevocationCheck = (forceRefresh: boolean) => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(async (credentialIds: string[]) => core.checkRevocation(credentialIds, forceRefresh), {\n onSuccess: async () => {\n await queryClient.invalidateQueries(CREDENTIAL_LIST_QUERY_KEY);\n await queryClient.invalidateQueries(CREDENTIAL_DETAIL_QUERY_KEY);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n });\n};\n\nexport const useCredentialDelete = () => {\n const queryClient = useQueryClient();\n const { core } = useONECore();\n\n return useMutation(async (credentialId: string) => core.deleteCredential(credentialId), {\n onSuccess: async (_, credentialId) => {\n await queryClient.invalidateQueries(CREDENTIAL_LIST_QUERY_KEY);\n await queryClient.removeQueries([CREDENTIAL_DETAIL_QUERY_KEY, credentialId]);\n await queryClient.invalidateQueries(HISTORY_LIST_QUERY_KEY);\n },\n });\n};\n\nexport const useInvalidateCredentialDetails = () => {\n const queryClient = useQueryClient();\n\n return (credentialId: string | undefined) =>\n queryClient.invalidateQueries([CREDENTIAL_DETAIL_QUERY_KEY, credentialId]);\n};\n"],"mappings":"AAAA,SAA8BA,mBAAmB,EAAoBC,QAAQ,QAAQ,iCAAiC;AACtH,SAASC,gBAAgB,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,cAAc,QAAQ,aAAa;AAErF,SAASC,wCAAwC,QAAQ,qBAAqB;AAE9E,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,SAASC,gCAAgC,QAAQ,sBAAsB;AACvE,SAASC,YAAY,QAAQ,cAAc;AAC3C,SAASC,sBAAsB,QAAQ,WAAW;AAElD,MAAMC,SAAS,GAAG,EAAE;AACpB,OAAO,MAAMC,yBAAyB,GAAG,iBAAiB;AAC1D,OAAO,MAAMC,+BAA+B,GAAG,uBAAuB;AACtE,OAAO,MAAMC,2BAA2B,GAAG,mBAAmB;AAE9D,OAAO,MAAMC,cAAc,GAAIC,WAA0C,IAAK;EAC5E,MAAM;IAAEC,IAAI;IAAEC;EAAe,CAAC,GAAGX,UAAU,CAAC,CAAC;EAE7C,OAAOH,QAAQ,CACb,CAACQ,yBAAyB,EAAE,GAAGN,wCAAwC,CAACU,WAAW,CAAC,CAAC,EACrF,YAAY;IACV,MAAM;MAAEG;IAAO,CAAC,GAAG,MAAMF,IAAI,CAACG,cAAc,CAAC;MAC3CF,cAAc;MACdG,IAAI,EAAE,CAAC;MACP;MACAC,QAAQ,EAAE,KAAK;MACfC,MAAM,EAAE,CA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AAGA,CAAA,KAAM;EACvC,MAAMvB,WAAW,GAAGtC,cAAc,CAAC,CAAC;EACpC,MAAM;IAAEY;EAAK,CAAC,GAAGV,UAAU,CAAC,CAAC;EAE7B,OAAOJ,WAAW,CAAC,MAAOkC,YAAoB,IAAKpB,IAAI,CAACkD,gBAAgB,CAAC9B,YAAY,CAAC,EAAE;IACtFU,SAAS,EAAE,MAAAA,CAAOqB,CAAC,EAAE/B,YAAY,KAAK;MACpC,MAAMM,WAAW,CAACM,iBAAiB,CAACrC,yBAAyB,CAAC;MAC9D,MAAM+B,WAAW,CAAC0B,aAAa,CAAC,CAACvD,2BAA2B,EAAEuB,YAAY,CAAC,CAAC;MAC5E,MAAMM,WAAW,CAACM,iBAAiB,CAACvC,sBAAsB,CAAC;IAC7D;EACF,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,MAAM4D,8BAA8B,GAAGA,CAAA,KAAM;EAClD,MAAM3B,WAAW,GAAGtC,cAAc,CAAC,CAAC;EAEpC,OAAQgC,YAAgC,IACtCM,WAAW,CAACM,iBAAiB,CAAC,CAACnC,2BAA2B,EAAEuB,YAAY,CAAC,CAAC;AAC9E,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DidTypeEnum } from '@procivis/react-native-one-core';
|
|
2
|
+
import { useQuery } from 'react-query';
|
|
3
|
+
import { getQueryKeyFromDidListQueryParams } from '../../parsers/query';
|
|
4
|
+
import { useONECore } from './core-context';
|
|
5
|
+
const PAGE_SIZE = 20;
|
|
6
|
+
export const DID_LIST_QUERY_KEY = 'did-list';
|
|
7
|
+
export const useDids = queryParams => {
|
|
8
|
+
const {
|
|
9
|
+
core,
|
|
10
|
+
organisationId
|
|
11
|
+
} = useONECore();
|
|
12
|
+
return useQuery([DID_LIST_QUERY_KEY, ...getQueryKeyFromDidListQueryParams(queryParams)], async ({
|
|
13
|
+
pageParam = 0
|
|
14
|
+
}) => {
|
|
15
|
+
const dids = await core.getDids({
|
|
16
|
+
deactivated: false,
|
|
17
|
+
organisationId,
|
|
18
|
+
page: pageParam,
|
|
19
|
+
pageSize: PAGE_SIZE,
|
|
20
|
+
type: DidTypeEnum.LOCAL,
|
|
21
|
+
...queryParams
|
|
22
|
+
});
|
|
23
|
+
return dids;
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=dids.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DidTypeEnum","useQuery","getQueryKeyFromDidListQueryParams","useONECore","PAGE_SIZE","DID_LIST_QUERY_KEY","useDids","queryParams","core","organisationId","pageParam","dids","getDids","deactivated","page","pageSize","type","LOCAL"],"sources":["dids.ts"],"sourcesContent":["import { DidListQuery, DidTypeEnum } from '@procivis/react-native-one-core';\nimport { useQuery } from 'react-query';\n\nimport { getQueryKeyFromDidListQueryParams } from '../../parsers/query';\nimport { useONECore } from './core-context';\n\nconst PAGE_SIZE = 20;\nexport const DID_LIST_QUERY_KEY = 'did-list';\n\nexport const useDids = (queryParams?: Partial<DidListQuery>) => {\n const { core, organisationId } = useONECore();\n\n return useQuery(\n [DID_LIST_QUERY_KEY, ...getQueryKeyFromDidListQueryParams(queryParams)],\n async ({ pageParam = 0 }) => {\n const dids = await core.getDids({\n deactivated: false,\n organisationId,\n page: pageParam,\n pageSize: PAGE_SIZE,\n type: DidTypeEnum.LOCAL,\n ...queryParams,\n });\n\n return dids;\n },\n );\n};\n"],"mappings":"AAAA,SAAuBA,WAAW,QAAQ,iCAAiC;AAC3E,SAASC,QAAQ,QAAQ,aAAa;AAEtC,SAASC,iCAAiC,QAAQ,qBAAqB;AACvE,SAASC,UAAU,QAAQ,gBAAgB;AAE3C,MAAMC,SAAS,GAAG,EAAE;AACpB,OAAO,MAAMC,kBAAkB,GAAG,UAAU;AAE5C,OAAO,MAAMC,OAAO,GAAIC,WAAmC,IAAK;EAC9D,MAAM;IAAEC,IAAI;IAAEC;EAAe,CAAC,GAAGN,UAAU,CAAC,CAAC;EAE7C,OAAOF,QAAQ,CACb,CAACI,kBAAkB,EAAE,GAAGH,iCAAiC,CAACK,WAAW,CAAC,CAAC,EACvE,OAAO;IAAEG,SAAS,GAAG;EAAE,CAAC,KAAK;IAC3B,MAAMC,IAAI,GAAG,MAAMH,IAAI,CAACI,OAAO,CAAC;MAC9BC,WAAW,EAAE,KAAK;MAClBJ,cAAc;MACdK,IAAI,EAAEJ,SAAS;MACfK,QAAQ,EAAEX,SAAS;MACnBY,IAAI,EAAEhB,WAAW,CAACiB,KAAK;MACvB,GAAGV;IACL,CAAC,CAAC;IAEF,OAAOI,IAAI;EACb,CACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export let OneErrorCode = /*#__PURE__*/function (OneErrorCode) {
|
|
2
|
+
OneErrorCode["OrganisationAlreadyExists"] = "BR_0023";
|
|
3
|
+
OneErrorCode["KeyStorageNotSupported"] = "BR_0039";
|
|
4
|
+
OneErrorCode["OperationNotSupported"] = "BR_0062";
|
|
5
|
+
OneErrorCode["NoTrustEntityFound"] = "BR_0186";
|
|
6
|
+
return OneErrorCode;
|
|
7
|
+
}({});
|
|
8
|
+
//# sourceMappingURL=error-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["OneErrorCode"],"sources":["error-code.ts"],"sourcesContent":["export enum OneErrorCode {\n OrganisationAlreadyExists = 'BR_0023',\n KeyStorageNotSupported = 'BR_0039',\n OperationNotSupported = 'BR_0062',\n NoTrustEntityFound = 'BR_0186',\n}\n"],"mappings":"AAAA,WAAYA,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
|