@ledgerhq/ledger-wallet-provider 1.0.1 → 1.1.1-develop.0

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.
Files changed (118) hide show
  1. package/dist/components/atom/drawer/index.d.ts +2 -0
  2. package/dist/components/atom/drawer/index.d.ts.map +1 -0
  3. package/dist/components/atom/drawer/ledger-drawer.d.ts +56 -0
  4. package/dist/components/atom/drawer/ledger-drawer.d.ts.map +1 -0
  5. package/dist/components/atom/fiat-total/ledger-fiat-total.d.ts +11 -0
  6. package/dist/components/atom/fiat-total/ledger-fiat-total.d.ts.map +1 -0
  7. package/dist/components/atom/floating-button/ledger-floating-button-controller.d.ts +0 -4
  8. package/dist/components/atom/floating-button/ledger-floating-button-controller.d.ts.map +1 -1
  9. package/dist/components/atom/floating-button/ledger-floating-button.d.ts +1 -1
  10. package/dist/components/atom/floating-button/ledger-floating-button.d.ts.map +1 -1
  11. package/dist/components/atom/icon/buyIcon.d.ts +3 -0
  12. package/dist/components/atom/icon/buyIcon.d.ts.map +1 -0
  13. package/dist/components/atom/icon/earnIcon.d.ts +3 -0
  14. package/dist/components/atom/icon/earnIcon.d.ts.map +1 -0
  15. package/dist/components/atom/icon/index.d.ts +7 -0
  16. package/dist/components/atom/icon/index.d.ts.map +1 -1
  17. package/dist/components/atom/icon/infoIcon.d.ts +3 -0
  18. package/dist/components/atom/icon/infoIcon.d.ts.map +1 -0
  19. package/dist/components/atom/icon/ledger-icon.d.ts +1 -1
  20. package/dist/components/atom/icon/ledger-icon.d.ts.map +1 -1
  21. package/dist/components/atom/icon/receiveIcon.d.ts +3 -0
  22. package/dist/components/atom/icon/receiveIcon.d.ts.map +1 -0
  23. package/dist/components/atom/icon/sellIcon.d.ts +3 -0
  24. package/dist/components/atom/icon/sellIcon.d.ts.map +1 -0
  25. package/dist/components/atom/icon/sendIcon.d.ts +3 -0
  26. package/dist/components/atom/icon/sendIcon.d.ts.map +1 -0
  27. package/dist/components/atom/icon/swapIcon.d.ts +3 -0
  28. package/dist/components/atom/icon/swapIcon.d.ts.map +1 -0
  29. package/dist/components/atom/lottie/ledger-lottie.d.ts.map +1 -1
  30. package/dist/components/atom/modal/animation-types.d.ts +14 -0
  31. package/dist/components/atom/modal/animation-types.d.ts.map +1 -0
  32. package/dist/components/atom/modal/center-animation.d.ts +8 -0
  33. package/dist/components/atom/modal/center-animation.d.ts.map +1 -0
  34. package/dist/components/atom/modal/ledger-modal.d.ts +18 -8
  35. package/dist/components/atom/modal/ledger-modal.d.ts.map +1 -1
  36. package/dist/components/atom/modal/modal-animation-controller.d.ts +20 -0
  37. package/dist/components/atom/modal/modal-animation-controller.d.ts.map +1 -0
  38. package/dist/components/atom/modal/modal-focus-controller.d.ts +19 -0
  39. package/dist/components/atom/modal/modal-focus-controller.d.ts.map +1 -0
  40. package/dist/components/atom/modal/modal-scroll-lock-controller.d.ts +11 -0
  41. package/dist/components/atom/modal/modal-scroll-lock-controller.d.ts.map +1 -0
  42. package/dist/components/atom/modal/panel-animation.d.ts +8 -0
  43. package/dist/components/atom/modal/panel-animation.d.ts.map +1 -0
  44. package/dist/components/atom/skeleton/ledger-skeleton.d.ts +10 -0
  45. package/dist/components/atom/skeleton/ledger-skeleton.d.ts.map +1 -0
  46. package/dist/components/atom/tabs/ledger-tabs.d.ts +32 -0
  47. package/dist/components/atom/tabs/ledger-tabs.d.ts.map +1 -0
  48. package/dist/components/index.d.ts +7 -0
  49. package/dist/components/index.d.ts.map +1 -1
  50. package/dist/components/molecule/account-item/ledger-account-item.d.ts +5 -1
  51. package/dist/components/molecule/account-item/ledger-account-item.d.ts.map +1 -1
  52. package/dist/components/molecule/account-switch/ledger-account-switch.d.ts +0 -1
  53. package/dist/components/molecule/account-switch/ledger-account-switch.d.ts.map +1 -1
  54. package/dist/components/molecule/chain-item/ledger-chain-item.d.ts +5 -0
  55. package/dist/components/molecule/chain-item/ledger-chain-item.d.ts.map +1 -1
  56. package/dist/components/molecule/device-item/ledger-device-item.d.ts +1 -0
  57. package/dist/components/molecule/device-item/ledger-device-item.d.ts.map +1 -1
  58. package/dist/components/molecule/toolbar/ledger-toolbar.d.ts.map +1 -1
  59. package/dist/components/molecule/transaction-item/ledger-transaction-item.d.ts +36 -0
  60. package/dist/components/molecule/transaction-item/ledger-transaction-item.d.ts.map +1 -0
  61. package/dist/components/molecule/wallet-actions/ledger-wallet-actions.d.ts +26 -0
  62. package/dist/components/molecule/wallet-actions/ledger-wallet-actions.d.ts.map +1 -0
  63. package/dist/components/molecule/wallet-redirect-drawer/ledger-wallet-redirect-drawer.d.ts +34 -0
  64. package/dist/components/molecule/wallet-redirect-drawer/ledger-wallet-redirect-drawer.d.ts.map +1 -0
  65. package/dist/context/language-context.d.ts +18 -0
  66. package/dist/context/language-context.d.ts.map +1 -1
  67. package/dist/domain/account-tokens/account-token-controller.d.ts +4 -0
  68. package/dist/domain/account-tokens/account-token-controller.d.ts.map +1 -1
  69. package/dist/domain/account-tokens/account-tokens.d.ts +3 -1
  70. package/dist/domain/account-tokens/account-tokens.d.ts.map +1 -1
  71. package/dist/domain/device-switch/device-switch-controller.d.ts +2 -14
  72. package/dist/domain/device-switch/device-switch-controller.d.ts.map +1 -1
  73. package/dist/domain/device-switch/device-switch.d.ts +3 -5
  74. package/dist/domain/device-switch/device-switch.d.ts.map +1 -1
  75. package/dist/domain/home/ledger-home-controller.d.ts +2 -2
  76. package/dist/domain/home/ledger-home-controller.d.ts.map +1 -1
  77. package/dist/domain/home/ledger-home.d.ts +10 -0
  78. package/dist/domain/home/ledger-home.d.ts.map +1 -1
  79. package/dist/domain/home-flow/home-flow.d.ts +3 -0
  80. package/dist/domain/home-flow/home-flow.d.ts.map +1 -1
  81. package/dist/domain/onboarding/retrieving-accounts/retrieving-accounts-controller.d.ts.map +1 -1
  82. package/dist/domain/onboarding/retrieving-accounts/retrieving-accounts.d.ts.map +1 -1
  83. package/dist/domain/onboarding/select-account/select-account-controller.d.ts +14 -1
  84. package/dist/domain/onboarding/select-account/select-account-controller.d.ts.map +1 -1
  85. package/dist/domain/onboarding/select-account/select-account.d.ts +1 -0
  86. package/dist/domain/onboarding/select-account/select-account.d.ts.map +1 -1
  87. package/dist/domain/onboarding/select-device/select-device-controller.d.ts.map +1 -1
  88. package/dist/domain/sign-transaction/sign-transaction-controller.d.ts +1 -0
  89. package/dist/domain/sign-transaction/sign-transaction-controller.d.ts.map +1 -1
  90. package/dist/domain/token-list/token-list-controller.d.ts +18 -0
  91. package/dist/domain/token-list/token-list-controller.d.ts.map +1 -0
  92. package/dist/domain/token-list/token-list.d.ts +19 -0
  93. package/dist/domain/token-list/token-list.d.ts.map +1 -0
  94. package/dist/domain/transaction-list/transaction-list.d.ts +29 -0
  95. package/dist/domain/transaction-list/transaction-list.d.ts.map +1 -0
  96. package/dist/i18n/en.json.d.ts +19 -1
  97. package/dist/index.d.ts +4 -1
  98. package/dist/index.d.ts.map +1 -1
  99. package/dist/index.js +60911 -57281
  100. package/dist/ledger-button-app.d.ts +4 -1
  101. package/dist/ledger-button-app.d.ts.map +1 -1
  102. package/dist/shared/constants/deeplinks.d.ts +28 -0
  103. package/dist/shared/constants/deeplinks.d.ts.map +1 -0
  104. package/dist/shared/constants/index.d.ts +2 -0
  105. package/dist/shared/constants/index.d.ts.map +1 -0
  106. package/dist/shared/navigation.d.ts +3 -2
  107. package/dist/shared/navigation.d.ts.map +1 -1
  108. package/dist/shared/root-navigation.d.ts +12 -2
  109. package/dist/shared/root-navigation.d.ts.map +1 -1
  110. package/dist/shared/routes.d.ts +7 -2
  111. package/dist/shared/routes.d.ts.map +1 -1
  112. package/dist/styles.css +164 -15
  113. package/dist/utils/format-address.d.ts +9 -0
  114. package/dist/utils/format-address.d.ts.map +1 -0
  115. package/dist/web3-provider/LedgerEIP1193Provider.d.ts.map +1 -1
  116. package/dist/web3-provider/supportedRpcMethods.d.ts +1 -0
  117. package/dist/web3-provider/supportedRpcMethods.d.ts.map +1 -1
  118. package/package.json +7 -7
