@ichicraft/widgets-widget-base 1.22.0 → 1.23.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 +5 -0
- package/lib/types/index.d.ts +20 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -144,6 +144,11 @@ Entries from 1.21.0 onwards are generated from pull request descriptions when a
|
|
|
144
144
|
|
|
145
145
|
<!-- changelog:insert -->
|
|
146
146
|
|
|
147
|
+
## 1.23.0 - 2026-09-21
|
|
148
|
+
|
|
149
|
+
### Added
|
|
150
|
+
- Widgets can now see whether the Copilot integration is switched on for the intranet, and whether the current user is allowed to use it.
|
|
151
|
+
|
|
147
152
|
## 1.22.0 - 2026-09-15
|
|
148
153
|
|
|
149
154
|
### Added
|
package/lib/types/index.d.ts
CHANGED
|
@@ -234,6 +234,11 @@ export interface WidgetContext {
|
|
|
234
234
|
bloomGroups?: {
|
|
235
235
|
fetchGroups(): Promise<any[]>;
|
|
236
236
|
};
|
|
237
|
+
/**
|
|
238
|
+
* The Copilot integration as configured in the admin center. Absent on widget boards that do
|
|
239
|
+
* not offer the integration, which widgets should treat as switched off.
|
|
240
|
+
*/
|
|
241
|
+
copilotIntegration?: CopilotIntegrationContext;
|
|
237
242
|
/**
|
|
238
243
|
* Generates a hash of all combined SP Groups of the current user. This can be used as
|
|
239
244
|
* cache invalidator to detect changes.
|
|
@@ -286,6 +291,21 @@ export interface WidgetContext {
|
|
|
286
291
|
context: any;
|
|
287
292
|
};
|
|
288
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* Whether the Copilot integration may be used, as configured in the admin center. A widget offering
|
|
296
|
+
* Copilot needs both answers: the first decides whether the integration exists at all, so whether
|
|
297
|
+
* an administrator is offered Copilot settings, the second whether this user may use it.
|
|
298
|
+
*/
|
|
299
|
+
export interface CopilotIntegrationContext {
|
|
300
|
+
/**
|
|
301
|
+
* Whether the Copilot integration is switched on for this Bloom Intranet.
|
|
302
|
+
*/
|
|
303
|
+
isEnabled: boolean;
|
|
304
|
+
/**
|
|
305
|
+
* Whether the current user is allowed to use the Copilot integration.
|
|
306
|
+
*/
|
|
307
|
+
isAllowedForCurrentUser: boolean;
|
|
308
|
+
}
|
|
289
309
|
/**
|
|
290
310
|
* Widget instance context providing metadata and functionality offered by the widget board. A widget instance
|
|
291
311
|
* is a single and specific widget that a user has on his/her board. It has its own
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ichicraft/widgets-widget-base",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"description": "Part of the Widget Development Kit for building widgets for Bloom Intranet. The base class and context types every widget implements.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|