@ichaingo/header 1.4.43 → 1.4.44

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.
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { jsx as r } from "react/jsx-runtime";
2
+ import { jsx as t } from "react/jsx-runtime";
3
3
  import { useState as m, useMemo as c, useEffect as s } from "react";
4
4
  import p from "@ichaingo/link";
5
5
  import l from "@ichaingo/translation";
@@ -7,25 +7,25 @@ import u from "@ichaingo/better-link";
7
7
  import { useLocale as f } from "next-intl";
8
8
  import g from "@ichaingo/avatar";
9
9
  function v({
10
- userInfo: t
10
+ userInfo: r
11
11
  }) {
12
- const { gotoLogin: e } = u(), [i, a] = m(""), o = f(), n = c(() => t == null ? void 0 : t.id, [t]);
12
+ const { gotoLogin: e } = u(), [i, n] = m(""), o = f(), a = c(() => r == null ? void 0 : r.id, [r]);
13
13
  return s(() => {
14
- a(e({
14
+ n(e({
15
15
  locale: o,
16
16
  redirect: window.location.href
17
17
  }));
18
- }, [o, e]), n ? (
18
+ }, [o, e]), a ? (
19
19
  // userInfo?.profileUrl
20
20
  // https://images.ichatgo.ai/user-profile/100000201.png
21
- /* @__PURE__ */ r(g, { userInfo: t, className: "w-8 h-8" })
22
- ) : /* @__PURE__ */ r(
21
+ /* @__PURE__ */ t(g, { userInfo: r, className: "w-8 h-8 cursor-pointer" })
22
+ ) : /* @__PURE__ */ t(
23
23
  p,
24
24
  {
25
25
  href: i,
26
26
  className: "cursor-pointer text-sm text-white bg-primary py-2 px-3 rounded-lg",
27
27
  replace: !0,
28
- children: /* @__PURE__ */ r(l, { value: "signIn", parentKey: "account" })
28
+ children: /* @__PURE__ */ t(l, { value: "signIn", parentKey: "account" })
29
29
  }
30
30
  );
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichaingo/header",
3
- "version": "1.4.43",
3
+ "version": "1.4.44",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -29,20 +29,20 @@
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/auth": "1.4.43",
33
- "@ichaingo/avatar": "1.4.43",
34
- "@ichaingo/better-link": "1.4.43",
35
- "@ichaingo/image": "1.4.43",
36
- "@ichaingo/theme-toggle": "1.4.43",
37
- "@ichaingo/i18n": "1.4.43",
38
- "@ichaingo/request": "1.4.43",
39
- "@ichaingo/ui": "1.4.43",
40
- "@ichaingo/with-login": "1.4.43",
41
- "@ichaingo/link": "1.4.43",
42
- "@ichaingo/translation": "1.4.43",
43
- "@ichaingo/iconfont": "1.4.43",
44
- "@ichaingo/tooltip": "1.4.43",
45
- "@ichaingo/providers": "1.4.43"
32
+ "@ichaingo/auth": "1.4.44",
33
+ "@ichaingo/better-link": "1.4.44",
34
+ "@ichaingo/image": "1.4.44",
35
+ "@ichaingo/avatar": "1.4.44",
36
+ "@ichaingo/link": "1.4.44",
37
+ "@ichaingo/translation": "1.4.44",
38
+ "@ichaingo/providers": "1.4.44",
39
+ "@ichaingo/i18n": "1.4.44",
40
+ "@ichaingo/iconfont": "1.4.44",
41
+ "@ichaingo/theme-toggle": "1.4.44",
42
+ "@ichaingo/tooltip": "1.4.44",
43
+ "@ichaingo/request": "1.4.44",
44
+ "@ichaingo/with-login": "1.4.44",
45
+ "@ichaingo/ui": "1.4.44"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/js-cookie": "^3.0.6"