@multiversx/sdk-dapp 5.1.0 → 5.1.1

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 (383) hide show
  1. package/out/__chunks__/{chunk-4LYEVUGN.mjs → chunk-2I6OCXYV.mjs} +2 -2
  2. package/out/__chunks__/{chunk-EV4KV3JC.mjs → chunk-2PIXZRYX.mjs} +2 -2
  3. package/out/__chunks__/{chunk-TSWPPFHW.mjs → chunk-2RPI76E6.mjs} +2 -2
  4. package/out/__chunks__/{chunk-R43WJEH6.mjs → chunk-2WCQ6D7V.mjs} +2 -2
  5. package/out/__chunks__/{chunk-BP7QTGW5.mjs → chunk-2YLCUUTO.mjs} +2 -2
  6. package/out/__chunks__/{chunk-SHKZVFEF.mjs → chunk-3A2D2VZV.mjs} +2 -2
  7. package/out/__chunks__/chunk-42TVUSAN.mjs +2 -0
  8. package/out/__chunks__/{chunk-CJLUSPT2.mjs → chunk-4E5NEWOF.mjs} +2 -2
  9. package/out/__chunks__/{chunk-M2DFHKKK.mjs → chunk-4JQSJJXX.mjs} +2 -2
  10. package/out/__chunks__/{chunk-RMARAUR3.mjs → chunk-4YIZJM62.mjs} +2 -2
  11. package/out/__chunks__/chunk-5HL466PN.mjs +2 -0
  12. package/out/__chunks__/{chunk-FIG2TQL2.mjs → chunk-5PIIRXPO.mjs} +2 -2
  13. package/out/__chunks__/{chunk-A4KMW3VA.mjs → chunk-5UCH2LWA.mjs} +2 -2
  14. package/out/__chunks__/chunk-64UQT3VO.mjs +2 -0
  15. package/out/__chunks__/{chunk-MXKLHEGP.mjs → chunk-66TFLRBT.mjs} +2 -2
  16. package/out/__chunks__/{chunk-FLBKETEZ.mjs → chunk-6PTIIE3T.mjs} +2 -2
  17. package/out/__chunks__/{chunk-3HADWDDI.mjs → chunk-73M7E2JA.mjs} +2 -2
  18. package/out/__chunks__/chunk-7CI43HYE.mjs +2 -0
  19. package/out/__chunks__/{chunk-LOCNDNZE.mjs → chunk-7EBKBMO6.mjs} +2 -2
  20. package/out/__chunks__/chunk-7GGUBCN6.mjs +2 -0
  21. package/out/__chunks__/{chunk-MA5C5FRG.mjs → chunk-A4SG3QVX.mjs} +2 -2
  22. package/out/__chunks__/{chunk-PGCTCWAW.mjs → chunk-ADEF5DN6.mjs} +2 -2
  23. package/out/__chunks__/{chunk-CGBCYY3B.mjs → chunk-AINUFDKG.mjs} +2 -2
  24. package/out/__chunks__/{chunk-EQBJVKBR.mjs → chunk-AKBBSACH.mjs} +2 -2
  25. package/out/__chunks__/{chunk-HZMRXLHX.mjs → chunk-ATIGV33Z.mjs} +2 -2
  26. package/out/__chunks__/chunk-BRNDPTZU.mjs +2 -0
  27. package/out/__chunks__/{chunk-AMSHQJ6K.mjs → chunk-C3RIKRCP.mjs} +2 -2
  28. package/out/__chunks__/chunk-CWT6T2KM.mjs +2 -0
  29. package/out/__chunks__/{chunk-BFU632AR.mjs → chunk-D27UDX4G.mjs} +2 -2
  30. package/out/__chunks__/{chunk-6SNUC4WD.mjs → chunk-D36QDUZP.mjs} +2 -2
  31. package/out/__chunks__/{chunk-XGK3JR3Z.mjs → chunk-D4U7WXQ4.mjs} +2 -2
  32. package/out/__chunks__/chunk-DQBVIQDB.mjs +2 -0
  33. package/out/__chunks__/{chunk-CK4X6HSF.mjs → chunk-DTLDBRSP.mjs} +2 -2
  34. package/out/__chunks__/chunk-ECATZEXA.mjs +2 -0
  35. package/out/__chunks__/{chunk-M6WW53TK.mjs → chunk-EN4H5FPE.mjs} +2 -2
  36. package/out/__chunks__/{chunk-L5CHO4VF.mjs → chunk-ES7QODZ2.mjs} +2 -2
  37. package/out/__chunks__/{chunk-77XEEKKC.mjs → chunk-EWAV7PN5.mjs} +2 -2
  38. package/out/__chunks__/{chunk-X5HSYTDN.mjs → chunk-EZ5YDQ4L.mjs} +2 -2
  39. package/out/__chunks__/{chunk-UEFAPILB.mjs → chunk-FRXHFJ6A.mjs} +2 -2
  40. package/out/__chunks__/{chunk-AE72PVLM.mjs → chunk-G4W774S7.mjs} +2 -2
  41. package/out/__chunks__/chunk-GNPRZ5N4.mjs +2 -0
  42. package/out/__chunks__/chunk-GQHKOZGH.mjs +2 -0
  43. package/out/__chunks__/{chunk-GTRD4HFY.mjs.map → chunk-GQHKOZGH.mjs.map} +1 -1
  44. package/out/__chunks__/chunk-HE54VZUO.mjs +2 -0
  45. package/out/__chunks__/{chunk-AKS4K5LK.mjs → chunk-HKB3MKDV.mjs} +2 -2
  46. package/out/__chunks__/{chunk-COTPJZL3.mjs → chunk-HTQSNRL7.mjs} +2 -2
  47. package/out/__chunks__/{chunk-WDMNEF3T.mjs → chunk-IQZ3MMQY.mjs} +2 -2
  48. package/out/__chunks__/{chunk-ZZZCOFQ7.mjs → chunk-IXRNLWRN.mjs} +2 -2
  49. package/out/__chunks__/{chunk-MS44NLMW.mjs → chunk-J27BEIYP.mjs} +2 -2
  50. package/out/__chunks__/{chunk-BWYXCYFI.mjs → chunk-JO3OWUME.mjs} +2 -2
  51. package/out/__chunks__/{chunk-HZKGE7EY.mjs → chunk-JRN5FK3J.mjs} +2 -2
  52. package/out/__chunks__/{chunk-PIS56ZD4.mjs → chunk-KTYNHCBL.mjs} +2 -2
  53. package/out/__chunks__/{chunk-MUIRAORV.mjs → chunk-L2FIQYTN.mjs} +2 -2
  54. package/out/__chunks__/{chunk-KTJGX4HU.mjs → chunk-LFJ2VG5R.mjs} +2 -2
  55. package/out/__chunks__/chunk-LG2VOB5P.mjs +2 -0
  56. package/out/__chunks__/chunk-M4XMIEC5.mjs +2 -0
  57. package/out/__chunks__/chunk-MQPH5NUA.mjs +2 -0
  58. package/out/__chunks__/{chunk-ZI7JADBP.mjs → chunk-NKJSP5LJ.mjs} +2 -2
  59. package/out/__chunks__/{chunk-6JRZP7XR.mjs → chunk-NKTTGPAQ.mjs} +2 -2
  60. package/out/__chunks__/{chunk-IXDSHQ6O.mjs → chunk-PMGRFJIN.mjs} +2 -2
  61. package/out/__chunks__/{chunk-Q3C46OSS.mjs → chunk-POIB3KTZ.mjs} +2 -2
  62. package/out/__chunks__/{chunk-XSS5NOQJ.mjs → chunk-PWN5WOKL.mjs} +2 -2
  63. package/out/__chunks__/{chunk-HVS56RA5.mjs → chunk-QBR3JE65.mjs} +2 -2
  64. package/out/__chunks__/{chunk-RGFZEURF.mjs → chunk-QIDUYTJS.mjs} +2 -2
  65. package/out/__chunks__/{chunk-LZLJ6HJT.mjs → chunk-R4SJXDPQ.mjs} +2 -2
  66. package/out/__chunks__/{chunk-EB37CLFR.mjs → chunk-R7E6GXZY.mjs} +2 -2
  67. package/out/__chunks__/{chunk-LMJDCKJN.mjs → chunk-RD733HH3.mjs} +2 -2
  68. package/out/__chunks__/{chunk-HXTDJ2E6.mjs → chunk-REU3WURE.mjs} +2 -2
  69. package/out/__chunks__/chunk-RHSQVMHN.mjs +2 -0
  70. package/out/__chunks__/chunk-RHSQVMHN.mjs.map +7 -0
  71. package/out/__chunks__/{chunk-ARPLTX4I.mjs → chunk-SD6J2TKH.mjs} +2 -2
  72. package/out/__chunks__/{chunk-D54LWE3V.mjs → chunk-SJI2GC55.mjs} +2 -2
  73. package/out/__chunks__/chunk-TAYRYPXX.mjs +2 -0
  74. package/out/__chunks__/{chunk-FODKR5LN.mjs → chunk-TPR6KJEP.mjs} +2 -2
  75. package/out/__chunks__/{chunk-7ZGMZIYA.mjs → chunk-UBIKPYZM.mjs} +2 -2
  76. package/out/__chunks__/{chunk-R32N5WCS.mjs → chunk-UE5UJ5OA.mjs} +2 -2
  77. package/out/__chunks__/chunk-UWVT2IIU.mjs +2 -0
  78. package/out/__chunks__/{chunk-TA6TNNXH.mjs → chunk-VBRORYV3.mjs} +2 -2
  79. package/out/__chunks__/{chunk-66FC7DN2.mjs → chunk-VJWOCVLK.mjs} +2 -2
  80. package/out/__chunks__/{chunk-LYZ5P6TZ.mjs → chunk-WALLLXSK.mjs} +2 -2
  81. package/out/__chunks__/{chunk-CDIHVT44.mjs → chunk-WJICRRXY.mjs} +2 -2
  82. package/out/__chunks__/{chunk-R2EQDN33.mjs → chunk-WWCYLG3X.mjs} +2 -2
  83. package/out/__chunks__/{chunk-U2Z42SAP.mjs → chunk-YHRH5ZWE.mjs} +2 -2
  84. package/out/__chunks__/{chunk-VLYPDZLN.mjs → chunk-ZFDYJQRD.mjs} +2 -2
  85. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  86. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  87. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  88. package/out/apiCalls/index.mjs +1 -1
  89. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  90. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  91. package/out/apiCalls/tokens/index.mjs +1 -1
  92. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  93. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  94. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  95. package/out/constants/browser.constants.mjs +1 -1
  96. package/out/constants/index.mjs +1 -1
  97. package/out/constants/storage.constants.mjs +1 -1
  98. package/out/constants/window.constants.cjs +1 -1
  99. package/out/constants/window.constants.cjs.map +1 -1
  100. package/out/constants/window.constants.mjs +1 -1
  101. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  102. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  103. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  104. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  105. package/out/index.mjs +1 -1
  106. package/out/lib/sdkDappUi.mjs +1 -1
  107. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  108. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs +1 -12
  109. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs.map +2 -2
  110. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.d.ts +0 -1
  111. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  112. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  113. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  114. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  115. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  116. package/out/managers/TransactionManager/index.mjs +1 -1
  117. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  118. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  119. package/out/managers/index.mjs +1 -1
  120. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  121. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  122. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  123. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  124. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  125. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  126. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  127. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  128. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  129. package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
  130. package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
  131. package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  132. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  133. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  134. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  135. package/out/managers/internal/index.mjs +1 -1
  136. package/out/methods/account/getAccount.mjs +1 -1
  137. package/out/methods/account/getAccountInfo.mjs +1 -1
  138. package/out/methods/account/getAddress.mjs +1 -1
  139. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  140. package/out/methods/account/getLatestNonce.mjs +1 -1
  141. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
  142. package/out/methods/initApp/initApp.mjs +1 -1
  143. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  144. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  145. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  146. package/out/methods/network/getEgldLabel.mjs +1 -1
  147. package/out/methods/network/getExplorerAddress.mjs +1 -1
  148. package/out/methods/network/getNetworkConfig.mjs +1 -1
  149. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
  150. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  151. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  152. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
  153. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  154. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  155. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  156. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  157. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  158. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  159. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  160. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  161. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  162. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  163. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  164. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  165. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  166. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  167. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  168. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  169. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  170. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  171. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  172. package/out/providers/DappProvider/index.mjs +1 -1
  173. package/out/providers/ProviderFactory.mjs +1 -1
  174. package/out/providers/helpers/accountProvider.mjs +1 -1
  175. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  176. package/out/providers/helpers/restoreProvider.mjs +1 -1
  177. package/out/providers/index.mjs +1 -1
  178. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  179. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  180. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  181. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  182. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  183. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  184. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  185. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  186. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
  187. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
  188. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
  189. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
  190. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
  191. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
  192. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  193. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  194. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
  195. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  196. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  197. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  198. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  199. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  200. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  201. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  202. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  203. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  204. package/out/providers/strategies/helpers/index.mjs +1 -1
  205. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  206. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
  207. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  208. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  209. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
  210. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  211. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  212. package/out/providers/strategies/index.mjs +1 -1
  213. package/out/react/account/useGetAccount.mjs +1 -1
  214. package/out/react/account/useGetAccountInfo.mjs +1 -1
  215. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  216. package/out/react/account/useGetLatestNonce.mjs +1 -1
  217. package/out/react/index.mjs +1 -1
  218. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  219. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  220. package/out/react/store/getReactStore.mjs +1 -1
  221. package/out/react/store/useSelector.mjs +1 -1
  222. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  223. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  224. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  225. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  226. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  227. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  228. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  229. package/out/services/index.mjs +1 -1
  230. package/out/services/nativeAuth/index.mjs +1 -1
  231. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  232. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  233. package/out/services/nativeAuth/methods/index.mjs +1 -1
  234. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  235. package/out/store/actions/account/accountActions.mjs +1 -1
  236. package/out/store/actions/account/index.mjs +1 -1
  237. package/out/store/actions/cache/cacheActions.mjs +1 -1
  238. package/out/store/actions/cache/index.mjs +1 -1
  239. package/out/store/actions/config/configActions.mjs +1 -1
  240. package/out/store/actions/config/index.mjs +1 -1
  241. package/out/store/actions/index.mjs +1 -1
  242. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  243. package/out/store/actions/network/index.mjs +1 -1
  244. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  245. package/out/store/actions/network/networkActions.mjs +1 -1
  246. package/out/store/actions/sharedActions/index.mjs +1 -1
  247. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  248. package/out/store/actions/toasts/index.mjs +1 -1
  249. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  250. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  251. package/out/store/actions/ui/index.mjs +1 -1
  252. package/out/store/actions/ui/uiActions.mjs +1 -1
  253. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  254. package/out/store/middleware/index.mjs +1 -1
  255. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  256. package/out/store/storage/index.mjs +1 -1
  257. package/out/store/storage/storageCallback.mjs +1 -1
  258. package/out/store/store.mjs +1 -1
  259. package/out/utils/ComponentFactory.mjs +1 -1
  260. package/out/utils/account/index.mjs +1 -1
  261. package/out/utils/account/refreshAccount.mjs +1 -1
  262. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  263. package/out/utils/index.mjs +1 -1
  264. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  265. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
  266. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  267. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
  268. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
  269. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
  270. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
  271. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
  272. package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
  273. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  274. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  275. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
  276. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  277. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  278. package/out/utils/transactions/index.mjs +1 -1
  279. package/out/utils/visual/index.mjs +1 -1
  280. package/out/utils/visual/switchTheme.mjs +1 -1
  281. package/out/utils/window/getIsInIframe.mjs +1 -1
  282. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  283. package/out/utils/window/index.mjs +1 -1
  284. package/package.json +3 -3
  285. package/out/__chunks__/chunk-2STEP3VA.mjs +0 -2
  286. package/out/__chunks__/chunk-6A7TDVVR.mjs +0 -2
  287. package/out/__chunks__/chunk-CAHVJ3IF.mjs +0 -2
  288. package/out/__chunks__/chunk-GTRD4HFY.mjs +0 -2
  289. package/out/__chunks__/chunk-JRC47VFQ.mjs +0 -2
  290. package/out/__chunks__/chunk-KCUBSEZI.mjs +0 -2
  291. package/out/__chunks__/chunk-KMG6WM6K.mjs +0 -2
  292. package/out/__chunks__/chunk-M7CRSX65.mjs +0 -2
  293. package/out/__chunks__/chunk-MGOTSAGH.mjs +0 -2
  294. package/out/__chunks__/chunk-OIIBPMNU.mjs +0 -2
  295. package/out/__chunks__/chunk-PPMUAFM4.mjs +0 -2
  296. package/out/__chunks__/chunk-QI4FCSOB.mjs +0 -2
  297. package/out/__chunks__/chunk-RW55WHHB.mjs +0 -2
  298. package/out/__chunks__/chunk-SK4EBR2Z.mjs +0 -2
  299. package/out/__chunks__/chunk-XCKTWIKV.mjs +0 -2
  300. package/out/__chunks__/chunk-XCKTWIKV.mjs.map +0 -7
  301. package/out/__chunks__/chunk-XNF5QLFW.mjs +0 -2
  302. package/out/__chunks__/chunk-YZV64TMH.mjs +0 -2
  303. package/out/__chunks__/chunk-ZUJ5KE7O.mjs +0 -2
  304. /package/out/__chunks__/{chunk-4LYEVUGN.mjs.map → chunk-2I6OCXYV.mjs.map} +0 -0
  305. /package/out/__chunks__/{chunk-EV4KV3JC.mjs.map → chunk-2PIXZRYX.mjs.map} +0 -0
  306. /package/out/__chunks__/{chunk-TSWPPFHW.mjs.map → chunk-2RPI76E6.mjs.map} +0 -0
  307. /package/out/__chunks__/{chunk-R43WJEH6.mjs.map → chunk-2WCQ6D7V.mjs.map} +0 -0
  308. /package/out/__chunks__/{chunk-BP7QTGW5.mjs.map → chunk-2YLCUUTO.mjs.map} +0 -0
  309. /package/out/__chunks__/{chunk-SHKZVFEF.mjs.map → chunk-3A2D2VZV.mjs.map} +0 -0
  310. /package/out/__chunks__/{chunk-KMG6WM6K.mjs.map → chunk-42TVUSAN.mjs.map} +0 -0
  311. /package/out/__chunks__/{chunk-CJLUSPT2.mjs.map → chunk-4E5NEWOF.mjs.map} +0 -0
  312. /package/out/__chunks__/{chunk-M2DFHKKK.mjs.map → chunk-4JQSJJXX.mjs.map} +0 -0
  313. /package/out/__chunks__/{chunk-RMARAUR3.mjs.map → chunk-4YIZJM62.mjs.map} +0 -0
  314. /package/out/__chunks__/{chunk-MGOTSAGH.mjs.map → chunk-5HL466PN.mjs.map} +0 -0
  315. /package/out/__chunks__/{chunk-FIG2TQL2.mjs.map → chunk-5PIIRXPO.mjs.map} +0 -0
  316. /package/out/__chunks__/{chunk-A4KMW3VA.mjs.map → chunk-5UCH2LWA.mjs.map} +0 -0
  317. /package/out/__chunks__/{chunk-QI4FCSOB.mjs.map → chunk-64UQT3VO.mjs.map} +0 -0
  318. /package/out/__chunks__/{chunk-MXKLHEGP.mjs.map → chunk-66TFLRBT.mjs.map} +0 -0
  319. /package/out/__chunks__/{chunk-FLBKETEZ.mjs.map → chunk-6PTIIE3T.mjs.map} +0 -0
  320. /package/out/__chunks__/{chunk-3HADWDDI.mjs.map → chunk-73M7E2JA.mjs.map} +0 -0
  321. /package/out/__chunks__/{chunk-YZV64TMH.mjs.map → chunk-7CI43HYE.mjs.map} +0 -0
  322. /package/out/__chunks__/{chunk-LOCNDNZE.mjs.map → chunk-7EBKBMO6.mjs.map} +0 -0
  323. /package/out/__chunks__/{chunk-SK4EBR2Z.mjs.map → chunk-7GGUBCN6.mjs.map} +0 -0
  324. /package/out/__chunks__/{chunk-MA5C5FRG.mjs.map → chunk-A4SG3QVX.mjs.map} +0 -0
  325. /package/out/__chunks__/{chunk-PGCTCWAW.mjs.map → chunk-ADEF5DN6.mjs.map} +0 -0
  326. /package/out/__chunks__/{chunk-CGBCYY3B.mjs.map → chunk-AINUFDKG.mjs.map} +0 -0
  327. /package/out/__chunks__/{chunk-EQBJVKBR.mjs.map → chunk-AKBBSACH.mjs.map} +0 -0
  328. /package/out/__chunks__/{chunk-HZMRXLHX.mjs.map → chunk-ATIGV33Z.mjs.map} +0 -0
  329. /package/out/__chunks__/{chunk-PPMUAFM4.mjs.map → chunk-BRNDPTZU.mjs.map} +0 -0
  330. /package/out/__chunks__/{chunk-AMSHQJ6K.mjs.map → chunk-C3RIKRCP.mjs.map} +0 -0
  331. /package/out/__chunks__/{chunk-2STEP3VA.mjs.map → chunk-CWT6T2KM.mjs.map} +0 -0
  332. /package/out/__chunks__/{chunk-BFU632AR.mjs.map → chunk-D27UDX4G.mjs.map} +0 -0
  333. /package/out/__chunks__/{chunk-6SNUC4WD.mjs.map → chunk-D36QDUZP.mjs.map} +0 -0
  334. /package/out/__chunks__/{chunk-XGK3JR3Z.mjs.map → chunk-D4U7WXQ4.mjs.map} +0 -0
  335. /package/out/__chunks__/{chunk-M7CRSX65.mjs.map → chunk-DQBVIQDB.mjs.map} +0 -0
  336. /package/out/__chunks__/{chunk-CK4X6HSF.mjs.map → chunk-DTLDBRSP.mjs.map} +0 -0
  337. /package/out/__chunks__/{chunk-XNF5QLFW.mjs.map → chunk-ECATZEXA.mjs.map} +0 -0
  338. /package/out/__chunks__/{chunk-M6WW53TK.mjs.map → chunk-EN4H5FPE.mjs.map} +0 -0
  339. /package/out/__chunks__/{chunk-L5CHO4VF.mjs.map → chunk-ES7QODZ2.mjs.map} +0 -0
  340. /package/out/__chunks__/{chunk-77XEEKKC.mjs.map → chunk-EWAV7PN5.mjs.map} +0 -0
  341. /package/out/__chunks__/{chunk-X5HSYTDN.mjs.map → chunk-EZ5YDQ4L.mjs.map} +0 -0
  342. /package/out/__chunks__/{chunk-UEFAPILB.mjs.map → chunk-FRXHFJ6A.mjs.map} +0 -0
  343. /package/out/__chunks__/{chunk-AE72PVLM.mjs.map → chunk-G4W774S7.mjs.map} +0 -0
  344. /package/out/__chunks__/{chunk-JRC47VFQ.mjs.map → chunk-GNPRZ5N4.mjs.map} +0 -0
  345. /package/out/__chunks__/{chunk-OIIBPMNU.mjs.map → chunk-HE54VZUO.mjs.map} +0 -0
  346. /package/out/__chunks__/{chunk-AKS4K5LK.mjs.map → chunk-HKB3MKDV.mjs.map} +0 -0
  347. /package/out/__chunks__/{chunk-COTPJZL3.mjs.map → chunk-HTQSNRL7.mjs.map} +0 -0
  348. /package/out/__chunks__/{chunk-WDMNEF3T.mjs.map → chunk-IQZ3MMQY.mjs.map} +0 -0
  349. /package/out/__chunks__/{chunk-ZZZCOFQ7.mjs.map → chunk-IXRNLWRN.mjs.map} +0 -0
  350. /package/out/__chunks__/{chunk-MS44NLMW.mjs.map → chunk-J27BEIYP.mjs.map} +0 -0
  351. /package/out/__chunks__/{chunk-BWYXCYFI.mjs.map → chunk-JO3OWUME.mjs.map} +0 -0
  352. /package/out/__chunks__/{chunk-HZKGE7EY.mjs.map → chunk-JRN5FK3J.mjs.map} +0 -0
  353. /package/out/__chunks__/{chunk-PIS56ZD4.mjs.map → chunk-KTYNHCBL.mjs.map} +0 -0
  354. /package/out/__chunks__/{chunk-MUIRAORV.mjs.map → chunk-L2FIQYTN.mjs.map} +0 -0
  355. /package/out/__chunks__/{chunk-KTJGX4HU.mjs.map → chunk-LFJ2VG5R.mjs.map} +0 -0
  356. /package/out/__chunks__/{chunk-CAHVJ3IF.mjs.map → chunk-LG2VOB5P.mjs.map} +0 -0
  357. /package/out/__chunks__/{chunk-KCUBSEZI.mjs.map → chunk-M4XMIEC5.mjs.map} +0 -0
  358. /package/out/__chunks__/{chunk-6A7TDVVR.mjs.map → chunk-MQPH5NUA.mjs.map} +0 -0
  359. /package/out/__chunks__/{chunk-ZI7JADBP.mjs.map → chunk-NKJSP5LJ.mjs.map} +0 -0
  360. /package/out/__chunks__/{chunk-6JRZP7XR.mjs.map → chunk-NKTTGPAQ.mjs.map} +0 -0
  361. /package/out/__chunks__/{chunk-IXDSHQ6O.mjs.map → chunk-PMGRFJIN.mjs.map} +0 -0
  362. /package/out/__chunks__/{chunk-Q3C46OSS.mjs.map → chunk-POIB3KTZ.mjs.map} +0 -0
  363. /package/out/__chunks__/{chunk-XSS5NOQJ.mjs.map → chunk-PWN5WOKL.mjs.map} +0 -0
  364. /package/out/__chunks__/{chunk-HVS56RA5.mjs.map → chunk-QBR3JE65.mjs.map} +0 -0
  365. /package/out/__chunks__/{chunk-RGFZEURF.mjs.map → chunk-QIDUYTJS.mjs.map} +0 -0
  366. /package/out/__chunks__/{chunk-LZLJ6HJT.mjs.map → chunk-R4SJXDPQ.mjs.map} +0 -0
  367. /package/out/__chunks__/{chunk-EB37CLFR.mjs.map → chunk-R7E6GXZY.mjs.map} +0 -0
  368. /package/out/__chunks__/{chunk-LMJDCKJN.mjs.map → chunk-RD733HH3.mjs.map} +0 -0
  369. /package/out/__chunks__/{chunk-HXTDJ2E6.mjs.map → chunk-REU3WURE.mjs.map} +0 -0
  370. /package/out/__chunks__/{chunk-ARPLTX4I.mjs.map → chunk-SD6J2TKH.mjs.map} +0 -0
  371. /package/out/__chunks__/{chunk-D54LWE3V.mjs.map → chunk-SJI2GC55.mjs.map} +0 -0
  372. /package/out/__chunks__/{chunk-ZUJ5KE7O.mjs.map → chunk-TAYRYPXX.mjs.map} +0 -0
  373. /package/out/__chunks__/{chunk-FODKR5LN.mjs.map → chunk-TPR6KJEP.mjs.map} +0 -0
  374. /package/out/__chunks__/{chunk-7ZGMZIYA.mjs.map → chunk-UBIKPYZM.mjs.map} +0 -0
  375. /package/out/__chunks__/{chunk-R32N5WCS.mjs.map → chunk-UE5UJ5OA.mjs.map} +0 -0
  376. /package/out/__chunks__/{chunk-RW55WHHB.mjs.map → chunk-UWVT2IIU.mjs.map} +0 -0
  377. /package/out/__chunks__/{chunk-TA6TNNXH.mjs.map → chunk-VBRORYV3.mjs.map} +0 -0
  378. /package/out/__chunks__/{chunk-66FC7DN2.mjs.map → chunk-VJWOCVLK.mjs.map} +0 -0
  379. /package/out/__chunks__/{chunk-LYZ5P6TZ.mjs.map → chunk-WALLLXSK.mjs.map} +0 -0
  380. /package/out/__chunks__/{chunk-CDIHVT44.mjs.map → chunk-WJICRRXY.mjs.map} +0 -0
  381. /package/out/__chunks__/{chunk-R2EQDN33.mjs.map → chunk-WWCYLG3X.mjs.map} +0 -0
  382. /package/out/__chunks__/{chunk-U2Z42SAP.mjs.map → chunk-YHRH5ZWE.mjs.map} +0 -0
  383. /package/out/__chunks__/{chunk-VLYPDZLN.mjs.map → chunk-ZFDYJQRD.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import"../../__chunks__/chunk-WHEXX3BD.mjs";import{a}from"../../__chunks__/chunk-AE72PVLM.mjs";import"../../__chunks__/chunk-GTRD4HFY.mjs";export{a as switchTheme};
1
+ import"../../__chunks__/chunk-WHEXX3BD.mjs";import{a}from"../../__chunks__/chunk-G4W774S7.mjs";import"../../__chunks__/chunk-GQHKOZGH.mjs";export{a as switchTheme};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-AE72PVLM.mjs";import"../../__chunks__/chunk-GTRD4HFY.mjs";export{a as switchTheme};
1
+ import{a}from"../../__chunks__/chunk-G4W774S7.mjs";import"../../__chunks__/chunk-GQHKOZGH.mjs";export{a as switchTheme};
2
2
  //# sourceMappingURL=switchTheme.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-ARPLTX4I.mjs";import"../../__chunks__/chunk-HZKGE7EY.mjs";import"../../__chunks__/chunk-GTRD4HFY.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as getIsInIframe};
1
+ import{a}from"../../__chunks__/chunk-SD6J2TKH.mjs";import"../../__chunks__/chunk-JRN5FK3J.mjs";import"../../__chunks__/chunk-GQHKOZGH.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as getIsInIframe};
2
2
  //# sourceMappingURL=getIsInIframe.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-HZKGE7EY.mjs";import"../../__chunks__/chunk-GTRD4HFY.mjs";export{a as getWindowParentOrigin};
1
+ import{a}from"../../__chunks__/chunk-JRN5FK3J.mjs";import"../../__chunks__/chunk-GQHKOZGH.mjs";export{a as getWindowParentOrigin};
2
2
  //# sourceMappingURL=getWindowParentOrigin.mjs.map
@@ -1,2 +1,2 @@
1
- import"../../__chunks__/chunk-DTQL3IDP.mjs";import{a as b}from"../../__chunks__/chunk-CKTFPRJS.mjs";import{a as f}from"../../__chunks__/chunk-ARPLTX4I.mjs";import"../../__chunks__/chunk-HZKGE7EY.mjs";import{a as e}from"../../__chunks__/chunk-EHDGJUEU.mjs";import{a as d}from"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-GTRD4HFY.mjs";import{a as c}from"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import{a}from"../../__chunks__/chunk-B2UIPHJ3.mjs";export{d as buildUrlParams,e as getIsAuthRoute,f as getIsInIframe,b as getWindowLocation,a as isWindowAvailable,c as sanitizeCallbackUrl};
1
+ import"../../__chunks__/chunk-DTQL3IDP.mjs";import{a as b}from"../../__chunks__/chunk-CKTFPRJS.mjs";import{a as f}from"../../__chunks__/chunk-SD6J2TKH.mjs";import"../../__chunks__/chunk-JRN5FK3J.mjs";import{a as e}from"../../__chunks__/chunk-EHDGJUEU.mjs";import{a as d}from"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-GQHKOZGH.mjs";import{a as c}from"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import{a}from"../../__chunks__/chunk-B2UIPHJ3.mjs";export{d as buildUrlParams,e as getIsAuthRoute,f as getIsInIframe,b as getWindowLocation,a as isWindowAvailable,c as sanitizeCallbackUrl};
2
2
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiversx/sdk-dapp",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "main": "out/index.cjs",
5
5
  "module": "out/index.mjs",
6
6
  "types": "out/index.d.ts",
@@ -56,13 +56,13 @@
56
56
  "zustand": "4.4.7"
57
57
  },
