@ichicraft/widgets-widget-base 1.8.7 → 1.8.8
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 +4 -0
- package/lib/types/index.d.ts +6 -9
- package/package.json +1 -6
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.8.8 - 2023-02-16
|
|
13
|
+
|
|
14
|
+
- Removed all SharePoint and Teams dependencies.
|
|
15
|
+
|
|
12
16
|
## 1.8.7 - 2022-12-13
|
|
13
17
|
|
|
14
18
|
- Added `userRoles` property to the `WidgetContext` interface, to inform widgets of the roles of the current user.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { MSGraphClientFactory, AadTokenProviderFactory, AadHttpClientFactory } from '@microsoft/sp-http';
|
|
2
|
-
import { IReadonlyTheme } from '@microsoft/sp-component-base';
|
|
3
|
-
import * as microsoftTeams from '@microsoft/teams-js';
|
|
4
1
|
/**
|
|
5
2
|
* Widget context providing widget metadata and functionality offered by the widget board
|
|
6
3
|
*/
|
|
@@ -231,19 +228,19 @@ export interface WidgetContext {
|
|
|
231
228
|
/**
|
|
232
229
|
* MS Graph Client Factory class as provided by the WebPartContext object.
|
|
233
230
|
*/
|
|
234
|
-
msGraphClientFactory:
|
|
231
|
+
msGraphClientFactory: any;
|
|
235
232
|
/**
|
|
236
233
|
* AAD Http Client Factory class as provided by the WebPartContext object.
|
|
237
234
|
*/
|
|
238
|
-
aadHttpClientFactory:
|
|
235
|
+
aadHttpClientFactory: any;
|
|
239
236
|
/**
|
|
240
237
|
* AAD Token Provider Factory class as provided by the WebPartContext object.
|
|
241
238
|
*/
|
|
242
|
-
aadTokenProviderFactory:
|
|
239
|
+
aadTokenProviderFactory: any;
|
|
243
240
|
/**
|
|
244
241
|
* Currently in use theme (by SharePoint/Teams)
|
|
245
242
|
*/
|
|
246
|
-
theme:
|
|
243
|
+
theme: any;
|
|
247
244
|
/**
|
|
248
245
|
* Returns whether or not the currently signed in user is part of an AAD security group.
|
|
249
246
|
* Provide the guid of the group.
|
|
@@ -293,11 +290,11 @@ export interface WidgetContext {
|
|
|
293
290
|
/**
|
|
294
291
|
* Microsoft Teams SDK.
|
|
295
292
|
*/
|
|
296
|
-
teamsJs:
|
|
293
|
+
teamsJs: any;
|
|
297
294
|
/**
|
|
298
295
|
* {@inheritDoc @microsoft/teams-js#Context}
|
|
299
296
|
*/
|
|
300
|
-
context:
|
|
297
|
+
context: any;
|
|
301
298
|
};
|
|
302
299
|
}
|
|
303
300
|
export interface ValidationResult {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ichicraft/widgets-widget-base",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.8",
|
|
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",
|
|
@@ -18,11 +18,6 @@
|
|
|
18
18
|
"files": [
|
|
19
19
|
"lib/**/*"
|
|
20
20
|
],
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"@microsoft/sp-component-base": "^1.11.0",
|
|
23
|
-
"@microsoft/sp-http": "1.11.0",
|
|
24
|
-
"@microsoft/teams-js": "1.9.0"
|
|
25
|
-
},
|
|
26
21
|
"devDependencies": {
|
|
27
22
|
"typescript": "^3.6.4"
|
|
28
23
|
}
|