@genesislcap/foundation-header 14.178.0 → 14.180.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.
Files changed (52) hide show
  1. package/dist/custom-elements.json +1151 -181
  2. package/dist/dts/components/zero-components.d.ts +5 -0
  3. package/dist/dts/components/zero-components.d.ts.map +1 -0
  4. package/dist/dts/config/config.d.ts +33 -0
  5. package/dist/dts/config/config.d.ts.map +1 -0
  6. package/dist/dts/config/configure.d.ts +26 -0
  7. package/dist/dts/config/configure.d.ts.map +1 -0
  8. package/dist/dts/config/index.d.ts +2 -0
  9. package/dist/dts/config/index.d.ts.map +1 -1
  10. package/dist/dts/config/templates.d.ts +35 -0
  11. package/dist/dts/config/templates.d.ts.map +1 -0
  12. package/dist/dts/main/index.d.ts +1 -1
  13. package/dist/dts/main/index.d.ts.map +1 -1
  14. package/dist/dts/main/main.d.ts +81 -15
  15. package/dist/dts/main/main.d.ts.map +1 -1
  16. package/dist/dts/main/main.styles.d.ts.map +1 -1
  17. package/dist/dts/main/main.template.d.ts.map +1 -1
  18. package/dist/dts/tags/index.d.ts +2 -0
  19. package/dist/dts/tags/index.d.ts.map +1 -0
  20. package/dist/dts/tags/tags.d.ts +40 -0
  21. package/dist/dts/tags/tags.d.ts.map +1 -0
  22. package/dist/esm/components/zero-components.js +49 -0
  23. package/dist/esm/config/config.js +18 -0
  24. package/dist/esm/config/configure.js +55 -0
  25. package/dist/esm/config/index.js +2 -0
  26. package/dist/esm/config/templates.js +15 -0
  27. package/dist/esm/main/index.js +1 -1
  28. package/dist/esm/main/main.js +66 -2
  29. package/dist/esm/main/main.styles.js +59 -134
  30. package/dist/esm/main/main.template.js +32 -41
  31. package/dist/esm/tags/index.js +1 -0
  32. package/dist/esm/tags/tags.js +43 -0
  33. package/dist/foundation-header.api.json +287 -0
  34. package/dist/foundation-header.d.ts +216 -15
  35. package/docs/api/foundation-header.configure.md +45 -0
  36. package/docs/api/foundation-header.defaultheaderconfig.md +13 -0
  37. package/docs/api/foundation-header.foundationheader.loadremotes.md +15 -0
  38. package/docs/api/foundation-header.foundationheader.md +27 -0
  39. package/docs/api/foundation-header.headerconfig.md +21 -0
  40. package/docs/api/foundation-header.headerconfig.templateoptions.md +18 -0
  41. package/docs/api/foundation-header.md +15 -0
  42. package/docs/api/foundation-header.navigation.headerconfig.md +11 -0
  43. package/docs/api/foundation-header.navigation.md +1 -0
  44. package/docs/api/foundation-header.zeroheader.md +37 -0
  45. package/docs/api-report.md +48 -0
  46. package/package.json +19 -19
  47. package/dist/dts/components/components.d.ts +0 -9
  48. package/dist/dts/components/components.d.ts.map +0 -1
  49. package/dist/dts/components/index.d.ts +0 -2
  50. package/dist/dts/components/index.d.ts.map +0 -1
  51. package/dist/esm/components/components.js +0 -42
  52. package/dist/esm/components/index.js +0 -1
