@getpara/react-sdk 1.7.0 → 1.7.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/index.js CHANGED
@@ -5811,13 +5811,9 @@ var ModalContent = forwardRef(
5811
5811
  });
5812
5812
  function awaitLoginTransition() {
5813
5813
  return __async(this, null, function* () {
5814
- var _a2;
5815
5814
  const { isComplete, isError, needsWallet } = yield para.waitForLoginAndSetup({
5816
5815
  popupWindow: refs.popupWindow.current
5817
5816
  });
5818
- window.clearTimeout((_a2 = refs.poll.current) == null ? void 0 : _a2.timeout);
5819
- refs.poll.current = void 0;
5820
- refs.popupWindow.current = void 0;
5821
5817
  if (isError) {
5822
5818
  ["AWAITING_BIOMETRIC_LOGIN" /* AWAITING_BIOMETRIC_LOGIN */, "AWAITING_PASSWORD_LOGIN" /* AWAITING_PASSWORD_LOGIN */].includes(refs.currentStep.current) && goBack();
5823
5819
  return;
@@ -5881,10 +5877,14 @@ var ModalContent = forwardRef(
5881
5877
  genWallet();
5882
5878
  }, [isLogin, currentStep]);
5883
5879
  useEffect22(() => {
5884
- const isAwaitingLogin = ["AWAITING_BIOMETRIC_LOGIN" /* AWAITING_BIOMETRIC_LOGIN */, "AWAITING_PASSWORD_LOGIN" /* AWAITING_PASSWORD_LOGIN */].includes(currentStep);
5880
+ const isAwaitingLogin = [
5881
+ "AWAITING_PASSWORD_LOGIN" /* AWAITING_PASSWORD_LOGIN */,
5882
+ "AWAITING_BIOMETRIC_LOGIN" /* AWAITING_BIOMETRIC_LOGIN */,
5883
+ "BIOMETRIC_LOGIN" /* BIOMETRIC_LOGIN */
5884
+ ].includes(currentStep);
5885
5885
  const isUnknownDeviceWithHints = hasHints && !isOnKnownDevice;
5886
5886
  const isPasskeyUnsupported = !passkeysSupported;
5887
- const hasLoginURLs = webAuthURLForLogin || passwordUrlForLogin;
5887
+ const hasLoginURLs = !!webAuthURLForLogin || !!passwordUrlForLogin;
5888
5888
  const userNeedsToLogin = isAwaitingLogin || isUnknownDeviceWithHints || isPasskeyUnsupported;
5889
5889
  if (userNeedsToLogin && hasLoginURLs) {
5890
5890
  if (loginTransitionOverride) {
@@ -5934,7 +5934,9 @@ var ModalContent = forwardRef(
5934
5934
  para.exitAccountCreation();
5935
5935
  resetPoll = ["createPassword", "createPasskey"].includes((_a2 = refs.poll.current) == null ? void 0 : _a2.action);
5936
5936
  }
5937
- if (!["AWAITING_PASSWORD_LOGIN" /* AWAITING_PASSWORD_LOGIN */, "AWAITING_BIOMETRIC_LOGIN" /* AWAITING_BIOMETRIC_LOGIN */].includes(currentStep)) {
5937
+ if (!["AWAITING_PASSWORD_LOGIN" /* AWAITING_PASSWORD_LOGIN */, "AWAITING_BIOMETRIC_LOGIN" /* AWAITING_BIOMETRIC_LOGIN */, "BIOMETRIC_LOGIN" /* BIOMETRIC_LOGIN */].includes(
5938
+ currentStep
5939
+ )) {
5938
5940
  para.exitLogin();
5939
5941
  resetPoll = ((_b = refs.poll.current) == null ? void 0 : _b.action) === "login";
5940
5942
  }
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/react-sdk",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,9 +12,9 @@
12
12
  "*.css"
13
13
  ],
14
14
  "dependencies": {
15
- "@getpara/react-common": "1.7.0",
16
- "@getpara/react-components": "1.7.0",
17
- "@getpara/web-sdk": "1.7.0",
15
+ "@getpara/react-common": "1.7.1",
16
+ "@getpara/react-components": "1.7.1",
17
+ "@getpara/web-sdk": "1.7.1",
18
18
  "@tanstack/react-query": "^5.0.0",
19
19
  "date-fns": "^3.6.0",
20
20
  "framer-motion": "11.3.28",
@@ -49,5 +49,5 @@
49
49
  "resolutions": {
50
50
  "styled-components": "^6"
51
51
  },
52
- "gitHead": "241b03ee3d3502af3b8d702dabd615b266da10ae"
52
+ "gitHead": "767395af96d4a724946a092de760e9137a73369a"
53
53
  }