@ichicraft/widgets-widget-base 1.12.0 → 1.13.1

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,344 +1,351 @@
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 Ichicraft Boards._
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.12.0 - 2025-02-11
13
-
14
- - Added `ColorOption` interface.
15
- - Added `WidgetDesignContext` interface.
16
- - Added `design` property of type `WidgetDesignContext` to `WidgetContext` interface, to support UI settings within widgets.
17
- - Deprecated `elementBorderRadius` property which is renamed to `borderRadius` and moved under `design` property in `WidgetContext` interface.
18
-
19
- ## 1.11.6 - 2025-01-30
20
-
21
- - Added `spServiceScope` property to `WidgetContext` interface.
22
- - Added `loadComponentById` function to `WidgetContext` interface.
23
- - Deprecated `definition` property which is replaced by `variant` property in `WidgetContext` interface.
24
- - Deprecated `instance.publishNotification` function in `WidgetContext` interface because feature is no longer available.
25
-
26
- ## 1.11.5 - 2025-01-21
27
-
28
- - Added `defaultColor` property to `WidgetBuddyContext` interface.
29
-
30
- ## 1.11.4 - 2024-11-08
31
-
32
- - Added `driveId` property to `FilePickerFileProps` interface.
33
-
34
- ## 1.11.3 - 2024-11-05
35
-
36
- - Added `fileName` property to `FilePickerFileProps` interface.
37
-
38
- ## 1.11.2 - 2024-10-21
39
-
40
- - Added optional `objectId` property to the `ICPersona` interface.
41
-
42
- ## 1.11.1 - 2024-10-17
43
-
44
- - Made `buddy` property of type `WidgetBuddyContext` optional.
45
-
46
- ## 1.11.0 - 2024-10-17
47
-
48
- - Added `renderBuddy` function to the `BaseWidget` class, to support rendering widgets as a buddy.
49
- - Added `buddy` property of type `WidgetBuddyContext` to the `WidgetContext` interface, to support utility functions specifically for a widget buddy.
50
- - Added `setBadgeProperties` function to the `WidgetBuddyContext` interface, to allow rendering a badge on top of the buddy.
51
-
52
- ## 1.10.8 - 2024-10-15
53
-
54
- - Added `buddybar` to the `BoardType` type, to support widgets that run in the scope of the upcoming buddy bar feature
55
-
56
- ## 1.10.7 - 2024-08-20
57
-
58
- - Replaced `onInit` function with a new asynchronous `init` function in the `BaseWidget` class, to allow waiting until initialization is complete.
59
-
60
- ## 1.10.6 - 2024-08-19
61
-
62
- - Added `userDisplayName` property to the `WidgetContext` interface, to allow using the currently signed-in user's display name in widgets.
63
-
64
- ## 1.10.5 - 2024-08-07
65
-
66
- - Added `onSearch` property to the `CommandBarSearchItem` interface, to allow executing a callback when the user presses enter in the search box.
67
-
68
- ## 1.10.4 - 2024-07-23
69
-
70
- - Added `SearchBar` value to the `CommandBarItemType` enum, to allow rendering a command bar item as a search bar.
71
- - Added `CommandBarSearchItem` interface, to allow passing extra search-related props to a CommandBarItem of type `SearchBar`.
72
- - Added optional `overflowButtonIconName` and `overflowButtonTooltip` properties to the `CommandBarTabOptions` interface, to allow customization of the overflow menu button.
73
- - Added optional `itemCount` property to the `CommandBarTab` interface.
74
- - Added summaries to functions and interfaces related to widget command bar tabs.
75
-
76
- ## 1.10.3 - 2024-07-22
77
-
78
- - 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
79
-
80
- ## 1.10.2 - 2024-07-19
81
-
82
- - Added `registerTabs` function to the `WidgetInstanceContext` interface, to allow rendering of tabs in the widget header.
83
- - Added `setSelectedTab` function to the `WidgetInstanceContext` interface, to allow setting the current selected tab in the widget header.
84
- - Added `CommandBarTab` interface.
85
- - Added `CommandBarTabOptions` interface.
86
-
87
- ## 1.10.1 - 2024-07-08
88
-
89
- - Added `widget-administrator` role to the `UserRole` type.
90
-
91
- ## 1.10.0 - 2024-06-25
92
-
93
- - Added optional `updateDataAccess()` function to the `BaseWidget` class, used to update access to widget-specific data.
94
- - Added `administrators` property to the `WidgetVariantContext` interface.
95
-
96
- ## 1.9.14 - 2024-06-18
97
-
98
- - Change import of `SPFI` type to decrease bundle sizes in widgets.
99
-
100
- ## 1.9.13 - 2024-06-18
101
-
102
- - Added `spHttpClient` property to `WidgetContext` interface, to perform REST calls against SharePoint.
103
- - Added `spHttpClientConfiguration` property to `WidgetContext` interface.
104
-
105
- ## 1.9.12 - 2024-06-17
106
-
107
- - Added `sp` property to `WidgetContext` interface, to allow using a centralized PnPjs version across all widgets.
108
- - Added `siteId` property to `WidgetContext` interface.
109
- - Added `boardsInstanceId` property to `WidgetContext` interface.
110
-
111
- ## 1.9.11 - 2024-06-14
112
-
113
- - Fixed handling of null `ICPersonaType` values in `isCurrentUserInScope` function of `UserHelper` class.
114
-
115
- ## 1.9.10 - 2024-06-04
116
-
117
- - Renamed `CustomCommandBarItemProps` interface to `CommandBarItemProps`.
118
- - Merged `CommandBarIcon`, `CommandBarLink` and `CommandBarItemBase` interfaces into the `CommandBarItemProps` interface, to simplify adding custom command bar items.
119
- - Added `Overflow` type to `CommandBarItemType` enum, to allow rendering an item inside the overflow menu.
120
- - Added `highlighted` property to the `CommandBarItemProps` interface, to allow rendering an item as if it is being hovered.
121
- - Added `cursor` property to the `CommandBarItemProps` interface, to allow a different cursor when hovering over an item.
122
- - Added `disabled` property to the `CommandBarItemProps` interface, to allow rendering an item in a disabled state.
123
-
124
- ## 1.9.9 - 2024-05-14
125
-
126
- - Changed return type of `createDeepLink` function of the WidgetInstanceContext interface from `void` to `string`.
127
-
128
- ## 1.9.8 - 2024-05-13
129
-
130
- - Added `createDeepLink` property to the WidgetInstanceContext interface, to allow creating a deep link URL based on the current board and a widget instance.
131
- - 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.
132
- - 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.
133
-
134
- ## 1.9.7 - 2024-04-19
135
-
136
- - Added `hideSpHubNav` property to the IFrameDialogOptions interface, to allow hiding the Hub navigation on SharePoint sites.
137
- - Added `hideSpSiteHeader` property to the IFrameDialogOptions interface, to allow hiding the site header on SharePoint sites.
138
- - Added `showHistoryButtons` property to the IFrameDialogOptions interface, to render back and forward buttons, allowing the user to navigate the browser history.
139
- - 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.
140
-
141
- ## 1.9.6 - 2024-04-19
142
-
143
- - Changed `onRenderHeaderIcon` property of the IFrameDialogOptions interface, to work similarly to the widget render functions.
144
-
145
- ## 1.9.5 - 2024-04-18
146
-
147
- - Added `title` property to the IFrameDialogOptions interface, to allow rendering a title in the dialog header.
148
- - Added `titleUrl` property to the IFrameDialogOptions interface, to allow making the dialog header title clickable.
149
- - Added `onRenderHeaderIcon` property to the IFrameDialogOptions interface, to allow rendering an icon in the dialog header.
150
- - Added `onLoad` property to the IFrameDialogOptions interface, to support executing some code after the iframe finishes loading.
151
-
152
- ## 1.9.4 - 2024-04-11
153
-
154
- - Reintroduced the following types: `AadHttpClient`,`AadHttpClientConfiguration`,`AadHttpClientFactory`,`AadHttpClientResponse`, `AadTokenProvider`, `AadTokenProviderFactory`
155
-
156
- ## 1.9.2 - 2024-03-21
157
-
158
- - Added `CommandBarIcon` interface, to allow rendering a `CustomCommandBarItem` as a single icon or an icon button.
159
- - Added `CommandBarLink` interface, to allow rendering a `CustomCommandBarItem` as a clickable link.
160
- - Added `CommandBarItemBase` interface, to act as a base for different types of `CustomCommandBarItem`.
161
- - Added `elementBorderRadius` property to the `WidgetContext` interface, to allow styling widgets according to the configured design preferences.
162
- - Changed `CustomCommandBarItemProps` type to accept either a `CommandBarIcon` or a `CommandBarLink`.
163
-
164
- ## 1.9.1 - 2023-10-20
165
-
166
- - Added `WidgetInstanceContext` interface, to allow typing the `instance` property of the `WidgetContext` interface.
167
- - Added `WidgetVariantContext` interface, to allow typing the `definition` property of the `WidgetContext` interface.
168
- - Added `WidgetManifestContext` interface, to allow typing the `manifest` property of the `WidgetContext` interface.
169
-
170
- ## 1.9.0 - 2023-10-20
171
-
172
- - Added optional `importData()` function to the `BaseWidget` class, used to import widget-specific data.
173
- - Added optional `exportData()` function to the `BaseWidget` class, used to export widget-specific data.
174
- - Added new exported `ExportData` type.
175
-
176
- ## 1.8.17 - 2023-10-09
177
-
178
- - Added `iconName` property to the `definition` object of the `WidgetContext` interface, to support using an icon to represent a widget.
179
-
180
- ## 1.8.16 - 2023-09-26
181
-
182
- - Added `Custom` value to `ICPersonaType` enum, to support a custom ICPersona.
183
-
184
- ## 1.8.15 - 2023-09-01
185
-
186
- - Added `thumbnailUrl` property to `WidgetManifestConfig` interface, as a non-translatable substitute of the newly deprecated `preview_small` property from `WidgetImages` interface.
187
- - Removed the deprecated `preview_small` property from `WidgetImages` interface.
188
-
189
- ## 1.8.14 - 2023-09-01
190
-
191
- - Added `iconName` property to `WidgetManifestConfig` interface, to support using an icon to represent a widget, e.g. in the widget library or widget header.
192
- - Removed the deprecated `notificationIcon` property from `WidgetManifestConfig` interface.
193
-
194
- ## 1.8.13 - 2023-06-08
195
-
196
- - Removed the deprecated `resolved` property from `ICPersona` interface
197
-
198
- ## 1.8.12 - 2023-04-04
199
-
200
- - Changed `openFilePicker` function to return more details of the picked file in the shape of `FilePickerFileProps`
201
-
202
- ## 1.8.11 - 2023-04-03
203
-
204
- - Changed `openFilePicker` function to return more details of the picked file in the shape of `FilePickerFileProps`
205
-
206
- ## 1.8.10 - 2023-03-30
207
-
208
- - Changed `openFilePicker` function to accept `options`, to support configuration of picker behavior
209
-
210
- ## 1.8.9 - 2023-03-06
211
-
212
- - Added `registerCustomCommandBarItems` function to the `instance` object of the `WidgetContext` interface, to support multiple custom buttons in the widget header.
213
- - Added `unregisterCustomCommandBarItems` function to the `instance` object of the `WidgetContext` interface, to support removing all custom buttons in the widget header.
214
- - Added optional `id` property to exported `CustomCommandBarItemProps` type, to support removing a custom command bar item by id.
215
- - Added optional `pinned` property to exported `CustomCommandBarItemProps` type, to support forcing the widget header to always be visible.
216
- - Added optional `showNotificationBadge` property to exported `CustomCommandBarItemProps` type, to support showing a red notification badge over the custom command bar item.
217
- - Added optional `order` property to exported `CustomCommandBarItemProps` type, to support changing the order of custom command bar items.
218
- - Changed `unregisterCustomCommandBarItem` function of the `instance` object of the `WidgetContext` interface, to support removing a custom command bar item by id.
219
-
220
- ## 1.8.8 - 2023-02-16
221
-
222
- - Removed all SharePoint and Teams dependencies.
223
-
224
- ## 1.8.7 - 2022-12-13
225
-
226
- - Added `userRoles` property to the `WidgetContext` interface, to inform widgets of the roles of the current user.
227
- - Added new exported `UserRole` type.
228
-
229
- ## 1.8.6 - 2022-12-08
230
-
231
- - Added `boardType` property to the `instance` object of the `WidgetContext` interface, to inform widgets of the type of their board.
232
- - 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.
233
- - Added new exported `BoardType` type.
234
-
235
- ## 1.8.5 - 2022-09-30
236
-
237
- - Added `setWidgetTitleSuffix()` function to the `instance` object of the `WidgetContext` interface, to support appending the title of the widget with additional text.
238
- - Added `setWidgetSubtitle()` function to the `instance` object of the `WidgetContext` interface, to support overriding the subtitle of the widget.
239
- - Added `setUserConfigButtonVisibilty()` function to the `instance` object of the `WidgetContext` interface, to support hiding the settings button from the widget header.
240
- - Fixed spelling of `setWidgetHeaderVisibilty()` function. The function is now called `setWidgetHeaderVisibility()`.
241
-
242
- ## 1.8.4 - 2022-09-05
243
-
244
- - 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.
245
-
246
- ## 1.8.3 - 2022-08-16
247
-
248
- - Added `openFilePicker()` function to the `WidgetContext` interface to support file selection from within a widget.
249
-
250
- ## 1.8.2 - 2022-07-06
251
-
252
- - Added `subtitle` property to the `WidgetResource` interface.
253
-
254
- ## 1.8.1 - 2022-06-17
255
-
256
- - Added new section `analytics` to `WidgetManifestConfig` interface to allow definition of time-based events that can be raised by a widget.
257
- - Added `raiseEvent(...)` to the `instance` object of the `WidgetContent` interface, allowing widgets to raise an event.
258
-
259
- ## 1.7.11 - 2022-03-23
260
-
261
- - Added `setWidgetHeaderVisibilty()` function to the `instance` object of the `WidgetContext` interface, allowing widgets to render in full height.
262
-
263
- ## 1.7.9 - 2022-01-20
264
-
265
- - Added `userAccountCreated` date/time to the `WidgetContext` interface.
266
-
267
- ## 1.7.8 - 2022-01-18
268
-
269
- ### Changed
270
-
271
- - Added `initiateWidgetDeletion()` function to the `WidgetContext` interface.
272
-
273
- ## 1.7.7 - 2022-01-14
274
-
275
- ### Changed
276
-
277
- - Added `tenantId` property to the `WidgetContext` interface.
278
-
279
- ## 1.7.6 - 2021-11-04
280
-
281
- ### Changed
282
-
283
- - Added `theme` property to the `WidgetContext` interface to give access to currently applied theme.
284
-
285
- ## 1.7.5 - 2021-10-26
286
-
287
- ### Changed
288
-
289
- - Added `userSecurityGroups` and `userSharePointGroups` properties to the `WidgetContext` interface to inform widgets of SharePoint and security group memberships of the current user.
290
-
291
- ## 1.7.4 - 2021-10-20
292
-
293
- ### Changed
294
-
295
- - Added `contentLanguages` property to the `WidgetContext` interface to inform widgets of the available content languages as configured in Ichicraft Boards.
296
-
297
- ## 1.7.3 - 2021-10-04
298
-
299
- ### Changed
300
-
301
- - 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.
302
- - 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.
303
-
304
- ## 1.6.1 - 2021-02-18
305
-
306
- ### Changed
307
-
308
- - Added `userEmail` property to the `WidgetContext` interface to provide current user's email address to widgets.
309
-
310
- ## 1.5.0 - 2021-02-16
311
-
312
- ### Changed
313
-
314
- - 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.
315
-
316
- ## 1.4.0 - 2021-01-25
317
-
318
- ### Changed
319
-
320
- - Added several properties to the `WidgetContext` interface to identify the context in which the widget is shown (e.g. Team Browser hosted)
321
-
322
- ## 1.3.0 - 2021-01-15
323
-
324
- ### Changed
325
-
326
- - `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.
327
- - `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.
328
-
329
- ## 1.2.0 - 2021-01-15
330
-
331
- ### Changed
332
-
333
- - `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.
334
-
335
- ## 1.1.0 - 2021-01-11
336
-
337
- ### Changed
338
-
339
- - `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.
340
- - **deps:** removed dependency ajv
341
-
342
- ## <= 1.0.5 - 2020-12-07
343
-
344
- 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 Ichicraft Boards._
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.13.1 - 2025-03-11
13
+ - Added new interface `ICSite`, used to represent a SharePoint site object in code
14
+
15
+ ## 1.13.0 - 2025-02-17
16
+ - Fixed an issue with detecting external users in `UserHelper`
17
+ - Changed target JavaScript version to `ES6`
18
+
19
+ ## 1.12.0 - 2025-02-11
20
+
21
+ - Added `ColorOption` interface.
22
+ - Added `WidgetDesignContext` interface.
23
+ - Added `design` property of type `WidgetDesignContext` to `WidgetContext` interface, to support UI settings within widgets.
24
+ - Deprecated `elementBorderRadius` property which is renamed to `borderRadius` and moved under `design` property in `WidgetContext` interface.
25
+
26
+ ## 1.11.6 - 2025-01-30
27
+
28
+ - Added `spServiceScope` property to `WidgetContext` interface.
29
+ - Added `loadComponentById` function to `WidgetContext` interface.
30
+ - Deprecated `definition` property which is replaced by `variant` property in `WidgetContext` interface.
31
+ - Deprecated `instance.publishNotification` function in `WidgetContext` interface because feature is no longer available.
32
+
33
+ ## 1.11.5 - 2025-01-21
34
+
35
+ - Added `defaultColor` property to `WidgetBuddyContext` interface.
36
+
37
+ ## 1.11.4 - 2024-11-08
38
+
39
+ - Added `driveId` property to `FilePickerFileProps` interface.
40
+
41
+ ## 1.11.3 - 2024-11-05
42
+
43
+ - Added `fileName` property to `FilePickerFileProps` interface.
44
+
45
+ ## 1.11.2 - 2024-10-21
46
+
47
+ - Added optional `objectId` property to the `ICPersona` interface.
48
+
49
+ ## 1.11.1 - 2024-10-17
50
+
51
+ - Made `buddy` property of type `WidgetBuddyContext` optional.
52
+
53
+ ## 1.11.0 - 2024-10-17
54
+
55
+ - Added `renderBuddy` function to the `BaseWidget` class, to support rendering widgets as a buddy.
56
+ - Added `buddy` property of type `WidgetBuddyContext` to the `WidgetContext` interface, to support utility functions specifically for a widget buddy.
57
+ - Added `setBadgeProperties` function to the `WidgetBuddyContext` interface, to allow rendering a badge on top of the buddy.
58
+
59
+ ## 1.10.8 - 2024-10-15
60
+
61
+ - Added `buddybar` to the `BoardType` type, to support widgets that run in the scope of the upcoming buddy bar feature
62
+
63
+ ## 1.10.7 - 2024-08-20
64
+
65
+ - Replaced `onInit` function with a new asynchronous `init` function in the `BaseWidget` class, to allow waiting until initialization is complete.
66
+
67
+ ## 1.10.6 - 2024-08-19
68
+
69
+ - Added `userDisplayName` property to the `WidgetContext` interface, to allow using the currently signed-in user's display name in widgets.
70
+
71
+ ## 1.10.5 - 2024-08-07
72
+
73
+ - Added `onSearch` property to the `CommandBarSearchItem` interface, to allow executing a callback when the user presses enter in the search box.
74
+
75
+ ## 1.10.4 - 2024-07-23
76
+
77
+ - Added `SearchBar` value to the `CommandBarItemType` enum, to allow rendering a command bar item as a search bar.
78
+ - Added `CommandBarSearchItem` interface, to allow passing extra search-related props to a CommandBarItem of type `SearchBar`.
79
+ - Added optional `overflowButtonIconName` and `overflowButtonTooltip` properties to the `CommandBarTabOptions` interface, to allow customization of the overflow menu button.
80
+ - Added optional `itemCount` property to the `CommandBarTab` interface.
81
+ - Added summaries to functions and interfaces related to widget command bar tabs.
82
+
83
+ ## 1.10.3 - 2024-07-22
84
+
85
+ - 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
86
+
87
+ ## 1.10.2 - 2024-07-19
88
+
89
+ - Added `registerTabs` function to the `WidgetInstanceContext` interface, to allow rendering of tabs in the widget header.
90
+ - Added `setSelectedTab` function to the `WidgetInstanceContext` interface, to allow setting the current selected tab in the widget header.
91
+ - Added `CommandBarTab` interface.
92
+ - Added `CommandBarTabOptions` interface.
93
+
94
+ ## 1.10.1 - 2024-07-08
95
+
96
+ - Added `widget-administrator` role to the `UserRole` type.
97
+
98
+ ## 1.10.0 - 2024-06-25
99
+
100
+ - Added optional `updateDataAccess()` function to the `BaseWidget` class, used to update access to widget-specific data.
101
+ - Added `administrators` property to the `WidgetVariantContext` interface.
102
+
103
+ ## 1.9.14 - 2024-06-18
104
+
105
+ - Change import of `SPFI` type to decrease bundle sizes in widgets.
106
+
107
+ ## 1.9.13 - 2024-06-18
108
+
109
+ - Added `spHttpClient` property to `WidgetContext` interface, to perform REST calls against SharePoint.
110
+ - Added `spHttpClientConfiguration` property to `WidgetContext` interface.
111
+
112
+ ## 1.9.12 - 2024-06-17
113
+
114
+ - Added `sp` property to `WidgetContext` interface, to allow using a centralized PnPjs version across all widgets.
115
+ - Added `siteId` property to `WidgetContext` interface.
116
+ - Added `boardsInstanceId` property to `WidgetContext` interface.
117
+
118
+ ## 1.9.11 - 2024-06-14
119
+
120
+ - Fixed handling of null `ICPersonaType` values in `isCurrentUserInScope` function of `UserHelper` class.
121
+
122
+ ## 1.9.10 - 2024-06-04
123
+
124
+ - Renamed `CustomCommandBarItemProps` interface to `CommandBarItemProps`.
125
+ - Merged `CommandBarIcon`, `CommandBarLink` and `CommandBarItemBase` interfaces into the `CommandBarItemProps` interface, to simplify adding custom command bar items.
126
+ - Added `Overflow` type to `CommandBarItemType` enum, to allow rendering an item inside the overflow menu.
127
+ - Added `highlighted` property to the `CommandBarItemProps` interface, to allow rendering an item as if it is being hovered.
128
+ - Added `cursor` property to the `CommandBarItemProps` interface, to allow a different cursor when hovering over an item.
129
+ - Added `disabled` property to the `CommandBarItemProps` interface, to allow rendering an item in a disabled state.
130
+
131
+ ## 1.9.9 - 2024-05-14
132
+
133
+ - Changed return type of `createDeepLink` function of the WidgetInstanceContext interface from `void` to `string`.
134
+
135
+ ## 1.9.8 - 2024-05-13
136
+
137
+ - Added `createDeepLink` property to the WidgetInstanceContext interface, to allow creating a deep link URL based on the current board and a widget instance.
138
+ - 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.
139
+ - 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.
140
+
141
+ ## 1.9.7 - 2024-04-19
142
+
143
+ - Added `hideSpHubNav` property to the IFrameDialogOptions interface, to allow hiding the Hub navigation on SharePoint sites.
144
+ - Added `hideSpSiteHeader` property to the IFrameDialogOptions interface, to allow hiding the site header on SharePoint sites.
145
+ - Added `showHistoryButtons` property to the IFrameDialogOptions interface, to render back and forward buttons, allowing the user to navigate the browser history.
146
+ - 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.
147
+
148
+ ## 1.9.6 - 2024-04-19
149
+
150
+ - Changed `onRenderHeaderIcon` property of the IFrameDialogOptions interface, to work similarly to the widget render functions.
151
+
152
+ ## 1.9.5 - 2024-04-18
153
+
154
+ - Added `title` property to the IFrameDialogOptions interface, to allow rendering a title in the dialog header.
155
+ - Added `titleUrl` property to the IFrameDialogOptions interface, to allow making the dialog header title clickable.
156
+ - Added `onRenderHeaderIcon` property to the IFrameDialogOptions interface, to allow rendering an icon in the dialog header.
157
+ - Added `onLoad` property to the IFrameDialogOptions interface, to support executing some code after the iframe finishes loading.
158
+
159
+ ## 1.9.4 - 2024-04-11
160
+
161
+ - Reintroduced the following types: `AadHttpClient`,`AadHttpClientConfiguration`,`AadHttpClientFactory`,`AadHttpClientResponse`, `AadTokenProvider`, `AadTokenProviderFactory`
162
+
163
+ ## 1.9.2 - 2024-03-21
164
+
165
+ - Added `CommandBarIcon` interface, to allow rendering a `CustomCommandBarItem` as a single icon or an icon button.
166
+ - Added `CommandBarLink` interface, to allow rendering a `CustomCommandBarItem` as a clickable link.
167
+ - Added `CommandBarItemBase` interface, to act as a base for different types of `CustomCommandBarItem`.
168
+ - Added `elementBorderRadius` property to the `WidgetContext` interface, to allow styling widgets according to the configured design preferences.
169
+ - Changed `CustomCommandBarItemProps` type to accept either a `CommandBarIcon` or a `CommandBarLink`.
170
+
171
+ ## 1.9.1 - 2023-10-20
172
+
173
+ - Added `WidgetInstanceContext` interface, to allow typing the `instance` property of the `WidgetContext` interface.
174
+ - Added `WidgetVariantContext` interface, to allow typing the `definition` property of the `WidgetContext` interface.
175
+ - Added `WidgetManifestContext` interface, to allow typing the `manifest` property of the `WidgetContext` interface.
176
+
177
+ ## 1.9.0 - 2023-10-20
178
+
179
+ - Added optional `importData()` function to the `BaseWidget` class, used to import widget-specific data.
180
+ - Added optional `exportData()` function to the `BaseWidget` class, used to export widget-specific data.
181
+ - Added new exported `ExportData` type.
182
+
183
+ ## 1.8.17 - 2023-10-09
184
+
185
+ - Added `iconName` property to the `definition` object of the `WidgetContext` interface, to support using an icon to represent a widget.
186
+
187
+ ## 1.8.16 - 2023-09-26
188
+
189
+ - Added `Custom` value to `ICPersonaType` enum, to support a custom ICPersona.
190
+
191
+ ## 1.8.15 - 2023-09-01
192
+
193
+ - Added `thumbnailUrl` property to `WidgetManifestConfig` interface, as a non-translatable substitute of the newly deprecated `preview_small` property from `WidgetImages` interface.
194
+ - Removed the deprecated `preview_small` property from `WidgetImages` interface.
195
+
196
+ ## 1.8.14 - 2023-09-01
197
+
198
+ - Added `iconName` property to `WidgetManifestConfig` interface, to support using an icon to represent a widget, e.g. in the widget library or widget header.
199
+ - Removed the deprecated `notificationIcon` property from `WidgetManifestConfig` interface.
200
+
201
+ ## 1.8.13 - 2023-06-08
202
+
203
+ - Removed the deprecated `resolved` property from `ICPersona` interface
204
+
205
+ ## 1.8.12 - 2023-04-04
206
+
207
+ - Changed `openFilePicker` function to return more details of the picked file in the shape of `FilePickerFileProps`
208
+
209
+ ## 1.8.11 - 2023-04-03
210
+
211
+ - Changed `openFilePicker` function to return more details of the picked file in the shape of `FilePickerFileProps`
212
+
213
+ ## 1.8.10 - 2023-03-30
214
+
215
+ - Changed `openFilePicker` function to accept `options`, to support configuration of picker behavior
216
+
217
+ ## 1.8.9 - 2023-03-06
218
+
219
+ - Added `registerCustomCommandBarItems` function to the `instance` object of the `WidgetContext` interface, to support multiple custom buttons in the widget header.
220
+ - Added `unregisterCustomCommandBarItems` function to the `instance` object of the `WidgetContext` interface, to support removing all custom buttons in the widget header.
221
+ - Added optional `id` property to exported `CustomCommandBarItemProps` type, to support removing a custom command bar item by id.
222
+ - Added optional `pinned` property to exported `CustomCommandBarItemProps` type, to support forcing the widget header to always be visible.
223
+ - Added optional `showNotificationBadge` property to exported `CustomCommandBarItemProps` type, to support showing a red notification badge over the custom command bar item.
224
+ - Added optional `order` property to exported `CustomCommandBarItemProps` type, to support changing the order of custom command bar items.
225
+ - Changed `unregisterCustomCommandBarItem` function of the `instance` object of the `WidgetContext` interface, to support removing a custom command bar item by id.
226
+
227
+ ## 1.8.8 - 2023-02-16
228
+
229
+ - Removed all SharePoint and Teams dependencies.
230
+
231
+ ## 1.8.7 - 2022-12-13
232
+
233
+ - Added `userRoles` property to the `WidgetContext` interface, to inform widgets of the roles of the current user.
234
+ - Added new exported `UserRole` type.
235
+
236
+ ## 1.8.6 - 2022-12-08
237
+
238
+ - Added `boardType` property to the `instance` object of the `WidgetContext` interface, to inform widgets of the type of their board.
239
+ - 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.
240
+ - Added new exported `BoardType` type.
241
+
242
+ ## 1.8.5 - 2022-09-30
243
+
244
+ - Added `setWidgetTitleSuffix()` function to the `instance` object of the `WidgetContext` interface, to support appending the title of the widget with additional text.
245
+ - Added `setWidgetSubtitle()` function to the `instance` object of the `WidgetContext` interface, to support overriding the subtitle of the widget.
246
+ - Added `setUserConfigButtonVisibilty()` function to the `instance` object of the `WidgetContext` interface, to support hiding the settings button from the widget header.
247
+ - Fixed spelling of `setWidgetHeaderVisibilty()` function. The function is now called `setWidgetHeaderVisibility()`.
248
+
249
+ ## 1.8.4 - 2022-09-05
250
+
251
+ - 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.
252
+
253
+ ## 1.8.3 - 2022-08-16
254
+
255
+ - Added `openFilePicker()` function to the `WidgetContext` interface to support file selection from within a widget.
256
+
257
+ ## 1.8.2 - 2022-07-06
258
+
259
+ - Added `subtitle` property to the `WidgetResource` interface.
260
+
261
+ ## 1.8.1 - 2022-06-17
262
+
263
+ - Added new section `analytics` to `WidgetManifestConfig` interface to allow definition of time-based events that can be raised by a widget.
264
+ - Added `raiseEvent(...)` to the `instance` object of the `WidgetContent` interface, allowing widgets to raise an event.
265
+
266
+ ## 1.7.11 - 2022-03-23
267
+
268
+ - Added `setWidgetHeaderVisibilty()` function to the `instance` object of the `WidgetContext` interface, allowing widgets to render in full height.
269
+
270
+ ## 1.7.9 - 2022-01-20
271
+
272
+ - Added `userAccountCreated` date/time to the `WidgetContext` interface.
273
+
274
+ ## 1.7.8 - 2022-01-18
275
+
276
+ ### Changed
277
+
278
+ - Added `initiateWidgetDeletion()` function to the `WidgetContext` interface.
279
+
280
+ ## 1.7.7 - 2022-01-14
281
+
282
+ ### Changed
283
+
284
+ - Added `tenantId` property to the `WidgetContext` interface.
285
+
286
+ ## 1.7.6 - 2021-11-04
287
+
288
+ ### Changed
289
+
290
+ - Added `theme` property to the `WidgetContext` interface to give access to currently applied theme.
291
+
292
+ ## 1.7.5 - 2021-10-26
293
+
294
+ ### Changed
295
+
296
+ - Added `userSecurityGroups` and `userSharePointGroups` properties to the `WidgetContext` interface to inform widgets of SharePoint and security group memberships of the current user.
297
+
298
+ ## 1.7.4 - 2021-10-20
299
+
300
+ ### Changed
301
+
302
+ - Added `contentLanguages` property to the `WidgetContext` interface to inform widgets of the available content languages as configured in Ichicraft Boards.
303
+
304
+ ## 1.7.3 - 2021-10-04
305
+
306
+ ### Changed
307
+
308
+ - 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.
309
+ - 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.
310
+
311
+ ## 1.6.1 - 2021-02-18
312
+
313
+ ### Changed
314
+
315
+ - Added `userEmail` property to the `WidgetContext` interface to provide current user's email address to widgets.
316
+
317
+ ## 1.5.0 - 2021-02-16
318
+
319
+ ### Changed
320
+
321
+ - 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.
322
+
323
+ ## 1.4.0 - 2021-01-25
324
+
325
+ ### Changed
326
+
327
+ - Added several properties to the `WidgetContext` interface to identify the context in which the widget is shown (e.g. Team Browser hosted)
328
+
329
+ ## 1.3.0 - 2021-01-15
330
+
331
+ ### Changed
332
+
333
+ - `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.
334
+ - `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.
335
+
336
+ ## 1.2.0 - 2021-01-15
337
+
338
+ ### Changed
339
+
340
+ - `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.
341
+
342
+ ## 1.1.0 - 2021-01-11
343
+
344
+ ### Changed
345
+
346
+ - `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.
347
+ - **deps:** removed dependency ajv
348
+
349
+ ## <= 1.0.5 - 2020-12-07
350
+
351
+ No changelog was maintained for the earlier versions.
package/lib/BaseWidget.js CHANGED
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var BaseWidget = /** @class */ (function () {
4
- function BaseWidget(context) {
3
+ class BaseWidget {
4
+ constructor(context) {
5
5
  this.context = context;
6
6
  }
7
- return BaseWidget;
8
- }());
7
+ }
9
8
  exports.default = BaseWidget;
@@ -649,6 +649,14 @@ export interface ICPersona {
649
649
  type?: ICPersonaType;
650
650
  objectId?: string;
651
651
  }
652
+ /**
653
+ * A type that represents a SharePoint site
654
+ */
655
+ export interface ICSite {
656
+ id: string;
657
+ displayName?: string;
658
+ url?: string;
659
+ }
652
660
  /**
653
661
  * Tells the severity of the command bar item, resulting in
654
662
  * distinguishable presentation of the item
@@ -5,21 +5,18 @@ exports.ConfigurationHelper = void 0;
5
5
  * @class
6
6
  * Helper class for Configuration related things.
7
7
  */
8
- var ConfigurationHelper = /** @class */ (function () {
9
- function ConfigurationHelper() {
10
- }
8
+ class ConfigurationHelper {
11
9
  /**
12
10
  *
13
11
  * @param config The serialized configuration to parse into an object
14
12
  * @param schema Deprecated: schema validation is no longer possible
15
13
  */
16
- ConfigurationHelper.parseConfiguration = function (config, schema) {
17
- var data = JSON.parse(config ? config : '{}');
14
+ static parseConfiguration(config, schema) {
15
+ const data = JSON.parse(config ? config : '{}');
18
16
  return data;
19
- };
20
- ConfigurationHelper.stringifyConfiguration = function (config) {
17
+ }
18
+ static stringifyConfiguration(config) {
21
19
  return JSON.stringify(config);
22
- };
23
- return ConfigurationHelper;
24
- }());
20
+ }
21
+ }
25
22
  exports.ConfigurationHelper = ConfigurationHelper;
@@ -8,132 +8,83 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
11
  Object.defineProperty(exports, "__esModule", { value: true });
39
12
  exports.UserHelper = void 0;
40
- var types_1 = require("../types");
13
+ const types_1 = require("../types");
41
14
  /**
42
15
  * @class
43
16
  * Helper class for User related methods.
44
17
  */
45
- var UserHelper = /** @class */ (function () {
46
- function UserHelper() {
47
- }
48
- UserHelper.isCurrentUserInScope = function (personas, context) {
49
- return __awaiter(this, void 0, void 0, function () {
50
- var userIsPartOfThis, i, personaItem, _a, userIsMemberOfSPGroup, personaItemId, userIsMemberOfSecGroup;
51
- return __generator(this, function (_b) {
52
- switch (_b.label) {
53
- case 0:
54
- userIsPartOfThis = false;
55
- i = 0;
56
- _b.label = 1;
57
- case 1:
58
- if (!(i < personas.length)) return [3 /*break*/, 9];
59
- personaItem = personas[i];
60
- _a = personaItem.type;
61
- switch (_a) {
62
- case types_1.ICPersonaType.SPGroup: return [3 /*break*/, 2];
63
- case types_1.ICPersonaType.User: return [3 /*break*/, 4];
64
- case types_1.ICPersonaType.Other: return [3 /*break*/, 5];
65
- case null: return [3 /*break*/, 5];
66
- }
67
- return [3 /*break*/, 7];
68
- case 2: return [4 /*yield*/, context.isCurrentUserMemberOfSPGroup(Number.parseInt(personaItem.id))];
69
- case 3:
70
- userIsMemberOfSPGroup = _b.sent();
18
+ class UserHelper {
19
+ static isCurrentUserInScope(personas, context) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ let userIsPartOfThis = false;
22
+ for (let i = 0; i < personas.length; i++) {
23
+ const personaItem = personas[i];
24
+ switch (personaItem.type) {
25
+ case types_1.ICPersonaType.SPGroup: {
26
+ const userIsMemberOfSPGroup = yield context.isCurrentUserMemberOfSPGroup(Number.parseInt(personaItem.id));
71
27
  if (userIsMemberOfSPGroup) {
72
28
  userIsPartOfThis = true;
73
29
  }
74
- return [3 /*break*/, 7];
75
- case 4:
76
- {
77
- // handle a username exact match and partial match in case picker is in format 'i:0#.f|membership|USERNAME'
78
- if (personaItem.id.toLowerCase() === context.userName.toLowerCase() ||
79
- personaItem.id.toLowerCase() ===
80
- context.claimBasedLoginName.toLowerCase() ||
81
- (personaItem.id.indexOf('|') > -1 &&
82
- personaItem.id
83
- .toLowerCase()
84
- .endsWith('|' + context.userName.toLowerCase()))) {
85
- userIsPartOfThis = true;
86
- }
87
- return [3 /*break*/, 7];
30
+ break;
31
+ }
32
+ case types_1.ICPersonaType.User: {
33
+ // handle a username exact match and partial match in case picker is in format 'i:0#.f|membership|USERNAME'
34
+ if (personaItem.id.toLowerCase() === context.userName.toLowerCase() ||
35
+ personaItem.id.toLowerCase() ===
36
+ context.claimBasedLoginName.toLowerCase() ||
37
+ (personaItem.id.indexOf('|') > -1 &&
38
+ personaItem.id
39
+ .toLowerCase()
40
+ .endsWith('|' + context.userName.toLowerCase()))) {
41
+ userIsPartOfThis = true;
88
42
  }
89
- _b.label = 5;
90
- case 5:
91
- personaItemId = personaItem.id;
92
- // Check if this is the infamous "Everyone except external users" group, in which case we need special treatment
43
+ break;
44
+ }
45
+ case types_1.ICPersonaType.Other:
46
+ case null: {
47
+ let personaItemId = personaItem.id;
48
+ // Check if this is the infamous "Everyone except external users" group,
49
+ // in which case we need special treatment to check if the user is internal
93
50
  if (personaItemId.indexOf('c:0-.f|rolemanager|spo-grid-all-users/') === 0) {
94
51
  // There you have it: we need special treatment.
95
52
  // If this is an external user, break, otherwise, assume user is member of group
96
- if (context.claimBasedLoginName.indexOf('#ext#') === -1) {
97
- // This is an internal user
53
+ if (context.claimBasedLoginName.toLocaleLowerCase().indexOf('#ext#') === -1) {
54
+ // This is an internal user and thus a member of the group
98
55
  userIsPartOfThis = true;
99
56
  }
100
- return [3 /*break*/, 7];
57
+ break;
101
58
  }
102
59
  // Check if the id of the picker item contains a pipe, this means we need to strip the id
103
60
  if (personaItemId.indexOf('|') > -1) {
104
61
  personaItemId = personaItemId.split('|').slice(-1)[0];
105
62
  }
106
- return [4 /*yield*/, context.isCurrentUserMemberOfSecGroup(personaItemId)];
107
- case 6:
108
- userIsMemberOfSecGroup = _b.sent();
63
+ const userIsMemberOfSecGroup = yield context.isCurrentUserMemberOfSecGroup(personaItemId);
109
64
  if (userIsMemberOfSecGroup) {
110
65
  userIsPartOfThis = true;
111
66
  }
112
- return [3 /*break*/, 7];
113
- case 7:
114
- if (userIsPartOfThis)
115
- return [3 /*break*/, 9];
116
- _b.label = 8;
117
- case 8:
118
- i++;
119
- return [3 /*break*/, 1];
120
- case 9: return [2 /*return*/, userIsPartOfThis];
67
+ break;
68
+ }
121
69
  }
122
- });
70
+ if (userIsPartOfThis)
71
+ break;
72
+ }
73
+ return userIsPartOfThis;
123
74
  });
124
- };
125
- UserHelper.gatherAllNormalizedUserPersonaIds = function (userName, claimBasedLoginName, spGroups, secGroups) {
126
- var personas = [];
75
+ }
76
+ static gatherAllNormalizedUserPersonaIds(userName, claimBasedLoginName, spGroups, secGroups) {
77
+ const personas = [];
127
78
  // 1. The user name in two known shapes
128
- personas.push("USER|".concat(userName.toLowerCase()));
129
- personas.push("USER|".concat(claimBasedLoginName.toLowerCase()));
79
+ personas.push(`USER|${userName.toLowerCase()}`);
80
+ personas.push(`USER|${claimBasedLoginName.toLowerCase()}`);
130
81
  // 2. The SP Groups, just as they are: numeric strings
131
- spGroups.forEach(function (spg) {
132
- personas.push("SPGROUP|".concat(spg));
82
+ spGroups.forEach((spg) => {
83
+ personas.push(`SPGROUP|${spg}`);
133
84
  });
134
85
  // 3. The Security Groups, as Guids
135
- secGroups.forEach(function (secg) {
136
- personas.push("ADGROUP|".concat(secg.toLowerCase()));
86
+ secGroups.forEach((secg) => {
87
+ personas.push(`ADGROUP|${secg.toLowerCase()}`);
137
88
  });
138
89
  // 4. Optionally the all users except external users group:
139
90
  if (claimBasedLoginName.indexOf('#ext#') === -1) {
@@ -141,7 +92,6 @@ var UserHelper = /** @class */ (function () {
141
92
  personas.push('ADGROUP|spo-grid-all-users');
142
93
  }
143
94
  return personas;
144
- };
145
- return UserHelper;
146
- }());
95
+ }
96
+ }
147
97
  exports.UserHelper = UserHelper;
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
- {
2
- "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.12.0",
4
- "description": "Part of the Widget Development Kit for building widgets for Ichicraft Boards",
5
- "main": "lib/index.js",
6
- "types": "lib/index.d.ts",
7
- "scripts": {
8
- "build": "tsc",
9
- "prepare": "tsc"
10
- },
11
- "keywords": [
12
- "ichicraft",
13
- "widget",
14
- "widgets"
15
- ],
16
- "author": "Ichicraft",
17
- "license": "ISC",
18
- "files": [
19
- "lib/**/*"
20
- ],
21
- "overrides": {
22
- "requirejs": "2.3.7"
23
- },
24
- "dependencies": {
25
- "@microsoft/sp-http": "1.18.2",
26
- "@pnp/sp": "4.0.1"
27
- },
28
- "devDependencies": {
29
- "typescript": "^5.4.5"
30
- }
31
- }
1
+ {
2
+ "name": "@ichicraft/widgets-widget-base",
3
+ "version": "1.13.1",
4
+ "description": "Part of the Widget Development Kit for building widgets for Ichicraft Boards",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc",
9
+ "prepare": "tsc"
10
+ },
11
+ "keywords": [
12
+ "ichicraft",
13
+ "widget",
14
+ "widgets"
15
+ ],
16
+ "author": "Ichicraft",
17
+ "license": "ISC",
18
+ "files": [
19
+ "lib/**/*"
20
+ ],
21
+ "overrides": {
22
+ "requirejs": "2.3.7"
23
+ },
24
+ "dependencies": {
25
+ "@microsoft/sp-http": "1.18.2",
26
+ "@pnp/sp": "4.0.1"
27
+ },
28
+ "devDependencies": {
29
+ "typescript": "^5.4.5"
30
+ }
31
+ }