@theguild/components 8.1.0 → 8.1.1-alpha-20241216185728-794f81c721cc57fb6ac8dc12c5dad41aabd572a4
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 +1 -0
- package/dist/index.js +2 -0
- package/dist/shared-meta-items.d.mts +57 -0
- package/dist/shared-meta-items.js +47 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -37,6 +37,7 @@ export { IEditorProps, IFeatureListProps, IHeroGradientProps, IHeroIllustrationP
|
|
|
37
37
|
export { AngularLettermark, ConductorLettermark, ConfigLettermark, EnvelopLettermark, FetsLettermark, GraphQLESlintLettermark, HeltinLettermark, InspectorLettermark, KitQLLettermark, ModulesLettermark, SSELettermark, ScalarsLettermark, SofaLettermark, StitchingLettermark, ToolsLettermark, WSLettermark, WhatsAppLettermark } from './logos/index.mjs';
|
|
38
38
|
export { cn } from './cn.mjs';
|
|
39
39
|
export { NextPageProps } from './next-types.mjs';
|
|
40
|
+
export { sharedMetaItems } from './shared-meta-items.mjs';
|
|
40
41
|
export { GraphQLConfCard, GraphQLConfCardProps } from './components/hive-navigation/graphql-conf-card.mjs';
|
|
41
42
|
import 'react';
|
|
42
43
|
import 'url';
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ export * from "./types/components";
|
|
|
20
20
|
export * from "./logos";
|
|
21
21
|
import { cn } from "./cn";
|
|
22
22
|
export * from "./next-types";
|
|
23
|
+
import { sharedMetaItems } from "./shared-meta-items";
|
|
23
24
|
export {
|
|
24
25
|
Banner,
|
|
25
26
|
Bleed,
|
|
@@ -37,6 +38,7 @@ export {
|
|
|
37
38
|
Table,
|
|
38
39
|
Tabs,
|
|
39
40
|
cn,
|
|
41
|
+
sharedMetaItems,
|
|
40
42
|
useConfig,
|
|
41
43
|
useMounted,
|
|
42
44
|
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