@theguild/components 8.2.1-alpha-20250114082545-10000aadcc5c794363a426bde0043234ee320c3e → 8.2.1-alpha-20250114083243-6ed468cfc07f3190adfc103eefedd548814bba29

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.
@@ -5,8 +5,7 @@ const AttachPageFAQSchema = ({ faqPages }) => {
5
5
  const pathname = usePathname();
6
6
  useEffect(() => {
7
7
  const html = document.querySelector("html");
8
- const path = pathname.replace("/graphql/hive", "/");
9
- if (faqPages.includes(path) && !html.hasAttribute("itemscope")) {
8
+ if (faqPages.includes(pathname) && !html.hasAttribute("itemscope")) {
10
9
  html.setAttribute("itemscope", "");
11
10
  html.setAttribute("itemtype", "https://schema.org/FAQPage");
12
11
  return () => {
@@ -14,7 +13,7 @@ const AttachPageFAQSchema = ({ faqPages }) => {
14
13
  html.removeAttribute("itemtype");
15
14
  };
16
15
  }
17
- }, [pathname]);
16
+ }, []);
18
17
  return null;
19
18
  };
20
19
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theguild/components",
3
- "version": "8.2.1-alpha-20250114082545-10000aadcc5c794363a426bde0043234ee320c3e",
3
+ "version": "8.2.1-alpha-20250114083243-6ed468cfc07f3190adfc103eefedd548814bba29",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"