@ichicraft/widgets-widget-base 1.8.5 → 1.8.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 +6 -0
- package/lib/types/index.d.ts +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,12 @@ 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.8.6 - 2022-12-08
|
|
13
|
+
|
|
14
|
+
- Added `boardType` property to the `instance` object of the `WidgetContext` interface, to inform widgets of the type of their board.
|
|
15
|
+
- Added `allowedBoardTypes` property to the `definition` object of the `WidgetContext` interface, to inform widget variants of the types of boards it is allowed to be added to.
|
|
16
|
+
- Added new exported `BoardType` type.
|
|
17
|
+
|
|
12
18
|
## 1.8.5 - 2022-09-30
|
|
13
19
|
|
|
14
20
|
- Added `setWidgetTitleSuffix()` function to the `instance` object of the `WidgetContext` interface, to support appending the title of the widget with additional text.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -19,6 +19,10 @@ export interface WidgetContext {
|
|
|
19
19
|
* Optional configuration data that contains user settings of a specific widget instance
|
|
20
20
|
*/
|
|
21
21
|
data?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The type of board this widget instance is added to.
|
|
24
|
+
*/
|
|
25
|
+
boardType?: BoardType;
|
|
22
26
|
/**
|
|
23
27
|
* Call this function from within a widget instance to publish a notification to the
|
|
24
28
|
* notitication box on top of the widget board. It should provide information for this specific
|
|
@@ -97,6 +101,10 @@ export interface WidgetContext {
|
|
|
97
101
|
* Optional configuration data that contains board-wide settings of a specific widget instance
|
|
98
102
|
*/
|
|
99
103
|
data?: string;
|
|
104
|
+
/**
|
|
105
|
+
* A list of board types applicable for this widget variant.
|
|
106
|
+
*/
|
|
107
|
+
allowedBoardTypes?: BoardType[];
|
|
100
108
|
};
|
|
101
109
|
/**
|
|
102
110
|
* Metadata and functions in the context of a widget's manifest. A widget manifest contains
|
|
@@ -557,3 +565,4 @@ export interface IFrameDialogOptions {
|
|
|
557
565
|
*/
|
|
558
566
|
onDismissed?: () => void;
|
|
559
567
|
}
|
|
568
|
+
export declare type BoardType = 'shared' | 'personal';
|
package/package.json
CHANGED