diff --git a/docs/microfrontend-composer/back-kit/60_components/460_notifications.md b/docs/microfrontend-composer/back-kit/60_components/460_notifications.md index d8b1535b8f..6d6f6cb27d 100644 --- a/docs/microfrontend-composer/back-kit/60_components/460_notifications.md +++ b/docs/microfrontend-composer/back-kit/60_components/460_notifications.md @@ -116,6 +116,43 @@ type Locale = { where [LocalizedText][localized-text] is either a string or an object mapping language acronyms to strings. +It is possible to interpolate the title and content of the notification with the field of the HTTP response. + +For example: + +```json +{ + "tag": "bk-notifications", + "properties": { + "successEventMap": { + "create-data": { + "title": { + "en": "Data was created correctly with id:{{_id}}!", + "it": "Dato creato correttamente con id: {{_id}}!" + }, + "content": { + "en": "The data has been created correctly", + "it": "I dati sono stati creati correttamente" + }, + "type": "success" + } + } + } +} +``` + +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}}`. + +Example of error response: + +```json +{ + "status": 404, + "message": "Not found" +} +``` + +To interpolate the status you have to use `{{error.status}}`, to interpolate the error message you have to use: `{{error.message}}`. ## Examples diff --git a/docs/microfrontend-composer/back-kit/changelog.md b/docs/microfrontend-composer/back-kit/changelog.md index ac09698ed5..b9973c6cc2 100644 --- a/docs/microfrontend-composer/back-kit/changelog.md +++ b/docs/microfrontend-composer/back-kit/changelog.md @@ -15,8 +15,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.5.18] - 2025-06-06 + +### Added + +- added prop interpolation with HTTP response values in `bk-notifications` component. + +### Fixed + +- Fixed `bk-table` columns when Chrome version is 136 or above. + ## [1.5.17] - 2025-05-07 +### Fixed + - added prop `validateForm` to custom footer button under the `actions` section for validating a form. ## [1.5.16] - 2025-03-03 @@ -78,7 +90,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- fixed csv export option of column names as field IDs of labels +- fixed csv export option of column names as field IDs of labels ## [1.5.7] - 2024-09-20 @@ -348,7 +360,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Manifest of component `bk-expanded-filters` includes property `readFromUrl` - Manifest of component `bk-file-picker-modal` is available - ## [1.3.14] - 2023-06-15 ### Added