@ichicraft/widgets-widget-base 1.10.4 → 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 +8 -0
- package/lib/types/index.d.ts +10 -2
- package/package.json +1 -1
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.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
|
+
|
|
16
|
+
## 1.10.5 - 2024-08-07
|
|
17
|
+
|
|
18
|
+
- Added `onSearch` property to the `CommandBarSearchItem` interface, to allow executing a callback when the user presses enter in the search box.
|
|
19
|
+
|
|
12
20
|
## 1.10.4 - 2024-07-23
|
|
13
21
|
|
|
14
22
|
- Added `SearchBar` value to the `CommandBarItemType` enum, to allow rendering a command bar item as a search bar.
|
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
|
/**
|
|
@@ -684,7 +691,8 @@ export interface CommandBarItemProps {
|
|
|
684
691
|
*/
|
|
685
692
|
export interface CommandBarSearchItem extends CommandBarItemProps {
|
|
686
693
|
searchTerms: string;
|
|
687
|
-
|
|
694
|
+
onChange?: (value: string) => void;
|
|
695
|
+
onSearch?: (value: string) => void;
|
|
688
696
|
}
|
|
689
697
|
export interface CommandBarTabOptions {
|
|
690
698
|
/**
|
package/package.json
CHANGED