@ichicraft/widgets-widget-base 1.8.0 → 1.8.3
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 +10 -0
- package/lib/types/index.d.ts +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,16 @@ All notable changes to this project will be documented here.
|
|
|
8
8
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
9
9
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
10
10
|
|
|
11
|
+
## 1.8.3 - 2022-08-16
|
|
12
|
+
* Added `openFilePicker` property to the `WidgetContext` interface to support file selection from within a widget.
|
|
13
|
+
|
|
14
|
+
## 1.8.2 - 2022-07-06
|
|
15
|
+
* Added `subtitle` property to the `WidgetResource` interface.
|
|
16
|
+
|
|
17
|
+
## 1.8.1 - 2022-06-17
|
|
18
|
+
* Added new section `analytics` to `WidgetManifestConfig` interface to allow definition of time-based events that can be raised by a widget.
|
|
19
|
+
* Added `raiseEvent(...)` to the `instance` object of the `WidgetContent` interface, allowing widgets to raise an event.
|
|
20
|
+
|
|
11
21
|
## 1.7.11 - 2022-03-23
|
|
12
22
|
* Added `setWidgetHeaderVisibilty()` function to the `instance` object of the `WidgetContext` interface, allowing widgets to render in full height.
|
|
13
23
|
|
package/lib/types/index.d.ts
CHANGED
|
@@ -249,13 +249,17 @@ export interface WidgetContext {
|
|
|
249
249
|
/**
|
|
250
250
|
* Call this function from within one of the applicable render methods in case of an unresolvable error.
|
|
251
251
|
* The widgetboard will render a 'disrupted' message and in case of an error in widget rendering it
|
|
252
|
-
* offers the user the option to delete the widget from the board
|
|
252
|
+
* offers the user the option to delete the widget from the board.
|
|
253
253
|
*/
|
|
254
254
|
handleFatalError?: () => void;
|
|
255
255
|
/**
|
|
256
|
-
* Functionality offered by the widget board to load a script using SPComponentLoader
|
|
256
|
+
* Functionality offered by the widget board to load a script using SPComponentLoader.
|
|
257
257
|
*/
|
|
258
258
|
loadScript?: <TModule>(url: string, options?: any) => Promise<TModule>;
|
|
259
|
+
/**
|
|
260
|
+
* Functionality offered by the widget board to open a File Picker panel to select files.
|
|
261
|
+
*/
|
|
262
|
+
openFilePicker?: (onFilePicked: (fileUrl: string) => void, onCancel?: () => void) => void;
|
|
259
263
|
/**
|
|
260
264
|
* Provides access to the Teams SDK and Teams context. Only provided when the web part is loaded in Teams.
|
|
261
265
|
*/
|
|
@@ -282,6 +286,7 @@ export interface WidgetImages {
|
|
|
282
286
|
export interface WidgetResource {
|
|
283
287
|
lang: number;
|
|
284
288
|
title: string;
|
|
289
|
+
subtitle?: string;
|
|
285
290
|
shortDescription: string;
|
|
286
291
|
instructions: string;
|
|
287
292
|
images: WidgetImages;
|
package/package.json
CHANGED