@ichicraft/widgets-widget-base 1.9.5 → 1.9.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,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.9.6 - 2024-04-19
13
+
14
+ - Changed `onRenderHeaderIcon` property of the IFrameDialogOptions interface, to work similarly to the widget render functions.
15
+
12
16
  ## 1.9.5 - 2024-04-18
13
17
 
14
18
  - Added `title` property to the IFrameDialogOptions interface, to allow rendering a title in the dialog header.
@@ -675,7 +675,7 @@ export interface IFrameDialogOptions {
675
675
  /**
676
676
  * Renders an icon on the left side of the dialog header.
677
677
  */
678
- onRenderHeaderIcon?: () => Element;
678
+ onRenderHeaderIcon?: (domElement: HTMLDivElement) => void;
679
679
  }
680
680
  /**
681
681
  * Options to pass to openFilePicker function
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.9.5",
3
+ "version": "1.9.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",