@ichaingo/header 1.1.0

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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # @ichaingo/header
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test @ichaingo/header` to execute the unit tests via [Vitest](https://vitest.dev/).
@@ -0,0 +1,24 @@
1
+ import { default as default_2 } from 'react';
2
+ import { JSX } from 'react/jsx-runtime';
3
+
4
+ export declare function emitUserEvent(eventName: string, data?: any): void;
5
+
6
+ declare function HeaderBar({ extra, children, className, hideNews, hideLogin }: HeaderBarProps): JSX.Element;
7
+ export default HeaderBar;
8
+
9
+ export declare interface HeaderBarProps extends default_2.HTMLAttributes<HTMLDivElement> {
10
+ extra?: default_2.ReactNode;
11
+ children?: default_2.ReactNode;
12
+ hideNews?: boolean;
13
+ hideLogin?: boolean;
14
+ }
15
+
16
+ export declare function onUserEvent(eventName: string, callback: (data?: any) => void): () => void;
17
+
18
+ export declare const USER_EVENTS: {
19
+ readonly PROFILE_UPDATED: "user-profile-updated";
20
+ readonly LOGGED_IN: "user-logged-in";
21
+ readonly LOGGED_OUT: "user-logged-out";
22
+ };
23
+
24
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1,382 @@
1
+ 'use client';
2
+ import { jsx as e, jsxs as s, Fragment as A } from "react/jsx-runtime";
3
+ import p from "@ichaingo/link";
4
+ import { DropdownMenu as X, DropdownMenuTrigger as G, DropdownMenuContent as M, DropdownMenuGroup as K, DropdownMenuItem as F } from "@ichaingo/ui/dropdown-menu";
5
+ import u from "@ichaingo/translation";
6
+ import { useState as N, useMemo as W, useEffect as w, useCallback as U } from "react";
7
+ import _ from "@ichaingo/betterLink";
8
+ import { useLocale as y, useTranslations as E } from "next-intl";
9
+ import { useTheme as f } from "next-themes";
10
+ import L from "@ichaingo/avatar";
11
+ import { logout as q, fetchUserProfile as Q } from "@ichaingo/auth";
12
+ import { twMerge as d } from "tailwind-merge";
13
+ import { Accordion as P, AccordionItem as R, AccordionTrigger as j, AccordionContent as B } from "@ichaingo/ui/accordion";
14
+ import S from "@ichaingo/image";
15
+ import { Popover as V, PopoverTrigger as J, PopoverContent as Y } from "@ichaingo/ui/popover";
16
+ import { PopoverArrow as Z } from "@radix-ui/react-popover";
17
+ import { useSearchParams as I, usePathname as H } from "next/navigation";
18
+ import ee from "@ichaingo/theme-toggle";
19
+ import te from "rc-drawer";
20
+ import { Menu as re, X as le } from "lucide-react";
21
+ function ne({
22
+ userInfo: r
23
+ }) {
24
+ const { gotoLogin: t } = _(), [l, n] = N(""), a = y(), { resolvedTheme: o } = f(), i = W(() => r == null ? void 0 : r.id, [r]);
25
+ return w(() => {
26
+ n(t({
27
+ locale: a,
28
+ theme: o || "",
29
+ redirect: window.location.href
30
+ }));
31
+ }, [a, o, t]), i ? (
32
+ // userInfo?.profileUrl
33
+ // https://images.ichaingo.com/user-profile/100000201.png
34
+ /* @__PURE__ */ e(L, { userInfo: r, className: "w-8 h-8" })
35
+ ) : /* @__PURE__ */ e(
36
+ p,
37
+ {
38
+ href: l,
39
+ className: "cursor-pointer text-sm text-white bg-primary py-2 px-3 rounded-lg",
40
+ replace: !0,
41
+ children: /* @__PURE__ */ e(u, { value: "signIn", parentKey: "account" })
42
+ }
43
+ );
44
+ }
45
+ function D({ className: r }) {
46
+ const t = U(async () => {
47
+ await q();
48
+ }, []);
49
+ return /* @__PURE__ */ e(
50
+ "button",
51
+ {
52
+ onClick: t,
53
+ className: d("cursor-pointer relative", r),
54
+ children: /* @__PURE__ */ e(u, { value: "logout", parentKey: "account" })
55
+ }
56
+ );
57
+ }
58
+ function ae({
59
+ list: r,
60
+ userInfo: t,
61
+ onClick: l
62
+ }) {
63
+ const { resolvedTheme: n } = f();
64
+ return /* @__PURE__ */ s(X, { children: [
65
+ /* @__PURE__ */ e(G, { className: "outline-none cursor-pointer", children: /* @__PURE__ */ e(ne, { userInfo: t }) }),
66
+ /* @__PURE__ */ e(M, { align: "end", className: "z-2000 w-75 p-0 border-transparent outline-none border border-stroke", children: /* @__PURE__ */ s(K, { className: "flex flex-col gap-2 p-3 bg-module rounded-md", children: [
67
+ /* @__PURE__ */ e("div", { className: "flex flex-col gap-3 w-full bg-background rounded-lg p-2", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
68
+ /* @__PURE__ */ e(L, { userInfo: t, className: "w-8 h-8" }),
69
+ /* @__PURE__ */ s("div", { className: "flex flex-col overflow-hidden", children: [
70
+ /* @__PURE__ */ e("div", { className: "text-sm font-medium", children: (t == null ? void 0 : t.username) || "--" }),
71
+ /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground w-full truncate", children: (t == null ? void 0 : t.email) || (t == null ? void 0 : t.walletAddress) })
72
+ ] })
73
+ ] }) }),
74
+ r.map((a) => /* @__PURE__ */ e(F, { className: "px-0 py-0 focus-visible:border-none focus-visible:outline-none", children: /* @__PURE__ */ e("div", { className: "flex items-center gap-2 w-full", children: a.name === "logout" ? /* @__PURE__ */ e(D, { className: "flex-1 flex py-3 border-t border-stroke w-full px-2 hover:bg-background" }) : /* @__PURE__ */ e(p, { href: `/${a.href}?theme=${n}`, baseUrl: process.env.NEXT_PUBLIC_AUTH_URL, className: "flex-1 flex py-3 h-full w-full px-2 hover:bg-background rounded-lg ", onClick: l, children: /* @__PURE__ */ e(u, { value: a.name, parentKey: "account" }) }) }) }, a.name))
75
+ ] }) })
76
+ ] });
77
+ }
78
+ function se({
79
+ list: r,
80
+ userInfo: t,
81
+ onClick: l
82
+ }) {
83
+ const { resolvedTheme: n } = f();
84
+ return /* @__PURE__ */ e(
85
+ P,
86
+ {
87
+ type: "single",
88
+ collapsible: !0,
89
+ className: "w-full",
90
+ defaultValue: "",
91
+ children: /* @__PURE__ */ s(R, { value: "item-1", className: "p-0 w-full border border-none", children: [
92
+ /* @__PURE__ */ e(j, { className: "w-full bg-background p-3 flex items-center justify-between", children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-3 w-full overflow-hidden", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
93
+ /* @__PURE__ */ e(L, { userInfo: t, className: "w-8 h-8 shrink-0" }),
94
+ /* @__PURE__ */ s("div", { className: "flex flex-col overflow-hidden", children: [
95
+ /* @__PURE__ */ e("div", { className: "text-sm font-medium", children: t == null ? void 0 : t.username }),
96
+ /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground w-full truncate", children: (t == null ? void 0 : t.email) || (t == null ? void 0 : t.walletAddress) })
97
+ ] })
98
+ ] }) }) }),
99
+ /* @__PURE__ */ e(B, { className: "flex text-sm flex-col text-balance bg-background rounded-lg p-3 gap-3 mt-[10px]", children: /* @__PURE__ */ e("dl", { children: r.map((a) => /* @__PURE__ */ e(
100
+ "dd",
101
+ {
102
+ className: "flex justify-start items-center gap-2 py-2",
103
+ children: /* @__PURE__ */ e(p, { href: `/${a.href}?theme=${n}`, className: "flex-1 py-2", onClick: l, suppressHydrationWarning: !0, baseUrl: process.env.NEXT_PUBLIC_AUTH_URL, children: /* @__PURE__ */ e(u, { value: a.name, parentKey: "account" }) })
104
+ },
105
+ a.name
106
+ )) }) })
107
+ ] })
108
+ }
109
+ );
110
+ }
111
+ function $({ onClick: r = () => {
112
+ }, className: t }) {
113
+ const l = y(), { resolvedTheme: n, theme: a } = f(), { gotoLogin: o } = _(), [i, m] = N("");
114
+ return w(() => {
115
+ m(o({
116
+ locale: l,
117
+ theme: n || a || "",
118
+ redirect: window.location.href
119
+ }));
120
+ }, [l, n, a, o]), /* @__PURE__ */ e(
121
+ p,
122
+ {
123
+ href: i,
124
+ onClick: r,
125
+ baseUrl: process.env.NEXT_PUBLIC_AUTH_URL,
126
+ replace: !0,
127
+ className: d(
128
+ "cursor-pointer text-sm text-white bg-primary py-2 px-3 rounded-lg",
129
+ t
130
+ ),
131
+ children: /* @__PURE__ */ e(u, { value: "signIn", parentKey: "account" })
132
+ }
133
+ );
134
+ }
135
+ const k = [
136
+ {
137
+ name: "overview",
138
+ href: "user-center"
139
+ },
140
+ {
141
+ name: "collect",
142
+ href: "user-center/collect"
143
+ },
144
+ {
145
+ name: "setting",
146
+ href: "user-center/setting"
147
+ },
148
+ {
149
+ name: "logout",
150
+ href: void 0
151
+ }
152
+ ];
153
+ function oe({ onClick: r = (n) => {
154
+ }, className: t, userInfo: l }) {
155
+ return l != null && l.id ? /* @__PURE__ */ s(A, { children: [
156
+ /* @__PURE__ */ e("div", { className: d("hidden md:flex items-center", t), children: /* @__PURE__ */ e(ae, { list: k, userInfo: l, onClick: r }) }),
157
+ /* @__PURE__ */ e("div", { className: d("block md:hidden w-full", t), children: /* @__PURE__ */ e(se, { list: k.filter((n) => n.href), userInfo: l, onClick: r }) })
158
+ ] }) : /* @__PURE__ */ e($, { onClick: r, className: d(
159
+ "hidden md:flex cursor-pointer text-sm text-white bg-primary py-2 px-3 rounded-lg",
160
+ "order-3"
161
+ ) });
162
+ }
163
+ function T({ onClick: r = () => {
164
+ } }) {
165
+ var g;
166
+ const t = y(), l = I(), n = E("lang"), a = E("setting"), o = [
167
+ { name: n("en"), lang: "en" },
168
+ { name: n("zh-hant"), lang: "zh-hant" },
169
+ { name: n("zh-hans"), lang: "zh-hans" },
170
+ { name: n("ja"), lang: "ja" },
171
+ { name: n("ko"), lang: "ko" }
172
+ ], i = H(), m = U(
173
+ (c) => {
174
+ const v = i.replace(new RegExp(`/${t}(/|$)`), `/${c}$1`), b = l.toString();
175
+ return b ? `${v}?${b}` : v;
176
+ },
177
+ [i, t, l]
178
+ );
179
+ return /* @__PURE__ */ s("div", { className: "text-sm gap-2 flex flex-col justify-start items-start md:py-2", children: [
180
+ /* @__PURE__ */ e("div", { className: "flex w-full justify-between items-center", children: /* @__PURE__ */ e(P, { type: "single", className: "flex-1", collapsible: !0, children: /* @__PURE__ */ s(R, { value: t, className: "border-0", children: [
181
+ /* @__PURE__ */ e(j, { className: "p-2 bg-background rounded-lg h-11 md:h-auto text-gray-500 w-full flex py-2 justify-between items-center hover:no-underline focus-visible:ring-0 focus-visible:ring-offset-0", children: /* @__PURE__ */ s("div", { className: "flex w-full justify-between items-center", children: [
182
+ /* @__PURE__ */ e("span", { className: "text-title", children: a("language") }),
183
+ /* @__PURE__ */ e("span", { className: "text-title", children: (g = o.find((c) => c.lang === t)) == null ? void 0 : g.name })
184
+ ] }) }),
185
+ /* @__PURE__ */ e(B, { className: "bg-background mt-3 rounded-lg flex flex-col gap-2", children: o.map((c) => /* @__PURE__ */ e(
186
+ p,
187
+ {
188
+ prefetch: !1,
189
+ withLocale: !1,
190
+ className: d(
191
+ "p-2 rounded-lg flex w-full justify-between items-center",
192
+ t === c.lang ? "text-primary" : ""
193
+ ),
194
+ href: m(c.lang),
195
+ onClick: r,
196
+ children: c.name
197
+ },
198
+ c.lang
199
+ )) })
200
+ ] }) }) }),
201
+ /* @__PURE__ */ s("div", { className: "bg-background p-2 rounded-lg h-11 md:h-auto flex w-full justify-between items-center", children: [
202
+ /* @__PURE__ */ e("div", { children: a("theme") }),
203
+ /* @__PURE__ */ e(ee, {})
204
+ ] })
205
+ ] });
206
+ }
207
+ function ie({ onClick: r = () => {
208
+ } }) {
209
+ return /* @__PURE__ */ s("div", { className: "w-full md:w-auto order-3 md:order-0", children: [
210
+ /* @__PURE__ */ e("div", { className: "hidden md:flex items-center bg-module rounded-lg p-1.5 cursor-pointer", children: /* @__PURE__ */ s(V, { children: [
211
+ /* @__PURE__ */ e(J, { asChild: !0, children: /* @__PURE__ */ e(S, { src: `${process.env.NEXT_PUBLIC_CDN_URL}/common/user/5c4a8103-f01c-488a-9d5e-7ef5e442353e.png`, width: 24, height: 24 }) }),
212
+ /* @__PURE__ */ s(
213
+ Y,
214
+ {
215
+ side: "bottom",
216
+ className: "relative top-[10px] rounded-xl border border-stroke bg-module p-2 w-72 z-1000",
217
+ children: [
218
+ /* @__PURE__ */ e(Z, { className: "fill-module" }),
219
+ /* @__PURE__ */ e(T, { onClick: r })
220
+ ]
221
+ }
222
+ )
223
+ ] }) }),
224
+ /* @__PURE__ */ e("div", { className: "md:hidden", children: /* @__PURE__ */ e(T, {}) })
225
+ ] });
226
+ }
227
+ const C = {
228
+ PROFILE_UPDATED: "user-profile-updated",
229
+ LOGGED_IN: "user-logged-in",
230
+ LOGGED_OUT: "user-logged-out"
231
+ };
232
+ function je(r, t) {
233
+ const l = new CustomEvent(r, { detail: t });
234
+ window.dispatchEvent(l);
235
+ }
236
+ function ce(r, t) {
237
+ const l = (n) => {
238
+ t(n.detail);
239
+ };
240
+ return window.addEventListener(r, l), () => window.removeEventListener(r, l);
241
+ }
242
+ function de(r, t) {
243
+ window.removeEventListener(r, t);
244
+ }
245
+ function z({ onClick: r = () => {
246
+ }, hideNews: t = !1, hideLogin: l = !1 }) {
247
+ const { gotoAISQL: n, gotoChat: a } = _(), o = y(), { resolvedTheme: i, theme: m } = f(), g = H(), [c, v] = N(null), b = [
248
+ {
249
+ baseUrl: process.env.NEXT_PUBLIC_ICHAINGO_SEARCH_BASEURL,
250
+ href: `/explorer?theme=${i || m}`,
251
+ key: "/explorer",
252
+ label: /* @__PURE__ */ e("span", { className: "whitespace-nowrap leading-11 md:leading-[34px]", children: /* @__PURE__ */ e(u, { value: "title", parentKey: "browser" }) })
253
+ },
254
+ {
255
+ baseUrl: process.env.NEXT_PUBLIC_CHAT_URL,
256
+ href: a({
257
+ theme: i || m,
258
+ locale: o
259
+ }),
260
+ key: "/chat",
261
+ label: /* @__PURE__ */ s("span", { className: "whitespace-nowrap leading-11 md:leading-[34px]", children: [
262
+ /* @__PURE__ */ e("span", { role: "img", "aria-label": "hot", children: "🔥" }),
263
+ /* @__PURE__ */ e("span", { children: "iGoChat" })
264
+ ] })
265
+ },
266
+ {
267
+ baseUrl: process.env.NEXT_PUBLIC_CHAT_URL,
268
+ href: n({
269
+ theme: i || m,
270
+ locale: o
271
+ }),
272
+ key: "/sql",
273
+ label: "AISQL"
274
+ },
275
+ {
276
+ baseUrl: process.env.NEXT_PUBLIC_ICHAINGO_SEARCH_BASEURL,
277
+ href: `/etf/btc-us?theme=${i || m}`,
278
+ key: "/etf",
279
+ label: /* @__PURE__ */ e(u, { value: "etf", parentKey: "menu" })
280
+ },
281
+ {
282
+ baseUrl: process.env.NEXT_PUBLIC_ICHAINGO_SEARCH_BASEURL,
283
+ href: `/news?theme=${i || m}`,
284
+ key: "/news",
285
+ label: /* @__PURE__ */ e(u, { value: "news", parentKey: "menu" })
286
+ },
287
+ {
288
+ baseUrl: process.env.NEXT_PUBLIC_ICHAINGO_SEARCH_BASEURL,
289
+ href: `/market?theme=${i || m}`,
290
+ key: "/market",
291
+ label: /* @__PURE__ */ e(u, { value: "market", parentKey: "menu" })
292
+ }
293
+ ].filter((h) => t ? !["/explorer", "/chat", "/sql"].includes(h.key) : !0), x = U(() => {
294
+ Q().then((h) => {
295
+ v(h);
296
+ });
297
+ }, []);
298
+ return w(() => {
299
+ x();
300
+ }, [x]), w(() => (ce(C.PROFILE_UPDATED, x), () => {
301
+ de(C.PROFILE_UPDATED, x);
302
+ }), [x]), /* @__PURE__ */ s(
303
+ "nav",
304
+ {
305
+ className: d(
306
+ "flex flex-col justify-start items-start md:px-3",
307
+ "md:flex-row md:justify-end md:items-start md:px-0",
308
+ "md:gap-6"
309
+ ),
310
+ children: [
311
+ /* @__PURE__ */ e(
312
+ "ul",
313
+ {
314
+ className: d(
315
+ "flex flex-col justify-start items-start w-full h-full text-sm leading-[44px] z-1001 text-title",
316
+ "md:flex-row md:items-center md:w-auto md:h-[34px] md:leading-[34px] md:gap-6",
317
+ "order-2 md:order-0"
318
+ ),
319
+ children: b.map((h, O) => /* @__PURE__ */ e("li", { className: d("w-full md:w-auto h-11 md:h-auto cursor-pointer", g.includes(h.key) && "border-b-2 border-primary text-primary "), children: /* @__PURE__ */ e(p, { href: h.href, onClick: r, className: "h-full flex items-center justify-start", baseUrl: h.baseUrl, suppressHydrationWarning: !0, children: h.label }) }, O))
320
+ }
321
+ ),
322
+ /* @__PURE__ */ e(ie, { onClick: r }),
323
+ !g.includes("/login") && !l ? /* @__PURE__ */ s(A, { children: [
324
+ /* @__PURE__ */ e(oe, { onClick: r, userInfo: c }),
325
+ c != null && c.id ? /* @__PURE__ */ e("div", { className: "flex md:hidden h-11 md:h-auto cursor-pointer whitespace-nowrap order-3 bg-background rounded-lg p-2 mt-3 w-full items-center justify-center text-subtitle", children: /* @__PURE__ */ e(D, {}) }) : /* @__PURE__ */ e($, { onClick: r, className: "flex md:hidden h-11 cursor-pointer whitespace-nowrap order-3 bg-primary text-[#fff] rounded-lg p-2 mt-3 w-full items-center justify-center" })
326
+ ] }) : null
327
+ ]
328
+ }
329
+ );
330
+ }
331
+ function me({ hideLogin: r, hideNews: t }) {
332
+ const [l, n] = N(!1);
333
+ if (!l)
334
+ return /* @__PURE__ */ e(re, { onClick: () => n(!0), size: 32, style: { color: "var(--title)" }, className: "md:hidden ml-2.5 bg-module rounded-lg p-[4px] " });
335
+ const a = (o) => {
336
+ o == null || o.preventDefault(), o == null || o.stopPropagation(), n(!1);
337
+ };
338
+ return /* @__PURE__ */ e(te, { open: l, placement: "right", className: "block md:hidden fixed top-0 bottom-0 left-0 right-0 z-1001 bg-background p-2", children: /* @__PURE__ */ s("div", { className: "w-full max-h-full overflow-y-auto p-3 bg-module rounded-lg", children: [
339
+ /* @__PURE__ */ e("div", { className: "flex justify-end items-center p-2", children: /* @__PURE__ */ e(le, { size: 24, style: { color: "var(--title)" }, onClick: (o) => a(o) }) }),
340
+ /* @__PURE__ */ e(z, { onClick: (o) => a(o), hideLogin: r, hideNews: t })
341
+ ] }) });
342
+ }
343
+ function ue({ hideNews: r, hideLogin: t }) {
344
+ return /* @__PURE__ */ s("div", { className: "flex justify-end items-center md:gap-10 z-1001 ", children: [
345
+ /* @__PURE__ */ e(me, { hideLogin: t, hideNews: r }),
346
+ /* @__PURE__ */ e("div", { className: "hidden md:block", children: /* @__PURE__ */ e(z, { hideNews: r, hideLogin: t }) })
347
+ ] });
348
+ }
349
+ function he() {
350
+ const { resolvedTheme: r, theme: t } = f();
351
+ return /* @__PURE__ */ e(p, { suppressHydrationWarning: !0, href: `/?theme=${r || t}`, baseUrl: process.env.NEXT_PUBLIC_ICHAINGO_SEARCH_BASEURL, className: d(
352
+ "w-auto shrink-0 block"
353
+ ), children: /* @__PURE__ */ e(
354
+ S,
355
+ {
356
+ src: "https://cdn.ichaingo.com/uploads/logo_20250526_9aa337bef7.png",
357
+ width: 116,
358
+ height: 32,
359
+ alt: "logo",
360
+ objectFit: "contain",
361
+ priority: !0
362
+ }
363
+ ) });
364
+ }
365
+ function Be({ extra: r, children: t, className: l, hideNews: n, hideLogin: a }) {
366
+ return /* @__PURE__ */ s("div", { className: d("sticky left-0 right-0 top-0 bg-background h-16 z-999", l), children: [
367
+ /* @__PURE__ */ s("div", { className: "md:bg-module h-13 text-center flex flex-wrap justify-between items-center gap-2 px-4", children: [
368
+ /* @__PURE__ */ s("div", { className: "flex items-center flex-1 gap-6", children: [
369
+ /* @__PURE__ */ e(he, {}),
370
+ t
371
+ ] }),
372
+ /* @__PURE__ */ e(ue, { hideNews: n, hideLogin: a })
373
+ ] }),
374
+ r
375
+ ] });
376
+ }
377
+ export {
378
+ C as USER_EVENTS,
379
+ Be as default,
380
+ je as emitUserEvent,
381
+ ce as onUserEvent
382
+ };
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@ichaingo/header",
3
+ "version": "1.1.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ "./package.json": "./package.json",
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "!**/*.tsbuildinfo"
19
+ ],
20
+ "dependencies": {
21
+ "@radix-ui/react-popover": "^1.1.4",
22
+ "js-cookie": "^3.0.5",
23
+ "lucide-react": "^0.539.0",
24
+ "next-intl": "^4.3.4",
25
+ "next-themes": "^0.4.4",
26
+ "rc-drawer": "^1.0.1",
27
+ "react": "^19.1.0",
28
+ "react-dom": "^19.1.0",
29
+ "rollup-plugin-preserve-use-client": "^1.0.0",
30
+ "tailwind-merge": "^2.5.5",
31
+ "next": "15.1.6",
32
+ "@ichaingo/avatar": "1.1.0",
33
+ "@ichaingo/betterLink": "npm:@ichaingo/better-link@1.1.0",
34
+ "@ichaingo/link": "1.1.0",
35
+ "@ichaingo/image": "1.1.0",
36
+ "@ichaingo/auth": "1.1.0",
37
+ "@ichaingo/ui": "1.1.0",
38
+ "@ichaingo/translation": "1.1.0",
39
+ "@ichaingo/i18n": "1.1.0",
40
+ "@ichaingo/providers": "1.1.0",
41
+ "@ichaingo/theme-toggle": "1.1.0"
42
+ },
43
+ "devDependencies": {
44
+ "@types/js-cookie": "^3.0.6"
45
+ }
46
+ }