@multiversx/sdk-dapp 5.0.0-alpha.11 → 5.0.0-alpha.13

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 (472) hide show
  1. package/README.md +33 -14
  2. package/out/__chunks__/chunk-2ZNIPYEV.mjs +2 -0
  3. package/out/__chunks__/chunk-35ED7YL2.mjs +2 -0
  4. package/out/__chunks__/{chunk-N6SD2OVU.mjs → chunk-3ATEIVW3.mjs} +2 -2
  5. package/out/__chunks__/chunk-3ATEIVW3.mjs.map +7 -0
  6. package/out/__chunks__/{chunk-S75GQPJQ.mjs → chunk-3RBYJZII.mjs} +2 -2
  7. package/out/__chunks__/{chunk-7D2BEFUJ.mjs → chunk-3UIJI5YR.mjs} +2 -2
  8. package/out/__chunks__/chunk-3XCB5CEW.mjs +2 -0
  9. package/out/__chunks__/chunk-3XCB5CEW.mjs.map +7 -0
  10. package/out/__chunks__/chunk-47CCSYQY.mjs +2 -0
  11. package/out/__chunks__/{chunk-KEAFX54V.mjs → chunk-53JZ6ZBD.mjs} +2 -2
  12. package/out/__chunks__/{chunk-3EI6B7OU.mjs → chunk-57B6Q67I.mjs} +2 -2
  13. package/out/__chunks__/{chunk-QWNJJXNH.mjs → chunk-5V5MG3BL.mjs} +2 -2
  14. package/out/__chunks__/{chunk-FIXSEPFX.mjs → chunk-65RXDHRY.mjs} +2 -2
  15. package/out/__chunks__/{chunk-ZSVNTZ3Q.mjs → chunk-6H5TKCEW.mjs} +2 -2
  16. package/out/__chunks__/chunk-6UZHM5LW.mjs +2 -0
  17. package/out/__chunks__/chunk-6UZHM5LW.mjs.map +7 -0
  18. package/out/__chunks__/{chunk-YZE4ECSF.mjs → chunk-77IZTIMY.mjs} +2 -2
  19. package/out/__chunks__/chunk-7ZW5EZFP.mjs +2 -0
  20. package/out/__chunks__/{chunk-FS2F24A7.mjs → chunk-A343RP4X.mjs} +2 -2
  21. package/out/__chunks__/chunk-AGHFAZ7O.mjs +2 -0
  22. package/out/__chunks__/{chunk-DPSC4NIK.mjs → chunk-AKFSBZ46.mjs} +2 -2
  23. package/out/__chunks__/{chunk-XOWM53LI.mjs → chunk-AM6BSOYA.mjs} +2 -2
  24. package/out/__chunks__/{chunk-MJEZGI7G.mjs → chunk-AQ3VAQH3.mjs} +2 -2
  25. package/out/__chunks__/chunk-AQ3VAQH3.mjs.map +7 -0
  26. package/out/__chunks__/{chunk-FMUDQBZE.mjs → chunk-BETSOJFK.mjs} +2 -2
  27. package/out/__chunks__/chunk-CTW5DICC.mjs +2 -0
  28. package/out/__chunks__/chunk-DCCGXGUQ.mjs +2 -0
  29. package/out/__chunks__/chunk-DDXGTNBZ.mjs +2 -0
  30. package/out/__chunks__/{chunk-4RJ23OT7.mjs → chunk-ED5SQUAW.mjs} +2 -2
  31. package/out/__chunks__/{chunk-EUVZQRU5.mjs → chunk-EGU5LABV.mjs} +2 -2
  32. package/out/__chunks__/chunk-EKMRPW2A.mjs +2 -0
  33. package/out/__chunks__/chunk-EKMRPW2A.mjs.map +7 -0
  34. package/out/__chunks__/{chunk-2AB2KTYM.mjs → chunk-EQEYL6AE.mjs} +2 -2
  35. package/out/__chunks__/{chunk-EQMLAAI2.mjs → chunk-ER735UVF.mjs} +2 -2
  36. package/out/__chunks__/{chunk-FELZAGW5.mjs → chunk-EUXN5BLO.mjs} +2 -2
  37. package/out/__chunks__/{chunk-X4ZYTNNA.mjs → chunk-FFEFZVCC.mjs} +2 -2
  38. package/out/__chunks__/{chunk-MRJ7P7KU.mjs → chunk-GOL32UNC.mjs} +2 -2
  39. package/out/__chunks__/{chunk-YEAVK4T2.mjs → chunk-GXUJBKWY.mjs} +2 -2
  40. package/out/__chunks__/{chunk-AHHTRI3Y.mjs → chunk-HIODLP5F.mjs} +2 -2
  41. package/out/__chunks__/{chunk-HQSB4ISG.mjs → chunk-HIUWEH2W.mjs} +2 -2
  42. package/out/__chunks__/{chunk-ZZ53RJBO.mjs → chunk-HPLSDK5V.mjs} +2 -2
  43. package/out/__chunks__/chunk-HTAH342B.mjs +2 -0
  44. package/out/__chunks__/{chunk-JAUTVROS.mjs.map → chunk-HTAH342B.mjs.map} +1 -1
  45. package/out/__chunks__/{chunk-B5AW5LX5.mjs → chunk-HVUNMCAO.mjs} +2 -2
  46. package/out/__chunks__/{chunk-DVY6YKH6.mjs → chunk-IEWH5GDM.mjs} +2 -2
  47. package/out/__chunks__/{chunk-NXV7YLV6.mjs → chunk-ISB4SC4L.mjs} +2 -2
  48. package/out/__chunks__/chunk-IYAIXP65.mjs +2 -0
  49. package/out/__chunks__/{chunk-BNWGWGXY.mjs → chunk-JF4GVWO4.mjs} +2 -2
  50. package/out/__chunks__/{chunk-TAQN5HUK.mjs → chunk-JGFDKHG2.mjs} +2 -2
  51. package/out/__chunks__/chunk-K66JLLVW.mjs +2 -0
  52. package/out/__chunks__/{chunk-ORHJGVU5.mjs.map → chunk-K66JLLVW.mjs.map} +2 -2
  53. package/out/__chunks__/{chunk-LYTZPES3.mjs → chunk-KGASLT4P.mjs} +2 -2
  54. package/out/__chunks__/{chunk-SHDTJ5GB.mjs → chunk-KWJVDPCC.mjs} +2 -2
  55. package/out/__chunks__/{chunk-RA4VU3NM.mjs → chunk-L4762ZRT.mjs} +2 -2
  56. package/out/__chunks__/{chunk-HCDOXUDA.mjs → chunk-LDETTRYB.mjs} +2 -2
  57. package/out/__chunks__/{chunk-QWIXKUDO.mjs → chunk-LEBVS2YF.mjs} +2 -2
  58. package/out/__chunks__/chunk-LIFPBQTL.mjs +2 -0
  59. package/out/__chunks__/chunk-LJ5JGAYL.mjs +2 -0
  60. package/out/__chunks__/{chunk-LKXBH3I3.mjs → chunk-LYXQ3FWU.mjs} +2 -2
  61. package/out/__chunks__/{chunk-SNBLSIKQ.mjs → chunk-NJMYFDLA.mjs} +2 -2
  62. package/out/__chunks__/chunk-NONAAAZC.mjs +2 -0
  63. package/out/__chunks__/{chunk-U6KSTPE7.mjs.map → chunk-NONAAAZC.mjs.map} +1 -1
  64. package/out/__chunks__/chunk-NQQQKXT2.mjs +2 -0
  65. package/out/__chunks__/{chunk-AAMNTAXA.mjs → chunk-OB6ULJEV.mjs} +2 -2
  66. package/out/__chunks__/{chunk-ZMEIT65B.mjs → chunk-OD4ANAAQ.mjs} +2 -2
  67. package/out/__chunks__/{chunk-JOB7ALAF.mjs → chunk-PGOE5XGR.mjs} +2 -2
  68. package/out/__chunks__/{chunk-JOB7ALAF.mjs.map → chunk-PGOE5XGR.mjs.map} +2 -2
  69. package/out/__chunks__/{chunk-5AR7YU5K.mjs → chunk-PJDJEPY2.mjs} +2 -2
  70. package/out/__chunks__/{chunk-PCY7ULK2.mjs → chunk-PXMPUIUL.mjs} +2 -2
  71. package/out/__chunks__/{chunk-AV6BSOLO.mjs → chunk-Q56GIIOP.mjs} +2 -2
  72. package/out/__chunks__/{chunk-HTVULYKB.mjs → chunk-Q6NDAYER.mjs} +2 -2
  73. package/out/__chunks__/chunk-QNKYH6KO.mjs +2 -0
  74. package/out/__chunks__/chunk-QNKYH6KO.mjs.map +7 -0
  75. package/out/__chunks__/{chunk-XZVYUFVM.mjs → chunk-QPXVUJSC.mjs} +2 -2
  76. package/out/__chunks__/{chunk-IAK3KHJ7.mjs → chunk-QVLQCJFN.mjs} +2 -2
  77. package/out/__chunks__/{chunk-3ZHPM667.mjs → chunk-RIH7QM6W.mjs} +2 -2
  78. package/out/__chunks__/{chunk-DKE2ONRB.mjs → chunk-RJSL5ONQ.mjs} +2 -2
  79. package/out/__chunks__/{chunk-ZHGCNNB5.mjs → chunk-RM4VHHXR.mjs} +2 -2
  80. package/out/__chunks__/chunk-RNYSLFYZ.mjs +2 -0
  81. package/out/__chunks__/chunk-RNYSLFYZ.mjs.map +7 -0
  82. package/out/__chunks__/{chunk-XW2GCCBZ.mjs → chunk-RRKNYQ6D.mjs} +2 -2
  83. package/out/__chunks__/chunk-RUG7JMMB.mjs +2 -0
  84. package/out/__chunks__/{chunk-3BXYTP4Q.mjs → chunk-S4LN2NQH.mjs} +2 -2
  85. package/out/__chunks__/chunk-SBZ2AN3R.mjs +2 -0
  86. package/out/__chunks__/{chunk-Y53MWKLT.mjs → chunk-SHFT3OJY.mjs} +2 -2
  87. package/out/__chunks__/chunk-T3VFM2QO.mjs +2 -0
  88. package/out/__chunks__/{chunk-RI7FD4HM.mjs → chunk-TSUMQ3HX.mjs} +2 -2
  89. package/out/__chunks__/{chunk-RI7FD4HM.mjs.map → chunk-TSUMQ3HX.mjs.map} +1 -1
  90. package/out/__chunks__/{chunk-C37IYZAK.mjs → chunk-TXQO3M7J.mjs} +2 -2
  91. package/out/__chunks__/{chunk-NKJ7OVPV.mjs → chunk-U5IR3XBA.mjs} +2 -2
  92. package/out/__chunks__/chunk-UZUI4AP5.mjs +2 -0
  93. package/out/__chunks__/chunk-VO4DXDYI.mjs +2 -0
  94. package/out/__chunks__/chunk-VO4DXDYI.mjs.map +7 -0
  95. package/out/__chunks__/chunk-VYWLQ5T7.mjs +2 -0
  96. package/out/__chunks__/chunk-W46BAMEI.mjs +2 -0
  97. package/out/__chunks__/chunk-W46BAMEI.mjs.map +7 -0
  98. package/out/__chunks__/chunk-XBVPYKPZ.mjs +2 -0
  99. package/out/__chunks__/chunk-XDH23MRS.mjs +2 -0
  100. package/out/__chunks__/{chunk-HN244QVP.mjs → chunk-XSJE7M77.mjs} +2 -2
  101. package/out/__chunks__/{chunk-2I7FJNXZ.mjs → chunk-Y5Y2WOCZ.mjs} +2 -2
  102. package/out/__chunks__/{chunk-YV2TRFYW.mjs → chunk-YILGIHY5.mjs} +2 -2
  103. package/out/__mocks__/data/index.mjs +1 -1
  104. package/out/__mocks__/index.mjs +1 -1
  105. package/out/__mocks__/server.mjs +1 -1
  106. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  107. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  108. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  109. package/out/apiCalls/index.mjs +1 -1
  110. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  111. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  112. package/out/apiCalls/tokens/index.mjs +1 -1
  113. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  114. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  115. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  116. package/out/constants/browser.constants.mjs +1 -1
  117. package/out/constants/index.mjs +1 -1
  118. package/out/constants/storage.constants.mjs +1 -1
  119. package/out/constants/window.constants.mjs +1 -1
  120. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  121. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  122. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  123. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  124. package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs +1 -1
  125. package/out/index.mjs +1 -1
  126. package/out/managers/LogoutManager/LogoutManager.d.ts +15 -0
  127. package/out/managers/LogoutManager/LogoutManager.js +137 -0
  128. package/out/managers/LogoutManager/LogoutManager.js.map +1 -0
  129. package/out/managers/LogoutManager/LogoutManager.mjs +2 -0
  130. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.d.ts +1 -0
  131. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.js +33 -0
  132. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.js.map +1 -0
  133. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.mjs +2 -0
  134. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.mjs.map +7 -0
  135. package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.d.ts +1 -0
  136. package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.js +48 -0
  137. package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.js.map +1 -0
  138. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  139. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  140. package/out/managers/TransactionManager/TransactionManager.d.ts +14 -0
  141. package/out/managers/TransactionManager/TransactionManager.js +16 -0
  142. package/out/managers/TransactionManager/TransactionManager.js.map +1 -1
  143. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  144. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  145. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  146. package/out/managers/TransactionManager/index.mjs +1 -1
  147. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  148. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  149. package/out/managers/index.mjs +1 -1
  150. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  151. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  152. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.d.ts +0 -1
  153. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.js +7 -14
  154. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.js.map +1 -1
  155. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  156. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  157. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  158. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.d.ts +1 -1
  159. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  160. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  161. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  162. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  163. package/out/managers/internal/ToastManager/ToastManager.d.ts +5 -3
  164. package/out/managers/internal/ToastManager/ToastManager.js +9 -3
  165. package/out/managers/internal/ToastManager/ToastManager.js.map +1 -1
  166. package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
  167. package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
  168. package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  169. package/out/managers/internal/ToastManager/helpers/createTransactionToast.mjs +1 -1
  170. package/out/managers/internal/UIBaseManager/UIBaseManager.d.ts +1 -1
  171. package/out/managers/internal/UIBaseManager/UIBaseManager.js +2 -2
  172. package/out/managers/internal/UIBaseManager/UIBaseManager.js.map +1 -1
  173. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  174. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.js +2 -1
  175. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.js.map +1 -1
  176. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  177. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  178. package/out/managers/internal/index.mjs +1 -1
  179. package/out/methods/account/getAccount.mjs +1 -1
  180. package/out/methods/account/getAccountInfo.mjs +1 -1
  181. package/out/methods/account/getAddress.mjs +1 -1
  182. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  183. package/out/methods/account/getLatestNonce.mjs +1 -1
  184. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
  185. package/out/methods/initApp/initApp.js +7 -5
  186. package/out/methods/initApp/initApp.js.map +1 -1
  187. package/out/methods/initApp/initApp.mjs +1 -1
  188. package/out/methods/initApp/initApp.mjs.map +3 -3
  189. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  190. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  191. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  192. package/out/methods/network/getEgldLabel.mjs +1 -1
  193. package/out/methods/network/getExplorerAddress.mjs +1 -1
  194. package/out/methods/network/getNetworkConfig.mjs +1 -1
  195. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
  196. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  197. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  198. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
  199. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  200. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  201. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  202. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  203. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  204. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  205. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  206. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  207. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  208. package/out/providers/DappProvider/DappProvider.js +2 -0
  209. package/out/providers/DappProvider/DappProvider.js.map +1 -1
  210. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  211. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  212. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  213. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  214. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  215. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  216. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  217. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  218. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  219. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  220. package/out/providers/DappProvider/index.mjs +1 -1
  221. package/out/providers/ProviderFactory.js +5 -6
  222. package/out/providers/ProviderFactory.js.map +1 -1
  223. package/out/providers/ProviderFactory.mjs +1 -1
  224. package/out/providers/helpers/accountProvider.mjs +1 -1
  225. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  226. package/out/providers/helpers/restoreProvider.mjs +1 -1
  227. package/out/providers/index.mjs +1 -1
  228. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  229. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  230. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  231. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  232. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  233. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  234. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  235. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  236. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
  237. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
  238. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
  239. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
  240. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
  241. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
  242. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  243. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  244. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
  245. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  246. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  247. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js +13 -2
  248. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js.map +1 -1
  249. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  250. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  251. package/out/providers/strategies/WalletConnectProviderStrategy/types/index.mjs +1 -1
  252. package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.d.ts +1 -0
  253. package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.mjs +1 -1
  254. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  255. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  256. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  257. package/out/providers/strategies/helpers/index.mjs +1 -1
  258. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  259. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
  260. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  261. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.mjs +1 -1
  262. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  263. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
  264. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.mjs +1 -1
  265. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.mjs +1 -1
  266. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.mjs +1 -1
  267. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  268. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  269. package/out/providers/strategies/index.mjs +1 -1
  270. package/out/react/account/useGetAccount.mjs +1 -1
  271. package/out/react/account/useGetAccountInfo.mjs +1 -1
  272. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  273. package/out/react/account/useGetLatestNonce.mjs +1 -1
  274. package/out/react/index.mjs +1 -1
  275. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  276. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  277. package/out/react/store/getReactStore.mjs +1 -1
  278. package/out/react/store/useSelector.mjs +1 -1
  279. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  280. package/out/react/transactions/{useGetFailedTransactionsSessions copy.js → useGetFailedTransactionsSessions.js} +1 -1
  281. package/out/react/transactions/useGetFailedTransactionsSessions.js.map +1 -0
  282. package/out/react/transactions/{useGetFailedTransactionsSessions copy.mjs → useGetFailedTransactionsSessions.mjs} +2 -2
  283. package/out/react/transactions/{useGetFailedTransactionsSessions copy.mjs.map → useGetFailedTransactionsSessions.mjs.map} +1 -1
  284. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  285. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  286. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  287. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  288. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  289. package/out/services/index.mjs +1 -1
  290. package/out/services/nativeAuth/index.mjs +1 -1
  291. package/out/services/nativeAuth/nativeAuth.js +6 -8
  292. package/out/services/nativeAuth/nativeAuth.js.map +1 -1
  293. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  294. package/out/store/actions/account/accountActions.mjs +1 -1
  295. package/out/store/actions/account/index.mjs +1 -1
  296. package/out/store/actions/cache/cacheActions.mjs +1 -1
  297. package/out/store/actions/cache/index.mjs +1 -1
  298. package/out/store/actions/config/configActions.mjs +1 -1
  299. package/out/store/actions/config/index.mjs +1 -1
  300. package/out/store/actions/index.mjs +1 -1
  301. package/out/store/actions/loginInfo/loginInfoActions.js.map +1 -1
  302. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  303. package/out/store/actions/network/index.mjs +1 -1
  304. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  305. package/out/store/actions/network/networkActions.mjs +1 -1
  306. package/out/store/actions/sharedActions/index.mjs +1 -1
  307. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  308. package/out/store/actions/toasts/index.mjs +1 -1
  309. package/out/store/actions/toasts/toastsActions.d.ts +1 -1
  310. package/out/store/actions/toasts/toastsActions.js +3 -1
  311. package/out/store/actions/toasts/toastsActions.js.map +1 -1
  312. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  313. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  314. package/out/store/actions/ui/index.mjs +1 -1
  315. package/out/store/actions/ui/uiActions.mjs +1 -1
  316. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  317. package/out/store/middleware/index.mjs +1 -1
  318. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  319. package/out/store/storage/index.mjs +1 -1
  320. package/out/store/storage/storageCallback.mjs +1 -1
  321. package/out/store/store.mjs +1 -1
  322. package/out/utils/ComponentFactory.d.ts +14 -0
  323. package/out/utils/{createUIElement.js → ComponentFactory.js} +14 -4
  324. package/out/utils/ComponentFactory.js.map +1 -0
  325. package/out/utils/ComponentFactory.mjs +2 -0
  326. package/out/utils/ComponentFactory.mjs.map +7 -0
  327. package/out/utils/account/index.mjs +1 -1
  328. package/out/utils/account/refreshAccount.mjs +1 -1
  329. package/out/utils/index.mjs +1 -1
  330. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  331. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
  332. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  333. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
  334. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
  335. package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.mjs +1 -1
  336. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
  337. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
  338. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
  339. package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
  340. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  341. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  342. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
  343. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  344. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  345. package/out/utils/transactions/index.mjs +1 -1
  346. package/out/utils/visual/index.mjs +1 -1
  347. package/out/utils/visual/switchTheme.js +6 -3
  348. package/out/utils/visual/switchTheme.js.map +1 -1
  349. package/out/utils/visual/switchTheme.mjs +1 -1
  350. package/out/utils/window/getIsInIframe.mjs +1 -1
  351. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  352. package/out/utils/window/index.mjs +1 -1
  353. package/package.json +2 -2
  354. package/out/__chunks__/chunk-2X62ALFS.mjs +0 -2
  355. package/out/__chunks__/chunk-2X62ALFS.mjs.map +0 -7
  356. package/out/__chunks__/chunk-2ZNQYHNX.mjs +0 -2
  357. package/out/__chunks__/chunk-3GXUTDCB.mjs +0 -2
  358. package/out/__chunks__/chunk-3YK6SW7E.mjs +0 -2
  359. package/out/__chunks__/chunk-4RGFBPII.mjs +0 -2
  360. package/out/__chunks__/chunk-4RGFBPII.mjs.map +0 -7
  361. package/out/__chunks__/chunk-535PAVZN.mjs +0 -2
  362. package/out/__chunks__/chunk-5OQ6KHGF.mjs +0 -2
  363. package/out/__chunks__/chunk-62PJZCUP.mjs +0 -2
  364. package/out/__chunks__/chunk-6LY7ZRDT.mjs +0 -2
  365. package/out/__chunks__/chunk-6LY7ZRDT.mjs.map +0 -7
  366. package/out/__chunks__/chunk-7B2IRMVK.mjs +0 -2
  367. package/out/__chunks__/chunk-AFEGGHNM.mjs +0 -2
  368. package/out/__chunks__/chunk-ASRYY6T3.mjs +0 -2
  369. package/out/__chunks__/chunk-BMXLSDJM.mjs +0 -2
  370. package/out/__chunks__/chunk-C6JD2OFD.mjs +0 -2
  371. package/out/__chunks__/chunk-C6JD2OFD.mjs.map +0 -7
  372. package/out/__chunks__/chunk-DICSPHT2.mjs +0 -2
  373. package/out/__chunks__/chunk-ESLVKRXK.mjs +0 -2
  374. package/out/__chunks__/chunk-J75OEBAP.mjs +0 -2
  375. package/out/__chunks__/chunk-JAUTVROS.mjs +0 -2
  376. package/out/__chunks__/chunk-MJEZGI7G.mjs.map +0 -7
  377. package/out/__chunks__/chunk-N6SD2OVU.mjs.map +0 -7
  378. package/out/__chunks__/chunk-O2SZII5H.mjs +0 -2
  379. package/out/__chunks__/chunk-OEYIF65Y.mjs +0 -2
  380. package/out/__chunks__/chunk-OEYIF65Y.mjs.map +0 -7
  381. package/out/__chunks__/chunk-ORHJGVU5.mjs +0 -2
  382. package/out/__chunks__/chunk-Q7L5T72K.mjs +0 -2
  383. package/out/__chunks__/chunk-RIFXW4D3.mjs +0 -2
  384. package/out/__chunks__/chunk-RIFXW4D3.mjs.map +0 -7
  385. package/out/__chunks__/chunk-U6KSTPE7.mjs +0 -2
  386. package/out/__chunks__/chunk-WMY46KJS.mjs +0 -2
  387. package/out/__chunks__/chunk-XGV7BGBC.mjs +0 -2
  388. package/out/__chunks__/chunk-XGV7BGBC.mjs.map +0 -7
  389. package/out/__chunks__/chunk-XXKSDA5P.mjs +0 -2
  390. package/out/__chunks__/chunk-YK4XGF57.mjs +0 -2
  391. package/out/__chunks__/chunk-YLN3OBBP.mjs +0 -2
  392. package/out/__chunks__/chunk-ZZDN5HHJ.mjs +0 -2
  393. package/out/__chunks__/chunk-ZZDN5HHJ.mjs.map +0 -7
  394. package/out/react/transactions/useGetFailedTransactionsSessions copy.js.map +0 -1
  395. package/out/utils/createUIElement.d.ts +0 -9
  396. package/out/utils/createUIElement.js.map +0 -1
  397. package/out/utils/createUIElement.mjs +0 -2
  398. /package/out/__chunks__/{chunk-YK4XGF57.mjs.map → chunk-2ZNIPYEV.mjs.map} +0 -0
  399. /package/out/__chunks__/{chunk-3GXUTDCB.mjs.map → chunk-35ED7YL2.mjs.map} +0 -0
  400. /package/out/__chunks__/{chunk-S75GQPJQ.mjs.map → chunk-3RBYJZII.mjs.map} +0 -0
  401. /package/out/__chunks__/{chunk-7D2BEFUJ.mjs.map → chunk-3UIJI5YR.mjs.map} +0 -0
  402. /package/out/__chunks__/{chunk-XXKSDA5P.mjs.map → chunk-47CCSYQY.mjs.map} +0 -0
  403. /package/out/__chunks__/{chunk-KEAFX54V.mjs.map → chunk-53JZ6ZBD.mjs.map} +0 -0
  404. /package/out/__chunks__/{chunk-3EI6B7OU.mjs.map → chunk-57B6Q67I.mjs.map} +0 -0
  405. /package/out/__chunks__/{chunk-QWNJJXNH.mjs.map → chunk-5V5MG3BL.mjs.map} +0 -0
  406. /package/out/__chunks__/{chunk-FIXSEPFX.mjs.map → chunk-65RXDHRY.mjs.map} +0 -0
  407. /package/out/__chunks__/{chunk-ZSVNTZ3Q.mjs.map → chunk-6H5TKCEW.mjs.map} +0 -0
  408. /package/out/__chunks__/{chunk-YZE4ECSF.mjs.map → chunk-77IZTIMY.mjs.map} +0 -0
  409. /package/out/__chunks__/{chunk-J75OEBAP.mjs.map → chunk-7ZW5EZFP.mjs.map} +0 -0
  410. /package/out/__chunks__/{chunk-FS2F24A7.mjs.map → chunk-A343RP4X.mjs.map} +0 -0
  411. /package/out/__chunks__/{chunk-O2SZII5H.mjs.map → chunk-AGHFAZ7O.mjs.map} +0 -0
  412. /package/out/__chunks__/{chunk-DPSC4NIK.mjs.map → chunk-AKFSBZ46.mjs.map} +0 -0
  413. /package/out/__chunks__/{chunk-XOWM53LI.mjs.map → chunk-AM6BSOYA.mjs.map} +0 -0
  414. /package/out/__chunks__/{chunk-FMUDQBZE.mjs.map → chunk-BETSOJFK.mjs.map} +0 -0
  415. /package/out/__chunks__/{chunk-ESLVKRXK.mjs.map → chunk-CTW5DICC.mjs.map} +0 -0
  416. /package/out/__chunks__/{chunk-535PAVZN.mjs.map → chunk-DCCGXGUQ.mjs.map} +0 -0
  417. /package/out/__chunks__/{chunk-Q7L5T72K.mjs.map → chunk-DDXGTNBZ.mjs.map} +0 -0
  418. /package/out/__chunks__/{chunk-4RJ23OT7.mjs.map → chunk-ED5SQUAW.mjs.map} +0 -0
  419. /package/out/__chunks__/{chunk-EUVZQRU5.mjs.map → chunk-EGU5LABV.mjs.map} +0 -0
  420. /package/out/__chunks__/{chunk-2AB2KTYM.mjs.map → chunk-EQEYL6AE.mjs.map} +0 -0
  421. /package/out/__chunks__/{chunk-EQMLAAI2.mjs.map → chunk-ER735UVF.mjs.map} +0 -0
  422. /package/out/__chunks__/{chunk-FELZAGW5.mjs.map → chunk-EUXN5BLO.mjs.map} +0 -0
  423. /package/out/__chunks__/{chunk-X4ZYTNNA.mjs.map → chunk-FFEFZVCC.mjs.map} +0 -0
  424. /package/out/__chunks__/{chunk-MRJ7P7KU.mjs.map → chunk-GOL32UNC.mjs.map} +0 -0
  425. /package/out/__chunks__/{chunk-YEAVK4T2.mjs.map → chunk-GXUJBKWY.mjs.map} +0 -0
  426. /package/out/__chunks__/{chunk-AHHTRI3Y.mjs.map → chunk-HIODLP5F.mjs.map} +0 -0
  427. /package/out/__chunks__/{chunk-HQSB4ISG.mjs.map → chunk-HIUWEH2W.mjs.map} +0 -0
  428. /package/out/__chunks__/{chunk-ZZ53RJBO.mjs.map → chunk-HPLSDK5V.mjs.map} +0 -0
  429. /package/out/__chunks__/{chunk-B5AW5LX5.mjs.map → chunk-HVUNMCAO.mjs.map} +0 -0
  430. /package/out/__chunks__/{chunk-DVY6YKH6.mjs.map → chunk-IEWH5GDM.mjs.map} +0 -0
  431. /package/out/__chunks__/{chunk-NXV7YLV6.mjs.map → chunk-ISB4SC4L.mjs.map} +0 -0
  432. /package/out/__chunks__/{chunk-ASRYY6T3.mjs.map → chunk-IYAIXP65.mjs.map} +0 -0
  433. /package/out/__chunks__/{chunk-BNWGWGXY.mjs.map → chunk-JF4GVWO4.mjs.map} +0 -0
  434. /package/out/__chunks__/{chunk-TAQN5HUK.mjs.map → chunk-JGFDKHG2.mjs.map} +0 -0
  435. /package/out/__chunks__/{chunk-LYTZPES3.mjs.map → chunk-KGASLT4P.mjs.map} +0 -0
  436. /package/out/__chunks__/{chunk-SHDTJ5GB.mjs.map → chunk-KWJVDPCC.mjs.map} +0 -0
  437. /package/out/__chunks__/{chunk-RA4VU3NM.mjs.map → chunk-L4762ZRT.mjs.map} +0 -0
  438. /package/out/__chunks__/{chunk-HCDOXUDA.mjs.map → chunk-LDETTRYB.mjs.map} +0 -0
  439. /package/out/__chunks__/{chunk-QWIXKUDO.mjs.map → chunk-LEBVS2YF.mjs.map} +0 -0
  440. /package/out/__chunks__/{chunk-3YK6SW7E.mjs.map → chunk-LIFPBQTL.mjs.map} +0 -0
  441. /package/out/__chunks__/{chunk-62PJZCUP.mjs.map → chunk-LJ5JGAYL.mjs.map} +0 -0
  442. /package/out/__chunks__/{chunk-LKXBH3I3.mjs.map → chunk-LYXQ3FWU.mjs.map} +0 -0
  443. /package/out/__chunks__/{chunk-SNBLSIKQ.mjs.map → chunk-NJMYFDLA.mjs.map} +0 -0
  444. /package/out/__chunks__/{chunk-5OQ6KHGF.mjs.map → chunk-NQQQKXT2.mjs.map} +0 -0
  445. /package/out/__chunks__/{chunk-AAMNTAXA.mjs.map → chunk-OB6ULJEV.mjs.map} +0 -0
  446. /package/out/__chunks__/{chunk-ZMEIT65B.mjs.map → chunk-OD4ANAAQ.mjs.map} +0 -0
  447. /package/out/__chunks__/{chunk-5AR7YU5K.mjs.map → chunk-PJDJEPY2.mjs.map} +0 -0
  448. /package/out/__chunks__/{chunk-PCY7ULK2.mjs.map → chunk-PXMPUIUL.mjs.map} +0 -0
  449. /package/out/__chunks__/{chunk-AV6BSOLO.mjs.map → chunk-Q56GIIOP.mjs.map} +0 -0
  450. /package/out/__chunks__/{chunk-HTVULYKB.mjs.map → chunk-Q6NDAYER.mjs.map} +0 -0
  451. /package/out/__chunks__/{chunk-XZVYUFVM.mjs.map → chunk-QPXVUJSC.mjs.map} +0 -0
  452. /package/out/__chunks__/{chunk-IAK3KHJ7.mjs.map → chunk-QVLQCJFN.mjs.map} +0 -0
  453. /package/out/__chunks__/{chunk-3ZHPM667.mjs.map → chunk-RIH7QM6W.mjs.map} +0 -0
  454. /package/out/__chunks__/{chunk-DKE2ONRB.mjs.map → chunk-RJSL5ONQ.mjs.map} +0 -0
  455. /package/out/__chunks__/{chunk-ZHGCNNB5.mjs.map → chunk-RM4VHHXR.mjs.map} +0 -0
  456. /package/out/__chunks__/{chunk-XW2GCCBZ.mjs.map → chunk-RRKNYQ6D.mjs.map} +0 -0
  457. /package/out/__chunks__/{chunk-DICSPHT2.mjs.map → chunk-RUG7JMMB.mjs.map} +0 -0
  458. /package/out/__chunks__/{chunk-3BXYTP4Q.mjs.map → chunk-S4LN2NQH.mjs.map} +0 -0
  459. /package/out/__chunks__/{chunk-BMXLSDJM.mjs.map → chunk-SBZ2AN3R.mjs.map} +0 -0
  460. /package/out/__chunks__/{chunk-Y53MWKLT.mjs.map → chunk-SHFT3OJY.mjs.map} +0 -0
  461. /package/out/__chunks__/{chunk-2ZNQYHNX.mjs.map → chunk-T3VFM2QO.mjs.map} +0 -0
  462. /package/out/__chunks__/{chunk-C37IYZAK.mjs.map → chunk-TXQO3M7J.mjs.map} +0 -0
  463. /package/out/__chunks__/{chunk-NKJ7OVPV.mjs.map → chunk-U5IR3XBA.mjs.map} +0 -0
  464. /package/out/__chunks__/{chunk-WMY46KJS.mjs.map → chunk-UZUI4AP5.mjs.map} +0 -0
  465. /package/out/__chunks__/{chunk-YLN3OBBP.mjs.map → chunk-VYWLQ5T7.mjs.map} +0 -0
  466. /package/out/__chunks__/{chunk-AFEGGHNM.mjs.map → chunk-XBVPYKPZ.mjs.map} +0 -0
  467. /package/out/__chunks__/{chunk-7B2IRMVK.mjs.map → chunk-XDH23MRS.mjs.map} +0 -0
  468. /package/out/__chunks__/{chunk-HN244QVP.mjs.map → chunk-XSJE7M77.mjs.map} +0 -0
  469. /package/out/__chunks__/{chunk-2I7FJNXZ.mjs.map → chunk-Y5Y2WOCZ.mjs.map} +0 -0
  470. /package/out/__chunks__/{chunk-YV2TRFYW.mjs.map → chunk-YILGIHY5.mjs.map} +0 -0
  471. /package/out/{utils/createUIElement.mjs.map → managers/LogoutManager/LogoutManager.mjs.map} +0 -0
  472. /package/out/react/transactions/{useGetFailedTransactionsSessions copy.d.ts → useGetFailedTransactionsSessions.d.ts} +0 -0
