@multiversx/sdk-dapp 5.0.4 → 5.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/__chunks__/chunk-2IXNUCCN.mjs +2 -0
- package/out/__chunks__/chunk-2UCZ5FCD.mjs +2 -0
- package/out/__chunks__/chunk-35BOKOST.mjs +2 -0
- package/out/__chunks__/chunk-3JMCXLWZ.mjs +2 -0
- package/out/__chunks__/chunk-43AE4SYE.mjs +2 -0
- package/out/__chunks__/chunk-4JRZISC2.mjs +2 -0
- package/out/__chunks__/chunk-5ICRLXOJ.mjs +2 -0
- package/out/__chunks__/chunk-5ICRLXOJ.mjs.map +7 -0
- package/out/__chunks__/chunk-5MK24VWA.mjs +2 -0
- package/out/__chunks__/chunk-6EW6GJ7V.mjs +2 -0
- package/out/__chunks__/chunk-6IA3KJH5.mjs +2 -0
- package/out/__chunks__/chunk-6IUQY6KG.mjs +2 -0
- package/out/__chunks__/chunk-6QSLQLCT.mjs +2 -0
- package/out/__chunks__/chunk-6WQJAFR3.mjs +2 -0
- package/out/__chunks__/chunk-76URRONH.mjs +2 -0
- package/out/__chunks__/chunk-7AMGKXK6.mjs +2 -0
- package/out/__chunks__/chunk-7MSBLQYN.mjs +2 -0
- package/out/__chunks__/chunk-7O5OCSV5.mjs +2 -0
- package/out/__chunks__/chunk-7PW3YJZS.mjs +2 -0
- package/out/__chunks__/chunk-7TVD3ZGR.mjs +2 -0
- package/out/__chunks__/chunk-A2X4YMKK.mjs +2 -0
- package/out/__chunks__/chunk-AHSGP7ST.mjs +2 -0
- package/out/__chunks__/chunk-AJVTGCVH.mjs +2 -0
- package/out/__chunks__/chunk-AZNMWFIR.mjs +2 -0
- package/out/__chunks__/chunk-CAN6BBUW.mjs +2 -0
- package/out/__chunks__/chunk-CDQ2BNUD.mjs +2 -0
- package/out/__chunks__/chunk-DDNM2ZMJ.mjs +2 -0
- package/out/__chunks__/chunk-DNRFH2DR.mjs +2 -0
- package/out/__chunks__/chunk-EK3WITBG.mjs +2 -0
- package/out/__chunks__/chunk-ER7VDELK.mjs +2 -0
- package/out/__chunks__/chunk-EWXBNG6L.mjs +2 -0
- package/out/__chunks__/chunk-FKCGBCKV.mjs +2 -0
- package/out/__chunks__/chunk-FKIAOXUE.mjs +2 -0
- package/out/__chunks__/chunk-FSHVZP64.mjs +2 -0
- package/out/__chunks__/chunk-G4Z3ZQR6.mjs +2 -0
- package/out/__chunks__/chunk-GNF74ZRR.mjs +2 -0
- package/out/__chunks__/chunk-GUPYIQ3X.mjs +2 -0
- package/out/__chunks__/chunk-H3IUSXHL.mjs +2 -0
- package/out/__chunks__/chunk-HVV5PW3F.mjs +2 -0
- package/out/__chunks__/chunk-HVV5PW3F.mjs.map +7 -0
- package/out/__chunks__/chunk-HZUUV4N4.mjs +2 -0
- package/out/__chunks__/chunk-IHPROMZ4.mjs +2 -0
- package/out/__chunks__/chunk-IS62JDWR.mjs +2 -0
- package/out/__chunks__/chunk-J7GHXLMR.mjs +2 -0
- package/out/__chunks__/chunk-JD2VRDU7.mjs +2 -0
- package/out/__chunks__/chunk-JHG4SR7C.mjs +2 -0
- package/out/__chunks__/chunk-JLSMK3B2.mjs +2 -0
- package/out/__chunks__/chunk-JLSMK3B2.mjs.map +7 -0
- package/out/__chunks__/chunk-JOVG7EB7.mjs +2 -0
- package/out/__chunks__/chunk-JXNX2DMF.mjs +2 -0
- package/out/__chunks__/chunk-L34S5ELK.mjs +2 -0
- package/out/__chunks__/chunk-LD6GIQXR.mjs +2 -0
- package/out/__chunks__/chunk-LJKBU76G.mjs +2 -0
- package/out/__chunks__/chunk-MKIQ2XH4.mjs +2 -0
- package/out/__chunks__/chunk-N6IZYQLD.mjs +2 -0
- package/out/__chunks__/chunk-N7FAJ2VG.mjs +2 -0
- package/out/__chunks__/chunk-NR34QIVY.mjs +2 -0
- package/out/__chunks__/chunk-OA7DW77N.mjs +2 -0
- package/out/__chunks__/chunk-OAEQGL6W.mjs +2 -0
- package/out/__chunks__/chunk-OLXHHD4T.mjs +2 -0
- package/out/__chunks__/chunk-OYYE3JKS.mjs +2 -0
- package/out/__chunks__/chunk-P7KN75HA.mjs +2 -0
- package/out/__chunks__/chunk-PLUWBWJ2.mjs +2 -0
- package/out/__chunks__/chunk-PLUWBWJ2.mjs.map +7 -0
- package/out/__chunks__/chunk-PPRG5EYX.mjs +2 -0
- package/out/__chunks__/chunk-Q5RVUCNS.mjs +2 -0
- package/out/__chunks__/chunk-QFW3NRHJ.mjs +2 -0
- package/out/__chunks__/chunk-QJBNDKHF.mjs +2 -0
- package/out/__chunks__/chunk-QNJDXBR6.mjs +2 -0
- package/out/__chunks__/chunk-QVOHFS6Q.mjs +2 -0
- package/out/__chunks__/chunk-RO37MX5Y.mjs +2 -0
- package/out/__chunks__/chunk-SGN6MYFW.mjs +2 -0
- package/out/__chunks__/chunk-SNJZSRF3.mjs +2 -0
- package/out/__chunks__/chunk-SUOUG7EQ.mjs +2 -0
- package/out/__chunks__/chunk-SUOUG7EQ.mjs.map +7 -0
- package/out/__chunks__/chunk-T6PE5QT2.mjs +2 -0
- package/out/__chunks__/chunk-TJW7RKOI.mjs +2 -0
- package/out/__chunks__/chunk-ULT7BJCN.mjs +2 -0
- package/out/__chunks__/chunk-UV4LRORN.mjs +2 -0
- package/out/__chunks__/chunk-UV4LRORN.mjs.map +7 -0
- package/out/__chunks__/chunk-UXJIZKTT.mjs +2 -0
- package/out/__chunks__/chunk-V53EFJQZ.mjs +2 -0
- package/out/__chunks__/chunk-W5LWBGZ4.mjs +2 -0
- package/out/__chunks__/chunk-WCRS5CLZ.mjs +2 -0
- package/out/__chunks__/chunk-WNKKBV76.mjs +2 -0
- package/out/__chunks__/chunk-WWNT4K25.mjs +2 -0
- package/out/__chunks__/chunk-X3BMMYMU.mjs +2 -0
- package/out/__chunks__/chunk-XXILUGAY.mjs +2 -0
- package/out/__chunks__/chunk-YBLDHLHP.mjs +2 -0
- package/out/__chunks__/chunk-Z3SM2MSZ.mjs +2 -0
- package/out/__chunks__/chunk-ZFM5CMB7.mjs +2 -0
- package/out/__chunks__/chunk-ZP2E2Y6Y.mjs +2 -0
- package/out/__mocks__/accountConfig.cjs +37 -0
- package/out/__mocks__/accountConfig.cjs.map +7 -0
- package/out/__mocks__/data/account.cjs +38 -0
- package/out/__mocks__/data/account.cjs.map +7 -0
- package/out/__mocks__/data/blocks.cjs +34 -0
- package/out/__mocks__/data/blocks.cjs.map +7 -0
- package/out/__mocks__/data/dappConfig.cjs +43 -0
- package/out/__mocks__/data/dappConfig.cjs.map +7 -0
- package/out/__mocks__/data/index.cjs +35 -0
- package/out/__mocks__/data/index.cjs.map +7 -0
- package/out/__mocks__/data/networkConfig.cjs +56 -0
- package/out/__mocks__/data/networkConfig.cjs.map +7 -0
- package/out/__mocks__/data/socketResponse.cjs +35 -0
- package/out/__mocks__/data/socketResponse.cjs.map +7 -0
- package/out/__mocks__/data/websocketConfig.cjs +29 -0
- package/out/__mocks__/data/websocketConfig.cjs.map +7 -0
- package/out/__mocks__/data/wrapEgldContract.cjs +54 -0
- package/out/__mocks__/data/wrapEgldContract.cjs.map +7 -0
- package/out/__mocks__/index.cjs +27 -0
- package/out/__mocks__/index.cjs.map +7 -0
- package/out/__mocks__/server.cjs +65 -0
- package/out/__mocks__/server.cjs.map +7 -0
- package/out/__mocks__/utils/index.cjs +25 -0
- package/out/__mocks__/utils/index.cjs.map +7 -0
- package/out/__mocks__/utils/mockWindowHistory.cjs +45 -0
- package/out/__mocks__/utils/mockWindowHistory.cjs.map +7 -0
- package/out/__mocks__/utils/mockWindowLocation.cjs +45 -0
- package/out/__mocks__/utils/mockWindowLocation.cjs.map +7 -0
- package/out/apiCalls/account/getAccountFromApi.cjs +60 -0
- package/out/apiCalls/account/getAccountFromApi.cjs.map +7 -0
- package/out/apiCalls/account/getScamAddressData.cjs +52 -0
- package/out/apiCalls/account/getScamAddressData.cjs.map +7 -0
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/account/index.cjs +23 -0
- package/out/apiCalls/account/index.cjs.map +7 -0
- package/out/apiCalls/configuration/getCleanApiAddress.cjs +35 -0
- package/out/apiCalls/configuration/getCleanApiAddress.cjs.map +7 -0
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.cjs +65 -0
- package/out/apiCalls/configuration/getGasStationMetadata.cjs.map +7 -0
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/configuration/getNetworkConfigFromApi.cjs +62 -0
- package/out/apiCalls/configuration/getNetworkConfigFromApi.cjs.map +7 -0
- package/out/apiCalls/configuration/getServerConfiguration.cjs +66 -0
- package/out/apiCalls/configuration/getServerConfiguration.cjs.map +7 -0
- package/out/apiCalls/configuration/index.cjs +25 -0
- package/out/apiCalls/configuration/index.cjs.map +7 -0
- package/out/apiCalls/economics/getEconomics.cjs +55 -0
- package/out/apiCalls/economics/getEconomics.cjs.map +7 -0
- package/out/apiCalls/endpoints.cjs +101 -0
- package/out/apiCalls/endpoints.cjs.map +7 -0
- package/out/apiCalls/index.cjs +33 -0
- package/out/apiCalls/index.cjs.map +7 -0
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedToken.cjs +43 -0
- package/out/apiCalls/tokens/getPersistedToken.cjs.map +7 -0
- package/out/apiCalls/tokens/getPersistedTokenDetails.cjs +73 -0
- package/out/apiCalls/tokens/getPersistedTokenDetails.cjs.map +7 -0
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.cjs +75 -0
- package/out/apiCalls/tokens/getTokenDetails.cjs.map +7 -0
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.cjs +23 -0
- package/out/apiCalls/tokens/index.cjs.map +7 -0
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/tokens/tokenDataStorage.cjs +59 -0
- package/out/apiCalls/tokens/tokenDataStorage.cjs.map +7 -0
- package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs +55 -0
- package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs.map +7 -0
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.cjs +52 -0
- package/out/apiCalls/transactions/getTransactionByHash.cjs.map +7 -0
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactions.cjs +77 -0
- package/out/apiCalls/transactions/getTransactions.cjs.map +7 -0
- package/out/apiCalls/transactions/getTransactionsByHashes.cjs +48 -0
- package/out/apiCalls/transactions/getTransactionsByHashes.cjs.map +7 -0
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/utils/axiosFetcher.cjs +30 -0
- package/out/apiCalls/utils/axiosFetcher.cjs.map +7 -0
- package/out/apiCalls/utils/axiosInstance.cjs +106 -0
- package/out/apiCalls/utils/axiosInstance.cjs.map +7 -0
- package/out/apiCalls/utils/getCleanApiAddress.cjs +31 -0
- package/out/apiCalls/utils/getCleanApiAddress.cjs.map +7 -0
- package/out/apiCalls/utils/index.cjs +27 -0
- package/out/apiCalls/utils/index.cjs.map +7 -0
- package/out/apiCalls/websocket/getWebsocketUrl.cjs +50 -0
- package/out/apiCalls/websocket/getWebsocketUrl.cjs.map +7 -0
- package/out/apiCalls/websocket/index.cjs +23 -0
- package/out/apiCalls/websocket/index.cjs.map +7 -0
- package/out/constants/UITags.enum.cjs +38 -0
- package/out/constants/UITags.enum.cjs.map +7 -0
- package/out/constants/browser.constants.cjs +35 -0
- package/out/constants/browser.constants.cjs.map +7 -0
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.cjs +41 -0
- package/out/constants/index.cjs.map +7 -0
- package/out/constants/index.mjs +1 -1
- package/out/constants/ledger.constants.cjs +132 -0
- package/out/constants/ledger.constants.cjs.map +7 -0
- package/out/constants/mvx.constants.cjs +59 -0
- package/out/constants/mvx.constants.cjs.map +7 -0
- package/out/constants/network.constants.cjs +114 -0
- package/out/constants/network.constants.cjs.map +7 -0
- package/out/constants/placeholders.constants.cjs +35 -0
- package/out/constants/placeholders.constants.cjs.map +7 -0
- package/out/constants/providerFactory.constants.cjs +39 -0
- package/out/constants/providerFactory.constants.cjs.map +7 -0
- package/out/constants/providerFactory.constants.mjs +1 -1
- package/out/constants/storage.constants.cjs +41 -0
- package/out/constants/storage.constants.cjs.map +7 -0
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/transactions.constants.cjs +62 -0
- package/out/constants/transactions.constants.cjs.map +7 -0
- package/out/constants/walletConnect.constants.cjs +33 -0
- package/out/constants/walletConnect.constants.cjs.map +7 -0
- package/out/constants/webWalletProvider.constants.cjs +47 -0
- package/out/constants/webWalletProvider.constants.cjs.map +7 -0
- package/out/constants/websocket.constants.cjs +40 -0
- package/out/constants/websocket.constants.cjs.map +7 -0
- package/out/constants/window.constants.cjs +32 -0
- package/out/constants/window.constants.cjs.map +7 -0
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/FormatAmountController/FormatAmountController.cjs +58 -0
- package/out/controllers/FormatAmountController/FormatAmountController.cjs.map +7 -0
- package/out/controllers/FormatAmountController/index.cjs +23 -0
- package/out/controllers/FormatAmountController/index.cjs.map +7 -0
- package/out/controllers/FormatAmountController/types.cjs +17 -0
- package/out/controllers/FormatAmountController/types.cjs.map +7 -0
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs +35 -0
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs.map +7 -0
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.cjs +23 -0
- package/out/controllers/TransactionsHistoryController/index.cjs.map +7 -0
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.cjs +131 -0
- package/out/controllers/TransactionsTableController/TransactionsTableController.cjs.map +7 -0
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.cjs +23 -0
- package/out/controllers/TransactionsTableController/index.cjs.map +7 -0
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/transactionsTableController.types.cjs +17 -0
- package/out/controllers/TransactionsTableController/transactionsTableController.types.cjs.map +7 -0
- package/out/controllers/index.cjs +23 -0
- package/out/controllers/index.cjs.map +7 -0
- package/out/index.cjs +33 -0
- package/out/index.cjs.map +7 -0
- package/out/index.mjs +1 -1
- package/out/lib/sdkCore.cjs +47 -0
- package/out/lib/sdkCore.cjs.map +7 -0
- package/out/lib/sdkDappUi.cjs +54 -0
- package/out/lib/sdkDappUi.cjs.map +7 -0
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/lib/sdkDappUtils.cjs +45 -0
- package/out/lib/sdkDappUtils.cjs.map +7 -0
- package/out/lib/sdkWebWalletCrossWindowProvider.cjs +34 -0
- package/out/lib/sdkWebWalletCrossWindowProvider.cjs.map +7 -0
- package/out/lib/sdkWebWalletIframeProvider.cjs +29 -0
- package/out/lib/sdkWebWalletIframeProvider.cjs.map +7 -0
- package/out/lib/sdkWebviewProvider.cjs +29 -0
- package/out/lib/sdkWebviewProvider.cjs.map +7 -0
- package/out/managers/LogoutManager/LogoutManager.cjs +168 -0
- package/out/managers/LogoutManager/LogoutManager.cjs.map +7 -0
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.cjs +57 -0
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.cjs.map +7 -0
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs +158 -0
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs.map +7 -0
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.cjs +25 -0
- package/out/managers/NotificationsFeedManager/index.cjs.map +7 -0
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/NotificationsFeedManager/types/index.cjs +23 -0
- package/out/managers/NotificationsFeedManager/types/index.cjs.map +7 -0
- package/out/managers/NotificationsFeedManager/types/notifications.types.cjs +36 -0
- package/out/managers/NotificationsFeedManager/types/notifications.types.cjs.map +7 -0
- package/out/managers/TransactionManager/TransactionManager.cjs +198 -0
- package/out/managers/TransactionManager/TransactionManager.cjs.map +7 -0
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.types.cjs +17 -0
- package/out/managers/TransactionManager/TransactionManager.types.cjs.map +7 -0
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs +51 -0
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs.map +7 -0
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.cjs +53 -0
- package/out/managers/TransactionManager/helpers/getToastDuration.cjs.map +7 -0
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs +54 -0
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs.map +7 -0
- package/out/managers/TransactionManager/helpers/isBatchTransaction.cjs +31 -0
- package/out/managers/TransactionManager/helpers/isBatchTransaction.cjs.map +7 -0
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.cjs +48 -0
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.cjs.map +7 -0
- package/out/managers/TransactionManager/helpers/sessionCallbacks.cjs +42 -0
- package/out/managers/TransactionManager/helpers/sessionCallbacks.cjs.map +7 -0
- package/out/managers/TransactionManager/index.cjs +23 -0
- package/out/managers/TransactionManager/index.cjs.map +7 -0
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +168 -0
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs.map +7 -0
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs +37 -0
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs.map +7 -0
- package/out/managers/UnlockPanelManager/index.cjs +23 -0
- package/out/managers/UnlockPanelManager/index.cjs.map +7 -0
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.cjs +25 -0
- package/out/managers/index.cjs.map +7 -0
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs +215 -0
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs.map +7 -0
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.cjs +25 -0
- package/out/managers/internal/LedgerConnectStateManager/index.cjs.map +7 -0
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/types/index.cjs +23 -0
- package/out/managers/internal/LedgerConnectStateManager/types/index.cjs.map +7 -0
- package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.cjs +37 -0
- package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.cjs.map +7 -0
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs +125 -0
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs.map +7 -0
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.cjs +59 -0
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.cjs.map +7 -0
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.cjs +25 -0
- package/out/managers/internal/PendingTransactionsStateManager/index.cjs.map +7 -0
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/types/index.cjs +23 -0
- package/out/managers/internal/PendingTransactionsStateManager/types/index.cjs.map +7 -0
- package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.cjs +33 -0
- package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.cjs.map +7 -0
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.cjs +63 -0
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.cjs.map +7 -0
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.cjs +23 -0
- package/out/managers/internal/SidePanelBaseManager/index.cjs.map +7 -0
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.cjs +139 -0
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.cjs.map +7 -0
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.cjs +23 -0
- package/out/managers/internal/SignTransactionsStateManager/index.cjs.map +7 -0
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/types/index.cjs +23 -0
- package/out/managers/internal/SignTransactionsStateManager/types/index.cjs.map +7 -0
- package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.cjs +37 -0
- package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.cjs.map +7 -0
- package/out/managers/internal/ToastManager/ToastManager.cjs +268 -0
- package/out/managers/internal/ToastManager/ToastManager.cjs.map +7 -0
- package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.cjs +72 -0
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.cjs.map +7 -0
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.cjs +88 -0
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.cjs.map +7 -0
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.cjs +61 -0
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.cjs.map +7 -0
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.cjs +104 -0
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.cjs.map +7 -0
- package/out/managers/internal/ToastManager/helpers/getToastTransactionsStatus.cjs +41 -0
- package/out/managers/internal/ToastManager/helpers/getToastTransactionsStatus.cjs.map +7 -0
- package/out/managers/internal/ToastManager/types/index.cjs +23 -0
- package/out/managers/internal/ToastManager/types/index.cjs.map +7 -0
- package/out/managers/internal/ToastManager/types/toast.types.cjs +48 -0
- package/out/managers/internal/ToastManager/types/toast.types.cjs.map +7 -0
- package/out/managers/internal/UIBaseManager/UIBaseManager.cjs +103 -0
- package/out/managers/internal/UIBaseManager/UIBaseManager.cjs.map +7 -0
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.cjs +79 -0
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.cjs.map +7 -0
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.cjs +23 -0
- package/out/managers/internal/WalletConnectStateManager/index.cjs.map +7 -0
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.cjs +38 -0
- package/out/managers/internal/index.cjs.map +7 -0
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.cjs +33 -0
- package/out/methods/account/getAccount.cjs.map +7 -0
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.cjs +33 -0
- package/out/methods/account/getAccountInfo.cjs.map +7 -0
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.cjs +33 -0
- package/out/methods/account/getAddress.cjs.map +7 -0
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.cjs +33 -0
- package/out/methods/account/getIsLoggedIn.cjs.map +7 -0
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.cjs +55 -0
- package/out/methods/account/getLatestNonce.cjs.map +7 -0
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.cjs +62 -0
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.cjs.map +7 -0
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.cjs +113 -0
- package/out/methods/initApp/initApp.cjs.map +7 -0
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/initApp.types.cjs +17 -0
- package/out/methods/initApp/initApp.types.cjs.map +7 -0
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs +173 -0
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs.map +7 -0
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.cjs +38 -0
- package/out/methods/initApp/websocket/registerWebsocket.cjs.map +7 -0
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.cjs +37 -0
- package/out/methods/loginInfo/getLoginInfo.cjs.map +7 -0
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.cjs +33 -0
- package/out/methods/network/getEgldLabel.cjs.map +7 -0
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.cjs +33 -0
- package/out/methods/network/getExplorerAddress.cjs.map +7 -0
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.cjs +33 -0
- package/out/methods/network/getNetworkConfig.cjs.map +7 -0
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.cjs +147 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.cjs +44 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.cjs +41 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.cjs +23 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.cjs +58 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.cjs +50 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/getPollingInterval.cjs +38 -0
- package/out/methods/trackTransactions/helpers/getPollingInterval.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.cjs +118 -0
- package/out/methods/trackTransactions/trackTransactions.cjs.map +7 -0
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.cjs +33 -0
- package/out/methods/transactions/getFailedTransactions.cjs.map +7 -0
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.cjs +33 -0
- package/out/methods/transactions/getFailedTransactionsSessions.cjs.map +7 -0
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.cjs +33 -0
- package/out/methods/transactions/getPendingTransactions.cjs.map +7 -0
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.cjs +33 -0
- package/out/methods/transactions/getPendingTransactionsSessions.cjs.map +7 -0
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.cjs +33 -0
- package/out/methods/transactions/getSuccessfulTransactions.cjs.map +7 -0
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.cjs +33 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.cjs.map +7 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.cjs +33 -0
- package/out/methods/transactions/getTransactionSessions.cjs.map +7 -0
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.cjs +113 -0
- package/out/providers/DappProvider/DappProvider.cjs.map +7 -0
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/computeNonces/computeNonce.cjs +37 -0
- package/out/providers/DappProvider/helpers/computeNonces/computeNonce.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/computeNonces/computeNonces.cjs +47 -0
- package/out/providers/DappProvider/helpers/computeNonces/computeNonces.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs +67 -0
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.cjs +45 -0
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.cjs +45 -0
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.cjs +56 -0
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.cjs +122 -0
- package/out/providers/DappProvider/helpers/login/login.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.cjs +64 -0
- package/out/providers/DappProvider/helpers/logout/logout.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs +79 -0
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs +33 -0
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.cjs +43 -0
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs +61 -0
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs +59 -0
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.cjs +23 -0
- package/out/providers/DappProvider/index.cjs.map +7 -0
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.cjs +131 -0
- package/out/providers/ProviderFactory.cjs.map +7 -0
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.cjs +39 -0
- package/out/providers/helpers/accountProvider.cjs.map +7 -0
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.cjs +38 -0
- package/out/providers/helpers/cancelCrossWindowAction.cjs.map +7 -0
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/clearInitiatedLogins.cjs +58 -0
- package/out/providers/helpers/clearInitiatedLogins.cjs.map +7 -0
- package/out/providers/helpers/clearInitiatedLogins.mjs +1 -1
- package/out/providers/helpers/emptyProvider.cjs +107 -0
- package/out/providers/helpers/emptyProvider.cjs.map +7 -0
- package/out/providers/helpers/emptyProvider.mjs +1 -1
- package/out/providers/helpers/restoreProvider.cjs +53 -0
- package/out/providers/helpers/restoreProvider.cjs.map +7 -0
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.cjs +32 -0
- package/out/providers/index.cjs.map +7 -0
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs +130 -0
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs +107 -0
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.cjs +23 -0
- package/out/providers/strategies/CrossWindowProviderStrategy/index.cjs.map +7 -0
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs +97 -0
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.cjs +23 -0
- package/out/providers/strategies/ExtensionProviderStrategy/index.cjs.map +7 -0
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs +121 -0
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.cjs +25 -0
- package/out/providers/strategies/IframeProviderStrategy/index.cjs.map +7 -0
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.cjs +17 -0
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.cjs.map +7 -0
- package/out/providers/strategies/IframeProviderStrategy/types/index.cjs +23 -0
- package/out/providers/strategies/IframeProviderStrategy/types/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs +182 -0
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs +125 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.cjs +69 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.cjs +38 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.cjs +48 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.cjs +81 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.cjs +83 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs +33 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs +66 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.cjs +62 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.cjs +47 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.cjs +23 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.cjs +122 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.cjs +17 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/index.cjs +25 -0
- package/out/providers/strategies/LedgerProviderStrategy/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/types/index.cjs +23 -0
- package/out/providers/strategies/LedgerProviderStrategy/types/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.cjs +38 -0
- package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.cjs +17 -0
- package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.cjs.map +7 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs +281 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.cjs +25 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/index.cjs.map +7 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/types/index.cjs +23 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/types/index.cjs.map +7 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.cjs +49 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.cjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs +186 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.cjs +23 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.cjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs +98 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.cjs +23 -0
- package/out/providers/strategies/WebviewProviderStrategy/index.cjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.cjs +42 -0
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.cjs.map +7 -0
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.cjs +29 -0
- package/out/providers/strategies/helpers/index.cjs.map +7 -0
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.cjs +84 -0
- package/out/providers/strategies/helpers/signMessage/signMessage.cjs.map +7 -0
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.cjs +51 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs +87 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs +183 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs +39 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs +266 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs +94 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.cjs +34 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.cjs +93 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.cjs +44 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.cjs +40 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.cjs +39 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.cjs +51 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs +55 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.cjs +36 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.cjs +37 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs +127 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.cjs +119 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs +87 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.cjs +47 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.cjs +40 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs +51 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.cjs +34 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs +232 -0
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.cjs +31 -0
- package/out/providers/strategies/index.cjs.map +7 -0
- package/out/providers/strategies/index.mjs +1 -1
- package/out/providers/types/providerFactory.types.cjs +38 -0
- package/out/providers/types/providerFactory.types.cjs.map +7 -0
- package/out/providers/types/providerFactory.types.d.ts +1 -0
- package/out/providers/types/providerFactory.types.mjs +1 -1
- package/out/react/account/useGetAccount.cjs +33 -0
- package/out/react/account/useGetAccount.cjs.map +7 -0
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.cjs +33 -0
- package/out/react/account/useGetAccountInfo.cjs.map +7 -0
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.cjs +34 -0
- package/out/react/account/useGetIsLoggedIn.cjs.map +7 -0
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.cjs +35 -0
- package/out/react/account/useGetLatestNonce.cjs.map +7 -0
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.cjs +23 -0
- package/out/react/index.cjs.map +7 -0
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.cjs +36 -0
- package/out/react/loginInfo/useGetLoginInfo.cjs.map +7 -0
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.cjs +33 -0
- package/out/react/network/useGetNetworkConfig.cjs.map +7 -0
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/createBoundedStore.cjs +30 -0
- package/out/react/store/createBoundedStore.cjs.map +7 -0
- package/out/react/store/getReactStore.cjs +31 -0
- package/out/react/store/getReactStore.cjs.map +7 -0
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.cjs +33 -0
- package/out/react/store/useSelector.cjs.map +7 -0
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.cjs +34 -0
- package/out/react/transactions/useGetFailedTransactions.cjs.map +7 -0
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.cjs +34 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.cjs.map +7 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.cjs +34 -0
- package/out/react/transactions/useGetPendingTransactions.cjs.map +7 -0
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.cjs +34 -0
- package/out/react/transactions/useGetPendingTransactionsSessions.cjs.map +7 -0
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.cjs +34 -0
- package/out/react/transactions/useGetSuccessfulTransactions.cjs.map +7 -0
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.cjs +36 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.cjs.map +7 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.cjs +34 -0
- package/out/react/transactions/useGetTransactionSessions.cjs.map +7 -0
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.cjs +23 -0
- package/out/services/index.cjs.map +7 -0
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/helpers/decodeLoginToken.cjs +63 -0
- package/out/services/nativeAuth/helpers/decodeLoginToken.cjs.map +7 -0
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.cjs +73 -0
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.cjs.map +7 -0
- package/out/services/nativeAuth/helpers/getLatestBlockHash.cjs +101 -0
- package/out/services/nativeAuth/helpers/getLatestBlockHash.cjs.map +7 -0
- package/out/services/nativeAuth/helpers/index.cjs +27 -0
- package/out/services/nativeAuth/helpers/index.cjs.map +7 -0
- package/out/services/nativeAuth/index.cjs +23 -0
- package/out/services/nativeAuth/index.cjs.map +7 -0
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.cjs +42 -0
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.cjs.map +7 -0
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs +43 -0
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs.map +7 -0
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getTokenExpiration.cjs +52 -0
- package/out/services/nativeAuth/methods/getTokenExpiration.cjs.map +7 -0
- package/out/services/nativeAuth/methods/index.cjs +25 -0
- package/out/services/nativeAuth/methods/index.cjs.map +7 -0
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.cjs +82 -0
- package/out/services/nativeAuth/nativeAuth.cjs.map +7 -0
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.types.cjs +17 -0
- package/out/services/nativeAuth/nativeAuth.types.cjs.map +7 -0
- package/out/store/actions/account/accountActions.cjs +95 -0
- package/out/store/actions/account/accountActions.cjs.map +7 -0
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.cjs +23 -0
- package/out/store/actions/account/index.cjs.map +7 -0
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.cjs +62 -0
- package/out/store/actions/cache/cacheActions.cjs.map +7 -0
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.cjs +23 -0
- package/out/store/actions/cache/index.cjs.map +7 -0
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.cjs +61 -0
- package/out/store/actions/config/configActions.cjs.map +7 -0
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.cjs +23 -0
- package/out/store/actions/config/index.cjs.map +7 -0
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.cjs +35 -0
- package/out/store/actions/index.cjs.map +7 -0
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.cjs +134 -0
- package/out/store/actions/loginInfo/loginInfoActions.cjs.map +7 -0
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.cjs +23 -0
- package/out/store/actions/network/index.cjs.map +7 -0
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.cjs +71 -0
- package/out/store/actions/network/initializeNetwork.cjs.map +7 -0
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.cjs +42 -0
- package/out/store/actions/network/networkActions.cjs.map +7 -0
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.cjs +23 -0
- package/out/store/actions/sharedActions/index.cjs.map +7 -0
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.cjs +50 -0
- package/out/store/actions/sharedActions/sharedActions.cjs.map +7 -0
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.cjs +23 -0
- package/out/store/actions/toasts/index.cjs.map +7 -0
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.cjs +178 -0
- package/out/store/actions/toasts/toastsActions.cjs.map +7 -0
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionStateByStatus.cjs +145 -0
- package/out/store/actions/transactions/transactionStateByStatus.cjs.map +7 -0
- package/out/store/actions/transactions/transactionsActions.cjs +134 -0
- package/out/store/actions/transactions/transactionsActions.cjs.map +7 -0
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.cjs +23 -0
- package/out/store/actions/ui/index.cjs.map +7 -0
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.cjs +36 -0
- package/out/store/actions/ui/uiActions.cjs.map +7 -0
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.cjs +32 -0
- package/out/store/middleware/applyMiddlewares.cjs.map +7 -0
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.cjs +23 -0
- package/out/store/middleware/index.cjs.map +7 -0
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.cjs +79 -0
- package/out/store/middleware/logoutMiddleware.cjs.map +7 -0
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/selectors/accountSelectors.cjs +61 -0
- package/out/store/selectors/accountSelectors.cjs.map +7 -0
- package/out/store/selectors/cacheSelector.cjs +32 -0
- package/out/store/selectors/cacheSelector.cjs.map +7 -0
- package/out/store/selectors/configSelectors.cjs +37 -0
- package/out/store/selectors/configSelectors.cjs.map +7 -0
- package/out/store/selectors/index.cjs +33 -0
- package/out/store/selectors/index.cjs.map +7 -0
- package/out/store/selectors/loginInfoSelectors.cjs +44 -0
- package/out/store/selectors/loginInfoSelectors.cjs.map +7 -0
- package/out/store/selectors/networkSelectors.cjs +43 -0
- package/out/store/selectors/networkSelectors.cjs.map +7 -0
- package/out/store/selectors/storeSelector.cjs +29 -0
- package/out/store/selectors/storeSelector.cjs.map +7 -0
- package/out/store/selectors/toastsSelectors.cjs +35 -0
- package/out/store/selectors/toastsSelectors.cjs.map +7 -0
- package/out/store/selectors/transactionsSelector.cjs +151 -0
- package/out/store/selectors/transactionsSelector.cjs.map +7 -0
- package/out/store/selectors/uiSelectors.cjs +32 -0
- package/out/store/selectors/uiSelectors.cjs.map +7 -0
- package/out/store/slices/account/account.types.cjs +17 -0
- package/out/store/slices/account/account.types.cjs.map +7 -0
- package/out/store/slices/account/accountSlice.cjs +44 -0
- package/out/store/slices/account/accountSlice.cjs.map +7 -0
- package/out/store/slices/account/emptyAccount.cjs +39 -0
- package/out/store/slices/account/emptyAccount.cjs.map +7 -0
- package/out/store/slices/account/index.cjs +29 -0
- package/out/store/slices/account/index.cjs.map +7 -0
- package/out/store/slices/cache/cacheSlice.cjs +35 -0
- package/out/store/slices/cache/cacheSlice.cjs.map +7 -0
- package/out/store/slices/cache/cacheSlice.types.cjs +17 -0
- package/out/store/slices/cache/cacheSlice.types.cjs.map +7 -0
- package/out/store/slices/cache/index.cjs +29 -0
- package/out/store/slices/cache/index.cjs.map +7 -0
- package/out/store/slices/config/config.types.cjs +17 -0
- package/out/store/slices/config/config.types.cjs.map +7 -0
- package/out/store/slices/config/configSlice.cjs +38 -0
- package/out/store/slices/config/configSlice.cjs.map +7 -0
- package/out/store/slices/config/index.cjs +29 -0
- package/out/store/slices/config/index.cjs.map +7 -0
- package/out/store/slices/index.cjs +35 -0
- package/out/store/slices/index.cjs.map +7 -0
- package/out/store/slices/loginInfo/index.cjs +29 -0
- package/out/store/slices/loginInfo/index.cjs.map +7 -0
- package/out/store/slices/loginInfo/loginInfo.types.cjs +17 -0
- package/out/store/slices/loginInfo/loginInfo.types.cjs.map +7 -0
- package/out/store/slices/loginInfo/loginInfoSlice.cjs +45 -0
- package/out/store/slices/loginInfo/loginInfoSlice.cjs.map +7 -0
- package/out/store/slices/network/emptyNetwork.cjs +42 -0
- package/out/store/slices/network/emptyNetwork.cjs.map +7 -0
- package/out/store/slices/network/index.cjs +29 -0
- package/out/store/slices/network/index.cjs.map +7 -0
- package/out/store/slices/network/network.types.cjs +17 -0
- package/out/store/slices/network/network.types.cjs.map +7 -0
- package/out/store/slices/network/networkSlice.cjs +36 -0
- package/out/store/slices/network/networkSlice.cjs.map +7 -0
- package/out/store/slices/network/networkSlice.types.cjs +17 -0
- package/out/store/slices/network/networkSlice.types.cjs.map +7 -0
- package/out/store/slices/toast/index.cjs +29 -0
- package/out/store/slices/toast/index.cjs.map +7 -0
- package/out/store/slices/toast/toastSlice.cjs +38 -0
- package/out/store/slices/toast/toastSlice.cjs.map +7 -0
- package/out/store/slices/toast/toastSlice.types.cjs +17 -0
- package/out/store/slices/toast/toastSlice.types.cjs.map +7 -0
- package/out/store/slices/transactions/index.cjs +29 -0
- package/out/store/slices/transactions/index.cjs.map +7 -0
- package/out/store/slices/transactions/transactionsSlice.cjs +35 -0
- package/out/store/slices/transactions/transactionsSlice.cjs.map +7 -0
- package/out/store/slices/transactions/transactionsSlice.types.cjs +17 -0
- package/out/store/slices/transactions/transactionsSlice.types.cjs.map +7 -0
- package/out/store/slices/ui/index.cjs +29 -0
- package/out/store/slices/ui/index.cjs.map +7 -0
- package/out/store/slices/ui/ui.types.cjs +17 -0
- package/out/store/slices/ui/ui.types.cjs.map +7 -0
- package/out/store/slices/ui/uiSlice.cjs +35 -0
- package/out/store/slices/ui/uiSlice.cjs.map +7 -0
- package/out/store/storage/inMemoryStorage.cjs +52 -0
- package/out/store/storage/inMemoryStorage.cjs.map +7 -0
- package/out/store/storage/index.cjs +25 -0
- package/out/store/storage/index.cjs.map +7 -0
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.cjs +30 -0
- package/out/store/storage/storageCallback.cjs.map +7 -0
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.cjs +81 -0
- package/out/store/store.cjs.map +7 -0
- package/out/store/store.mjs +1 -1
- package/out/store/store.types.cjs +17 -0
- package/out/store/store.types.cjs.map +7 -0
- package/out/types/account.types.cjs +17 -0
- package/out/types/account.types.cjs.map +7 -0
- package/out/types/enums.types.cjs +120 -0
- package/out/types/enums.types.cjs.map +7 -0
- package/out/types/index.cjs +35 -0
- package/out/types/index.cjs.map +7 -0
- package/out/types/login.types.cjs +17 -0
- package/out/types/login.types.cjs.map +7 -0
- package/out/types/manager.types.cjs +17 -0
- package/out/types/manager.types.cjs.map +7 -0
- package/out/types/network.types.cjs +17 -0
- package/out/types/network.types.cjs.map +7 -0
- package/out/types/provider.types.cjs +35 -0
- package/out/types/provider.types.cjs.map +7 -0
- package/out/types/serverTransactions.types.cjs +155 -0
- package/out/types/serverTransactions.types.cjs.map +7 -0
- package/out/types/subscriptions.type.cjs +34 -0
- package/out/types/subscriptions.type.cjs.map +7 -0
- package/out/types/suspiciousLink.types.cjs +17 -0
- package/out/types/suspiciousLink.types.cjs.map +7 -0
- package/out/types/theme.types.cjs +34 -0
- package/out/types/theme.types.cjs.map +7 -0
- package/out/types/tokens.types.cjs +40 -0
- package/out/types/tokens.types.cjs.map +7 -0
- package/out/types/transaction-list-item.types.cjs +115 -0
- package/out/types/transaction-list-item.types.cjs.map +7 -0
- package/out/types/transactions.types.cjs +35 -0
- package/out/types/transactions.types.cjs.map +7 -0
- package/out/types/transactions.types.d.ts +1 -1
- package/out/types/transactions.types.mjs.map +1 -1
- package/out/types/websocket.types.cjs +17 -0
- package/out/types/websocket.types.cjs.map +7 -0
- package/out/utils/ComponentFactory.cjs +51 -0
- package/out/utils/ComponentFactory.cjs.map +7 -0
- package/out/utils/ComponentFactory.d.ts +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/fetchAccount.cjs +30 -0
- package/out/utils/account/fetchAccount.cjs.map +7 -0
- package/out/utils/account/index.cjs +29 -0
- package/out/utils/account/index.cjs.map +7 -0
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.cjs +80 -0
- package/out/utils/account/refreshAccount.cjs.map +7 -0
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.cjs +66 -0
- package/out/utils/account/refreshNativeAuthTokenLogin.cjs.map +7 -0
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/account/trimUsernameDomain.cjs +36 -0
- package/out/utils/account/trimUsernameDomain.cjs.map +7 -0
- package/out/utils/asyncActions/index.cjs +23 -0
- package/out/utils/asyncActions/index.cjs.map +7 -0
- package/out/utils/asyncActions/sleep.cjs +36 -0
- package/out/utils/asyncActions/sleep.cjs.map +7 -0
- package/out/utils/dateTime/getUnixTimestamp.cjs +31 -0
- package/out/utils/dateTime/getUnixTimestamp.cjs.map +7 -0
- package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.cjs +33 -0
- package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.cjs.map +7 -0
- package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.cjs +31 -0
- package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.cjs.map +7 -0
- package/out/utils/dateTime/index.cjs +27 -0
- package/out/utils/dateTime/index.cjs.map +7 -0
- package/out/utils/decoders/base64Utils.cjs +58 -0
- package/out/utils/decoders/base64Utils.cjs.map +7 -0
- package/out/utils/decoders/decodePart.cjs +40 -0
- package/out/utils/decoders/decodePart.cjs.map +7 -0
- package/out/utils/decoders/index.cjs +31 -0
- package/out/utils/decoders/index.cjs.map +7 -0
- package/out/utils/decoders/isAscii.cjs +29 -0
- package/out/utils/decoders/isAscii.cjs.map +7 -0
- package/out/utils/decoders/isUtf8.cjs +36 -0
- package/out/utils/decoders/isUtf8.cjs.map +7 -0
- package/out/utils/decoders/stringContainsNumbers.cjs +29 -0
- package/out/utils/decoders/stringContainsNumbers.cjs.map +7 -0
- package/out/utils/index.cjs +41 -0
- package/out/utils/index.cjs.map +7 -0
- package/out/utils/index.mjs +1 -1
- package/out/utils/network/index.cjs +23 -0
- package/out/utils/network/index.cjs.map +7 -0
- package/out/utils/network/setAxiosInterceptors.cjs +67 -0
- package/out/utils/network/setAxiosInterceptors.cjs.map +7 -0
- package/out/utils/operations/capitalize.cjs +29 -0
- package/out/utils/operations/capitalize.cjs.map +7 -0
- package/out/utils/operations/getUsdValue.cjs +46 -0
- package/out/utils/operations/getUsdValue.cjs.map +7 -0
- package/out/utils/operations/pluralize.cjs +29 -0
- package/out/utils/operations/pluralize.cjs.map +7 -0
- package/out/utils/operations/timeRemaining.cjs +110 -0
- package/out/utils/operations/timeRemaining.cjs.map +7 -0
- package/out/utils/operations/trimAmountDecimals.cjs +60 -0
- package/out/utils/operations/trimAmountDecimals.cjs.map +7 -0
- package/out/utils/retryMultipleTimes.cjs +45 -0
- package/out/utils/retryMultipleTimes.cjs.map +7 -0
- package/out/utils/transactions/explorerUrlBuilder.cjs +54 -0
- package/out/utils/transactions/explorerUrlBuilder.cjs.map +7 -0
- package/out/utils/transactions/getActiveTransactionsStatus.cjs +47 -0
- package/out/utils/transactions/getActiveTransactionsStatus.cjs.map +7 -0
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getExplorerLink.cjs +50 -0
- package/out/utils/transactions/getExplorerLink.cjs.map +7 -0
- package/out/utils/transactions/getHumanReadableTimeFormat.cjs +47 -0
- package/out/utils/transactions/getHumanReadableTimeFormat.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs +110 -0
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs +50 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs +107 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.cjs +36 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.cjs +55 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.cjs +71 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.cjs +41 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.cjs +54 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs +60 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.cjs +53 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.cjs +37 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs +33 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.cjs +23 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.cjs +17 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs +83 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.cjs +31 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs +66 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.cjs +31 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs +44 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs +122 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs +47 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.cjs +40 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.cjs +44 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.cjs +35 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.cjs +33 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.cjs +42 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs +41 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.cjs +50 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs +47 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.cjs +25 -0
- package/out/utils/transactions/getInterpretedTransaction/index.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getScamFlag.cjs +88 -0
- package/out/utils/transactions/getScamFlag.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs +57 -0
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.cjs +40 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.cjs +64 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.cjs +53 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs +36 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.cjs +39 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.cjs +37 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.cjs +113 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.cjs +59 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.cjs +75 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.cjs +63 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.cjs +91 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.cjs +66 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.cjs +38 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs +50 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.cjs +38 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs +95 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs +81 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/index.cjs +25 -0
- package/out/utils/transactions/getTransactionsHistory/index.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.cjs +29 -0
- package/out/utils/transactions/index.cjs.map +7 -0
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/transactions/isGuardianTx.cjs +43 -0
- package/out/utils/transactions/isGuardianTx.cjs.map +7 -0
- package/out/utils/validation/addressIsValid.cjs +40 -0
- package/out/utils/validation/addressIsValid.cjs.map +7 -0
- package/out/utils/validation/getIdentifierType.cjs +54 -0
- package/out/utils/validation/getIdentifierType.cjs.map +7 -0
- package/out/utils/validation/hex.cjs +36 -0
- package/out/utils/validation/hex.cjs.map +7 -0
- package/out/utils/validation/index.cjs +31 -0
- package/out/utils/validation/index.cjs.map +7 -0
- package/out/utils/validation/isContract.cjs +96 -0
- package/out/utils/validation/isContract.cjs.map +7 -0
- package/out/utils/validation/maxDecimals.cjs +34 -0
- package/out/utils/validation/maxDecimals.cjs.map +7 -0
- package/out/utils/visual/index.cjs +23 -0
- package/out/utils/visual/index.cjs.map +7 -0
- package/out/utils/visual/index.mjs +1 -1
- package/out/utils/visual/switchTheme.cjs +38 -0
- package/out/utils/visual/switchTheme.cjs.map +7 -0
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.cjs +36 -0
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.cjs.map +7 -0
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.mjs +1 -1
- package/out/utils/walletconnect/__sdkWalletconnectProvider.cjs +34 -0
- package/out/utils/walletconnect/__sdkWalletconnectProvider.cjs.map +7 -0
- package/out/utils/window/buildUrlParams.cjs +37 -0
- package/out/utils/window/buildUrlParams.cjs.map +7 -0
- package/out/utils/window/getIsAuthRoute.cjs +38 -0
- package/out/utils/window/getIsAuthRoute.cjs.map +7 -0
- package/out/utils/window/getIsInIframe.cjs +44 -0
- package/out/utils/window/getIsInIframe.cjs.map +7 -0
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowLocation.cjs +56 -0
- package/out/utils/window/getWindowLocation.cjs.map +7 -0
- package/out/utils/window/getWindowParentOrigin.cjs +47 -0
- package/out/utils/window/getWindowParentOrigin.cjs.map +7 -0
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.cjs +33 -0
- package/out/utils/window/index.cjs.map +7 -0
- package/out/utils/window/index.mjs +1 -1
- package/out/utils/window/isWindowAvailable.cjs +29 -0
- package/out/utils/window/isWindowAvailable.cjs.map +7 -0
- package/out/utils/window/matchPath.cjs +114 -0
- package/out/utils/window/matchPath.cjs.map +7 -0
- package/out/utils/window/sanitizeCallbackUrl.cjs +39 -0
- package/out/utils/window/sanitizeCallbackUrl.cjs.map +7 -0
- package/package.json +4 -4
- package/out/__chunks__/chunk-24YYMWQL.mjs +0 -2
- package/out/__chunks__/chunk-2GOJSBHM.mjs +0 -2
- package/out/__chunks__/chunk-3KJKVWZX.mjs +0 -2
- package/out/__chunks__/chunk-3MEAYEOP.mjs +0 -2
- package/out/__chunks__/chunk-4WOBJUND.mjs +0 -2
- package/out/__chunks__/chunk-57JT3YYO.mjs +0 -2
- package/out/__chunks__/chunk-5CBADUK2.mjs +0 -2
- package/out/__chunks__/chunk-5EIUN6H3.mjs +0 -2
- package/out/__chunks__/chunk-5PFAZNIO.mjs +0 -2
- package/out/__chunks__/chunk-5PFAZNIO.mjs.map +0 -7
- package/out/__chunks__/chunk-62NTXA3Q.mjs +0 -2
- package/out/__chunks__/chunk-64YGT5EQ.mjs +0 -2
- package/out/__chunks__/chunk-6K5K2OJF.mjs +0 -2
- package/out/__chunks__/chunk-6QSDEIFP.mjs +0 -2
- package/out/__chunks__/chunk-A3CN5JWD.mjs +0 -2
- package/out/__chunks__/chunk-AFO4MJ3Y.mjs +0 -2
- package/out/__chunks__/chunk-AL3SMFKF.mjs +0 -2
- package/out/__chunks__/chunk-ANRHXERH.mjs +0 -2
- package/out/__chunks__/chunk-AZOEX4RJ.mjs +0 -2
- package/out/__chunks__/chunk-B3E34X2P.mjs +0 -2
- package/out/__chunks__/chunk-B5DFRWKW.mjs +0 -2
- package/out/__chunks__/chunk-B5OM6BTD.mjs +0 -2
- package/out/__chunks__/chunk-BDAB6XQS.mjs +0 -2
- package/out/__chunks__/chunk-BHRUDWJV.mjs +0 -2
- package/out/__chunks__/chunk-BPYUCILD.mjs +0 -2
- package/out/__chunks__/chunk-BZCIDXIT.mjs +0 -2
- package/out/__chunks__/chunk-CA5CTMET.mjs +0 -2
- package/out/__chunks__/chunk-CKPRCP4B.mjs +0 -2
- package/out/__chunks__/chunk-CUSPTSTX.mjs +0 -2
- package/out/__chunks__/chunk-CV6QXSKF.mjs +0 -2
- package/out/__chunks__/chunk-CXEW3QBW.mjs +0 -2
- package/out/__chunks__/chunk-D5DPZ3O3.mjs +0 -2
- package/out/__chunks__/chunk-DCD7Z6NA.mjs +0 -2
- package/out/__chunks__/chunk-E26YTVSR.mjs +0 -2
- package/out/__chunks__/chunk-EDKNWPTP.mjs +0 -2
- package/out/__chunks__/chunk-EDKNWPTP.mjs.map +0 -7
- package/out/__chunks__/chunk-F3VTVR46.mjs +0 -2
- package/out/__chunks__/chunk-F7QRSVP4.mjs +0 -2
- package/out/__chunks__/chunk-FINVDQGG.mjs +0 -2
- package/out/__chunks__/chunk-FK73FOXL.mjs +0 -2
- package/out/__chunks__/chunk-FYJSQ5IQ.mjs +0 -2
- package/out/__chunks__/chunk-H3YYJVD2.mjs +0 -2
- package/out/__chunks__/chunk-IEGMED5L.mjs +0 -2
- package/out/__chunks__/chunk-IFIL5YA5.mjs +0 -2
- package/out/__chunks__/chunk-IFIL5YA5.mjs.map +0 -7
- package/out/__chunks__/chunk-ITL2BSZK.mjs +0 -2
- package/out/__chunks__/chunk-J7WSX6RF.mjs +0 -2
- package/out/__chunks__/chunk-JGHTVPC7.mjs +0 -2
- package/out/__chunks__/chunk-JKR3KSKZ.mjs +0 -2
- package/out/__chunks__/chunk-KELD3JME.mjs +0 -2
- package/out/__chunks__/chunk-KRHBIYXH.mjs +0 -2
- package/out/__chunks__/chunk-MEGLLCCR.mjs +0 -2
- package/out/__chunks__/chunk-MPCAGTJW.mjs +0 -2
- package/out/__chunks__/chunk-NQSC7H2H.mjs +0 -2
- package/out/__chunks__/chunk-OO76QA6O.mjs +0 -2
- package/out/__chunks__/chunk-OZ4ZZI3H.mjs +0 -2
- package/out/__chunks__/chunk-PHBORH3K.mjs +0 -2
- package/out/__chunks__/chunk-PHBORH3K.mjs.map +0 -7
- package/out/__chunks__/chunk-PHT4H7NQ.mjs +0 -2
- package/out/__chunks__/chunk-PL64ZI4J.mjs +0 -2
- package/out/__chunks__/chunk-PO5CKWAW.mjs +0 -2
- package/out/__chunks__/chunk-Q3WLMRWP.mjs +0 -2
- package/out/__chunks__/chunk-Q6O5CYQO.mjs +0 -2
- package/out/__chunks__/chunk-QC2L7ZLQ.mjs +0 -2
- package/out/__chunks__/chunk-QW3IVSVZ.mjs +0 -2
- package/out/__chunks__/chunk-QWV25ZSJ.mjs +0 -2
- package/out/__chunks__/chunk-RJSOXNSA.mjs +0 -2
- package/out/__chunks__/chunk-RNLXKFRP.mjs +0 -2
- package/out/__chunks__/chunk-RZURE24V.mjs +0 -2
- package/out/__chunks__/chunk-S2FQWSUO.mjs +0 -2
- package/out/__chunks__/chunk-S2FQWSUO.mjs.map +0 -7
- package/out/__chunks__/chunk-S4QEQGMS.mjs +0 -2
- package/out/__chunks__/chunk-S7K3MC3O.mjs +0 -2
- package/out/__chunks__/chunk-T7DLVQ6J.mjs +0 -2
- package/out/__chunks__/chunk-THNK25ZD.mjs +0 -2
- package/out/__chunks__/chunk-TI73UXGG.mjs +0 -2
- package/out/__chunks__/chunk-TNL55CRB.mjs +0 -2
- package/out/__chunks__/chunk-UBLZ4XV2.mjs +0 -2
- package/out/__chunks__/chunk-WS2TTYTH.mjs +0 -2
- package/out/__chunks__/chunk-WTNCKB4A.mjs +0 -2
- package/out/__chunks__/chunk-XAYCFZAU.mjs +0 -2
- package/out/__chunks__/chunk-XIXT6MEM.mjs +0 -2
- package/out/__chunks__/chunk-Y3FWIS2E.mjs +0 -2
- package/out/__chunks__/chunk-Y7YFB6KR.mjs +0 -2
- package/out/__chunks__/chunk-YFM4XPJB.mjs +0 -2
- package/out/__chunks__/chunk-YRMDKZSS.mjs +0 -2
- package/out/__chunks__/chunk-YRRGPWNG.mjs +0 -2
- package/out/__chunks__/chunk-Z36DGV3K.mjs +0 -2
- package/out/__chunks__/chunk-ZECWUL7N.mjs +0 -2
- package/out/__chunks__/chunk-ZECWUL7N.mjs.map +0 -7
- package/out/__chunks__/chunk-ZT7AZLRE.mjs +0 -2
- package/out/__chunks__/chunk-ZW3NEESY.mjs +0 -2
- /package/out/__chunks__/{chunk-BPYUCILD.mjs.map → chunk-2IXNUCCN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NQSC7H2H.mjs.map → chunk-2UCZ5FCD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OO76QA6O.mjs.map → chunk-35BOKOST.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-64YGT5EQ.mjs.map → chunk-3JMCXLWZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S7K3MC3O.mjs.map → chunk-43AE4SYE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZT7AZLRE.mjs.map → chunk-4JRZISC2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3KJKVWZX.mjs.map → chunk-5MK24VWA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J7WSX6RF.mjs.map → chunk-6EW6GJ7V.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XAYCFZAU.mjs.map → chunk-6IA3KJH5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Z36DGV3K.mjs.map → chunk-6IUQY6KG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Q6O5CYQO.mjs.map → chunk-6QSLQLCT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-57JT3YYO.mjs.map → chunk-6WQJAFR3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QWV25ZSJ.mjs.map → chunk-76URRONH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QW3IVSVZ.mjs.map → chunk-7AMGKXK6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AZOEX4RJ.mjs.map → chunk-7MSBLQYN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KELD3JME.mjs.map → chunk-7O5OCSV5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4WOBJUND.mjs.map → chunk-7PW3YJZS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JKR3KSKZ.mjs.map → chunk-7TVD3ZGR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IEGMED5L.mjs.map → chunk-A2X4YMKK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JGHTVPC7.mjs.map → chunk-AHSGP7ST.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PHT4H7NQ.mjs.map → chunk-AJVTGCVH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PL64ZI4J.mjs.map → chunk-AZNMWFIR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Q3WLMRWP.mjs.map → chunk-CAN6BBUW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TI73UXGG.mjs.map → chunk-CDQ2BNUD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-B5OM6BTD.mjs.map → chunk-DDNM2ZMJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AL3SMFKF.mjs.map → chunk-DNRFH2DR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3MEAYEOP.mjs.map → chunk-EK3WITBG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y7YFB6KR.mjs.map → chunk-ER7VDELK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZW3NEESY.mjs.map → chunk-EWXBNG6L.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CXEW3QBW.mjs.map → chunk-FKCGBCKV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DCD7Z6NA.mjs.map → chunk-FKIAOXUE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YRMDKZSS.mjs.map → chunk-FSHVZP64.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OZ4ZZI3H.mjs.map → chunk-G4Z3ZQR6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BZCIDXIT.mjs.map → chunk-GNF74ZRR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RNLXKFRP.mjs.map → chunk-GUPYIQ3X.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RZURE24V.mjs.map → chunk-H3IUSXHL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FINVDQGG.mjs.map → chunk-HZUUV4N4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QC2L7ZLQ.mjs.map → chunk-IHPROMZ4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YFM4XPJB.mjs.map → chunk-IS62JDWR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CA5CTMET.mjs.map → chunk-J7GHXLMR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y3FWIS2E.mjs.map → chunk-JD2VRDU7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-E26YTVSR.mjs.map → chunk-JHG4SR7C.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TNL55CRB.mjs.map → chunk-JOVG7EB7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ITL2BSZK.mjs.map → chunk-JXNX2DMF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-24YYMWQL.mjs.map → chunk-L34S5ELK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2GOJSBHM.mjs.map → chunk-LD6GIQXR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UBLZ4XV2.mjs.map → chunk-LJKBU76G.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FK73FOXL.mjs.map → chunk-MKIQ2XH4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-62NTXA3Q.mjs.map → chunk-N6IZYQLD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5CBADUK2.mjs.map → chunk-N7FAJ2VG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CUSPTSTX.mjs.map → chunk-NR34QIVY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-D5DPZ3O3.mjs.map → chunk-OA7DW77N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MPCAGTJW.mjs.map → chunk-OAEQGL6W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BDAB6XQS.mjs.map → chunk-OLXHHD4T.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KRHBIYXH.mjs.map → chunk-OYYE3JKS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A3CN5JWD.mjs.map → chunk-P7KN75HA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6QSDEIFP.mjs.map → chunk-PPRG5EYX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-F3VTVR46.mjs.map → chunk-Q5RVUCNS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-B3E34X2P.mjs.map → chunk-QFW3NRHJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FYJSQ5IQ.mjs.map → chunk-QJBNDKHF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YRRGPWNG.mjs.map → chunk-QNJDXBR6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AFO4MJ3Y.mjs.map → chunk-QVOHFS6Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MEGLLCCR.mjs.map → chunk-RO37MX5Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RJSOXNSA.mjs.map → chunk-SGN6MYFW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-H3YYJVD2.mjs.map → chunk-SNJZSRF3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CV6QXSKF.mjs.map → chunk-T6PE5QT2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-F7QRSVP4.mjs.map → chunk-TJW7RKOI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6K5K2OJF.mjs.map → chunk-ULT7BJCN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WTNCKB4A.mjs.map → chunk-UXJIZKTT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WS2TTYTH.mjs.map → chunk-V53EFJQZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-THNK25ZD.mjs.map → chunk-W5LWBGZ4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5EIUN6H3.mjs.map → chunk-WCRS5CLZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-T7DLVQ6J.mjs.map → chunk-WNKKBV76.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ANRHXERH.mjs.map → chunk-WWNT4K25.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CKPRCP4B.mjs.map → chunk-X3BMMYMU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BHRUDWJV.mjs.map → chunk-XXILUGAY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PO5CKWAW.mjs.map → chunk-YBLDHLHP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XIXT6MEM.mjs.map → chunk-Z3SM2MSZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S4QEQGMS.mjs.map → chunk-ZFM5CMB7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-B5DFRWKW.mjs.map → chunk-ZP2E2Y6Y.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-QFW3NRHJ.mjs";import"../../__chunks__/chunk-JD2VRDU7.mjs";import"../../__chunks__/chunk-5ICRLXOJ.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as getIsInIframe};
|
|
2
2
|
//# sourceMappingURL=getIsInIframe.mjs.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var getWindowLocation_exports = {};
|
|
20
|
+
__export(getWindowLocation_exports, {
|
|
21
|
+
getWindowLocation: () => getWindowLocation
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getWindowLocation_exports);
|
|
24
|
+
var import_isWindowAvailable = require("./isWindowAvailable");
|
|
25
|
+
const getWindowLocation = () => {
|
|
26
|
+
let isAvailable;
|
|
27
|
+
try {
|
|
28
|
+
isAvailable = (0, import_isWindowAvailable.isWindowAvailable)();
|
|
29
|
+
} catch (_error) {
|
|
30
|
+
isAvailable = false;
|
|
31
|
+
}
|
|
32
|
+
if (!isAvailable) {
|
|
33
|
+
return {
|
|
34
|
+
pathname: "",
|
|
35
|
+
hash: "",
|
|
36
|
+
origin: "",
|
|
37
|
+
href: "",
|
|
38
|
+
search: ""
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
const {
|
|
42
|
+
location: { pathname, hash, origin, href, search }
|
|
43
|
+
} = window;
|
|
44
|
+
return {
|
|
45
|
+
pathname,
|
|
46
|
+
hash,
|
|
47
|
+
origin,
|
|
48
|
+
href,
|
|
49
|
+
search
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
getWindowLocation
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=getWindowLocation.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/window/getWindowLocation.ts"],
|
|
4
|
+
"sourcesContent": ["import { isWindowAvailable } from './isWindowAvailable';\n\ntype GetWindowLocationType = {\n pathname: string;\n hash: string;\n origin: string;\n href: string;\n search: string;\n};\n\nexport const getWindowLocation = (): GetWindowLocationType => {\n let isAvailable: boolean;\n\n try {\n isAvailable = isWindowAvailable();\n } catch (_error) {\n isAvailable = false;\n }\n\n if (!isAvailable) {\n return {\n pathname: '',\n hash: '',\n origin: '',\n href: '',\n search: ''\n };\n }\n\n const {\n location: { pathname, hash, origin, href, search }\n } = window;\n\n return {\n pathname,\n hash,\n origin,\n href,\n search\n };\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAAkC;AAU3B,MAAM,oBAAoB,MAA6B;AAC5D,MAAI;AAEJ,MAAI;AACF,sBAAc,4CAAkB;AAAA,EAClC,SAAS,QAAQ;AACf,kBAAc;AAAA,EAChB;AAEA,MAAI,CAAC,aAAa;AAChB,WAAO;AAAA,MACL,UAAU;AAAA,MACV,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,QAAQ;AAAA,IACV;AAAA,EACF;AAEA,QAAM;AAAA,IACJ,UAAU,EAAE,UAAU,MAAM,QAAQ,MAAM,OAAO;AAAA,EACnD,IAAI;AAEJ,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var getWindowParentOrigin_exports = {};
|
|
20
|
+
__export(getWindowParentOrigin_exports, {
|
|
21
|
+
getWindowParentOrigin: () => getWindowParentOrigin
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getWindowParentOrigin_exports);
|
|
24
|
+
var import_window = require("../../constants/window.constants");
|
|
25
|
+
function getWindowParentOrigin() {
|
|
26
|
+
if (!import_window.safeWindow) {
|
|
27
|
+
return "";
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
if (import_window.safeWindow.document.referrer) {
|
|
31
|
+
return new URL(import_window.safeWindow.document.referrer).origin;
|
|
32
|
+
}
|
|
33
|
+
const ancestorOrigins = import_window.safeWindow.location.ancestorOrigins;
|
|
34
|
+
if (ancestorOrigins.length < 1) {
|
|
35
|
+
return "";
|
|
36
|
+
}
|
|
37
|
+
return new URL(ancestorOrigins[ancestorOrigins.length - 1]).origin;
|
|
38
|
+
} catch (e) {
|
|
39
|
+
console.error(e);
|
|
40
|
+
return "";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
getWindowParentOrigin
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=getWindowParentOrigin.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/window/getWindowParentOrigin.ts"],
|
|
4
|
+
"sourcesContent": ["import { safeWindow } from 'constants/window.constants';\n\nexport function getWindowParentOrigin() {\n if (!safeWindow) {\n return '';\n }\n\n try {\n if (safeWindow.document.referrer) {\n return new URL(safeWindow.document.referrer).origin;\n }\n\n const ancestorOrigins = safeWindow.location.ancestorOrigins;\n\n if (ancestorOrigins.length < 1) {\n return '';\n }\n\n return new URL(ancestorOrigins[ancestorOrigins.length - 1]).origin;\n } catch (e) {\n console.error(e);\n return '';\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA2B;AAEpB,SAAS,wBAAwB;AACtC,MAAI,CAAC,0BAAY;AACf,WAAO;AAAA,EACT;AAEA,MAAI;AACF,QAAI,yBAAW,SAAS,UAAU;AAChC,aAAO,IAAI,IAAI,yBAAW,SAAS,QAAQ,EAAE;AAAA,IAC/C;AAEA,UAAM,kBAAkB,yBAAW,SAAS;AAE5C,QAAI,gBAAgB,SAAS,GAAG;AAC9B,aAAO;AAAA,IACT;AAEA,WAAO,IAAI,IAAI,gBAAgB,gBAAgB,SAAS,CAAC,CAAC,EAAE;AAAA,EAC9D,SAAS,GAAG;AACV,YAAQ,MAAM,CAAC;AACf,WAAO;AAAA,EACT;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-JD2VRDU7.mjs";import"../../__chunks__/chunk-5ICRLXOJ.mjs";export{a as getWindowParentOrigin};
|
|
2
2
|
//# sourceMappingURL=getWindowParentOrigin.mjs.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var window_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(window_exports);
|
|
18
|
+
__reExport(window_exports, require("./getWindowLocation"), module.exports);
|
|
19
|
+
__reExport(window_exports, require("./isWindowAvailable"), module.exports);
|
|
20
|
+
__reExport(window_exports, require("./sanitizeCallbackUrl"), module.exports);
|
|
21
|
+
__reExport(window_exports, require("./buildUrlParams"), module.exports);
|
|
22
|
+
__reExport(window_exports, require("./getIsAuthRoute"), module.exports);
|
|
23
|
+
__reExport(window_exports, require("./getIsInIframe"), module.exports);
|
|
24
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
+
0 && (module.exports = {
|
|
26
|
+
...require("./getWindowLocation"),
|
|
27
|
+
...require("./isWindowAvailable"),
|
|
28
|
+
...require("./sanitizeCallbackUrl"),
|
|
29
|
+
...require("./buildUrlParams"),
|
|
30
|
+
...require("./getIsAuthRoute"),
|
|
31
|
+
...require("./getIsInIframe")
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/window/index.ts"],
|
|
4
|
+
"sourcesContent": ["export * from './getWindowLocation';\nexport * from './isWindowAvailable';\nexport * from './sanitizeCallbackUrl';\nexport * from './buildUrlParams';\nexport * from './getIsAuthRoute';\nexport * from './getIsInIframe';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,2BAAc,gCAAd;AACA,2BAAc,gCADd;AAEA,2BAAc,kCAFd;AAGA,2BAAc,6BAHd;AAIA,2BAAc,6BAJd;AAKA,2BAAc,4BALd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../__chunks__/chunk-DTQL3IDP.mjs";import{a as b}from"../../__chunks__/chunk-CKTFPRJS.mjs";import{a as f}from"../../__chunks__/chunk-
|
|
1
|
+
import"../../__chunks__/chunk-DTQL3IDP.mjs";import{a as b}from"../../__chunks__/chunk-CKTFPRJS.mjs";import{a as f}from"../../__chunks__/chunk-QFW3NRHJ.mjs";import"../../__chunks__/chunk-JD2VRDU7.mjs";import{a as e}from"../../__chunks__/chunk-EHDGJUEU.mjs";import{a as d}from"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-5ICRLXOJ.mjs";import{a as c}from"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import{a}from"../../__chunks__/chunk-B2UIPHJ3.mjs";export{d as buildUrlParams,e as getIsAuthRoute,f as getIsInIframe,b as getWindowLocation,a as isWindowAvailable,c as sanitizeCallbackUrl};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var isWindowAvailable_exports = {};
|
|
20
|
+
__export(isWindowAvailable_exports, {
|
|
21
|
+
isWindowAvailable: () => isWindowAvailable
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(isWindowAvailable_exports);
|
|
24
|
+
const isWindowAvailable = () => typeof window != "undefined" && typeof window?.location != "undefined";
|
|
25
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
+
0 && (module.exports = {
|
|
27
|
+
isWindowAvailable
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=isWindowAvailable.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/window/isWindowAvailable.ts"],
|
|
4
|
+
"sourcesContent": ["export const isWindowAvailable = () =>\n typeof window != 'undefined' && typeof window?.location != 'undefined';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,oBAAoB,MAC/B,OAAO,UAAU,eAAe,OAAO,QAAQ,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var matchPath_exports = {};
|
|
20
|
+
__export(matchPath_exports, {
|
|
21
|
+
matchPath: () => matchPath
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(matchPath_exports);
|
|
24
|
+
function warning(cond, message) {
|
|
25
|
+
if (!cond) {
|
|
26
|
+
if (typeof console !== "undefined") {
|
|
27
|
+
console.warn(message);
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
throw new Error(message);
|
|
31
|
+
} catch (error) {
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function matchPath(pattern, pathname) {
|
|
36
|
+
if (typeof pattern === "string") {
|
|
37
|
+
pattern = { path: pattern, caseSensitive: false, end: true };
|
|
38
|
+
}
|
|
39
|
+
const [matcher, paramNames] = compilePath(
|
|
40
|
+
pattern.path,
|
|
41
|
+
pattern.caseSensitive,
|
|
42
|
+
pattern.end
|
|
43
|
+
);
|
|
44
|
+
const match = pathname.match(matcher);
|
|
45
|
+
if (!match) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
const matchedPathname = match[0];
|
|
49
|
+
let pathnameBase = matchedPathname.replace(/(.)\/+$/, "$1");
|
|
50
|
+
const captureGroups = match.slice(1);
|
|
51
|
+
const params = paramNames.reduce(
|
|
52
|
+
(memo, paramName, index) => {
|
|
53
|
+
if (paramName === "*") {
|
|
54
|
+
const splatValue = captureGroups[index] || "";
|
|
55
|
+
pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\/+$/, "$1");
|
|
56
|
+
}
|
|
57
|
+
memo[paramName] = safelyDecodeURIComponent(
|
|
58
|
+
captureGroups[index] || "",
|
|
59
|
+
paramName
|
|
60
|
+
);
|
|
61
|
+
return memo;
|
|
62
|
+
},
|
|
63
|
+
{}
|
|
64
|
+
);
|
|
65
|
+
return {
|
|
66
|
+
params,
|
|
67
|
+
pathname: matchedPathname,
|
|
68
|
+
pathnameBase,
|
|
69
|
+
pattern
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function compilePath(path, caseSensitive = false, end = true) {
|
|
73
|
+
warning(
|
|
74
|
+
path === "*" || !path.endsWith("*") || path.endsWith("/*"),
|
|
75
|
+
`Route path "${path}" will be treated as if it were "${path.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${path.replace(/\*$/, "/*")}".`
|
|
76
|
+
);
|
|
77
|
+
const paramNames = [];
|
|
78
|
+
let regexpSource = "^" + path.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^$?{}|()[\]]/g, "\\$&").replace(/:(\w+)/g, (_, paramName) => {
|
|
79
|
+
paramNames.push(paramName);
|
|
80
|
+
return "([^\\/]+)";
|
|
81
|
+
});
|
|
82
|
+
if (path.endsWith("*")) {
|
|
83
|
+
paramNames.push("*");
|
|
84
|
+
regexpSource += path === "*" || path === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$";
|
|
85
|
+
} else {
|
|
86
|
+
regexpSource += end ? "\\/*$" : (
|
|
87
|
+
// Otherwise, match a word boundary or a proceeding /. The word boundary restricts
|
|
88
|
+
// parent routes to matching only their own words and nothing more, e.g. parent
|
|
89
|
+
// route "/home" should not match "/home2".
|
|
90
|
+
// Additionally, allow paths starting with `.`, `-`, `~`, and url-encoded entities,
|
|
91
|
+
// but do not consume the character in the matched path so they can match against
|
|
92
|
+
// nested paths.
|
|
93
|
+
"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)"
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
const matcher = new RegExp(regexpSource, caseSensitive ? void 0 : "i");
|
|
97
|
+
return [matcher, paramNames];
|
|
98
|
+
}
|
|
99
|
+
function safelyDecodeURIComponent(value, paramName) {
|
|
100
|
+
try {
|
|
101
|
+
return decodeURIComponent(value);
|
|
102
|
+
} catch (error) {
|
|
103
|
+
warning(
|
|
104
|
+
false,
|
|
105
|
+
`The value for the URL param "${paramName}" will not be decoded because the string "${value}" is a malformed URL segment. This is probably due to a bad percent encoding (${error}).`
|
|
106
|
+
);
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
111
|
+
0 && (module.exports = {
|
|
112
|
+
matchPath
|
|
113
|
+
});
|
|
114
|
+
//# sourceMappingURL=matchPath.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/window/matchPath.ts"],
|
|
4
|
+
"sourcesContent": ["// credits go to: https://remix.run\n// sourcecode: https://raw.githubusercontent.com/remix-run/react-router/6b44e99f0b659428ce2ec8d5098e90c7fddda2c5/packages/react-router/lib/router.ts\n\nfunction warning(cond: any, message: string): void {\n if (!cond) {\n if (typeof console !== 'undefined') {\n console.warn(message);\n }\n\n try {\n // Welcome to debugging React Router!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message);\n // eslint-disable-next-line no-empty, @typescript-eslint/no-unused-vars\n } catch (error) {}\n }\n}\n\ntype ParamParseFailed = { failed: true };\n\ntype ParamParseSegment<Segment extends string> =\n // Check here if there exists a forward slash in the string.\n\n Segment extends `${infer LeftSegment}/${infer RightSegment}`\n ? // If there is a forward slash, then attempt to parse each side of the\n // forward slash.\n ParamParseSegment<LeftSegment> extends infer LeftResult\n ? ParamParseSegment<RightSegment> extends infer RightResult\n ? LeftResult extends string\n ? // If the left side is successfully parsed as a param, then check if\n // the right side can be successfully parsed as well. If both sides\n // can be parsed, then the result is a union of the two sides\n // (read: \"foo\" | \"bar\").\n RightResult extends string\n ? LeftResult | RightResult\n : LeftResult\n : // If the left side is not successfully parsed as a param, then check\n // if only the right side can be successfully parse as a param. If it\n // can, then the result is just right, else it's a failure.\n RightResult extends string\n ? RightResult\n : ParamParseFailed\n : ParamParseFailed\n : // If the left side didn't parse into a param, then just check the right\n // side.\n ParamParseSegment<RightSegment> extends infer RightResult\n ? RightResult extends string\n ? RightResult\n : ParamParseFailed\n : ParamParseFailed\n : // If there's no forward slash, then check if this segment starts with a\n // colon. If it does, then this is a dynamic segment, so the result is\n // just the remainder of the string. Otherwise, it's a failure.\n Segment extends `:${infer Remaining}`\n ? Remaining\n : ParamParseFailed;\n\n// Attempt to parse the given string segment. If it fails, then just return the\n// plain string type as a default fallback. Otherwise return the union of the\n// parsed string literals that were referenced as dynamic segments in the route.\ntype ParamParseKey<Segment extends string> =\n ParamParseSegment<Segment> extends string\n ? ParamParseSegment<Segment>\n : string;\n\n/**\n * The parameters that were parsed from the URL path.\n */\ntype Params<Key extends string = string> = {\n readonly [_key in Key]: string | undefined;\n};\n\n/**\n * A PathPattern is used to match on some portion of a URL pathname.\n */\ninterface PathPattern<Path extends string = string> {\n /**\n * A string to match against a URL pathname. May contain `:id`-style segments\n * to indicate placeholders for dynamic parameters. May also end with `/*` to\n * indicate matching the rest of the URL pathname.\n */\n path: Path;\n /**\n * Should be `true` if the static portions of the `path` should be matched in\n * the same case.\n */\n caseSensitive?: boolean;\n /**\n * Should be `true` if this pattern should match the entire URL pathname.\n */\n end?: boolean;\n}\n\n/**\n * A PathMatch contains info about how a PathPattern matched on a URL pathname.\n */\ninterface PathMatch<ParamKey extends string = string> {\n /**\n * The names and values of dynamic parameters in the URL.\n */\n params: Params<ParamKey>;\n /**\n * The portion of the URL pathname that was matched.\n */\n pathname: string;\n /**\n * The portion of the URL pathname that was matched before child routes.\n */\n pathnameBase: string;\n /**\n * The pattern that was used to match.\n */\n pattern: PathPattern;\n}\n\ntype Mutable<T> = {\n -readonly [P in keyof T]: T[P];\n};\n\n/**\n * Performs pattern matching on a URL pathname and returns information about\n * the match.\n *\n * @see https://reactrouter.com/docs/en/v6/utils/match-path\n */\nexport function matchPath<\n ParamKey extends ParamParseKey<Path>,\n Path extends string\n>(\n pattern: PathPattern<Path> | Path,\n pathname: string\n): PathMatch<ParamKey> | null {\n if (typeof pattern === 'string') {\n pattern = { path: pattern, caseSensitive: false, end: true };\n }\n\n const [matcher, paramNames] = compilePath(\n pattern.path,\n pattern.caseSensitive,\n pattern.end\n );\n\n const match = pathname.match(matcher);\n if (!match) {\n return null;\n }\n\n const matchedPathname = match[0];\n let pathnameBase = matchedPathname.replace(/(.)\\/+$/, '$1');\n const captureGroups = match.slice(1);\n const params: Params = paramNames.reduce<Mutable<Params>>(\n (memo, paramName, index) => {\n // We need to compute the pathnameBase here using the raw splat value\n // instead of using params[\"*\"] later because it will be decoded then\n if (paramName === '*') {\n const splatValue = captureGroups[index] || '';\n pathnameBase = matchedPathname\n .slice(0, matchedPathname.length - splatValue.length)\n .replace(/(.)\\/+$/, '$1');\n }\n\n memo[paramName] = safelyDecodeURIComponent(\n captureGroups[index] || '',\n paramName\n );\n return memo;\n },\n {}\n );\n\n return {\n params,\n pathname: matchedPathname,\n pathnameBase,\n pattern\n };\n}\n\nfunction compilePath(\n path: string,\n caseSensitive = false,\n end = true\n): [RegExp, string[]] {\n warning(\n path === '*' || !path.endsWith('*') || path.endsWith('/*'),\n `Route path \"${path}\" will be treated as if it were ` +\n `\"${path.replace(/\\*$/, '/*')}\" because the \\`*\\` character must ` +\n 'always follow a `/` in the pattern. To get rid of this warning, ' +\n `please change the route path to \"${path.replace(/\\*$/, '/*')}\".`\n );\n\n const paramNames: string[] = [];\n let regexpSource =\n '^' +\n path\n .replace(/\\/*\\*?$/, '') // Ignore trailing / and /*, we'll handle it below\n .replace(/^\\/*/, '/') // Make sure it has a leading /\n .replace(/[\\\\.*+^$?{}|()[\\]]/g, '\\\\$&') // Escape special regex chars\n .replace(/:(\\w+)/g, (_: string, paramName: string) => {\n paramNames.push(paramName);\n return '([^\\\\/]+)';\n });\n\n if (path.endsWith('*')) {\n paramNames.push('*');\n regexpSource +=\n path === '*' || path === '/*'\n ? '(.*)$' // Already matched the initial /, just match the rest\n : '(?:\\\\/(.+)|\\\\/*)$'; // Don't include the / in params[\"*\"]\n } else {\n regexpSource += end\n ? '\\\\/*$' // When matching to the end, ignore trailing slashes\n : // Otherwise, match a word boundary or a proceeding /. The word boundary restricts\n // parent routes to matching only their own words and nothing more, e.g. parent\n // route \"/home\" should not match \"/home2\".\n // Additionally, allow paths starting with `.`, `-`, `~`, and url-encoded entities,\n // but do not consume the character in the matched path so they can match against\n // nested paths.\n '(?:(?=[.~-]|%[0-9A-F]{2})|\\\\b|\\\\/|$)';\n }\n\n const matcher = new RegExp(regexpSource, caseSensitive ? undefined : 'i');\n\n return [matcher, paramNames];\n}\n\nfunction safelyDecodeURIComponent(value: string, paramName: string) {\n try {\n return decodeURIComponent(value);\n } catch (error) {\n warning(\n false,\n `The value for the URL param \"${paramName}\" will not be decoded because` +\n ` the string \"${value}\" is a malformed URL segment. This is probably` +\n ` due to a bad percent encoding (${error}).`\n );\n\n return value;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,SAAS,QAAQ,MAAW,SAAuB;AACjD,MAAI,CAAC,MAAM;AACT,QAAI,OAAO,YAAY,aAAa;AAClC,cAAQ,KAAK,OAAO;AAAA,IACtB;AAEA,QAAI;AAMF,YAAM,IAAI,MAAM,OAAO;AAAA,IAEzB,SAAS,OAAO;AAAA,IAAC;AAAA,EACnB;AACF;AA6GO,SAAS,UAId,SACA,UAC4B;AAC5B,MAAI,OAAO,YAAY,UAAU;AAC/B,cAAU,EAAE,MAAM,SAAS,eAAe,OAAO,KAAK,KAAK;AAAA,EAC7D;AAEA,QAAM,CAAC,SAAS,UAAU,IAAI;AAAA,IAC5B,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,EACV;AAEA,QAAM,QAAQ,SAAS,MAAM,OAAO;AACpC,MAAI,CAAC,OAAO;AACV,WAAO;AAAA,EACT;AAEA,QAAM,kBAAkB,MAAM,CAAC;AAC/B,MAAI,eAAe,gBAAgB,QAAQ,WAAW,IAAI;AAC1D,QAAM,gBAAgB,MAAM,MAAM,CAAC;AACnC,QAAM,SAAiB,WAAW;AAAA,IAChC,CAAC,MAAM,WAAW,UAAU;AAG1B,UAAI,cAAc,KAAK;AACrB,cAAM,aAAa,cAAc,KAAK,KAAK;AAC3C,uBAAe,gBACZ,MAAM,GAAG,gBAAgB,SAAS,WAAW,MAAM,EACnD,QAAQ,WAAW,IAAI;AAAA,MAC5B;AAEA,WAAK,SAAS,IAAI;AAAA,QAChB,cAAc,KAAK,KAAK;AAAA,QACxB;AAAA,MACF;AACA,aAAO;AAAA,IACT;AAAA,IACA,CAAC;AAAA,EACH;AAEA,SAAO;AAAA,IACL;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IACA;AAAA,EACF;AACF;AAEA,SAAS,YACP,MACA,gBAAgB,OAChB,MAAM,MACc;AACpB;AAAA,IACE,SAAS,OAAO,CAAC,KAAK,SAAS,GAAG,KAAK,KAAK,SAAS,IAAI;AAAA,IACzD,eAAe,IAAI,oCACb,KAAK,QAAQ,OAAO,IAAI,CAAC,yIAEO,KAAK,QAAQ,OAAO,IAAI,CAAC;AAAA,EACjE;AAEA,QAAM,aAAuB,CAAC;AAC9B,MAAI,eACF,MACA,KACG,QAAQ,WAAW,EAAE,EACrB,QAAQ,QAAQ,GAAG,EACnB,QAAQ,uBAAuB,MAAM,EACrC,QAAQ,WAAW,CAAC,GAAW,cAAsB;AACpD,eAAW,KAAK,SAAS;AACzB,WAAO;AAAA,EACT,CAAC;AAEL,MAAI,KAAK,SAAS,GAAG,GAAG;AACtB,eAAW,KAAK,GAAG;AACnB,oBACE,SAAS,OAAO,SAAS,OACrB,UACA;AAAA,EACR,OAAO;AACL,oBAAgB,MACZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAOA;AAAA;AAAA,EACN;AAEA,QAAM,UAAU,IAAI,OAAO,cAAc,gBAAgB,SAAY,GAAG;AAExE,SAAO,CAAC,SAAS,UAAU;AAC7B;AAEA,SAAS,yBAAyB,OAAe,WAAmB;AAClE,MAAI;AACF,WAAO,mBAAmB,KAAK;AAAA,EACjC,SAAS,OAAO;AACd;AAAA,MACE;AAAA,MACA,gCAAgC,SAAS,6CACvB,KAAK,iFACc,KAAK;AAAA,IAC5C;AAEA,WAAO;AAAA,EACT;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var sanitizeCallbackUrl_exports = {};
|
|
20
|
+
__export(sanitizeCallbackUrl_exports, {
|
|
21
|
+
sanitizeCallbackUrl: () => sanitizeCallbackUrl
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(sanitizeCallbackUrl_exports);
|
|
24
|
+
const sanitizeCallbackUrl = (targetURL, vulnerableItems = ["address"]) => {
|
|
25
|
+
const url = new URL(targetURL);
|
|
26
|
+
const params = new URLSearchParams(url.search);
|
|
27
|
+
vulnerableItems.forEach((vulnerableItem) => params.delete(vulnerableItem));
|
|
28
|
+
const questionMark = Array.from(params.values()).length > 0 ? "?" : "";
|
|
29
|
+
const pathname = url.pathname === "/" && !targetURL.endsWith("/") ? "" : url.pathname;
|
|
30
|
+
if (url.protocol === "vscode:") {
|
|
31
|
+
return targetURL;
|
|
32
|
+
}
|
|
33
|
+
return `${url.origin}${pathname}${questionMark}${params.toString()}${url.hash}`;
|
|
34
|
+
};
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
sanitizeCallbackUrl
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=sanitizeCallbackUrl.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/window/sanitizeCallbackUrl.ts"],
|
|
4
|
+
"sourcesContent": ["export const sanitizeCallbackUrl = (\n targetURL: string,\n vulnerableItems: string[] = ['address']\n) => {\n const url = new URL(targetURL);\n const params = new URLSearchParams(url.search);\n\n vulnerableItems.forEach((vulnerableItem) => params.delete(vulnerableItem));\n\n const questionMark = Array.from(params.values()).length > 0 ? '?' : '';\n\n const pathname =\n url.pathname === '/' && !targetURL.endsWith('/') ? '' : url.pathname;\n\n if (url.protocol === 'vscode:') {\n return targetURL;\n }\n\n return `${url.origin}${pathname}${questionMark}${params.toString()}${\n url.hash\n }`;\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,sBAAsB,CACjC,WACA,kBAA4B,CAAC,SAAS,MACnC;AACH,QAAM,MAAM,IAAI,IAAI,SAAS;AAC7B,QAAM,SAAS,IAAI,gBAAgB,IAAI,MAAM;AAE7C,kBAAgB,QAAQ,CAAC,mBAAmB,OAAO,OAAO,cAAc,CAAC;AAEzE,QAAM,eAAe,MAAM,KAAK,OAAO,OAAO,CAAC,EAAE,SAAS,IAAI,MAAM;AAEpE,QAAM,WACJ,IAAI,aAAa,OAAO,CAAC,UAAU,SAAS,GAAG,IAAI,KAAK,IAAI;AAE9D,MAAI,IAAI,aAAa,WAAW;AAC9B,WAAO;AAAA,EACT;AAEA,SAAO,GAAG,IAAI,MAAM,GAAG,QAAQ,GAAG,YAAY,GAAG,OAAO,SAAS,CAAC,GAChE,IAAI,IACN;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiversx/sdk-dapp",
|
|
3
|
-
"version": "5.0.
|
|
4
|
-
"main": "out/index.
|
|
3
|
+
"version": "5.0.6",
|
|
4
|
+
"main": "out/index.cjs",
|
|
5
5
|
"module": "out/index.mjs",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
7
7
|
"description": "A library to hold the main logic for a dapp on the MultiversX blockchain",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@multiversx/sdk-web-wallet-cross-window-provider": "3.1.3",
|
|
43
43
|
"@multiversx/sdk-web-wallet-iframe-provider": "3.0.3",
|
|
44
44
|
"@multiversx/sdk-web-wallet-provider": "5.0.0",
|
|
45
|
-
"@multiversx/sdk-webview-provider": "3.1.
|
|
45
|
+
"@multiversx/sdk-webview-provider": "3.1.3",
|
|
46
46
|
"immer": "10.1.1",
|
|
47
47
|
"linkifyjs": "4.3.1",
|
|
48
48
|
"lodash.isempty": "4.4.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"bignumber.js": "^9.x"
|
|
63
63
|
},
|
|
64
64
|
"optionalDependencies": {
|
|
65
|
-
"@multiversx/sdk-dapp-ui": ">=0.0.
|
|
65
|
+
"@multiversx/sdk-dapp-ui": ">=0.0.17"
|
|
66
66
|
},
|
|
67
67
|
"resolutions": {
|
|
68
68
|
"strip-ansi": "6.0.1",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-YNXPGS77.mjs";import{c as r,d as a}from"./chunk-CAA4VJRH.mjs";import{u as e}from"./chunk-RNLXKFRP.mjs";import{a as n}from"./chunk-UERJ6AKK.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
|
|
2
|
-
//# sourceMappingURL=chunk-24YYMWQL.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-ZW3NEESY.mjs";import{a as g}from"./chunk-3S57OP4Z.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var H=f=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=h(f),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:p,timestamp:c}=n,m=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${p}.${r}.${m}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:l}};export{H as a};
|
|
2
|
-
//# sourceMappingURL=chunk-2GOJSBHM.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s as a}from"./chunk-RNLXKFRP.mjs";var r=({key:e,value:t})=>{a().setState(({cache:c})=>{c[e]=t},!1,"saveToCache")},s=e=>{a().setState(({cache:t})=>{delete t[e]},!1,"removeFromCache")},h=()=>{a().setState(({cache:e})=>{Object.keys(e).forEach(t=>{delete e[t]})},!1,"clearCache")};export{r as a,s as b,h as c};
|
|
2
|
-
//# sourceMappingURL=chunk-3KJKVWZX.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-FMQYLMTU.mjs";import{b as s,c as r}from"./chunk-ITL2BSZK.mjs";async function l({results:e,hash:i,sessionId:t}){let a=e?.find(o=>o?.returnMessage!=="");r({sessionId:t,transaction:{...a,hash:i,status:"fail",inTransit:!1}}),s({sessionId:t,status:"fail",errorMessage:a?.returnMessage}),await n({sessionId:t,status:"fail"})}export{l as a};
|
|
2
|
-
//# sourceMappingURL=chunk-3MEAYEOP.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s as c}from"./chunk-RNLXKFRP.mjs";import{a as o}from"./chunk-JMC7CMTU.mjs";var r=e=>{c().setState(({account:t})=>{let s=t.address===e.address;t.accounts={[t.address]:s?e:o}},!1,"setAccount")},u=e=>c().setState(({account:t})=>{t.ledgerAccount=e},!1,"setLedgerAccount"),p=e=>c().setState(({account:t})=>{t.walletConnectAccount=e},!1,"setWalletConnectAccount"),l=e=>c().setState(({account:t})=>{t.websocketEvent={timestamp:Date.now(),message:e}},!1,"setWebsocketEvent"),m=e=>c().setState(({account:t})=>{t.websocketBatchEvent={timestamp:Date.now(),data:e}},!1,"setWebsocketBatchEvent"),A=e=>{c().setState(({account:t})=>{t.accounts[t.address].nonce=e},!1,"setAccountNonce")};export{r as a,u as b,p as c,l as d,m as e,A as f};
|
|
2
|
-
//# sourceMappingURL=chunk-4WOBJUND.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{t as g}from"./chunk-PHBORH3K.mjs";import{s as u}from"./chunk-RNLXKFRP.mjs";import{a as p}from"./chunk-UERJ6AKK.mjs";import{a as h,c as l,g as c}from"./chunk-NTEMINYA.mjs";import{a as y}from"./chunk-ZECWUL7N.mjs";var M=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=u();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){y.addEventListener("message",this.handleMessage)}stopListening(){y.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case o.finalizeHandshakeRequest:this.handshake({event:e});break;case o.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case o.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case o.signTransactionsRequest:this.signTransactions({event:e});break;case i.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=p(this.store.getState()),r=g(),n=new c({address:new l(t),data:new Uint8Array(Buffer.from(a))}),d=(await r.signMessage(n))?.signature??"";e.source?.postMessage({type:i.loginResponse,payload:{data:{address:t,signature:Buffer.from(d).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&this.handleLoginCancelled()}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:i.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=p(this.store.getState()),{message:t}=s;try{let r=new c({address:new l(a),data:new Uint8Array(Buffer.from(t))}),d=(await g().signMessage(r))?.signature??"";e.source?.postMessage({type:i.signMessageResponse,payload:{data:{signature:Buffer.from(d).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(n=>h.newFromPlainObject(n)),r=await s.signTransactions(t);e.source?.postMessage({type:i.signTransactionsResponse,payload:{data:r.map(n=>n.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{M as a};
|
|
2
|
-
//# sourceMappingURL=chunk-5EIUN6H3.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as l}from"./chunk-PL64ZI4J.mjs";import{a as p}from"./chunk-S7K3MC3O.mjs";import{u as c}from"./chunk-RNLXKFRP.mjs";import{b as d}from"./chunk-SAAOQW7P.mjs";import{a as v}from"./chunk-TI73UXGG.mjs";import{a}from"./chunk-S2FQWSUO.mjs";var i=class i extends p{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:e}=d(c());this.data={providers:this.getProvidersList(),walletAddress:e},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async e=>{!e?.isLoginFinished&&i.onClose&&i.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:o})=>{if(!i.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(i.loginHandler)?(await(await l.create({type:e,anchor:o})).login(),i.loginHandler()):i.loginHandler({type:e,anchor:o}),await this.handleCloseUI({isLoginFinished:!0})}catch(r){console.error(r),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await l.destroy()};this.isSimpleLoginCallback=e=>e.length===0;this.data=this.initialData}static getInstance(){return i.instance||(i.instance=new i),i.instance}static init(e){return this.loginHandler=e.loginHandler,this.allowedProviders=e.allowedProviders,e.onClose&&(this.onClose=e.onClose),this.getInstance()}getProvidersList(){let e=l.customProviders,r=[...Object.values(a).filter(n=>n!==a.none&&n!==a.webview),...e.map(n=>n.type)],P=e.reduce((n,t)=>(n[t.type]=t.name,n),{}),s={...v,...P};return(i.allowedProviders?i?.allowedProviders.filter(n=>r.includes(n)):r).map(n=>{let t=e.find(g=>g.type===n);return t||{name:n in s?s[n]:n,type:n}})}};i.loginHandler=null,i.onClose=null,i.allowedProviders=null;var u=i;export{u as a};
|
|
2
|
-
//# sourceMappingURL=chunk-5PFAZNIO.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/managers/UnlockPanelManager/UnlockPanelManager.ts"],
|
|
4
|
-
"sourcesContent": ["import { providerLabels } from 'constants/providerFactory.constants';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxUnlockPanel } from 'lib/sdkDappUi';\nimport { ProviderFactory } from 'providers/ProviderFactory';\nimport {\n IProviderBase,\n IProviderFactory,\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { networkSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport {\n OnCloseUnlockPanelType,\n LoginHandlerType,\n UnlockPanelEventsEnum,\n UnlockPanelManagerInitParamsType\n} from './UnlockPanelManager.types';\nimport { SidePanelBaseManager } from '../internal/SidePanelBaseManager';\n\ninterface IUnlockPanelManagerData {\n providers: IProviderBase[] | null;\n walletAddress: string | null;\n}\n\nexport class UnlockPanelManager extends SidePanelBaseManager<\n MvxUnlockPanel,\n IUnlockPanelManagerData,\n UnlockPanelEventsEnum\n> {\n protected initialData: IUnlockPanelManagerData = {\n providers: null,\n walletAddress: null\n };\n\n private static instance: UnlockPanelManager;\n private static loginHandler: LoginHandlerType | null = null;\n private static onClose: OnCloseUnlockPanelType | null = null;\n private static allowedProviders?: ProviderType[] | null = null;\n\n constructor() {\n super({\n uiTag: UITagsEnum.UNLOCK_PANEL,\n uiDataUpdateEvent: UnlockPanelEventsEnum.OPEN\n });\n\n this.data = this.initialData;\n }\n\n public static getInstance(): UnlockPanelManager {\n if (!UnlockPanelManager.instance) {\n UnlockPanelManager.instance = new UnlockPanelManager();\n }\n return UnlockPanelManager.instance;\n }\n\n public static init(params: UnlockPanelManagerInitParamsType) {\n this.loginHandler = params.loginHandler;\n this.allowedProviders = params.allowedProviders;\n\n if (params.onClose) {\n this.onClose = params.onClose;\n }\n\n return this.getInstance();\n }\n\n public openUnlockPanel = async () => {\n const { walletAddress } = networkSelector(getState());\n\n this.data = {\n providers: this.getProvidersList(),\n walletAddress\n };\n\n await this.openUI();\n this.notifyDataUpdate();\n };\n\n protected setupEventListeners = async () => {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(UnlockPanelEventsEnum.LOGIN, this.handleLogin);\n this.subscribeToEventBus(\n UnlockPanelEventsEnum.CANCEL_LOGIN,\n this.handleCancelLogin\n );\n this.subscribeToEventBus(UnlockPanelEventsEnum.CLOSE, this.handleCloseUI);\n };\n\n private readonly handleCloseUI = async (options?: {\n isLoginFinished?: boolean;\n }) => {\n if (!options?.isLoginFinished && UnlockPanelManager.onClose) {\n UnlockPanelManager.onClose();\n }\n\n this.closeUI();\n };\n\n private readonly handleLogin = async ({ type, anchor }: IProviderFactory) => {\n if (!UnlockPanelManager.loginHandler) {\n throw new Error(\n 'Login callback not initialized. Please call `init()` first.'\n );\n }\n\n try {\n if (this.isSimpleLoginCallback(UnlockPanelManager.loginHandler)) {\n const provider = await ProviderFactory.create({ type, anchor });\n await provider.login();\n UnlockPanelManager.loginHandler();\n } else {\n UnlockPanelManager.loginHandler({ type, anchor });\n }\n await this.handleCloseUI({ isLoginFinished: true });\n } catch (error) {\n console.error(error);\n this.eventBus?.publish(\n UnlockPanelEventsEnum.CANCEL_IN_PROVIDER,\n this.data\n );\n }\n };\n\n private readonly handleCancelLogin = async () => {\n await ProviderFactory.destroy();\n };\n\n private readonly isSimpleLoginCallback = (\n login: LoginHandlerType\n ): login is () => void => {\n const takesZeroArguments = login.length === 0;\n return takesZeroArguments;\n };\n\n private getProvidersList(): IProviderBase[] {\n const customProviders = ProviderFactory.customProviders;\n\n const defaultProviderTypes = Object.values(ProviderTypeEnum).filter(\n (type) =>\n type !== ProviderTypeEnum.none && type !== ProviderTypeEnum.webview\n );\n\n const allAvailableProviderTypes = [\n ...defaultProviderTypes,\n ...customProviders.map((p) => p.type)\n ];\n\n const customProviderLabels = customProviders.reduce(\n (acc, provider) => {\n acc[provider.type] = provider.name;\n return acc;\n },\n {} as Record<ProviderType, string>\n );\n\n const allAvailableLabels = {\n ...providerLabels,\n ...customProviderLabels\n };\n\n const allowedProviderTypes = UnlockPanelManager.allowedProviders\n ? UnlockPanelManager?.allowedProviders.filter((type) =>\n allAvailableProviderTypes.includes(type)\n )\n : allAvailableProviderTypes;\n\n const providerList = allowedProviderTypes.map((type) => {\n const custom = customProviders.find(\n (customProvider) => customProvider.type === type\n );\n if (custom) {\n return custom;\n }\n\n return {\n name: type in allAvailableLabels ? allAvailableLabels[type] : type,\n type\n };\n });\n\n return providerList;\n }\n}\n"],
|
|
5
|
-
"mappings": "iPAyBO,IAAMA,EAAN,MAAMA,UAA2BC,CAItC,CAWA,aAAc,CACZ,MAAM,CACJ,yBACA,wBACF,CAAC,EAdH,KAAU,YAAuC,CAC/C,UAAW,KACX,cAAe,IACjB,EAkCA,KAAO,gBAAkB,SAAY,CACnC,GAAM,CAAE,cAAAC,CAAc,EAAIC,EAAgBC,EAAS,CAAC,EAEpD,KAAK,KAAO,CACV,UAAW,KAAK,iBAAiB,EACjC,cAAAF,CACF,EAEA,MAAM,KAAK,OAAO,EAClB,KAAK,iBAAiB,CACxB,EAEA,KAAU,oBAAsB,SAAY,CACrC,KAAK,WAIV,KAAK,4BAAiD,KAAK,WAAW,EACtE,KAAK,mCAEH,KAAK,iBACP,EACA,KAAK,4BAAiD,KAAK,aAAa,EAC1E,EAEA,KAAiB,cAAgB,MAAOG,GAElC,CACA,CAACA,GAAS,iBAAmBL,EAAmB,SAClDA,EAAmB,QAAQ,EAG7B,KAAK,QAAQ,CACf,EAEA,KAAiB,YAAc,MAAO,CAAE,KAAAM,EAAM,OAAAC,CAAO,IAAwB,CAC3E,GAAI,CAACP,EAAmB,aACtB,MAAM,IAAI,MACR,6DACF,EAGF,GAAI,CACE,KAAK,sBAAsBA,EAAmB,YAAY,GAE5D,MADiB,MAAMQ,EAAgB,OAAO,CAAE,KAAAF,EAAM,OAAAC,CAAO,CAAC,GAC/C,MAAM,EACrBP,EAAmB,aAAa,GAEhCA,EAAmB,aAAa,CAAE,KAAAM,EAAM,OAAAC,CAAO,CAAC,EAElD,MAAM,KAAK,cAAc,CAAE,gBAAiB,EAAK,CAAC,CACpD,OAASE,EAAO,CACd,QAAQ,MAAMA,CAAK,EACnB,KAAK,UAAU,6BAEb,KAAK,IACP,CACF,CACF,EAEA,KAAiB,kBAAoB,SAAY,CAC/C,MAAMD,EAAgB,QAAQ,CAChC,EAEA,KAAiB,sBACfE,GAE2BA,EAAM,SAAW,EAxF5C,KAAK,KAAO,KAAK,WACnB,CAEA,OAAc,aAAkC,CAC9C,OAAKV,EAAmB,WACtBA,EAAmB,SAAW,IAAIA,GAE7BA,EAAmB,QAC5B,CAEA,OAAc,KAAKW,EAA0C,CAC3D,YAAK,aAAeA,EAAO,aAC3B,KAAK,iBAAmBA,EAAO,iBAE3BA,EAAO,UACT,KAAK,QAAUA,EAAO,SAGjB,KAAK,YAAY,CAC1B,CAyEQ,kBAAoC,CAC1C,IAAMC,EAAkBJ,EAAgB,gBAOlCK,EAA4B,CAChC,GAN2B,OAAO,OAAOC,CAAgB,EAAE,OAC1DR,GACCA,IAASQ,EAAiB,MAAQR,IAASQ,EAAiB,OAChE,EAIE,GAAGF,EAAgB,IAAKG,GAAMA,EAAE,IAAI,CACtC,EAEMC,EAAuBJ,EAAgB,OAC3C,CAACK,EAAKC,KACJD,EAAIC,EAAS,IAAI,EAAIA,EAAS,KACvBD,GAET,CAAC,CACH,EAEME,EAAqB,CACzB,GAAGC,EACH,GAAGJ,CACL,EAsBA,OApB6BhB,EAAmB,iBAC5CA,GAAoB,iBAAiB,OAAQM,GAC3CO,EAA0B,SAASP,CAAI,CACzC,EACAO,GAEsC,IAAKP,GAAS,CACtD,IAAMe,EAAST,EAAgB,KAC5BU,GAAmBA,EAAe,OAAShB,CAC9C,EACA,OAAIe,GAIG,CACL,KAAMf,KAAQa,EAAqBA,EAAmBb,CAAI,EAAIA,EAC9D,KAAAA,CACF,CACF,CAAC,CAGH,CACF,EAjKaN,EAWI,aAAwC,KAX5CA,EAYI,QAAyC,KAZ7CA,EAaI,iBAA2C,KAbrD,IAAMuB,EAANvB",
|
|
6
|
-
"names": ["_UnlockPanelManager", "SidePanelBaseManager", "walletAddress", "networkSelector", "getState", "options", "type", "anchor", "ProviderFactory", "error", "login", "params", "customProviders", "allAvailableProviderTypes", "ProviderTypeEnum", "p", "customProviderLabels", "acc", "provider", "allAvailableLabels", "providerLabels", "custom", "customProvider", "UnlockPanelManager"]
|
|
7
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as g}from"./chunk-Z36DGV3K.mjs";import{a as k}from"./chunk-FINVDQGG.mjs";import{s as f}from"./chunk-RNLXKFRP.mjs";import{d as b}from"./chunk-UERJ6AKK.mjs";import{c as n}from"./chunk-E26YTVSR.mjs";import{b as i}from"./chunk-GGBMHKR4.mjs";async function N(){let o=f(),I=g(),s=null,t=null,l=b(o.getState())?.timestamp,c=()=>{k()},u=()=>{s??=setInterval(c,I)},m=()=>{s&&(clearInterval(s),s=null)},p=()=>{m();let a=o.subscribe(({account:{websocketEvent:e}})=>{e?.message&&l!==e.timestamp&&(l=e.timestamp,c())});n.set("websocketEventReceived",a)},S=()=>{i.status!=="not_initialized"||t||(t=setInterval(()=>{i.status==="completed"&&(clearInterval(t),t=null,p())},1e3))};c();let r=()=>{m(),t&&(clearInterval(t),t=null)},v=o.subscribe(({account:{address:a},config:{websocketStatus:e}},T)=>{if(T.config.websocketStatus!==e)switch(e){case"completed":p();break;case"pending":u(),S();break;default:a?u():r();break}});return n.set("websocketStatusChanged",v),n.set("websocketEventReceived",r),{stopTransactionsTracking:r}}export{N as a};
|
|
2
|
-
//# sourceMappingURL=chunk-64YGT5EQ.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./chunk-JKR3KSKZ.mjs";import{a as f}from"./chunk-2GOJSBHM.mjs";import{a as g}from"./chunk-RJSOXNSA.mjs";import{b as a}from"./chunk-RNLXKFRP.mjs";import{c as s,g as r}from"./chunk-NTEMINYA.mjs";var v=async({signMessageCallback:m,nativeAuthClientConfig:o})=>{let{address:t}=u(),c=g(),i=f(o||c),e=await i.initialize({noCache:!!o});if(!e)return null;let h=new r({address:new s(t),data:Buffer.from(`${t}${e}`)}),n=await m(h,{});if(!n?.signature)throw"Message not signed";return a({loginToken:e,signature:Buffer.from(n.signature).toString("hex")}),i.getToken({address:t,token:e,signature:Buffer.from(n.signature).toString("hex")})};export{v as a};
|
|
2
|
-
//# sourceMappingURL=chunk-6K5K2OJF.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as h}from"./chunk-AZOEX4RJ.mjs";import{a as S}from"./chunk-3MEAYEOP.mjs";import{a as o}from"./chunk-FMQYLMTU.mjs";import{a as y}from"./chunk-MFUQ5NBC.mjs";import{b as i,c as f}from"./chunk-ITL2BSZK.mjs";import{l}from"./chunk-65L5EBBL.mjs";var u={};async function d({serverTransaction:e,sessionId:t,isSequential:c}){let{hash:a,status:r,results:m,invalidTransaction:n,hasStatusChanged:p}=e;try{if(u[a]>30){i({sessionId:t,status:"timedOut"}),await o({sessionId:t,status:"timedOut"});return}if(n&&!c||r==="sent"){u[a]=u[a]?u[a]+1:1;return}if(c&&!r){let s=f({sessionId:t,transaction:e});await o({sessionId:t,status:s});return}if(p){let s=f({sessionId:t,transaction:e});await o({sessionId:t,status:s})}l(r)&&await S({sessionId:t,hash:a,results:m})}catch(T){console.error(T),i({sessionId:t,status:"timedOut"}),await o({sessionId:t,status:"timedOut"})}}async function R({sessionId:e,transactionBatch:t,isSequential:c}){try{if(t==null)return;let a=y(t),r=await h(a);for(let n of r)await d({serverTransaction:n,sessionId:e,isSequential:c});if(r.every(n=>n.status!=="pending")){if(r.every(s=>s.status==="success"))return i({sessionId:e,status:"success"});if(r.some(s=>s.status==="fail"))return i({sessionId:e,status:"fail"});if(r.every(s=>s.invalidTransaction))return i({sessionId:e,status:"invalid"})}}catch(a){console.error(a)}}export{R as a};
|
|
2
|
-
//# sourceMappingURL=chunk-6QSDEIFP.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as I}from"./chunk-PJDJEPY2.mjs";import{a as l}from"./chunk-D5DPZ3O3.mjs";import{a as f}from"./chunk-CXEW3QBW.mjs";import{j as m,k as d,l as p,n as u}from"./chunk-65L5EBBL.mjs";import{a as T}from"./chunk-UBLZ4XV2.mjs";var q=async({toastList:S,transactionsSessions:g,account:o,existingCompletedTransactions:y=[]})=>{let n=[],a=[...y],r=l(),F=f();for(let t of S.transactionToasts){let e=g[t.toastId];if(!e?.status)continue;let{status:s,transactions:C,transactionsDisplayInfo:P}=e,x=await T({transactions:C,address:o.address,explorerAddress:r,egldLabel:F}),A=u(s),E=p(s),L=d(s),i=A||E||L,v=m(s),{startTime:R,endTime:b}=t;if(i&&a.some(h=>h.toastId===t.toastId))continue;let c=I({toastId:t.toastId,address:o.address,status:s,transactions:x,transactionsDisplayInfo:P,explorerAddress:r,startTime:R,endTime:b});i&&a.push(c),v&&n.push(c)}return{pendingTransactionToasts:n,completedTransactionToasts:a}};export{q as a};
|
|
2
|
-
//# sourceMappingURL=chunk-A3CN5JWD.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chunk-DCD7Z6NA.mjs";import o from"axios";var n="transactions/ppu";async function l(a,s){let r=`${e(s)}/${n}/${a}`;try{let{data:t}=await o.get(r);return t?{[a]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",r,t),null}}export{l as a};
|
|
2
|
-
//# sourceMappingURL=chunk-AFO4MJ3Y.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-DLWDO7M6.mjs";import{d as p}from"./chunk-PL64ZI4J.mjs";import{s as n}from"./chunk-PHBORH3K.mjs";import{u as m}from"./chunk-RNLXKFRP.mjs";import{d as t}from"./chunk-VNLGNNIL.mjs";import{a as e}from"./chunk-S2FQWSUO.mjs";import{a as f}from"./chunk-B3E34X2P.mjs";async function u(){let i=s(),o=f()||i?e.webview:t(m());if(!o)return;let r=await p.create({type:o});if(!r)throw new Error("Provider not found");(i||o===e.webview&&r.isInitialized())&&await r.login(),n(r)}export{u as a};
|
|
2
|
-
//# sourceMappingURL=chunk-AL3SMFKF.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-BHRUDWJV.mjs";import{a as o}from"./chunk-S2FQWSUO.mjs";import{a as e,b as t}from"./chunk-ZECWUL7N.mjs";import{WebviewProvider as a}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var n=class extends s{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(i){throw this.cancelAction(),i}};this.signMessage=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signMessage(r)}catch(i){throw this.cancelAction(),i}};this.provider=a.getInstance({resetStateCallback:()=>{e.localStorage?.clear?.(),e.sessionStorage?.clear?.()}}),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return o.webview}getAddress(){throw new Error("Method not implemented.")}setAccount(r){return this.provider.setAccount(r)}isInitialized(){return this.provider.isInitialized()}async initializeProvider(){let r=await this.provider.init(t);return this.address&&this.setAccount({address:this.address}),r}};export{n as a};
|
|
2
|
-
//# sourceMappingURL=chunk-ANRHXERH.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chunk-KELD3JME.mjs";var i=async a=>{let r=a.map(s=>s.hash),n=await e(r);return a.map(s=>{let t=n.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{i as a};
|
|
2
|
-
//# sourceMappingURL=chunk-AZOEX4RJ.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as i}from"./chunk-FKBLKOLI.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as o}from"./chunk-JKR3KSKZ.mjs";import{u as n}from"./chunk-RNLXKFRP.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";var w=async r=>{let{isGuarded:s}=o();if(!i({isGuarded:s,transactions:r}))return r;let a=r[0].getSender().bech32().toString(),{walletAddress:d}=e(n());return await(await t({address:a,walletUrl:d}))?.guardTransactions(r)||[]};export{w as a};
|
|
2
|
-
//# sourceMappingURL=chunk-B5DFRWKW.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as w}from"./chunk-YK7T6MBD.mjs";import{a as l}from"./chunk-KMJMQEXI.mjs";import{s as u}from"./chunk-RNLXKFRP.mjs";import{a as c}from"./chunk-SQVKVA7X.mjs";import{a as i}from"./chunk-ULUZWP2P.mjs";var e=o=>u().setState(({network:r})=>{r.network={...r.network,...o}},!1,"initializeNetworkConfig");var y=async({customNetworkConfig:o={},environment:r})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=r&&r in i,p=n?i[r]:{},s={...c,...p,...o},t={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await w(a),f=t.roundDuration?null:await l(a);if(f!=null&&(t.roundDuration=f.erd_round_duration),m!=null){let k={...t,...m,...o};return e(k),k}}return e(t),t};export{y as a,e as b};
|
|
2
|
-
//# sourceMappingURL=chunk-B5OM6BTD.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-FK73FOXL.mjs";async function g({originalLoginToken:i,extraInfoData:n,address:o}){let e=await t({loginToken:i,extraInfoData:n}),s=n.multisig||n.impersonate||o;return{address:e!=null?s:o,modifiedLoginToken:e}}export{g as a};
|
|
2
|
-
//# sourceMappingURL=chunk-BDAB6XQS.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-Q3WLMRWP.mjs";import{a as e}from"./chunk-QW3IVSVZ.mjs";import{a as i}from"./chunk-TI73UXGG.mjs";var a=class{constructor(o){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async o=>{if(!this._login)throw new Error("Provider is not initialized.");let r=await this._login(o);if(!r?.address)throw new Error("Provider is not initialized.");return{...r,address:r.address,signature:r.signature??""}};this.initializeAddress=()=>{if(this.address)return;let o=e();o&&(this.address=o)};this.cancelAction=void 0;this.address=o??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(o,r){throw new Error("Method not implemented.")}async login(o){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let r=new AbortController;this.loginAbortController=r;let t=r.signal;try{let n=new Promise((p,c)=>{t.addEventListener("abort",()=>{c(new Error("Login cancelled"))})}),l=await Promise.race([this.loginOperation(o),n]);return this.loginAbortController=null,l}catch(n){throw this.loginAbortController=null,n}}async initSignState(){let{onClose:o,manager:r}=await s({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return r.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),r.updateData({name:i[t],type:t}),{onClose:o,manager:r}}};export{a};
|
|
2
|
-
//# sourceMappingURL=chunk-BHRUDWJV.mjs.map
|