@@ -1,6 +1,8 @@
1
1
  import { Account, LedgerButtonCore, SignedResults } from '@ledgerhq/ledger-wallet-provider-core';
2
2
  import { LitElement } from 'lit';
3
3
  import { FloatingButtonPosition as FloatingButtonPositionComponent } from './components/atom/floating-button/ledger-floating-button.js';
4
+ import { ModalMode } from './components/index.js';
5
+ import { WalletTransactionFeature } from './components/molecule/wallet-actions/ledger-wallet-actions.js';
4
6
  import { RootNavigationComponent } from './shared/root-navigation.js';
5
7
  import { Destination } from './shared/routes.js';
6
8
  import { LedgerButtonAppController } from './ledger-button-app-controller.js';
@@ -9,6 +11,7 @@ export declare class LedgerButtonApp extends LitElement {
9
11
  root: RootNavigationComponent;
10
12
  core: LedgerButtonCore;
11
13
  floatingButtonPosition: FloatingButtonPosition;
14
+ walletTransactionFeatures?: WalletTransactionFeature[];
12
15
  controller: LedgerButtonAppController;
13
16
  connectedCallback(): void;
14
17
  get isModalOpen(): boolean;
@@ -18,7 +21,7 @@ export declare class LedgerButtonApp extends LitElement {
18
21
  private handleLedgerButtonDisconnect;
19
22
  private handleAccountSwitch;
20
23
  private handleFloatingButtonClick;
21
- navigationIntent(intent: Destination["name"], params?: unknown): void;
24
+ navigationIntent(intent: Destination["name"], params?: unknown, mode?: ModalMode): void;
22
25
  disconnect(): void;
23
26
  openModal(): void;
24
27
  private renderFloatingButton;
@@ -1 +1 @@
1
- {"version":3,"file":"ledger-button-app.d.ts","sourceRoot":"","sources":["../src/ledger-button-app.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAC/B,OAAO,6BAA6B,CAAC;AACrC,OAAO,+BAA+B,CAAC;AACvC,OAAO,2BAA2B,CAAC;AACnC,OAAO,oBAAoB,CAAC;AAE5B,OAAO,EACL,OAAO,EAIP,gBAAgB,EAChB,aAAa,EACd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAQ,UAAU,EAAW,MAAM,KAAK,CAAC;AAGhD,OAAO,KAAK,EAAE,sBAAsB,IAAI,+BAA+B,EAAE,MAAM,6DAA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BAAyB,CAG/B;IAEK,gBAAgB,CACrB,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,EAC3B,MAAM,CAAC,EAAE,OAAO,EAChB,IAAI,CAAC,EAAE,SAAS;IAKX,UAAU;IASjB,SAAS;IAIT,OAAO,CAAC,oBAAoB;IAUnB,MAAM;CAehB;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;IAED,UAAU,cAAc;QACtB,kCAAkC,EAAE,WAAW,CAC3C;YAAE,OAAO,EAAE,OAAO,CAAC;YAAC,MAAM,EAAE,SAAS,CAAA;SAAE,GACvC;YAAE,MAAM,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAE,CACtC,CAAC;QACF,sBAAsB,EAAE,WAAW,CAC/B;YACE,MAAM,EAAE,SAAS,CAAC;YAClB,IAAI,EAAE,aAAa,CAAC;SACrB,GACD;YACE,MAAM,EAAE,OAAO,CAAC;YAChB,KAAK,EAAE,OAAO,CAAC;SAChB,CACJ,CAAC;QACF,4BAA4B,EAAE,WAAW,CAAC;KAC3C;CACF"}
@@ -0,0 +1,28 @@
1
+ import { WalletTransactionFeature } from '../../components/molecule/wallet-actions/ledger-wallet-actions.js';
2
+ /**
3
+ * Context for building deep links with pre-filled information.
4
+ */
5
+ export type DeepLinkContext = {
6
+ currency?: string;
7
+ address?: string;
8
+ };
9
+ /**
10
+ * Builds a deep link for a wallet action with optional context for pre-filling information.
11
+ *
12
+ * Based on Ledger Live Desktop deep link documentation:
13
+ * - send: ?currency={currency} (pre-fills currency selection)
14
+ * - receive: ?currency={currency} (pre-fills currency selection)
15
+ * - swap: ?fromToken={currency} (pre-fills source token)
16
+ * - buy: no params (params passed through to liveApp)
17
+ * - earn: ?cryptoAssetId={currency} (pre-fills asset for deposit)
18
+ * - sell: not supported in Desktop, falls back to buy
19
+ *
20
+ * When partner is provided, appends tracking query params: deeplinkType, deeplinkDestination,
21
+ * deeplinkChannel, deeplinkButtonPartner (for deeplink_clicked analytics).
22
+ */
23
+ export declare function buildWalletActionDeepLink(action: WalletTransactionFeature, context?: DeepLinkContext, partner?: string): string;
24
+ /**
25
+ * URL to download the Ledger Wallet desktop application.
26
+ */
27
+ export declare const LEDGER_WALLET_DOWNLOAD_URL = "https://shop.ledger.com/pages/ledger-wallet-download";
28
+ //# sourceMappingURL=deeplinks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deeplinks.d.ts","sourceRoot":"","sources":["../../../src/shared/constants/deeplinks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mEAAmE,CAAC;AAElH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAgBF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,CAoCR;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B,yDACiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './deeplinks.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { ReactiveController, ReactiveControllerHost } from 'lit';
2
+ import { CoreContext } from '../context/core-context.js';
2
3
  import { Destination } from './routes.js';
3
- export declare const ANIMATION_DELAY = 250;
4
+ export declare const ANIMATION_DELAY = 300;
4
5
  export declare class Navigation implements ReactiveController {
5
6
  private readonly modalContent;
6
7
  host: ReactiveControllerHost;
@@ -15,6 +16,6 @@ export declare class Navigation implements ReactiveController {
15
16
  navigateBack(): void;
16
17
  resetNavigation(): void;
17
18
  private clearNavigationTimeout;
18
- canGoBack(destination?: Destination): boolean;
19
+ canGoBack(destination?: Destination, core?: CoreContext): boolean;
19
20
  }
20
21
  //# sourceMappingURL=navigation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/shared/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,eAAe,MAAM,CAAC;AAEnC,qBAAa,UAAW,YAAW,kBAAkB;IASjD,OAAO,CAAC,QAAQ,CAAC,YAAY;IAR/B,IAAI,EAAE,sBAAsB,CAAC;IAE7B,OAAO,EAAE,WAAW,EAAE,CAAM;IAC5B,aAAa,EAAE,WAAW,GAAG,IAAI,CAAQ;IACzC,OAAO,CAAC,mBAAmB,CAAuB;gBAGhD,IAAI,EAAE,sBAAsB,EACX,YAAY,EAAE,WAAW;IAM5C,aAAa;IAMb,gBAAgB;IAKhB,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC;IAcjD,UAAU,CAAC,WAAW,EAAE,WAAW;IA0BnC,YAAY;IAQZ,eAAe;IAOf,OAAO,CAAC,sBAAsB;IAO9B,SAAS,CAAC,WAAW,CAAC,EAAE,WAAW;CAOpC"}
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/shared/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAoB,MAAM,aAAa,CAAC;AAE5D,eAAO,MAAM,eAAe,MAAM,CAAC;AAEnC,qBAAa,UAAW,YAAW,kBAAkB;IASjD,OAAO,CAAC,QAAQ,CAAC,YAAY;IAR/B,IAAI,EAAE,sBAAsB,CAAC;IAE7B,OAAO,EAAE,WAAW,EAAE,CAAM;IAC5B,aAAa,EAAE,WAAW,GAAG,IAAI,CAAQ;IACzC,OAAO,CAAC,mBAAmB,CAAuB;gBAGhD,IAAI,EAAE,sBAAsB,EACX,YAAY,EAAE,WAAW;IAM5C,aAAa;IAMb,gBAAgB;IAKhB,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC;IAcjD,UAAU,CAAC,WAAW,EAAE,WAAW;IA4BnC,YAAY;IAQZ,eAAe;IAOf,OAAO,CAAC,sBAAsB;IAO9B,SAAS,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO;CAOlE"}
@@ -1,5 +1,7 @@
1
1
  import { Account } from '@ledgerhq/ledger-wallet-provider-core';
2
2
  import { LitElement } from 'lit';
3
+ import { ModalMode } from '../components/atom/modal/ledger-modal.js';
4
+ import { WalletTransactionFeature } from '../components/molecule/wallet-actions/ledger-wallet-actions.js';
3
5
  import { CoreContext } from '../context/core-context.js';
4
6
  import { LanguageContext } from '../context/language-context.js';
5
7
  import { RootNavigationController } from './root-navigation-controller.js';
@@ -7,18 +9,26 @@ import { Destination } from './routes.js';
7
9
  export declare class RootNavigationComponent extends LitElement {
8
10
  coreContext: CoreContext;
9
11
  languageContext: LanguageContext;
12
+ walletTransactionFeatures?: WalletTransactionFeature[];
10
13
  private ledgerModal;
11
14
  private modalContent;
12
15
  rootNavigationController: RootNavigationController;
13
16
  isModalOpen: boolean;
17
+ private hasTrackingConsent?;
18
+ private contextSubscription?;
14
19
  connectedCallback(): void;
15
- openModal(): void;
20
+ disconnectedCallback(): void;
21
+ private subscribeToContext;
22
+ openModal(mode?: ModalMode): void;
16
23
  closeModal(): void;
17
24
  selectAccount(account: Account): void;
18
25
  getSelectedAccount(): Account | undefined;
19
- navigationIntent(intent: Destination["name"], params?: unknown): void;
26
+ getModalMode(): ModalMode;
27
+ navigateToHome(): void;
28
+ navigationIntent(intent: Destination["name"], params?: unknown, mode?: ModalMode): void;
20
29
  private handleModalOpen;
21
30
  private handleModalClose;
31
+ private handleModalAnimationComplete;
22
32
  private handleChipClick;
23
33
  private handleSettingsClick;
24
34
  private goBack;
@@ -1 +1 @@
1
- {"version":3,"file":"root-navigation.d.ts","sourceRoot":"","sources":["../../src/shared/root-navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEhE,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,EAAE,WAAW,EAAe,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAe,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAE9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,qBACa,uBAAwB,SAAQ,UAAU;IAE9C,WAAW,EAAG,WAAW,CAAC;IAI1B,eAAe,EAAG,eAAe,CAAC;IAGzC,OAAO,CAAC,WAAW,CAAe;IAGlC,OAAO,CAAC,YAAY,CAAe;IAEnC,wBAAwB,EAAG,wBAAwB,CAAC;IAEpD,WAAW,UAAS;IAEX,iBAAiB;IAWnB,SAAS;IAKT,UAAU;IAWV,aAAa,CAAC,OAAO,EAAE,OAAO;IAI9B,kBAAkB;IAIlB,gBAAgB,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO;IAMrE,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,gBAAgB;IAsBxB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,YAAY;IAkBX,MAAM;CAgDhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,2BAA2B,EAAE,uBA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,CAAC,EAC3B,MAAM,CAAC,EAAE,OAAO,EAChB,IAAI,CAAC,EAAE,SAAS;IAOlB,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,4BAA4B;IAIpC,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,YAAY;IAmBX,MAAM;CA2DhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,2BAA2B,EAAE,uBAAuB,CAAC;KACtD;IAED,UAAU,cAAc;QACtB,uBAAuB,EAAE,WAAW,CAAC;QACrC,wBAAwB,EAAE,WAAW,CAAC;QACtC,yBAAyB,EAAE,WAAW,CAAC;KACxC;CACF"}
@@ -1,19 +1,23 @@
1
1
  import { LitElement } from 'lit';
2
+ import { CoreContext } from '../context/core-context.js';
2
3
  import { Translation } from '../context/language-context.js';
3
4
  export declare class LedgerButton404 extends LitElement {
4
5
  static styles: import('lit').CSSResult;
5
6
  render(): import('lit').TemplateResult<1>;
6
7
  }
7
8
  export type Destinations = Record<string, Destination>;
9
+ export type CanGoBackValue = boolean | ((core: CoreContext) => boolean);
8
10
  export type Destination = {
9
11
  name: string;
10
12
  component: string;
11
- canGoBack: boolean;
13
+ canGoBack: CanGoBackValue;
14
+ skipHistory?: boolean;
12
15
  toolbar: {
13
16
  title: string;
14
17
  canClose: boolean;
15
18
  };
16
19
  };
20
+ export declare function resolveCanGoBack(canGoBack: CanGoBackValue | undefined, core: CoreContext): boolean;
17
21
  export declare const makeDestinations: (translation: Translation) => {
18
22
  readonly home: {
19
23
  readonly name: "home-flow";
@@ -92,6 +96,7 @@ export declare const makeDestinations: (translation: Translation) => {
92
96
  readonly name: "fetchAccounts";
93
97
  readonly component: "retrieving-accounts-screen";
94
98
  readonly canGoBack: false;
99
+ readonly skipHistory: true;
95
100
  readonly toolbar: {
96
101
  readonly title: string;
97
102
  readonly canClose: false;
@@ -100,7 +105,7 @@ export declare const makeDestinations: (translation: Translation) => {
100
105
  readonly selectAccount: {
101
106
  readonly name: "selectAccount";
102
107
  readonly component: "select-account-screen";
103
- readonly canGoBack: false;
108
+ readonly canGoBack: (core: CoreContext) => boolean;
104
109
  readonly toolbar: {
105
110
  readonly title: string;
106
111
  readonly canClose: true;
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/shared/routes.ts"],"names":[],"mappings":"AAAA,OAAO,qDAAqD,CAAC;AAC7D,OAAO,iDAAiD,CAAC;AACzD,OAAO,iEAAiE,CAAC;AACzE,OAAO,uDAAuD,CAAC;AAC/D,OAAO,gDAAgD,CAAC;AACxD,OAAO,iEAAiE,CAAC;AACzE,OAAO,gDAAgD,CAAC;AACxD,OAAO,+BAA+B,CAAC;AACvC,OAAO,0CAA0C,CAAC;AAClD,OAAO,gEAAgE,CAAC;AACxE,OAAO,mDAAmD,CAAC;AAC3D,OAAO,yDAAyD,CAAC;AACjE,OAAO,wCAAwC,CAAC;AAChD,OAAO,4CAA4C,CAAC;AACpD,OAAO,mEAAmE,CAAC;AAC3E,OAAO,iEAAiE,CAAC;AACzE,OAAO,uCAAuC,CAAC;AAC/C,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,qBACa,eAAgB,SAAQ,UAAU;IAC7C,OAAgB,MAAM,0BA4BpB;IAEO,MAAM;CAGhB;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AACvD,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,OAAO,CAAC;KAC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C;AACxE,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,cAAc,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH,CAAC;AAEF,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,cAAc,GAAG,SAAS,EACrC,IAAI,EAAE,WAAW,GAChB,OAAO,CAKT;AAGD,eAAO,MAAM,gBAAgB,GAAI,aAAa,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAwFjC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFlC,CAAC"}
package/dist/styles.css CHANGED
@@ -2345,6 +2345,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2345
2345
  pointer-events: none;
2346
2346
  }
2347
2347
 
2348
+ .lb-pointer-events-auto{
2349
+ pointer-events: auto;
2350
+ }
2351
+
2348
2352
  .lb-fixed{
2349
2353
  position: fixed;
2350
2354
  }
@@ -2365,6 +2369,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2365
2369
  inset: var(--spacing-0);
2366
2370
  }
2367
2371
 
2372
+ .-lb-bottom-2{
2373
+ bottom: calc(var(--spacing-2) * -1);
2374
+ }
2375
+
2376
+ .-lb-right-2{
2377
+ right: calc(var(--spacing-2) * -1);
2378
+ }
2379
+
2368
2380
  .lb-bottom-0{
2369
2381
  bottom: var(--spacing-0);
2370
2382
  }
@@ -2385,6 +2397,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2385
2397
  left: var(--spacing-24);
2386
2398
  }
2387
2399
 
2400
+ .lb-right-0{
2401
+ right: var(--spacing-0);
2402
+ }
2403
+
2404
+ .lb-right-16{
2405
+ right: var(--spacing-16);
2406
+ }
2407
+
2388
2408
  .lb-right-24{
2389
2409
  right: var(--spacing-24);
2390
2410
  }
@@ -2393,6 +2413,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2393
2413
  top: var(--spacing-0);
2394
2414
  }
2395
2415
 
2416
+ .lb-top-1\/2{
2417
+ top: 50%;
2418
+ }
2419
+
2420
+ .lb-top-16{
2421
+ top: var(--spacing-16);
2422
+ }
2423
+
2396
2424
  .lb-top-24{
2397
2425
  top: var(--spacing-24);
2398
2426
  }
@@ -2401,6 +2429,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2401
2429
  z-index: 1000;
2402
2430
  }
2403
2431
 
2432
+ .lb-m-16{
2433
+ margin: var(--spacing-16);
2434
+ }
2435
+
2404
2436
  .lb-mt-12{
2405
2437
  margin-top: var(--spacing-12);
2406
2438
  }
@@ -2429,6 +2461,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2429
2461
  height: var(--size-1);
2430
2462
  }
2431
2463
 
2464
+ .lb-h-12{
2465
+ height: var(--size-12);
2466
+ }
2467
+
2468
+ .lb-h-128{
2469
+ height: var(--size-128);
2470
+ }
2471
+
2432
2472
  .lb-h-16{
2433
2473
  height: var(--size-16);
2434
2474
  }
@@ -2465,6 +2505,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2465
2505
  height: var(--size-8);
2466
2506
  }
2467
2507
 
2508
+ .lb-h-\[59px\]{
2509
+ height: 59px;
2510
+ }
2511
+
2468
2512
  .lb-h-full{
2469
2513
  height: 100%;
2470
2514
  }
@@ -2477,8 +2521,12 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2477
2521
  min-height: 100%;
2478
2522
  }
2479
2523
 
2480
- .lb-min-h-screen{
2481
- min-height: 100vh;
2524
+ .lb-w-1\/2{
2525
+ width: 50%;
2526
+ }
2527
+
2528
+ .lb-w-112{
2529
+ width: var(--size-112);
2482
2530
  }
2483
2531
 
2484
2532
  .lb-w-16{
@@ -2497,22 +2545,46 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2497
2545
  width: var(--size-24);
2498
2546
  }
2499
2547
 
2548
+ .lb-w-256{
2549
+ width: var(--size-256);
2550
+ }
2551
+
2552
+ .lb-w-3\/4{
2553
+ width: 75%;
2554
+ }
2555
+
2500
2556
  .lb-w-32{
2501
2557
  width: var(--size-32);
2502
2558
  }
2503
2559
 
2560
+ .lb-w-40{
2561
+ width: var(--size-40);
2562
+ }
2563
+
2504
2564
  .lb-w-48{
2505
2565
  width: var(--size-48);
2506
2566
  }
2507
2567
 
2568
+ .lb-w-56{
2569
+ width: var(--size-56);
2570
+ }
2571
+
2508
2572
  .lb-w-64{
2509
2573
  width: var(--size-64);
2510
2574
  }
2511
2575
 
2576
+ .lb-w-72{
2577
+ width: var(--size-72);
2578
+ }
2579
+
2512
2580
  .lb-w-8{
2513
2581
  width: var(--size-8);
2514
2582
  }
2515
2583
 
2584
+ .lb-w-80{
2585
+ width: var(--size-80);
2586
+ }
2587
+
2516
2588
  .lb-w-full{
2517
2589
  width: 100%;
2518
2590
  }
@@ -2533,6 +2605,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2533
2605
  max-width: var(--size-208);
2534
2606
  }
2535
2607
 
2608
+ .lb-max-w-\[400px\]{
2609
+ max-width: 400px;
2610
+ }
2611
+
2536
2612
  .lb-max-w-full{
2537
2613
  max-width: 100%;
2538
2614
  }
@@ -2557,6 +2633,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2557
2633
  flex-grow: 1;
2558
2634
  }
2559
2635
 
2636
+ .lb-basis-0{
2637
+ flex-basis: var(--spacing-0);
2638
+ }
2639
+
2560
2640
  .lb-basis-80{
2561
2641
  flex-basis: var(--spacing-80);
2562
2642
  }
@@ -2566,19 +2646,24 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2566
2646
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2567
2647
  }
2568
2648
 
2649
+ .lb--translate-y-1\/2{
2650
+ --tw-translate-y: -50%;
2651
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2652
+ }
2653
+
2569
2654
  .lb-rotate-90{
2570
2655
  --tw-rotate: 90deg;
2571
2656
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2572
2657
  }
2573
2658
 
2574
- @keyframes lb-spin{
2575
- to{
2576
- transform: rotate(360deg);
2659
+ @keyframes lb-pulse{
2660
+ 50%{
2661
+ opacity: .5;
2577
2662
  }
2578
2663
  }
2579
2664
 
2580
- .lb-animate-spin{
2581
- animation: lb-spin 1s linear infinite;
2665
+ .lb-animate-pulse{
2666
+ animation: lb-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
2582
2667
  }
2583
2668
 
2584
2669
  .lb-cursor-default{
@@ -2601,10 +2686,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2601
2686
  flex-direction: column;
2602
2687
  }
2603
2688
 
2604
- .lb-content-center{
2605
- align-content: center;
2606
- }
2607
-
2608
2689
  .lb-content-stretch{
2609
2690
  align-content: stretch;
2610
2691
  }
@@ -2613,6 +2694,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2613
2694
  align-items: flex-start;
2614
2695
  }
2615
2696
 
2697
+ .lb-items-end{
2698
+ align-items: flex-end;
2699
+ }
2700
+
2616
2701
  .lb-items-center{
2617
2702
  align-items: center;
2618
2703
  }
@@ -2621,6 +2706,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2621
2706
  align-items: stretch;
2622
2707
  }
2623
2708
 
2709
+ .lb-justify-start{
2710
+ justify-content: flex-start;
2711
+ }
2712
+
2624
2713
  .lb-justify-end{
2625
2714
  justify-content: flex-end;
2626
2715
  }
@@ -2707,6 +2796,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2707
2796
  border-radius: var(--border-radius-2xl);
2708
2797
  }
2709
2798
 
2799
+ .lb-rounded-\[inherit\]{
2800
+ border-radius: inherit;
2801
+ }
2802
+
2710
2803
  .lb-rounded-full{
2711
2804
  border-radius: var(--border-radius-full);
2712
2805
  }
@@ -2719,6 +2812,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2719
2812
  border-radius: var(--border-radius-md);
2720
2813
  }
2721
2814
 
2815
+ .lb-rounded-none{
2816
+ border-radius: var(--border-radius-none);
2817
+ }
2818
+
2722
2819
  .lb-rounded-sm{
2723
2820
  border-radius: var(--border-radius-sm);
2724
2821
  }
@@ -2731,6 +2828,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2731
2828
  border-radius: var(--border-radius-xs);
2732
2829
  }
2733
2830
 
2831
+ .lb-rounded-t-xl{
2832
+ border-top-left-radius: var(--border-radius-xl);
2833
+ border-top-right-radius: var(--border-radius-xl);
2834
+ }
2835
+
2734
2836
  .lb-border{
2735
2837
  border-width: 1px;
2736
2838
  }
@@ -2747,10 +2849,6 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2747
2849
  border-bottom-width: 0px;
2748
2850
  }
