@ichaingo/header 1.3.87 → 1.3.89

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 CHANGED
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "tailwind-merge";
3
3
  import "@ichaingo/request";
4
+ import { U as a, H as i, e as p, o as E } from "./index-CeUO6r-I.js";
4
5
  import "next/dynamic";
5
- import { U as a, H as i, e as p, o as E } from "./index-Bja6uGMm.js";
6
6
  export {
7
7
  a as USER_EVENTS,
8
8
  i as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichaingo/header",
3
- "version": "1.3.87",
3
+ "version": "1.3.89",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -29,18 +29,18 @@
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/image": "1.3.87",
33
- "@ichaingo/better-link": "1.3.87",
34
- "@ichaingo/auth": "1.3.87",
35
- "@ichaingo/translation": "1.3.87",
36
- "@ichaingo/ui": "1.3.87",
37
- "@ichaingo/avatar": "1.3.87",
38
- "@ichaingo/link": "1.3.87",
39
- "@ichaingo/providers": "1.3.87",
40
- "@ichaingo/request": "1.3.87",
41
- "@ichaingo/i18n": "1.3.87",
42
- "@ichaingo/iconfont": "1.3.87",
43
- "@ichaingo/theme-toggle": "1.3.87"
32
+ "@ichaingo/image": "1.3.89",
33
+ "@ichaingo/link": "1.3.89",
34
+ "@ichaingo/better-link": "1.3.89",
35
+ "@ichaingo/auth": "1.3.89",
36
+ "@ichaingo/avatar": "1.3.89",
37
+ "@ichaingo/ui": "1.3.89",
38
+ "@ichaingo/providers": "1.3.89",
39
+ "@ichaingo/iconfont": "1.3.89",
40
+ "@ichaingo/translation": "1.3.89",
41
+ "@ichaingo/request": "1.3.89",
42
+ "@ichaingo/i18n": "1.3.89",
43
+ "@ichaingo/theme-toggle": "1.3.89"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/js-cookie": "^3.0.6"
@@ -1,54 +0,0 @@
1
- import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
- import { twMerge as d } from "tailwind-merge";
3
- import l from "@ichaingo/request";
4
- import c from "next/dynamic";
5
- const g = {
6
- PROFILE_UPDATED: "user-profile-updated",
7
- LOGGED_IN: "user-logged-in",
8
- LOGGED_OUT: "user-logged-out"
9
- };
10
- function w(e, t) {
11
- const s = new CustomEvent(e, { detail: t });
12
- window.dispatchEvent(s);
13
- }
14
- function h(e, t) {
15
- const s = (r) => {
16
- t(r.detail);
17
- };
18
- return window.addEventListener(e, s), () => window.removeEventListener(e, s);
19
- }
20
- function U(e, t) {
21
- window.removeEventListener(e, t);
22
- }
23
- const m = c(() => import("./Right-BbiUUbV1.js"), { ssr: !1 }), u = c(() => import("./Logo-BxSWGm8n.js"), { ssr: !1 });
24
- async function x({ extra: e, children: t, className: s, hideNews: r, hideLogin: i }) {
25
- let n = {
26
- data: {}
27
- };
28
- try {
29
- n = await l.get("/v2/users/profile", {
30
- baseURL: process.env.ICHAINGO_AUTH_INNER_API_URL
31
- });
32
- } catch {
33
- n = {
34
- data: {}
35
- };
36
- }
37
- return /* @__PURE__ */ o("div", { className: d("sticky left-0 right-0 top-0 bg-background h-16 z-999", s), children: [
38
- /* @__PURE__ */ o("div", { className: "md:bg-module h-13 text-center flex flex-wrap justify-between items-center gap-2 px-4", children: [
39
- /* @__PURE__ */ o("div", { className: "flex items-center flex-1 gap-6", children: [
40
- /* @__PURE__ */ a(u, {}),
41
- t
42
- ] }),
43
- /* @__PURE__ */ a(m, { hideNews: r, hideLogin: i, user: (n == null ? void 0 : n.data) || {} })
44
- ] }),
45
- e
46
- ] });
47
- }
48
- export {
49
- x as H,
50
- g as U,
51
- U as c,
52
- w as e,
53
- h as o
54
- };