@govflanders/vl-widget-global-header-types 1.0.24 → 1.0.25

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
@@ -175,6 +175,9 @@ The `accessMenu` object contains methods for managing the access menu's links an
175
175
  - **setProfile(profileConfig: Partial\<ProfileConfig\>): Promise\<boolean\>**
176
176
  Set or update the profile configuration for the widget.
177
177
 
178
+ - **getProfile(): Promise\<Partial\<ProfileConfig\>\>**
179
+ Retrieve the current profile configuration for the widget.
180
+
178
181
  - **setMainLinks(mainLinks: MainLink[]): Promise\<boolean\>**
179
182
  Sets the main navigation links that are displayed within the widget. These links will only be visible for widgets that support sessions, and they are displayed only when the user is logged in.
180
183
 
package/dist/client.d.ts CHANGED
@@ -37,6 +37,11 @@ export type Handlers = {
37
37
  * @returns A promise that resolves to true if the profile configuration was set, false otherwise
38
38
  */
39
39
  setProfile: Handler<Partial<ProfileConfig>, boolean>;
40
+ /**
41
+ * Get the profile configuration
42
+ * @returns A promise that resolves to the current profile configuration
43
+ */
44
+ getProfile: Handler<undefined, Partial<ProfileConfig>>;
40
45
  /**
41
46
  * Set the main links
42
47
  * @param mainLinks The main links to set
@@ -188,6 +193,7 @@ export interface GlobalHeaderClient {
188
193
  addApplicationMenuLinks: ClientMethods['addApplicationMenuLinks'];
189
194
  setApplicationMenuLinks: ClientMethods['setApplicationMenuLinks'];
190
195
  setProfile: ClientMethods['setProfile'];
196
+ getProfile: ClientMethods['getProfile'];
191
197
  };
192
198
  branding: {
193
199
  getLevel: ClientMethods['getBrandingLevel'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govflanders/vl-widget-global-header-types",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "license": "MIT",
5
5
  "description": "TypeScript definitions for GlobalHeaderClient",
6
6
  "main": "",