@@ -0,0 +1,27 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [FoundationHeader](./foundation-header.foundationheader.md)
4
+
5
+ ## FoundationHeader class
6
+
7
+ FoundationHeader.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export declare class FoundationHeader extends Navigation
13
+ ```
14
+ **Extends:** [Navigation](./foundation-header.navigation.md)
15
+
16
+ ## Remarks
17
+
18
+ Base MF export used by host application `configure` calls. It does not set up a design system or components. Both are expected to be registered in the host application, which should provide the details of which to the MF via TemplateOptions.
19
+
20
+ See the [configure()](./foundation-header.configure.md) hook for more information on how to set up and use this micro frontend in your application.
21
+
22
+ ## Methods
23
+
24
+ | Method | Modifiers | Description |
25
+ | --- | --- | --- |
26
+ | [loadRemotes()](./foundation-header.foundationheader.loadremotes.md) | | |
27
+
@@ -0,0 +1,21 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [HeaderConfig](./foundation-header.headerconfig.md)
4
+
5
+ ## HeaderConfig interface
6
+
7
+ HeaderConfig DI interface.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface HeaderConfig extends PartialFASTElementDefinition
13
+ ```
14
+ **Extends:** PartialFASTElementDefinition
15
+
16
+ ## Properties
17
+
18
+ | Property | Modifiers | Type | Description |
19
+ | --- | --- | --- | --- |
20
+ | [templateOptions](./foundation-header.headerconfig.templateoptions.md) | | TemplateOptions | Template options. |
21
+
@@ -0,0 +1,18 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [HeaderConfig](./foundation-header.headerconfig.md) &gt; [templateOptions](./foundation-header.headerconfig.templateoptions.md)
4
+
5
+ ## HeaderConfig.templateOptions property
6
+
7
+ Template options.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ templateOptions: TemplateOptions;
13
+ ```
14
+
15
+ ## Remarks
16
+
17
+ Used by host applications to assign MF template options and subcomponent tags to align with the host design system.
18
+
@@ -8,12 +8,27 @@
8
8
 
9
9
  | Class | Description |
10
10
  | --- | --- |
11
+ | [FoundationHeader](./foundation-header.foundationheader.md) | FoundationHeader. |
11
12
  | [Navigation](./foundation-header.navigation.md) | Navigation micro-frontend includes navigation bar and flyout menu |
13
+ | [ZeroHeader](./foundation-header.zeroheader.md) | ZeroHeader is a zero version of the header micro-frontend. |
14
+
15
+ ## Functions
16
+
17
+ | Function | Description |
18
+ | --- | --- |
19
+ | [configure(config)](./foundation-header.configure.md) | A function that allows configuring the header micro-frontend with name and templateOptions. |
20
+
21
+ ## Interfaces
22
+
23
+ | Interface | Description |
24
+ | --- | --- |
25
+ | [HeaderConfig](./foundation-header.headerconfig.md) | HeaderConfig DI interface. |
12
26
 
13
27
  ## Variables
14
28
 
15
29
  | Variable | Description |
16
30
  | --- | --- |
31
+ | [defaultHeaderConfig](./foundation-header.defaultheaderconfig.md) | Default HeaderConfig DI implementation. |
17
32
  | [MainStyles](./foundation-header.mainstyles.md) | Base styles for the foundation-header |
18
33
  | [NavTemplate](./foundation-header.navtemplate.md) | Template for Navigation class |
19
34
 
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [Navigation](./foundation-header.navigation.md) &gt; [headerConfig](./foundation-header.navigation.headerconfig.md)
4
+
5
+ ## Navigation.headerConfig property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ headerConfig: HeaderConfig;
11
+ ```
@@ -23,6 +23,7 @@ export declare class Navigation extends Navigation_base
23
23
  | --- | --- | --- | --- |
24
24
  | [auth](./foundation-header.navigation.auth.md) | | Auth | |
25
25
  | [credentialManager](./foundation-header.navigation.credentialmanager.md) | | CredentialManager | |
26
+ | [headerConfig](./foundation-header.navigation.headerconfig.md) | | [HeaderConfig](./foundation-header.headerconfig.md) | |
26
27
  | [hideSideBar](./foundation-header.navigation.hidesidebar.md) | | boolean | Boolean attribute which controls whether to include the sideNav component Control via<code>hide-side-bar</code> |
27
28
  | [i18next](./foundation-header.navigation.i18next.md) | | I18next | |
28
29
  | [languageOptions](./foundation-header.navigation.languageoptions.md) | | [LanguageOptions](./foundation-header.languageoptions.md) | |