2749
2851
 
2750
- .lb-border-b-2{
2751
- border-bottom-width: 2px;
2752
- }
2753
-
2754
2852
  .lb-border-l-0{
2755
2853
  border-left-width: 0px;
2756
2854
  }
@@ -2759,6 +2857,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2759
2857
  border-right-width: 0px;
2760
2858
  }
2761
2859
 
2860
+ .lb-border-none{
2861
+ border-style: none;
2862
+ }
2863
+
2762
2864
  .lb-border-muted-subtle{
2763
2865
  border-color: var(--border-muted-subtle);
2764
2866
  }
@@ -2771,6 +2873,10 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2771
2873
  background-color: var(--background-active);
2772
2874
  }
2773
2875
 
2876
+ .lb-bg-base{
2877
+ background-color: var(--background-base);
2878
+ }
2879
+
2774
2880
  .lb-bg-base-transparent{
2775
2881
  background-color: var(--background-base-transparent);
2776
2882
  }
@@ -2803,6 +2909,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2803
2909
  background-color: var(--background-muted-pressed);
2804
2910
  }
2805
2911
 
2912
+ .lb-bg-muted-subtle{
2913
+ --tw-bg-opacity: 1;
2914
+ background-color: rgb(60 60 60 / var(--tw-bg-opacity, 1));
2915
+ }
2916
+
2806
2917
  .lb-bg-muted-transparent{
2807
2918
  background-color: var(--background-muted-transparent);
2808
2919
  }
