@gsa-tts/graymatter-ui 0.3.19 → 0.3.21

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.3.19",
3
+ "version": "0.3.21",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,6 +1,3 @@
1
- // Astro Components
2
- export { default as Head } from './Head.astro';
3
-
4
1
  // Svelte Components
5
2
  export { default as UsaBanner } from './UsaBanner.svelte';
6
3
  export { default as Logo } from './Logo.svelte';
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  import '../styles/base/global.css';
3
- import Head from '../components/Head.astro';
3
+ import Head from './Head.astro';
4
4
  import UsaSkipNav from '../components/UsaSkipNav.svelte';
5
5
  const { title, description, openGraphImage, gtmID } = Astro.props;
6
6
  ---
@@ -15,6 +15,7 @@ const {
15
15
  disableCodeCopyButtons = false,
16
16
  postItems = null,
17
17
  profileMenuData = null,
18
+ hideDiscover = true,
18
19
  } = Astro.props;
19
20
  ---
20
21
 
@@ -28,6 +29,7 @@ const {
28
29
  title={title}
29
30
  {description}
30
31
  {openGraphImage}
32
+ {hideDiscover}
31
33
  >
32
34
  <!-- Initialize navigation state and auto-expand submenu for section pages -->
33
35
  <NavigationInitializer
@@ -21,6 +21,7 @@ const {
21
21
  title: pageTitle,
22
22
  description,
23
23
  openGraphImage,
24
+ hideDiscover = true,
24
25
  } = Astro.props;
25
26
 
26
27
  const { api, chat, console, discover } = getAppUrls();
@@ -34,8 +35,9 @@ const { api, chat, console, discover } = getAppUrls();
34
35
  <DesktopSideNav
35
36
  client:load
36
37
  ssrSelectedItem={ssrSelectedItem}
37
- {showAppIcons}
38
- {profileMenuData}
38
+ showAppIcons={showAppIcons}
39
+ hideDiscover={hideDiscover}
40
+ profileMenuData={profileMenuData}
39
41
  apiUrl={api}
40
42
  chatUrl={chat}
41
43
  consoleUrl={console}
@@ -58,20 +60,17 @@ const { api, chat, console, discover } = getAppUrls();
58
60
  <nav aria-label="Mobile navigation">
59
61
  <MobileTopNav
60
62
  client:load
61
- {profileMenuData}
62
- {logoLinkUrl}
63
- {logoLinkLabel}
64
- apiUrl={api}
65
- chatUrl={chat}
66
- consoleUrl={console}
67
- discoverUrl={discover}
63
+ profileMenuData={profileMenuData}
64
+ logoLinkUrl={logoLinkUrl}
65
+ logoLinkLabel={logoLinkLabel}
68
66
  />
69
67
  <MobileSideMenu client:load {logoLinkUrl} {logoLinkLabel}>
70
68
  <slot name="sub-nav" />
71
69
  </MobileSideMenu>
72
70
  <MobileBottomNav
73
71
  client:load
74
- {showAppIcons}
72
+ showAppIcons={showAppIcons}
73
+ hideDiscover={hideDiscover}
75
74
  apiUrl={api}
76
75
  chatUrl={chat}
77
76
  consoleUrl={console}
File without changes