@theguild/components 7.2.0-alpha-20241101220642-0b6682d9cf4196529799e8ad0e38b83426590e93 → 8.0.0-alpha-20241103132221-f9d255adde945cffb98f9f7c914ac29896a15819

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.
Files changed (117) hide show
  1. package/dist/chunk-ME7V4BHY.js +10 -0
  2. package/dist/cn.d.mts +5 -0
  3. package/dist/cn.js +8 -0
  4. package/dist/components/anchor.d.mts +11 -0
  5. package/dist/components/anchor.js +30 -0
  6. package/dist/components/button.d.mts +13 -0
  7. package/dist/components/button.js +25 -0
  8. package/dist/components/call-to-action.d.mts +38 -0
  9. package/dist/components/call-to-action.js +42 -0
  10. package/dist/components/cards-colorful.d.mts +19 -0
  11. package/dist/components/cards-colorful.js +20 -0
  12. package/dist/components/cookies-consent.d.mts +7 -0
  13. package/dist/components/cookies-consent.js +48 -0
  14. package/dist/components/decorations/index.d.mts +11 -0
  15. package/dist/components/decorations/index.js +72 -0
  16. package/dist/components/feature-list.d.mts +9 -0
  17. package/dist/components/feature-list.js +41 -0
  18. package/dist/components/footer.d.mts +9 -0
  19. package/dist/components/footer.js +116 -0
  20. package/dist/components/get-your-api-game-right-section.d.mts +7 -0
  21. package/dist/components/get-your-api-game-right-section.js +122 -0
  22. package/dist/components/giscus.d.mts +6 -0
  23. package/dist/components/giscus.js +14 -0
  24. package/dist/components/guild-navbar-logo.d.mts +19 -0
  25. package/dist/components/guild-navbar-logo.js +62 -0
  26. package/dist/components/heading.d.mts +10 -0
  27. package/dist/components/heading.js +36 -0
  28. package/dist/components/hero-gradient.d.mts +9 -0
  29. package/dist/components/hero-gradient.js +82 -0
  30. package/dist/components/hero-illustration.d.mts +9 -0
  31. package/dist/components/hero-illustration.js +31 -0
  32. package/dist/components/hero-marketplace.d.mts +9 -0
  33. package/dist/components/hero-marketplace.js +78 -0
  34. package/dist/components/hero-video.d.mts +9 -0
  35. package/dist/components/hero-video.js +73 -0
  36. package/dist/components/hive-footer.d.mts +11 -0
  37. package/dist/components/hive-footer.js +252 -0
  38. package/dist/components/hive-navigation/graphql-conf-card.d.mts +9 -0
  39. package/dist/components/hive-navigation/graphql-conf-card.js +26 -0
  40. package/dist/components/hive-navigation/index.d.mts +55 -0
  41. package/dist/components/hive-navigation/index.js +392 -0
  42. package/dist/components/hive-navigation/navigation-menu.d.mts +23 -0
  43. package/dist/components/hive-navigation/navigation-menu.js +179 -0
  44. package/dist/components/icons/index.d.mts +6 -0
  45. package/dist/{chunk-XKCA3AB7.js → components/icons/index.js} +29 -266
  46. package/dist/components/image.d.mts +6 -0
  47. package/dist/components/image.js +8 -0
  48. package/dist/components/index.d.mts +44 -0
  49. package/dist/components/index.js +52 -0
  50. package/dist/components/info-card.d.mts +11 -0
  51. package/dist/components/info-card.js +20 -0
  52. package/dist/components/info-list.d.mts +9 -0
  53. package/dist/components/info-list.js +27 -0
  54. package/dist/components/legacy-package-cmd.d.mts +13 -0
  55. package/dist/components/legacy-package-cmd.js +54 -0
  56. package/dist/components/marketplace-list.d.mts +9 -0
  57. package/dist/components/marketplace-list.js +118 -0
  58. package/dist/components/marketplace-search.d.mts +9 -0
  59. package/dist/components/marketplace-search.js +111 -0
  60. package/dist/components/npm-badge.d.mts +7 -0
  61. package/dist/components/npm-badge.js +16 -0
  62. package/dist/components/schema-type.d.mts +9 -0
  63. package/dist/components/schema-type.js +80 -0
  64. package/dist/components/stud.d.mts +7 -0
  65. package/dist/components/stud.js +17 -0
  66. package/dist/components/tag.d.mts +13 -0
  67. package/dist/components/tag.js +26 -0
  68. package/dist/components/theme-switcher.d.mts +7 -0
  69. package/dist/components/theme-switcher.js +17 -0
  70. package/dist/components/tools-and-libraries-cards.d.mts +7 -0
  71. package/dist/components/tools-and-libraries-cards.js +442 -0
  72. package/dist/constants.d.mts +7 -0
  73. package/dist/constants.js +7 -0
  74. package/dist/helpers/render-slot.d.mts +3 -0
  75. package/dist/helpers/render-slot.js +21 -0
  76. package/dist/index.d.mts +64 -339
  77. package/dist/index.js +21 -3115
  78. package/dist/logos/index.d.mts +26 -0
  79. package/dist/{chunk-EWF5AT2G.js → logos/index.js} +68 -53
  80. package/dist/mdx-components.d.mts +5 -0
  81. package/dist/mdx-components.js +50 -0
  82. package/dist/products.d.mts +10 -5
  83. package/dist/products.js +230 -5
  84. package/dist/server/index.d.mts +5 -0
  85. package/dist/server/index.js +12 -0
  86. package/dist/server/next.config.d.mts +10 -0
  87. package/dist/server/next.config.js +107 -0
  88. package/dist/server/npm.d.mts +21 -0
  89. package/dist/server/npm.js +75 -0
  90. package/dist/server/package.json +1 -0
  91. package/dist/server/pages.d.mts +1 -0
  92. package/dist/server/pages.js +5 -0
  93. package/dist/server/underscore-redirects.d.mts +3 -0
  94. package/dist/server/underscore-redirects.js +40 -0
  95. package/dist/static/illustrations/marketplace-cube-bl.d.mts +2 -0
  96. package/dist/static/illustrations/marketplace-cube-br.d.mts +2 -0
  97. package/dist/static/illustrations/marketplace-cube-tl.d.mts +2 -0
  98. package/dist/static/illustrations/marketplace-cube-tr.d.mts +2 -0
  99. package/dist/static/illustrations/marketplace-desktop.d.mts +2 -0
  100. package/dist/static/illustrations/marketplace-mobile.d.mts +2 -0
  101. package/dist/theme-layout.d.mts +39 -0
  102. package/dist/theme-layout.js +144 -0
  103. package/dist/types/components.d.mts +121 -0
  104. package/dist/types/components.js +0 -0
  105. package/package.json +19 -36
  106. package/style.css +10 -8
  107. package/dist/compile.mjs +0 -11
  108. package/dist/index.css +0 -133
  109. package/dist/logos.d.mts +0 -32
  110. package/dist/logos.js +0 -54
  111. package/dist/next.config.mjs +0 -135
  112. /package/dist/{marketplace-cube-bl-42X7Y3KO.png → static/illustrations/marketplace-cube-bl.png} +0 -0
  113. /package/dist/{marketplace-cube-br-Y5MZRDIL.png → static/illustrations/marketplace-cube-br.png} +0 -0
  114. /package/dist/{marketplace-cube-tl-PEJKW6RX.png → static/illustrations/marketplace-cube-tl.png} +0 -0
  115. /package/dist/{marketplace-cube-tr-O5XQ6Q4N.png → static/illustrations/marketplace-cube-tr.png} +0 -0
  116. /package/dist/{marketplace-desktop-7XUR54PR.png → static/illustrations/marketplace-desktop.png} +0 -0
  117. /package/dist/{marketplace-mobile-DI462WKF.png → static/illustrations/marketplace-mobile.png} +0 -0
