@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 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.
@@ -71,7 +71,14 @@ export interface WidgetContext {
71
71
  */
72
72
  siteUrl: string;
73
73
  /**
74
- * User name of the currently signed in user
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
- onSearchTermsChange: (value: string) => void;
694
+ onChange?: (value: string) => void;
695
+ onSearch?: (value: string) => void;
688
696
  }
689
697
  export interface CommandBarTabOptions {
690
698
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.10.4",
3
+ "version": "1.10.6",
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",