@openfort/react 0.0.20 → 0.0.21
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/build/index.es.js +9 -9
- package/build/version.d.ts +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -22,7 +22,7 @@ import { createSiweMessage } from 'viem/siwe';
|
|
|
22
22
|
import { signMessage } from '@wagmi/core';
|
|
23
23
|
import calculateEntropy from 'fast-password-entropy';
|
|
24
24
|
|
|
25
|
-
const OPENFORT_VERSION = '0.0.
|
|
25
|
+
const OPENFORT_VERSION = '0.0.21';
|
|
26
26
|
|
|
27
27
|
var OpenfortErrorType;
|
|
28
28
|
(function (OpenfortErrorType) {
|
|
@@ -10423,13 +10423,13 @@ const ConnectWithQRCode = ({ switchConnectMethod }) => {
|
|
|
10423
10423
|
download: true, children: locales.getWalletName }) }))] }));
|
|
10424
10424
|
};
|
|
10425
10425
|
|
|
10426
|
-
const
|
|
10426
|
+
const LoadingTextWrapper = styled.div `
|
|
10427
10427
|
display: flex;
|
|
10428
10428
|
justify-content: center;
|
|
10429
10429
|
align-items: center;
|
|
10430
10430
|
flex-direction: column;
|
|
10431
10431
|
gap: 12px;
|
|
10432
|
-
padding: 0 8px
|
|
10432
|
+
padding: 0 8px 16px;
|
|
10433
10433
|
text-align: center;
|
|
10434
10434
|
`;
|
|
10435
10435
|
const ConnectingContainer = styled(motion.div) `
|
|
@@ -10500,7 +10500,7 @@ const Loader = ({ header, description, icon, isError = false, isSuccess = false,
|
|
|
10500
10500
|
padding: '12px',
|
|
10501
10501
|
position: 'relative',
|
|
10502
10502
|
width: '100%',
|
|
10503
|
-
}, children: renderLogo() }), connecting: isLoading })] }) }), jsxs(
|
|
10503
|
+
}, children: renderLogo() }), connecting: isLoading })] }) }), jsxs(LoadingTextWrapper, { children: [isLoading && (jsxs(Fragment, { children: [jsx(ModalH1, { children: "Loading, please wait" }), jsx(ModalBody, { children: description !== null && description !== void 0 ? description : header })] })), isSuccess && (jsxs(Fragment, { children: [jsxs(ModalH1, { "$valid": true, children: [jsx(TickIcon, {}), " ", header] }), jsx(ModalBody, { children: description })] })), isError && (jsxs(Fragment, { children: [jsx(ModalH1, { "$error": true, children: header }), jsx(ModalBody, { children: description })] }))] })] }));
|
|
10504
10504
|
};
|
|
10505
10505
|
|
|
10506
10506
|
const states$2 = {
|
|
@@ -12922,13 +12922,13 @@ const OtherMethod = ({ currentMethod, onChangeMethod }) => {
|
|
|
12922
12922
|
let text;
|
|
12923
12923
|
switch (method) {
|
|
12924
12924
|
case RecoveryMethod.PASSWORD:
|
|
12925
|
-
text = "Use password recovery";
|
|
12925
|
+
text = "Use password recovery instead";
|
|
12926
12926
|
break;
|
|
12927
12927
|
case RecoveryMethod.AUTOMATIC:
|
|
12928
12928
|
text = "Skip for now";
|
|
12929
12929
|
break;
|
|
12930
12930
|
case RecoveryMethod.PASSKEY:
|
|
12931
|
-
text = "Use passkey recovery";
|
|
12931
|
+
text = "Use passkey recovery instead";
|
|
12932
12932
|
break;
|
|
12933
12933
|
default:
|
|
12934
12934
|
text = method;
|
|
@@ -12971,7 +12971,7 @@ const CreateWalletPasskeyRecovery = ({ onChangeMethod }) => {
|
|
|
12971
12971
|
if (recoveryError)
|
|
12972
12972
|
triggerResize();
|
|
12973
12973
|
}, [recoveryError]);
|
|
12974
|
-
return (
|
|
12974
|
+
return (jsxs(PageContent, { children: [jsx(Loader, { icon: jsx(FingerPrintIcon, {}), isError: !!recoveryError, header: recoveryError ? "Invalid passkey." : "Creating wallet with passkey...", description: recoveryError ? "There was an error creating your passkey. Please try again." : undefined, onRetry: () => setShouldCreateWallet(true) }), jsx(OtherMethod, { currentMethod: RecoveryMethod.PASSKEY, onChangeMethod: onChangeMethod })] }));
|
|
12975
12975
|
};
|
|
12976
12976
|
const CreateWalletPasswordRecovery = ({ onChangeMethod }) => {
|
|
12977
12977
|
const [recoveryPhrase, setRecoveryPhrase] = useState("");
|
|
@@ -13208,7 +13208,7 @@ const DownloadFooter = styled.div `
|
|
|
13208
13208
|
color: var(--ck-body-color-muted);
|
|
13209
13209
|
`;
|
|
13210
13210
|
const ConnectWithMobile = ({}) => {
|
|
13211
|
-
var _a, _b;
|
|
13211
|
+
var _a, _b, _c;
|
|
13212
13212
|
const { connector, setRoute } = useOpenfort();
|
|
13213
13213
|
const wallet = useWallet$1(connector.id) || walletConfigs[connector.id];
|
|
13214
13214
|
const [status, setStatus] = useState(states.INIT);
|
|
@@ -13290,7 +13290,7 @@ const ConnectWithMobile = ({}) => {
|
|
|
13290
13290
|
openApp();
|
|
13291
13291
|
}, children: "Sign in App" })) : (jsx(Button, { onClick: () => {
|
|
13292
13292
|
openApp(wcUri);
|
|
13293
|
-
}, children: "Sign in App" })), jsx(DownloadFooter, { children: jsxs(FitText, { children: ["
|
|
13293
|
+
}, children: "Sign in App" })), jsx(DownloadFooter, { children: jsxs(FitText, { children: ["Don't have ", (_a = wallet.name) !== null && _a !== void 0 ? _a : connector.id.split(",")[0], " installed?", ' ', jsx("a", { style: { marginLeft: 5 }, href: isAndroid() ? (_b = wallet === null || wallet === void 0 ? void 0 : wallet.downloadUrls) === null || _b === void 0 ? void 0 : _b.android : (_c = wallet === null || wallet === void 0 ? void 0 : wallet.downloadUrls) === null || _c === void 0 ? void 0 : _c.ios, target: "_blank", rel: "noreferrer", children: "GET" })] }) })] }));
|
|
13294
13294
|
};
|
|
13295
13295
|
|
|
13296
13296
|
const customThemeDefault = {};
|
package/build/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const OPENFORT_VERSION = "0.0.
|
|
1
|
+
export declare const OPENFORT_VERSION = "0.0.21";
|