@multiversx/sdk-dapp 5.0.0-alpha.9 → 5.0.0
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/README.md +78 -39
- package/out/__chunks__/{chunk-LDOKRGUQ.mjs → chunk-254WMLVS.mjs} +2 -2
- package/out/__chunks__/{chunk-PCPDM6RD.mjs → chunk-2EFXW7IG.mjs} +2 -2
- package/out/__chunks__/{chunk-PVEKU2X3.mjs → chunk-2S5FRZJR.mjs} +2 -2
- package/out/__chunks__/chunk-2SIHYJET.mjs +2 -0
- package/out/__chunks__/chunk-2SIHYJET.mjs.map +7 -0
- package/out/__chunks__/chunk-3NFKZZ7W.mjs +2 -0
- package/out/__chunks__/{chunk-IMEJ3BE5.mjs.map → chunk-3NFKZZ7W.mjs.map} +3 -3
- package/out/__chunks__/chunk-3ZEUVYQF.mjs +2 -0
- package/out/__chunks__/chunk-3ZEUVYQF.mjs.map +7 -0
- package/out/__chunks__/{chunk-ST4GGUZM.mjs → chunk-42LFLNPA.mjs} +2 -2
- package/out/__chunks__/chunk-4AKPP7B3.mjs +2 -0
- package/out/__chunks__/{chunk-ZGRKIA6G.mjs → chunk-4QDHGYT4.mjs} +2 -2
- package/out/__chunks__/{chunk-ZGRKIA6G.mjs.map → chunk-4QDHGYT4.mjs.map} +2 -2
- package/out/__chunks__/{chunk-DGBTQM4A.mjs → chunk-4TZC3NF3.mjs} +2 -2
- package/out/__chunks__/{chunk-N2V7UF7S.mjs → chunk-4XP7BVJD.mjs} +2 -2
- package/out/__chunks__/chunk-4YU2DWHA.mjs +2 -0
- package/out/__chunks__/chunk-4YU2DWHA.mjs.map +7 -0
- package/out/__chunks__/chunk-4YZQBDUE.mjs +2 -0
- package/out/__chunks__/chunk-4ZZJX7E7.mjs +2 -0
- package/out/__chunks__/chunk-5LB2KNTP.mjs +2 -0
- package/out/__chunks__/chunk-5LB2KNTP.mjs.map +7 -0
- package/out/__chunks__/chunk-5OM6KD5S.mjs +2 -0
- package/out/__chunks__/chunk-6D2RBTVV.mjs +2 -0
- package/out/__chunks__/chunk-6D2RBTVV.mjs.map +7 -0
- package/out/__chunks__/{chunk-JIECCAME.mjs → chunk-6G7ATMU7.mjs} +2 -2
- package/out/__chunks__/chunk-6GNNYFMN.mjs +2 -0
- package/out/__chunks__/chunk-6JM4DPOH.mjs +2 -0
- package/out/__chunks__/{chunk-IEJTMYFW.mjs.map → chunk-6JM4DPOH.mjs.map} +3 -3
- package/out/__chunks__/{chunk-K3WBBSXJ.mjs → chunk-6P7EXGAB.mjs} +2 -2
- package/out/__chunks__/{chunk-4PHZ25O4.mjs → chunk-6RGWVDNQ.mjs} +2 -2
- package/out/__chunks__/chunk-6UZHM5LW.mjs +2 -0
- package/out/__chunks__/chunk-6UZHM5LW.mjs.map +7 -0
- package/out/__chunks__/chunk-6ZL2QC74.mjs +2 -0
- package/out/__chunks__/chunk-745QCLQC.mjs +2 -0
- package/out/__chunks__/chunk-745QCLQC.mjs.map +7 -0
- package/out/__chunks__/{chunk-RHFDU5Y4.mjs → chunk-ABHYXD3U.mjs} +2 -2
- package/out/__chunks__/{chunk-4CJBDKYR.mjs → chunk-AF2QSDSV.mjs} +2 -2
- package/out/__chunks__/{chunk-3OKWBJFM.mjs → chunk-B2RDSGON.mjs} +2 -2
- package/out/__chunks__/{chunk-XNPY3DUJ.mjs → chunk-B7ZKW5ML.mjs} +2 -2
- package/out/__chunks__/{chunk-FMUDQBZE.mjs → chunk-BETSOJFK.mjs} +2 -2
- package/out/__chunks__/chunk-BG6QTPZ4.mjs +2 -0
- package/out/__chunks__/chunk-BG6QTPZ4.mjs.map +7 -0
- package/out/__chunks__/{chunk-JZLYRNNP.mjs → chunk-BHAZ2W52.mjs} +2 -2
- package/out/__chunks__/{chunk-I7BB2JJP.mjs → chunk-BOAJJ4FX.mjs} +2 -2
- package/out/__chunks__/chunk-BOAJJ4FX.mjs.map +7 -0
- package/out/__chunks__/{chunk-PRULMJH7.mjs → chunk-BQ2I655N.mjs} +2 -2
- package/out/__chunks__/{chunk-RUPRP5GS.mjs → chunk-BVLXVOIC.mjs} +2 -2
- package/out/__chunks__/{chunk-RUPRP5GS.mjs.map → chunk-BVLXVOIC.mjs.map} +2 -2
- package/out/__chunks__/chunk-CAA4VJRH.mjs +2 -0
- package/out/__chunks__/{chunk-QD3CFFVT.mjs.map → chunk-CAA4VJRH.mjs.map} +3 -3
- package/out/__chunks__/chunk-CBF72LQF.mjs +2 -0
- package/out/__chunks__/chunk-CIY7IH2N.mjs +2 -0
- package/out/__chunks__/{chunk-EA6KZGPV.mjs → chunk-CJQAA4EP.mjs} +2 -2
- package/out/__chunks__/chunk-CKTFPRJS.mjs +2 -0
- package/out/__chunks__/chunk-CKTFPRJS.mjs.map +7 -0
- package/out/__chunks__/chunk-CVPP4HQE.mjs +2 -0
- package/out/__chunks__/chunk-CVPP4HQE.mjs.map +7 -0
- package/out/__chunks__/chunk-CYCS3K6Q.mjs +2 -0
- package/out/__chunks__/{chunk-SUN3MVLZ.mjs.map → chunk-CYCS3K6Q.mjs.map} +2 -2
- package/out/__chunks__/chunk-D5SD7UPB.mjs +2 -0
- package/out/__chunks__/chunk-D5SD7UPB.mjs.map +7 -0
- package/out/__chunks__/chunk-DGYPNF4O.mjs +2 -0
- package/out/__chunks__/chunk-E7BYYSVM.mjs +2 -0
- package/out/__chunks__/{chunk-QAVA2C6Y.mjs → chunk-EQEYL6AE.mjs} +2 -2
- package/out/__chunks__/{chunk-V6GKT3ZN.mjs → chunk-FAOCLLIW.mjs} +2 -2
- package/out/__chunks__/{chunk-A5EXECZV.mjs → chunk-FIVH6RKU.mjs} +2 -2
- package/out/__chunks__/chunk-FMQYLMTU.mjs +2 -0
- package/out/__chunks__/chunk-FMQYLMTU.mjs.map +7 -0
- package/out/__chunks__/{chunk-RIQNG4I7.mjs → chunk-FSCOQWQN.mjs} +2 -2
- package/out/__chunks__/{chunk-Z3IZ47ZD.mjs → chunk-FZFKEGPM.mjs} +2 -2
- package/out/__chunks__/{chunk-RDMU5LTQ.mjs → chunk-GFTTAANM.mjs} +2 -2
- package/out/__chunks__/{chunk-5N755C2P.mjs → chunk-GT2HLNE7.mjs} +2 -2
- package/out/__chunks__/{chunk-ITYCILLF.mjs → chunk-H7BJSM6C.mjs} +2 -2
- package/out/__chunks__/{chunk-HQSB4ISG.mjs → chunk-HIUWEH2W.mjs} +2 -2
- package/out/__chunks__/{chunk-5RVSN75H.mjs → chunk-HUITKXBO.mjs} +2 -2
- package/out/__chunks__/{chunk-PNT4VF66.mjs → chunk-HXXZKQRJ.mjs} +2 -2
- package/out/__chunks__/chunk-I37JLMZH.mjs +2 -0
- package/out/__chunks__/chunk-I6BXGQLQ.mjs +2 -0
- package/out/__chunks__/chunk-I6BXGQLQ.mjs.map +7 -0
- package/out/__chunks__/chunk-IBSC2B7Q.mjs +2 -0
- package/out/__chunks__/{chunk-LYC7ERBA.mjs → chunk-ID7WYMJZ.mjs} +2 -2
- package/out/__chunks__/chunk-ID7WYMJZ.mjs.map +7 -0
- package/out/__chunks__/chunk-IMPOALRX.mjs +2 -0
- package/out/__chunks__/{chunk-RHN3VD44.mjs.map → chunk-IMPOALRX.mjs.map} +2 -2
- package/out/__chunks__/{chunk-P3EYUM5Z.mjs → chunk-INWUHEQN.mjs} +2 -2
- package/out/__chunks__/{chunk-ZNZKP2Z7.mjs → chunk-ISPOZQQO.mjs} +2 -2
- package/out/__chunks__/{chunk-24NXU72Y.mjs → chunk-IXUYZYD2.mjs} +2 -2
- package/out/__chunks__/chunk-JR23TXKP.mjs +2 -0
- package/out/__chunks__/chunk-JR23TXKP.mjs.map +7 -0
- package/out/__chunks__/{chunk-QVQGVVKN.mjs → chunk-JZ7434LN.mjs} +2 -2
- package/out/__chunks__/{chunk-WZWDFTW3.mjs → chunk-KSMSBTTQ.mjs} +2 -2
- package/out/__chunks__/chunk-L4QPPHVR.mjs +2 -0
- package/out/__chunks__/{chunk-FP2LZG6I.mjs.map → chunk-L4QPPHVR.mjs.map} +1 -1
- package/out/__chunks__/{chunk-EOX35D4L.mjs → chunk-LIPGE2RA.mjs} +2 -2
- package/out/__chunks__/{chunk-YPCJBYUY.mjs → chunk-LUDF7ZUR.mjs} +2 -2
- package/out/__chunks__/{chunk-43DKHDU2.mjs → chunk-MRV6OG7P.mjs} +2 -2
- package/out/__chunks__/chunk-N2RYRHHL.mjs +2 -0
- package/out/__chunks__/{chunk-ZWISUUBJ.mjs → chunk-NJPTQNCT.mjs} +2 -2
- package/out/__chunks__/chunk-NPZ5PO2W.mjs +2 -0
- package/out/__chunks__/chunk-NQ6SJRHZ.mjs +2 -0
- package/out/__chunks__/{chunk-XDXMB6H5.mjs.map → chunk-NQ6SJRHZ.mjs.map} +1 -1
- package/out/__chunks__/chunk-O2DO3WJJ.mjs +2 -0
- package/out/__chunks__/chunk-O2DO3WJJ.mjs.map +7 -0
- package/out/__chunks__/{chunk-ZMEIT65B.mjs → chunk-OD4ANAAQ.mjs} +2 -2
- package/out/__chunks__/chunk-OZ4ZZI3H.mjs +2 -0
- package/out/__chunks__/{chunk-IEJARRBP.mjs.map → chunk-OZ4ZZI3H.mjs.map} +2 -2
- package/out/__chunks__/chunk-P32DZ2CO.mjs +2 -0
- package/out/__chunks__/{chunk-45WVS4H5.mjs.map → chunk-P32DZ2CO.mjs.map} +2 -2
- package/out/__chunks__/{chunk-4OEPT2V4.mjs → chunk-P3BXXGQA.mjs} +2 -2
- package/out/__chunks__/chunk-PHNC5JMP.mjs +2 -0
- package/out/__chunks__/chunk-PHNC5JMP.mjs.map +7 -0
- package/out/__chunks__/{chunk-5AR7YU5K.mjs → chunk-PJDJEPY2.mjs} +2 -2
- package/out/__chunks__/chunk-QJGFIK7H.mjs +2 -0
- package/out/__chunks__/chunk-QJGFIK7H.mjs.map +7 -0
- package/out/__chunks__/{chunk-MZNVCQVB.mjs → chunk-QSYQIJEO.mjs} +2 -2
- package/out/__chunks__/{chunk-YEXBSKXL.mjs → chunk-QWV25ZSJ.mjs} +2 -2
- package/out/__chunks__/chunk-RBUHL65H.mjs +2 -0
- package/out/__chunks__/chunk-RBUHL65H.mjs.map +7 -0
- package/out/__chunks__/chunk-RFKBUN7S.mjs +2 -0
- package/out/__chunks__/chunk-RFKBUN7S.mjs.map +7 -0
- package/out/__chunks__/{chunk-ZHGCNNB5.mjs → chunk-RM4VHHXR.mjs} +2 -2
- package/out/__chunks__/{chunk-XW2GCCBZ.mjs → chunk-RRKNYQ6D.mjs} +2 -2
- package/out/__chunks__/chunk-RSUHZ7IH.mjs +2 -0
- package/out/__chunks__/chunk-RVO7H26H.mjs +2 -0
- package/out/__chunks__/chunk-RVO7H26H.mjs.map +7 -0
- package/out/__chunks__/{chunk-NHXPNROG.mjs → chunk-S2FQWSUO.mjs} +1 -1
- package/out/__chunks__/chunk-S2FQWSUO.mjs.map +7 -0
- package/out/__chunks__/{chunk-AJOTPFJL.mjs → chunk-S4WKQEYF.mjs} +2 -2
- package/out/__chunks__/chunk-SLH6IQJJ.mjs +2 -0
- package/out/__chunks__/chunk-SLH6IQJJ.mjs.map +7 -0
- package/out/__chunks__/{chunk-I7ODJJY3.mjs → chunk-TI73UXGG.mjs} +2 -2
- package/out/__chunks__/chunk-TNXSVX5O.mjs +2 -0
- package/out/__chunks__/chunk-TNXSVX5O.mjs.map +7 -0
- package/out/__chunks__/chunk-TQA3JDNV.mjs +2 -0
- package/out/__chunks__/chunk-TQA3JDNV.mjs.map +7 -0
- package/out/__chunks__/{chunk-RI7FD4HM.mjs → chunk-TSUMQ3HX.mjs} +2 -2
- package/out/__chunks__/{chunk-RI7FD4HM.mjs.map → chunk-TSUMQ3HX.mjs.map} +1 -1
- package/out/__chunks__/{chunk-426U6FXN.mjs → chunk-U34BNBOX.mjs} +2 -2
- package/out/__chunks__/{chunk-SPSO2A53.mjs → chunk-U64LDJTG.mjs} +2 -2
- package/out/__chunks__/chunk-UAW7SD6P.mjs +2 -0
- package/out/__chunks__/{chunk-N6FJMYEB.mjs → chunk-V2C7APME.mjs} +2 -2
- package/out/__chunks__/{chunk-A64HMPMV.mjs → chunk-VFAKQ7NM.mjs} +2 -2
- package/out/__chunks__/chunk-VQAKIVIO.mjs +2 -0
- package/out/__chunks__/chunk-VQAKIVIO.mjs.map +7 -0
- package/out/__chunks__/{chunk-ETHHR4HF.mjs → chunk-VXLJWKLG.mjs} +2 -2
- package/out/__chunks__/chunk-WHEXX3BD.mjs +1 -0
- package/out/__chunks__/chunk-WPXNKIUP.mjs +2 -0
- package/out/__chunks__/chunk-WPXNKIUP.mjs.map +7 -0
- package/out/__chunks__/{chunk-4TSUWSFU.mjs → chunk-XPYJSDNF.mjs} +2 -2
- package/out/__chunks__/chunk-YA5U6YEL.mjs +2 -0
- package/out/__chunks__/{chunk-RXAVE5OL.mjs → chunk-YKRSCVRE.mjs} +2 -2
- package/out/__chunks__/chunk-YO3ATAA6.mjs +2 -0
- package/out/__chunks__/chunk-YO3ATAA6.mjs.map +7 -0
- package/out/__chunks__/chunk-YUITECZ5.mjs +1 -0
- package/out/__chunks__/chunk-Z4OHB36I.mjs +2 -0
- package/out/__chunks__/chunk-ZWVYAOKB.mjs +2 -0
- package/out/__chunks__/chunk-ZWVYAOKB.mjs.map +7 -0
- package/out/__chunks__/{chunk-SJYCKFH4.mjs → chunk-ZXIBFH6X.mjs} +2 -2
- package/out/__mocks__/accountConfig.mjs +1 -1
- package/out/__mocks__/index.mjs +1 -1
- package/out/__mocks__/server.mjs +1 -1
- 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/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.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.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/transactions.constants.d.ts +1 -0
- package/out/constants/transactions.constants.js +2 -1
- package/out/constants/transactions.constants.js.map +1 -1
- package/out/constants/transactions.constants.mjs +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/sdkWebWalletCrossWindowProvider.d.ts +2 -0
- package/out/lib/sdkWebWalletCrossWindowProvider.js +4 -1
- package/out/lib/sdkWebWalletCrossWindowProvider.js.map +1 -1
- package/out/lib/sdkWebWalletCrossWindowProvider.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.d.ts +15 -0
- package/out/managers/LogoutManager/LogoutManager.js +137 -0
- package/out/managers/LogoutManager/LogoutManager.js.map +1 -0
- package/out/managers/LogoutManager/LogoutManager.mjs +2 -0
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.d.ts +1 -0
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.js +33 -0
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.js.map +1 -0
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.mjs +2 -0
- package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.d.ts +1 -0
- package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.js +48 -0
- package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.js.map +1 -0
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.d.ts +2 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.js +13 -3
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.js.map +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.d.ts +17 -5
- package/out/managers/TransactionManager/TransactionManager.js +18 -1
- package/out/managers/TransactionManager/TransactionManager.js.map +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.types.d.ts +12 -0
- package/out/{providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.js → managers/TransactionManager/TransactionManager.types.js} +1 -1
- package/out/managers/TransactionManager/TransactionManager.types.js.map +1 -0
- package/out/managers/TransactionManager/TransactionManager.types.mjs +1 -0
- 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/helpers/sessionCallbacks.d.ts +7 -0
- package/out/managers/TransactionManager/helpers/sessionCallbacks.js +14 -0
- package/out/managers/TransactionManager/helpers/sessionCallbacks.js.map +1 -0
- package/out/managers/TransactionManager/helpers/sessionCallbacks.mjs +2 -0
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.js +1 -3
- package/out/managers/UnlockPanelManager/UnlockPanelManager.js.map +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.d.ts +12 -5
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.js.map +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.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.d.ts +0 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.js +7 -14
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.js.map +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.d.ts +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/ToastManager/ToastManager.d.ts +6 -4
- package/out/managers/internal/ToastManager/ToastManager.js +27 -19
- package/out/managers/internal/ToastManager/ToastManager.js.map +1 -1
- package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.js +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.js.map +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.js.map +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.mjs +1 -1
- package/out/managers/internal/ToastManager/types/index.mjs +1 -1
- package/out/managers/internal/ToastManager/types/toast.types.d.ts +3 -1
- package/out/managers/internal/ToastManager/types/toast.types.js +2 -0
- package/out/managers/internal/ToastManager/types/toast.types.js.map +1 -1
- package/out/managers/internal/ToastManager/types/toast.types.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.d.ts +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.js +2 -2
- package/out/managers/internal/UIBaseManager/UIBaseManager.js.map +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.js +2 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.js.map +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.js +16 -8
- package/out/methods/initApp/initApp.js.map +1 -1
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/initApp.mjs.map +3 -3
- package/out/methods/initApp/initApp.types.d.ts +34 -5
- 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.js +27 -10
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.js.map +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/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.d.ts +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.js +7 -2
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.js.map +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.d.ts +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.js +24 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.js.map +1 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.mjs +2 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.mjs.map +7 -0
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.d.ts +1 -0
- package/out/methods/transactions/getFailedTransactions.js +10 -0
- package/out/methods/transactions/getFailedTransactions.js.map +1 -0
- package/out/methods/transactions/getFailedTransactions.mjs +2 -0
- package/out/methods/transactions/getFailedTransactions.mjs.map +7 -0
- package/out/methods/transactions/getFailedTransactionsSessions.d.ts +1 -0
- package/out/methods/transactions/getFailedTransactionsSessions.js +10 -0
- package/out/methods/transactions/getFailedTransactionsSessions.js.map +1 -0
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +2 -0
- package/out/methods/transactions/getFailedTransactionsSessions.mjs.map +7 -0
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.d.ts +1 -0
- package/out/methods/transactions/getSuccessfulTransactions.js +10 -0
- package/out/methods/transactions/getSuccessfulTransactions.js.map +1 -0
- package/out/methods/transactions/getSuccessfulTransactions.mjs +2 -0
- package/out/methods/transactions/getSuccessfulTransactions.mjs.map +7 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.d.ts +1 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.js +10 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.js.map +1 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +2 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs.map +7 -0
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.d.ts +1 -2
- package/out/providers/DappProvider/DappProvider.js +16 -6
- package/out/providers/DappProvider/DappProvider.js.map +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.js +1 -7
- package/out/providers/DappProvider/helpers/logout/logout.js.map +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.js +0 -5
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.js.map +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.js +10 -8
- package/out/providers/ProviderFactory.js.map +1 -1
- 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.js +2 -1
- package/out/providers/helpers/clearInitiatedLogins.js.map +1 -1
- package/out/providers/helpers/clearInitiatedLogins.mjs +1 -1
- package/out/providers/helpers/emptyProvider.mjs +1 -1
- package/out/providers/helpers/restoreProvider.js +6 -3
- package/out/providers/helpers/restoreProvider.js.map +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.d.ts +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.js +0 -15
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.js.map +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.d.ts +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.js +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.js.map +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.js +13 -2
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js.map +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/types/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.d.ts +1 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.d.ts +20 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.js +147 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.js.map +1 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +2 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.d.ts +1 -0
- package/out/providers/strategies/{CrossWindowProviderStrategy/types → WebviewProviderStrategy/WebviewClient}/index.js +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.js.map +1 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +2 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js +9 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js.map +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/tests/webview.test.js +20 -17
- package/out/providers/strategies/WebviewProviderStrategy/tests/webview.test.js.map +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.js +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.js.map +1 -1
- 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/getCommonData/tests/getCommonData.test.js +6 -6
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/getCommonData.test.js.map +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/getCrossWindowProvider.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.js +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.js.map +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.js +27 -20
- package/out/providers/strategies/helpers/signTransactions/signTransactions.js.map +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.d.ts +1 -2
- package/out/providers/types/providerFactory.types.js.map +1 -1
- 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.d.ts +1 -0
- package/out/react/transactions/useGetFailedTransactions.js +11 -0
- package/out/react/transactions/useGetFailedTransactions.js.map +1 -0
- package/out/react/transactions/useGetFailedTransactions.mjs +2 -0
- package/out/react/transactions/useGetFailedTransactions.mjs.map +7 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.d.ts +1 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.js +11 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.js.map +1 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +2 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs.map +7 -0
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.d.ts +1 -0
- package/out/react/transactions/useGetSuccessfulTransactions.js +11 -0
- package/out/react/transactions/useGetSuccessfulTransactions.js.map +1 -0
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +2 -0
- package/out/react/transactions/useGetSuccessfulTransactions.mjs.map +7 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.d.ts +1 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.js +11 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.js.map +1 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +2 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs.map +7 -0
- 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.d.ts +2 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.js +12 -5
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.js.map +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.js +6 -8
- package/out/services/nativeAuth/nativeAuth.js.map +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.d.ts +0 -2
- package/out/store/actions/config/configActions.js +1 -5
- package/out/store/actions/config/configActions.js.map +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.js.map +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.d.ts +1 -1
- package/out/store/actions/toasts/toastsActions.js +3 -1
- package/out/store/actions/toasts/toastsActions.js.map +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.d.ts +6 -4
- package/out/store/actions/transactions/transactionsActions.js +16 -7
- package/out/store/actions/transactions/transactionsActions.js.map +1 -1
- 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/configSelectors.d.ts +0 -1
- package/out/store/selectors/configSelectors.js +1 -5
- package/out/store/selectors/configSelectors.js.map +1 -1
- package/out/store/selectors/configSelectors.mjs +1 -1
- package/out/store/selectors/index.mjs +1 -1
- package/out/store/selectors/transactionsSelector.d.ts +2 -0
- package/out/store/selectors/transactionsSelector.js +29 -1
- package/out/store/selectors/transactionsSelector.js.map +1 -1
- package/out/store/selectors/transactionsSelector.mjs +1 -1
- package/out/store/slices/config/config.types.d.ts +0 -2
- package/out/store/slices/config/configSlice.js +0 -1
- package/out/store/slices/config/configSlice.js.map +1 -1
- package/out/store/slices/config/configSlice.mjs +1 -1
- package/out/store/slices/config/index.mjs +1 -1
- package/out/store/slices/index.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/index.d.ts +1 -0
- package/out/types/index.js +1 -0
- package/out/types/index.js.map +1 -1
- package/out/types/index.mjs +1 -1
- package/out/types/theme.types.d.ts +4 -0
- package/out/types/theme.types.js +9 -0
- package/out/types/theme.types.js.map +1 -0
- package/out/types/theme.types.mjs +2 -0
- package/out/types/theme.types.mjs.map +7 -0
- package/out/types/transactions.types.d.ts +4 -0
- package/out/types/transactions.types.mjs.map +1 -1
- package/out/utils/ComponentFactory.d.ts +14 -0
- package/out/utils/{createUIElement.js → ComponentFactory.js} +14 -4
- package/out/utils/ComponentFactory.js.map +1 -0
- package/out/utils/ComponentFactory.mjs +2 -0
- package/out/utils/ComponentFactory.mjs.map +7 -0
- package/out/utils/account/index.d.ts +1 -0
- package/out/utils/account/index.js +1 -0
- package/out/utils/account/index.js.map +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/{core/providers/DappProvider/helpers/login/helpers → utils/account}/refreshNativeAuthTokenLogin.d.ts +2 -2
- package/out/{core/providers/DappProvider/helpers/login/helpers → utils/account}/refreshNativeAuthTokenLogin.js +6 -9
- package/out/utils/account/refreshNativeAuthTokenLogin.js.map +1 -0
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +2 -0
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs.map +7 -0
- package/out/utils/decoders/index.mjs +1 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.js +1 -0
- package/out/utils/index.js.map +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.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/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -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.mjs +1 -1
- 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/validation/index.mjs +1 -1
- package/out/utils/validation/isContract.mjs +1 -1
- package/out/utils/visual/index.d.ts +1 -0
- package/out/utils/visual/index.js +18 -0
- package/out/utils/visual/index.js.map +1 -0
- package/out/utils/visual/index.mjs +2 -0
- package/out/utils/visual/index.mjs.map +7 -0
- package/out/utils/visual/switchTheme.d.ts +2 -0
- package/out/utils/visual/switchTheme.js +15 -0
- package/out/utils/visual/switchTheme.js.map +1 -0
- package/out/utils/visual/switchTheme.mjs +2 -0
- package/out/utils/visual/switchTheme.mjs.map +7 -0
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowLocation.js +7 -1
- package/out/utils/window/getWindowLocation.js.map +1 -1
- package/out/utils/window/getWindowLocation.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +14 -14
- package/out/__chunks__/chunk-2GSNHNKW.mjs +0 -1
- package/out/__chunks__/chunk-3RRSLNNU.mjs +0 -2
- package/out/__chunks__/chunk-3RRSLNNU.mjs.map +0 -7
- package/out/__chunks__/chunk-45WVS4H5.mjs +0 -2
- package/out/__chunks__/chunk-4MQGFX5E.mjs +0 -2
- package/out/__chunks__/chunk-4ROJWFSB.mjs +0 -2
- package/out/__chunks__/chunk-762K2LVS.mjs +0 -2
- package/out/__chunks__/chunk-762K2LVS.mjs.map +0 -7
- package/out/__chunks__/chunk-A5M7ZH6X.mjs +0 -2
- package/out/__chunks__/chunk-ABKSM4D4.mjs +0 -2
- package/out/__chunks__/chunk-ABKSM4D4.mjs.map +0 -7
- package/out/__chunks__/chunk-ASWTHX52.mjs +0 -2
- package/out/__chunks__/chunk-CG25USRH.mjs +0 -2
- package/out/__chunks__/chunk-CG25USRH.mjs.map +0 -7
- package/out/__chunks__/chunk-CO3V5DOG.mjs +0 -1
- package/out/__chunks__/chunk-CTUOKFTQ.mjs +0 -2
- package/out/__chunks__/chunk-CTUOKFTQ.mjs.map +0 -7
- package/out/__chunks__/chunk-CUZ44CDY.mjs +0 -2
- package/out/__chunks__/chunk-CUZ44CDY.mjs.map +0 -7
- package/out/__chunks__/chunk-DEAM4WOQ.mjs +0 -2
- package/out/__chunks__/chunk-DKGAK7SX.mjs +0 -2
- package/out/__chunks__/chunk-DKGAK7SX.mjs.map +0 -7
- package/out/__chunks__/chunk-DQKFSHIR.mjs +0 -2
- package/out/__chunks__/chunk-DQKFSHIR.mjs.map +0 -7
- package/out/__chunks__/chunk-ETES5ZQ7.mjs +0 -2
- package/out/__chunks__/chunk-EXEJDQ3E.mjs +0 -2
- package/out/__chunks__/chunk-EXEJDQ3E.mjs.map +0 -7
- package/out/__chunks__/chunk-FFNSZC37.mjs +0 -2
- package/out/__chunks__/chunk-FFNSZC37.mjs.map +0 -7
- package/out/__chunks__/chunk-FLC6QSZB.mjs +0 -1
- package/out/__chunks__/chunk-FP2LZG6I.mjs +0 -2
- package/out/__chunks__/chunk-GGJ4EA5D.mjs +0 -2
- package/out/__chunks__/chunk-GZLK5ERT.mjs +0 -2
- package/out/__chunks__/chunk-GZLK5ERT.mjs.map +0 -7
- package/out/__chunks__/chunk-HO3JCUZA.mjs +0 -2
- package/out/__chunks__/chunk-HOYYQCKG.mjs +0 -2
- package/out/__chunks__/chunk-I7BB2JJP.mjs.map +0 -7
- package/out/__chunks__/chunk-IEJARRBP.mjs +0 -2
- package/out/__chunks__/chunk-IEJTMYFW.mjs +0 -2
- package/out/__chunks__/chunk-IMEJ3BE5.mjs +0 -2
- package/out/__chunks__/chunk-IMGZJVC6.mjs +0 -2
- package/out/__chunks__/chunk-IMGZJVC6.mjs.map +0 -7
- package/out/__chunks__/chunk-JR3FBBRR.mjs +0 -2
- package/out/__chunks__/chunk-JR3FBBRR.mjs.map +0 -7
- package/out/__chunks__/chunk-LRHRFWQ4.mjs +0 -2
- package/out/__chunks__/chunk-LRHRFWQ4.mjs.map +0 -7
- package/out/__chunks__/chunk-LTFLMSOC.mjs +0 -2
- package/out/__chunks__/chunk-LTFLMSOC.mjs.map +0 -7
- package/out/__chunks__/chunk-LYC7ERBA.mjs.map +0 -7
- package/out/__chunks__/chunk-LYTBUMNM.mjs +0 -2
- package/out/__chunks__/chunk-MIQ3KCUL.mjs +0 -2
- package/out/__chunks__/chunk-MIQ3KCUL.mjs.map +0 -7
- package/out/__chunks__/chunk-NHXPNROG.mjs.map +0 -7
- package/out/__chunks__/chunk-NXKEIB75.mjs +0 -2
- package/out/__chunks__/chunk-QCXM7FCT.mjs +0 -2
- package/out/__chunks__/chunk-QD3CFFVT.mjs +0 -2
- package/out/__chunks__/chunk-QMCJDKKV.mjs +0 -2
- package/out/__chunks__/chunk-QMCJDKKV.mjs.map +0 -7
- package/out/__chunks__/chunk-R3TQP7YH.mjs +0 -2
- package/out/__chunks__/chunk-RBN5PDCE.mjs +0 -2
- package/out/__chunks__/chunk-RHN3VD44.mjs +0 -2
- package/out/__chunks__/chunk-RMF4WLMK.mjs +0 -2
- package/out/__chunks__/chunk-RMF4WLMK.mjs.map +0 -7
- package/out/__chunks__/chunk-RNZEARAQ.mjs +0 -2
- package/out/__chunks__/chunk-SB35K4FJ.mjs +0 -2
- package/out/__chunks__/chunk-SB35K4FJ.mjs.map +0 -7
- package/out/__chunks__/chunk-SUN3MVLZ.mjs +0 -2
- package/out/__chunks__/chunk-T3HV6CCC.mjs +0 -2
- package/out/__chunks__/chunk-T3HV6CCC.mjs.map +0 -7
- package/out/__chunks__/chunk-UAZVYE3I.mjs +0 -2
- package/out/__chunks__/chunk-UHDDSK3N.mjs +0 -2
- package/out/__chunks__/chunk-WO6GJTV2.mjs +0 -2
- package/out/__chunks__/chunk-WO6GJTV2.mjs.map +0 -7
- package/out/__chunks__/chunk-XDXMB6H5.mjs +0 -2
- package/out/__chunks__/chunk-YB2E5WOO.mjs +0 -2
- package/out/__chunks__/chunk-YB2E5WOO.mjs.map +0 -7
- package/out/__chunks__/chunk-ZTSNKYSA.mjs +0 -2
- package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.js.map +0 -1
- package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs +0 -2
- package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs.map +0 -7
- package/out/providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.d.ts +0 -6
- package/out/providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.js.map +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.mjs +0 -2
- package/out/providers/strategies/CrossWindowProviderStrategy/types/index.d.ts +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/types/index.js.map +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/types/index.mjs +0 -2
- package/out/utils/createUIElement.d.ts +0 -9
- package/out/utils/createUIElement.js.map +0 -1
- package/out/utils/createUIElement.mjs +0 -2
- /package/out/__chunks__/{chunk-LDOKRGUQ.mjs.map → chunk-254WMLVS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PCPDM6RD.mjs.map → chunk-2EFXW7IG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PVEKU2X3.mjs.map → chunk-2S5FRZJR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ST4GGUZM.mjs.map → chunk-42LFLNPA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GGJ4EA5D.mjs.map → chunk-4AKPP7B3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DGBTQM4A.mjs.map → chunk-4TZC3NF3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-N2V7UF7S.mjs.map → chunk-4XP7BVJD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QCXM7FCT.mjs.map → chunk-4YZQBDUE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HO3JCUZA.mjs.map → chunk-4ZZJX7E7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RBN5PDCE.mjs.map → chunk-5OM6KD5S.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JIECCAME.mjs.map → chunk-6G7ATMU7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UAZVYE3I.mjs.map → chunk-6GNNYFMN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-K3WBBSXJ.mjs.map → chunk-6P7EXGAB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4PHZ25O4.mjs.map → chunk-6RGWVDNQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RNZEARAQ.mjs.map → chunk-6ZL2QC74.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RHFDU5Y4.mjs.map → chunk-ABHYXD3U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4CJBDKYR.mjs.map → chunk-AF2QSDSV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3OKWBJFM.mjs.map → chunk-B2RDSGON.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XNPY3DUJ.mjs.map → chunk-B7ZKW5ML.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FMUDQBZE.mjs.map → chunk-BETSOJFK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JZLYRNNP.mjs.map → chunk-BHAZ2W52.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PRULMJH7.mjs.map → chunk-BQ2I655N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R3TQP7YH.mjs.map → chunk-CBF72LQF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ETES5ZQ7.mjs.map → chunk-CIY7IH2N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EA6KZGPV.mjs.map → chunk-CJQAA4EP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UHDDSK3N.mjs.map → chunk-DGYPNF4O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DEAM4WOQ.mjs.map → chunk-E7BYYSVM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QAVA2C6Y.mjs.map → chunk-EQEYL6AE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-V6GKT3ZN.mjs.map → chunk-FAOCLLIW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A5EXECZV.mjs.map → chunk-FIVH6RKU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RIQNG4I7.mjs.map → chunk-FSCOQWQN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Z3IZ47ZD.mjs.map → chunk-FZFKEGPM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RDMU5LTQ.mjs.map → chunk-GFTTAANM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5N755C2P.mjs.map → chunk-GT2HLNE7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ITYCILLF.mjs.map → chunk-H7BJSM6C.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HQSB4ISG.mjs.map → chunk-HIUWEH2W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5RVSN75H.mjs.map → chunk-HUITKXBO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PNT4VF66.mjs.map → chunk-HXXZKQRJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A5M7ZH6X.mjs.map → chunk-I37JLMZH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4MQGFX5E.mjs.map → chunk-IBSC2B7Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-P3EYUM5Z.mjs.map → chunk-INWUHEQN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZNZKP2Z7.mjs.map → chunk-ISPOZQQO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-24NXU72Y.mjs.map → chunk-IXUYZYD2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QVQGVVKN.mjs.map → chunk-JZ7434LN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WZWDFTW3.mjs.map → chunk-KSMSBTTQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EOX35D4L.mjs.map → chunk-LIPGE2RA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YPCJBYUY.mjs.map → chunk-LUDF7ZUR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-43DKHDU2.mjs.map → chunk-MRV6OG7P.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NXKEIB75.mjs.map → chunk-N2RYRHHL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZWISUUBJ.mjs.map → chunk-NJPTQNCT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4ROJWFSB.mjs.map → chunk-NPZ5PO2W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZMEIT65B.mjs.map → chunk-OD4ANAAQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4OEPT2V4.mjs.map → chunk-P3BXXGQA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5AR7YU5K.mjs.map → chunk-PJDJEPY2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MZNVCQVB.mjs.map → chunk-QSYQIJEO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YEXBSKXL.mjs.map → chunk-QWV25ZSJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZHGCNNB5.mjs.map → chunk-RM4VHHXR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XW2GCCBZ.mjs.map → chunk-RRKNYQ6D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HOYYQCKG.mjs.map → chunk-RSUHZ7IH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AJOTPFJL.mjs.map → chunk-S4WKQEYF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I7ODJJY3.mjs.map → chunk-TI73UXGG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-426U6FXN.mjs.map → chunk-U34BNBOX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SPSO2A53.mjs.map → chunk-U64LDJTG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ASWTHX52.mjs.map → chunk-UAW7SD6P.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-N6FJMYEB.mjs.map → chunk-V2C7APME.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A64HMPMV.mjs.map → chunk-VFAKQ7NM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ETHHR4HF.mjs.map → chunk-VXLJWKLG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2GSNHNKW.mjs.map → chunk-WHEXX3BD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4TSUWSFU.mjs.map → chunk-XPYJSDNF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LYTBUMNM.mjs.map → chunk-YA5U6YEL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RXAVE5OL.mjs.map → chunk-YKRSCVRE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CO3V5DOG.mjs.map → chunk-YUITECZ5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZTSNKYSA.mjs.map → chunk-Z4OHB36I.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SJYCKFH4.mjs.map → chunk-ZXIBFH6X.mjs.map} +0 -0
- /package/out/{__chunks__/chunk-FLC6QSZB.mjs.map → managers/LogoutManager/LogoutManager.mjs.map} +0 -0
- /package/out/{providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.mjs.map → managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.mjs.map} +0 -0
- /package/out/{providers/strategies/CrossWindowProviderStrategy/types/index.mjs.map → managers/TransactionManager/TransactionManager.types.mjs.map} +0 -0
- /package/out/{utils/createUIElement.mjs.map → managers/TransactionManager/helpers/sessionCallbacks.mjs.map} +0 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CrossWindowProvider = void 0;
|
|
3
|
+
exports.WindowProviderResponseEnums = exports.WindowProviderRequestEnums = exports.CrossWindowProvider = void 0;
|
|
4
4
|
var CrossWindowProvider_1 = require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider");
|
|
5
5
|
Object.defineProperty(exports, "CrossWindowProvider", { enumerable: true, get: function () { return CrossWindowProvider_1.CrossWindowProvider; } });
|
|
6
|
+
var enums_1 = require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");
|
|
7
|
+
Object.defineProperty(exports, "WindowProviderRequestEnums", { enumerable: true, get: function () { return enums_1.WindowProviderRequestEnums; } });
|
|
8
|
+
Object.defineProperty(exports, "WindowProviderResponseEnums", { enumerable: true, get: function () { return enums_1.WindowProviderResponseEnums; } });
|
|
6
9
|
//# sourceMappingURL=sdkWebWalletCrossWindowProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdkWebWalletCrossWindowProvider.js","sourceRoot":"","sources":["../../src/lib/sdkWebWalletCrossWindowProvider.ts"],"names":[],"mappings":";;;AAAA,oIAAmI;AAA1H,0HAAA,mBAAmB,OAAA"}
|
|
1
|
+
{"version":3,"file":"sdkWebWalletCrossWindowProvider.js","sourceRoot":"","sources":["../../src/lib/sdkWebWalletCrossWindowProvider.ts"],"names":[],"mappings":";;;AAAA,oIAAmI;AAA1H,0HAAA,mBAAmB,OAAA;AAC5B,oFAGoE;AAFlE,mHAAA,0BAA0B,OAAA;AAC1B,oHAAA,2BAA2B,OAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../__chunks__/chunk-
|
|
1
|
+
import{a,b,c}from"../__chunks__/chunk-QJGFIK7H.mjs";export{a as CrossWindowProvider,b as WindowProviderRequestEnums,c as WindowProviderResponseEnums};
|
|
2
2
|
//# sourceMappingURL=sdkWebWalletCrossWindowProvider.mjs.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class LogoutManager {
|
|
2
|
+
private static instance;
|
|
3
|
+
private store;
|
|
4
|
+
private warningLogoutTimeoutRef;
|
|
5
|
+
private actualLogoutTimeoutRef;
|
|
6
|
+
private plannedLogoutTimeoutRef;
|
|
7
|
+
private plannedLogoutKey;
|
|
8
|
+
static getInstance(): LogoutManager;
|
|
9
|
+
private constructor();
|
|
10
|
+
init: () => Promise<void>;
|
|
11
|
+
stop: () => void;
|
|
12
|
+
private readonly shouldStart;
|
|
13
|
+
private addPlannedLogout;
|
|
14
|
+
private readonly addLogoutWarning;
|
|
15
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LogoutManager = void 0;
|
|
7
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
8
|
+
const getToastDataStateByStatus_1 = require("../../managers/internal/ToastManager/helpers/getToastDataStateByStatus");
|
|
9
|
+
const ToastManager_1 = require("../../managers/internal/ToastManager/ToastManager");
|
|
10
|
+
const accountProvider_1 = require("../../providers/helpers/accountProvider");
|
|
11
|
+
const providerFactory_types_1 = require("../../providers/types/providerFactory.types");
|
|
12
|
+
const getTokenExpiration_1 = require("../../services/nativeAuth/methods/getTokenExpiration");
|
|
13
|
+
const accountSelectors_1 = require("../../store/selectors/accountSelectors");
|
|
14
|
+
const configSelectors_1 = require("../../store/selectors/configSelectors");
|
|
15
|
+
const loginInfoSelectors_1 = require("../../store/selectors/loginInfoSelectors");
|
|
16
|
+
const store_1 = require("../../store/store");
|
|
17
|
+
const getHumanReadableTokenExpirationTime_1 = require("./helpers/getHumanReadableTokenExpirationTime");
|
|
18
|
+
class LogoutManager {
|
|
19
|
+
static getInstance() {
|
|
20
|
+
if (!LogoutManager.instance) {
|
|
21
|
+
LogoutManager.instance = new LogoutManager();
|
|
22
|
+
}
|
|
23
|
+
return LogoutManager.instance;
|
|
24
|
+
}
|
|
25
|
+
constructor() {
|
|
26
|
+
this.store = (0, store_1.getStore)();
|
|
27
|
+
this.warningLogoutTimeoutRef = null;
|
|
28
|
+
this.actualLogoutTimeoutRef = null;
|
|
29
|
+
this.plannedLogoutTimeoutRef = null;
|
|
30
|
+
this.plannedLogoutKey = null;
|
|
31
|
+
this.init = async () => {
|
|
32
|
+
if (!this.shouldStart()) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const state = this.store.getState();
|
|
36
|
+
const tokenLogin = (0, loginInfoSelectors_1.tokenLoginSelector)(state);
|
|
37
|
+
const { isExpired: isNativeAuthTokenExpired } = (0, getTokenExpiration_1.getTokenExpiration)(tokenLogin?.nativeAuthToken);
|
|
38
|
+
if (isNativeAuthTokenExpired) {
|
|
39
|
+
const provider = (0, accountProvider_1.getAccountProvider)();
|
|
40
|
+
provider.logout();
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
this.addPlannedLogout();
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
this.stop = () => {
|
|
47
|
+
clearTimeout(this.warningLogoutTimeoutRef ?? 0);
|
|
48
|
+
clearTimeout(this.plannedLogoutTimeoutRef ?? 0);
|
|
49
|
+
clearTimeout(this.actualLogoutTimeoutRef ?? 0);
|
|
50
|
+
this.warningLogoutTimeoutRef = null;
|
|
51
|
+
this.plannedLogoutTimeoutRef = null;
|
|
52
|
+
this.actualLogoutTimeoutRef = null;
|
|
53
|
+
this.plannedLogoutKey = null;
|
|
54
|
+
};
|
|
55
|
+
this.shouldStart = () => {
|
|
56
|
+
const state = this.store.getState();
|
|
57
|
+
const tokenLogin = (0, loginInfoSelectors_1.tokenLoginSelector)(state);
|
|
58
|
+
const isLoggedIn = (0, accountSelectors_1.isLoggedInSelector)(state);
|
|
59
|
+
return Boolean(tokenLogin?.nativeAuthToken && isLoggedIn);
|
|
60
|
+
};
|
|
61
|
+
this.addPlannedLogout = () => {
|
|
62
|
+
const provider = (0, accountProvider_1.getAccountProvider)();
|
|
63
|
+
const address = (0, accountSelectors_1.addressSelector)(this.store.getState());
|
|
64
|
+
const isWebviewLogin = provider.getType() === providerFactory_types_1.ProviderTypeEnum.webview;
|
|
65
|
+
// prevent unexpected logout if webview login
|
|
66
|
+
if (!address || isWebviewLogin) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
this.addLogoutWarning();
|
|
70
|
+
const tokenLogin = (0, loginInfoSelectors_1.tokenLoginSelector)(this.store.getState());
|
|
71
|
+
const { secondsUntilExpires, expiresAt } = (0, getTokenExpiration_1.getTokenExpiration)(tokenLogin?.nativeAuthToken);
|
|
72
|
+
// Handle the actual logout functionality.
|
|
73
|
+
const secondsUntilExpiresBN = new bignumber_js_1.default(String(secondsUntilExpires));
|
|
74
|
+
const plannedLogoutKey = `${address}_${expiresAt}`;
|
|
75
|
+
const plannedLogoutSet = this.plannedLogoutKey === plannedLogoutKey;
|
|
76
|
+
const isValidInterval = secondsUntilExpires && secondsUntilExpiresBN.isGreaterThan(0);
|
|
77
|
+
if (!isValidInterval || plannedLogoutSet) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
this.plannedLogoutKey = plannedLogoutKey;
|
|
81
|
+
clearTimeout(this.plannedLogoutTimeoutRef ?? 0);
|
|
82
|
+
const millisecondsUntilLogout = secondsUntilExpiresBN.times(1000);
|
|
83
|
+
this.actualLogoutTimeoutRef = setTimeout(() => {
|
|
84
|
+
ToastManager_1.ToastManager.getInstance().createCustomToast({
|
|
85
|
+
toastId: 'native-auth-logout',
|
|
86
|
+
iconClassName: 'warning',
|
|
87
|
+
title: 'Logging out',
|
|
88
|
+
icon: getToastDataStateByStatus_1.ToastIconsEnum.times,
|
|
89
|
+
message: 'Your session has expired!'
|
|
90
|
+
});
|
|
91
|
+
this.actualLogoutTimeoutRef = null;
|
|
92
|
+
}, millisecondsUntilLogout.toNumber() - 3000);
|
|
93
|
+
this.plannedLogoutTimeoutRef = setTimeout(() => {
|
|
94
|
+
provider.logout();
|
|
95
|
+
this.plannedLogoutTimeoutRef = null;
|
|
96
|
+
this.plannedLogoutKey = null;
|
|
97
|
+
}, millisecondsUntilLogout.toNumber());
|
|
98
|
+
};
|
|
99
|
+
this.addLogoutWarning = () => {
|
|
100
|
+
if (this.warningLogoutTimeoutRef) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const nativeAuthConfig = (0, configSelectors_1.nativeAuthConfigSelector)(this.store.getState());
|
|
104
|
+
const tokenLogin = (0, loginInfoSelectors_1.tokenLoginSelector)(this.store.getState());
|
|
105
|
+
const { secondsUntilExpires } = (0, getTokenExpiration_1.getTokenExpiration)(tokenLogin?.nativeAuthToken);
|
|
106
|
+
const secondsUntilExpiresBN = new bignumber_js_1.default(String(secondsUntilExpires));
|
|
107
|
+
const millisecondsUntilLogout = secondsUntilExpiresBN.times(1000);
|
|
108
|
+
if (!secondsUntilExpires ||
|
|
109
|
+
secondsUntilExpiresBN.isLessThanOrEqualTo(0) ||
|
|
110
|
+
!nativeAuthConfig?.tokenExpirationToastWarningSeconds) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const logoutWarningOffsetSeconds = new bignumber_js_1.default(nativeAuthConfig?.tokenExpirationToastWarningSeconds ?? 0);
|
|
114
|
+
const logoutWarningOffsetMilliseconds = logoutWarningOffsetSeconds.times(1000);
|
|
115
|
+
const millisecondsUntilLogoutWarning = secondsUntilExpiresBN
|
|
116
|
+
.times(1000)
|
|
117
|
+
.minus(logoutWarningOffsetMilliseconds);
|
|
118
|
+
const readableMinutesUntilLogout = (0, getHumanReadableTokenExpirationTime_1.getHumanReadableTokenExpirationTime)(millisecondsUntilLogout.toNumber());
|
|
119
|
+
const timeoutUntilLogoutWarning = millisecondsUntilLogoutWarning.isLessThanOrEqualTo(0)
|
|
120
|
+
? 0
|
|
121
|
+
: millisecondsUntilLogoutWarning.toNumber();
|
|
122
|
+
clearTimeout(this.warningLogoutTimeoutRef ?? 0);
|
|
123
|
+
this.warningLogoutTimeoutRef = setTimeout(() => {
|
|
124
|
+
ToastManager_1.ToastManager.getInstance().createCustomToast({
|
|
125
|
+
toastId: 'native-auth-expired',
|
|
126
|
+
iconClassName: 'warning',
|
|
127
|
+
title: 'Session Expiration Warning',
|
|
128
|
+
icon: getToastDataStateByStatus_1.ToastIconsEnum.hourglass,
|
|
129
|
+
message: `Your session will expire in ${readableMinutesUntilLogout}!`
|
|
130
|
+
});
|
|
131
|
+
this.warningLogoutTimeoutRef = null;
|
|
132
|
+
}, timeoutUntilLogoutWarning);
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
exports.LogoutManager = LogoutManager;
|
|
137
|
+
//# sourceMappingURL=LogoutManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogoutManager.js","sourceRoot":"","sources":["../../../src/managers/LogoutManager/LogoutManager.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{m as a}from"../../__chunks__/chunk-I6BXGQLQ.mjs";import"../../__chunks__/chunk-RUBOJOJP.mjs";import"../../__chunks__/chunk-6GNNYFMN.mjs";import"../../__chunks__/chunk-T7DVMF2K.mjs";import"../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../__chunks__/chunk-6UZHM5LW.mjs";import"../../__chunks__/chunk-NQ6SJRHZ.mjs";import"../../__chunks__/chunk-PJDJEPY2.mjs";import"../../__chunks__/chunk-MRV6OG7P.mjs";import"../../__chunks__/chunk-FD3HLEX7.mjs";import"../../__chunks__/chunk-RFKBUN7S.mjs";import"../../__chunks__/chunk-RVO7H26H.mjs";import"../../__chunks__/chunk-VDMJZZU4.mjs";import"../../__chunks__/chunk-4HEE3XZP.mjs";import"../../__chunks__/chunk-SCSHU7XJ.mjs";import"../../__chunks__/chunk-IMPOALRX.mjs";import"../../__chunks__/chunk-B7ZKW5ML.mjs";import"../../__chunks__/chunk-AF2QSDSV.mjs";import"../../__chunks__/chunk-6RGWVDNQ.mjs";import"../../__chunks__/chunk-IBSC2B7Q.mjs";import"../../__chunks__/chunk-Z4OHB36I.mjs";import"../../__chunks__/chunk-QSYQIJEO.mjs";import"../../__chunks__/chunk-N2RYRHHL.mjs";import"../../__chunks__/chunk-CAA4VJRH.mjs";import"../../__chunks__/chunk-UP7CK2EN.mjs";import"../../__chunks__/chunk-4YZQBDUE.mjs";import"../../__chunks__/chunk-745QCLQC.mjs";import"../../__chunks__/chunk-U34BNBOX.mjs";import"../../__chunks__/chunk-SLH6IQJJ.mjs";import"../../__chunks__/chunk-FMQYLMTU.mjs";import"../../__chunks__/chunk-3ZEUVYQF.mjs";import"../../__chunks__/chunk-MFUQ5NBC.mjs";import"../../__chunks__/chunk-RBUHL65H.mjs";import"../../__chunks__/chunk-IXUYZYD2.mjs";import"../../__chunks__/chunk-GFTTAANM.mjs";import"../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../__chunks__/chunk-4ZZJX7E7.mjs";import"../../__chunks__/chunk-6P7EXGAB.mjs";import"../../__chunks__/chunk-BQ2I655N.mjs";import"../../__chunks__/chunk-4ODPAHHA.mjs";import"../../__chunks__/chunk-ECEWPZGA.mjs";import"../../__chunks__/chunk-Z5CDCI3Y.mjs";import"../../__chunks__/chunk-YO3ATAA6.mjs";import"../../__chunks__/chunk-NO7YH2FT.mjs";import"../../__chunks__/chunk-YA5U6YEL.mjs";import"../../__chunks__/chunk-TSUMQ3HX.mjs";import"../../__chunks__/chunk-6ZL2QC74.mjs";import"../../__chunks__/chunk-2EFXW7IG.mjs";import"../../__chunks__/chunk-HK7HCSM3.mjs";import"../../__chunks__/chunk-ID7WYMJZ.mjs";import"../../__chunks__/chunk-55SACSMS.mjs";import"../../__chunks__/chunk-BOAJJ4FX.mjs";import"../../__chunks__/chunk-INWUHEQN.mjs";import"../../__chunks__/chunk-4US7HVCR.mjs";import"../../__chunks__/chunk-6D2RBTVV.mjs";import"../../__chunks__/chunk-4TBVQD27.mjs";import"../../__chunks__/chunk-M3GFSV3G.mjs";import"../../__chunks__/chunk-WV5X6BXA.mjs";import"../../__chunks__/chunk-ISPOZQQO.mjs";import"../../__chunks__/chunk-L3YPAYXZ.mjs";import"../../__chunks__/chunk-VXLJWKLG.mjs";import"../../__chunks__/chunk-J32T6OAP.mjs";import"../../__chunks__/chunk-FZFKEGPM.mjs";import"../../__chunks__/chunk-YK7T6MBD.mjs";import"../../__chunks__/chunk-KMJMQEXI.mjs";import"../../__chunks__/chunk-G5DKGX73.mjs";import"../../__chunks__/chunk-CBF72LQF.mjs";import"../../__chunks__/chunk-O2DO3WJJ.mjs";import"../../__chunks__/chunk-L3MWDI6J.mjs";import"../../__chunks__/chunk-65L5EBBL.mjs";import"../../__chunks__/chunk-HORSXVIV.mjs";import"../../__chunks__/chunk-2SIHYJET.mjs";import"../../__chunks__/chunk-E7BYYSVM.mjs";import"../../__chunks__/chunk-NWEUIK3A.mjs";import"../../__chunks__/chunk-P32DZ2CO.mjs";import"../../__chunks__/chunk-OJX2TSAZ.mjs";import"../../__chunks__/chunk-QTKK6OSJ.mjs";import"../../__chunks__/chunk-FSCOQWQN.mjs";import"../../__chunks__/chunk-CVPP4HQE.mjs";import"../../__chunks__/chunk-3S57OP4Z.mjs";import"../../__chunks__/chunk-6ACLOUQ3.mjs";import"../../__chunks__/chunk-WE7YOBO7.mjs";import"../../__chunks__/chunk-6FXEHNGW.mjs";import"../../__chunks__/chunk-ZLE5VUWG.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-RMW3YLGD.mjs";import"../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../__chunks__/chunk-NJN53MJV.mjs";import"../../__chunks__/chunk-YSCND2MX.mjs";import"../../__chunks__/chunk-YJK5FPW4.mjs";import"../../__chunks__/chunk-36XFDUXN.mjs";import"../../__chunks__/chunk-X6MN67NW.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-6CQMLD25.mjs";import"../../__chunks__/chunk-B3IKUIRK.mjs";import"../../__chunks__/chunk-42LFLNPA.mjs";import"../../__chunks__/chunk-TQA3JDNV.mjs";import"../../__chunks__/chunk-IXBWD6BF.mjs";import"../../__chunks__/chunk-NJPTQNCT.mjs";import"../../__chunks__/chunk-VCAWVAO5.mjs";import"../../__chunks__/chunk-55W25Q35.mjs";import"../../__chunks__/chunk-XPYJSDNF.mjs";import"../../__chunks__/chunk-H7BJSM6C.mjs";import"../../__chunks__/chunk-JZ7434LN.mjs";import"../../__chunks__/chunk-RSUHZ7IH.mjs";import"../../__chunks__/chunk-LUDF7ZUR.mjs";import"../../__chunks__/chunk-LIPGE2RA.mjs";import"../../__chunks__/chunk-QSBLXZFC.mjs";import"../../__chunks__/chunk-35MNP3LA.mjs";import"../../__chunks__/chunk-TX7PTLVP.mjs";import"../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../__chunks__/chunk-3MWXXTQQ.mjs";import"../../__chunks__/chunk-KSKOSHYV.mjs";import"../../__chunks__/chunk-YB7AHPBR.mjs";import"../../__chunks__/chunk-DNHKXKYY.mjs";import"../../__chunks__/chunk-HQQMSHTW.mjs";import"../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../__chunks__/chunk-ISPRIGOE.mjs";import"../../__chunks__/chunk-HMHP5DPL.mjs";import"../../__chunks__/chunk-54B3EIZC.mjs";import"../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../__chunks__/chunk-VDDXFGB2.mjs";import"../../__chunks__/chunk-BRJNX4JF.mjs";import"../../__chunks__/chunk-4QDHGYT4.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-QJSB5NX4.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-SAAOQW7P.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-4AKPP7B3.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-7BP53CXF.mjs";import"../../__chunks__/chunk-BRBIUWAW.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-X4XULIVT.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-J4CPYFK6.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-BSWV5MEC.mjs";import"../../__chunks__/chunk-YUITECZ5.mjs";import"../../__chunks__/chunk-2BSPSW6X.mjs";import"../../__chunks__/chunk-JR23TXKP.mjs";import"../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../__chunks__/chunk-WZI2I6NX.mjs";import"../../__chunks__/chunk-TVELGQIH.mjs";import"../../__chunks__/chunk-OVXVICF7.mjs";import"../../__chunks__/chunk-TI37DKBT.mjs";import"../../__chunks__/chunk-R53MCZI6.mjs";import"../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../__chunks__/chunk-QWV25ZSJ.mjs";import"../../__chunks__/chunk-5LB2KNTP.mjs";import"../../__chunks__/chunk-MGQ373AO.mjs";import"../../__chunks__/chunk-RPTH42EF.mjs";import"../../__chunks__/chunk-3UNGCOKO.mjs";import"../../__chunks__/chunk-4YU2DWHA.mjs";import"../../__chunks__/chunk-VMFJUT3G.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-TI73UXGG.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-BHAZ2W52.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-VFAKQ7NM.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-ULUZWP2P.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-S2FQWSUO.mjs";import"../../__chunks__/chunk-DTQL3IDP.mjs";import"../../__chunks__/chunk-CKTFPRJS.mjs";import"../../__chunks__/chunk-YKRSCVRE.mjs";import"../../__chunks__/chunk-4TZC3NF3.mjs";import"../../__chunks__/chunk-EHDGJUEU.mjs";import"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-L4QPPHVR.mjs";import"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as LogoutManager};
|
|
2
|
+
//# sourceMappingURL=LogoutManager.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getHumanReadableTokenExpirationTime: (milliseconds: number) => string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getHumanReadableTokenExpirationTime = void 0;
|
|
7
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
8
|
+
const getHumanReadableTokenExpirationTime = (milliseconds) => {
|
|
9
|
+
const seconds = new bignumber_js_1.default(milliseconds)
|
|
10
|
+
.dividedBy(1000)
|
|
11
|
+
.integerValue(bignumber_js_1.default.ROUND_FLOOR);
|
|
12
|
+
const minutes = new bignumber_js_1.default(seconds)
|
|
13
|
+
.dividedBy(60)
|
|
14
|
+
.integerValue(bignumber_js_1.default.ROUND_FLOOR);
|
|
15
|
+
const hours = new bignumber_js_1.default(minutes)
|
|
16
|
+
.dividedBy(60)
|
|
17
|
+
.integerValue(bignumber_js_1.default.ROUND_FLOOR);
|
|
18
|
+
const overOneHour = hours.modulo(60).isGreaterThan(1);
|
|
19
|
+
const overOneMinute = minutes.modulo(60).isGreaterThan(1);
|
|
20
|
+
const underOneMinute = minutes.modulo(60).isLessThan(1);
|
|
21
|
+
if (overOneHour) {
|
|
22
|
+
return `${hours} hours`;
|
|
23
|
+
}
|
|
24
|
+
if (overOneMinute) {
|
|
25
|
+
return `${minutes} minutes`;
|
|
26
|
+
}
|
|
27
|
+
if (underOneMinute) {
|
|
28
|
+
return 'less than 1 minute';
|
|
29
|
+
}
|
|
30
|
+
return `${minutes} minute`;
|
|
31
|
+
};
|
|
32
|
+
exports.getHumanReadableTokenExpirationTime = getHumanReadableTokenExpirationTime;
|
|
33
|
+
//# sourceMappingURL=getHumanReadableTokenExpirationTime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHumanReadableTokenExpirationTime.js","sourceRoot":"","sources":["../../../../src/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AAE9B,MAAM,mCAAmC,GAAG,CAAC,YAAoB,EAAE,EAAE;IAC1E,MAAM,OAAO,GAAG,IAAI,sBAAS,CAAC,YAAY,CAAC;SACxC,SAAS,CAAC,IAAI,CAAC;SACf,YAAY,CAAC,sBAAS,CAAC,WAAW,CAAC,CAAC;IAEvC,MAAM,OAAO,GAAG,IAAI,sBAAS,CAAC,OAAO,CAAC;SACnC,SAAS,CAAC,EAAE,CAAC;SACb,YAAY,CAAC,sBAAS,CAAC,WAAW,CAAC,CAAC;IAEvC,MAAM,KAAK,GAAG,IAAI,sBAAS,CAAC,OAAO,CAAC;SACjC,SAAS,CAAC,EAAE,CAAC;SACb,YAAY,CAAC,sBAAS,CAAC,WAAW,CAAC,CAAC;IAEvC,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IACtD,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC1D,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAExD,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO,GAAG,KAAK,QAAQ,CAAC;IAC1B,CAAC;IAED,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,GAAG,OAAO,UAAU,CAAC;IAC9B,CAAC;IAED,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED,OAAO,GAAG,OAAO,SAAS,CAAC;AAC7B,CAAC,CAAC;AA9BW,QAAA,mCAAmC,uCA8B9C"}
|
package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const getHumanReadableTokenExpirationTime_1 = require("../getHumanReadableTokenExpirationTime");
|
|
4
|
+
describe('Test the "getHumanReadableTokenExpirationTime" helper functionality.', () => {
|
|
5
|
+
test('The given input is extremely small.', () => {
|
|
6
|
+
const input = 14;
|
|
7
|
+
const output = (0, getHumanReadableTokenExpirationTime_1.getHumanReadableTokenExpirationTime)(input);
|
|
8
|
+
expect(typeof output).toBe('string');
|
|
9
|
+
expect(output).toBe('less than 1 minute');
|
|
10
|
+
});
|
|
11
|
+
test('The given input is negative.', () => {
|
|
12
|
+
const input = -14;
|
|
13
|
+
const output = (0, getHumanReadableTokenExpirationTime_1.getHumanReadableTokenExpirationTime)(input);
|
|
14
|
+
expect(typeof output).toBe('string');
|
|
15
|
+
expect(output).toBe('less than 1 minute');
|
|
16
|
+
});
|
|
17
|
+
test('The given input is zero.', () => {
|
|
18
|
+
const input = 0;
|
|
19
|
+
const output = (0, getHumanReadableTokenExpirationTime_1.getHumanReadableTokenExpirationTime)(input);
|
|
20
|
+
expect(typeof output).toBe('string');
|
|
21
|
+
expect(output).toBe('less than 1 minute');
|
|
22
|
+
});
|
|
23
|
+
test('The remaining time is under one minute.', () => {
|
|
24
|
+
const input = 45000;
|
|
25
|
+
const output = (0, getHumanReadableTokenExpirationTime_1.getHumanReadableTokenExpirationTime)(input);
|
|
26
|
+
expect(typeof output).toBe('string');
|
|
27
|
+
expect(output).toBe('less than 1 minute');
|
|
28
|
+
});
|
|
29
|
+
test('The remaining time is exactly one minute.', () => {
|
|
30
|
+
const input = 60000;
|
|
31
|
+
const output = (0, getHumanReadableTokenExpirationTime_1.getHumanReadableTokenExpirationTime)(input);
|
|
32
|
+
expect(typeof output).toBe('string');
|
|
33
|
+
expect(output).toBe('1 minute');
|
|
34
|
+
});
|
|
35
|
+
test('The remaining time is exactly 20 minutes.', () => {
|
|
36
|
+
const input = 1242000;
|
|
37
|
+
const output = (0, getHumanReadableTokenExpirationTime_1.getHumanReadableTokenExpirationTime)(input);
|
|
38
|
+
expect(typeof output).toBe('string');
|
|
39
|
+
expect(output).toBe('20 minutes');
|
|
40
|
+
});
|
|
41
|
+
test('The remaining time is exactly 3 hours.', () => {
|
|
42
|
+
const input = 11178000;
|
|
43
|
+
const output = (0, getHumanReadableTokenExpirationTime_1.getHumanReadableTokenExpirationTime)(input);
|
|
44
|
+
expect(typeof output).toBe('string');
|
|
45
|
+
expect(output).toBe('3 hours');
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=getHumanReadableTokenExpirationTime.test.js.map
|
package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHumanReadableTokenExpirationTime.test.js","sourceRoot":"","sources":["../../../../../src/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.ts"],"names":[],"mappings":";;AAAA,gGAA6F;AAE7F,QAAQ,CAAC,sEAAsE,EAAE,GAAG,EAAE;IACpF,IAAI,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC/C,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,MAAM,MAAM,GAAG,IAAA,yEAAmC,EAAC,KAAK,CAAC,CAAC;QAE1D,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACxC,MAAM,KAAK,GAAG,CAAC,EAAE,CAAC;QAClB,MAAM,MAAM,GAAG,IAAA,yEAAmC,EAAC,KAAK,CAAC,CAAC;QAE1D,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,0BAA0B,EAAE,GAAG,EAAE;QACpC,MAAM,KAAK,GAAG,CAAC,CAAC;QAChB,MAAM,MAAM,GAAG,IAAA,yEAAmC,EAAC,KAAK,CAAC,CAAC;QAE1D,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,yCAAyC,EAAE,GAAG,EAAE;QACnD,MAAM,KAAK,GAAG,KAAK,CAAC;QACpB,MAAM,MAAM,GAAG,IAAA,yEAAmC,EAAC,KAAK,CAAC,CAAC;QAE1D,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACrD,MAAM,KAAK,GAAG,KAAK,CAAC;QACpB,MAAM,MAAM,GAAG,IAAA,yEAAmC,EAAC,KAAK,CAAC,CAAC;QAE1D,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACrD,MAAM,KAAK,GAAG,OAAO,CAAC;QACtB,MAAM,MAAM,GAAG,IAAA,yEAAmC,EAAC,KAAK,CAAC,CAAC;QAE1D,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAClD,MAAM,KAAK,GAAG,QAAQ,CAAC;QACvB,MAAM,MAAM,GAAG,IAAA,yEAAmC,EAAC,KAAK,CAAC,CAAC;QAE1D,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -18,10 +18,11 @@ export declare class NotificationsFeedManager extends SidePanelBaseManager<MvxNo
|
|
|
18
18
|
* Open the notifications feed and toggle off the toast manager.
|
|
19
19
|
*/
|
|
20
20
|
openNotificationsFeed(): Promise<void>;
|
|
21
|
+
closeUI: () => Promise<void>;
|
|
21
22
|
/**
|
|
22
23
|
* Close the notifications feed and toggle on the toast manager.
|
|
23
24
|
*/
|
|
24
|
-
protected handleCloseUI(): void
|
|
25
|
+
protected handleCloseUI(): Promise<void>;
|
|
25
26
|
protected setupEventListeners(): Promise<void>;
|
|
26
27
|
protected updateDataAndNotifications(): Promise<void>;
|
|
27
28
|
private handleClearNotificationsFeedHistory;
|
|
@@ -31,6 +31,16 @@ class NotificationsFeedManager extends SidePanelBaseManager_1.SidePanelBaseManag
|
|
|
31
31
|
pendingTransactions: [],
|
|
32
32
|
historicTransactions: []
|
|
33
33
|
};
|
|
34
|
+
this.closeUI = async () => {
|
|
35
|
+
if (this.data.pendingTransactions.length > 0) {
|
|
36
|
+
this.unsubscribeFunctions.forEach((unsubList) => unsubList.forEach((unsubscribe) => unsubscribe()));
|
|
37
|
+
this.unsubscribeFunctions.clear();
|
|
38
|
+
await this.uiElement?.closeWithAnimation();
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
super.closeUI();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
34
44
|
this.data = { ...this.initialData };
|
|
35
45
|
}
|
|
36
46
|
isNotificationsFeedOpen() {
|
|
@@ -59,10 +69,10 @@ class NotificationsFeedManager extends SidePanelBaseManager_1.SidePanelBaseManag
|
|
|
59
69
|
/**
|
|
60
70
|
* Close the notifications feed and toggle on the toast manager.
|
|
61
71
|
*/
|
|
62
|
-
handleCloseUI() {
|
|
72
|
+
async handleCloseUI() {
|
|
63
73
|
const toastManager = internal_1.ToastManager.getInstance();
|
|
64
|
-
this.closeUI();
|
|
65
|
-
toastManager.showToasts();
|
|
74
|
+
await this.closeUI();
|
|
75
|
+
await toastManager.showToasts();
|
|
66
76
|
}
|
|
67
77
|
async setupEventListeners() {
|
|
68
78
|
if (!this.eventBus) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationsFeedManager.js","sourceRoot":"","sources":["../../../src/managers/NotificationsFeedManager/NotificationsFeedManager.ts"],"names":[],"mappings":";;;;;;AAAA,oEAAqC;AACrC,uDAAmD;AACnD,6FAA0F;AAE1F,wFAA4F;AAC5F,uCAAuC;AACvC,mCAAsD;AACtD,0CAA2C;AAC3C,gGAA6F;AAC7F,gHAA6G;AAQ7G,MAAM,kCAAkC,GAAG,oCAAoC,CAAC;AAEhF,MAAa,wBAAyB,SAAQ,2CAI7C;IASQ,MAAM,CAAC,WAAW;QACvB,IAAI,CAAC,wBAAwB,CAAC,QAAQ,EAAE,CAAC;YACvC,wBAAwB,CAAC,QAAQ,GAAG,IAAI,wBAAwB,EAAE,CAAC;QACrE,CAAC;QACD,OAAO,wBAAwB,CAAC,QAAQ,CAAC;IAC3C,CAAC;IAED;QACE,KAAK,CAAC;YACJ,iBAAiB,EAAE,mCAA2B,CAAC,IAAI;YACnD,KAAK,EAAE,wBAAU,CAAC,kBAAkB;SACrC,CAAC,CAAC;QAlBY,UAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;QAE1B,gBAAW,GAAkC;YACrD,mBAAmB,EAAE,EAAE;YACvB,oBAAoB,EAAE,EAAE;SACzB,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationsFeedManager.js","sourceRoot":"","sources":["../../../src/managers/NotificationsFeedManager/NotificationsFeedManager.ts"],"names":[],"mappings":";;;;;;AAAA,oEAAqC;AACrC,uDAAmD;AACnD,6FAA0F;AAE1F,wFAA4F;AAC5F,uCAAuC;AACvC,mCAAsD;AACtD,0CAA2C;AAC3C,gGAA6F;AAC7F,gHAA6G;AAQ7G,MAAM,kCAAkC,GAAG,oCAAoC,CAAC;AAEhF,MAAa,wBAAyB,SAAQ,2CAI7C;IASQ,MAAM,CAAC,WAAW;QACvB,IAAI,CAAC,wBAAwB,CAAC,QAAQ,EAAE,CAAC;YACvC,wBAAwB,CAAC,QAAQ,GAAG,IAAI,wBAAwB,EAAE,CAAC;QACrE,CAAC;QACD,OAAO,wBAAwB,CAAC,QAAQ,CAAC;IAC3C,CAAC;IAED;QACE,KAAK,CAAC;YACJ,iBAAiB,EAAE,mCAA2B,CAAC,IAAI;YACnD,KAAK,EAAE,wBAAU,CAAC,kBAAkB;SACrC,CAAC,CAAC;QAlBY,UAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;QAE1B,gBAAW,GAAkC;YACrD,mBAAmB,EAAE,EAAE;YACvB,oBAAoB,EAAE,EAAE;SACzB,CAAC;QAmDF,YAAO,GAAG,KAAK,IAAI,EAAE;YACnB,IAAI,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC7C,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,CAC9C,SAAS,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,EAAE,CAAC,CAClD,CAAC;gBACF,IAAI,CAAC,oBAAoB,CAAC,KAAK,EAAE,CAAC;gBAClC,MAAM,IAAI,CAAC,SAAS,EAAE,kBAAkB,EAAE,CAAC;YAC7C,CAAC;iBAAM,CAAC;gBACN,KAAK,CAAC,OAAO,EAAE,CAAC;YAClB,CAAC;QACH,CAAC,CAAC;QA/CA,IAAI,CAAC,IAAI,GAAG,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACtC,CAAC;IAEM,uBAAuB;QAC5B,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,qBAAqB;QAChC,MAAM,YAAY,GAAG,uBAAY,CAAC,WAAW,EAAE,CAAC;QAChD,YAAY,CAAC,UAAU,EAAE,CAAC;QAC1B,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;QACpB,MAAM,IAAI,CAAC,0BAA0B,EAAE,CAAC;QAExC,MAAM,sBAAsB,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CACjD,KAAK,EACH,EAAE,MAAM,EAAE,YAAY,EAAE,EACxB,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,EACtD,EAAE;YACF,IACE,CAAC,IAAA,wBAAO,EAAC,UAAU,CAAC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;gBAChE,CAAC,IAAA,wBAAO,EAAC,gBAAgB,EAAE,YAAY,CAAC,EACxC,CAAC;gBACD,MAAM,IAAI,CAAC,0BAA0B,EAAE,CAAC;YAC1C,CAAC;QACH,CAAC,CACF,CAAC;QACF,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,kCAAkC,EAAE;YAChE,sBAAsB;SACvB,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,mCAA2B,CAAC,IAAI,CAAC,CAAC;QACzD,MAAM,IAAI,CAAC,0BAA0B,EAAE,CAAC;IAC1C,CAAC;IAcD;;OAEG;IACO,KAAK,CAAC,aAAa;QAC3B,MAAM,YAAY,GAAG,uBAAY,CAAC,WAAW,EAAE,CAAC;QAChD,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;QACrB,MAAM,YAAY,CAAC,UAAU,EAAE,CAAC;IAClC,CAAC;IAES,KAAK,CAAC,mBAAmB;QACjC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,mBAAmB,CACtB,mCAA2B,CAAC,KAAK,EACjC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9B,CAAC;QAEF,IAAI,CAAC,mBAAmB,CACtB,mCAA2B,CAAC,KAAK,EACjC,IAAI,CAAC,mCAAmC,CAAC,IAAI,CAAC,IAAI,CAAC,CACpD,CAAC;IACJ,CAAC;IAES,KAAK,CAAC,0BAA0B;QACxC,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAEzE,MAAM,EAAE,wBAAwB,EAAE,GAAG,MAAM,IAAA,2DAA4B,EAAC;YACtE,SAAS,EAAE,MAAM;YACjB,oBAAoB,EAAE,YAAY;YAClC,OAAO;SACR,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,mBAAmB,GAAG,wBAAwB,CAAC;QAEzD,IAAI,CAAC,IAAI,CAAC,oBAAoB;YAC5B,MAAM,6DAA6B,CAAC,sBAAsB,CAAC;gBACzD,oBAAoB,EAAE,YAAY;gBAClC,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,eAAe,EAAE,OAAO,CAAC,OAAO,CAAC,eAAe;gBAChD,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS;aACrC,CAAC,CAAC;QAEL,MAAM,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACvC,CAAC;IAEO,mCAAmC;QACzC,IAAA,gDAA0B,GAAE,CAAC;QAC7B,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEO,KAAK,CAAC,uBAAuB;QACnC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,OAAO,CACnB,mCAA2B,CAAC,2BAA2B,EACvD,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAC9B,CAAC;QAEF,IAAI,CAAC,QAAQ,CAAC,OAAO,CACnB,mCAA2B,CAAC,2BAA2B,EACvD,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAC/B,CAAC;IACJ,CAAC;CACF;AA9ID,4DA8IC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-I6BXGQLQ.mjs";import"../../__chunks__/chunk-RUBOJOJP.mjs";import"../../__chunks__/chunk-6GNNYFMN.mjs";import"../../__chunks__/chunk-T7DVMF2K.mjs";import"../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../__chunks__/chunk-6UZHM5LW.mjs";import"../../__chunks__/chunk-NQ6SJRHZ.mjs";import"../../__chunks__/chunk-PJDJEPY2.mjs";import"../../__chunks__/chunk-MRV6OG7P.mjs";import"../../__chunks__/chunk-FD3HLEX7.mjs";import"../../__chunks__/chunk-RFKBUN7S.mjs";import"../../__chunks__/chunk-RVO7H26H.mjs";import"../../__chunks__/chunk-VDMJZZU4.mjs";import"../../__chunks__/chunk-4HEE3XZP.mjs";import"../../__chunks__/chunk-SCSHU7XJ.mjs";import"../../__chunks__/chunk-IMPOALRX.mjs";import"../../__chunks__/chunk-B7ZKW5ML.mjs";import"../../__chunks__/chunk-AF2QSDSV.mjs";import"../../__chunks__/chunk-6RGWVDNQ.mjs";import"../../__chunks__/chunk-IBSC2B7Q.mjs";import"../../__chunks__/chunk-Z4OHB36I.mjs";import"../../__chunks__/chunk-QSYQIJEO.mjs";import"../../__chunks__/chunk-N2RYRHHL.mjs";import"../../__chunks__/chunk-CAA4VJRH.mjs";import"../../__chunks__/chunk-UP7CK2EN.mjs";import"../../__chunks__/chunk-4YZQBDUE.mjs";import"../../__chunks__/chunk-745QCLQC.mjs";import"../../__chunks__/chunk-U34BNBOX.mjs";import"../../__chunks__/chunk-SLH6IQJJ.mjs";import"../../__chunks__/chunk-FMQYLMTU.mjs";import"../../__chunks__/chunk-3ZEUVYQF.mjs";import"../../__chunks__/chunk-MFUQ5NBC.mjs";import"../../__chunks__/chunk-RBUHL65H.mjs";import"../../__chunks__/chunk-IXUYZYD2.mjs";import"../../__chunks__/chunk-GFTTAANM.mjs";import"../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../__chunks__/chunk-4ZZJX7E7.mjs";import"../../__chunks__/chunk-6P7EXGAB.mjs";import"../../__chunks__/chunk-BQ2I655N.mjs";import"../../__chunks__/chunk-4ODPAHHA.mjs";import"../../__chunks__/chunk-ECEWPZGA.mjs";import"../../__chunks__/chunk-Z5CDCI3Y.mjs";import"../../__chunks__/chunk-YO3ATAA6.mjs";import"../../__chunks__/chunk-NO7YH2FT.mjs";import"../../__chunks__/chunk-YA5U6YEL.mjs";import"../../__chunks__/chunk-TSUMQ3HX.mjs";import"../../__chunks__/chunk-6ZL2QC74.mjs";import"../../__chunks__/chunk-2EFXW7IG.mjs";import"../../__chunks__/chunk-HK7HCSM3.mjs";import"../../__chunks__/chunk-ID7WYMJZ.mjs";import"../../__chunks__/chunk-55SACSMS.mjs";import"../../__chunks__/chunk-BOAJJ4FX.mjs";import"../../__chunks__/chunk-INWUHEQN.mjs";import"../../__chunks__/chunk-4US7HVCR.mjs";import"../../__chunks__/chunk-6D2RBTVV.mjs";import"../../__chunks__/chunk-4TBVQD27.mjs";import"../../__chunks__/chunk-M3GFSV3G.mjs";import"../../__chunks__/chunk-WV5X6BXA.mjs";import"../../__chunks__/chunk-ISPOZQQO.mjs";import"../../__chunks__/chunk-L3YPAYXZ.mjs";import"../../__chunks__/chunk-VXLJWKLG.mjs";import"../../__chunks__/chunk-J32T6OAP.mjs";import"../../__chunks__/chunk-FZFKEGPM.mjs";import"../../__chunks__/chunk-YK7T6MBD.mjs";import"../../__chunks__/chunk-KMJMQEXI.mjs";import"../../__chunks__/chunk-G5DKGX73.mjs";import"../../__chunks__/chunk-CBF72LQF.mjs";import"../../__chunks__/chunk-O2DO3WJJ.mjs";import"../../__chunks__/chunk-L3MWDI6J.mjs";import"../../__chunks__/chunk-65L5EBBL.mjs";import"../../__chunks__/chunk-HORSXVIV.mjs";import"../../__chunks__/chunk-2SIHYJET.mjs";import"../../__chunks__/chunk-E7BYYSVM.mjs";import"../../__chunks__/chunk-NWEUIK3A.mjs";import"../../__chunks__/chunk-P32DZ2CO.mjs";import"../../__chunks__/chunk-OJX2TSAZ.mjs";import"../../__chunks__/chunk-QTKK6OSJ.mjs";import"../../__chunks__/chunk-FSCOQWQN.mjs";import"../../__chunks__/chunk-CVPP4HQE.mjs";import"../../__chunks__/chunk-3S57OP4Z.mjs";import"../../__chunks__/chunk-6ACLOUQ3.mjs";import"../../__chunks__/chunk-WE7YOBO7.mjs";import"../../__chunks__/chunk-6FXEHNGW.mjs";import"../../__chunks__/chunk-ZLE5VUWG.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-RMW3YLGD.mjs";import"../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../__chunks__/chunk-NJN53MJV.mjs";import"../../__chunks__/chunk-YSCND2MX.mjs";import"../../__chunks__/chunk-YJK5FPW4.mjs";import"../../__chunks__/chunk-36XFDUXN.mjs";import"../../__chunks__/chunk-X6MN67NW.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-6CQMLD25.mjs";import"../../__chunks__/chunk-B3IKUIRK.mjs";import"../../__chunks__/chunk-42LFLNPA.mjs";import"../../__chunks__/chunk-TQA3JDNV.mjs";import"../../__chunks__/chunk-IXBWD6BF.mjs";import"../../__chunks__/chunk-NJPTQNCT.mjs";import"../../__chunks__/chunk-VCAWVAO5.mjs";import"../../__chunks__/chunk-55W25Q35.mjs";import"../../__chunks__/chunk-XPYJSDNF.mjs";import"../../__chunks__/chunk-H7BJSM6C.mjs";import"../../__chunks__/chunk-JZ7434LN.mjs";import"../../__chunks__/chunk-RSUHZ7IH.mjs";import"../../__chunks__/chunk-LUDF7ZUR.mjs";import"../../__chunks__/chunk-LIPGE2RA.mjs";import"../../__chunks__/chunk-QSBLXZFC.mjs";import"../../__chunks__/chunk-35MNP3LA.mjs";import"../../__chunks__/chunk-TX7PTLVP.mjs";import"../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../__chunks__/chunk-3MWXXTQQ.mjs";import"../../__chunks__/chunk-KSKOSHYV.mjs";import"../../__chunks__/chunk-YB7AHPBR.mjs";import"../../__chunks__/chunk-DNHKXKYY.mjs";import"../../__chunks__/chunk-HQQMSHTW.mjs";import"../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../__chunks__/chunk-ISPRIGOE.mjs";import"../../__chunks__/chunk-HMHP5DPL.mjs";import"../../__chunks__/chunk-54B3EIZC.mjs";import"../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../__chunks__/chunk-VDDXFGB2.mjs";import"../../__chunks__/chunk-BRJNX4JF.mjs";import"../../__chunks__/chunk-4QDHGYT4.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-QJSB5NX4.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-SAAOQW7P.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-4AKPP7B3.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-7BP53CXF.mjs";import"../../__chunks__/chunk-BRBIUWAW.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-X4XULIVT.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-J4CPYFK6.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-BSWV5MEC.mjs";import"../../__chunks__/chunk-YUITECZ5.mjs";import"../../__chunks__/chunk-2BSPSW6X.mjs";import"../../__chunks__/chunk-JR23TXKP.mjs";import"../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../__chunks__/chunk-WZI2I6NX.mjs";import"../../__chunks__/chunk-TVELGQIH.mjs";import"../../__chunks__/chunk-OVXVICF7.mjs";import"../../__chunks__/chunk-TI37DKBT.mjs";import"../../__chunks__/chunk-R53MCZI6.mjs";import"../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../__chunks__/chunk-QWV25ZSJ.mjs";import"../../__chunks__/chunk-5LB2KNTP.mjs";import"../../__chunks__/chunk-MGQ373AO.mjs";import"../../__chunks__/chunk-RPTH42EF.mjs";import"../../__chunks__/chunk-3UNGCOKO.mjs";import"../../__chunks__/chunk-4YU2DWHA.mjs";import"../../__chunks__/chunk-VMFJUT3G.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-TI73UXGG.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-BHAZ2W52.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-VFAKQ7NM.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-ULUZWP2P.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-S2FQWSUO.mjs";import"../../__chunks__/chunk-DTQL3IDP.mjs";import"../../__chunks__/chunk-CKTFPRJS.mjs";import"../../__chunks__/chunk-YKRSCVRE.mjs";import"../../__chunks__/chunk-4TZC3NF3.mjs";import"../../__chunks__/chunk-EHDGJUEU.mjs";import"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-L4QPPHVR.mjs";import"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as NotificationsFeedManager};
|
|
2
2
|
//# sourceMappingURL=NotificationsFeedManager.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../__chunks__/chunk-442O3UMZ.mjs";import{a as b}from"../../__chunks__/chunk-
|
|
1
|
+
import"../../__chunks__/chunk-442O3UMZ.mjs";import{a as b}from"../../__chunks__/chunk-I6BXGQLQ.mjs";import"../../__chunks__/chunk-RUBOJOJP.mjs";import"../../__chunks__/chunk-6GNNYFMN.mjs";import"../../__chunks__/chunk-T7DVMF2K.mjs";import{a}from"../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../__chunks__/chunk-6UZHM5LW.mjs";import"../../__chunks__/chunk-NQ6SJRHZ.mjs";import"../../__chunks__/chunk-PJDJEPY2.mjs";import"../../__chunks__/chunk-MRV6OG7P.mjs";import"../../__chunks__/chunk-FD3HLEX7.mjs";import"../../__chunks__/chunk-RFKBUN7S.mjs";import"../../__chunks__/chunk-RVO7H26H.mjs";import"../../__chunks__/chunk-VDMJZZU4.mjs";import"../../__chunks__/chunk-4HEE3XZP.mjs";import"../../__chunks__/chunk-SCSHU7XJ.mjs";import"../../__chunks__/chunk-IMPOALRX.mjs";import"../../__chunks__/chunk-B7ZKW5ML.mjs";import"../../__chunks__/chunk-AF2QSDSV.mjs";import"../../__chunks__/chunk-6RGWVDNQ.mjs";import"../../__chunks__/chunk-IBSC2B7Q.mjs";import"../../__chunks__/chunk-Z4OHB36I.mjs";import"../../__chunks__/chunk-QSYQIJEO.mjs";import"../../__chunks__/chunk-N2RYRHHL.mjs";import"../../__chunks__/chunk-CAA4VJRH.mjs";import"../../__chunks__/chunk-UP7CK2EN.mjs";import"../../__chunks__/chunk-4YZQBDUE.mjs";import"../../__chunks__/chunk-745QCLQC.mjs";import"../../__chunks__/chunk-U34BNBOX.mjs";import"../../__chunks__/chunk-SLH6IQJJ.mjs";import"../../__chunks__/chunk-FMQYLMTU.mjs";import"../../__chunks__/chunk-3ZEUVYQF.mjs";import"../../__chunks__/chunk-MFUQ5NBC.mjs";import"../../__chunks__/chunk-RBUHL65H.mjs";import"../../__chunks__/chunk-IXUYZYD2.mjs";import"../../__chunks__/chunk-GFTTAANM.mjs";import"../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../__chunks__/chunk-4ZZJX7E7.mjs";import"../../__chunks__/chunk-6P7EXGAB.mjs";import"../../__chunks__/chunk-BQ2I655N.mjs";import"../../__chunks__/chunk-4ODPAHHA.mjs";import"../../__chunks__/chunk-ECEWPZGA.mjs";import"../../__chunks__/chunk-Z5CDCI3Y.mjs";import"../../__chunks__/chunk-YO3ATAA6.mjs";import"../../__chunks__/chunk-NO7YH2FT.mjs";import"../../__chunks__/chunk-YA5U6YEL.mjs";import"../../__chunks__/chunk-TSUMQ3HX.mjs";import"../../__chunks__/chunk-6ZL2QC74.mjs";import"../../__chunks__/chunk-2EFXW7IG.mjs";import"../../__chunks__/chunk-HK7HCSM3.mjs";import"../../__chunks__/chunk-ID7WYMJZ.mjs";import"../../__chunks__/chunk-55SACSMS.mjs";import"../../__chunks__/chunk-BOAJJ4FX.mjs";import"../../__chunks__/chunk-INWUHEQN.mjs";import"../../__chunks__/chunk-4US7HVCR.mjs";import"../../__chunks__/chunk-6D2RBTVV.mjs";import"../../__chunks__/chunk-4TBVQD27.mjs";import"../../__chunks__/chunk-M3GFSV3G.mjs";import"../../__chunks__/chunk-WV5X6BXA.mjs";import"../../__chunks__/chunk-ISPOZQQO.mjs";import"../../__chunks__/chunk-L3YPAYXZ.mjs";import"../../__chunks__/chunk-VXLJWKLG.mjs";import"../../__chunks__/chunk-J32T6OAP.mjs";import"../../__chunks__/chunk-FZFKEGPM.mjs";import"../../__chunks__/chunk-YK7T6MBD.mjs";import"../../__chunks__/chunk-KMJMQEXI.mjs";import"../../__chunks__/chunk-G5DKGX73.mjs";import"../../__chunks__/chunk-CBF72LQF.mjs";import"../../__chunks__/chunk-O2DO3WJJ.mjs";import"../../__chunks__/chunk-L3MWDI6J.mjs";import"../../__chunks__/chunk-65L5EBBL.mjs";import"../../__chunks__/chunk-HORSXVIV.mjs";import"../../__chunks__/chunk-2SIHYJET.mjs";import"../../__chunks__/chunk-E7BYYSVM.mjs";import"../../__chunks__/chunk-NWEUIK3A.mjs";import"../../__chunks__/chunk-P32DZ2CO.mjs";import"../../__chunks__/chunk-OJX2TSAZ.mjs";import"../../__chunks__/chunk-QTKK6OSJ.mjs";import"../../__chunks__/chunk-FSCOQWQN.mjs";import"../../__chunks__/chunk-CVPP4HQE.mjs";import"../../__chunks__/chunk-3S57OP4Z.mjs";import"../../__chunks__/chunk-6ACLOUQ3.mjs";import"../../__chunks__/chunk-WE7YOBO7.mjs";import"../../__chunks__/chunk-6FXEHNGW.mjs";import"../../__chunks__/chunk-ZLE5VUWG.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-RMW3YLGD.mjs";import"../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../__chunks__/chunk-NJN53MJV.mjs";import"../../__chunks__/chunk-YSCND2MX.mjs";import"../../__chunks__/chunk-YJK5FPW4.mjs";import"../../__chunks__/chunk-36XFDUXN.mjs";import"../../__chunks__/chunk-X6MN67NW.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-6CQMLD25.mjs";import"../../__chunks__/chunk-B3IKUIRK.mjs";import"../../__chunks__/chunk-42LFLNPA.mjs";import"../../__chunks__/chunk-TQA3JDNV.mjs";import"../../__chunks__/chunk-IXBWD6BF.mjs";import"../../__chunks__/chunk-NJPTQNCT.mjs";import"../../__chunks__/chunk-VCAWVAO5.mjs";import"../../__chunks__/chunk-55W25Q35.mjs";import"../../__chunks__/chunk-XPYJSDNF.mjs";import"../../__chunks__/chunk-H7BJSM6C.mjs";import"../../__chunks__/chunk-JZ7434LN.mjs";import"../../__chunks__/chunk-RSUHZ7IH.mjs";import"../../__chunks__/chunk-LUDF7ZUR.mjs";import"../../__chunks__/chunk-LIPGE2RA.mjs";import"../../__chunks__/chunk-QSBLXZFC.mjs";import"../../__chunks__/chunk-35MNP3LA.mjs";import"../../__chunks__/chunk-TX7PTLVP.mjs";import"../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../__chunks__/chunk-3MWXXTQQ.mjs";import"../../__chunks__/chunk-KSKOSHYV.mjs";import"../../__chunks__/chunk-YB7AHPBR.mjs";import"../../__chunks__/chunk-DNHKXKYY.mjs";import"../../__chunks__/chunk-HQQMSHTW.mjs";import"../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../__chunks__/chunk-ISPRIGOE.mjs";import"../../__chunks__/chunk-HMHP5DPL.mjs";import"../../__chunks__/chunk-54B3EIZC.mjs";import"../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../__chunks__/chunk-VDDXFGB2.mjs";import"../../__chunks__/chunk-BRJNX4JF.mjs";import"../../__chunks__/chunk-4QDHGYT4.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-QJSB5NX4.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-SAAOQW7P.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-4AKPP7B3.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-7BP53CXF.mjs";import"../../__chunks__/chunk-BRBIUWAW.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-X4XULIVT.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-J4CPYFK6.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-BSWV5MEC.mjs";import"../../__chunks__/chunk-YUITECZ5.mjs";import"../../__chunks__/chunk-2BSPSW6X.mjs";import"../../__chunks__/chunk-JR23TXKP.mjs";import"../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../__chunks__/chunk-WZI2I6NX.mjs";import"../../__chunks__/chunk-TVELGQIH.mjs";import"../../__chunks__/chunk-OVXVICF7.mjs";import"../../__chunks__/chunk-TI37DKBT.mjs";import"../../__chunks__/chunk-R53MCZI6.mjs";import"../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../__chunks__/chunk-QWV25ZSJ.mjs";import"../../__chunks__/chunk-5LB2KNTP.mjs";import"../../__chunks__/chunk-MGQ373AO.mjs";import"../../__chunks__/chunk-RPTH42EF.mjs";import"../../__chunks__/chunk-3UNGCOKO.mjs";import"../../__chunks__/chunk-4YU2DWHA.mjs";import"../../__chunks__/chunk-VMFJUT3G.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-TI73UXGG.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-BHAZ2W52.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-VFAKQ7NM.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-ULUZWP2P.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-S2FQWSUO.mjs";import"../../__chunks__/chunk-DTQL3IDP.mjs";import"../../__chunks__/chunk-CKTFPRJS.mjs";import"../../__chunks__/chunk-YKRSCVRE.mjs";import"../../__chunks__/chunk-4TZC3NF3.mjs";import"../../__chunks__/chunk-EHDGJUEU.mjs";import"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-L4QPPHVR.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
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import { Transaction } from '../../lib/sdkCore';
|
|
2
|
-
import {
|
|
2
|
+
import { TransactionTrackingConfigType } from '../../methods/initApp/initApp.types';
|
|
3
|
+
import { SignedTransactionType } from '../../types/transactions.types';
|
|
4
|
+
import { TransactionManagerTrackOptionsType } from './TransactionManager.types';
|
|
3
5
|
export declare class TransactionManager {
|
|
4
6
|
private static instance;
|
|
5
7
|
static getInstance(): TransactionManager;
|
|
8
|
+
/**
|
|
9
|
+
* Set callbacks to be executed when the transaction session is successful or fails.
|
|
10
|
+
* @param onSuccess - The callback to run when the transaction session is successful.
|
|
11
|
+
* @param onFail - The callback to run when the transaction session fails.
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* TransactionManager.setCallbacks({
|
|
15
|
+
* onSuccess: (sessionId) => {
|
|
16
|
+
* console.log('Transaction session successful', sessionId);
|
|
17
|
+
* },
|
|
18
|
+
* });
|
|
19
|
+
*/
|
|
20
|
+
setCallbacks: ({ onSuccess, onFail }: TransactionTrackingConfigType) => void;
|
|
6
21
|
send: (signedTransactions: Transaction[] | Transaction[][]) => Promise<SignedTransactionType[] | SignedTransactionType[][]>;
|
|
7
|
-
track: (sentTransactions: SignedTransactionType[] | SignedTransactionType[][], options?:
|
|
8
|
-
disableToasts?: boolean;
|
|
9
|
-
transactionsDisplayInfo?: TransactionsDisplayInfoType;
|
|
10
|
-
}) => Promise<string>;
|
|
22
|
+
track: (sentTransactions: SignedTransactionType[] | SignedTransactionType[][], options?: TransactionManagerTrackOptionsType) => Promise<string>;
|
|
11
23
|
private readonly sendSignedTransactions;
|
|
12
24
|
private readonly sendSignedBatchTransactions;
|
|
13
25
|
private readonly buildBatchId;
|
|
@@ -17,8 +17,24 @@ const isGuardianTx_1 = require("../../utils/transactions/isGuardianTx");
|
|
|
17
17
|
const getToastDuration_1 = require("./helpers/getToastDuration");
|
|
18
18
|
const getTransactionsStatus_1 = require("./helpers/getTransactionsStatus");
|
|
19
19
|
const isBatchTransaction_1 = require("./helpers/isBatchTransaction");
|
|
20
|
+
const sessionCallbacks_1 = require("./helpers/sessionCallbacks");
|
|
20
21
|
class TransactionManager {
|
|
21
22
|
constructor() {
|
|
23
|
+
/**
|
|
24
|
+
* Set callbacks to be executed when the transaction session is successful or fails.
|
|
25
|
+
* @param onSuccess - The callback to run when the transaction session is successful.
|
|
26
|
+
* @param onFail - The callback to run when the transaction session fails.
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* TransactionManager.setCallbacks({
|
|
30
|
+
* onSuccess: (sessionId) => {
|
|
31
|
+
* console.log('Transaction session successful', sessionId);
|
|
32
|
+
* },
|
|
33
|
+
* });
|
|
34
|
+
*/
|
|
35
|
+
this.setCallbacks = ({ onSuccess, onFail }) => {
|
|
36
|
+
(0, sessionCallbacks_1.registerSessionCallbacks)({ onSuccess, onFail });
|
|
37
|
+
};
|
|
22
38
|
this.send = async (signedTransactions) => {
|
|
23
39
|
if (signedTransactions.length === 0) {
|
|
24
40
|
throw new Error('No transactions to send');
|
|
@@ -49,7 +65,8 @@ class TransactionManager {
|
|
|
49
65
|
const sessionId = (0, transactionsActions_1.createTransactionsSession)({
|
|
50
66
|
transactions: flatTransactions,
|
|
51
67
|
transactionsDisplayInfo: options.transactionsDisplayInfo,
|
|
52
|
-
status: status ?? enums_types_1.TransactionBatchStatusesEnum.sent
|
|
68
|
+
status: status ?? enums_types_1.TransactionBatchStatusesEnum.sent,
|
|
69
|
+
sessionInformation: options.sessionInformation
|
|
53
70
|
});
|
|
54
71
|
if (options.disableToasts === true) {
|
|
55
72
|
return sessionId;
|