@matchain/matchid-sdk-react 0.1.53-alpha.8 → 0.1.54
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/assets/icon/index.d.mts +2 -2
- package/dist/assets/icon/index.d.ts +2 -2
- package/dist/{chunk-X5HGL3ZX.mjs → chunk-ZPBHHXEE.mjs} +7689 -338
- package/dist/chunk-ZPBHHXEE.mjs.map +1 -0
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +363 -343
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +9 -11
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +493 -478
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -3
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +258 -248
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +3 -5
- package/dist/{index-D5WIVIkc.d.ts → index-91BdMYDA.d.ts} +4 -2
- package/dist/{index-BVfCh4l-.d.mts → index-CPk553v5.d.mts} +1 -1
- package/dist/{index-D7S5DMUy.d.mts → index-CPwcm70o.d.mts} +3 -3
- package/dist/{index-zc2GEzJ9.d.ts → index-CZu_8fKl.d.ts} +40 -39
- package/dist/{index-SOVt-ADK.d.mts → index-ChHJD4NZ.d.mts} +4 -2
- package/dist/{index-CQmN0dN4.d.ts → index-CkHDxE7B.d.mts} +16 -4
- package/dist/{index-C0UKUm0h.d.ts → index-D5geEbXf.d.ts} +4 -3
- package/dist/{index-D3Kp05kW.d.ts → index-DFBrN7dx.d.ts} +1 -1
- package/dist/{index-DC4F1u-w.d.mts → index-DSvRdAyZ.d.mts} +4 -3
- package/dist/{index-DjbH13zc.d.mts → index-DX1vzCrM.d.mts} +40 -39
- package/dist/{index-DQFQ39D9.d.ts → index-Dj1K-UdZ.d.ts} +3 -3
- package/dist/{index-BDffLLM_.d.mts → index-DjwwXNp4.d.mts} +15 -3
- package/dist/{index-BaFmUVw-.d.mts → index-SRHVQn5G.d.ts} +16 -4
- package/dist/{index-BsX-ovIl.d.ts → index-Vxvd14yW.d.ts} +15 -3
- package/dist/index.css +141 -34
- package/dist/index.d.mts +758 -11
- package/dist/index.d.ts +758 -11
- package/dist/index.js +3859 -3738
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-VrV1kYga.d.mts → types-Bi9iq57H.d.mts} +13 -1
- package/dist/{types-VrV1kYga.d.ts → types-Bi9iq57H.d.ts} +13 -1
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +937 -160
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +6 -1
- package/example/package.json +1 -0
- package/example/src/App.tsx +24 -20
- package/package.json +1 -1
- package/dist/chunk-QTUR37B2.mjs +0 -7275
- package/dist/chunk-QTUR37B2.mjs.map +0 -1
- package/dist/chunk-X5HGL3ZX.mjs.map +0 -1
package/dist/ui/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AlphaAvatar,
|
|
3
3
|
Button,
|
|
4
|
+
ConfirmModal,
|
|
4
5
|
Drawer,
|
|
5
6
|
Field,
|
|
6
7
|
HashPanel_default,
|
|
@@ -14,12 +15,16 @@ import {
|
|
|
14
15
|
Skeleton_default,
|
|
15
16
|
Switch,
|
|
16
17
|
Tabs
|
|
17
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-ZPBHHXEE.mjs";
|
|
19
|
+
import "../chunk-UA6XHZHX.mjs";
|
|
20
|
+
import "../chunk-IZOOVZAD.mjs";
|
|
21
|
+
import "../chunk-JX73EY6V.mjs";
|
|
18
22
|
import "../chunk-FKXS2XRG.mjs";
|
|
19
23
|
import "../chunk-J5LGTIGS.mjs";
|
|
20
24
|
export {
|
|
21
25
|
AlphaAvatar,
|
|
22
26
|
Button,
|
|
27
|
+
ConfirmModal,
|
|
23
28
|
Drawer,
|
|
24
29
|
Field,
|
|
25
30
|
HashPanel_default as HashPanel,
|
package/example/package.json
CHANGED
package/example/src/App.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, {useEffect, useMemo, useState} from "react";
|
|
2
|
-
import {MatchProvider} from "@matchain/matchid-sdk-react";
|
|
2
|
+
import {MatchProvider, wagmiConfig} from "@matchain/matchid-sdk-react";
|
|
3
3
|
import {BrowserRouter as Router, Routes, Route, Link, useLocation} from 'react-router-dom';
|
|
4
4
|
import Home from "./pages/Home";
|
|
5
5
|
import './app.css'
|
|
@@ -15,6 +15,7 @@ import {LoginButton} from "@matchain/matchid-sdk-react/components";
|
|
|
15
15
|
import UI from "@/pages/UI";
|
|
16
16
|
import TgApp from "@/pages/TgApp";
|
|
17
17
|
import Contact from "./pages/Contact";
|
|
18
|
+
import {WagmiProvider} from "wagmi";
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
function Nav() {
|
|
@@ -58,7 +59,7 @@ function Nav() {
|
|
|
58
59
|
url: '/contact',
|
|
59
60
|
onActive: location.pathname === '/contact',
|
|
60
61
|
hidden: !isLogin
|
|
61
|
-
}
|
|
62
|
+
},
|
|
62
63
|
]
|
|
63
64
|
return list
|
|
64
65
|
}, [location.pathname, isLogin])
|
|
@@ -162,24 +163,27 @@ function App() {
|
|
|
162
163
|
return <div style={{
|
|
163
164
|
backgroundColor: backgroundColor,
|
|
164
165
|
color: color
|
|
165
|
-
}}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
166
|
+
}}>
|
|
167
|
+
<WagmiProvider config={wagmiConfig}>
|
|
168
|
+
<MatchProvider
|
|
169
|
+
appid={appid}
|
|
170
|
+
endpoints={endpoints}
|
|
171
|
+
locale={locale}
|
|
172
|
+
events={{
|
|
173
|
+
onLogin: (data) => {
|
|
174
|
+
console.log('events.onLogin', data)
|
|
175
|
+
},
|
|
176
|
+
onLogout: () => {
|
|
177
|
+
console.log('events.onLogout')
|
|
178
|
+
}
|
|
179
|
+
}}
|
|
180
|
+
wallet={{
|
|
181
|
+
type: walletType
|
|
182
|
+
}}
|
|
183
|
+
>
|
|
184
|
+
<RouterApp/>
|
|
185
|
+
</MatchProvider>
|
|
186
|
+
</WagmiProvider>
|
|
183
187
|
</div>;
|
|
184
188
|
}
|
|
185
189
|
|