@matchain/matchid-sdk-react 0.1.40-alpha.3 → 0.1.40-alpha.5

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 (39) hide show
  1. package/dist/assets/icon/index.d.mts +1 -1
  2. package/dist/assets/icon/index.d.ts +1 -1
  3. package/dist/{chunk-XXZABHH6.mjs → chunk-222KVWTM.mjs} +317 -96
  4. package/dist/chunk-222KVWTM.mjs.map +1 -0
  5. package/dist/{chunk-ZBOW562R.mjs → chunk-XN6V3UI6.mjs} +2 -2
  6. package/dist/components/index.d.mts +2 -2
  7. package/dist/components/index.d.ts +2 -2
  8. package/dist/components/index.js +243 -36
  9. package/dist/components/index.js.map +1 -1
  10. package/dist/components/index.mjs +3 -1
  11. package/dist/hooks/api/index.d.mts +2 -2
  12. package/dist/hooks/api/index.d.ts +2 -2
  13. package/dist/hooks/api/index.js +37 -20
  14. package/dist/hooks/api/index.js.map +1 -1
  15. package/dist/hooks/api/index.mjs +2 -2
  16. package/dist/hooks/index.d.mts +2 -2
  17. package/dist/hooks/index.d.ts +2 -2
  18. package/dist/hooks/index.js +41 -24
  19. package/dist/hooks/index.js.map +1 -1
  20. package/dist/hooks/index.mjs +1 -1
  21. package/dist/{index-mEK7Lcps.d.mts → index-C3KZYrtu.d.mts} +3 -2
  22. package/dist/{index-CvCSpU8m.d.ts → index-COlsBC-b.d.mts} +9 -3
  23. package/dist/{index-BPveUnst.d.ts → index-DoF5jRoi.d.ts} +1 -1
  24. package/dist/{index-DlrDrTMk.d.ts → index-Dq9Swg8r.d.ts} +3 -2
  25. package/dist/{index-ClQl2MMF.d.mts → index-fS75Swm8.d.ts} +9 -3
  26. package/dist/{index-Dm5o2w2J.d.mts → index-fl6SNIZC.d.mts} +1 -1
  27. package/dist/index.d.mts +4 -4
  28. package/dist/index.d.ts +4 -4
  29. package/dist/index.js +314 -100
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +5 -5
  32. package/dist/{types.d-IS3DBl3p.d.mts → types.d-CLO_WLka.d.mts} +1 -1
  33. package/dist/{types.d-IS3DBl3p.d.ts → types.d-CLO_WLka.d.ts} +1 -1
  34. package/example/src/components/Login/index.tsx +2 -2
  35. package/example/src/config/index.ts +6 -1
  36. package/example/src/pages/User.tsx +4 -4
  37. package/package.json +2 -2
  38. package/dist/chunk-XXZABHH6.mjs.map +0 -1
  39. /package/dist/{chunk-ZBOW562R.mjs.map → chunk-XN6V3UI6.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
+ import {
2
+ chains_exports
3
+ } from "./chunk-HYQ3T6WW.mjs";
1
4
  import {
2
5
  api_exports
3
- } from "./chunk-ZBOW562R.mjs";
6
+ } from "./chunk-XN6V3UI6.mjs";
4
7
  import {
5
8
  MatchProvider,
6
9
  components_exports,
7
10
  hooks_exports,
8
11
  useMatch
9
- } from "./chunk-XXZABHH6.mjs";
12
+ } from "./chunk-222KVWTM.mjs";
10
13
  import "./chunk-6PWH7WZI.mjs";
11
- import {
12
- chains_exports
13
- } from "./chunk-HYQ3T6WW.mjs";
14
14
  import "./chunk-J5LGTIGS.mjs";
15
15
  export {
16
16
  api_exports as Api,
@@ -9,7 +9,7 @@ type ISocialLoginMethod =
9
9
  | 'linkedin'
10
10
  | 'facebook'
11
11
  | 'youtube'
12
- type WalletType = 'evm' | 'sol' | 'tron' | 'btc'
12
+ type WalletType = 'evm' | 'sol' | 'tron' | 'btc' | 'ton'
13
13
  type LoginMethodType = WalletType | 'email' | ISocialLoginMethod
14
14
  type CEXType = "Gate" | "Coinbase" | "Kucoin" | 'Bitget' | 'OKX' | 'Bybit' | 'Binance'
15
15
  type OtherLoginMethodType = 'email' | ISocialLoginMethod
@@ -9,7 +9,7 @@ type ISocialLoginMethod =
9
9
  | 'linkedin'
10
10
  | 'facebook'
11
11
  | 'youtube'
12
- type WalletType = 'evm' | 'sol' | 'tron' | 'btc'
12
+ type WalletType = 'evm' | 'sol' | 'tron' | 'btc' | 'ton'
13
13
  type LoginMethodType = WalletType | 'email' | ISocialLoginMethod
14
14
  type CEXType = "Gate" | "Coinbase" | "Kucoin" | 'Bitget' | 'OKX' | 'Bybit' | 'Binance'
15
15
  type OtherLoginMethodType = 'email' | ISocialLoginMethod
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import {Hooks,Components} from "@matchain/matchid-sdk-react";
3
- import {LoginMethod} from "@/config";
3
+ import {LoginMethod, WalletMethod} from "@/config";
4
4
  import {LoginMethodType} from "../../../../src/types/types";
5
5
  const { useUserInfo} = Hooks
6
6
  const {EmailModal,LoginModal,LoginBox,LoginPanel} = Components
@@ -38,7 +38,7 @@ export default function Login(){
38
38
  }}/>
