@theguild/components 8.0.0-alpha-20241120034816-2e31385bf7502b60a99385ecf9e232af261e66a9 → 8.0.0-alpha-20241120102305-7dcb590d4f7bc7b3583bbcd44414b5dbdfec5e69

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.
@@ -36,5 +36,4 @@ import 'react-player';
36
36
  import 'react/jsx-runtime';
37
37
  import 'nextra/components';
38
38
  import '../products.mjs';
39
- import 'nextra/normalize-pages';
40
39
  import '@giscus/react';
@@ -1,7 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ProductInfo } from '../../products.mjs';
3
3
  import 'react';
4
- import 'nextra/normalize-pages';
5
4
 
6
5
  declare function ToolsAndLibrariesCards({ className }: {
7
6
  className?: string;
package/dist/index.d.mts CHANGED
@@ -39,7 +39,6 @@ import 'url';
39
39
  import 'next/image';
40
40
  import 'react/jsx-runtime';
41
41
  import '@giscus/react';
42
- import 'nextra/normalize-pages';
43
42
  import 'next/link';
44
43
  import 'react-player';
45
44
  import 'clsx';
@@ -1,5 +1,4 @@
1
- import { FC, SVGProps, HTMLProps } from 'react';
2
- import { MenuItem } from 'nextra/normalize-pages';
1
+ import { FC, SVGProps, HTMLProps, ReactNode } from 'react';
3
2
 
4
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';
5
4
  interface ProductInfo {
@@ -13,6 +12,9 @@ declare const PRODUCTS: Record<ProductType, ProductInfo>;
13
12
  declare const FOUR_MAIN_PRODUCTS: ProductInfo[];
14
13
  declare const SIX_HIGHLIGHTED_PRODUCTS: ProductInfo[];
15
14
  /** List of products displayed in hamburger menu. */
16
- declare const PRODUCTS_MENU_LIST: MenuItem['items'];
15
+ declare const PRODUCTS_MENU_LIST: Record<string, {
16
+ type: 'separator';
17
+ title: ReactNode;
18
+ }>;
17
19
 
18
20
  export { FOUR_MAIN_PRODUCTS, PRODUCTS, PRODUCTS_MENU_LIST, type ProductInfo, type ProductType, SIX_HIGHLIGHTED_PRODUCTS };
package/dist/products.js CHANGED
@@ -199,7 +199,12 @@ const SIX_HIGHLIGHTED_PRODUCTS = [
199
199
  PRODUCTS.ESLINT
200
200
  ];
201
201
  const PRODUCTS_MENU_LIST = Object.fromEntries(
202
- ["The GraphQL Stack", ...FOUR_MAIN_PRODUCTS, "Libraries", ...SIX_HIGHLIGHTED_PRODUCTS].map((item, i) => {
202
+ [
203
+ "The GraphQL Stack",
204
+ ...FOUR_MAIN_PRODUCTS,
205
+ "Libraries",
206
+ ...SIX_HIGHLIGHTED_PRODUCTS
207
+ ].map((item, i) => {
203
208
  if (typeof item === "string") {
204
209
  return [
205
210
  i,
@@ -212,13 +217,11 @@ const PRODUCTS_MENU_LIST = Object.fromEntries(
212
217
  }
213
218
  ];
214
219
  }
215
- const Logo = item.logo;
216
220
  return [
217
221
  i,
218
222
  {
219
223
  type: "page",
220
224
  href: item.href,
221
- newWindow: true,
222
225
  title: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
223
226
  /* @__PURE__ */ jsx(
224
227
  "div",
@@ -227,7 +230,7 @@ const PRODUCTS_MENU_LIST = Object.fromEntries(
227
230
  "flex translate-y-[0.25px]",
228
231
  i > 6 && "rounded-sm bg-gray-500 text-white dark:bg-white/10"
229
232
  ),
230
- children: /* @__PURE__ */ jsx(Logo, { className: "size-4 text-[8px]" })
233
+ children: /* @__PURE__ */ jsx(item.logo, { className: "size-4 text-[8px]" })
231
234
  }
232
235
  ),
233
236
  item.name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theguild/components",
3
- "version": "8.0.0-alpha-20241120034816-2e31385bf7502b60a99385ecf9e232af261e66a9",
3
+ "version": "8.0.0-alpha-20241120102305-7dcb590d4f7bc7b3583bbcd44414b5dbdfec5e69",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"