@theguild/components 8.1.2 → 8.1.3-alpha-20241218064249-e56d838f33e9e66be0ce4c87af660634fe865152
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/dist/server/index.d.mts
CHANGED
|
@@ -2,7 +2,8 @@ export { useMDXComponents } from './mdx-components.mjs';
|
|
|
2
2
|
export { MDXRemote } from 'nextra/mdx-remote';
|
|
3
3
|
export { fetchFilePathsFromGitHub } from 'nextra/fetch-filepaths-from-github';
|
|
4
4
|
export { compileMdx } from 'nextra/compile';
|
|
5
|
-
export { createIndexPage, getPageMap } from 'nextra/page-map';
|
|
5
|
+
export { convertToPageMap, createIndexPage, getPageMap, mergeMetaWithPageMap, normalizePageMap } from 'nextra/page-map';
|
|
6
|
+
export { evaluate } from 'nextra/evaluate';
|
|
6
7
|
export { fetchPackageInfo } from './npm.mjs';
|
|
7
8
|
export { sharedMetaItems } from './shared-meta-items.mjs';
|
|
8
9
|
export { GuildLayout, getDefaultMetadata } from './theme-layout.mjs';
|
package/dist/server/index.js
CHANGED
|
@@ -2,7 +2,14 @@ import { useMDXComponents } from "./mdx-components.js";
|
|
|
2
2
|
import { MDXRemote } from "nextra/mdx-remote";
|
|
3
3
|
import { fetchFilePathsFromGitHub } from "nextra/fetch-filepaths-from-github";
|
|
4
4
|
import { compileMdx } from "nextra/compile";
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
getPageMap,
|
|
7
|
+
createIndexPage,
|
|
8
|
+
convertToPageMap,
|
|
9
|
+
mergeMetaWithPageMap,
|
|
10
|
+
normalizePageMap
|
|
11
|
+
} from "nextra/page-map";
|
|
12
|
+
import { evaluate } from "nextra/evaluate";
|
|
6
13
|
import { fetchPackageInfo } from "./npm.js";
|
|
7
14
|
import { sharedMetaItems } from "./shared-meta-items";
|
|
8
15
|
import { GuildLayout, getDefaultMetadata } from "./theme-layout.js";
|
|
@@ -10,11 +17,15 @@ export {
|
|
|
10
17
|
GuildLayout,
|
|
11
18
|
MDXRemote,
|
|
12
19
|
compileMdx,
|
|
20
|
+
convertToPageMap,
|
|
13
21
|
createIndexPage,
|
|
22
|
+
evaluate,
|
|
14
23
|
fetchFilePathsFromGitHub,
|
|
15
24
|
fetchPackageInfo,
|
|
16
25
|
getDefaultMetadata,
|
|
17
26
|
getPageMap,
|
|
27
|
+
mergeMetaWithPageMap,
|
|
28
|
+
normalizePageMap,
|
|
18
29
|
sharedMetaItems,
|
|
19
30
|
useMDXComponents
|
|
20
31
|
};
|
|
@@ -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