39
39
 
40
40
 
41
- <LoginModal isOpen={loginOpen} walletMethods={["evm","sol",'btc','tron']} onClose={() => setLoginOpen(false)} methods={[
41
+ <LoginModal isOpen={loginOpen} walletMethods={WalletMethod} onClose={() => setLoginOpen(false)} methods={[
42
42
  'telegram',
43
43
  'twitter',
44
44
  'discord',
@@ -1,8 +1,11 @@
1
+ import {WalletType} from "../../../src/types/types";
2
+
1
3
  export const LoginMethod = [
2
4
  'evm',
3
5
  'sol',
4
6
  'tron',
5
7
  'btc',
8
+ 'ton',
6
9
  'twitter',
7
10
  'google',
8
11
  'telegram',
@@ -17,4 +20,6 @@ export const LocaleList = [
17
20
  ]
18
21
 
19
22
  export const CEXList = [
20
- "Gate", "Coinbase", "Kucoin", 'Bitget', 'OKX', 'Bybit', 'Binance']
23
+ "Gate", "Coinbase", "Kucoin", 'Bitget', 'OKX', 'Bybit', 'Binance']
24
+
25
+ export const WalletMethod:WalletType[] = ["evm","sol","btc","tron","ton"]
@@ -1,8 +1,8 @@
1
1
  import {Hooks, Components, Api} from "@matchain/matchid-sdk-react"
2
2
  import React from "react";
3
3
  import RoutePrivate from "../components/RoutePrivate";
4
- import {CEXList, LoginMethod} from "@/config";
5
- import {LoginMethodType} from "../../../src/types/types";
4
+ import {CEXList, LoginMethod, WalletMethod} from "@/config";
5
+ import {CEXType, LoginMethodType} from "../../../src/types/types";
6
6
 
7
7
  const {useMatchEvents, useUserInfo, useWallet} = Hooks
8
8
  const {
@@ -110,7 +110,7 @@ function LoginContent() {
110
110
  {
111
111
  CEXList.map((method) => {
112
112
  return <button key={method} className={`bg-gray-300 p-1 capitalize rounded`}
113
- onClick={() => bindCex(method)}>CEX {method}
113
+ onClick={() => bindCex(method as CEXType)}>CEX {method}
114
114
  </button>
115
115
  })
116
116
  }
@@ -150,7 +150,7 @@ export default function User() {
150
150
  <div className={`font-bold text-lg`}>LoginButton</div>
151
151
 
152
152
  <div className={`bg-gray-100 p-5 mt-5`}>
153
- <LoginButton methods={[ "twitter", 'facebook',"discord","github","youtube","telegram"]} popoverPosition={"left"} walletMethods={['btc','sol','evm','tron']}/>
153
+ <LoginButton methods={[ "twitter", 'facebook',"discord","github","youtube","telegram"]} popoverPosition={"left"} walletMethods={WalletMethod}/>
154
154
  </div>
155
155
  <RoutePrivate>
156
156
  <LoginContent/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matchain/matchid-sdk-react",
3
- "version": "0.1.40-alpha.3",
3
+ "version": "0.1.40-alpha.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -59,6 +59,7 @@
59
59
  "@solana/wallet-adapter-wallets": "0.19.24",
60
60
  "@solana/web3.js": "1.98.0",
61
61
  "@tanstack/react-query": "^5.62.11",
62
+ "@tonconnect/ui-react": "^2.0.11",
62
63
  "axios": "^1.7.0",
63
64
  "copy-to-clipboard": "^3.3.3",
64
65
  "ethers": "^5.7.2",
@@ -78,7 +79,6 @@
78
79
  "@types/react-modal": "^3.16.3",
79
80
  "@types/react-router-dom": "^5.3.3",
80
81
  "chokidar": "^4.0.3",
81
- "esbuild-css-modules-plugin": "^3.1.2",
82
82
  "npm-run-all": "^4.1.5",
83
83
  "tsup": "^8.3.5",
84
84
  "typescript": "^5.6.3"