@ichaingo/header 1.3.79 → 1.3.80
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.js +69 -68
- package/package.json +12 -11
package/dist/index.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as e, jsxs as a, Fragment as k } from "react/jsx-runtime";
|
|
3
3
|
import p from "@ichaingo/link";
|
|
4
|
-
import { DropdownMenu as
|
|
4
|
+
import { DropdownMenu as D, DropdownMenuTrigger as z, DropdownMenuContent as O, DropdownMenuGroup as G, DropdownMenuItem as X } from "@ichaingo/ui/dropdown-menu";
|
|
5
5
|
import m from "@ichaingo/translation";
|
|
6
|
-
import { useState as
|
|
6
|
+
import { useState as b, useMemo as M, useEffect as x, useCallback as w } from "react";
|
|
7
7
|
import N from "@ichaingo/better-link";
|
|
8
|
-
import { useLocale as
|
|
8
|
+
import { useLocale as v, useTranslations as U } from "next-intl";
|
|
9
9
|
import y from "@ichaingo/avatar";
|
|
10
|
-
import { logout as
|
|
10
|
+
import { logout as K, fetchUserProfile as $ } from "@ichaingo/auth";
|
|
11
11
|
import { twMerge as c } from "tailwind-merge";
|
|
12
|
-
import { Accordion as
|
|
13
|
-
import
|
|
12
|
+
import { Accordion as A, AccordionItem as C, AccordionTrigger as T, AccordionContent as P } from "@ichaingo/ui/accordion";
|
|
13
|
+
import F from "@ichaingo/iconfont";
|
|
14
14
|
import { Popover as W, PopoverTrigger as q, PopoverContent as Q } from "@ichaingo/ui/popover";
|
|
15
15
|
import { PopoverArrow as V } from "@radix-ui/react-popover";
|
|
16
16
|
import { useSearchParams as J, usePathname as j } from "next/navigation";
|
|
17
17
|
import Y from "@ichaingo/theme-toggle";
|
|
18
18
|
import Z from "rc-drawer";
|
|
19
19
|
import { Menu as I, X as ee } from "lucide-react";
|
|
20
|
-
|
|
20
|
+
import re from "@ichaingo/image";
|
|
21
|
+
function te({
|
|
21
22
|
userInfo: t
|
|
22
23
|
}) {
|
|
23
|
-
const { gotoLogin: r } = N(), [n, l] =
|
|
24
|
+
const { gotoLogin: r } = N(), [n, l] = b(""), s = v(), i = M(() => t == null ? void 0 : t.id, [t]);
|
|
24
25
|
return x(() => {
|
|
25
26
|
l(r({
|
|
26
|
-
locale:
|
|
27
|
+
locale: s,
|
|
27
28
|
redirect: window.location.href
|
|
28
29
|
}));
|
|
29
|
-
}, [
|
|
30
|
+
}, [s, r]), i ? (
|
|
30
31
|
// userInfo?.profileUrl
|
|
31
32
|
// https://images.ichaingo.com/user-profile/100000201.png
|
|
32
33
|
/* @__PURE__ */ e(y, { userInfo: t, className: "w-8 h-8" })
|
|
@@ -40,9 +41,9 @@ function re({
|
|
|
40
41
|
}
|
|
41
42
|
);
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
+
function R({ className: t }) {
|
|
44
45
|
const r = w(async () => {
|
|
45
|
-
await
|
|
46
|
+
await K();
|
|
46
47
|
}, []);
|
|
47
48
|
return /* @__PURE__ */ e(
|
|
48
49
|
"button",
|
|
@@ -53,14 +54,14 @@ function B({ className: t }) {
|
|
|
53
54
|
}
|
|
54
55
|
);
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
+
function le({
|
|
57
58
|
list: t,
|
|
58
59
|
userInfo: r,
|
|
59
60
|
onClick: n
|
|
60
61
|
}) {
|
|
61
|
-
return /* @__PURE__ */ a(
|
|
62
|
-
/* @__PURE__ */ e(
|
|
63
|
-
/* @__PURE__ */ e(
|
|
62
|
+
return /* @__PURE__ */ a(D, { children: [
|
|
63
|
+
/* @__PURE__ */ e(z, { className: "outline-none cursor-pointer", children: /* @__PURE__ */ e(te, { userInfo: r }) }),
|
|
64
|
+
/* @__PURE__ */ e(O, { align: "end", className: "z-2000 w-75 p-0 border-transparent outline-none border border-stroke", children: /* @__PURE__ */ a(G, { className: "flex flex-col gap-2 p-3 bg-module rounded-md", children: [
|
|
64
65
|
/* @__PURE__ */ e("div", { className: "flex flex-col gap-3 w-full bg-background rounded-lg p-2", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
65
66
|
/* @__PURE__ */ e(y, { userInfo: r, className: "w-8 h-8" }),
|
|
66
67
|
/* @__PURE__ */ a("div", { className: "flex flex-col overflow-hidden", children: [
|
|
@@ -68,23 +69,23 @@ function te({
|
|
|
68
69
|
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground w-full truncate", children: (r == null ? void 0 : r.email) || (r == null ? void 0 : r.walletAddress) })
|
|
69
70
|
] })
|
|
70
71
|
] }) }),
|
|
71
|
-
t.map((l) => /* @__PURE__ */ e(
|
|
72
|
+
t.map((l) => /* @__PURE__ */ e(X, { 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: l.name === "logout" ? /* @__PURE__ */ e(R, { className: "flex-1 flex py-3 border-t border-stroke w-full px-2 hover:bg-background" }) : /* @__PURE__ */ e(p, { href: `/${l.href}`, 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: n, children: /* @__PURE__ */ e(m, { value: l.name, parentKey: "account" }) }) }) }, l.name))
|
|
72
73
|
] }) })
|
|
73
74
|
] });
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function ne({
|
|
76
77
|
list: t,
|
|
77
78
|
userInfo: r,
|
|
78
79
|
onClick: n
|
|
79
80
|
}) {
|
|
80
81
|
return /* @__PURE__ */ e(
|
|
81
|
-
|
|
82
|
+
A,
|
|
82
83
|
{
|
|
83
84
|
type: "single",
|
|
84
85
|
collapsible: !0,
|
|
85
86
|
className: "w-full",
|
|
86
87
|
defaultValue: "",
|
|
87
|
-
children: /* @__PURE__ */ a(
|
|
88
|
+
children: /* @__PURE__ */ a(C, { value: "item-1", className: "p-0 w-full border border-none", children: [
|
|
88
89
|
/* @__PURE__ */ e(T, { 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__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
89
90
|
/* @__PURE__ */ e(y, { userInfo: r, className: "w-8 h-8 shrink-0" }),
|
|
90
91
|
/* @__PURE__ */ a("div", { className: "flex flex-col overflow-hidden", children: [
|
|
@@ -106,16 +107,16 @@ function le({
|
|
|
106
107
|
}
|
|
107
108
|
function S({ onClick: t = () => {
|
|
108
109
|
}, className: r }) {
|
|
109
|
-
const n =
|
|
110
|
+
const n = v(), { gotoLogin: l } = N(), [s, i] = b("");
|
|
110
111
|
return x(() => {
|
|
111
|
-
|
|
112
|
+
i(l({
|
|
112
113
|
locale: n,
|
|
113
114
|
redirect: window.location.href
|
|
114
115
|
}));
|
|
115
116
|
}, [n, l]), /* @__PURE__ */ e(
|
|
116
117
|
p,
|
|
117
118
|
{
|
|
118
|
-
href:
|
|
119
|
+
href: s,
|
|
119
120
|
onClick: t,
|
|
120
121
|
baseUrl: process.env.NEXT_PUBLIC_AUTH_URL,
|
|
121
122
|
replace: !0,
|
|
@@ -149,20 +150,20 @@ const L = [
|
|
|
149
150
|
href: void 0
|
|
150
151
|
}
|
|
151
152
|
];
|
|
152
|
-
function
|
|
153
|
+
function ae({ onClick: t = (l) => {
|
|
153
154
|
}, className: r, userInfo: n }) {
|
|
154
155
|
return n != null && n.id ? /* @__PURE__ */ a(k, { children: [
|
|
155
|
-
/* @__PURE__ */ e("div", { className: c("hidden md:flex items-center", r), children: /* @__PURE__ */ e(
|
|
156
|
-
/* @__PURE__ */ e("div", { className: c("block md:hidden w-full", r), children: /* @__PURE__ */ e(
|
|
156
|
+
/* @__PURE__ */ e("div", { className: c("hidden md:flex items-center", r), children: /* @__PURE__ */ e(le, { list: L, userInfo: n, onClick: t }) }),
|
|
157
|
+
/* @__PURE__ */ e("div", { className: c("block md:hidden w-full", r), children: /* @__PURE__ */ e(ne, { list: L.filter((l) => l.href), userInfo: n, onClick: t }) })
|
|
157
158
|
] }) : /* @__PURE__ */ e(S, { onClick: t, className: c(
|
|
158
159
|
"hidden md:flex cursor-pointer text-sm text-white bg-primary py-2 px-3 rounded-lg",
|
|
159
160
|
"order-3"
|
|
160
161
|
) });
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
+
function E({ onClick: t = () => {
|
|
163
164
|
} }) {
|
|
164
165
|
var g;
|
|
165
|
-
const r =
|
|
166
|
+
const r = v(), n = J(), l = U("lang"), s = U("setting"), i = [
|
|
166
167
|
{ name: l("en"), lang: "en" },
|
|
167
168
|
{ name: l("zh-hant"), lang: "zh-hant" },
|
|
168
169
|
{ name: l("zh-hans"), lang: "zh-hans" },
|
|
@@ -176,12 +177,12 @@ function _({ onClick: t = () => {
|
|
|
176
177
|
[f, r, n]
|
|
177
178
|
);
|
|
178
179
|
return /* @__PURE__ */ a("div", { className: "text-sm gap-2 flex flex-col justify-start items-start md:py-2", children: [
|
|
179
|
-
/* @__PURE__ */ e("div", { className: "flex w-full justify-between items-center", children: /* @__PURE__ */ e(
|
|
180
|
+
/* @__PURE__ */ e("div", { className: "flex w-full justify-between items-center", children: /* @__PURE__ */ e(A, { type: "single", className: "flex-1", collapsible: !0, children: /* @__PURE__ */ a(C, { value: r, className: "border-0", children: [
|
|
180
181
|
/* @__PURE__ */ e(T, { 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__ */ a("div", { className: "flex w-full justify-between items-center", children: [
|
|
181
|
-
/* @__PURE__ */ e("span", { className: "text-title", children:
|
|
182
|
-
/* @__PURE__ */ e("span", { className: "text-title", children: (g =
|
|
182
|
+
/* @__PURE__ */ e("span", { className: "text-title", children: s("language") }),
|
|
183
|
+
/* @__PURE__ */ e("span", { className: "text-title", children: (g = i.find((d) => d.lang === r)) == null ? void 0 : g.name })
|
|
183
184
|
] }) }),
|
|
184
|
-
/* @__PURE__ */ e(P, { className: "bg-background mt-3 rounded-lg flex flex-col gap-2", children:
|
|
185
|
+
/* @__PURE__ */ e(P, { className: "bg-background mt-3 rounded-lg flex flex-col gap-2", children: i.map((d) => /* @__PURE__ */ e(
|
|
185
186
|
p,
|
|
186
187
|
{
|
|
187
188
|
prefetch: !1,
|
|
@@ -198,16 +199,16 @@ function _({ onClick: t = () => {
|
|
|
198
199
|
)) })
|
|
199
200
|
] }) }) }),
|
|
200
201
|
/* @__PURE__ */ a("div", { className: "bg-background p-2 rounded-lg h-11 md:h-auto flex w-full justify-between items-center", children: [
|
|
201
|
-
/* @__PURE__ */ e("div", { children:
|
|
202
|
+
/* @__PURE__ */ e("div", { children: s("theme") }),
|
|
202
203
|
/* @__PURE__ */ e(Y, {})
|
|
203
204
|
] })
|
|
204
205
|
] });
|
|
205
206
|
}
|
|
206
|
-
function
|
|
207
|
+
function ie({ onClick: t = () => {
|
|
207
208
|
} }) {
|
|
208
209
|
return /* @__PURE__ */ a("div", { className: "w-full md:w-auto order-3 md:order-0", children: [
|
|
209
210
|
/* @__PURE__ */ e("div", { className: "hidden md:flex items-center bg-module rounded-lg p-1.5 cursor-pointer", children: /* @__PURE__ */ a(W, { children: [
|
|
210
|
-
/* @__PURE__ */ e(q, { asChild: !0, children: /* @__PURE__ */ e(
|
|
211
|
+
/* @__PURE__ */ e(q, { asChild: !0, children: /* @__PURE__ */ e(F, { type: "icon-setting", className: "text-2xl" }) }),
|
|
211
212
|
/* @__PURE__ */ a(
|
|
212
213
|
Q,
|
|
213
214
|
{
|
|
@@ -215,20 +216,20 @@ function ae({ onClick: t = () => {
|
|
|
215
216
|
className: "relative top-[10px] rounded-xl border border-stroke bg-module p-2 w-72 z-1000",
|
|
216
217
|
children: [
|
|
217
218
|
/* @__PURE__ */ e(V, { className: "fill-module" }),
|
|
218
|
-
/* @__PURE__ */ e(
|
|
219
|
+
/* @__PURE__ */ e(E, { onClick: t })
|
|
219
220
|
]
|
|
220
221
|
}
|
|
221
222
|
)
|
|
222
223
|
] }) }),
|
|
223
|
-
/* @__PURE__ */ e("div", { className: "md:hidden", children: /* @__PURE__ */ e(
|
|
224
|
+
/* @__PURE__ */ e("div", { className: "md:hidden", children: /* @__PURE__ */ e(E, {}) })
|
|
224
225
|
] });
|
|
225
226
|
}
|
|
226
|
-
const
|
|
227
|
+
const _ = {
|
|
227
228
|
PROFILE_UPDATED: "user-profile-updated",
|
|
228
229
|
LOGGED_IN: "user-logged-in",
|
|
229
230
|
LOGGED_OUT: "user-logged-out"
|
|
230
231
|
};
|
|
231
|
-
function
|
|
232
|
+
function Pe(t, r) {
|
|
232
233
|
const n = new CustomEvent(t, { detail: r });
|
|
233
234
|
window.dispatchEvent(n);
|
|
234
235
|
}
|
|
@@ -238,12 +239,12 @@ function se(t, r) {
|
|
|
238
239
|
};
|
|
239
240
|
return window.addEventListener(t, n), () => window.removeEventListener(t, n);
|
|
240
241
|
}
|
|
241
|
-
function
|
|
242
|
+
function oe(t, r) {
|
|
242
243
|
window.removeEventListener(t, r);
|
|
243
244
|
}
|
|
244
|
-
function
|
|
245
|
+
function B({ onClick: t = () => {
|
|
245
246
|
}, hideNews: r = !1, hideLogin: n = !1 }) {
|
|
246
|
-
const { gotoAISQL: l, gotoChat:
|
|
247
|
+
const { gotoAISQL: l, gotoChat: s } = N(), i = v(), f = j(), [h, g] = b(null), d = [
|
|
247
248
|
{
|
|
248
249
|
baseUrl: process.env.NEXT_PUBLIC_ICHAINGO_SEARCH_BASEURL,
|
|
249
250
|
href: "/explorer",
|
|
@@ -252,7 +253,7 @@ function H({ onClick: t = () => {
|
|
|
252
253
|
},
|
|
253
254
|
{
|
|
254
255
|
baseUrl: process.env.NEXT_PUBLIC_CHAT_URL,
|
|
255
|
-
href:
|
|
256
|
+
href: s({ locale: i }),
|
|
256
257
|
key: "/chat",
|
|
257
258
|
label: /* @__PURE__ */ a("span", { className: "whitespace-nowrap leading-11 md:leading-[34px]", children: [
|
|
258
259
|
/* @__PURE__ */ e("span", { role: "img", "aria-label": "hot", children: "🔥" }),
|
|
@@ -261,7 +262,7 @@ function H({ onClick: t = () => {
|
|
|
261
262
|
},
|
|
262
263
|
{
|
|
263
264
|
baseUrl: process.env.NEXT_PUBLIC_CHAT_URL,
|
|
264
|
-
href: l({ locale:
|
|
265
|
+
href: l({ locale: i }),
|
|
265
266
|
key: "/sql",
|
|
266
267
|
label: "AISQL"
|
|
267
268
|
},
|
|
@@ -284,14 +285,14 @@ function H({ onClick: t = () => {
|
|
|
284
285
|
label: /* @__PURE__ */ e(m, { value: "ranking", parentKey: "menu" })
|
|
285
286
|
}
|
|
286
287
|
].filter((o) => r ? !["/explorer", "/chat", "/sql"].includes(o.key) : !0), u = w(() => {
|
|
287
|
-
|
|
288
|
+
$().then((o) => {
|
|
288
289
|
g(o);
|
|
289
290
|
});
|
|
290
291
|
}, []);
|
|
291
292
|
return x(() => {
|
|
292
293
|
u();
|
|
293
|
-
}, [u]), x(() => (se(
|
|
294
|
-
|
|
294
|
+
}, [u]), x(() => (se(_.PROFILE_UPDATED, u), () => {
|
|
295
|
+
oe(_.PROFILE_UPDATED, u);
|
|
295
296
|
}), [u]), /* @__PURE__ */ a(
|
|
296
297
|
"nav",
|
|
297
298
|
{
|
|
@@ -309,41 +310,41 @@ function H({ onClick: t = () => {
|
|
|
309
310
|
"md:flex-row md:items-center md:w-auto md:h-[34px] md:leading-[34px] md:gap-6",
|
|
310
311
|
"order-2 md:order-0"
|
|
311
312
|
),
|
|
312
|
-
children: d.map((o,
|
|
313
|
+
children: d.map((o, H) => /* @__PURE__ */ e("li", { className: c("w-full md:w-auto h-11 md:h-auto cursor-pointer", f.includes(o.key) && "border-b-2 border-primary text-primary "), children: /* @__PURE__ */ e(p, { href: o.href, onClick: t, className: "h-full flex items-center justify-start", baseUrl: o.baseUrl, suppressHydrationWarning: !0, children: o.label }) }, H))
|
|
313
314
|
}
|
|
314
315
|
),
|
|
315
|
-
/* @__PURE__ */ e(
|
|
316
|
+
/* @__PURE__ */ e(ie, { onClick: t }),
|
|
316
317
|
!f.includes("/login") && !n ? /* @__PURE__ */ a(k, { children: [
|
|
317
|
-
/* @__PURE__ */ e(
|
|
318
|
-
h != null && h.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(
|
|
318
|
+
/* @__PURE__ */ e(ae, { onClick: t, userInfo: h }),
|
|
319
|
+
h != null && h.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(R, {}) }) : /* @__PURE__ */ e(S, { onClick: t, 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" })
|
|
319
320
|
] }) : null
|
|
320
321
|
]
|
|
321
322
|
}
|
|
322
323
|
);
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
-
const [n, l] =
|
|
325
|
+
function ce({ hideLogin: t, hideNews: r }) {
|
|
326
|
+
const [n, l] = b(!1);
|
|
326
327
|
if (!n)
|
|
327
328
|
return /* @__PURE__ */ e(I, { onClick: () => l(!0), size: 32, style: { color: "var(--title)" }, className: "md:hidden ml-2.5 bg-module rounded-lg p-[4px] " });
|
|
328
|
-
const
|
|
329
|
-
|
|
329
|
+
const s = (i) => {
|
|
330
|
+
i == null || i.preventDefault(), i == null || i.stopPropagation(), l(!1);
|
|
330
331
|
};
|
|
331
332
|
return /* @__PURE__ */ e(Z, { open: n, placement: "right", className: "block md:hidden fixed top-0 bottom-0 left-0 right-0 z-1001 bg-background p-2", children: /* @__PURE__ */ a("div", { className: "w-full max-h-full overflow-y-auto p-3 bg-module rounded-lg", children: [
|
|
332
|
-
/* @__PURE__ */ e("div", { className: "flex justify-end items-center p-2", children: /* @__PURE__ */ e(ee, { size: 24, style: { color: "var(--title)" }, onClick: (
|
|
333
|
-
/* @__PURE__ */ e(
|
|
333
|
+
/* @__PURE__ */ e("div", { className: "flex justify-end items-center p-2", children: /* @__PURE__ */ e(ee, { size: 24, style: { color: "var(--title)" }, onClick: (i) => s(i) }) }),
|
|
334
|
+
/* @__PURE__ */ e(B, { onClick: (i) => s(i), hideLogin: t, hideNews: r })
|
|
334
335
|
] }) });
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
+
function de({ hideNews: t, hideLogin: r }) {
|
|
337
338
|
return /* @__PURE__ */ a("div", { className: "flex justify-end items-center md:gap-10 z-1001 ", children: [
|
|
338
|
-
/* @__PURE__ */ e(
|
|
339
|
-
/* @__PURE__ */ e("div", { className: "hidden md:block", children: /* @__PURE__ */ e(
|
|
339
|
+
/* @__PURE__ */ e(ce, { hideLogin: r, hideNews: t }),
|
|
340
|
+
/* @__PURE__ */ e("div", { className: "hidden md:block", children: /* @__PURE__ */ e(B, { hideNews: t, hideLogin: r }) })
|
|
340
341
|
] });
|
|
341
342
|
}
|
|
342
|
-
function
|
|
343
|
+
function me() {
|
|
343
344
|
return /* @__PURE__ */ e(p, { suppressHydrationWarning: !0, href: "/", baseUrl: process.env.NEXT_PUBLIC_ICHAINGO_SEARCH_BASEURL, className: c(
|
|
344
345
|
"w-auto shrink-0 block"
|
|
345
346
|
), children: /* @__PURE__ */ e(
|
|
346
|
-
|
|
347
|
+
re,
|
|
347
348
|
{
|
|
348
349
|
src: "https://cdn.ichaingo.com/uploads/logo_20250526_9aa337bef7.png",
|
|
349
350
|
width: 116,
|
|
@@ -354,21 +355,21 @@ function de() {
|
|
|
354
355
|
}
|
|
355
356
|
) });
|
|
356
357
|
}
|
|
357
|
-
function
|
|
358
|
+
function je({ extra: t, children: r, className: n, hideNews: l, hideLogin: s }) {
|
|
358
359
|
return /* @__PURE__ */ a("div", { className: c("sticky left-0 right-0 top-0 bg-background h-16 z-999", n), children: [
|
|
359
360
|
/* @__PURE__ */ a("div", { className: "md:bg-module h-13 text-center flex flex-wrap justify-between items-center gap-2 px-4", children: [
|
|
360
361
|
/* @__PURE__ */ a("div", { className: "flex items-center flex-1 gap-6", children: [
|
|
361
|
-
/* @__PURE__ */ e(
|
|
362
|
+
/* @__PURE__ */ e(me, {}),
|
|
362
363
|
r
|
|
363
364
|
] }),
|
|
364
|
-
/* @__PURE__ */ e(
|
|
365
|
+
/* @__PURE__ */ e(de, { hideNews: l, hideLogin: s })
|
|
365
366
|
] }),
|
|
366
367
|
t
|
|
367
368
|
] });
|
|
368
369
|
}
|
|
369
370
|
export {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
371
|
+
_ as USER_EVENTS,
|
|
372
|
+
je as default,
|
|
373
|
+
Pe as emitUserEvent,
|
|
373
374
|
se as onUserEvent
|
|
374
375
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ichaingo/header",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.80",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -29,16 +29,17 @@
|
|
|
29
29
|
"rollup-plugin-preserve-use-client": "^1.0.0",
|
|
30
30
|
"tailwind-merge": "^2.5.5",
|
|
31
31
|
"next": "15.1.6",
|
|
32
|
-
"@ichaingo/link": "1.3.
|
|
33
|
-
"@ichaingo/
|
|
34
|
-
"@ichaingo/
|
|
35
|
-
"@ichaingo/
|
|
36
|
-
"@ichaingo/
|
|
37
|
-
"@ichaingo/
|
|
38
|
-
"@ichaingo/i18n": "1.3.
|
|
39
|
-
"@ichaingo/
|
|
40
|
-
"@ichaingo/
|
|
41
|
-
"@ichaingo/
|
|
32
|
+
"@ichaingo/link": "1.3.80",
|
|
33
|
+
"@ichaingo/translation": "1.3.80",
|
|
34
|
+
"@ichaingo/image": "1.3.80",
|
|
35
|
+
"@ichaingo/ui": "1.3.80",
|
|
36
|
+
"@ichaingo/avatar": "1.3.80",
|
|
37
|
+
"@ichaingo/theme-toggle": "1.3.80",
|
|
38
|
+
"@ichaingo/i18n": "1.3.80",
|
|
39
|
+
"@ichaingo/auth": "1.3.80",
|
|
40
|
+
"@ichaingo/better-link": "1.3.80",
|
|
41
|
+
"@ichaingo/iconfont": "1.3.80",
|
|
42
|
+
"@ichaingo/providers": "1.3.80"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@types/js-cookie": "^3.0.6"
|