@gitlab/ui 101.0.1 → 101.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [101.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v101.0.1...v101.1.0) (2024-10-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **toast:** Accept 'autoHideDelay' as an option argument for toast ([016b159](https://gitlab.com/gitlab-org/gitlab-ui/commit/016b159a6fd22bef51429e88fbb1367c377d8d84))
|
|
7
|
+
|
|
1
8
|
## [101.0.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v101.0.0...v101.0.1) (2024-10-29)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -50,8 +50,12 @@ function showToast(message) {
|
|
|
50
50
|
};
|
|
51
51
|
this.$root.$on('bv::toast:hidden', toastHiddenCallback);
|
|
52
52
|
}
|
|
53
|
+
const updatedAutoHideDelay = !Number.isNaN(options === null || options === void 0 ? void 0 : options.autoHideDelay) ? {
|
|
54
|
+
autoHideDelay: options.autoHideDelay
|
|
55
|
+
} : null;
|
|
53
56
|
this.$bvToast.toast(message, {
|
|
54
57
|
...DEFAULT_OPTIONS,
|
|
58
|
+
...updatedAutoHideDelay,
|
|
55
59
|
id,
|
|
56
60
|
title: renderTitle(this.$createElement, toast, options)
|
|
57
61
|
});
|
package/package.json
CHANGED
|
@@ -63,8 +63,13 @@ function showToast(message, options = {}) {
|
|
|
63
63
|
this.$root.$on('bv::toast:hidden', toastHiddenCallback);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
const updatedAutoHideDelay = !Number.isNaN(options?.autoHideDelay)
|
|
67
|
+
? { autoHideDelay: options.autoHideDelay }
|
|
68
|
+
: null;
|
|
69
|
+
|
|
66
70
|
this.$bvToast.toast(message, {
|
|
67
71
|
...DEFAULT_OPTIONS,
|
|
72
|
+
...updatedAutoHideDelay,
|
|
68
73
|
id,
|
|
69
74
|
title: renderTitle(this.$createElement, toast, options),
|
|
70
75
|
});
|