@matchain/matchid-sdk-react 0.1.55-alpha.10 → 0.1.55-alpha.12

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 (54) hide show
  1. package/dist/api.d.mts +2 -2
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.mjs +2 -2
  4. package/dist/assets/lottie.d.mts +1 -1
  5. package/dist/assets/lottie.d.ts +1 -1
  6. package/dist/chains.d.mts +1 -1
  7. package/dist/chains.d.ts +1 -1
  8. package/dist/{chunk-5WFY6MWJ.mjs → chunk-BZ2PI27T.mjs} +9 -4
  9. package/dist/{chunk-5WFY6MWJ.mjs.map → chunk-BZ2PI27T.mjs.map} +1 -1
  10. package/dist/{chunk-JTNCYI5F.mjs → chunk-LEFO352N.mjs} +2 -2
  11. package/dist/components.d.mts +3 -3
  12. package/dist/components.d.ts +3 -3
  13. package/dist/components.js +8 -3
  14. package/dist/components.js.map +1 -1
  15. package/dist/components.mjs +1 -1
  16. package/dist/hooks.d.mts +4 -2
  17. package/dist/hooks.d.ts +4 -2
  18. package/dist/hooks.js.map +1 -1
  19. package/dist/hooks.mjs +1 -1
  20. package/dist/icon.d.mts +2 -2
  21. package/dist/icon.d.ts +2 -2
  22. package/dist/{index-BjdOd1te.d.mts → index--EI6w9pi.d.mts} +984 -978
  23. package/dist/{index-Bx7ztInz.d.ts → index-4dZbgWG2.d.ts} +1 -1
  24. package/dist/{index-Ba8t2zs6.d.mts → index-B4lczvhL.d.mts} +2 -2
  25. package/dist/{index-DXRGMAbv.d.mts → index-B50DU_xT.d.mts} +4 -4
  26. package/dist/{index-DXRGMAbv.d.ts → index-B50DU_xT.d.ts} +4 -4
  27. package/dist/{index-BTO2pJRz.d.ts → index-B80rDuha.d.ts} +1 -1
  28. package/dist/{index-DY5CjOq2.d.ts → index-BBghnVDr.d.ts} +1 -1
  29. package/dist/{index-DL0LMDQ0.d.mts → index-C14uKUDG.d.mts} +2 -2
  30. package/dist/{index-DysgDUCb.d.mts → index-CDTTHSh0.d.mts} +14 -14
  31. package/dist/{index-DysgDUCb.d.ts → index-CDTTHSh0.d.ts} +14 -14
  32. package/dist/{index-HYPgwvkU.d.mts → index-CHtFnnZk.d.mts} +1 -1
  33. package/dist/{index-DueNjDv_.d.ts → index-Cl0JpAc1.d.ts} +984 -978
  34. package/dist/{index-CopoHLm5.d.ts → index-CwHXzvvB.d.ts} +1 -1
  35. package/dist/{index-8h2kA48e.d.ts → index-DGbpUvkd.d.ts} +2 -2
  36. package/dist/{index-BW1GRpQ3.d.mts → index-FKxw4Vaa.d.mts} +1 -1
  37. package/dist/{index-D6wTVWuu.d.mts → index-QPdWAVPk.d.mts} +1 -1
  38. package/dist/{index-D2hhRO2j.d.mts → index-TjbO7d74.d.mts} +1 -1
  39. package/dist/{index-B-u8_Lcy.d.ts → index-UJfUO0uH.d.ts} +2 -2
  40. package/dist/index.d.mts +18 -17
  41. package/dist/index.d.ts +18 -17
  42. package/dist/index.js +8 -3
  43. package/dist/index.js.map +1 -1
  44. package/dist/index.mjs +2 -2
  45. package/dist/{types-Ch54HuTY.d.mts → types-DEsY_CPH.d.mts} +1 -1
  46. package/dist/{types-Ch54HuTY.d.ts → types-DEsY_CPH.d.ts} +1 -1
  47. package/dist/types.d.mts +1 -1
  48. package/dist/types.d.ts +1 -1
  49. package/dist/ui.d.mts +3 -3
  50. package/dist/ui.d.ts +3 -3
  51. package/dist/ui.js.map +1 -1
  52. package/dist/ui.mjs +1 -1
  53. package/package.json +1 -1
  54. /package/dist/{chunk-JTNCYI5F.mjs.map → chunk-LEFO352N.mjs.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
- import { w as PohZkpassParams, r as UserTransactionType, x as UserTransactionNextPageParams, y as WalletAssetType, z as MetaPageType, F as BindItemType, G as BindInfoType, J as PohItemType, p as UserChainType, t as UserAssetToken, s as UserImportTokenType, K as WalletChainType, N as WalletNFTType } from './types-Ch54HuTY.js';
3
+ import { w as PohZkpassParams, r as UserTransactionType, x as UserTransactionNextPageParams, y as WalletAssetType, z as MetaPageType, F as BindItemType, G as BindInfoType, J as PohItemType, p as UserChainType, t as UserAssetToken, s as UserImportTokenType, K as WalletChainType, N as WalletNFTType } from './types-DEsY_CPH.js';
4
4
  import { M as MyResponseType, i as isSuccess } from './request-B0CyrGFT.js';
5
5
 
6
6
  declare const bindCexApi: (data: {
@@ -1,6 +1,6 @@
1
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-Ch54HuTY.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-BTO2pJRz.js';
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-DEsY_CPH.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-B80rDuha.js';
4
4
  import { ReactNode } from 'react';
5
5
 
6
6
  declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { A as Address, q as AnyObject, Q as AppConfigType, S as AuthParams, G as BindInfoType, F as BindItemType, T as BindWalletParam, B as ButtonProps, C as CEXType, o as ChainType, V as DeepPartial, D as DrawerProps, E as EmailModalProps, X as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, Y as IEnvName, Z as ILoginWalletReq, I as IMatchEvents, l as ISocialLoginMethod, v as IconProps, i as InputProps, L as LocaleType, b as LoginBoxProps, n as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, _ as MessageType, z as MetaPageType, j as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, m as OverviewInfo, J as PohItemType, w as PohZkpassParams, P as PopoverPositionType, k as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, $ as RecoveryType, a0 as ThemeType, U as UIProps, t as UserAssetToken, p as UserChainType, s as UserImportTokenType, a1 as UserPopoverProps, x as UserTransactionNextPageParams, a2 as UserTransactionRecordType, r as UserTransactionType, g as WalletAssetMergeType, y as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, h as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from './types-Ch54HuTY.mjs';
1
+ import { A as Address, q as AnyObject, Q as AppConfigType, S as AuthParams, G as BindInfoType, F as BindItemType, T as BindWalletParam, B as ButtonProps, C as CEXType, o as ChainType, V as DeepPartial, D as DrawerProps, E as EmailModalProps, X as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, Y as IEnvName, Z as ILoginWalletReq, I as IMatchEvents, l as ISocialLoginMethod, v as IconProps, i as InputProps, L as LocaleType, b as LoginBoxProps, n as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, _ as MessageType, z as MetaPageType, j as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, m as OverviewInfo, J as PohItemType, w as PohZkpassParams, P as PopoverPositionType, k as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, $ as RecoveryType, a0 as ThemeType, U as UIProps, t as UserAssetToken, p as UserChainType, s as UserImportTokenType, a1 as UserPopoverProps, x as UserTransactionNextPageParams, a2 as UserTransactionRecordType, r as UserTransactionType, g as WalletAssetMergeType, y as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, h as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from './types-DEsY_CPH.mjs';
2
2
 
3
3
  declare const index_Address: typeof Address;
4
4
  declare const index_AnyObject: typeof AnyObject;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { ReactNode, PropsWithChildren } from 'react';
3
- import { i as InputProps, B as ButtonProps, j as ModalProps, M as ModalWithHeaderProps, k as PopoverProps } from './types-Ch54HuTY.mjs';
3
+ import { i as InputProps, B as ButtonProps, j as ModalProps, M as ModalWithHeaderProps, k as PopoverProps } from './types-DEsY_CPH.mjs';
4
4
 
5
5
  declare function Field({ label, children, error, required, className }: {
6
6
  label: ReactNode;
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
- import { w as PohZkpassParams, r as UserTransactionType, x as UserTransactionNextPageParams, y as WalletAssetType, z as MetaPageType, F as BindItemType, G as BindInfoType, J as PohItemType, p as UserChainType, t as UserAssetToken, s as UserImportTokenType, K as WalletChainType, N as WalletNFTType } from './types-Ch54HuTY.mjs';
3
+ import { w as PohZkpassParams, r as UserTransactionType, x as UserTransactionNextPageParams, y as WalletAssetType, z as MetaPageType, F as BindItemType, G as BindInfoType, J as PohItemType, p as UserChainType, t as UserAssetToken, s as UserImportTokenType, K as WalletChainType, N as WalletNFTType } from './types-DEsY_CPH.mjs';
4
4
  import { M as MyResponseType, i as isSuccess } from './request-B0CyrGFT.mjs';
5
5
 
6
6
  declare const bindCexApi: (data: {
@@ -1,6 +1,6 @@
1
- import { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-BTO2pJRz.js';
1
+ import { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-B80rDuha.js';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { D as DrawerProps, h as WalletPanelProps, U as UIProps } from './types-Ch54HuTY.js';
3
+ import { D as DrawerProps, h as WalletPanelProps, U as UIProps } from './types-DEsY_CPH.js';
4
4
  import { Hash, Chain } from 'viem';
5
5
  import React, { CSSProperties } from 'react';
6
6
  import { LottieComponentProps } from 'lottie-react';
package/dist/index.d.mts CHANGED
@@ -1,26 +1,27 @@
1
1
  import * as wagmi from 'wagmi';
2
2
  import * as _rainbow_me_rainbowkit_dist_config_getDefaultConfig from '@rainbow-me/rainbowkit/dist/config/getDefaultConfig';
3
- import * as viem_chains from 'viem/chains';
4
3
  import * as abitype from 'abitype';
5
4
  import * as wagmi_chains from 'wagmi/chains';
6
5
  import * as viem from 'viem';
7
6
  import React, { ReactNode } from 'react';
8
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-Ch54HuTY.mjs';
9
- export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-BjdOd1te.mjs';
10
- export { i as Components } from './index-DL0LMDQ0.mjs';
11
- export { i as UI } from './index-Ba8t2zs6.mjs';
12
- export { i as Api } from './index-D2hhRO2j.mjs';
13
- export { i as Chains } from './index-DXRGMAbv.mjs';
14
- export { i as Types } from './index-BW1GRpQ3.mjs';
15
- export { i as Icon } from './index-HYPgwvkU.mjs';
16
- export { i as Lottie } from './index-DysgDUCb.mjs';
7
+ import { I as IMatchEvents, L as LocaleType, a as IEnvConfigType, W as WalletConfigType } from './types-DEsY_CPH.mjs';
8
+ export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index--EI6w9pi.mjs';
9
+ export { i as Components } from './index-C14uKUDG.mjs';
10
+ export { i as UI } from './index-B4lczvhL.mjs';
11
+ export { i as Api } from './index-TjbO7d74.mjs';
12
+ export { i as Chains } from './index-B50DU_xT.mjs';
13
+ export { i as Types } from './index-FKxw4Vaa.mjs';
14
+ export { i as Icon } from './index-CHtFnnZk.mjs';
15
+ export { i as Lottie } from './index-CDTTHSh0.mjs';
17
16
  import '@tanstack/react-query/src/types';
18
17
  import './request-B0CyrGFT.mjs';
19
18
  import 'viem/types/misc';
20
19
  import 'react/jsx-runtime';
21
20
  import 'viem/_types/actions/siwe/verifySiweMessage';
21
+ import 'viem/_types/utils/ccip';
22
+ import 'viem/chains';
22
23
  import '@tanstack/react-query';
23
- import './index-D6wTVWuu.mjs';
24
+ import './index-QPdWAVPk.mjs';
24
25
  import 'lottie-react';
25
26
 
26
27
  declare const wagmiConfig: wagmi.Config<[{
@@ -187,7 +188,7 @@ declare const wagmiConfig: wagmi.Config<[{
187
188
  stateRoot: viem.Hash;
188
189
  timestamp: bigint;
189
190
  totalDifficulty: bigint | null;
190
- transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
191
+ transactions: `0x${string}`[] | wagmi_chains.OpStackTransaction<boolean>[];
191
192
  transactionsRoot: viem.Hash;
192
193
  uncles: viem.Hash[];
193
194
  withdrawals?: viem.Withdrawal[] | undefined;
@@ -485,7 +486,7 @@ declare const wagmiConfig: wagmi.Config<[{
485
486
  stateRoot: viem.Hash;
486
487
  timestamp: bigint;
487
488
  totalDifficulty: bigint | null;
488
- transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
489
+ transactions: `0x${string}`[] | wagmi_chains.OpStackTransaction<boolean>[];
489
490
  transactionsRoot: viem.Hash;
490
491
  uncles: viem.Hash[];
491
492
  withdrawals?: viem.Withdrawal[] | undefined;
@@ -686,8 +687,8 @@ declare const wagmiConfig: wagmi.Config<[{
686
687
  readonly http: readonly ["https://rpc.matchain.io"];
687
688
  };
688
689
  };
689
- sourceId?: number | undefined;
690
- testnet?: boolean | undefined;
690
+ sourceId?: number | undefined | undefined;
691
+ testnet?: boolean | undefined | undefined;
691
692
  custom?: Record<string, unknown> | undefined;
692
693
  fees?: viem.ChainFees<undefined> | undefined;
693
694
  formatters?: undefined;
@@ -726,8 +727,8 @@ declare const wagmiConfig: wagmi.Config<[{
726
727
  readonly http: readonly ["https://testnet-rpc.matchain.io"];
727
728
  };
728
729
  };
729
- sourceId?: number | undefined;
730
- testnet?: boolean | undefined;
730
+ sourceId?: number | undefined | undefined;
731
+ testnet?: boolean | undefined | undefined;
731
732
  custom?: Record<string, unknown> | undefined;
732
733
  fees?: viem.ChainFees<undefined> | undefined;
733
734
  formatters?: undefined;
package/dist/index.d.ts CHANGED
@@ -1,26 +1,27 @@
1
1
  import * as wagmi from 'wagmi';
2
2
  import * as _rainbow_me_rainbowkit_dist_config_getDefaultConfig from '@rainbow-me/rainbowkit/dist/config/getDefaultConfig';
3
- import * as viem_chains from 'viem/chains';
4
3
  import * as abitype from 'abitype';
5
4
  import * as wagmi_chains from 'wagmi/chains';
6
5
  import * as viem from 'viem';
7
6
  import React, { ReactNode } from 'react';
8
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-Ch54HuTY.js';
9
- export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-DueNjDv_.js';
10
- export { i as Components } from './index-8h2kA48e.js';
11
- export { i as UI } from './index-B-u8_Lcy.js';
12
- export { i as Api } from './index-CopoHLm5.js';
13
- export { i as Chains } from './index-DXRGMAbv.js';
14
- export { i as Types } from './index-Bx7ztInz.js';
15
- export { i as Icon } from './index-DY5CjOq2.js';
16
- export { i as Lottie } from './index-DysgDUCb.js';
7
+ import { I as IMatchEvents, L as LocaleType, a as IEnvConfigType, W as WalletConfigType } from './types-DEsY_CPH.js';
8
+ export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-Cl0JpAc1.js';
9
+ export { i as Components } from './index-DGbpUvkd.js';
10
+ export { i as UI } from './index-UJfUO0uH.js';
11
+ export { i as Api } from './index-CwHXzvvB.js';
12
+ export { i as Chains } from './index-B50DU_xT.js';
13
+ export { i as Types } from './index-4dZbgWG2.js';
14
+ export { i as Icon } from './index-BBghnVDr.js';
15
+ export { i as Lottie } from './index-CDTTHSh0.js';
17
16
  import '@tanstack/react-query/src/types';
18
17
  import './request-B0CyrGFT.js';
19
18
  import 'viem/types/misc';
20
19
  import 'react/jsx-runtime';
21
20
  import 'viem/_types/actions/siwe/verifySiweMessage';
21
+ import 'viem/_types/utils/ccip';
22
+ import 'viem/chains';
22
23
  import '@tanstack/react-query';
23
- import './index-BTO2pJRz.js';
24
+ import './index-B80rDuha.js';
24
25
  import 'lottie-react';
25
26
 
26
27
  declare const wagmiConfig: wagmi.Config<[{
@@ -187,7 +188,7 @@ declare const wagmiConfig: wagmi.Config<[{
187
188
  stateRoot: viem.Hash;
188
189
  timestamp: bigint;
189
190
  totalDifficulty: bigint | null;
190
- transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
191
+ transactions: `0x${string}`[] | wagmi_chains.OpStackTransaction<boolean>[];
191
192
  transactionsRoot: viem.Hash;
192
193
  uncles: viem.Hash[];
193
194
  withdrawals?: viem.Withdrawal[] | undefined;
@@ -485,7 +486,7 @@ declare const wagmiConfig: wagmi.Config<[{
485
486
  stateRoot: viem.Hash;
486
487
  timestamp: bigint;
487
488
  totalDifficulty: bigint | null;
488
- transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
489
+ transactions: `0x${string}`[] | wagmi_chains.OpStackTransaction<boolean>[];
489
490
  transactionsRoot: viem.Hash;
490
491
  uncles: viem.Hash[];
491
492
  withdrawals?: viem.Withdrawal[] | undefined;
@@ -686,8 +687,8 @@ declare const wagmiConfig: wagmi.Config<[{
686
687
  readonly http: readonly ["https://rpc.matchain.io"];
687
688
  };
688
689
  };
689
- sourceId?: number | undefined;
690
- testnet?: boolean | undefined;
690
+ sourceId?: number | undefined | undefined;
691
+ testnet?: boolean | undefined | undefined;
691
692
  custom?: Record<string, unknown> | undefined;
692
693
  fees?: viem.ChainFees<undefined> | undefined;
693
694
  formatters?: undefined;
@@ -726,8 +727,8 @@ declare const wagmiConfig: wagmi.Config<[{
726
727
  readonly http: readonly ["https://testnet-rpc.matchain.io"];
727
728
  };
728
729
  };
729
- sourceId?: number | undefined;
730
- testnet?: boolean | undefined;
730
+ sourceId?: number | undefined | undefined;
731
+ testnet?: boolean | undefined | undefined;
731
732
  custom?: Record<string, unknown> | undefined;
732
733
  fees?: viem.ChainFees<undefined> | undefined;
733
734
  formatters?: undefined;
package/dist/index.js CHANGED
@@ -3699,7 +3699,7 @@ var import_wagmi = require("wagmi");
3699
3699
  var import_ethers = require("ethers");
3700
3700
 
3701
3701
  // node_modules/@wagmi/core/dist/esm/version.js
3702
- var version = "2.16.3";
3702
+ var version = "2.16.5";
3703
3703
 
3704
3704
  // node_modules/@wagmi/core/dist/esm/utils/getVersion.js
3705
3705
  var getVersion2 = () => `@wagmi/core@${version}`;
@@ -3850,7 +3850,11 @@ async function getConnectorClient(config, parameters = {}) {
3850
3850
  if (config.state.status === "reconnecting" && !connector2.getAccounts && !connector2.getChainId)
3851
3851
  throw new ConnectorUnavailableReconnectingError({ connector: connector2 });
3852
3852
  const [accounts, chainId2] = await Promise.all([
3853
- connector2.getAccounts(),
3853
+ connector2.getAccounts().catch((e) => {
3854
+ if (parameters.account === null)
3855
+ return [];
3856
+ throw e;
3857
+ }),
3854
3858
  connector2.getChainId()
3855
3859
  ]);
3856
3860
  connection = {
@@ -3873,7 +3877,8 @@ async function getConnectorClient(config, parameters = {}) {
3873
3877
  if (connector.getClient)
3874
3878
  return connector.getClient({ chainId });
3875
3879
  const account = (0, import_utils6.parseAccount)(parameters.account ?? connection.accounts[0]);
3876
- account.address = (0, import_utils6.getAddress)(account.address);
3880
+ if (account)
3881
+ account.address = (0, import_utils6.getAddress)(account.address);
3877
3882
  if (parameters.account && !connection.accounts.some((x) => x.toLowerCase() === account.address.toLowerCase()))
3878
3883
  throw new ConnectorAccountNotFoundError({
3879
3884
  address: account.address,