@ichicraft/widgets-widget-base 1.7.8 → 1.7.11

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,6 +8,12 @@ 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.11 - 2022-03-23
12
+ * Added `setWidgetHeaderVisibilty()` 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
+
11
17
  ## 1.7.8 - 2022-01-18
12
18
  ### Changed
13
19
  * Added `initiateWidgetDeletion()` function to the `WidgetContext` interface.
package/lib/.DS_Store ADDED
Binary file
@@ -45,6 +45,10 @@ export interface WidgetContext {
45
45
  * Functionality offered by the widget board to change the title of the widget
46
46
  */
47
47
  setWidgetTitle?: (title: string) => void;
48
+ /**
49
+ * Show or hide the header of the widget, allowing widgets to take control of full widget real estate
50
+ */
51
+ setWidgetHeaderVisibilty?: (visible: boolean) => void;
48
52
  /**
49
53
  * Optional callback to handle the click event of the widget title
50
54
  */
@@ -157,14 +161,16 @@ export interface WidgetContext {
157
161
  * SharePoint groups in this site collection that user is member of
158
162
  */
159
163
  userSharePointGroups: number[];
164
+ /**
165
+ * Provides the date that the user's account was created
166
+ */
167
+ userAccountCreated: Date;
160
168
  /**
161
169
  * Language code of currently used UI rendering language in SharePoint
162
170
  */
163
171
  language: string;
164
172
  /**
165
173
  * List of supported languages as configured in Widget Board configuration
166
- /**
167
- *
168
174
  */
169
175
  contentLanguages: {
170
176
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.7.8",
3
+ "version": "1.7.11",
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",