@theguild/components 8.0.0-alpha-20241205150715-1c38acac57eaf933887bfbbb59a87a939b658817 → 8.0.0-alpha-20241205181447-87125d0b44dc0d1a7ce638de956987d05110bb5e

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 (55) hide show
  1. package/dist/components/contact-us.d.mts +18 -0
  2. package/dist/components/contact-us.js +32 -0
  3. package/dist/components/cookies-consent.d.mts +2 -1
  4. package/dist/components/cookies-consent.js +25 -9
  5. package/dist/components/explore-main-product-cards.js +1 -1
  6. package/dist/components/get-your-api-game-right-section.js +4 -16
  7. package/dist/components/heading.js +1 -0
  8. package/dist/components/{hive-footer.d.mts → hive-footer/index.d.mts} +8 -5
  9. package/dist/components/{hive-footer.js → hive-footer/index.js} +18 -26
  10. package/dist/components/hive-navigation/graphql-conf-card.js +1 -1
  11. package/dist/components/hive-navigation/index.d.mts +11 -18
  12. package/dist/components/hive-navigation/index.js +40 -72
  13. package/dist/components/icons/index.d.mts +1 -1
  14. package/dist/components/icons/index.js +28 -28
  15. package/dist/components/icons/stellate.js +12 -0
  16. package/dist/components/index.d.mts +6 -5
  17. package/dist/components/index.js +4 -12
  18. package/dist/components/{tools-and-libraries-cards → product-card}/hive-decoration.js +1 -1
  19. package/dist/components/{tools-and-libraries-cards → product-card}/hive-gateway-decoration.js +1 -1
  20. package/dist/components/product-card/index.d.mts +13 -0
  21. package/dist/components/product-card/index.js +101 -0
  22. package/dist/components/{tools-and-libraries-cards → product-card}/mesh-decoration.js +1 -1
  23. package/dist/components/product-card/yoga-decoration.d.mts +3 -0
  24. package/dist/components/{tools-and-libraries-cards → product-card}/yoga-decoration.js +1 -1
  25. package/dist/components/schema-type.js +1 -1
  26. package/dist/components/stud.d.mts +2 -1
  27. package/dist/components/tools-and-libraries-cards/index.d.mts +3 -12
  28. package/dist/components/tools-and-libraries-cards/index.js +12 -87
  29. package/dist/index.d.mts +8 -8
  30. package/dist/index.js +3 -1
  31. package/dist/logos/guild.js +1 -1
  32. package/dist/logos/index.d.mts +20 -21
  33. package/dist/logos/index.js +16 -13
  34. package/dist/products.d.mts +9 -6
  35. package/dist/products.js +20 -13
  36. package/dist/server/index.d.mts +5 -4
  37. package/dist/server/index.js +2 -1
  38. package/dist/server/mdx-components.d.mts +183 -204
  39. package/dist/server/mdx-components.js +2 -1
  40. package/dist/server/next.config.js +16 -2
  41. package/dist/server/theme-layout.d.mts +7 -1
  42. package/dist/server/theme-layout.js +29 -13
  43. package/dist/types/components.d.mts +1 -9
  44. package/package.json +3 -3
  45. package/style.css +16 -43
  46. package/dist/components/footer.d.mts +0 -9
  47. package/dist/components/footer.js +0 -116
  48. package/dist/components/guild-navbar-logo.d.mts +0 -19
  49. package/dist/components/guild-navbar-logo.js +0 -62
  50. package/dist/helpers/render-slot.d.mts +0 -3
  51. package/dist/helpers/render-slot.js +0 -21
  52. /package/dist/components/{tools-and-libraries-cards/hive-decoration.d.mts → icons/stellate.d.mts} +0 -0
  53. /package/dist/components/{tools-and-libraries-cards/hive-gateway-decoration.d.mts → product-card/hive-decoration.d.mts} +0 -0
  54. /package/dist/components/{tools-and-libraries-cards/mesh-decoration.d.mts → product-card/hive-gateway-decoration.d.mts} +0 -0
  55. /package/dist/components/{tools-and-libraries-cards/yoga-decoration.d.mts → product-card/mesh-decoration.d.mts} +0 -0
