@ichicraft/widgets-widget-base 1.16.0 → 1.16.1
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/README.md +4 -0
- package/lib/types/index.d.ts +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,10 @@ All notable changes to this project will be documented here.
|
|
|
9
9
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
10
10
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
11
11
|
|
|
12
|
+
## 1.16.1 - 2026-03-19
|
|
13
|
+
|
|
14
|
+
- Addition of `notificationBadgeCount` property to `CommandBarItemProps` to allow for a number to be displayed in the badge
|
|
15
|
+
|
|
12
16
|
## 1.16.0 - 2026-03-09
|
|
13
17
|
|
|
14
18
|
- Addition of `cache` property to `instance`, `variant` and `manifest` level of `WidgetContext` to centralize cache handling and functionality
|
package/lib/types/index.d.ts
CHANGED
|
@@ -791,9 +791,15 @@ export interface CommandBarItemProps {
|
|
|
791
791
|
*/
|
|
792
792
|
label?: string;
|
|
793
793
|
/**
|
|
794
|
-
* Optionally display a
|
|
794
|
+
* Optionally display a badge in the top-right corner of the button.
|
|
795
|
+
* Optionally use in conjunction with notificationBadgeCount to display a number inside the badge.
|
|
795
796
|
*/
|
|
796
797
|
showNotificationBadge?: boolean;
|
|
798
|
+
/**
|
|
799
|
+
* Optional count to display in the notification badge.
|
|
800
|
+
* Only applies when showNotificationBadge is true, and will be truncated to "99+" when the count exceeds 99.
|
|
801
|
+
*/
|
|
802
|
+
notificationBadgeCount?: number;
|
|
797
803
|
/**
|
|
798
804
|
* Optional severity to specify how the item should render
|
|
799
805
|
*/
|
package/package.json
CHANGED