@hsuite/native-connect-angular 2.1.0 → 2.1.2

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 (277) hide show
  1. package/LICENSE +146 -0
  2. package/dist/fesm2022/hsuite-native-connect-angular.mjs +854 -308
  3. package/dist/fesm2022/hsuite-native-connect-angular.mjs.map +1 -1
  4. package/dist/index.d.ts +456 -30
  5. package/package.json +30 -13
  6. package/USAGE_EXAMPLES.md +0 -476
  7. package/assets/wallets/extension.svg +0 -7
  8. package/assets/wallets/hashpack.svg +0 -6
  9. package/assets/wallets/hsuite.svg +0 -11
  10. package/assets/wallets/kabila.svg +0 -11
  11. package/assets/wallets/walletconnect.svg +0 -13
  12. package/coverage/base.css +0 -224
  13. package/coverage/block-navigation.js +0 -87
  14. package/coverage/coverage-summary.json +0 -50
  15. package/coverage/favicon.png +0 -0
  16. package/coverage/index.html +0 -476
  17. package/coverage/lcov-report/base.css +0 -224
  18. package/coverage/lcov-report/block-navigation.js +0 -87
  19. package/coverage/lcov-report/favicon.png +0 -0
  20. package/coverage/lcov-report/index.html +0 -476
  21. package/coverage/lcov-report/lib/components/account-selector/account-actions/account-actions.component.ts.html +0 -868
  22. package/coverage/lcov-report/lib/components/account-selector/account-actions/index.html +0 -116
  23. package/coverage/lcov-report/lib/components/account-selector/account-filter/account-filter.component.ts.html +0 -1288
  24. package/coverage/lcov-report/lib/components/account-selector/account-filter/index.html +0 -116
  25. package/coverage/lcov-report/lib/components/account-selector/account-formatting.service.ts.html +0 -685
  26. package/coverage/lcov-report/lib/components/account-selector/account-grouping.service.ts.html +0 -766
  27. package/coverage/lcov-report/lib/components/account-selector/account-list/account-list.component.ts.html +0 -1495
  28. package/coverage/lcov-report/lib/components/account-selector/account-list/index.html +0 -116
  29. package/coverage/lcov-report/lib/components/account-selector/account-selector.component.ts.html +0 -1495
  30. package/coverage/lcov-report/lib/components/account-selector/account-selector.service.ts.html +0 -1588
  31. package/coverage/lcov-report/lib/components/account-selector/index.html +0 -161
  32. package/coverage/lcov-report/lib/components/wallet-account-display/index.html +0 -116
  33. package/coverage/lcov-report/lib/components/wallet-account-display/wallet-account-display.component.ts.html +0 -505
  34. package/coverage/lcov-report/lib/components/wallet-connect-button/index.html +0 -116
  35. package/coverage/lcov-report/lib/components/wallet-connect-button/wallet-connect-button.component.ts.html +0 -829
  36. package/coverage/lcov-report/lib/components/wallet-connect-prompt/index.html +0 -116
  37. package/coverage/lcov-report/lib/components/wallet-connect-prompt/wallet-connect-prompt.component.ts.html +0 -409
  38. package/coverage/lcov-report/lib/components/wallet-connected-guard/index.html +0 -116
  39. package/coverage/lcov-report/lib/components/wallet-connected-guard/wallet-connected-guard.component.ts.html +0 -304
  40. package/coverage/lcov-report/lib/components/wallet-connection-modal/connection-method-step/connection-method-step.component.ts.html +0 -436
  41. package/coverage/lcov-report/lib/components/wallet-connection-modal/connection-method-step/index.html +0 -116
  42. package/coverage/lcov-report/lib/components/wallet-connection-modal/index.html +0 -116
  43. package/coverage/lcov-report/lib/components/wallet-connection-modal/qr-pairing-step/index.html +0 -116
  44. package/coverage/lcov-report/lib/components/wallet-connection-modal/qr-pairing-step/qr-pairing-step.component.ts.html +0 -2287
  45. package/coverage/lcov-report/lib/components/wallet-connection-modal/wallet-connection-modal.component.ts.html +0 -2470
  46. package/coverage/lcov-report/lib/components/wallet-session-display/index.html +0 -116
  47. package/coverage/lcov-report/lib/components/wallet-session-display/wallet-session-display.component.ts.html +0 -676
  48. package/coverage/lcov-report/lib/components/wallet-transaction-status/index.html +0 -116
  49. package/coverage/lcov-report/lib/components/wallet-transaction-status/wallet-transaction-status.component.ts.html +0 -703
  50. package/coverage/lcov-report/lib/directives/index.html +0 -146
  51. package/coverage/lcov-report/lib/directives/wallet-connected.directive.ts.html +0 -670
  52. package/coverage/lcov-report/lib/directives/wallet-context.directive.ts.html +0 -547
  53. package/coverage/lcov-report/lib/directives/wallet-events.directive.ts.html +0 -781
  54. package/coverage/lcov-report/lib/hsuite-wallet.module.ts.html +0 -715
  55. package/coverage/lcov-report/lib/index.html +0 -116
  56. package/coverage/lcov-report/lib/models/connection-config.model.ts.html +0 -280
  57. package/coverage/lcov-report/lib/models/index.html +0 -131
  58. package/coverage/lcov-report/lib/models/provider-types.ts.html +0 -577
  59. package/coverage/lcov-report/lib/providers/base-wallet-provider.ts.html +0 -1138
  60. package/coverage/lcov-report/lib/providers/hsuite-native/channel-client.service.ts.html +0 -2671
  61. package/coverage/lcov-report/lib/providers/hsuite-native/index.html +0 -116
  62. package/coverage/lcov-report/lib/providers/hsuite-native-provider.ts.html +0 -2347
  63. package/coverage/lcov-report/lib/providers/index.html +0 -146
  64. package/coverage/lcov-report/lib/providers/p2p-native/index.html +0 -131
  65. package/coverage/lcov-report/lib/providers/p2p-native/p2p-native.provider.ts.html +0 -2254
  66. package/coverage/lcov-report/lib/providers/p2p-native/p2p-session-manager.ts.html +0 -2170
  67. package/coverage/lcov-report/lib/providers/wallet-error-handler.ts.html +0 -1132
  68. package/coverage/lcov-report/lib/providers/walletconnect/core/index.html +0 -176
  69. package/coverage/lcov-report/lib/providers/walletconnect/core/session-health.ts.html +0 -673
  70. package/coverage/lcov-report/lib/providers/walletconnect/core/walletconnect-client-manager.ts.html +0 -1177
  71. package/coverage/lcov-report/lib/providers/walletconnect/core/walletconnect-provider.ts.html +0 -2563
  72. package/coverage/lcov-report/lib/providers/walletconnect/core/walletconnect-session-store.ts.html +0 -904
  73. package/coverage/lcov-report/lib/providers/walletconnect/core/walletconnect-signing-orchestrator.ts.html +0 -982
  74. package/coverage/lcov-report/lib/providers/walletconnect/signers/hedera-signer.ts.html +0 -1915
  75. package/coverage/lcov-report/lib/providers/walletconnect/signers/index.html +0 -146
  76. package/coverage/lcov-report/lib/providers/walletconnect/signers/signer-factory.ts.html +0 -445
  77. package/coverage/lcov-report/lib/providers/walletconnect/signers/xrpl-signer.ts.html +0 -1519
  78. package/coverage/lcov-report/lib/services/index.html +0 -191
  79. package/coverage/lcov-report/lib/services/logger.service.ts.html +0 -463
  80. package/coverage/lcov-report/lib/services/transaction-builders/base-transaction-builder.service.ts.html +0 -1840
  81. package/coverage/lcov-report/lib/services/transaction-builders/hedera-amount-utils.ts.html +0 -337
  82. package/coverage/lcov-report/lib/services/transaction-builders/hedera-transaction-builder.service.ts.html +0 -3940
  83. package/coverage/lcov-report/lib/services/transaction-builders/index.html +0 -161
  84. package/coverage/lcov-report/lib/services/transaction-builders/xrpl-transaction-builder.service.ts.html +0 -2581
  85. package/coverage/lcov-report/lib/services/transaction.service.ts.html +0 -1120
  86. package/coverage/lcov-report/lib/services/unified-wallet.service.ts.html +0 -2638
  87. package/coverage/lcov-report/lib/services/wallet-context.service.ts.html +0 -637
  88. package/coverage/lcov-report/lib/services/wallet-event-bus.service.ts.html +0 -643
  89. package/coverage/lcov-report/lib/services/wallet-providers.service.ts.html +0 -493
  90. package/coverage/lcov-report/lib/transports/chrome-extension-transport.ts.html +0 -823
  91. package/coverage/lcov-report/lib/transports/index.html +0 -116
  92. package/coverage/lcov-report/lib/utils/index.html +0 -116
  93. package/coverage/lcov-report/lib/utils/ledger-icons.util.ts.html +0 -319
  94. package/coverage/lcov-report/prettify.css +0 -1
  95. package/coverage/lcov-report/prettify.js +0 -2
  96. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  97. package/coverage/lcov-report/sorter.js +0 -210
  98. package/coverage/lcov.info +0 -18695
  99. package/coverage/lib/components/account-selector/account-actions/account-actions.component.ts.html +0 -868
  100. package/coverage/lib/components/account-selector/account-actions/index.html +0 -116
  101. package/coverage/lib/components/account-selector/account-filter/account-filter.component.ts.html +0 -1288
  102. package/coverage/lib/components/account-selector/account-filter/index.html +0 -116
  103. package/coverage/lib/components/account-selector/account-formatting.service.ts.html +0 -685
  104. package/coverage/lib/components/account-selector/account-grouping.service.ts.html +0 -766
  105. package/coverage/lib/components/account-selector/account-list/account-list.component.ts.html +0 -1495
  106. package/coverage/lib/components/account-selector/account-list/index.html +0 -116
  107. package/coverage/lib/components/account-selector/account-selector.component.ts.html +0 -1495
  108. package/coverage/lib/components/account-selector/account-selector.service.ts.html +0 -1588
  109. package/coverage/lib/components/account-selector/index.html +0 -161
  110. package/coverage/lib/components/wallet-account-display/index.html +0 -116
  111. package/coverage/lib/components/wallet-account-display/wallet-account-display.component.ts.html +0 -505
  112. package/coverage/lib/components/wallet-connect-button/index.html +0 -116
  113. package/coverage/lib/components/wallet-connect-button/wallet-connect-button.component.ts.html +0 -829
  114. package/coverage/lib/components/wallet-connect-prompt/index.html +0 -116
  115. package/coverage/lib/components/wallet-connect-prompt/wallet-connect-prompt.component.ts.html +0 -409
  116. package/coverage/lib/components/wallet-connected-guard/index.html +0 -116
  117. package/coverage/lib/components/wallet-connected-guard/wallet-connected-guard.component.ts.html +0 -304
  118. package/coverage/lib/components/wallet-connection-modal/connection-method-step/connection-method-step.component.ts.html +0 -436
  119. package/coverage/lib/components/wallet-connection-modal/connection-method-step/index.html +0 -116
  120. package/coverage/lib/components/wallet-connection-modal/index.html +0 -116
  121. package/coverage/lib/components/wallet-connection-modal/qr-pairing-step/index.html +0 -116
  122. package/coverage/lib/components/wallet-connection-modal/qr-pairing-step/qr-pairing-step.component.ts.html +0 -2287
  123. package/coverage/lib/components/wallet-connection-modal/wallet-connection-modal.component.ts.html +0 -2470
  124. package/coverage/lib/components/wallet-session-display/index.html +0 -116
  125. package/coverage/lib/components/wallet-session-display/wallet-session-display.component.ts.html +0 -676
  126. package/coverage/lib/components/wallet-transaction-status/index.html +0 -116
  127. package/coverage/lib/components/wallet-transaction-status/wallet-transaction-status.component.ts.html +0 -703
  128. package/coverage/lib/directives/index.html +0 -146
  129. package/coverage/lib/directives/wallet-connected.directive.ts.html +0 -670
  130. package/coverage/lib/directives/wallet-context.directive.ts.html +0 -547
  131. package/coverage/lib/directives/wallet-events.directive.ts.html +0 -781
  132. package/coverage/lib/hsuite-wallet.module.ts.html +0 -715
  133. package/coverage/lib/index.html +0 -116
  134. package/coverage/lib/models/connection-config.model.ts.html +0 -280
  135. package/coverage/lib/models/index.html +0 -131
  136. package/coverage/lib/models/provider-types.ts.html +0 -577
  137. package/coverage/lib/providers/base-wallet-provider.ts.html +0 -1138
  138. package/coverage/lib/providers/hsuite-native/channel-client.service.ts.html +0 -2671
  139. package/coverage/lib/providers/hsuite-native/index.html +0 -116
  140. package/coverage/lib/providers/hsuite-native-provider.ts.html +0 -2347
  141. package/coverage/lib/providers/index.html +0 -146
  142. package/coverage/lib/providers/p2p-native/index.html +0 -131
  143. package/coverage/lib/providers/p2p-native/p2p-native.provider.ts.html +0 -2254
  144. package/coverage/lib/providers/p2p-native/p2p-session-manager.ts.html +0 -2170
  145. package/coverage/lib/providers/wallet-error-handler.ts.html +0 -1132
  146. package/coverage/lib/providers/walletconnect/core/index.html +0 -176
  147. package/coverage/lib/providers/walletconnect/core/session-health.ts.html +0 -673
  148. package/coverage/lib/providers/walletconnect/core/walletconnect-client-manager.ts.html +0 -1177
  149. package/coverage/lib/providers/walletconnect/core/walletconnect-provider.ts.html +0 -2563
  150. package/coverage/lib/providers/walletconnect/core/walletconnect-session-store.ts.html +0 -904
  151. package/coverage/lib/providers/walletconnect/core/walletconnect-signing-orchestrator.ts.html +0 -982
  152. package/coverage/lib/providers/walletconnect/signers/hedera-signer.ts.html +0 -1915
  153. package/coverage/lib/providers/walletconnect/signers/index.html +0 -146
  154. package/coverage/lib/providers/walletconnect/signers/signer-factory.ts.html +0 -445
  155. package/coverage/lib/providers/walletconnect/signers/xrpl-signer.ts.html +0 -1519
  156. package/coverage/lib/services/index.html +0 -191
  157. package/coverage/lib/services/logger.service.ts.html +0 -463
  158. package/coverage/lib/services/transaction-builders/base-transaction-builder.service.ts.html +0 -1840
  159. package/coverage/lib/services/transaction-builders/hedera-amount-utils.ts.html +0 -337
  160. package/coverage/lib/services/transaction-builders/hedera-transaction-builder.service.ts.html +0 -3940
  161. package/coverage/lib/services/transaction-builders/index.html +0 -161
  162. package/coverage/lib/services/transaction-builders/xrpl-transaction-builder.service.ts.html +0 -2581
  163. package/coverage/lib/services/transaction.service.ts.html +0 -1120
  164. package/coverage/lib/services/unified-wallet.service.ts.html +0 -2638
  165. package/coverage/lib/services/wallet-context.service.ts.html +0 -637
  166. package/coverage/lib/services/wallet-event-bus.service.ts.html +0 -643
  167. package/coverage/lib/services/wallet-providers.service.ts.html +0 -493
  168. package/coverage/lib/transports/chrome-extension-transport.ts.html +0 -823
  169. package/coverage/lib/transports/index.html +0 -116
  170. package/coverage/lib/utils/index.html +0 -116
  171. package/coverage/lib/utils/ledger-icons.util.ts.html +0 -319
  172. package/coverage/prettify.css +0 -1
  173. package/coverage/prettify.js +0 -2
  174. package/coverage/sort-arrow-sprite.png +0 -0
  175. package/coverage/sorter.js +0 -210
  176. package/examples/minimal-connect.ts +0 -178
  177. package/examples/multi-protocol.ts +0 -495
  178. package/examples/transaction-signing.ts +0 -361
  179. package/jest.config.json +0 -45
  180. package/karma.conf.js +0 -42
  181. package/ng-package.json +0 -20
  182. package/src/index.ts +0 -203
  183. package/src/lib/components/account-selector/account-actions/account-actions.component.ts +0 -261
  184. package/src/lib/components/account-selector/account-filter/account-filter.component.ts +0 -401
  185. package/src/lib/components/account-selector/account-formatting.service.ts +0 -200
  186. package/src/lib/components/account-selector/account-grouping.service.ts +0 -227
  187. package/src/lib/components/account-selector/account-list/account-list.component.ts +0 -470
  188. package/src/lib/components/account-selector/account-selector.component.html +0 -135
  189. package/src/lib/components/account-selector/account-selector.component.scss +0 -2039
  190. package/src/lib/components/account-selector/account-selector.component.ts +0 -470
  191. package/src/lib/components/account-selector/account-selector.service.ts +0 -501
  192. package/src/lib/components/wallet-account-display/wallet-account-display.component.html +0 -34
  193. package/src/lib/components/wallet-account-display/wallet-account-display.component.scss +0 -99
  194. package/src/lib/components/wallet-account-display/wallet-account-display.component.ts +0 -140
  195. package/src/lib/components/wallet-connect-button/wallet-connect-button.component.html +0 -14
  196. package/src/lib/components/wallet-connect-button/wallet-connect-button.component.scss +0 -272
  197. package/src/lib/components/wallet-connect-button/wallet-connect-button.component.spec.ts +0 -89
  198. package/src/lib/components/wallet-connect-button/wallet-connect-button.component.ts +0 -248
  199. package/src/lib/components/wallet-connect-prompt/wallet-connect-prompt.component.html +0 -24
  200. package/src/lib/components/wallet-connect-prompt/wallet-connect-prompt.component.scss +0 -50
  201. package/src/lib/components/wallet-connect-prompt/wallet-connect-prompt.component.ts +0 -108
  202. package/src/lib/components/wallet-connected-guard/wallet-connected-guard.component.html +0 -24
  203. package/src/lib/components/wallet-connected-guard/wallet-connected-guard.component.ts +0 -73
  204. package/src/lib/components/wallet-connection-modal/connection-method-step/connection-method-step.component.html +0 -56
  205. package/src/lib/components/wallet-connection-modal/connection-method-step/connection-method-step.component.scss +0 -218
  206. package/src/lib/components/wallet-connection-modal/connection-method-step/connection-method-step.component.ts +0 -117
  207. package/src/lib/components/wallet-connection-modal/qr-pairing-step/qr-pairing-step.component.html +0 -94
  208. package/src/lib/components/wallet-connection-modal/qr-pairing-step/qr-pairing-step.component.scss +0 -272
  209. package/src/lib/components/wallet-connection-modal/qr-pairing-step/qr-pairing-step.component.ts +0 -734
  210. package/src/lib/components/wallet-connection-modal/wallet-connection-modal.component.html +0 -192
  211. package/src/lib/components/wallet-connection-modal/wallet-connection-modal.component.scss +0 -678
  212. package/src/lib/components/wallet-connection-modal/wallet-connection-modal.component.spec.ts +0 -173
  213. package/src/lib/components/wallet-connection-modal/wallet-connection-modal.component.ts +0 -795
  214. package/src/lib/components/wallet-session-display/wallet-session-display.component.html +0 -110
  215. package/src/lib/components/wallet-session-display/wallet-session-display.component.scss +0 -179
  216. package/src/lib/components/wallet-session-display/wallet-session-display.component.ts +0 -197
  217. package/src/lib/components/wallet-transaction-status/wallet-transaction-status.component.html +0 -65
  218. package/src/lib/components/wallet-transaction-status/wallet-transaction-status.component.scss +0 -254
  219. package/src/lib/components/wallet-transaction-status/wallet-transaction-status.component.ts +0 -206
  220. package/src/lib/directives/wallet-connected.directive.ts +0 -195
  221. package/src/lib/directives/wallet-context.directive.ts +0 -154
  222. package/src/lib/directives/wallet-events.directive.ts +0 -232
  223. package/src/lib/hsuite-wallet.module.ts +0 -210
  224. package/src/lib/models/connection-config.model.ts +0 -65
  225. package/src/lib/models/provider-types.ts +0 -164
  226. package/src/lib/models/unified-account.model.ts +0 -76
  227. package/src/lib/models/wallet-context.model.ts +0 -121
  228. package/src/lib/models/wallet-events.model.ts +0 -158
  229. package/src/lib/providers/base-wallet-provider.ts +0 -351
  230. package/src/lib/providers/hsuite-native/channel-client.service.spec.ts +0 -73
  231. package/src/lib/providers/hsuite-native/channel-client.service.ts +0 -862
  232. package/src/lib/providers/hsuite-native/index.ts +0 -8
  233. package/src/lib/providers/hsuite-native-provider.ts +0 -754
  234. package/src/lib/providers/mobile-native/mobile-native.provider.spec.ts +0 -19
  235. package/src/lib/providers/p2p-native/index.ts +0 -30
  236. package/src/lib/providers/p2p-native/p2p-native.provider.spec.ts +0 -523
  237. package/src/lib/providers/p2p-native/p2p-native.provider.ts +0 -723
  238. package/src/lib/providers/p2p-native/p2p-session-manager.ts +0 -695
  239. package/src/lib/providers/wallet-error-handler.ts +0 -349
  240. package/src/lib/providers/walletconnect/core/base-signer.interface.ts +0 -122
  241. package/src/lib/providers/walletconnect/core/session-health.ts +0 -196
  242. package/src/lib/providers/walletconnect/core/walletconnect-client-manager.ts +0 -364
  243. package/src/lib/providers/walletconnect/core/walletconnect-provider.integration.spec.ts +0 -348
  244. package/src/lib/providers/walletconnect/core/walletconnect-provider.ts +0 -826
  245. package/src/lib/providers/walletconnect/core/walletconnect-session-store.ts +0 -273
  246. package/src/lib/providers/walletconnect/core/walletconnect-signing-orchestrator.ts +0 -299
  247. package/src/lib/providers/walletconnect/core/walletconnect-types.ts +0 -48
  248. package/src/lib/providers/walletconnect/index.ts +0 -33
  249. package/src/lib/providers/walletconnect/signers/hedera-signer.spec.ts +0 -367
  250. package/src/lib/providers/walletconnect/signers/hedera-signer.ts +0 -610
  251. package/src/lib/providers/walletconnect/signers/signer-factory.spec.ts +0 -62
  252. package/src/lib/providers/walletconnect/signers/signer-factory.ts +0 -120
  253. package/src/lib/providers/walletconnect/signers/xrpl-signer.spec.ts +0 -296
  254. package/src/lib/providers/walletconnect/signers/xrpl-signer.ts +0 -478
  255. package/src/lib/services/logger.service.ts +0 -126
  256. package/src/lib/services/transaction-builders/base-transaction-builder.service.ts +0 -585
  257. package/src/lib/services/transaction-builders/hedera-amount-utils.ts +0 -84
  258. package/src/lib/services/transaction-builders/hedera-transaction-builder.service.spec.ts +0 -741
  259. package/src/lib/services/transaction-builders/hedera-transaction-builder.service.ts +0 -1285
  260. package/src/lib/services/transaction-builders/index.ts +0 -54
  261. package/src/lib/services/transaction-builders/xrpl-transaction-builder.service.spec.ts +0 -937
  262. package/src/lib/services/transaction-builders/xrpl-transaction-builder.service.ts +0 -832
  263. package/src/lib/services/transaction.service.ts +0 -345
  264. package/src/lib/services/unified-wallet.service.spec.ts +0 -1382
  265. package/src/lib/services/unified-wallet.service.ts +0 -851
  266. package/src/lib/services/wallet-context.service.ts +0 -184
  267. package/src/lib/services/wallet-event-bus.service.ts +0 -186
  268. package/src/lib/services/wallet-providers.service.ts +0 -136
  269. package/src/lib/transports/chrome-extension-transport.ts +0 -246
  270. package/src/lib/utils/index.ts +0 -14
  271. package/src/lib/utils/ledger-icons.util.ts +0 -78
  272. package/test/test-setup.ts +0 -21
  273. package/test-setup.ts +0 -63
  274. package/tsconfig.build.json +0 -11
  275. package/tsconfig.json +0 -29
  276. package/tsconfig.spec.json +0 -15
  277. package/vitest.config.ts +0 -48
