@multiversx/sdk-dapp 5.2.5 → 5.2.6
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.
- package/out/__chunks__/{chunk-2FU37PY5.mjs → chunk-2K2QZVBC.mjs} +2 -2
- package/out/__chunks__/{chunk-I4QHHCK6.mjs → chunk-2NF5HX3H.mjs} +2 -2
- package/out/__chunks__/chunk-2TCIBFJT.mjs +2 -0
- package/out/__chunks__/chunk-2TCIBFJT.mjs.map +7 -0
- package/out/__chunks__/{chunk-GY6MHIOO.mjs → chunk-2VRRMEOY.mjs} +2 -2
- package/out/__chunks__/{chunk-7ZUH3TQ2.mjs → chunk-2Y66XRQK.mjs} +2 -2
- package/out/__chunks__/{chunk-ZXHMD677.mjs → chunk-3OEO7IVT.mjs} +2 -2
- package/out/__chunks__/chunk-4B3YTXMB.mjs +2 -0
- package/out/__chunks__/chunk-4B3YTXMB.mjs.map +7 -0
- package/out/__chunks__/chunk-4MWQKLVG.mjs +2 -0
- package/out/__chunks__/chunk-4MWQKLVG.mjs.map +7 -0
- package/out/__chunks__/{chunk-LDTECGMM.mjs → chunk-4QPWKBSQ.mjs} +2 -2
- package/out/__chunks__/{chunk-OOVV574D.mjs → chunk-4VA2SULD.mjs} +2 -2
- package/out/__chunks__/{chunk-DSVSX4ZT.mjs → chunk-5DILKRFV.mjs} +2 -2
- package/out/__chunks__/{chunk-6DWUEZO7.mjs → chunk-5KVNYLOM.mjs} +2 -2
- package/out/__chunks__/{chunk-3TJTXI66.mjs → chunk-5O725H7M.mjs} +2 -2
- package/out/__chunks__/{chunk-52PGMMOM.mjs → chunk-5OMQOYP7.mjs} +2 -2
- package/out/__chunks__/chunk-5WVYRVED.mjs +2 -0
- package/out/__chunks__/chunk-5WVYRVED.mjs.map +7 -0
- package/out/__chunks__/{chunk-FRIE2JPN.mjs → chunk-67JAXZGA.mjs} +2 -2
- package/out/__chunks__/{chunk-BZQSEPTC.mjs → chunk-6CUDZR72.mjs} +2 -2
- package/out/__chunks__/chunk-6LOIZTC6.mjs +2 -0
- package/out/__chunks__/chunk-6LOIZTC6.mjs.map +7 -0
- package/out/__chunks__/{chunk-OF4WULEW.mjs → chunk-6ME6A43J.mjs} +2 -2
- package/out/__chunks__/chunk-6OIZTWJQ.mjs +2 -0
- package/out/__chunks__/chunk-6R2WFQ7U.mjs +2 -0
- package/out/__chunks__/{chunk-ZVIKYGX5.mjs.map → chunk-6R2WFQ7U.mjs.map} +3 -3
- package/out/__chunks__/{chunk-HMHP5DPL.mjs → chunk-6UMOECOW.mjs} +1 -1
- package/out/__chunks__/chunk-6UMOECOW.mjs.map +7 -0
- package/out/__chunks__/{chunk-GR362QNP.mjs → chunk-74JXPSSX.mjs} +2 -2
- package/out/__chunks__/{chunk-JIBYUZL4.mjs → chunk-775THAIS.mjs} +2 -2
- package/out/__chunks__/chunk-7C3DDRSK.mjs +2 -0
- package/out/__chunks__/chunk-7C3DDRSK.mjs.map +7 -0
- package/out/__chunks__/chunk-7GZRWUJQ.mjs +2 -0
- package/out/__chunks__/{chunk-XADBXKX5.mjs → chunk-7QYO4UOP.mjs} +2 -2
- package/out/__chunks__/chunk-7UJCMFKV.mjs +2 -0
- package/out/__chunks__/chunk-7VHTZYM2.mjs +2 -0
- package/out/__chunks__/chunk-7VHTZYM2.mjs.map +7 -0
- package/out/__chunks__/{chunk-6ST4KZLT.mjs → chunk-7XASUTI2.mjs} +2 -2
- package/out/__chunks__/{chunk-BUAVB6CL.mjs → chunk-ANIJIRAY.mjs} +2 -2
- package/out/__chunks__/{chunk-5YDUSQUN.mjs → chunk-BCODBYYR.mjs} +2 -2
- package/out/__chunks__/chunk-BMSWZIEX.mjs +2 -0
- package/out/__chunks__/{chunk-GB2K574L.mjs → chunk-CLUVDWX6.mjs} +2 -2
- package/out/__chunks__/chunk-CLUVDWX6.mjs.map +7 -0
- package/out/__chunks__/{chunk-CECXI5ZJ.mjs → chunk-CMJSKAR5.mjs} +2 -2
- package/out/__chunks__/{chunk-SMFNVU6B.mjs → chunk-CO23VS2O.mjs} +2 -2
- package/out/__chunks__/chunk-CUMJOJXJ.mjs +2 -0
- package/out/__chunks__/{chunk-NBQ7F24V.mjs.map → chunk-CUMJOJXJ.mjs.map} +3 -3
- package/out/__chunks__/chunk-DLCBEPEX.mjs +2 -0
- package/out/__chunks__/chunk-DLCBEPEX.mjs.map +7 -0
- package/out/__chunks__/chunk-DMF2DF5I.mjs +2 -0
- package/out/__chunks__/chunk-DOBSLHLX.mjs +2 -0
- package/out/__chunks__/{chunk-Q5Z34JFU.mjs → chunk-DRYIE3UL.mjs} +2 -2
- package/out/__chunks__/chunk-E2GGD7D4.mjs +2 -0
- package/out/__chunks__/chunk-E2GGD7D4.mjs.map +7 -0
- package/out/__chunks__/{chunk-XCVEFI4B.mjs → chunk-EAXWH64Z.mjs} +2 -2
- package/out/__chunks__/{chunk-PNVMS2VO.mjs → chunk-ET5L4CEA.mjs} +2 -2
- package/out/__chunks__/chunk-EUBOWXIH.mjs +2 -0
- package/out/__chunks__/chunk-EZKCZPIE.mjs +2 -0
- package/out/__chunks__/chunk-EZKCZPIE.mjs.map +7 -0
- package/out/__chunks__/chunk-FE5FK7I6.mjs +2 -0
- package/out/__chunks__/{chunk-X6SYH5RO.mjs → chunk-FULNMU6J.mjs} +2 -2
- package/out/__chunks__/{chunk-CFJZFKIS.mjs → chunk-GMP2DZ26.mjs} +2 -2
- package/out/__chunks__/{chunk-EAH7XGM3.mjs → chunk-GUAXMODN.mjs} +2 -2
- package/out/__chunks__/chunk-HAPHEGVZ.mjs +2 -0
- package/out/__chunks__/{chunk-EFD2PMLA.mjs → chunk-HOBCDZ2D.mjs} +2 -2
- package/out/__chunks__/chunk-HZGRS7HG.mjs +2 -0
- package/out/__chunks__/chunk-IE4SA26O.mjs +2 -0
- package/out/__chunks__/chunk-IHU6TBZQ.mjs +2 -0
- package/out/__chunks__/{chunk-YNHWN4KZ.mjs → chunk-JDLVFGXF.mjs} +2 -2
- package/out/__chunks__/{chunk-GZL6GF6Z.mjs → chunk-JDTTHSQL.mjs} +2 -2
- package/out/__chunks__/{chunk-UNBTFF6K.mjs → chunk-JSSRK6RP.mjs} +2 -2
- package/out/__chunks__/chunk-JTV664SG.mjs +2 -0
- package/out/__chunks__/chunk-JTV664SG.mjs.map +7 -0
- package/out/__chunks__/{chunk-PZHQ37I6.mjs → chunk-K373M2BG.mjs} +2 -2
- package/out/__chunks__/chunk-K3VVHPG3.mjs +2 -0
- package/out/__chunks__/{chunk-JSKOWAZU.mjs → chunk-KHBRO4FY.mjs} +2 -2
- package/out/__chunks__/chunk-LJX4MW7B.mjs +2 -0
- package/out/__chunks__/chunk-LJX4MW7B.mjs.map +7 -0
- package/out/__chunks__/chunk-M2KI5WFN.mjs +2 -0
- package/out/__chunks__/chunk-M2KI5WFN.mjs.map +7 -0
- package/out/__chunks__/{chunk-2IUBMLF4.mjs → chunk-M6MN4RXG.mjs} +1 -1
- package/out/__chunks__/{chunk-2IUBMLF4.mjs.map → chunk-M6MN4RXG.mjs.map} +2 -2
- package/out/__chunks__/{chunk-C3LAZHGD.mjs → chunk-MBBXTAA3.mjs} +2 -2
- package/out/__chunks__/{chunk-ZXNJFXKB.mjs → chunk-MXNCPIER.mjs} +2 -2
- package/out/__chunks__/{chunk-L3MWDI6J.mjs → chunk-N55JEIM6.mjs} +2 -2
- package/out/__chunks__/chunk-NGM3AVCY.mjs +2 -0
- package/out/__chunks__/chunk-NGM3AVCY.mjs.map +7 -0
- package/out/__chunks__/{chunk-BHAHZQVO.mjs → chunk-NTPPBM7T.mjs} +2 -2
- package/out/__chunks__/{chunk-E5RLJTLP.mjs → chunk-O3YM7WCC.mjs} +2 -2
- package/out/__chunks__/{chunk-KD2K7HNK.mjs → chunk-O7KFAU3B.mjs} +2 -2
- package/out/__chunks__/{chunk-EYUQF6VD.mjs → chunk-OD6C4XKP.mjs} +2 -2
- package/out/__chunks__/chunk-OLPFN3HZ.mjs +2 -0
- package/out/__chunks__/{chunk-JSTWLAYX.mjs → chunk-OU5Y3UTY.mjs} +2 -2
- package/out/__chunks__/chunk-OVBYKKMB.mjs +2 -0
- package/out/__chunks__/chunk-OVBYKKMB.mjs.map +7 -0
- package/out/__chunks__/{chunk-LWCNB4VP.mjs → chunk-OXC2IURR.mjs} +2 -2
- package/out/__chunks__/chunk-OYQAXY6H.mjs +2 -0
- package/out/__chunks__/chunk-PDKESLKC.mjs +2 -0
- package/out/__chunks__/{chunk-2JGSMQ3T.mjs → chunk-PT2OF4QJ.mjs} +2 -2
- package/out/__chunks__/chunk-Q4OG6NMJ.mjs +2 -0
- package/out/__chunks__/{chunk-ZZNPJF24.mjs.map → chunk-Q4OG6NMJ.mjs.map} +1 -1
- package/out/__chunks__/{chunk-F6QODHDC.mjs → chunk-QJZ5YIXI.mjs} +2 -2
- package/out/__chunks__/{chunk-3BVKYYHT.mjs → chunk-R3U4ONSV.mjs} +2 -2
- package/out/__chunks__/{chunk-QEE4T6UM.mjs → chunk-RCNZOLEM.mjs} +2 -2
- package/out/__chunks__/{chunk-LYNRBQNO.mjs → chunk-RL2G66LY.mjs} +2 -2
- package/out/__chunks__/chunk-SKNUG6M5.mjs +2 -0
- package/out/__chunks__/{chunk-SK2W4LXI.mjs → chunk-SUHXBGYR.mjs} +2 -2
- package/out/__chunks__/{chunk-WOZIHP5Q.mjs → chunk-SV4C4UPN.mjs} +2 -2
- package/out/__chunks__/{chunk-ZBJRLPCR.mjs → chunk-SWZ5LDC3.mjs} +2 -2
- package/out/__chunks__/{chunk-OEPTRJEB.mjs → chunk-TCDMXBPB.mjs} +1 -1
- package/out/__chunks__/{chunk-OEPTRJEB.mjs.map → chunk-TCDMXBPB.mjs.map} +2 -2
- package/out/__chunks__/chunk-TFCXKUX5.mjs +2 -0
- package/out/__chunks__/{chunk-UPHBWFSY.mjs → chunk-TFDVHULP.mjs} +2 -2
- package/out/__chunks__/{chunk-UWGZQ6WZ.mjs → chunk-TQIB47S6.mjs} +2 -2
- package/out/__chunks__/chunk-U2IPYFJX.mjs +2 -0
- package/out/__chunks__/chunk-U2IPYFJX.mjs.map +7 -0
- package/out/__chunks__/{chunk-AJC3F2YT.mjs → chunk-U3MIDVR7.mjs} +2 -2
- package/out/__chunks__/chunk-U54BL4SU.mjs +2 -0
- package/out/__chunks__/{chunk-NIP6EFXI.mjs.map → chunk-U54BL4SU.mjs.map} +2 -2
- package/out/__chunks__/{chunk-6IDZ52FJ.mjs → chunk-UCCJLDG6.mjs} +2 -2
- package/out/__chunks__/{chunk-S6NHNEQK.mjs → chunk-UCRVRBTA.mjs} +2 -2
- package/out/__chunks__/chunk-UZTMRUVT.mjs +2 -0
- package/out/__chunks__/chunk-UZTMRUVT.mjs.map +7 -0
- package/out/__chunks__/{chunk-CANC2FCH.mjs → chunk-VQULIVGX.mjs} +2 -2
- package/out/__chunks__/chunk-VRLS225Q.mjs +2 -0
- package/out/__chunks__/{chunk-JVI373HI.mjs → chunk-VVZ2I6CL.mjs} +2 -2
- package/out/__chunks__/chunk-W37M2LIA.mjs +2 -0
- package/out/__chunks__/{chunk-S22V4GGF.mjs → chunk-WK4PPAAJ.mjs} +2 -2
- package/out/__chunks__/chunk-WQZKREPI.mjs +2 -0
- package/out/__chunks__/{chunk-ARY5QEDY.mjs → chunk-XA3AGZCX.mjs} +2 -2
- package/out/__chunks__/{chunk-HJGZQFKX.mjs → chunk-XHM77HFZ.mjs} +2 -2
- package/out/__chunks__/chunk-XJPXTYIE.mjs +2 -0
- package/out/__chunks__/chunk-XXV6KGR4.mjs +2 -0
- package/out/__chunks__/chunk-XXV6KGR4.mjs.map +7 -0
- package/out/__chunks__/{chunk-LZPMMMJZ.mjs → chunk-YHNOFYGM.mjs} +2 -2
- package/out/__chunks__/chunk-YSPLCVKY.mjs +2 -0
- package/out/__chunks__/chunk-YSPLCVKY.mjs.map +7 -0
- package/out/__chunks__/{chunk-X74ZW4SP.mjs → chunk-YTIAXTQR.mjs} +2 -2
- package/out/__chunks__/{chunk-RB6NB2UN.mjs → chunk-YX7TMA3N.mjs} +2 -2
- package/out/__chunks__/{chunk-3WHS4QZZ.mjs → chunk-Z5AFLXOE.mjs} +2 -2
- package/out/__chunks__/{chunk-HKKKOC5V.mjs → chunk-ZDJN4F3W.mjs} +2 -2
- package/out/__chunks__/{chunk-N342XMFH.mjs → chunk-ZRSYQ3MT.mjs} +2 -2
- package/out/__chunks__/{chunk-2GG67TZD.mjs → chunk-ZS4EBCWC.mjs} +2 -2
- package/out/__chunks__/{chunk-3D7VMEVL.mjs → chunk-ZTUC7FCA.mjs} +2 -2
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/configuration/index.mjs +1 -1
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs +4 -3
- package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs.map +2 -2
- package/out/apiCalls/transactions/getServerTransactionsByHashes.d.ts +3 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.mjs +1 -1
- package/out/constants/providerFactory.constants.cjs +4 -0
- package/out/constants/providerFactory.constants.cjs.map +2 -2
- package/out/constants/providerFactory.constants.d.ts +1 -0
- package/out/constants/providerFactory.constants.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/transactions.constants.cjs +3 -3
- package/out/constants/transactions.constants.cjs.map +1 -1
- package/out/constants/transactions.constants.d.ts +1 -1
- package/out/constants/transactions.constants.mjs +1 -1
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/index.mjs +1 -1
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs +5 -12
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs.map +2 -2
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.d.ts +2 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/ToastManager/ToastManager.cjs +28 -102
- package/out/managers/ToastManager/ToastManager.cjs.map +2 -2
- package/out/managers/ToastManager/ToastManager.d.ts +13 -31
- package/out/managers/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/ToastManager/ToastUICoordinator.cjs +126 -0
- package/out/managers/ToastManager/ToastUICoordinator.cjs.map +7 -0
- package/out/managers/ToastManager/ToastUICoordinator.d.ts +30 -0
- package/out/managers/ToastManager/ToastUICoordinator.mjs +2 -0
- package/out/managers/ToastManager/ToastUICoordinator.mjs.map +7 -0
- package/out/managers/ToastManager/helpers/LifetimeManager.cjs +1 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.cjs.map +1 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.cjs +12 -14
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.cjs.map +2 -2
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.d.ts +3 -7
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/ToastManager/helpers/createTransactionToast.cjs.map +2 -2
- package/out/managers/ToastManager/helpers/createTransactionToast.d.ts +2 -3
- package/out/managers/ToastManager/helpers/createTransactionToast.mjs +1 -1
- package/out/managers/ToastManager/helpers/getToastDataStateByStatus.mjs +1 -1
- package/out/managers/ToastManager/helpers/getToastTransactionsStatus.mjs +1 -1
- package/out/managers/ToastManager/helpers/tests/mocks/cache.d.ts +14 -0
- package/out/managers/ToastManager/helpers/tests/mocks/transactions.d.ts +34 -0
- package/out/managers/ToastManager/index.mjs +1 -1
- package/out/managers/ToastManager/types/index.mjs +1 -1
- package/out/managers/ToastManager/types/toast.types.cjs.map +2 -2
- package/out/managers/ToastManager/types/toast.types.d.ts +2 -2
- package/out/managers/ToastManager/types/toast.types.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/initApp.mjs.map +1 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.cjs +18 -9
- package/out/providers/ProviderFactory.cjs.map +3 -3
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/clearInitiatedLogins.mjs +1 -1
- package/out/providers/helpers/emptyProvider.mjs +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/providers/types/providerFactory.types.cjs +1 -0
- package/out/providers/types/providerFactory.types.cjs.map +2 -2
- package/out/providers/types/providerFactory.types.d.ts +1 -0
- package/out/providers/types/providerFactory.types.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionStateByStatus.cjs.map +2 -2
- package/out/store/actions/transactions/transactionStateByStatus.d.ts +23 -24
- package/out/store/actions/transactions/transactionStateByStatus.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.cjs +1 -3
- package/out/store/actions/transactions/transactionsActions.cjs.map +2 -2
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/selectors/index.mjs +1 -1
- package/out/store/selectors/networkSelectors.cjs +9 -0
- package/out/store/selectors/networkSelectors.cjs.map +2 -2
- package/out/store/selectors/networkSelectors.d.ts +3 -0
- package/out/store/selectors/networkSelectors.mjs +1 -1
- package/out/store/selectors/toastsSelectors.mjs +1 -1
- package/out/store/selectors/toastsSelectors.mjs.map +4 -4
- package/out/store/selectors/transactionsSelector.cjs +3 -3
- package/out/store/selectors/transactionsSelector.cjs.map +2 -2
- package/out/store/selectors/transactionsSelector.mjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/types/serverTransactions.types.cjs.map +2 -2
- package/out/types/serverTransactions.types.d.ts +1 -1
- package/out/types/serverTransactions.types.mjs +1 -1
- package/out/types/transaction-list-item.types.cjs.map +2 -2
- package/out/types/transaction-list-item.types.d.ts +1 -6
- package/out/types/transaction-list-item.types.mjs +1 -1
- package/out/types/transactions.types.cjs.map +2 -2
- package/out/types/transactions.types.d.ts +4 -4
- package/out/types/transactions.types.mjs.map +2 -2
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/index.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs +2 -8
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.d.ts +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.d.ts +2 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs +15 -9
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.d.ts +3 -4
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.d.ts +5 -3
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/visual/index.mjs +1 -1
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +2 -4
- package/out/__chunks__/chunk-3L7HZ2SO.mjs +0 -2
- package/out/__chunks__/chunk-3L7HZ2SO.mjs.map +0 -7
- package/out/__chunks__/chunk-3MW2H273.mjs +0 -2
- package/out/__chunks__/chunk-3MW2H273.mjs.map +0 -7
- package/out/__chunks__/chunk-62XXIXTE.mjs +0 -2
- package/out/__chunks__/chunk-65L5EBBL.mjs +0 -2
- package/out/__chunks__/chunk-65L5EBBL.mjs.map +0 -7
- package/out/__chunks__/chunk-7YKKU6UM.mjs +0 -2
- package/out/__chunks__/chunk-B6KBOAFE.mjs +0 -2
- package/out/__chunks__/chunk-BJEPGGTR.mjs +0 -2
- package/out/__chunks__/chunk-CUTW32BD.mjs +0 -2
- package/out/__chunks__/chunk-GB2K574L.mjs.map +0 -7
- package/out/__chunks__/chunk-GV2STE7J.mjs +0 -2
- package/out/__chunks__/chunk-GV2STE7J.mjs.map +0 -7
- package/out/__chunks__/chunk-GWUYYSBN.mjs +0 -2
- package/out/__chunks__/chunk-HMHP5DPL.mjs.map +0 -7
- package/out/__chunks__/chunk-I6WKWOAM.mjs +0 -2
- package/out/__chunks__/chunk-I7L5LOHR.mjs +0 -2
- package/out/__chunks__/chunk-IDJ7NXCI.mjs +0 -2
- package/out/__chunks__/chunk-IQ6JB5QS.mjs +0 -2
- package/out/__chunks__/chunk-IQ6JB5QS.mjs.map +0 -7
- package/out/__chunks__/chunk-IR4Y2GE5.mjs +0 -2
- package/out/__chunks__/chunk-K7FDXJZD.mjs +0 -2
- package/out/__chunks__/chunk-KRJLYFVI.mjs +0 -2
- package/out/__chunks__/chunk-MFUQ5NBC.mjs +0 -2
- package/out/__chunks__/chunk-N4XWVRRE.mjs +0 -2
- package/out/__chunks__/chunk-N4XWVRRE.mjs.map +0 -7
- package/out/__chunks__/chunk-NBQ7F24V.mjs +0 -2
- package/out/__chunks__/chunk-NIP6EFXI.mjs +0 -2
- package/out/__chunks__/chunk-NWQY6WSD.mjs +0 -2
- package/out/__chunks__/chunk-OTJAWUCX.mjs +0 -2
- package/out/__chunks__/chunk-OTJAWUCX.mjs.map +0 -7
- package/out/__chunks__/chunk-OXMMRCSH.mjs +0 -2
- package/out/__chunks__/chunk-P72TQUGN.mjs +0 -2
- package/out/__chunks__/chunk-P72TQUGN.mjs.map +0 -7
- package/out/__chunks__/chunk-PBFDXHTQ.mjs +0 -2
- package/out/__chunks__/chunk-PBFDXHTQ.mjs.map +0 -7
- package/out/__chunks__/chunk-PLMCHSS6.mjs +0 -2
- package/out/__chunks__/chunk-SAAOQW7P.mjs +0 -2
- package/out/__chunks__/chunk-SAAOQW7P.mjs.map +0 -7
- package/out/__chunks__/chunk-SJN2CPGB.mjs +0 -2
- package/out/__chunks__/chunk-TQA3JDNV.mjs +0 -2
- package/out/__chunks__/chunk-TQA3JDNV.mjs.map +0 -7
- package/out/__chunks__/chunk-WJQVMI33.mjs +0 -2
- package/out/__chunks__/chunk-WKPW72IW.mjs +0 -2
- package/out/__chunks__/chunk-X5QIDX7Z.mjs +0 -2
- package/out/__chunks__/chunk-YFUI3MRL.mjs +0 -2
- package/out/__chunks__/chunk-ZEUNADU7.mjs +0 -2
- package/out/__chunks__/chunk-ZNSKART2.mjs +0 -2
- package/out/__chunks__/chunk-ZNSKART2.mjs.map +0 -7
- package/out/__chunks__/chunk-ZONHCECO.mjs +0 -2
- package/out/__chunks__/chunk-ZONHCECO.mjs.map +0 -7
- package/out/__chunks__/chunk-ZVIKYGX5.mjs +0 -2
- package/out/__chunks__/chunk-ZZNPJF24.mjs +0 -2
- /package/out/__chunks__/{chunk-2FU37PY5.mjs.map → chunk-2K2QZVBC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I4QHHCK6.mjs.map → chunk-2NF5HX3H.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GY6MHIOO.mjs.map → chunk-2VRRMEOY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7ZUH3TQ2.mjs.map → chunk-2Y66XRQK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZXHMD677.mjs.map → chunk-3OEO7IVT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LDTECGMM.mjs.map → chunk-4QPWKBSQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OOVV574D.mjs.map → chunk-4VA2SULD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DSVSX4ZT.mjs.map → chunk-5DILKRFV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6DWUEZO7.mjs.map → chunk-5KVNYLOM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3TJTXI66.mjs.map → chunk-5O725H7M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-52PGMMOM.mjs.map → chunk-5OMQOYP7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FRIE2JPN.mjs.map → chunk-67JAXZGA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BZQSEPTC.mjs.map → chunk-6CUDZR72.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OF4WULEW.mjs.map → chunk-6ME6A43J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CUTW32BD.mjs.map → chunk-6OIZTWJQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GR362QNP.mjs.map → chunk-74JXPSSX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JIBYUZL4.mjs.map → chunk-775THAIS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-62XXIXTE.mjs.map → chunk-7GZRWUJQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XADBXKX5.mjs.map → chunk-7QYO4UOP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I6WKWOAM.mjs.map → chunk-7UJCMFKV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6ST4KZLT.mjs.map → chunk-7XASUTI2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BUAVB6CL.mjs.map → chunk-ANIJIRAY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5YDUSQUN.mjs.map → chunk-BCODBYYR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IDJ7NXCI.mjs.map → chunk-BMSWZIEX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CECXI5ZJ.mjs.map → chunk-CMJSKAR5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SMFNVU6B.mjs.map → chunk-CO23VS2O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NWQY6WSD.mjs.map → chunk-DMF2DF5I.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WKPW72IW.mjs.map → chunk-DOBSLHLX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Q5Z34JFU.mjs.map → chunk-DRYIE3UL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XCVEFI4B.mjs.map → chunk-EAXWH64Z.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PNVMS2VO.mjs.map → chunk-ET5L4CEA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KRJLYFVI.mjs.map → chunk-EUBOWXIH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-B6KBOAFE.mjs.map → chunk-FE5FK7I6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-X6SYH5RO.mjs.map → chunk-FULNMU6J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CFJZFKIS.mjs.map → chunk-GMP2DZ26.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EAH7XGM3.mjs.map → chunk-GUAXMODN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BJEPGGTR.mjs.map → chunk-HAPHEGVZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EFD2PMLA.mjs.map → chunk-HOBCDZ2D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WJQVMI33.mjs.map → chunk-HZGRS7HG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-X5QIDX7Z.mjs.map → chunk-IE4SA26O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IR4Y2GE5.mjs.map → chunk-IHU6TBZQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YNHWN4KZ.mjs.map → chunk-JDLVFGXF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GZL6GF6Z.mjs.map → chunk-JDTTHSQL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UNBTFF6K.mjs.map → chunk-JSSRK6RP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PZHQ37I6.mjs.map → chunk-K373M2BG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-K7FDXJZD.mjs.map → chunk-K3VVHPG3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JSKOWAZU.mjs.map → chunk-KHBRO4FY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C3LAZHGD.mjs.map → chunk-MBBXTAA3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZXNJFXKB.mjs.map → chunk-MXNCPIER.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L3MWDI6J.mjs.map → chunk-N55JEIM6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BHAHZQVO.mjs.map → chunk-NTPPBM7T.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-E5RLJTLP.mjs.map → chunk-O3YM7WCC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KD2K7HNK.mjs.map → chunk-O7KFAU3B.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EYUQF6VD.mjs.map → chunk-OD6C4XKP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PLMCHSS6.mjs.map → chunk-OLPFN3HZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JSTWLAYX.mjs.map → chunk-OU5Y3UTY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LWCNB4VP.mjs.map → chunk-OXC2IURR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7YKKU6UM.mjs.map → chunk-OYQAXY6H.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GWUYYSBN.mjs.map → chunk-PDKESLKC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2JGSMQ3T.mjs.map → chunk-PT2OF4QJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-F6QODHDC.mjs.map → chunk-QJZ5YIXI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3BVKYYHT.mjs.map → chunk-R3U4ONSV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QEE4T6UM.mjs.map → chunk-RCNZOLEM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LYNRBQNO.mjs.map → chunk-RL2G66LY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I7L5LOHR.mjs.map → chunk-SKNUG6M5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SK2W4LXI.mjs.map → chunk-SUHXBGYR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WOZIHP5Q.mjs.map → chunk-SV4C4UPN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZBJRLPCR.mjs.map → chunk-SWZ5LDC3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YFUI3MRL.mjs.map → chunk-TFCXKUX5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UPHBWFSY.mjs.map → chunk-TFDVHULP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UWGZQ6WZ.mjs.map → chunk-TQIB47S6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AJC3F2YT.mjs.map → chunk-U3MIDVR7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6IDZ52FJ.mjs.map → chunk-UCCJLDG6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S6NHNEQK.mjs.map → chunk-UCRVRBTA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CANC2FCH.mjs.map → chunk-VQULIVGX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MFUQ5NBC.mjs.map → chunk-VRLS225Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JVI373HI.mjs.map → chunk-VVZ2I6CL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SJN2CPGB.mjs.map → chunk-W37M2LIA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S22V4GGF.mjs.map → chunk-WK4PPAAJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OXMMRCSH.mjs.map → chunk-WQZKREPI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ARY5QEDY.mjs.map → chunk-XA3AGZCX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HJGZQFKX.mjs.map → chunk-XHM77HFZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZEUNADU7.mjs.map → chunk-XJPXTYIE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LZPMMMJZ.mjs.map → chunk-YHNOFYGM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-X74ZW4SP.mjs.map → chunk-YTIAXTQR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RB6NB2UN.mjs.map → chunk-YX7TMA3N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3WHS4QZZ.mjs.map → chunk-Z5AFLXOE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HKKKOC5V.mjs.map → chunk-ZDJN4F3W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-N342XMFH.mjs.map → chunk-ZRSYQ3MT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2GG67TZD.mjs.map → chunk-ZS4EBCWC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3D7VMEVL.mjs.map → chunk-ZTUC7FCA.mjs.map} +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var ToastUICoordinator_exports = {};
|
|
20
|
+
__export(ToastUICoordinator_exports, {
|
|
21
|
+
ToastUICoordinator: () => ToastUICoordinator
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(ToastUICoordinator_exports);
|
|
24
|
+
var import_UITags = require("../../constants/UITags.enum");
|
|
25
|
+
var import_NotificationsFeedManager = require("../../managers/NotificationsFeedManager/NotificationsFeedManager");
|
|
26
|
+
var import_store = require("../../store/store");
|
|
27
|
+
var import_provider = require("../../types/provider.types");
|
|
28
|
+
var import_ComponentFactory = require("../../utils/ComponentFactory");
|
|
29
|
+
var import_types = require("./types");
|
|
30
|
+
class ToastUICoordinator {
|
|
31
|
+
constructor(props) {
|
|
32
|
+
this.toastsElement = null;
|
|
33
|
+
this.eventBus = null;
|
|
34
|
+
this.isCreatingElement = false;
|
|
35
|
+
this.eventBusUnsubscribeFunctions = [];
|
|
36
|
+
this.onCloseToast = props.onCloseToast;
|
|
37
|
+
this.store = props.store || (0, import_store.getStore)();
|
|
38
|
+
this.notificationsFeedManager = props.notificationsFeedManager || import_NotificationsFeedManager.NotificationsFeedManager.getInstance();
|
|
39
|
+
}
|
|
40
|
+
async init() {
|
|
41
|
+
await this.subscribeToEventBusNotifications();
|
|
42
|
+
}
|
|
43
|
+
showToasts() {
|
|
44
|
+
this.eventBus?.publish(import_types.ToastEventsEnum.SHOW, null);
|
|
45
|
+
}
|
|
46
|
+
hideToasts() {
|
|
47
|
+
this.eventBus?.publish(import_types.ToastEventsEnum.HIDE, null);
|
|
48
|
+
}
|
|
49
|
+
async publishTransactionToasts(toasts) {
|
|
50
|
+
if (this.notificationsFeedManager.isNotificationsFeedOpen() && this.eventBus) {
|
|
51
|
+
this.eventBus.publish(
|
|
52
|
+
import_types.ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,
|
|
53
|
+
toasts
|
|
54
|
+
);
|
|
55
|
+
this.hideToasts();
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (!this.eventBus) {
|
|
59
|
+
const toastsElement = await this.createToastListElement();
|
|
60
|
+
if (!toastsElement) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
this.eventBus = await toastsElement.getEventBus();
|
|
64
|
+
}
|
|
65
|
+
this.eventBus?.publish(
|
|
66
|
+
import_types.ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,
|
|
67
|
+
toasts
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
async publishCustomToasts(customToasts) {
|
|
71
|
+
this.eventBus?.publish(
|
|
72
|
+
import_types.ToastEventsEnum.CUSTOM_TOAST_DATA_UPDATE,
|
|
73
|
+
customToasts
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
handleOpenNotificationsFeed() {
|
|
77
|
+
this.notificationsFeedManager.openNotificationsFeed();
|
|
78
|
+
}
|
|
79
|
+
destroy() {
|
|
80
|
+
this.eventBusUnsubscribeFunctions.forEach((unsubscribe) => unsubscribe());
|
|
81
|
+
this.eventBusUnsubscribeFunctions = [];
|
|
82
|
+
this.notificationsFeedManager?.destroy();
|
|
83
|
+
}
|
|
84
|
+
async createToastListElement() {
|
|
85
|
+
if (this.toastsElement) {
|
|
86
|
+
return this.toastsElement;
|
|
87
|
+
}
|
|
88
|
+
if (!this.isCreatingElement) {
|
|
89
|
+
this.isCreatingElement = true;
|
|
90
|
+
this.toastsElement = await import_ComponentFactory.ComponentFactory.create({
|
|
91
|
+
name: import_UITags.UITagsEnum.TOAST_LIST
|
|
92
|
+
});
|
|
93
|
+
this.isCreatingElement = false;
|
|
94
|
+
}
|
|
95
|
+
return this.toastsElement;
|
|
96
|
+
}
|
|
97
|
+
async subscribeToEventBusNotifications() {
|
|
98
|
+
const toastsElement = await this.createToastListElement();
|
|
99
|
+
if (!toastsElement) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
this.eventBus = await toastsElement.getEventBus();
|
|
103
|
+
if (!this.eventBus) {
|
|
104
|
+
throw new Error(import_provider.ProviderErrorsEnum.eventBusError);
|
|
105
|
+
}
|
|
106
|
+
this.eventBus.subscribe(import_types.ToastEventsEnum.CLOSE, this.onCloseToast);
|
|
107
|
+
this.eventBusUnsubscribeFunctions.push(() => {
|
|
108
|
+
this.eventBus?.unsubscribe(import_types.ToastEventsEnum.CLOSE, this.onCloseToast);
|
|
109
|
+
});
|
|
110
|
+
this.eventBus.subscribe(
|
|
111
|
+
import_types.ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,
|
|
112
|
+
this.handleOpenNotificationsFeed.bind(this)
|
|
113
|
+
);
|
|
114
|
+
this.eventBusUnsubscribeFunctions.push(() => {
|
|
115
|
+
this.eventBus?.unsubscribe(
|
|
116
|
+
import_types.ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,
|
|
117
|
+
this.handleOpenNotificationsFeed.bind(this)
|
|
118
|
+
);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
123
|
+
0 && (module.exports = {
|
|
124
|
+
ToastUICoordinator
|
|
125
|
+
});
|
|
126
|
+
//# sourceMappingURL=ToastUICoordinator.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/managers/ToastManager/ToastUICoordinator.ts"],
|
|
4
|
+
"sourcesContent": ["import { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxToastList } from 'lib/sdkDappUi';\nimport { NotificationsFeedManager } from 'managers/NotificationsFeedManager/NotificationsFeedManager';\nimport type { 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 { ToastEventsEnum } from './types';\nimport type { ITransactionToast } from './types';\n\ntype OnCloseToastType = (toastId: string) => boolean;\ntype StoreObjectType = ReturnType<typeof getStore>;\n\nexport class ToastUICoordinator {\n private toastsElement: MvxToastList | null = null;\n private eventBus: IEventBus<\n ITransactionToast[] | CustomToastType[] | null\n > | null = null;\n private isCreatingElement = false;\n private eventBusUnsubscribeFunctions: (() => void)[] = [];\n private readonly notificationsFeedManager: NotificationsFeedManager;\n private readonly store: StoreObjectType;\n private readonly onCloseToast: OnCloseToastType;\n\n constructor(props: {\n onCloseToast: OnCloseToastType;\n store?: StoreObjectType;\n notificationsFeedManager?: NotificationsFeedManager;\n }) {\n this.onCloseToast = props.onCloseToast;\n this.store = props.store || getStore();\n this.notificationsFeedManager =\n props.notificationsFeedManager || NotificationsFeedManager.getInstance();\n }\n\n public async init() {\n await this.subscribeToEventBusNotifications();\n }\n\n public showToasts() {\n this.eventBus?.publish(ToastEventsEnum.SHOW, null);\n }\n\n public hideToasts() {\n this.eventBus?.publish(ToastEventsEnum.HIDE, null);\n }\n\n public async publishTransactionToasts(toasts: ITransactionToast[]) {\n if (\n this.notificationsFeedManager.isNotificationsFeedOpen() &&\n this.eventBus\n ) {\n this.eventBus.publish(\n ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,\n toasts\n );\n this.hideToasts();\n return;\n }\n\n if (!this.eventBus) {\n const toastsElement = await this.createToastListElement();\n if (!toastsElement) {\n return;\n }\n this.eventBus = await toastsElement.getEventBus();\n }\n\n this.eventBus?.publish(\n ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,\n toasts\n );\n }\n\n public async publishCustomToasts(customToasts: CustomToastType[]) {\n this.eventBus?.publish(\n ToastEventsEnum.CUSTOM_TOAST_DATA_UPDATE,\n customToasts\n );\n }\n\n private handleOpenNotificationsFeed() {\n this.notificationsFeedManager.openNotificationsFeed();\n }\n\n public destroy() {\n this.eventBusUnsubscribeFunctions.forEach((unsubscribe) => unsubscribe());\n this.eventBusUnsubscribeFunctions = [];\n this.notificationsFeedManager?.destroy();\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 this.toastsElement = await ComponentFactory.create<MvxToastList>({\n name: UITagsEnum.TOAST_LIST\n });\n this.isCreatingElement = false;\n }\n\n return this.toastsElement;\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(ToastEventsEnum.CLOSE, this.onCloseToast);\n\n this.eventBusUnsubscribeFunctions.push(() => {\n this.eventBus?.unsubscribe(ToastEventsEnum.CLOSE, this.onCloseToast);\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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA2B;AAE3B,sCAAyC;AAEzC,mBAAyB;AAEzB,sBAAmC;AACnC,8BAAiC;AACjC,mBAAgC;AAMzB,MAAM,mBAAmB;AAAA,EAW9B,YAAY,OAIT;AAdH,SAAQ,gBAAqC;AAC7C,SAAQ,WAEG;AACX,SAAQ,oBAAoB;AAC5B,SAAQ,+BAA+C,CAAC;AAUtD,SAAK,eAAe,MAAM;AAC1B,SAAK,QAAQ,MAAM,aAAS,uBAAS;AACrC,SAAK,2BACH,MAAM,4BAA4B,yDAAyB,YAAY;AAAA,EAC3E;AAAA,EAEA,MAAa,OAAO;AAClB,UAAM,KAAK,iCAAiC;AAAA,EAC9C;AAAA,EAEO,aAAa;AAClB,SAAK,UAAU,QAAQ,6BAAgB,MAAM,IAAI;AAAA,EACnD;AAAA,EAEO,aAAa;AAClB,SAAK,UAAU,QAAQ,6BAAgB,MAAM,IAAI;AAAA,EACnD;AAAA,EAEA,MAAa,yBAAyB,QAA6B;AACjE,QACE,KAAK,yBAAyB,wBAAwB,KACtD,KAAK,UACL;AACA,WAAK,SAAS;AAAA,QACZ,6BAAgB;AAAA,QAChB;AAAA,MACF;AACA,WAAK,WAAW;AAChB;AAAA,IACF;AAEA,QAAI,CAAC,KAAK,UAAU;AAClB,YAAM,gBAAgB,MAAM,KAAK,uBAAuB;AACxD,UAAI,CAAC,eAAe;AAClB;AAAA,MACF;AACA,WAAK,WAAW,MAAM,cAAc,YAAY;AAAA,IAClD;AAEA,SAAK,UAAU;AAAA,MACb,6BAAgB;AAAA,MAChB;AAAA,IACF;AAAA,EACF;AAAA,EAEA,MAAa,oBAAoB,cAAiC;AAChE,SAAK,UAAU;AAAA,MACb,6BAAgB;AAAA,MAChB;AAAA,IACF;AAAA,EACF;AAAA,EAEQ,8BAA8B;AACpC,SAAK,yBAAyB,sBAAsB;AAAA,EACtD;AAAA,EAEO,UAAU;AACf,SAAK,6BAA6B,QAAQ,CAAC,gBAAgB,YAAY,CAAC;AACxE,SAAK,+BAA+B,CAAC;AACrC,SAAK,0BAA0B,QAAQ;AAAA,EACzC;AAAA,EAEA,MAAc,yBAAuD;AACnE,QAAI,KAAK,eAAe;AACtB,aAAO,KAAK;AAAA,IACd;AAEA,QAAI,CAAC,KAAK,mBAAmB;AAC3B,WAAK,oBAAoB;AACzB,WAAK,gBAAgB,MAAM,yCAAiB,OAAqB;AAAA,QAC/D,MAAM,yBAAW;AAAA,MACnB,CAAC;AACD,WAAK,oBAAoB;AAAA,IAC3B;AAEA,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,MAAc,mCAAmC;AAC/C,UAAM,gBAAgB,MAAM,KAAK,uBAAuB;AAExD,QAAI,CAAC,eAAe;AAClB;AAAA,IACF;AAEA,SAAK,WAAW,MAAM,cAAc,YAAY;AAChD,QAAI,CAAC,KAAK,UAAU;AAClB,YAAM,IAAI,MAAM,mCAAmB,aAAa;AAAA,IAClD;AAEA,SAAK,SAAS,UAAU,6BAAgB,OAAO,KAAK,YAAY;AAEhE,SAAK,6BAA6B,KAAK,MAAM;AAC3C,WAAK,UAAU,YAAY,6BAAgB,OAAO,KAAK,YAAY;AAAA,IACrE,CAAC;AAED,SAAK,SAAS;AAAA,MACZ,6BAAgB;AAAA,MAChB,KAAK,4BAA4B,KAAK,IAAI;AAAA,IAC5C;AAEA,SAAK,6BAA6B,KAAK,MAAM;AAC3C,WAAK,UAAU;AAAA,QACb,6BAAgB;AAAA,QAChB,KAAK,4BAA4B,KAAK,IAAI;AAAA,MAC5C;AAAA,IACF,CAAC;AAAA,EACH;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NotificationsFeedManager } from '../../managers/NotificationsFeedManager/NotificationsFeedManager';
|
|
2
|
+
import type { CustomToastType } from '../../store/slices/toast/toastSlice.types';
|
|
3
|
+
import { getStore } from '../../store/store';
|
|
4
|
+
import type { ITransactionToast } from './types';
|
|
5
|
+
type OnCloseToastType = (toastId: string) => boolean;
|
|
6
|
+
type StoreObjectType = ReturnType<typeof getStore>;
|
|
7
|
+
export declare class ToastUICoordinator {
|
|
8
|
+
private toastsElement;
|
|
9
|
+
private eventBus;
|
|
10
|
+
private isCreatingElement;
|
|
11
|
+
private eventBusUnsubscribeFunctions;
|
|
12
|
+
private readonly notificationsFeedManager;
|
|
13
|
+
private readonly store;
|
|
14
|
+
private readonly onCloseToast;
|
|
15
|
+
constructor(props: {
|
|
16
|
+
onCloseToast: OnCloseToastType;
|
|
17
|
+
store?: StoreObjectType;
|
|
18
|
+
notificationsFeedManager?: NotificationsFeedManager;
|
|
19
|
+
});
|
|
20
|
+
init(): Promise<void>;
|
|
21
|
+
showToasts(): void;
|
|
22
|
+
hideToasts(): void;
|
|
23
|
+
publishTransactionToasts(toasts: ITransactionToast[]): Promise<void>;
|
|
24
|
+
publishCustomToasts(customToasts: CustomToastType[]): Promise<void>;
|
|
25
|
+
private handleOpenNotificationsFeed;
|
|
26
|
+
destroy(): void;
|
|
27
|
+
private createToastListElement;
|
|
28
|
+
private subscribeToEventBusNotifications;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{l as a}from"../../__chunks__/chunk-2TCIBFJT.mjs";import"../../__chunks__/chunk-MBBXTAA3.mjs";import"../../__chunks__/chunk-RUBOJOJP.mjs";import"../../__chunks__/chunk-7UJCMFKV.mjs";import"../../__chunks__/chunk-T7DVMF2K.mjs";import"../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../__chunks__/chunk-6UZHM5LW.mjs";import"../../__chunks__/chunk-U2IPYFJX.mjs";import"../../__chunks__/chunk-UZTMRUVT.mjs";import"../../__chunks__/chunk-U3MIDVR7.mjs";import"../../__chunks__/chunk-DGMI66QS.mjs";import"../../__chunks__/chunk-PKD3AEXI.mjs";import"../../__chunks__/chunk-CLUVDWX6.mjs";import"../../__chunks__/chunk-YTIAXTQR.mjs";import"../../__chunks__/chunk-2K2QZVBC.mjs";import"../../__chunks__/chunk-PDKESLKC.mjs";import"../../__chunks__/chunk-IE4SA26O.mjs";import"../../__chunks__/chunk-7GZRWUJQ.mjs";import"../../__chunks__/chunk-KHBRO4FY.mjs";import"../../__chunks__/chunk-KDWLSBQB.mjs";import"../../__chunks__/chunk-2VG3V3VD.mjs";import"../../__chunks__/chunk-VRLS225Q.mjs";import"../../__chunks__/chunk-4ODPAHHA.mjs";import"../../__chunks__/chunk-ECEWPZGA.mjs";import"../../__chunks__/chunk-XHM77HFZ.mjs";import"../../__chunks__/chunk-RL2G66LY.mjs";import"../../__chunks__/chunk-BCODBYYR.mjs";import"../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../__chunks__/chunk-OYQAXY6H.mjs";import"../../__chunks__/chunk-6CUDZR72.mjs";import"../../__chunks__/chunk-YX7TMA3N.mjs";import"../../__chunks__/chunk-MDVI45IV.mjs";import"../../__chunks__/chunk-3C5GZ3BL.mjs";import"../../__chunks__/chunk-6ME6A43J.mjs";import"../../__chunks__/chunk-DMF2DF5I.mjs";import"../../__chunks__/chunk-6OIZTWJQ.mjs";import"../../__chunks__/chunk-SWZ5LDC3.mjs";import"../../__chunks__/chunk-55SACSMS.mjs";import"../../__chunks__/chunk-ZDJN4F3W.mjs";import"../../__chunks__/chunk-OXC2IURR.mjs";import"../../__chunks__/chunk-J32T6OAP.mjs";import"../../__chunks__/chunk-4US7HVCR.mjs";import"../../__chunks__/chunk-HOBCDZ2D.mjs";import"../../__chunks__/chunk-4TBVQD27.mjs";import"../../__chunks__/chunk-M3GFSV3G.mjs";import"../../__chunks__/chunk-WV5X6BXA.mjs";import"../../__chunks__/chunk-VVZ2I6CL.mjs";import"../../__chunks__/chunk-YSPLCVKY.mjs";import"../../__chunks__/chunk-N55JEIM6.mjs";import"../../__chunks__/chunk-E2GGD7D4.mjs";import"../../__chunks__/chunk-L3YPAYXZ.mjs";import"../../__chunks__/chunk-R3U4ONSV.mjs";import"../../__chunks__/chunk-4QPWKBSQ.mjs";import"../../__chunks__/chunk-KMJMQEXI.mjs";import"../../__chunks__/chunk-YK7T6MBD.mjs";import"../../__chunks__/chunk-G5DKGX73.mjs";import"../../__chunks__/chunk-FE5FK7I6.mjs";import"../../__chunks__/chunk-XXV6KGR4.mjs";import"../../__chunks__/chunk-HORSXVIV.mjs";import"../../__chunks__/chunk-JDTTHSQL.mjs";import"../../__chunks__/chunk-EUBOWXIH.mjs";import"../../__chunks__/chunk-NWEUIK3A.mjs";import"../../__chunks__/chunk-ANIJIRAY.mjs";import"../../__chunks__/chunk-3S57OP4Z.mjs";import"../../__chunks__/chunk-OJX2TSAZ.mjs";import"../../__chunks__/chunk-QTKK6OSJ.mjs";import"../../__chunks__/chunk-6ACLOUQ3.mjs";import"../../__chunks__/chunk-WE7YOBO7.mjs";import"../../__chunks__/chunk-GMP2DZ26.mjs";import"../../__chunks__/chunk-YHNOFYGM.mjs";import"../../__chunks__/chunk-G7GU37XI.mjs";import"../../__chunks__/chunk-72VXBZOB.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-RMW3YLGD.mjs";import"../../__chunks__/chunk-YSCND2MX.mjs";import"../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../__chunks__/chunk-NJN53MJV.mjs";import"../../__chunks__/chunk-YJK5FPW4.mjs";import"../../__chunks__/chunk-36XFDUXN.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-TFZ46GCB.mjs";import"../../__chunks__/chunk-OL6LWUIJ.mjs";import"../../__chunks__/chunk-ZRSYQ3MT.mjs";import"../../__chunks__/chunk-M6MN4RXG.mjs";import"../../__chunks__/chunk-KIOUFP5Q.mjs";import"../../__chunks__/chunk-5DILKRFV.mjs";import"../../__chunks__/chunk-DZ2BIDRW.mjs";import"../../__chunks__/chunk-HZGRS7HG.mjs";import"../../__chunks__/chunk-NTPPBM7T.mjs";import"../../__chunks__/chunk-GUAXMODN.mjs";import"../../__chunks__/chunk-4VA2SULD.mjs";import"../../__chunks__/chunk-ZAPRDHIW.mjs";import"../../__chunks__/chunk-GIZSIYH4.mjs";import"../../__chunks__/chunk-WVAP3V3E.mjs";import"../../__chunks__/chunk-XVX7N3JK.mjs";import"../../__chunks__/chunk-HH5SA7BX.mjs";import"../../__chunks__/chunk-TCDMXBPB.mjs";import"../../__chunks__/chunk-B3IKUIRK.mjs";import"../../__chunks__/chunk-FULNMU6J.mjs";import"../../__chunks__/chunk-NGM3AVCY.mjs";import"../../__chunks__/chunk-IXBWD6BF.mjs";import"../../__chunks__/chunk-M2KI5WFN.mjs";import"../../__chunks__/chunk-VCAWVAO5.mjs";import"../../__chunks__/chunk-55W25Q35.mjs";import"../../__chunks__/chunk-OVBYKKMB.mjs";import"../../__chunks__/chunk-4B3YTXMB.mjs";import"../../__chunks__/chunk-7QYO4UOP.mjs";import"../../__chunks__/chunk-7C3DDRSK.mjs";import"../../__chunks__/chunk-4MWQKLVG.mjs";import"../../__chunks__/chunk-5OMQOYP7.mjs";import"../../__chunks__/chunk-UCNS6KD5.mjs";import"../../__chunks__/chunk-35MNP3LA.mjs";import"../../__chunks__/chunk-TX7PTLVP.mjs";import"../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../__chunks__/chunk-DFSBS3PX.mjs";import"../../__chunks__/chunk-GFR6K4DR.mjs";import"../../__chunks__/chunk-6D53LH5J.mjs";import"../../__chunks__/chunk-H33OUO77.mjs";import"../../__chunks__/chunk-HQQMSHTW.mjs";import"../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../__chunks__/chunk-NK5Y3RLY.mjs";import"../../__chunks__/chunk-6UMOECOW.mjs";import"../../__chunks__/chunk-54B3EIZC.mjs";import"../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../__chunks__/chunk-VDDXFGB2.mjs";import"../../__chunks__/chunk-BRJNX4JF.mjs";import"../../__chunks__/chunk-RCNZOLEM.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-HAPHEGVZ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-DBIIY2TX.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-WHEXX3BD.mjs";import"../../__chunks__/chunk-CDTYHGXZ.mjs";import"../../__chunks__/chunk-2RAULLHL.mjs";import"../../__chunks__/chunk-7CELSV4S.mjs";import"../../__chunks__/chunk-YUITECZ5.mjs";import"../../__chunks__/chunk-TVELGQIH.mjs";import"../../__chunks__/chunk-2BSPSW6X.mjs";import"../../__chunks__/chunk-OVXVICF7.mjs";import"../../__chunks__/chunk-BTJWNUM6.mjs";import"../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../__chunks__/chunk-WZI2I6NX.mjs";import"../../__chunks__/chunk-TI37DKBT.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../__chunks__/chunk-UCRVRBTA.mjs";import"../../__chunks__/chunk-TQIB47S6.mjs";import"../../__chunks__/chunk-MGQ373AO.mjs";import"../../__chunks__/chunk-RPTH42EF.mjs";import"../../__chunks__/chunk-3UNGCOKO.mjs";import"../../__chunks__/chunk-SUHXBGYR.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-7XASUTI2.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-6R2WFQ7U.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-2NF5HX3H.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-LJX4MW7B.mjs";import"../../__chunks__/chunk-DTQL3IDP.mjs";import"../../__chunks__/chunk-CKTFPRJS.mjs";import"../../__chunks__/chunk-WK4PPAAJ.mjs";import"../../__chunks__/chunk-O7KFAU3B.mjs";import"../../__chunks__/chunk-EHDGJUEU.mjs";import"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-Q4OG6NMJ.mjs";import"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as ToastUICoordinator};
|
|
2
|
+
//# sourceMappingURL=ToastUICoordinator.mjs.map
|
|
@@ -58,7 +58,7 @@ class LifetimeManager {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
init({ successfulToastLifetime }) {
|
|
61
|
-
this.successfulToastLifetime = successfulToastLifetime
|
|
61
|
+
this.successfulToastLifetime = successfulToastLifetime ?? DEFAULT_SUCCESSFUL_TOAST_LIFETIME;
|
|
62
62
|
}
|
|
63
63
|
destroy() {
|
|
64
64
|
this.timeoutIntervals.forEach((interval) => clearTimeout(interval));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/managers/ToastManager/helpers/LifetimeManager.ts"],
|
|
4
|
-
"sourcesContent": ["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
|
|
4
|
+
"sourcesContent": ["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
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAIO;AAMP,MAAM,oCAAoC;AAEnC,MAAM,gBAAgB;AAAA,EAK3B,cAAc;AAJd,SAAQ,mBACN,oBAAI,IAAI;AACV,SAAQ,0BAAkC;AAS1C,SAAO,QAAQ,CAAC,YAAoB;AAClC,WAAK,KAAK,OAAO;AAEjB,UAAI,KAAK,2BAA2B,GAAG;AACrC;AAAA,MACF;AAEA,YAAM,UAAU,WAAW,MAAM;AAC/B,yDAAuB,OAAO;AAAA,MAChC,GAAG,KAAK,uBAAuB;AAE/B,WAAK,iBAAiB,IAAI,SAAS,OAAO;AAAA,IAC5C;AAEA,SAAO,0BAA0B,CAAC,SAAiB,aAAqB;AACtE,WAAK,KAAK,OAAO;AAEjB,UAAI,YAAY,GAAG;AACjB;AAAA,MACF;AAEA,YAAM,UAAU,WAAW,MAAM;AAC/B,oDAAkB,OAAO;AACzB,cAAM,cAAc,wDAAmC,OAAO;AAC9D,sBAAc;AAAA,MAChB,GAAG,QAAQ;AAEX,WAAK,iBAAiB,IAAI,SAAS,OAAO;AAAA,IAC5C;AAEA,SAAO,OAAO,CAAC,YAAoB;AACjC,YAAM,UAAU,KAAK,iBAAiB,IAAI,OAAO;AACjD,UAAI,SAAS;AACX,qBAAa,OAAO;AACpB,aAAK,iBAAiB,OAAO,OAAO;AAAA,MACtC;AAAA,IACF;AAAA,EA3Ce;AAAA,EAER,KAAK,EAAE,wBAAwB,GAAgC;AACpE,SAAK,0BACH,2BAA2B;AAAA,EAC/B;AAAA,EAwCO,UAAU;AACf,SAAK,iBAAiB,QAAQ,CAAC,aAAa,aAAa,QAAQ,CAAC;AAClE,SAAK,iBAAiB,MAAM;AAAA,EAC9B;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as a}from"../../../__chunks__/chunk-2TCIBFJT.mjs";import"../../../__chunks__/chunk-MBBXTAA3.mjs";import"../../../__chunks__/chunk-RUBOJOJP.mjs";import"../../../__chunks__/chunk-7UJCMFKV.mjs";import"../../../__chunks__/chunk-T7DVMF2K.mjs";import"../../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../../__chunks__/chunk-6UZHM5LW.mjs";import"../../../__chunks__/chunk-U2IPYFJX.mjs";import"../../../__chunks__/chunk-UZTMRUVT.mjs";import"../../../__chunks__/chunk-U3MIDVR7.mjs";import"../../../__chunks__/chunk-DGMI66QS.mjs";import"../../../__chunks__/chunk-PKD3AEXI.mjs";import"../../../__chunks__/chunk-CLUVDWX6.mjs";import"../../../__chunks__/chunk-YTIAXTQR.mjs";import"../../../__chunks__/chunk-2K2QZVBC.mjs";import"../../../__chunks__/chunk-PDKESLKC.mjs";import"../../../__chunks__/chunk-IE4SA26O.mjs";import"../../../__chunks__/chunk-7GZRWUJQ.mjs";import"../../../__chunks__/chunk-KHBRO4FY.mjs";import"../../../__chunks__/chunk-KDWLSBQB.mjs";import"../../../__chunks__/chunk-2VG3V3VD.mjs";import"../../../__chunks__/chunk-VRLS225Q.mjs";import"../../../__chunks__/chunk-4ODPAHHA.mjs";import"../../../__chunks__/chunk-ECEWPZGA.mjs";import"../../../__chunks__/chunk-XHM77HFZ.mjs";import"../../../__chunks__/chunk-RL2G66LY.mjs";import"../../../__chunks__/chunk-BCODBYYR.mjs";import"../../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../../__chunks__/chunk-OYQAXY6H.mjs";import"../../../__chunks__/chunk-6CUDZR72.mjs";import"../../../__chunks__/chunk-YX7TMA3N.mjs";import"../../../__chunks__/chunk-MDVI45IV.mjs";import"../../../__chunks__/chunk-3C5GZ3BL.mjs";import"../../../__chunks__/chunk-6ME6A43J.mjs";import"../../../__chunks__/chunk-DMF2DF5I.mjs";import"../../../__chunks__/chunk-6OIZTWJQ.mjs";import"../../../__chunks__/chunk-SWZ5LDC3.mjs";import"../../../__chunks__/chunk-55SACSMS.mjs";import"../../../__chunks__/chunk-ZDJN4F3W.mjs";import"../../../__chunks__/chunk-OXC2IURR.mjs";import"../../../__chunks__/chunk-J32T6OAP.mjs";import"../../../__chunks__/chunk-4US7HVCR.mjs";import"../../../__chunks__/chunk-HOBCDZ2D.mjs";import"../../../__chunks__/chunk-4TBVQD27.mjs";import"../../../__chunks__/chunk-M3GFSV3G.mjs";import"../../../__chunks__/chunk-WV5X6BXA.mjs";import"../../../__chunks__/chunk-VVZ2I6CL.mjs";import"../../../__chunks__/chunk-YSPLCVKY.mjs";import"../../../__chunks__/chunk-N55JEIM6.mjs";import"../../../__chunks__/chunk-E2GGD7D4.mjs";import"../../../__chunks__/chunk-L3YPAYXZ.mjs";import"../../../__chunks__/chunk-R3U4ONSV.mjs";import"../../../__chunks__/chunk-4QPWKBSQ.mjs";import"../../../__chunks__/chunk-KMJMQEXI.mjs";import"../../../__chunks__/chunk-YK7T6MBD.mjs";import"../../../__chunks__/chunk-G5DKGX73.mjs";import"../../../__chunks__/chunk-FE5FK7I6.mjs";import"../../../__chunks__/chunk-XXV6KGR4.mjs";import"../../../__chunks__/chunk-HORSXVIV.mjs";import"../../../__chunks__/chunk-JDTTHSQL.mjs";import"../../../__chunks__/chunk-EUBOWXIH.mjs";import"../../../__chunks__/chunk-NWEUIK3A.mjs";import"../../../__chunks__/chunk-ANIJIRAY.mjs";import"../../../__chunks__/chunk-3S57OP4Z.mjs";import"../../../__chunks__/chunk-OJX2TSAZ.mjs";import"../../../__chunks__/chunk-QTKK6OSJ.mjs";import"../../../__chunks__/chunk-6ACLOUQ3.mjs";import"../../../__chunks__/chunk-WE7YOBO7.mjs";import"../../../__chunks__/chunk-GMP2DZ26.mjs";import"../../../__chunks__/chunk-YHNOFYGM.mjs";import"../../../__chunks__/chunk-G7GU37XI.mjs";import"../../../__chunks__/chunk-72VXBZOB.mjs";import"../../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../../__chunks__/chunk-RMW3YLGD.mjs";import"../../../__chunks__/chunk-YSCND2MX.mjs";import"../../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../../__chunks__/chunk-NJN53MJV.mjs";import"../../../__chunks__/chunk-YJK5FPW4.mjs";import"../../../__chunks__/chunk-36XFDUXN.mjs";import"../../../__chunks__/chunk-O7LCTC4K.mjs";import"../../../__chunks__/chunk-TFZ46GCB.mjs";import"../../../__chunks__/chunk-OL6LWUIJ.mjs";import"../../../__chunks__/chunk-ZRSYQ3MT.mjs";import"../../../__chunks__/chunk-M6MN4RXG.mjs";import"../../../__chunks__/chunk-KIOUFP5Q.mjs";import"../../../__chunks__/chunk-5DILKRFV.mjs";import"../../../__chunks__/chunk-DZ2BIDRW.mjs";import"../../../__chunks__/chunk-HZGRS7HG.mjs";import"../../../__chunks__/chunk-NTPPBM7T.mjs";import"../../../__chunks__/chunk-GUAXMODN.mjs";import"../../../__chunks__/chunk-4VA2SULD.mjs";import"../../../__chunks__/chunk-ZAPRDHIW.mjs";import"../../../__chunks__/chunk-GIZSIYH4.mjs";import"../../../__chunks__/chunk-WVAP3V3E.mjs";import"../../../__chunks__/chunk-XVX7N3JK.mjs";import"../../../__chunks__/chunk-HH5SA7BX.mjs";import"../../../__chunks__/chunk-TCDMXBPB.mjs";import"../../../__chunks__/chunk-B3IKUIRK.mjs";import"../../../__chunks__/chunk-FULNMU6J.mjs";import"../../../__chunks__/chunk-NGM3AVCY.mjs";import"../../../__chunks__/chunk-IXBWD6BF.mjs";import"../../../__chunks__/chunk-M2KI5WFN.mjs";import"../../../__chunks__/chunk-VCAWVAO5.mjs";import"../../../__chunks__/chunk-55W25Q35.mjs";import"../../../__chunks__/chunk-OVBYKKMB.mjs";import"../../../__chunks__/chunk-4B3YTXMB.mjs";import"../../../__chunks__/chunk-7QYO4UOP.mjs";import"../../../__chunks__/chunk-7C3DDRSK.mjs";import"../../../__chunks__/chunk-4MWQKLVG.mjs";import"../../../__chunks__/chunk-5OMQOYP7.mjs";import"../../../__chunks__/chunk-UCNS6KD5.mjs";import"../../../__chunks__/chunk-35MNP3LA.mjs";import"../../../__chunks__/chunk-TX7PTLVP.mjs";import"../../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../../__chunks__/chunk-DFSBS3PX.mjs";import"../../../__chunks__/chunk-GFR6K4DR.mjs";import"../../../__chunks__/chunk-6D53LH5J.mjs";import"../../../__chunks__/chunk-H33OUO77.mjs";import"../../../__chunks__/chunk-HQQMSHTW.mjs";import"../../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../../__chunks__/chunk-NK5Y3RLY.mjs";import"../../../__chunks__/chunk-6UMOECOW.mjs";import"../../../__chunks__/chunk-54B3EIZC.mjs";import"../../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../../__chunks__/chunk-VDDXFGB2.mjs";import"../../../__chunks__/chunk-BRJNX4JF.mjs";import"../../../__chunks__/chunk-RCNZOLEM.mjs";import"../../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../../__chunks__/chunk-UTWIKUIK.mjs";import"../../../__chunks__/chunk-UERJ6AKK.mjs";import"../../../__chunks__/chunk-KPK72MOE.mjs";import"../../../__chunks__/chunk-7VHTZYM2.mjs";import"../../../__chunks__/chunk-VNLGNNIL.mjs";import"../../../__chunks__/chunk-6JM4DPOH.mjs";import"../../../__chunks__/chunk-ZODTYAYF.mjs";import"../../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../../__chunks__/chunk-DKX6JUT6.mjs";import"../../../__chunks__/chunk-HAPHEGVZ.mjs";import"../../../__chunks__/chunk-KRWR77QE.mjs";import"../../../__chunks__/chunk-B7YCKWDU.mjs";import"../../../__chunks__/chunk-HDJOER66.mjs";import"../../../__chunks__/chunk-A7FTKX2A.mjs";import"../../../__chunks__/chunk-XKU5QBXG.mjs";import"../../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../../__chunks__/chunk-JMC7CMTU.mjs";import"../../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../../__chunks__/chunk-T2YPFNVM.mjs";import"../../../__chunks__/chunk-M7BM6QPB.mjs";import"../../../__chunks__/chunk-5N4F5T5L.mjs";import"../../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../../__chunks__/chunk-YMPZDHKF.mjs";import"../../../__chunks__/chunk-VKEESSBI.mjs";import"../../../__chunks__/chunk-2DNGCNYM.mjs";import"../../../__chunks__/chunk-SQVKVA7X.mjs";import"../../../__chunks__/chunk-I24YBVHK.mjs";import"../../../__chunks__/chunk-NB7A4C7L.mjs";import"../../../__chunks__/chunk-PJWJZHIS.mjs";import"../../../__chunks__/chunk-DBIIY2TX.mjs";import"../../../__chunks__/chunk-KD2IQ32V.mjs";import"../../../__chunks__/chunk-WHEXX3BD.mjs";import"../../../__chunks__/chunk-CDTYHGXZ.mjs";import"../../../__chunks__/chunk-2RAULLHL.mjs";import"../../../__chunks__/chunk-7CELSV4S.mjs";import"../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../__chunks__/chunk-TI37DKBT.mjs";import"../../../__chunks__/chunk-NTEMINYA.mjs";import"../../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../../__chunks__/chunk-3FXHIV6O.mjs";import"../../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../../__chunks__/chunk-UCRVRBTA.mjs";import"../../../__chunks__/chunk-TQIB47S6.mjs";import"../../../__chunks__/chunk-MGQ373AO.mjs";import"../../../__chunks__/chunk-RPTH42EF.mjs";import"../../../__chunks__/chunk-3UNGCOKO.mjs";import"../../../__chunks__/chunk-SUHXBGYR.mjs";import"../../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../../__chunks__/chunk-7XASUTI2.mjs";import"../../../__chunks__/chunk-EJV4VNJG.mjs";import"../../../__chunks__/chunk-6R2WFQ7U.mjs";import"../../../__chunks__/chunk-LHEH7L4L.mjs";import"../../../__chunks__/chunk-2NF5HX3H.mjs";import"../../../__chunks__/chunk-FI444OX3.mjs";import"../../../__chunks__/chunk-PKDR5ERF.mjs";import"../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../__chunks__/chunk-GLXG5BES.mjs";import"../../../__chunks__/chunk-LJX4MW7B.mjs";import"../../../__chunks__/chunk-DTQL3IDP.mjs";import"../../../__chunks__/chunk-CKTFPRJS.mjs";import"../../../__chunks__/chunk-WK4PPAAJ.mjs";import"../../../__chunks__/chunk-O7KFAU3B.mjs";import"../../../__chunks__/chunk-EHDGJUEU.mjs";import"../../../__chunks__/chunk-HOCSCRJF.mjs";import"../../../__chunks__/chunk-Q4OG6NMJ.mjs";import"../../../__chunks__/chunk-UE3IBKCO.mjs";import"../../../__chunks__/chunk-H6IZMTJK.mjs";import"../../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as LifetimeManager};
|
|
2
2
|
//# sourceMappingURL=LifetimeManager.mjs.map
|
|
@@ -21,24 +21,25 @@ __export(createToastsFromTransactions_exports, {
|
|
|
21
21
|
createToastsFromTransactions: () => createToastsFromTransactions
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(createToastsFromTransactions_exports);
|
|
24
|
-
var import_getEgldLabel = require("../../../methods/network/getEgldLabel");
|
|
25
|
-
var import_getExplorerAddress = require("../../../methods/network/getExplorerAddress");
|
|
26
24
|
var import_transactionStateByStatus = require("../../../store/actions/transactions/transactionStateByStatus");
|
|
25
|
+
var import_accountSelectors = require("../../../store/selectors/accountSelectors");
|
|
26
|
+
var import_toastsSelectors = require("../../../store/selectors/toastsSelectors");
|
|
27
|
+
var import_transactionsSelector = require("../../../store/selectors/transactionsSelector");
|
|
28
|
+
var import_store = require("../../../store/store");
|
|
27
29
|
var import_helpers = require("../../../utils/transactions/getTransactionsHistory/helpers");
|
|
28
30
|
var import_createTransactionToast = require("./createTransactionToast");
|
|
29
31
|
const createToastsFromTransactions = async ({
|
|
30
|
-
toastList,
|
|
31
|
-
transactionsSessions,
|
|
32
|
-
account,
|
|
33
32
|
existingCompletedTransactions = [],
|
|
34
|
-
skipFetchingTransactions = false
|
|
33
|
+
skipFetchingTransactions = false,
|
|
34
|
+
store = (0, import_store.getState)()
|
|
35
35
|
}) => {
|
|
36
36
|
const pendingTransactionToasts = [];
|
|
37
37
|
const completedTransactionToasts = [
|
|
38
38
|
...existingCompletedTransactions
|
|
39
39
|
];
|
|
40
|
-
const
|
|
41
|
-
const
|
|
40
|
+
const toastList = (0, import_toastsSelectors.toastsSliceSelector)(store);
|
|
41
|
+
const transactionsSessions = (0, import_transactionsSelector.transactionsSliceSelector)(store);
|
|
42
|
+
const address = (0, import_accountSelectors.addressSelector)(store);
|
|
42
43
|
for (const toast of toastList.transactionToasts) {
|
|
43
44
|
const transactionSession = transactionsSessions[toast.toastId];
|
|
44
45
|
if (!transactionSession?.status) {
|
|
@@ -47,10 +48,8 @@ const createToastsFromTransactions = async ({
|
|
|
47
48
|
const { status, transactions, transactionsDisplayInfo } = transactionSession;
|
|
48
49
|
const interprettedTransactions = await (0, import_helpers.mapServerTransactionsToListItems)({
|
|
49
50
|
transactions,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
egldLabel,
|
|
53
|
-
skipFetchingTransactions
|
|
51
|
+
skipFetchingTransactions,
|
|
52
|
+
store
|
|
54
53
|
});
|
|
55
54
|
const isTimedOut = (0, import_transactionStateByStatus.getIsTransactionTimedOut)(status);
|
|
56
55
|
const isFailed = (0, import_transactionStateByStatus.getIsTransactionFailed)(status);
|
|
@@ -63,11 +62,10 @@ const createToastsFromTransactions = async ({
|
|
|
63
62
|
}
|
|
64
63
|
const transactionToast = (0, import_createTransactionToast.createTransactionToast)({
|
|
65
64
|
toastId: toast.toastId,
|
|
66
|
-
address
|
|
65
|
+
address,
|
|
67
66
|
status,
|
|
68
67
|
transactions: interprettedTransactions,
|
|
69
68
|
transactionsDisplayInfo,
|
|
70
|
-
explorerAddress,
|
|
71
69
|
startTime,
|
|
72
70
|
endTime
|
|
73
71
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/managers/ToastManager/helpers/createToastsFromTransactions.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["import {\n getIsTransactionFailed,\n getIsTransactionPending,\n getIsTransactionSuccessful,\n getIsTransactionTimedOut\n} from 'store/actions/transactions/transactionStateByStatus';\nimport { addressSelector } from 'store/selectors/accountSelectors';\nimport { toastsSliceSelector } from 'store/selectors/toastsSelectors';\nimport { transactionsSliceSelector } from 'store/selectors/transactionsSelector';\nimport { getState } from 'store/store';\nimport { StoreType } from 'store/store.types';\nimport { mapServerTransactionsToListItems } from 'utils/transactions/getTransactionsHistory/helpers';\nimport { createTransactionToast } from './createTransactionToast';\nimport { ITransactionToast } from '../types/toast.types';\ninterface CreateToastsFromTransactionsReturnType {\n pendingTransactionToasts: ITransactionToast[];\n completedTransactionToasts: ITransactionToast[];\n}\n\ninterface CreateToastsFromTransactionsParamsType {\n existingCompletedTransactions?: ITransactionToast[];\n skipFetchingTransactions?: boolean;\n store?: StoreType;\n}\n\nexport const createToastsFromTransactions = async ({\n existingCompletedTransactions = [],\n skipFetchingTransactions = false,\n store = getState()\n}: CreateToastsFromTransactionsParamsType): Promise<CreateToastsFromTransactionsReturnType> => {\n const pendingTransactionToasts: ITransactionToast[] = [];\n const completedTransactionToasts: ITransactionToast[] = [\n ...existingCompletedTransactions\n ];\n const toastList = toastsSliceSelector(store);\n const transactionsSessions = transactionsSliceSelector(store);\n const address = addressSelector(store);\n\n for (const toast of toastList.transactionToasts) {\n const transactionSession = transactionsSessions[toast.toastId];\n if (!transactionSession?.status) {\n continue;\n }\n\n const { status, transactions, transactionsDisplayInfo } =\n transactionSession;\n\n const interprettedTransactions = await mapServerTransactionsToListItems({\n transactions,\n skipFetchingTransactions,\n store\n });\n\n const isTimedOut = getIsTransactionTimedOut(status);\n const isFailed = getIsTransactionFailed(status);\n const isSuccessful = getIsTransactionSuccessful(status);\n const isCompleted = isTimedOut || isFailed || isSuccessful;\n const isPending = getIsTransactionPending(status);\n const { startTime, endTime } = toast;\n\n if (\n isCompleted &&\n completedTransactionToasts.some((t) => t.toastId === toast.toastId)\n ) {\n continue;\n }\n\n const transactionToast = createTransactionToast({\n toastId: toast.toastId,\n address,\n status,\n transactions: interprettedTransactions,\n transactionsDisplayInfo,\n startTime,\n endTime\n });\n\n if (isCompleted) {\n completedTransactionToasts.push(transactionToast);\n }\n\n if (isPending) {\n pendingTransactionToasts.push(transactionToast);\n }\n }\n\n return {\n pendingTransactionToasts,\n completedTransactionToasts\n };\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAKO;AACP,8BAAgC;AAChC,6BAAoC;AACpC,kCAA0C;AAC1C,mBAAyB;AAEzB,qBAAiD;AACjD,oCAAuC;AAahC,MAAM,+BAA+B,OAAO;AAAA,EACjD,gCAAgC,CAAC;AAAA,EACjC,2BAA2B;AAAA,EAC3B,YAAQ,uBAAS;AACnB,MAA+F;AAC7F,QAAM,2BAAgD,CAAC;AACvD,QAAM,6BAAkD;AAAA,IACtD,GAAG;AAAA,EACL;AACA,QAAM,gBAAY,4CAAoB,KAAK;AAC3C,QAAM,2BAAuB,uDAA0B,KAAK;AAC5D,QAAM,cAAU,yCAAgB,KAAK;AAErC,aAAW,SAAS,UAAU,mBAAmB;AAC/C,UAAM,qBAAqB,qBAAqB,MAAM,OAAO;AAC7D,QAAI,CAAC,oBAAoB,QAAQ;AAC/B;AAAA,IACF;AAEA,UAAM,EAAE,QAAQ,cAAc,wBAAwB,IACpD;AAEF,UAAM,2BAA2B,UAAM,iDAAiC;AAAA,MACtE;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAED,UAAM,iBAAa,0DAAyB,MAAM;AAClD,UAAM,eAAW,wDAAuB,MAAM;AAC9C,UAAM,mBAAe,4DAA2B,MAAM;AACtD,UAAM,cAAc,cAAc,YAAY;AAC9C,UAAM,gBAAY,yDAAwB,MAAM;AAChD,UAAM,EAAE,WAAW,QAAQ,IAAI;AAE/B,QACE,eACA,2BAA2B,KAAK,CAAC,MAAM,EAAE,YAAY,MAAM,OAAO,GAClE;AACA;AAAA,IACF;AAEA,UAAM,uBAAmB,sDAAuB;AAAA,MAC9C,SAAS,MAAM;AAAA,MACf;AAAA,MACA;AAAA,MACA,cAAc;AAAA,MACd;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAED,QAAI,aAAa;AACf,iCAA2B,KAAK,gBAAgB;AAAA,IAClD;AAEA,QAAI,WAAW;AACb,+BAAyB,KAAK,gBAAgB;AAAA,IAChD;AAAA,EACF;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ToastsSliceType } from '../../../store/slices/toast/toastSlice.types';
|
|
3
|
-
import { SessionTransactionType } from '../../../types/transactions.types';
|
|
1
|
+
import { StoreType } from '../../../store/store.types';
|
|
4
2
|
import { ITransactionToast } from '../types/toast.types';
|
|
5
3
|
interface CreateToastsFromTransactionsReturnType {
|
|
6
4
|
pendingTransactionToasts: ITransactionToast[];
|
|
7
5
|
completedTransactionToasts: ITransactionToast[];
|
|
8
6
|
}
|
|
9
7
|
interface CreateToastsFromTransactionsParamsType {
|
|
10
|
-
toastList: ToastsSliceType;
|
|
11
|
-
transactionsSessions: Record<string, SessionTransactionType>;
|
|
12
|
-
account: AccountSliceType;
|
|
13
8
|
existingCompletedTransactions?: ITransactionToast[];
|
|
14
9
|
skipFetchingTransactions?: boolean;
|
|
10
|
+
store?: StoreType;
|
|
15
11
|
}
|
|
16
|
-
export declare const createToastsFromTransactions: ({
|
|
12
|
+
export declare const createToastsFromTransactions: ({ existingCompletedTransactions, skipFetchingTransactions, store }: CreateToastsFromTransactionsParamsType) => Promise<CreateToastsFromTransactionsReturnType>;
|
|
17
13
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../../__chunks__/chunk-U2IPYFJX.mjs";import"../../../__chunks__/chunk-UZTMRUVT.mjs";import"../../../__chunks__/chunk-U3MIDVR7.mjs";import"../../../__chunks__/chunk-DGMI66QS.mjs";import"../../../__chunks__/chunk-PKD3AEXI.mjs";import"../../../__chunks__/chunk-CLUVDWX6.mjs";import"../../../__chunks__/chunk-E2GGD7D4.mjs";import"../../../__chunks__/chunk-XXV6KGR4.mjs";import"../../../__chunks__/chunk-NGM3AVCY.mjs";import"../../../__chunks__/chunk-VCAWVAO5.mjs";import"../../../__chunks__/chunk-55W25Q35.mjs";import"../../../__chunks__/chunk-OVBYKKMB.mjs";import"../../../__chunks__/chunk-4B3YTXMB.mjs";import"../../../__chunks__/chunk-7QYO4UOP.mjs";import"../../../__chunks__/chunk-7C3DDRSK.mjs";import"../../../__chunks__/chunk-4MWQKLVG.mjs";import"../../../__chunks__/chunk-5OMQOYP7.mjs";import"../../../__chunks__/chunk-UCNS6KD5.mjs";import"../../../__chunks__/chunk-35MNP3LA.mjs";import"../../../__chunks__/chunk-TX7PTLVP.mjs";import"../../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../../__chunks__/chunk-DFSBS3PX.mjs";import"../../../__chunks__/chunk-GFR6K4DR.mjs";import"../../../__chunks__/chunk-6D53LH5J.mjs";import"../../../__chunks__/chunk-H33OUO77.mjs";import"../../../__chunks__/chunk-HQQMSHTW.mjs";import"../../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../../__chunks__/chunk-NK5Y3RLY.mjs";import"../../../__chunks__/chunk-6UMOECOW.mjs";import"../../../__chunks__/chunk-54B3EIZC.mjs";import"../../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../../__chunks__/chunk-VDDXFGB2.mjs";import"../../../__chunks__/chunk-BRJNX4JF.mjs";import"../../../__chunks__/chunk-RCNZOLEM.mjs";import"../../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../../__chunks__/chunk-UTWIKUIK.mjs";import"../../../__chunks__/chunk-UERJ6AKK.mjs";import"../../../__chunks__/chunk-KPK72MOE.mjs";import"../../../__chunks__/chunk-7VHTZYM2.mjs";import"../../../__chunks__/chunk-VNLGNNIL.mjs";import"../../../__chunks__/chunk-6JM4DPOH.mjs";import"../../../__chunks__/chunk-ZODTYAYF.mjs";import"../../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../../__chunks__/chunk-DKX6JUT6.mjs";import"../../../__chunks__/chunk-HAPHEGVZ.mjs";import"../../../__chunks__/chunk-KRWR77QE.mjs";import"../../../__chunks__/chunk-B7YCKWDU.mjs";import"../../../__chunks__/chunk-HDJOER66.mjs";import"../../../__chunks__/chunk-A7FTKX2A.mjs";import"../../../__chunks__/chunk-XKU5QBXG.mjs";import"../../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../../__chunks__/chunk-JMC7CMTU.mjs";import"../../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../../__chunks__/chunk-T2YPFNVM.mjs";import"../../../__chunks__/chunk-M7BM6QPB.mjs";import"../../../__chunks__/chunk-5N4F5T5L.mjs";import"../../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../../__chunks__/chunk-YMPZDHKF.mjs";import"../../../__chunks__/chunk-VKEESSBI.mjs";import"../../../__chunks__/chunk-2DNGCNYM.mjs";import"../../../__chunks__/chunk-SQVKVA7X.mjs";import"../../../__chunks__/chunk-I24YBVHK.mjs";import"../../../__chunks__/chunk-NB7A4C7L.mjs";import"../../../__chunks__/chunk-PJWJZHIS.mjs";import"../../../__chunks__/chunk-DBIIY2TX.mjs";import"../../../__chunks__/chunk-KD2IQ32V.mjs";import"../../../__chunks__/chunk-7CELSV4S.mjs";import"../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../__chunks__/chunk-TI37DKBT.mjs";import"../../../__chunks__/chunk-NTEMINYA.mjs";import"../../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../__chunks__/chunk-GLXG5BES.mjs";import"../../../__chunks__/chunk-Q4OG6NMJ.mjs";export{a as createToastsFromTransactions};
|
|
2
2
|
//# sourceMappingURL=createToastsFromTransactions.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/managers/ToastManager/helpers/createTransactionToast.ts"],
|
|
4
|
-
"sourcesContent": ["import { ITransactionListItem } from 'lib/sdkDappUi';\nimport { getIsTransactionPending } from 'store/actions/transactions/transactionStateByStatus';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport { TransactionsDisplayInfoType } from 'types/transactions.types';\nimport { getToastDataStateByStatus } from './getToastDataStateByStatus';\nimport { getToastTransactionsStatus } from './getToastTransactionsStatus';\nimport { ITransactionToast } from '../types/toast.types';\ninterface CreateTransactionToastParamsType {\n toastId: string;\n address: string;\n status:
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sCAAwC;
|
|
4
|
+
"sourcesContent": ["import { ITransactionListItem } from 'lib/sdkDappUi';\nimport { getIsTransactionPending } from 'store/actions/transactions/transactionStateByStatus';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport { ServerTransactionType } from 'types/serverTransactions.types';\nimport { TransactionsDisplayInfoType } from 'types/transactions.types';\nimport { getToastDataStateByStatus } from './getToastDataStateByStatus';\nimport { getToastTransactionsStatus } from './getToastTransactionsStatus';\nimport { ITransactionToast } from '../types/toast.types';\ninterface CreateTransactionToastParamsType {\n toastId: string;\n address: string;\n status: ServerTransactionType['status'];\n transactions: ITransactionListItem[];\n transactionsDisplayInfo?: TransactionsDisplayInfoType;\n startTime: number;\n endTime: number;\n}\n\nexport const createTransactionToast = ({\n toastId,\n address,\n status,\n transactions,\n transactionsDisplayInfo,\n startTime,\n endTime\n}: CreateTransactionToastParamsType): ITransactionToast => {\n const hasPendingTransaction = transactions.some((tx) =>\n getIsTransactionPending(\n tx.status as TransactionServerStatusesEnum | TransactionBatchStatusesEnum\n )\n );\n // Extracts action name from the first transaction\n const txActionName = transactions[0]?.action?.name;\n\n const toastDataState = getToastDataStateByStatus({\n address,\n sender: transactions[0]?.interactor ?? '',\n toastId,\n status,\n transactionsDisplayInfo,\n txActionName\n });\n\n const processedTransactionsStatus = getToastTransactionsStatus(transactions);\n\n const transactionProgressState = hasPendingTransaction\n ? {\n endTime,\n startTime\n }\n : null;\n\n return {\n toastDataState,\n processedTransactionsStatus,\n transactionProgressState,\n toastId,\n transactions\n };\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sCAAwC;AAOxC,uCAA0C;AAC1C,wCAA2C;AAYpC,MAAM,yBAAyB,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAA2D;AACzD,QAAM,wBAAwB,aAAa;AAAA,IAAK,CAAC,WAC/C;AAAA,MACE,GAAG;AAAA,IACL;AAAA,EACF;AAEA,QAAM,eAAe,aAAa,CAAC,GAAG,QAAQ;AAE9C,QAAM,qBAAiB,4DAA0B;AAAA,IAC/C;AAAA,IACA,QAAQ,aAAa,CAAC,GAAG,cAAc;AAAA,IACvC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,kCAA8B,8DAA2B,YAAY;AAE3E,QAAM,2BAA2B,wBAC7B;AAAA,IACE;AAAA,IACA;AAAA,EACF,IACA;AAEJ,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ITransactionListItem } from '../../../lib/sdkDappUi';
|
|
2
|
-
import {
|
|
2
|
+
import { ServerTransactionType } from '../../../types/serverTransactions.types';
|
|
3
3
|
import { TransactionsDisplayInfoType } from '../../../types/transactions.types';
|
|
4
4
|
import { ITransactionToast } from '../types/toast.types';
|
|
5
5
|
interface CreateTransactionToastParamsType {
|
|
6
6
|
toastId: string;
|
|
7
7
|
address: string;
|
|
8
|
-
status:
|
|
8
|
+
status: ServerTransactionType['status'];
|
|
9
9
|
transactions: ITransactionListItem[];
|
|
10
10
|
transactionsDisplayInfo?: TransactionsDisplayInfoType;
|
|
11
|
-
explorerAddress: string;
|
|
12
11
|
startTime: number;
|
|
13
12
|
endTime: number;
|
|
14
13
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../../__chunks__/chunk-UZTMRUVT.mjs";import"../../../__chunks__/chunk-U3MIDVR7.mjs";import"../../../__chunks__/chunk-DGMI66QS.mjs";import"../../../__chunks__/chunk-PKD3AEXI.mjs";import"../../../__chunks__/chunk-CLUVDWX6.mjs";import"../../../__chunks__/chunk-E2GGD7D4.mjs";import"../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../__chunks__/chunk-GLXG5BES.mjs";export{a as createTransactionToast};
|
|
2
2
|
//# sourceMappingURL=createTransactionToast.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../../__chunks__/chunk-DGMI66QS.mjs";import"../../../__chunks__/chunk-PKD3AEXI.mjs";import"../../../__chunks__/chunk-
|
|
1
|
+
import{a,b}from"../../../__chunks__/chunk-DGMI66QS.mjs";import"../../../__chunks__/chunk-PKD3AEXI.mjs";import"../../../__chunks__/chunk-CLUVDWX6.mjs";import"../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../__chunks__/chunk-GLXG5BES.mjs";export{a as ToastIconsEnum,b as getToastDataStateByStatus};
|
|
2
2
|
//# sourceMappingURL=getToastDataStateByStatus.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../../__chunks__/chunk-U3MIDVR7.mjs";import"../../../__chunks__/chunk-E2GGD7D4.mjs";import"../../../__chunks__/chunk-GLXG5BES.mjs";export{a as getToastTransactionsStatus};
|
|
2
2
|
//# sourceMappingURL=getToastTransactionsStatus.mjs.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const cache: {
|
|
2
|
+
'transaction-bf1ee4d78ccc57cb81c945decd70678cebc5b8b919f8e3c8411f2b19ebdd6a6x': {
|
|
3
|
+
asset: null;
|
|
4
|
+
interactor: string;
|
|
5
|
+
directionLabel: string;
|
|
6
|
+
action: {
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
amount: string;
|
|
10
|
+
hash: string;
|
|
11
|
+
status: string;
|
|
12
|
+
link: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TransactionServerStatusesEnum } from '../../../../../types/enums.types';
|
|
2
|
+
import { SessionTransactionType, SignedTransactionType } from '../../../../../types/transactions.types';
|
|
3
|
+
export declare const mockTransaction: {
|
|
4
|
+
nonce: number;
|
|
5
|
+
value: string;
|
|
6
|
+
receiver: string;
|
|
7
|
+
sender: string;
|
|
8
|
+
gasPrice: number;
|
|
9
|
+
gasLimit: number;
|
|
10
|
+
chainID: string;
|
|
11
|
+
version: number;
|
|
12
|
+
signature: string;
|
|
13
|
+
txHash: string;
|
|
14
|
+
receiverShard: number;
|
|
15
|
+
senderShard: number;
|
|
16
|
+
status: string;
|
|
17
|
+
hash: string;
|
|
18
|
+
invalidTransaction: boolean;
|
|
19
|
+
results: never[];
|
|
20
|
+
previousStatus: string;
|
|
21
|
+
hasStatusChanged: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare const mockTransactionSession: {
|
|
24
|
+
transactions: SignedTransactionType[];
|
|
25
|
+
status: TransactionServerStatusesEnum;
|
|
26
|
+
transactionsDisplayInfo: {
|
|
27
|
+
processingMessage: string;
|
|
28
|
+
errorMessage: string;
|
|
29
|
+
successMessage: string;
|
|
30
|
+
};
|
|
31
|
+
interpretedTransactions: {};
|
|
32
|
+
errorMessage: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const mockTransactionSlice: Record<string, SessionTransactionType>;
|