@ichicraft/widgets-widget-base 1.9.13 → 1.10.0
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 +9 -0
- package/lib/BaseWidget.d.ts +1 -0
- package/lib/types/index.d.ts +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,15 @@ 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.10.0 - 2024-06-25
|
|
13
|
+
|
|
14
|
+
- Added optional `updateDataAccess()` function to the `BaseWidget` class, used to update access to widget-specific data.
|
|
15
|
+
- Added `administrators` property to the `WidgetVariantContext` interface.
|
|
16
|
+
|
|
17
|
+
## 1.9.14 - 2024-06-18
|
|
18
|
+
|
|
19
|
+
- Change import of `SPFI` type to decrease bundle sizes in widgets.
|
|
20
|
+
|
|
12
21
|
## 1.9.13 - 2024-06-18
|
|
13
22
|
|
|
14
23
|
- Added `spHttpClient` property to `WidgetContext` interface, to perform REST calls against SharePoint.
|
package/lib/BaseWidget.d.ts
CHANGED
|
@@ -14,5 +14,6 @@ export default abstract class BaseWidget {
|
|
|
14
14
|
getSerializedAdminConfiguration?(): string;
|
|
15
15
|
importData?(exportData: ExportData): Promise<void>;
|
|
16
16
|
exportData?(): Promise<ExportData>;
|
|
17
|
+
updateDataAccess?(from: string[], to: string[]): Promise<void>;
|
|
17
18
|
cleanupResources?(): void;
|
|
18
19
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AadHttpClientFactory, AadTokenProviderFactory, SPHttpClient, SPHttpClientConfiguration } from '@microsoft/sp-http';
|
|
2
|
-
import type { SPFI } from '@pnp/sp/
|
|
2
|
+
import type { SPFI } from '@pnp/sp/presets/all';
|
|
3
3
|
export type { AadTokenProviderFactory, AadTokenProvider, AadHttpClientFactory, AadHttpClient, AadHttpClientConfiguration, AadHttpClientResponse, SPHttpClient, SPHttpClientConfiguration, } from '@microsoft/sp-http';
|
|
4
4
|
/**
|
|
5
5
|
* Widget context providing widget metadata and functionality offered by the widget board
|
|
@@ -353,6 +353,10 @@ export interface WidgetVariantContext {
|
|
|
353
353
|
* A list of board types applicable for this widget variant.
|
|
354
354
|
*/
|
|
355
355
|
allowedBoardTypes?: BoardType[];
|
|
356
|
+
/**
|
|
357
|
+
* A list of administrators able to edit the admin configuration of this widget variant.
|
|
358
|
+
*/
|
|
359
|
+
administrators?: ICPersona[];
|
|
356
360
|
/**
|
|
357
361
|
* The icon defined for this widget variant.
|
|
358
362
|
*/
|
package/package.json
CHANGED