@ichicraft/widgets-widget-base 1.16.0 → 1.16.2

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 CHANGED
@@ -9,6 +9,14 @@ 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.2 - 2026-03-25
13
+
14
+ - Fixed issue with using internal library `@ic/caching` by publishing caching library as public (`@ichicraft/caching`)
15
+
16
+ ## 1.16.1 - 2026-03-19
17
+
18
+ - Addition of `notificationBadgeCount` property to `CommandBarItemProps` to allow for a number to be displayed in the badge
19
+
12
20
  ## 1.16.0 - 2026-03-09
13
21
 
14
22
  - Addition of `cache` property to `instance`, `variant` and `manifest` level of `WidgetContext` to centralize cache handling and functionality
package/lib/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export { default as BaseWidget } from './BaseWidget';
2
2
  export * from './types';
3
- export type { CacheManager, SyncStore, AsyncStore, PutOptions } from '@ic/caching';
@@ -1,4 +1,4 @@
1
- import type { CacheManager } from '@ic/caching';
1
+ import type { CacheManager } from '@ichicraft/caching';
2
2
  import type { Client } from '@microsoft/microsoft-graph-client';
3
3
  import type { AadHttpClientFactory, AadTokenProviderFactory, SPHttpClient, SPHttpClientConfiguration } from '@microsoft/sp-http';
4
4
  import type { SPFI } from '@pnp/sp/presets/all';
@@ -791,9 +791,15 @@ export interface CommandBarItemProps {
791
791
  */
792
792
  label?: string;
793
793
  /**
794
- * Optionally display a red notification icon badge in the top-right corner of the button.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.16.0",
3
+ "version": "1.16.2",
4
4
  "description": "Part of the Widget Development Kit for building widgets for Ichicraft Boards",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "widgets"
15
15
  ],
16
16
  "author": "Ichicraft",
17
- "license": "ISC",
17
+ "license": "UNLICENSED",
18
18
  "files": [
19
19
  "lib/**/*"
20
20
  ],
@@ -24,7 +24,7 @@
24
24
  "z-schema@<5.0.5": "5.0.5"
25
25
  },
26
26
  "dependencies": {
27
- "@ic/caching": "~0.0.2",
27
+ "@ichicraft/caching": "~1.0.2",
28
28
  "@microsoft/microsoft-graph-client": "3.0.2",
29
29
  "@microsoft/sp-http": "1.18.2",
30
30
  "@pnp/sp": "4.0.1"