package/dist/index.d.ts CHANGED
@@ -1,16 +1,17 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Signal, NgZone, EventEmitter, OnInit, TemplateRef, OnDestroy, Provider } from '@angular/core';
2
+ import { Signal, NgZone, EventEmitter, OnInit, TemplateRef, OnDestroy, InjectionToken, Provider } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import * as i2 from '@ionic/angular';
5
5
  import { ModalController as ModalController$1 } from '@ionic/angular';
6
6
  import { ModalController, AlertController, ToastController } from '@ionic/angular/standalone';
7
7
  import * as _hsuite_native_connect_sdk from '@hsuite/native-connect-sdk';
8
- import { TransportState, Logger, TransportProvider, ChannelState, ChannelAccount, ChannelInvite, ChannelType } from '@hsuite/native-connect-sdk';
8
+ import { SupportedLedger, TransportState, Logger, TransportProvider, ChannelState, ChannelAccount, ChannelInvite, ChannelType } from '@hsuite/native-connect-sdk';
9
9
  export { ChannelAccount, ChannelInvite, ChannelMessage, ChannelState, ChannelType, HederaTransactionEncoder, MessageType, TransportState, XrplTransactionEncoder } from '@hsuite/native-connect-sdk';
10
10
  import * as _hsuite_native_connect_angular from '@hsuite/native-connect-angular';
