@ichaingo/header 1.4.69 → 1.4.73
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 +4 -4
- package/package.json +14 -13
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as r, Fragment as x, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { twMerge as i } from "tailwind-merge";
|
|
3
3
|
import k from "@ichaingo/request";
|
|
4
|
-
import { cookies as g } from "next/headers";
|
|
5
4
|
import m, { HeaderSource as a } from "./lib/Right.js";
|
|
6
|
-
import
|
|
5
|
+
import g from "./lib/Logo.js";
|
|
6
|
+
import { cookies as E } from "next/headers";
|
|
7
7
|
import { USER_EVENTS as _, emitUserEvent as w, onUserEvent as j } from "./lib/events.js";
|
|
8
8
|
async function N({ extra: l, children: p, className: f, hideNews: d, hideLogin: c, source: t = a.DEFAULT }) {
|
|
9
9
|
var n;
|
|
@@ -11,7 +11,7 @@ async function N({ extra: l, children: p, className: f, hideNews: d, hideLogin:
|
|
|
11
11
|
data: {}
|
|
12
12
|
};
|
|
13
13
|
try {
|
|
14
|
-
const s = (n = (await
|
|
14
|
+
const s = (n = (await E()).get("refresh_token")) == null ? void 0 : n.value;
|
|
15
15
|
if (typeof s < "u" && s !== "")
|
|
16
16
|
try {
|
|
17
17
|
e = await k.get("/v2/users/profile", {
|
|
@@ -27,7 +27,7 @@ async function N({ extra: l, children: p, className: f, hideNews: d, hideLogin:
|
|
|
27
27
|
/* @__PURE__ */ r("div", { className: i("sticky left-0 right-0 top-0 bg-background h-16 z-999", t === a.CHAT ? "hidden md:block" : "block", f), children: [
|
|
28
28
|
/* @__PURE__ */ r("div", { className: "md:bg-module h-13 text-center flex flex-wrap justify-between items-center gap-2 px-4", children: [
|
|
29
29
|
/* @__PURE__ */ r("div", { className: i("items-center flex-1 gap-6", t === a.CHAT ? "hidden md:flex" : "flex"), children: [
|
|
30
|
-
/* @__PURE__ */ o(
|
|
30
|
+
/* @__PURE__ */ o(g, {}),
|
|
31
31
|
p
|
|
32
32
|
] }),
|
|
33
33
|
/* @__PURE__ */ o(m, { hideNews: d, hideLogin: c, user: (e == null ? void 0 : e.data) || {} })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ichaingo/header",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.73",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -27,18 +27,19 @@
|
|
|
27
27
|
"react-dom": "^19.1.0",
|
|
28
28
|
"tailwind-merge": "^2.5.5",
|
|
29
29
|
"next": "15.1.6",
|
|
30
|
-
"@ichaingo/
|
|
31
|
-
"@ichaingo/
|
|
32
|
-
"@ichaingo/
|
|
33
|
-
"@ichaingo/
|
|
34
|
-
"@ichaingo/
|
|
35
|
-
"@ichaingo/
|
|
36
|
-
"@ichaingo/request": "1.4.
|
|
37
|
-
"@ichaingo/with-login": "1.4.
|
|
38
|
-
"@ichaingo/
|
|
39
|
-
"@ichaingo/ui": "1.4.
|
|
40
|
-
"@ichaingo/iconfont": "1.4.
|
|
41
|
-
"@ichaingo/
|
|
30
|
+
"@ichaingo/auth": "1.4.73",
|
|
31
|
+
"@ichaingo/better-link": "1.4.73",
|
|
32
|
+
"@ichaingo/image": "1.4.73",
|
|
33
|
+
"@ichaingo/link": "1.4.73",
|
|
34
|
+
"@ichaingo/theme-toggle": "1.4.73",
|
|
35
|
+
"@ichaingo/avatar": "1.4.73",
|
|
36
|
+
"@ichaingo/request": "1.4.73",
|
|
37
|
+
"@ichaingo/with-login": "1.4.73",
|
|
38
|
+
"@ichaingo/token": "1.4.73",
|
|
39
|
+
"@ichaingo/ui": "1.4.73",
|
|
40
|
+
"@ichaingo/iconfont": "1.4.73",
|
|
41
|
+
"@ichaingo/translation": "1.4.73",
|
|
42
|
+
"@ichaingo/tooltip": "1.4.73"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"rollup-plugin-preserve-use-client": "^1.0.0",
|