@matchain/matchid-sdk-react 0.1.56-alpha.5 → 0.1.56-alpha.7

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.
Files changed (108) hide show
  1. package/example/package.json +1 -2
  2. package/example/src/pages/Wallet/index.tsx +90 -88
  3. package/example/yarn.lock +2251 -27
  4. package/package.json +7 -4
  5. package/dist/api.d.mts +0 -6
  6. package/dist/api.d.ts +0 -6
  7. package/dist/api.js +0 -1721
  8. package/dist/api.js.map +0 -1
  9. package/dist/api.mjs +0 -23
  10. package/dist/api.mjs.map +0 -1
  11. package/dist/assets/lottie.d.mts +0 -1
  12. package/dist/assets/lottie.d.ts +0 -1
  13. package/dist/assets/lottie.js +0 -68
  14. package/dist/assets/lottie.js.map +0 -1
  15. package/dist/assets/lottie.mjs +0 -22
  16. package/dist/assets/lottie.mjs.map +0 -1
  17. package/dist/chains.d.mts +0 -2
  18. package/dist/chains.d.ts +0 -2
  19. package/dist/chains.js +0 -94
  20. package/dist/chains.js.map +0 -1
  21. package/dist/chains.mjs +0 -11
  22. package/dist/chains.mjs.map +0 -1
  23. package/dist/chunk-2SJCPZJQ.mjs +0 -97
  24. package/dist/chunk-2SJCPZJQ.mjs.map +0 -1
  25. package/dist/chunk-3CR66BEX.mjs +0 -19
  26. package/dist/chunk-3CR66BEX.mjs.map +0 -1
  27. package/dist/chunk-GD7URBBZ.mjs +0 -1399
  28. package/dist/chunk-GD7URBBZ.mjs.map +0 -1
  29. package/dist/chunk-HBOS3RBL.mjs +0 -19
  30. package/dist/chunk-HBOS3RBL.mjs.map +0 -1
  31. package/dist/chunk-IZOOVZAD.mjs +0 -145
  32. package/dist/chunk-IZOOVZAD.mjs.map +0 -1
  33. package/dist/chunk-J5LGTIGS.mjs +0 -10
  34. package/dist/chunk-J5LGTIGS.mjs.map +0 -1
  35. package/dist/chunk-JX73EY6V.mjs +0 -67
  36. package/dist/chunk-JX73EY6V.mjs.map +0 -1
  37. package/dist/chunk-UA6XHZHX.mjs +0 -17
  38. package/dist/chunk-UA6XHZHX.mjs.map +0 -1
  39. package/dist/chunk-XM6CYEXN.mjs +0 -53
  40. package/dist/chunk-XM6CYEXN.mjs.map +0 -1
  41. package/dist/chunk-YR46VC65.mjs +0 -7666
  42. package/dist/chunk-YR46VC65.mjs.map +0 -1
  43. package/dist/components.d.mts +0 -6
  44. package/dist/components.d.ts +0 -6
  45. package/dist/components.js +0 -6494
  46. package/dist/components.js.map +0 -1
  47. package/dist/components.mjs +0 -57
  48. package/dist/components.mjs.map +0 -1
  49. package/dist/hooks.d.mts +0 -13
  50. package/dist/hooks.d.ts +0 -13
  51. package/dist/hooks.js +0 -3612
  52. package/dist/hooks.js.map +0 -1
  53. package/dist/hooks.mjs +0 -41
  54. package/dist/hooks.mjs.map +0 -1
  55. package/dist/icon.d.mts +0 -5
  56. package/dist/icon.d.ts +0 -5
  57. package/dist/icon.js +0 -1414
  58. package/dist/icon.js.map +0 -1
  59. package/dist/icon.mjs +0 -112
  60. package/dist/icon.mjs.map +0 -1
  61. package/dist/index-B50DU_xT.d.mts +0 -83
  62. package/dist/index-B50DU_xT.d.ts +0 -83
  63. package/dist/index-BcuSCgol.d.ts +0 -111
  64. package/dist/index-BlMLqmS2.d.mts +0 -3341
  65. package/dist/index-C1Nyy5zx.d.ts +0 -3341
  66. package/dist/index-CBcBTQyU.d.mts +0 -66
  67. package/dist/index-CD0dACxf.d.mts +0 -111
  68. package/dist/index-CER00guz.d.mts +0 -132
  69. package/dist/index-CHgaOUiW.d.mts +0 -52590
  70. package/dist/index-CHgaOUiW.d.ts +0 -52590
  71. package/dist/index-CjekOYJl.d.mts +0 -38
  72. package/dist/index-DN-jrh8-.d.ts +0 -213
  73. package/dist/index-DdN22cwf.d.ts +0 -38
  74. package/dist/index-DkIIQLbh.d.ts +0 -92
  75. package/dist/index-DlaCsN95.d.ts +0 -66
  76. package/dist/index-lh6qBAf_.d.mts +0 -92
  77. package/dist/index-o0WW1c5O.d.ts +0 -132
  78. package/dist/index-xThRnNN3.d.mts +0 -213
  79. package/dist/index.css +0 -2131
  80. package/dist/index.d.mts +0 -789
  81. package/dist/index.d.ts +0 -789
  82. package/dist/index.js +0 -9206
  83. package/dist/index.js.map +0 -1
  84. package/dist/index.mjs +0 -45
  85. package/dist/index.mjs.map +0 -1
  86. package/dist/request-B0CyrGFT.d.mts +0 -15
  87. package/dist/request-B0CyrGFT.d.ts +0 -15
  88. package/dist/types-CheN9vHJ.d.mts +0 -428
  89. package/dist/types-CheN9vHJ.d.ts +0 -428
  90. package/dist/types.d.mts +0 -3
  91. package/dist/types.d.ts +0 -3
  92. package/dist/types.js +0 -44
  93. package/dist/types.js.map +0 -1
  94. package/dist/types.mjs +0 -11
  95. package/dist/types.mjs.map +0 -1
  96. package/dist/ui.d.mts +0 -7
  97. package/dist/ui.d.ts +0 -7
  98. package/dist/ui.js +0 -1682
  99. package/dist/ui.js.map +0 -1
  100. package/dist/ui.mjs +0 -47
  101. package/dist/ui.mjs.map +0 -1
  102. package/dist/utils.d.mts +0 -28
  103. package/dist/utils.d.ts +0 -28
  104. package/dist/utils.js +0 -192
  105. package/dist/utils.js.map +0 -1
  106. package/dist/utils.mjs +0 -34
  107. package/dist/utils.mjs.map +0 -1
  108. package/example/package-lock.json +0 -2965
