@matchain/matchid-sdk-react 0.1.55 → 0.1.56-alpha.1
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/api.js.map +1 -1
- package/dist/api.mjs +2 -2
- package/dist/{chunk-PAXASLBR.mjs → chunk-43Y3F6GB.mjs} +8 -6
- package/dist/chunk-43Y3F6GB.mjs.map +1 -0
- package/dist/{chunk-6PWLEXC3.mjs → chunk-VRU6XRSC.mjs} +2 -2
- package/dist/components.js +1 -1
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +1 -1
- package/dist/hooks.d.mts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +2 -0
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +3 -1
- package/dist/{index-D1Ep9UMx.d.ts → index-B7ZEyP1j.d.ts} +10 -2
- package/dist/{index-CHG4-0Z1.d.mts → index-CPTgrfjn.d.mts} +10 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/ui.js +49 -51
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +1 -1
- package/example/package.json +3 -0
- package/example/src/App.tsx +7 -0
- package/example/src/pages/User/index.tsx +49 -4
- package/example/src/store/useStore.ts +14 -0
- package/example/yarn.lock +15 -0
- package/package.json +1 -1
- package/dist/chunk-PAXASLBR.mjs.map +0 -1
- /package/dist/{chunk-6PWLEXC3.mjs.map → chunk-VRU6XRSC.mjs.map} +0 -0
package/dist/api.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
bind_exports,
|
|
3
3
|
poh_exports,
|
|
4
4
|
user_exports
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VRU6XRSC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isSuccess,
|
|
8
8
|
wallet_exports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-43Y3F6GB.mjs";
|
|
10
10
|
import "./chunk-JX73EY6V.mjs";
|
|
11
11
|
import "./chunk-UA6XHZHX.mjs";
|
|
12
12
|
import "./chunk-IZOOVZAD.mjs";
|
|
@@ -858,6 +858,7 @@ import { createContext as createContext3, useContext as useContext3 } from "reac
|
|
|
858
858
|
var hooks_exports = {};
|
|
859
859
|
__export(hooks_exports, {
|
|
860
860
|
useCopyClipboard: () => useCopyClipboard,
|
|
861
|
+
useHash: () => useHash,
|
|
861
862
|
useLayout: () => useLayout_exports,
|
|
862
863
|
useMatchChain: () => useMatchChain,
|
|
863
864
|
useMatchEvents: () => useMatchEvents,
|
|
@@ -4365,7 +4366,7 @@ var messages = {
|
|
|
4365
4366
|
};
|
|
4366
4367
|
|
|
4367
4368
|
// src/MatchContext.tsx
|
|
4368
|
-
import { getDefaultConfig
|
|
4369
|
+
import { getDefaultConfig } from "@rainbow-me/rainbowkit";
|
|
4369
4370
|
import {
|
|
4370
4371
|
bitgetWallet,
|
|
4371
4372
|
injectedWallet,
|
|
@@ -4414,7 +4415,7 @@ var MatchProvider = ({
|
|
|
4414
4415
|
useWalletInit({
|
|
4415
4416
|
config: wallet
|
|
4416
4417
|
});
|
|
4417
|
-
return /* @__PURE__ */ jsx26(IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ jsx26(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx26(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx26(
|
|
4418
|
+
return /* @__PURE__ */ jsx26(IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ jsx26(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx26(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx26(
|
|
4418
4419
|
MatchContext.Provider,
|
|
4419
4420
|
{
|
|
4420
4421
|
value: {
|
|
@@ -4427,7 +4428,7 @@ var MatchProvider = ({
|
|
|
4427
4428
|
},
|
|
4428
4429
|
children: /* @__PURE__ */ jsx26(context_default, { children })
|
|
4429
4430
|
}
|
|
4430
|
-
) }) }) })
|
|
4431
|
+
) }) }) });
|
|
4431
4432
|
};
|
|
4432
4433
|
var useMatch = () => {
|
|
4433
4434
|
const context = useContext3(MatchContext);
|
|
@@ -5627,7 +5628,7 @@ function WalletModalContentV2(props) {
|
|
|
5627
5628
|
}
|
|
5628
5629
|
|
|
5629
5630
|
// src/components/EVMModal/index.tsx
|
|
5630
|
-
import { useConnectModal } from "@rainbow-me/rainbowkit";
|
|
5631
|
+
import { RainbowKitProvider as RainbowKitProvider2, useConnectModal } from "@rainbow-me/rainbowkit";
|
|
5631
5632
|
import { useAccount, useChainId, useConfig, useDisconnect } from "wagmi";
|
|
5632
5633
|
|
|
5633
5634
|
// src/hooks/useWalletBox.ts
|
|
@@ -6077,7 +6078,7 @@ function EVMConnectModal({
|
|
|
6077
6078
|
}), children: /* @__PURE__ */ jsx37(WalletContent, { onSuccess, type }) });
|
|
6078
6079
|
}
|
|
6079
6080
|
function EVMModal(props) {
|
|
6080
|
-
return props.isOpen && /* @__PURE__ */ jsx37(EVMConnectModal, { ...props });
|
|
6081
|
+
return props.isOpen && /* @__PURE__ */ jsx37(RainbowKitProvider2, { children: /* @__PURE__ */ jsx37(EVMConnectModal, { ...props }) });
|
|
6081
6082
|
}
|
|
6082
6083
|
|
|
6083
6084
|
// src/components/TRONModal/index.tsx
|
|
@@ -7585,6 +7586,7 @@ export {
|
|
|
7585
7586
|
TokenSend,
|
|
7586
7587
|
TokenDetail,
|
|
7587
7588
|
TokenSendList,
|
|
7589
|
+
useHash,
|
|
7588
7590
|
TransactionList,
|
|
7589
7591
|
components_exports,
|
|
7590
7592
|
Modal,
|
|
@@ -7618,4 +7620,4 @@ export {
|
|
|
7618
7620
|
MatchProvider,
|
|
7619
7621
|
useMatch
|
|
7620
7622
|
};
|
|
7621
|
-
//# sourceMappingURL=chunk-
|
|
7623
|
+
//# sourceMappingURL=chunk-43Y3F6GB.mjs.map
|