@theguild/components 8.1.2-alpha-20241218050917-412b8f89b004c878315fa5bc385eb361a1900afc → 8.1.2-alpha-20241218051239-f6d218a0f8e48ed07eea3fb81bd193fac7be31a2

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
@@ -38,6 +38,7 @@ export { AngularLettermark, ConductorLettermark, ConfigLettermark, EnvelopLetter
38
38
  export { cn } from './cn.mjs';
39
39
  export { NextPageProps } from './next-types.mjs';
40
40
  export { normalizePages } from 'nextra/normalize-pages';
41
+ export { sharedMetaItems } from './shared-meta-items.mjs';
41
42
  export { GraphQLConfCard, GraphQLConfCardProps } from './components/hive-navigation/graphql-conf-card.mjs';
42
43
  import 'react';
43
44
  import 'url';
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ export * from "./logos";
21
21
  import { cn } from "./cn";
22
22
  export * from "./next-types";
23
23
  import { normalizePages } from "nextra/normalize-pages";
24
+ import { sharedMetaItems } from "./shared-meta-items";
24
25
  export {
25
26
  Banner,
26
27
  Bleed,
@@ -39,6 +40,7 @@ export {
39
40
  Tabs,
40
41
  cn,
41
42
  normalizePages,
43
+ sharedMetaItems,
42
44
  useConfig,
43
45
  useMounted,
44
46
  useTheme,
@@ -0,0 +1,57 @@
1
+ import * as react from 'react';
2
+ import { ProductType } from './products.mjs';
3
+
4
+ declare function sharedMetaItems(options: {
5
+ githubUrl: string;
6
+ product: ProductType;
7
+ }): {
8
+ products: {
9
+ title: string;
10
+ type: string;
11
+ items: {
12
+ [k: string]: {
13
+ type: "separator";
14
+ title: react.ReactElement;
15
+ } | {
16
+ href: string;
17
+ title: react.ReactElement;
18
+ };
19
+ };
20
+ };
21
+ ecosystem: {
22
+ href?: string | undefined;
23
+ title: string;
24
+ type: string;
25
+ };
26
+ blog: {
27
+ title: string;
28
+ type: string;
29
+ href: string;
30
+ };
31
+ github: {
32
+ title: string;
33
+ type: string;
34
+ href: string;
35
+ };
36
+ 'the-guild': {
37
+ title: string;
38
+ type: string;
39
+ items: {
40
+ 'about-us': {
41
+ title: string;
42
+ href: string;
43
+ };
44
+ 'brand-assets': {
45
+ title: string;
46
+ href: string;
47
+ };
48
+ };
49
+ };
50
+ 'graphql-foundation': {
51
+ title: string;
52
+ type: string;
53
+ href: string;
54
+ };
55
+ };
56
+
57
+ export { sharedMetaItems };
@@ -0,0 +1,47 @@
1
+ import { PRODUCTS_MENU_LIST } from "./products";
2
+ function sharedMetaItems(options) {
3
+ return {
4
+ products: {
5
+ title: "Products",
6
+ type: "menu",
7
+ items: PRODUCTS_MENU_LIST
8
+ },
9
+ ecosystem: {
10
+ title: "Ecosystem",
11
+ type: "page",
12
+ ...options.product !== "HIVE" && { href: "https://the-guild.dev/graphql/hive/ecosystem" }
13
+ },
14
+ blog: {
15
+ title: "Blog",
16
+ type: "page",
17
+ href: "https://the-guild.dev/blog"
18
+ },
19
+ github: {
20
+ title: "GitHub",
21
+ type: "page",
22
+ href: options.githubUrl
23
+ },
24
+ "the-guild": {
25
+ title: "The Guild",
26
+ type: "menu",
27
+ items: {
28
+ "about-us": {
29
+ title: "About Us",
30
+ href: "https://the-guild.dev/about-us"
31
+ },
32
+ "brand-assets": {
33
+ title: "Brand Assets",
34
+ href: "https://the-guild.dev/logos"
35
+ }
36
+ }
37
+ },
38
+ "graphql-foundation": {
39
+ title: "GraphQL Foundation",
40
+ type: "page",
41
+ href: "https://graphql.org/community/foundation/"
42
+ }
43
+ };
44
+ }
45
+ export {
46
+ sharedMetaItems
47
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theguild/components",
3
- "version": "8.1.2-alpha-20241218050917-412b8f89b004c878315fa5bc385eb361a1900afc",
3
+ "version": "8.1.2-alpha-20241218051239-f6d218a0f8e48ed07eea3fb81bd193fac7be31a2",
4
4
  "repository": {
5
5
  "url": "https://github.com/the-guild-org/docs",
6
6
  "directory": "packages/components"