@@ -0,0 +1,75 @@
1
+ import semver from "semver";
2
+ const cache = {};
3
+ function withoutStartingSlash(v) {
4
+ if (v === "/") return v;
5
+ if (v.startsWith("/")) return v.slice(1, v.length);
6
+ return v;
7
+ }
8
+ function withoutTrailingSlash(v) {
9
+ if (v === "/") return v;
10
+ if (v.endsWith("/")) return v.slice(0, v.length - 1);
11
+ return v;
12
+ }
13
+ function withStartingSlash(v) {
14
+ if (v.startsWith("/")) return v;
15
+ return `/${v}`;
16
+ }
17
+ async function tryRemoteReadme(repo, path) {
18
+ const fetchPath = `https://raw.githubusercontent.com/${withoutStartingSlash(
19
+ withoutTrailingSlash(repo)
20
+ )}/HEAD${withStartingSlash(path)}`;
21
+ try {
22
+ const response = await fetch(fetchPath, {
23
+ method: "GET"
24
+ });
25
+ if (response.status === 404) {
26
+ console.error(`ERROR | ${fetchPath} Not Found`);
27
+ }
28
+ return await response.text();
29
+ } catch (err) {
30
+ console.error(
31
+ `[@theguild/components] ERROR | Error while trying to get README from GitHub ${fetchPath}`
32
+ );
33
+ console.error(err);
34
+ return null;
35
+ }
36
+ }
37
+ const NO_NPM_README_PLACEHOLDER = "ERROR: No README data found!";
38
+ const fetchPackageInfo = async (packageName, githubReadme) => {
39
+ const cacheKey = githubReadme ? `${githubReadme.repo}${githubReadme.path}` : packageName;
40
+ const cachedData = cache[cacheKey];
41
+ if (cachedData) {
42
+ return cachedData;
43
+ }
44
+ const encodedName = encodeURIComponent(packageName);
45
+ console.debug(`Loading NPM package info: ${packageName}`);
46
+ const [packageInfo, { downloads }] = await Promise.all([
47
+ fetch(`https://registry.npmjs.org/${encodedName}`).then((response) => response.json()),
48
+ fetch(`https://api.npmjs.org/downloads/point/last-week/${encodedName}`).then(
49
+ (response) => response.json()
50
+ )
51
+ ]);
52
+ const { readme, time, description } = packageInfo;
53
+ const latestVersion = packageInfo["dist-tags"].latest;
54
+ const readmeContent = githubReadme && await tryRemoteReadme(githubReadme.repo, githubReadme.path);
55
+ cache[cacheKey] = {
56
+ readme: readmeContent || readme !== NO_NPM_README_PLACEHOLDER && readme || // for some reason top level "readme" can be empty string, so we get the latest version readme
57
+ Object.values(packageInfo.versions).reverse().find((curr) => {
58
+ const isReadmeExist = curr.readme && curr.readme !== NO_NPM_README_PLACEHOLDER;
59
+ if (isReadmeExist) {
60
+ return semver.lte(curr.version, latestVersion);
61
+ }
62
+ })?.readme || "",
63
+ createdAt: time.created,
64
+ updatedAt: time.modified,
65
+ description,
66
+ weeklyNPMDownloads: downloads
67
+ };
68
+ return cache[cacheKey];
69
+ };
70
+ export {
71
+ fetchPackageInfo,
72
+ withStartingSlash,
73
+ withoutStartingSlash,
74
+ withoutTrailingSlash
75
+ };
@@ -0,0 +1 @@
1
+ {"type":"module","sideEffects":false}
@@ -0,0 +1 @@
1
+ export { generateStaticParamsFor, importPage } from 'nextra/pages';
@@ -0,0 +1,5 @@
1
+ import { generateStaticParamsFor, importPage } from "nextra/pages";
2
+ export {
3
+ generateStaticParamsFor,
4
+ importPage
5
+ };
@@ -0,0 +1,3 @@
1
+ declare function applyUnderscoreRedirects(config: any, meta: any): void;
2
+
3
+ export { applyUnderscoreRedirects };
@@ -0,0 +1,40 @@
1
+ import { writeFile } from "fs/promises";
2
+ import { join } from "path";
3
+ class RunPromiseWebpackPlugin {
4
+ constructor(asyncHook) {
5
+ this.asyncHook = asyncHook;
6
+ }
7
+ apply(compiler) {
8
+ compiler.hooks.beforeCompile.tapPromise("RunPromiseWebpackPlugin", this.asyncHook);
9
+ }
10
+ }
11
+ let isWarningPrinted = false;
12
+ function applyUnderscoreRedirects(config, meta) {
13
+ config.plugins.push(
14
+ new RunPromiseWebpackPlugin(async () => {
15
+ const outDir = meta.dir;
16
+ const outFile = join(outDir, "./public/_redirects");
17
+ try {
18
+ const redirects = meta.config.redirects ? Array.isArray(meta.config.redirects) ? meta.config.redirects : await meta.config.redirects() : [];
19
+ if (redirects.length === 0) {
20
+ if (!isWarningPrinted) {
21
+ console.warn(
22
+ '[@theguild/components] No redirects defined, no "_redirect" file is created!'
23
+ );
24
+ isWarningPrinted = true;
25
+ }
26
+ return;
27
+ }
28
+ const redirectsTxt = redirects.map((r) => `${r.source} ${r.destination} ${r.permanent ? 301 : 302}`).join("\n");
29
+ await writeFile(outFile, redirectsTxt);
30
+ } catch (error) {
31
+ throw new Error(
32
+ `Failed to generate "_redirects" file during build: ${error.message}`
33
+ );
34
+ }
35
+ })
36
+ );
37
+ }
38
+ export {
39
+ applyUnderscoreRedirects
40
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,39 @@
1
+ import { FC, ReactNode, ComponentProps } from 'react';
2
+ import { Metadata } from 'next';
3
+ import { Navbar, Layout } from 'nextra-theme-docs';
4
+ import { Head } from 'nextra/components';
5
+
6
+ type LP = ComponentProps<typeof Layout>;
7
+ type LayoutProps = Omit<LP, 'navbar' | 'footer' | 'children' | 'docsRepositoryBase'> & Partial<Pick<LP, 'navbar' | 'footer'>> & Required<Pick<LP, 'docsRepositoryBase'>>;
8
+ declare const GuildLayout: FC<{
9
+ children: ReactNode;
10
+ websiteName: string;
11
+ description: string;
12
+ /**
13
+ * In case you want to pass the html props, like overriding default `class`
14
+ */
15
+ htmlProps?: ComponentProps<'html'>;
16
+ /**
17
+ * Nextra's `<Head>` component props
18
+ */
19
+ headProps?: ComponentProps<typeof Head>;
20
+ /**
21
+ * Navbar logo, `null` is used in The Guild Blog
22
+ */
23
+ logo: ComponentProps<typeof Navbar>['logo'] | null;
24
+ /**
25
+ * Nextra's Docs Theme `<Layout>` component props
26
+ */
27
+ layoutProps: LayoutProps;
28
+ /**
29
+ * Nextra's Docs Theme `<Navbar>` component props
30
+ */
31
+ navbarProps?: LayoutProps;
32
+ }>;
33
+ declare function getDefaultMetadata({ websiteName, description, productName, ...additionalMetadata }: {
34
+ description?: string;
35
+ websiteName: string;
36
+ productName: string;
37
+ } & Metadata): Metadata;
38
+
39
+ export { GuildLayout, getDefaultMetadata };
@@ -0,0 +1,144 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Layout, Navbar } from "nextra-theme-docs";
3
+ import { Head } from "nextra/components";
4
+ import { Footer } from "./components/footer";
5
+ import { getNavbarLogo } from "./components/guild-navbar-logo";
6
+ import { MoonIcon } from "./components/icons";
7
+ import { ThemeSwitcherButton } from "./components/theme-switcher";
8
+ import { siteOrigin, siteUrl } from "./constants";
9
+ import { PRODUCTS } from "./products";
10
+ const companyItem = {
11
+ type: "menu",
12
+ title: "Company",
13
+ items: {
14
+ about: { title: "About", href: `${siteOrigin}/about-us` },
15
+ blog: { title: "Blog", href: `${siteOrigin}/blog` },
16
+ contact: { title: "Contact", href: `${siteOrigin}/#get-in-touch` }
17
+ }
18
+ };
19
+ const productsItems = {
20
+ type: "menu",
21
+ title: "Products",
22
+ items: Object.fromEntries(
23
+ Object.values(PRODUCTS).map((product) => [
24
+ product.name,
25
+ {
26
+ title: /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-2", title: product.title, children: [
27
+ /* @__PURE__ */ jsx(product.logo, { className: "size-7 shrink-0" }),
28
+ product.name
29
+ ] }),
30
+ href: product.href
31
+ }
32
+ ])
33
+ )
34
+ };
35
+ const GuildLayout = async ({
36
+ children,
37
+ websiteName,
38
+ description,
39
+ htmlProps,
40
+ headProps,
41
+ logo,
42
+ layoutProps,
43
+ navbarProps
44
+ }) => {
45
+ const url = new URL(layoutProps.docsRepositoryBase);
46
+ const [, org, repoName] = url.pathname.split("/");
47
+ const [meta, ...pageMap] = layoutProps.pageMap;
48
+ const pageMapWithCompanyMenu = [
49
+ {
50
+ data: {
51
+ // Add for every website except The Guild Blog
52
+ ...siteOrigin && { company: companyItem },
53
+ products: productsItems,
54
+ ...meta.data
55
+ }
56
+ },
57
+ // Add for every website except The Guild Blog
58
+ ...siteOrigin ? [{ name: "company", route: "#", ...companyItem }] : [],
59
+ { name: "products", route: "#", ...productsItems },
60
+ ...pageMap
61
+ ];
62
+ return /* @__PURE__ */ jsxs(
63
+ "html",
64
+ {
65
+ lang: "en",
66
+ dir: "ltr",
67
+ suppressHydrationWarning: true,
68
+ ...htmlProps,
69
+ children: [
70
+ /* @__PURE__ */ jsx(Head, { ...headProps }),
71
+ /* @__PURE__ */ jsx("body", { children: /* @__PURE__ */ jsx(
72
+ Layout,
73
+ {
74
+ footer: /* @__PURE__ */ jsx(Footer, {}),
75
+ navbar: /* @__PURE__ */ jsx(
76
+ Navbar,
77
+ {
78
+ logo: getNavbarLogo({ logo, websiteName, description }),
79
+ logoLink: false,
80
+ projectLink: `${url.origin}/${org}/${repoName}`,
81
+ ...navbarProps,
82
+ children: /* @__PURE__ */ jsx(ThemeSwitcherButton, { children: /* @__PURE__ */ jsx(MoonIcon, { className: "fill-transparent stroke-gray-500 dark:fill-gray-100 dark:stroke-gray-100" }) })
83
+ }
84
+ ),
85
+ editLink: "Edit this page on GitHub",
86
+ ...layoutProps,
87
+ pageMap: pageMapWithCompanyMenu,
88
+ feedback: {
89
+ labels: "kind/docs",
90
+ ...layoutProps.feedback
91
+ },
92
+ sidebar: {
93
+ defaultMenuCollapseLevel: 1,
94
+ ...layoutProps.sidebar
95
+ },
96
+ children
97
+ }
98
+ ) })
99
+ ]
100
+ }
101
+ );
102
+ };
103
+ function getDefaultMetadata({
104
+ websiteName,
105
+ description = `${websiteName} Documentation`,
106
+ productName,
107
+ ...additionalMetadata
108
+ }) {
109
+ return {
110
+ description,
111
+ title: {
112
+ // Use `absolute` title if `metadata.title` was not provided in the page
113
+ absolute: websiteName,
114
+ template: `%s | ${websiteName}`
115
+ },
116
+ twitter: {
117
+ card: "summary_large_image",
118
+ site: "https://the-guild.dev",
119
+ creator: "@TheGuildDev"
120
+ },
121
+ openGraph: {
122
+ siteName: websiteName,
123
+ type: "website",
124
+ images: `https://og-image.the-guild.dev/?product=${productName}`,
125
+ url: siteUrl
126
+ },
127
+ applicationName: websiteName,
128
+ appleWebApp: {
129
+ title: websiteName
130
+ },
131
+ robots: {
132
+ index: true,
133
+ follow: true
134
+ },
135
+ alternates: {
136
+ canonical: siteUrl
137
+ },
138
+ ...additionalMetadata
139
+ };
140
+ }
141
+ export {
142
+ GuildLayout,
143
+ getDefaultMetadata
144
+ };
@@ -0,0 +1,121 @@
1
+ import { ComponentProps, ReactNode, ReactElement } from 'react';
2
+ import { ImageProps } from 'next/image';
3
+ import { LinkProps } from 'next/link';
4
+ import { ReactPlayerProps } from 'react-player';
5
+
6
+ interface IVideo {
7
+ src: string;
8
+ placeholder: string;
9
+ }
10
+ type ILink = LinkProps & Pick<ComponentProps<'a'>, 'target' | 'rel' | 'title' | 'className' | 'style'> & {
11
+ children: ReactNode;
12
+ newWindow?: boolean;
13
+ };
14
+ interface IFooterExtendedProps {
15
+ className?: string;
16
+ resources?: ILink[];
17
+ logo?: ILink;
18
+ }
19
+ interface IFeatureListProps {
20
+ className?: string;
21
+ title?: string;
22
+ description?: string;
23
+ items: {
24
+ title: string;
25
+ description: string;
26
+ image: ImageProps;
27
+ link?: ILink;
28
+ }[];
29
+ link?: ILink;
30
+ }
31
+ interface IInfoListProps {
32
+ className?: string;
33
+ title?: string | ReactNode;
34
+ items: {
35
+ title: string | ReactNode;
36
+ description: string | ReactNode;
37
+ link?: ILink;
38
+ }[];
39
+ }
40
+ interface IHeroVideoProps {
41
+ className?: string;
42
+ title: string | ReactNode;
43
+ description: string | ReactNode;
44
+ flipped?: boolean;
45
+ link?: ILink;
46
+ video: IVideo;
47
+ videoProps?: ReactPlayerProps;
48
+ }
49
+ interface IHeroIllustrationProps {
50
+ className?: string;
51
+ title: string | ReactNode;
52
+ description: string | ReactNode;
53
+ flipped?: boolean;
54
+ link?: ILink;
55
+ image: ImageProps;
56
+ }
57
+ interface IHeroGradientProps {
58
+ className?: string;
59
+ title: string | ReactNode;
60
+ description: string | ReactNode;
61
+ colors?: string[];
62
+ version?: string | ReactNode;
63
+ link?: ILink | ILink[];
64
+ image?: ImageProps;
65
+ }
66
+ interface IHeroMarketplaceProps {
67
+ className?: string;
68
+ title: string | ReactNode;
69
+ description: string | ReactNode;
70
+ link: ILink;
71
+ image?: ImageProps;
72
+ }
73
+ interface IMarketplaceItemProps {
74
+ title: string;
75
+ description: string | ReactNode;
76
+ tags?: string[];
77
+ modal?: {
78
+ header: {
79
+ image?: ImageProps;
80
+ description?: string | ILink;
81
+ };
82
+ content: string | (() => ReactNode) | ReactNode;
83
+ };
84
+ update: string;
85
+ image: ImageProps;
86
+ link: Omit<ILink, 'children'>;
87
+ }
88
+ interface IMarketplaceItemsProps {
89
+ items: IMarketplaceItemProps[];
90
+ }
91
+ interface IMarketplaceListProps {
92
+ className?: string;
93
+ title?: string;
94
+ placeholder: string | ReactElement;
95
+ pagination: number;
96
+ items: IMarketplaceItemProps[];
97
+ }
98
+ interface IMarketplaceSearchProps {
99
+ className?: string;
100
+ title: string | ReactNode;
101
+ placeholder: string;
102
+ primaryList: IMarketplaceListProps;
103
+ secondaryList?: IMarketplaceListProps;
104
+ queryList?: IMarketplaceListProps;
105
+ tagsFilter?: string[] | ReadonlyArray<string>;
106
+ }
107
+ interface ISchemaPageProps {
108
+ schemaName: string;
109
+ tags?: string[];
110
+ editorData: Omit<IEditorProps, 'icon' | 'children'>[];
111
+ }
112
+ interface IEditorProps {
113
+ children: ReactNode;
114
+ title: string;
115
+ frameworks?: string[];
116
+ schema?: string;
117
+ image?: string;
118
+ operations?: string;
119
+ }
120
+
121
+ export type { IEditorProps, IFeatureListProps, IFooterExtendedProps, IHeroGradientProps, IHeroIllustrationProps, IHeroMarketplaceProps, IHeroVideoProps, IInfoListProps, ILink, IMarketplaceItemProps, IMarketplaceItemsProps, IMarketplaceListProps, IMarketplaceSearchProps, ISchemaPageProps };
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theguild/components",
3
- "version": "7.2.0-alpha-20241101220642-0b6682d9cf4196529799e8ad0e38b83426590e93",
3
+ "version": "8.0.0-alpha-20241103132221-f9d255adde945cffb98f9f7c914ac29896a15819",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"
@@ -11,48 +11,33 @@
11
11
  "./style.css": "./style.css",
