@graphprotocol/go 10.5.2

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 (65) hide show
  1. package/dist/AnnouncementBanner/AnnouncementBanner.d.ts +19 -0
  2. package/dist/AnnouncementBanner/AnnouncementBanner.d.ts.map +1 -0
  3. package/dist/AnnouncementBanner/AnnouncementBanner.js +116 -0
  4. package/dist/AnnouncementBanner/index.d.ts +2 -0
  5. package/dist/AnnouncementBanner/index.d.ts.map +1 -0
  6. package/dist/CookieBanner/CookieBanner.d.ts +17 -0
  7. package/dist/CookieBanner/CookieBanner.d.ts.map +1 -0
  8. package/dist/CookieBanner/CookieBanner.js +195 -0
  9. package/dist/CookieBanner/index.d.ts +2 -0
  10. package/dist/CookieBanner/index.d.ts.map +1 -0
  11. package/dist/FeaturedSubgraphs/FeaturedSubgraphsGrid.d.ts +4 -0
  12. package/dist/FeaturedSubgraphs/FeaturedSubgraphsGrid.d.ts.map +1 -0
  13. package/dist/FeaturedSubgraphs/FeaturedSubgraphsGrid.js +42 -0
  14. package/dist/FeaturedSubgraphs/generated/gql.d.ts +42 -0
  15. package/dist/FeaturedSubgraphs/generated/gql.d.ts.map +1 -0
  16. package/dist/FeaturedSubgraphs/generated/gql.js +11 -0
  17. package/dist/FeaturedSubgraphs/generated/graphql.d.ts +10835 -0
  18. package/dist/FeaturedSubgraphs/generated/graphql.d.ts.map +1 -0
  19. package/dist/FeaturedSubgraphs/generated/graphql.js +403 -0
  20. package/dist/FeaturedSubgraphs/generated/index.d.ts +2 -0
  21. package/dist/FeaturedSubgraphs/generated/index.d.ts.map +1 -0
  22. package/dist/FeaturedSubgraphs/index.d.ts +3 -0
  23. package/dist/FeaturedSubgraphs/index.d.ts.map +1 -0
  24. package/dist/FeaturedSubgraphs/useFeaturedSubgrahsQuery.d.ts +28 -0
  25. package/dist/FeaturedSubgraphs/useFeaturedSubgrahsQuery.d.ts.map +1 -0
  26. package/dist/FeaturedSubgraphs/useFeaturedSubgrahsQuery.js +109 -0
  27. package/dist/GlobalFooter/GlobalFooter.d.ts +28 -0
  28. package/dist/GlobalFooter/GlobalFooter.d.ts.map +1 -0
  29. package/dist/GlobalFooter/GlobalFooter.js +300 -0
  30. package/dist/GlobalFooter/index.d.ts +2 -0
  31. package/dist/GlobalFooter/index.d.ts.map +1 -0
  32. package/dist/GlobalHeader/GlobalHeader.d.ts +4477 -0
  33. package/dist/GlobalHeader/GlobalHeader.d.ts.map +1 -0
  34. package/dist/GlobalHeader/GlobalHeader.js +1045 -0
  35. package/dist/GlobalHeader/index.d.ts +2 -0
  36. package/dist/GlobalHeader/index.d.ts.map +1 -0
  37. package/dist/MarketingNavbar/MarketingNavbar.d.ts +9 -0
  38. package/dist/MarketingNavbar/MarketingNavbar.d.ts.map +1 -0
  39. package/dist/MarketingNavbar/MarketingNavbar.js +566 -0
  40. package/dist/MarketingNavbar/index.d.ts +2 -0
  41. package/dist/MarketingNavbar/index.d.ts.map +1 -0
  42. package/dist/NPSForm/NPSForm.d.ts +20 -0
  43. package/dist/NPSForm/NPSForm.d.ts.map +1 -0
  44. package/dist/NPSForm/NPSForm.js +205 -0
  45. package/dist/NPSForm/index.d.ts +2 -0
  46. package/dist/NPSForm/index.d.ts.map +1 -0
  47. package/dist/NetworkIcon/NetworkIcon.d.ts +11 -0
  48. package/dist/NetworkIcon/NetworkIcon.d.ts.map +1 -0
  49. package/dist/NetworkIcon/NetworkIcon.js +443 -0
  50. package/dist/NetworkIcon/index.d.ts +2 -0
  51. package/dist/NetworkIcon/index.d.ts.map +1 -0
  52. package/dist/SupportModal/SupportModal.d.ts +6 -0
  53. package/dist/SupportModal/SupportModal.d.ts.map +1 -0
  54. package/dist/SupportModal/SupportModal.js +310 -0
  55. package/dist/SupportModal/index.d.ts +2 -0
  56. package/dist/SupportModal/index.d.ts.map +1 -0
  57. package/dist/SupportModal/submitToZendesk.d.ts +12 -0
  58. package/dist/SupportModal/submitToZendesk.d.ts.map +1 -0
  59. package/dist/SupportModal/submitToZendesk.js +26 -0
  60. package/dist/index.d.ts +10 -0
  61. package/dist/index.d.ts.map +1 -0
  62. package/dist/index.js +23 -0
  63. package/dist/jsx/src/jsx-runtime.js +10 -0
  64. package/dist/jsx/src/parseProps.js +48 -0
  65. package/package.json +95 -0
