@genesislcap/foundation-header 14.483.3-alpha-92cb1f2a8.0 → 14.484.1

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.
@@ -959,7 +959,7 @@
959
959
  "name": "logout-clicked"
960
960
  },
961
961
  {
962
- "description": "Dispatched when the user clicks a navigation button.",
962
+ "description": "Dispatched when the user clicks a navigation button. detail: `NavButtonClickDetail`",
963
963
  "name": "nav-button-clicked"
964
964
  }
965
965
  ],
@@ -2028,7 +2028,7 @@
2028
2028
  }
2029
2029
  },
2030
2030
  {
2031
- "description": "Dispatched when the user clicks a navigation button.",
2031
+ "description": "Dispatched when the user clicks a navigation button. detail: `NavButtonClickDetail`",
2032
2032
  "name": "nav-button-clicked",
2033
2033
  "inheritedFrom": {
2034
2034
  "name": "Navigation",
@@ -2923,7 +2923,7 @@
2923
2923
  }
2924
2924
  },
2925
2925
  {
2926
- "description": "Dispatched when the user clicks a navigation button.",
2926
+ "description": "Dispatched when the user clicks a navigation button. detail: `NavButtonClickDetail`",
2927
2927
  "name": "nav-button-clicked",
2928
2928
  "inheritedFrom": {
2929
2929
  "name": "Navigation",
@@ -3817,7 +3817,7 @@
3817
3817
  }
3818
3818
  },
