@matchain/matchid-sdk-react 0.1.42-alpha.6 → 0.1.42-alpha.8

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.
@@ -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";
@@ -4280,19 +4280,45 @@ var MatchProvider = ({
4280
4280
  theme = "light",
4281
4281
  endpoints,
4282
4282
  locale,
4283
- wallet = {
4284
- type: "UserPasscode"
4285
- }
4283
+ wallet
4286
4284
  }) => {
4287
- const { loadOverview, login, endpoints: realEndPoints, locale: realLocale } = useInit({
4285
+ const { login, endpoints: realEndPoints, locale: realLocale } = useInit({
4288
4286
  theme,
4289
4287
  appid,
4290
4288
  events,
4291
4289
  endpoints,
4292
4290
  locale
4293
4291
  });
4292
+ matchlog_default.log("config", {
4293
+ appid,
4294
+ events,
4295
+ theme,
4296
+ endpoints,
4297
+ locale,
4298
+ wallet
4299
+ });
4300
+ useEffect21(() => {
4301
+ console.log("appid", appid);
4302
+ }, [appid]);
4303
+ useEffect21(() => {
4304
+ console.log("events", events);
4305
+ }, [events]);
4306
+ useEffect21(() => {
4307
+ console.log("theme", theme);
4308
+ }, [theme]);
4309
+ useEffect21(() => {
4310
+ console.log("endpoints", endpoints);
4311
+ }, [endpoints]);
4312
+ useEffect21(() => {
4313
+ console.log("locale", locale);
4314
+ }, [locale]);
4315
+ useEffect21(() => {
4316
+ console.log("wallet", wallet);
4317
+ }, [wallet]);
4294
4318
  useWalletInit({
4295
- config: wallet
4319
+ config: wallet || {
4320
+ type: "UserPasscode"
4321
+ }
4296
4322
  });
4297
4323
  return /* @__PURE__ */ jsx31(IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ jsx31(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx31(
4298
4324
  MatchContext.Provider,
@@ -4571,9 +4597,9 @@ function useUserInfo() {
4571
4597
  }
4572
4598
 
4573
4599
  // src/hooks/useMatchEvents.ts
4574
- import { useEffect as useEffect21 } from "react";
4600
+ import { useEffect as useEffect22 } from "react";
4575
4601
  function useMatchEvents(handlers) {
4576
- useEffect21(() => {
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 useEffect22, useState as useState23 } from "react";
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
- useEffect22(() => {
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-MRGV6YS3.mjs.map
4679
+ //# sourceMappingURL=chunk-FXRUBZOM.mjs.map