@@ -0,0 +1,2 @@
1
+ export * from './GlobalHeader';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/GlobalHeader/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { ExperimentalNavbarProps } from '@graphprotocol/gds';
2
+ import { ReactNode } from 'react';
3
+ export interface MarketingNavbarProps extends Omit<ExperimentalNavbarProps, 'children' | 'contentAfter'> {
4
+ children?: ExperimentalNavbarProps['children'] | ((defaultChildren: ReactNode) => ReactNode);
5
+ contentAfter?: ExperimentalNavbarProps['contentAfter'] | ((defaultContentAfter: ReactNode) => ReactNode);
6
+ currentSection?: 'products' | 'networks' | 'participate' | 'ecosystem' | 'resources' | 'pricing' | 'docs';
7
+ }
8
+ export declare function MarketingNavbar({ children: passedChildren, contentAfter: passedContentAfter, currentSection, ...props }: MarketingNavbarProps): import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=MarketingNavbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarketingNavbar.d.ts","sourceRoot":"","sources":["../../src/MarketingNavbar/MarketingNavbar.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,uBAAuB,EAK7B,MAAM,oBAAoB,CAAA;AAwB3B,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAA;AAElD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,uBAAuB,EAAE,UAAU,GAAG,cAAc,CAAC;IACtG,QAAQ,CAAC,EAAE,uBAAuB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,eAAe,EAAE,SAAS,KAAK,SAAS,CAAC,CAAA;IAC5F,YAAY,CAAC,EAAE,uBAAuB,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,mBAAmB,EAAE,SAAS,KAAK,SAAS,CAAC,CAAA;IACxG,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,aAAa,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAA;CAC1G;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EAAE,cAAc,EACxB,YAAY,EAAE,kBAAkB,EAChC,cAAc,EACd,GAAG,KAAK,EACT,EAAE,oBAAoB,2CA4ctB"}
@@ -0,0 +1,566 @@
1
+ "use client";
2
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
3
+ import { useI18n, ExperimentalMegaMenu, ExperimentalNavLink, GDSContext, useAnalytics, ButtonOrLink, ExperimentalNavbar, ExperimentalAppLauncher } from "@graphprotocol/gds";
4
+ import { Amp } from "@graphprotocol/gds/dist/icons/Amp.js";
5
+ import { BookOpenText } from "@graphprotocol/gds/dist/icons/BookOpenText.js";
6
+ import { BuildersDAO } from "@graphprotocol/gds/dist/icons/BuildersDAO.js";
7
+ import { Calendar } from "@graphprotocol/gds/dist/icons/Calendar.js";
8
+ import { Coins } from "@graphprotocol/gds/dist/icons/Coins.js";
9
+ import { DAO } from "@graphprotocol/gds/dist/icons/DAO.js";
10
+ import { Governance } from "@graphprotocol/gds/dist/icons/Governance.js";
11
+ import { GraduationCap } from "@graphprotocol/gds/dist/icons/GraduationCap.js";
12
+ import { Headphones } from "@graphprotocol/gds/dist/icons/Headphones.js";
13
+ import { InfraDAO } from "@graphprotocol/gds/dist/icons/InfraDAO.js";
14
+ import { NetworkArbitrumOne } from "@graphprotocol/gds/dist/icons/NetworkArbitrumOne.js";
15
+ import { NetworkBase } from "@graphprotocol/gds/dist/icons/NetworkBase.js";
16
+ import { NetworkBitcoin } from "@graphprotocol/gds/dist/icons/NetworkBitcoin.js";
17
+ import { NetworkEthereum } from "@graphprotocol/gds/dist/icons/NetworkEthereum.js";
18
+ import { NetworkSolana } from "@graphprotocol/gds/dist/icons/NetworkSolana.js";
19
+ import { RoleDelegator } from "@graphprotocol/gds/dist/icons/RoleDelegator.js";
20
+ import { RoleDeveloper } from "@graphprotocol/gds/dist/icons/RoleDeveloper.js";
21
+ import { RoleIndexer } from "@graphprotocol/gds/dist/icons/RoleIndexer.js";
22
+ import { Subgraph } from "@graphprotocol/gds/dist/icons/Subgraph.js";
23
+ import { Substreams } from "@graphprotocol/gds/dist/icons/Substreams.js";
24
+ import { TheGraph } from "@graphprotocol/gds/dist/icons/TheGraph.js";
25
+ import { useContext } from "react";
26
+ function MarketingNavbar({
27
+ children: passedChildren,
28
+ contentAfter: passedContentAfter,
29
+ currentSection,
30
+ ...props
31
+ }) {
32
+ const { defaultLocale, locale, t } = useI18n();
33
+ const defaultChildren = /* @__PURE__ */ jsxs(Fragment, { children: [
34
+ /* @__PURE__ */ jsxs(
35
+ ExperimentalMegaMenu,
36
+ {
37
+ trigger: /* @__PURE__ */ jsx(ExperimentalNavLink, { current: currentSection === "products", children: t("components.marketingNavbar.products.title") }),
38
+ defaultExpanded: currentSection === "products",
39
+ title: t("components.marketingNavbar.products.title"),
40
+ hideTitles: true,
41
+ children: [
42
+ /* @__PURE__ */ jsxs(
43
+ ExperimentalMegaMenu.Item,
44
+ {
45
+ title: t("components.marketingNavbar.products.subgraphs.title"),
46
+ description: t("components.marketingNavbar.products.subgraphs.description"),
47
+ icon: { icon: /* @__PURE__ */ jsx(Subgraph, { alt: "" }), containerClassName: "bg-purple" },
48
+ children: [
49
+ /* @__PURE__ */ jsx(
50
+ ExperimentalMegaMenu.Item,
51
+ {
52
+ title: t("components.marketingNavbar.products.subgraphs.overview.title"),
53
+ description: t("components.marketingNavbar.products.subgraphs.overview.description"),
54
+ href: "https://thegraph.com/subgraphs/",
55
+ target: "_self"
56
+ }
57
+ ),
58
+ /* @__PURE__ */ jsx(
59
+ ExperimentalMegaMenu.Item,
60
+ {
61
+ title: "Graph Explorer",
62
+ description: t("components.marketingNavbar.products.subgraphs.graphExplorer.description"),
63
+ href: "https://thegraph.com/explorer/",
64
+ target: "_self"
65
+ }
66
+ ),
67
+ /* @__PURE__ */ jsx(
68
+ ExperimentalMegaMenu.Item,
69
+ {
70
+ title: "Subgraph Studio",
71
+ description: t("components.marketingNavbar.products.subgraphs.subgraphStudio.description"),
72
+ href: "https://thegraph.com/studio/",
73
+ target: "_self"
74
+ }
75
+ ),
76
+ /* @__PURE__ */ jsxs(ExperimentalMegaMenu.Aside, { title: t("components.marketingNavbar.products.subgraphs.aside.title"), children: [
77
+ /* @__PURE__ */ jsx(ExperimentalNavLink, { href: `https://thegraph.com/docs/${locale}/subgraphs/explorer/`, children: t("components.marketingNavbar.products.subgraphs.aside.findSubgraphs") }),
78
+ /* @__PURE__ */ jsx(ExperimentalNavLink, { href: `https://thegraph.com/docs/${locale}/subgraphs/quick-start/`, children: t("components.marketingNavbar.products.subgraphs.aside.buildSubgraphs") }),
79
+ /* @__PURE__ */ jsx(ExperimentalNavLink, { href: `https://thegraph.com/docs/${locale}/sps/introduction/`, children: t("components.marketingNavbar.products.subgraphs.aside.substreamsPoweredSubgraphs") })
80
+ ] })
81
+ ]
82
+ }
83
+ ),
84
+ /* @__PURE__ */ jsxs(
85
+ ExperimentalMegaMenu.Item,
86
+ {
87
+ title: t("components.marketingNavbar.products.substreams.title"),
88
+ description: t("components.marketingNavbar.products.substreams.description"),
89
+ icon: { icon: /* @__PURE__ */ jsx(Substreams, { alt: "" }), containerClassName: "bg-pink" },
90
+ children: [
91
+ /* @__PURE__ */ jsx(
92
+ ExperimentalMegaMenu.Item,
93
+ {
94
+ title: t("components.marketingNavbar.products.substreams.overview.title"),
95
+ description: t("components.marketingNavbar.products.substreams.overview.description"),
96
+ href: "https://thegraph.com/substreams/",
97
+ target: "_self"
98
+ }
99
+ ),
100
+ /* @__PURE__ */ jsx(
101
+ ExperimentalMegaMenu.Item,
102
+ {
103
+ title: "Substreams.dev",
104
+ description: t("components.marketingNavbar.products.substreams.substreamsDev.description"),
105
+ href: "https://substreams.dev/",
106
+ target: "_self"
107
+ }
108
+ ),
109
+ /* @__PURE__ */ jsx(
110
+ ExperimentalMegaMenu.Item,
111
+ {
112
+ title: "The Graph Market",
113
+ description: t("components.marketingNavbar.products.substreams.theGraphMarket.description"),
114
+ href: "https://thegraph.market/",
115
+ target: "_self"
116
+ }
117
+ ),
118
+ /* @__PURE__ */ jsxs(ExperimentalMegaMenu.Aside, { title: t("components.marketingNavbar.products.substreams.aside.title"), children: [
119
+ /* @__PURE__ */ jsx(ExperimentalNavLink, { href: `https://thegraph.com/docs/${locale}/substreams/introduction/`, children: t("components.marketingNavbar.products.substreams.aside.whatAreSubstreams") }),
120
+ /* @__PURE__ */ jsx(ExperimentalNavLink, { href: "https://docs.substreams.dev/tutorials/intro-to-tutorials", target: "_self", children: t("components.marketingNavbar.products.substreams.aside.buildSubstreams") }),
121
+ /* @__PURE__ */ jsx(
122
+ ExperimentalNavLink,
123
+ {
124
+ href: "https://docs.substreams.dev/reference-material/reliability-guarantees",
125
+ target: "_self",
126
+ children: t("components.marketingNavbar.products.substreams.aside.neverMissData")
127
+ }
128
+ ),
129
+ /* @__PURE__ */ jsx(
130
+ ExperimentalNavLink,
131
+ {
132
+ href: "https://docs.substreams.dev/reference-material/chains-and-endpoints",
133
+ target: "_self",
134
+ children: t("components.marketingNavbar.products.substreams.aside.chainsAndEndpoints")
135
+ }
136
+ )
137
+ ] })
138
+ ]
139
+ }
140
+ ),
141
+ /* @__PURE__ */ jsx(
142
+ ExperimentalMegaMenu.Item,
143
+ {
144
+ title: t("components.marketingNavbar.products.amp.title"),
145
+ description: t("components.marketingNavbar.products.amp.description"),
146
+ icon: {
147
+ icon: /* @__PURE__ */ jsx(Amp, { alt: "" }),
148
+ containerClassName: "bg-gradient-to-tr from-[#611e8A] to-[#080c5e]"
149
+ },
150
+ tag: "Preview",
151
+ href: "https://thegraph.com/amp/",
152
+ target: "_self"
153
+ }
154
+ )
155
+ ]
156
+ }
157
+ ),
158
+ /* @__PURE__ */ jsxs(
159
+ ExperimentalMegaMenu,
160
+ {
161
+ trigger: /* @__PURE__ */ jsx(ExperimentalNavLink, { current: currentSection === "networks", children: t("components.marketingNavbar.networks.title") }),
162
+ defaultExpanded: currentSection === "networks",
163
+ title: t("components.marketingNavbar.networks.title"),
164
+ hideTitles: true,
165
+ children: [
166
+ /* @__PURE__ */ jsx(
167
+ ExperimentalMegaMenu.Item,
168
+ {
169
+ title: "Ethereum",
170
+ icon: /* @__PURE__ */ jsx(NetworkEthereum, { variant: "branded" }),
171
+ href: `https://thegraph.com/docs/${locale}/supported-networks/mainnet/`
172
+ }
173
+ ),
174
+ /* @__PURE__ */ jsx(
175
+ ExperimentalMegaMenu.Item,
176
+ {
177
+ title: "Arbitrum",
178
+ icon: /* @__PURE__ */ jsx(NetworkArbitrumOne, { variant: "branded" }),
179
+ href: `https://thegraph.com/docs/${locale}/supported-networks/arbitrum-one/`
180
+ }
181
+ ),
182
+ /* @__PURE__ */ jsx(
183
+ ExperimentalMegaMenu.Item,
184
+ {
185
+ title: "Bitcoin",
186
+ icon: /* @__PURE__ */ jsx(NetworkBitcoin, { variant: "branded" }),
187
+ href: `https://thegraph.com/docs/${locale}/supported-networks/btc/`
188
+ }
189
+ ),
190
+ /* @__PURE__ */ jsx(
191
+ ExperimentalMegaMenu.Item,
192
+ {
193
+ title: "Solana",
194
+ icon: /* @__PURE__ */ jsx(NetworkSolana, { variant: "branded" }),
195
+ href: `https://thegraph.com/docs/${locale}/supported-networks/solana-mainnet-beta/`
196
+ }
197
+ ),
198
+ /* @__PURE__ */ jsx(
199
+ ExperimentalMegaMenu.Item,
200
+ {
201
+ title: "Base",
202
+ icon: /* @__PURE__ */ jsx(NetworkBase, { variant: "branded" }),
203
+ href: `https://thegraph.com/docs/${locale}/supported-networks/base/`
204
+ }
205
+ ),
206
+ /* @__PURE__ */ jsx(
207
+ ExperimentalMegaMenu.Item,
208
+ {
209
+ title: t("components.marketingNavbar.networks.seeAll", ["60+"]),
210
+ href: `https://thegraph.com/docs/${locale}/supported-networks/`
211
+ }
212
+ )
213
+ ]
214
+ }
215
+ ),
216
+ /* @__PURE__ */ jsxs(
217
+ ExperimentalMegaMenu,
218
+ {
219
+ trigger: /* @__PURE__ */ jsx(ExperimentalNavLink, { current: currentSection === "participate", children: t("components.marketingNavbar.participate.title") }),
220
+ defaultExpanded: currentSection === "participate",
221
+ title: t("components.marketingNavbar.participate.title"),
222
+ hideTitles: true,
223
+ children: [
224
+ /* @__PURE__ */ jsxs(
225
+ ExperimentalMegaMenu.Item,
226
+ {
227
+ title: t("components.marketingNavbar.participate.developers.title"),
228
+ icon: /* @__PURE__ */ jsx(RoleDeveloper, { alt: "" }),
229
+ children: [
230
+ /* @__PURE__ */ jsx(
231
+ ExperimentalMegaMenu.Item,
232
+ {
233
+ title: t("components.marketingNavbar.participate.developers.docs"),
234
+ href: `https://thegraph.com/docs/${locale}/`
235
+ }
236
+ ),
237
+ /* @__PURE__ */ jsx(
238
+ ExperimentalMegaMenu.Item,
239
+ {
240
+ title: t("components.marketingNavbar.participate.developers.subgraphQuickStart"),
241
+ href: `https://thegraph.com/docs/${locale}/subgraphs/quick-start/`
242
+ }
243
+ ),
244
+ /* @__PURE__ */ jsx(
245
+ ExperimentalMegaMenu.Item,
246
+ {
247
+ title: t("components.marketingNavbar.participate.developers.substreamsQuickStart"),
248
+ href: "https://docs.substreams.dev/getting-started",
249
+ target: "_self"
250
+ }
251
+ )
252
+ ]
253
+ }
254
+ ),
255
+ /* @__PURE__ */ jsxs(
256
+ ExperimentalMegaMenu.Item,
257
+ {
258
+ title: t("components.marketingNavbar.participate.delegators.title"),
259
+ icon: /* @__PURE__ */ jsx(RoleDelegator, { alt: "" }),
260
+ children: [
261
+ /* @__PURE__ */ jsx(
262
+ ExperimentalMegaMenu.Item,
263
+ {
264
+ title: t("components.marketingNavbar.participate.delegators.delegate"),
265
+ href: "https://thegraph.com/explorer/delegate"
266
+ }
267
+ ),
268
+ /* @__PURE__ */ jsx(
269
+ ExperimentalMegaMenu.Item,
270
+ {
271
+ title: t("components.marketingNavbar.participate.delegators.whatIsTheGraph"),
272
+ href: "https://thegraph.com/what-is-the-graph/"
273
+ }
274
+ ),
275
+ /* @__PURE__ */ jsx(
276
+ ExperimentalMegaMenu.Item,
277
+ {
278
+ title: t("components.marketingNavbar.participate.delegators.whatIsDelegating"),
279
+ href: `https://thegraph.com/docs/${locale}/resources/roles/delegating/delegating/`
280
+ }
281
+ ),
282
+ /* @__PURE__ */ jsx(ExperimentalMegaMenu.Item, { title: "Graphtronauts", href: "https://graphtronauts.app/", target: "_blank" })
283
+ ]
284
+ }
285
+ ),
286
+ /* @__PURE__ */ jsxs(
287
+ ExperimentalMegaMenu.Item,
288
+ {
289
+ title: t("components.marketingNavbar.participate.indexers.title"),
290
+ icon: /* @__PURE__ */ jsx(RoleIndexer, { alt: "" }),
291
+ children: [
292
+ /* @__PURE__ */ jsx(
293
+ ExperimentalMegaMenu.Item,
294
+ {
295
+ title: t("components.marketingNavbar.participate.indexers.graphNode"),
296
+ href: `https://thegraph.com/docs/${locale}/indexing/tooling/graph-node/`
297
+ }
298
+ ),
299
+ /* @__PURE__ */ jsx(
300
+ ExperimentalMegaMenu.Item,
301
+ {
302
+ title: t("components.marketingNavbar.participate.indexers.firehose"),
303
+ href: `https://thegraph.com/docs/${locale}/indexing/tooling/firehose/`
304
+ }
305
+ ),
306
+ /* @__PURE__ */ jsx(
307
+ ExperimentalMegaMenu.Item,
308
+ {
309
+ title: t("components.marketingNavbar.participate.indexers.graphcast"),
310
+ href: `https://thegraph.com/docs/${locale}/indexing/tooling/graphcast/`
311
+ }
312
+ ),
313
+ /* @__PURE__ */ jsx(
314
+ ExperimentalMegaMenu.Item,
315
+ {
316
+ title: t("components.marketingNavbar.participate.indexers.docs"),
317
+ href: `https://thegraph.com/docs/${locale}/indexing/`
318
+ }
319
+ )
320
+ ]
321
+ }
322
+ )
323
+ ]
324
+ }
325
+ ),
326
+ /* @__PURE__ */ jsxs(
327
+ ExperimentalMegaMenu,
328
+ {
329
+ trigger: /* @__PURE__ */ jsx(ExperimentalNavLink, { current: currentSection === "ecosystem", children: t("components.marketingNavbar.ecosystem.title") }),
330
+ defaultExpanded: currentSection === "ecosystem",
331
+ title: t("components.marketingNavbar.ecosystem.title"),
332
+ hideTitles: true,
333
+ children: [
334
+ /* @__PURE__ */ jsxs(ExperimentalMegaMenu.Item, { title: t("components.marketingNavbar.ecosystem.daos.title"), icon: /* @__PURE__ */ jsx(DAO, { alt: "" }), children: [
335
+ /* @__PURE__ */ jsx(
336
+ ExperimentalMegaMenu.Item,
337
+ {
338
+ title: t("components.marketingNavbar.ecosystem.daos.infraDAO"),
339
+ icon: /* @__PURE__ */ jsx(InfraDAO, { alt: "" }),
340
+ href: "https://infradao.com/",
341
+ target: "_blank"
342
+ }
343
+ ),
344
+ /* @__PURE__ */ jsx(
345
+ ExperimentalMegaMenu.Item,
346
+ {
347
+ title: t("components.marketingNavbar.ecosystem.daos.buildersDAO"),
348
+ icon: /* @__PURE__ */ jsx(BuildersDAO, { alt: "" }),
349
+ href: "https://buildersdao.tech/",
350
+ target: "_blank"
351
+ }
352
+ )
353
+ ] }),
354
+ /* @__PURE__ */ jsx(
355
+ ExperimentalMegaMenu.Item,
356
+ {
357
+ title: t("components.marketingNavbar.ecosystem.events.title"),
358
+ icon: /* @__PURE__ */ jsx(Calendar, { alt: "" }),
359
+ href: "https://thegraph.com/events/"
360
+ }
361
+ ),
362
+ /* @__PURE__ */ jsx(
363
+ ExperimentalMegaMenu.Item,
364
+ {
365
+ title: t("components.marketingNavbar.ecosystem.governance.title"),
366
+ icon: /* @__PURE__ */ jsx(Governance, { alt: "" }),
367
+ href: "https://thegraph.com/governance/"
368
+ }
369
+ ),
370
+ /* @__PURE__ */ jsx(
371
+ ExperimentalMegaMenu.Item,
372
+ {
373
+ title: t("components.marketingNavbar.ecosystem.grants.title"),
374
+ icon: /* @__PURE__ */ jsx(Coins, { alt: "" }),
375
+ href: "https://thegraph.com/grants/"
376
+ }
377
+ )
378
+ ]
379
+ }
380
+ ),
381
+ /* @__PURE__ */ jsxs(
382
+ ExperimentalMegaMenu,
383
+ {
384
+ trigger: /* @__PURE__ */ jsx(ExperimentalNavLink, { current: currentSection === "resources", children: t("components.marketingNavbar.resources.title") }),
385
+ defaultExpanded: currentSection === "resources",
386
+ title: t("components.marketingNavbar.resources.title"),
387
+ hideTitles: true,
388
+ children: [
389
+ /* @__PURE__ */ jsxs(
390
+ ExperimentalMegaMenu.Item,
391
+ {
392
+ title: t("components.marketingNavbar.resources.learn.title"),
393
+ icon: /* @__PURE__ */ jsx(GraduationCap, { alt: "" }),
394
+ children: [
395
+ /* @__PURE__ */ jsx(
396
+ ExperimentalMegaMenu.Item,
397
+ {
398
+ title: t("components.marketingNavbar.resources.learn.whatIsTheGraph"),
399
+ href: "https://thegraph.com/what-is-the-graph/"
400
+ }
401
+ ),
402
+ /* @__PURE__ */ jsx(
403
+ ExperimentalMegaMenu.Item,
404
+ {
405
+ title: t("components.marketingNavbar.resources.learn.blog"),
406
+ href: "https://thegraph.com/blog/"
407
+ }
408
+ ),
409
+ /* @__PURE__ */ jsx(
410
+ ExperimentalMegaMenu.Item,
411
+ {
412
+ title: t("components.marketingNavbar.resources.learn.basecamp"),
413
+ href: "https://basecamp.thegraph.com/"
414
+ }
415
+ ),
416
+ /* @__PURE__ */ jsx(
417
+ ExperimentalMegaMenu.Item,
418
+ {
419
+ title: t("components.marketingNavbar.resources.learn.academy"),
420
+ href: "https://thegraph.academy/",
421
+ target: "_blank"
422
+ }
423
+ )
424
+ ]
425
+ }
426
+ ),
427
+ /* @__PURE__ */ jsxs(
428
+ ExperimentalMegaMenu.Item,
429
+ {
430
+ title: t("components.marketingNavbar.resources.planning.title"),
431
+ icon: /* @__PURE__ */ jsx(BookOpenText, { alt: "" }),
432
+ children: [
433
+ /* @__PURE__ */ jsx(
434
+ ExperimentalMegaMenu.Item,
435
+ {
436
+ title: t("components.marketingNavbar.resources.planning.forum"),
437
+ href: "https://forum.thegraph.com/"
438
+ }
439
+ ),
440
+ /* @__PURE__ */ jsx(
441
+ ExperimentalMegaMenu.Item,
442
+ {
443
+ title: t("components.marketingNavbar.resources.planning.gipProcess"),
444
+ href: "https://thegraph.com/governance/#graph-improvement-proposals"
445
+ }
446
+ ),
447
+ /* @__PURE__ */ jsx(
448
+ ExperimentalMegaMenu.Item,
449
+ {
450
+ title: t("components.marketingNavbar.resources.planning.writeAGip"),
451
+ href: "https://github.com/graphprotocol/graph-improvement-proposals",
452
+ target: "_blank"
453
+ }
454
+ )
455
+ ]
456
+ }
457
+ ),
458
+ /* @__PURE__ */ jsxs(
459
+ ExperimentalMegaMenu.Item,
460
+ {
461
+ title: t("components.marketingNavbar.resources.podcastsAndVideos.title"),
462
+ icon: /* @__PURE__ */ jsx(Headphones, { alt: "" }),
463
+ children: [
464
+ /* @__PURE__ */ jsx(
465
+ ExperimentalMegaMenu.Item,
466
+ {
467
+ title: t("components.marketingNavbar.resources.podcastsAndVideos.grtiq"),
468
+ href: "https://www.grtiq.com/",
469
+ target: "_blank"
470
+ }
471
+ ),
472
+ /* @__PURE__ */ jsx(
473
+ ExperimentalMegaMenu.Item,
474
+ {
475
+ title: t("components.marketingNavbar.resources.podcastsAndVideos.youtube"),
476
+ href: "https://www.youtube.com/@GraphProtocol",
477
+ target: "_blank"
478
+ }
479
+ )
480
+ ]
481
+ }
482
+ ),
483
+ /* @__PURE__ */ jsx(
484
+ ExperimentalMegaMenu.Item,
485
+ {
486
+ title: t("components.marketingNavbar.resources.brand.title"),
487
+ icon: /* @__PURE__ */ jsx(TheGraph, { alt: "" }),
488
+ href: "https://thegraph.com/brand/"
489
+ }
490
+ )
491
+ ]
492
+ }
493
+ ),
494
+ /* @__PURE__ */ jsxs(
495
+ ExperimentalMegaMenu,
496
+ {
497
+ trigger: /* @__PURE__ */ jsx(ExperimentalNavLink, { current: currentSection === "pricing", children: t("components.marketingNavbar.pricing.title") }),
498
+ defaultExpanded: currentSection === "pricing",
499
+ title: t("components.marketingNavbar.pricing.title"),
500
+ hideTitles: true,
501
+ children: [
502
+ /* @__PURE__ */ jsx(
503
+ ExperimentalMegaMenu.Item,
504
+ {
505
+ title: t("components.marketingNavbar.pricing.studio.title"),
506
+ href: "https://thegraph.com/studio-pricing/"
507
+ }
508
+ ),
509
+ /* @__PURE__ */ jsx(
510
+ ExperimentalMegaMenu.Item,
511
+ {
512
+ title: t("components.marketingNavbar.pricing.substreams.title"),
513
+ href: "https://thegraph.market/#pricing-substreams"
514
+ }
515
+ )
516
+ ]
517
+ }
518
+ ),
519
+ /* @__PURE__ */ jsx(
520
+ ExperimentalNavLink,
521
+ {
522
+ href: `https://thegraph.com/docs/${locale}/`,
523
+ iconAfter: null,
524
+ current: currentSection === "docs",
525
+ children: t("components.marketingNavbar.docs.title")
526
+ }
527
+ )
528
+ ] });
529
+ const children = typeof passedChildren === "function" ? passedChildren(defaultChildren) : passedChildren === void 0 ? defaultChildren : passedChildren;
530
+ const defaultContentAfter = /* @__PURE__ */ jsx(ExperimentalAppLauncher, { className: "max-xs:prop-hide-label-true" });
531
+ const contentAfter = typeof passedContentAfter === "function" ? /* @__PURE__ */ jsx("div", { className: "flex items-center gap-4", children: passedContentAfter(defaultContentAfter) }) : passedContentAfter === void 0 ? /* @__PURE__ */ jsx("div", { className: "flex items-center gap-4", children: defaultContentAfter }) : passedContentAfter;
532
+ const { useRouter } = useContext(GDSContext);
533
+ const router = useRouter();
534
+ const { mixpanel } = useAnalytics();
535
+ return /* @__PURE__ */ jsx(
536
+ ButtonOrLink.Config,
537
+ {
538
+ onClick: (_event, props2) => {
539
+ if (!("href" in props2) || !mixpanel) return;
540
+ mixpanel.track("Clicked MarketingNavbar item", {
541
+ href: props2.href
542
+ });
543
+ },
544
+ children: /* @__PURE__ */ jsx(
545
+ ExperimentalNavbar,
546
+ {
547
+ logo: /* @__PURE__ */ jsx(
548
+ ExperimentalNavLink,
549
+ {
550
+ href: `https://thegraph.com/${locale !== defaultLocale ? `${locale}/` : ""}`,
551
+ iconAfter: null,
552
+ children: /* @__PURE__ */ jsx(TheGraph, { size: 8 })
553
+ }
554
+ ),
555
+ children,
556
+ contentAfter,
557
+ ...props
558
+ },
559
+ router == null ? void 0 : router.pathname
560
+ )
561
+ }
562
+ );
563
+ }
564
+ export {
565
+ MarketingNavbar
566
+ };
@@ -0,0 +1,2 @@
1
+ export * from './MarketingNavbar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/MarketingNavbar/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { ChipProps } from '@graphprotocol/gds';
2
+ import { HTMLAttributes, ReactNode } from 'react';
3
+ declare const DEFAULT_CHOICES: {
4
+ label: string;
5
+ commentsLabel: string;
6
+ icon?: ReactNode;
7
+ hideLabel?: boolean;
8
+ score?: number;
9
+ }[];
10
+ export interface NPSFormProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
11
+ /** Defaults to "Would you recommend The Graph?" */
12
+ question?: string;
13
+ /** Defaults to 3 choices: "Not likely", "I don’t know", and "Very likely" */
14
+ choices?: typeof DEFAULT_CHOICES;
15
+ /** Size of the `Chip` components used to render the choices. Defaults to `large`. */
16
+ chipSize?: ChipProps['size'];
17
+ }
18
+ export declare function NPSForm({ question, choices, chipSize, className, ...props }: NPSFormProps): import("react").JSX.Element;
19
+ export {};
20
+ //# sourceMappingURL=NPSForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NPSForm.d.ts","sourceRoot":"","sources":["../../src/NPSForm/NPSForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,SAAS,EAUf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAGhF,QAAA,MAAM,eAAe,EAAE;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,EAkBA,CAAA;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IACjF,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,OAAO,eAAe,CAAA;IAChC,qFAAqF;IACrF,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;CAC7B;AAED,wBAAgB,OAAO,CAAC,EACtB,QAA2C,EAC3C,OAAyB,EACzB,QAAkB,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,YAAY,+BA8Md"}