@@ -2874,6 +2985,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2874
2985
  padding-right: var(--spacing-8);
2875
2986
  }
2876
2987
 
2988
+ .lb-py-0{
2989
+ padding-top: var(--spacing-0);
2990
+ padding-bottom: var(--spacing-0);
2991
+ }
2992
+
2877
2993
  .lb-py-12{
2878
2994
  padding-top: var(--spacing-12);
2879
2995
  padding-bottom: var(--spacing-12);
@@ -2889,6 +3005,11 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2889
3005
  padding-bottom: var(--spacing-2);
2890
3006
  }
2891
3007
 
3008
+ .lb-py-32{
3009
+ padding-top: var(--spacing-32);
3010
+ padding-bottom: var(--spacing-32);
3011
+ }
3012
+
2892
3013
  .lb-py-4{
2893
3014
  padding-top: var(--spacing-4);
2894
3015
  padding-bottom: var(--spacing-4);
@@ -2920,6 +3041,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2920
3041
  padding-top: var(--spacing-0);
2921
3042
  }
2922
3043
 
3044
+ .lb-pt-32{
3045
+ padding-top: var(--spacing-32);
3046
+ }
3047
+
3048
+ .lb-pt-64{
3049
+ padding-top: var(--spacing-64);
3050
+ }
3051
+
2923
3052
  .lb-pt-8{
2924
3053
  padding-top: var(--spacing-8);
2925
3054
  }
