@multiversx/sdk-dapp 5.0.0-alpha.1 → 5.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/out/__chunks__/{chunk-SHNEF3SC.mjs → chunk-3XS5MAKS.mjs} +2 -2
  2. package/out/__chunks__/{chunk-EXLTOUB5.mjs → chunk-6PTI5SU2.mjs} +2 -2
  3. package/out/__chunks__/{chunk-AL42X4Q3.mjs → chunk-CUF7MTDG.mjs} +2 -2
  4. package/out/__chunks__/{chunk-W2WAVVF5.mjs → chunk-DHLQNKB7.mjs} +2 -2
  5. package/out/__chunks__/{chunk-FJIH6TWP.mjs → chunk-HOVFLZIM.mjs} +2 -2
  6. package/out/__chunks__/{chunk-OBRX5K2D.mjs → chunk-IGKQDUHE.mjs} +2 -2
  7. package/out/__chunks__/{chunk-GUG3HFGL.mjs → chunk-IGUBISXF.mjs} +2 -2
  8. package/out/__chunks__/{chunk-EFVHT26M.mjs → chunk-LAWWSFCA.mjs} +2 -2
  9. package/out/__chunks__/chunk-LLMOP5KI.mjs +2 -0
  10. package/out/__chunks__/chunk-LLMOP5KI.mjs.map +7 -0
  11. package/out/__chunks__/{chunk-DZ5L5MZT.mjs → chunk-R7SGL2HW.mjs} +1 -1
  12. package/out/__chunks__/chunk-R7SGL2HW.mjs.map +7 -0
  13. package/out/__chunks__/{chunk-7JA77EJQ.mjs → chunk-S24E3INP.mjs} +2 -2
  14. package/out/__chunks__/chunk-SGPG7AHK.mjs +2 -0
  15. package/out/__chunks__/{chunk-OYZFSQEK.mjs → chunk-SM5IXWZT.mjs} +2 -2
  16. package/out/__chunks__/{chunk-U5GPHLUX.mjs → chunk-SY63TM6N.mjs} +2 -2
  17. package/out/__chunks__/chunk-TYG6E3LZ.mjs +2 -0
  18. package/out/__chunks__/chunk-TYG6E3LZ.mjs.map +7 -0
  19. package/out/__chunks__/{chunk-NJ73RJ4B.mjs → chunk-XS3SFPZ6.mjs} +2 -2
  20. package/out/__chunks__/{chunk-O4J75OI6.mjs → chunk-YRLMECJT.mjs} +2 -2
  21. package/out/__chunks__/{chunk-XG2BS23C.mjs → chunk-ZYZ7BDOH.mjs} +2 -2
  22. package/out/index.mjs +1 -1
  23. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  24. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  25. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  26. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  27. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  28. package/out/managers/TransactionManager/index.mjs +1 -1
  29. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  30. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  31. package/out/managers/index.mjs +1 -1
  32. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  33. package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
  34. package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
  35. package/out/managers/internal/index.mjs +1 -1
  36. package/out/methods/account/getLatestNonce.js.map +1 -1
  37. package/out/methods/account/getLatestNonce.mjs +1 -1
  38. package/out/methods/initApp/initApp.mjs +1 -1
  39. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  40. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  41. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  42. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  43. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  44. package/out/providers/DappProvider/index.mjs +1 -1
  45. package/out/providers/ProviderFactory.mjs +1 -1
  46. package/out/providers/helpers/accountProvider.mjs +1 -1
  47. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  48. package/out/providers/helpers/restoreProvider.mjs +1 -1
  49. package/out/providers/index.mjs +1 -1
  50. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  51. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
  52. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
  53. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
  54. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  55. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  56. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  57. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  58. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  59. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  60. package/out/providers/strategies/index.mjs +1 -1
  61. package/out/react/account/useGetAccount.js.map +1 -1
  62. package/out/react/account/useGetAccount.mjs +1 -1
  63. package/out/react/account/useGetAccount.mjs.map +2 -2
  64. package/out/react/account/useGetAccountInfo.js.map +1 -1
  65. package/out/react/account/useGetAccountInfo.mjs +1 -1
  66. package/out/react/account/useGetAccountInfo.mjs.map +2 -2
  67. package/out/react/account/useGetIsLoggedIn.js.map +1 -1
  68. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  69. package/out/react/account/useGetIsLoggedIn.mjs.map +2 -2
  70. package/out/react/account/useGetLatestNonce.js.map +1 -1
  71. package/out/react/account/useGetLatestNonce.mjs +1 -1
  72. package/out/react/account/useGetLatestNonce.mjs.map +2 -2
  73. package/out/react/index.mjs +1 -1
  74. package/out/react/loginInfo/useGetLoginInfo.js.map +1 -1
  75. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  76. package/out/react/loginInfo/useGetLoginInfo.mjs.map +2 -2
  77. package/out/react/network/useGetNetworkConfig.js.map +1 -1
  78. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  79. package/out/react/network/useGetNetworkConfig.mjs.map +2 -2
  80. package/out/react/store/getReactStore.js +1 -1
  81. package/out/react/store/getReactStore.js.map +1 -1
  82. package/out/react/store/getReactStore.mjs +1 -1
  83. package/out/react/store/getReactStore.mjs.map +4 -4
  84. package/out/react/store/useSelector.js +1 -1
  85. package/out/react/store/useSelector.js.map +1 -1
  86. package/out/react/store/useSelector.mjs +1 -1
  87. package/out/react/transactions/useGetPendingTransactions.js.map +1 -1
  88. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  89. package/out/react/transactions/useGetPendingTransactions.mjs.map +2 -2
  90. package/out/react/transactions/useGetPendingTransactionsSessions.js.map +1 -1
  91. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  92. package/out/react/transactions/useGetPendingTransactionsSessions.mjs.map +2 -2
  93. package/out/react/transactions/useGetTransactionSessions.js.map +1 -1
  94. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  95. package/out/react/transactions/useGetTransactionSessions.mjs.map +2 -2
  96. package/out/store/actions/index.mjs +1 -1
  97. package/out/store/actions/toasts/index.mjs +1 -1
  98. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  99. package/out/utils/account/index.mjs +1 -1
  100. package/out/utils/account/refreshAccount.mjs +1 -1
  101. package/out/utils/index.mjs +1 -1
  102. package/package.json +1 -1
  103. package/out/__chunks__/chunk-DZ5L5MZT.mjs.map +0 -7
  104. package/out/__chunks__/chunk-PV5A7PX4.mjs +0 -2
  105. package/out/__chunks__/chunk-UBD2YVBI.mjs +0 -2
  106. package/out/__chunks__/chunk-UBD2YVBI.mjs.map +0 -7
  107. /package/out/__chunks__/{chunk-SHNEF3SC.mjs.map → chunk-3XS5MAKS.mjs.map} +0 -0
  108. /package/out/__chunks__/{chunk-EXLTOUB5.mjs.map → chunk-6PTI5SU2.mjs.map} +0 -0
  109. /package/out/__chunks__/{chunk-AL42X4Q3.mjs.map → chunk-CUF7MTDG.mjs.map} +0 -0
  110. /package/out/__chunks__/{chunk-W2WAVVF5.mjs.map → chunk-DHLQNKB7.mjs.map} +0 -0
  111. /package/out/__chunks__/{chunk-FJIH6TWP.mjs.map → chunk-HOVFLZIM.mjs.map} +0 -0
  112. /package/out/__chunks__/{chunk-OBRX5K2D.mjs.map → chunk-IGKQDUHE.mjs.map} +0 -0
  113. /package/out/__chunks__/{chunk-GUG3HFGL.mjs.map → chunk-IGUBISXF.mjs.map} +0 -0
  114. /package/out/__chunks__/{chunk-EFVHT26M.mjs.map → chunk-LAWWSFCA.mjs.map} +0 -0
  115. /package/out/__chunks__/{chunk-7JA77EJQ.mjs.map → chunk-S24E3INP.mjs.map} +0 -0
  116. /package/out/__chunks__/{chunk-PV5A7PX4.mjs.map → chunk-SGPG7AHK.mjs.map} +0 -0
  117. /package/out/__chunks__/{chunk-OYZFSQEK.mjs.map → chunk-SM5IXWZT.mjs.map} +0 -0
  118. /package/out/__chunks__/{chunk-U5GPHLUX.mjs.map → chunk-SY63TM6N.mjs.map} +0 -0
  119. /package/out/__chunks__/{chunk-NJ73RJ4B.mjs.map → chunk-XS3SFPZ6.mjs.map} +0 -0
  120. /package/out/__chunks__/{chunk-O4J75OI6.mjs.map → chunk-YRLMECJT.mjs.map} +0 -0
  121. /package/out/__chunks__/{chunk-XG2BS23C.mjs.map → chunk-ZYZ7BDOH.mjs.map} +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/methods/account/getLatestNonce.ts"],