package/dist/icon.mjs DELETED
@@ -1,112 +0,0 @@
1
- import {
2
- ArrowDownIcon,
3
- ArrowLeftIcon,
4
- ArrowRightIcon,
5
- ArrowSendIcon,
6
- BTCDarkIcon,
7
- BTCLightIcon,
8
- BackIcon,
9
- BitgetIcon,
10
- CheckIcon,
11
- CheckRoundIcon,
12
- CheckboxCheckedIcon,
13
- CheckboxIcon,
14
- CloseEyeIcon,
15
- CloseIcon,
16
- CloseRoundIcon,
17
- CopyIcon,
18
- DeleteRoundIcon,
19
- DiscordIcon,
20
- EVMDarkIcon,
21
- EVMLightIcon,
22
- EmailIcon,
23
- EmailLineIcon,
24
- ErrorRoundIcon,
25
- FacebookIcon,
26
- GithubIcon,
27
- GoogleIcon,
28
- InfoLineIcon,
29
- InfoRoundIcon,
30
- InputLengthIcon,
31
- LeatherIcon,
32
- LinkedinIcon,
33
- LoadingIcon_default,
34
- LoginIcon_default,
35
- MoreIcon,
36
- OKXIcon,
37
- OpenEyeIcon,
38
- PasswordRoundIcon,
39
- PhantomIcon,
40
- SOLDarkIcon,
41
- SOLLightIcon,
42
- TRXDarkIcon,
43
- TRXLightIcon,
44
- TelegramIcon,
45
- TonLightIcon,
46
- TonLightIcon2,
47
- TransferIcon,
48
- TronLinkIcon,
49
- UnLoginIcon_default,
50
- UnisatIcon,
51
- WalletIcon,
52
- XIcon,
53
- XverseIcon,
54
- YoutubeIcon
55
- } from "./chunk-GD7URBBZ.mjs";
56
- import "./chunk-J5LGTIGS.mjs";
57
- export {
58
- ArrowDownIcon,
59
- ArrowLeftIcon,
60
- ArrowRightIcon,
61
- ArrowSendIcon,
62
- BTCDarkIcon,
63
- BTCLightIcon,
64
- BackIcon,
65
- BitgetIcon,
66
- CheckIcon,
67
- CheckRoundIcon,
68
- CheckboxCheckedIcon,
69
- CheckboxIcon,
70
- CloseEyeIcon,
71
- CloseIcon,
72
- CloseRoundIcon,
73
- CopyIcon,
74
- DeleteRoundIcon,
75
- DiscordIcon,
76
- EVMDarkIcon,
77
- EVMLightIcon,
78
- EmailIcon,
79
- EmailLineIcon,
80
- ErrorRoundIcon,
81
- FacebookIcon,
82
- GithubIcon,
83
- GoogleIcon,
84
- InfoLineIcon,
85
- InfoRoundIcon,
86
- InputLengthIcon,
87
- LeatherIcon,
88
- LinkedinIcon,
89
- LoadingIcon_default as LoadingIcon,
90
- LoginIcon_default as LoginIcon,
91
- MoreIcon,
92
- OKXIcon,
93
- OpenEyeIcon,
94
- PasswordRoundIcon,
95
- PhantomIcon,
96
- SOLDarkIcon,
97
- SOLLightIcon,
98
- TRXDarkIcon,
99
- TRXLightIcon,
100
- TelegramIcon,
101
- TonLightIcon as TonDarkIcon,
102
- TonLightIcon2 as TonLightIcon,
103
- TransferIcon,
104
- TronLinkIcon,
105
- UnLoginIcon_default as UnLoginIcon,
106
- UnisatIcon,
107
- WalletIcon,
108
- XIcon,
109
- XverseIcon,
110
- YoutubeIcon
111
- };
112
- //# sourceMappingURL=icon.mjs.map
package/dist/icon.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,83 +0,0 @@
1
- import * as viem from 'viem';
2
-
3
- declare const matchMain: {
4
- blockExplorers: {
5
- readonly default: {
6
- readonly name: "Matchscan";
7
- readonly url: "https://matchscan.io/";
8
- readonly apiUrl: "https://matchscan.io/api";
9
- };
10
- };
11
- contracts: {
12
- readonly multicall3: {
13
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
14
- };
15
- };
16
- id: 698;
17
- name: "Matchain";
18
- nativeCurrency: {
19
- readonly name: "Match Coin";
20
- readonly symbol: "BNB";
21
- readonly decimals: 18;
22
- };
23
- rpcUrls: {
24
- readonly default: {
25
- readonly http: readonly ["https://rpc.matchain.io"];
26
- };
27
- };
28
- sourceId?: number | undefined | undefined;
29
- testnet?: boolean | undefined | undefined;
30
- custom?: Record<string, unknown> | undefined;
31
- fees?: viem.ChainFees<undefined> | undefined;
32
- formatters?: undefined;
33
- serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
34
- readonly iconUrl: "https://matchscan.io/static/identicon_logos/blockies.png";
35
- };
36
-
37
- declare const matchTest: {
38
- blockExplorers: {
39
- readonly default: {
40
- readonly name: "Matchscan";
41
- readonly url: "https://testnet.matchscan.io/";
42
- readonly apiUrl: "https://testnet.matchscan.io/api";
43
- };
44
- };
45
- contracts: {
46
- readonly multicall3: {
47
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
48
- readonly blockCreated: 751532;
49
- };
50
- readonly ensRegistry: {
51
- readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
52
- };
53
- readonly ensUniversalResolver: {
54
- readonly address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC";
55
- readonly blockCreated: 5317080;
56
- };
57
- };
58
- id: 699;
59
- name: "MatchTest";
60
- nativeCurrency: {
61
- readonly name: "Match Coin";
62
- readonly symbol: "BNB";
63
- readonly decimals: 18;
64
- };
65
- rpcUrls: {
66
- readonly default: {
67
- readonly http: readonly ["https://testnet-rpc.matchain.io"];
68
- };
69
- };
70
- sourceId?: number | undefined | undefined;
71
- testnet?: boolean | undefined | undefined;
72
- custom?: Record<string, unknown> | undefined;
73
- fees?: viem.ChainFees<undefined> | undefined;
74
- formatters?: undefined;
75
- serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
76
- readonly iconUrl: "https://testnet.matchscan.io/static/identicon_logos/blockies.png";
77
- };
78
-
79
- declare namespace index {
80
- export { matchMain as MatchMain, matchTest as MatchTest };
81
- }
82
-
83
- export { matchTest as a, index as i, matchMain as m };
@@ -1,83 +0,0 @@
1
- import * as viem from 'viem';
2
-
3
- declare const matchMain: {
4
- blockExplorers: {
5
- readonly default: {
6
- readonly name: "Matchscan";
7
- readonly url: "https://matchscan.io/";
8
- readonly apiUrl: "https://matchscan.io/api";
9
- };
10
- };
11
- contracts: {
12
- readonly multicall3: {
13
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
14
- };
15
- };
16
- id: 698;
17
- name: "Matchain";
18
- nativeCurrency: {
19
- readonly name: "Match Coin";
20
- readonly symbol: "BNB";
21
- readonly decimals: 18;
22
- };
23
- rpcUrls: {
24
- readonly default: {
25
- readonly http: readonly ["https://rpc.matchain.io"];
26
- };
27
- };
28
- sourceId?: number | undefined | undefined;
29
- testnet?: boolean | undefined | undefined;
30
- custom?: Record<string, unknown> | undefined;
31
- fees?: viem.ChainFees<undefined> | undefined;
32
- formatters?: undefined;
33
- serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
34
- readonly iconUrl: "https://matchscan.io/static/identicon_logos/blockies.png";
35
- };
36
-
37
- declare const matchTest: {
38
- blockExplorers: {
39
- readonly default: {
40
- readonly name: "Matchscan";
41
- readonly url: "https://testnet.matchscan.io/";
42
- readonly apiUrl: "https://testnet.matchscan.io/api";
43
- };
44
- };
45
- contracts: {
46
- readonly multicall3: {
47
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
48
- readonly blockCreated: 751532;
49
- };
50
- readonly ensRegistry: {
51
- readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
52
- };
53
- readonly ensUniversalResolver: {
54
- readonly address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC";
55
- readonly blockCreated: 5317080;
56
- };
57
- };
58
- id: 699;
59
- name: "MatchTest";
60
- nativeCurrency: {
61
- readonly name: "Match Coin";
62
- readonly symbol: "BNB";
63
- readonly decimals: 18;
64
- };
65
- rpcUrls: {
66
- readonly default: {
67
- readonly http: readonly ["https://testnet-rpc.matchain.io"];
68
- };
69
- };
70
- sourceId?: number | undefined | undefined;
71
- testnet?: boolean | undefined | undefined;
72
- custom?: Record<string, unknown> | undefined;
73
- fees?: viem.ChainFees<undefined> | undefined;
74
- formatters?: undefined;
75
- serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
76
- readonly iconUrl: "https://testnet.matchscan.io/static/identicon_logos/blockies.png";
77
- };
78
-
79
- declare namespace index {
80
- export { matchMain as MatchMain, matchTest as MatchTest };
81
- }
82
-
83
- export { matchTest as a, index as i, matchMain as m };
@@ -1,111 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, c as WalletType, P as PopoverPositionType, d as PopoverTypeType, e as LoginPanelProps, f as LoginModalProps, M as ModalWithHeaderProps, g as WalletAssetMergeType, u as useMatchWalletAssetsProps } from './types-CheN9vHJ.js';
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-DdN22cwf.js';
4
- import { ReactNode } from 'react';
5
-
6
- declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
7
-
8
- declare function LoginBox({ recommendMethods, methods, walletMethods, inModal }: LoginBoxProps): react_jsx_runtime.JSX.Element;
9
-
10
- declare function LoginButton({ loginRender, methods, recommendMethods, onLoginClick, popoverPosition, popoverType, popoverGap, walletMethods, ...props }: Omit<ButtonProps, 'onClick' | 'highlight'> & {
11
- loginRender?: ReactNode;
12
- methods?: OtherLoginMethodType[];
13
- recommendMethods?: RecommendLoginMethodType[];
14
- walletMethods?: WalletType[];
15
- onLoginClick?: () => void;
16
- popoverPosition?: PopoverPositionType;
17
- popoverType?: PopoverTypeType;
18
- popoverGap?: number | string;
19
- }): react_jsx_runtime.JSX.Element;
20
-
21
- declare function LoginPanel({ header, onClose, ...props }: LoginPanelProps): react_jsx_runtime.JSX.Element;
22
-
23
- declare function LoginModal({ isOpen, width, ...props }: LoginModalProps): react_jsx_runtime.JSX.Element;
24
-
25
- declare function UsernameModal({ title, isOpen, onSuccess, ...props }: ModalWithHeaderProps & {
26
- onSuccess?: () => void;
27
- }): react_jsx_runtime.JSX.Element;
28
-
29
- type EVMModalProps = ModalWithHeaderProps & {
30
- type?: 'login' | 'bind' | '';
31
- onSuccess?: () => void;
32
- };
33
- declare function EVMModal(props: EVMModalProps): false | react_jsx_runtime.JSX.Element;
34
-
35
- type TRONConnectModalProps = ModalWithHeaderProps & {
36
- type?: 'login' | 'bind' | '';
37
- onSuccess?: () => void;
38
- };
39
- declare function TRONModal(props: TRONConnectModalProps): false | react_jsx_runtime.JSX.Element;
40
-
41
- type TonModalProps = ModalWithHeaderProps & {
42
- type?: 'login' | 'bind' | '';
43
- onSuccess?: () => void;
44
- };
45
- declare function TONModal(props: TonModalProps): false | react_jsx_runtime.JSX.Element;
46
-
47
- type BTCConnectModalProps = ModalWithHeaderProps & {
48
- type?: 'login' | 'bind' | '';
49
- onSuccess?: () => void;
50
- };
51
- declare function BTCModal(props: BTCConnectModalProps): false | react_jsx_runtime.JSX.Element;
52
-
53
- type WalletModalProps = ModalWithHeaderProps & {
54
- type?: 'login' | 'bind' | '';
55
- methods?: WalletType[];
56
- };
57
- declare function WalletModal(props: WalletModalProps): false | react_jsx_runtime.JSX.Element;
58
-
59
- declare function WalletAsset({ onAssetClick, matchWalletAssetsOptions }: {
60
- onAssetClick?: (asset: WalletAssetMergeType) => () => void;
61
- matchWalletAssetsOptions?: useMatchWalletAssetsProps;
62
- }): react_jsx_runtime.JSX.Element;
63
-
64
- declare function TokenDetail({ onClose, token }: {
65
- onClose: () => void;
66
- token: WalletAssetMergeType;
67
- }): react_jsx_runtime.JSX.Element;
68
-
69
- declare function TokenSend({ onClose, zIndex, token, onBack }: {
70
- onBack: () => void;
71
- onClose: () => void;
72
- zIndex: number;
73
- token: WalletAssetMergeType;
74
- }): react_jsx_runtime.JSX.Element;
75
-
76
- declare function TokenSendList({ close }: {
77
- close: () => void;
78
- }): react_jsx_runtime.JSX.Element;
79
-
80
- declare function TransactionList({ scrollableTarget }: {
81
- scrollableTarget?: ReactNode;
82
- }): react_jsx_runtime.JSX.Element;
83
-
84
- declare const index_BTCModal: typeof BTCModal;
85
- declare const index_Button: typeof Button;
86
- declare const index_EVMModal: typeof EVMModal;
87
- declare const index_EmailModal: typeof EmailModal;
88
- declare const index_Field: typeof Field;
89
- declare const index_Input: typeof Input;
90
- declare const index_LoginBox: typeof LoginBox;
91
- declare const index_LoginButton: typeof LoginButton;
92
- declare const index_LoginModal: typeof LoginModal;
93
- declare const index_LoginPanel: typeof LoginPanel;
94
- declare const index_Modal: typeof Modal;
95
- declare const index_ModalWithHeader: typeof ModalWithHeader;
96
- declare const index_Overlay: typeof Overlay;
97
- declare const index_Popover: typeof Popover;
98
- declare const index_TONModal: typeof TONModal;
99
- declare const index_TRONModal: typeof TRONModal;
100
- declare const index_TokenDetail: typeof TokenDetail;
101
- declare const index_TokenSend: typeof TokenSend;
102
- declare const index_TokenSendList: typeof TokenSendList;
103
- declare const index_TransactionList: typeof TransactionList;
104
- declare const index_UsernameModal: typeof UsernameModal;
105
- declare const index_WalletAsset: typeof WalletAsset;
106
- declare const index_WalletModal: typeof WalletModal;
107
- declare namespace index {
108
- export { index_BTCModal as BTCModal, index_Button as Button, index_EVMModal as EVMModal, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_Popover as Popover, index_TONModal as TONModal, index_TRONModal as TRONModal, index_TokenDetail as TokenDetail, index_TokenSend as TokenSend, index_TokenSendList as TokenSendList, index_TransactionList as TransactionList, index_UsernameModal as UsernameModal, index_WalletAsset as WalletAsset, index_WalletModal as WalletModal };
109
- }
110
-
111
- export { BTCModal as B, EmailModal as E, LoginBox as L, TRONModal as T, UsernameModal as U, WalletModal as W, LoginButton as a, LoginPanel as b, LoginModal as c, EVMModal as d, TONModal as e, WalletAsset as f, TokenDetail as g, TokenSend as h, index as i, TokenSendList as j, TransactionList as k };