@ichicraft/widgets-widget-base 1.10.4 → 1.10.5

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,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.5 - 2024-08-07
13
+
14
+ - Added `onSearch` property to the `CommandBarSearchItem` interface, to allow executing a callback when the user presses enter in the search box.
15
+
12
16
  ## 1.10.4 - 2024-07-23
13
17
 
14
18
  - Added `SearchBar` value to the `CommandBarItemType` enum, to allow rendering a command bar item as a search bar.
@@ -684,7 +684,8 @@ export interface CommandBarItemProps {
684
684
  */
685
685
  export interface CommandBarSearchItem extends CommandBarItemProps {
686
686
  searchTerms: string;
687
- onSearchTermsChange: (value: string) => void;
687
+ onChange?: (value: string) => void;
688
+ onSearch?: (value: string) => void;
688
689
  }
689
690
  export interface CommandBarTabOptions {
690
691
  /**
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.5",
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",