@theguild/components 8.2.0 → 8.2.1-alpha-20250106114612-d54bd2260536e5ca33c2efbea0be43efafccd2a9
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/components/comparison-table/index.d.mts +12 -0
- package/dist/components/comparison-table/index.js +43 -0
- package/dist/components/decorations/highlight-decoration.js +1 -1
- package/dist/components/explore-main-product-cards.js +1 -1
- package/dist/components/faq/attach-page-faq-schema.d.mts +7 -0
- package/dist/components/faq/attach-page-faq-schema.js +22 -0
- package/dist/components/faq/index.d.mts +9 -0
- package/dist/components/faq/index.js +90 -0
- package/dist/components/giscus.d.mts +3 -1
- package/dist/components/giscus.js +3 -6
- package/dist/components/hive-navigation/index.d.mts +3 -2
- package/dist/components/hive-navigation/index.js +2 -8
- package/dist/components/icons/yoga.js +3 -3
- package/dist/components/index.d.mts +3 -0
- package/dist/components/index.js +4 -0
- package/dist/components/legacy-package-cmd.js +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/server/body.d.mts +8 -0
- package/dist/server/body.js +11 -0
- package/dist/server/index.d.mts +1 -0
- package/dist/server/index.js +2 -0
- package/dist/server/mdx-components.d.mts +13 -12
- package/dist/server/theme-layout.d.mts +4 -1
- package/dist/server/theme-layout.js +33 -2
- package/package.json +6 -4
- package/style.css +17 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const ComparisonTable: FC<react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>> & {
|
|
5
|
+
Row: FC<react.ClassAttributes<HTMLTableRowElement> & react.HTMLAttributes<HTMLTableRowElement> & {
|
|
6
|
+
highlight?: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
Header: FC<react.DetailedHTMLProps<react.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>>;
|
|
9
|
+
Cell: FC<react.DetailedHTMLProps<react.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { ComparisonTable };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "@theguild/components";
|
|
3
|
+
const Table = ({ className, ...props }) => {
|
|
4
|
+
return /* @__PURE__ */ jsx(
|
|
5
|
+
"table",
|
|
6
|
+
{
|
|
7
|
+
className: cn(
|
|
8
|
+
"x:block x:overflow-x-auto nextra-scrollbar overflow-x-auto rounded-2xl border border-green-200",
|
|
9
|
+
className
|
|
10
|
+
),
|
|
11
|
+
...props
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
};
|
|
15
|
+
const TableRow = ({
|
|
16
|
+
highlight,
|
|
17
|
+
className,
|
|
18
|
+
...props
|
|
19
|
+
}) => {
|
|
20
|
+
return /* @__PURE__ */ jsx("tr", { className: cn(highlight && "bg-green-100", className), ...props });
|
|
21
|
+
};
|
|
22
|
+
const cellStyle = cn(
|
|
23
|
+
"border border-green-200 p-4 first:border-l-0 last:border-r-0",
|
|
24
|
+
"[tbody_&]:border-b-0 [thead_&]:border-t-0",
|
|
25
|
+
"first:sticky",
|
|
26
|
+
"first:left-0",
|
|
27
|
+
"max-sm:first:drop-shadow-2xl",
|
|
28
|
+
"first:bg-[rgb(var(--nextra-bg))]"
|
|
29
|
+
);
|
|
30
|
+
const TableHeader = ({ className, ...props }) => {
|
|
31
|
+
return /* @__PURE__ */ jsx("th", { className: cn(cellStyle, "font-medium", className), ...props });
|
|
32
|
+
};
|
|
33
|
+
const TableCell = ({ className, ...props }) => {
|
|
34
|
+
return /* @__PURE__ */ jsx("td", { className: cn(cellStyle, className), ...props });
|
|
35
|
+
};
|
|
36
|
+
const ComparisonTable = Object.assign(Table, {
|
|
37
|
+
Row: TableRow,
|
|
38
|
+
Header: TableHeader,
|
|
39
|
+
Cell: TableCell
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
ComparisonTable
|
|
43
|
+
};
|
|
@@ -6,7 +6,7 @@ const SvgHighlightDecoration = (props) => /* @__PURE__ */ jsxs("svg", { width: 8
|
|
|
6
6
|
/* @__PURE__ */ jsx("feBlend", { mode: "normal", in: "SourceGraphic", in2: "BackgroundImageFix", result: "shape" }),
|
|
7
7
|
/* @__PURE__ */ jsx("feGaussianBlur", { stdDeviation: 175, result: "effect1_foregroundBlur_711_1774" })
|
|
8
8
|
] }) }),
|
|
9
|
-
/* @__PURE__ */ jsx("style", { children: "
|
|
9
|
+
/* @__PURE__ */ jsx("style", { children: "@supports (-moz-appearance: none) {\n .firefox-highlight-fix {\n opacity: 0.3;\n filter: blur(175px);\n }\n }" })
|
|
10
10
|
] });
|
|
11
11
|
export {
|
|
12
12
|
SvgHighlightDecoration as ReactComponent
|
|
@@ -25,7 +25,7 @@ function ExploreMainProductCards({
|
|
|
25
25
|
TextLink,
|
|
26
26
|
{
|
|
27
27
|
href: isHive ? "/ecosystem" : "https://the-guild.dev/graphql/hive/ecosystem",
|
|
28
|
-
className: "mt-4 lg:mt-6",
|
|
28
|
+
className: "mt-4 text-green-800 lg:mt-6",
|
|
29
29
|
children: [
|
|
30
30
|
"Learn more",
|
|
31
31
|
/* @__PURE__ */ jsx(ArrowIcon, {})
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
import { usePathname } from "next/navigation";
|
|
4
|
+
const AttachPageFAQSchema = ({ faqPages }) => {
|
|
5
|
+
const pathname = usePathname();
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
const html = document.querySelector("html");
|
|
8
|
+
const path = pathname.replace("/graphql/hive", "/");
|
|
9
|
+
if (faqPages.includes(path) && !html.hasAttribute("itemscope")) {
|
|
10
|
+
html.setAttribute("itemscope", "");
|
|
11
|
+
html.setAttribute("itemtype", "https://schema.org/FAQPage");
|
|
12
|
+
return () => {
|
|
13
|
+
html.removeAttribute("itemscope");
|
|
14
|
+
html.removeAttribute("itemtype");
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}, [pathname]);
|
|
18
|
+
return null;
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
AttachPageFAQSchema
|
|
22
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, ComponentProps, ReactElement } from 'react';
|
|
2
|
+
import { AttachPageFAQSchema } from './attach-page-faq-schema.mjs';
|
|
3
|
+
|
|
4
|
+
declare const FrequentlyAskedQuestions: FC<ComponentProps<typeof AttachPageFAQSchema> & {
|
|
5
|
+
className?: string;
|
|
6
|
+
children: ReactElement;
|
|
7
|
+
}>;
|
|
8
|
+
|
|
9
|
+
export { FrequentlyAskedQuestions };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import {
|
|
3
|
+
Children,
|
|
4
|
+
cloneElement
|
|
5
|
+
} from "react";
|
|
6
|
+
import * as RadixAccordion from "@radix-ui/react-accordion";
|
|
7
|
+
import { ChevronDownIcon } from "@radix-ui/react-icons";
|
|
8
|
+
import { cn } from "../../cn";
|
|
9
|
+
import { Anchor } from "../anchor";
|
|
10
|
+
import { Heading } from "../heading";
|
|
11
|
+
import { AttachPageFAQSchema } from "./attach-page-faq-schema";
|
|
12
|
+
const UnwrapChild = (props) => props.children;
|
|
13
|
+
const a = (props) => /* @__PURE__ */ jsx(
|
|
14
|
+
Anchor,
|
|
15
|
+
{
|
|
16
|
+
className: "hive-focus rounded underline hover:text-blue-700",
|
|
17
|
+
...props,
|
|
18
|
+
href: props.href,
|
|
19
|
+
children: props.children
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
const h2 = (props) => /* @__PURE__ */ jsx(Heading, { as: "h2", size: "md", className: "basis-1/2", ...props });
|
|
23
|
+
const FrequentlyAskedQuestions = ({ className, faqPages, children }) => {
|
|
24
|
+
return /* @__PURE__ */ jsxs(
|
|
25
|
+
"section",
|
|
26
|
+
{
|
|
27
|
+
className: cn(
|
|
28
|
+
className,
|
|
29
|
+
"flex flex-col gap-x-6 gap-y-2 px-4 py-6 text-green-1000 md:flex-row md:px-10 lg:gap-x-24 lg:px-[120px] lg:py-24"
|
|
30
|
+
),
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsx(AttachPageFAQSchema, { faqPages }),
|
|
33
|
+
cloneElement(children, {
|
|
34
|
+
components: {
|
|
35
|
+
a,
|
|
36
|
+
h2,
|
|
37
|
+
p: UnwrapChild,
|
|
38
|
+
ul: Accordion,
|
|
39
|
+
li: AccordionItem
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
const Accordion = (props) => /* @__PURE__ */ jsx(RadixAccordion.Root, { asChild: true, type: "single", collapsible: true, children: /* @__PURE__ */ jsx("ul", { className: "basis-1/2 divide-y divide-beige-400 max-xl:grow", ...props }) });
|
|
47
|
+
const AccordionItem = (props) => {
|
|
48
|
+
const texts = Children.toArray(props.children).filter((child) => child !== "\n");
|
|
49
|
+
if (texts.length === 0) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
if (texts.length < 2) {
|
|
53
|
+
console.error(texts);
|
|
54
|
+
throw new Error(`Expected a question and an answer, got ${texts.length} items`);
|
|
55
|
+
}
|
|
56
|
+
const [first, ...answers] = texts;
|
|
57
|
+
const question = typeof first === "string" ? first : typeof first === "object" && "type" in first ? first.props.children : null;
|
|
58
|
+
if (!question) return null;
|
|
59
|
+
return /* @__PURE__ */ jsx(
|
|
60
|
+
RadixAccordion.Item,
|
|
61
|
+
{
|
|
62
|
+
asChild: true,
|
|
63
|
+
value: question,
|
|
64
|
+
className: "relative pb-0 focus-within:z-10 data-[state=open]:pb-4",
|
|
65
|
+
itemScope: true,
|
|
66
|
+
itemProp: "mainEntity",
|
|
67
|
+
itemType: "https://schema.org/Question",
|
|
68
|
+
children: /* @__PURE__ */ jsxs("li", { children: [
|
|
69
|
+
/* @__PURE__ */ jsx(RadixAccordion.Header, { children: /* @__PURE__ */ jsxs(RadixAccordion.Trigger, { className: "hive-focus duration-[.8s] -mx-2 my-1 flex w-[calc(100%+1rem)] items-center justify-between rounded-xl bg-white px-2 py-3 text-left font-medium transition-colors hover:bg-beige-100/80 md:my-2 md:py-4", children: [
|
|
70
|
+
/* @__PURE__ */ jsx("span", { itemProp: "name", children: question }),
|
|
71
|
+
/* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-5 [[data-state='open']_&]:[transform:rotateX(180deg)]" })
|
|
72
|
+
] }) }),
|
|
73
|
+
/* @__PURE__ */ jsx(
|
|
74
|
+
RadixAccordion.Content,
|
|
75
|
+
{
|
|
76
|
+
forceMount: true,
|
|
77
|
+
className: "overflow-hidden bg-white text-green-800 data-[state=closed]:hidden",
|
|
78
|
+
itemScope: true,
|
|
79
|
+
itemProp: "acceptedAnswer",
|
|
80
|
+
itemType: "https://schema.org/Answer",
|
|
81
|
+
children: /* @__PURE__ */ jsx("div", { itemProp: "text", className: "space-y-2", children: answers.map((answer, i) => /* @__PURE__ */ jsx("p", { children: answer }, i)) })
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
] })
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
export {
|
|
89
|
+
FrequentlyAskedQuestions
|
|
90
|
+
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useTheme } from "nextra-theme-docs";
|
|
4
|
-
import { default as
|
|
4
|
+
import { default as Giscus_ } from "@giscus/react";
|
|
5
5
|
const Giscus = (props) => {
|
|
6
6
|
const { resolvedTheme } = useTheme();
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */ jsx("br", {}),
|
|
9
|
-
/* @__PURE__ */ jsx(_Giscus, { theme: resolvedTheme, ...props })
|
|
10
|
-
] });
|
|
7
|
+
return /* @__PURE__ */ jsx(Giscus_, { theme: resolvedTheme, mapping: "pathname", ...props });
|
|
11
8
|
};
|
|
12
9
|
export {
|
|
13
10
|
Giscus
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import react__default, { ReactNode, ComponentProps } from 'react';
|
|
2
|
+
import react__default, { ReactNode, ReactElement, ComponentProps } from 'react';
|
|
3
3
|
import { Search } from 'nextra/components';
|
|
4
4
|
export { GraphQLConfCard, GraphQLConfCardProps } from './graphql-conf-card.mjs';
|
|
5
5
|
import 'next/image';
|
|
@@ -18,6 +18,7 @@ type HiveNavigationProps = {
|
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
}[];
|
|
20
20
|
developerMenu: DeveloperMenuProps['developerMenu'];
|
|
21
|
+
search?: ReactElement;
|
|
21
22
|
searchProps?: ComponentProps<typeof Search>;
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
@@ -32,7 +33,7 @@ type HiveNavigationProps = {
|
|
|
32
33
|
* </HiveNavigation>
|
|
33
34
|
* ```
|
|
34
35
|
*/
|
|
35
|
-
declare function HiveNavigation({ companyMenuChildren, children, className, productName, logo, navLinks, developerMenu,
|
|
36
|
+
declare function HiveNavigation({ companyMenuChildren, children, className, productName, logo, navLinks, developerMenu, search, }: HiveNavigationProps): react_jsx_runtime.JSX.Element;
|
|
36
37
|
interface ProductsMenuProps extends MenuContentColumnsProps {
|
|
37
38
|
productName: string;
|
|
38
39
|
}
|
|
@@ -51,7 +51,7 @@ function HiveNavigation({
|
|
|
51
51
|
}
|
|
52
52
|
],
|
|
53
53
|
developerMenu,
|
|
54
|
-
|
|
54
|
+
search = /* @__PURE__ */ jsx(Search, {})
|
|
55
55
|
}) {
|
|
56
56
|
const containerRef = useRef(null);
|
|
57
57
|
return /* @__PURE__ */ jsxs(
|
|
@@ -100,13 +100,7 @@ function HiveNavigation({
|
|
|
100
100
|
] }),
|
|
101
101
|
/* @__PURE__ */ jsx("div", { className: "flex-1" }),
|
|
102
102
|
children,
|
|
103
|
-
|
|
104
|
-
Search,
|
|
105
|
-
{
|
|
106
|
-
className: "relative ml-4 basis-64 [&_:is(input,kbd)]:text-green-700 dark:[&_:is(input,kbd)]:text-neutral-300 [&_input]:h-12 [&_input]:w-full [&_input]:rounded-lg [&_input]:border [&_input]:border-green-200 [&_input]:bg-white [&_input]:pl-4 [&_input]:pr-8 [&_input]:ring-[hsl(var(--nextra-primary-hue)_var(--nextra-primary-saturation)_32%/var(--tw-ring-opacity))] [&_input]:ring-offset-[rgb(var(--nextra-bg))] dark:[&_input]:border-neutral-800 [&_input]:dark:bg-inherit [&_kbd]:absolute [&_kbd]:right-4 [&_kbd]:top-1/2 [&_kbd]:my-0 [&_kbd]:-translate-y-1/2 [&_kbd]:border-none [&_kbd]:bg-green-200 dark:[&_kbd]:bg-neutral-700",
|
|
107
|
-
...searchProps
|
|
108
|
-
}
|
|
109
|
-
),
|
|
103
|
+
search,
|
|
110
104
|
/* @__PURE__ */ jsxs(
|
|
111
105
|
CallToAction,
|
|
112
106
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const SvgYoga = (props) => /* @__PURE__ */ jsxs("svg", { width: 53, height: 54, viewBox: "0 0 53 54", fill: "
|
|
3
|
-
/* @__PURE__ */ jsx("path", { d: "M35.213 10.37h-8.231l4.943-4.943L26.5 0l-5.427 5.427 4.943 4.943h-8.231a4 4 0 0 0-2.827 1.172L.5 26l5.427 5.427 17.747-17.746a3.997 3.997 0 0 1 5.652 0l17.747 17.746L52.5 26 38.04 11.54a4 4 0 0 0-2.827-1.172v.002ZM26.5 42.197l-5.426 5.426L26.5 53.05l5.426-5.426-5.426-5.427Z"
|
|
4
|
-
/* @__PURE__ */ jsx("path", { d: "M26.5 31.427h-8.713A4 4 0 0 0 14.96 32.6L10.79 36.77l5.427 5.427 7.46-7.46a3.997 3.997 0 0 1 5.653 0l7.46 7.46 5.427-5.427-4.172-4.171a4 4 0 0 0-2.827-1.172H26.5Z"
|
|
2
|
+
const SvgYoga = (props) => /* @__PURE__ */ jsxs("svg", { width: 53, height: 54, viewBox: "0 0 53 54", fill: "currentColor", ...props, children: [
|
|
3
|
+
/* @__PURE__ */ jsx("path", { d: "M35.213 10.37h-8.231l4.943-4.943L26.5 0l-5.427 5.427 4.943 4.943h-8.231a4 4 0 0 0-2.827 1.172L.5 26l5.427 5.427 17.747-17.746a3.997 3.997 0 0 1 5.652 0l17.747 17.746L52.5 26 38.04 11.54a4 4 0 0 0-2.827-1.172v.002ZM26.5 42.197l-5.426 5.426L26.5 53.05l5.426-5.426-5.426-5.427Z" }),
|
|
4
|
+
/* @__PURE__ */ jsx("path", { d: "M26.5 31.427h-8.713A4 4 0 0 0 14.96 32.6L10.79 36.77l5.427 5.427 7.46-7.46a3.997 3.997 0 0 1 5.653 0l7.46 7.46 5.427-5.427-4.172-4.171a4 4 0 0 0-2.827-1.172H26.5Z" })
|
|
5
5
|
] });
|
|
6
6
|
export {
|
|
7
7
|
SvgYoga as ReactComponent
|
|
@@ -31,6 +31,8 @@ export { ContactButton, ContactButtonProps, ContactTextLink, ContactTextLinkProp
|
|
|
31
31
|
export { Giscus } from './giscus.mjs';
|
|
32
32
|
export { VersionDropdown, VersionDropdownProps } from './version-dropdown.mjs';
|
|
33
33
|
export { Dropdown, DropdownContent, DropdownItem, DropdownTrigger } from './dropdown.mjs';
|
|
34
|
+
export { FrequentlyAskedQuestions } from './faq/index.mjs';
|
|
35
|
+
export { ComparisonTable } from './comparison-table/index.mjs';
|
|
34
36
|
export { GraphQLConfCard, GraphQLConfCardProps } from './hive-navigation/graphql-conf-card.mjs';
|
|
35
37
|
import 'react';
|
|
36
38
|
import 'url';
|
|
@@ -42,3 +44,4 @@ import 'react/jsx-runtime';
|
|
|
42
44
|
import 'nextra/components';
|
|
43
45
|
import '../products.mjs';
|
|
44
46
|
import '@giscus/react';
|
|
47
|
+
import './faq/attach-page-faq-schema.mjs';
|
package/dist/components/index.js
CHANGED
|
@@ -30,11 +30,15 @@ export * from "./contact-us";
|
|
|
30
30
|
import { Giscus } from "./giscus";
|
|
31
31
|
export * from "./version-dropdown";
|
|
32
32
|
export * from "./dropdown";
|
|
33
|
+
import { FrequentlyAskedQuestions } from "./faq/index.js";
|
|
34
|
+
import { ComparisonTable } from "./comparison-table/index.js";
|
|
33
35
|
export {
|
|
34
36
|
Anchor,
|
|
35
37
|
Button,
|
|
36
38
|
CardsColorful,
|
|
39
|
+
ComparisonTable,
|
|
37
40
|
FeatureList,
|
|
41
|
+
FrequentlyAskedQuestions,
|
|
38
42
|
GetYourAPIGameRightSection,
|
|
39
43
|
Giscus,
|
|
40
44
|
GraphQLConfCard,
|
|
@@ -47,7 +47,7 @@ const LegacyPackageCmd = ({
|
|
|
47
47
|
),
|
|
48
48
|
[packages]
|
|
49
49
|
);
|
|
50
|
-
return /* @__PURE__ */ jsx(Tabs, { items: PACKAGE_MANAGERS, children: PACKAGE_MANAGERS.map((pkgManager, index) => /* @__PURE__ */ jsx(Tabs.Tab, { children: /* @__PURE__ */ jsx(Pre, { "data-filename": "Terminal", "data-copy": "", "data-language": "sh", "data-theme": "default", children: /* @__PURE__ */ jsx("code", { children: /* @__PURE__ */ jsx("span", { className: "line", children: commands[index] }) }) }) }, pkgManager)) });
|
|
50
|
+
return /* @__PURE__ */ jsx(Tabs, { items: PACKAGE_MANAGERS, children: PACKAGE_MANAGERS.map((pkgManager, index) => /* @__PURE__ */ jsx(Tabs.Tab, { children: /* @__PURE__ */ jsx(Pre, { "data-filename": "Terminal", "data-copy": "", "data-language": "sh", "data-theme": "default", children: /* @__PURE__ */ jsx("code", { children: /* @__PURE__ */ jsx("span", { className: "line mx-4", children: commands[index] }) }) }) }, pkgManager)) });
|
|
51
51
|
};
|
|
52
52
|
export {
|
|
53
53
|
LegacyPackageCmd
|
package/dist/index.d.mts
CHANGED
|
@@ -34,6 +34,8 @@ export { ContactButton, ContactButtonProps, ContactTextLink, ContactTextLinkProp
|
|
|
34
34
|
export { Giscus } from './components/giscus.mjs';
|
|
35
35
|
export { VersionDropdown, VersionDropdownProps } from './components/version-dropdown.mjs';
|
|
36
36
|
export { Dropdown, DropdownContent, DropdownItem, DropdownTrigger } from './components/dropdown.mjs';
|
|
37
|
+
export { FrequentlyAskedQuestions } from './components/faq/index.mjs';
|
|
38
|
+
export { ComparisonTable } from './components/comparison-table/index.mjs';
|
|
37
39
|
export { PRODUCTS } from './products.mjs';
|
|
38
40
|
export { IEditorProps, IFeatureListProps, IHeroGradientProps, IHeroIllustrationProps, IHeroMarketplaceProps, IHeroVideoProps, IInfoListProps, ILink, IMarketplaceItemProps, IMarketplaceItemsProps, IMarketplaceListProps, IMarketplaceSearchProps, ISchemaPageProps } from './types/components.mjs';
|
|
39
41
|
export { AngularLettermark, ConductorLettermark, ConfigLettermark, EnvelopLettermark, FetsLettermark, GraphQLESlintLettermark, HeltinLettermark, InspectorLettermark, KitQLLettermark, ModulesLettermark, SSELettermark, ScalarsLettermark, SofaLettermark, StitchingLettermark, ToolsLettermark, WSLettermark, WhatsAppLettermark } from './logos/index.mjs';
|
|
@@ -46,6 +48,7 @@ import 'url';
|
|
|
46
48
|
import 'next/image';
|
|
47
49
|
import 'react/jsx-runtime';
|
|
48
50
|
import '@giscus/react';
|
|
51
|
+
import './components/faq/attach-page-faq-schema.mjs';
|
|
49
52
|
import 'next/link';
|
|
50
53
|
import 'react-player';
|
|
51
54
|
import 'clsx';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { usePathname } from "next/navigation";
|
|
4
|
+
const Body = ({ lightOnlyPages, children }) => {
|
|
5
|
+
const pathname = usePathname();
|
|
6
|
+
const isLightOnlyPage = lightOnlyPages.includes(pathname);
|
|
7
|
+
return /* @__PURE__ */ jsx("body", { className: isLightOnlyPage ? "light text-green-1000" : void 0, children });
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
Body
|
|
11
|
+
};
|
package/dist/server/index.d.mts
CHANGED
|
@@ -6,6 +6,7 @@ export { convertToPageMap, createIndexPage, getPageMap, mergeMetaWithPageMap, no
|
|
|
6
6
|
export { evaluate } from 'nextra/evaluate';
|
|
7
7
|
export { fetchPackageInfo } from './npm.mjs';
|
|
8
8
|
export { sharedMetaItems } from './shared-meta-items.mjs';
|
|
9
|
+
export { Body } from './body.mjs';
|
|
9
10
|
export { GuildLayout, getDefaultMetadata } from './theme-layout.mjs';
|
|
10
11
|
import 'next/image';
|
|
11
12
|
import 'nextra';
|
package/dist/server/index.js
CHANGED
|
@@ -12,8 +12,10 @@ import {
|
|
|
12
12
|
import { evaluate } from "nextra/evaluate";
|
|
13
13
|
import { fetchPackageInfo } from "./npm.js";
|
|
14
14
|
import { sharedMetaItems } from "./shared-meta-items";
|
|
15
|
+
import { Body } from "./body";
|
|
15
16
|
import { GuildLayout, getDefaultMetadata } from "./theme-layout.js";
|
|
16
17
|
export {
|
|
18
|
+
Body,
|
|
17
19
|
GuildLayout,
|
|
18
20
|
MDXRemote,
|
|
19
21
|
compileMdx,
|
|
@@ -9,25 +9,27 @@ declare const useMDXComponents: (components?: object) => {
|
|
|
9
9
|
object?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.ObjectHTMLAttributes<HTMLObjectElement>, HTMLObjectElement>, "ref">> | undefined;
|
|
10
10
|
map?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.MapHTMLAttributes<HTMLMapElement>, HTMLMapElement>, "ref">> | undefined;
|
|
11
11
|
filter?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGFilterElement>, "ref">> | undefined;
|
|
12
|
-
code: keyof react.JSX.IntrinsicElements | react.FC<react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement> & {
|
|
13
|
-
"data-language"?: string;
|
|
14
|
-
}> | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">>;
|
|
15
|
-
path?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGPathElement>, "ref">> | undefined;
|
|
16
12
|
footer?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
17
|
-
|
|
18
|
-
search?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
13
|
+
article?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
19
14
|
title?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>, "ref">> | undefined;
|
|
15
|
+
menu?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.MenuHTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
16
|
+
search?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
20
17
|
big?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
21
18
|
link?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>, "ref">> | undefined;
|
|
22
19
|
small?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
23
20
|
sub?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
24
21
|
sup?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
25
|
-
|
|
22
|
+
code: keyof react.JSX.IntrinsicElements | react.FC<react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement> & {
|
|
23
|
+
"data-language"?: string;
|
|
24
|
+
}> | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">>;
|
|
25
|
+
path?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGPathElement>, "ref">> | undefined;
|
|
26
|
+
set?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGSetElement>, "ref">> | undefined;
|
|
27
|
+
time?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.TimeHTMLAttributes<HTMLTimeElement>, HTMLTimeElement>, "ref">> | undefined;
|
|
28
|
+
span?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">> | undefined;
|
|
26
29
|
a: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">>;
|
|
27
30
|
abbr?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
28
31
|
address?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
29
32
|
area?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.AreaHTMLAttributes<HTMLAreaElement>, HTMLAreaElement>, "ref">> | undefined;
|
|
30
|
-
article?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
31
33
|
aside?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
32
34
|
audio?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "ref">> | undefined;
|
|
33
35
|
b?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
@@ -44,6 +46,7 @@ declare const useMDXComponents: (components?: object) => {
|
|
|
44
46
|
cite?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
45
47
|
col?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>, "ref">> | undefined;
|
|
46
48
|
colgroup?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.ColgroupHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>, "ref">> | undefined;
|
|
49
|
+
data?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.DataHTMLAttributes<HTMLDataElement>, HTMLDataElement>, "ref">> | undefined;
|
|
47
50
|
datalist?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDataListElement>, HTMLDataListElement>, "ref">> | undefined;
|
|
48
51
|
dd?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
49
52
|
del?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.DelHTMLAttributes<HTMLModElement>, HTMLModElement>, "ref">> | undefined;
|
|
@@ -81,7 +84,6 @@ declare const useMDXComponents: (components?: object) => {
|
|
|
81
84
|
li: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref">> | ((props: Omit<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref">) => react_jsx_runtime.JSX.Element);
|
|
82
85
|
main?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
83
86
|
mark?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
84
|
-
menu?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.MenuHTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
85
87
|
menuitem?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
86
88
|
meta?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.MetaHTMLAttributes<HTMLMetaElement>, HTMLMetaElement>, "ref">> | undefined;
|
|
87
89
|
meter?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.MeterHTMLAttributes<HTMLMeterElement>, HTMLMeterElement>, "ref">> | undefined;
|
|
@@ -108,7 +110,6 @@ declare const useMDXComponents: (components?: object) => {
|
|
|
108
110
|
section?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
109
111
|
select?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref">> | undefined;
|
|
110
112
|
source?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.SourceHTMLAttributes<HTMLSourceElement>, HTMLSourceElement>, "ref">> | undefined;
|
|
111
|
-
span?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">> | undefined;
|
|
112
113
|
strong?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
113
114
|
style?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>, "ref">> | undefined;
|
|
114
115
|
summary: keyof react.JSX.IntrinsicElements | react.FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>> | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">>;
|
|
@@ -120,7 +121,6 @@ declare const useMDXComponents: (components?: object) => {
|
|
|
120
121
|
tfoot?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref">> | undefined;
|
|
121
122
|
th: keyof react.JSX.IntrinsicElements | react.FC<react.DetailedHTMLProps<react.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>> | react.FC<Omit<react.DetailedHTMLProps<react.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref">>;
|
|
122
123
|
thead?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref">> | undefined;
|
|
123
|
-
time?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.TimeHTMLAttributes<HTMLTimeElement>, HTMLTimeElement>, "ref">> | undefined;
|
|
124
124
|
tr: keyof react.JSX.IntrinsicElements | react.FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>> | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref">>;
|
|
125
125
|
track?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.TrackHTMLAttributes<HTMLTrackElement>, HTMLTrackElement>, "ref">> | undefined;
|
|
126
126
|
u?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">> | undefined;
|
|
@@ -184,10 +184,11 @@ declare const useMDXComponents: (components?: object) => {
|
|
|
184
184
|
tspan?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGTSpanElement>, "ref">> | undefined;
|
|
185
185
|
use?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGUseElement>, "ref">> | undefined;
|
|
186
186
|
view?: keyof react.JSX.IntrinsicElements | react.FC<Omit<react.SVGProps<SVGViewElement>, "ref">> | undefined;
|
|
187
|
-
wrapper: nextra.MDXWrapper | (({ toc, children, metadata, ...props }: {
|
|
187
|
+
wrapper: nextra.MDXWrapper | (({ toc, children, metadata, bottomContent, ...props }: {
|
|
188
188
|
toc: nextra.Heading[];
|
|
189
189
|
children: react.ReactNode;
|
|
190
190
|
metadata: nextra.NextraMetadata;
|
|
191
|
+
bottomContent?: react.ReactNode;
|
|
191
192
|
}) => react_jsx_runtime.JSX.Element);
|
|
192
193
|
img: react.FC<next_image.ImageProps>;
|
|
193
194
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FC, ReactNode, ComponentProps } from 'react';
|
|
1
|
+
import { FC, ReactNode, ComponentProps, ReactElement } from 'react';
|
|
2
2
|
import { Metadata } from 'next';
|
|
3
3
|
import { PageMapItem } from 'nextra';
|
|
4
4
|
import { Navbar, Layout } from 'nextra-theme-docs';
|
|
5
5
|
import { Head } from 'nextra/components';
|
|
6
6
|
import { HiveNavigation } from '../components/hive-navigation/index.mjs';
|
|
7
|
+
import { Body } from './body.mjs';
|
|
7
8
|
import 'react/jsx-runtime';
|
|
8
9
|
import '../components/hive-navigation/graphql-conf-card.mjs';
|
|
9
10
|
import 'next/image';
|
|
@@ -37,6 +38,8 @@ declare const GuildLayout: FC<{
|
|
|
37
38
|
*/
|
|
38
39
|
navbarProps: NavbarProps;
|
|
39
40
|
pageMap?: PageMapItem[];
|
|
41
|
+
search?: ReactElement;
|
|
42
|
+
lightOnlyPages: ComponentProps<typeof Body>['lightOnlyPages'];
|
|
40
43
|
}>;
|
|
41
44
|
declare function getDefaultMetadata({ websiteName, description, productName, ...additionalMetadata }: {
|
|
42
45
|
description?: string;
|
|
@@ -7,6 +7,7 @@ import { HiveFooter } from "../components/hive-footer";
|
|
|
7
7
|
import { HiveNavigation } from "../components/hive-navigation";
|
|
8
8
|
import { siteOrigin, siteUrl } from "../constants";
|
|
9
9
|
import { PRODUCTS } from "../products";
|
|
10
|
+
import { Body } from "./body";
|
|
10
11
|
const companyItem = {
|
|
11
12
|
type: "menu",
|
|
12
13
|
title: "Company",
|
|
@@ -41,6 +42,8 @@ const GuildLayout = async ({
|
|
|
41
42
|
logo,
|
|
42
43
|
layoutProps,
|
|
43
44
|
navbarProps,
|
|
45
|
+
search,
|
|
46
|
+
lightOnlyPages,
|
|
44
47
|
...props
|
|
45
48
|
}) => {
|
|
46
49
|
const [meta, ...pageMap] = props.pageMap || await getPageMap();
|
|
@@ -67,8 +70,34 @@ const GuildLayout = async ({
|
|
|
67
70
|
suppressHydrationWarning: true,
|
|
68
71
|
...htmlProps,
|
|
69
72
|
children: [
|
|
70
|
-
/* @__PURE__ */ jsx(
|
|
71
|
-
|
|
73
|
+
/* @__PURE__ */ jsx(
|
|
74
|
+
Head,
|
|
75
|
+
{
|
|
76
|
+
backgroundColor: { dark: "#111", light: "#fff" },
|
|
77
|
+
color: {
|
|
78
|
+
hue: { dark: 67, light: 171 },
|
|
79
|
+
saturation: { dark: 100, light: 42 },
|
|
80
|
+
lightness: { dark: 50, light: 24 }
|
|
81
|
+
},
|
|
82
|
+
...headProps,
|
|
83
|
+
children: /* @__PURE__ */ jsx("style", { children: `
|
|
84
|
+
::selection {
|
|
85
|
+
background: hsl(var(--nextra-primary-hue)var(--nextra-primary-saturation)var(--nextra-primary-lightness)/.7) !important;
|
|
86
|
+
}
|
|
87
|
+
.dark:has(body.light) {
|
|
88
|
+
--nextra-primary-hue: 191deg;
|
|
89
|
+
--nextra-primary-saturation: 40%;
|
|
90
|
+
--nextra-primary-lightness: 35%;
|
|
91
|
+
--nextra-bg: 255, 255, 255;
|
|
92
|
+
}
|
|
93
|
+
.x\\:tracking-tight,
|
|
94
|
+
.nextra-steps :is(h2, h3, h4) {
|
|
95
|
+
letter-spacing: normal;
|
|
96
|
+
}
|
|
97
|
+
` })
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
/* @__PURE__ */ jsx(Body, { lightOnlyPages, children: /* @__PURE__ */ jsx(
|
|
72
101
|
Layout,
|
|
73
102
|
{
|
|
74
103
|
footer: /* @__PURE__ */ jsx(
|
|
@@ -81,12 +110,14 @@ const GuildLayout = async ({
|
|
|
81
110
|
description
|
|
82
111
|
}
|
|
83
112
|
),
|
|
113
|
+
search,
|
|
84
114
|
navbar: /* @__PURE__ */ jsx(
|
|
85
115
|
HiveNavigation,
|
|
86
116
|
{
|
|
87
117
|
className: "max-w-[90rem]",
|
|
88
118
|
productName: websiteName,
|
|
89
119
|
navLinks: [],
|
|
120
|
+
search,
|
|
90
121
|
...navbarProps,
|
|
91
122
|
logo: /* @__PURE__ */ jsxs(
|
|
92
123
|
Anchor,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theguild/components",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.1-alpha-20250106114612-d54bd2260536e5ca33c2efbea0be43efafccd2a9",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/the-guild-org/docs",
|
|
6
6
|
"directory": "packages/components"
|
|
@@ -46,18 +46,20 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@giscus/react": "3.1.0",
|
|
48
48
|
"@next/bundle-analyzer": "15.1.3",
|
|
49
|
+
"@radix-ui/react-accordion": "^1.2.2",
|
|
50
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
49
51
|
"@radix-ui/react-navigation-menu": "^1.2.0",
|
|
50
52
|
"clsx": "2.1.1",
|
|
51
53
|
"fuzzy": "0.1.3",
|
|
52
|
-
"nextra": "4.0.0-app-router.
|
|
53
|
-
"nextra-theme-docs": "4.0.0-app-router.
|
|
54
|
+
"nextra": "4.0.0-app-router.43",
|
|
55
|
+
"nextra-theme-docs": "4.0.0-app-router.43",
|
|
54
56
|
"react-paginate": "8.2.0",
|
|
55
57
|
"react-player": "2.16.0",
|
|
56
58
|
"semver": "^7.3.8",
|
|
57
59
|
"tailwind-merge": "^2.5.2"
|
|
58
60
|
},
|
|
59
61
|
"devDependencies": {
|
|
60
|
-
"@svgr/
|
|
62
|
+
"@svgr/plugin-svgo": "^8.1.0",
|
|
61
63
|
"@theguild/tailwind-config": "0.6.2",
|
|
62
64
|
"@types/dedent": "0.7.2",
|
|
63
65
|
"@types/react": "18.3.18",
|
package/style.css
CHANGED
|
@@ -127,7 +127,23 @@
|
|
|
127
127
|
:root {
|
|
128
128
|
--nextra-navbar-height: 82px;
|
|
129
129
|
}
|
|
130
|
-
|
|
130
|
+
@media (min-width: 768px) {
|
|
131
|
+
.nextra-search {
|
|
132
|
+
@apply ml-3 basis-64;
|
|
133
|
+
input,
|
|
134
|
+
kbd {
|
|
135
|
+
@apply text-green-700 dark:text-neutral-300;
|
|
136
|
+
}
|
|
137
|
+
input {
|
|
138
|
+
@apply h-12 w-full rounded-lg border border-green-200 bg-white pl-4 pr-8;
|
|
139
|
+
@apply ring-[hsl(var(--nextra-primary-hue)_var(--nextra-primary-saturation)_32%/var(--tw-ring-opacity))];
|
|
140
|
+
@apply ring-offset-[rgb(var(--nextra-bg))] dark:border-neutral-800 dark:bg-inherit;
|
|
141
|
+
}
|
|
142
|
+
kbd {
|
|
143
|
+
@apply absolute right-4 top-1/2 my-0 -translate-y-1/2 border-none bg-green-200 dark:bg-neutral-700;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
131
147
|
@media (max-width: 767px) {
|
|
132
148
|
:root {
|
|
133
149
|
--nextra-navbar-height: 64px;
|