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