12
12
  "./package.json": "./package.json",
13
13
  ".": {
14
- "import": "./dist/index.js",
15
- "types": "./dist/index.d.mts"
14
+ "types": "./dist/index.d.mts",
15
+ "import": "./dist/index.js"
16
16
  },
17
17
  "./next.config": {
18
- "import": "./dist/next.config.mjs",
19
- "types": "./dist/next.config.d.mts"
18
+ "types": "./dist/server/next.config.d.mts",
19
+ "import": "./dist/server/next.config.js",
20
+ "require": "./dist/server/next.config.js"
20
21
  },
21
- "./compile": {
22
- "import": "./dist/compile.mjs",
23
- "types": "./dist/compile.d.mts"
22
+ "./server": {
23
+ "types": "./dist/server/index.d.mts",
24
+ "import": "./dist/server/index.js"
25
+ },
26
+ "./pages": {
27
+ "types": "./dist/server/pages.d.mts",
28
+ "import": "./dist/server/pages.js"
24
29
  },
25
30
  "./*": {
26
- "import": "./dist/*.js",
27
- "types": "./dist/*.d.mts"
31
+ "types": "./dist/*.d.mts",
32
+ "import": "./dist/*.js"
28
33
  }
29
34
  },
30
35
  "types": "./dist/index.d.mts",