11
11
  import { Observable } from 'rxjs';
12
- import { MessageEnvelope } from '@hsuite/native-connect-types';
13
- export { RpcEnvelope, RpcRequest, RpcResponse, SessionApproval } from '@hsuite/native-connect-types';
12
+ import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpInterceptorFn } from '@angular/common/http';
13
+ import { MessageEnvelope, LedgerId } from '@hsuite/native-connect-types';
14
+ export { LedgerId, RpcEnvelope, RpcRequest, RpcResponse, SessionApproval } from '@hsuite/native-connect-types';
14
15
  import SignClient from '@walletconnect/sign-client';
15
16
  import { WalletConnectModal } from '@walletconnect/modal';
16
17
  import { ISignClient } from '@walletconnect/types';
@@ -36,6 +37,7 @@ import { ISignClient } from '@walletconnect/types';
36
37
  * \-> error
37
38
  * ```
38
39
  */
40
+
39
41
  /**
40
42
  * Supported wallet connection protocol types.
41
43
  *
@@ -134,7 +136,7 @@ interface HsuiteNativeConfig {
134
136
  interface WalletConnectV2Config {
135
137
  type: 'walletconnect-v2';
136
138
  projectId: string;
137
- ledgerId: 'hedera' | 'xrpl';
139
+ ledgerId: SupportedLedger;
138
140
  networkId: string;
139
141
  appName?: string;
140
142
  appDescription?: string;
@@ -176,7 +178,7 @@ type ConnectionConfig$1 = HsuiteNativeConfig | WalletConnectV2Config | MobileNat
176
178
  * visit https://hsuite.finance/licensing
177
179
  */
178
180
  /**
179
- * @fileoverview Unified account model that works across all wallet providers.
181
+ * @file Unified account model that works across all wallet providers.
180
182
  *
181
183
  * @module models/unified-account
182
184
  *
@@ -208,6 +210,8 @@ interface UnifiedAccount {
208
210
  id: string;
209
211
  /** Account address/public key */
210
212
  address: string;
213
+ /** Public key associated with the account, when available from the provider. */
214
+ publicKey?: string;
211
215
  /** Human-readable label */
212
216
  label?: string;
213
217
  /** Ledger ID (e.g., 'hedera', 'xrpl') */
@@ -1883,7 +1887,7 @@ declare class UnifiedWalletService {
1883
1887
  * @throws {Error} If provider is not found
1884
1888
  * @throws {Error} If user rejects the signing request
1885
1889
  */
1886
- signMessage(message: string, encoding?: 'utf-8' | 'base64'): Promise<unknown>;
1890
+ signMessage(message: string, encoding?: 'utf-8' | 'base64'): Promise<SignMessageResult>;
1887
1891
  /**
1888
1892
  * Signs and executes a transaction in a single prompt.
1889
1893
  *
@@ -3099,13 +3103,18 @@ declare class WalletAccountDisplayComponent {
3099
3103
  * Get multisig threshold info (e.g., "2/3")
3100
3104
  */
3101
3105
  protected readonly multisigInfo: i0.Signal<string>;
3106
+ /**
3107
+ *
3108
+ */
3102
3109
  constructor();
3103
3110
  /**
3104
3111
  * Get color for ledger badge
3112
+ * @param ledgerId
3105
3113
  */
3106
3114
  protected getLedgerColor(ledgerId: string): string;
3107
3115
  /**
3108
3116
  * Format network ID for display
3117
+ * @param networkId
3109
3118
  */
3110
3119
  protected formatNetwork(networkId: string): string;
3111
3120
  static ɵfac: i0.ɵɵFactoryDeclaration<WalletAccountDisplayComponent, never>;
@@ -3285,7 +3294,7 @@ interface ProtocolOption {
3285
3294
  * Ledger configuration options
3286
3295
  */
3287
3296
  interface LedgerOption {
3288
- id: 'hedera' | 'xrpl';
3297
+ id: SupportedLedger;
3289
3298
  name: string;
3290
3299
  description: string;
3291
3300
  icon: string;
@@ -3343,7 +3352,7 @@ declare class WalletConnectionModalComponent implements OnInit {
3343
3352
  readonly selectedNetwork: i0.WritableSignal<string>;
3344
3353
  readonly selectedProtocol: i0.WritableSignal<"hsuite-native" | "walletconnect">;
3345
3354
  readonly selectedConnectionMethod: i0.WritableSignal<ConnectionMethod>;
3346
- readonly selectedLedger: i0.WritableSignal<"hedera" | "xrpl">;
3355
+ readonly selectedLedger: i0.WritableSignal<SupportedLedger>;
3347
3356
  readonly isConnecting: i0.WritableSignal<boolean>;
3348
3357
  readonly connectionError: i0.WritableSignal<string>;
3349
3358
  readonly pairingOffer: i0.WritableSignal<string>;
@@ -3446,13 +3455,13 @@ declare class WalletConnectionModalComponent implements OnInit {
3446
3455
  * Select a ledger option (internal, use selectLedgerAndConnect for UI)
3447
3456
  * @param ledgerId
3448
3457
  */
3449
- selectLedger(ledgerId: 'hedera' | 'xrpl'): void;
3458
+ selectLedger(ledgerId: SupportedLedger): void;
3450
3459
  /**
3451
3460
  * Select a ledger and automatically initiate connection.
3452
3461
  * This enables direct selection behavior for WalletConnect ledger step.
3453
3462
  * @param ledgerId - The ledger ID to select ('hedera' or 'xrpl')
3454
3463
  */
3455
- selectLedgerAndConnect(ledgerId: 'hedera' | 'xrpl'): void;
3464
+ selectLedgerAndConnect(ledgerId: SupportedLedger): void;
3456
3465
  /**
3457
3466
  * Proceed to the next step in the wizard
3458
3467
  */
@@ -4592,7 +4601,7 @@ declare class TransactionService {
4592
4601
  * @param message - Message to sign
4593
4602
  * @returns Sign result with signature
4594
4603
  */
4595
- signMessage(message: string): Promise<SignResult>;
4604
+ signMessage(message: string): Promise<SignMessageResult>;
4596
4605
  /**
4597
4606
  * Show a success toast notification
4598
4607
  * Uses cssClass-only styling (no Ionic color property) for theme compatibility.
@@ -4722,6 +4731,233 @@ declare class LoggerService {
4722
4731
  static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
4723
4732
  }
4724
4733
 
4734
+ /**
4735
+ * Configuration token for {@link SmartSessionService}.
4736
+ */
4737
+ declare const SMART_SESSION_CONFIG: InjectionToken<SmartSessionConfig>;
4738
+ /**
4739
+ * Configuration for the smart-host session handshake.
4740
+ */
4741
+ interface SmartSessionConfig {
4742
+ /**
4743
+ * Base URL for the smart-host API.
4744
+ * @default '' (relative to the current origin)
4745
+ */
4746
+ baseUrl?: string;
4747
+ /**
4748
+ * Health endpoint used to discover the host `appId`.
4749
+ * @default '/api/health'
4750
+ */
4751
+ healthEndpoint?: string;
4752
+ /**
4753
+ * Challenge endpoint used to obtain a message to sign.
4754
+ * @default '/api/auth/challenge'
4755
+ */
4756
+ challengeEndpoint?: string;
4757
+ /**
4758
+ * Verify endpoint used to exchange the signed challenge for a bearer token.
4759
+ * @default '/api/auth/verify'
4760
+ */
4761
+ verifyEndpoint?: string;
4762
+ /**
4763
+ * sessionStorage key used to persist the session token and expiry.
4764
+ * @default 'hsuite.smart-session'
4765
+ */
4766
+ storageKey?: string;
4767
+ }
4768
+ /**
4769
+ * Health response shape expected from the smart host.
4770
+ */
4771
+ interface SmartHostHealth {
4772
+ appId: string;
4773
+ [key: string]: unknown;
4774
+ }
4775
+ /**
4776
+ * Challenge response shape expected from the smart host.
4777
+ */
4778
+ interface SmartHostChallenge {
4779
+ challenge: string;
4780
+ [key: string]: unknown;
4781
+ }
4782
+ /**
4783
+ * Verify request payload sent to the smart host.
4784
+ */
4785
+ interface SmartHostVerifyRequest {
4786
+ appId: string;
4787
+ accountAddress: string;
4788
+ publicKey?: string;
4789
+ signature: string;
4790
+ algorithm?: string;
4791
+ message: string;
4792
+ caipChainId?: string;
4793
+ ledgerId?: string;
4794
+ networkId?: string;
4795
+ }
4796
+ /**
4797
+ * Verify response shape expected from the smart host.
4798
+ */
4799
+ interface SmartHostVerifyResponse {
4800
+ bearer: string;
4801
+ expiresAt?: number;
4802
+ expiresIn?: number;
4803
+ [key: string]: unknown;
4804
+ }
4805
+ /**
4806
+ * Smart-host customer session helper.
4807
+ *
4808
+ * @service SmartSessionService
4809
+ *
4810
+ * @description
4811
+ * Encapsulates the full challenge → sign → verify → store JWT flow required by
4812
+ * HSuite smart hosts. The service is intentionally thin: it delegates signing to
4813
+ * {@link TransactionService} and relies on standard Angular `HttpClient` for the
4814
+ * host HTTP calls.
4815
+ *
4816
+ * @providedIn root
4817
+ */
4818
+ declare class SmartSessionService {
4819
+ private readonly http;
4820
+ private readonly walletService;
4821
+ private readonly transactionService;
4822
+ private readonly config;
4823
+ private get baseUrl();
4824
+ private get healthEndpoint();
4825
+ private get challengeEndpoint();
4826
+ private get verifyEndpoint();
4827
+ private get storageKey();
4828
+ /**
4829
+ * Returns the currently stored bearer token, or `null` if there is no session.
4830
+ *
4831
+ * @returns Bearer token string or null
4832
+ */
4833
+ getBearer(): string | null;
4834
+ /**
4835
+ * Checks whether a non-expired session is available.
4836
+ *
4837
+ * @returns true if logged in and the bearer has not expired
4838
+ */
4839
+ isLoggedIn(): boolean;
4840
+ /**
4841
+ * Performs the full smart-host login handshake.
4842
+ *
4843
+ * @description
4844
+ * 1. Discovers `appId` from the health endpoint.
4845
+ * 2. Fetches a challenge from the challenge endpoint.
4846
+ * 3. Signs the challenge with the active wallet account.
4847
+ * 4. Exchanges the signed challenge for a bearer token.
4848
+ * 5. Stores the bearer and expiry in `sessionStorage`.
4849
+ *
4850
+ * @returns The verify response from the host
4851
+ *
4852
+ * @throws {Error} If no active account is available
4853
+ * @throws {Error} If the health endpoint does not return an `appId`
4854
+ * @throws {Error} If the challenge endpoint does not return a `challenge`
4855
+ * @throws {Error} If the verify call fails
4856
+ */
4857
+ login(): Promise<SmartHostVerifyResponse>;
4858
+ /**
4859
+ * Clears the stored session.
4860
+ */
4861
+ logout(): void;
4862
+ /**
4863
+ * Runs an HTTP operation with automatic 401 recovery.
4864
+ *
4865
+ * @description
4866
+ * Executes the provided operation. If it rejects with an HTTP 401 error,
4867
+ * the service clears the current bearer, performs a fresh login, and retries
4868
+ * the operation once. Any other error is propagated immediately.
4869
+ *
4870
+ * @param operation - Async operation that needs a valid session
4871
+ * @returns The result of the operation
4872
+ *
4873
+ * @throws {Error} The original error if retry is not possible or fails
4874
+ */
4875
+ withSession<T>(operation: () => Promise<T>): Promise<T>;
4876
+ private fetchHealth;
4877
+ private fetchChallenge;
4878
+ private verifyChallenge;
4879
+ private resolveExpiry;
4880
+ private readStoredSession;
4881
+ private storeSession;
4882
+ private clearStoredSession;
4883
+ private isUnauthorizedError;
4884
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartSessionService, never>;
4885
+ static ɵprov: i0.ɵɵInjectableDeclaration<SmartSessionService>;
4886
+ }
4887
+
4888
+ /**
4889
+ * HSuite Native Connect
4890
+ * Copyright 2024-2025 HSuite (https://hsuite.finance)
4891
+ *
4892
+ * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
4893
+ *
4894
+ * This file is part of HSuite Native Connect. For commercial licensing,
4895
+ * visit https://hsuite.finance/licensing
4896
+ */
4897
+ /**
4898
+ * @file HTTP interceptor that attaches wallet-attributed auth headers.
4899
+ *
4900
+ * @module services/hsuite-auth-interceptor
4901
+ *
4902
+ * @description
4903
+ * `HsuiteAuthInterceptor` automatically adds the active smart-host bearer token
4904
+ * and wallet ledger identifier to outgoing HTTP requests. When a request fails
4905
+ * with HTTP 401, it delegates recovery to {@link SmartSessionService} for a
4906
+ * single re-login and retry.
4907
+ *
4908
+ * **Registration (standalone apps):**
4909
+ * ```typescript
4910
+ * provideHttpClient(withInterceptors([provideHsuiteAuthInterceptor()]))
4911
+ * ```
4912
+ *
4913
+ * **Registration (module-based apps):**
4914
+ * ```typescript
4915
+ * { provide: HTTP_INTERCEPTORS, useClass: HsuiteAuthInterceptor, multi: true }
4916
+ * ```
4917
+ */
4918
+
4919
+ /**
4920
+ * Headers injected by the interceptor.
4921
+ */
4922
+ declare const HSUITE_AUTH_HEADER = "Authorization";
4923
+ declare const HSUITE_LEDGER_HEADER = "X-Ledger-Id";
4924
+ /**
4925
+ * Functional HTTP interceptor that attaches wallet-attributed auth headers.
4926
+ *
4927
+ * @description
4928
+ * Adds:
4929
+ * - `Authorization: Bearer <token>` when {@link SmartSessionService.getBearer} returns a token
4930
+ * - `X-Ledger-Id: <ledgerId>` when a wallet account is active
4931
+ *
4932
+ * On 401 responses, clears the stale bearer and retries once after re-login.
4933
+ *
4934
+ * @param req - The outgoing HTTP request
4935
+ * @param next - The downstream request handler
4936
+ * @returns Observable of HTTP events
4937
+ */
4938
+ declare const hsuiteAuthInterceptor: HttpInterceptorFn;
4939
+ /**
4940
+ * Class-based HTTP interceptor for module-based Angular apps.
4941
+ *
4942
+ * @description
4943
+ * Provides the same behavior as {@link hsuiteAuthInterceptor} in a class form
4944
+ * suitable for registration via `HTTP_INTERCEPTORS`.
4945
+ */
4946
+ declare class HsuiteAuthInterceptor implements HttpInterceptor {
4947
+ private readonly session;
4948
+ private readonly wallet;
4949
+ /**
4950
+ * Intercepts outgoing HTTP requests to attach wallet-attributed auth headers.
4951
+ *
4952
+ * @param req - The outgoing HTTP request
4953
+ * @param next - The downstream request handler
4954
+ * @returns Observable of HTTP events
4955
+ */
4956
+ intercept(req: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
4957
+ static ɵfac: i0.ɵɵFactoryDeclaration<HsuiteAuthInterceptor, never>;
4958
+ static ɵprov: i0.ɵɵInjectableDeclaration<HsuiteAuthInterceptor>;
4959
+ }
4960
+
4725
4961
  /**
4726
4962
  * Supported inner transaction types for batch transactions.
4727
4963
  * Excludes 'batch-transaction' since batches cannot be nested.
@@ -4886,7 +5122,7 @@ interface AccountCreateOptions {
4886
5122
  * ```
