@matchain/matchid-sdk-react 0.1.48 → 0.1.49
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/{chunk-4I5WVXIN.mjs → chunk-IKSPEZ4F.mjs} +2 -2
- package/dist/{chunk-YSASIFLY.mjs → chunk-MXDPJRRH.mjs} +3 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.d.mts +2 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-DcQm2dkr.d.ts → index-Bg4rqEu2.d.ts} +36 -28
- package/dist/{index-DUHkH5t-.d.mts → index-CNzG0MX7.d.mts} +36 -28
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -8
- package/package.json +1 -1
- /package/dist/{chunk-4I5WVXIN.mjs.map → chunk-IKSPEZ4F.mjs.map} +0 -0
- /package/dist/{chunk-YSASIFLY.mjs.map → chunk-MXDPJRRH.mjs.map} +0 -0
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useUserInfo,
|
|
12
12
|
verifyPohApi,
|
|
13
13
|
wallet_exports
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MXDPJRRH.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./chunk-J5LGTIGS.mjs";
|
|
@@ -94,4 +94,4 @@ export {
|
|
|
94
94
|
user_exports,
|
|
95
95
|
api_exports
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=chunk-
|
|
97
|
+
//# sourceMappingURL=chunk-IKSPEZ4F.mjs.map
|
|
@@ -6350,9 +6350,11 @@ export {
|
|
|
6350
6350
|
mintPassportNftApi,
|
|
6351
6351
|
useUserInfo,
|
|
6352
6352
|
useMatchEvents,
|
|
6353
|
+
ModalProvider,
|
|
6353
6354
|
useModal,
|
|
6354
6355
|
useWallet,
|
|
6355
6356
|
useCopyClipboard,
|
|
6357
|
+
ToastProvider,
|
|
6356
6358
|
useToast,
|
|
6357
6359
|
wallet_exports,
|
|
6358
6360
|
useMatchChain,
|
|
@@ -6383,4 +6385,4 @@ export {
|
|
|
6383
6385
|
MatchProvider,
|
|
6384
6386
|
useMatch
|
|
6385
6387
|
};
|
|
6386
|
-
//# sourceMappingURL=chunk-
|
|
6388
|
+
//# sourceMappingURL=chunk-MXDPJRRH.mjs.map
|
package/dist/hooks/api/index.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
bind_exports,
|
|
3
3
|
poh_exports,
|
|
4
4
|
user_exports
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-IKSPEZ4F.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isSuccess,
|
|
8
8
|
wallet_exports
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-MXDPJRRH.mjs";
|
|
10
10
|
import "../../chunk-UA6XHZHX.mjs";
|
|
11
11
|
import "../../chunk-FB5MHLWX.mjs";
|
|
12
12
|
import "../../chunk-5JHHHLG4.mjs";
|
package/dist/hooks/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as useCopyClipboard, n as useLayout, f as useMatchChain, a as useMatchEvents, g as useMatchWallet, k as useMatchWalletAssetList, j as useMatchWalletAssets, h as useMatchWalletRecords, d as useModal, l as useReceipt, e as useToast, m as useTransaction, u as useUserInfo, b as useWallet } from '../index-
|
|
1
|
+
export { c as useCopyClipboard, n as useLayout, f as useMatchChain, a as useMatchEvents, g as useMatchWallet, k as useMatchWalletAssetList, j as useMatchWalletAssets, h as useMatchWalletRecords, d as useModal, l as useReceipt, e as useToast, m as useTransaction, u as useUserInfo, b as useWallet } from '../index-CNzG0MX7.mjs';
|
|
2
2
|
import '../types-DzVVzMYU.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@tanstack/react-query/src/types';
|
|
@@ -6,5 +6,6 @@ import 'viem';
|
|
|
6
6
|
import '../mpc-CTbBWHld.mjs';
|
|
7
7
|
import 'viem/types/misc';
|
|
8
8
|
import 'abitype';
|
|
9
|
+
import 'react/jsx-runtime';
|
|
9
10
|
import 'viem/_types/actions/siwe/verifySiweMessage';
|
|
10
11
|
import '@tanstack/react-query';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as useCopyClipboard, n as useLayout, f as useMatchChain, a as useMatchEvents, g as useMatchWallet, k as useMatchWalletAssetList, j as useMatchWalletAssets, h as useMatchWalletRecords, d as useModal, l as useReceipt, e as useToast, m as useTransaction, u as useUserInfo, b as useWallet } from '../index-
|
|
1
|
+
export { c as useCopyClipboard, n as useLayout, f as useMatchChain, a as useMatchEvents, g as useMatchWallet, k as useMatchWalletAssetList, j as useMatchWalletAssets, h as useMatchWalletRecords, d as useModal, l as useReceipt, e as useToast, m as useTransaction, u as useUserInfo, b as useWallet } from '../index-Bg4rqEu2.js';
|
|
2
2
|
import '../types-DzVVzMYU.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@tanstack/react-query/src/types';
|
|
@@ -6,5 +6,6 @@ import 'viem';
|
|
|
6
6
|
import '../mpc-CTbBWHld.js';
|
|
7
7
|
import 'viem/types/misc';
|
|
8
8
|
import 'abitype';
|
|
9
|
+
import 'react/jsx-runtime';
|
|
9
10
|
import 'viem/_types/actions/siwe/verifySiweMessage';
|
|
10
11
|
import '@tanstack/react-query';
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -4,10 +4,45 @@ import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex,
|
|
|
4
4
|
import { C as ChainType } from './mpc-CTbBWHld.js';
|
|
5
5
|
import { Hash } from 'viem/types/misc';
|
|
6
6
|
import { Abi } from 'abitype';
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
8
|
import React, { ReactNode } from 'react';
|
|
8
9
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
9
10
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
10
11
|
|
|
12
|
+
interface ModalContextType {
|
|
13
|
+
show: (content: (props: {
|
|
14
|
+
close: () => void;
|
|
15
|
+
zIndex: number;
|
|
16
|
+
}) => ReactNode, index?: number) => void;
|
|
17
|
+
open: (props: {
|
|
18
|
+
title: ReactNode;
|
|
19
|
+
content: React.ComponentType<{
|
|
20
|
+
close: () => void;
|
|
21
|
+
zIndex: number;
|
|
22
|
+
}>;
|
|
23
|
+
index?: number;
|
|
24
|
+
}) => void;
|
|
25
|
+
}
|
|
26
|
+
declare function ModalProvider({ children }: {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}): react_jsx_runtime.JSX.Element;
|
|
29
|
+
declare function useModal(): ModalContextType;
|
|
30
|
+
|
|
31
|
+
interface ToastContextType {
|
|
32
|
+
show: (options: {
|
|
33
|
+
icon?: ReactNode;
|
|
34
|
+
timeout?: number;
|
|
35
|
+
text: ReactNode;
|
|
36
|
+
}) => void;
|
|
37
|
+
success: (text: ReactNode, timeout?: number) => void;
|
|
38
|
+
error: (text: ReactNode, timeout?: number) => void;
|
|
39
|
+
}
|
|
40
|
+
declare function ToastProvider({ children, zIndex }: {
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
zIndex?: number;
|
|
43
|
+
}): react_jsx_runtime.JSX.Element;
|
|
44
|
+
declare function useToast(): ToastContextType;
|
|
45
|
+
|
|
11
46
|
declare const LOGIN_METHOD_MAP: {
|
|
12
47
|
email: string;
|
|
13
48
|
evm: string;
|
|
@@ -108,33 +143,6 @@ declare function useWallet(): UseWalletReturnType;
|
|
|
108
143
|
|
|
109
144
|
declare function useCopyClipboard(timeout?: number): [boolean, (toCopy: string) => void];
|
|
110
145
|
|
|
111
|
-
interface ModalContextType {
|
|
112
|
-
show: (content: (props: {
|
|
113
|
-
close: () => void;
|
|
114
|
-
zIndex: number;
|
|
115
|
-
}) => ReactNode, index?: number) => void;
|
|
116
|
-
open: (props: {
|
|
117
|
-
title: ReactNode;
|
|
118
|
-
content: React.ComponentType<{
|
|
119
|
-
close: () => void;
|
|
120
|
-
zIndex: number;
|
|
121
|
-
}>;
|
|
122
|
-
index?: number;
|
|
123
|
-
}) => void;
|
|
124
|
-
}
|
|
125
|
-
declare function useModal(): ModalContextType;
|
|
126
|
-
|
|
127
|
-
interface ToastContextType {
|
|
128
|
-
show: (options: {
|
|
129
|
-
icon?: ReactNode;
|
|
130
|
-
timeout?: number;
|
|
131
|
-
text: ReactNode;
|
|
132
|
-
}) => void;
|
|
133
|
-
success: (text: ReactNode, timeout?: number) => void;
|
|
134
|
-
error: (text: ReactNode, timeout?: number) => void;
|
|
135
|
-
}
|
|
136
|
-
declare function useToast(): ToastContextType;
|
|
137
|
-
|
|
138
146
|
declare function useMatchChain(): {
|
|
139
147
|
list: UserChainType[] | undefined;
|
|
140
148
|
chainId: number | null;
|
|
@@ -3314,4 +3322,4 @@ declare namespace index {
|
|
|
3314
3322
|
export { index_useCopyClipboard as useCopyClipboard, index_useLayout as useLayout, index_useMatchChain as useMatchChain, index_useMatchEvents as useMatchEvents, index_useMatchWallet as useMatchWallet, index_useMatchWalletAssetList as useMatchWalletAssetList, index_useMatchWalletAssets as useMatchWalletAssets, index_useMatchWalletRecords as useMatchWalletRecords, index_useModal as useModal, index_useReceipt as useReceipt, index_useToast as useToast, index_useTransaction as useTransaction, index_useUserInfo as useUserInfo, index_useWallet as useWallet };
|
|
3315
3323
|
}
|
|
3316
3324
|
|
|
3317
|
-
export { useMatchEvents as a, useWallet as b, useCopyClipboard as c, useModal as d, useToast as e, useMatchChain as f, useMatchWallet as g, useMatchWalletRecords as h, index as i, useMatchWalletAssets as j, useMatchWalletAssetList as k, useReceipt as l, useTransaction as m, useLayout as n, useUserInfo as u };
|
|
3325
|
+
export { ModalProvider as M, ToastProvider as T, useMatchEvents as a, useWallet as b, useCopyClipboard as c, useModal as d, useToast as e, useMatchChain as f, useMatchWallet as g, useMatchWalletRecords as h, index as i, useMatchWalletAssets as j, useMatchWalletAssetList as k, useReceipt as l, useTransaction as m, useLayout as n, useUserInfo as u };
|
|
@@ -4,10 +4,45 @@ import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex,
|
|
|
4
4
|
import { C as ChainType } from './mpc-CTbBWHld.mjs';
|
|
5
5
|
import { Hash } from 'viem/types/misc';
|
|
6
6
|
import { Abi } from 'abitype';
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
8
|
import React, { ReactNode } from 'react';
|
|
8
9
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
9
10
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
10
11
|
|
|
12
|
+
interface ModalContextType {
|
|
13
|
+
show: (content: (props: {
|
|
14
|
+
close: () => void;
|
|
15
|
+
zIndex: number;
|
|
16
|
+
}) => ReactNode, index?: number) => void;
|
|
17
|
+
open: (props: {
|
|
18
|
+
title: ReactNode;
|
|
19
|
+
content: React.ComponentType<{
|
|
20
|
+
close: () => void;
|
|
21
|
+
zIndex: number;
|
|
22
|
+
}>;
|
|
23
|
+
index?: number;
|
|
24
|
+
}) => void;
|
|
25
|
+
}
|
|
26
|
+
declare function ModalProvider({ children }: {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}): react_jsx_runtime.JSX.Element;
|
|
29
|
+
declare function useModal(): ModalContextType;
|
|
30
|
+
|
|
31
|
+
interface ToastContextType {
|
|
32
|
+
show: (options: {
|
|
33
|
+
icon?: ReactNode;
|
|
34
|
+
timeout?: number;
|
|
35
|
+
text: ReactNode;
|
|
36
|
+
}) => void;
|
|
37
|
+
success: (text: ReactNode, timeout?: number) => void;
|
|
38
|
+
error: (text: ReactNode, timeout?: number) => void;
|
|
39
|
+
}
|
|
40
|
+
declare function ToastProvider({ children, zIndex }: {
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
zIndex?: number;
|
|
43
|
+
}): react_jsx_runtime.JSX.Element;
|
|
44
|
+
declare function useToast(): ToastContextType;
|
|
45
|
+
|
|
11
46
|
declare const LOGIN_METHOD_MAP: {
|
|
12
47
|
email: string;
|
|
13
48
|
evm: string;
|
|
@@ -108,33 +143,6 @@ declare function useWallet(): UseWalletReturnType;
|
|
|
108
143
|
|
|
109
144
|
declare function useCopyClipboard(timeout?: number): [boolean, (toCopy: string) => void];
|
|
110
145
|
|
|
111
|
-
interface ModalContextType {
|
|
112
|
-
show: (content: (props: {
|
|
113
|
-
close: () => void;
|
|
114
|
-
zIndex: number;
|
|
115
|
-
}) => ReactNode, index?: number) => void;
|
|
116
|
-
open: (props: {
|
|
117
|
-
title: ReactNode;
|
|
118
|
-
content: React.ComponentType<{
|
|
119
|
-
close: () => void;
|
|
120
|
-
zIndex: number;
|
|
121
|
-
}>;
|
|
122
|
-
index?: number;
|
|
123
|
-
}) => void;
|
|
124
|
-
}
|
|
125
|
-
declare function useModal(): ModalContextType;
|
|
126
|
-
|
|
127
|
-
interface ToastContextType {
|
|
128
|
-
show: (options: {
|
|
129
|
-
icon?: ReactNode;
|
|
130
|
-
timeout?: number;
|
|
131
|
-
text: ReactNode;
|
|
132
|
-
}) => void;
|
|
133
|
-
success: (text: ReactNode, timeout?: number) => void;
|
|
134
|
-
error: (text: ReactNode, timeout?: number) => void;
|
|
135
|
-
}
|
|
136
|
-
declare function useToast(): ToastContextType;
|
|
137
|
-
|
|
138
146
|
declare function useMatchChain(): {
|
|
139
147
|
list: UserChainType[] | undefined;
|
|
140
148
|
chainId: number | null;
|
|
@@ -3314,4 +3322,4 @@ declare namespace index {
|
|
|
3314
3322
|
export { index_useCopyClipboard as useCopyClipboard, index_useLayout as useLayout, index_useMatchChain as useMatchChain, index_useMatchEvents as useMatchEvents, index_useMatchWallet as useMatchWallet, index_useMatchWalletAssetList as useMatchWalletAssetList, index_useMatchWalletAssets as useMatchWalletAssets, index_useMatchWalletRecords as useMatchWalletRecords, index_useModal as useModal, index_useReceipt as useReceipt, index_useToast as useToast, index_useTransaction as useTransaction, index_useUserInfo as useUserInfo, index_useWallet as useWallet };
|
|
3315
3323
|
}
|
|
3316
3324
|
|
|
3317
|
-
export { useMatchEvents as a, useWallet as b, useCopyClipboard as c, useModal as d, useToast as e, useMatchChain as f, useMatchWallet as g, useMatchWalletRecords as h, index as i, useMatchWalletAssets as j, useMatchWalletAssetList as k, useReceipt as l, useTransaction as m, useLayout as n, useUserInfo as u };
|
|
3325
|
+
export { ModalProvider as M, ToastProvider as T, useMatchEvents as a, useWallet as b, useCopyClipboard as c, useModal as d, useToast as e, useMatchChain as f, useMatchWallet as g, useMatchWalletRecords as h, index as i, useMatchWalletAssets as j, useMatchWalletAssetList as k, useReceipt as l, useTransaction as m, useLayout as n, useUserInfo as u };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-DzVVzMYU.mjs';
|
|
3
|
+
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-CNzG0MX7.mjs';
|
|
3
4
|
export { i as Components } from './index-C9qYyRgt.mjs';
|
|
4
5
|
export { i as UI } from './index-C9F6f2iz.mjs';
|
|
5
|
-
export { i as Hooks } from './index-DUHkH5t-.mjs';
|
|
6
6
|
export { i as Api } from './index-D4ju2J_e.mjs';
|
|
7
7
|
export { i as Chains } from './index-DXRGMAbv.mjs';
|
|
8
8
|
export { i as Types } from './index-BMfaixEx.mjs';
|
|
9
9
|
import '@tanstack/react-query/src/types';
|
|
10
|
-
import 'react/jsx-runtime';
|
|
11
|
-
import './index-Cou96DpL.mjs';
|
|
12
10
|
import 'viem';
|
|
13
11
|
import './mpc-CTbBWHld.mjs';
|
|
14
12
|
import 'viem/types/misc';
|
|
15
13
|
import 'abitype';
|
|
14
|
+
import 'react/jsx-runtime';
|
|
16
15
|
import 'viem/_types/actions/siwe/verifySiweMessage';
|
|
17
16
|
import '@tanstack/react-query';
|
|
17
|
+
import './index-Cou96DpL.mjs';
|
|
18
18
|
|
|
19
19
|
type MatchContextType = {
|
|
20
20
|
appid: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-DzVVzMYU.js';
|
|
3
|
+
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-Bg4rqEu2.js';
|
|
3
4
|
export { i as Components } from './index-Bvc8cjpN.js';
|
|
4
5
|
export { i as UI } from './index-BMsj8hJv.js';
|
|
5
|
-
export { i as Hooks } from './index-DcQm2dkr.js';
|
|
6
6
|
export { i as Api } from './index-Cy3K-Yao.js';
|
|
7
7
|
export { i as Chains } from './index-DXRGMAbv.js';
|
|
8
8
|
export { i as Types } from './index-Bpmrd7mh.js';
|
|
9
9
|
import '@tanstack/react-query/src/types';
|
|
10
|
-
import 'react/jsx-runtime';
|
|
11
|
-
import './index-BcEreCxd.js';
|
|
12
10
|
import 'viem';
|
|
13
11
|
import './mpc-CTbBWHld.js';
|
|
14
12
|
import 'viem/types/misc';
|
|
15
13
|
import 'abitype';
|
|
14
|
+
import 'react/jsx-runtime';
|
|
16
15
|
import 'viem/_types/actions/siwe/verifySiweMessage';
|
|
17
16
|
import '@tanstack/react-query';
|
|
17
|
+
import './index-BcEreCxd.js';
|
|
18
18
|
|
|
19
19
|
type MatchContextType = {
|
|
20
20
|
appid: string;
|
package/dist/index.js
CHANGED
|
@@ -35,6 +35,8 @@ __export(src_exports, {
|
|
|
35
35
|
Components: () => components_exports,
|
|
36
36
|
Hooks: () => hooks_exports,
|
|
37
37
|
MatchProvider: () => MatchProvider,
|
|
38
|
+
ModalProvider: () => ModalProvider,
|
|
39
|
+
ToastProvider: () => ToastProvider,
|
|
38
40
|
Types: () => types_exports,
|
|
39
41
|
UI: () => ui_exports,
|
|
40
42
|
useMatch: () => useMatch
|
|
@@ -8176,6 +8178,8 @@ __export(types_exports, {
|
|
|
8176
8178
|
Components,
|
|
8177
8179
|
Hooks,
|
|
8178
8180
|
MatchProvider,
|
|
8181
|
+
ModalProvider,
|
|
8182
|
+
ToastProvider,
|
|
8179
8183
|
Types,
|
|
8180
8184
|
UI,
|
|
8181
8185
|
useMatch
|