@multiversx/sdk-dapp 5.2.5 → 5.2.7
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-22IJ3QB4.mjs +2 -0
- package/out/__chunks__/{chunk-7ZUH3TQ2.mjs → chunk-2Y66XRQK.mjs} +2 -2
- package/out/__chunks__/chunk-34PFLOIB.mjs +2 -0
- package/out/__chunks__/{chunk-S22V4GGF.mjs → chunk-37O2ROE4.mjs} +2 -2
- package/out/__chunks__/{chunk-E5RLJTLP.mjs → chunk-3Q5IOJ67.mjs} +2 -2
- package/out/__chunks__/{chunk-UPHBWFSY.mjs → chunk-3WS7UAIF.mjs} +2 -2
- package/out/__chunks__/{chunk-LYNRBQNO.mjs → chunk-4JCZWUDH.mjs} +2 -2
- package/out/__chunks__/chunk-4L2AXB2K.mjs +2 -0
- package/out/__chunks__/chunk-4MWQKLVG.mjs +2 -0
- package/out/__chunks__/chunk-4MWQKLVG.mjs.map +7 -0
- package/out/__chunks__/{chunk-ZXNJFXKB.mjs → chunk-4PQ3E6VH.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-GR362QNP.mjs → chunk-5FZ5WUYZ.mjs} +2 -2
- package/out/__chunks__/{chunk-6DWUEZO7.mjs → chunk-5KVNYLOM.mjs} +2 -2
- package/out/__chunks__/chunk-5MKXCLBG.mjs +2 -0
- package/out/__chunks__/{chunk-52PGMMOM.mjs → chunk-5OMQOYP7.mjs} +2 -2
- package/out/__chunks__/{chunk-3WHS4QZZ.mjs → chunk-5TNG3JR3.mjs} +2 -2
- package/out/__chunks__/chunk-5WVYRVED.mjs +2 -0
- package/out/__chunks__/chunk-5WVYRVED.mjs.map +7 -0
- package/out/__chunks__/chunk-63MIE6JF.mjs +2 -0
- package/out/__chunks__/chunk-63MIE6JF.mjs.map +7 -0
- package/out/__chunks__/chunk-6L7YQWGX.mjs +2 -0
- package/out/__chunks__/chunk-6LOIZTC6.mjs +2 -0
- package/out/__chunks__/chunk-6LOIZTC6.mjs.map +7 -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-7VHTZYM2.mjs +2 -0
- package/out/__chunks__/chunk-7VHTZYM2.mjs.map +7 -0
- package/out/__chunks__/chunk-A3D3GW7R.mjs +2 -0
- package/out/__chunks__/{chunk-SK2W4LXI.mjs → chunk-A4KEELZM.mjs} +2 -2
- package/out/__chunks__/chunk-AORVRKD7.mjs +2 -0
- package/out/__chunks__/chunk-B4QT6VK6.mjs +2 -0
- package/out/__chunks__/chunk-B5ETDLE6.mjs +2 -0
- package/out/__chunks__/chunk-B5ETDLE6.mjs.map +7 -0
- package/out/__chunks__/chunk-BAWWEDTL.mjs +2 -0
- package/out/__chunks__/{chunk-3BVKYYHT.mjs → chunk-C6D4JSK4.mjs} +2 -2
- package/out/__chunks__/{chunk-GB2K574L.mjs → chunk-CLUVDWX6.mjs} +2 -2
- package/out/__chunks__/chunk-CLUVDWX6.mjs.map +7 -0
- package/out/__chunks__/{chunk-SMFNVU6B.mjs → chunk-CO23VS2O.mjs} +2 -2
- package/out/__chunks__/{chunk-GZL6GF6Z.mjs → chunk-CT235ZUB.mjs} +2 -2
- package/out/__chunks__/chunk-DLCBEPEX.mjs +2 -0
- package/out/__chunks__/chunk-DLCBEPEX.mjs.map +7 -0
- package/out/__chunks__/{chunk-FRIE2JPN.mjs → chunk-DP53BNR6.mjs} +2 -2
- 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-EETNNBUP.mjs +2 -0
- package/out/__chunks__/chunk-EETNNBUP.mjs.map +7 -0
- package/out/__chunks__/{chunk-X74ZW4SP.mjs → chunk-EEVAKQEF.mjs} +2 -2
- package/out/__chunks__/chunk-EYGPOZGS.mjs +2 -0
- package/out/__chunks__/{chunk-OF4WULEW.mjs → chunk-EYNHHGCH.mjs} +2 -2
- package/out/__chunks__/chunk-EZKCZPIE.mjs +2 -0
- package/out/__chunks__/chunk-EZKCZPIE.mjs.map +7 -0
- package/out/__chunks__/{chunk-C3LAZHGD.mjs → chunk-FNMAWOLC.mjs} +2 -2
- package/out/__chunks__/{chunk-EFD2PMLA.mjs → chunk-FUFPNXYS.mjs} +2 -2
- package/out/__chunks__/{chunk-CECXI5ZJ.mjs → chunk-G5VTJTDE.mjs} +2 -2
- package/out/__chunks__/{chunk-XADBXKX5.mjs → chunk-GFEDWIDV.mjs} +2 -2
- package/out/__chunks__/{chunk-EAH7XGM3.mjs → chunk-GUAXMODN.mjs} +2 -2
- package/out/__chunks__/{chunk-I4QHHCK6.mjs → chunk-HGQYSGTG.mjs} +2 -2
- package/out/__chunks__/chunk-HZGRS7HG.mjs +2 -0
- package/out/__chunks__/{chunk-CFJZFKIS.mjs → chunk-I47BE6ON.mjs} +2 -2
- package/out/__chunks__/{chunk-QEE4T6UM.mjs → chunk-ICTG3GLU.mjs} +2 -2
- package/out/__chunks__/{chunk-RB6NB2UN.mjs → chunk-IF3IASJC.mjs} +2 -2
- package/out/__chunks__/{chunk-LWCNB4VP.mjs → chunk-IGN5F3GN.mjs} +2 -2
- package/out/__chunks__/{chunk-ZBJRLPCR.mjs → chunk-J6WJ6ULQ.mjs} +2 -2
- package/out/__chunks__/{chunk-LZPMMMJZ.mjs → chunk-JIIULTH3.mjs} +2 -2
- package/out/__chunks__/{chunk-6ST4KZLT.mjs → chunk-JQ57YAGP.mjs} +2 -2
- package/out/__chunks__/chunk-JRRBXKOK.mjs +2 -0
- package/out/__chunks__/{chunk-UNBTFF6K.mjs → chunk-JSSRK6RP.mjs} +2 -2
- package/out/__chunks__/{chunk-BZQSEPTC.mjs → chunk-JTIXXP4J.mjs} +2 -2
- package/out/__chunks__/chunk-JTV664SG.mjs +2 -0
- package/out/__chunks__/chunk-JTV664SG.mjs.map +7 -0
- package/out/__chunks__/{chunk-GY6MHIOO.mjs → chunk-JVRKUYW6.mjs} +2 -2
- package/out/__chunks__/{chunk-PZHQ37I6.mjs → chunk-K373M2BG.mjs} +2 -2
- package/out/__chunks__/{chunk-2JGSMQ3T.mjs → chunk-K3VNFEPP.mjs} +2 -2
- package/out/__chunks__/chunk-K7X3YFJU.mjs +2 -0
- package/out/__chunks__/{chunk-NBQ7F24V.mjs.map → chunk-K7X3YFJU.mjs.map} +3 -3
- package/out/__chunks__/{chunk-JVI373HI.mjs → chunk-KLDTJCML.mjs} +2 -2
- package/out/__chunks__/chunk-KOLL3XGD.mjs +2 -0
- package/out/__chunks__/{chunk-HKKKOC5V.mjs → chunk-LFBY6WV3.mjs} +2 -2
- package/out/__chunks__/chunk-LJX4MW7B.mjs +2 -0
- package/out/__chunks__/chunk-LJX4MW7B.mjs.map +7 -0
- package/out/__chunks__/{chunk-F6QODHDC.mjs → chunk-LUCBMBG7.mjs} +2 -2
- 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-MSF6QQXH.mjs +2 -0
- 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-BUAVB6CL.mjs → chunk-NOIBKBS3.mjs} +2 -2
- package/out/__chunks__/{chunk-BHAHZQVO.mjs → chunk-NTPPBM7T.mjs} +2 -2
- package/out/__chunks__/{chunk-CANC2FCH.mjs → chunk-NUJ4VCBC.mjs} +2 -2
- package/out/__chunks__/chunk-O4I2ENO6.mjs +2 -0
- package/out/__chunks__/chunk-OLPFN3HZ.mjs +2 -0
- package/out/__chunks__/chunk-OPHTJKDE.mjs +2 -0
- package/out/__chunks__/{chunk-ARY5QEDY.mjs → chunk-PBTBNQ25.mjs} +2 -2
- package/out/__chunks__/chunk-PCTCQEFY.mjs +2 -0
- package/out/__chunks__/{chunk-JIBYUZL4.mjs → chunk-PI3A4HAK.mjs} +2 -2
- package/out/__chunks__/{chunk-ZXHMD677.mjs → chunk-Q6RQNGJC.mjs} +2 -2
- package/out/__chunks__/chunk-QAOBZWSF.mjs +2 -0
- package/out/__chunks__/{chunk-ZZNPJF24.mjs.map → chunk-QAOBZWSF.mjs.map} +1 -1
- package/out/__chunks__/chunk-QSXHUZLS.mjs +2 -0
- package/out/__chunks__/chunk-QSXHUZLS.mjs.map +7 -0
- package/out/__chunks__/{chunk-X6SYH5RO.mjs → chunk-QUPXSKV4.mjs} +2 -2
- package/out/__chunks__/{chunk-YNHWN4KZ.mjs → chunk-RIB3PJIR.mjs} +2 -2
- package/out/__chunks__/{chunk-3D7VMEVL.mjs → chunk-RXX3GSOM.mjs} +2 -2
- package/out/__chunks__/{chunk-UWGZQ6WZ.mjs → chunk-SGNJ44D2.mjs} +2 -2
- package/out/__chunks__/chunk-TBCYELRO.mjs +2 -0
- package/out/__chunks__/chunk-TBCYELRO.mjs.map +7 -0
- 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-EYUQF6VD.mjs → chunk-THWK4TAG.mjs} +2 -2
- package/out/__chunks__/{chunk-WOZIHP5Q.mjs → chunk-TLW7RSAO.mjs} +2 -2
- package/out/__chunks__/{chunk-AJC3F2YT.mjs → chunk-U3MIDVR7.mjs} +2 -2
- package/out/__chunks__/{chunk-S6NHNEQK.mjs → chunk-UCRVRBTA.mjs} +2 -2
- package/out/__chunks__/chunk-UY57JRX7.mjs +2 -0
- package/out/__chunks__/chunk-UY57JRX7.mjs.map +7 -0
- package/out/__chunks__/chunk-UZTMRUVT.mjs +2 -0
- package/out/__chunks__/chunk-UZTMRUVT.mjs.map +7 -0
- package/out/__chunks__/{chunk-LDTECGMM.mjs → chunk-V7P525KM.mjs} +2 -2
- package/out/__chunks__/{chunk-PNVMS2VO.mjs → chunk-VOJLXYJ3.mjs} +2 -2
- package/out/__chunks__/chunk-VRLS225Q.mjs +2 -0
- package/out/__chunks__/{chunk-JSKOWAZU.mjs → chunk-VW2RKDMX.mjs} +2 -2
- package/out/__chunks__/chunk-WGKDCYB7.mjs +2 -0
- package/out/__chunks__/chunk-WGKDCYB7.mjs.map +7 -0
- package/out/__chunks__/chunk-XFBUY46Y.mjs +2 -0
- package/out/__chunks__/{chunk-5YDUSQUN.mjs → chunk-XH2ZG7PU.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-JSTWLAYX.mjs → chunk-XYPOYVRU.mjs} +2 -2
- package/out/__chunks__/{chunk-HJGZQFKX.mjs → chunk-Y3OGRXWT.mjs} +2 -2
- package/out/__chunks__/{chunk-2FU37PY5.mjs → chunk-Y5BESSJK.mjs} +2 -2
- package/out/__chunks__/{chunk-6IDZ52FJ.mjs → chunk-Z3NZ36LQ.mjs} +2 -2
- package/out/__chunks__/{chunk-KD2K7HNK.mjs → chunk-Z64FHGQ2.mjs} +2 -2
- package/out/__chunks__/{chunk-3TJTXI66.mjs → chunk-ZC6ENJP4.mjs} +2 -2
- package/out/__chunks__/chunk-ZRMZYVMR.mjs +2 -0
- package/out/__chunks__/{chunk-NIP6EFXI.mjs.map → chunk-ZRMZYVMR.mjs.map} +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/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 +3 -5
- 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-WKPW72IW.mjs.map → chunk-22IJ3QB4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7ZUH3TQ2.mjs.map → chunk-2Y66XRQK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CUTW32BD.mjs.map → chunk-34PFLOIB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S22V4GGF.mjs.map → chunk-37O2ROE4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-E5RLJTLP.mjs.map → chunk-3Q5IOJ67.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UPHBWFSY.mjs.map → chunk-3WS7UAIF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LYNRBQNO.mjs.map → chunk-4JCZWUDH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I7L5LOHR.mjs.map → chunk-4L2AXB2K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZXNJFXKB.mjs.map → chunk-4PQ3E6VH.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-GR362QNP.mjs.map → chunk-5FZ5WUYZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6DWUEZO7.mjs.map → chunk-5KVNYLOM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BJEPGGTR.mjs.map → chunk-5MKXCLBG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-52PGMMOM.mjs.map → chunk-5OMQOYP7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3WHS4QZZ.mjs.map → chunk-5TNG3JR3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I6WKWOAM.mjs.map → chunk-6L7YQWGX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GWUYYSBN.mjs.map → chunk-A3D3GW7R.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SK2W4LXI.mjs.map → chunk-A4KEELZM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IR4Y2GE5.mjs.map → chunk-AORVRKD7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KRJLYFVI.mjs.map → chunk-B4QT6VK6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SJN2CPGB.mjs.map → chunk-BAWWEDTL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3BVKYYHT.mjs.map → chunk-C6D4JSK4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SMFNVU6B.mjs.map → chunk-CO23VS2O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GZL6GF6Z.mjs.map → chunk-CT235ZUB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FRIE2JPN.mjs.map → chunk-DP53BNR6.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-X74ZW4SP.mjs.map → chunk-EEVAKQEF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-62XXIXTE.mjs.map → chunk-EYGPOZGS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OF4WULEW.mjs.map → chunk-EYNHHGCH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C3LAZHGD.mjs.map → chunk-FNMAWOLC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EFD2PMLA.mjs.map → chunk-FUFPNXYS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CECXI5ZJ.mjs.map → chunk-G5VTJTDE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XADBXKX5.mjs.map → chunk-GFEDWIDV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EAH7XGM3.mjs.map → chunk-GUAXMODN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I4QHHCK6.mjs.map → chunk-HGQYSGTG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WJQVMI33.mjs.map → chunk-HZGRS7HG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CFJZFKIS.mjs.map → chunk-I47BE6ON.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QEE4T6UM.mjs.map → chunk-ICTG3GLU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RB6NB2UN.mjs.map → chunk-IF3IASJC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LWCNB4VP.mjs.map → chunk-IGN5F3GN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZBJRLPCR.mjs.map → chunk-J6WJ6ULQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LZPMMMJZ.mjs.map → chunk-JIIULTH3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6ST4KZLT.mjs.map → chunk-JQ57YAGP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OXMMRCSH.mjs.map → chunk-JRRBXKOK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UNBTFF6K.mjs.map → chunk-JSSRK6RP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BZQSEPTC.mjs.map → chunk-JTIXXP4J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GY6MHIOO.mjs.map → chunk-JVRKUYW6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PZHQ37I6.mjs.map → chunk-K373M2BG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2JGSMQ3T.mjs.map → chunk-K3VNFEPP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JVI373HI.mjs.map → chunk-KLDTJCML.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7YKKU6UM.mjs.map → chunk-KOLL3XGD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HKKKOC5V.mjs.map → chunk-LFBY6WV3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-F6QODHDC.mjs.map → chunk-LUCBMBG7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NWQY6WSD.mjs.map → chunk-MSF6QQXH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L3MWDI6J.mjs.map → chunk-N55JEIM6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BUAVB6CL.mjs.map → chunk-NOIBKBS3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BHAHZQVO.mjs.map → chunk-NTPPBM7T.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CANC2FCH.mjs.map → chunk-NUJ4VCBC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IDJ7NXCI.mjs.map → chunk-O4I2ENO6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PLMCHSS6.mjs.map → chunk-OLPFN3HZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-X5QIDX7Z.mjs.map → chunk-OPHTJKDE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ARY5QEDY.mjs.map → chunk-PBTBNQ25.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-K7FDXJZD.mjs.map → chunk-PCTCQEFY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JIBYUZL4.mjs.map → chunk-PI3A4HAK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZXHMD677.mjs.map → chunk-Q6RQNGJC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-X6SYH5RO.mjs.map → chunk-QUPXSKV4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YNHWN4KZ.mjs.map → chunk-RIB3PJIR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3D7VMEVL.mjs.map → chunk-RXX3GSOM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UWGZQ6WZ.mjs.map → chunk-SGNJ44D2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YFUI3MRL.mjs.map → chunk-TFCXKUX5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EYUQF6VD.mjs.map → chunk-THWK4TAG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WOZIHP5Q.mjs.map → chunk-TLW7RSAO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AJC3F2YT.mjs.map → chunk-U3MIDVR7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S6NHNEQK.mjs.map → chunk-UCRVRBTA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LDTECGMM.mjs.map → chunk-V7P525KM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PNVMS2VO.mjs.map → chunk-VOJLXYJ3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MFUQ5NBC.mjs.map → chunk-VRLS225Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JSKOWAZU.mjs.map → chunk-VW2RKDMX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-B6KBOAFE.mjs.map → chunk-XFBUY46Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5YDUSQUN.mjs.map → chunk-XH2ZG7PU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZEUNADU7.mjs.map → chunk-XJPXTYIE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JSTWLAYX.mjs.map → chunk-XYPOYVRU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HJGZQFKX.mjs.map → chunk-Y3OGRXWT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2FU37PY5.mjs.map → chunk-Y5BESSJK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6IDZ52FJ.mjs.map → chunk-Z3NZ36LQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KD2K7HNK.mjs.map → chunk-Z64FHGQ2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3TJTXI66.mjs.map → chunk-ZC6ENJP4.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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../__chunks__/chunk-442O3UMZ.mjs";import{
|
|
1
|
+
import"../../__chunks__/chunk-442O3UMZ.mjs";import{k as b}from"../../__chunks__/chunk-TBCYELRO.mjs";import"../../__chunks__/chunk-FNMAWOLC.mjs";import"../../__chunks__/chunk-RUBOJOJP.mjs";import"../../__chunks__/chunk-6L7YQWGX.mjs";import"../../__chunks__/chunk-T7DVMF2K.mjs";import{a}from"../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../__chunks__/chunk-6UZHM5LW.mjs";import"../../__chunks__/chunk-QSXHUZLS.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-EEVAKQEF.mjs";import"../../__chunks__/chunk-Y5BESSJK.mjs";import"../../__chunks__/chunk-A3D3GW7R.mjs";import"../../__chunks__/chunk-OPHTJKDE.mjs";import"../../__chunks__/chunk-EYGPOZGS.mjs";import"../../__chunks__/chunk-VW2RKDMX.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-Y3OGRXWT.mjs";import"../../__chunks__/chunk-4JCZWUDH.mjs";import"../../__chunks__/chunk-XH2ZG7PU.mjs";import"../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../__chunks__/chunk-KOLL3XGD.mjs";import"../../__chunks__/chunk-JTIXXP4J.mjs";import"../../__chunks__/chunk-IF3IASJC.mjs";import"../../__chunks__/chunk-MDVI45IV.mjs";import"../../__chunks__/chunk-3C5GZ3BL.mjs";import"../../__chunks__/chunk-EYNHHGCH.mjs";import"../../__chunks__/chunk-MSF6QQXH.mjs";import"../../__chunks__/chunk-34PFLOIB.mjs";import"../../__chunks__/chunk-J6WJ6ULQ.mjs";import"../../__chunks__/chunk-55SACSMS.mjs";import"../../__chunks__/chunk-LFBY6WV3.mjs";import"../../__chunks__/chunk-IGN5F3GN.mjs";import"../../__chunks__/chunk-J32T6OAP.mjs";import"../../__chunks__/chunk-4US7HVCR.mjs";import"../../__chunks__/chunk-FUFPNXYS.mjs";import"../../__chunks__/chunk-4TBVQD27.mjs";import"../../__chunks__/chunk-M3GFSV3G.mjs";import"../../__chunks__/chunk-WV5X6BXA.mjs";import"../../__chunks__/chunk-KLDTJCML.mjs";import"../../__chunks__/chunk-EETNNBUP.mjs";import"../../__chunks__/chunk-N55JEIM6.mjs";import"../../__chunks__/chunk-E2GGD7D4.mjs";import"../../__chunks__/chunk-L3YPAYXZ.mjs";import"../../__chunks__/chunk-C6D4JSK4.mjs";import"../../__chunks__/chunk-V7P525KM.mjs";import"../../__chunks__/chunk-KMJMQEXI.mjs";import"../../__chunks__/chunk-YK7T6MBD.mjs";import"../../__chunks__/chunk-G5DKGX73.mjs";import"../../__chunks__/chunk-XFBUY46Y.mjs";import"../../__chunks__/chunk-XXV6KGR4.mjs";import"../../__chunks__/chunk-HORSXVIV.mjs";import"../../__chunks__/chunk-CT235ZUB.mjs";import"../../__chunks__/chunk-B4QT6VK6.mjs";import"../../__chunks__/chunk-NWEUIK3A.mjs";import"../../__chunks__/chunk-NOIBKBS3.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-I47BE6ON.mjs";import"../../__chunks__/chunk-JIIULTH3.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-QUPXSKV4.mjs";import"../../__chunks__/chunk-NGM3AVCY.mjs";import"../../__chunks__/chunk-IXBWD6BF.mjs";import"../../__chunks__/chunk-B5ETDLE6.mjs";import"../../__chunks__/chunk-VCAWVAO5.mjs";import"../../__chunks__/chunk-55W25Q35.mjs";import"../../__chunks__/chunk-UY57JRX7.mjs";import"../../__chunks__/chunk-WGKDCYB7.mjs";import"../../__chunks__/chunk-GFEDWIDV.mjs";import"../../__chunks__/chunk-63MIE6JF.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-ICTG3GLU.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-5MKXCLBG.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-SGNJ44D2.mjs";import"../../__chunks__/chunk-MGQ373AO.mjs";import"../../__chunks__/chunk-RPTH42EF.mjs";import"../../__chunks__/chunk-3UNGCOKO.mjs";import"../../__chunks__/chunk-A4KEELZM.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-JQ57YAGP.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-6R2WFQ7U.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-HGQYSGTG.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-37O2ROE4.mjs";import"../../__chunks__/chunk-Z64FHGQ2.mjs";import"../../__chunks__/chunk-EHDGJUEU.mjs";import"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-QAOBZWSF.mjs";import"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as NotificationsFeedEventsEnum,b as NotificationsFeedManager};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -33,39 +33,34 @@ __export(ToastManager_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(ToastManager_exports);
|
|
34
34
|
var import_lodash = __toESM(require("lodash.isequal"));
|
|
35
35
|
var import_transactions = require("../../constants/transactions.constants");
|
|
36
|
-
var import_UITags = require("../../constants/UITags.enum");
|
|
37
|
-
var import_NotificationsFeedManager = require("../../managers/NotificationsFeedManager/NotificationsFeedManager");
|
|
38
36
|
var import_toastsActions = require("../../store/actions/toasts/toastsActions");
|
|
39
37
|
var import_transactionStateByStatus = require("../../store/actions/transactions/transactionStateByStatus");
|
|
40
38
|
var import_store = require("../../store/store");
|
|
41
|
-
var import_provider = require("../../types/provider.types");
|
|
42
|
-
var import_ComponentFactory = require("../../utils/ComponentFactory");
|
|
43
39
|
var import_createToastsFromTransactions = require("./helpers/createToastsFromTransactions");
|
|
44
40
|
var import_LifetimeManager = require("./helpers/LifetimeManager");
|
|
45
|
-
var
|
|
41
|
+
var import_ToastUICoordinator = require("./ToastUICoordinator");
|
|
46
42
|
class ToastManager {
|
|
47
|
-
constructor() {
|
|
48
|
-
this.isCreatingElement = false;
|
|
49
|
-
this.toastsElement = null;
|
|
43
|
+
constructor(props) {
|
|
50
44
|
this.transactionToasts = [];
|
|
51
45
|
this.customToasts = [];
|
|
52
|
-
this.
|
|
53
|
-
this.
|
|
54
|
-
this.eventBus = null;
|
|
55
|
-
this.store = (0, import_store.getStore)();
|
|
46
|
+
this.unsubscribeFromStore = () => null;
|
|
47
|
+
this.uiCoordinator = null;
|
|
56
48
|
this.destroy();
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
49
|
+
this.store = props?.store || (0, import_store.getStore)();
|
|
50
|
+
this.lifetimeManager = props?.lifetimeManager ?? new import_LifetimeManager.LifetimeManager();
|
|
51
|
+
this.uiCoordinator = props?.uiCoordinator ?? new import_ToastUICoordinator.ToastUICoordinator({
|
|
52
|
+
onCloseToast: this.closeToast.bind(this)
|
|
53
|
+
});
|
|
59
54
|
}
|
|
60
55
|
async init({
|
|
61
|
-
successfulToastLifetime = import_transactions.
|
|
56
|
+
successfulToastLifetime = import_transactions.DEFAULT_TOAST_LIFETIME
|
|
62
57
|
} = {}) {
|
|
63
58
|
this.successfulToastLifetime = successfulToastLifetime;
|
|
64
59
|
this.lifetimeManager.init({ successfulToastLifetime });
|
|
65
60
|
await this.updateTransactionToastsList();
|
|
66
61
|
await this.updateCustomToastList();
|
|
67
|
-
await this.
|
|
68
|
-
this.
|
|
62
|
+
await this.uiCoordinator?.init();
|
|
63
|
+
this.unsubscribeFromStore = this.store.subscribe(
|
|
69
64
|
async ({ toasts, transactions }, { toasts: prevToasts, transactions: prevTransactions }) => {
|
|
70
65
|
const newToastsWereCreated = !(0, import_lodash.default)(
|
|
71
66
|
prevToasts.transactionToasts,
|
|
@@ -123,22 +118,17 @@ class ToastManager {
|
|
|
123
118
|
await this.updateTransactionToastsList();
|
|
124
119
|
return newToastId;
|
|
125
120
|
}
|
|
126
|
-
createCustomToast(toast) {
|
|
121
|
+
async createCustomToast(toast) {
|
|
127
122
|
const toastId = (0, import_toastsActions.createCustomToast)(toast);
|
|
128
|
-
this.updateCustomToastList();
|
|
123
|
+
await this.updateCustomToastList();
|
|
129
124
|
return toastId;
|
|
130
125
|
}
|
|
131
126
|
async updateTransactionToastsList(props) {
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
transactions: transactionsSessions,
|
|
135
|
-
account
|
|
136
|
-
} = this.store.getState();
|
|
127
|
+
const store = this.store.getState();
|
|
128
|
+
const { toasts: toastList } = store;
|
|
137
129
|
const { pendingTransactionToasts, completedTransactionToasts } = await (0, import_createToastsFromTransactions.createToastsFromTransactions)({
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
account,
|
|
141
|
-
skipFetchingTransactions: props?.skipFetchingTransactions
|
|
130
|
+
skipFetchingTransactions: props?.skipFetchingTransactions,
|
|
131
|
+
store
|
|
142
132
|
});
|
|
143
133
|
this.transactionToasts = [
|
|
144
134
|
...pendingTransactionToasts,
|
|
@@ -166,67 +156,23 @@ class ToastManager {
|
|
|
166
156
|
);
|
|
167
157
|
}
|
|
168
158
|
}
|
|
169
|
-
this.
|
|
170
|
-
import_types.ToastEventsEnum.CUSTOM_TOAST_DATA_UPDATE,
|
|
171
|
-
this.customToasts
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
async createToastListElement() {
|
|
175
|
-
if (this.toastsElement) {
|
|
176
|
-
return this.toastsElement;
|
|
177
|
-
}
|
|
178
|
-
if (!this.isCreatingElement) {
|
|
179
|
-
this.isCreatingElement = true;
|
|
180
|
-
this.toastsElement = await import_ComponentFactory.ComponentFactory.create({
|
|
181
|
-
name: import_UITags.UITagsEnum.TOAST_LIST
|
|
182
|
-
});
|
|
183
|
-
this.isCreatingElement = false;
|
|
184
|
-
}
|
|
185
|
-
return this.toastsElement;
|
|
159
|
+
await this.uiCoordinator?.publishCustomToasts(this.customToasts);
|
|
186
160
|
}
|
|
187
161
|
handleTransactionToastClose(toastId) {
|
|
188
162
|
const isCompleted = this.handleCompletedTransaction(toastId);
|
|
189
163
|
if (isCompleted) {
|
|
190
164
|
(0, import_toastsActions.removeTransactionToast)(toastId);
|
|
165
|
+
return true;
|
|
191
166
|
}
|
|
192
|
-
|
|
193
|
-
async subscribeToEventBusNotifications() {
|
|
194
|
-
const toastsElement = await this.createToastListElement();
|
|
195
|
-
if (!toastsElement) {
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
this.eventBus = await toastsElement.getEventBus();
|
|
199
|
-
if (!this.eventBus) {
|
|
200
|
-
throw new Error(import_provider.ProviderErrorsEnum.eventBusError);
|
|
201
|
-
}
|
|
202
|
-
this.eventBus.subscribe(import_types.ToastEventsEnum.CLOSE, this.closeToast.bind(this));
|
|
203
|
-
this.eventBusUnsubscribeFunctions.push(() => {
|
|
204
|
-
this.eventBus?.unsubscribe(
|
|
205
|
-
import_types.ToastEventsEnum.CLOSE,
|
|
206
|
-
this.closeToast.bind(this)
|
|
207
|
-
);
|
|
208
|
-
});
|
|
209
|
-
this.eventBus.subscribe(
|
|
210
|
-
import_types.ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,
|
|
211
|
-
this.handleOpenNotificationsFeed.bind(this)
|
|
212
|
-
);
|
|
213
|
-
this.eventBusUnsubscribeFunctions.push(() => {
|
|
214
|
-
this.eventBus?.unsubscribe(
|
|
215
|
-
import_types.ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,
|
|
216
|
-
this.handleOpenNotificationsFeed.bind(this)
|
|
217
|
-
);
|
|
218
|
-
});
|
|
167
|
+
return false;
|
|
219
168
|
}
|
|
220
169
|
async showToasts() {
|
|
221
|
-
this.
|
|
170
|
+
this.uiCoordinator?.showToasts();
|
|
222
171
|
await this.updateCustomToastList();
|
|
223
172
|
await this.updateTransactionToastsList();
|
|
224
173
|
}
|
|
225
174
|
hideToasts() {
|
|
226
|
-
this.
|
|
227
|
-
}
|
|
228
|
-
async handleOpenNotificationsFeed() {
|
|
229
|
-
this.notificationsFeedManager.openNotificationsFeed();
|
|
175
|
+
this.uiCoordinator?.hideToasts();
|
|
230
176
|
}
|
|
231
177
|
closeToast(toastId) {
|
|
232
178
|
const customToast = this.customToasts.find(
|
|
@@ -237,38 +183,18 @@ class ToastManager {
|
|
|
237
183
|
const handleClose = import_toastsActions.customToastCloseHandlersDictionary[toastId];
|
|
238
184
|
handleClose?.();
|
|
239
185
|
(0, import_toastsActions.removeCustomToast)(toastId);
|
|
240
|
-
return;
|
|
186
|
+
return true;
|
|
241
187
|
}
|
|
242
|
-
this.handleTransactionToastClose(toastId);
|
|
188
|
+
return this.handleTransactionToastClose(toastId);
|
|
243
189
|
}
|
|
244
190
|
async publishTransactionToasts() {
|
|
245
|
-
|
|
246
|
-
this.eventBus.publish(
|
|
247
|
-
import_types.ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,
|
|
248
|
-
this.transactionToasts
|
|
249
|
-
);
|
|
250
|
-
this.hideToasts();
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
253
|
-
if (!this.eventBus) {
|
|
254
|
-
const toastsElement = await this.createToastListElement();
|
|
255
|
-
if (!toastsElement) {
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
this.eventBus = await toastsElement.getEventBus();
|
|
259
|
-
}
|
|
260
|
-
this.eventBus.publish(
|
|
261
|
-
import_types.ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,
|
|
262
|
-
this.transactionToasts
|
|
263
|
-
);
|
|
191
|
+
await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts);
|
|
264
192
|
}
|
|
265
193
|
destroy() {
|
|
266
|
-
this.
|
|
194
|
+
this.unsubscribeFromStore();
|
|
267
195
|
this.lifetimeManager?.destroy();
|
|
268
|
-
this.
|
|
196
|
+
this.uiCoordinator?.destroy();
|
|
269
197
|
(0, import_toastsActions.removeAllCustomToasts)();
|
|
270
|
-
this.eventBusUnsubscribeFunctions.forEach((unsubscribe) => unsubscribe());
|
|
271
|
-
this.eventBusUnsubscribeFunctions = [];
|
|
272
198
|
}
|
|
273
199
|
}
|
|
274
200
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/managers/ToastManager/ToastManager.ts"],
|
|
4
|
-
"sourcesContent": ["import isEqual from 'lodash.isequal';\nimport {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAoB;AACpB,0BAAuC;AACvC,
|
|
4
|
+
"sourcesContent": ["import isEqual from 'lodash.isequal';\nimport { DEFAULT_TOAST_LIFETIME } from 'constants/transactions.constants';\nimport {\n customToastCloseHandlersDictionary,\n customToastComponentDictionary,\n removeAllCustomToasts,\n removeCustomToast,\n removeTransactionToast,\n addTransactionToast,\n createCustomToast\n} from 'store/actions/toasts/toastsActions';\nimport {\n getIsTransactionFailed,\n getIsTransactionSuccessful,\n getIsTransactionTimedOut\n} from 'store/actions/transactions/transactionStateByStatus';\n\nimport { CustomToastType } from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport { createToastsFromTransactions } from './helpers/createToastsFromTransactions';\nimport { LifetimeManager } from './helpers/LifetimeManager';\nimport { ToastUICoordinator } from './ToastUICoordinator';\nimport { ITransactionToast } from './types';\n\ninterface IToastManager {\n successfulToastLifetime?: number;\n}\n\nexport class ToastManager {\n private readonly lifetimeManager: LifetimeManager;\n private store: ReturnType<typeof getStore>;\n private static instance: ToastManager;\n private transactionToasts: ITransactionToast[] = [];\n private customToasts: CustomToastType[] = [];\n private successfulToastLifetime?: number;\n private unsubscribeFromStore: () => void = () => null;\n private uiCoordinator: ToastUICoordinator | null = null;\n\n constructor(props?: {\n store?: ReturnType<typeof getStore>;\n lifetimeManager?: LifetimeManager;\n uiCoordinator?: ToastUICoordinator;\n }) {\n this.destroy();\n this.store = props?.store || getStore();\n this.lifetimeManager = props?.lifetimeManager ?? new LifetimeManager();\n this.uiCoordinator =\n props?.uiCoordinator ??\n new ToastUICoordinator({\n onCloseToast: this.closeToast.bind(this)\n });\n }\n\n public async init({\n successfulToastLifetime = DEFAULT_TOAST_LIFETIME\n }: IToastManager = {}) {\n this.successfulToastLifetime = successfulToastLifetime;\n\n this.lifetimeManager.init({ successfulToastLifetime });\n\n await this.updateTransactionToastsList();\n await this.updateCustomToastList();\n\n await this.uiCoordinator?.init();\n\n this.unsubscribeFromStore = this.store.subscribe(\n async (\n { toasts, transactions },\n { toasts: prevToasts, transactions: prevTransactions }\n ) => {\n const newToastsWereCreated = !isEqual(\n prevToasts.transactionToasts,\n toasts.transactionToasts\n );\n const checkBatchHasNewData = !isEqual(prevTransactions, transactions);\n\n if (newToastsWereCreated || checkBatchHasNewData) {\n await this.updateTransactionToastsList({\n skipFetchingTransactions: checkBatchHasNewData // transactions were already fetched by `checkBatch`\n });\n }\n\n const newCustomToastsWereCreated = !isEqual(\n prevToasts.customToasts,\n toasts.customToasts\n );\n\n if (newCustomToastsWereCreated) {\n await this.updateCustomToastList();\n }\n }\n );\n }\n\n public static getInstance(): ToastManager {\n if (!ToastManager.instance) {\n ToastManager.instance = new ToastManager();\n }\n return ToastManager.instance;\n }\n\n private handleCompletedTransaction(toastId: string): boolean {\n const { transactions } = this.store.getState();\n const transaction = transactions[toastId];\n\n if (!transaction) {\n return false;\n }\n\n const { status } = transaction;\n const isTimedOut = getIsTransactionTimedOut(status);\n const isFailed = getIsTransactionFailed(status);\n const isSuccessful = getIsTransactionSuccessful(status);\n const isCompleted = isFailed || isSuccessful || isTimedOut;\n\n if (isCompleted) {\n if (this.successfulToastLifetime) {\n this.lifetimeManager.start(toastId);\n }\n return isCompleted;\n }\n\n this.lifetimeManager.stop(toastId);\n return isCompleted;\n }\n\n public async createTransactionToast(\n toastId: string,\n totalDuration: number\n ): Promise<string> {\n const newToastId = addTransactionToast({\n toastId,\n totalDuration\n });\n\n this.handleCompletedTransaction(toastId);\n await this.updateTransactionToastsList();\n return newToastId;\n }\n\n public async createCustomToast(toast: CustomToastType): Promise<string> {\n const toastId = createCustomToast(toast);\n await this.updateCustomToastList();\n return toastId;\n }\n\n private async updateTransactionToastsList(props?: {\n skipFetchingTransactions?: boolean;\n }) {\n const store = this.store.getState();\n const { toasts: toastList } = store;\n\n const { pendingTransactionToasts, completedTransactionToasts } =\n await createToastsFromTransactions({\n skipFetchingTransactions: props?.skipFetchingTransactions,\n store\n });\n\n this.transactionToasts = [\n ...pendingTransactionToasts,\n ...completedTransactionToasts\n ];\n\n for (const toast of toastList.transactionToasts) {\n this.handleCompletedTransaction(toast.toastId);\n }\n\n await this.publishTransactionToasts();\n }\n\n private async updateCustomToastList() {\n const { toasts: toastList } = this.store.getState();\n this.customToasts = [];\n\n for (const toast of toastList.customToasts) {\n const isSimpleToast = 'message' in toast;\n\n const newToast: CustomToastType = isSimpleToast\n ? { ...toast }\n : {\n ...toast,\n instantiateToastElement:\n customToastComponentDictionary[toast.toastId]\n };\n this.customToasts.push(newToast);\n\n if (toast.duration) {\n this.lifetimeManager.startWithCustomDuration(\n toast.toastId,\n toast.duration\n );\n }\n }\n await this.uiCoordinator?.publishCustomToasts(this.customToasts);\n }\n\n private handleTransactionToastClose(toastId: string): boolean {\n const isCompleted = this.handleCompletedTransaction(toastId);\n\n if (isCompleted) {\n removeTransactionToast(toastId);\n return true;\n }\n\n return false;\n }\n\n public async showToasts() {\n this.uiCoordinator?.showToasts();\n await this.updateCustomToastList();\n await this.updateTransactionToastsList();\n }\n\n public hideToasts() {\n this.uiCoordinator?.hideToasts();\n }\n\n public closeToast(toastId: string): boolean {\n const customToast = this.customToasts.find(\n (toast) => toast.toastId === toastId\n );\n\n if (customToast) {\n this.lifetimeManager.stop(toastId);\n const handleClose = customToastCloseHandlersDictionary[toastId];\n handleClose?.();\n removeCustomToast(toastId);\n return true;\n }\n\n return this.handleTransactionToastClose(toastId);\n }\n\n private async publishTransactionToasts() {\n await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts);\n }\n\n public destroy() {\n this.unsubscribeFromStore();\n this.lifetimeManager?.destroy();\n this.uiCoordinator?.destroy();\n removeAllCustomToasts();\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAoB;AACpB,0BAAuC;AACvC,2BAQO;AACP,sCAIO;AAGP,mBAAyB;AACzB,0CAA6C;AAC7C,6BAAgC;AAChC,gCAAmC;AAO5B,MAAM,aAAa;AAAA,EAUxB,YAAY,OAIT;AAVH,SAAQ,oBAAyC,CAAC;AAClD,SAAQ,eAAkC,CAAC;AAE3C,SAAQ,uBAAmC,MAAM;AACjD,SAAQ,gBAA2C;AAOjD,SAAK,QAAQ;AACb,SAAK,QAAQ,OAAO,aAAS,uBAAS;AACtC,SAAK,kBAAkB,OAAO,mBAAmB,IAAI,uCAAgB;AACrE,SAAK,gBACH,OAAO,iBACP,IAAI,6CAAmB;AAAA,MACrB,cAAc,KAAK,WAAW,KAAK,IAAI;AAAA,IACzC,CAAC;AAAA,EACL;AAAA,EAEA,MAAa,KAAK;AAAA,IAChB,0BAA0B;AAAA,EAC5B,IAAmB,CAAC,GAAG;AACrB,SAAK,0BAA0B;AAE/B,SAAK,gBAAgB,KAAK,EAAE,wBAAwB,CAAC;AAErD,UAAM,KAAK,4BAA4B;AACvC,UAAM,KAAK,sBAAsB;AAEjC,UAAM,KAAK,eAAe,KAAK;AAE/B,SAAK,uBAAuB,KAAK,MAAM;AAAA,MACrC,OACE,EAAE,QAAQ,aAAa,GACvB,EAAE,QAAQ,YAAY,cAAc,iBAAiB,MAClD;AACH,cAAM,uBAAuB,KAAC,cAAAA;AAAA,UAC5B,WAAW;AAAA,UACX,OAAO;AAAA,QACT;AACA,cAAM,uBAAuB,KAAC,cAAAA,SAAQ,kBAAkB,YAAY;AAEpE,YAAI,wBAAwB,sBAAsB;AAChD,gBAAM,KAAK,4BAA4B;AAAA,YACrC,0BAA0B;AAAA;AAAA,UAC5B,CAAC;AAAA,QACH;AAEA,cAAM,6BAA6B,KAAC,cAAAA;AAAA,UAClC,WAAW;AAAA,UACX,OAAO;AAAA,QACT;AAEA,YAAI,4BAA4B;AAC9B,gBAAM,KAAK,sBAAsB;AAAA,QACnC;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EAEA,OAAc,cAA4B;AACxC,QAAI,CAAC,aAAa,UAAU;AAC1B,mBAAa,WAAW,IAAI,aAAa;AAAA,IAC3C;AACA,WAAO,aAAa;AAAA,EACtB;AAAA,EAEQ,2BAA2B,SAA0B;AAC3D,UAAM,EAAE,aAAa,IAAI,KAAK,MAAM,SAAS;AAC7C,UAAM,cAAc,aAAa,OAAO;AAExC,QAAI,CAAC,aAAa;AAChB,aAAO;AAAA,IACT;AAEA,UAAM,EAAE,OAAO,IAAI;AACnB,UAAM,iBAAa,0DAAyB,MAAM;AAClD,UAAM,eAAW,wDAAuB,MAAM;AAC9C,UAAM,mBAAe,4DAA2B,MAAM;AACtD,UAAM,cAAc,YAAY,gBAAgB;AAEhD,QAAI,aAAa;AACf,UAAI,KAAK,yBAAyB;AAChC,aAAK,gBAAgB,MAAM,OAAO;AAAA,MACpC;AACA,aAAO;AAAA,IACT;AAEA,SAAK,gBAAgB,KAAK,OAAO;AACjC,WAAO;AAAA,EACT;AAAA,EAEA,MAAa,uBACX,SACA,eACiB;AACjB,UAAM,iBAAa,0CAAoB;AAAA,MACrC;AAAA,MACA;AAAA,IACF,CAAC;AAED,SAAK,2BAA2B,OAAO;AACvC,UAAM,KAAK,4BAA4B;AACvC,WAAO;AAAA,EACT;AAAA,EAEA,MAAa,kBAAkB,OAAyC;AACtE,UAAM,cAAU,wCAAkB,KAAK;AACvC,UAAM,KAAK,sBAAsB;AACjC,WAAO;AAAA,EACT;AAAA,EAEA,MAAc,4BAA4B,OAEvC;AACD,UAAM,QAAQ,KAAK,MAAM,SAAS;AAClC,UAAM,EAAE,QAAQ,UAAU,IAAI;AAE9B,UAAM,EAAE,0BAA0B,2BAA2B,IAC3D,UAAM,kEAA6B;AAAA,MACjC,0BAA0B,OAAO;AAAA,MACjC;AAAA,IACF,CAAC;AAEH,SAAK,oBAAoB;AAAA,MACvB,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAEA,eAAW,SAAS,UAAU,mBAAmB;AAC/C,WAAK,2BAA2B,MAAM,OAAO;AAAA,IAC/C;AAEA,UAAM,KAAK,yBAAyB;AAAA,EACtC;AAAA,EAEA,MAAc,wBAAwB;AACpC,UAAM,EAAE,QAAQ,UAAU,IAAI,KAAK,MAAM,SAAS;AAClD,SAAK,eAAe,CAAC;AAErB,eAAW,SAAS,UAAU,cAAc;AAC1C,YAAM,gBAAgB,aAAa;AAEnC,YAAM,WAA4B,gBAC9B,EAAE,GAAG,MAAM,IACX;AAAA,QACE,GAAG;AAAA,QACH,yBACE,oDAA+B,MAAM,OAAO;AAAA,MAChD;AACJ,WAAK,aAAa,KAAK,QAAQ;AAE/B,UAAI,MAAM,UAAU;AAClB,aAAK,gBAAgB;AAAA,UACnB,MAAM;AAAA,UACN,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AACA,UAAM,KAAK,eAAe,oBAAoB,KAAK,YAAY;AAAA,EACjE;AAAA,EAEQ,4BAA4B,SAA0B;AAC5D,UAAM,cAAc,KAAK,2BAA2B,OAAO;AAE3D,QAAI,aAAa;AACf,uDAAuB,OAAO;AAC9B,aAAO;AAAA,IACT;AAEA,WAAO;AAAA,EACT;AAAA,EAEA,MAAa,aAAa;AACxB,SAAK,eAAe,WAAW;AAC/B,UAAM,KAAK,sBAAsB;AACjC,UAAM,KAAK,4BAA4B;AAAA,EACzC;AAAA,EAEO,aAAa;AAClB,SAAK,eAAe,WAAW;AAAA,EACjC;AAAA,EAEO,WAAW,SAA0B;AAC1C,UAAM,cAAc,KAAK,aAAa;AAAA,MACpC,CAAC,UAAU,MAAM,YAAY;AAAA,IAC/B;AAEA,QAAI,aAAa;AACf,WAAK,gBAAgB,KAAK,OAAO;AACjC,YAAM,cAAc,wDAAmC,OAAO;AAC9D,oBAAc;AACd,kDAAkB,OAAO;AACzB,aAAO;AAAA,IACT;AAEA,WAAO,KAAK,4BAA4B,OAAO;AAAA,EACjD;AAAA,EAEA,MAAc,2BAA2B;AACvC,UAAM,KAAK,eAAe,yBAAyB,KAAK,iBAAiB;AAAA,EAC3E;AAAA,EAEO,UAAU;AACf,SAAK,qBAAqB;AAC1B,SAAK,iBAAiB,QAAQ;AAC9B,SAAK,eAAe,QAAQ;AAC5B,oDAAsB;AAAA,EACxB;AACF;",
|
|
6
6
|
"names": ["isEqual"]
|
|
7
7
|
}
|
|
@@ -1,53 +1,35 @@
|
|
|
1
1
|
import { CustomToastType } from '../../store/slices/toast/toastSlice.types';
|
|
2
|
+
import { getStore } from '../../store/store';
|
|
3
|
+
import { LifetimeManager } from './helpers/LifetimeManager';
|
|
4
|
+
import { ToastUICoordinator } from './ToastUICoordinator';
|
|
2
5
|
interface IToastManager {
|
|
3
6
|
successfulToastLifetime?: number;
|
|
4
7
|
}
|
|
5
8
|
export declare class ToastManager {
|
|
6
9
|
private readonly lifetimeManager;
|
|
7
|
-
private
|
|
10
|
+
private store;
|
|
8
11
|
private static instance;
|
|
9
|
-
private toastsElement;
|
|
10
12
|
private transactionToasts;
|
|
11
13
|
private customToasts;
|
|
12
14
|
private successfulToastLifetime?;
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}>(partial: import("../../store/store.types").StoreType | Partial<import("../../store/store.types").StoreType> | ((state: import("../../store/store.types").StoreType) => import("../../store/store.types").StoreType | Partial<import("../../store/store.types").StoreType>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
21
|
-
}, "persist"> & {
|
|
22
|
-
persist: {
|
|
23
|
-
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<import("../../store/store.types").StoreType, import("../../store/store.types").StoreType>>) => void;
|
|
24
|
-
clearStorage: () => void;
|
|
25
|
-
rehydrate: () => void | Promise<void>;
|
|
26
|
-
hasHydrated: () => boolean;
|
|
27
|
-
onHydrate: (fn: (state: import("../../store/store.types").StoreType) => void) => () => void;
|
|
28
|
-
onFinishHydration: (fn: (state: import("../../store/store.types").StoreType) => void) => () => void;
|
|
29
|
-
getOptions: () => Partial<import("zustand/middleware").PersistOptions<import("../../store/store.types").StoreType, import("../../store/store.types").StoreType>>;
|
|
30
|
-
};
|
|
31
|
-
}, "setState"> & {
|
|
32
|
-
setState(nextStateOrUpdater: import("../../store/store.types").StoreType | Partial<import("../../store/store.types").StoreType> | ((state: import("immer").WritableDraft<import("../../store/store.types").StoreType>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
33
|
-
type: string;
|
|
34
|
-
} | undefined): void;
|
|
35
|
-
};
|
|
36
|
-
constructor();
|
|
15
|
+
private unsubscribeFromStore;
|
|
16
|
+
private uiCoordinator;
|
|
17
|
+
constructor(props?: {
|
|
18
|
+
store?: ReturnType<typeof getStore>;
|
|
19
|
+
lifetimeManager?: LifetimeManager;
|
|
20
|
+
uiCoordinator?: ToastUICoordinator;
|
|
21
|
+
});
|
|
37
22
|
init({ successfulToastLifetime }?: IToastManager): Promise<void>;
|
|
38
23
|
static getInstance(): ToastManager;
|
|
39
24
|
private handleCompletedTransaction;
|
|
40
25
|
createTransactionToast(toastId: string, totalDuration: number): Promise<string>;
|
|
41
|
-
createCustomToast(toast: CustomToastType): string
|
|
26
|
+
createCustomToast(toast: CustomToastType): Promise<string>;
|
|
42
27
|
private updateTransactionToastsList;
|
|
43
28
|
private updateCustomToastList;
|
|
44
|
-
private createToastListElement;
|
|
45
29
|
private handleTransactionToastClose;
|
|
46
|
-
private subscribeToEventBusNotifications;
|
|
47
30
|
showToasts(): Promise<void>;
|
|
48
31
|
hideToasts(): void;
|
|
49
|
-
|
|
50
|
-
closeToast(toastId: string): void;
|
|
32
|
+
closeToast(toastId: string): boolean;
|
|
51
33
|
private publishTransactionToasts;
|
|
52
34
|
destroy(): void;
|
|
53
35
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{m as a}from"../../__chunks__/chunk-TBCYELRO.mjs";import"../../__chunks__/chunk-FNMAWOLC.mjs";import"../../__chunks__/chunk-RUBOJOJP.mjs";import"../../__chunks__/chunk-6L7YQWGX.mjs";import"../../__chunks__/chunk-T7DVMF2K.mjs";import"../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../__chunks__/chunk-6UZHM5LW.mjs";import"../../__chunks__/chunk-QSXHUZLS.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-EEVAKQEF.mjs";import"../../__chunks__/chunk-Y5BESSJK.mjs";import"../../__chunks__/chunk-A3D3GW7R.mjs";import"../../__chunks__/chunk-OPHTJKDE.mjs";import"../../__chunks__/chunk-EYGPOZGS.mjs";import"../../__chunks__/chunk-VW2RKDMX.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-Y3OGRXWT.mjs";import"../../__chunks__/chunk-4JCZWUDH.mjs";import"../../__chunks__/chunk-XH2ZG7PU.mjs";import"../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../__chunks__/chunk-KOLL3XGD.mjs";import"../../__chunks__/chunk-JTIXXP4J.mjs";import"../../__chunks__/chunk-IF3IASJC.mjs";import"../../__chunks__/chunk-MDVI45IV.mjs";import"../../__chunks__/chunk-3C5GZ3BL.mjs";import"../../__chunks__/chunk-EYNHHGCH.mjs";import"../../__chunks__/chunk-MSF6QQXH.mjs";import"../../__chunks__/chunk-34PFLOIB.mjs";import"../../__chunks__/chunk-J6WJ6ULQ.mjs";import"../../__chunks__/chunk-55SACSMS.mjs";import"../../__chunks__/chunk-LFBY6WV3.mjs";import"../../__chunks__/chunk-IGN5F3GN.mjs";import"../../__chunks__/chunk-J32T6OAP.mjs";import"../../__chunks__/chunk-4US7HVCR.mjs";import"../../__chunks__/chunk-FUFPNXYS.mjs";import"../../__chunks__/chunk-4TBVQD27.mjs";import"../../__chunks__/chunk-M3GFSV3G.mjs";import"../../__chunks__/chunk-WV5X6BXA.mjs";import"../../__chunks__/chunk-KLDTJCML.mjs";import"../../__chunks__/chunk-EETNNBUP.mjs";import"../../__chunks__/chunk-N55JEIM6.mjs";import"../../__chunks__/chunk-E2GGD7D4.mjs";import"../../__chunks__/chunk-L3YPAYXZ.mjs";import"../../__chunks__/chunk-C6D4JSK4.mjs";import"../../__chunks__/chunk-V7P525KM.mjs";import"../../__chunks__/chunk-KMJMQEXI.mjs";import"../../__chunks__/chunk-YK7T6MBD.mjs";import"../../__chunks__/chunk-G5DKGX73.mjs";import"../../__chunks__/chunk-XFBUY46Y.mjs";import"../../__chunks__/chunk-XXV6KGR4.mjs";import"../../__chunks__/chunk-HORSXVIV.mjs";import"../../__chunks__/chunk-CT235ZUB.mjs";import"../../__chunks__/chunk-B4QT6VK6.mjs";import"../../__chunks__/chunk-NWEUIK3A.mjs";import"../../__chunks__/chunk-NOIBKBS3.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-I47BE6ON.mjs";import"../../__chunks__/chunk-JIIULTH3.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-QUPXSKV4.mjs";import"../../__chunks__/chunk-NGM3AVCY.mjs";import"../../__chunks__/chunk-IXBWD6BF.mjs";import"../../__chunks__/chunk-B5ETDLE6.mjs";import"../../__chunks__/chunk-VCAWVAO5.mjs";import"../../__chunks__/chunk-55W25Q35.mjs";import"../../__chunks__/chunk-UY57JRX7.mjs";import"../../__chunks__/chunk-WGKDCYB7.mjs";import"../../__chunks__/chunk-GFEDWIDV.mjs";import"../../__chunks__/chunk-63MIE6JF.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-ICTG3GLU.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-5MKXCLBG.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-SGNJ44D2.mjs";import"../../__chunks__/chunk-MGQ373AO.mjs";import"../../__chunks__/chunk-RPTH42EF.mjs";import"../../__chunks__/chunk-3UNGCOKO.mjs";import"../../__chunks__/chunk-A4KEELZM.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-JQ57YAGP.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-6R2WFQ7U.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-HGQYSGTG.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-37O2ROE4.mjs";import"../../__chunks__/chunk-Z64FHGQ2.mjs";import"../../__chunks__/chunk-EHDGJUEU.mjs";import"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-QAOBZWSF.mjs";import"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as ToastManager};
|
|
2
2
|
//# sourceMappingURL=ToastManager.mjs.map
|
|
@@ -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
|
+
}
|