@ichicraft/widgets-widget-base 1.14.7 → 1.15.1
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 +15 -1
- package/package.json +2 -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.15.1 - 2025-09-30
|
|
13
|
+
|
|
14
|
+
- Added new interface `ICTeam`, used to represent a Microsoft Teams team object in code
|
|
15
|
+
|
|
16
|
+
## 1.15.0 - 2025-09-29
|
|
17
|
+
|
|
18
|
+
- Deprecated `msGraphClientFactory` in favor of `msGraphClient` in the `WidgetManifestConfig` interface.
|
|
19
|
+
|
|
12
20
|
## 1.14.7 - 2025-08-21
|
|
13
21
|
|
|
14
22
|
- Added `parentId` property to the `WidgetInstanceContext` interface, to support checking the ID of the parent of a widget instance.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Client } from '@microsoft/microsoft-graph-client';
|
|
1
2
|
import type { AadHttpClientFactory, AadTokenProviderFactory, SPHttpClient, SPHttpClientConfiguration } from '@microsoft/sp-http';
|
|
2
3
|
import type { SPFI } from '@pnp/sp/presets/all';
|
|
3
4
|
export type { AadTokenProviderFactory, AadTokenProvider, AadHttpClientFactory, AadHttpClient, AadHttpClientConfiguration, AadHttpClientResponse, SPHttpClient, SPHttpClientConfiguration, } from '@microsoft/sp-http';
|
|
@@ -185,8 +186,13 @@ export interface WidgetContext {
|
|
|
185
186
|
spServiceScope?: unknown;
|
|
186
187
|
/**
|
|
187
188
|
* MS Graph Client Factory class as provided by the WebPartContext object.
|
|
189
|
+
* @deprecated The type is removed to avoid dependency on SPFx. Use `msGraphClient` instead.
|
|
188
190
|
*/
|
|
189
191
|
msGraphClientFactory: any;
|
|
192
|
+
/**
|
|
193
|
+
* MS Graph Client instance, ready to use.
|
|
194
|
+
*/
|
|
195
|
+
msGraphClient: Client;
|
|
190
196
|
/**
|
|
191
197
|
* AAD Http Client Factory class as provided by the WebPartContext object.
|
|
192
198
|
*/
|
|
@@ -672,13 +678,21 @@ export interface ICPersona {
|
|
|
672
678
|
objectId?: string;
|
|
673
679
|
}
|
|
674
680
|
/**
|
|
675
|
-
*
|
|
681
|
+
* Represents a SharePoint site.
|
|
676
682
|
*/
|
|
677
683
|
export interface ICSite {
|
|
678
684
|
id: string;
|
|
679
685
|
displayName?: string;
|
|
680
686
|
url?: string;
|
|
681
687
|
}
|
|
688
|
+
/**
|
|
689
|
+
* Represents a Microsoft Teams team.
|
|
690
|
+
*/
|
|
691
|
+
export interface ICTeam {
|
|
692
|
+
id: string;
|
|
693
|
+
displayName?: string;
|
|
694
|
+
url?: string;
|
|
695
|
+
}
|
|
682
696
|
/**
|
|
683
697
|
* Tells the severity of the command bar item, resulting in
|
|
684
698
|
* distinguishable presentation of the item
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ichicraft/widgets-widget-base",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.1",
|
|
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",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"requirejs": "2.3.7"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
+
"@microsoft/microsoft-graph-client": "3.0.2",
|
|
25
26
|
"@microsoft/sp-http": "1.18.2",
|
|
26
27
|
"@pnp/sp": "4.0.1"
|
|
27
28
|
},
|