@gsa-tts/graymatter-ui 0.4.8 → 0.4.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gsa-tts/graymatter-ui",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -61,9 +61,9 @@
61
61
  "typescript": "5.7.3",
62
62
  "vite": "^6.3.5",
63
63
  "vitest": "^3.0.7",
64
+ "@gsa-tts/graymatter-eslint": "0.0.2",
64
65
  "@gsa-tts/graymatter-typescript-config": "0.0.2",
65
- "@gsa-tts/graymatter-vitest-config": "0.0.1",
66
- "@gsa-tts/graymatter-eslint": "0.0.2"
66
+ "@gsa-tts/graymatter-vitest-config": "0.0.1"
67
67
  },
68
68
  "dependencies": {
69
69
  "@fontsource-variable/archivo": "^5.2.6",
@@ -37,6 +37,8 @@
37
37
  supplementalMenuData,
38
38
  } = $props();
39
39
 
40
+ const helpUrl = supplementalMenuData?.help?.url?.trim();
41
+
40
42
  let hydrated = false;
41
43
  let navContainer: HTMLDivElement;
42
44
  let hoveredItem = $state<string | null>(null);
@@ -428,7 +430,7 @@
428
430
 
429
431
  {#if profileMenuData}
430
432
  <div class="nav-footer" part="nav-footer">
431
- {#if supplementalMenuData?.help?.url}
433
+ {#if helpUrl}
432
434
  <div
433
435
  class="nav-footer-icon-container"
434
436
  part="nav-footer-icon-container"
@@ -437,7 +439,7 @@
437
439
  class="help-link"
438
440
  class:selected={get(selectedSubNavItemId) === 'help'}
439
441
  aria-current={get(selectedSubNavItemId) === 'help'}
440
- href={supplementalMenuData.help.url}
442
+ href={helpUrl}
441
443
  part="help-link"
442
444
  title="Help"
443
445
  aria-label="Help"
@@ -15,6 +15,7 @@ const {
15
15
  showAppIcons = false,
16
16
  disableCodeCopyButtons = false,
17
17
  profileMenuData = null,
18
+ supplementalMenuData = undefined,
18
19
  hideDiscover = true,
19
20
  contentCustomization = undefined,
20
21
  logoLinkUrl,
@@ -65,6 +66,7 @@ const subNavData = generateApiDocumentationNavData(apiDocsMetadata);
65
66
  {description}
66
67
  {openGraphImage}
67
68
  {hideDiscover}
69
+ {supplementalMenuData}
68
70
  >
69
71
  <!-- Initialize navigation state and auto-expand submenu for section pages -->
70
72
  <NavigationInitializer