@govflanders/vl-widget-global-header-types 1.0.23 → 1.0.24
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 +12 -0
- package/dist/client.d.ts +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -156,6 +156,18 @@ The `contact` object contains methods related to managing service points.
|
|
|
156
156
|
- **resetServicePoints(): Promise\<boolean\>**
|
|
157
157
|
Reset the service points to the initial values defined in the widget’s configuration.
|
|
158
158
|
|
|
159
|
+
- **open(): Promise\<boolean\>**
|
|
160
|
+
Opens the contact interface.
|
|
161
|
+
|
|
162
|
+
- **close(): Promise\<boolean\>**
|
|
163
|
+
Closes the contact interface.
|
|
164
|
+
|
|
165
|
+
- **toggle(): Promise\<boolean\>**
|
|
166
|
+
Toggles the visibility of the contact interface.
|
|
167
|
+
|
|
168
|
+
- **isOpen(): Promise\<boolean\>**
|
|
169
|
+
Checks whether the contact interface is currently open.
|
|
170
|
+
|
|
159
171
|
### accessMenu
|
|
160
172
|
|
|
161
173
|
The `accessMenu` object contains methods for managing the access menu's links and profile.
|
package/dist/client.d.ts
CHANGED
|
@@ -143,6 +143,10 @@ export type Handlers = {
|
|
|
143
143
|
* @returns A promise that resolves to true if the element was unmounted, false otherwise
|
|
144
144
|
*/
|
|
145
145
|
unmount: Handler<undefined, boolean>;
|
|
146
|
+
openContact: Handler<undefined, boolean>;
|
|
147
|
+
closeContact: Handler<undefined, boolean>;
|
|
148
|
+
toggleContact: Handler<undefined, boolean>;
|
|
149
|
+
isContactOpen: Handler<undefined, boolean>;
|
|
146
150
|
};
|
|
147
151
|
type PromiseResolver<T> = (value: T | PromiseLike<T>) => void;
|
|
148
152
|
type PromiseRejecter = (reason?: any) => void;
|
|
@@ -173,6 +177,10 @@ export interface GlobalHeaderClient {
|
|
|
173
177
|
getServicePoints: ClientMethods['getServicePoints'];
|
|
174
178
|
setServicePoints: ClientMethods['setServicePoints'];
|
|
175
179
|
resetServicePoints: ClientMethods['resetServicePoints'];
|
|
180
|
+
open: ClientMethods['openContact'];
|
|
181
|
+
close: ClientMethods['closeContact'];
|
|
182
|
+
toggle: ClientMethods['toggleContact'];
|
|
183
|
+
isOpen: ClientMethods['isContactOpen'];
|
|
176
184
|
};
|
|
177
185
|
accessMenu: {
|
|
178
186
|
setMainLinks: ClientMethods['setMainLinks'];
|