@ichicraft/widgets-widget-base 1.10.5 → 1.10.6
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 +8 -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.10.6 - 2024-08-19
|
|
13
|
+
|
|
14
|
+
- Added `userDisplayName` property to the `WidgetContext` interface, to allow using the currently signed-in user's display name in widgets.
|
|
15
|
+
|
|
12
16
|
## 1.10.5 - 2024-08-07
|
|
13
17
|
|
|
14
18
|
- Added `onSearch` property to the `CommandBarSearchItem` interface, to allow executing a callback when the user presses enter in the search box.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -71,7 +71,14 @@ export interface WidgetContext {
|
|
|
71
71
|
*/
|
|
72
72
|
siteUrl: string;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Display name of the currently signed in user
|
|
75
|
+
*
|
|
76
|
+
* @remarks
|
|
77
|
+
* Example: `"Alex Wilber"`
|
|
78
|
+
*/
|
|
79
|
+
userDisplayName: string;
|
|
80
|
+
/**
|
|
81
|
+
* User principal name of the currently signed in user
|
|
75
82
|
*/
|
|
76
83
|
userName: string;
|
|
77
84
|
/**
|
package/package.json
CHANGED