@matchain/matchid-sdk-react 0.1.56-alpha.9 → 0.1.57
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/api.js +44 -3
- package/dist/api.js.map +1 -1
- package/dist/api.mjs +3 -3
- package/dist/{chunk-FQ6PYZPD.mjs → chunk-7SUDHG7S.mjs} +1 -1
- package/dist/chunk-7SUDHG7S.mjs.map +1 -0
- package/dist/{chunk-JCMQBWWW.mjs → chunk-EUG3QRAG.mjs} +2 -2
- package/dist/{chunk-LOZCAT7A.mjs → chunk-QMV4FDUH.mjs} +283 -216
- package/dist/chunk-QMV4FDUH.mjs.map +1 -0
- package/dist/components.d.mts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +306 -261
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +2 -2
- package/dist/hooks.d.mts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +81 -42
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +2 -2
- package/dist/icon.js.map +1 -1
- package/dist/icon.mjs +1 -1
- package/dist/{index-DwmrgZa2.d.ts → index-B70k4Jpk.d.ts} +4 -0
- package/dist/{index-D2E53ZMV.d.mts → index-BJJ0Gb6v.d.mts} +4 -0
- package/dist/{index-qmC4zt6V.d.ts → index-C2hr7zlN.d.ts} +3 -1
- package/dist/{index-DVlulZhE.d.mts → index-CTHpnEoB.d.mts} +3 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +87 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/ui.js +81 -70
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +2 -2
- package/example/package-lock.json +2965 -0
- package/example/package.json +2 -1
- package/example/src/App.tsx +65 -60
- package/example/src/config/index.ts +8 -6
- package/example/src/pages/Wallet/index.tsx +2 -4
- package/example/yarn.lock +27 -2251
- package/package.json +3 -6
- package/dist/chunk-FQ6PYZPD.mjs.map +0 -1
- package/dist/chunk-LOZCAT7A.mjs.map +0 -1
- /package/dist/{chunk-JCMQBWWW.mjs.map → chunk-EUG3QRAG.mjs.map} +0 -0
package/dist/icon.mjs
CHANGED
|
@@ -92,6 +92,10 @@ declare function useUserInfo(): {
|
|
|
92
92
|
bind: (method: LoginMethodType | "wallet", extra?: {
|
|
93
93
|
[key: string]: any;
|
|
94
94
|
}) => Promise<string | void | Window | null>;
|
|
95
|
+
bindByEmail: ({ email, code }: {
|
|
96
|
+
email: string;
|
|
97
|
+
code: string;
|
|
98
|
+
}) => Promise<boolean>;
|
|
95
99
|
getAuthInfo: (method: keyof typeof LOGIN_METHOD_MAP) => Promise<unknown>;
|
|
96
100
|
invite: (invite_code: string) => Promise<MyResponseType<any>>;
|
|
97
101
|
};
|
|
@@ -92,6 +92,10 @@ declare function useUserInfo(): {
|
|
|
92
92
|
bind: (method: LoginMethodType | "wallet", extra?: {
|
|
93
93
|
[key: string]: any;
|
|
94
94
|
}) => Promise<string | void | Window | null>;
|
|
95
|
+
bindByEmail: ({ email, code }: {
|
|
96
|
+
email: string;
|
|
97
|
+
code: string;
|
|
98
|
+
}) => Promise<boolean>;
|
|
95
99
|
getAuthInfo: (method: keyof typeof LOGIN_METHOD_MAP) => Promise<unknown>;
|
|
96
100
|
invite: (invite_code: string) => Promise<MyResponseType<any>>;
|
|
97
101
|
};
|
|
@@ -3,7 +3,9 @@ import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherL
|
|
|
3
3
|
import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-CvzpMw3N.js';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
6
|
-
declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps
|
|
6
|
+
declare function EmailModal({ isOpen, width, onClose, onBack, onLogin, type, }: EmailModalProps & {
|
|
7
|
+
type?: "login" | "bind";
|
|
8
|
+
}): react_jsx_runtime.JSX.Element;
|
|
7
9
|
|
|
8
10
|
declare function LoginBox({ recommendMethods, methods, walletMethods, inModal }: LoginBoxProps): react_jsx_runtime.JSX.Element;
|
|
9
11
|
|
|
@@ -3,7 +3,9 @@ import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherL
|
|
|
3
3
|
import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-BqI0PEIi.mjs';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
6
|
-
declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps
|
|
6
|
+
declare function EmailModal({ isOpen, width, onClose, onBack, onLogin, type, }: EmailModalProps & {
|
|
7
|
+
type?: "login" | "bind";
|
|
8
|
+
}): react_jsx_runtime.JSX.Element;
|
|
7
9
|
|
|
8
10
|
declare function LoginBox({ recommendMethods, methods, walletMethods, inModal }: LoginBoxProps): react_jsx_runtime.JSX.Element;
|
|
9
11
|
|
package/dist/index.d.mts
CHANGED
|
@@ -5,8 +5,8 @@ import * as wagmi_chains from 'wagmi/chains';
|
|
|
5
5
|
import * as viem from 'viem';
|
|
6
6
|
import React__default, { ReactNode } from 'react';
|
|
7
7
|
import { I as IMatchEvents, L as LocaleType, a as IEnvConfigType, W as WalletConfigType } from './types-BrVeC0c8.mjs';
|
|
8
|
-
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-
|
|
9
|
-
export { i as Components } from './index-
|
|
8
|
+
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-BJJ0Gb6v.mjs';
|
|
9
|
+
export { i as Components } from './index-CTHpnEoB.mjs';
|
|
10
10
|
export { i as UI } from './index-DxHhOW24.mjs';
|
|
11
11
|
export { i as Api } from './index-Car1jFyN.mjs';
|
|
12
12
|
export { i as Chains } from './index-CboftuIp.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import * as wagmi_chains from 'wagmi/chains';
|
|
|
5
5
|
import * as viem from 'viem';
|
|
6
6
|
import React__default, { ReactNode } from 'react';
|
|
7
7
|
import { I as IMatchEvents, L as LocaleType, a as IEnvConfigType, W as WalletConfigType } from './types-BrVeC0c8.js';
|
|
8
|
-
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-
|
|
9
|
-
export { i as Components } from './index-
|
|
8
|
+
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-B70k4Jpk.js';
|
|
9
|
+
export { i as Components } from './index-C2hr7zlN.js';
|
|
10
10
|
export { i as UI } from './index-Cqdz_5bE.js';
|
|
11
11
|
export { i as Api } from './index-CcVHENNv.js';
|
|
12
12
|
export { i as Chains } from './index-CboftuIp.js';
|
package/dist/index.js
CHANGED
|
@@ -2171,6 +2171,12 @@ var useWalletModalStore = (0, import_zustand2.create)((set) => ({
|
|
|
2171
2171
|
open: (type, methods = DEFAULT_WALLET_METHODS) => set({ isOpen: true, type, methods }),
|
|
2172
2172
|
close: () => set({ isOpen: false })
|
|
2173
2173
|
}));
|
|
2174
|
+
var useEmailModalStore = (0, import_zustand2.create)((set) => ({
|
|
2175
|
+
isOpen: false,
|
|
2176
|
+
type: "",
|
|
2177
|
+
open: (type) => set({ isOpen: true, type }),
|
|
2178
|
+
close: () => set({ isOpen: false })
|
|
2179
|
+
}));
|
|
2174
2180
|
|
|
2175
2181
|
// src/store/useStore.ts
|
|
2176
2182
|
var import_zustand3 = require("zustand");
|
|
@@ -2208,6 +2214,7 @@ function useUserInfo() {
|
|
|
2208
2214
|
const { open: BTCOpen } = useBTCModalStore();
|
|
2209
2215
|
const { open: CEXBindOpen } = useCEXBindModalStore();
|
|
2210
2216
|
const walletModalStore = useWalletModalStore();
|
|
2217
|
+
const emailModalStore = useEmailModalStore();
|
|
2211
2218
|
const getRedirectUri = () => {
|
|
2212
2219
|
return encodeURIComponent(window.location.href);
|
|
2213
2220
|
};
|
|
@@ -2300,8 +2307,8 @@ function useUserInfo() {
|
|
|
2300
2307
|
case "discord":
|
|
2301
2308
|
case "github":
|
|
2302
2309
|
case "linkedin":
|
|
2303
|
-
case "kakao":
|
|
2304
2310
|
case "facebook":
|
|
2311
|
+
case "kakao":
|
|
2305
2312
|
return await loginByMethod(method);
|
|
2306
2313
|
default:
|
|
2307
2314
|
throw new Error("unsupported method");
|
|
@@ -2386,6 +2393,8 @@ function useUserInfo() {
|
|
|
2386
2393
|
return TONOpen("bind");
|
|
2387
2394
|
case "btc":
|
|
2388
2395
|
return BTCOpen("bind");
|
|
2396
|
+
case "email":
|
|
2397
|
+
return emailModalStore.open("bind");
|
|
2389
2398
|
case "telegram":
|
|
2390
2399
|
return await bindTelegram();
|
|
2391
2400
|
case "twitter":
|
|
@@ -2395,6 +2404,7 @@ function useUserInfo() {
|
|
|
2395
2404
|
case "linkedin":
|
|
2396
2405
|
case "facebook":
|
|
2397
2406
|
case "youtube":
|
|
2407
|
+
case "kakao":
|
|
2398
2408
|
const link = `${endpoints.back}api/v1/auth/${method == "youtube" ? "google" : method}?appid=${appid}&provider=${method == "youtube" ? "google" : method}&redirect=${encodeURIComponent(endpoints.auth + "bind/" + method)}&authorization=${token.includes("Bearer ") ? token.split(" ")[1] : token}${method == "youtube" ? "&auth_type=youtube" : ""}`;
|
|
2399
2409
|
matchlog_default.log("link", link);
|
|
2400
2410
|
return window.open(
|
|
@@ -2409,6 +2419,31 @@ function useUserInfo() {
|
|
|
2409
2419
|
const bindCex = (type) => {
|
|
2410
2420
|
return CEXBindOpen(type);
|
|
2411
2421
|
};
|
|
2422
|
+
const bindByEmail = async ({ email, code }) => {
|
|
2423
|
+
try {
|
|
2424
|
+
const obj = {
|
|
2425
|
+
email,
|
|
2426
|
+
verification_key: emailLoginKey,
|
|
2427
|
+
verification_code: code
|
|
2428
|
+
};
|
|
2429
|
+
const res = await verifyEmailCodeApi(obj);
|
|
2430
|
+
if (res && res.data && isSuccess(res)) {
|
|
2431
|
+
events.onBind && events.onBind({
|
|
2432
|
+
type: "email"
|
|
2433
|
+
});
|
|
2434
|
+
eventManager_default.emit("onBind", {
|
|
2435
|
+
type: "email"
|
|
2436
|
+
});
|
|
2437
|
+
return true;
|
|
2438
|
+
} else {
|
|
2439
|
+
throw new Error(res.message);
|
|
2440
|
+
}
|
|
2441
|
+
} catch (error) {
|
|
2442
|
+
console.error("bindByEmail", error);
|
|
2443
|
+
throw error;
|
|
2444
|
+
}
|
|
2445
|
+
return false;
|
|
2446
|
+
};
|
|
2412
2447
|
const getAuthInfo = async (method) => {
|
|
2413
2448
|
const element_id = "auth_iframe";
|
|
2414
2449
|
if (document.getElementById(element_id)) {
|
|
@@ -2477,6 +2512,7 @@ function useUserInfo() {
|
|
|
2477
2512
|
auth,
|
|
2478
2513
|
login: loginMethod,
|
|
2479
2514
|
bind,
|
|
2515
|
+
bindByEmail,
|
|
2480
2516
|
getAuthInfo,
|
|
2481
2517
|
invite
|
|
2482
2518
|
};
|
|
@@ -2820,7 +2856,7 @@ var import_react_intl2 = require("react-intl");
|
|
|
2820
2856
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2821
2857
|
function StepVerify(props) {
|
|
2822
2858
|
const intl = (0, import_react_intl2.useIntl)();
|
|
2823
|
-
const { getLoginEmailCode, loginByEmail } = useUserInfo();
|
|
2859
|
+
const { getLoginEmailCode, loginByEmail, bindByEmail } = useUserInfo();
|
|
2824
2860
|
const [error, setError] = (0, import_react7.useState)("");
|
|
2825
2861
|
const [code, setCode] = (0, import_react7.useState)("");
|
|
2826
2862
|
const [sending, setSending] = (0, import_react7.useState)(false);
|
|
@@ -2880,7 +2916,10 @@ function StepVerify(props) {
|
|
|
2880
2916
|
try {
|
|
2881
2917
|
setError("");
|
|
2882
2918
|
setSubmitting(true);
|
|
2883
|
-
const res = await
|
|
2919
|
+
const res = props.type === "bind" ? await bindByEmail({
|
|
2920
|
+
email: props.email,
|
|
2921
|
+
code
|
|
2922
|
+
}) : await loginByEmail({
|
|
2884
2923
|
email: props.email,
|
|
2885
2924
|
code
|
|
2886
2925
|
});
|
|
@@ -2945,7 +2984,8 @@ function EmailModal({
|
|
|
2945
2984
|
width = 480,
|
|
2946
2985
|
onClose,
|
|
2947
2986
|
onBack,
|
|
2948
|
-
onLogin
|
|
2987
|
+
onLogin,
|
|
2988
|
+
type = "login"
|
|
2949
2989
|
}) {
|
|
2950
2990
|
const [step, setStep] = (0, import_react8.useState)("input");
|
|
2951
2991
|
const [emailVal, setEmailVal] = (0, import_react8.useState)("");
|
|
@@ -2969,7 +3009,7 @@ function EmailModal({
|
|
|
2969
3009
|
children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
|
|
2970
3010
|
setEmailVal(email);
|
|
2971
3011
|
setStep("verify");
|
|
2972
|
-
} }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
|
|
3012
|
+
} }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(StepVerify, { type, email: emailVal, onSuccess: onLogin })
|
|
2973
3013
|
}
|
|
2974
3014
|
);
|
|
2975
3015
|
}
|
|
@@ -3098,7 +3138,7 @@ function LoginBox({
|
|
|
3098
3138
|
}
|
|
3099
3139
|
return p.toLowerCase();
|
|
3100
3140
|
});
|
|
3101
|
-
console.log("
|
|
3141
|
+
console.log("platform", platform);
|
|
3102
3142
|
const walletMethodList = WALLET_METHODS.filter((m) => platform.includes(m));
|
|
3103
3143
|
let recommendMethodList = walletMethodList.length > 0 ? ["wallet"] : [];
|
|
3104
3144
|
let methodList = [];
|
|
@@ -7665,7 +7705,7 @@ function CEXBindModal({
|
|
|
7665
7705
|
const [secret, setSecret] = (0, import_react39.useState)("");
|
|
7666
7706
|
const [error, setError] = (0, import_react39.useState)("");
|
|
7667
7707
|
const needPassphrase = (0, import_react39.useMemo)(() => {
|
|
7668
|
-
return ["bitget", "okx"].includes(type.toLowerCase());
|
|
7708
|
+
return ["bitget", "okx", "kucoin"].includes(type.toLowerCase());
|
|
7669
7709
|
}, [type]);
|
|
7670
7710
|
(0, import_react39.useEffect)(() => {
|
|
7671
7711
|
if (isOpen) {
|
|
@@ -7761,7 +7801,25 @@ function CEXBindModal({
|
|
|
7761
7801
|
|
|
7762
7802
|
// src/context/BusinessProvider.tsx
|
|
7763
7803
|
var import_react_query9 = require("@tanstack/react-query");
|
|
7804
|
+
|
|
7805
|
+
// src/components/BindEmailModal/index.tsx
|
|
7764
7806
|
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
7807
|
+
var BindEmailModal = ({ isOpen, onClose, onBack, onLogin }) => {
|
|
7808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
7809
|
+
EmailModal,
|
|
7810
|
+
{
|
|
7811
|
+
type: "bind",
|
|
7812
|
+
isOpen,
|
|
7813
|
+
onClose,
|
|
7814
|
+
onBack,
|
|
7815
|
+
onLogin
|
|
7816
|
+
}
|
|
7817
|
+
);
|
|
7818
|
+
};
|
|
7819
|
+
var BindEmailModal_default = BindEmailModal;
|
|
7820
|
+
|
|
7821
|
+
// src/context/BusinessProvider.tsx
|
|
7822
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
7765
7823
|
function BusinessProvider({ children }) {
|
|
7766
7824
|
const { overview, token } = useUserInfo();
|
|
7767
7825
|
const { type: EVMType, isOpen: EVMIsOpen, close: EVMClose } = useEVMModalStore();
|
|
@@ -7769,6 +7827,7 @@ function BusinessProvider({ children }) {
|
|
|
7769
7827
|
const { type: TRONType, isOpen: TRONIsOpen, close: TRONClose } = useTRONModalStore();
|
|
7770
7828
|
const { type: BTCType, isOpen: BTCIsOpen, close: BTCClose } = useBTCModalStore();
|
|
7771
7829
|
const { type: CEXType, isOpen: CEXIsOpen, close: CEXClose } = useCEXBindModalStore();
|
|
7830
|
+
const { type: EmailType, isOpen: EmailIsOpen, close: EmailClose } = useEmailModalStore();
|
|
7772
7831
|
const WalletModalStore = useWalletModalStore();
|
|
7773
7832
|
const { tgAppAuthCode, setTgAppAuthCode } = useStore_default();
|
|
7774
7833
|
const { login } = useMatch();
|
|
@@ -7795,8 +7854,8 @@ function BusinessProvider({ children }) {
|
|
|
7795
7854
|
enabled: !!tgAppAuthCode,
|
|
7796
7855
|
refetchInterval: 1e3 * 5
|
|
7797
7856
|
});
|
|
7798
|
-
return /* @__PURE__ */ (0,
|
|
7799
|
-
/* @__PURE__ */ (0,
|
|
7857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
|
|
7858
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
7800
7859
|
EVMModal,
|
|
7801
7860
|
{
|
|
7802
7861
|
isOpen: EVMIsOpen && (EVMType == "login" && !overview && !token || EVMType == "bind" && !!token && !!overview),
|
|
@@ -7806,7 +7865,7 @@ function BusinessProvider({ children }) {
|
|
|
7806
7865
|
zIndex: 199
|
|
7807
7866
|
}
|
|
7808
7867
|
),
|
|
7809
|
-
/* @__PURE__ */ (0,
|
|
7868
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
7810
7869
|
TRONModal,
|
|
7811
7870
|
{
|
|
7812
7871
|
isOpen: TRONIsOpen && (TRONType == "login" && !overview && !token || TRONType == "bind" && !!token && !!overview),
|
|
@@ -7816,7 +7875,7 @@ function BusinessProvider({ children }) {
|
|
|
7816
7875
|
zIndex: 199
|
|
7817
7876
|
}
|
|
7818
7877
|
),
|
|
7819
|
-
/* @__PURE__ */ (0,
|
|
7878
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
7820
7879
|
TONModal,
|
|
7821
7880
|
{
|
|
7822
7881
|
isOpen: TONIsOpen && (TONType == "login" && !overview && !token || TONType == "bind" && !!token && !!overview),
|
|
@@ -7826,7 +7885,7 @@ function BusinessProvider({ children }) {
|
|
|
7826
7885
|
zIndex: 199
|
|
7827
7886
|
}
|
|
7828
7887
|
),
|
|
7829
|
-
/* @__PURE__ */ (0,
|
|
7888
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
7830
7889
|
BTCModal,
|
|
7831
7890
|
{
|
|
7832
7891
|
isOpen: BTCIsOpen && (BTCType == "login" && !overview && !token || BTCType == "bind" && !!token && !!overview),
|
|
@@ -7836,7 +7895,7 @@ function BusinessProvider({ children }) {
|
|
|
7836
7895
|
zIndex: 199
|
|
7837
7896
|
}
|
|
7838
7897
|
),
|
|
7839
|
-
/* @__PURE__ */ (0,
|
|
7898
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
7840
7899
|
CEXBindModal,
|
|
7841
7900
|
{
|
|
7842
7901
|
isOpen: CEXIsOpen && (!!token && !!overview),
|
|
@@ -7845,7 +7904,7 @@ function BusinessProvider({ children }) {
|
|
|
7845
7904
|
zIndex: 199
|
|
7846
7905
|
}
|
|
7847
7906
|
),
|
|
7848
|
-
/* @__PURE__ */ (0,
|
|
7907
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
7849
7908
|
WalletModal,
|
|
7850
7909
|
{
|
|
7851
7910
|
isOpen: WalletModalStore.isOpen && (WalletModalStore.type == "login" && !overview && !token || WalletModalStore.type == "bind" && !!token && !!overview),
|
|
@@ -7855,14 +7914,22 @@ function BusinessProvider({ children }) {
|
|
|
7855
7914
|
zIndex: 150
|
|
7856
7915
|
}
|
|
7857
7916
|
),
|
|
7917
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
7918
|
+
BindEmailModal_default,
|
|
7919
|
+
{
|
|
7920
|
+
isOpen: EmailIsOpen && (EmailType == "bind" && !!token && !!overview),
|
|
7921
|
+
onClose: EmailClose,
|
|
7922
|
+
onLogin: EmailClose
|
|
7923
|
+
}
|
|
7924
|
+
),
|
|
7858
7925
|
children
|
|
7859
7926
|
] });
|
|
7860
7927
|
}
|
|
7861
7928
|
|
|
7862
7929
|
// src/context/index.tsx
|
|
7863
|
-
var
|
|
7930
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
7864
7931
|
var Providers = ({ children }) => {
|
|
7865
|
-
return /* @__PURE__ */ (0,
|
|
7932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ToastProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(BusinessProvider, { children }) }) });
|
|
7866
7933
|
};
|
|
7867
7934
|
var context_default = Providers;
|
|
7868
7935
|
|
|
@@ -8336,7 +8403,7 @@ var en_default = {
|
|
|
8336
8403
|
noMore: "No more",
|
|
8337
8404
|
Remove: "Remove",
|
|
8338
8405
|
removeSuccess: "Remove Successfully",
|
|
8339
|
-
loginAgreement: "By
|
|
8406
|
+
loginAgreement: "By login, you agree to our <termsLink>Terms of Service</termsLink> and <privacyLink>Privacy Policy</privacyLink>",
|
|
8340
8407
|
poweredBy: "Powered by"
|
|
8341
8408
|
};
|
|
8342
8409
|
|
|
@@ -9142,7 +9209,7 @@ var matchTest = /* @__PURE__ */ (0, import_viem17.defineChain)({
|
|
|
9142
9209
|
|
|
9143
9210
|
// src/MatchContext.tsx
|
|
9144
9211
|
var import_wagmi3 = require("wagmi");
|
|
9145
|
-
var
|
|
9212
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
9146
9213
|
var queryClient = new import_react_query10.QueryClient();
|
|
9147
9214
|
var wagmiConfig = (0, import_rainbowkit2.getDefaultConfig)({
|
|
9148
9215
|
appName: "MatchID",
|
|
@@ -9181,7 +9248,7 @@ var MatchProvider = ({
|
|
|
9181
9248
|
useWalletInit({
|
|
9182
9249
|
config: wallet
|
|
9183
9250
|
});
|
|
9184
|
-
return /* @__PURE__ */ (0,
|
|
9251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl23.IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_wagmi3.WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_query10.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
9185
9252
|
MatchContext.Provider,
|
|
9186
9253
|
{
|
|
9187
9254
|
value: {
|
|
@@ -9192,7 +9259,7 @@ var MatchProvider = ({
|
|
|
9192
9259
|
theme,
|
|
9193
9260
|
locale: realLocale
|
|
9194
9261
|
},
|
|
9195
|
-
children: /* @__PURE__ */ (0,
|
|
9262
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(context_default, { children })
|
|
9196
9263
|
}
|
|
9197
9264
|
) }) }) });
|
|
9198
9265
|
};
|