@multiversx/sdk-dapp 5.0.0-alpha.14 → 5.0.0-alpha.15

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 (421) hide show
  1. package/README.md +24 -22
  2. package/out/__chunks__/{chunk-Z6RETW2C.mjs → chunk-33V2XBND.mjs} +2 -2
  3. package/out/__chunks__/chunk-4KABQZJU.mjs +2 -0
  4. package/out/__chunks__/{chunk-2E7KLTVM.mjs → chunk-4MNCFSUO.mjs} +2 -2
  5. package/out/__chunks__/chunk-4NXTT4UR.mjs +2 -0
  6. package/out/__chunks__/{chunk-PZLVK2W5.mjs → chunk-4USFY3DC.mjs} +2 -2
  7. package/out/__chunks__/{chunk-LNZQ2M65.mjs → chunk-532QQEN4.mjs} +2 -2
  8. package/out/__chunks__/{chunk-BVKXSTQF.mjs → chunk-5MDDPC5M.mjs} +2 -2
  9. package/out/__chunks__/{chunk-K66JLLVW.mjs → chunk-7H2PZVSJ.mjs} +2 -2
  10. package/out/__chunks__/{chunk-A77C5T7Q.mjs → chunk-7RFUEHZX.mjs} +2 -2
  11. package/out/__chunks__/{chunk-QY5O4PX2.mjs → chunk-AI7LYKBU.mjs} +2 -2
  12. package/out/__chunks__/{chunk-TKORCVYO.mjs → chunk-AZ2KOM5R.mjs} +2 -2
  13. package/out/__chunks__/{chunk-SQ4KCFCC.mjs → chunk-AZGVI4QW.mjs} +2 -2
  14. package/out/__chunks__/chunk-BHXGUN5H.mjs +2 -0
  15. package/out/__chunks__/{chunk-AIDEMTSX.mjs.map → chunk-BHXGUN5H.mjs.map} +1 -1
  16. package/out/__chunks__/chunk-BLUKJJTY.mjs +2 -0
  17. package/out/__chunks__/{chunk-PFCHZJJO.mjs → chunk-BTXVE2KE.mjs} +2 -2
  18. package/out/__chunks__/{chunk-SXXJRX5W.mjs → chunk-C3F3EPNZ.mjs} +2 -2
  19. package/out/__chunks__/{chunk-FO3JMB6I.mjs → chunk-CBH7E57H.mjs} +2 -2
  20. package/out/__chunks__/chunk-CKTFPRJS.mjs +2 -0
  21. package/out/__chunks__/chunk-CKTFPRJS.mjs.map +7 -0
  22. package/out/__chunks__/chunk-CMEBBADF.mjs +2 -0
  23. package/out/__chunks__/{chunk-RWZQKTSO.mjs → chunk-CRHPVNRL.mjs} +2 -2
  24. package/out/__chunks__/{chunk-4DI7PQFP.mjs → chunk-CUABBK2P.mjs} +2 -2
  25. package/out/__chunks__/{chunk-SS6PDIDN.mjs → chunk-EBQZQA2Q.mjs} +2 -2
  26. package/out/__chunks__/{chunk-HUQ6AJBO.mjs → chunk-EO6CD6VO.mjs} +2 -2
  27. package/out/__chunks__/{chunk-KYJF7WU3.mjs → chunk-ES6E2HM6.mjs} +2 -2
  28. package/out/__chunks__/{chunk-ISQDJSDA.mjs → chunk-F4W3N3JZ.mjs} +2 -2
  29. package/out/__chunks__/{chunk-HL3U3QQR.mjs → chunk-F4WQOPSX.mjs} +2 -2
  30. package/out/__chunks__/chunk-FGRMMCGF.mjs +2 -0
  31. package/out/__chunks__/{chunk-INLU2YOE.mjs → chunk-GFK4E7GU.mjs} +2 -2
  32. package/out/__chunks__/{chunk-32BLYKZG.mjs → chunk-GRD5MWEG.mjs} +2 -2
  33. package/out/__chunks__/{chunk-2HVZ5F32.mjs → chunk-GXMIT5JQ.mjs} +2 -2
  34. package/out/__chunks__/chunk-GZAAD3TR.mjs +2 -0
  35. package/out/__chunks__/{chunk-GYUFALJV.mjs → chunk-GZTGHNVI.mjs} +2 -2
  36. package/out/__chunks__/chunk-HACVN4R6.mjs +2 -0
  37. package/out/__chunks__/chunk-I2BU6ZOQ.mjs +2 -0
  38. package/out/__chunks__/chunk-I2BU6ZOQ.mjs.map +7 -0
  39. package/out/__chunks__/{chunk-EGTBRUST.mjs → chunk-I2XLXOU2.mjs} +2 -2
  40. package/out/__chunks__/{chunk-FEBWXMEQ.mjs → chunk-IQVVCXXL.mjs} +2 -2
  41. package/out/__chunks__/chunk-JGWGDO7E.mjs +2 -0
  42. package/out/__chunks__/chunk-JJ2NEPU5.mjs +2 -0
  43. package/out/__chunks__/chunk-JJ2NEPU5.mjs.map +7 -0
  44. package/out/__chunks__/{chunk-EZTYSZGL.mjs → chunk-JMXZ4XDT.mjs} +2 -2
  45. package/out/__chunks__/{chunk-WR5VO5DQ.mjs → chunk-JYZ5XXJG.mjs} +2 -2
  46. package/out/__chunks__/{chunk-K6K2SOWR.mjs → chunk-KNRIU7GR.mjs} +2 -2
  47. package/out/__chunks__/chunk-KOALRMAA.mjs +2 -0
  48. package/out/__chunks__/{chunk-5YVI2NQR.mjs → chunk-LV2BL56O.mjs} +2 -2
  49. package/out/__chunks__/{chunk-HYRRZX3A.mjs → chunk-MAK5NFYN.mjs} +2 -2
  50. package/out/__chunks__/{chunk-PXMPUIUL.mjs → chunk-MH42KJTU.mjs} +2 -2
  51. package/out/__chunks__/{chunk-2MRUGIDM.mjs → chunk-MUYF2CWM.mjs} +2 -2
  52. package/out/__chunks__/{chunk-EWT7FW5B.mjs → chunk-MXLRZPMK.mjs} +2 -2
  53. package/out/__chunks__/{chunk-XKQ7QLV3.mjs → chunk-MYCXIA5W.mjs} +2 -2
  54. package/out/__chunks__/chunk-O67FZOYR.mjs +2 -0
  55. package/out/__chunks__/{chunk-SJEC4QGU.mjs → chunk-O67WFDS3.mjs} +2 -2
  56. package/out/__chunks__/{chunk-O7FXZNDF.mjs → chunk-ODIVUD2L.mjs} +2 -2
  57. package/out/__chunks__/{chunk-IBIFKTAD.mjs → chunk-OYY5ZF7L.mjs} +2 -2
  58. package/out/__chunks__/{chunk-5AFXH6GE.mjs → chunk-PH2YVVEA.mjs} +2 -2
  59. package/out/__chunks__/{chunk-RJZOP6PK.mjs → chunk-PLO67H6R.mjs} +2 -2
  60. package/out/__chunks__/{chunk-YXNXSK5J.mjs → chunk-PTLBE2H2.mjs} +2 -2
  61. package/out/__chunks__/{chunk-JTE52R3D.mjs → chunk-QCJMV6NU.mjs} +2 -2
  62. package/out/__chunks__/chunk-QYV4JQI5.mjs +2 -0
  63. package/out/__chunks__/{chunk-ZTSHJT5H.mjs → chunk-QZ27VHW6.mjs} +2 -2
  64. package/out/__chunks__/{chunk-SPVT5OQ4.mjs → chunk-R6QXUFY4.mjs} +2 -2
  65. package/out/__chunks__/{chunk-MTBXLPH7.mjs → chunk-RCRWI3XT.mjs} +2 -2
  66. package/out/__chunks__/{chunk-WLQ2BIPH.mjs → chunk-RG72LHS3.mjs} +2 -2
  67. package/out/__chunks__/{chunk-X4TJQCRA.mjs → chunk-RLVN434K.mjs} +2 -2
  68. package/out/__chunks__/{chunk-6IQVZPSC.mjs → chunk-RPBH7EFR.mjs} +2 -2
  69. package/out/__chunks__/chunk-RVO7H26H.mjs +2 -0
  70. package/out/__chunks__/chunk-RVO7H26H.mjs.map +7 -0
  71. package/out/__chunks__/chunk-S2FAYMW2.mjs +2 -0
  72. package/out/__chunks__/{chunk-5FEICWMB.mjs → chunk-SFZJXI7K.mjs} +2 -2
  73. package/out/__chunks__/{chunk-OB6ULJEV.mjs → chunk-SLBB2BEP.mjs} +2 -2
  74. package/out/__chunks__/{chunk-NCH5TP7V.mjs → chunk-SZHXVDHF.mjs} +2 -2
  75. package/out/__chunks__/{chunk-K6KK466Z.mjs → chunk-T5GA3FRJ.mjs} +2 -2
  76. package/out/__chunks__/chunk-TDUKMRJX.mjs +2 -0
  77. package/out/__chunks__/chunk-TDUKMRJX.mjs.map +7 -0
  78. package/out/__chunks__/{chunk-ZB22PQZV.mjs → chunk-TEYO3CV4.mjs} +2 -2
  79. package/out/__chunks__/chunk-TGCPDWQK.mjs +2 -0
  80. package/out/__chunks__/{chunk-LZW6D5GQ.mjs → chunk-VML7BRY5.mjs} +2 -2
  81. package/out/__chunks__/chunk-VOZWABCM.mjs +2 -0
  82. package/out/__chunks__/chunk-VTL2OSUK.mjs +2 -0
  83. package/out/__chunks__/{chunk-JN4ENKZ6.mjs → chunk-Y4OUAJSG.mjs} +2 -2
  84. package/out/__chunks__/chunk-YDGXPL33.mjs +2 -0
  85. package/out/__chunks__/{chunk-7UYT6KTI.mjs → chunk-YIWTWMQF.mjs} +2 -2
  86. package/out/__chunks__/{chunk-445KR45K.mjs → chunk-YMSRWWNA.mjs} +2 -2
  87. package/out/__chunks__/{chunk-ZRPLCZ4L.mjs → chunk-YVH7ZJXA.mjs} +2 -2
  88. package/out/__chunks__/{chunk-RIQNG4I7.mjs → chunk-Z6VA2J3J.mjs} +2 -2
  89. package/out/__chunks__/chunk-ZSHUGRGA.mjs +2 -0
  90. package/out/__mocks__/accountConfig.mjs +1 -1
  91. package/out/__mocks__/index.mjs +1 -1
  92. package/out/__mocks__/server.mjs +1 -1
  93. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  94. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  95. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  96. package/out/apiCalls/index.mjs +1 -1
  97. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  98. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  99. package/out/apiCalls/tokens/index.mjs +1 -1
  100. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  101. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  102. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  103. package/out/constants/browser.constants.mjs +1 -1
  104. package/out/constants/index.mjs +1 -1
  105. package/out/constants/storage.constants.mjs +1 -1
  106. package/out/constants/window.constants.mjs +1 -1
  107. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  108. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  109. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  110. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  111. package/out/index.mjs +1 -1
  112. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  113. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  114. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  115. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  116. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  117. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  118. package/out/managers/TransactionManager/helpers/getTransactionsStatus.mjs +1 -1
  119. package/out/managers/TransactionManager/index.mjs +1 -1
  120. package/out/managers/UnlockPanelManager/UnlockPanelManager.js +1 -3
  121. package/out/managers/UnlockPanelManager/UnlockPanelManager.js.map +1 -1
  122. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  123. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.d.ts +12 -5
  124. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.js.map +1 -1
  125. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.mjs +1 -1
  126. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  127. package/out/managers/index.mjs +1 -1
  128. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  129. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  130. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  131. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  132. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  133. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  134. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  135. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  136. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  137. package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
  138. package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
  139. package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  140. package/out/managers/internal/ToastManager/helpers/createTransactionToast.mjs +1 -1
  141. package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.mjs +1 -1
  142. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  143. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  144. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  145. package/out/managers/internal/index.mjs +1 -1
  146. package/out/methods/account/getAccount.mjs +1 -1
  147. package/out/methods/account/getAccountInfo.mjs +1 -1
  148. package/out/methods/account/getAddress.mjs +1 -1
  149. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  150. package/out/methods/account/getLatestNonce.mjs +1 -1
  151. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
  152. package/out/methods/initApp/initApp.js +2 -2
  153. package/out/methods/initApp/initApp.js.map +1 -1
  154. package/out/methods/initApp/initApp.mjs +1 -1
  155. package/out/methods/initApp/initApp.mjs.map +2 -2
  156. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  157. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  158. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  159. package/out/methods/network/getEgldLabel.mjs +1 -1
  160. package/out/methods/network/getExplorerAddress.mjs +1 -1
  161. package/out/methods/network/getNetworkConfig.mjs +1 -1
  162. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
  163. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  164. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  165. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
  166. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  167. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  168. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  169. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  170. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  171. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  172. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  173. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  174. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  175. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  176. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  177. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  178. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  179. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  180. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  181. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  182. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  183. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  184. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  185. package/out/providers/DappProvider/index.mjs +1 -1
  186. package/out/providers/ProviderFactory.mjs +1 -1
  187. package/out/providers/helpers/accountProvider.mjs +1 -1
  188. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  189. package/out/providers/helpers/restoreProvider.mjs +1 -1
  190. package/out/providers/index.mjs +1 -1
  191. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  192. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  193. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  194. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  195. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  196. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  197. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  198. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  199. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
  200. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
  201. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
  202. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
  203. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
  204. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
  205. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  206. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  207. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
  208. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  209. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  210. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  211. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  212. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  213. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  214. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  215. package/out/providers/strategies/helpers/index.mjs +1 -1
  216. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  217. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
  218. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  219. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  220. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
  221. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  222. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  223. package/out/providers/strategies/index.mjs +1 -1
  224. package/out/react/account/useGetAccount.mjs +1 -1
  225. package/out/react/account/useGetAccountInfo.mjs +1 -1
  226. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  227. package/out/react/account/useGetLatestNonce.mjs +1 -1
  228. package/out/react/index.mjs +1 -1
  229. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  230. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  231. package/out/react/store/getReactStore.mjs +1 -1
  232. package/out/react/store/useSelector.mjs +1 -1
  233. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  234. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  235. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  236. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  237. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  238. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  239. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  240. package/out/services/index.mjs +1 -1
  241. package/out/services/nativeAuth/helpers/index.mjs +1 -1
  242. package/out/services/nativeAuth/index.mjs +1 -1
  243. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  244. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.d.ts +2 -1
  245. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.js +12 -5
  246. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.js.map +1 -1
  247. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  248. package/out/services/nativeAuth/methods/index.mjs +1 -1
  249. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  250. package/out/store/actions/account/accountActions.mjs +1 -1
  251. package/out/store/actions/account/index.mjs +1 -1
  252. package/out/store/actions/cache/cacheActions.mjs +1 -1
  253. package/out/store/actions/cache/index.mjs +1 -1
  254. package/out/store/actions/config/configActions.mjs +1 -1
  255. package/out/store/actions/config/index.mjs +1 -1
  256. package/out/store/actions/index.mjs +1 -1
  257. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  258. package/out/store/actions/network/index.mjs +1 -1
  259. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  260. package/out/store/actions/network/networkActions.mjs +1 -1
  261. package/out/store/actions/sharedActions/index.mjs +1 -1
  262. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  263. package/out/store/actions/toasts/index.mjs +1 -1
  264. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  265. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  266. package/out/store/actions/ui/index.mjs +1 -1
  267. package/out/store/actions/ui/uiActions.mjs +1 -1
  268. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  269. package/out/store/middleware/index.mjs +1 -1
  270. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  271. package/out/store/selectors/index.mjs +1 -1
  272. package/out/store/slices/index.mjs +1 -1
  273. package/out/store/storage/index.mjs +1 -1
  274. package/out/store/storage/storageCallback.mjs +1 -1
  275. package/out/store/store.mjs +1 -1
  276. package/out/types/index.mjs +1 -1
  277. package/out/utils/ComponentFactory.mjs +1 -1
  278. package/out/utils/account/index.d.ts +1 -0
  279. package/out/utils/account/index.js +1 -0
  280. package/out/utils/account/index.js.map +1 -1
  281. package/out/utils/account/index.mjs +1 -1
  282. package/out/utils/account/refreshAccount.mjs +1 -1
  283. package/out/{core/providers/DappProvider/helpers/login/helpers → utils/account}/refreshNativeAuthTokenLogin.d.ts +2 -2
  284. package/out/{core/providers/DappProvider/helpers/login/helpers → utils/account}/refreshNativeAuthTokenLogin.js +6 -9
  285. package/out/utils/account/refreshNativeAuthTokenLogin.js.map +1 -0
  286. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +2 -0
  287. package/out/utils/account/refreshNativeAuthTokenLogin.mjs.map +7 -0
  288. package/out/utils/index.mjs +1 -1
  289. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  290. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
  291. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  292. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
  293. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
  294. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
  295. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
  296. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
  297. package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
  298. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  299. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  300. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.mjs +1 -1
  301. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
  302. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  303. package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.mjs +1 -1
  304. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  305. package/out/utils/transactions/index.mjs +1 -1
  306. package/out/utils/validation/index.mjs +1 -1
  307. package/out/utils/validation/isContract.mjs +1 -1
  308. package/out/utils/visual/index.mjs +1 -1
  309. package/out/utils/visual/switchTheme.mjs +1 -1
  310. package/out/utils/window/getIsInIframe.mjs +1 -1
  311. package/out/utils/window/getWindowLocation.js +7 -1
  312. package/out/utils/window/getWindowLocation.js.map +1 -1
  313. package/out/utils/window/getWindowLocation.mjs +1 -1
  314. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  315. package/out/utils/window/index.mjs +1 -1
  316. package/package.json +2 -2
  317. package/out/__chunks__/chunk-26OSAWCY.mjs +0 -2
  318. package/out/__chunks__/chunk-2AK3JMSZ.mjs +0 -2
  319. package/out/__chunks__/chunk-4F4TBUGV.mjs +0 -2
  320. package/out/__chunks__/chunk-6JD2RV7R.mjs +0 -2
  321. package/out/__chunks__/chunk-AIDEMTSX.mjs +0 -2
  322. package/out/__chunks__/chunk-DZYZMEIP.mjs +0 -2
  323. package/out/__chunks__/chunk-EEPC4DL4.mjs +0 -2
  324. package/out/__chunks__/chunk-GYKOIGBE.mjs +0 -2
  325. package/out/__chunks__/chunk-HQSRSRDM.mjs +0 -2
  326. package/out/__chunks__/chunk-HQSRSRDM.mjs.map +0 -7
  327. package/out/__chunks__/chunk-I6KLJQ6O.mjs +0 -2
  328. package/out/__chunks__/chunk-IMGZJVC6.mjs +0 -2
  329. package/out/__chunks__/chunk-IMGZJVC6.mjs.map +0 -7
  330. package/out/__chunks__/chunk-JHDJG624.mjs +0 -2
  331. package/out/__chunks__/chunk-JWW3XX4N.mjs +0 -2
  332. package/out/__chunks__/chunk-LRHRFWQ4.mjs +0 -2
  333. package/out/__chunks__/chunk-LRHRFWQ4.mjs.map +0 -7
  334. package/out/__chunks__/chunk-MMTACNKE.mjs +0 -2
  335. package/out/__chunks__/chunk-NJQKLGPR.mjs +0 -2
  336. package/out/__chunks__/chunk-QVJFFSJF.mjs +0 -2
  337. package/out/__chunks__/chunk-SJ34PIXB.mjs +0 -2
  338. package/out/__chunks__/chunk-SKITNSPD.mjs +0 -2
  339. package/out/__chunks__/chunk-V4SLVI67.mjs +0 -2
  340. package/out/__chunks__/chunk-XIOTX2GI.mjs +0 -2
  341. package/out/__chunks__/chunk-YB2E5WOO.mjs +0 -2
  342. package/out/__chunks__/chunk-YB2E5WOO.mjs.map +0 -7
  343. package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.js.map +0 -1
  344. package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs +0 -2
  345. package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs.map +0 -7
  346. /package/out/__chunks__/{chunk-Z6RETW2C.mjs.map → chunk-33V2XBND.mjs.map} +0 -0
  347. /package/out/__chunks__/{chunk-DZYZMEIP.mjs.map → chunk-4KABQZJU.mjs.map} +0 -0
  348. /package/out/__chunks__/{chunk-2E7KLTVM.mjs.map → chunk-4MNCFSUO.mjs.map} +0 -0
  349. /package/out/__chunks__/{chunk-EEPC4DL4.mjs.map → chunk-4NXTT4UR.mjs.map} +0 -0
  350. /package/out/__chunks__/{chunk-PZLVK2W5.mjs.map → chunk-4USFY3DC.mjs.map} +0 -0
  351. /package/out/__chunks__/{chunk-LNZQ2M65.mjs.map → chunk-532QQEN4.mjs.map} +0 -0
  352. /package/out/__chunks__/{chunk-BVKXSTQF.mjs.map → chunk-5MDDPC5M.mjs.map} +0 -0
  353. /package/out/__chunks__/{chunk-K66JLLVW.mjs.map → chunk-7H2PZVSJ.mjs.map} +0 -0
  354. /package/out/__chunks__/{chunk-A77C5T7Q.mjs.map → chunk-7RFUEHZX.mjs.map} +0 -0
  355. /package/out/__chunks__/{chunk-QY5O4PX2.mjs.map → chunk-AI7LYKBU.mjs.map} +0 -0
  356. /package/out/__chunks__/{chunk-TKORCVYO.mjs.map → chunk-AZ2KOM5R.mjs.map} +0 -0
  357. /package/out/__chunks__/{chunk-SQ4KCFCC.mjs.map → chunk-AZGVI4QW.mjs.map} +0 -0
  358. /package/out/__chunks__/{chunk-JWW3XX4N.mjs.map → chunk-BLUKJJTY.mjs.map} +0 -0
  359. /package/out/__chunks__/{chunk-PFCHZJJO.mjs.map → chunk-BTXVE2KE.mjs.map} +0 -0
  360. /package/out/__chunks__/{chunk-SXXJRX5W.mjs.map → chunk-C3F3EPNZ.mjs.map} +0 -0
  361. /package/out/__chunks__/{chunk-FO3JMB6I.mjs.map → chunk-CBH7E57H.mjs.map} +0 -0
  362. /package/out/__chunks__/{chunk-GYKOIGBE.mjs.map → chunk-CMEBBADF.mjs.map} +0 -0
  363. /package/out/__chunks__/{chunk-RWZQKTSO.mjs.map → chunk-CRHPVNRL.mjs.map} +0 -0
  364. /package/out/__chunks__/{chunk-4DI7PQFP.mjs.map → chunk-CUABBK2P.mjs.map} +0 -0
  365. /package/out/__chunks__/{chunk-SS6PDIDN.mjs.map → chunk-EBQZQA2Q.mjs.map} +0 -0
  366. /package/out/__chunks__/{chunk-HUQ6AJBO.mjs.map → chunk-EO6CD6VO.mjs.map} +0 -0
  367. /package/out/__chunks__/{chunk-KYJF7WU3.mjs.map → chunk-ES6E2HM6.mjs.map} +0 -0
  368. /package/out/__chunks__/{chunk-ISQDJSDA.mjs.map → chunk-F4W3N3JZ.mjs.map} +0 -0
  369. /package/out/__chunks__/{chunk-HL3U3QQR.mjs.map → chunk-F4WQOPSX.mjs.map} +0 -0
  370. /package/out/__chunks__/{chunk-NJQKLGPR.mjs.map → chunk-FGRMMCGF.mjs.map} +0 -0
  371. /package/out/__chunks__/{chunk-INLU2YOE.mjs.map → chunk-GFK4E7GU.mjs.map} +0 -0
  372. /package/out/__chunks__/{chunk-32BLYKZG.mjs.map → chunk-GRD5MWEG.mjs.map} +0 -0
  373. /package/out/__chunks__/{chunk-2HVZ5F32.mjs.map → chunk-GXMIT5JQ.mjs.map} +0 -0
  374. /package/out/__chunks__/{chunk-6JD2RV7R.mjs.map → chunk-GZAAD3TR.mjs.map} +0 -0
  375. /package/out/__chunks__/{chunk-GYUFALJV.mjs.map → chunk-GZTGHNVI.mjs.map} +0 -0
  376. /package/out/__chunks__/{chunk-XIOTX2GI.mjs.map → chunk-HACVN4R6.mjs.map} +0 -0
  377. /package/out/__chunks__/{chunk-EGTBRUST.mjs.map → chunk-I2XLXOU2.mjs.map} +0 -0
  378. /package/out/__chunks__/{chunk-FEBWXMEQ.mjs.map → chunk-IQVVCXXL.mjs.map} +0 -0
  379. /package/out/__chunks__/{chunk-26OSAWCY.mjs.map → chunk-JGWGDO7E.mjs.map} +0 -0
  380. /package/out/__chunks__/{chunk-EZTYSZGL.mjs.map → chunk-JMXZ4XDT.mjs.map} +0 -0
  381. /package/out/__chunks__/{chunk-WR5VO5DQ.mjs.map → chunk-JYZ5XXJG.mjs.map} +0 -0
  382. /package/out/__chunks__/{chunk-K6K2SOWR.mjs.map → chunk-KNRIU7GR.mjs.map} +0 -0
  383. /package/out/__chunks__/{chunk-2AK3JMSZ.mjs.map → chunk-KOALRMAA.mjs.map} +0 -0
  384. /package/out/__chunks__/{chunk-5YVI2NQR.mjs.map → chunk-LV2BL56O.mjs.map} +0 -0
  385. /package/out/__chunks__/{chunk-HYRRZX3A.mjs.map → chunk-MAK5NFYN.mjs.map} +0 -0
  386. /package/out/__chunks__/{chunk-PXMPUIUL.mjs.map → chunk-MH42KJTU.mjs.map} +0 -0
  387. /package/out/__chunks__/{chunk-2MRUGIDM.mjs.map → chunk-MUYF2CWM.mjs.map} +0 -0
  388. /package/out/__chunks__/{chunk-EWT7FW5B.mjs.map → chunk-MXLRZPMK.mjs.map} +0 -0
  389. /package/out/__chunks__/{chunk-XKQ7QLV3.mjs.map → chunk-MYCXIA5W.mjs.map} +0 -0
  390. /package/out/__chunks__/{chunk-SJ34PIXB.mjs.map → chunk-O67FZOYR.mjs.map} +0 -0
  391. /package/out/__chunks__/{chunk-SJEC4QGU.mjs.map → chunk-O67WFDS3.mjs.map} +0 -0
  392. /package/out/__chunks__/{chunk-O7FXZNDF.mjs.map → chunk-ODIVUD2L.mjs.map} +0 -0
  393. /package/out/__chunks__/{chunk-IBIFKTAD.mjs.map → chunk-OYY5ZF7L.mjs.map} +0 -0
  394. /package/out/__chunks__/{chunk-5AFXH6GE.mjs.map → chunk-PH2YVVEA.mjs.map} +0 -0
  395. /package/out/__chunks__/{chunk-RJZOP6PK.mjs.map → chunk-PLO67H6R.mjs.map} +0 -0
  396. /package/out/__chunks__/{chunk-YXNXSK5J.mjs.map → chunk-PTLBE2H2.mjs.map} +0 -0
  397. /package/out/__chunks__/{chunk-JTE52R3D.mjs.map → chunk-QCJMV6NU.mjs.map} +0 -0
  398. /package/out/__chunks__/{chunk-JHDJG624.mjs.map → chunk-QYV4JQI5.mjs.map} +0 -0
  399. /package/out/__chunks__/{chunk-ZTSHJT5H.mjs.map → chunk-QZ27VHW6.mjs.map} +0 -0
  400. /package/out/__chunks__/{chunk-SPVT5OQ4.mjs.map → chunk-R6QXUFY4.mjs.map} +0 -0
  401. /package/out/__chunks__/{chunk-MTBXLPH7.mjs.map → chunk-RCRWI3XT.mjs.map} +0 -0
  402. /package/out/__chunks__/{chunk-WLQ2BIPH.mjs.map → chunk-RG72LHS3.mjs.map} +0 -0
  403. /package/out/__chunks__/{chunk-X4TJQCRA.mjs.map → chunk-RLVN434K.mjs.map} +0 -0
  404. /package/out/__chunks__/{chunk-6IQVZPSC.mjs.map → chunk-RPBH7EFR.mjs.map} +0 -0
  405. /package/out/__chunks__/{chunk-QVJFFSJF.mjs.map → chunk-S2FAYMW2.mjs.map} +0 -0
  406. /package/out/__chunks__/{chunk-5FEICWMB.mjs.map → chunk-SFZJXI7K.mjs.map} +0 -0
  407. /package/out/__chunks__/{chunk-OB6ULJEV.mjs.map → chunk-SLBB2BEP.mjs.map} +0 -0
  408. /package/out/__chunks__/{chunk-NCH5TP7V.mjs.map → chunk-SZHXVDHF.mjs.map} +0 -0
  409. /package/out/__chunks__/{chunk-K6KK466Z.mjs.map → chunk-T5GA3FRJ.mjs.map} +0 -0
  410. /package/out/__chunks__/{chunk-ZB22PQZV.mjs.map → chunk-TEYO3CV4.mjs.map} +0 -0
  411. /package/out/__chunks__/{chunk-I6KLJQ6O.mjs.map → chunk-TGCPDWQK.mjs.map} +0 -0
  412. /package/out/__chunks__/{chunk-LZW6D5GQ.mjs.map → chunk-VML7BRY5.mjs.map} +0 -0
  413. /package/out/__chunks__/{chunk-4F4TBUGV.mjs.map → chunk-VOZWABCM.mjs.map} +0 -0
  414. /package/out/__chunks__/{chunk-MMTACNKE.mjs.map → chunk-VTL2OSUK.mjs.map} +0 -0
  415. /package/out/__chunks__/{chunk-JN4ENKZ6.mjs.map → chunk-Y4OUAJSG.mjs.map} +0 -0
  416. /package/out/__chunks__/{chunk-SKITNSPD.mjs.map → chunk-YDGXPL33.mjs.map} +0 -0
  417. /package/out/__chunks__/{chunk-7UYT6KTI.mjs.map → chunk-YIWTWMQF.mjs.map} +0 -0
  418. /package/out/__chunks__/{chunk-445KR45K.mjs.map → chunk-YMSRWWNA.mjs.map} +0 -0
  419. /package/out/__chunks__/{chunk-ZRPLCZ4L.mjs.map → chunk-YVH7ZJXA.mjs.map} +0 -0
  420. /package/out/__chunks__/{chunk-RIQNG4I7.mjs.map → chunk-Z6VA2J3J.mjs.map} +0 -0
  421. /package/out/__chunks__/{chunk-V4SLVI67.mjs.map → chunk-ZSHUGRGA.mjs.map} +0 -0
