@ichicraft/widgets-widget-base 1.14.4 → 1.14.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.14.6 - 2025-08-11
13
+
14
+ - Added `updateInstanceConfiguration` property to the `WidgetInstanceContext` interface, to support updating the instance configuration directly in a widget, instead of through the settings panel.
15
+
16
+ ## 1.14.5 - 2025-08-07
17
+
18
+ - Added `imageUrl` property to the `CommandBarTab` interface, to support displaying images in widget header tabs.
19
+
12
20
  ## 1.14.4 - 2025-08-01
13
21
 
14
22
  - Added `releaseType` property to the `WidgetManifestConfig` interface, to indicate the current stage of the release lifecycle a widget is in.
@@ -344,6 +344,11 @@ export interface WidgetInstanceContext {
344
344
  * use the [unregisterCommandBarItem] function.
345
345
  */
346
346
  registerCustomCommandBarItem?: (props: CommandBarItemProps) => void;
347
+ /**
348
+ * Updates the instance configuration of the widget. This is used to update the
349
+ * configuration data of the widget instance, which is stored in the widget board.
350
+ */
351
+ updateInstanceConfiguration?: (serializedInstanceConfiguration: string) => void;
347
352
  /**
348
353
  * Removes all registered custom command bar items.
349
354
  */
@@ -800,6 +805,10 @@ export interface CommandBarTab {
800
805
  * Optional icon to display before the label.
801
806
  */
802
807
  iconName?: string;
808
+ /**
809
+ * Optional image to display before the label.
810
+ */
811
+ imageUrl?: string;
803
812
  /**
804
813
  * Optional tooltip to display when hovering over the tab.
805
814
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.14.4",
3
+ "version": "1.14.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",