@govflanders/vl-widget-global-header-types 1.0.16 → 1.0.20

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
@@ -225,7 +225,9 @@ const multiLanguageLink: Translatable<MainLink> = {
225
225
  },
226
226
  };
227
227
 
228
- client.setMainLinks([singleLanguageLink, multiLanguageLink]);
228
+ client.setMainLinks([singleLanguageLink]);
229
+ // or
230
+ client.setMainLinks([multiLanguageLink]);
229
231
  ```
230
232
 
231
233
  ## Browser Support
@@ -1,4 +1,4 @@
1
- import { I18n } from '@govflanders/vl-widget-shared';
1
+ import { I18n } from './i18n';
2
2
  import { Image } from './image';
3
3
  import { LinkWithTarget } from './link';
4
4
  /** Only required for level < 4 */
@@ -1,4 +1,4 @@
1
- import { Translatable } from '@govflanders/vl-widget-shared';
1
+ import { Translatable } from './i18n';
2
2
  import { IDPData } from './idp';
3
3
  export type CapacityCode = 'BUR' | 'EA' | 'VER';
4
4
  export interface ProfileConfig {
@@ -23,6 +23,8 @@ export interface CitizenProfileConfig {
23
23
  pluginTypeId: 'citizen_profile';
24
24
  session: Session;
25
25
  application: Application;
26
+ applicationMenu?: ApplicationMenuLink[];
27
+ mainLinks?: MainLink[];
26
28
  }
27
29
  export interface MainLink {
28
30
  title: string;
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Translatable } from '@govflanders/vl-widget-shared';
1
+ import { Translatable } from './i18n';
2
2
  import { MainLink, ProfileConfig } from './citizen-profile';
3
3
  import { EnrichedServicePoints, ServicePoints } from './contact';
4
4
  import { Config } from './config';
package/dist/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { I18n } from '@govflanders/vl-widget-shared';
1
+ import { I18n } from './i18n';
2
2
  import { AlertConfig } from './alert';
3
3
  import { BrandingConfig } from './branding';
4
4
  export type PluginTypeId = 'contact' | 'citizen_profile';
package/dist/i18n.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@govflanders/vl-widget-shared/dist/types/index';
package/dist/index.d.ts CHANGED
@@ -7,4 +7,4 @@ export * from './contact';
7
7
  export * from './idp';
8
8
  export * from './image';
9
9
  export * from './link';
10
- export * from '@govflanders/vl-widget-shared/dist/types';
10
+ export * from './i18n';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govflanders/vl-widget-global-header-types",
3
- "version": "1.0.16",
3
+ "version": "1.0.20",
4
4
  "license": "MIT",
5
5
  "description": "TypeScript definitions for GlobalHeaderClient",
6
6
  "main": "",
@@ -27,6 +27,6 @@
27
27
  "release": "rm -rf dist && 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"
28
28
  },
29
29
  "dependencies": {
30
- "@govflanders/vl-widget-shared": "^1.0.4"
30
+ "@govflanders/vl-widget-shared": "^1.0.5"
31
31
  }
32
32
  }