@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.
Files changed (54) hide show
  1. package/dist/assets/icon/index.d.mts +2 -2
  2. package/dist/assets/icon/index.d.ts +2 -2
  3. package/dist/{chunk-X5HGL3ZX.mjs → chunk-ZPBHHXEE.mjs} +7689 -338
  4. package/dist/chunk-ZPBHHXEE.mjs.map +1 -0
  5. package/dist/components/index.d.mts +3 -3
  6. package/dist/components/index.d.ts +3 -3
  7. package/dist/components/index.js +363 -343
  8. package/dist/components/index.js.map +1 -1
  9. package/dist/components/index.mjs +9 -11
  10. package/dist/hooks/api/index.d.mts +2 -2
  11. package/dist/hooks/api/index.d.ts +2 -2
  12. package/dist/hooks/api/index.js +493 -478
  13. package/dist/hooks/api/index.js.map +1 -1
  14. package/dist/hooks/api/index.mjs +2 -3
  15. package/dist/hooks/index.d.mts +2 -2
  16. package/dist/hooks/index.d.ts +2 -2
  17. package/dist/hooks/index.js +258 -248
  18. package/dist/hooks/index.js.map +1 -1
  19. package/dist/hooks/index.mjs +3 -5
  20. package/dist/{index-D5WIVIkc.d.ts → index-91BdMYDA.d.ts} +4 -2
  21. package/dist/{index-BVfCh4l-.d.mts → index-CPk553v5.d.mts} +1 -1
  22. package/dist/{index-D7S5DMUy.d.mts → index-CPwcm70o.d.mts} +3 -3
  23. package/dist/{index-zc2GEzJ9.d.ts → index-CZu_8fKl.d.ts} +40 -39
  24. package/dist/{index-SOVt-ADK.d.mts → index-ChHJD4NZ.d.mts} +4 -2
  25. package/dist/{index-CQmN0dN4.d.ts → index-CkHDxE7B.d.mts} +16 -4
  26. package/dist/{index-C0UKUm0h.d.ts → index-D5geEbXf.d.ts} +4 -3
  27. package/dist/{index-D3Kp05kW.d.ts → index-DFBrN7dx.d.ts} +1 -1
  28. package/dist/{index-DC4F1u-w.d.mts → index-DSvRdAyZ.d.mts} +4 -3
  29. package/dist/{index-DjbH13zc.d.mts → index-DX1vzCrM.d.mts} +40 -39
  30. package/dist/{index-DQFQ39D9.d.ts → index-Dj1K-UdZ.d.ts} +3 -3
  31. package/dist/{index-BDffLLM_.d.mts → index-DjwwXNp4.d.mts} +15 -3
  32. package/dist/{index-BaFmUVw-.d.mts → index-SRHVQn5G.d.ts} +16 -4
  33. package/dist/{index-BsX-ovIl.d.ts → index-Vxvd14yW.d.ts} +15 -3
  34. package/dist/index.css +141 -34
  35. package/dist/index.d.mts +758 -11
  36. package/dist/index.d.ts +758 -11
  37. package/dist/index.js +3859 -3738
  38. package/dist/index.js.map +1 -1
  39. package/dist/index.mjs +9 -9
  40. package/dist/types/index.d.mts +1 -1
  41. package/dist/types/index.d.ts +1 -1
  42. package/dist/{types-VrV1kYga.d.mts → types-Bi9iq57H.d.mts} +13 -1
  43. package/dist/{types-VrV1kYga.d.ts → types-Bi9iq57H.d.ts} +13 -1
  44. package/dist/ui/index.d.mts +3 -3
  45. package/dist/ui/index.d.ts +3 -3
  46. package/dist/ui/index.js +937 -160
  47. package/dist/ui/index.js.map +1 -1
  48. package/dist/ui/index.mjs +6 -1
  49. package/example/package.json +1 -0
  50. package/example/src/App.tsx +24 -20
  51. package/package.json +1 -1
  52. package/dist/chunk-QTUR37B2.mjs +0 -7275
  53. package/dist/chunk-QTUR37B2.mjs.map +0 -1
  54. 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-X5HGL3ZX.mjs";
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,
@@ -16,6 +16,7 @@
16
16
  "alias": {
17
17
  "viem": "../node_modules/viem",
18
18
  "react": "../node_modules/react",
19
+ "wagmi": "../node_modules/wagmi",
19
20
  "react-dom": "../node_modules/react-dom/profiling",
20
21
  "lodash": "../node_modules/lodash",
21
22
  "axios": "../node_modules/axios",
@@ -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
- }}><MatchProvider
166
- appid={appid}
167
- endpoints={endpoints}
168
- locale={locale}
169
- events={{
170
- onLogin: (data) => {
171
- console.log('events.onLogin', data)
172
- },
173
- onLogout: () => {
174
- console.log('events.onLogout')
175
- }
176
- }}
177
- wallet={{
178
- type: walletType
179
- }}
180
- >
181
- <RouterApp/>
182
- </MatchProvider>
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matchain/matchid-sdk-react",
3
- "version": "0.1.53-alpha.8",
3
+ "version": "0.1.54",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {