@ichicraft/widgets-widget-base 1.18.0 → 1.19.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
@@ -1,450 +1,454 @@
1
- This package supports development of widgets built using the Widget Development Kit
2
-
3
- _This package is part of the Widget Development Kit, which is a collection of NPM packages that empower developers to create widgets for Bloom Intranet._
4
-
5
- # Changelog
6
-
7
- All notable changes to this project will be documented here.
8
-
9
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
10
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
11
-
12
- ## 1.18.0 - 2026-08-17
13
-
14
- - Added optional `assetsBaseUrl` property to the `WidgetContext` interface, containing the base URL of the folder the widget bundle was loaded from. This allows widgets to fetch files that are published alongside their bundle, such as per-language translation files.
15
-
16
- ## 1.17.0 - 2026-07-16
17
-
18
- - Moved `UserHelper`, `ICPersona`, `ICPersonaType`, `ICSite`, `ICTeam` and `ICTerm` to an internal package.
19
-
20
- ## 1.16.6 - 2026-06-03
21
-
22
- - Replaced unused `design.header.activeTextColor` with `design.header.subTextColor`
23
-
24
- ## 1.16.5 - 2026-06-01
25
-
26
- - Added `BuddyRenderOptions` interface, passed by the host to `BaseWidget.renderBuddy` to describe the slot the widget is about to render into.
27
- - Added optional `options` parameter to `BaseWidget.renderBuddy`, of type `BuddyRenderOptions`. Contains an `allowRichRendering` boolean that signals whether the slot has room for richer rendering than the standard buddy icon button — letting the widget decide synchronously between custom and default rendering.
28
-
29
- ## 1.16.4 - 2026-05-27
30
-
31
- - Added `header` property to `WidgetDesignContext` interface, exposing the header's `textColor`, `iconColor`, `activeTextColor` and `activeIconColor` from the user's theme.
32
- - Deprecated `defaultColor` property on `WidgetBuddyContext` interface in favor of `design.header.iconColor` (and `design.header.activeIconColor` for the hover/active state).
33
-
34
- ## 1.16.3 - 2026-05-08
35
-
36
- - Added `whatsNewUrl` property to `WidgetManifestConfig` to allow quick access to updates that the widget has received.
37
- - Added `aboutUrl` property to `WidgetManifestConfig` to allow quick access to more information about the widget.
38
-
39
- ## 1.16.2 - 2026-03-25
40
-
41
- - Fixed issue with using internal library `@ic/caching` by publishing caching library as public (`@ichicraft/caching`)
42
-
43
- ## 1.16.1 - 2026-03-19
44
-
45
- - Addition of `notificationBadgeCount` property to `CommandBarItemProps` to allow for a number to be displayed in the badge
46
-
47
- ## 1.16.0 - 2026-03-09
48
-
49
- - Addition of `cache` property to `instance`, `variant` and `manifest` level of `WidgetContext` to centralize cache handling and functionality
50
-
51
- ## 1.15.4 - 2026-01-07
52
-
53
- - Override version of deep dependency 'validator' to get rid of potential vulnerability
54
-
55
- ## 1.15.3 - 2025-12-09
56
-
57
- - Added property `isIndeterminate` to `ICTerm` interface, used to represent a term's indeterminate checkmark state.
58
-
59
- ## 1.15.2 - 2025-11-21
60
-
61
- - Added new interface `ICTerm`, used to represent a SharePoint Taxonomy Term object in code
62
-
63
- ## 1.15.1 - 2025-09-30
64
-
65
- - Added new interface `ICTeam`, used to represent a Microsoft Teams team object in code
66
-
67
- ## 1.15.0 - 2025-09-29
68
-
69
- - Deprecated `msGraphClientFactory` in favor of `msGraphClient` in the `WidgetManifestConfig` interface.
70
-
71
- ## 1.14.7 - 2025-08-21
72
-
73
- - Added `parentId` property to the `WidgetInstanceContext` interface, to support checking the ID of the parent of a widget instance.
74
-
75
- ## 1.14.6 - 2025-08-11
76
-
77
- - Added `updateInstanceConfiguration` property to the `WidgetInstanceContext` interface, to support updating the instance configuration directly in a widget, instead of through the settings panel.
78
-
79
- ## 1.14.5 - 2025-08-07
80
-
81
- - Added `imageUrl` property to the `CommandBarTab` interface, to support displaying images in widget header tabs.
82
-
83
- ## 1.14.4 - 2025-08-01
84
-
85
- - Added `releaseType` property to the `WidgetManifestConfig` interface, to indicate the current stage of the release lifecycle a widget is in.
86
- - Added `registerOnBuddyClick` property to the `WidgetBuddyContext` interface, to allow overriding default onClick behavior when clicking on a buddy (by default, it opens the widget in a Callout).
87
-
88
- ## 1.14.3 - 2025-07-04
89
-
90
- - Added `justification` string property to widget manifest to describe the reasoning behind the need for certain API permisisons
91
-
92
- ## 1.14.2 - 2025-07-02
93
-
94
- - Reverted `@microsoft/sp-http` dependency back to SPFx version `1.18.2` due to postponed upgrade
95
- - Added `isOptional` boolean to widget manifest to allow marking certain API permission requests as optional
96
-
97
- ## 1.14.1 - 2025-06-17
98
-
99
- - Reverted module type 'commonjs' for backwards compatibility
100
-
101
- ## 1.14.0 - 2025-05-21
102
-
103
- - Version bumped `@microsoft/sp-http` dependency to latest SPFx version `1.21.1`
104
-
105
- ## 1.13.2 - 2025-04-11
106
-
107
- - Minor update in documentation of `WebApiPermissionRequest` interface
108
-
109
- ## 1.13.1 - 2025-03-11
110
-
111
- - Added new interface `ICSite`, used to represent a SharePoint site object in code
112
-
113
- ## 1.13.0 - 2025-02-17
114
-
115
- - Fixed an issue with detecting external users in `UserHelper`
116
- - Changed target JavaScript version to `ES6`
117
-
118
- ## 1.12.0 - 2025-02-11
119
-
120
- - Added `ColorOption` interface.
121
- - Added `WidgetDesignContext` interface.
122
- - Added `design` property of type `WidgetDesignContext` to `WidgetContext` interface, to support UI settings within widgets.
123
- - Deprecated `elementBorderRadius` property which is renamed to `borderRadius` and moved under `design` property in `WidgetContext` interface.
124
-
125
- ## 1.11.6 - 2025-01-30
126
-
127
- - Added `spServiceScope` property to `WidgetContext` interface.
128
- - Added `loadComponentById` function to `WidgetContext` interface.
129
- - Deprecated `definition` property which is replaced by `variant` property in `WidgetContext` interface.
130
- - Deprecated `instance.publishNotification` function in `WidgetContext` interface because feature is no longer available.
131
-
132
- ## 1.11.5 - 2025-01-21
133
-
134
- - Added `defaultColor` property to `WidgetBuddyContext` interface.
135
-
136
- ## 1.11.4 - 2024-11-08
137
-
138
- - Added `driveId` property to `FilePickerFileProps` interface.
139
-
140
- ## 1.11.3 - 2024-11-05
141
-
142
- - Added `fileName` property to `FilePickerFileProps` interface.
143
-
144
- ## 1.11.2 - 2024-10-21
145
-
146
- - Added optional `objectId` property to the `ICPersona` interface.
147
-
148
- ## 1.11.1 - 2024-10-17
149
-
150
- - Made `buddy` property of type `WidgetBuddyContext` optional.
151
-
152
- ## 1.11.0 - 2024-10-17
153
-
154
- - Added `renderBuddy` function to the `BaseWidget` class, to support rendering widgets as a buddy.
155
- - Added `buddy` property of type `WidgetBuddyContext` to the `WidgetContext` interface, to support utility functions specifically for a widget buddy.
156
- - Added `setBadgeProperties` function to the `WidgetBuddyContext` interface, to allow rendering a badge on top of the buddy.
157
-
158
- ## 1.10.8 - 2024-10-15
159
-
160
- - Added `buddybar` to the `BoardType` type, to support widgets that run in the scope of the upcoming buddy bar feature
161
-
162
- ## 1.10.7 - 2024-08-20
163
-
164
- - Replaced `onInit` function with a new asynchronous `init` function in the `BaseWidget` class, to allow waiting until initialization is complete.
165
-
166
- ## 1.10.6 - 2024-08-19
167
-
168
- - Added `userDisplayName` property to the `WidgetContext` interface, to allow using the currently signed-in user's display name in widgets.
169
-
170
- ## 1.10.5 - 2024-08-07
171
-
172
- - Added `onSearch` property to the `CommandBarSearchItem` interface, to allow executing a callback when the user presses enter in the search box.
173
-
174
- ## 1.10.4 - 2024-07-23
175
-
176
- - Added `SearchBar` value to the `CommandBarItemType` enum, to allow rendering a command bar item as a search bar.
177
- - Added `CommandBarSearchItem` interface, to allow passing extra search-related props to a CommandBarItem of type `SearchBar`.
178
- - Added optional `overflowButtonIconName` and `overflowButtonTooltip` properties to the `CommandBarTabOptions` interface, to allow customization of the overflow menu button.
179
- - Added optional `itemCount` property to the `CommandBarTab` interface.
180
- - Added summaries to functions and interfaces related to widget command bar tabs.
181
-
182
- ## 1.10.3 - 2024-07-22
183
-
184
- - Added override in package.json to use version `2.3.7` instead of `2.3.6` of `requirejs` because the latter has vulnerability CVE-2024-38999
185
-
186
- ## 1.10.2 - 2024-07-19
187
-
188
- - Added `registerTabs` function to the `WidgetInstanceContext` interface, to allow rendering of tabs in the widget header.
189
- - Added `setSelectedTab` function to the `WidgetInstanceContext` interface, to allow setting the current selected tab in the widget header.
190
- - Added `CommandBarTab` interface.
191
- - Added `CommandBarTabOptions` interface.
192
-
193
- ## 1.10.1 - 2024-07-08
194
-
195
- - Added `widget-administrator` role to the `UserRole` type.
196
-
197
- ## 1.10.0 - 2024-06-25
198
-
199
- - Added optional `updateDataAccess()` function to the `BaseWidget` class, used to update access to widget-specific data.
200
- - Added `administrators` property to the `WidgetVariantContext` interface.
201
-
202
- ## 1.9.14 - 2024-06-18
203
-
204
- - Change import of `SPFI` type to decrease bundle sizes in widgets.
205
-
206
- ## 1.9.13 - 2024-06-18
207
-
208
- - Added `spHttpClient` property to `WidgetContext` interface, to perform REST calls against SharePoint.
209
- - Added `spHttpClientConfiguration` property to `WidgetContext` interface.
210
-
211
- ## 1.9.12 - 2024-06-17
212
-
213
- - Added `sp` property to `WidgetContext` interface, to allow using a centralized PnPjs version across all widgets.
214
- - Added `siteId` property to `WidgetContext` interface.
215
- - Added `boardsInstanceId` property to `WidgetContext` interface.
216
-
217
- ## 1.9.11 - 2024-06-14
218
-
219
- - Fixed handling of null `ICPersonaType` values in `isCurrentUserInScope` function of `UserHelper` class.
220
-
221
- ## 1.9.10 - 2024-06-04
222
-
223
- - Renamed `CustomCommandBarItemProps` interface to `CommandBarItemProps`.
224
- - Merged `CommandBarIcon`, `CommandBarLink` and `CommandBarItemBase` interfaces into the `CommandBarItemProps` interface, to simplify adding custom command bar items.
225
- - Added `Overflow` type to `CommandBarItemType` enum, to allow rendering an item inside the overflow menu.
226
- - Added `highlighted` property to the `CommandBarItemProps` interface, to allow rendering an item as if it is being hovered.
227
- - Added `cursor` property to the `CommandBarItemProps` interface, to allow a different cursor when hovering over an item.
228
- - Added `disabled` property to the `CommandBarItemProps` interface, to allow rendering an item in a disabled state.
229
-
230
- ## 1.9.9 - 2024-05-14
231
-
232
- - Changed return type of `createDeepLink` function of the WidgetInstanceContext interface from `void` to `string`.
233
-
234
- ## 1.9.8 - 2024-05-13
235
-
236
- - Added `createDeepLink` property to the WidgetInstanceContext interface, to allow creating a deep link URL based on the current board and a widget instance.
237
- - Added `setDeepLinkData` property to the WidgetInstanceContext interface, to allow setting deep link data related to a widget instance in the URL of the current page.
238
- - Added `getDeepLinkData` property to the WidgetInstanceContext interface, to allow getting deep link data related to a widget instance from the URL of the current page.
239
-
240
- ## 1.9.7 - 2024-04-19
241
-
242
- - Added `hideSpHubNav` property to the IFrameDialogOptions interface, to allow hiding the Hub navigation on SharePoint sites.
243
- - Added `hideSpSiteHeader` property to the IFrameDialogOptions interface, to allow hiding the site header on SharePoint sites.
244
- - Added `showHistoryButtons` property to the IFrameDialogOptions interface, to render back and forward buttons, allowing the user to navigate the browser history.
245
- - Added `showOpenInNewWindow` property to the IFrameDialogOptions interface, to render an 'open in new window' button, allowing the user to open the iframe url in a new browser window.
246
-
247
- ## 1.9.6 - 2024-04-19
248
-
249
- - Changed `onRenderHeaderIcon` property of the IFrameDialogOptions interface, to work similarly to the widget render functions.
250
-
251
- ## 1.9.5 - 2024-04-18
252
-
253
- - Added `title` property to the IFrameDialogOptions interface, to allow rendering a title in the dialog header.
254
- - Added `titleUrl` property to the IFrameDialogOptions interface, to allow making the dialog header title clickable.
255
- - Added `onRenderHeaderIcon` property to the IFrameDialogOptions interface, to allow rendering an icon in the dialog header.
256
- - Added `onLoad` property to the IFrameDialogOptions interface, to support executing some code after the iframe finishes loading.
257
-
258
- ## 1.9.4 - 2024-04-11
259
-
260
- - Reintroduced the following types: `AadHttpClient`,`AadHttpClientConfiguration`,`AadHttpClientFactory`,`AadHttpClientResponse`, `AadTokenProvider`, `AadTokenProviderFactory`
261
-
262
- ## 1.9.2 - 2024-03-21
263
-
264
- - Added `CommandBarIcon` interface, to allow rendering a `CustomCommandBarItem` as a single icon or an icon button.
265
- - Added `CommandBarLink` interface, to allow rendering a `CustomCommandBarItem` as a clickable link.
266
- - Added `CommandBarItemBase` interface, to act as a base for different types of `CustomCommandBarItem`.
267
- - Added `elementBorderRadius` property to the `WidgetContext` interface, to allow styling widgets according to the configured design preferences.
268
- - Changed `CustomCommandBarItemProps` type to accept either a `CommandBarIcon` or a `CommandBarLink`.
269
-
270
- ## 1.9.1 - 2023-10-20
271
-
272
- - Added `WidgetInstanceContext` interface, to allow typing the `instance` property of the `WidgetContext` interface.
273
- - Added `WidgetVariantContext` interface, to allow typing the `definition` property of the `WidgetContext` interface.
274
- - Added `WidgetManifestContext` interface, to allow typing the `manifest` property of the `WidgetContext` interface.
275
-
276
- ## 1.9.0 - 2023-10-20
277
-
278
- - Added optional `importData()` function to the `BaseWidget` class, used to import widget-specific data.
279
- - Added optional `exportData()` function to the `BaseWidget` class, used to export widget-specific data.
280
- - Added new exported `ExportData` type.
281
-
282
- ## 1.8.17 - 2023-10-09
283
-
284
- - Added `iconName` property to the `definition` object of the `WidgetContext` interface, to support using an icon to represent a widget.
285
-
286
- ## 1.8.16 - 2023-09-26
287
-
288
- - Added `Custom` value to `ICPersonaType` enum, to support a custom ICPersona.
289
-
290
- ## 1.8.15 - 2023-09-01
291
-
292
- - Added `thumbnailUrl` property to `WidgetManifestConfig` interface, as a non-translatable substitute of the newly deprecated `preview_small` property from `WidgetImages` interface.
293
- - Removed the deprecated `preview_small` property from `WidgetImages` interface.
294
-
295
- ## 1.8.14 - 2023-09-01
296
-
297
- - Added `iconName` property to `WidgetManifestConfig` interface, to support using an icon to represent a widget, e.g. in the widget library or widget header.
298
- - Removed the deprecated `notificationIcon` property from `WidgetManifestConfig` interface.
299
-
300
- ## 1.8.13 - 2023-06-08
301
-
302
- - Removed the deprecated `resolved` property from `ICPersona` interface
303
-
304
- ## 1.8.12 - 2023-04-04
305
-
306
- - Changed `openFilePicker` function to return more details of the picked file in the shape of `FilePickerFileProps`
307
-
308
- ## 1.8.11 - 2023-04-03
309
-
310
- - Changed `openFilePicker` function to return more details of the picked file in the shape of `FilePickerFileProps`
311
-
312
- ## 1.8.10 - 2023-03-30
313
-
314
- - Changed `openFilePicker` function to accept `options`, to support configuration of picker behavior
315
-
316
- ## 1.8.9 - 2023-03-06
317
-
318
- - Added `registerCustomCommandBarItems` function to the `instance` object of the `WidgetContext` interface, to support multiple custom buttons in the widget header.
319
- - Added `unregisterCustomCommandBarItems` function to the `instance` object of the `WidgetContext` interface, to support removing all custom buttons in the widget header.
320
- - Added optional `id` property to exported `CustomCommandBarItemProps` type, to support removing a custom command bar item by id.
321
- - Added optional `pinned` property to exported `CustomCommandBarItemProps` type, to support forcing the widget header to always be visible.
322
- - Added optional `showNotificationBadge` property to exported `CustomCommandBarItemProps` type, to support showing a red notification badge over the custom command bar item.
323
- - Added optional `order` property to exported `CustomCommandBarItemProps` type, to support changing the order of custom command bar items.
324
- - Changed `unregisterCustomCommandBarItem` function of the `instance` object of the `WidgetContext` interface, to support removing a custom command bar item by id.
325
-
326
- ## 1.8.8 - 2023-02-16
327
-
328
- - Removed all SharePoint and Teams dependencies.
329
-
330
- ## 1.8.7 - 2022-12-13
331
-
332
- - Added `userRoles` property to the `WidgetContext` interface, to inform widgets of the roles of the current user.
333
- - Added new exported `UserRole` type.
334
-
335
- ## 1.8.6 - 2022-12-08
336
-
337
- - Added `boardType` property to the `instance` object of the `WidgetContext` interface, to inform widgets of the type of their board.
338
- - Added `allowedBoardTypes` property to the `definition` object of the `WidgetContext` interface, to inform widget variants of the types of boards it is allowed to be added to.
339
- - Added new exported `BoardType` type.
340
-
341
- ## 1.8.5 - 2022-09-30
342
-
343
- - Added `setWidgetTitleSuffix()` function to the `instance` object of the `WidgetContext` interface, to support appending the title of the widget with additional text.
344
- - Added `setWidgetSubtitle()` function to the `instance` object of the `WidgetContext` interface, to support overriding the subtitle of the widget.
345
- - Added `setUserConfigButtonVisibilty()` function to the `instance` object of the `WidgetContext` interface, to support hiding the settings button from the widget header.
346
- - Fixed spelling of `setWidgetHeaderVisibilty()` function. The function is now called `setWidgetHeaderVisibility()`.
347
-
348
- ## 1.8.4 - 2022-09-05
349
-
350
- - Added `openIFrameDialog()` function to the `WidgetContext` interface. This has the same functionality as the `openUrlInDialog()` function of the `instance` object, but adds more control over the dimensions of the dialog. The function `openUrlInDialog()` is now deprecated.
351
-
352
- ## 1.8.3 - 2022-08-16
353
-
354
- - Added `openFilePicker()` function to the `WidgetContext` interface to support file selection from within a widget.
355
-
356
- ## 1.8.2 - 2022-07-06
357
-
358
- - Added `subtitle` property to the `WidgetResource` interface.
359
-
360
- ## 1.8.1 - 2022-06-17
361
-
362
- - Added new section `analytics` to `WidgetManifestConfig` interface to allow definition of time-based events that can be raised by a widget.
363
- - Added `raiseEvent(...)` to the `instance` object of the `WidgetContent` interface, allowing widgets to raise an event.
364
-
365
- ## 1.7.11 - 2022-03-23
366
-
367
- - Added `setWidgetHeaderVisibilty()` function to the `instance` object of the `WidgetContext` interface, allowing widgets to render in full height.
368
-
369
- ## 1.7.9 - 2022-01-20
370
-
371
- - Added `userAccountCreated` date/time to the `WidgetContext` interface.
372
-
373
- ## 1.7.8 - 2022-01-18
374
-
375
- ### Changed
376
-
377
- - Added `initiateWidgetDeletion()` function to the `WidgetContext` interface.
378
-
379
- ## 1.7.7 - 2022-01-14
380
-
381
- ### Changed
382
-
383
- - Added `tenantId` property to the `WidgetContext` interface.
384
-
385
- ## 1.7.6 - 2021-11-04
386
-
387
- ### Changed
388
-
389
- - Added `theme` property to the `WidgetContext` interface to give access to currently applied theme.
390
-
391
- ## 1.7.5 - 2021-10-26
392
-
393
- ### Changed
394
-
395
- - Added `userSecurityGroups` and `userSharePointGroups` properties to the `WidgetContext` interface to inform widgets of SharePoint and security group memberships of the current user.
396
-
397
- ## 1.7.4 - 2021-10-20
398
-
399
- ### Changed
400
-
401
- - Added `contentLanguages` property to the `WidgetContext` interface to inform widgets of the available content languages as configured in Ichicraft Boards.
402
-
403
- ## 1.7.3 - 2021-10-04
404
-
405
- ### Changed
406
-
407
- - Added `manifestVersion` property to the `WidgetManifestConfig` interface to support multiple versions of the manifest. Current version is 2 which introduced this and the `externals` property.
408
- - Added `externals` property to the `WidgetManifestConfig` interface to support libraries that can be loaded separately from the widget bundle. This reduces widget bundle size and improves overal performance of Ichicraft Boards.
409
-
410
- ## 1.6.1 - 2021-02-18
411
-
412
- ### Changed
413
-
414
- - Added `userEmail` property to the `WidgetContext` interface to provide current user's email address to widgets.
415
-
416
- ## 1.5.0 - 2021-02-16
417
-
418
- ### Changed
419
-
420
- - Added `teamsSdk` property to the `WidgetContext` interface to allow interaction with Teams in case widget board is running in Teams client. Will be `undefined` if running in SharePoint.
421
-
422
- ## 1.4.0 - 2021-01-25
423
-
424
- ### Changed
425
-
426
- - Added several properties to the `WidgetContext` interface to identify the context in which the widget is shown (e.g. Team Browser hosted)
427
-
428
- ## 1.3.0 - 2021-01-15
429
-
430
- ### Changed
431
-
432
- - `registerCustomCommandBarItem()` is added to the `WidgetContext` interface as a function to call from within a widget instance to render an additional command bar item in the widget header.
433
- - `unregisterCustomCommandBarItem()` is added to the `WidgetContext` interface as a function to call from within a widget instance to remove a previously added command bar item from the widget header.
434
-
435
- ## 1.2.0 - 2021-01-15
436
-
437
- ### Changed
438
-
439
- - `loadScript()` is added to the `WidgetContext` interface as a function to call from within a widget in case an external script needs to be loaded. This allows the widget board to load external javascript.
440
-
441
- ## 1.1.0 - 2021-01-11
442
-
443
- ### Changed
444
-
445
- - `handleFatalError()` is added to the `WidgetContext` interface as a function to call from within a widget in case of an unhandled/unresolvable error. This allows the widget board to handle this situation gracefully.
446
- - **deps:** removed dependency ajv
447
-
448
- ## <= 1.0.5 - 2020-12-07
449
-
450
- No changelog was maintained for the earlier versions.
1
+ This package supports development of widgets built using the Widget Development Kit
2
+
3
+ _This package is part of the Widget Development Kit, which is a collection of NPM packages that empower developers to create widgets for Bloom Intranet._
4
+
5
+ # Changelog
6
+
7
+ All notable changes to this project will be documented here.
8
+
9
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
10
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
11
+
12
+ ## 1.19.0 - 2026-08-18
13
+
14
+ - Added optional `bloomGroups` provider to `WidgetContext`, exposing a `fetchGroups()` function that supplies the tenant's Bloom Group definitions. Widgets can pass it through to their people pickers so Bloom Groups can be offered as suggestions.
15
+
16
+ ## 1.18.0 - 2026-08-17
17
+
18
+ - Added optional `assetsBaseUrl` property to the `WidgetContext` interface, containing the base URL of the folder the widget bundle was loaded from. This allows widgets to fetch files that are published alongside their bundle, such as per-language translation files.
19
+
20
+ ## 1.17.0 - 2026-07-16
21
+
22
+ - Moved `UserHelper`, `ICPersona`, `ICPersonaType`, `ICSite`, `ICTeam` and `ICTerm` to an internal package.
23
+
24
+ ## 1.16.6 - 2026-06-03
25
+
26
+ - Replaced unused `design.header.activeTextColor` with `design.header.subTextColor`
27
+
28
+ ## 1.16.5 - 2026-06-01
29
+
30
+ - Added `BuddyRenderOptions` interface, passed by the host to `BaseWidget.renderBuddy` to describe the slot the widget is about to render into.
31
+ - Added optional `options` parameter to `BaseWidget.renderBuddy`, of type `BuddyRenderOptions`. Contains an `allowRichRendering` boolean that signals whether the slot has room for richer rendering than the standard buddy icon button — letting the widget decide synchronously between custom and default rendering.
32
+
33
+ ## 1.16.4 - 2026-05-27
34
+
35
+ - Added `header` property to `WidgetDesignContext` interface, exposing the header's `textColor`, `iconColor`, `activeTextColor` and `activeIconColor` from the user's theme.
36
+ - Deprecated `defaultColor` property on `WidgetBuddyContext` interface in favor of `design.header.iconColor` (and `design.header.activeIconColor` for the hover/active state).
37
+
38
+ ## 1.16.3 - 2026-05-08
39
+
40
+ - Added `whatsNewUrl` property to `WidgetManifestConfig` to allow quick access to updates that the widget has received.
41
+ - Added `aboutUrl` property to `WidgetManifestConfig` to allow quick access to more information about the widget.
42
+
43
+ ## 1.16.2 - 2026-03-25
44
+
45
+ - Fixed issue with using internal library `@ic/caching` by publishing caching library as public (`@ichicraft/caching`)
46
+
47
+ ## 1.16.1 - 2026-03-19
48
+
49
+ - Addition of `notificationBadgeCount` property to `CommandBarItemProps` to allow for a number to be displayed in the badge
50
+
51
+ ## 1.16.0 - 2026-03-09
52
+
53
+ - Addition of `cache` property to `instance`, `variant` and `manifest` level of `WidgetContext` to centralize cache handling and functionality
54
+
55
+ ## 1.15.4 - 2026-01-07
56
+
57
+ - Override version of deep dependency 'validator' to get rid of potential vulnerability
58
+
59
+ ## 1.15.3 - 2025-12-09
60
+
61
+ - Added property `isIndeterminate` to `ICTerm` interface, used to represent a term's indeterminate checkmark state.
62
+
63
+ ## 1.15.2 - 2025-11-21
64
+
65
+ - Added new interface `ICTerm`, used to represent a SharePoint Taxonomy Term object in code
66
+
67
+ ## 1.15.1 - 2025-09-30
68
+
69
+ - Added new interface `ICTeam`, used to represent a Microsoft Teams team object in code
70
+
71
+ ## 1.15.0 - 2025-09-29
72
+
73
+ - Deprecated `msGraphClientFactory` in favor of `msGraphClient` in the `WidgetManifestConfig` interface.
74
+
75
+ ## 1.14.7 - 2025-08-21
76
+
77
+ - Added `parentId` property to the `WidgetInstanceContext` interface, to support checking the ID of the parent of a widget instance.
78
+
79
+ ## 1.14.6 - 2025-08-11
80
+
81
+ - Added `updateInstanceConfiguration` property to the `WidgetInstanceContext` interface, to support updating the instance configuration directly in a widget, instead of through the settings panel.
82
+
83
+ ## 1.14.5 - 2025-08-07
84
+
85
+ - Added `imageUrl` property to the `CommandBarTab` interface, to support displaying images in widget header tabs.
86
+
87
+ ## 1.14.4 - 2025-08-01
88
+
89
+ - Added `releaseType` property to the `WidgetManifestConfig` interface, to indicate the current stage of the release lifecycle a widget is in.
90
+ - Added `registerOnBuddyClick` property to the `WidgetBuddyContext` interface, to allow overriding default onClick behavior when clicking on a buddy (by default, it opens the widget in a Callout).
91
+
92
+ ## 1.14.3 - 2025-07-04
93
+
94
+ - Added `justification` string property to widget manifest to describe the reasoning behind the need for certain API permisisons
95
+
96
+ ## 1.14.2 - 2025-07-02
97
+
98
+ - Reverted `@microsoft/sp-http` dependency back to SPFx version `1.18.2` due to postponed upgrade
99
+ - Added `isOptional` boolean to widget manifest to allow marking certain API permission requests as optional
100
+
101
+ ## 1.14.1 - 2025-06-17
102
+
103
+ - Reverted module type 'commonjs' for backwards compatibility
104
+
105
+ ## 1.14.0 - 2025-05-21
106
+
107
+ - Version bumped `@microsoft/sp-http` dependency to latest SPFx version `1.21.1`
108
+
109
+ ## 1.13.2 - 2025-04-11
110
+
111
+ - Minor update in documentation of `WebApiPermissionRequest` interface
112
+
113
+ ## 1.13.1 - 2025-03-11
114
+
115
+ - Added new interface `ICSite`, used to represent a SharePoint site object in code
116
+
117
+ ## 1.13.0 - 2025-02-17
118
+
119
+ - Fixed an issue with detecting external users in `UserHelper`
120
+ - Changed target JavaScript version to `ES6`
121
+
122
+ ## 1.12.0 - 2025-02-11
123
+
124
+ - Added `ColorOption` interface.
125
+ - Added `WidgetDesignContext` interface.
126
+ - Added `design` property of type `WidgetDesignContext` to `WidgetContext` interface, to support UI settings within widgets.
127
+ - Deprecated `elementBorderRadius` property which is renamed to `borderRadius` and moved under `design` property in `WidgetContext` interface.
128
+
129
+ ## 1.11.6 - 2025-01-30
130
+
131
+ - Added `spServiceScope` property to `WidgetContext` interface.
132
+ - Added `loadComponentById` function to `WidgetContext` interface.
133
+ - Deprecated `definition` property which is replaced by `variant` property in `WidgetContext` interface.
134
+ - Deprecated `instance.publishNotification` function in `WidgetContext` interface because feature is no longer available.
135
+
136
+ ## 1.11.5 - 2025-01-21
137
+
138
+ - Added `defaultColor` property to `WidgetBuddyContext` interface.
139
+
140
+ ## 1.11.4 - 2024-11-08
141
+
142
+ - Added `driveId` property to `FilePickerFileProps` interface.
143
+
144
+ ## 1.11.3 - 2024-11-05
145
+
146
+ - Added `fileName` property to `FilePickerFileProps` interface.
147
+
148
+ ## 1.11.2 - 2024-10-21
149
+
150
+ - Added optional `objectId` property to the `ICPersona` interface.
151
+
152
+ ## 1.11.1 - 2024-10-17
153
+
154
+ - Made `buddy` property of type `WidgetBuddyContext` optional.
155
+
156
+ ## 1.11.0 - 2024-10-17
157
+
158
+ - Added `renderBuddy` function to the `BaseWidget` class, to support rendering widgets as a buddy.
159
+ - Added `buddy` property of type `WidgetBuddyContext` to the `WidgetContext` interface, to support utility functions specifically for a widget buddy.
160
+ - Added `setBadgeProperties` function to the `WidgetBuddyContext` interface, to allow rendering a badge on top of the buddy.
161
+
162
+ ## 1.10.8 - 2024-10-15
163
+
164
+ - Added `buddybar` to the `BoardType` type, to support widgets that run in the scope of the upcoming buddy bar feature
165
+
166
+ ## 1.10.7 - 2024-08-20
167
+
168
+ - Replaced `onInit` function with a new asynchronous `init` function in the `BaseWidget` class, to allow waiting until initialization is complete.
169
+
170
+ ## 1.10.6 - 2024-08-19
171
+
172
+ - Added `userDisplayName` property to the `WidgetContext` interface, to allow using the currently signed-in user's display name in widgets.
173
+
174
+ ## 1.10.5 - 2024-08-07
175
+
176
+ - Added `onSearch` property to the `CommandBarSearchItem` interface, to allow executing a callback when the user presses enter in the search box.
177
+
178
+ ## 1.10.4 - 2024-07-23
179
+
180
+ - Added `SearchBar` value to the `CommandBarItemType` enum, to allow rendering a command bar item as a search bar.
181
+ - Added `CommandBarSearchItem` interface, to allow passing extra search-related props to a CommandBarItem of type `SearchBar`.
182
+ - Added optional `overflowButtonIconName` and `overflowButtonTooltip` properties to the `CommandBarTabOptions` interface, to allow customization of the overflow menu button.
183
+ - Added optional `itemCount` property to the `CommandBarTab` interface.
184
+ - Added summaries to functions and interfaces related to widget command bar tabs.
185
+
186
+ ## 1.10.3 - 2024-07-22
187
+
188
+ - Added override in package.json to use version `2.3.7` instead of `2.3.6` of `requirejs` because the latter has vulnerability CVE-2024-38999
189
+
190
+ ## 1.10.2 - 2024-07-19
191
+
192
+ - Added `registerTabs` function to the `WidgetInstanceContext` interface, to allow rendering of tabs in the widget header.
193
+ - Added `setSelectedTab` function to the `WidgetInstanceContext` interface, to allow setting the current selected tab in the widget header.
194
+ - Added `CommandBarTab` interface.
195
+ - Added `CommandBarTabOptions` interface.
196
+
197
+ ## 1.10.1 - 2024-07-08
198
+
199
+ - Added `widget-administrator` role to the `UserRole` type.
200
+
201
+ ## 1.10.0 - 2024-06-25
202
+
203
+ - Added optional `updateDataAccess()` function to the `BaseWidget` class, used to update access to widget-specific data.
204
+ - Added `administrators` property to the `WidgetVariantContext` interface.
205
+
206
+ ## 1.9.14 - 2024-06-18
207
+
208
+ - Change import of `SPFI` type to decrease bundle sizes in widgets.
209
+
210
+ ## 1.9.13 - 2024-06-18
211
+
212
+ - Added `spHttpClient` property to `WidgetContext` interface, to perform REST calls against SharePoint.
213
+ - Added `spHttpClientConfiguration` property to `WidgetContext` interface.
214
+
215
+ ## 1.9.12 - 2024-06-17
216
+
217
+ - Added `sp` property to `WidgetContext` interface, to allow using a centralized PnPjs version across all widgets.
218
+ - Added `siteId` property to `WidgetContext` interface.
219
+ - Added `boardsInstanceId` property to `WidgetContext` interface.
220
+
221
+ ## 1.9.11 - 2024-06-14
222
+
223
+ - Fixed handling of null `ICPersonaType` values in `isCurrentUserInScope` function of `UserHelper` class.
224
+
225
+ ## 1.9.10 - 2024-06-04
226
+
227
+ - Renamed `CustomCommandBarItemProps` interface to `CommandBarItemProps`.
228
+ - Merged `CommandBarIcon`, `CommandBarLink` and `CommandBarItemBase` interfaces into the `CommandBarItemProps` interface, to simplify adding custom command bar items.
229
+ - Added `Overflow` type to `CommandBarItemType` enum, to allow rendering an item inside the overflow menu.
230
+ - Added `highlighted` property to the `CommandBarItemProps` interface, to allow rendering an item as if it is being hovered.
231
+ - Added `cursor` property to the `CommandBarItemProps` interface, to allow a different cursor when hovering over an item.
232
+ - Added `disabled` property to the `CommandBarItemProps` interface, to allow rendering an item in a disabled state.
233
+
234
+ ## 1.9.9 - 2024-05-14
235
+
236
+ - Changed return type of `createDeepLink` function of the WidgetInstanceContext interface from `void` to `string`.
237
+
238
+ ## 1.9.8 - 2024-05-13
239
+
240
+ - Added `createDeepLink` property to the WidgetInstanceContext interface, to allow creating a deep link URL based on the current board and a widget instance.
241
+ - Added `setDeepLinkData` property to the WidgetInstanceContext interface, to allow setting deep link data related to a widget instance in the URL of the current page.
242
+ - Added `getDeepLinkData` property to the WidgetInstanceContext interface, to allow getting deep link data related to a widget instance from the URL of the current page.
243
+
244
+ ## 1.9.7 - 2024-04-19
245
+
246
+ - Added `hideSpHubNav` property to the IFrameDialogOptions interface, to allow hiding the Hub navigation on SharePoint sites.
247
+ - Added `hideSpSiteHeader` property to the IFrameDialogOptions interface, to allow hiding the site header on SharePoint sites.
248
+ - Added `showHistoryButtons` property to the IFrameDialogOptions interface, to render back and forward buttons, allowing the user to navigate the browser history.
249
+ - Added `showOpenInNewWindow` property to the IFrameDialogOptions interface, to render an 'open in new window' button, allowing the user to open the iframe url in a new browser window.
250
+
251
+ ## 1.9.6 - 2024-04-19
252
+
253
+ - Changed `onRenderHeaderIcon` property of the IFrameDialogOptions interface, to work similarly to the widget render functions.
254
+
255
+ ## 1.9.5 - 2024-04-18
256
+
257
+ - Added `title` property to the IFrameDialogOptions interface, to allow rendering a title in the dialog header.
258
+ - Added `titleUrl` property to the IFrameDialogOptions interface, to allow making the dialog header title clickable.
259
+ - Added `onRenderHeaderIcon` property to the IFrameDialogOptions interface, to allow rendering an icon in the dialog header.
260
+ - Added `onLoad` property to the IFrameDialogOptions interface, to support executing some code after the iframe finishes loading.
261
+
262
+ ## 1.9.4 - 2024-04-11
263
+
264
+ - Reintroduced the following types: `AadHttpClient`,`AadHttpClientConfiguration`,`AadHttpClientFactory`,`AadHttpClientResponse`, `AadTokenProvider`, `AadTokenProviderFactory`
265
+
266
+ ## 1.9.2 - 2024-03-21
267
+
268
+ - Added `CommandBarIcon` interface, to allow rendering a `CustomCommandBarItem` as a single icon or an icon button.
269
+ - Added `CommandBarLink` interface, to allow rendering a `CustomCommandBarItem` as a clickable link.
270
+ - Added `CommandBarItemBase` interface, to act as a base for different types of `CustomCommandBarItem`.
271
+ - Added `elementBorderRadius` property to the `WidgetContext` interface, to allow styling widgets according to the configured design preferences.
272
+ - Changed `CustomCommandBarItemProps` type to accept either a `CommandBarIcon` or a `CommandBarLink`.
273
+
274
+ ## 1.9.1 - 2023-10-20
275
+
276
+ - Added `WidgetInstanceContext` interface, to allow typing the `instance` property of the `WidgetContext` interface.
277
+ - Added `WidgetVariantContext` interface, to allow typing the `definition` property of the `WidgetContext` interface.
278
+ - Added `WidgetManifestContext` interface, to allow typing the `manifest` property of the `WidgetContext` interface.
279
+
280
+ ## 1.9.0 - 2023-10-20
281
+
282
+ - Added optional `importData()` function to the `BaseWidget` class, used to import widget-specific data.
283
+ - Added optional `exportData()` function to the `BaseWidget` class, used to export widget-specific data.
284
+ - Added new exported `ExportData` type.
285
+
286
+ ## 1.8.17 - 2023-10-09
287
+
288
+ - Added `iconName` property to the `definition` object of the `WidgetContext` interface, to support using an icon to represent a widget.
289
+
290
+ ## 1.8.16 - 2023-09-26
291
+
292
+ - Added `Custom` value to `ICPersonaType` enum, to support a custom ICPersona.
293
+
294
+ ## 1.8.15 - 2023-09-01
295
+
296
+ - Added `thumbnailUrl` property to `WidgetManifestConfig` interface, as a non-translatable substitute of the newly deprecated `preview_small` property from `WidgetImages` interface.
297
+ - Removed the deprecated `preview_small` property from `WidgetImages` interface.
298
+
299
+ ## 1.8.14 - 2023-09-01
300
+
301
+ - Added `iconName` property to `WidgetManifestConfig` interface, to support using an icon to represent a widget, e.g. in the widget library or widget header.
302
+ - Removed the deprecated `notificationIcon` property from `WidgetManifestConfig` interface.
303
+
304
+ ## 1.8.13 - 2023-06-08
305
+
306
+ - Removed the deprecated `resolved` property from `ICPersona` interface
307
+
308
+ ## 1.8.12 - 2023-04-04
309
+
310
+ - Changed `openFilePicker` function to return more details of the picked file in the shape of `FilePickerFileProps`
311
+
312
+ ## 1.8.11 - 2023-04-03
313
+
314
+ - Changed `openFilePicker` function to return more details of the picked file in the shape of `FilePickerFileProps`
315
+
316
+ ## 1.8.10 - 2023-03-30
317
+
318
+ - Changed `openFilePicker` function to accept `options`, to support configuration of picker behavior
319
+
320
+ ## 1.8.9 - 2023-03-06
321
+
322
+ - Added `registerCustomCommandBarItems` function to the `instance` object of the `WidgetContext` interface, to support multiple custom buttons in the widget header.
323
+ - Added `unregisterCustomCommandBarItems` function to the `instance` object of the `WidgetContext` interface, to support removing all custom buttons in the widget header.
324
+ - Added optional `id` property to exported `CustomCommandBarItemProps` type, to support removing a custom command bar item by id.
325
+ - Added optional `pinned` property to exported `CustomCommandBarItemProps` type, to support forcing the widget header to always be visible.
326
+ - Added optional `showNotificationBadge` property to exported `CustomCommandBarItemProps` type, to support showing a red notification badge over the custom command bar item.
327
+ - Added optional `order` property to exported `CustomCommandBarItemProps` type, to support changing the order of custom command bar items.
328
+ - Changed `unregisterCustomCommandBarItem` function of the `instance` object of the `WidgetContext` interface, to support removing a custom command bar item by id.
329
+
330
+ ## 1.8.8 - 2023-02-16
331
+
332
+ - Removed all SharePoint and Teams dependencies.
333
+
334
+ ## 1.8.7 - 2022-12-13
335
+
336
+ - Added `userRoles` property to the `WidgetContext` interface, to inform widgets of the roles of the current user.
337
+ - Added new exported `UserRole` type.
338
+
339
+ ## 1.8.6 - 2022-12-08
340
+
341
+ - Added `boardType` property to the `instance` object of the `WidgetContext` interface, to inform widgets of the type of their board.
342
+ - Added `allowedBoardTypes` property to the `definition` object of the `WidgetContext` interface, to inform widget variants of the types of boards it is allowed to be added to.
343
+ - Added new exported `BoardType` type.
344
+
345
+ ## 1.8.5 - 2022-09-30
346
+
347
+ - Added `setWidgetTitleSuffix()` function to the `instance` object of the `WidgetContext` interface, to support appending the title of the widget with additional text.
348
+ - Added `setWidgetSubtitle()` function to the `instance` object of the `WidgetContext` interface, to support overriding the subtitle of the widget.
349
+ - Added `setUserConfigButtonVisibilty()` function to the `instance` object of the `WidgetContext` interface, to support hiding the settings button from the widget header.
350
+ - Fixed spelling of `setWidgetHeaderVisibilty()` function. The function is now called `setWidgetHeaderVisibility()`.
351
+
352
+ ## 1.8.4 - 2022-09-05
353
+
354
+ - Added `openIFrameDialog()` function to the `WidgetContext` interface. This has the same functionality as the `openUrlInDialog()` function of the `instance` object, but adds more control over the dimensions of the dialog. The function `openUrlInDialog()` is now deprecated.
355
+
356
+ ## 1.8.3 - 2022-08-16
357
+
358
+ - Added `openFilePicker()` function to the `WidgetContext` interface to support file selection from within a widget.
359
+
360
+ ## 1.8.2 - 2022-07-06
361
+
362
+ - Added `subtitle` property to the `WidgetResource` interface.
363
+
364
+ ## 1.8.1 - 2022-06-17
365
+
366
+ - Added new section `analytics` to `WidgetManifestConfig` interface to allow definition of time-based events that can be raised by a widget.
367
+ - Added `raiseEvent(...)` to the `instance` object of the `WidgetContent` interface, allowing widgets to raise an event.
368
+
369
+ ## 1.7.11 - 2022-03-23
370
+
371
+ - Added `setWidgetHeaderVisibilty()` function to the `instance` object of the `WidgetContext` interface, allowing widgets to render in full height.
372
+
373
+ ## 1.7.9 - 2022-01-20
374
+
375
+ - Added `userAccountCreated` date/time to the `WidgetContext` interface.
376
+
377
+ ## 1.7.8 - 2022-01-18
378
+
379
+ ### Changed
380
+
381
+ - Added `initiateWidgetDeletion()` function to the `WidgetContext` interface.
382
+
383
+ ## 1.7.7 - 2022-01-14
384
+
385
+ ### Changed
386
+
387
+ - Added `tenantId` property to the `WidgetContext` interface.
388
+
389
+ ## 1.7.6 - 2021-11-04
390
+
391
+ ### Changed
392
+
393
+ - Added `theme` property to the `WidgetContext` interface to give access to currently applied theme.
394
+
395
+ ## 1.7.5 - 2021-10-26
396
+
397
+ ### Changed
398
+
399
+ - Added `userSecurityGroups` and `userSharePointGroups` properties to the `WidgetContext` interface to inform widgets of SharePoint and security group memberships of the current user.
400
+
401
+ ## 1.7.4 - 2021-10-20
402
+
403
+ ### Changed
404
+
405
+ - Added `contentLanguages` property to the `WidgetContext` interface to inform widgets of the available content languages as configured in Ichicraft Boards.
406
+
407
+ ## 1.7.3 - 2021-10-04
408
+
409
+ ### Changed
410
+
411
+ - Added `manifestVersion` property to the `WidgetManifestConfig` interface to support multiple versions of the manifest. Current version is 2 which introduced this and the `externals` property.
412
+ - Added `externals` property to the `WidgetManifestConfig` interface to support libraries that can be loaded separately from the widget bundle. This reduces widget bundle size and improves overal performance of Ichicraft Boards.
413
+
414
+ ## 1.6.1 - 2021-02-18
415
+
416
+ ### Changed
417
+
418
+ - Added `userEmail` property to the `WidgetContext` interface to provide current user's email address to widgets.
419
+
420
+ ## 1.5.0 - 2021-02-16
421
+
422
+ ### Changed
423
+
424
+ - Added `teamsSdk` property to the `WidgetContext` interface to allow interaction with Teams in case widget board is running in Teams client. Will be `undefined` if running in SharePoint.
425
+
426
+ ## 1.4.0 - 2021-01-25
427
+
428
+ ### Changed
429
+
430
+ - Added several properties to the `WidgetContext` interface to identify the context in which the widget is shown (e.g. Team Browser hosted)
431
+
432
+ ## 1.3.0 - 2021-01-15
433
+
434
+ ### Changed
435
+
436
+ - `registerCustomCommandBarItem()` is added to the `WidgetContext` interface as a function to call from within a widget instance to render an additional command bar item in the widget header.
437
+ - `unregisterCustomCommandBarItem()` is added to the `WidgetContext` interface as a function to call from within a widget instance to remove a previously added command bar item from the widget header.
438
+
439
+ ## 1.2.0 - 2021-01-15
440
+
441
+ ### Changed
442
+
443
+ - `loadScript()` is added to the `WidgetContext` interface as a function to call from within a widget in case an external script needs to be loaded. This allows the widget board to load external javascript.
444
+
445
+ ## 1.1.0 - 2021-01-11
446
+
447
+ ### Changed
448
+
449
+ - `handleFatalError()` is added to the `WidgetContext` interface as a function to call from within a widget in case of an unhandled/unresolvable error. This allows the widget board to handle this situation gracefully.
450
+ - **deps:** removed dependency ajv
451
+
452
+ ## <= 1.0.5 - 2020-12-07
453
+
454
+ No changelog was maintained for the earlier versions.
@@ -226,6 +226,14 @@ export interface WidgetContext {
226
226
  * Provide the id (GUID) of the Bloom Group.
227
227
  */
228
228
  isCurrentUserMemberOfBloomGroup?: (groupId: string) => Promise<boolean>;
229
+ /**
230
+ * Provides the tenant's Bloom Group definitions, e.g. so pickers can offer them.
231
+ * Untyped to avoid a cross-package dependency (like `theme`); items carry the
232
+ * Bloom Group shape as defined by the host.
233
+ */
234
+ bloomGroups?: {
235
+ fetchGroups(): Promise<any[]>;
236
+ };
229
237
  /**
230
238
  * Generates a hash of all combined SP Groups of the current user. This can be used as
231
239
  * cache invalidator to detect changes.
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
- {
2
- "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.18.0",
4
- "description": "Part of the Widget Development Kit for building widgets for Bloom Intranet",
5
- "main": "lib/index.js",
6
- "types": "lib/index.d.ts",
7
- "scripts": {
8
- "build": "tsc --build --force --verbose",
9
- "build:watch": "tsc --build --force --verbose --watch",
10
- "clean": "rimraf lib",
11
- "pretty": "prettier --write \"./**/*.{js,jsx,mjs,cjs,ts,tsx,json}\"",
12
- "prepublishOnly": "npm run clean && npm run build"
13
- },
14
- "keywords": [
15
- "ichicraft",
16
- "widget",
17
- "widgets"
18
- ],
19
- "author": "Ichicraft",
20
- "license": "UNLICENSED",
21
- "files": [
22
- "lib/**/*"
23
- ],
24
- "overrides": {
25
- "requirejs": "2.3.7",
26
- "validator@<13.15.26": "13.15.26",
27
- "z-schema@<5.0.5": "5.0.5"
28
- },
29
- "dependencies": {
30
- "@ichicraft/caching": "~1.0.2",
31
- "@microsoft/microsoft-graph-client": "3.0.2",
32
- "@microsoft/sp-http": "1.18.2",
33
- "@pnp/sp": "4.0.1"
34
- },
35
- "devDependencies": {
36
- "@ianvs/prettier-plugin-sort-imports": "4.4.1",
37
- "eslint": "8.57.0",
38
- "eslint-config-prettier": "9.1.0",
39
- "eslint-plugin-prettier": "5.2.1",
40
- "eslint-plugin-react": "7.35.2",
41
- "eslint-plugin-react-hooks": "4.6.2",
42
- "prettier": "3.3.3",
43
- "typescript": "~5.3.3"
44
- }
45
- }
1
+ {
2
+ "name": "@ichicraft/widgets-widget-base",
3
+ "version": "1.19.0",
4
+ "description": "Part of the Widget Development Kit for building widgets for Bloom Intranet",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc --build --force --verbose",
9
+ "build:watch": "tsc --build --force --verbose --watch",
10
+ "clean": "rimraf lib",
11
+ "pretty": "prettier --write \"./**/*.{js,jsx,mjs,cjs,ts,tsx,json}\"",
12
+ "prepublishOnly": "npm run clean && npm run build"
13
+ },
14
+ "keywords": [
15
+ "ichicraft",
16
+ "widget",
17
+ "widgets"
18
+ ],
19
+ "author": "Ichicraft",
20
+ "license": "UNLICENSED",
21
+ "files": [
22
+ "lib/**/*"
23
+ ],
24
+ "overrides": {
25
+ "requirejs": "2.3.7",
26
+ "validator@<13.15.26": "13.15.26",
27
+ "z-schema@<5.0.5": "5.0.5"
28
+ },
29
+ "dependencies": {
30
+ "@ichicraft/caching": "~1.0.2",
31
+ "@microsoft/microsoft-graph-client": "3.0.2",
32
+ "@microsoft/sp-http": "1.18.2",
33
+ "@pnp/sp": "4.0.1"
34
+ },
35
+ "devDependencies": {
36
+ "@ianvs/prettier-plugin-sort-imports": "4.4.1",
37
+ "eslint": "8.57.0",
38
+ "eslint-config-prettier": "9.1.0",
39
+ "eslint-plugin-prettier": "5.2.1",
40
+ "eslint-plugin-react": "7.35.2",
41
+ "eslint-plugin-react-hooks": "4.6.2",
42
+ "prettier": "3.3.3",
43
+ "typescript": "~5.3.3"
44
+ }
45
+ }