@0xchain/footer 1.1.0-beta.5 → 1.1.0-beta.50

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-present 0xchain
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -1,52 +1,53 @@
1
1
  'use client';
2
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
3
- import c from "@0xchain/image";
4
- import a from "@0xchain/link";
5
- import { useLocale as s } from "next-intl";
6
- import l from "@0xchain/translation";
7
- import { Mail as i } from "lucide-react";
8
- import { useState as n, useEffect as f } from "react";
9
- function d() {
10
- const [t, o] = n("");
11
- return f(() => {
12
- o((/* @__PURE__ */ new Date()).getFullYear().toString());
13
- }, []), t;
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import ImageBar from "@0xchain/image";
4
+ import LinkBar from "@0xchain/link";
5
+ import { useLocale } from "@0xchain/i18n/react";
6
+ import Translation from "@0xchain/translation";
7
+ import { Mail } from "lucide-react";
8
+ import { useState, useEffect } from "react";
9
+ function Year() {
10
+ const [year, setYear] = useState("");
11
+ useEffect(() => {
12
+ setYear((/* @__PURE__ */ new Date()).getFullYear().toString());
13
+ }, []);
14
+ return year;
14
15
  }
15
- function g() {
16
- const t = s();
17
- return /* @__PURE__ */ e("footer", { className: "md:bg-card text-xs w-full p-3 mt-3", children: /* @__PURE__ */ r("div", { className: "max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3", children: [
18
- /* @__PURE__ */ r("div", { className: "w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between", children: [
19
- /* @__PURE__ */ e(c, { src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2025/11/26/6926f275c68ed.png`, width: 116, height: 32, objectFit: "contain" }),
20
- /* @__PURE__ */ r("div", { className: "text-muted-foreground", children: [
16
+ function Footer() {
17
+ const locale = useLocale();
18
+ return /* @__PURE__ */ jsx("footer", { className: "md:bg-card text-xs w-full p-3 mt-3", children: /* @__PURE__ */ jsxs("div", { className: "max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3", children: [
19
+ /* @__PURE__ */ jsxs("div", { className: "w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between", children: [
20
+ /* @__PURE__ */ jsx(ImageBar, { src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2025/11/26/6926f275c68ed.png`, width: 116, height: 32, objectFit: "contain" }),
21
+ /* @__PURE__ */ jsxs("div", { className: "text-muted-foreground", children: [
21
22
  "© ",
22
- d(),
23
+ Year(),
23
24
  " iChatGo ",
24
- /* @__PURE__ */ e(l, { value: "allRightsReserved", parentKey: "footer" })
25
+ /* @__PURE__ */ jsx(Translation, { value: "allRightsReserved", parentKey: "footer" })
25
26
  ] })
26
27
  ] }),
27
- /* @__PURE__ */ r("div", { className: "flex flex-col md:flex-row justify-between shrink-0 w-full md:w-1/2", children: [
28
- /* @__PURE__ */ r("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
29
- /* @__PURE__ */ e("div", { className: "text-foreground", children: /* @__PURE__ */ e(l, { value: "product", parentKey: "footer" }) }),
30
- /* @__PURE__ */ e("div", { className: "text-muted-foreground flex flex-col gap-3", children: /* @__PURE__ */ e(a, { href: "/token-list", baseUrl: process.env.NEXT_PUBLIC_BASE_URL, children: /* @__PURE__ */ e(l, { value: "tokenList", parentKey: "footer" }) }) })
28
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col md:flex-row justify-between shrink-0 w-full md:w-1/2", children: [
29
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
30
+ /* @__PURE__ */ jsx("div", { className: "text-foreground", children: /* @__PURE__ */ jsx(Translation, { value: "product", parentKey: "footer" }) }),
31
+ /* @__PURE__ */ jsx("div", { className: "text-muted-foreground flex flex-col gap-3", children: /* @__PURE__ */ jsx(LinkBar, { href: "/token-list", baseUrl: process.env.NEXT_PUBLIC_BASE_URL, children: /* @__PURE__ */ jsx(Translation, { value: "tokenList", parentKey: "footer" }) }) })
31
32
  ] }),
32
- /* @__PURE__ */ r("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
33
- /* @__PURE__ */ e("div", { className: "text-foreground", children: /* @__PURE__ */ e(l, { value: "contactUs", parentKey: "footer" }) }),
34
- /* @__PURE__ */ e("div", { className: "text-muted-foreground flex flex-col gap-3", children: /* @__PURE__ */ r(a, { href: "mailto:contact@ichatgo.ai", className: "flex items-center", children: [
35
- /* @__PURE__ */ e(i, { className: "w-4 h-4 mr-1" }),
33
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
34
+ /* @__PURE__ */ jsx("div", { className: "text-foreground", children: /* @__PURE__ */ jsx(Translation, { value: "contactUs", parentKey: "footer" }) }),
35
+ /* @__PURE__ */ jsx("div", { className: "text-muted-foreground flex flex-col gap-3", children: /* @__PURE__ */ jsxs(LinkBar, { href: "mailto:contact@ichatgo.ai", className: "flex items-center", children: [
36
+ /* @__PURE__ */ jsx(Mail, { className: "w-4 h-4 mr-1" }),
36
37
  "contact@ichatgo.ai"
37
38
  ] }) })
38
39
  ] }),
39
- /* @__PURE__ */ r("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
40
- /* @__PURE__ */ e("div", { className: "text-foreground", children: /* @__PURE__ */ e(l, { value: "company", parentKey: "footer" }) }),
41
- /* @__PURE__ */ r("div", { className: "text-muted-foreground flex flex-col gap-3", children: [
42
- /* @__PURE__ */ e(a, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${t}/privacy-policy.html`, children: /* @__PURE__ */ e(l, { value: "privacyPolicy", parentKey: "footer" }) }),
43
- /* @__PURE__ */ e(a, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${t}/terms-of-service.html`, children: /* @__PURE__ */ e(l, { value: "termsOfService", parentKey: "footer" }) }),
44
- /* @__PURE__ */ e(a, { href: `${process.env.NEXT_PUBLIC_OFFICIAL_URL}/${t}`, children: /* @__PURE__ */ e(l, { value: "aboutUs", parentKey: "footer" }) })
40
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
41
+ /* @__PURE__ */ jsx("div", { className: "text-foreground", children: /* @__PURE__ */ jsx(Translation, { value: "company", parentKey: "footer" }) }),
42
+ /* @__PURE__ */ jsxs("div", { className: "text-muted-foreground flex flex-col gap-3", children: [
43
+ /* @__PURE__ */ jsx(LinkBar, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${locale}/privacy-policy.html`, children: /* @__PURE__ */ jsx(Translation, { value: "privacyPolicy", parentKey: "footer" }) }),
44
+ /* @__PURE__ */ jsx(LinkBar, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${locale}/terms-of-service.html`, children: /* @__PURE__ */ jsx(Translation, { value: "termsOfService", parentKey: "footer" }) }),
45
+ /* @__PURE__ */ jsx(LinkBar, { href: `${process.env.NEXT_PUBLIC_OFFICIAL_URL}/${locale}`, children: /* @__PURE__ */ jsx(Translation, { value: "aboutUs", parentKey: "footer" }) })
45
46
  ] })
46
47
  ] })
47
48
  ] })
48
49
  ] }) });
49
50
  }
50
51
  export {
51
- g as default
52
+ Footer as default
52
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xchain/footer",
3
- "version": "1.1.0-beta.5",
3
+ "version": "1.1.0-beta.50",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -17,16 +17,30 @@
17
17
  "src",
18
18
  "!**/*.tsbuildinfo"
19
19
  ],
20
+ "peerDependencies": {
21
+ "next": "16.1.6",
22
+ "next-intl": "4.13.0",
23
+ "react": "19.1.1",
24
+ "react-dom": "19.1.1"
25
+ },
20
26
  "devDependencies": {
27
+ "next": "16.1.6",
28
+ "next-intl": "4.13.0",
29
+ "react": "19.1.1",
30
+ "react-dom": "19.1.1",
21
31
  "rollup-plugin-preserve-use-client": "3.0.1"
22
32
  },
23
33
  "dependencies": {
24
34
  "lucide-react": "0.539.0",
25
- "react": "19.1.1",
26
- "next-intl": "4.6.1",
27
- "@0xchain/image": "1.1.0-beta.5",
28
- "@0xchain/link": "1.1.0-beta.5",
29
- "@0xchain/translation": "1.1.0-beta.5"
35
+ "@0xchain/i18n": "1.1.0-beta.50",
36
+ "@0xchain/image": "1.1.0-beta.50",
37
+ "@0xchain/translation": "1.1.0-beta.50",
38
+ "@0xchain/link": "1.1.0-beta.50"
39
+ },
40
+ "nx": {
41
+ "tags": [
42
+ "type:feature"
43
+ ]
30
44
  },
31
45
  "publishConfig": {
32
46
  "access": "public"
package/src/index.tsx CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import ImageBar from '@0xchain/image';
3
3
  import LinkBar from '@0xchain/link';
4
- import { useLocale } from 'next-intl';
4
+ import { useLocale } from '@0xchain/i18n/react';
5
5
  import Translation from '@0xchain/translation';
6
6
  import { Mail } from 'lucide-react';
7
7
  import Year from './year';