Skip to content

Commit bbfa8eb

Browse files
Merge pull request #224 from multiversx/development
0.0.29
2 parents 0003595 + 43f32ba commit bbfa8eb

File tree

6 files changed

+26
-17
lines changed

6 files changed

+26
-17
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [[0.0.29](https://github.com/multiversx/mx-sdk-dapp-ui/pull/223)] - 2025-09-22
11+
12+
- [Fixed stencil/core dependency and added hasCloseButton flag to custom toasts](https://github.com/multiversx/mx-sdk-dapp-ui/pull/222)
13+
1014
## [[0.0.28](https://github.com/multiversx/mx-sdk-dapp-ui/pull/220)] - 2025-09-19
1115

1216
- [Added testIds on toast details](https://github.com/multiversx/mx-sdk-dapp-ui/pull/221)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@multiversx/sdk-dapp-ui",
3-
"version": "0.0.28",
3+
"version": "0.0.29",
44
"description": "A library to hold UI components for a dApp on the MultiversX blockchain",
55
"author": "MultiversX",
66
"license": "MIT",
@@ -82,14 +82,14 @@
8282
"dependencies": {
8383
"@fortawesome/fontawesome-svg-core": ">=6.7.2",
8484
"@fortawesome/free-solid-svg-icons": ">=6.7.2",
85+
"@stencil/core": "^4.36.2",
8586
"classnames": ">=2.5.1",
8687
"lodash.capitalize": "^4.2.1",
8788
"lodash.inrange": "^3.3.0",
8889
"lodash.range": "^3.2.0",
8990
"qrcode": ">=1.5.4"
9091
},
9192
"devDependencies": {
92-
"@stencil/core": "^4.36.2",
9393
"sass-embedded": "^1.85.1",
9494
"storybook": "^9.1.3",
9595
"@stencil/storybook-plugin": "^0.4.2",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/functional/toasts-list/components/custom-toast/components/custom-create-toast/custom-toast.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ export class CustomToast {
2020
render() {
2121
return (
2222
<div class="toast-wrapper" data-testid={DataTestIdsEnum.transactionToastContent}>
23-
<button
24-
onClick={this.handleDeleteToast.bind(this)}
25-
type="button"
26-
class="icon-close"
27-
innerHTML={getIconHtmlFromIconDefinition(faTimes)}
28-
></button>
23+
{this.toast.hasCloseButton !== false && (
24+
<button
25+
onClick={this.handleDeleteToast.bind(this)}
26+
type="button"
27+
class="icon-close"
28+
innerHTML={getIconHtmlFromIconDefinition(faTimes)}
29+
/>
30+
)}
2931
<div class="toast-body" ref={container => this.initializeToast(container)}></div>
3032
</div>
3133
);

src/components/functional/toasts-list/components/custom-toast/components/simple-toast/simple-toast.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@ export class SimpleToast {
5959
{title}
6060
</h5>
6161
)}
62-
<button
63-
onClick={this.handleDeleteToast.bind(this)}
64-
type="button"
65-
class="icon-close"
66-
innerHTML={getIconHtmlFromIconDefinition(faTimes)}
67-
></button>
62+
{this.toast.hasCloseButton !== false && (
63+
<button
64+
onClick={this.handleDeleteToast.bind(this)}
65+
type="button"
66+
class="icon-close"
67+
innerHTML={getIconHtmlFromIconDefinition(faTimes)}
68+
/>
69+
)}
6870
</div>
6971
{subtitle && <div class="subtitle">{subtitle}</div>}
7072
{message && (

src/components/functional/toasts-list/components/transaction-toast/transaction-toast.type.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ interface ISharedCustomToast {
2929
toastId: string;
3030
type?: string;
3131
onClose?: () => void;
32+
hasCloseButton?: boolean;
3233
}
3334

3435
export interface ISimpleToast extends ISharedCustomToast {

0 commit comments

Comments
 (0)