@ichicraft/widgets-widget-base 1.17.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,6 +9,14 @@ All notable changes to this project will be documented here.
9
9
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
10
10
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
11
11
 
12
+ ## 1.19.0 - 2026-08-18
13
+
14
+ - Added optional `bloomGroups` provider to `WidgetContext`, exposing a `fetchGroups()` function that supplies the tenant's Bloom Group definitions. Widgets can pass it through to their people pickers so Bloom Groups can be offered as suggestions.
15
+
16
+ ## 1.18.0 - 2026-08-17
17
+
18
+ - Added optional `assetsBaseUrl` property to the `WidgetContext` interface, containing the base URL of the folder the widget bundle was loaded from. This allows widgets to fetch files that are published alongside their bundle, such as per-language translation files.
19
+
12
20
  ## 1.17.0 - 2026-07-16
13
21
 
14
22
  - Moved `UserHelper`, `ICPersona`, `ICPersonaType`, `ICSite`, `ICTeam` and `ICTerm` to an internal package.
@@ -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
  */
@@ -221,6 +226,14 @@ export interface WidgetContext {
221
226
  * Provide the id (GUID) of the Bloom Group.
222
227
  */
223
228
  isCurrentUserMemberOfBloomGroup?: (groupId: string) => Promise<boolean>;
229
+ /**
230
+ * Provides the tenant's Bloom Group definitions, e.g. so pickers can offer them.
231
+ * Untyped to avoid a cross-package dependency (like `theme`); items carry the
232
+ * Bloom Group shape as defined by the host.
233
+ */
234
+ bloomGroups?: {
235
+ fetchGroups(): Promise<any[]>;
236
+ };
224
237
  /**
225
238
  * Generates a hash of all combined SP Groups of the current user. This can be used as
226
239
  * cache invalidator to detect changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.17.0",
3
+ "version": "1.19.0",
4
4
  "description": "Part of the Widget Development Kit for building widgets for Bloom Intranet",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",