@ichicraft/widgets-widget-base 1.14.5 → 1.14.7
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 +11 -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.14.7 - 2025-08-21
|
|
13
|
+
|
|
14
|
+
- Added `parentId` property to the `WidgetInstanceContext` interface, to support checking the ID of the parent of a widget instance.
|
|
15
|
+
|
|
16
|
+
## 1.14.6 - 2025-08-11
|
|
17
|
+
|
|
18
|
+
- Added `updateInstanceConfiguration` property to the `WidgetInstanceContext` interface, to support updating the instance configuration directly in a widget, instead of through the settings panel.
|
|
19
|
+
|
|
12
20
|
## 1.14.5 - 2025-08-07
|
|
13
21
|
|
|
14
22
|
- Added `imageUrl` property to the `CommandBarTab` interface, to support displaying images in widget header tabs.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -268,11 +268,15 @@ export interface WidgetContext {
|
|
|
268
268
|
*/
|
|
269
269
|
export interface WidgetInstanceContext {
|
|
270
270
|
/**
|
|
271
|
-
* Unique id
|
|
271
|
+
* Unique id of a specific widget instance.
|
|
272
272
|
*/
|
|
273
273
|
id: string;
|
|
274
274
|
/**
|
|
275
|
-
*
|
|
275
|
+
* Unique id of the parent of a specific widget instance (e.g. of a personal/shared board, buddy bar, ...).
|
|
276
|
+
*/
|
|
277
|
+
parentId: string;
|
|
278
|
+
/**
|
|
279
|
+
* Optional configuration data that contains user settings of a specific widget instance.
|
|
276
280
|
*/
|
|
277
281
|
data?: string;
|
|
278
282
|
/**
|
|
@@ -344,6 +348,11 @@ export interface WidgetInstanceContext {
|
|
|
344
348
|
* use the [unregisterCommandBarItem] function.
|
|
345
349
|
*/
|
|
346
350
|
registerCustomCommandBarItem?: (props: CommandBarItemProps) => void;
|
|
351
|
+
/**
|
|
352
|
+
* Updates the instance configuration of the widget. This is used to update the
|
|
353
|
+
* configuration data of the widget instance, which is stored in the widget board.
|
|
354
|
+
*/
|
|
355
|
+
updateInstanceConfiguration?: (serializedInstanceConfiguration: string) => void;
|
|
347
356
|
/**
|
|
348
357
|
* Removes all registered custom command bar items.
|
|
349
358
|
*/
|
package/package.json
CHANGED