@@ -1,2 +0,0 @@
1
- import{a as U}from"./chunk-4RJ23OT7.mjs";import{a as v}from"./chunk-X4ZYTNNA.mjs";import{a as D,b as R,g as F}from"./chunk-CAA4VJRH.mjs";import{a as z}from"./chunk-LKXBH3I3.mjs";import{b as f}from"./chunk-FIXSEPFX.mjs";import{a as _}from"./chunk-7B2IRMVK.mjs";import{a as j}from"./chunk-4ODPAHHA.mjs";import{a as $}from"./chunk-Z5CDCI3Y.mjs";import{a as G}from"./chunk-YZE4ECSF.mjs";import{a as u}from"./chunk-XXKSDA5P.mjs";import{a as L}from"./chunk-YK4XGF57.mjs";import{a as V}from"./chunk-535PAVZN.mjs";import{a as T}from"./chunk-3BXYTP4Q.mjs";import{a as l,f as O}from"./chunk-FS2F24A7.mjs";import{a as M}from"./chunk-ORHJGVU5.mjs";import{b as W}from"./chunk-AHHTRI3Y.mjs";import{a as h}from"./chunk-HORSXVIV.mjs";import{a as g}from"./chunk-6FXEHNGW.mjs";import{a as K}from"./chunk-NJN53MJV.mjs";import{a as b}from"./chunk-YSCND2MX.mjs";import{b as k,s as m,u as N}from"./chunk-JOB7ALAF.mjs";import{b as I}from"./chunk-IEJTMYFW.mjs";import{b as C,c as P,f as S}from"./chunk-R53MCZI6.mjs";import{b as B}from"./chunk-3LBQYLDY.mjs";import{a as E}from"./chunk-OJV6XRG5.mjs";async function w({address:t,provider:o,apiAddress:r}){let e=await g({address:t,baseURL:r});if(!e)throw new Error("Account not found");W({address:t,providerType:o.getType()});let n={...e,username:h(e.username),nonce:T(e)};l(n),await f(t),v(),e.shard!=null&&await U({shard:Number(e.shard),apiAddress:r})}async function ot(t){let{network:{apiAddress:o}}=u();await t.login();let r=await t.getAddress();if(!r)throw new Error("Address not found");return await w({address:r,provider:t,apiAddress:o}),{address:r}}async function rt({provider:t,nativeAuthConfig:o,token:r}){let{network:{apiAddress:e}}=u(),n=M(o),s=r;s||(s=await n.initialize({noCache:!0}));let{address:i,signature:c,...a}=await t.login({token:s});if(!i)return console.warn("Login cancelled."),null;if(!c)return console.error("Failed to sign login token"),null;let d=n.getToken({address:i,token:s,signature:c});k({loginToken:s,signature:c,nativeAuthToken:d});let p=await _({loginToken:s,extraInfoData:{multisig:a?.multisig,impersonate:a?.impersonate},address:i});return await w({address:p,provider:t,apiAddress:e}),{address:p,signature:c}}async function H(t,o){let r=I(N());if(r)return await rt({provider:t,nativeAuthConfig:r,token:o?.token});let{address:e}=await ot(t);return await f(e),v(),{address:e}}var y={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${R}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${D}-${Date.now()}`}},et={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},nt=t=>{for(let[o,r]of Object.entries(et))if(t.includes(o))return r;return"Error when signing"};function A(t,o="error"){let r=t?.message,e=nt(r),s=e!=="Error when signing"?"warning":o,i=Object.keys(y).includes(s)?y[s]:y.error,{toastId:c,iconClassName:a,title:d}=i;return q({toastId:c,duration:1e4,icon:"times",iconClassName:a,message:e,title:d}),e}async function J({provider:t,transactions:o,options:r={}}){await Q();let{isGuarded:e,activeGuardianAddress:n,nonce:s}=V(),i=t.getType()===E.ledger,c=j({latestNonce:s,transactions:o}),a=n&&e&&!r.skipGuardian?c?.map(p=>(p.version=C.withTxOptions().valueOf(),p.options=S.withOptions({guarded:!0,...i?{hashSign:!0}:{}}).valueOf(),p.guardian=P.newFromBech32(n),p)):c,d=await t.signTransactions(a)??[];return O(s+d.length),d}var x=class{constructor(o){this.provider=o}init(){return this.provider.init()}async login(o){return await H(this.provider,o)}isInitialized(){return this.provider.isInitialized()}async logout(o={shouldBroadcastLogoutAcrossTabs:!0,hasConsentPopup:!1}){return await z({provider:this.provider,options:o})}setShouldShowConsentPopup(o){this.provider.setShouldShowConsentPopup?.(o)}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(o,r){try{return await J({provider:this.provider,transactions:o,options:r})}catch(e){let n=A(e);throw new Error(n)}}async signMessage(o,r){try{return await G({provider:this.provider,message:o,options:r})}catch(e){let n=A(e,"warning");throw new Error(n)}}async verifyMessage(o){return await $(o)}cancelLogin(){this.provider.cancelLogin?.()}};var X=null;function go(t){X=t}function Y(){return X||new x(B)}var st=async()=>{try{let t=L(),{network:o}=u();try{let r=await g({address:t,baseURL:o.apiAddress});if(r!=null){let e={...r,username:h(r.username),nonce:T(r)};return l(e),e}}catch(r){console.error("Failed getting account ",r)}}catch(t){console.error("Failed getting address ",t)}return null};async function Q(){let t=Y();if(t==null)throw"Provider not initialized";try{if(!t.init)throw"Current provider does not have init() function";return await t.init()?st():void 0}catch(o){console.error("Failed initializing provider ",o)}}var Z={},tt={},it=(t,o)=>{m().setState(({toasts:r})=>{let e=r.customToasts.length>0?Math.max(...r.customToasts.map(a=>parseInt(a.toastId.split("-").pop()??"0"))):0,n=o??`custom-toast-${e+1}`,s=r.customToasts.findIndex(a=>a.toastId===n),i={...t,toastId:n};if(s!==-1){r.customToasts[s]=i;return}r.customToasts.push({...i,toastId:n})},!1,"addCustomToast")},zo=t=>{m().setState(({toasts:o})=>{o.customToasts=o.customToasts.filter(r=>r.toastId!==t)},!1,"removeCustomToast")},Go=()=>{m().setState(({toasts:t})=>{t.customToasts=[]},!1,"removeAllCustomToasts")},$o=()=>{m().setState(({toasts:t})=>{t.transactionToasts=[]})},Vo=({toastId:t,totalDuration:o})=>{m().setState(({toasts:r})=>{let e=r.transactionToasts.length>0?Math.max(...r.transactionToasts.map(s=>parseInt(s.toastId.split("-").pop()??"0"))):0,n=t||`transaction-toast-${e+1}`;r.transactionToasts.push({startTime:b(),endTime:K(o),toastId:n})},!1,"addTransactionToast")},jo=t=>{m().setState(({toasts:o})=>{o.transactionToasts=o.transactionToasts.filter(r=>r.toastId!==t)},!1,"removeTransactionToast"),delete tt[t],delete Z[t]},q=t=>{let{toasts:o}=m().getState(),r=o.customToasts.length>0?Math.max(...o.customToasts.map(n=>parseInt(n.toastId.split("-").pop()??"0"))):0,e=t.toastId||`custom-toast-${r+1}`;return t.onClose&&(tt[e]=t.onClose),t.instantiateToastElement?(Z[e]=t.instantiateToastElement,m().setState(({toasts:n})=>{let s=n.customToasts.findIndex(a=>a.toastId===e),i={...t,instantiateToastElement:null,toastId:e};s!==-1?n.customToasts[s]=i:n.customToasts.push(i)},!1,"createCustomToast"),e):(it(t,e),e)};export{Z as a,tt as b,it as c,zo as d,Go as e,$o as f,Vo as g,jo as h,q as i,w as j,H as k,A as l,J as m,x as n,go as o,Y as p,Q as q};
2
- //# sourceMappingURL=chunk-ZZDN5HHJ.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/providers/DappProvider/helpers/login/helpers/accountLogin.ts", "../../src/providers/DappProvider/helpers/login/login.ts", "../../src/providers/DappProvider/helpers/signErrors/handleSignError.ts", "../../src/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.ts", "../../src/providers/DappProvider/DappProvider.ts", "../../src/providers/helpers/accountProvider.ts", "../../src/utils/account/refreshAccount.ts", "../../src/store/actions/toasts/toastsActions.ts"],
4
- "sourcesContent": ["import { getLatestNonce } from 'methods/account/getLatestNonce';\nimport { setGasStationMetadata } from 'methods/initApp/gastStationMetadata/setGasStationMetadata';\nimport { registerWebsocketListener } from 'methods/initApp/websocket/registerWebsocket';\nimport { trackTransactions } from 'methods/trackTransactions/trackTransactions';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { loginAction } from 'store/actions';\nimport { setAccount } from 'store/actions/account';\nimport { AccountType } from 'types/account.types';\nimport { fetchAccount } from 'utils/account/fetchAccount';\nimport { trimUsernameDomain } from 'utils/account/trimUsernameDomain';\n\ninterface IAccountLoginProps {\n address: string;\n provider: IProvider;\n apiAddress: string;\n}\n\nexport async function accountLogin({\n address,\n provider,\n apiAddress\n}: IAccountLoginProps) {\n const account = await fetchAccount({\n address,\n baseURL: apiAddress\n });\n\n if (!account) {\n throw new Error('Account not found');\n }\n\n loginAction({\n address,\n providerType: provider.getType()\n });\n\n const newAccount: AccountType = {\n ...account,\n username: trimUsernameDomain(account.username),\n nonce: getLatestNonce(account)\n };\n\n setAccount(newAccount);\n\n await registerWebsocketListener(address);\n trackTransactions();\n\n if (account.shard != null) {\n await setGasStationMetadata({\n shard: Number(account.shard),\n apiAddress\n });\n }\n}\n", "import { registerWebsocketListener } from 'methods/initApp/websocket/registerWebsocket';\nimport { getNetworkConfig } from 'methods/network/getNetworkConfig';\nimport { trackTransactions } from 'methods/trackTransactions/trackTransactions';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { nativeAuth } from 'services/nativeAuth';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { setTokenLogin } from 'store/actions/loginInfo/loginInfoActions';\nimport { nativeAuthConfigSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport { accountLogin } from './helpers/accountLogin';\nimport { extractAddressFromToken } from './helpers/extractAddressFromToken';\n\nasync function loginWithoutNativeToken(provider: IProvider) {\n const {\n network: { apiAddress }\n } = getNetworkConfig();\n\n await provider.login();\n\n const address = await provider.getAddress();\n\n if (!address) {\n throw new Error('Address not found');\n }\n\n await accountLogin({ address, provider, apiAddress });\n\n return {\n address\n };\n}\n\nasync function loginWithNativeToken({\n provider,\n nativeAuthConfig,\n token\n}: {\n provider: IProvider;\n nativeAuthConfig: NativeAuthConfigType;\n token?: string;\n}) {\n const {\n network: { apiAddress }\n } = getNetworkConfig();\n\n const nativeAuthClient = nativeAuth(nativeAuthConfig);\n let loginToken = token;\n\n if (!loginToken) {\n loginToken = await nativeAuthClient.initialize({\n noCache: true\n });\n }\n\n const { address, signature, ...loginResult } = await provider.login({\n token: loginToken\n });\n\n if (!address) {\n console.warn('Login cancelled.');\n return null;\n }\n\n if (!signature) {\n console.error('Failed to sign login token');\n return null;\n }\n\n const nativeAuthToken = nativeAuthClient.getToken({\n address,\n token: loginToken,\n signature\n });\n\n setTokenLogin({\n loginToken,\n signature,\n nativeAuthToken\n });\n\n const extractedAddress = await extractAddressFromToken({\n loginToken,\n extraInfoData: {\n multisig: loginResult?.multisig,\n impersonate: loginResult?.impersonate\n },\n address\n });\n\n await accountLogin({\n address: extractedAddress,\n provider,\n apiAddress\n });\n\n return {\n address: extractedAddress,\n signature\n };\n}\n\nexport async function login(provider: IProvider, options?: { token?: string }) {\n const nativeAuthConfig = nativeAuthConfigSelector(getState());\n\n if (nativeAuthConfig) {\n const data = await loginWithNativeToken({\n provider,\n nativeAuthConfig,\n token: options?.token\n });\n return data;\n }\n\n const { address } = await loginWithoutNativeToken(provider);\n\n await registerWebsocketListener(address);\n trackTransactions();\n\n return { address };\n}\n", "import {\n CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION,\n CANCEL_TRANSACTION_TOAST_ID,\n ERROR_SIGNING_TOAST_ID\n} from 'constants/transactions.constants';\nimport { ToastIconsEnum } from 'managers/internal/ToastManager/helpers/getToastDataStateByStatus';\nimport { createCustomToast } from 'store/actions';\nimport { SigningErrorsEnum, SigningWarningsEnum } from 'types/enums.types';\n\nconst states = {\n error: {\n title: SigningErrorsEnum.errorSigning.toString(),\n iconClassName: 'danger',\n toastId: `${ERROR_SIGNING_TOAST_ID}-${Date.now()}`\n },\n warning: {\n title: SigningWarningsEnum.cancelled.toString(),\n iconClassName: 'warning',\n toastId: `${CANCEL_TRANSACTION_TOAST_ID}-${Date.now()}`\n }\n};\n\nconst errorsMap = {\n extensionResponse: 'Unable to sign transactions', // extension\n 'Transaction canceled': 'Transaction canceled', // web wallet\n 'cancelled by user': 'Transaction signing cancelled by user', // custom\n 'denied by the user': 'Transaction signing denied by the user' // ledger\n};\n\nconst getUserError = (error: string) => {\n for (const [key, value] of Object.entries(errorsMap)) {\n if (error.includes(key)) {\n return value;\n }\n }\n return SigningErrorsEnum.errorSigning;\n};\n\nexport function handleSignError(\n error: unknown,\n type: 'error' | 'warning' = 'error'\n) {\n const originalError = (error as Error)?.message;\n const errorMessage = getUserError(originalError);\n\n const isKnownError = errorMessage !== SigningErrorsEnum.errorSigning;\n\n const errorType = isKnownError ? 'warning' : type;\n\n const state = Object.keys(states).includes(errorType)\n ? states[errorType]\n : states.error;\n\n const { toastId, iconClassName, title } = state;\n\n createCustomToast({\n toastId,\n duration: CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION,\n icon: ToastIconsEnum.times,\n iconClassName,\n message: errorMessage,\n title\n });\n\n return errorMessage;\n}\n", "import {\n Address,\n Transaction,\n TransactionOptions,\n TransactionVersion\n} from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport {\n IProvider,\n ProviderTypeEnum\n} from 'providers/types/providerFactory.types';\nimport { setAccountNonce } from 'store/actions';\nimport { refreshAccount } from 'utils';\nimport { computeNonces } from '../computeNonces/computeNonces';\n\nexport type SignTransactionsOptionsType = {\n skipGuardian?: boolean;\n};\n\ntype SignTransactionsType = {\n provider: IProvider;\n transactions: Transaction[];\n options?: SignTransactionsOptionsType;\n};\n\nexport async function signTransactionsWithProvider({\n provider,\n transactions,\n options = {}\n}: SignTransactionsType): Promise<Transaction[]> {\n await refreshAccount();\n const { isGuarded, activeGuardianAddress, nonce } = getAccount();\n const isLedger = provider.getType() === ProviderTypeEnum.ledger;\n\n const transactionsWithComputedNonce = computeNonces({\n latestNonce: nonce,\n transactions\n });\n\n const transactionsToSign =\n activeGuardianAddress && isGuarded && !options.skipGuardian\n ? transactionsWithComputedNonce?.map((transaction) => {\n transaction.version = TransactionVersion.withTxOptions().valueOf();\n transaction.options = TransactionOptions.withOptions({\n guarded: true,\n ...(isLedger ? { hashSign: true } : {})\n }).valueOf();\n\n transaction.guardian = Address.newFromBech32(activeGuardianAddress);\n\n return transaction;\n })\n : transactionsWithComputedNonce;\n\n const signedTransactions: Transaction[] =\n (await provider.signTransactions(transactionsToSign)) ?? [];\n\n setAccountNonce(nonce + signedTransactions.length);\n\n return signedTransactions;\n}\n", "import { Message, Transaction } from 'lib/sdkCore';\nimport { IProvider } from '../types/providerFactory.types';\nimport { login } from './helpers/login/login';\nimport { logout } from './helpers/logout/logout';\nimport { handleSignError } from './helpers/signErrors/handleSignError';\nimport { signMessageWithProvider } from './helpers/signMessage/signMessageWithProvider';\nimport {\n verifyMessage,\n VerifyMessageReturnType\n} from './helpers/signMessage/verifyMessage';\nimport {\n signTransactionsWithProvider,\n SignTransactionsOptionsType\n} from './helpers/signTransactions/signTransactionsWithProvider';\n\nexport class DappProvider {\n private provider: IProvider;\n\n constructor(provider: IProvider) {\n this.provider = provider;\n }\n\n init(): Promise<boolean> {\n return this.provider.init();\n }\n\n async login(options?: { token?: string }) {\n const data = await login(this.provider, options);\n return data;\n }\n\n isInitialized(): boolean {\n return this.provider.isInitialized();\n }\n\n async logout(\n options = {\n shouldBroadcastLogoutAcrossTabs: true,\n hasConsentPopup: false\n }\n ): Promise<boolean> {\n return await logout({ provider: this.provider, options });\n }\n\n setShouldShowConsentPopup(shouldShow: boolean): void {\n this.provider.setShouldShowConsentPopup?.(shouldShow);\n }\n\n getType() {\n return this.provider.getType();\n }\n\n /**\n * @returns The original provider instance.\n */\n getProvider() {\n return this.provider;\n }\n\n async signTransactions(\n transactions: Transaction[],\n options?: SignTransactionsOptionsType\n ): Promise<Transaction[]> {\n try {\n const signedTransactions = await signTransactionsWithProvider({\n provider: this.provider,\n transactions,\n options\n });\n return signedTransactions;\n } catch (error) {\n const errorMessage = handleSignError(error);\n throw new Error(errorMessage);\n }\n }\n\n async signMessage(\n message: Message,\n options?: {\n hasConsentPopup?: boolean;\n }\n ): Promise<Message | null> {\n try {\n const signedMessage = await signMessageWithProvider({\n provider: this.provider,\n message,\n options\n });\n return signedMessage;\n } catch (error) {\n const errorMessage = handleSignError(error, 'warning');\n throw new Error(errorMessage);\n }\n }\n\n /**\n * @param signedMessage - The signed message to verify in form of a JSON string with `address`, `message` and `signature` properties.\n * @returns The verification result with `isVerified`, `message` and `address` properties.\n */\n async verifyMessage(signedMessage: string): Promise<VerifyMessageReturnType> {\n return await verifyMessage(signedMessage);\n }\n\n cancelLogin(): void {\n this.provider.cancelLogin?.();\n }\n}\n", "import { IProvider } from 'providers/types/providerFactory.types';\nimport { DappProvider } from '../DappProvider';\nimport { emptyProvider } from './emptyProvider';\n\nexport type ProvidersType = IProvider;\n\nlet accountProvider: DappProvider | null = null;\n\nexport function setAccountProvider<TProvider extends DappProvider | null>(\n provider: TProvider\n) {\n accountProvider = provider;\n}\n\nexport function getAccountProvider(): DappProvider {\n return accountProvider || new DappProvider(emptyProvider);\n}\n", "import { getAddress } from 'methods/account/getAddress';\nimport { getLatestNonce } from 'methods/account/getLatestNonce';\nimport { getNetworkConfig } from 'methods/network/getNetworkConfig';\nimport { getAccountProvider } from 'providers/helpers/accountProvider';\nimport { setAccount } from 'store/actions';\nimport { fetchAccount } from './fetchAccount';\nimport { trimUsernameDomain } from './trimUsernameDomain';\n\nconst setNewAccount = async () => {\n try {\n const address = getAddress();\n const { network } = getNetworkConfig();\n\n try {\n const account = await fetchAccount({\n address,\n baseURL: network.apiAddress\n });\n\n if (account != null) {\n const accountData = {\n ...account,\n username: trimUsernameDomain(account.username),\n nonce: getLatestNonce(account)\n };\n\n setAccount(accountData);\n\n return accountData;\n }\n } catch (e) {\n console.error('Failed getting account ', e);\n }\n } catch (e) {\n console.error('Failed getting address ', e);\n }\n\n return null;\n};\n\nexport async function refreshAccount() {\n const provider = getAccountProvider();\n\n if (provider == null) {\n throw 'Provider not initialized';\n }\n\n try {\n if (!provider.init) {\n throw 'Current provider does not have init() function';\n }\n\n const initialized = await provider.init();\n\n if (!initialized) {\n return;\n }\n\n return setNewAccount();\n } catch (e) {\n console.error('Failed initializing provider ', e);\n }\n\n return undefined;\n}\n", "import {\n CustomToastType,\n IComponentToast\n} from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport { getUnixTimestamp, getUnixTimestampWithAddedMilliseconds } from 'utils';\n\nexport const customToastComponentDictionary: Record<\n string,\n IComponentToast['instantiateToastElement']\n> = {};\nexport const customToastCloseHandlersDictionary: Record<string, () => void> =\n {};\n\nexport const addCustomToast = (\n customToast: CustomToastType,\n currentToastId?: string\n) => {\n getStore().setState(\n ({ toasts: state }) => {\n const lastToastIndex =\n state.customToasts.length > 0\n ? Math.max(\n ...state.customToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n const toastId = currentToastId ?? `custom-toast-${lastToastIndex + 1}`;\n\n const existingToastIndex = state.customToasts.findIndex(\n (toast) => toast.toastId === toastId\n );\n\n const newToast: CustomToastType = {\n ...customToast,\n toastId\n };\n\n const isToastFound = existingToastIndex !== -1;\n\n if (isToastFound) {\n state.customToasts[existingToastIndex] = newToast;\n return;\n }\n\n state.customToasts.push({\n ...newToast,\n toastId\n });\n },\n false,\n 'addCustomToast'\n );\n};\n\nexport const removeCustomToast = (toastId: string) => {\n getStore().setState(\n ({ toasts: state }) => {\n state.customToasts = state.customToasts.filter(\n (toast) => toast.toastId !== toastId\n );\n },\n false,\n 'removeCustomToast'\n );\n};\n\nexport const removeAllCustomToasts = () => {\n getStore().setState(\n ({ toasts: state }) => {\n state.customToasts = [];\n },\n false,\n 'removeAllCustomToasts'\n );\n};\n\nexport const removeAllTransactionToasts = () => {\n getStore().setState(({ toasts: state }) => {\n state.transactionToasts = [];\n });\n};\n\nexport const addTransactionToast = ({\n toastId,\n totalDuration\n}: {\n toastId: string;\n totalDuration: number;\n}) => {\n getStore().setState(\n ({ toasts: state }) => {\n const lastToastIndex =\n state.transactionToasts.length > 0\n ? Math.max(\n ...state.transactionToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n const newToastId = toastId || `transaction-toast-${lastToastIndex + 1}`;\n\n state.transactionToasts.push({\n startTime: getUnixTimestamp(),\n endTime: getUnixTimestampWithAddedMilliseconds(totalDuration),\n toastId: newToastId\n });\n },\n false,\n 'addTransactionToast'\n );\n};\n\nexport const removeTransactionToast = (toastId: string) => {\n getStore().setState(\n ({ toasts: state }) => {\n state.transactionToasts = state.transactionToasts.filter((toast) => {\n return toast.toastId !== toastId;\n });\n },\n false,\n 'removeTransactionToast'\n );\n\n delete customToastCloseHandlersDictionary[toastId];\n delete customToastComponentDictionary[toastId];\n};\n\nexport const createCustomToast = (props: CustomToastType) => {\n const { toasts } = getStore().getState();\n\n const lastToastIndex =\n toasts.customToasts.length > 0\n ? Math.max(\n ...toasts.customToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n\n const toastId = props.toastId || `custom-toast-${lastToastIndex + 1}`;\n\n if (props.onClose) {\n customToastCloseHandlersDictionary[toastId] = props.onClose;\n }\n\n if (props.instantiateToastElement) {\n customToastComponentDictionary[toastId] = props.instantiateToastElement;\n\n getStore().setState(\n ({ toasts: state }) => {\n const existingToastIndex = state.customToasts.findIndex(\n (toast) => toast.toastId === toastId\n );\n\n const toast: CustomToastType = {\n ...props,\n instantiateToastElement: null,\n toastId\n };\n\n const isToastFound = existingToastIndex !== -1;\n\n if (isToastFound) {\n state.customToasts[existingToastIndex] = toast;\n } else {\n state.customToasts.push(toast);\n }\n },\n false,\n 'createCustomToast'\n );\n\n return toastId;\n }\n\n addCustomToast(props, toastId);\n return toastId;\n};\n"],
5
- "mappings": "kjCAiBA,eAAsBA,EAAa,CACjC,QAAAC,EACA,SAAAC,EACA,WAAAC,CACF,EAAuB,CACrB,IAAMC,EAAU,MAAMC,EAAa,CACjC,QAAAJ,EACA,QAASE,CACX,CAAC,EAED,GAAI,CAACC,EACH,MAAM,IAAI,MAAM,mBAAmB,EAGrCE,EAAY,CACV,QAAAL,EACA,aAAcC,EAAS,QAAQ,CACjC,CAAC,EAED,IAAMK,EAA0B,CAC9B,GAAGH,EACH,SAAUI,EAAmBJ,EAAQ,QAAQ,EAC7C,MAAOK,EAAeL,CAAO,CAC/B,EAEAM,EAAWH,CAAU,EAErB,MAAMI,EAA0BV,CAAO,EACvCW,EAAkB,EAEdR,EAAQ,OAAS,MACnB,MAAMS,EAAsB,CAC1B,MAAO,OAAOT,EAAQ,KAAK,EAC3B,WAAAD,CACF,CAAC,CAEL,CCzCA,eAAeW,GAAwBC,EAAqB,CAC1D,GAAM,CACJ,QAAS,CAAE,WAAAC,CAAW,CACxB,EAAIC,EAAiB,EAErB,MAAMF,EAAS,MAAM,EAErB,IAAMG,EAAU,MAAMH,EAAS,WAAW,EAE1C,GAAI,CAACG,EACH,MAAM,IAAI,MAAM,mBAAmB,EAGrC,aAAMC,EAAa,CAAE,QAAAD,EAAS,SAAAH,EAAU,WAAAC,CAAW,CAAC,EAE7C,CACL,QAAAE,CACF,CACF,CAEA,eAAeE,GAAqB,CAClC,SAAAL,EACA,iBAAAM,EACA,MAAAC,CACF,EAIG,CACD,GAAM,CACJ,QAAS,CAAE,WAAAN,CAAW,CACxB,EAAIC,EAAiB,EAEfM,EAAmBC,EAAWH,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+BS,CAAO,CAC/C,EAEaY,EAAqBC,GAA2B,CAC3D,GAAM,CAAE,OAAAC,CAAO,EAAIlB,EAAS,EAAE,SAAS,EAEjCE,EACJgB,EAAO,aAAa,OAAS,EACzB,KAAK,IACH,GAAGA,EAAO,aAAa,IAAKf,GAC1B,SAASA,EAAM,QAAQ,MAAM,GAAG,EAAE,IAAI,GAAK,GAAG,CAChD,CACF,EACA,EAEAC,EAAUa,EAAM,SAAW,gBAAgBf,EAAiB,CAAC,GAMnE,OAJIe,EAAM,UACRrB,GAAmCQ,CAAO,EAAIa,EAAM,SAGlDA,EAAM,yBACRtB,EAA+BS,CAAO,EAAIa,EAAM,wBAEhDjB,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrB,IAAMI,EAAqBJ,EAAM,aAAa,UAC3CE,GAAUA,EAAM,UAAYC,CAC/B,EAEMD,EAAyB,CAC7B,GAAGc,EACH,wBAAyB,KACzB,QAAAb,CACF,EAEqBC,IAAuB,GAG1CJ,EAAM,aAAaI,CAAkB,EAAIF,EAEzCF,EAAM,aAAa,KAAKE,CAAK,CAEjC,EACA,GACA,mBACF,EAEOC,IAGTP,GAAeoB,EAAOb,CAAO,EACtBA,EACT",
6
- "names": ["accountLogin", "address", "provider", "apiAddress", "account", "fetchAccount", "loginAction", "newAccount", "trimUsernameDomain", "getLatestNonce", "setAccount", "registerWebsocketListener", "trackTransactions", "setGasStationMetadata", "loginWithoutNativeToken", "provider", "apiAddress", "getNetworkConfig", "address", "accountLogin", "loginWithNativeToken", "nativeAuthConfig", "token", "nativeAuthClient", "nativeAuth", "loginToken", "signature", "loginResult", "nativeAuthToken", "setTokenLogin", "extractedAddress", "extractAddressFromToken", "login", "options", "nativeAuthConfigSelector", "getState", "registerWebsocketListener", "trackTransactions", "states", "ERROR_SIGNING_TOAST_ID", "CANCEL_TRANSACTION_TOAST_ID", "errorsMap", "getUserError", "error", "key", "value", "handleSignError", "type", "originalError", "errorMessage", "errorType", "state", "toastId", "iconClassName", "title", "createCustomToast", "signTransactionsWithProvider", "provider", "transactions", "options", "refreshAccount", "isGuarded", "activeGuardianAddress", "nonce", "getAccount", "isLedger", "ProviderTypeEnum", "transactionsWithComputedNonce", "computeNonces", "transactionsToSign", "transaction", "TransactionVersion", "TransactionOptions", "Address", "signedTransactions", "setAccountNonce", "DappProvider", "provider", "options", "login", "logout", "shouldShow", "transactions", "signTransactionsWithProvider", "error", "errorMessage", "handleSignError", "message", "signMessageWithProvider", "signedMessage", "verifyMessage", "accountProvider", "setAccountProvider", "provider", "getAccountProvider", "DappProvider", "emptyProvider", "setNewAccount", "address", "getAddress", "network", "getNetworkConfig", "account", "fetchAccount", "accountData", "trimUsernameDomain", "getLatestNonce", "setAccount", "e", "refreshAccount", "provider", "getAccountProvider", "customToastComponentDictionary", "customToastCloseHandlersDictionary", "addCustomToast", "customToast", "currentToastId", "getStore", "state", "lastToastIndex", "toast", "toastId", "existingToastIndex", "newToast", "removeCustomToast", "removeAllCustomToasts", "removeAllTransactionToasts", "addTransactionToast", "totalDuration", "newToastId", "getUnixTimestamp", "getUnixTimestampWithAddedMilliseconds", "removeTransactionToast", "createCustomToast", "props", "toasts"]
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"useGetFailedTransactionsSessions copy.js","sourceRoot":"","sources":["../../../src/react/transactions/useGetFailedTransactionsSessions copy.ts"],"names":[],"mappings":";;;AAAA,qFAAgG;AAChG,sDAAmD;AAEnD,SAAgB,gCAAgC;IAC9C,MAAM,cAAc,GAAG,IAAA,yBAAW,EAAC,yDAAkC,CAAC,CAAC;IACvE,OAAO,cAAc,CAAC;AACxB,CAAC;AAHD,4EAGC"}
@@ -1,9 +0,0 @@
1
- import { IEventBus } from '@multiversx/sdk-dapp-ui/dist/loader';
2
- import { UITagsEnum } from '../constants/UITags.enum';
3
- export interface CreateEventBusUIElementType extends HTMLElement {
4
- getEventBus: () => Promise<IEventBus | null>;
5
- }
6
- export declare const createUIElement: <T = CreateEventBusUIElementType>({ name, anchor }: {
7
- name: UITagsEnum;
8
- anchor?: HTMLElement;
9
- }) => Promise<T>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"createUIElement.js","sourceRoot":"","sources":["../../src/utils/createUIElement.ts"],"names":[],"mappings":";;;AACA,2CAA6C;AAE7C,6CAAqD;AAM9C,MAAM,eAAe,GAAG,KAAK,EAAmC,EACrE,IAAI,EACJ,MAAM,EAIP,EAAE,EAAE;IACH,MAAM,IAAA,gCAAoB,EAAC,kBAAU,CAAC,CAAC;IAEvC,IAAI,CAAC,kBAAU,CAAC,QAAQ,EAAE,CAAC;QACzB,OAAO,EAAO,CAAC;IACjB,CAAC;IAED,MAAM,OAAO,GAAG,kBAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACxD,MAAM,WAAW,GAAG,MAAM,IAAI,kBAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;IACvD,WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAEvC,OAAO,OAAY,CAAC;AACtB,CAAC,CAAC;AAnBW,QAAA,eAAe,mBAmB1B"}
@@ -1,2 +0,0 @@
1
- import{a}from"../__chunks__/chunk-4RGFBPII.mjs";import"../__chunks__/chunk-VMFJUT3G.mjs";import"../__chunks__/chunk-5Y2ZDPP6.mjs";import"../__chunks__/chunk-LHEH7L4L.mjs";import"../__chunks__/chunk-NKJ7OVPV.mjs";import"../__chunks__/chunk-EJV4VNJG.mjs";import"../__chunks__/chunk-REI3WYXH.mjs";import"../__chunks__/chunk-FI444OX3.mjs";import"../__chunks__/chunk-HTVULYKB.mjs";import"../__chunks__/chunk-ULUZWP2P.mjs";import"../__chunks__/chunk-MGFIOCA4.mjs";import"../__chunks__/chunk-GGBMHKR4.mjs";import"../__chunks__/chunk-GLXG5BES.mjs";import"../__chunks__/chunk-OJV6XRG5.mjs";import"../__chunks__/chunk-U6KSTPE7.mjs";export{a as createUIElement};
2
- //# sourceMappingURL=createUIElement.mjs.map