@matchain/matchid-sdk-react 0.1.42-alpha.6 → 0.1.42-alpha.7
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/{chunk-MRGV6YS3.mjs → chunk-3IT55D2W.mjs} +33 -7
- package/dist/chunk-3IT55D2W.mjs.map +1 -0
- package/dist/{chunk-XPTMBR7D.mjs → chunk-YUGXHHVO.mjs} +2 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +27 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-MRGV6YS3.mjs.map +0 -1
- /package/dist/{chunk-XPTMBR7D.mjs.map → chunk-YUGXHHVO.mjs.map} +0 -0
|
@@ -387,7 +387,7 @@ var toBindWalletApi = ({
|
|
|
387
387
|
};
|
|
388
388
|
|
|
389
389
|
// src/MatchContext.tsx
|
|
390
|
-
import { createContext, useContext } from "react";
|
|
390
|
+
import { createContext, useContext, useEffect as useEffect21 } from "react";
|
|
391
391
|
|
|
392
392
|
// src/context/BusinessProvider.tsx
|
|
393
393
|
import { useEffect as useEffect17 } from "react";
|
|
@@ -4284,13 +4284,39 @@ var MatchProvider = ({
|
|
|
4284
4284
|
type: "UserPasscode"
|
|
4285
4285
|
}
|
|
4286
4286
|
}) => {
|
|
4287
|
-
const {
|
|
4287
|
+
const { login, endpoints: realEndPoints, locale: realLocale } = useInit({
|
|
4288
4288
|
theme,
|
|
4289
4289
|
appid,
|
|
4290
4290
|
events,
|
|
4291
4291
|
endpoints,
|
|
4292
4292
|
locale
|
|
4293
4293
|
});
|
|
4294
|
+
matchlog_default.log("config", {
|
|
4295
|
+
appid,
|
|
4296
|
+
events,
|
|
4297
|
+
theme,
|
|
4298
|
+
endpoints,
|
|
4299
|
+
locale,
|
|
4300
|
+
wallet
|
|
4301
|
+
});
|
|
4302
|
+
useEffect21(() => {
|
|
4303
|
+
console.log("appid", appid);
|
|
4304
|
+
}, [appid]);
|
|
4305
|
+
useEffect21(() => {
|
|
4306
|
+
console.log("events", events);
|
|
4307
|
+
}, [events]);
|
|
4308
|
+
useEffect21(() => {
|
|
4309
|
+
console.log("theme", theme);
|
|
4310
|
+
}, [theme]);
|
|
4311
|
+
useEffect21(() => {
|
|
4312
|
+
console.log("endpoints", endpoints);
|
|
4313
|
+
}, [endpoints]);
|
|
4314
|
+
useEffect21(() => {
|
|
4315
|
+
console.log("locale", locale);
|
|
4316
|
+
}, [locale]);
|
|
4317
|
+
useEffect21(() => {
|
|
4318
|
+
console.log("wallet", wallet);
|
|
4319
|
+
}, [wallet]);
|
|
4294
4320
|
useWalletInit({
|
|
4295
4321
|
config: wallet
|
|
4296
4322
|
});
|
|
@@ -4571,9 +4597,9 @@ function useUserInfo() {
|
|
|
4571
4597
|
}
|
|
4572
4598
|
|
|
4573
4599
|
// src/hooks/useMatchEvents.ts
|
|
4574
|
-
import { useEffect as
|
|
4600
|
+
import { useEffect as useEffect22 } from "react";
|
|
4575
4601
|
function useMatchEvents(handlers) {
|
|
4576
|
-
|
|
4602
|
+
useEffect22(() => {
|
|
4577
4603
|
Object.entries(handlers).forEach(([event, handler2]) => {
|
|
4578
4604
|
if (handler2) {
|
|
4579
4605
|
eventManager_default.on(event, handler2);
|
|
@@ -4591,14 +4617,14 @@ function useMatchEvents(handlers) {
|
|
|
4591
4617
|
|
|
4592
4618
|
// src/hooks/useCopyClipboard.ts
|
|
4593
4619
|
import copy from "copy-to-clipboard";
|
|
4594
|
-
import { useCallback, useEffect as
|
|
4620
|
+
import { useCallback, useEffect as useEffect23, useState as useState23 } from "react";
|
|
4595
4621
|
function useCopyClipboard(timeout = 500) {
|
|
4596
4622
|
const [isCopied, setIsCopied] = useState23(false);
|
|
4597
4623
|
const staticCopy = useCallback((text) => {
|
|
4598
4624
|
const didCopy = copy(text);
|
|
4599
4625
|
setIsCopied(didCopy);
|
|
4600
4626
|
}, []);
|
|
4601
|
-
|
|
4627
|
+
useEffect23(() => {
|
|
4602
4628
|
if (isCopied) {
|
|
4603
4629
|
const hide = setTimeout(() => {
|
|
4604
4630
|
setIsCopied(false);
|
|
@@ -4650,4 +4676,4 @@ export {
|
|
|
4650
4676
|
MatchProvider,
|
|
4651
4677
|
useMatch
|
|
4652
4678
|
};
|
|
4653
|
-
//# sourceMappingURL=chunk-
|
|
4679
|
+
//# sourceMappingURL=chunk-3IT55D2W.mjs.map
|