@ledgerhq/ledger-wallet-provider 0.0.0-develop-20260916004725
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/LICENSE +202 -0
- package/README.md +348 -0
- package/dist/components/atom/balance/ledger-balance.d.ts +8 -0
- package/dist/components/atom/balance/ledger-balance.d.ts.map +1 -0
- package/dist/components/atom/button/ledger-button.d.ts +49 -0
- package/dist/components/atom/button/ledger-button.d.ts.map +1 -0
- package/dist/components/atom/chip/ledger-chip.d.ts +32 -0
- package/dist/components/atom/chip/ledger-chip.d.ts.map +1 -0
- package/dist/components/atom/crypto-icon/crypto-icon-mapping.d.ts +18 -0
- package/dist/components/atom/crypto-icon/crypto-icon-mapping.d.ts.map +1 -0
- package/dist/components/atom/crypto-icon/ledger-crypto-icon.d.ts +29 -0
- package/dist/components/atom/crypto-icon/ledger-crypto-icon.d.ts.map +1 -0
- package/dist/components/atom/crypto-icon-group/ledger-crypto-icon-group.d.ts +17 -0
- package/dist/components/atom/crypto-icon-group/ledger-crypto-icon-group.d.ts.map +1 -0
- package/dist/components/atom/drawer/index.d.ts +2 -0
- package/dist/components/atom/drawer/index.d.ts.map +1 -0
- package/dist/components/atom/drawer/ledger-drawer.d.ts +56 -0
- package/dist/components/atom/drawer/ledger-drawer.d.ts.map +1 -0
- package/dist/components/atom/fiat-total/ledger-fiat-total.d.ts +13 -0
- package/dist/components/atom/fiat-total/ledger-fiat-total.d.ts.map +1 -0
- package/dist/components/atom/floating-button/floating-button-badge-animation-controller.d.ts +36 -0
- package/dist/components/atom/floating-button/floating-button-badge-animation-controller.d.ts.map +1 -0
- package/dist/components/atom/floating-button/floating-button-badge-animation.d.ts +7 -0
- package/dist/components/atom/floating-button/floating-button-badge-animation.d.ts.map +1 -0
- package/dist/components/atom/floating-button/floating-button-rect.d.ts +24 -0
- package/dist/components/atom/floating-button/floating-button-rect.d.ts.map +1 -0
- package/dist/components/atom/floating-button/floating-button-tooltip-utils.d.ts +19 -0
- package/dist/components/atom/floating-button/floating-button-tooltip-utils.d.ts.map +1 -0
- package/dist/components/atom/floating-button/ledger-floating-button-badge.d.ts +14 -0
- package/dist/components/atom/floating-button/ledger-floating-button-badge.d.ts.map +1 -0
- package/dist/components/atom/floating-button/ledger-floating-button-controller.d.ts +47 -0
- package/dist/components/atom/floating-button/ledger-floating-button-controller.d.ts.map +1 -0
- package/dist/components/atom/floating-button/ledger-floating-button.d.ts +44 -0
- package/dist/components/atom/floating-button/ledger-floating-button.d.ts.map +1 -0
- package/dist/components/atom/icon/backIcon.d.ts +3 -0
- package/dist/components/atom/icon/backIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/bluetoothIcon.d.ts +3 -0
- package/dist/components/atom/icon/bluetoothIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/buyIcon.d.ts +3 -0
- package/dist/components/atom/icon/buyIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/cartIcon.d.ts +3 -0
- package/dist/components/atom/icon/cartIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/checkIcon.d.ts +3 -0
- package/dist/components/atom/icon/checkIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/checkMarkCircleFillIcon.d.ts +3 -0
- package/dist/components/atom/icon/checkMarkCircleFillIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/checkmarkCircleIcon.d.ts +3 -0
- package/dist/components/atom/icon/checkmarkCircleIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/chevronDownIcon.d.ts +3 -0
- package/dist/components/atom/icon/chevronDownIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/chevronRightIcon.d.ts +3 -0
- package/dist/components/atom/icon/chevronRightIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/clearSigningIcon.d.ts +3 -0
- package/dist/components/atom/icon/clearSigningIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/clockIcon.d.ts +3 -0
- package/dist/components/atom/icon/clockIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/closeIcon.d.ts +3 -0
- package/dist/components/atom/icon/closeIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/codeIcon.d.ts +3 -0
- package/dist/components/atom/icon/codeIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/coinsIcon.d.ts +3 -0
- package/dist/components/atom/icon/coinsIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/deleteCircleFillIcon.d.ts +3 -0
- package/dist/components/atom/icon/deleteCircleFillIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/desktopIcon.d.ts +3 -0
- package/dist/components/atom/icon/desktopIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/device-icon/apexp.d.ts +3 -0
- package/dist/components/atom/icon/device-icon/apexp.d.ts.map +1 -0
- package/dist/components/atom/icon/device-icon/device-icon.d.ts +9 -0
- package/dist/components/atom/icon/device-icon/device-icon.d.ts.map +1 -0
- package/dist/components/atom/icon/device-icon/flex.d.ts +3 -0
- package/dist/components/atom/icon/device-icon/flex.d.ts.map +1 -0
- package/dist/components/atom/icon/device-icon/nano.d.ts +3 -0
- package/dist/components/atom/icon/device-icon/nano.d.ts.map +1 -0
- package/dist/components/atom/icon/device-icon/stax.d.ts +3 -0
- package/dist/components/atom/icon/device-icon/stax.d.ts.map +1 -0
- package/dist/components/atom/icon/deviceIcon.d.ts +3 -0
- package/dist/components/atom/icon/deviceIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/directConnectivityIcon.d.ts +3 -0
- package/dist/components/atom/icon/directConnectivityIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/dollarIcon.d.ts +3 -0
- package/dist/components/atom/icon/dollarIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/earnIcon.d.ts +3 -0
- package/dist/components/atom/icon/earnIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/envelopeIcon.d.ts +3 -0
- package/dist/components/atom/icon/envelopeIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/errorIcon.d.ts +3 -0
- package/dist/components/atom/icon/errorIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/externalLinkIcon.d.ts +3 -0
- package/dist/components/atom/icon/externalLinkIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/featureFlagsIcon.d.ts +3 -0
- package/dist/components/atom/icon/featureFlagsIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/headphoneIcon.d.ts +3 -0
- package/dist/components/atom/icon/headphoneIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/index.d.ts +43 -0
- package/dist/components/atom/icon/index.d.ts.map +1 -0
- package/dist/components/atom/icon/infoIcon.d.ts +3 -0
- package/dist/components/atom/icon/infoIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/languageIcon.d.ts +3 -0
- package/dist/components/atom/icon/languageIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/ledger-icon.d.ts +21 -0
- package/dist/components/atom/icon/ledger-icon.d.ts.map +1 -0
- package/dist/components/atom/icon/ledgerLogoIcon.d.ts +3 -0
- package/dist/components/atom/icon/ledgerLogoIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/mobileIcon.d.ts +3 -0
- package/dist/components/atom/icon/mobileIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/plusIcon.d.ts +3 -0
- package/dist/components/atom/icon/plusIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/questionIcon.d.ts +3 -0
- package/dist/components/atom/icon/questionIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/receiveIcon.d.ts +3 -0
- package/dist/components/atom/icon/receiveIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/refreshIcon.d.ts +3 -0
- package/dist/components/atom/icon/refreshIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/searchIcon.d.ts +3 -0
- package/dist/components/atom/icon/searchIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/sellIcon.d.ts +3 -0
- package/dist/components/atom/icon/sellIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/sendIcon.d.ts +3 -0
- package/dist/components/atom/icon/sendIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/settingsAlt2Icon.d.ts +3 -0
- package/dist/components/atom/icon/settingsAlt2Icon.d.ts.map +1 -0
- package/dist/components/atom/icon/settingsIcon.d.ts +3 -0
- package/dist/components/atom/icon/settingsIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/shieldIcon.d.ts +3 -0
- package/dist/components/atom/icon/shieldIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/swapIcon.d.ts +3 -0
- package/dist/components/atom/icon/swapIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/transactionCheckIcon.d.ts +3 -0
- package/dist/components/atom/icon/transactionCheckIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/usbIcon.d.ts +3 -0
- package/dist/components/atom/icon/usbIcon.d.ts.map +1 -0
- package/dist/components/atom/lottie/animations/background-flare.d.ts +429 -0
- package/dist/components/atom/lottie/animations/background-flare.d.ts.map +1 -0
- package/dist/components/atom/lottie/animations/checkmark.d.ts +201 -0
- package/dist/components/atom/lottie/animations/checkmark.d.ts.map +1 -0
- package/dist/components/atom/lottie/animations/loading-spinner.d.ts +200 -0
- package/dist/components/atom/lottie/animations/loading-spinner.d.ts.map +1 -0
- package/dist/components/atom/lottie/ledger-lottie.d.ts +871 -0
- package/dist/components/atom/lottie/ledger-lottie.d.ts.map +1 -0
- package/dist/components/atom/modal/animation-types.d.ts +14 -0
- package/dist/components/atom/modal/animation-types.d.ts.map +1 -0
- package/dist/components/atom/modal/bottom-animation.d.ts +8 -0
- package/dist/components/atom/modal/bottom-animation.d.ts.map +1 -0
- package/dist/components/atom/modal/center-animation.d.ts +8 -0
- package/dist/components/atom/modal/center-animation.d.ts.map +1 -0
- package/dist/components/atom/modal/ledger-modal-story-wrapper.d.ts +15 -0
- package/dist/components/atom/modal/ledger-modal-story-wrapper.d.ts.map +1 -0
- package/dist/components/atom/modal/ledger-modal.d.ts +67 -0
- package/dist/components/atom/modal/ledger-modal.d.ts.map +1 -0
- package/dist/components/atom/modal/modal-animation-controller.d.ts +28 -0
- package/dist/components/atom/modal/modal-animation-controller.d.ts.map +1 -0
- package/dist/components/atom/modal/modal-focus-controller.d.ts +19 -0
- package/dist/components/atom/modal/modal-focus-controller.d.ts.map +1 -0
- package/dist/components/atom/modal/modal-scroll-lock-controller.d.ts +11 -0
- package/dist/components/atom/modal/modal-scroll-lock-controller.d.ts.map +1 -0
- package/dist/components/atom/modal/morph-animation.d.ts +33 -0
- package/dist/components/atom/modal/morph-animation.d.ts.map +1 -0
- package/dist/components/atom/modal/morph-path.d.ts +39 -0
- package/dist/components/atom/modal/morph-path.d.ts.map +1 -0
- package/dist/components/atom/modal/panel-animation.d.ts +8 -0
- package/dist/components/atom/modal/panel-animation.d.ts.map +1 -0
- package/dist/components/atom/modal/slide-up-animation.d.ts +8 -0
- package/dist/components/atom/modal/slide-up-animation.d.ts.map +1 -0
- package/dist/components/atom/search-input/ledger-search-input.d.ts +34 -0
- package/dist/components/atom/search-input/ledger-search-input.d.ts.map +1 -0
- package/dist/components/atom/skeleton/ledger-skeleton.d.ts +10 -0
- package/dist/components/atom/skeleton/ledger-skeleton.d.ts.map +1 -0
- package/dist/components/atom/tabs/ledger-tabs.d.ts +34 -0
- package/dist/components/atom/tabs/ledger-tabs.d.ts.map +1 -0
- package/dist/components/atom/toast/ledger-toast.d.ts +81 -0
- package/dist/components/atom/toast/ledger-toast.d.ts.map +1 -0
- package/dist/components/atom/toggle/ledger-toggle.d.ts +24 -0
- package/dist/components/atom/toggle/ledger-toggle.d.ts.map +1 -0
- package/dist/components/atom/tooltip/ledger-tooltip.d.ts +48 -0
- package/dist/components/atom/tooltip/ledger-tooltip.d.ts.map +1 -0
- package/dist/components/index.d.ts +37 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/molecule/account-switch/ledger-account-switch.d.ts +25 -0
- package/dist/components/molecule/account-switch/ledger-account-switch.d.ts.map +1 -0
- package/dist/components/molecule/ad-item/ledger-ad-item.d.ts +13 -0
- package/dist/components/molecule/ad-item/ledger-ad-item.d.ts.map +1 -0
- package/dist/components/molecule/chain-item/ledger-chain-item.d.ts +38 -0
- package/dist/components/molecule/chain-item/ledger-chain-item.d.ts.map +1 -0
- package/dist/components/molecule/connection-item/ledger-connection-item.d.ts +34 -0
- package/dist/components/molecule/connection-item/ledger-connection-item.d.ts.map +1 -0
- package/dist/components/molecule/device-animation/apex/01_APEX_DARK_PIN.json.d.ts +8245 -0
- package/dist/components/molecule/device-animation/apex/02_APEX_DARK_CONTINUE_ON_LEDGER.json.d.ts +3927 -0
- package/dist/components/molecule/device-animation/device-animation.d.ts +12 -0
- package/dist/components/molecule/device-animation/device-animation.d.ts.map +1 -0
- package/dist/components/molecule/device-animation/flex/01_EUROPA_DARK_PIN.json.d.ts +9085 -0
- package/dist/components/molecule/device-animation/flex/02_EUROPA_DARK_PAIRING.json.d.ts +3641 -0
- package/dist/components/molecule/device-animation/flex/03_EUROPA_DARK_PAIRED_SUCCESS.json.d.ts +2327 -0
- package/dist/components/molecule/device-animation/flex/04_EUROPA_DARK_CONTINUE_ON_LEDGER.json.d.ts +2197 -0
- package/dist/components/molecule/device-animation/flex/05_EUROPA_DARK_SIGN_TRANSACTION.json.d.ts +2166 -0
- package/dist/components/molecule/device-animation/flex/06_STAX_DARK_FRONT_VIEW.json.d.ts +1596 -0
- package/dist/components/molecule/device-animation/nanosp/01_NANO_S_DARK_PIN.json.d.ts +9738 -0
- package/dist/components/molecule/device-animation/nanosp/02_NANO_S_DARK_CONTINUE_ON_YOUR_LEDGER.json.d.ts +4207 -0
- package/dist/components/molecule/device-animation/nanox/01_NANO_X_DARK_PIN.json.d.ts +7171 -0
- package/dist/components/molecule/device-animation/nanox/02_NANO_X_DARK_PAIRING.json.d.ts +4618 -0
- package/dist/components/molecule/device-animation/nanox/03_NANO_X_DARK_CONTINUE_ON_YOUR_LEDGER.json.d.ts +2551 -0
- package/dist/components/molecule/device-animation/stax/01_STAX_DARK_PIN.json.d.ts +6187 -0
- package/dist/components/molecule/device-animation/stax/02_STAX_DARK_PAIRING.json.d.ts +2952 -0
- package/dist/components/molecule/device-animation/stax/03_STAX_DARK_PAIRED_SUCCESS.json.d.ts +1322 -0
- package/dist/components/molecule/device-animation/stax/04_STAX_DARK_CONTINUE_ON_LEDGER.json.d.ts +1184 -0
- package/dist/components/molecule/device-animation/stax/05_STAX_DARK_SIGN_TRANSACTION.json.d.ts +1161 -0
- package/dist/components/molecule/device-animation/stax/06_STAX_DARK_FRONT_VIEW.json.d.ts +1274 -0
- package/dist/components/molecule/device-item/ledger-device-item.d.ts +49 -0
- package/dist/components/molecule/device-item/ledger-device-item.d.ts.map +1 -0
- package/dist/components/molecule/info-state/flex-device-icon.d.ts +3 -0
- package/dist/components/molecule/info-state/flex-device-icon.d.ts.map +1 -0
- package/dist/components/molecule/info-state/ledger-info-state.d.ts +21 -0
- package/dist/components/molecule/info-state/ledger-info-state.d.ts.map +1 -0
- package/dist/components/molecule/info-state/nanox-device-icon.d.ts +3 -0
- package/dist/components/molecule/info-state/nanox-device-icon.d.ts.map +1 -0
- package/dist/components/molecule/info-state/stax-device-icon.d.ts +3 -0
- package/dist/components/molecule/info-state/stax-device-icon.d.ts.map +1 -0
- package/dist/components/molecule/networks/ledger-networks.d.ts +22 -0
- package/dist/components/molecule/networks/ledger-networks.d.ts.map +1 -0
- package/dist/components/molecule/platform-item/ledger-platform-item.d.ts +24 -0
- package/dist/components/molecule/platform-item/ledger-platform-item.d.ts.map +1 -0
- package/dist/components/molecule/status-card/ledger-status-card.d.ts +21 -0
- package/dist/components/molecule/status-card/ledger-status-card.d.ts.map +1 -0
- package/dist/components/molecule/toolbar/ledger-toolbar.d.ts +43 -0
- package/dist/components/molecule/toolbar/ledger-toolbar.d.ts.map +1 -0
- package/dist/components/molecule/transaction-item/ledger-transaction-item.d.ts +66 -0
- package/dist/components/molecule/transaction-item/ledger-transaction-item.d.ts.map +1 -0
- package/dist/components/molecule/transaction-notifications/ledger-transaction-confirmation-host.d.ts +23 -0
- package/dist/components/molecule/transaction-notifications/ledger-transaction-confirmation-host.d.ts.map +1 -0
- package/dist/components/molecule/transaction-notifications/ledger-transaction-notifications.d.ts +32 -0
- package/dist/components/molecule/transaction-notifications/ledger-transaction-notifications.d.ts.map +1 -0
- package/dist/components/molecule/transaction-notifications/transaction-confirmation-notifier.d.ts +34 -0
- package/dist/components/molecule/transaction-notifications/transaction-confirmation-notifier.d.ts.map +1 -0
- package/dist/components/molecule/wallet-actions/ledger-wallet-actions.d.ts +26 -0
- package/dist/components/molecule/wallet-actions/ledger-wallet-actions.d.ts.map +1 -0
- package/dist/components/molecule/wallet-redirect-drawer/ledger-wallet-redirect-drawer.d.ts +35 -0
- package/dist/components/molecule/wallet-redirect-drawer/ledger-wallet-redirect-drawer.d.ts.map +1 -0
- package/dist/components/organism/status/ledger-status.d.ts +40 -0
- package/dist/components/organism/status/ledger-status.d.ts.map +1 -0
- package/dist/context/constants/languages.d.ts +4174 -0
- package/dist/context/constants/languages.d.ts.map +1 -0
- package/dist/context/core-context.d.ts +13 -0
- package/dist/context/core-context.d.ts.map +1 -0
- package/dist/context/language-context.d.ts +26 -0
- package/dist/context/language-context.d.ts.map +1 -0
- package/dist/context/utils/language-utils.d.ts +5 -0
- package/dist/context/utils/language-utils.d.ts.map +1 -0
- package/dist/domain/account-tokens/account-token-controller.d.ts +14 -0
- package/dist/domain/account-tokens/account-token-controller.d.ts.map +1 -0
- package/dist/domain/account-tokens/account-tokens.d.ts +32 -0
- package/dist/domain/account-tokens/account-tokens.d.ts.map +1 -0
- package/dist/domain/available-networks/available-networks-controller.d.ts +17 -0
- package/dist/domain/available-networks/available-networks-controller.d.ts.map +1 -0
- package/dist/domain/available-networks/available-networks.d.ts +22 -0
- package/dist/domain/available-networks/available-networks.d.ts.map +1 -0
- package/dist/domain/device-connection-status/device-connection-status-controller.d.ts +14 -0
- package/dist/domain/device-connection-status/device-connection-status-controller.d.ts.map +1 -0
- package/dist/domain/device-connection-status/device-connection-status.d.ts +24 -0
- package/dist/domain/device-connection-status/device-connection-status.d.ts.map +1 -0
- package/dist/domain/device-switch/device-switch-controller.d.ts +14 -0
- package/dist/domain/device-switch/device-switch-controller.d.ts.map +1 -0
- package/dist/domain/device-switch/device-switch.d.ts +28 -0
- package/dist/domain/device-switch/device-switch.d.ts.map +1 -0
- package/dist/domain/home/ledger-home-controller.d.ts +32 -0
- package/dist/domain/home/ledger-home-controller.d.ts.map +1 -0
- package/dist/domain/home/ledger-home.d.ts +42 -0
- package/dist/domain/home/ledger-home.d.ts.map +1 -0
- package/dist/domain/home-flow/home-flow-controller.d.ts +20 -0
- package/dist/domain/home-flow/home-flow-controller.d.ts.map +1 -0
- package/dist/domain/home-flow/home-flow.d.ts +24 -0
- package/dist/domain/home-flow/home-flow.d.ts.map +1 -0
- package/dist/domain/onboarding/connection-success/connection-success-overlay.d.ts +40 -0
- package/dist/domain/onboarding/connection-success/connection-success-overlay.d.ts.map +1 -0
- package/dist/domain/onboarding/connection-success/connection-success-screen.d.ts +18 -0
- package/dist/domain/onboarding/connection-success/connection-success-screen.d.ts.map +1 -0
- package/dist/domain/onboarding/consent-prompt/consent-analytics-screen.d.ts +20 -0
- package/dist/domain/onboarding/consent-prompt/consent-analytics-screen.d.ts.map +1 -0
- package/dist/domain/onboarding/ledger-sync/ledger-sync-controller.d.ts +38 -0
- package/dist/domain/onboarding/ledger-sync/ledger-sync-controller.d.ts.map +1 -0
- package/dist/domain/onboarding/ledger-sync/ledger-sync.d.ts +29 -0
- package/dist/domain/onboarding/ledger-sync/ledger-sync.d.ts.map +1 -0
- package/dist/domain/onboarding/mobile-onboarding/mobile-onboarding-controller.d.ts +14 -0
- package/dist/domain/onboarding/mobile-onboarding/mobile-onboarding-controller.d.ts.map +1 -0
- package/dist/domain/onboarding/mobile-onboarding/mobile-onboarding-screen.d.ts +21 -0
- package/dist/domain/onboarding/mobile-onboarding/mobile-onboarding-screen.d.ts.map +1 -0
- package/dist/domain/onboarding/onboarding-flow/onboarding-flow-controller.d.ts +16 -0
- package/dist/domain/onboarding/onboarding-flow/onboarding-flow-controller.d.ts.map +1 -0
- package/dist/domain/onboarding/onboarding-flow/onboarding-flow.d.ts +21 -0
- package/dist/domain/onboarding/onboarding-flow/onboarding-flow.d.ts.map +1 -0
- package/dist/domain/onboarding/retrieving-accounts/retrieving-accounts-controller.d.ts +29 -0
- package/dist/domain/onboarding/retrieving-accounts/retrieving-accounts-controller.d.ts.map +1 -0
- package/dist/domain/onboarding/retrieving-accounts/retrieving-accounts.d.ts +24 -0
- package/dist/domain/onboarding/retrieving-accounts/retrieving-accounts.d.ts.map +1 -0
- package/dist/domain/onboarding/select-account/select-account-controller.d.ts +41 -0
- package/dist/domain/onboarding/select-account/select-account-controller.d.ts.map +1 -0
- package/dist/domain/onboarding/select-account/select-account.d.ts +40 -0
- package/dist/domain/onboarding/select-account/select-account.d.ts.map +1 -0
- package/dist/domain/onboarding/select-device/select-device-controller.d.ts +32 -0
- package/dist/domain/onboarding/select-device/select-device-controller.d.ts.map +1 -0
- package/dist/domain/onboarding/select-device/select-device.d.ts +23 -0
- package/dist/domain/onboarding/select-device/select-device.d.ts.map +1 -0
- package/dist/domain/onboarding/turn-on-sync/turn-on-sync-controller.d.ts +14 -0
- package/dist/domain/onboarding/turn-on-sync/turn-on-sync-controller.d.ts.map +1 -0
- package/dist/domain/onboarding/turn-on-sync/turn-on-sync.d.ts +24 -0
- package/dist/domain/onboarding/turn-on-sync/turn-on-sync.d.ts.map +1 -0
- package/dist/domain/onboarding/turn-on-sync-desktop/turn-on-sync-desktop-controller.d.ts +13 -0
- package/dist/domain/onboarding/turn-on-sync-desktop/turn-on-sync-desktop-controller.d.ts.map +1 -0
- package/dist/domain/onboarding/turn-on-sync-desktop/turn-on-sync-desktop.d.ts +23 -0
- package/dist/domain/onboarding/turn-on-sync-desktop/turn-on-sync-desktop.d.ts.map +1 -0
- package/dist/domain/onboarding/turn-on-sync-mobile/turn-on-sync-mobile-controller.d.ts +12 -0
- package/dist/domain/onboarding/turn-on-sync-mobile/turn-on-sync-mobile-controller.d.ts.map +1 -0
- package/dist/domain/onboarding/turn-on-sync-mobile/turn-on-sync-mobile.d.ts +22 -0
- package/dist/domain/onboarding/turn-on-sync-mobile/turn-on-sync-mobile.d.ts.map +1 -0
- package/dist/domain/onboarding/welcome/welcome-screen.d.ts +26 -0
- package/dist/domain/onboarding/welcome/welcome-screen.d.ts.map +1 -0
- package/dist/domain/settings/developer/developer-screen.d.ts +20 -0
- package/dist/domain/settings/developer/developer-screen.d.ts.map +1 -0
- package/dist/domain/settings/developer/feature-flags/feature-flags-screen.d.ts +21 -0
- package/dist/domain/settings/developer/feature-flags/feature-flags-screen.d.ts.map +1 -0
- package/dist/domain/settings/preferences/preference-currency-controller.d.ts +15 -0
- package/dist/domain/settings/preferences/preference-currency-controller.d.ts.map +1 -0
- package/dist/domain/settings/preferences/preference-currency-screen.d.ts +18 -0
- package/dist/domain/settings/preferences/preference-currency-screen.d.ts.map +1 -0
- package/dist/domain/settings/preferences/preference-language-controller.d.ts +20 -0
- package/dist/domain/settings/preferences/preference-language-controller.d.ts.map +1 -0
- package/dist/domain/settings/preferences/preference-language-screen.d.ts +18 -0
- package/dist/domain/settings/preferences/preference-language-screen.d.ts.map +1 -0
- package/dist/domain/settings/preferences/preferences-controller.d.ts +9 -0
- package/dist/domain/settings/preferences/preferences-controller.d.ts.map +1 -0
- package/dist/domain/settings/preferences/preferences-screen.d.ts +23 -0
- package/dist/domain/settings/preferences/preferences-screen.d.ts.map +1 -0
- package/dist/domain/settings/security/security-screen.d.ts +17 -0
- package/dist/domain/settings/security/security-screen.d.ts.map +1 -0
- package/dist/domain/settings/settings-screen.d.ts +29 -0
- package/dist/domain/settings/settings-screen.d.ts.map +1 -0
- package/dist/domain/settings/support/support-screen.d.ts +21 -0
- package/dist/domain/settings/support/support-screen.d.ts.map +1 -0
- package/dist/domain/sign-transaction/sign-transaction-controller.d.ts +59 -0
- package/dist/domain/sign-transaction/sign-transaction-controller.d.ts.map +1 -0
- package/dist/domain/sign-transaction/sign-transaction.d.ts +30 -0
- package/dist/domain/sign-transaction/sign-transaction.d.ts.map +1 -0
- package/dist/domain/signing-flow/signing-flow-controller.d.ts +16 -0
- package/dist/domain/signing-flow/signing-flow-controller.d.ts.map +1 -0
- package/dist/domain/signing-flow/signing-flow.d.ts +22 -0
- package/dist/domain/signing-flow/signing-flow.d.ts.map +1 -0
- package/dist/domain/token-list/token-list.d.ts +17 -0
- package/dist/domain/token-list/token-list.d.ts.map +1 -0
- package/dist/domain/transaction-list/transaction-list.d.ts +43 -0
- package/dist/domain/transaction-list/transaction-list.d.ts.map +1 -0
- package/dist/i18n/de.json.d.ts +377 -0
- package/dist/i18n/en.json.d.ts +377 -0
- package/dist/i18n/es.json.d.ts +377 -0
- package/dist/i18n/fr.json.d.ts +377 -0
- package/dist/i18n/ja.json.d.ts +377 -0
- package/dist/i18n/ko.json.d.ts +377 -0
- package/dist/i18n/pt.json.d.ts +377 -0
- package/dist/i18n/ru.json.d.ts +377 -0
- package/dist/i18n/th.json.d.ts +377 -0
- package/dist/i18n/tr.json.d.ts +377 -0
- package/dist/i18n/zh.json.d.ts +377 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12608 -0
- package/dist/ledger-button-app-controller.d.ts +10 -0
- package/dist/ledger-button-app-controller.d.ts.map +1 -0
- package/dist/ledger-button-app.d.ts +47 -0
- package/dist/ledger-button-app.d.ts.map +1 -0
- package/dist/ledger-button-playground.d.ts +18 -0
- package/dist/ledger-button-playground.d.ts.map +1 -0
- package/dist/shared/constants/deeplinks.d.ts +45 -0
- package/dist/shared/constants/deeplinks.d.ts.map +1 -0
- package/dist/shared/constants/index.d.ts +3 -0
- package/dist/shared/constants/index.d.ts.map +1 -0
- package/dist/shared/constants/shop-urls.d.ts +15 -0
- package/dist/shared/constants/shop-urls.d.ts.map +1 -0
- package/dist/shared/constants/support-urls.d.ts +3 -0
- package/dist/shared/constants/support-urls.d.ts.map +1 -0
- package/dist/shared/navigation.d.ts +40 -0
- package/dist/shared/navigation.d.ts.map +1 -0
- package/dist/shared/pending-transaction-account-filter.d.ts +11 -0
- package/dist/shared/pending-transaction-account-filter.d.ts.map +1 -0
- package/dist/shared/root-navigation-controller.d.ts +71 -0
- package/dist/shared/root-navigation-controller.d.ts.map +1 -0
- package/dist/shared/root-navigation.d.ts +69 -0
- package/dist/shared/root-navigation.d.ts.map +1 -0
- package/dist/shared/routes.d.ts +25 -0
- package/dist/shared/routes.d.ts.map +1 -0
- package/dist/styles.css +3573 -0
- package/dist/tailwind-element.d.ts +5 -0
- package/dist/tailwind-element.d.ts.map +1 -0
- package/dist/types/transaction-confirmation-notification.d.ts +2 -0
- package/dist/types/transaction-confirmation-notification.d.ts.map +1 -0
- package/dist/utils/format-address.d.ts +9 -0
- package/dist/utils/format-address.d.ts.map +1 -0
- package/dist/utils/format-device-name.d.ts +7 -0
- package/dist/utils/format-device-name.d.ts.map +1 -0
- package/dist/utils/format-fiat.d.ts +32 -0
- package/dist/utils/format-fiat.d.ts.map +1 -0
- package/dist/utils/format-title.d.ts +10 -0
- package/dist/utils/format-title.d.ts.map +1 -0
- package/dist/utils/scope-css.d.ts +12 -0
- package/dist/utils/scope-css.d.ts.map +1 -0
- package/dist/utils/setup-floating-button.d.ts +9 -0
- package/dist/utils/setup-floating-button.d.ts.map +1 -0
- package/package.json +50 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2024-present Ledger
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
# @ledgerhq/ledger-wallet-provider
|
|
2
|
+
|
|
3
|
+
A comprehensive Web Components-based library that provides a complete Ledger hardware wallet integration solution for web applications. Built with Lit and designed to work with any frontend framework.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **EIP-1193 Provider**: Complete Ethereum Provider implementation with full JSON-RPC support
|
|
8
|
+
- **EIP-6963 Support**: Multi-wallet discovery and selection
|
|
9
|
+
- **Solana Support**: Solana wallet integration via Wallet Standard
|
|
10
|
+
- **Framework Agnostic**: Works with any frontend framework (React, Vue, Angular, Svelte, etc.)
|
|
11
|
+
- **Hardware Wallet Integration**: Direct connection to Ledger devices via USB and Bluetooth
|
|
12
|
+
- **Modern UI**: Pre-built components with Tailwind CSS styling and dark mode support
|
|
13
|
+
- **Transaction Signing**: Support for multi-blockchain transactions, typed data, and personal messages
|
|
14
|
+
- **Account Management**: Multi-account support and switching
|
|
15
|
+
- **Ledger Sync Integration**: Seamless integration with Ledger's cloud services
|
|
16
|
+
- **Device Management**: Support for multiple device types and connection methods
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install @ledgerhq/ledger-wallet-provider
|
|
22
|
+
npm install @ledgerhq/ledger-wallet-provider-evm # EVM (EIP-6963 / EIP-1193)
|
|
23
|
+
npm install @ledgerhq/ledger-wallet-provider-solana # Solana (Wallet Standard)
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
You can also install with yarn or pnpm. Skip a family package if you do not support that chain.
|
|
27
|
+
|
|
28
|
+
> The family packages declare `rxjs`, `xstate`, `purify-ts` and `@ledgerhq/device-management-kit` as peer dependencies, so they share a single instance with the UI package. npm 7+, pnpm and Yarn Berry install them for you; on Yarn 1, add them explicitly.
|
|
29
|
+
|
|
30
|
+
## Quick Start
|
|
31
|
+
|
|
32
|
+
### Basic Setup
|
|
33
|
+
|
|
34
|
+
This example is a multi-chain setup. Register only the families you installed: a factory whose chain is not enabled for your `dAppIdentifier` is skipped at init, and leaving one out keeps it out of your bundle.
|
|
35
|
+
|
|
36
|
+
```javascript
|
|
37
|
+
import { initializeLedgerProvider } from "@ledgerhq/ledger-wallet-provider";
|
|
38
|
+
import "@ledgerhq/ledger-wallet-provider/styles.css";
|
|
39
|
+
import { evmBlockchainProviderFactory } from "@ledgerhq/ledger-wallet-provider-evm";
|
|
40
|
+
import { solanaBlockchainProviderFactory } from "@ledgerhq/ledger-wallet-provider-solana";
|
|
41
|
+
|
|
42
|
+
// Initialize the Ledger provider
|
|
43
|
+
const cleanup = initializeLedgerProvider({
|
|
44
|
+
dAppIdentifier: "my-dapp", // Your dApp identifier
|
|
45
|
+
apiKey: "your-api-key", // Your Ledger API key
|
|
46
|
+
walletTransactionFeatures: ["send", "receive", "buy", "earn", "sell", "swap"], // Quick action to make available
|
|
47
|
+
blockchainProviderFactories: [
|
|
48
|
+
evmBlockchainProviderFactory,
|
|
49
|
+
solanaBlockchainProviderFactory,
|
|
50
|
+
],
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
// EVM only: ask the provider to announce itself (EIP-6963)
|
|
54
|
+
window.dispatchEvent(new Event("eip6963:requestProvider"));
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The Solana wallet needs no equivalent call: it announces itself through the
|
|
58
|
+
Wallet Standard as soon as `initializeLedgerProvider` runs. Discover it with
|
|
59
|
+
`getWallets()` from `@wallet-standard/app`, or let a wallet adapter such as
|
|
60
|
+
`@solana/wallet-adapter` pick it up. Never dispatch `wallet-standard:app-ready`
|
|
61
|
+
yourself — that event carries the app's `register` callback, and emitting a bare
|
|
62
|
+
one will throw inside the wallet.
|
|
63
|
+
|
|
64
|
+
### React Integration
|
|
65
|
+
|
|
66
|
+
```tsx
|
|
67
|
+
import { useEffect, useState, useCallback } from 'react';
|
|
68
|
+
import type { EIP6963ProviderDetail } from '@ledgerhq/ledger-wallet-provider-evm';
|
|
69
|
+
import { evmBlockchainProviderFactory } from '@ledgerhq/ledger-wallet-provider-evm';
|
|
70
|
+
import { solanaBlockchainProviderFactory } from '@ledgerhq/ledger-wallet-provider-solana';
|
|
71
|
+
|
|
72
|
+
function useProviders() {
|
|
73
|
+
const [providers, setProviders] = useState<EIP6963ProviderDetail[]>([]);
|
|
74
|
+
const [selectedProvider, setSelectedProvider] = useState<EIP6963ProviderDetail | null>(null);
|
|
75
|
+
|
|
76
|
+
const handleAnnounceProvider = useCallback((e: CustomEvent<EIP6963ProviderDetail>) => {
|
|
77
|
+
setProviders(prev => {
|
|
78
|
+
const found = prev.find(p => p.info.uuid === e.detail.info.uuid);
|
|
79
|
+
if (found) return prev;
|
|
80
|
+
return [...prev, e.detail];
|
|
81
|
+
});
|
|
82
|
+
}, []);
|
|
83
|
+
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
// Dynamic import is required because the library uses browser APIs
|
|
86
|
+
// and won't work with Server-Side Rendering (SSR)
|
|
87
|
+
const initializeProvider = async () => {
|
|
88
|
+
const { initializeLedgerProvider } = await import('@ledgerhq/ledger-wallet-provider');
|
|
89
|
+
|
|
90
|
+
const cleanup = initializeLedgerProvider({
|
|
91
|
+
dAppIdentifier: 'my-dapp',
|
|
92
|
+
apiKey: 'your-api-key',
|
|
93
|
+
blockchainProviderFactories: [
|
|
94
|
+
evmBlockchainProviderFactory,
|
|
95
|
+
solanaBlockchainProviderFactory,
|
|
96
|
+
],
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
window.addEventListener('eip6963:announceProvider', handleAnnounceProvider);
|
|
100
|
+
|
|
101
|
+
return cleanup;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
let cleanup: (() => void) | undefined;
|
|
105
|
+
|
|
106
|
+
initializeProvider().then(cleanupFn => {
|
|
107
|
+
cleanup = cleanupFn;
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
return () => {
|
|
111
|
+
cleanup?.();
|
|
112
|
+
window.removeEventListener('eip6963:announceProvider', handleAnnounceProvider);
|
|
113
|
+
};
|
|
114
|
+
}, [handleAnnounceProvider]);
|
|
115
|
+
|
|
116
|
+
return { providers, selectedProvider, setSelectedProvider };
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function App() {
|
|
120
|
+
const { providers, selectedProvider, setSelectedProvider } = useProviders();
|
|
121
|
+
const [account, setAccount] = useState<string | null>(null);
|
|
122
|
+
|
|
123
|
+
const connectWallet = async () => {
|
|
124
|
+
if (!selectedProvider) return;
|
|
125
|
+
|
|
126
|
+
try {
|
|
127
|
+
const accounts = await selectedProvider.provider.request({
|
|
128
|
+
method: 'eth_requestAccounts',
|
|
129
|
+
params: []
|
|
130
|
+
});
|
|
131
|
+
setAccount(accounts[0]);
|
|
132
|
+
} catch (error) {
|
|
133
|
+
console.error('Failed to connect:', error);
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
const signTransaction = async (transaction: any) => {
|
|
138
|
+
if (!selectedProvider) return;
|
|
139
|
+
|
|
140
|
+
try {
|
|
141
|
+
const result = await selectedProvider.provider.request({
|
|
142
|
+
method: 'eth_signTransaction',
|
|
143
|
+
params: [transaction]
|
|
144
|
+
});
|
|
145
|
+
return result;
|
|
146
|
+
} catch (error) {
|
|
147
|
+
console.error('Failed to sign transaction:', error);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
return (
|
|
152
|
+
<div>
|
|
153
|
+
{providers.map(provider => (
|
|
154
|
+
<button
|
|
155
|
+
key={provider.info.uuid}
|
|
156
|
+
onClick={() => setSelectedProvider(provider)}
|
|
157
|
+
>
|
|
158
|
+
Connect {provider.info.name}
|
|
159
|
+
</button>
|
|
160
|
+
))}
|
|
161
|
+
|
|
162
|
+
{selectedProvider && (
|
|
163
|
+
<button onClick={connectWallet}>
|
|
164
|
+
Request Accounts
|
|
165
|
+
</button>
|
|
166
|
+
)}
|
|
167
|
+
|
|
168
|
+
{account && <p>Connected: {account}</p>}
|
|
169
|
+
</div>
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## API Reference
|
|
175
|
+
|
|
176
|
+
### `initializeLedgerProvider(options)`
|
|
177
|
+
|
|
178
|
+
Initializes the Ledger Wallet Provider and injects the UI components into the DOM.
|
|
179
|
+
|
|
180
|
+
#### Parameters
|
|
181
|
+
|
|
182
|
+
```typescript
|
|
183
|
+
{
|
|
184
|
+
// Core options
|
|
185
|
+
apiKey?: string; // Your Ledger API key
|
|
186
|
+
dAppIdentifier?: string; // Your dApp identifier
|
|
187
|
+
loggerLevel?: string; // default: 'info'
|
|
188
|
+
blockchainProviderFactories?: BlockchainProviderFactory[]; // Blockchain families to register
|
|
189
|
+
|
|
190
|
+
// Ui options
|
|
191
|
+
target?: HTMLElement; // Target element to mount UI (default: document.body)
|
|
192
|
+
hideButton?: boolean; // Mount the UI without rendering the floating button (default: false)
|
|
193
|
+
floatingButtonPosition?: // default: 'bottom-right'
|
|
194
|
+
| 'bottom-right' | 'bottom-left' | 'bottom-center'
|
|
195
|
+
| 'top-right' | 'top-left' | 'top-center'
|
|
196
|
+
| 'middle-right';
|
|
197
|
+
floatingButtonTarget?: HTMLElement | string; // Render the button into your own element instead
|
|
198
|
+
walletTransactionFeatures?: Array<'send' | 'receive' | 'swap' | 'buy' | 'earn' | 'sell'>; // Wallet action CTAs to display
|
|
199
|
+
transactionConfirmationNotification?: 'tooltip' | 'toast'; // How TX confirmation is shown (default: 'tooltip')
|
|
200
|
+
|
|
201
|
+
// Dev/debug - Only for Ledger use
|
|
202
|
+
devConfig?: { stub: Partial<Record<'balance' | 'base' | 'account' | 'device' | 'web3Provider' | 'transactionHistory', boolean>> };
|
|
203
|
+
environment?: 'staging' | 'production';
|
|
204
|
+
dmkConfig?: DeviceModuleOptions;
|
|
205
|
+
dmkLogLevel?: string; // default: 'error'
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
#### Returns
|
|
210
|
+
|
|
211
|
+
A cleanup function to remove the provider and UI components.
|
|
212
|
+
|
|
213
|
+
### `LedgerEIP1193Provider`
|
|
214
|
+
|
|
215
|
+
The main provider class that implements the EIP-1193 standard.
|
|
216
|
+
|
|
217
|
+
#### Methods
|
|
218
|
+
|
|
219
|
+
- `request({ method, params })` - Make JSON-RPC requests
|
|
220
|
+
- `on(event, listener)` - Listen to provider events
|
|
221
|
+
- `removeListener(event, listener)` - Remove event listeners
|
|
222
|
+
- `isConnected()` - Check connection status
|
|
223
|
+
- `disconnect()` - Disconnect from the provider
|
|
224
|
+
|
|
225
|
+
#### Supported Methods
|
|
226
|
+
|
|
227
|
+
Handled locally by the provider:
|
|
228
|
+
|
|
229
|
+
- `eth_requestAccounts` - Request user accounts
|
|
230
|
+
- `eth_accounts` - Get current accounts
|
|
231
|
+
- `eth_chainId` - Get current chain ID
|
|
232
|
+
- `eth_sendTransaction` - Send and sign transactions
|
|
233
|
+
- `eth_signTransaction` - Sign transactions
|
|
234
|
+
- `eth_signRawTransaction` - Sign raw transactions
|
|
235
|
+
- `eth_sendRawTransaction` - Send raw transactions
|
|
236
|
+
- `eth_sign` - Sign messages
|
|
237
|
+
- `personal_sign` - Sign personal messages
|
|
238
|
+
- `eth_signTypedData` - Sign typed data (EIP-712)
|
|
239
|
+
- `eth_signTypedData_v4` - Sign typed data v4 (EIP-712)
|
|
240
|
+
- `wallet_switchEthereumChain` - Switch to a supported chain ID
|
|
241
|
+
|
|
242
|
+
Forwarded to the node RPC:
|
|
243
|
+
|
|
244
|
+
- `eth_blockNumber` - Get the latest block number
|
|
245
|
+
- `eth_getBalance` - Get account balance
|
|
246
|
+
- `eth_getCode` - Get contract bytecode
|
|
247
|
+
- `eth_estimateGas` - Estimate gas for a call
|
|
248
|
+
- `eth_call` - Execute a read-only call
|
|
249
|
+
|
|
250
|
+
Your partner dApp configuration can add methods to either group, and can force a
|
|
251
|
+
normally-local method to be forwarded instead.
|
|
252
|
+
|
|
253
|
+
#### Events
|
|
254
|
+
|
|
255
|
+
- `accountsChanged` - Fired when accounts change
|
|
256
|
+
- `chainChanged` - Fired when chain changes
|
|
257
|
+
- `connect` - Fired when provider connects
|
|
258
|
+
- `disconnect` - Fired when provider disconnects
|
|
259
|
+
|
|
260
|
+
## Server-Side Rendering (SSR) Compatibility
|
|
261
|
+
|
|
262
|
+
The library uses browser-specific APIs and requires dynamic imports in SSR environments:
|
|
263
|
+
|
|
264
|
+
```javascript
|
|
265
|
+
// ❌ Don't do this in SSR environments
|
|
266
|
+
import { initializeLedgerProvider } from "@ledgerhq/ledger-wallet-provider";
|
|
267
|
+
|
|
268
|
+
// ✅ Use dynamic imports instead
|
|
269
|
+
useEffect(() => {
|
|
270
|
+
const initializeProvider = async () => {
|
|
271
|
+
const { initializeLedgerProvider } =
|
|
272
|
+
await import("@ledgerhq/ledger-wallet-provider");
|
|
273
|
+
return initializeLedgerProvider({/* options */});
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
initializeProvider();
|
|
277
|
+
}, []);
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
**Why dynamic imports are necessary:**
|
|
281
|
+
|
|
282
|
+
- The library uses Web APIs (`window`, `document`, `CustomEvent`) that don't exist in Node.js
|
|
283
|
+
- Direct imports will cause build errors in SSR frameworks (Next.js, Nuxt, SvelteKit, etc.)
|
|
284
|
+
- Dynamic imports ensure the code only runs in the browser environment
|
|
285
|
+
|
|
286
|
+
## Styling
|
|
287
|
+
|
|
288
|
+
Import the CSS file to get the default styling:
|
|
289
|
+
|
|
290
|
+
```javascript
|
|
291
|
+
import "@ledgerhq/ledger-wallet-provider/styles.css";
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
## Development Mode
|
|
295
|
+
|
|
296
|
+
These options are intended for internal use by Ledger Team, for development and testing.
|
|
297
|
+
|
|
298
|
+
```javascript
|
|
299
|
+
const cleanup = initializeLedgerProvider({
|
|
300
|
+
devConfig: {
|
|
301
|
+
stub: {
|
|
302
|
+
base: true, // Enable base stub mode
|
|
303
|
+
account: true, // Mock account operations
|
|
304
|
+
device: true, // Mock device interactions
|
|
305
|
+
web3Provider: true, // Mock Web3 provider responses
|
|
306
|
+
balance: true, // Mock balances
|
|
307
|
+
transactionHistory: true, // Mock transaction history
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
dAppIdentifier: "my-dapp",
|
|
311
|
+
apiKey: "your-api-key",
|
|
312
|
+
});
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
## Requirements
|
|
316
|
+
|
|
317
|
+
- ES2020+ support
|
|
318
|
+
- Modern bundler (Vite, Webpack 5+, etc.)
|
|
319
|
+
- Browser environment (no Node.js server-side execution)
|
|
320
|
+
- Web HID API support (for USB connections)
|
|
321
|
+
- Web Bluetooth API support (for Bluetooth connections)
|
|
322
|
+
- **Note**: Mobile browsers are not supported due to Web HID/BLE API not being implemented
|
|
323
|
+
|
|
324
|
+
## Browser Support
|
|
325
|
+
|
|
326
|
+
- **Desktop**: Chrome 89+, Firefox 89+, Safari 14.1+, Edge 89+
|
|
327
|
+
- **Mobile**: Not supported (Web HID/BLE APIs not available)
|
|
328
|
+
- **Web Extensions**: Supported in manifest v3 extensions
|
|
329
|
+
|
|
330
|
+
## Building
|
|
331
|
+
|
|
332
|
+
Run `nx build ledger-wallet-provider` to build the library.
|
|
333
|
+
|
|
334
|
+
## Testing
|
|
335
|
+
|
|
336
|
+
Run `nx test ledger-wallet-provider` to execute the unit tests via [Vitest](https://vitest.dev/).
|
|
337
|
+
|
|
338
|
+
## Storybook
|
|
339
|
+
|
|
340
|
+
Run `nx storybook ledger-wallet-provider` to start the Storybook development server for component development and testing.
|
|
341
|
+
|
|
342
|
+
## Version
|
|
343
|
+
|
|
344
|
+
See [CHANGELOG.md](./CHANGELOG.md) for the released versions and their changes.
|
|
345
|
+
|
|
346
|
+
## License
|
|
347
|
+
|
|
348
|
+
This project is licensed under the MIT License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-balance.d.ts","sourceRoot":"","sources":["../../../../src/components/atom/balance/ledger-balance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAKvC,qBAEa,aAAc,SAAQ,UAAU;IAE3C,KAAK,SAAa;IAGlB,OAAO,SAAK;IAGZ,MAAM,SAAM;IAEH,MAAM;CAYhB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { LedgerIconAttributes } from '../icon/ledger-icon';
|
|
3
|
+
export type ButtonVariant = "primary" | "secondary" | "accent" | "noBackground";
|
|
4
|
+
export type ButtonSize = "small" | "medium" | "large" | "xs" | "full";
|
|
5
|
+
export type IconPosition = "left" | "right";
|
|
6
|
+
export interface LedgerButtonAttributes {
|
|
7
|
+
label?: string;
|
|
8
|
+
variant?: ButtonVariant;
|
|
9
|
+
size?: ButtonSize;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
icon?: boolean;
|
|
12
|
+
iconPosition?: IconPosition;
|
|
13
|
+
type?: "button" | "submit" | "reset";
|
|
14
|
+
href?: string;
|
|
15
|
+
target?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class LedgerButton extends LitElement {
|
|
18
|
+
label: string;
|
|
19
|
+
variant: ButtonVariant;
|
|
20
|
+
size: ButtonSize;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
icon: boolean;
|
|
23
|
+
iconType?: LedgerIconAttributes["type"];
|
|
24
|
+
iconPosition: IconPosition;
|
|
25
|
+
type: "button" | "submit" | "reset";
|
|
26
|
+
href?: string;
|
|
27
|
+
target?: string;
|
|
28
|
+
private get buttonClasses();
|
|
29
|
+
private renderIcon;
|
|
30
|
+
private renderLabel;
|
|
31
|
+
private renderContent;
|
|
32
|
+
render(): import('lit').TemplateResult<1>;
|
|
33
|
+
private handleClick;
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
"ledger-button": LedgerButton;
|
|
38
|
+
}
|
|
39
|
+
interface WindowEventMap {
|
|
40
|
+
"ledger-button-click": CustomEvent<{
|
|
41
|
+
timestamp: number;
|
|
42
|
+
variant: ButtonVariant;
|
|
43
|
+
size: ButtonSize;
|
|
44
|
+
label: string;
|
|
45
|
+
}>;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export default LedgerButton;
|
|
49
|
+
//# sourceMappingURL=ledger-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-button.d.ts","sourceRoot":"","sources":["../../../../src/components/atom/button/ledger-button.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAG7B,OAAO,EAAa,UAAU,EAAW,MAAM,KAAK,CAAC;AAKrD,OAAO,EACL,oBAAoB,EAErB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,cAAc,CAAC;AAChF,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAE5C,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA6DD,qBAEa,YAAa,SAAQ,UAAU;IAE1C,KAAK,SAAM;IAGX,OAAO,EAAE,aAAa,CAAa;IAGnC,IAAI,EAAE,UAAU,CAAY;IAG5B,QAAQ,UAAS;IAGjB,IAAI,UAAS;IAGb,QAAQ,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAGxC,YAAY,EAAE,YAAY,CAAU;IAGpC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAY;IAG/C,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,OAAO,KAAK,aAAa,GAIxB;IAED,OAAO,CAAC,UAAU;IA0BlB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,aAAa;IAUZ,MAAM;IA6Bf,OAAO,CAAC,WAAW;CAqBpB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;IAED,UAAU,cAAc;QACtB,qBAAqB,EAAE,WAAW,CAAC;YACjC,SAAS,EAAE,MAAM,CAAC;YAClB,OAAO,EAAE,aAAa,CAAC;YACvB,IAAI,EAAE,UAAU,CAAC;YACjB,KAAK,EAAE,MAAM,CAAC;SACf,CAAC,CAAC;KACJ;CACF;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { DeviceModelId } from '../icon/device-icon/device-icon';
|
|
3
|
+
export interface LedgerChipAttributes {
|
|
4
|
+
label?: string;
|
|
5
|
+
icon?: "device";
|
|
6
|
+
}
|
|
7
|
+
export declare class LedgerChip extends LitElement {
|
|
8
|
+
label: string;
|
|
9
|
+
deviceModelId: DeviceModelId;
|
|
10
|
+
private get chipContainerClasses();
|
|
11
|
+
private get chipLabelClasses();
|
|
12
|
+
private get chipChevronClasses();
|
|
13
|
+
private renderIcon;
|
|
14
|
+
private renderChevron;
|
|
15
|
+
render(): import('lit').TemplateResult<1>;
|
|
16
|
+
private handleClick;
|
|
17
|
+
private handleKeydown;
|
|
18
|
+
}
|
|
19
|
+
declare global {
|
|
20
|
+
interface HTMLElementTagNameMap {
|
|
21
|
+
"ledger-chip": LedgerChip;
|
|
22
|
+
}
|
|
23
|
+
interface WindowEventMap {
|
|
24
|
+
"ledger-chip-click": CustomEvent<{
|
|
25
|
+
timestamp: number;
|
|
26
|
+
label: string;
|
|
27
|
+
deviceModelId: DeviceModelId;
|
|
28
|
+
}>;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export default LedgerChip;
|
|
32
|
+
//# sourceMappingURL=ledger-chip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-chip.d.ts","sourceRoot":"","sources":["../../../../src/components/atom/chip/ledger-chip.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,iCAAiC,CAAC;AAGzC,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAKvC,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAWD,qBAEa,UAAW,SAAQ,UAAU;IAExC,KAAK,SAAM;IAGX,aAAa,EAAE,aAAa,CAAU;IAEtC,OAAO,KAAK,oBAAoB,GAI/B;IAED,OAAO,KAAK,gBAAgB,GAI3B;IAED,OAAO,KAAK,kBAAkB,GAI7B;IAED,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,aAAa;IAQZ,MAAM;IAef,OAAO,CAAC,WAAW;IAcnB,OAAO,CAAC,aAAa;CAMtB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;IAED,UAAU,cAAc;QACtB,mBAAmB,EAAE,WAAW,CAAC;YAC/B,SAAS,EAAE,MAAM,CAAC;YAClB,KAAK,EAAE,MAAM,CAAC;YACd,aAAa,EAAE,aAAa,CAAC;SAC9B,CAAC,CAAC;KACJ;CACF;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type CryptoIconMapping = Record<string, {
|
|
2
|
+
icon: string;
|
|
3
|
+
}>;
|
|
4
|
+
export declare const CRYPTO_ICONS_BASE_URL = "https://crypto-icons.ledger.com/";
|
|
5
|
+
/**
|
|
6
|
+
* Resolves the icon URL for a `ledgerId`, mirroring Ledger Live's resolution
|
|
7
|
+
* chain: the Ledger CDN index first, then the CoinGecko mapping as a fallback.
|
|
8
|
+
* Returns `null` when neither source has a match, letting the component render
|
|
9
|
+
* the letter placeholder. The CoinGecko mapping is only fetched lazily, when a
|
|
10
|
+
* `ledgerId` misses the index. Results are cached per `ledgerId`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveIconUrl(ledgerId: string): Promise<string | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Clears the module-level mapping promises and per-`ledgerId` cache. Intended
|
|
15
|
+
* for tests only, so each case starts from a clean slate.
|
|
16
|
+
*/
|
|
17
|
+
export declare function resetCryptoIconCachesForTesting(): void;
|
|
18
|
+
//# sourceMappingURL=crypto-icon-mapping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crypto-icon-mapping.d.ts","sourceRoot":"","sources":["../../../../src/components/atom/crypto-icon/crypto-icon-mapping.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEjE,eAAO,MAAM,qBAAqB,qCAAqC,CAAC;AAuDxE;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAqB7E;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,IAAI,IAAI,CAItD"}
|