31
- "typesVersions": {
32
- "*": {
33
- ".": [
34
- "./dist/index.d.mts"
35
- ],
36
- "logos": [
37
- "./dist/logos.d.mts"
38
- ],
39
- "products": [
40
- "./dist/products.d.mts"
41
- ],
42
- "next.config": [
43
- "./dist/next.config.d.mts"
44
- ],
45
- "compile": [
46
- "./dist/compile.d.mts"
47
- ]
48
- }
49
- },
50
36
  "files": [
51
37
  "dist",
52
38
  "style.css"
53
39
  ],
54
40
  "peerDependencies": {
55
- "@tailwindcss/container-queries": "^0.1.1",
56
41
  "next": "^13 || ^14 || ^15.0.0",
57
42
  "react": "^18.2.0",
58
43
  "react-dom": "^18.2.0"
@@ -61,20 +46,18 @@
61
46
  "@giscus/react": "3.0.0",
62
47
  "@next/bundle-analyzer": "15.0.1",
63
48
  "@radix-ui/react-navigation-menu": "^1.2.0",
64
- "@theguild/tailwind-config": "0.5.0",
65
49
  "clsx": "2.1.1",
66
50
  "fuzzy": "0.1.3",
67
- "next-videos": "1.5.0",
68
- "nextra": "3.2.0",
69
- "nextra-theme-docs": "3.2.0",
51
+ "nextra": "4.0.0-app-router.21",
52
+ "nextra-theme-docs": "4.0.0-app-router.21",
70
53
  "react-paginate": "8.2.0",
71
54
  "react-player": "2.16.0",
72
- "remark-mdx-disable-explicit-jsx": "0.1.0",
73
55
  "semver": "^7.3.8",
74
56
  "tailwind-merge": "^2.5.2"
75
57
  },
