@getpara/react-sdk-lite 2.0.0-alpha.43 → 2.0.0-dev.5

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.
@@ -126,7 +126,7 @@ const BODY_MOTION_VARIANTS = {
126
126
  const BODY_TRANSITION = {
127
127
  duration: 0.2
128
128
  };
129
- const SDK_VERSION = "2.0.0-alpha.43";
129
+ const SDK_VERSION = "2.0.0-dev.5";
130
130
  export {
131
131
  BODY_MOTION_VARIANTS,
132
132
  BODY_TRANSITION,
@@ -12,6 +12,8 @@ import { ModalStep } from "../../modal/index.js";
12
12
  import { useModalStore } from "../../modal/stores/index.js";
13
13
  import { useAccount, useModal, useParaStatus, useVerifyExternalWallet, useWalletState } from "../hooks/index.js";
14
14
  import { useAuthActions } from "./AuthProvider.js";
15
+ import { IS_FULLY_LOGGED_IN_BASE_KEY } from "../hooks/queries/useIsFullyLoggedIn.js";
16
+ import { useQueryClient } from "@tanstack/react-query";
15
17
  const useWalletDisplayHelpers = (wallet) => {
16
18
  const isUsingMobileConnector = useModalStore((state) => state.isUsingMobileConnector);
17
19
  return {
@@ -111,6 +113,7 @@ function ExternalWalletProvider({ children }) {
111
113
  const { setSelectedWallet } = useWalletState();
112
114
  const { onNewAuthState } = useAuthActions();
113
115
  const { verifyExternalWalletAsync } = useVerifyExternalWallet();
116
+ const queryClient = useQueryClient();
114
117
  const [qrUri, setQrUri] = useState();
115
118
  const [chainIdSwitchingTo, setChainIdSwitchingTo] = useState();
116
119
  const [isSigningMessage, setIsSigningMessage] = useState(false);
@@ -301,6 +304,7 @@ function ExternalWalletProvider({ children }) {
301
304
  }
302
305
  try {
303
306
  const d = yield verifyExternalWalletAsync(verifyExternalWalletParams);
307
+ yield queryClient.refetchQueries({ queryKey: [IS_FULLY_LOGGED_IN_BASE_KEY] });
304
308
  if (wallet2 && (externalWalletsWithFullAuth == null ? void 0 : externalWalletsWithFullAuth.includes((_a = wallet2.name) == null ? void 0 : _a.toUpperCase()))) {
305
309
  yield onNewAuthState(d);
306
310
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/react-sdk-lite",
3
- "version": "2.0.0-alpha.43",
3
+ "version": "2.0.0-dev.5",
4
4
  "bin": {
5
5
  "setup-para": "dist/cli/cli.mjs"
6
6
  },
@@ -38,7 +38,7 @@
38
38
  "package.json",
39
39
  "styles.css"
40
40
  ],
41
- "gitHead": "6c4b7915c54f51ca0d4abb5c947e5997508669d1",
41
+ "gitHead": "e6e791d4e4f9afd94f2093d6045d686b85e5a682",
42
42
  "main": "dist/index.js",
43
43
  "peerDependencies": {
44
44
  "@tanstack/react-query": ">=5.0.0",