@swype-org/react-sdk 0.1.96 → 0.1.97
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.cjs +22 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -43
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75,7 +75,7 @@ function getTheme(mode) {
|
|
|
75
75
|
var SWYPE_PRIVY_APP_ID = "cmlil87uv004n0ck0blwumwek";
|
|
76
76
|
var wagmiConfig = createConfig({
|
|
77
77
|
chains: [mainnet, arbitrum, base],
|
|
78
|
-
connectors: [injected()],
|
|
78
|
+
connectors: [injected({ shimDisconnect: true, unstable_shimAsyncInject: 2e3 })],
|
|
79
79
|
transports: {
|
|
80
80
|
[mainnet.id]: http(),
|
|
81
81
|
[arbitrum.id]: http(),
|
|
@@ -3272,53 +3272,32 @@ function WalletPickerScreen({
|
|
|
3272
3272
|
/* @__PURE__ */ jsx("h2", { style: headingStyle4(tokens.text), children: "Where are your stablecoins?" }),
|
|
3273
3273
|
/* @__PURE__ */ jsx("p", { style: subtitleStyle4(tokens.textSecondary), children: "Select the wallet you want to deposit from" })
|
|
3274
3274
|
] }),
|
|
3275
|
-
/* @__PURE__ */
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
return /* @__PURE__ */ jsxs(
|
|
3281
|
-
"button",
|
|
3282
|
-
{
|
|
3283
|
-
onClick: () => onSelectProvider(p.id),
|
|
3284
|
-
onMouseEnter: () => setHoveredId(p.id),
|
|
3285
|
-
onMouseLeave: () => setHoveredId(null),
|
|
3286
|
-
style: cardStyle(tokens, isHovered),
|
|
3287
|
-
children: [
|
|
3288
|
-
logoSrc ? /* @__PURE__ */ jsx(
|
|
3289
|
-
"img",
|
|
3290
|
-
{
|
|
3291
|
-
src: logoSrc,
|
|
3292
|
-
alt: p.name,
|
|
3293
|
-
style: logoImgStyle2
|
|
3294
|
-
}
|
|
3295
|
-
) : /* @__PURE__ */ jsx("span", { style: emojiStyle, children: emoji }),
|
|
3296
|
-
/* @__PURE__ */ jsx("span", { style: nameStyle2(tokens.text), children: p.name })
|
|
3297
|
-
]
|
|
3298
|
-
},
|
|
3299
|
-
p.id
|
|
3300
|
-
);
|
|
3301
|
-
}),
|
|
3302
|
-
/* @__PURE__ */ jsxs(
|
|
3275
|
+
/* @__PURE__ */ jsx("div", { style: gridStyle, children: displayProviders.map((p) => {
|
|
3276
|
+
const logoSrc = "logoURI" in p && p.logoURI || KNOWN_LOGOS[p.name.toLowerCase()];
|
|
3277
|
+
const emoji = WALLET_EMOJIS[p.name.toLowerCase()] ?? p.name.charAt(0);
|
|
3278
|
+
const isHovered = hoveredId === p.id;
|
|
3279
|
+
return /* @__PURE__ */ jsxs(
|
|
3303
3280
|
"button",
|
|
3304
3281
|
{
|
|
3305
|
-
onClick: () => onSelectProvider(
|
|
3306
|
-
onMouseEnter: () => setHoveredId(
|
|
3282
|
+
onClick: () => onSelectProvider(p.id),
|
|
3283
|
+
onMouseEnter: () => setHoveredId(p.id),
|
|
3307
3284
|
onMouseLeave: () => setHoveredId(null),
|
|
3308
|
-
style: cardStyle(tokens,
|
|
3285
|
+
style: cardStyle(tokens, isHovered),
|
|
3309
3286
|
children: [
|
|
3310
|
-
|
|
3311
|
-
"
|
|
3287
|
+
logoSrc ? /* @__PURE__ */ jsx(
|
|
3288
|
+
"img",
|
|
3312
3289
|
{
|
|
3313
|
-
|
|
3314
|
-
|
|
3290
|
+
src: logoSrc,
|
|
3291
|
+
alt: p.name,
|
|
3292
|
+
style: logoImgStyle2
|
|
3315
3293
|
}
|
|
3316
|
-
) }),
|
|
3317
|
-
/* @__PURE__ */ jsx("span", { style: nameStyle2(tokens.text), children:
|
|
3294
|
+
) : /* @__PURE__ */ jsx("span", { style: emojiStyle, children: emoji }),
|
|
3295
|
+
/* @__PURE__ */ jsx("span", { style: nameStyle2(tokens.text), children: p.name })
|
|
3318
3296
|
]
|
|
3319
|
-
}
|
|
3320
|
-
|
|
3321
|
-
|
|
3297
|
+
},
|
|
3298
|
+
p.id
|
|
3299
|
+
);
|
|
3300
|
+
}) })
|
|
3322
3301
|
]
|
|
3323
3302
|
}
|
|
3324
3303
|
);
|
|
@@ -4864,7 +4843,7 @@ function StepRenderer({
|
|
|
4864
4843
|
}
|
|
4865
4844
|
);
|
|
4866
4845
|
}
|
|
4867
|
-
if (step === "otp-verify"
|
|
4846
|
+
if (step === "otp-verify") {
|
|
4868
4847
|
return /* @__PURE__ */ jsx(
|
|
4869
4848
|
OtpVerifyScreen,
|
|
4870
4849
|
{
|
|
@@ -4876,7 +4855,7 @@ function StepRenderer({
|
|
|
4876
4855
|
onVerify: handlers.onVerifyLoginCode,
|
|
4877
4856
|
onResend: handlers.onResendLoginCode,
|
|
4878
4857
|
onBack: handlers.onBackFromOtp,
|
|
4879
|
-
verifying: activeOtpStatus === "submitting-code",
|
|
4858
|
+
verifying: activeOtpStatus === "submitting-code" || authenticated,
|
|
4880
4859
|
error: state.error
|
|
4881
4860
|
}
|
|
4882
4861
|
);
|