@@ -2990,6 +3119,12 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
2990
3119
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2991
3120
  }
2992
3121
 
3122
+ .lb-shadow-sm{
3123
+ --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
3124
+ --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
3125
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
3126
+ }
3127
+
2993
3128
  .lb-drop-shadow-md{
2994
3129
  --tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
2995
3130
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
@@ -3007,6 +3142,12 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
3007
3142
  transition-duration: 150ms;
3008
3143
  }
3009
3144
 
3145
+ .lb-transition-all{
3146
+ transition-property: all;
3147
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3148
+ transition-duration: 150ms;
3149
+ }
3150
+
3010
3151
  .lb-transition-colors{
3011
3152
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
3012
3153
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -3035,6 +3176,14 @@ Constrain images and videos to the parent width and preserve their intrinsic asp
3035
3176
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3036
3177
  }
3037
3178
 
3179
+ .lb-heading-1{
3180
+ font-family: var(--font-family-font);
3181
+ font-size: var(--font-style-heading-1-size);
3182
+ font-weight: var(--font-style-heading-1-weight-medium);
3183
+ line-height: var(--font-style-heading-1-line-height);
3184
+ letter-spacing: var(--font-style-heading-1-letter-spacing);
3185
+ }
3186
+
3038
3187
  .lb-heading-4{
3039
3188
  font-family: var(--font-family-font);
3040
3189
  font-size: var(--font-style-heading-4-size);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Formats an address to display a truncated version with ellipsis.
3
+ * Example: "0xC5D2460186F7233C927E7DB2DCC703C0E500B653CA82273B7BFAD8045D85A470" -> "0xC5...A470"
4
+ *
5
+ * @param address - The full address string to format
6
+ * @returns The formatted address with first 4 characters + "..." + last 4 characters
7
+ */
8
+ export declare function formatAddress(address: string): string;
9
+ //# sourceMappingURL=format-address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-address.d.ts","sourceRoot":"","sources":["../../src/utils/format-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAKrD"}
@@ -1 +1 @@
1
- {"version":3,"file":"LedgerEIP1193Provider.d.ts","sourceRoot":"","sources":["../../src/web3-provider/LedgerEIP1193Provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAML,KAAK,eAAe,EACpB,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAOhC,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAGhB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAIzE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,qBAAa,qBACX,SAAQ,WACR,YAAW,eAAe;IA6BxB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,GAAG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O,CAAC,kBAAkB;IAmB1B,OAAO,CAAC,kBAAkB;YAcZ,cAAc;YAwBd,qBAAqB;YAmDrB,qBAAqB;YA8DrB,mBAAmB;YA2EnB,yBAAyB;YA0DzB,mBAAmB;YA6BnB,aAAa;IAO3B,QAAQ;mCACkB,OAAO,WAAW,UAAU;0CAErB,OAAO,WAAW,UAAU;kCAEpC,OAAO;+CACM,OAAO,EAAE,UAAU,UAAU;+CAE7B,OAAO,EAAE,UAAU,UAAU;kDAE1B,OAAO,EAAE,UAAU,UAAU;oCAE3C,OAAO,EAAE,UAAU,UAAU;yCAExB,OAAO,EAAE,UAAU,UAAU;kDAEpB,OAAO,EAAE,UAAU,UAAU;6CAElC,OAAO,EAAE,UAAU,UAAU;gDAE1B,OAAO,EAAE,UAAU,UAAU;sDAGxD,OAAO,EAAE,WACR,UAAU;MAEZ;YAGG,cAAc;IAwC5B,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,SAAS;CAwClB;AAQD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,cAAc;QACtB,OAAO,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;QAC1C,UAAU,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;QAC1C,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;QAClC,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;QACvC,OAAO,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;QACtC,0BAA0B,EAAE,4BAA4B,CAAC;QACzD,yBAAyB,EAAE,2BAA2B,CAAC;KACxD;CACF"}
@@ -14,4 +14,5 @@ export declare const BROADCASTED_TO_NODE_RPC_METHODS: readonly ["eth_blockNumber
14
14
  */
15
15
  export declare const SUPPORTED_RPC_METHODS: readonly ["eth_accounts", "eth_requestAccounts", "eth_chainId", "eth_sign", "personal_sign", "eth_signTypedData", "eth_signTypedData_v4", "eth_sendTransaction", "eth_signTransaction", "eth_signRawTransaction", "eth_sendRawTransaction", "wallet_switchEthereumChain", "eth_blockNumber", "eth_getBalance", "eth_getCode", "eth_estimateGas", "eth_call"];
16
16
  export declare function isSupportedRpcMethod(method: string): boolean;
17
+ export declare function isBlockingRequestMethod(method: string): boolean;
17
18
  //# sourceMappingURL=supportedRpcMethods.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"supportedRpcMethods.d.ts","sourceRoot":"","sources":["../../src/web3-provider/supportedRpcMethods.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,2BAA2B,2QAgB9B,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,+BAA+B,8FAMlC,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,qBAAqB,8VAGxB,CAAC;AAEX,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAI5D"}
1
+ {"version":3,"file":"supportedRpcMethods.d.ts","sourceRoot":"","sources":["../../src/web3-provider/supportedRpcMethods.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,2BAA2B,2QAgB9B,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,+BAA+B,8FAMlC,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,qBAAqB,8VAGxB,CAAC;AAEX,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAI5D;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAY/D"}
package/package.json CHANGED
@@ -12,16 +12,16 @@
12
12
  "shadow-dom-testing-library": "^1.12.0",
13
13
  "storybook": "9.0.17",
14
14
  "uuid": "^11.1.0",
15
- "@ledgerhq/ledger-wallet-provider-core": "1.0.1"
15
+ "@ledgerhq/ledger-wallet-provider-core": "1.1.1-develop.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "vitest": "^3.0.0"
19
19
  },
20
20
  "exports": {
21
21
  ".": {
22
+ "default": "./dist/index.js",
22
23
  "import": "./dist/index.js",
23
- "types": "./dist/index.d.ts",
24
- "default": "./dist/index.js"
24
+ "types": "./dist/index.d.ts"
25
25
  },
26
26
  "./package.json": "./package.json",
27
27
  "./styles.css": "./dist/styles.css"
@@ -35,11 +35,11 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "type": "module",
39
- "types": "./dist/index.d.ts",
40
- "version": "1.0.1",
41
38
  "repository": {
42
39
  "type": "git",
43
40
  "url": "https://github.com/LedgerHQ/ledger-button-public.git"
44
- }
41
+ },
42
+ "type": "module",
43
+ "types": "./dist/index.d.ts",
44
+ "version": "1.1.1-develop.0"
45
45
  }