@ichicraft/widgets-widget-base 1.7.7 → 1.7.10

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
@@ -8,11 +8,20 @@ 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.7.10 - 2022-03-23
12
+ * Added `hideWidgetHeader()` function to the `instance` object of the `WidgetContext` interface, allowing widgets to render in full height.
13
+
14
+ ## 1.7.9 - 2022-01-20
15
+ * Added `userAccountCreated` date/time to the `WidgetContext` interface.
16
+
17
+ ## 1.7.8 - 2022-01-18
18
+ ### Changed
19
+ * Added `initiateWidgetDeletion()` function to the `WidgetContext` interface.
20
+
11
21
  ## 1.7.7 - 2022-01-14
12
22
  ### Changed
13
23
  * Added `tenantId` property to the `WidgetContext` interface.
14
24
 
15
-
16
25
  ## 1.7.6 - 2021-11-04
17
26
  ### Changed
18
27
  * Added `theme` property to the `WidgetContext` interface to give access to currently applied theme.
package/lib/.DS_Store ADDED
Binary file
@@ -32,6 +32,11 @@ export interface WidgetContext {
32
32
  * menu of the widget.
33
33
  */
34
34
  openConfiguration?: () => void;
35
+ /**
36
+ * Call this function to open the widget delete confirmation dialog for a user. This offers widget developers
37
+ * the ability to trigger the "widget deletion process". This allows different methods to delete the widget.
38
+ */
39
+ initiateWidgetDeletion?: () => void;
35
40
  /**
36
41
  * Functionality offered by the widget board to open a url in an iframe dialog.
37
42
  */
@@ -40,6 +45,10 @@ export interface WidgetContext {
40
45
  * Functionality offered by the widget board to change the title of the widget
41
46
  */
42
47
  setWidgetTitle?: (title: string) => void;
48
+ /**
49
+ * Hide the header of the widget, giving the widget space to grow
50
+ */
51
+ hideWidgetHeader?: () => void;
43
52
  /**
44
53
  * Optional callback to handle the click event of the widget title
45
54
  */
@@ -152,14 +161,16 @@ export interface WidgetContext {
152
161
  * SharePoint groups in this site collection that user is member of
153
162
  */
154
163
  userSharePointGroups: number[];
164
+ /**
165
+ * Provides the date that the user's account was created
166
+ */
167
+ userAccountCreated: Date;
155
168
  /**
156
169
  * Language code of currently used UI rendering language in SharePoint
157
170
  */
158
171
  language: string;
159
172
  /**
160
173
  * List of supported languages as configured in Widget Board configuration
161
- /**
162
- *
163
174
  */
164
175
  contentLanguages: {
165
176
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.7.7",
3
+ "version": "1.7.10",
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",