@theguild/components 8.1.3-alpha-20241218062053-eefc0d11163b58f5fb8348da942972a6e5ccdb6b → 8.1.3-alpha-20241218093634-b1f7b0e0135495aab7fa0bc97890c2d1744d73db

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.
@@ -49,9 +49,6 @@ const rehypeCheckFrontMatter = () => (ast, file) => {
49
49
  const defaultNextraOptions = {
50
50
  defaultShowCopyCode: true,
51
51
  whiteListTagsStyling: ["iframe", "video", "source"],
52
- search: {
53
- codeblocks: true
54
- },
55
52
  mdxOptions: {
56
53
  // Check front matter only in production (when Webpack is used)
57
54
  // Should be rehype since frontMatter is attached in remark plugins
@@ -1,5 +1,6 @@
1
1
  import { FC, ReactNode, ComponentProps } from 'react';
2
2
  import { Metadata } from 'next';
3
+ import { PageMapItem } from 'nextra';
3
4
  import { Navbar, Layout } from 'nextra-theme-docs';
4
5
  import { Head } from 'nextra/components';
5
6
  import { HiveNavigation } from '../components/hive-navigation/index.mjs';
@@ -35,6 +36,7 @@ declare const GuildLayout: FC<{
35
36
  * Nextra's Docs Theme `<Navbar>` component props
36
37
  */
37
38
  navbarProps: NavbarProps;
39
+ pageMap?: PageMapItem[];
38
40
  }>;
39
41
  declare function getDefaultMetadata({ websiteName, description, productName, ...additionalMetadata }: {
40
42
  description?: string;
@@ -40,9 +40,10 @@ const GuildLayout = async ({
40
40
  headProps,
41
41
  logo,
42
42
  layoutProps,
43
- navbarProps
43
+ navbarProps,
44
+ ...props
44
45
  }) => {
45
- const [meta, ...pageMap] = await getPageMap();
46
+ const [meta, ...pageMap] = props.pageMap || await getPageMap();
46
47
  const pageMapWithCompanyMenu = [
47
48
  {
48
49
  data: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theguild/components",
3
- "version": "8.1.3-alpha-20241218062053-eefc0d11163b58f5fb8348da942972a6e5ccdb6b",
3
+ "version": "8.1.3-alpha-20241218093634-b1f7b0e0135495aab7fa0bc97890c2d1744d73db",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"