@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 CHANGED
@@ -78,7 +78,7 @@ function getTheme(mode) {
78
78
  var SWYPE_PRIVY_APP_ID = "cmlil87uv004n0ck0blwumwek";
79
79
  var wagmiConfig = wagmi.createConfig({
80
80
  chains: [chains.mainnet, chains.arbitrum, chains.base],
81
- connectors: [connectors.injected()],
81
+ connectors: [connectors.injected({ shimDisconnect: true, unstable_shimAsyncInject: 2e3 })],
82
82
  transports: {
83
83
  [chains.mainnet.id]: wagmi.http(),
84
84
  [chains.arbitrum.id]: wagmi.http(),
@@ -3275,53 +3275,32 @@ function WalletPickerScreen({
3275
3275
  /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle4(tokens.text), children: "Where are your stablecoins?" }),
3276
3276
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: subtitleStyle4(tokens.textSecondary), children: "Select the wallet you want to deposit from" })
3277
3277
  ] }),
3278
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: gridStyle, children: [
3279
- displayProviders.map((p) => {
3280
- const logoSrc = "logoURI" in p && p.logoURI || KNOWN_LOGOS[p.name.toLowerCase()];
3281
- const emoji = WALLET_EMOJIS[p.name.toLowerCase()] ?? p.name.charAt(0);
3282
- const isHovered = hoveredId === p.id;
3283
- return /* @__PURE__ */ jsxRuntime.jsxs(
3284
- "button",
3285
- {
3286
- onClick: () => onSelectProvider(p.id),
3287
- onMouseEnter: () => setHoveredId(p.id),
3288
- onMouseLeave: () => setHoveredId(null),
3289
- style: cardStyle(tokens, isHovered),
3290
- children: [
3291
- logoSrc ? /* @__PURE__ */ jsxRuntime.jsx(
3292
- "img",
3293
- {
3294
- src: logoSrc,
3295
- alt: p.name,
3296
- style: logoImgStyle2
3297
- }
3298
- ) : /* @__PURE__ */ jsxRuntime.jsx("span", { style: emojiStyle, children: emoji }),
3299
- /* @__PURE__ */ jsxRuntime.jsx("span", { style: nameStyle2(tokens.text), children: p.name })
3300
- ]
3301
- },
3302
- p.id
3303
- );
3304
- }),
3305
- /* @__PURE__ */ jsxRuntime.jsxs(
3278
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: gridStyle, children: displayProviders.map((p) => {
3279
+ const logoSrc = "logoURI" in p && p.logoURI || KNOWN_LOGOS[p.name.toLowerCase()];
3280
+ const emoji = WALLET_EMOJIS[p.name.toLowerCase()] ?? p.name.charAt(0);
3281
+ const isHovered = hoveredId === p.id;
3282
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3306
3283
  "button",
3307
3284
  {
3308
- onClick: () => onSelectProvider("other"),
3309
- onMouseEnter: () => setHoveredId("other"),
3285
+ onClick: () => onSelectProvider(p.id),
3286
+ onMouseEnter: () => setHoveredId(p.id),
3310
3287
  onMouseLeave: () => setHoveredId(null),
3311
- style: cardStyle(tokens, hoveredId === "other"),
3288
+ style: cardStyle(tokens, isHovered),
3312
3289
  children: [
3313
- /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", style: { margin: "0 auto" }, children: /* @__PURE__ */ jsxRuntime.jsx(
3314
- "path",
3290
+ logoSrc ? /* @__PURE__ */ jsxRuntime.jsx(
3291
+ "img",
3315
3292
  {
3316
- d: "M19 19H5V5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z",
3317
- fill: tokens.textMuted
3293
+ src: logoSrc,
3294
+ alt: p.name,
3295
+ style: logoImgStyle2
3318
3296
  }
3319
- ) }),
3320
- /* @__PURE__ */ jsxRuntime.jsx("span", { style: nameStyle2(tokens.text), children: "Other" })
3297
+ ) : /* @__PURE__ */ jsxRuntime.jsx("span", { style: emojiStyle, children: emoji }),
3298
+ /* @__PURE__ */ jsxRuntime.jsx("span", { style: nameStyle2(tokens.text), children: p.name })
3321
3299
  ]
3322
- }
3323
- )
3324
- ] })
3300
+ },
3301
+ p.id
3302
+ );
3303
+ }) })
3325
3304
  ]
3326
3305
  }
3327
3306
  );
@@ -4867,7 +4846,7 @@ function StepRenderer({
4867
4846
  }
4868
4847
  );
4869
4848
  }
4870
- if (step === "otp-verify" && !authenticated) {
4849
+ if (step === "otp-verify") {
4871
4850
  return /* @__PURE__ */ jsxRuntime.jsx(
4872
4851
  OtpVerifyScreen,
4873
4852
  {
@@ -4879,7 +4858,7 @@ function StepRenderer({
4879
4858
  onVerify: handlers.onVerifyLoginCode,
4880
4859
  onResend: handlers.onResendLoginCode,
4881
4860
  onBack: handlers.onBackFromOtp,
4882
- verifying: activeOtpStatus === "submitting-code",
4861
+ verifying: activeOtpStatus === "submitting-code" || authenticated,
4883
4862
  error: state.error
4884
4863
  }
4885
4864
  );