Skip to content

Commit 87596dc

Browse files
authored
chore(docs): update Back Kit documentation (#2137)
* chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation * chore(docs): update Back Kit documentation
1 parent 87f986d commit 87596dc

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

docs/microfrontend-composer/back-kit/60_components/460_notifications.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,43 @@ type Locale = {
116116
117117
where [LocalizedText][localized-text] is either a string or an object mapping language acronyms to strings.
118118
119+
It is possible to interpolate the title and content of the notification with the field of the HTTP response.
120+
121+
For example:
122+
123+
```json
124+
{
125+
"tag": "bk-notifications",
126+
"properties": {
127+
"successEventMap": {
128+
"create-data": {
129+
"title": {
130+
"en": "Data was created correctly with id:{{_id}}!",
131+
"it": "Dato creato correttamente con id: {{_id}}!"
132+
},
133+
"content": {
134+
"en": "The data has been created correctly",
135+
"it": "I dati sono stati creati correttamente"
136+
},
137+
"type": "success"
138+
}
139+
}
140+
}
141+
}
142+
```
143+
144+
In the case of an error type notification, the interpolation must have the keyword error before the field of the response, such as `{{error.status}}`.
145+
146+
Example of error response:
147+
148+
```json
149+
{
150+
"status": 404,
151+
"message": "Not found"
152+
}
153+
```
154+
155+
To interpolate the status you have to use `{{error.status}}`, to interpolate the error message you have to use: `{{error.message}}`.
119156
120157
## Examples
121158

docs/microfrontend-composer/back-kit/changelog.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,20 @@ All notable changes to this project will be documented in this file.
1515
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1616
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1717

18+
## [1.5.18] - 2025-06-06
19+
20+
### Added
21+
22+
- added prop interpolation with HTTP response values in `bk-notifications` component.
23+
24+
### Fixed
25+
26+
- Fixed `bk-table` columns when Chrome version is 136 or above.
27+
1828
## [1.5.17] - 2025-05-07
1929

30+
### Fixed
31+
2032
- added prop `validateForm` to custom footer button under the `actions` section for validating a form.
2133

2234
## [1.5.16] - 2025-03-03
@@ -78,7 +90,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7890

7991
### Fixed
8092

81-
- fixed csv export option of column names as field IDs of labels
93+
- fixed csv export option of column names as field IDs of labels
8294

8395
## [1.5.7] - 2024-09-20
8496

@@ -348,7 +360,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
348360
- Manifest of component `bk-expanded-filters` includes property `readFromUrl`
349361
- Manifest of component `bk-file-picker-modal` is available
350362

351-
352363
## [1.3.14] - 2023-06-15
353364

354365
### Added

0 commit comments

Comments
 (0)