3819
3819
  {
3820
- "description": "Dispatched when the user clicks a navigation button.",
3820
+ "description": "Dispatched when the user clicks a navigation button. detail: `NavButtonClickDetail`",
3821
3821
  "name": "nav-button-clicked",
3822
3822
  "inheritedFrom": {
3823
3823
  "name": "Navigation",
@@ -436,7 +436,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
436
436
  * @fires notification-icon-clicked - Dispatched when the user clicks on the notification icon in the navigation bar.
437
437
  * @fires language-changed - Dispatched when the user changes the language in the language selector.
438
438
  * @fires logout-clicked - Dispatched when the user clicks logout button.
439
- * @fires nav-button-clicked - Dispatched when the user clicks a navigation button.
439
+ * @fires nav-button-clicked - Dispatched when the user clicks a navigation button. detail: `NavButtonClickDetail`
440
440
  *
441
441
  */
442
442
  export declare class Navigation extends Navigation_base {
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAe,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAO,EAAsB,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAQ,SAAS,EAA6C,MAAM,uBAAuB,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAUhD;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,2CAA2C;IAC3C,IAAI,EAAE,sBAAsB,CAAC;IAC7B,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,wHAAwH;IACxH,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,oCAAoC;IACpC,OAAO,EAAE,GAAG,CAAC;CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,wBAAwB,EAAE,IAAI,CAAC;IAC/B,gBAAgB,EAAE,IAAI,CAAC;IACvB,mBAAmB,EAAE,IAAI,CAAC;IAC1B,2BAA2B,EAAE,IAAI,CAAC;IAClC,kBAAkB,EAAE,IAAI,CAAC;IACzB,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;;;;;;;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G,oBAAoB,CAAC,YAAY,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAmB/E;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;;;;OAKG;IACI,cAAc,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO;CAoBhE;AAED;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IACxC,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;CAGnC;AAED;;;;;;GAMG;AACH,qBAKa,UAAW,SAAQ,UAAU;CAAG;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAKa,WAAY,SAAQ,UAAU;IACzC;;;;;;;;OAQG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAMlC,cAAc,IAAI,YAAY,CAAC,UAAU,CAAC;CAG3C"}
@@ -1,5 +1,19 @@
1
1
  import { ViewTemplate } from '@genesislcap/web-core';
2
2
  import type { Navigation } from './main';
3
+ /**
4
+ * Returns `className` when the active route matches the nav item's route.
5
+ *
6
+ * @remarks
7
+ * Compares the last non-empty path segment of both `urlPath` and `buttonPath`, so it is agnostic
8
+ * to leading/trailing slashes and any base path prefix. This matters across frameworks:
9
+ * web-components route paths have no leading slash (e.g. `allocations`), whereas React Router
10
+ * paths do (e.g. `/allocations`) and the URL may be served under a `basename`. The segment must
11
+ * be non-empty to match, so a nav item without a `routePath` is never highlighted at the root
12
+ * path. Mirrors {@link Navigation.hasActiveChild}.
13
+ *
14
+ * @internal
15
+ */
16
+ export declare const navigationClassMatcher: (className: string, buttonPath: string, urlPath: string) => string;
3
17
  /**
4
18
  * Top level template for Navigation class
5
19
  *
@@ -1 +1 @@
1
- {"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAO,YAAY,EAAkC,MAAM,uBAAuB,CAAC;AAe1F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAQzC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,UAAU,CAIpD,CAAC;AAuMF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,+BAyJvB,CAAC;AAiDF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,GAAI,WAAM,2BAIzC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,UAAU,CAEpD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,+BAAc,CAAC"}
1
+ {"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAO,YAAY,EAAkC,MAAM,uBAAuB,CAAC;AAe1F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAazC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,GAAI,WAAW,MAAM,EAAE,YAAY,MAAM,EAAE,SAAS,MAAM,WAM5F,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,UAAU,CAIpD,CAAC;AAuMF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,+BAyJvB,CAAC;AAiDF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,GAAI,WAAM,2BAIzC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,UAAU,CAEpD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,+BAAc,CAAC"}
@@ -6,6 +6,7 @@
6
6
  import type React from 'react';
7
7
  import type { ControlPanel as ControlPanelWC } from './components/control-panel';
8
8
  import type { Navigation as NavigationWC, RapidHeader as RapidHeaderWC, ZeroHeader as ZeroHeaderWC } from './main/main';
9
+ import type { NavButtonClickDetail } from '@genesislcap/foundation-header';
9
10
 
10
11
  /** @internal Maps a web component class to its public props only.
11
12
  * keyof T skips private/protected members, so this avoids the TS error
@@ -54,7 +55,7 @@ export declare const Navigation: React.ForwardRefExoticComponent<
54
55
  onNotificationIconClicked?: (event: CustomEvent<unknown>) => void;
55
56
  onLanguageChanged?: (event: CustomEvent<unknown>) => void;
56
57
  onLogoutClicked?: (event: CustomEvent<unknown>) => void;
57
- onNavButtonClicked?: (event: CustomEvent<unknown>) => void;
58
+ onNavButtonClicked?: (event: CustomEvent<NavButtonClickDetail>) => void;
58
59
  }
59
60
  > & React.RefAttributes<NavigationWC>
60
61
  >;
@@ -69,7 +70,7 @@ export declare const ZeroHeader: React.ForwardRefExoticComponent<
69
70
  onNotificationIconClicked?: (event: CustomEvent<unknown>) => void;
70
71
  onLanguageChanged?: (event: CustomEvent<unknown>) => void;
71
72
  onLogoutClicked?: (event: CustomEvent<unknown>) => void;
72
- onNavButtonClicked?: (event: CustomEvent<unknown>) => void;
73
+ onNavButtonClicked?: (event: CustomEvent<NavButtonClickDetail>) => void;
73
74
  }
74
75
  > & React.RefAttributes<ZeroHeaderWC>
75
76
  >;
@@ -84,7 +85,7 @@ export declare const RapidHeader: React.ForwardRefExoticComponent<
84
85
  onNotificationIconClicked?: (event: CustomEvent<unknown>) => void;
85
86
  onLanguageChanged?: (event: CustomEvent<unknown>) => void;
86
87
  onLogoutClicked?: (event: CustomEvent<unknown>) => void;
87
- onNavButtonClicked?: (event: CustomEvent<unknown>) => void;
88
+ onNavButtonClicked?: (event: CustomEvent<NavButtonClickDetail>) => void;
88
89
  }
89
90
  > & React.RefAttributes<RapidHeaderWC>
90
91
  >;
@@ -56,7 +56,7 @@ const DEFAULT_INACTIVITY_WARNING_MINUTES = 5;
56
56
  * @fires notification-icon-clicked - Dispatched when the user clicks on the notification icon in the navigation bar.
57
57
  * @fires language-changed - Dispatched when the user changes the language in the language selector.
58
58
  * @fires logout-clicked - Dispatched when the user clicks logout button.
59
- * @fires nav-button-clicked - Dispatched when the user clicks a navigation button.
59
+ * @fires nav-button-clicked - Dispatched when the user clicks a navigation button. detail: `NavButtonClickDetail`
60
60
  *
61
61
  */
62
62
  let Navigation = class Navigation extends EventEmitter(GenesisElement) {
@@ -493,7 +493,8 @@ let Navigation = class Navigation extends EventEmitter(GenesisElement) {
493
493
  // Check if any child route matches current path
494
494
  return navItem.navItems.some((child) => {
495
495
  if (child.routePath &&
496
- currentPath.split('/').reverse()[0] === child.routePath.split('/').reverse()[0]) {
496
+ currentPath.split('/').filter(Boolean).pop() ===
497
+ child.routePath.split('/').filter(Boolean).pop()) {
497
498
  return true;
498
499
  }
499
500
  // Recursively check nested children
@@ -6,7 +6,32 @@ import { ControlPanel } from '../components';
6
6
  import { aiIndicatorTag, buttonTag, connectionIndicatorTag, environmentIndicatorTag, flyoutTag, getTagHelper, iconTag, optionTag, providerTag, selectTag, } from '../tags';
7
7
  avoidTreeShaking(ControlPanel);
8
8
  const app = getApp();
9
- const navigationClassMatcher = (className, buttonPath, urlPath) => classNames([className, urlPath.split('/').reverse()[0] === buttonPath]);
9
+ /**
10
+ * Returns the last non-empty path segment, e.g. `/app/home/` -> `home`, `/` -> `undefined`.
11
+ *
12
+ * @internal
13
+ */
14
+ const lastPathSegment = (path) => path === null || path === void 0 ? void 0 : path.split('/').filter(Boolean).pop();
15
+ /**
16
+ * Returns `className` when the active route matches the nav item's route.
17
+ *
18
+ * @remarks
19
+ * Compares the last non-empty path segment of both `urlPath` and `buttonPath`, so it is agnostic
20
+ * to leading/trailing slashes and any base path prefix. This matters across frameworks:
21
+ * web-components route paths have no leading slash (e.g. `allocations`), whereas React Router
22
+ * paths do (e.g. `/allocations`) and the URL may be served under a `basename`. The segment must
23
+ * be non-empty to match, so a nav item without a `routePath` is never highlighted at the root
24
+ * path. Mirrors {@link Navigation.hasActiveChild}.
25
+ *
26
+ * @internal
27
+ */
28
+ export const navigationClassMatcher = (className, buttonPath, urlPath) => {
29
+ const urlSegment = lastPathSegment(urlPath);
30
+ return classNames([
31
+ className,
32
+ urlSegment !== undefined && urlSegment === lastPathSegment(buttonPath),
33
+ ]);
34
+ };
10
35
  /**
11
36
  * Top level template for Navigation class
12
37
  *
@@ -607,7 +607,7 @@
607
607
  {
608
608
  "kind": "Class",
609
609
  "canonicalReference": "@genesislcap/foundation-header!Navigation:class",
610
- "docComment": "/**\n * Navigation micro-frontend includes navigation bar and flyout menu\n *\n * @remarks\n *\n * `foundation-header` micro-frontend can be added to the project to include a navigation bar and flyout menu. There are multiple ways that the behaviour of the component can be configured - the icon shown on the navigation bar and flyout menu (this shows the Genesis logo by default). - navigation links at the left-hand side of the navigation bar. - the control buttons on the right-hand side of the navigation bar can be shown or hidden, and their behaviour controlled via event listeners - The contents of the flyout menu.\n *\n * @param logo - src - Option attribute which sets the source of the image in the navigation bar and flyout menu. The Genesis logo will be shown if this attribute is not provided.\n *\n * @param logo - alt-text -Descriptive logo text.\n *\n * @param show - luminance-toggle-button - Boolean attribute which controls whether the navigation bar will display the luminance toggle icon.\n *\n * @param show - misc-toggle-button - Boolean attribute which controls whether the navigation bar will display the miscellaneous behaviour icon.\n *\n * @param notification - icon-clicked - Boolean attribute which controls whether the navigation bar will display the show notification icon.\n *\n * @param show - connection-indicator - Boolean attribute which controls whether the navigation bar will display the connection indicator.\n *\n * @param show - environment-indicator - Boolean attribute which controls whether the navigation bar will display the environment indicator.\n *\n * @param show - language-selector - Boolean attribute which controls whether the navigation bar will display the language selector.\n *\n * @param hide - side-bar - Boolean attribute which controls whether the navigation bar will display the side bar.\n *\n * @param show - account-menu - Boolean attribute which controls whether the navigation bar will display the account menu.\n *\n * @param logout - button-position - String attribute which controls the position of the logout button in the header.\n *\n * @param userName - String which defines the username to be displayed in the navigation bar.\n *\n * @param routeButtons - Array of objects which define the route buttons to be displayed in the navigation bar.\n *\n * @param routeNavItems - Array of {@link @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems} which define the route buttons to be displayed in the navigation bar.\n *\n * @param languageOptions - Object which defines the language options to be displayed in the language selector.\n *\n * @param inactivity - timeout-minutes - Number attribute which sets the inactivity timeout in minutes (default: 30).\n *\n * @param inactivity - warning-minutes - Number attribute which sets the inactivity warning time in minutes before timeout (default: 5).\n *\n * @param enable - inactivity-monitoring - Boolean attribute which controls whether to enable inactivity monitoring (default: true).\n *\n * @fires\n *\n * luminance-icon-clicked - Dispatched when the user clicks on the luminance toggle icon in the navigation bar.\n *\n * @fires\n *\n * misc-icon-clicked - Dispatched when the user clicks on the miscellaneous behaviour icon in the navigation bar.\n *\n * @fires\n *\n * notification-icon-clicked - Dispatched when the user clicks on the notification icon in the navigation bar.\n *\n * @fires\n *\n * language-changed - Dispatched when the user changes the language in the language selector.\n *\n * @fires\n *\n * logout-clicked - Dispatched when the user clicks logout button.\n *\n * @fires\n *\n * nav-button-clicked - Dispatched when the user clicks a navigation button.\n *\n * @public\n */\n",
610
+ "docComment": "/**\n * Navigation micro-frontend includes navigation bar and flyout menu\n *\n * @remarks\n *\n * `foundation-header` micro-frontend can be added to the project to include a navigation bar and flyout menu. There are multiple ways that the behaviour of the component can be configured - the icon shown on the navigation bar and flyout menu (this shows the Genesis logo by default). - navigation links at the left-hand side of the navigation bar. - the control buttons on the right-hand side of the navigation bar can be shown or hidden, and their behaviour controlled via event listeners - The contents of the flyout menu.\n *\n * @param logo - src - Option attribute which sets the source of the image in the navigation bar and flyout menu. The Genesis logo will be shown if this attribute is not provided.\n *\n * @param logo - alt-text -Descriptive logo text.\n *\n * @param show - luminance-toggle-button - Boolean attribute which controls whether the navigation bar will display the luminance toggle icon.\n *\n * @param show - misc-toggle-button - Boolean attribute which controls whether the navigation bar will display the miscellaneous behaviour icon.\n *\n * @param notification - icon-clicked - Boolean attribute which controls whether the navigation bar will display the show notification icon.\n *\n * @param show - connection-indicator - Boolean attribute which controls whether the navigation bar will display the connection indicator.\n *\n * @param show - environment-indicator - Boolean attribute which controls whether the navigation bar will display the environment indicator.\n *\n * @param show - language-selector - Boolean attribute which controls whether the navigation bar will display the language selector.\n *\n * @param hide - side-bar - Boolean attribute which controls whether the navigation bar will display the side bar.\n *\n * @param show - account-menu - Boolean attribute which controls whether the navigation bar will display the account menu.\n *\n * @param logout - button-position - String attribute which controls the position of the logout button in the header.\n *\n * @param userName - String which defines the username to be displayed in the navigation bar.\n *\n * @param routeButtons - Array of objects which define the route buttons to be displayed in the navigation bar.\n *\n * @param routeNavItems - Array of {@link @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems} which define the route buttons to be displayed in the navigation bar.\n *\n * @param languageOptions - Object which defines the language options to be displayed in the language selector.\n *\n * @param inactivity - timeout-minutes - Number attribute which sets the inactivity timeout in minutes (default: 30).\n *\n * @param inactivity - warning-minutes - Number attribute which sets the inactivity warning time in minutes before timeout (default: 5).\n *\n * @param enable - inactivity-monitoring - Boolean attribute which controls whether to enable inactivity monitoring (default: true).\n *\n * @fires\n *\n * luminance-icon-clicked - Dispatched when the user clicks on the luminance toggle icon in the navigation bar.\n *\n * @fires\n *\n * misc-icon-clicked - Dispatched when the user clicks on the miscellaneous behaviour icon in the navigation bar.\n *\n * @fires\n *\n * notification-icon-clicked - Dispatched when the user clicks on the notification icon in the navigation bar.\n *\n * @fires\n *\n * language-changed - Dispatched when the user changes the language in the language selector.\n *\n * @fires\n *\n * logout-clicked - Dispatched when the user clicks logout button.\n *\n * @fires\n *\n * nav-button-clicked - Dispatched when the user clicks a navigation button. detail: `NavButtonClickDetail`\n *\n * @public\n */\n",
611
611
  "excerptTokens": [
612
612
  {
613
613
  "kind": "Content",
@@ -354,7 +354,7 @@ export declare type NavEventDetailMap = {
354
354
  * @fires notification-icon-clicked - Dispatched when the user clicks on the notification icon in the navigation bar.
355
355
  * @fires language-changed - Dispatched when the user changes the language in the language selector.
356
356
  * @fires logout-clicked - Dispatched when the user clicks logout button.
357
- * @fires nav-button-clicked - Dispatched when the user clicks a navigation button.
357
+ * @fires nav-button-clicked - Dispatched when the user clicks a navigation button. detail: `NavButtonClickDetail`
358
358
  *
359
359
  */
360
360
  export declare class Navigation extends Navigation_base {
@@ -1107,6 +1107,21 @@ declare const Navigation_base: abstract new (...args: any[]) => {
1107
1107
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1108
1108
  };
1109
1109
 
1110
+ /**
1111
+ * Returns `className` when the active route matches the nav item's route.
1112
+ *
1113
+ * @remarks
1114
+ * Compares the last non-empty path segment of both `urlPath` and `buttonPath`, so it is agnostic
1115
+ * to leading/trailing slashes and any base path prefix. This matters across frameworks:
1116
+ * web-components route paths have no leading slash (e.g. `allocations`), whereas React Router
1117
+ * paths do (e.g. `/allocations`) and the URL may be served under a `basename`. The segment must
1118
+ * be non-empty to match, so a nav item without a `routePath` is never highlighted at the root
1119
+ * path. Mirrors {@link Navigation.hasActiveChild}.
1120
+ *
1121
+ * @internal
1122
+ */
1123
+ export declare const navigationClassMatcher: (className: string, buttonPath: string, urlPath: string) => string;
1124
+
1110
1125
  /**
1111
1126
  * Nav integration targets.
1112
1127
  *
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.483.3-alpha-92cb1f2a8.0",
4
+ "version": "14.484.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-header.d.ts",
@@ -84,29 +84,29 @@
84
84
  }
85
85
  },
86
86
  "devDependencies": {
87
- "@genesislcap/foundation-testing": "14.483.3-alpha-92cb1f2a8.0",
88
- "@genesislcap/genx": "14.483.3-alpha-92cb1f2a8.0",
89
- "@genesislcap/rollup-builder": "14.483.3-alpha-92cb1f2a8.0",
90
- "@genesislcap/ts-builder": "14.483.3-alpha-92cb1f2a8.0",
91
- "@genesislcap/uvu-playwright-builder": "14.483.3-alpha-92cb1f2a8.0",
92
- "@genesislcap/vite-builder": "14.483.3-alpha-92cb1f2a8.0",
93
- "@genesislcap/webpack-builder": "14.483.3-alpha-92cb1f2a8.0"
87
+ "@genesislcap/foundation-testing": "14.484.1",
88
+ "@genesislcap/genx": "14.484.1",
89
+ "@genesislcap/rollup-builder": "14.484.1",
90
+ "@genesislcap/ts-builder": "14.484.1",
91
+ "@genesislcap/uvu-playwright-builder": "14.484.1",
92
+ "@genesislcap/vite-builder": "14.484.1",
93
+ "@genesislcap/webpack-builder": "14.484.1"
94
94
  },
95
95
  "dependencies": {
96
- "@genesislcap/foundation-ai": "14.483.3-alpha-92cb1f2a8.0",
97
- "@genesislcap/foundation-auth": "14.483.3-alpha-92cb1f2a8.0",
98
- "@genesislcap/foundation-comms": "14.483.3-alpha-92cb1f2a8.0",
99
- "@genesislcap/foundation-events": "14.483.3-alpha-92cb1f2a8.0",
100
- "@genesislcap/foundation-i18n": "14.483.3-alpha-92cb1f2a8.0",
101
- "@genesislcap/foundation-logger": "14.483.3-alpha-92cb1f2a8.0",
102
- "@genesislcap/foundation-login": "14.483.3-alpha-92cb1f2a8.0",
103
- "@genesislcap/foundation-shell": "14.483.3-alpha-92cb1f2a8.0",
104
- "@genesislcap/foundation-ui": "14.483.3-alpha-92cb1f2a8.0",
105
- "@genesislcap/foundation-user": "14.483.3-alpha-92cb1f2a8.0",
106
- "@genesislcap/foundation-utils": "14.483.3-alpha-92cb1f2a8.0",
107
- "@genesislcap/foundation-zero": "14.483.3-alpha-92cb1f2a8.0",
108
- "@genesislcap/rapid-design-system": "14.483.3-alpha-92cb1f2a8.0",
109
- "@genesislcap/web-core": "14.483.3-alpha-92cb1f2a8.0"
96
+ "@genesislcap/foundation-ai": "14.484.1",
97
+ "@genesislcap/foundation-auth": "14.484.1",
98
+ "@genesislcap/foundation-comms": "14.484.1",
99
+ "@genesislcap/foundation-events": "14.484.1",
100
+ "@genesislcap/foundation-i18n": "14.484.1",
101
+ "@genesislcap/foundation-logger": "14.484.1",
102
+ "@genesislcap/foundation-login": "14.484.1",
103
+ "@genesislcap/foundation-shell": "14.484.1",
104
+ "@genesislcap/foundation-ui": "14.484.1",
105
+ "@genesislcap/foundation-user": "14.484.1",
106
+ "@genesislcap/foundation-utils": "14.484.1",
107
+ "@genesislcap/foundation-zero": "14.484.1",
108
+ "@genesislcap/rapid-design-system": "14.484.1",
109
+ "@genesislcap/web-core": "14.484.1"
110
110
  },
111
111
  "repository": {
112
112
  "type": "git",
@@ -117,5 +117,5 @@
117
117
  "access": "public"
118
118
  },
119
119
  "customElements": "dist/custom-elements.json",
120
- "gitHead": "0eb24727d93845a0d201332a85a26d9b0b4fd7df"
120
+ "gitHead": "805c947c8df90977fa68f5da82e358de498ada51"
121
121
  }