@theguild/components 8.0.0-alpha-20241103132221-f9d255adde945cffb98f9f7c914ac29896a15819 → 8.0.0-alpha-20241103181355-82c3ab0bf3c837c17af89f22915ef2beef8f305b

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.
@@ -4,7 +4,7 @@ import { Navbar, Layout } from 'nextra-theme-docs';
4
4
  import { Head } from 'nextra/components';
5
5
 
6
6
  type LP = ComponentProps<typeof Layout>;
7
- type LayoutProps = Omit<LP, 'navbar' | 'footer' | 'children' | 'docsRepositoryBase'> & Partial<Pick<LP, 'navbar' | 'footer'>> & Required<Pick<LP, 'docsRepositoryBase'>>;
7
+ type LayoutProps = Omit<LP, 'navbar' | 'footer' | 'children' | 'docsRepositoryBase' | 'pageMap'> & Partial<Pick<LP, 'navbar' | 'footer' | 'pageMap'>> & Required<Pick<LP, 'docsRepositoryBase'>>;
8
8
  declare const GuildLayout: FC<{
9
9
  children: ReactNode;
10
10
  websiteName: string;
@@ -1,6 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Layout, Navbar } from "nextra-theme-docs";
3
3
  import { Head } from "nextra/components";
4
+ import { getPageMap } from "nextra/page-map";
4
5
  import { Footer } from "./components/footer";
5
6
  import { getNavbarLogo } from "./components/guild-navbar-logo";
6
7
  import { MoonIcon } from "./components/icons";
@@ -44,7 +45,7 @@ const GuildLayout = async ({
44
45
  }) => {
45
46
  const url = new URL(layoutProps.docsRepositoryBase);
46
47
  const [, org, repoName] = url.pathname.split("/");
47
- const [meta, ...pageMap] = layoutProps.pageMap;
48
+ const [meta, ...pageMap] = await getPageMap();
48
49
  const pageMapWithCompanyMenu = [
49
50
  {
50
51
  data: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theguild/components",
3
- "version": "8.0.0-alpha-20241103132221-f9d255adde945cffb98f9f7c914ac29896a15819",
3
+ "version": "8.0.0-alpha-20241103181355-82c3ab0bf3c837c17af89f22915ef2beef8f305b",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@svgr/babel-plugin-remove-jsx-attribute": "^8.0.0",
60
- "@theguild/tailwind-config": "0.6.0-alpha-20241102200946-31ab833bd95d2219fe5b6db5a21a2df6c60c5dce",
60
+ "@theguild/tailwind-config": "0.6.0-alpha-20241103180104-02d300b711e62e3067174b50b58060a490dc9e42",
61
61
  "@types/dedent": "0.7.2",
62
62
  "@types/react": "18.3.12",
63
63
  "@types/react-dom": "18.3.1",