@ichicraft/widgets-widget-base 1.9.14 → 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 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.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
+
12
17
  ## 1.9.14 - 2024-06-18
13
18
 
14
19
  - Change import of `SPFI` type to decrease bundle sizes in widgets.
@@ -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
  }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.9.14",
3
+ "version": "1.10.0",
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",