@@ -1,25 +1,24 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { HTMLAttributes } from 'react';
1
+ import * as react from 'react';
2
+ import { FC } from 'react';
3
3
  export { ReactComponent as AngularLogo, ReactComponent as CodeGeneratorLogo, ReactComponent as ConductorLogo, ReactComponent as ConfigLogo, ReactComponent as FetsLogo, ReactComponent as GraphQLFoundationLogo, ReactComponent as GuildLogo, ReactComponent as HeltinLogo, ReactComponent as HiveCombinationMark, ReactComponent as KitQLLogo, ReactComponent as MeshLogo, ReactComponent as ModulesLogo, ReactComponent as NextraLogo, ReactComponent as SSELogo, ReactComponent as StitchingLogo, ReactComponent as TheGuild, ReactComponent as ToolsLogo, ReactComponent as WSLogo, ReactComponent as WhatsAppLogo, ReactComponent as YogaLogo } from './angular.mjs';
4
4
  import 'nextra/icons';
5
5
 
6
- type LettermarkLogoProps = HTMLAttributes<HTMLElement>;
7
- declare const InspectorLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
8
- declare const SofaLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
9
- declare const GraphQLESlintLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
10
- declare const EnvelopLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
11
- declare const ScalarsLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
12
- declare const ConductorLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
13
- declare const StitchingLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
14
- declare const ToolsLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
15
- declare const ModulesLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
16
- declare const ConfigLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
17
- declare const FetsLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
18
- declare const AngularLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
19
- declare const KitQLLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
20
- declare const WSLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
21
- declare const SSELettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
22
- declare const HeltinLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
23
- declare const WhatsAppLettermark: (props: LettermarkLogoProps) => react_jsx_runtime.JSX.Element;
6
+ declare const InspectorLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
7
+ declare const SofaLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
8
+ declare const GraphQLESlintLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
9
+ declare const EnvelopLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
10
+ declare const ScalarsLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
11
+ declare const ConductorLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
12
+ declare const StitchingLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
13
+ declare const ToolsLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
14
+ declare const ModulesLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
15
+ declare const ConfigLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
16
+ declare const FetsLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
17
+ declare const AngularLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
18
+ declare const KitQLLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
19
+ declare const WSLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
20
+ declare const SSELettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
21
+ declare const HeltinLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
22
+ declare const WhatsAppLettermark: FC<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
24
23
 
25
- export { AngularLettermark, ConductorLettermark, ConfigLettermark, EnvelopLettermark, FetsLettermark, GraphQLESlintLettermark, HeltinLettermark, InspectorLettermark, KitQLLettermark, type LettermarkLogoProps, ModulesLettermark, SSELettermark, ScalarsLettermark, SofaLettermark, StitchingLettermark, ToolsLettermark, WSLettermark, WhatsAppLettermark };
24
+ export { AngularLettermark, ConductorLettermark, ConfigLettermark, EnvelopLettermark, FetsLettermark, GraphQLESlintLettermark, HeltinLettermark, InspectorLettermark, KitQLLettermark, ModulesLettermark, SSELettermark, ScalarsLettermark, SofaLettermark, StitchingLettermark, ToolsLettermark, WSLettermark, WhatsAppLettermark };
@@ -20,19 +20,22 @@ import { ReactComponent as ReactComponent17 } from "./ws";
20
20
  import { ReactComponent as ReactComponent18 } from "./yoga";
21
21
  import { ReactComponent as ReactComponent19 } from "./hive-combination-mark";
22
22
  import { ReactComponent as ReactComponent20 } from "./graphql-foundation";
