@ichicraft/widgets-widget-base 1.8.6 → 1.8.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 +5 -0
- package/lib/types/index.d.ts +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,11 @@ 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.7 - 2022-12-13
|
|
13
|
+
|
|
14
|
+
- Added `userRoles` property to the `WidgetContext` interface, to inform widgets of the roles of the current user.
|
|
15
|
+
- Added new exported `UserRole` type.
|
|
16
|
+
|
|
12
17
|
## 1.8.6 - 2022-12-08
|
|
13
18
|
|
|
14
19
|
- Added `boardType` property to the `instance` object of the `WidgetContext` interface, to inform widgets of the type of their board.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -191,6 +191,10 @@ export interface WidgetContext {
|
|
|
191
191
|
* Provides the date that the user's account was created
|
|
192
192
|
*/
|
|
193
193
|
userAccountCreated: Date;
|
|
194
|
+
/**
|
|
195
|
+
* Roles of the current user. This may very depending on the active board
|
|
196
|
+
*/
|
|
197
|
+
userRoles: UserRole[];
|
|
194
198
|
/**
|
|
195
199
|
* Language code of currently used UI rendering language in SharePoint
|
|
196
200
|
*/
|
|
@@ -566,3 +570,4 @@ export interface IFrameDialogOptions {
|
|
|
566
570
|
onDismissed?: () => void;
|
|
567
571
|
}
|
|
568
572
|
export declare type BoardType = 'shared' | 'personal';
|
|
573
|
+
export declare type UserRole = 'administrator' | 'board-owner';
|
package/package.json
CHANGED