4887
5123
  */
4888
5124
  declare class HederaTransactionBuilderService {
4889
- private readonly wallet;
5125
+ private readonly accountSource;
4890
5126
  private readonly logger;
4891
5127
  /**
4892
5128
  * Gets the network ID from the active wallet account.
@@ -5491,6 +5727,49 @@ declare class XrplTransactionBuilderService {
5491
5727
  */
5492
5728
  declare function scaleHederaAmountToBaseUnits(amount: number, decimals: number): bigint;
5493
5729
 
5730
+ /**
5731
+ * HSuite Native Connect
5732
+ * Copyright 2024-2025 HSuite (https://hsuite.finance)
5733
+ *
5734
+ * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
5735
+ *
5736
+ * This file is part of HSuite Native Connect. For commercial licensing,
5737
+ * visit https://hsuite.finance/licensing
5738
+ */
5739
+ /**
5740
+ * @file ACTIVE_ACCOUNT_SOURCE: the minimal active-account read surface the
5741
+ * transaction builders need.
5742
+ *
5743
+ * @description
5744
+ * The Hedera transaction builder only reads `activeAccount()` from the wallet
5745
+ * (to pick the network and the entity key config). Injecting the whole
5746
+ * {@link UnifiedWalletService} couples the builder to a heavy root service that
5747
+ * also runs the dApp connect stack on construction. This token narrows that
5748
+ * dependency to a single member.
5749
+ *
5750
+ * The default provider points at {@link UnifiedWalletService}, so existing SDK
5751
+ * consumers that already provide it need NO wiring change (backward
5752
+ * compatible). The embedded widget shell overrides this token with a one-member
5753
+ * account context, which keeps the heavy root service from ever being
5754
+ * constructed inside the wallet.
5755
+ */
5756
+
5757
+ /**
5758
+ * The only member the transaction builders read from the active wallet account.
5759
+ * Implemented by {@link UnifiedWalletService} (the default) and by the embedded
5760
+ * shell's one-member account context.
5761
+ */
5762
+ interface ActiveAccountSource {
5763
+ readonly activeAccount: Signal<UnifiedAccount | null>;
5764
+ }
5765
+ /**
5766
+ * Injection token for the active-account read surface. Defaults to
5767
+ * {@link UnifiedWalletService} so consumers that already provide it need no
5768
+ * extra wiring; override it to supply a narrower source (the embedded shell
5769
+ * does this to avoid constructing the root service inside the wallet).
5770
+ */
5771
+ declare const ACTIVE_ACCOUNT_SOURCE: InjectionToken<ActiveAccountSource>;
5772
+
5494
5773
  /**
5495
5774
  * HSuite Native Connect
5496
5775
  * Copyright 2024-2025 HSuite (https://hsuite.finance)
@@ -6921,6 +7200,129 @@ declare class ChannelClientService {
6921
7200
  static ɵprov: i0.ɵɵInjectableDeclaration<ChannelClientService>;
6922
7201
  }
6923
7202
 
7203
+ /**
7204
+ * HSuite Native Connect
7205
+ * Copyright 2024-2025 HSuite (https://hsuite.finance)
7206
+ *
7207
+ * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
7208
+ *
7209
+ * This file is part of HSuite Native Connect. For commercial licensing,
7210
+ * visit https://hsuite.finance/licensing
7211
+ */
7212
+
7213
+ /**
7214
+ * @module LedgerUiRegistry
7215
+ *
7216
+ * Single source of truth for **how a ledger is presented** in the Angular SDK —
7217
+ * its display name, native currency, brand colours, and brand icon.
7218
+ *
7219
+ * ## Why a registry
7220
+ *
7221
+ * The core SDK keys everything off the canonical, open {@link LedgerId} type
7222
+ * (`z.string().min(1)` in `@hsuite/native-connect-types`) and discovers chains
7223
+ * dynamically via `WalletCore.registerLedger(adapter)` / `LedgerRegistry`. This
7224
+ * registry mirrors that pattern for the **presentation layer**: ledgers are
7225
+ * registered, not hard-coded into closed `'hedera' | 'xrpl'` maps. Adding a new
7226
+ * chain is a single {@link LedgerUIRegistry.register} call — no union to widen,
7227
+ * no scattered `Record<>` literals to keep in sync.
7228
+ *
7229
+ * Presentation lives in the presentation package (this Angular SDK) so the core
7230
+ * SDK stays headless: the descriptor carries the framework-agnostic data plus
7231
+ * the Ionic-specific icon binding ({@link LedgerUiDescriptor.iconName} /
7232
+ * {@link LedgerUiDescriptor.iconSvg}) that `<ion-icon>` renders.
7233
+ *
7234
+ * @see {@link LedgerUiDescriptor} for the per-ledger contract.
7235
+ * @see `docs/guides/adding-a-new-chain.md` for the end-to-end "add a chain" flow.
7236
+ */
7237
+ /**
7238
+ * Presentation contract for one ledger.
7239
+ *
7240
+ * Keyed by the canonical {@link LedgerId} (open `string`) so the registry is
7241
+ * extensible to any number of chains. Built-in ledgers are registered at module
7242
+ * load; first-party chains add a descriptor here, third-party/plugin chains call
7243
+ * {@link LedgerUIRegistry.register} at runtime.
7244
+ */
7245
+ interface LedgerUiDescriptor {
7246
+ /** Canonical ledger identity, e.g. `'hedera'`, `'xrpl'` (see {@link LedgerId}). */
7247
+ readonly id: LedgerId;
7248
+ /** Full human-readable name, e.g. `'Hedera'`, `'XRP Ledger'`. */
7249
+ readonly displayName: string;
7250
+ /** Compact name for badges/dense surfaces, e.g. `'Hedera'`, `'XRPL'`. */
7251
+ readonly shortName: string;
7252
+ /** Native currency ticker, e.g. `'HBAR'`, `'XRP'`. */
7253
+ readonly currencySymbol: string;
7254
+ /** Native currency decimal places, e.g. `8` (Hedera), `6` (XRPL). */
7255
+ readonly currencyDecimals: number;
7256
+ /** Brand colour as a hex string, used for CSS accents, e.g. `'#8259ef'`. */
7257
+ readonly brandColor: string;
7258
+ /** Ionic semantic colour name for `<ion-badge color="...">`, e.g. `'success'`. */
7259
+ readonly badgeColor: string;
7260
+ /**
7261
+ * Ionicons name under which {@link iconSvg} is registered, e.g.
7262
+ * `'ledger-hedera'`. Reference it from `<ion-icon [name]="...">`. The SVG is
7263
+ * flushed to Ionicons by {@link LedgerUIRegistry.registerIcons}.
7264
+ */
7265
+ readonly iconName: string;
7266
+ /**
7267
+ * Self-contained brand SVG markup. Inlined (rather than shipped as an asset
7268
+ * file) so the packaged library needs no runtime asset pipeline or external
7269
+ * CDN. `currentColor` fills inherit the host `<ion-icon>` colour; explicit
7270
+ * fills are preserved.
7271
+ */
7272
+ readonly iconSvg: string;
7273
+ /**
7274
+ * Optional CDN URL for a raster icon of the native token, used as a fallback
7275
+ * when an inline brand SVG is not the right surface (e.g. token lists).
7276
+ */
7277
+ readonly tokenIconUrl?: string;
7278
+ }
7279
+ /**
7280
+ * Open, string-keyed registry of {@link LedgerUiDescriptor}s.
7281
+ *
7282
+ * A static registry (like `AccountLabelManager`) because ledger presentation is
7283
+ * process-global — Ionicons' own icon table is global too. Mirrors the core
7284
+ * `LedgerRegistry` shape (`register` / `get` / `has` / `list`) so the two read
7285
+ * the same way.
7286
+ */
7287
+ declare class LedgerUIRegistry {
7288
+ private static readonly descriptors;
7289
+ /** Whether {@link registerIcons} has already flushed SVGs to Ionicons. */
7290
+ private static iconsFlushed;
7291
+ /**
7292
+ * Register (or replace) the presentation descriptor for a ledger.
7293
+ *
7294
+ * If icons were already flushed to Ionicons (i.e. {@link registerIcons} ran),
7295
+ * the new ledger's SVG is registered immediately so late registrations still
7296
+ * render.
7297
+ *
7298
+ * @param descriptor - The ledger's presentation contract.
7299
+ */
7300
+ static register(descriptor: LedgerUiDescriptor): void;
7301
+ /**
7302
+ * Look up a ledger's presentation descriptor.
7303
+ *
7304
+ * @param ledgerId - Canonical ledger id (case-sensitive; callers normalise).
7305
+ * @returns The descriptor, or `undefined` if the ledger is not registered.
7306
+ */
7307
+ static get(ledgerId: LedgerId): LedgerUiDescriptor | undefined;
7308
+ /**
7309
+ * @param ledgerId - Canonical ledger id.
7310
+ * @returns `true` if a descriptor is registered for `ledgerId`.
7311
+ */
7312
+ static has(ledgerId: LedgerId): boolean;
7313
+ /**
7314
+ * @returns All registered descriptors, in registration order.
7315
+ */
7316
+ static list(): LedgerUiDescriptor[];
7317
+ /**
7318
+ * Flush every registered ledger's brand SVG to Ionicons so the icons resolve
7319
+ * by name from `<ion-icon>`. Idempotent and cheap to call repeatedly — call it
7320
+ * before the icons are first rendered (e.g. from a component constructor or
7321
+ * once at app bootstrap).
7322
+ */
7323
+ static registerIcons(): void;
7324
+ }
7325
+
6924
7326
  /**
6925
7327
  * HSuite Native Connect
6926
7328
  * Copyright 2024-2025 HSuite (https://hsuite.finance)
@@ -6932,48 +7334,72 @@ declare class ChannelClientService {
6932
7334
  */
6933
7335
  /**
6934
7336
  * @module LedgerIconsUtil
6935
- * Utilities for getting default icon URLs for ledgers and their native tokens.
6936
7337
  *
6937
- * Uses CoinGecko's public CDN for reliable, high-quality token icons.
6938
- * Shared across wallet and dApp for consistency.
7338
+ * Backward-compatible facade over {@link LedgerUIRegistry}.
7339
+ *
7340
+ * Every value here is **derived from the registry** so there is exactly one
7341
+ * source of truth for ledger presentation. New code should prefer
7342
+ * {@link LedgerUIRegistry} directly (it is open/extensible and richer); these
7343
+ * getters and constant maps remain for the existing public API surface.
7344
+ *
7345
+ * The constant maps below are snapshots taken at module load — they include the
7346
+ * built-in ledgers (Hedera, XRPL). Ledgers registered later at runtime are
7347
+ * always reachable through the getters and {@link LedgerUIRegistry}, but will
7348
+ * not retroactively appear in these legacy snapshots; prefer the registry when
7349
+ * extensibility matters.
6939
7350
  */
6940
7351
  /**
6941
- * Default icon URLs for native ledger tokens
7352
+ * Default raster icon URLs for native ledger tokens, keyed by ledger id.
7353
+ * Derived from {@link LedgerUiDescriptor.tokenIconUrl}.
6942
7354
  */
6943
7355
  declare const DEFAULT_LEDGER_ICONS: Record<string, string>;
6944
7356
  /**
6945
- * Brand colors for each ledger
7357
+ * Brand colours (hex) for each ledger, keyed by ledger id.
7358
+ * Derived from {@link LedgerUiDescriptor.brandColor}.
6946
7359
  */
6947
7360
  declare const LEDGER_COLORS: Record<string, string>;
6948
7361
  /**
6949
- * Display names for each ledger
7362
+ * Display names for each ledger, keyed by ledger id.
7363
+ * Derived from {@link LedgerUiDescriptor.displayName}.
6950
7364
  */
6951
7365
  declare const LEDGER_NAMES: Record<string, string>;
6952
7366
  /**
6953
- * Get the default icon URL for a ledger
6954
- * @param ledgerId - Ledger identifier (e.g., 'hedera', 'xrpl')
6955
- * @returns Icon URL or empty string if not found
7367
+ * Ionicons names under which each ledger's brand SVG is registered, keyed by
7368
+ * ledger id. Reference these from `<ion-icon [name]="...">`.
7369
+ * Derived from {@link LedgerUiDescriptor.iconName}.
7370
+ */
7371
+ declare const LEDGER_ICON_NAMES: Record<string, string>;
7372
+ /**
7373
+ * Register the ledger brand SVGs with Ionicons so they can be referenced by name
7374
+ * (see {@link LEDGER_ICON_NAMES}). Idempotent; safe to call from multiple
7375
+ * consumers. Delegates to {@link LedgerUIRegistry.registerIcons}.
7376
+ */
7377
+ declare function registerLedgerIcons(): void;
7378
+ /**
7379
+ * Get the default raster token icon URL for a ledger.
7380
+ * @param ledgerId - Ledger identifier (e.g. `'hedera'`, `'xrpl'`)
7381
+ * @returns Icon URL, or empty string if the ledger has none.
6956
7382
  */
6957
7383
  declare function getLedgerIcon(ledgerId: string): string;
6958
7384
  /**
6959
- * Get the brand color for a ledger
7385
+ * Get the brand colour (hex) for a ledger.
6960
7386
  * @param ledgerId - Ledger identifier
6961
- * @returns Hex color string or primary color fallback
7387
+ * @returns Hex colour string, or the Ionic primary CSS variable as fallback.
6962
7388
  */
6963
7389
  declare function getLedgerColor(ledgerId: string): string;
6964
7390
  /**
6965
- * Get the display name for a ledger
7391
+ * Get the display name for a ledger.
6966
7392
  * @param ledgerId - Ledger identifier
6967
- * @returns Human-readable ledger name
7393
+ * @returns Human-readable ledger name, or the raw id if unknown.
6968
7394
  */
6969
7395
  declare function getLedgerName(ledgerId: string): string;
6970
7396
  /**
6971
- * Get token icon URL, falling back to ledger default if not provided
7397
+ * Get a token icon URL, falling back to the ledger default if not provided.
6972
7398
  * @param tokenIconUrl - Specific token icon URL (optional)
6973
7399
  * @param ledgerId - Ledger identifier for fallback
6974
- * @returns Icon URL or empty string
7400
+ * @returns Icon URL, or empty string.
6975
7401
  */
6976
7402
  declare function getTokenIcon(tokenIconUrl: string | undefined, ledgerId: string): string;
6977
7403
 
6978
- export { AccountActionsComponent, AccountFilterComponent, AccountFormattingService, AccountGroupingService, AccountListComponent, AccountSelectorComponent, AccountSelectorService, BaseWalletProvider, ChannelClientService, ChromeExtensionTransport, DEFAULT_LEDGER_ICONS, DEFAULT_WALLET_URL, HederaSigner, HederaTransactionBuilderService, HsuiteNativeProvider, HsuiteWalletModule, LEDGER_COLORS, LEDGER_NAMES, LoggerService, P2PNativeProvider, P2PSessionManager, SignerFactory, TransactionService, UnifiedWalletService, WalletAccountDisplayComponent, WalletConnectButtonComponent, WalletConnectClientManager, WalletConnectPromptComponent, WalletConnectSessionStore, WalletConnectSigningOrchestrator, WalletConnectV2Provider, WalletConnectedDirective, WalletConnectedGuardComponent, WalletConnectionModalComponent, WalletContextDirective, WalletContextService, WalletErrorHandler, WalletEventBus, WalletEventsDirective, WalletSessionDisplayComponent, WalletTransactionStatusComponent, XrplSigner, XrplTransactionBuilderService, getExtensionVersion, getLedgerColor, getLedgerIcon, getLedgerName, getTokenIcon, isExtensionInstalled, isHsuiteNativeConfig, isWalletConnectV2Config, provideWalletErrorHandler, scaleHederaAmountToBaseUnits };
6979
- export type { AccountChangeEvent, AccountCreateOptions, AccountGroupingMode, AccountItem, AccountSelectorConfig, AccountSelectorPresentationMode, AccountWithBalance, AccountsUpdateEvent, ActiveAccountData, BatchInnerTransaction, BatchInnerTransactionType, ChannelConnectConfig, ChromeExtensionTransportOptions, CompactHeaderFormat, CompactHeaderSize, ConnectionConfig, ConnectionEvent, ConnectionStatus, CreateOfferOptions, CreateOfferResult, DisconnectionEvent, HederaKeyConfig, HsuiteNativeConfig, IWalletConnectSigner, LedgerGroup$1 as LedgerGroup, MobileNativeConfig, NetworkGroup, P2PConnectionState, P2PNativeConnectionState, P2PSession, PairingOfferResult, ProtocolGroup, ProviderErrorEvent, ProviderMetadata, ProviderStatusEvent, ProviderType, SelectedAccountData, SessionEvent, SessionMetadata, SignMessageOptions, SignMessageResult, SignResult, SignTransactionOptions, SignerContext, SignerOperationParams, SigningOrchestratorConfig, StoredSessionData, SubmitResult, SubmitTransactionOptions, TokenCreateOptions, TopicCreateOptions, UnifiedAccount, WCAppMetadata, WalletConnectSession, WalletConnectSignerConfig, WalletConnectV2Config, WalletContext, WalletErrorHandlerConfig, WalletSession };
7404
+ export { ACTIVE_ACCOUNT_SOURCE, AccountActionsComponent, AccountFilterComponent, AccountFormattingService, AccountGroupingService, AccountListComponent, AccountSelectorComponent, AccountSelectorService, BaseWalletProvider, ChannelClientService, ChromeExtensionTransport, DEFAULT_LEDGER_ICONS, DEFAULT_WALLET_URL, HSUITE_AUTH_HEADER, HSUITE_LEDGER_HEADER, HederaSigner, HederaTransactionBuilderService, HsuiteAuthInterceptor, HsuiteNativeProvider, HsuiteWalletModule, LEDGER_COLORS, LEDGER_ICON_NAMES, LEDGER_NAMES, LedgerUIRegistry, LoggerService, P2PNativeProvider, P2PSessionManager, SMART_SESSION_CONFIG, SignerFactory, SmartSessionService, TransactionService, UnifiedWalletService, WalletAccountDisplayComponent, WalletConnectButtonComponent, WalletConnectClientManager, WalletConnectPromptComponent, WalletConnectSessionStore, WalletConnectSigningOrchestrator, WalletConnectV2Provider, WalletConnectedDirective, WalletConnectedGuardComponent, WalletConnectionModalComponent, WalletContextDirective, WalletContextService, WalletErrorHandler, WalletEventBus, WalletEventsDirective, WalletSessionDisplayComponent, WalletTransactionStatusComponent, XrplSigner, XrplTransactionBuilderService, getExtensionVersion, getLedgerColor, getLedgerIcon, getLedgerName, getTokenIcon, hsuiteAuthInterceptor, isExtensionInstalled, isHsuiteNativeConfig, isWalletConnectV2Config, provideWalletErrorHandler, registerLedgerIcons, scaleHederaAmountToBaseUnits };
7405
+ export type { AccountChangeEvent, AccountCreateOptions, AccountGroupingMode, AccountItem, AccountSelectorConfig, AccountSelectorPresentationMode, AccountWithBalance, AccountsUpdateEvent, ActiveAccountData, ActiveAccountSource, BatchInnerTransaction, BatchInnerTransactionType, ChannelConnectConfig, ChromeExtensionTransportOptions, CompactHeaderFormat, CompactHeaderSize, ConnectionConfig, ConnectionEvent, ConnectionStatus, CreateOfferOptions, CreateOfferResult, DisconnectionEvent, HederaKeyConfig, HsuiteNativeConfig, IWalletConnectSigner, LedgerGroup$1 as LedgerGroup, LedgerUiDescriptor, MobileNativeConfig, NetworkGroup, P2PConnectionState, P2PNativeConnectionState, P2PSession, PairingOfferResult, ProtocolGroup, ProviderErrorEvent, ProviderMetadata, ProviderStatusEvent, ProviderType, SelectedAccountData, SessionEvent, SessionMetadata, SignMessageOptions, SignMessageResult, SignResult, SignTransactionOptions, SignerContext, SignerOperationParams, SigningOrchestratorConfig, SmartHostChallenge, SmartHostHealth, SmartHostVerifyRequest, SmartHostVerifyResponse, SmartSessionConfig, StoredSessionData, SubmitResult, SubmitTransactionOptions, TokenCreateOptions, TopicCreateOptions, UnifiedAccount, WCAppMetadata, WalletConnectSession, WalletConnectSignerConfig, WalletConnectV2Config, WalletContext, WalletErrorHandlerConfig, WalletSession };