23
- const createLettermarkLogo = (text) => function LettermarkLogo(props) {
24
- return /* @__PURE__ */ jsx(
25
- "span",
26
- {
27
- role: "img",
28
- ...props,
29
- className: cn(
30
- "inline-flex items-center justify-center text-xs font-medium",
31
- props.className
32
- ),
33
- children: text
34
- }
35
- );
23
+ const createLettermarkLogo = (text) => {
24
+ const LettermarkLogo = (props) => {
25
+ return /* @__PURE__ */ jsx(
26
+ "span",
27
+ {
28
+ role: "img",
29
+ ...props,
30
+ className: cn(
31
+ "inline-flex items-center justify-center text-xs font-medium",
32
+ props.className
33
+ ),
34
+ children: text
35
+ }
36
+ );
37
+ };
38
+ return LettermarkLogo;
36
39
  };
37
40
  const InspectorLettermark = createLettermarkLogo("INS");
38
41
  const SofaLettermark = createLettermarkLogo("SOF");
@@ -1,6 +1,7 @@
1
- import { FC, SVGProps, HTMLProps, ReactNode } from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { FC, SVGProps, HTMLProps } from 'react';
2
3
 
3
- type ProductType = 'HIVE' | 'HIVE_GATEWAY' | 'CONDUCTOR' | 'YOGA' | 'ENVELOP' | 'INSPECTOR' | 'CODEGEN' | 'MESH' | 'TOOLS' | 'MODULES' | 'ESLINT' | 'CONFIG' | 'SCALARS' | 'SOFA' | 'STITCHING' | 'ANGULAR' | 'WHATSAPP' | 'KITQL' | 'SSE' | 'WS' | 'FETS' | 'HELTIN' | 'NEXTRA';
4
+ type ProductType = 'HIVE' | 'HIVE_GATEWAY' | 'CONDUCTOR' | 'YOGA' | 'ENVELOP' | 'INSPECTOR' | 'CODEGEN' | 'MESH' | 'TOOLS' | 'MODULES' | 'ESLINT' | 'CONFIG' | 'SCALARS' | 'SOFA' | 'STITCHING' | 'ANGULAR' | 'WHATSAPP' | 'KITQL' | 'SSE' | 'WS' | 'FETS' | 'HELTIN' | 'NEXTRA' | 'STELLATE';
4
5
  interface ProductInfo {
5
6
  name: string;
6
7
  title: string;
@@ -12,9 +13,11 @@ declare const PRODUCTS: Record<ProductType, ProductInfo>;
12
13
  declare const FOUR_MAIN_PRODUCTS: ProductInfo[];
13
14
  declare const SIX_HIGHLIGHTED_PRODUCTS: ProductInfo[];
14
15
  /** List of products displayed in hamburger menu. */
15
- declare const PRODUCTS_MENU_LIST: Record<string, {
16
- type: 'separator';
17
- title: ReactNode;
18
- }>;
16
+ declare const PRODUCTS_MENU_LIST: {
17
+ [k: string]: {
18
+ href: string;
19
+ title: react_jsx_runtime.JSX.Element;
20
+ };
21
+ };
19
22
 
20
23
  export { FOUR_MAIN_PRODUCTS, PRODUCTS, PRODUCTS_MENU_LIST, type ProductInfo, type ProductType, SIX_HIGHLIGHTED_PRODUCTS };
package/dist/products.js CHANGED
@@ -1,6 +1,13 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "./cn";
3
- import { CodegenIcon, HiveGatewayIcon, HiveIcon, MeshIcon, YogaIcon } from "./components/icons";
3
+ import {
4
+ CodegenIcon,
5
+ HiveGatewayIcon,
6
+ HiveIcon,
7
+ MeshIcon,
8
+ StellateIcon,
9
+ YogaIcon
10
+ } from "./components/icons";
4
11
  import {
5
12
  AngularLettermark,
6
13
  ConductorLettermark,
@@ -182,6 +189,13 @@ const PRODUCTS = {
182
189
  href: "https://nextra.site",
183
190
  logo: NextraLogo,
184
191
  primaryColor: "#000"
192
+ },
193
+ STELLATE: {
194
+ name: "Stellate",
195
+ title: "GraphQL Edge Caching, Metrics and Security.",
196
+ href: "https://stellate.co",
197
+ logo: StellateIcon,
198
+ primaryColor: "#FF7752"
185
199
  }
186
200
  };
187
201
  const FOUR_MAIN_PRODUCTS = [
@@ -199,31 +213,24 @@ const SIX_HIGHLIGHTED_PRODUCTS = [
199
213
  PRODUCTS.ESLINT
200
214
  ];
201
215
  const PRODUCTS_MENU_LIST = Object.fromEntries(
202
- [
203
- "The GraphQL Stack",
204
- ...FOUR_MAIN_PRODUCTS,
205
- "Libraries",
206
- ...SIX_HIGHLIGHTED_PRODUCTS
207
- ].map((item, i) => {
216
+ ["The GraphQL Stack", ...FOUR_MAIN_PRODUCTS, "Libraries", ...SIX_HIGHLIGHTED_PRODUCTS].map((item, i) => {
208
217
  if (typeof item === "string") {
209
218
  return [
210
219
  i,
211
220
  {
212
- type: "separator",
221
+ // BUG: Nextra 4 doesn't support separators inside menu items.
222
+ href: "#",
213
223
  title: /* @__PURE__ */ jsxs(Fragment, { children: [
214
- /* @__PURE__ */ jsx("style", { className: "hive-label-separator", children: "li:has(>.hive-label-separator) { margin: 0.75rem 0 0.25rem 0; padding: 0 }" }),
224
+ /* @__PURE__ */ jsx("style", { className: "hive-label-separator", children: ":is(a,li):has(>.hive-label-separator) { margin: 0.75rem 0 0.25rem 0; padding: 0 }" }),
215
225
  /* @__PURE__ */ jsx("span", { className: "ml-2 font-medium text-gray-500 dark:text-neutral-400", children: item })
216
226
  ] })
217
227
  }
218
228
  ];
219
229
  }
220
- const Logo = item.logo;
221
230
  return [
222
231
  i,
223
232
  {
224
- type: "page",
225
233
  href: item.href,
226
- newWindow: true,
227
234
  title: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
228
235
  /* @__PURE__ */ jsx(
229
236
  "div",
@@ -232,7 +239,7 @@ const PRODUCTS_MENU_LIST = Object.fromEntries(
232
239
  "flex translate-y-[0.25px]",
233
240
  i > 6 && "rounded-sm bg-gray-500 text-white dark:bg-white/10"
234
241
  ),
235
- children: /* @__PURE__ */ jsx(Logo, { className: "size-4 text-[8px]" })
242
+ children: /* @__PURE__ */ jsx(item.logo, { className: "size-4 text-[8px]" })
236
243
  }
237
244
  ),
238
245
  item.name
@@ -2,15 +2,16 @@ 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 { getPageMap } from 'nextra/page-map';
5
+ export { createIndexPage, getPageMap } from 'nextra/page-map';
6
6
  export { fetchPackageInfo } from './npm.mjs';
7
7
  export { GuildLayout, getDefaultMetadata } from './theme-layout.mjs';
8
+ import 'next/image';
8
9
  import 'nextra';
9
- import 'nextra/components';
10
10
  import 'nextra/mdx-components/pre/index';
11
- import 'next/image';
12
- import 'next/dist/shared/lib/get-img-props';
13
11
  import 'react/jsx-runtime';
14
12
  import 'react';
15
13
  import 'next';
16
14
  import 'nextra-theme-docs';
15
+ import 'nextra/components';
16
+ import '../components/hive-navigation/index.mjs';
17
+ import '../components/hive-navigation/graphql-conf-card.mjs';
@@ -2,13 +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 { getPageMap } from "nextra/page-map";
5
+ import { getPageMap, createIndexPage } from "nextra/page-map";
6
6
  import { fetchPackageInfo } from "./npm.js";
7
7
  import { GuildLayout, getDefaultMetadata } from "./theme-layout.js";
8
8
  export {
9
9
  GuildLayout,
10
10
  MDXRemote,
11
11
  compileMdx,
12
+ createIndexPage,
12
13
  fetchFilePathsFromGitHub,
13
14
  fetchPackageInfo,
14
15
  getDefaultMetadata,