Skip to content
Merged

5.6.4 #1713

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 7 additions & 1 deletion src/store/actions/cache/cacheActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export const clearCache = () => {
});
},
false,
'clearCache'
{
type: 'clearCache',
// @ts-ignore
payload: {
value: null
}
}
);
};
6 changes: 5 additions & 1 deletion src/store/actions/config/configActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export const setIsSigningUiEnabled = (isEnabled: boolean) =>
},
false,
{
type: 'setIsSigningUiEnabled'
type: 'setIsSigningUiEnabled',
// @ts-ignore
payload: {
value: isEnabled
}
}
);
9 changes: 8 additions & 1 deletion src/store/actions/sharedActions/sharedActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends ProviderType = ProviderType> {
address: string;
providerType: T;
Expand Down
40 changes: 34 additions & 6 deletions src/store/actions/toasts/toastsActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ({
Expand Down Expand Up @@ -130,7 +140,13 @@ export const addTransactionToast = ({
});
},
false,
'addTransactionToast'
{
type: 'addTransactionToast',
// @ts-ignore
payload: {
value: { toastId, totalDuration }
}
}
);

return newToastId;
Expand All @@ -144,7 +160,13 @@ export const removeTransactionToast = (toastId: string) => {
});
},
false,
'removeTransactionToast'
{
type: 'removeTransactionToast',
// @ts-ignore
payload: {
value: toastId
}
}
);

delete customToastCloseHandlersDictionary[toastId];
Expand Down Expand Up @@ -193,7 +215,13 @@ export const createCustomToast = (props: CustomToastType) => {
}
},
false,
'createCustomToast'
{
type: 'createCustomToast',
// @ts-ignore
payload: {
value: props
}
}
);

return toastId;
Expand Down
8 changes: 7 additions & 1 deletion src/store/middleware/logoutMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
});
}
};