@@ -1,2 +0,0 @@
1
- import{u as e}from"./chunk-GYUFALJV.mjs";import{f as t}from"./chunk-QJSB5NX4.mjs";function n(o=e()){return t(o)}export{n as a};
2
- //# sourceMappingURL=chunk-GYKOIGBE.mjs.map
@@ -1,2 +0,0 @@
1
- import{d as s}from"./chunk-SXXJRX5W.mjs";import{a as p}from"./chunk-SQ4KCFCC.mjs";import{u as c}from"./chunk-GYUFALJV.mjs";import{b as d}from"./chunk-SAAOQW7P.mjs";import{a as v}from"./chunk-REI3WYXH.mjs";import{a}from"./chunk-OJV6XRG5.mjs";var n=class n extends p{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:e}=d(c());this.data={providers:this.getProvidersList(),walletAddress:e},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async e=>{!e?.isLoginFinished&&n.onClose&&n.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:o})=>{if(!n.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(n.loginHandler)?(await(await s.create({type:e,anchor:o})).login(),n.loginHandler()):n.loginHandler({type:e,anchor:o}),await this.handleCloseUI({isLoginFinished:!0})}catch(r){console.error(r),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await s.destroy()};this.isSimpleLoginCallback=e=>e.length===0;this.data=this.initialData}static getInstance(){return n.instance||(n.instance=new n),n.instance}static init(e){return this.loginHandler=e.loginHandler,this.allowedProviders=e.allowedProviders,e.onClose&&(this.onClose=e.onClose),this.getInstance()}getProvidersList(){let e=s.customProviders,r=[...Object.values(a).filter(i=>i!==a.none&&i!==a.webview),...e.map(i=>i.type)],P=e.reduce((i,t)=>(i[t.type]=t.name,i),{}),l={...v,...P};return(n.allowedProviders?n?.allowedProviders.map(i=>i.type).filter(i=>r.includes(i)):r).map(i=>{let t=e.find(g=>g.type===i);return t||{name:i in l?l[i]:i,type:i}})}};n.loginHandler=null,n.onClose=null,n.allowedProviders=null;var u=n;export{u as a};
2
- //# sourceMappingURL=chunk-HQSRSRDM.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/managers/UnlockPanelManager/UnlockPanelManager.ts"],
4
- "sourcesContent": ["import { providerLabels } from 'constants/providerFactory.constants';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxUnlockPanel } from 'lib/sdkDappUi';\nimport { ProviderFactory } from 'providers/ProviderFactory';\nimport {\n IProviderBase,\n IProviderFactory,\n ICustomProvider,\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { networkSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport {\n OnCloseUnlockPanelType,\n LoginHandlerType,\n UnlockPanelEventsEnum,\n UnlockPanelManagerInitParamsType\n} from './UnlockPanelManager.types';\nimport { SidePanelBaseManager } from '../internal/SidePanelBaseManager';\n\ninterface IUnlockPanelManagerData {\n providers: IProviderBase[] | null;\n walletAddress: string | null;\n}\n\nexport class UnlockPanelManager extends SidePanelBaseManager<\n MvxUnlockPanel,\n IUnlockPanelManagerData,\n UnlockPanelEventsEnum\n> {\n protected initialData: IUnlockPanelManagerData = {\n providers: null,\n walletAddress: null\n };\n\n private static instance: UnlockPanelManager;\n private static loginHandler: LoginHandlerType | null = null;\n private static onClose: OnCloseUnlockPanelType | null = null;\n private static allowedProviders?: ICustomProvider[] | null = null;\n\n constructor() {\n super({\n uiTag: UITagsEnum.UNLOCK_PANEL,\n uiDataUpdateEvent: UnlockPanelEventsEnum.OPEN\n });\n\n this.data = this.initialData;\n }\n\n public static getInstance(): UnlockPanelManager {\n if (!UnlockPanelManager.instance) {\n UnlockPanelManager.instance = new UnlockPanelManager();\n }\n return UnlockPanelManager.instance;\n }\n\n public static init(params: UnlockPanelManagerInitParamsType) {\n this.loginHandler = params.loginHandler;\n this.allowedProviders = params.allowedProviders;\n\n if (params.onClose) {\n this.onClose = params.onClose;\n }\n\n return this.getInstance();\n }\n\n public openUnlockPanel = async () => {\n const { walletAddress } = networkSelector(getState());\n\n this.data = {\n providers: this.getProvidersList(),\n walletAddress\n };\n\n await this.openUI();\n this.notifyDataUpdate();\n };\n\n protected setupEventListeners = async () => {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(UnlockPanelEventsEnum.LOGIN, this.handleLogin);\n this.subscribeToEventBus(\n UnlockPanelEventsEnum.CANCEL_LOGIN,\n this.handleCancelLogin\n );\n this.subscribeToEventBus(UnlockPanelEventsEnum.CLOSE, this.handleCloseUI);\n };\n\n private readonly handleCloseUI = async (options?: {\n isLoginFinished?: boolean;\n }) => {\n if (!options?.isLoginFinished && UnlockPanelManager.onClose) {\n UnlockPanelManager.onClose();\n }\n\n this.closeUI();\n };\n\n private readonly handleLogin = async ({ type, anchor }: IProviderFactory) => {\n if (!UnlockPanelManager.loginHandler) {\n throw new Error(\n 'Login callback not initialized. Please call `init()` first.'\n );\n }\n\n try {\n if (this.isSimpleLoginCallback(UnlockPanelManager.loginHandler)) {\n const provider = await ProviderFactory.create({ type, anchor });\n await provider.login();\n UnlockPanelManager.loginHandler();\n } else {\n UnlockPanelManager.loginHandler({ type, anchor });\n }\n await this.handleCloseUI({ isLoginFinished: true });\n } catch (error) {\n console.error(error);\n this.eventBus?.publish(\n UnlockPanelEventsEnum.CANCEL_IN_PROVIDER,\n this.data\n );\n }\n };\n\n private readonly handleCancelLogin = async () => {\n await ProviderFactory.destroy();\n };\n\n private readonly isSimpleLoginCallback = (\n login: LoginHandlerType\n ): login is () => void => {\n const takesZeroArguments = login.length === 0;\n return takesZeroArguments;\n };\n\n private getProvidersList(): IProviderBase[] {\n const customProviders = ProviderFactory.customProviders;\n\n const defaultProviderTypes = Object.values(ProviderTypeEnum).filter(\n (type) =>\n type !== ProviderTypeEnum.none && type !== ProviderTypeEnum.webview\n );\n\n const allAvailableProviderTypes = [\n ...defaultProviderTypes,\n ...customProviders.map((p) => p.type)\n ];\n\n const customProviderLabels = customProviders.reduce(\n (acc, provider) => {\n acc[provider.type] = provider.name;\n return acc;\n },\n {} as Record<ProviderType, string>\n );\n\n const allAvailableLabels = {\n ...providerLabels,\n ...customProviderLabels\n };\n\n const allowedProviderTypes = UnlockPanelManager.allowedProviders\n ? UnlockPanelManager?.allowedProviders\n .map((p) => p.type)\n .filter((type) => allAvailableProviderTypes.includes(type))\n : allAvailableProviderTypes;\n\n const providerList = allowedProviderTypes.map((type) => {\n const custom = customProviders.find(\n (customProvider) => customProvider.type === type\n );\n if (custom) {\n return custom;\n }\n\n return {\n name: type in allAvailableLabels ? allAvailableLabels[type] : type,\n type\n };\n });\n\n return providerList;\n }\n}\n"],
5
- "mappings": "iPA0BO,IAAMA,EAAN,MAAMA,UAA2BC,CAItC,CAWA,aAAc,CACZ,MAAM,CACJ,yBACA,wBACF,CAAC,EAdH,KAAU,YAAuC,CAC/C,UAAW,KACX,cAAe,IACjB,EAkCA,KAAO,gBAAkB,SAAY,CACnC,GAAM,CAAE,cAAAC,CAAc,EAAIC,EAAgBC,EAAS,CAAC,EAEpD,KAAK,KAAO,CACV,UAAW,KAAK,iBAAiB,EACjC,cAAAF,CACF,EAEA,MAAM,KAAK,OAAO,EAClB,KAAK,iBAAiB,CACxB,EAEA,KAAU,oBAAsB,SAAY,CACrC,KAAK,WAIV,KAAK,4BAAiD,KAAK,WAAW,EACtE,KAAK,mCAEH,KAAK,iBACP,EACA,KAAK,4BAAiD,KAAK,aAAa,EAC1E,EAEA,KAAiB,cAAgB,MAAOG,GAElC,CACA,CAACA,GAAS,iBAAmBL,EAAmB,SAClDA,EAAmB,QAAQ,EAG7B,KAAK,QAAQ,CACf,EAEA,KAAiB,YAAc,MAAO,CAAE,KAAAM,EAAM,OAAAC,CAAO,IAAwB,CAC3E,GAAI,CAACP,EAAmB,aACtB,MAAM,IAAI,MACR,6DACF,EAGF,GAAI,CACE,KAAK,sBAAsBA,EAAmB,YAAY,GAE5D,MADiB,MAAMQ,EAAgB,OAAO,CAAE,KAAAF,EAAM,OAAAC,CAAO,CAAC,GAC/C,MAAM,EACrBP,EAAmB,aAAa,GAEhCA,EAAmB,aAAa,CAAE,KAAAM,EAAM,OAAAC,CAAO,CAAC,EAElD,MAAM,KAAK,cAAc,CAAE,gBAAiB,EAAK,CAAC,CACpD,OAASE,EAAO,CACd,QAAQ,MAAMA,CAAK,EACnB,KAAK,UAAU,6BAEb,KAAK,IACP,CACF,CACF,EAEA,KAAiB,kBAAoB,SAAY,CAC/C,MAAMD,EAAgB,QAAQ,CAChC,EAEA,KAAiB,sBACfE,GAE2BA,EAAM,SAAW,EAxF5C,KAAK,KAAO,KAAK,WACnB,CAEA,OAAc,aAAkC,CAC9C,OAAKV,EAAmB,WACtBA,EAAmB,SAAW,IAAIA,GAE7BA,EAAmB,QAC5B,CAEA,OAAc,KAAKW,EAA0C,CAC3D,YAAK,aAAeA,EAAO,aAC3B,KAAK,iBAAmBA,EAAO,iBAE3BA,EAAO,UACT,KAAK,QAAUA,EAAO,SAGjB,KAAK,YAAY,CAC1B,CAyEQ,kBAAoC,CAC1C,IAAMC,EAAkBJ,EAAgB,gBAOlCK,EAA4B,CAChC,GAN2B,OAAO,OAAOC,CAAgB,EAAE,OAC1DR,GACCA,IAASQ,EAAiB,MAAQR,IAASQ,EAAiB,OAChE,EAIE,GAAGF,EAAgB,IAAKG,GAAMA,EAAE,IAAI,CACtC,EAEMC,EAAuBJ,EAAgB,OAC3C,CAACK,EAAKC,KACJD,EAAIC,EAAS,IAAI,EAAIA,EAAS,KACvBD,GAET,CAAC,CACH,EAEME,EAAqB,CACzB,GAAGC,EACH,GAAGJ,CACL,EAsBA,OApB6BhB,EAAmB,iBAC5CA,GAAoB,iBACjB,IAAKe,GAAMA,EAAE,IAAI,EACjB,OAAQT,GAASO,EAA0B,SAASP,CAAI,CAAC,EAC5DO,GAEsC,IAAKP,GAAS,CACtD,IAAMe,EAAST,EAAgB,KAC5BU,GAAmBA,EAAe,OAAShB,CAC9C,EACA,OAAIe,GAIG,CACL,KAAMf,KAAQa,EAAqBA,EAAmBb,CAAI,EAAIA,EAC9D,KAAAA,CACF,CACF,CAAC,CAGH,CACF,EAjKaN,EAWI,aAAwC,KAX5CA,EAYI,QAAyC,KAZ7CA,EAaI,iBAA8C,KAbxD,IAAMuB,EAANvB",
6
- "names": ["_UnlockPanelManager", "SidePanelBaseManager", "walletAddress", "networkSelector", "getState", "options", "type", "anchor", "ProviderFactory", "error", "login", "params", "customProviders", "allAvailableProviderTypes", "ProviderTypeEnum", "p", "customProviderLabels", "acc", "provider", "allAvailableLabels", "providerLabels", "custom", "customProvider", "UnlockPanelManager"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as o}from"./chunk-Z6RETW2C.mjs";import{b as s}from"./chunk-TQA3JDNV.mjs";import{u as n}from"./chunk-GYUFALJV.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-I6KLJQ6O.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as o}from"./chunk-LRHRFWQ4.mjs";var n=(t="https://api.multiversx.com")=>({origin:o().origin,apiAddress:t,expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60});export{n as a};
2
- //# sourceMappingURL=chunk-IMGZJVC6.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/services/nativeAuth/methods/getDefaultNativeAuthConfig.ts"],
4
- "sourcesContent": ["import { getWindowLocation } from 'utils/window/getWindowLocation';\n\nexport const getDefaultNativeAuthConfig = (\n apiAddress = 'https://api.multiversx.com'\n) => {\n return {\n origin: getWindowLocation().origin,\n apiAddress,\n expirySeconds: 60 * 60 * 24, // one day\n tokenExpirationToastWarningSeconds: 5 * 60 // five minutes\n };\n};\n"],
5
- "mappings": "yCAEO,IAAMA,EAA6B,CACxCC,EAAa,gCAEN,CACL,OAAQC,EAAkB,EAAE,OAC5B,WAAAD,EACA,cAAe,GAAK,GAAK,GACzB,mCAAoC,EAAI,EAC1C",
6
- "names": ["getDefaultNativeAuthConfig", "apiAddress", "getWindowLocation"]
7
- }
@@ -1,2 +0,0 @@
1
- import{u as t}from"./chunk-GYUFALJV.mjs";import{c as r}from"./chunk-QJSB5NX4.mjs";function m(e=t()){return r(e)}export{m as a};
2
- //# sourceMappingURL=chunk-JHDJG624.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-IBIFKTAD.mjs";var o={async getTransactionsHistory(s){return await t(s)}};export{o as a};
2
- //# sourceMappingURL=chunk-JWW3XX4N.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as i}from"./chunk-B2UIPHJ3.mjs";var h=()=>{if(!i())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:n,hash:t,origin:a,href:o,search:e}}=window;return{pathname:n,hash:t,origin:a,href:o,search:e}};export{h as a};
2
- //# sourceMappingURL=chunk-LRHRFWQ4.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/utils/window/getWindowLocation.ts"],
4
- "sourcesContent": ["import { isWindowAvailable } from './isWindowAvailable';\n\ntype GetWindowLocationType = {\n pathname: string;\n hash: string;\n origin: string;\n href: string;\n search: string;\n};\n\nexport const getWindowLocation = (): GetWindowLocationType => {\n const isAvailable = isWindowAvailable();\n\n if (!isAvailable) {\n return {\n pathname: '',\n hash: '',\n origin: '',\n href: '',\n search: ''\n };\n }\n\n const {\n location: { pathname, hash, origin, href, search }\n } = window;\n\n return {\n pathname,\n hash,\n origin,\n href,\n search\n };\n};\n"],
5
- "mappings": "yCAUO,IAAMA,EAAoB,IAA6B,CAG5D,GAAI,CAFgBC,EAAkB,EAGpC,MAAO,CACL,SAAU,GACV,KAAM,GACN,OAAQ,GACR,KAAM,GACN,OAAQ,EACV,EAGF,GAAM,CACJ,SAAU,CAAE,SAAAC,EAAU,KAAAC,EAAM,OAAAC,EAAQ,KAAAC,EAAM,OAAAC,CAAO,CACnD,EAAI,OAEJ,MAAO,CACL,SAAAJ,EACA,KAAAC,EACA,OAAAC,EACA,KAAAC,EACA,OAAAC,CACF,CACF",
6
- "names": ["getWindowLocation", "isWindowAvailable", "pathname", "hash", "origin", "href", "search"]
7
- }
@@ -1,2 +0,0 @@
1
- import{d as p}from"./chunk-SXXJRX5W.mjs";import{a as f}from"./chunk-GYKOIGBE.mjs";import{s as n}from"./chunk-PFCHZJJO.mjs";import{u as i}from"./chunk-GYUFALJV.mjs";import{d as t}from"./chunk-VNLGNNIL.mjs";import{a as e}from"./chunk-OJV6XRG5.mjs";import{a as m}from"./chunk-HUQ6AJBO.mjs";async function y(){let c=m(),s=f(),r=c?e.webview:t(i());if(!r)return;let o=await p.create({type:r});if(!o)throw new Error("Provider not found");!s&&r===e.webview&&await o.login(),n(o)}export{y as a};
2
- //# sourceMappingURL=chunk-MMTACNKE.mjs.map
@@ -1,2 +0,0 @@
1
- import{u as o}from"./chunk-GYUFALJV.mjs";import{b as t}from"./chunk-QJSB5NX4.mjs";function c(r=o()){return t(r)}export{c as a};
2
- //# sourceMappingURL=chunk-NJQKLGPR.mjs.map
@@ -1,2 +0,0 @@
1
- import{u as t}from"./chunk-GYUFALJV.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";function g(r=t()){return e(r).egldLabel}export{g as a};
2
- //# sourceMappingURL=chunk-QVJFFSJF.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-PXMPUIUL.mjs";import{c as n}from"./chunk-GYUFALJV.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-SJ34PIXB.mjs.map
@@ -1,2 +0,0 @@
1
- import{u as e}from"./chunk-GYUFALJV.mjs";import{b as r}from"./chunk-SAAOQW7P.mjs";function d(t=e()){return r(t).explorerAddress}export{d as a};
2
- //# sourceMappingURL=chunk-SKITNSPD.mjs.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-AIDEMTSX.mjs";var o=()=>a.localStorage;export{o as a};
2
- //# sourceMappingURL=chunk-V4SLVI67.mjs.map
@@ -1,2 +0,0 @@
1
- import{u as o}from"./chunk-GYUFALJV.mjs";import{a as t}from"./chunk-SAAOQW7P.mjs";function f(r=o()){return t(r)}export{f as a};
2
- //# sourceMappingURL=chunk-XIOTX2GI.mjs.map
@@ -1,2 +0,0 @@
1
- var o=(e=>(e.OPEN="OPEN",e.CLOSE="CLOSE",e.LOGIN="LOGIN",e.CANCEL_LOGIN="CANCEL_LOGIN",e.CANCEL_IN_PROVIDER="CANCEL_IN_PROVIDER",e.ANCHOR_CLOSE="ANCHOR_CLOSE",e))(o||{});export{o as a};
2
- //# sourceMappingURL=chunk-YB2E5WOO.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/managers/UnlockPanelManager/UnlockPanelManager.types.ts"],
4
- "sourcesContent": ["import {\n ICustomProvider,\n IProviderFactory,\n ProviderType\n} from 'providers/types/providerFactory.types';\n\nexport enum UnlockPanelEventsEnum {\n OPEN = 'OPEN',\n CLOSE = 'CLOSE',\n LOGIN = 'LOGIN',\n CANCEL_LOGIN = 'CANCEL_LOGIN',\n CANCEL_IN_PROVIDER = 'CANCEL_IN_PROVIDER',\n /**\n * User clicks Close button inside mounted provider\n */\n ANCHOR_CLOSE = 'ANCHOR_CLOSE'\n}\n\nexport type LoginFunctonType = ({\n type,\n anchor\n}: IProviderFactory) => Promise<void>;\n\nexport type CustomProviderViewType<T extends ProviderType = ProviderType> =\n Omit<ICustomProvider<T>, 'constructor'>;\n\nexport type LoginCallbackType = () => void;\n\nexport type LoginHandlerType = LoginFunctonType | LoginCallbackType;\nexport type OnCloseUnlockPanelType = () => void;\n\nexport type UnlockPanelManagerInitParamsType<\n T extends ProviderType = ProviderType\n> = {\n /**\n * Accepts:\n * - 1\uFE0F\u20E3 a `callback` that is executed after login is performed\n * - 2\uFE0F\u20E3 a `function` that handles the full login process\n * @example\n * ```ts\n * // 1\uFE0F\u20E3 callback\n () => {\n navigate('/dashboard');\n };\n // 2\uFE0F\u20E3 login handler function\n async ({ type, anchor }: IProviderFactory) => {\n const provider = await ProviderFactory.create({\n type,\n anchor\n });\n await provider?.login();\n navigate('/dashboard');\n };\n * ```\n */\n loginHandler: LoginHandlerType;\n /**\n * List of allowed providers\n */\n allowedProviders?: ICustomProvider<T>[] | null;\n /**\n * Callback function to handle UI behavior when the unlock panel is closed\n * without completing the login process.\n *\n * Common use case: redirecting the user away from the `/unlock` route\n * (e.g., back to the homepage or a previous screen) when login is cancelled or skipped.\n * \n * @example\n * ```ts\n onClose: () => {\n navigate('/');\n }\n * ```\n */\n onClose?: OnCloseUnlockPanelType;\n};\n"],
5
- "mappings": "AAMO,IAAKA,OACVA,EAAA,KAAO,OACPA,EAAA,MAAQ,QACRA,EAAA,MAAQ,QACRA,EAAA,aAAe,eACfA,EAAA,mBAAqB,qBAIrBA,EAAA,aAAe,eATLA,OAAA",
6
- "names": ["UnlockPanelEventsEnum"]
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"refreshNativeAuthTokenLogin.js","sourceRoot":"","sources":["../../../../../../../src/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.ts"],"names":[],"mappings":";;;AAAA,yCAA+C;AAC/C,2DAAwD;AACxD,oDAAiD;AACjD,uGAAoG;AAEpG,+EAAyE;AACzE,uEAAmE;AACnE,uCAAuC;AAEvC;;;GAGG;AACI,MAAM,2BAA2B,GAAG,KAAK,EAAE,EAChD,mBAAmB,EACnB,sBAAsB,EAOvB,EAA0B,EAAE;IAC3B,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,GAAE,CAAC;IACjC,MAAM,OAAO,GAAG,IAAA,kCAAe,EAAC,IAAA,gBAAQ,GAAE,CAAC,CAAC;IAC5C,MAAM,uBAAuB,GAAG,IAAA,uDAA0B,EACxD,OAAO,CAAC,UAAU,CACnB,CAAC;IAEF,MAAM,gBAAgB,GAAG,IAAA,uBAAU,EACjC,sBAAsB,IAAI,uBAAuB,CAClD,CAAC;IAEF,MAAM,UAAU,GAAG,MAAM,gBAAgB,CAAC,UAAU,CAAC;QACnD,OAAO,EAAE,OAAO,CAAC,sBAAsB,CAAC;KACzC,CAAC,CAAC;IAEH,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,aAAa,GAAG,IAAI,iBAAO,CAAC;QAChC,OAAO,EAAE,IAAI,iBAAO,CAAC,OAAO,CAAC;QAC7B,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,GAAG,UAAU,EAAE,CAAC;KAC7C,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,MAAM,mBAAmB,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;IAEnE,IAAI,CAAC,aAAa,EAAE,SAAS,EAAE,CAAC;QAC9B,MAAM,oBAAoB,CAAC;IAC7B,CAAC;IAED,IAAA,gCAAa,EAAC;QACZ,UAAU;QACV,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;KAChE,CAAC,CAAC;IAEH,OAAO,gBAAgB,CAAC,QAAQ,CAAC;QAC/B,OAAO;QACP,KAAK,EAAE,UAAU;QACjB,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;KAChE,CAAC,CAAC;AACL,CAAC,CAAC;AAjDW,QAAA,2BAA2B,+BAiDtC"}
@@ -1,2 +0,0 @@
1
- import{a as c}from"../../../../../../__chunks__/chunk-6JD2RV7R.mjs";import"../../../../../../__chunks__/chunk-NWEUIK3A.mjs";import{a as u}from"../../../../../../__chunks__/chunk-K66JLLVW.mjs";import"../../../../../../__chunks__/chunk-OJX2TSAZ.mjs";import"../../../../../../__chunks__/chunk-QTKK6OSJ.mjs";import"../../../../../../__chunks__/chunk-RIQNG4I7.mjs";import{a as m}from"../../../../../../__chunks__/chunk-IMGZJVC6.mjs";import"../../../../../../__chunks__/chunk-6ACLOUQ3.mjs";import"../../../../../../__chunks__/chunk-WE7YOBO7.mjs";import"../../../../../../__chunks__/chunk-3S57OP4Z.mjs";import"../../../../../../__chunks__/chunk-YSCND2MX.mjs";import{b as g,u as f}from"../../../../../../__chunks__/chunk-GYUFALJV.mjs";import"../../../../../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../../../../../__chunks__/chunk-KPK72MOE.mjs";import{b as r}from"../../../../../../__chunks__/chunk-SAAOQW7P.mjs";import"../../../../../../__chunks__/chunk-VNLGNNIL.mjs";import"../../../../../../__chunks__/chunk-IEJTMYFW.mjs";import"../../../../../../__chunks__/chunk-UTWIKUIK.mjs";import"../../../../../../__chunks__/chunk-QJSB5NX4.mjs";import"../../../../../../__chunks__/chunk-ZODTYAYF.mjs";import"../../../../../../__chunks__/chunk-DKX6JUT6.mjs";import"../../../../../../__chunks__/chunk-KRWR77QE.mjs";import"../../../../../../__chunks__/chunk-B7YCKWDU.mjs";import"../../../../../../__chunks__/chunk-XKU5QBXG.mjs";import"../../../../../../__chunks__/chunk-7BP53CXF.mjs";import"../../../../../../__chunks__/chunk-BRBIUWAW.mjs";import"../../../../../../__chunks__/chunk-T2YPFNVM.mjs";import"../../../../../../__chunks__/chunk-X4XULIVT.mjs";import"../../../../../../__chunks__/chunk-5N4F5T5L.mjs";import"../../../../../../__chunks__/chunk-SUN3MVLZ.mjs";import"../../../../../../__chunks__/chunk-HDJOER66.mjs";import"../../../../../../__chunks__/chunk-A7FTKX2A.mjs";import"../../../../../../__chunks__/chunk-YMPZDHKF.mjs";import"../../../../../../__chunks__/chunk-VKEESSBI.mjs";import"../../../../../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../../../../../__chunks__/chunk-2DNGCNYM.mjs";import"../../../../../../__chunks__/chunk-SQVKVA7X.mjs";import"../../../../../../__chunks__/chunk-I24YBVHK.mjs";import"../../../../../../__chunks__/chunk-NB7A4C7L.mjs";import"../../../../../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../../../../../__chunks__/chunk-V4SLVI67.mjs";import"../../../../../../__chunks__/chunk-J4CPYFK6.mjs";import"../../../../../../__chunks__/chunk-KD2IQ32V.mjs";import"../../../../../../__chunks__/chunk-TI37DKBT.mjs";import{c as s,g as a}from"../../../../../../__chunks__/chunk-R53MCZI6.mjs";import"../../../../../../__chunks__/chunk-MGQ373AO.mjs";import"../../../../../../__chunks__/chunk-RPTH42EF.mjs";import"../../../../../../__chunks__/chunk-3UNGCOKO.mjs";import"../../../../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../../../../__chunks__/chunk-LRHRFWQ4.mjs";import"../../../../../../__chunks__/chunk-AIDEMTSX.mjs";import"../../../../../../__chunks__/chunk-B2UIPHJ3.mjs";var S=async({signMessageCallback:d,nativeAuthClientConfig:n})=>{let{address:t}=c(),l=r(f()),p=m(l.apiAddress),i=u(n||p),e=await i.initialize({noCache:!!n});if(!e)return null;let h=new a({address:new s(t),data:Buffer.from(`${t}${e}`)}),o=await d(h,{});if(!o?.signature)throw"Message not signed";return g({loginToken:e,signature:Buffer.from(o.signature).toString("hex")}),i.getToken({address:t,token:e,signature:Buffer.from(o.signature).toString("hex")})};export{S as refreshNativeAuthTokenLogin};
2
- //# sourceMappingURL=refreshNativeAuthTokenLogin.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../src/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.ts"],
4
- "sourcesContent": ["import { Address, Message } from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport { nativeAuth } from 'services/nativeAuth';\nimport { getDefaultNativeAuthConfig } from 'services/nativeAuth/methods/getDefaultNativeAuthConfig';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { setTokenLogin } from 'store/actions/loginInfo/loginInfoActions';\nimport { networkSelector } from 'store/selectors/networkSelectors';\nimport { getState } from 'store/store';\n\n/**\n * Use this function if you support multiple networks with network switching\n * @returns The native auth token\n */\nexport const refreshNativeAuthTokenLogin = async ({\n signMessageCallback,\n nativeAuthClientConfig\n}: {\n signMessageCallback: (\n messageToSign: Message,\n options: Record<any, any>\n ) => Promise<Message>;\n nativeAuthClientConfig?: NativeAuthConfigType;\n}): Promise<string | null> => {\n const { address } = getAccount();\n const network = networkSelector(getState());\n const defaultNativeAuthConfig = getDefaultNativeAuthConfig(\n network.apiAddress\n );\n\n const nativeAuthClient = nativeAuth(\n nativeAuthClientConfig || defaultNativeAuthConfig\n );\n\n const loginToken = await nativeAuthClient.initialize({\n noCache: Boolean(nativeAuthClientConfig)\n });\n\n if (!loginToken) {\n return null;\n }\n\n const messageToSign = new Message({\n address: new Address(address),\n data: Buffer.from(`${address}${loginToken}`)\n });\n\n const signedMessage = await signMessageCallback(messageToSign, {});\n\n if (!signedMessage?.signature) {\n throw 'Message not signed';\n }\n\n setTokenLogin({\n loginToken,\n signature: Buffer.from(signedMessage.signature).toString('hex')\n });\n\n return nativeAuthClient.getToken({\n address,\n token: loginToken,\n signature: Buffer.from(signedMessage.signature).toString('hex')\n });\n};\n"],
5
- "mappings": "8+FAaO,IAAMA,EAA8B,MAAO,CAChD,oBAAAC,EACA,uBAAAC,CACF,IAM8B,CAC5B,GAAM,CAAE,QAAAC,CAAQ,EAAIC,EAAW,EACzBC,EAAUC,EAAgBC,EAAS,CAAC,EACpCC,EAA0BC,EAC9BJ,EAAQ,UACV,EAEMK,EAAmBC,EACvBT,GAA0BM,CAC5B,EAEMI,EAAa,MAAMF,EAAiB,WAAW,CACnD,QAAS,EAAQR,CACnB,CAAC,EAED,GAAI,CAACU,EACH,OAAO,KAGT,IAAMC,EAAgB,IAAIC,EAAQ,CAChC,QAAS,IAAIC,EAAQZ,CAAO,EAC5B,KAAM,OAAO,KAAK,GAAGA,CAAO,GAAGS,CAAU,EAAE,CAC7C,CAAC,EAEKI,EAAgB,MAAMf,EAAoBY,EAAe,CAAC,CAAC,EAEjE,GAAI,CAACG,GAAe,UAClB,KAAM,qBAGR,OAAAC,EAAc,CACZ,WAAAL,EACA,UAAW,OAAO,KAAKI,EAAc,SAAS,EAAE,SAAS,KAAK,CAChE,CAAC,EAEMN,EAAiB,SAAS,CAC/B,QAAAP,EACA,MAAOS,EACP,UAAW,OAAO,KAAKI,EAAc,SAAS,EAAE,SAAS,KAAK,CAChE,CAAC,CACH",
6
- "names": ["refreshNativeAuthTokenLogin", "signMessageCallback", "nativeAuthClientConfig", "address", "getAccount", "network", "networkSelector", "getState", "defaultNativeAuthConfig", "getDefaultNativeAuthConfig", "nativeAuthClient", "nativeAuth", "loginToken", "messageToSign", "Message", "Address", "signedMessage", "setTokenLogin"]
7
- }