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