@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.
package/dist/index.d.mts
CHANGED
package/dist/products.d.mts
CHANGED
|
@@ -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:
|
|
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
|
-
[
|
|
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(
|
|
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-
|
|
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"
|