diff --git a/CHANGELOG.md b/CHANGELOG.md index a522cc895..fec5aa563 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [[5.6.4](https://github.com/multiversx/mx-sdk-dapp/pull/1713)] - 2026-01-19 + +- [Added missing Redux action names](https://github.com/multiversx/mx-sdk-dapp/pull/1712) +- [Exposed walletConnect URI and deepLink data](https://github.com/multiversx/mx-sdk-dapp/pull/1711) + ## [[5.6.3](https://github.com/multiversx/mx-sdk-dapp/pull/1710)] - 2026-01-15 - [Update minimum version for sdk-dapp-ui](https://github.com/multiversx/mx-sdk-dapp/pull/1709) diff --git a/package.json b/package.json index d4b7062c4..0a940a15b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-dapp", - "version": "5.6.3", + "version": "5.6.4", "description": "A library to hold the main logic for a dapp on the MultiversX blockchain", "author": "MultiversX", "license": "MIT", diff --git a/src/managers/internal/WalletConnectStateManager/WalletConnectStateManager.ts b/src/managers/internal/WalletConnectStateManager/WalletConnectStateManager.ts index be839d115..08a487382 100644 --- a/src/managers/internal/WalletConnectStateManager/WalletConnectStateManager.ts +++ b/src/managers/internal/WalletConnectStateManager/WalletConnectStateManager.ts @@ -34,6 +34,10 @@ export class WalletConnectStateManager extends UIBaseManager< this.data = { ...this.initialData }; } + public get walletConnectData(): IWalletConnectModalData { + return { ...this.data }; + } + public handleClose(options?: { isLoginFinished?: boolean }) { if (options?.isLoginFinished) { return; diff --git a/src/store/actions/cache/cacheActions.ts b/src/store/actions/cache/cacheActions.ts index fc58ae90e..b92aaedaf 100644 --- a/src/store/actions/cache/cacheActions.ts +++ b/src/store/actions/cache/cacheActions.ts @@ -40,6 +40,12 @@ export const clearCache = () => { }); }, false, - 'clearCache' + { + type: 'clearCache', + // @ts-ignore + payload: { + value: null + } + } ); }; diff --git a/src/store/actions/config/configActions.ts b/src/store/actions/config/configActions.ts index dcc233af8..d29a424d2 100644 --- a/src/store/actions/config/configActions.ts +++ b/src/store/actions/config/configActions.ts @@ -90,6 +90,10 @@ export const setIsSigningUiEnabled = (isEnabled: boolean) => }, false, { - type: 'setIsSigningUiEnabled' + type: 'setIsSigningUiEnabled', + // @ts-ignore + payload: { + value: isEnabled + } } ); diff --git a/src/store/actions/sharedActions/sharedActions.ts b/src/store/actions/sharedActions/sharedActions.ts index 328a8b89a..b1fefdf14 100644 --- a/src/store/actions/sharedActions/sharedActions.ts +++ b/src/store/actions/sharedActions/sharedActions.ts @@ -3,7 +3,14 @@ import { ProviderType } from 'providers/types/providerFactory.types'; import { resetStore } from 'store/middleware/logoutMiddleware'; import { getStore } from 'store/store'; -export const logoutAction = () => getStore().setState(resetStore); +export const logoutAction = () => + getStore().setState(resetStore, false, { + type: 'logoutAction', + // @ts-ignore + payload: { + value: null + } + }); export interface LoginActionPayloadType { address: string; providerType: T; diff --git a/src/store/actions/toasts/toastsActions.ts b/src/store/actions/toasts/toastsActions.ts index 41e391e44..ef2ff664d 100644 --- a/src/store/actions/toasts/toastsActions.ts +++ b/src/store/actions/toasts/toastsActions.ts @@ -98,9 +98,19 @@ export const removeAllCustomToasts = () => { }; export const removeAllTransactionToasts = () => { - getStore().setState(({ toasts: state }) => { - state.transactionToasts = []; - }); + getStore().setState( + ({ toasts: state }) => { + state.transactionToasts = []; + }, + false, + { + type: 'removeAllTransactionToasts', + // @ts-ignore + payload: { + value: null + } + } + ); }; export const addTransactionToast = ({ @@ -130,7 +140,13 @@ export const addTransactionToast = ({ }); }, false, - 'addTransactionToast' + { + type: 'addTransactionToast', + // @ts-ignore + payload: { + value: { toastId, totalDuration } + } + } ); return newToastId; @@ -144,7 +160,13 @@ export const removeTransactionToast = (toastId: string) => { }); }, false, - 'removeTransactionToast' + { + type: 'removeTransactionToast', + // @ts-ignore + payload: { + value: toastId + } + } ); delete customToastCloseHandlersDictionary[toastId]; @@ -193,7 +215,13 @@ export const createCustomToast = (props: CustomToastType) => { } }, false, - 'createCustomToast' + { + type: 'createCustomToast', + // @ts-ignore + payload: { + value: props + } + } ); return toastId; diff --git a/src/store/middleware/logoutMiddleware.ts b/src/store/middleware/logoutMiddleware.ts index c701586be..bb61e1759 100644 --- a/src/store/middleware/logoutMiddleware.ts +++ b/src/store/middleware/logoutMiddleware.ts @@ -59,6 +59,12 @@ export const logoutMiddleware = (state: StoreType) => { if (isExpired) { // logout setLoginExpiresAt(null); - getStore().setState(resetStore); + getStore().setState(resetStore, false, { + type: 'logoutMiddleware', + // @ts-ignore + payload: { + value: null + } + }); } };