76
58
  "devDependencies": {
77
59
  "@svgr/babel-plugin-remove-jsx-attribute": "^8.0.0",
60
+ "@theguild/tailwind-config": "0.6.0-alpha-20241102200946-31ab833bd95d2219fe5b6db5a21a2df6c60c5dce",
78
61
  "@types/dedent": "0.7.2",
79
62
  "@types/react": "18.3.12",
80
63
  "@types/react-dom": "18.3.1",
@@ -82,7 +65,7 @@
82
65
  "dedent": "1.5.3",
83
66
  "esbuild-plugin-svgr": "^3.0.0",
84
67
  "graphql": "16.9.0",
85
- "next": "15.0.1",
68
+ "next": "15.0.2",
86
69
  "react": "18.3.1",
87
70
  "react-dom": "18.3.1",
88
71
  "unified": "^11.0.3",
package/style.css CHANGED
@@ -1,25 +1,26 @@
1
1
  @layer l-base, l-nextra, l-components;
2
2
 
3
- @import 'tailwindcss/base' layer(l-base);
3
+ /*@import 'tailwindcss/base' layer(l-base);*/
4
4
  @import 'nextra-theme-docs/dist/style.css' layer(l-nextra);
5
5
  @import 'tailwindcss/components' layer(l-components);
6
6
  @import 'tailwindcss/utilities';
7
7
 
8
- @import './dist/index.css';
9
-
10
8
  .nextra-banner-container._bg-neutral-900._flex {
11
9
  @apply bg-[#48224e] bg-none;
12
10
  }
11
+
13
12
  :root {
14
13
  --nextra-navbar-height: 72px;
15
14
  }
16
15
 
17
- .nextra-nav-container [role='menu']:has(a[href='https://the-guild.dev/graphql/hive'])
18
- {
19
- @apply grid max-h-[unset] w-[470px] grid-cols-3 gap-y-2 p-2;
16
+ @layer l-nextra {
17
+ #headlessui-portal-root [role='menu']:has(a[href='https://the-guild.dev/graphql/hive'])
18
+ {
19
+ @apply grid !max-h-[unset] w-[700px] grid-cols-5 gap-y-2 p-2;
20
20
 
21
- a:nth-child(-n + 3) {
22
- @apply rounded-b-none border-b border-black/20 pb-3 dark:border-white/20;
21
+ a:nth-child(-n + 5) {
22
+ @apply rounded-b-none border-b border-black/20 pb-3 dark:border-white/20;
23
+ }
23
24
  }
24
25
  }
25
26
 
@@ -80,6 +81,7 @@
80
81
  &:focus {
81
82
  outline: none;
82
83
  }
84
+
83
85
  &:focus-visible {
84
86
  @apply ring ring-[hsl(var(--nextra-primary-hue)_var(--nextra-primary-saturation)_86%)] ring-offset-1 ring-offset-[hsl(var(--nextra-primary-hue)_var(--nextra-primary-saturation)_77%)] dark:ring-[hsl(var(--nextra-primary-hue)_var(--nextra-primary-saturation)_32%)] dark:ring-offset-[hsl(var(--nextra-primary-hue)_var(--nextra-primary-saturation)_39%)];
85
87
  }
package/dist/compile.mjs DELETED
@@ -1,11 +0,0 @@
1
- // src/compile.ts
2
- export * from "nextra/compile";
3
- import { remarkLinkRewrite } from "nextra/remark-plugins";
4
- import { buildDynamicMDX, buildDynamicMeta } from "nextra/remote";
5
- import { fetchFilePathsFromGitHub } from "nextra/fetch-filepaths-from-github";
6
- export {
7
- buildDynamicMDX,
8
- buildDynamicMeta,
9
- fetchFilePathsFromGitHub,
10
- remarkLinkRewrite
11
- };