@@ -0,0 +1,37 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [ZeroHeader](./foundation-header.zeroheader.md)
4
+
5
+ ## ZeroHeader class
6
+
7
+ ZeroHeader is a zero version of the header micro-frontend.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export declare class ZeroHeader extends Navigation
13
+ ```
14
+ **Extends:** [Navigation](./foundation-header.navigation.md)
15
+
16
+ ## Remarks
17
+
18
+ A zero version that pre-registers zero components and uses the zero design system so that it can run standalone. Generally this is used for development purposes, but can be deployed as a standalone application if required or be used by a host application that is already using zero. ZeroHeader and its components won't bloat the core bundle as these are only loaded on-demand when in use.
19
+
20
+ ## Example 1
21
+
22
+
23
+ ```ts
24
+ import { ZeroHeader } from '@genesislcap/foundation-header';
25
+ ...
26
+ ZeroHeader
27
+ ```
28
+
29
+ ## Example 2
30
+
31
+ Load the micro frontend on-demand
32
+
33
+ ```ts
34
+ const { ZeroHeader } = await import('@genesislcap/foundation-header');
35
+ },
36
+ ```
37
+
@@ -12,11 +12,43 @@ import { EmitOptions } from '@genesislcap/foundation-events';
12
12
  import { EmitReturn } from '@genesislcap/foundation-events';
13
13
  import type { FoundationRouteNavItem } from '@genesislcap/foundation-ui';
14
14
  import { I18next } from '@genesislcap/foundation-i18n';
15
+ import { InterfaceSymbol } from '@microsoft/fast-foundation';
16
+ import { PartialFASTElementDefinition } from '@microsoft/fast-element';
17
+ import { SyntheticViewTemplate } from '@microsoft/fast-element';
18
+ import { TemplateElementDependency } from '@genesislcap/foundation-ui';
15
19
  import { ViewTemplate } from '@microsoft/fast-element';
16
20
 
21
+ // @public
22
+ export function configure(config: Partial<HeaderConfig>): Promise<Navigation>;
23
+
24
+ // @public
25
+ export const defaultHeaderConfig: HeaderConfig;
26
+
27
+ // Warning: (ae-internal-missing-underscore) The name "DynamicTemplate" should be prefixed with an underscore because the declaration is marked as @internal
28
+ //
29
+ // @internal
30
+ export const DynamicTemplate: ViewTemplate<Navigation>;
31
+
17
32
  // @public
18
33
  export type ElementTargetId = HeaderTargetId | NavTargetId | SideNavTargetId;
19
34
 
35
+ // @public
36
+ export class FoundationHeader extends Navigation {
37
+ // (undocumented)
38
+ loadRemotes(): Promise<void>;
39
+ }
40
+
41
+ // Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "HeaderConfig" because one of its declarations is marked as @internal
42
+ //
43
+ // @public
44
+ export interface HeaderConfig extends PartialFASTElementDefinition {
45
+ // Warning: (ae-forgotten-export) The symbol "TemplateOptions" needs to be exported by the entry point index.d.ts
46
+ templateOptions: TemplateOptions;
47
+ }
48
+
49
+ // @internal
50
+ export const HeaderConfig: InterfaceSymbol<HeaderConfig>;
51
+
20
52
  // @public
21
53
  export type HeaderTargetId = 'header-start' | 'header' | 'header-end';
22
54
 
@@ -26,9 +58,19 @@ export type LanguageOptions = {
26
58
  selectedLanguage: string;
27
59
  };
28
60
 
61
+ // Warning: (ae-internal-missing-underscore) The name "LoadingTemplate" should be prefixed with an underscore because the declaration is marked as @internal
62
+ //
63
+ // @internal
64
+ export const LoadingTemplate: ViewTemplate<Navigation>;
65
+
29
66
  // @public
30
67
  export const MainStyles: ElementStyles;
31
68
 
69
+ // Warning: (ae-internal-missing-underscore) The name "MainTemplate" should be prefixed with an underscore because the declaration is marked as @internal
70
+ //
71
+ // @internal
72
+ export const MainTemplate: ViewTemplate<Navigation>;
73
+
32
74
  // @public
33
75
  export type NavEventDetailMap = {
34
76
  'luminance-icon-clicked': void;
@@ -48,6 +90,8 @@ export class Navigation extends Navigation_base {
48
90
  connectedCallback(): Promise<void>;
49
91
  // (undocumented)
50
92
  credentialManager: CredentialManager;
93
+ // (undocumented)
94
+ headerConfig: HeaderConfig;
51
95
  hideSideBar: boolean;
52
96
  // (undocumented)
53
97
  i18next: I18next;
@@ -107,6 +151,10 @@ export type SideNavTargetId = 'side-nav-start' | 'side-nav' | 'side-nav-end';
107
151
  // @public
108
152
  export type StyleTargetId = 'header';
109
153
 
154
+ // @public
155
+ export class ZeroHeader extends Navigation {
156
+ }
157
+
110
158
  // (No @packageDocumentation comment for this package)
111
159
 
112
160
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-header",
3
3
  "description": "Genesis Foundation Header",
4
- "version": "14.178.0",
4
+ "version": "14.180.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-header.d.ts",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "./config": {
30
30
  "types": "./dist/dts/config/index.d.ts",
31
- "default": "./dist/esm/esm/config/index.js"
31
+ "default": "./dist/esm/config/index.js"
32
32
  },
33
33
  "./e2e": {
34
34
  "default": "./test/e2e/index.ts"
@@ -68,27 +68,27 @@
68
68
  "test:debug": "genx test --debug"
69
69
  },
70
70
  "devDependencies": {
71
- "@genesislcap/foundation-testing": "14.178.0",
72
- "@genesislcap/genx": "14.178.0",
73
- "@genesislcap/rollup-builder": "14.178.0",
74
- "@genesislcap/ts-builder": "14.178.0",
75
- "@genesislcap/uvu-playwright-builder": "14.178.0",
76
- "@genesislcap/vite-builder": "14.178.0",
77
- "@genesislcap/webpack-builder": "14.178.0",
71
+ "@genesislcap/foundation-testing": "14.180.0",
72
+ "@genesislcap/genx": "14.180.0",
73
+ "@genesislcap/rollup-builder": "14.180.0",
74
+ "@genesislcap/ts-builder": "14.180.0",
75
+ "@genesislcap/uvu-playwright-builder": "14.180.0",
76
+ "@genesislcap/vite-builder": "14.180.0",
77
+ "@genesislcap/webpack-builder": "14.180.0",
78
78
  "rimraf": "^3.0.2"
79
79
  },
80
80
  "dependencies": {
81
- "@genesislcap/foundation-comms": "14.178.0",
82
- "@genesislcap/foundation-events": "14.178.0",
83
- "@genesislcap/foundation-i18n": "14.178.0",
84
- "@genesislcap/foundation-logger": "14.178.0",
85
- "@genesislcap/foundation-shell": "14.178.0",
86
- "@genesislcap/foundation-ui": "14.178.0",
87
- "@genesislcap/foundation-utils": "14.178.0",
88
- "@genesislcap/foundation-zero": "14.178.0",
81
+ "@genesislcap/foundation-comms": "14.180.0",
82
+ "@genesislcap/foundation-events": "14.180.0",
83
+ "@genesislcap/foundation-i18n": "14.180.0",
84
+ "@genesislcap/foundation-logger": "14.180.0",
85
+ "@genesislcap/foundation-shell": "14.180.0",
86
+ "@genesislcap/foundation-ui": "14.180.0",
87
+ "@genesislcap/foundation-utils": "14.180.0",
88
+ "@genesislcap/foundation-zero": "14.180.0",
89
89
  "@microsoft/fast-colors": "^5.3.1",
90
- "@microsoft/fast-components": "^2.30.6",
91
90
  "@microsoft/fast-element": "^1.12.0",
91
+ "@microsoft/fast-foundation": "^2.49.4",
92
92
  "@microsoft/fast-router": "^0.4.8",
93
93
  "tslib": "^2.3.1"
94
94
  },
@@ -101,5 +101,5 @@
101
101
  "access": "public"
102
102
  },
103
103
  "customElements": "dist/custom-elements.json",
104
- "gitHead": "fd55a5cd2e3b0fa048377835c73186df1e75b849"
104
+ "gitHead": "24ddbaf4c43ccfe2c323ec1178b1829451b1721a"
105
105
  }
@@ -1,9 +0,0 @@
1
- export declare const loadZeroDesignSystem: () => Promise<any>;
2
- /**
3
- * Load the wp5 module federation remote versions, or fallback to code split bundled versions.
4
- * You would really be targeting the client's design system, components etc here. For now just targeting zero.
5
- */
6
- export declare const loadRemotes: () => Promise<{
7
- ZeroDesignSystem: any;
8
- }>;
9
- //# sourceMappingURL=components.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/components.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,oBAAoB,oBAWhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW;;EAKvB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './components';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -1,42 +0,0 @@
1
- import { __awaiter } from "tslib";
2
- /**
3
- * These DS / Component imports will be replaced with an import from the local alpha design system.
4
- * We're just fixing something on our side to allow you to extend zero.
5
- */
6
- import { allComponents, provideFASTDesignSystem } from '@microsoft/fast-components';
7
- import { logger } from '../utils';
8
- provideFASTDesignSystem().register(allComponents);
9
- var ResourceType;
10
- (function (ResourceType) {
11
- ResourceType["local"] = "local";
12
- ResourceType["remote"] = "remote";
13
- })(ResourceType || (ResourceType = {}));
14
- function loadZeroFallback() {
15
- return import(
16
- /* webpackMode: "lazy" */
17
- '@genesislcap/foundation-zero');
18
- }
19
- export const loadZeroDesignSystem = () => __awaiter(void 0, void 0, void 0, function* () {
20
- let type = ResourceType.remote;
21
- try {
22
- // @ts-ignore
23
- return yield import('foundationZero/ZeroDesignSystem');
24
- }
25
- catch (e) {
26
- type = ResourceType.local;
27
- return yield loadZeroFallback();
28
- }
29
- finally {
30
- logger.debug(`Using '${type}' version of foundationZero/DesignSystem`);
31
- }
32
- });
33
- /**
34
- * Load the wp5 module federation remote versions, or fallback to code split bundled versions.
35
- * You would really be targeting the client's design system, components etc here. For now just targeting zero.
36
- */
37
- export const loadRemotes = () => __awaiter(void 0, void 0, void 0, function* () {
38
- const { registerZeroDesignSystem } = yield loadZeroDesignSystem();
39
- return {
40
- ZeroDesignSystem: registerZeroDesignSystem(),
41
- };
42
- });
@@ -1 +0,0 @@
1
- export * from './components';