58
58
  "peerDependencies": {
59
- "@multiversx/sdk-core": "^14.x | ^15.x",
59
+ "@multiversx/sdk-core": "^14.x || ^15.x",
60
60
  "@multiversx/sdk-dapp-utils": "^3.x",
61
61
  "axios": ">=1.10.0",
62
62
  "bignumber.js": "^9.x"
63
63
  },
64
64
  "optionalDependencies": {
65
- "@multiversx/sdk-dapp-ui": ">=0.0.23"
65
+ "@multiversx/sdk-dapp-ui": ">=0.0.24"
66
66
  },
67
67
  "resolutions": {
68
68
  "strip-ansi": "6.0.1",
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-EMIDMARK.mjs";import{q as e}from"./chunk-ZI7JADBP.mjs";var m=()=>t(e());export{m as a};
2
- //# sourceMappingURL=chunk-2STEP3VA.mjs.map
@@ -1,2 +0,0 @@
1
- import{s as t}from"./chunk-ZI7JADBP.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";function g(r=t()){return e(r).egldLabel}export{g as a};
2
- //# sourceMappingURL=chunk-6A7TDVVR.mjs.map
@@ -1,2 +0,0 @@
1
- import{q as n}from"./chunk-ZI7JADBP.mjs";import{b as t}from"./chunk-UTWIKUIK.mjs";var c=a=>t(`transaction-${a}`)(n().getState())??null;export{c as a};
2
- //# sourceMappingURL=chunk-CAHVJ3IF.mjs.map
@@ -1,2 +0,0 @@
1
- var o=typeof window<"u"?window:{},n="5.1.0";export{o as a,n as b};
2
- //# sourceMappingURL=chunk-GTRD4HFY.mjs.map
@@ -1,2 +0,0 @@
1
- import{e}from"./chunk-CAA4VJRH.mjs";import{s as o}from"./chunk-ZI7JADBP.mjs";import{e as t}from"./chunk-SAAOQW7P.mjs";function m(){let r=t(o());return r?Math.max(1e3,r/2):9e4}export{m as a};
2
- //# sourceMappingURL=chunk-JRC47VFQ.mjs.map
@@ -1,2 +0,0 @@
1
- import{s as o}from"./chunk-ZI7JADBP.mjs";import{a as t}from"./chunk-SAAOQW7P.mjs";function f(r=o()){return t(r)}export{f as a};
2
- //# sourceMappingURL=chunk-KCUBSEZI.mjs.map
@@ -1,2 +0,0 @@
1
- import{s as e}from"./chunk-ZI7JADBP.mjs";import{f as t}from"./chunk-UERJ6AKK.mjs";function n(o=e()){return t(o)}export{n as a};
2
- //# sourceMappingURL=chunk-KMG6WM6K.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-2STEP3VA.mjs";function S(e){return t()(e)}export{S as a};
2
- //# sourceMappingURL=chunk-M7CRSX65.mjs.map
@@ -1,2 +0,0 @@
1
- import{s as t}from"./chunk-ZI7JADBP.mjs";import{c as r}from"./chunk-UERJ6AKK.mjs";function m(e=t()){return r(e)}export{m as a};
2
- //# sourceMappingURL=chunk-MGOTSAGH.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-BWYXCYFI.mjs";var o={async getTransactionsHistory(s){return await t(s)}};export{o as a};
2
- //# sourceMappingURL=chunk-OIIBPMNU.mjs.map
@@ -1,2 +0,0 @@
1
- import{q as e}from"./chunk-ZI7JADBP.mjs";var o=t=>e().setState(({ui:n})=>{n.isSidePanelOpen=t},!1,"setIsSidePanelOpen");export{o as a};
2
- //# sourceMappingURL=chunk-PPMUAFM4.mjs.map
@@ -1,2 +0,0 @@
1
- import{s as e}from"./chunk-ZI7JADBP.mjs";import{b as r}from"./chunk-SAAOQW7P.mjs";function d(t=e()){return r(t).explorerAddress}export{d as a};
2
- //# sourceMappingURL=chunk-QI4FCSOB.mjs.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-GTRD4HFY.mjs";var o=()=>a.localStorage;export{o as a};
2
- //# sourceMappingURL=chunk-RW55WHHB.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as o}from"./chunk-ZZZCOFQ7.mjs";import{b as s}from"./chunk-TQA3JDNV.mjs";import{s as n}from"./chunk-ZI7JADBP.mjs";async function f(){let t=s(n());if(Object.keys(t).length>0)for(let[e,{transactions:c}]of Object.entries(t))await o({sessionId:e,transactionBatch:c})}export{f as a};
2
- //# sourceMappingURL=chunk-SK4EBR2Z.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as et}from"./chunk-OIIBPMNU.mjs";import{a as mt}from"./chunk-6UZHM5LW.mjs";import{a as b}from"./chunk-4LYEVUGN.mjs";import{a as pt}from"./chunk-AMSHQJ6K.mjs";import{a as w}from"./chunk-LMJDCKJN.mjs";import{a as Z,b as tt,g as st,l as ot}from"./chunk-CAA4VJRH.mjs";import{a as gt}from"./chunk-FIG2TQL2.mjs";import{b as S}from"./chunk-HXTDJ2E6.mjs";import{a as dt}from"./chunk-YZV64TMH.mjs";import{a as It}from"./chunk-4ODPAHHA.mjs";import{a as ht}from"./chunk-MDVI45IV.mjs";import{a as ft}from"./chunk-EV4KV3JC.mjs";import{a as f}from"./chunk-KCUBSEZI.mjs";import{a as X}from"./chunk-MGOTSAGH.mjs";import{a as ut}from"./chunk-CDIHVT44.mjs";import{a as L}from"./chunk-6SNUC4WD.mjs";import{a as C,f as lt}from"./chunk-TA6TNNXH.mjs";import{b as Tt}from"./chunk-CJLUSPT2.mjs";import{d as rt}from"./chunk-R2EQDN33.mjs";import{k as it,l as nt,n as at}from"./chunk-65L5EBBL.mjs";import{a as A}from"./chunk-HORSXVIV.mjs";import{a as vt}from"./chunk-ZUJ5KE7O.mjs";import{a as Q}from"./chunk-EQBJVKBR.mjs";import{a as E}from"./chunk-QTKK6OSJ.mjs";import{a as J}from"./chunk-6ACLOUQ3.mjs";import{a as y}from"./chunk-NZYB675D.mjs";import{a as yt}from"./chunk-NJN53MJV.mjs";import{a as j}from"./chunk-YSCND2MX.mjs";import{a as V,b as q,q as u,s as Y}from"./chunk-ZI7JADBP.mjs";import{c as H,f as $}from"./chunk-UERJ6AKK.mjs";import{b as g}from"./chunk-VNLGNNIL.mjs";import{b as v}from"./chunk-6JM4DPOH.mjs";import{b as G,c as K,f as z}from"./chunk-NTEMINYA.mjs";import{b as Et}from"./chunk-76URRONH.mjs";import{a as ct}from"./chunk-M2DFHKKK.mjs";import{a as I}from"./chunk-PLUWBWJ2.mjs";import W from"lodash.isequal";import Lt from"lodash.isequal";var Ft="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",x=class e extends ut{constructor(){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.store=u();this.initialData={pendingTransactions:[],historicTransactions:[]};this.closeUI=async()=>{this.data.pendingTransactions.length>0?(this.unsubscribeFunctions.forEach(s=>s.forEach(o=>o())),this.unsubscribeFunctions.clear(),await this.uiElement?.closeWithAnimation()):super.closeUI()};this.data={...this.initialData}}static getInstance(){return e.instance||(e.instance=new e),e.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){p.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let o=this.store.subscribe(async({toasts:i,transactions:n},{toasts:a,transactions:c})=>{(!Lt(a.transactionToasts,i.transactionToasts)||!Lt(c,n))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(Ft,[o]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=p.getInstance();await this.closeUI(),await s.showToasts()}async setupEventListeners(){this.eventBus&&(this.subscribeToEventBus("CLOSE_NOTIFICATIONS_FEED",this.handleCloseUI.bind(this)),this.subscribeToEventBus("CLEAR_NOTIFICATIONS_FEED_HISTORY",this.handleClearNotificationsFeedHistory.bind(this)))}async updateDataAndNotifications(){let{transactions:s,account:o,toasts:i,network:n}=this.store.getState(),{pendingTransactionToasts:a}=await b({toastList:i,transactionsSessions:s,account:o});this.data.pendingTransactions=a,this.data.historicTransactions=await et.getTransactionsHistory({transactionsSessions:s,address:o.address,explorerAddress:n.network.explorerAddress,egldLabel:n.network.egldLabel}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){rt(),this.resetData(),this.updateNotificationsFeed()}async updateNotificationsFeed(){this.eventBus&&(this.eventBus.publish("PENDING_TRANSACTIONS_UPDATE",this.data.pendingTransactions),this.eventBus.publish("TRANSACTIONS_HISTORY_UPDATE",this.data.historicTransactions))}};import R from"bignumber.js";var N=class e{constructor(){this.store=u();this.warningLogoutTimeoutRef=null;this.actualLogoutTimeoutRef=null;this.plannedLogoutTimeoutRef=null;this.plannedLogoutKey=null;this.init=async()=>{if(!this.shouldStart())return;let t=this.store.getState(),s=g(t),{isExpired:o}=E(s?.nativeAuthToken);o?h().logout():this.addPlannedLogout()};this.stop=()=>{clearTimeout(this.warningLogoutTimeoutRef??0),clearTimeout(this.plannedLogoutTimeoutRef??0),clearTimeout(this.actualLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=null,this.plannedLogoutTimeoutRef=null,this.actualLogoutTimeoutRef=null,this.plannedLogoutKey=null};this.shouldStart=()=>{let t=this.store.getState(),s=g(t),o=$(t);return!!(s?.nativeAuthToken&&o)};this.addPlannedLogout=()=>{let t=h(),s=H(this.store.getState()),o=t.getType()===I.webview;if(!s||o)return;this.addLogoutWarning();let i=g(this.store.getState()),{secondsUntilExpires:n,expiresAt:a}=E(i?.nativeAuthToken),c=new R(String(n)),r=`${s}_${a}`,m=this.plannedLogoutKey===r;if(!(n&&c.isGreaterThan(0))||m)return;this.plannedLogoutKey=r,clearTimeout(this.plannedLogoutTimeoutRef??0);let d=c.times(1e3);this.actualLogoutTimeoutRef=setTimeout(()=>{p.getInstance().createCustomToast({toastId:"native-auth-logout",iconClassName:"warning",title:"Logging out",icon:"times",message:"Your session has expired!"}),this.actualLogoutTimeoutRef=null},d.toNumber()-3e3),this.plannedLogoutTimeoutRef=setTimeout(()=>{t.logout(),this.plannedLogoutTimeoutRef=null,this.plannedLogoutKey=null},d.toNumber())};this.addLogoutWarning=()=>{if(this.warningLogoutTimeoutRef)return;let t=v(this.store.getState()),s=g(this.store.getState()),{secondsUntilExpires:o}=E(s?.nativeAuthToken),i=new R(String(o)),n=i.times(1e3);if(!o||i.isLessThanOrEqualTo(0)||!t?.tokenExpirationToastWarningSeconds)return;let c=new R(t?.tokenExpirationToastWarningSeconds??0).times(1e3),r=i.times(1e3).minus(c),m=mt(n.toNumber()),l=r.isLessThanOrEqualTo(0)?0:r.toNumber();clearTimeout(this.warningLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=setTimeout(()=>{p.getInstance().createCustomToast({toastId:"native-auth-expired",iconClassName:"warning",title:"Session Expiration Warning",icon:"hourglass",message:`Your session will expire in ${m}!`}),this.warningLogoutTimeoutRef=null},l)}}static getInstance(){return e.instance||(e.instance=new e),e.instance}};async function B({address:e,provider:t,apiAddress:s}){let o=await y({address:e,baseURL:s});if(!o)throw new Error("Account not found");Tt({address:e,providerType:t.getType()});let i={...o,username:A(o.username),nonce:L(o)};C(i),await S(e),w(),o.shard!=null&&await pt({shard:Number(o.shard),apiAddress:s})}async function kt(e){let{network:{apiAddress:t}}=f();await e.login();let s=await e.getAddress();if(!s)throw new Error("Address not found");return await B({address:s,provider:e,apiAddress:t}),{address:s}}async function Dt({provider:e,nativeAuthConfig:t,token:s}){let{network:{apiAddress:o}}=f(),i=Q(t),n=s;n||(n=await i.initialize({noCache:!0}));let{address:a,signature:c,...r}=await e.login({token:n});if(!a)return console.warn("Login cancelled."),null;if(!c)return console.error("Failed to sign login token"),null;let l=J(r?.accessToken)?r.accessToken:i.getToken({address:a,token:n,signature:c});q({loginToken:n,signature:c,nativeAuthToken:l});let d=await dt({loginToken:n,extraInfoData:{multisig:r?.multisig,impersonate:r?.impersonate},address:a});return await B({address:d,provider:e,apiAddress:o}),{address:d,signature:c}}async function bt(e,t){let s=v(Y());if(s)return await Dt({provider:e,nativeAuthConfig:s,token:t?.token});let{address:o}=await kt(e);return await S(o),w(),{address:o}}var U={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${tt}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${Z}-${Date.now()}`}},Rt={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"},Bt=e=>{for(let[t,s]of Object.entries(Rt))if(e.includes(t))return s;return"Error when signing"};function _(e,t="error"){let s=e?.message,o=Bt(s),n=o!=="Error when signing"?"warning":t,a=Object.keys(U).includes(n)?U[n]:U.error,{toastId:c,iconClassName:r,title:m}=a;return M({toastId:c,duration:1e4,icon:"times",iconClassName:r,message:o,title:m}),o}async function Ct({provider:e,transactions:t,options:s={}}){await St();let{isGuarded:o,activeGuardianAddress:i,nonce:n}=vt(),a=e.getType()===I.ledger,c=It({latestNonce:n,transactions:t}),r=i&&o&&!s.skipGuardian?c?.map(l=>(l.version=G.withTxOptions().valueOf(),l.options=z.withOptions({guarded:!0,...a?{hashSign:!0}:{}}).valueOf(),l.guardian=K.newFromBech32(i),l)):c,m=await e.signTransactions(r)??[];return lt(n+m.length),m}var O=class{constructor(t){this._isLoggingOut=!1;this.provider=t}init(){return this.provider.init()}async login(t){let s=await bt(this.provider,t);return V(this.provider.getType()),wt(this),N.getInstance().init(),s}isInitialized(){return this.provider.isInitialized()}async logout(t={shouldBroadcastLogoutAcrossTabs:!0}){if(this._isLoggingOut)return console.warn("Logout already in progress"),!1;this._isLoggingOut=!0;let s=await gt({provider:this.provider,options:t});return this._isLoggingOut=!1,s}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(t,s){try{return await Ct({provider:this.provider,transactions:t,options:s})}catch(o){let i=_(o);throw new Error(i)}}async signMessage(t,s){try{return await ft({provider:this.provider,message:t,options:s})}catch(o){let i=_(o,"warning");throw new Error(i)}}async verifyMessage(t){return await ht(t)}cancelLogin(){this.provider.cancelLogin?.()}};var At=null;function wt(e){At=e}function h(){return At||new O(Et)}var Ut=async()=>{try{let e=X(),{network:t}=f();try{let s=await y({address:e,baseURL:t.apiAddress});if(s!=null){let o={...s,username:A(s.username),nonce:L(s)};return C(o),o}}catch(s){console.error("Failed getting account ",s)}}catch(e){console.error("Failed getting address ",e)}return null};async function St(){let e=h();if(e==null)throw"Provider not initialized";try{if(!e.init)throw"Current provider does not have init() function";return await e.init()?Ut():void 0}catch(t){console.error("Failed initializing provider ",t)}}var F={},T={},_t=(e,t)=>{u().setState(({toasts:s})=>{let o=s.customToasts.length>0?Math.max(...s.customToasts.map(r=>parseInt(r.toastId.split("-").pop()??"0"))):0,i=t??`custom-toast-${o+1}`,n=s.customToasts.findIndex(r=>r.toastId===i),a={...e,toastId:i};if(n!==-1){s.customToasts[n]=a;return}s.customToasts.push({...a,toastId:i})},!1,"addCustomToast")},P=e=>{u().setState(({toasts:t})=>{t.customToasts=t.customToasts.filter(s=>s.toastId!==e)},!1,"removeCustomToast")},xt=()=>{u().setState(({toasts:e})=>{e.customToasts=[]},!1,"removeAllCustomToasts")},zo=()=>{u().setState(({toasts:e})=>{e.transactionToasts=[]})},Nt=({toastId:e,totalDuration:t})=>{let s="";return u().setState(({toasts:o})=>{let i=o.transactionToasts.length>0?Math.max(...o.transactionToasts.map(n=>parseInt(n.toastId.split("-").pop()??"0"))):0;s=e??`transaction-toast-${i+1}`,o.transactionToasts.push({startTime:j(),endTime:yt(t),toastId:s})},!1,"addTransactionToast"),s},k=e=>{u().setState(({toasts:t})=>{t.transactionToasts=t.transactionToasts.filter(s=>s.toastId!==e)},!1,"removeTransactionToast"),delete T[e],delete F[e]},M=e=>{let{toasts:t}=u().getState(),s=t.customToasts.length>0?Math.max(...t.customToasts.map(i=>parseInt(i.toastId.split("-").pop()??"0"))):0,o=e.toastId||`custom-toast-${s+1}`;return e.onClose&&(T[o]=e.onClose),e.instantiateToastElement?(F[o]=e.instantiateToastElement,u().setState(({toasts:i})=>{let n=i.customToasts.findIndex(r=>r.toastId===o),a={...e,instantiateToastElement:null,toastId:o};n!==-1?i.customToasts[n]=a:i.customToasts.push(a)},!1,"createCustomToast"),o):(_t(e,o),o)};var Mt=1e4,D=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=Mt;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let s=setTimeout(()=>{k(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,s)};this.startWithCustomDuration=(t,s)=>{if(this.stop(t),s<=0)return;let o=setTimeout(()=>{P(t);let i=T[t];i?.()},s);this.timeoutIntervals.set(t,o)};this.stop=t=>{let s=this.timeoutIntervals.get(t);s&&(clearTimeout(s),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t||Mt}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};var p=class e{constructor(){this.isCreatingElement=!1;this.toastsElement=null;this.transactionToasts=[];this.customToasts=[];this.storeToastsSubscription=()=>null;this.eventBusUnsubscribeFunctions=[];this.eventBus=null;this.store=u();this.destroy(),this.lifetimeManager=new D,this.notificationsFeedManager=x.getInstance()}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.subscribeToEventBusNotifications(),this.storeToastsSubscription=this.store.subscribe(async({toasts:s,transactions:o},{toasts:i,transactions:n})=>{(!W(i.transactionToasts,s.transactionToasts)||!W(n,o))&&await this.updateTransactionToastsList(),W(i.customToasts,s.customToasts)||await this.updateCustomToastList()})}static getInstance(){return e.instance||(e.instance=new e),e.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),o=s[t];if(!o)return!1;let{status:i}=o,n=at(i),a=nt(i),c=it(i),r=a||c||n;return r?(this.successfulToastLifetime&&this.lifetimeManager.start(t),r):(this.lifetimeManager.stop(t),r)}async createTransactionToast(t,s){let o=Nt({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),o}createCustomToast(t){let s=M(t);return this.updateCustomToastList(),s}async updateTransactionToastsList(){let{toasts:t,transactions:s,account:o}=this.store.getState(),{pendingTransactionToasts:i,completedTransactionToasts:n}=await b({toastList:t,transactionsSessions:s,account:o});this.transactionToasts=[...i,...n];for(let a of t.transactionToasts)this.handleCompletedTransaction(a.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let i="message"in s?{...s}:{...s,instantiateToastElement:F[s.toastId]};this.customToasts.push(i),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",this.customToasts)}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await ct.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}handleTransactionToastClose(t){this.handleCompletedTransaction(t)&&k(t)}async subscribeToEventBusNotifications(){let t=await this.createToastListElement();if(t){if(this.eventBus=await t.getEventBus(),!this.eventBus)throw new Error("eventBus is not initialized");this.eventBus.subscribe("CLOSE_TOAST",this.handleCloseToast.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.handleCloseToast.bind(this))}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}async showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}handleCloseToast(t){if(this.customToasts.find(o=>o.toastId===t)){this.lifetimeManager.stop(t);let o=T[t];o?.(),P(t);return}this.handleTransactionToastClose(t)}async publishTransactionToasts(){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts),this.hideToasts();return}if(!this.eventBus){let t=await this.createToastListElement();if(!t)return;this.eventBus=await t.getEventBus()}this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts)}destroy(){this.storeToastsSubscription(),this.lifetimeManager?.destroy(),this.notificationsFeedManager?.destroy(),xt(),this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[]}};export{x as a,F as b,T as c,_t as d,P as e,xt as f,zo as g,Nt as h,k as i,M as j,D as k,p as l,N as m,B as n,bt as o,_ as p,Ct as q,O as r,wt as s,h as t,St as u};
2
- //# sourceMappingURL=chunk-XCKTWIKV.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/managers/internal/ToastManager/ToastManager.ts", "../../src/managers/NotificationsFeedManager/NotificationsFeedManager.ts", "../../src/managers/LogoutManager/LogoutManager.ts", "../../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", "../../src/managers/internal/ToastManager/helpers/LifetimeManager.ts"],
4
- "sourcesContent": ["import isEqual from 'lodash.isequal';\nimport { DEFAULT_TOAST_LIEFTIME } from 'constants/transactions.constants';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxToastList } from 'lib/sdkDappUi';\nimport { NotificationsFeedManager } from 'managers/NotificationsFeedManager/NotificationsFeedManager';\nimport {\n customToastCloseHandlersDictionary,\n customToastComponentDictionary,\n removeAllCustomToasts,\n removeCustomToast,\n removeTransactionToast,\n addTransactionToast,\n createCustomToast\n} from 'store/actions/toasts/toastsActions';\nimport {\n getIsTransactionFailed,\n getIsTransactionSuccessful,\n getIsTransactionTimedOut\n} from 'store/actions/transactions/transactionStateByStatus';\n\nimport { CustomToastType } from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport { IEventBus } from 'types/manager.types';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { ComponentFactory } from 'utils/ComponentFactory';\nimport { createToastsFromTransactions } from './helpers/createToastsFromTransactions';\nimport { LifetimeManager } from './helpers/LifetimeManager';\nimport { ITransactionToast, ToastEventsEnum } from './types';\n\ninterface IToastManager {\n successfulToastLifetime?: number;\n}\n\nexport class ToastManager {\n private readonly lifetimeManager: LifetimeManager;\n private isCreatingElement = false;\n private static instance: ToastManager;\n private toastsElement: MvxToastList | null = null;\n private transactionToasts: ITransactionToast[] = [];\n private customToasts: CustomToastType[] = [];\n private successfulToastLifetime?: number;\n private storeToastsSubscription: () => void = () => null;\n private readonly notificationsFeedManager: NotificationsFeedManager;\n private eventBusUnsubscribeFunctions: (() => void)[] = [];\n private eventBus: IEventBus<\n ITransactionToast[] | CustomToastType[] | null\n > | null = null;\n\n store = getStore();\n\n constructor() {\n this.destroy();\n this.lifetimeManager = new LifetimeManager();\n\n this.notificationsFeedManager = NotificationsFeedManager.getInstance();\n }\n\n public async init({\n successfulToastLifetime = DEFAULT_TOAST_LIEFTIME\n }: IToastManager = {}) {\n this.successfulToastLifetime = successfulToastLifetime;\n\n this.lifetimeManager.init({ successfulToastLifetime });\n\n await this.updateTransactionToastsList();\n await this.updateCustomToastList();\n\n await this.subscribeToEventBusNotifications();\n\n this.storeToastsSubscription = this.store.subscribe(\n async (\n { toasts, transactions },\n { toasts: prevToasts, transactions: prevTransactions }\n ) => {\n if (\n !isEqual(prevToasts.transactionToasts, toasts.transactionToasts) ||\n !isEqual(prevTransactions, transactions)\n ) {\n await this.updateTransactionToastsList();\n }\n\n if (!isEqual(prevToasts.customToasts, toasts.customToasts)) {\n await this.updateCustomToastList();\n }\n }\n );\n }\n\n public static getInstance(): ToastManager {\n if (!ToastManager.instance) {\n ToastManager.instance = new ToastManager();\n }\n return ToastManager.instance;\n }\n\n private handleCompletedTransaction(toastId: string): boolean {\n const { transactions } = this.store.getState();\n const transaction = transactions[toastId];\n\n if (!transaction) {\n return false;\n }\n\n const { status } = transaction;\n const isTimedOut = getIsTransactionTimedOut(status);\n const isFailed = getIsTransactionFailed(status);\n const isSuccessful = getIsTransactionSuccessful(status);\n const isCompleted = isFailed || isSuccessful || isTimedOut;\n\n if (isCompleted) {\n if (this.successfulToastLifetime) {\n this.lifetimeManager.start(toastId);\n }\n return isCompleted;\n }\n\n this.lifetimeManager.stop(toastId);\n return isCompleted;\n }\n\n public async createTransactionToast(\n toastId: string,\n totalDuration: number\n ): Promise<string> {\n const newToastId = addTransactionToast({\n toastId,\n totalDuration\n });\n\n this.handleCompletedTransaction(toastId);\n await this.updateTransactionToastsList();\n return newToastId;\n }\n\n public createCustomToast(toast: CustomToastType): string {\n const toastId = createCustomToast(toast);\n this.updateCustomToastList();\n return toastId;\n }\n\n private async updateTransactionToastsList() {\n const {\n toasts: toastList,\n transactions: transactionsSessions,\n account\n } = this.store.getState();\n\n const { pendingTransactionToasts, completedTransactionToasts } =\n await createToastsFromTransactions({\n toastList,\n transactionsSessions,\n account\n });\n\n this.transactionToasts = [\n ...pendingTransactionToasts,\n ...completedTransactionToasts\n ];\n\n for (const toast of toastList.transactionToasts) {\n this.handleCompletedTransaction(toast.toastId);\n }\n\n await this.publishTransactionToasts();\n }\n\n private async updateCustomToastList() {\n const { toasts: toastList } = this.store.getState();\n this.customToasts = [];\n\n for (const toast of toastList.customToasts) {\n const isSimpleToast = 'message' in toast;\n\n const newToast: CustomToastType = isSimpleToast\n ? { ...toast }\n : {\n ...toast,\n instantiateToastElement:\n customToastComponentDictionary[toast.toastId]\n };\n this.customToasts.push(newToast);\n\n if (toast.duration) {\n this.lifetimeManager.startWithCustomDuration(\n toast.toastId,\n toast.duration\n );\n }\n }\n this.eventBus?.publish(\n ToastEventsEnum.CUSTOM_TOAST_DATA_UPDATE,\n this.customToasts\n );\n }\n\n private async createToastListElement(): Promise<MvxToastList | null> {\n if (this.toastsElement) {\n return this.toastsElement;\n }\n\n if (!this.isCreatingElement) {\n this.isCreatingElement = true;\n\n this.toastsElement = await ComponentFactory.create<MvxToastList>({\n name: UITagsEnum.TOAST_LIST\n });\n\n this.isCreatingElement = false;\n }\n\n return this.toastsElement;\n }\n\n private handleTransactionToastClose(toastId: string) {\n const isCompleted = this.handleCompletedTransaction(toastId);\n\n if (isCompleted) {\n removeTransactionToast(toastId);\n }\n }\n\n private async subscribeToEventBusNotifications() {\n const toastsElement = await this.createToastListElement();\n\n if (!toastsElement) {\n return;\n }\n\n this.eventBus = await toastsElement.getEventBus();\n if (!this.eventBus) {\n throw new Error(ProviderErrorsEnum.eventBusError);\n }\n\n this.eventBus.subscribe(\n ToastEventsEnum.CLOSE,\n this.handleCloseToast.bind(this)\n );\n\n this.eventBusUnsubscribeFunctions.push(() => {\n this.eventBus?.unsubscribe(\n ToastEventsEnum.CLOSE,\n this.handleCloseToast.bind(this)\n );\n });\n\n this.eventBus.subscribe(\n ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,\n this.handleOpenNotificationsFeed.bind(this)\n );\n\n this.eventBusUnsubscribeFunctions.push(() => {\n this.eventBus?.unsubscribe(\n ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,\n this.handleOpenNotificationsFeed.bind(this)\n );\n });\n }\n\n public async showToasts() {\n this.eventBus?.publish(ToastEventsEnum.SHOW, null);\n\n await this.updateCustomToastList();\n await this.updateTransactionToastsList();\n }\n\n public hideToasts() {\n this.eventBus?.publish(ToastEventsEnum.HIDE, null);\n }\n\n private async handleOpenNotificationsFeed() {\n this.notificationsFeedManager.openNotificationsFeed();\n }\n\n private handleCloseToast(toastId: string) {\n const customToast = this.customToasts.find(\n (toast) => toast.toastId === toastId\n );\n\n if (customToast) {\n this.lifetimeManager.stop(toastId);\n const handleClose = customToastCloseHandlersDictionary[toastId];\n handleClose?.();\n removeCustomToast(toastId);\n return;\n }\n\n this.handleTransactionToastClose(toastId);\n }\n\n private async publishTransactionToasts() {\n if (\n this.notificationsFeedManager.isNotificationsFeedOpen() &&\n this.eventBus\n ) {\n this.eventBus.publish(\n ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,\n this.transactionToasts\n );\n\n this.hideToasts();\n return;\n }\n\n if (!this.eventBus) {\n const toastsElement = await this.createToastListElement();\n\n if (!toastsElement) {\n return;\n }\n\n this.eventBus = await toastsElement.getEventBus();\n }\n\n this.eventBus.publish(\n ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,\n this.transactionToasts\n );\n }\n\n public destroy() {\n this.storeToastsSubscription();\n this.lifetimeManager?.destroy();\n this.notificationsFeedManager?.destroy();\n removeAllCustomToasts();\n this.eventBusUnsubscribeFunctions.forEach((unsubscribe) => unsubscribe());\n this.eventBusUnsubscribeFunctions = [];\n }\n}\n", "import isEqual from 'lodash.isequal';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { TransactionsHistoryController } from 'controllers/TransactionsHistoryController';\nimport { ITransactionListItem, MvxNotificationsFeed } from 'lib/sdkDappUi';\nimport { clearCompletedTransactions } from 'store/actions/transactions/transactionsActions';\nimport { getStore } from 'store/store';\nimport { NotificationsFeedEventsEnum } from './types';\nimport { ToastManager } from '../internal';\nimport { SidePanelBaseManager } from '../internal/SidePanelBaseManager/SidePanelBaseManager';\nimport { createToastsFromTransactions } from '../internal/ToastManager/helpers/createToastsFromTransactions';\nimport { ITransactionToast } from '../internal/ToastManager/types';\n\ninterface INotificationsFeedManagerData {\n pendingTransactions: ITransactionToast[];\n historicTransactions: ITransactionListItem[];\n}\n\nconst NOTIFICATIONS_FEED_STORE_SUBSCRIBE = 'NOTIFICATIONS_FEED_STORE_SUBSCRIBE';\n\nexport class NotificationsFeedManager extends SidePanelBaseManager<\n MvxNotificationsFeed,\n INotificationsFeedManagerData,\n NotificationsFeedEventsEnum | typeof NOTIFICATIONS_FEED_STORE_SUBSCRIBE\n> {\n private static instance: NotificationsFeedManager;\n private readonly store = getStore();\n\n protected initialData: INotificationsFeedManagerData = {\n pendingTransactions: [],\n historicTransactions: []\n };\n\n public static getInstance(): NotificationsFeedManager {\n if (!NotificationsFeedManager.instance) {\n NotificationsFeedManager.instance = new NotificationsFeedManager();\n }\n return NotificationsFeedManager.instance;\n }\n\n constructor() {\n super({\n uiDataUpdateEvent: NotificationsFeedEventsEnum.OPEN,\n uiTag: UITagsEnum.NOTIFICATIONS_FEED\n });\n this.data = { ...this.initialData };\n }\n\n public isNotificationsFeedOpen(): boolean {\n return this.isOpen;\n }\n\n /**\n * Open the notifications feed and toggle off the toast manager.\n */\n public async openNotificationsFeed(): Promise<void> {\n const toastManager = ToastManager.getInstance();\n toastManager.hideToasts();\n await this.openUI();\n await this.updateDataAndNotifications();\n\n const storeToastsUnsubscribe = this.store.subscribe(\n async (\n { toasts, transactions },\n { toasts: prevToasts, transactions: prevTransactions }\n ) => {\n if (\n !isEqual(prevToasts.transactionToasts, toasts.transactionToasts) ||\n !isEqual(prevTransactions, transactions)\n ) {\n await this.updateDataAndNotifications();\n }\n }\n );\n this.unsubscribeFunctions.set(NOTIFICATIONS_FEED_STORE_SUBSCRIBE, [\n storeToastsUnsubscribe\n ]);\n\n this.eventBus?.publish(NotificationsFeedEventsEnum.OPEN);\n await this.updateDataAndNotifications();\n }\n\n closeUI = async () => {\n if (this.data.pendingTransactions.length > 0) {\n this.unsubscribeFunctions.forEach((unsubList) =>\n unsubList.forEach((unsubscribe) => unsubscribe())\n );\n this.unsubscribeFunctions.clear();\n await this.uiElement?.closeWithAnimation();\n } else {\n super.closeUI();\n }\n };\n\n /**\n * Close the notifications feed and toggle on the toast manager.\n */\n protected async handleCloseUI() {\n const toastManager = ToastManager.getInstance();\n await this.closeUI();\n await toastManager.showToasts();\n }\n\n protected async setupEventListeners() {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(\n NotificationsFeedEventsEnum.CLOSE,\n this.handleCloseUI.bind(this)\n );\n\n this.subscribeToEventBus(\n NotificationsFeedEventsEnum.CLEAR,\n this.handleClearNotificationsFeedHistory.bind(this)\n );\n }\n\n protected async updateDataAndNotifications() {\n const { transactions, account, toasts, network } = this.store.getState();\n\n const { pendingTransactionToasts } = await createToastsFromTransactions({\n toastList: toasts,\n transactionsSessions: transactions,\n account\n });\n\n this.data.pendingTransactions = pendingTransactionToasts;\n\n this.data.historicTransactions =\n await TransactionsHistoryController.getTransactionsHistory({\n transactionsSessions: transactions,\n address: account.address,\n explorerAddress: network.network.explorerAddress,\n egldLabel: network.network.egldLabel\n });\n\n await this.updateNotificationsFeed();\n }\n\n private handleClearNotificationsFeedHistory() {\n clearCompletedTransactions();\n this.resetData();\n this.updateNotificationsFeed();\n }\n\n private async updateNotificationsFeed() {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.publish(\n NotificationsFeedEventsEnum.PENDING_TRANSACTIONS_UPDATE,\n this.data.pendingTransactions\n );\n\n this.eventBus.publish(\n NotificationsFeedEventsEnum.TRANSACTIONS_HISTORY_UPDATE,\n this.data.historicTransactions\n );\n }\n}\n", "import BigNumber from 'bignumber.js';\nimport { ToastIconsEnum } from 'managers/internal/ToastManager/helpers/getToastDataStateByStatus';\nimport { ToastManager } from 'managers/internal/ToastManager/ToastManager';\nimport { getAccountProvider } from 'providers/helpers/accountProvider';\nimport { ProviderTypeEnum } from 'providers/types/providerFactory.types';\nimport { getTokenExpiration } from 'services/nativeAuth/methods/getTokenExpiration';\nimport {\n addressSelector,\n isLoggedInSelector\n} from 'store/selectors/accountSelectors';\nimport { nativeAuthConfigSelector } from 'store/selectors/configSelectors';\nimport { tokenLoginSelector } from 'store/selectors/loginInfoSelectors';\nimport { getStore } from 'store/store';\nimport { getHumanReadableTokenExpirationTime } from './helpers/getHumanReadableTokenExpirationTime';\n\nexport class LogoutManager {\n private static instance: LogoutManager;\n private store = getStore();\n private warningLogoutTimeoutRef: ReturnType<typeof setInterval> | null = null;\n private actualLogoutTimeoutRef: ReturnType<typeof setInterval> | null = null;\n private plannedLogoutTimeoutRef: ReturnType<typeof setInterval> | null = null;\n private plannedLogoutKey: string | null = null;\n\n public static getInstance(): LogoutManager {\n if (!LogoutManager.instance) {\n LogoutManager.instance = new LogoutManager();\n }\n return LogoutManager.instance;\n }\n\n private constructor() {}\n\n public init = async () => {\n if (!this.shouldStart()) {\n return;\n }\n\n const state = this.store.getState();\n const tokenLogin = tokenLoginSelector(state);\n\n const { isExpired: isNativeAuthTokenExpired } = getTokenExpiration(\n tokenLogin?.nativeAuthToken\n );\n\n if (isNativeAuthTokenExpired) {\n const provider = getAccountProvider();\n provider.logout();\n } else {\n this.addPlannedLogout();\n }\n };\n\n public stop = () => {\n clearTimeout(this.warningLogoutTimeoutRef ?? 0);\n clearTimeout(this.plannedLogoutTimeoutRef ?? 0);\n clearTimeout(this.actualLogoutTimeoutRef ?? 0);\n\n this.warningLogoutTimeoutRef = null;\n this.plannedLogoutTimeoutRef = null;\n this.actualLogoutTimeoutRef = null;\n this.plannedLogoutKey = null;\n };\n\n private readonly shouldStart = (): boolean => {\n const state = this.store.getState();\n const tokenLogin = tokenLoginSelector(state);\n const isLoggedIn = isLoggedInSelector(state);\n return Boolean(tokenLogin?.nativeAuthToken && isLoggedIn);\n };\n\n private addPlannedLogout = () => {\n const provider = getAccountProvider();\n const address = addressSelector(this.store.getState());\n const isWebviewLogin = provider.getType() === ProviderTypeEnum.webview;\n\n // prevent unexpected logout if webview login\n if (!address || isWebviewLogin) {\n return;\n }\n\n this.addLogoutWarning();\n\n const tokenLogin = tokenLoginSelector(this.store.getState());\n\n const { secondsUntilExpires, expiresAt } = getTokenExpiration(\n tokenLogin?.nativeAuthToken\n );\n\n // Handle the actual logout functionality.\n const secondsUntilExpiresBN = new BigNumber(String(secondsUntilExpires));\n const plannedLogoutKey = `${address}_${expiresAt}`;\n const plannedLogoutSet = this.plannedLogoutKey === plannedLogoutKey;\n\n const isValidInterval =\n secondsUntilExpires && secondsUntilExpiresBN.isGreaterThan(0);\n\n if (!isValidInterval || plannedLogoutSet) {\n return;\n }\n\n this.plannedLogoutKey = plannedLogoutKey;\n\n clearTimeout(this.plannedLogoutTimeoutRef ?? 0);\n const millisecondsUntilLogout = secondsUntilExpiresBN.times(1000);\n\n this.actualLogoutTimeoutRef = setTimeout(() => {\n ToastManager.getInstance().createCustomToast({\n toastId: 'native-auth-logout',\n iconClassName: 'warning',\n title: 'Logging out',\n icon: ToastIconsEnum.times,\n message: 'Your session has expired!'\n });\n this.actualLogoutTimeoutRef = null;\n }, millisecondsUntilLogout.toNumber() - 3000);\n\n this.plannedLogoutTimeoutRef = setTimeout(() => {\n provider.logout();\n this.plannedLogoutTimeoutRef = null;\n this.plannedLogoutKey = null;\n }, millisecondsUntilLogout.toNumber());\n };\n\n private readonly addLogoutWarning = () => {\n if (this.warningLogoutTimeoutRef) {\n return;\n }\n\n const nativeAuthConfig = nativeAuthConfigSelector(this.store.getState());\n const tokenLogin = tokenLoginSelector(this.store.getState());\n\n const { secondsUntilExpires } = getTokenExpiration(\n tokenLogin?.nativeAuthToken\n );\n\n const secondsUntilExpiresBN = new BigNumber(String(secondsUntilExpires));\n const millisecondsUntilLogout = secondsUntilExpiresBN.times(1000);\n\n if (\n !secondsUntilExpires ||\n secondsUntilExpiresBN.isLessThanOrEqualTo(0) ||\n !nativeAuthConfig?.tokenExpirationToastWarningSeconds\n ) {\n return;\n }\n\n const logoutWarningOffsetSeconds = new BigNumber(\n nativeAuthConfig?.tokenExpirationToastWarningSeconds ?? 0\n );\n\n const logoutWarningOffsetMilliseconds =\n logoutWarningOffsetSeconds.times(1000);\n\n const millisecondsUntilLogoutWarning = secondsUntilExpiresBN\n .times(1000)\n .minus(logoutWarningOffsetMilliseconds);\n\n const readableMinutesUntilLogout = getHumanReadableTokenExpirationTime(\n millisecondsUntilLogout.toNumber()\n );\n\n const timeoutUntilLogoutWarning =\n millisecondsUntilLogoutWarning.isLessThanOrEqualTo(0)\n ? 0\n : millisecondsUntilLogoutWarning.toNumber();\n\n clearTimeout(this.warningLogoutTimeoutRef ?? 0);\n\n this.warningLogoutTimeoutRef = setTimeout(() => {\n ToastManager.getInstance().createCustomToast({\n toastId: 'native-auth-expired',\n iconClassName: 'warning',\n title: 'Session Expiration Warning',\n icon: ToastIconsEnum.hourglass,\n message: `Your session will expire in ${readableMinutesUntilLogout}!`\n });\n this.warningLogoutTimeoutRef = null;\n }, timeoutUntilLogoutWarning);\n };\n}\n", "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 { decodeNativeAuthToken } from 'services/nativeAuth/helpers/decodeNativeAuthToken';\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 // nativeAuthToken received from hub login\n const decodedToken = decodeNativeAuthToken(loginResult?.accessToken);\n\n const nativeAuthToken = decodedToken\n ? loginResult.accessToken\n : 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 { LogoutManager } from 'managers/LogoutManager/LogoutManager';\nimport { setAccountProvider } from 'providers/helpers/accountProvider';\nimport { setProviderType } from 'store/actions/loginInfo/loginInfoActions';\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 private _isLoggingOut = false;\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 setProviderType(this.provider.getType());\n setAccountProvider(this);\n LogoutManager.getInstance().init();\n return data;\n }\n\n isInitialized(): boolean {\n return this.provider.isInitialized();\n }\n\n async logout(\n options = {\n shouldBroadcastLogoutAcrossTabs: true\n }\n ): Promise<boolean> {\n if (this._isLoggingOut) {\n console.warn('Logout already in progress');\n return false;\n }\n\n this._isLoggingOut = true;\n\n const isLoggedOut = await logout({ provider: this.provider, options });\n\n this._isLoggingOut = false;\n\n return isLoggedOut;\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}): string => {\n let newToastId: string = '';\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 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 return newToastId;\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", "import {\n customToastCloseHandlersDictionary,\n removeCustomToast,\n removeTransactionToast\n} from 'store/actions/toasts/toastsActions';\n\ninterface IToastProgressManagerParams {\n successfulToastLifetime?: number;\n}\n\nconst DEFAULT_SUCCESSFUL_TOAST_LIFETIME = 10_000;\n\nexport class LifetimeManager {\n private timeoutIntervals: Map<string, ReturnType<typeof setTimeout>> =\n new Map();\n private successfulToastLifetime: number = DEFAULT_SUCCESSFUL_TOAST_LIFETIME;\n\n constructor() {}\n\n public init({ successfulToastLifetime }: IToastProgressManagerParams) {\n this.successfulToastLifetime =\n successfulToastLifetime || DEFAULT_SUCCESSFUL_TOAST_LIFETIME;\n }\n\n public start = (toastId: string) => {\n this.stop(toastId);\n\n if (this.successfulToastLifetime <= 0) {\n return;\n }\n\n const timeout = setTimeout(() => {\n removeTransactionToast(toastId);\n }, this.successfulToastLifetime);\n\n this.timeoutIntervals.set(toastId, timeout);\n };\n\n public startWithCustomDuration = (toastId: string, duration: number) => {\n this.stop(toastId);\n\n if (duration <= 0) {\n return;\n }\n\n const timeout = setTimeout(() => {\n removeCustomToast(toastId);\n const handleClose = customToastCloseHandlersDictionary[toastId];\n handleClose?.();\n }, duration);\n\n this.timeoutIntervals.set(toastId, timeout);\n };\n\n public stop = (toastId: string) => {\n const timeout = this.timeoutIntervals.get(toastId);\n if (timeout) {\n clearTimeout(timeout);\n this.timeoutIntervals.delete(toastId);\n }\n };\n\n public destroy() {\n this.timeoutIntervals.forEach((interval) => clearTimeout(interval));\n this.timeoutIntervals.clear();\n }\n}\n"],
5
- "mappings": "8iDAAA,OAAOA,MAAa,iBCApB,OAAOC,OAAa,iBAiBpB,IAAMC,GAAqC,qCAE9BC,EAAN,MAAMC,UAAiCC,EAI5C,CAgBA,aAAc,CACZ,MAAM,CACJ,4CACA,8BACF,CAAC,EAlBH,KAAiB,MAAQC,EAAS,EAElC,KAAU,YAA6C,CACrD,oBAAqB,CAAC,EACtB,qBAAsB,CAAC,CACzB,EAmDA,aAAU,SAAY,CAChB,KAAK,KAAK,oBAAoB,OAAS,GACzC,KAAK,qBAAqB,QAASC,GACjCA,EAAU,QAASC,GAAgBA,EAAY,CAAC,CAClD,EACA,KAAK,qBAAqB,MAAM,EAChC,MAAM,KAAK,WAAW,mBAAmB,GAEzC,MAAM,QAAQ,CAElB,EA/CE,KAAK,KAAO,CAAE,GAAG,KAAK,WAAY,CACpC,CAbA,OAAc,aAAwC,CACpD,OAAKJ,EAAyB,WAC5BA,EAAyB,SAAW,IAAIA,GAEnCA,EAAyB,QAClC,CAUO,yBAAmC,CACxC,OAAO,KAAK,MACd,CAKA,MAAa,uBAAuC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anelBaseManager", "getStore", "unsubList", "unsubscribe", "ToastManager", "storeToastsUnsubscribe", "toasts", "transactions", "prevToasts", "prevTransactions", "isEqual", "toastManager", "account", "network", "pendingTransactionToasts", "createToastsFromTransactions", "TransactionsHistoryController", "clearCompletedTransactions", "BigNumber", "LogoutManager", "_LogoutManager", "getStore", "state", "tokenLogin", "tokenLoginSelector", "isNativeAuthTokenExpired", "getTokenExpiration", "getAccountProvider", "isLoggedIn", "isLoggedInSelector", "provider", "address", "addressSelector", "isWebviewLogin", "ProviderTypeEnum", "secondsUntilExpires", "expiresAt", "secondsUntilExpiresBN", "BigNumber", "plannedLogoutKey", "plannedLogoutSet", "millisecondsUntilLogout", "ToastManager", "nativeAuthConfig", "nativeAuthConfigSelector", "logoutWarningOffsetMilliseconds", "millisecondsUntilLogoutWarning", "readableMinutesUntilLogout", "getHumanReadableTokenExpirationTime", "timeoutUntilLogoutWarning", "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", "decodeNativeAuthToken", "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", "data", "login", "setProviderType", "setAccountProvider", "LogoutManager", "isLoggedOut", "logout", "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", "DEFAULT_SUCCESSFUL_TOAST_LIFETIME", "LifetimeManager", "toastId", "timeout", "removeTransactionToast", "duration", "removeCustomToast", "handleClose", "customToastCloseHandlersDictionary", "successfulToastLifetime", "interval", "ToastManager", "_ToastManager", "getStore", "LifetimeManager", "NotificationsFeedManager", "successfulToastLifetime", "toasts", "transactions", "prevToasts", "prevTransactions", "isEqual", "toastId", "transaction", "status", "isTimedOut", "getIsTransactionTimedOut", "isFailed", "getIsTransactionFailed", "isSuccessful", "getIsTransactionSuccessful", "isCompleted", "totalDuration", "newToastId", "addTransactionToast", "toast", "createCustomToast", "toastList", "transactionsSessions", "account", "pendingTransactionToasts", "completedTransactionToasts", "createToastsFromTransactions", "newToast", "customToastComponentDictionary", "ComponentFactory", "removeTransactionToast", "toastsElement", "handleClose", "customToastCloseHandlersDictionary", "removeCustomToast", "removeAllCustomToasts", "unsubscribe"]
7
- }
@@ -1,2 +0,0 @@
1
- import{s as o}from"./chunk-ZI7JADBP.mjs";import{b as t}from"./chunk-UERJ6AKK.mjs";function c(r=o()){return t(r)}export{c as a};
2
- //# sourceMappingURL=chunk-XNF5QLFW.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-A4KMW3VA.mjs";import{c as n}from"./chunk-ZI7JADBP.mjs";async function c({loginToken:r,extraInfoData:i,address:e}){let o=await t({originalLoginToken:r,extraInfoData:i,address:e});return o.modifiedLoginToken&&n(o.modifiedLoginToken),o.address}export{c as a};
2
- //# sourceMappingURL=chunk-YZV64TMH.mjs.map
@@ -1,2 +0,0 @@
1
- import{s as o}from"./chunk-ZI7JADBP.mjs";import{a as t}from"./chunk-UERJ6AKK.mjs";function n(r=o()){return t(r)}export{n as a};
2
- //# sourceMappingURL=chunk-ZUJ5KE7O.mjs.map