@matchain/matchid-sdk-react 0.1.40-alpha.7 → 0.1.40-alpha.9

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.
@@ -4,8 +4,8 @@ import {
4
4
  useMatchEvents,
5
5
  useUserInfo,
6
6
  useWallet
7
- } from "../chunk-GLKKSZVE.mjs";
8
- import "../chunk-BITZKMMQ.mjs";
7
+ } from "../chunk-PPKUHUE3.mjs";
8
+ import "../chunk-DPXMCLYK.mjs";
9
9
  import "../chunk-J5LGTIGS.mjs";
10
10
  export {
11
11
  useCopyClipboard,
package/dist/index.js CHANGED
@@ -1063,7 +1063,7 @@ function TonLightIcon({ size = 40, ...props }) {
1063
1063
  stroke: "null",
1064
1064
  id: "svg_2",
1065
1065
  fill: "black",
1066
- d: "m30.841054,3.945949l-21.683337,0c-3.986794,0 -6.513721,4.300562 -4.507964,7.777185l13.382147,23.195025c0.873266,1.514524 3.061705,1.514524 3.934972,0l13.384868,-23.195025c2.003036,-3.471067 -0.523892,-7.777185 -4.507964,-7.777185l-0.002722,0zm-12.82004,24.016356l-2.914403,-5.640455l-7.03217,-12.577145c-0.463905,-0.805002 0.109087,-1.83657 1.080555,-1.83657l8.863296,0l0,20.056891l0.002722,-0.002722zm13.897874,-18.220321l-7.029448,12.582588l-2.914403,5.637733l0,-20.056891l8.863296,0c0.971468,0 1.54446,1.031568 1.080555,1.83657z"
1066
+ d: "m28.551235,7.336842l-17.103441,0c-3.144714,0 -5.137911,3.392209 -3.555804,6.134509l10.555606,18.295835c0.688817,1.19463 2.41502,1.19463 3.103838,0l10.557753,-18.295835c1.57996,-2.737917 -0.413237,-6.134509 -3.555804,-6.134509l-0.002147,0zm-10.112226,18.943687l-2.298831,-4.449093l-5.546854,-9.920635c-0.36592,-0.634971 0.086046,-1.448654 0.852323,-1.448654l6.991215,0l0,15.820529l0.002147,-0.002147zm10.962403,-14.371875l-5.544707,9.924928l-2.298831,4.446947l0,-15.820529l6.991215,0c0.766277,0 1.218244,0.813683 0.852323,1.448654z"
1067
1067
  }
1068
1068
  )
1069
1069
  }
@@ -1089,7 +1089,7 @@ function TonLightIcon2({ size = 40, ...props }) {
1089
1089
  stroke: "null",
1090
1090
  id: "svg_2",
1091
1091
  fill: "white",
1092
- d: "m30.841054,3.945949l-21.683337,0c-3.986794,0 -6.513721,4.300562 -4.507964,7.777185l13.382147,23.195025c0.873266,1.514524 3.061705,1.514524 3.934972,0l13.384868,-23.195025c2.003036,-3.471067 -0.523892,-7.777185 -4.507964,-7.777185l-0.002722,0zm-12.82004,24.016356l-2.914403,-5.640455l-7.03217,-12.577145c-0.463905,-0.805002 0.109087,-1.83657 1.080555,-1.83657l8.863296,0l0,20.056891l0.002722,-0.002722zm13.897874,-18.220321l-7.029448,12.582588l-2.914403,5.637733l0,-20.056891l8.863296,0c0.971468,0 1.54446,1.031568 1.080555,1.83657z"
1092
+ d: "m28.551235,7.336842l-17.103441,0c-3.144714,0 -5.137911,3.392209 -3.555804,6.134509l10.555606,18.295835c0.688817,1.19463 2.41502,1.19463 3.103838,0l10.557753,-18.295835c1.57996,-2.737917 -0.413237,-6.134509 -3.555804,-6.134509l-0.002147,0zm-10.112226,18.943687l-2.298831,-4.449093l-5.546854,-9.920635c-0.36592,-0.634971 0.086046,-1.448654 0.852323,-1.448654l6.991215,0l0,15.820529l0.002147,-0.002147zm10.962403,-14.371875l-5.544707,9.924928l-2.298831,4.446947l0,-15.820529l6.991215,0c0.766277,0 1.218244,0.813683 0.852323,1.448654z"
1093
1093
  }
1094
1094
  )
1095
1095
  }
@@ -3737,9 +3737,10 @@ function WalletContent2({
3737
3737
  disconnect: tonConnectUI.disconnect,
3738
3738
  address: userFriendlyAddress,
3739
3739
  visible: state.status == "opened",
3740
- setVisible: (v) => {
3740
+ setVisible: async (v) => {
3741
3741
  console.log("setVisible", v);
3742
3742
  if (v) {
3743
+ await tonConnectUI.disconnect();
3743
3744
  setStatus("");
3744
3745
  statusRef.current = "";
3745
3746
  open();