4
- "sourcesContent": ["import { accountNonceSelector } from 'store/selectors/accountSelectors';\nimport { transactionsSliceSelector } from 'store/selectors/transactionsSelector';\nimport { getState } from 'store/store';\nimport { AccountType } from 'types/account.types';\n\nexport function getLatestNonce(apiAccount: AccountType | null) {\n const state = getState();\n const transactionsSessions = transactionsSliceSelector(state);\n const currentAccountNonce = accountNonceSelector(state);\n\n // Get the max transactions nonce\n let lastTransactionNonce = Object.keys(transactionsSessions)\n .map(Number) // Convert keys to numbers (timestamps)\n .reduce((maxNonce, timestamp) => {\n const transactions = transactionsSessions[timestamp]?.transactions || [];\n return Math.max(maxNonce, ...transactions.map((tx) => tx.nonce), 0);\n }, 0);\n\n if (lastTransactionNonce > 0) {\n lastTransactionNonce += 1; // Increment only if there's at least one pending transaction\n }\n\n if (apiAccount == null) {\n const currentStoreNonce = Math.max(\n lastTransactionNonce,\n currentAccountNonce\n );\n return currentStoreNonce;\n }\n\n const currentNonce = Math.max(\n lastTransactionNonce || apiAccount.nonce,\n currentAccountNonce\n );\n\n return currentNonce;\n}\n"],
5
- "mappings": "2HAKO,SAASA,EAAeC,EAAgC,CAC7D,IAAMC,EAAQC,EAAS,EACjBC,EAAuBC,EAA0BH,CAAK,EACtDI,EAAsBC,EAAqBL,CAAK,EAGlDM,EAAuB,OAAO,KAAKJ,CAAoB,EACxD,IAAI,MAAM,EACV,OAAO,CAACK,EAAUC,IAAc,CAC/B,IAAMC,EAAeP,EAAqBM,CAAS,GAAG,cAAgB,CAAC,EACvE,OAAO,KAAK,IAAID,EAAU,GAAGE,EAAa,IAAKC,GAAOA,EAAG,KAAK,EAAG,CAAC,CACpE,EAAG,CAAC,EAMN,OAJIJ,EAAuB,IACzBA,GAAwB,GAGtBP,GAAc,KACU,KAAK,IAC7BO,EACAF,CACF,EAImB,KAAK,IACxBE,GAAwBP,EAAW,MACnCK,CACF,CAGF",
6
- "names": ["getLatestNonce", "apiAccount", "state", "getState", "transactionsSessions", "transactionsSliceSelector", "currentAccountNonce", "accountNonceSelector", "lastTransactionNonce", "maxNonce", "timestamp", "transactions", "tx"]
7
- }
@@ -1,2 +0,0 @@
1
- import{p as i}from"./chunk-7JA77EJQ.mjs";var e=async()=>{let o=i();if(o.getType()==="crossWindow"){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
2
- //# sourceMappingURL=chunk-PV5A7PX4.mjs.map
@@ -1,2 +0,0 @@
1
- import{getReactStore as e}from"../react/store/getReactStore";function S(t){return e()(t)}export{S as a};
2
- //# sourceMappingURL=chunk-UBD2YVBI.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/react/store/useSelector.ts"],
4
- "sourcesContent": ["import { getReactStore } from 'react/store/getReactStore';\nimport { StoreType } from 'store/store.types';\n\ntype ExtractState<S> = S extends { getState: () => infer T } ? T : StoreType;\n\nexport function useSelector<T>(\n selector: (state: ExtractState<StoreType>) => T\n) {\n const useStore = getReactStore();\n return useStore(selector);\n}\n"],
5
- "mappings": "AAAA,OAAS,iBAAAA,MAAqB,4BAKvB,SAASC,EACdC,EACA,CAEA,OADiBF,EAAc,EACfE,CAAQ,CAC1B",
6
- "names": ["getReactStore", "useSelector", "selector"]
7
- }