@govflanders/vl-widget-global-header-types 0.0.10 → 0.0.12
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 +3 -3
- package/dist/branding.d.ts +1 -1
- package/dist/citizen-profile.d.ts +1 -1
- package/dist/client.d.ts +7 -1
- package/dist/config.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/package.json +4 -1
- package/LICENSE +0 -24
- package/dist/i18n.d.ts +0 -20
package/README.md
CHANGED
|
@@ -129,6 +129,9 @@ Add multiple links to the application menu.
|
|
|
129
129
|
### setApplicationMenuLinks(links: ApplicationMenuLink[]): Promise\<ApplicationMenuLink[]\>
|
|
130
130
|
Replace all application menu links.
|
|
131
131
|
|
|
132
|
+
### setNavigationEnabled(enabled: boolean): Promise\<boolean\>
|
|
133
|
+
Enable or disable the host and branding navigation
|
|
134
|
+
|
|
132
135
|
### mount(element?: HTMLElement): Promise\<boolean\>
|
|
133
136
|
|
|
134
137
|
The `mount` method allows you to control where the **Global Header Widget** is rendered on the page. There are two main ways to integrate the widget, depending on whether you want to manually control its placement or let it render automatically:
|
|
@@ -247,6 +250,3 @@ Our team is here to help with any issues or inquiries you might have.
|
|
|
247
250
|
## Maintainers
|
|
248
251
|
|
|
249
252
|
- [Maarten Van Steenkiste](https://github.com/m44rten1)
|
|
250
|
-
|
|
251
|
-
## License
|
|
252
|
-
This package is licensed under the MIT License.
|
package/dist/branding.d.ts
CHANGED
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Translatable } from '
|
|
1
|
+
import { Translatable } from '@govflanders/vl-widget-shared';
|
|
2
2
|
import { MainLink, ProfileConfig } from './citizen-profile';
|
|
3
3
|
import { EnrichedServicePoints, ServicePoints } from './contact';
|
|
4
4
|
import { Config } from './config';
|
|
@@ -61,6 +61,12 @@ export type Handlers = {
|
|
|
61
61
|
* @returns A promise that resolves to the updated application menu
|
|
62
62
|
*/
|
|
63
63
|
setApplicationMenuLinks: Handler<ApplicationMenuLink[], ApplicationMenuLink[]>;
|
|
64
|
+
/**
|
|
65
|
+
* Set the navigation enabled state
|
|
66
|
+
* @param enabled The navigation enabled state
|
|
67
|
+
* @returns A promise that resolves to true if the navigation enabled state was set, false otherwise
|
|
68
|
+
*/
|
|
69
|
+
setNavigationEnabled: Handler<boolean, boolean>;
|
|
64
70
|
/**
|
|
65
71
|
* Mount an element
|
|
66
72
|
* @param element The element to mount
|
package/dist/config.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@govflanders/vl-widget-global-header-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "TypeScript definitions for GlobalHeaderClient",
|
|
5
5
|
"main": "",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,5 +26,8 @@
|
|
|
26
26
|
"build": "tsc -p tsconfig.json",
|
|
27
27
|
"watch": "tsc -w",
|
|
28
28
|
"release": "yarn build && yarn version --patch --no-git-tag-version && git add . && git commit -m \"Release global-header-types $(node -p \"require('./package.json').version\")\" && git tag \"global-header-types-$(node -p \"require('./package.json').version\")\" && git push && git push --tags && npm_config_registry=https://registry.npmjs.org/ npm publish --access public"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@govflanders/vl-widget-shared": "link:../shared"
|
|
29
32
|
}
|
|
30
33
|
}
|
package/LICENSE
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
(The MIT License)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2009-2014 TJ Holowaychuk <tj@vision-media.ca>
|
|
4
|
-
Copyright (c) 2013-2014 Roman Shtylman <shtylman+expressjs@gmail.com>
|
|
5
|
-
Copyright (c) 2014-2015 Douglas Christopher Wilson <doug@somethingdoug.com>
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
8
|
-
a copy of this software and associated documentation files (the
|
|
9
|
-
'Software'), to deal in the Software without restriction, including
|
|
10
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
11
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
12
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
13
|
-
the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be
|
|
16
|
-
included in all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
19
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
20
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
21
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
22
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
23
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
24
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/dist/i18n.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PluginTypeId } from './config';
|
|
2
|
-
export type Language = 'nl' | 'fr' | 'de' | 'en';
|
|
3
|
-
type LanguageTranslationsMap = Partial<Record<Language, RecursiveRecord>>;
|
|
4
|
-
export interface Translations {
|
|
5
|
-
base: LanguageTranslationsMap;
|
|
6
|
-
extensions: Partial<Record<PluginTypeId, LanguageTranslationsMap>>;
|
|
7
|
-
}
|
|
8
|
-
export interface RecursiveRecord {
|
|
9
|
-
[key: string]: string | RecursiveRecord;
|
|
10
|
-
}
|
|
11
|
-
export interface ResolveOptions {
|
|
12
|
-
fallback?: string;
|
|
13
|
-
extension?: PluginTypeId;
|
|
14
|
-
}
|
|
15
|
-
export interface I18n {
|
|
16
|
-
default: Language;
|
|
17
|
-
translations: Translatable<RecursiveRecord>;
|
|
18
|
-
}
|
|
19
|
-
export type Translatable<T> = T | Record<Language, T>;
|
|
20
|
-
export {};
|