@ichicraft/widgets-widget-base 1.9.14 → 1.10.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 +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.1 - 2024-07-08
|
|
13
|
+
|
|
14
|
+
- Added `widget-administrator` role to the `UserRole` type.
|
|
15
|
+
|
|
16
|
+
## 1.10.0 - 2024-06-25
|
|
17
|
+
|
|
18
|
+
- Added optional `updateDataAccess()` function to the `BaseWidget` class, used to update access to widget-specific data.
|
|
19
|
+
- Added `administrators` property to the `WidgetVariantContext` interface.
|
|
20
|
+
|
|
12
21
|
## 1.9.14 - 2024-06-18
|
|
13
22
|
|
|
14
23
|
- Change import of `SPFI` type to decrease bundle sizes in widgets.
|
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
|
@@ -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
|
*/
|
|
@@ -772,7 +776,7 @@ export interface FilePickerFileProps {
|
|
|
772
776
|
siteId: string;
|
|
773
777
|
}
|
|
774
778
|
export type BoardType = 'shared' | 'personal';
|
|
775
|
-
export type UserRole = 'administrator' | 'board-owner';
|
|
779
|
+
export type UserRole = 'administrator' | 'board-owner' | 'widget-administrator';
|
|
776
780
|
export interface ExportData {
|
|
777
781
|
data: object[];
|
|
778
782
|
}
|
package/package.json
CHANGED