@getpara/react-sdk-lite 2.0.0-alpha.52 → 2.0.0-alpha.53

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.
@@ -1,6 +1,6 @@
1
1
  import { Dispatch, PropsWithChildren, ReactNode, SetStateAction } from 'react';
2
2
  import { useWallet } from '../../../provider/hooks/index.js';
3
- import { EnabledFlow, Network, OnRampAsset, OnRampConfig, OnRampProvider } from '@getpara/web-sdk';
3
+ import { EnabledFlow, TNetwork, TOnRampAsset, OnRampConfig, OnRampProvider } from '@getpara/web-sdk';
4
4
  import { IconType } from '@getpara/react-components';
5
5
  export type Tab = EnabledFlow;
6
6
  export declare const TABS: [
@@ -10,14 +10,14 @@ export declare const TABS: [
10
10
  ReactNode
11
11
  ][];
12
12
  type Value = {
13
- network: Network | undefined;
13
+ network: TNetwork | undefined;
14
14
  setNetwork: Dispatch<SetStateAction<Value['network']>>;
15
- asset: OnRampAsset | undefined;
15
+ asset: TOnRampAsset | undefined;
16
16
  setAsset: Dispatch<SetStateAction<Value['asset']>>;
17
17
  fiatQuantity: string | undefined;
18
18
  setFiatQuantity: Dispatch<SetStateAction<Value['fiatQuantity']>>;
19
- networks: Network[];
20
- assets: OnRampAsset[];
19
+ networks: TNetwork[];
20
+ assets: TOnRampAsset[];
21
21
  isProviderAllowed: Partial<Record<OnRampProvider, boolean>>;
22
22
  tab: Tab;
23
23
  activeWallet: ReturnType<typeof useWallet>['data'];
@@ -44,6 +44,7 @@ import { AccountProfileUnlink } from "../Account/AccountProfileUnlink.js";
44
44
  import { ExternalWalletNetworkSelectStep } from "../ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.js";
45
45
  import { AwaitingIFrameStep } from "../AwaitingIFrameStep/AwaitingIFrameStep.js";
46
46
  import { Footer } from "../Footer/Footer.js";
47
+ import { renderTextWithLinks } from "../../utils/renderTextWithLinks.js";
47
48
  const MIN_HEIGHT = {
48
49
  [ModalStep.ADD_FUNDS_AWAITING]: "680px"
49
50
  };
@@ -66,6 +67,8 @@ const Body = ({
66
67
  const setStepDirection = useModalStore((state) => state.setStepDirection);
67
68
  const accountAddFundTab = useModalStore((state) => state.accountAddFundTab);
68
69
  const setAccountAddFundTab = useModalStore((state) => state.setAccountAddFundTab);
70
+ const modalError = useModalStore((state) => state.modalError);
71
+ const setModalError = useModalStore((state) => state.setModalError);
69
72
  const embeddedModal = useStore((state) => {
70
73
  var _a;
71
74
  return (_a = state.modalConfig) == null ? void 0 : _a.embeddedModal;
@@ -234,7 +237,7 @@ const Body = ({
234
237
  setStepDirection(1);
235
238
  },
236
239
  custom: stepDirection,
237
- children: /* @__PURE__ */ jsx(
240
+ children: /* @__PURE__ */ jsxs(
238
241
  BodyContainer,
239
242
  {
240
243
  custom: stepDirection,
@@ -243,32 +246,38 @@ const Body = ({
243
246
  animate: "center",
244
247
  exit: "exit",
245
248
  transition: BODY_TRANSITION,
246
- children: /* @__PURE__ */ jsxs(
247
- InnerContainer,
248
- {
249
- $embeddedModal: !!embeddedModal,
250
- $step: currentStep,
251
- $isIFrameStep: IFrameSteps.includes(currentStep),
252
- children: [
253
- /* @__PURE__ */ jsx(NetworkSpeedBanner, { fontSize: "12px", iconSize: "16px" }),
254
- Content(),
255
- (onRampConfig == null ? void 0 : onRampConfig.testMode) && [
256
- ModalStep.ADD_FUNDS_BUY,
257
- ModalStep.ADD_FUNDS_WITHDRAW,
258
- ModalStep.ADD_FUNDS_AWAITING,
259
- ModalStep.ADD_FUNDS_FAILURE,
260
- ModalStep.ADD_FUNDS_SUCCESS
261
- ].includes(currentStep) && isTestModeAlert && accountAddFundTab !== EnabledFlow.RECEIVE && /* @__PURE__ */ jsx(TestModeAlert, { children: /* @__PURE__ */ jsxs("div", { style: { fontSize: "14px" }, children: [
262
- "This Para Modal is configured to run on-ramp services in ",
263
- /* @__PURE__ */ jsx("b", { children: "test mode" }),
264
- " only, for development purposes. If you are a user of ",
265
- appName,
266
- ", please contact support.",
267
- /* @__PURE__ */ jsx(CloseButton, { onClick: () => setIsTestModeAlert(false), children: /* @__PURE__ */ jsx(CloseX, { icon: "x" }) })
268
- ] }) })
269
- ]
270
- }
271
- )
249
+ children: [
250
+ /* @__PURE__ */ jsxs(
251
+ InnerContainer,
252
+ {
253
+ $embeddedModal: !!embeddedModal,
254
+ $step: currentStep,
255
+ $isIFrameStep: IFrameSteps.includes(currentStep),
256
+ children: [
257
+ /* @__PURE__ */ jsx(NetworkSpeedBanner, { fontSize: "12px", iconSize: "16px" }),
258
+ Content(),
259
+ (onRampConfig == null ? void 0 : onRampConfig.testMode) && [
260
+ ModalStep.ADD_FUNDS_BUY,
261
+ ModalStep.ADD_FUNDS_WITHDRAW,
262
+ ModalStep.ADD_FUNDS_AWAITING,
263
+ ModalStep.ADD_FUNDS_FAILURE,
264
+ ModalStep.ADD_FUNDS_SUCCESS
265
+ ].includes(currentStep) && isTestModeAlert && accountAddFundTab !== EnabledFlow.RECEIVE && /* @__PURE__ */ jsx(TestModeAlert, { children: /* @__PURE__ */ jsxs("div", { style: { fontSize: "14px" }, children: [
266
+ "This Para Modal is configured to run on-ramp services in ",
267
+ /* @__PURE__ */ jsx("b", { children: "test mode" }),
268
+ " only, for development purposes. If you are a user of ",
269
+ appName,
270
+ ", please contact support.",
271
+ /* @__PURE__ */ jsx(CloseButton, { onClick: () => setIsTestModeAlert(false), children: /* @__PURE__ */ jsx(CloseX, { icon: "x" }) })
272
+ ] }) })
273
+ ]
274
+ }
275
+ ),
276
+ modalError && /* @__PURE__ */ jsx(ModalErrorAlert, { children: /* @__PURE__ */ jsxs(ErrorContent, { children: [
277
+ /* @__PURE__ */ jsx(ErrorCloseButton, { onClick: () => setModalError(void 0), children: /* @__PURE__ */ jsx(ErrorCloseIcon, { icon: "x" }) }),
278
+ /* @__PURE__ */ jsx(ErrorText, { children: renderTextWithLinks(modalError) })
279
+ ] }) })
280
+ ]
272
281
  },
273
282
  ["ADD_FUNDS_BUY", "ADD_FUNDS_RECEIVE", "ADD_FUNDS_WITHDRAW"].includes(currentStep) ? "ADD_FUNDS" : currentStep
274
283
  )
@@ -291,7 +300,7 @@ const BodyContainer = safeStyled(motion.div)`
291
300
  position: relative;
292
301
  display: flex;
293
302
  flex-direction: column;
294
- gap: 24px;
303
+ gap: 12px;
295
304
  will-change: auto !important;
296
305
  `;
297
306
  const InnerContainer = safeStyled.div`
@@ -330,17 +339,59 @@ const TestModeAlert = safeStyled(CpslAlert)`
330
339
  right: 16px;
331
340
  z-index: 1000;
332
341
  `;
342
+ const ModalErrorAlert = safeStyled.div`
343
+ background: #fffcec;
344
+ border: 2px solid var(--cpsl-color-utility-yellow);
345
+ border-radius: 4px;
346
+ padding: 8px 8px;
347
+ `;
348
+ const ErrorContent = safeStyled.div`
349
+ display: flex;
350
+ align-items: flex-start;
351
+ gap: 8px;
352
+ position: relative;
353
+ `;
354
+ const ErrorText = safeStyled.div`
355
+ flex: 1;
356
+ font-size: 14px;
357
+ line-height: 1.4;
358
+ color: var(--cpsl-color-black);
359
+ font-weight: 400;
360
+ `;
361
+ const ErrorCloseButton = safeStyled.button`
362
+ background-color: transparent;
363
+ border: none;
364
+ padding: 0;
365
+ cursor: pointer;
366
+ flex-shrink: 0;
367
+ display: flex;
368
+ align-items: center;
369
+ justify-content: center;
370
+ width: 20px;
371
+ height: 20px;
372
+ margin-top: 1px;
373
+ `;
374
+ const ErrorCloseIcon = safeStyled(CpslIcon)`
375
+ --icon-color: var(--cpsl-color-utility-yellow);
376
+ --height: 20px;
377
+ --width: 20px;
378
+ `;
333
379
  const CloseButton = safeStyled.button`
334
380
  background-color: transparent;
335
381
  border: none;
336
- padding: 4px;
382
+ padding: 0;
337
383
  cursor: pointer;
338
- position: absolute;
339
- top: 0;
340
- right: 0;
384
+ flex-shrink: 0;
385
+ display: flex;
386
+ align-items: center;
387
+ justify-content: center;
388
+ width: 20px;
389
+ height: 20px;
341
390
  `;
342
391
  const CloseX = safeStyled(CpslIcon)`
343
- --icon-color: var(--cpsl-color-foreground-0);
392
+ --icon-color: var(--cpsl-color-utility-yellow-dark, #92400e);
393
+ --height: 18px;
394
+ --width: 18px;
344
395
  `;
345
396
  export {
346
397
  Body
@@ -1,5 +1,5 @@
1
1
  import { CpslIcon, CpslInput, CpslText, CpslTileButton } from '@getpara/react-components';
2
- import { Network, OnRampAsset, TExternalWallet, TLinkedAccountType, TWalletType } from '@getpara/web-sdk';
2
+ import { TExternalWallet, TLinkedAccountType, TNetwork, TOnRampAsset, TWalletType } from '@getpara/web-sdk';
3
3
  import { ComponentProps, PropsWithChildren } from 'react';
4
4
  export declare const SpinnerContainer: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
5
  export declare const QRContainer: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -30,11 +30,11 @@ export declare const HeaderSelectItem: import("styled-components/dist/types.js")
30
30
  }, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>, keyof import("react").Component<any, {}, any>>;
31
31
  export declare const HeaderSelectContainer: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
32
32
  export declare function AssetIcon({ asset, size }: {
33
- asset: OnRampAsset;
33
+ asset: TOnRampAsset;
34
34
  size?: string;
35
35
  }): import("react/jsx-runtime").JSX.Element;
36
36
  export declare function NetworkIcon({ network, size }: {
37
- network?: Network;
37
+ network?: TNetwork;
38
38
  size?: string;
39
39
  }): import("react/jsx-runtime").JSX.Element;
40
40
  export declare function WalletTypeIcon({ className, walletType, externalWallet, ...props }: {
@@ -1,4 +1,4 @@
1
- import { Network, OnRampAsset, OnRampMethod, OnRampProvider, TWalletType } from '@getpara/core-sdk';
1
+ import { TNetwork, TOnRampAsset, OnRampMethod, OnRampProvider, TWalletType } from '@getpara/core-sdk';
2
2
  import { IconType } from '@getpara/react-components';
3
3
  import { Transition, Variants } from 'framer-motion';
4
4
  import { DisplayMetadata } from '@getpara/react-common';
@@ -11,21 +11,21 @@ export type OnRampProviderConfig = DisplayMetadata & {
11
11
  backgroundColors: string[];
12
12
  };
13
13
  export declare const ON_RAMP_PROVIDERS: Record<OnRampProvider, OnRampProviderConfig>;
14
- type Networks = Record<Network, DisplayMetadata>;
14
+ type Networks = Record<TNetwork, DisplayMetadata>;
15
15
  export declare const WALLET_TYPES_METADATA: Record<TWalletType, DisplayMetadata>;
16
16
  export declare const NETWORKS: Networks;
17
- export declare const ON_RAMP_ASSETS: Record<OnRampAsset, {
17
+ export declare const ON_RAMP_ASSETS: Record<TOnRampAsset, {
18
18
  name: string;
19
19
  code: string;
20
20
  icon: IconType;
21
21
  isCircular?: boolean;
22
22
  isDark?: boolean;
23
23
  }>;
24
- export declare function getNetworkName(str: Network | string): string;
25
- export declare function getNetworkIcon(str: Network | string): IconType;
26
- export declare function getAssetCode(str: OnRampAsset | string): string;
27
- export declare function getAssetName(str: OnRampAsset | string): string;
28
- export declare function getAssetIcon(str: OnRampAsset | string): "key" | "phone" | "farcaster" | "telegram" | "discord" | "x" | "search" | "wallet" | "cosmos" | "solana" | "para" | "walletConnect" | "close" | "copy" | "safe" | "stripeBrand" | "alertCircle" | "alertTriangle" | "alignVerticalCenter" | "angelListBrand" | "angelList" | "appleBrand" | "apple" | "arbitrumBrand" | "arrowCircleBrokenDownLeft" | "arrowCircleDownFilled" | "arrowCircleDown" | "arrowNarrow" | "arrow" | "asterisk" | "backpack" | "backupKit" | "bank" | "baseBrand" | "beraBrand" | "brush" | "celoBrand" | "checkCircleFilled" | "checkCircle" | "checkSquare" | "check" | "chevronDown" | "chevronRight" | "chevronSelectorVertical" | "chevronUp" | "clock" | "clubhouseBrand" | "clubhouse" | "code" | "coinbase" | "copy07" | "cosmosCircle" | "cosmostation" | "creditCard02" | "creditCard" | "cube03" | "cubeOutline" | "cube" | "currencyDollar" | "decentBrand" | "decent" | "dell" | "discordBrand" | "dot" | "dotsSquare" | "dots" | "downloadCloud" | "download" | "dribbbleBrand" | "dribbble" | "earth" | "edit02" | "emptyCircle" | "ethCircle" | "ethereum" | "eyeOff" | "eye" | "facebookBrand" | "facebook" | "farcasterBrand" | "figmaBrand" | "figma" | "file" | "folder" | "githubBrand" | "github" | "globe" | "glow" | "googleBrand" | "google" | "gridDots" | "haha" | "helpCircle" | "heroAlertCircle" | "heroCheckmarkCapsule" | "heroCheckmark" | "heroEmail" | "heroExternalConnection" | "heroLock" | "heroPasskey" | "heroPhone" | "heroPlusCircleCapsule" | "heroPlusCircle" | "heroWallet" | "home" | "hp" | "image" | "infoCircle" | "instagramBrand" | "instagram" | "keplr" | "laptop" | "leap" | "lenovo" | "lg" | "lightning01" | "lightning" | "linkExternal" | "linkedinBrand" | "linkedin" | "lockKeyholeCircle" | "logOut" | "mail" | "menu" | "metamask" | "monitor" | "moonpayBrand" | "moreLoginOptions" | "motorola" | "nobleBrand" | "okx" | "optimismBrand" | "paraArrow" | "paraBlackBg" | "paraBrand" | "paraIconBrand" | "paraIconQr" | "paraIcon" | "paraLogo" | "paraRingsDark" | "paraRings" | "passcode" | "phantom" | "pintrestBrand" | "pintrest" | "plusCircle" | "plus" | "polygonBrand" | "polygon" | "puzzlePiece" | "qrCode02" | "qrCode" | "rabby" | "rainbow" | "rampNetworkBrand" | "rampNetwork" | "redditBrand" | "reddit" | "refresh" | "samsung" | "send" | "settings" | "share" | "shield" | "signalBrand" | "signal" | "sliders" | "snapchatBrand" | "snapchat" | "solanaCircle" | "solflare" | "spacingHeight" | "star04Filled" | "star05" | "stars01Filled" | "stars02" | "stars" | "stopSquare" | "telegramBrand" | "tetherBrand" | "tikTokBrand" | "tikTok" | "trash" | "tumblrBrand" | "tumblr" | "twitterBrand" | "twitter" | "usdcBrand" | "user01" | "userCircle" | "userPlus" | "user" | "valora" | "wallet02" | "youtubeBrand" | "youtube" | "zerion" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BQ2" | "BQ3" | "BR" | "BS" | "BT" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CD2" | "CF" | "CH" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DS" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB2" | "GB" | "GD" | "GE" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SE" | "SG" | "SI" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "US" | "UY" | "UZ" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WS" | "YE" | "ZA" | "ZM" | "ZW";
24
+ export declare function getNetworkName(str: TNetwork | string): string;
25
+ export declare function getNetworkIcon(str: TNetwork | string): IconType;
26
+ export declare function getAssetCode(str: TOnRampAsset | string): string;
27
+ export declare function getAssetName(str: TOnRampAsset | string): string;
28
+ export declare function getAssetIcon(str: TOnRampAsset | string): "key" | "phone" | "farcaster" | "telegram" | "discord" | "x" | "search" | "wallet" | "cosmos" | "solana" | "para" | "walletConnect" | "close" | "copy" | "safe" | "stripeBrand" | "alertCircle" | "alertTriangle" | "alignVerticalCenter" | "angelListBrand" | "angelList" | "appleBrand" | "apple" | "arbitrumBrand" | "arrowCircleBrokenDownLeft" | "arrowCircleDownFilled" | "arrowCircleDown" | "arrowNarrow" | "arrow" | "asterisk" | "backpack" | "backupKit" | "bank" | "baseBrand" | "beraBrand" | "brush" | "celoBrand" | "checkCircleFilled" | "checkCircle" | "checkSquare" | "check" | "chevronDown" | "chevronRight" | "chevronSelectorVertical" | "chevronUp" | "clock" | "clubhouseBrand" | "clubhouse" | "code" | "coinbase" | "copy07" | "cosmosCircle" | "cosmostation" | "creditCard02" | "creditCard" | "cube03" | "cubeOutline" | "cube" | "currencyDollar" | "decentBrand" | "decent" | "dell" | "discordBrand" | "dot" | "dotsSquare" | "dots" | "downloadCloud" | "download" | "dribbbleBrand" | "dribbble" | "earth" | "edit02" | "emptyCircle" | "ethCircle" | "ethereum" | "eyeOff" | "eye" | "facebookBrand" | "facebook" | "farcasterBrand" | "figmaBrand" | "figma" | "file" | "folder" | "githubBrand" | "github" | "globe" | "glow" | "googleBrand" | "google" | "gridDots" | "haha" | "helpCircle" | "heroAlertCircle" | "heroCheckmarkCapsule" | "heroCheckmark" | "heroEmail" | "heroExternalConnection" | "heroLock" | "heroPasskey" | "heroPhone" | "heroPlusCircleCapsule" | "heroPlusCircle" | "heroWallet" | "home" | "hp" | "image" | "infoCircle" | "instagramBrand" | "instagram" | "keplr" | "laptop" | "leap" | "lenovo" | "lg" | "lightning01" | "lightning" | "linkExternal" | "linkedinBrand" | "linkedin" | "lockKeyholeCircle" | "logOut" | "mail" | "menu" | "metamask" | "monitor" | "moonpayBrand" | "moreLoginOptions" | "motorola" | "nobleBrand" | "okx" | "optimismBrand" | "paraArrow" | "paraBlackBg" | "paraBrand" | "paraIconBrand" | "paraIconQr" | "paraIcon" | "paraLogo" | "paraRingsDark" | "paraRings" | "passcode" | "phantom" | "pintrestBrand" | "pintrest" | "plusCircle" | "plus" | "polygonBrand" | "polygon" | "puzzlePiece" | "qrCode02" | "qrCode" | "rabby" | "rainbow" | "rampNetworkBrand" | "rampNetwork" | "redditBrand" | "reddit" | "refresh" | "samsung" | "send" | "settings" | "share" | "shield" | "signalBrand" | "signal" | "sliders" | "snapchatBrand" | "snapchat" | "solanaCircle" | "solflare" | "spacingHeight" | "star04Filled" | "star05" | "stars01Filled" | "stars02" | "stars" | "stopSquare" | "telegramBrand" | "tetherBrand" | "tikTokBrand" | "tikTok" | "trash" | "tumblrBrand" | "tumblr" | "twitterBrand" | "twitter" | "usdcBrand" | "user01" | "userCircle" | "userPlus" | "user" | "valora" | "wallet02" | "youtubeBrand" | "youtube" | "zerion" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BQ2" | "BQ3" | "BR" | "BS" | "BT" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CD2" | "CF" | "CH" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DS" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB2" | "GB" | "GD" | "GE" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SE" | "SG" | "SI" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "US" | "UY" | "UZ" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WS" | "YE" | "ZA" | "ZM" | "ZW";
29
29
  export declare const MOBILE_SIZE = 480;
30
30
  export declare const NETWORK_NOT_SUPPORTED_ERROR = "network not supported";
31
31
  export declare const EMAIL_REGEX: RegExp;
@@ -3,7 +3,7 @@ import {
3
3
  __spreadProps,
4
4
  __spreadValues
5
5
  } from "../../chunk-MMUBH76A.js";
6
- import { Network, OnRampAsset, OnRampMethod, OnRampProvider } from "@getpara/core-sdk";
6
+ import { OnRampMethod, OnRampProvider } from "@getpara/core-sdk";
7
7
  const PARA_CONNECT = "https://connect.getpara.com/";
8
8
  const PARA_TERMS_AND_CONDITIONS = "https://getpara.com/terms";
9
9
  const ON_RAMP_PROVIDERS = {
@@ -48,35 +48,35 @@ const WALLET_TYPES_METADATA = {
48
48
  COSMOS: { name: "Cosmos", icon: "cosmos", isCircular: true, isDark: true }
49
49
  };
50
50
  const NETWORKS = Object.entries({
51
- [Network.ETHEREUM]: { name: "Ethereum", icon: "ethereum" },
52
- [Network.SEPOLIA]: { name: "Sepolia", icon: "ethereum" },
53
- [Network.ARBITRUM]: { name: "Arbitrum", icon: "arbitrumBrand" },
54
- [Network.BASE]: { name: "Base", icon: "baseBrand" },
55
- [Network.OPTIMISM]: { name: "Optimism", icon: "optimismBrand" },
56
- [Network.POLYGON]: { name: "Polygon", icon: "polygonBrand" },
57
- [Network.SOLANA]: { name: "Solana", icon: "solana" },
58
- [Network.COSMOS]: { name: "Cosmos", icon: "cosmos" },
59
- [Network.CELO]: { name: "Celo", icon: "celoBrand" },
60
- [Network.SOLANA_DEVNET]: { name: "Solana Devnet", icon: "solana" },
61
- [Network.NOBLE]: { name: "Noble", icon: "nobleBrand" },
62
- [Network.BERACHAIN]: { name: "Berachain", icon: "beraBrand" }
51
+ ["ETHEREUM"]: { name: "Ethereum", icon: "ethereum" },
52
+ ["SEPOLIA"]: { name: "Sepolia", icon: "ethereum" },
53
+ ["ARBITRUM"]: { name: "Arbitrum", icon: "arbitrumBrand" },
54
+ ["BASE"]: { name: "Base", icon: "baseBrand" },
55
+ ["OPTIMISM"]: { name: "Optimism", icon: "optimismBrand" },
56
+ ["POLYGON"]: { name: "Polygon", icon: "polygonBrand" },
57
+ ["SOLANA"]: { name: "Solana", icon: "solana" },
58
+ ["COSMOS"]: { name: "Cosmos", icon: "cosmos" },
59
+ ["CELO"]: { name: "Celo", icon: "celoBrand" },
60
+ ["SOLANA_DEVNET"]: { name: "Solana Devnet", icon: "solana" },
61
+ ["NOBLE"]: { name: "Noble", icon: "nobleBrand" },
62
+ ["BERACHAIN"]: { name: "Berachain", icon: "beraBrand" }
63
63
  }).reduce((acc, [key, entry]) => {
64
64
  return __spreadProps(__spreadValues({}, acc), {
65
65
  [key]: __spreadValues(__spreadValues({}, entry), ICON_TYPES[entry.icon])
66
66
  });
67
67
  }, {});
68
68
  const ON_RAMP_ASSETS = Object.entries({
69
- [OnRampAsset.ETHEREUM]: { name: "Ethereum", code: "ETH", icon: "ethereum" },
70
- [OnRampAsset.USDC]: { name: "USD Coin", code: "USDC", icon: "usdcBrand" },
71
- [OnRampAsset.POLYGON]: { name: "Polygon", code: "POL", icon: "polygonBrand" },
72
- [OnRampAsset.SOLANA]: { name: "Solana", code: "SOL", icon: "solana" },
73
- [OnRampAsset.ATOM]: { name: "Atom", code: "ATOM", icon: "cosmos" },
74
- [OnRampAsset.CELO]: { name: "Celo", code: "CELO", icon: "celoBrand" },
75
- [OnRampAsset.TETHER]: { name: "Tether", code: "USDT", icon: "tetherBrand" },
76
- [OnRampAsset.CUSD]: { name: "Celo Dollar", code: "CUSD", icon: "celoBrand" },
77
- [OnRampAsset.CEUR]: { name: "Celo Euro", code: "CEUR", icon: "celoBrand" },
78
- [OnRampAsset.CREAL]: { name: "Celo Real", code: "CREAL", icon: "celoBrand" },
79
- [OnRampAsset.BERA]: { name: "Berachain", code: "BERA", icon: "beraBrand" }
69
+ ["ETHEREUM"]: { name: "Ethereum", code: "ETH", icon: "ethereum" },
70
+ ["USDC"]: { name: "USD Coin", code: "USDC", icon: "usdcBrand" },
71
+ ["POLYGON"]: { name: "Polygon", code: "POL", icon: "polygonBrand" },
72
+ ["SOLANA"]: { name: "Solana", code: "SOL", icon: "solana" },
73
+ ["ATOM"]: { name: "Atom", code: "ATOM", icon: "cosmos" },
74
+ ["CELO"]: { name: "Celo", code: "CELO", icon: "celoBrand" },
75
+ ["TETHER"]: { name: "Tether", code: "USDT", icon: "tetherBrand" },
76
+ ["CUSD"]: { name: "Celo Dollar", code: "CUSD", icon: "celoBrand" },
77
+ ["CEUR"]: { name: "Celo Euro", code: "CEUR", icon: "celoBrand" },
78
+ ["CREAL"]: { name: "Celo Real", code: "CREAL", icon: "celoBrand" },
79
+ ["BERA"]: { name: "Berachain", code: "BERA", icon: "beraBrand" }
80
80
  }).reduce((acc, [key, entry]) => {
81
81
  return __spreadProps(__spreadValues({}, acc), {
82
82
  [key]: __spreadValues(__spreadValues({}, entry), ICON_TYPES[entry.icon])
@@ -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.52";
129
+ const SDK_VERSION = "2.0.0-alpha.53";
130
130
  export {
131
131
  BODY_MOTION_VARIANTS,
132
132
  BODY_TRANSITION,
@@ -110,6 +110,7 @@ const getActions = (set, get) => ({
110
110
  setSelectedExternalWallet: (selectedExternalWallet) => set({ selectedExternalWallet }),
111
111
  setIsExternalWalletConnecting: (isExternalWalletConnecting) => set({ isExternalWalletConnecting }),
112
112
  setExternalWalletError: (externalWalletError) => set({ externalWalletError }),
113
+ setModalError: (modalError) => set({ modalError }),
113
114
  setIsUsingMobileConnector: (isUsingMobileConnector) => set({ isUsingMobileConnector }),
114
115
  setStepDirection: (stepDirection) => set({ stepDirection }),
115
116
  setFarcasterConnectUri: (farcasterConnectUri) => set({ farcasterConnectUri }),
@@ -37,6 +37,7 @@ interface ModalState {
37
37
  isUsingMobileConnector?: boolean;
38
38
  isExternalWalletConnecting?: boolean;
39
39
  externalWalletError?: string[];
40
+ modalError?: string;
40
41
  activeWallet: ActiveWallet | undefined;
41
42
  farcasterConnectUri: string | undefined;
42
43
  twoFactorStatus: Setup2faResponse | undefined;
@@ -85,6 +86,7 @@ export interface ModalActions {
85
86
  setIsUsingMobileConnector: (isUsingMobileConnector?: boolean) => void;
86
87
  setIsExternalWalletConnecting: (isExternalWalletConnecting: boolean) => void;
87
88
  setExternalWalletError: (externalWalletError?: string[]) => void;
89
+ setModalError: (modalError?: string) => void;
88
90
  setStepDirection: (stepDirection: 1 | -1) => void;
89
91
  setFarcasterConnectUri: (_: string | undefined) => void;
90
92
  setTwoFactorStatus: (twoFactorStatus?: Setup2faResponse) => void;
@@ -30,6 +30,7 @@ const DEFAULT_MODAL_STATE = {
30
30
  guestAddFundsTab: void 0,
31
31
  isExternalWalletConnecting: false,
32
32
  externalWalletError: void 0,
33
+ modalError: void 0,
33
34
  activeWallet: [void 0, void 0],
34
35
  farcasterConnectUri: void 0,
35
36
  twoFactorStatus: void 0,
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare const renderTextWithLinks: (text: string) => ReactElement[];
@@ -0,0 +1,34 @@
1
+ "use client";
2
+ import "../../chunk-MMUBH76A.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { Fragment } from "react";
5
+ const renderTextWithLinks = (text) => {
6
+ if (!text) return [/* @__PURE__ */ jsx(Fragment, { children: "" }, 0)];
7
+ const linkStyle = { color: "inherit", textDecoration: "underline", fontWeight: "500" };
8
+ const combinedRegex = /(\[([^\]]+)\]\((https?:\/\/[^)]+)\))|(https?:\/\/[^\s]+)/g;
9
+ const parts = [];
10
+ let lastIndex = 0;
11
+ let match;
12
+ while ((match = combinedRegex.exec(text)) !== null) {
13
+ if (match.index > lastIndex) {
14
+ parts.push(/* @__PURE__ */ jsx(Fragment, { children: text.slice(lastIndex, match.index) }, parts.length));
15
+ }
16
+ if (match[1]) {
17
+ parts.push(
18
+ /* @__PURE__ */ jsx("a", { href: match[3], target: "_blank", rel: "noopener noreferrer", style: linkStyle, children: match[2] }, parts.length)
19
+ );
20
+ } else if (match[4]) {
21
+ parts.push(
22
+ /* @__PURE__ */ jsx("a", { href: match[4], target: "_blank", rel: "noopener noreferrer", style: linkStyle, children: match[4] }, parts.length)
23
+ );
24
+ }
25
+ lastIndex = match.index + match[0].length;
26
+ }
27
+ if (lastIndex < text.length) {
28
+ parts.push(/* @__PURE__ */ jsx(Fragment, { children: text.slice(lastIndex) }, parts.length));
29
+ }
30
+ return parts.length ? parts : [/* @__PURE__ */ jsx(Fragment, { children: text }, 0)];
31
+ };
32
+ export {
33
+ renderTextWithLinks
34
+ };
@@ -1,5 +1,5 @@
1
- import { Network } from '@getpara/web-sdk';
2
- export declare const formatNetworkList: (networks: Network[]) => string;
1
+ import { TNetwork } from '@getpara/web-sdk';
2
+ export declare const formatNetworkList: (networks: TNetwork[]) => string;
3
3
  export declare const formatWalletCreatedDate: (date: string) => string;
4
4
  export declare const camelToSnakeCase: (str: string) => string;
5
5
  export declare const formatBalanceString: (str: string) => string;
@@ -6,6 +6,7 @@ import {
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { forwardRef, useEffect, useState } from "react";
8
8
  import { useStore } from "./stores/useStore.js";
9
+ import { useModalStore } from "../modal/stores/index.js";
9
10
  import { useAutoSessionKeepAlive } from "./hooks/utils/useAutoSessionKeepAlive.js";
10
11
  import { useEventListeners } from "./hooks/utils/useEventListeners.js";
11
12
  import { ExternalWalletWrapper } from "./components/ExternalWalletWrapper.js";
@@ -37,6 +38,7 @@ const ParaProviderMin = forwardRef(({ children, paraClientConfig, callbacks, con
37
38
  const rpcUrl = useStore((state) => state.rpcUrl);
38
39
  const setRpcUrl = useStore((state) => state.setRpcUrl);
39
40
  const setProviderProps = useStore((state) => state.setProviderProps);
41
+ const setModalError = useModalStore((state) => state.setModalError);
40
42
  const [isClientReady, setIsClientReady] = useState(client == null ? void 0 : client.isReady);
41
43
  useEffect(() => {
42
44
  setProviderProps(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, config), externalWalletConfig), paraModalConfig), {
@@ -97,6 +99,7 @@ const ParaProviderMin = forwardRef(({ children, paraClientConfig, callbacks, con
97
99
  throw new Error("Invalid Para config");
98
100
  }
99
101
  const newClient = isParaWeb(paraClientConfig) ? paraClientConfig : new ParaWeb(paraClientConfig.env, paraClientConfig.apiKey, paraClientConfig.opts);
102
+ newClient.setModalError = setModalError;
100
103
  if (newClient.isReady) {
101
104
  setIsClientReady(true);
102
105
  } else {
@@ -29,19 +29,19 @@ export declare const issueJwt: import("./utils.js").CoreAction<"issueJwt">;
29
29
  export declare const getLinkedAccounts: import("./utils.js").CoreAction<"getLinkedAccounts">;
30
30
  export declare const accountLinkInProgress: import("./utils.js").CoreAction<"accountLinkInProgress">;
31
31
  export declare const linkAccount: (_?: import("@getpara/core-sdk").default, __?: {
32
- auth: import("@getpara/user-management-client").VerifiedAuth;
32
+ auth: import("@getpara/shared").VerifiedAuth;
33
33
  } | {
34
- externalWallet: import("@getpara/user-management-client").ExternalWalletInfo;
34
+ externalWallet: import("@getpara/shared").ExternalWalletInfo;
35
35
  } | {
36
- type: import("@getpara/user-management-client").TLinkedAccountType | "X";
36
+ type: import("@getpara/shared").TLinkedAccountType | "X";
37
37
  } | undefined) => Promise<import("@getpara/core-sdk").AccountLinkInProgress>;
38
38
  export declare const unlinkAccount: (_?: import("@getpara/core-sdk").default, __?: {
39
39
  linkedAccountId: string;
40
- } | undefined) => Promise<import("@getpara/user-management-client").LinkedAccounts>;
40
+ } | undefined) => Promise<import("@getpara/shared").LinkedAccounts>;
41
41
  export declare const verifyEmailOrPhoneLink: (_?: import("@getpara/core-sdk").default, __?: {
42
42
  verificationCode?: string;
43
- } | undefined) => Promise<import("@getpara/user-management-client").LinkedAccounts>;
44
- export declare const verifyFarcasterLink: (_?: import("@getpara/core-sdk").default, __?: import("@getpara/core-sdk/dist/types/types/methods.js").FarcasterParams | undefined) => Promise<import("@getpara/user-management-client").LinkedAccounts>;
45
- export declare const verifyTelegramLink: (_?: import("@getpara/core-sdk").default, __?: import("@getpara/core-sdk/dist/types/types/methods.js").TelegramParams | undefined) => Promise<import("@getpara/user-management-client").LinkedAccounts>;
46
- export declare const verifyOAuthLink: (_?: import("@getpara/core-sdk").default, __?: import("@getpara/core-sdk/dist/types/types/methods.js").OAuthParams | undefined) => Promise<import("@getpara/user-management-client").LinkedAccounts>;
47
- export declare const verifyExternalWalletLink: (_?: import("@getpara/core-sdk").default, __?: Omit<import("@getpara/user-management-client").VerifyExternalWalletParams, "externalWallet"> | undefined) => Promise<import("@getpara/user-management-client").LinkedAccounts>;
43
+ } | undefined) => Promise<import("@getpara/shared").LinkedAccounts>;
44
+ export declare const verifyFarcasterLink: (_?: import("@getpara/core-sdk").default, __?: import("@getpara/core-sdk/dist/types/types/methods.js").FarcasterParams | undefined) => Promise<import("@getpara/shared").LinkedAccounts>;
45
+ export declare const verifyTelegramLink: (_?: import("@getpara/core-sdk").default, __?: import("@getpara/core-sdk/dist/types/types/methods.js").TelegramParams | undefined) => Promise<import("@getpara/shared").LinkedAccounts>;
46
+ export declare const verifyOAuthLink: (_?: import("@getpara/core-sdk").default, __?: import("@getpara/core-sdk/dist/types/types/methods.js").OAuthParams | undefined) => Promise<import("@getpara/shared").LinkedAccounts>;
47
+ export declare const verifyExternalWalletLink: (_?: import("@getpara/core-sdk").default, __?: Omit<import("@getpara/shared").VerifyExternalWalletParams, "externalWallet"> | undefined) => Promise<import("@getpara/shared").LinkedAccounts>;
@@ -11,6 +11,7 @@ import { EvmWalletWrapper } from "./EvmWalletWrapper.js";
11
11
  import { CosmosWalletWrapper } from "./CosmosWalletWrapper.js";
12
12
  import { SolanaWalletWrapper } from "./SolanaWalletWrapper.js";
13
13
  import { useStore } from "../stores/useStore.js";
14
+ import { useInternalClient } from "../hooks/utils/useInternalClient.js";
14
15
  const ExternalWalletWrapper = ({
15
16
  children,
16
17
  config
@@ -20,8 +21,12 @@ const ExternalWalletWrapper = ({
20
21
  const appName = useStore((state) => state.appName);
21
22
  const resetModalState = useModalStore((state) => state.resetState);
22
23
  const wallets = useStore((state) => state.externalWallets);
24
+ const para = useInternalClient();
23
25
  useEffect(() => {
24
26
  if (!!wallets.length && !(walletConnect == null ? void 0 : walletConnect.projectId)) {
27
+ para.setModalError(
28
+ "It is recommended to provide a WalletConnect project id to ensure wallet connection works as expected. Refer to our docs at [https://docs.getpara.com/v2/react/guides/external-wallets/evm#configure-the-providers](https://docs.getpara.com/v2/react/guides/external-wallets/evm#configure-the-providers) for configuration details and sign up for your free key at [https://cloud.walletconnect.com/sign-in](https://cloud.walletconnect.com/sign-in)"
29
+ );
25
30
  console.warn(
26
31
  "It is recommended to provide a WalletConnect project id to ensure wallet connection works as expected. Sign up for your free key at https://cloud.walletconnect.com/sign-in"
27
32
  );
@@ -24,7 +24,7 @@ export declare const useCreatePregenWallet: () => {
24
24
  addressSecondary?: string | undefined;
25
25
  publicKey?: string | undefined;
26
26
  scheme?: import("@getpara/web-sdk").TWalletScheme | undefined;
27
- type?: (import("@getpara/user-management-client").EmbeddedWalletType | import("@getpara/user-management-client").ExternalWalletType) | undefined;
27
+ type?: import("@getpara/web-sdk").TWalletType | undefined;
28
28
  isPregen?: boolean | undefined;
29
29
  pregenIdentifier?: string | undefined;
30
30
  pregenIdentifierType?: import("@getpara/web-sdk").TPregenIdentifierType | undefined;
@@ -66,7 +66,7 @@ export declare const useCreatePregenWallet: () => {
66
66
  addressSecondary?: string | undefined;
67
67
  publicKey?: string | undefined;
68
68
  scheme?: import("@getpara/web-sdk").TWalletScheme | undefined;
69
- type?: (import("@getpara/user-management-client").EmbeddedWalletType | import("@getpara/user-management-client").ExternalWalletType) | undefined;
69
+ type?: import("@getpara/web-sdk").TWalletType | undefined;
70
70
  isPregen?: boolean | undefined;
71
71
  pregenIdentifier?: string | undefined;
72
72
  pregenIdentifierType?: import("@getpara/web-sdk").TPregenIdentifierType | undefined;
@@ -96,7 +96,7 @@ export declare const useCreatePregenWallet: () => {
96
96
  addressSecondary?: string | undefined;
97
97
  publicKey?: string | undefined;
98
98
  scheme?: import("@getpara/web-sdk").TWalletScheme | undefined;
99
- type?: (import("@getpara/user-management-client").EmbeddedWalletType | import("@getpara/user-management-client").ExternalWalletType) | undefined;
99
+ type?: import("@getpara/web-sdk").TWalletType | undefined;
100
100
  isPregen?: boolean | undefined;
101
101
  pregenIdentifier?: string | undefined;
102
102
  pregenIdentifierType?: import("@getpara/web-sdk").TPregenIdentifierType | undefined;
@@ -16,7 +16,7 @@ export declare const SIGN_UP_LOG_IN_KEY = "SIGN_UP_LOG_IN";
16
16
  */
17
17
  export declare const useSignUpOrLogIn: () => {
18
18
  status: "error" | "idle" | "pending" | "success";
19
- data: Compute<import("@getpara/web-sdk").AuthStateLogin | import("@getpara/user-management-client").ServerAuthStateVerify> | undefined;
19
+ data: Compute<import("@getpara/web-sdk").AuthStateLogin | import("@getpara/shared").ServerAuthStateVerify> | undefined;
20
20
  isSuccess: boolean;
21
21
  variables: {
22
22
  portalTheme?: import("@getpara/web-sdk").Theme | undefined;
@@ -33,12 +33,12 @@ export declare const useSignUpOrLogIn: () => {
33
33
  failureReason: Error | null;
34
34
  isPaused: boolean;
35
35
  submittedAt: number;
36
- signUpOrLogIn: import("@tanstack/react-query").UseMutateFunction<Compute<import("@getpara/web-sdk").AuthStateLogin | import("@getpara/user-management-client").ServerAuthStateVerify>, Error, {
36
+ signUpOrLogIn: import("@tanstack/react-query").UseMutateFunction<Compute<import("@getpara/web-sdk").AuthStateLogin | import("@getpara/shared").ServerAuthStateVerify>, Error, {
37
37
  portalTheme?: import("@getpara/web-sdk").Theme | undefined;
38
38
  useShortUrls?: boolean | undefined;
39
39
  auth: import("@getpara/web-sdk").VerifiedAuth;
40
40
  }, unknown>;
41
- signUpOrLogInAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<import("@getpara/web-sdk").AuthStateLogin | import("@getpara/user-management-client").ServerAuthStateVerify>, Error, {
41
+ signUpOrLogInAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Compute<import("@getpara/web-sdk").AuthStateLogin | import("@getpara/shared").ServerAuthStateVerify>, Error, {
42
42
  portalTheme?: import("@getpara/web-sdk").Theme | undefined;
43
43
  useShortUrls?: boolean | undefined;
44
44
  auth: import("@getpara/web-sdk").VerifiedAuth;
@@ -20,7 +20,7 @@ export declare const useVerifyNewAccount: () => {
20
20
  displayName?: string | undefined;
21
21
  pfpUrl?: string | undefined;
22
22
  externalWallet?: import("@getpara/web-sdk").ExternalWalletInfo | undefined;
23
- auth: import("@getpara/user-management-client").PrimaryAuth;
23
+ auth: import("@getpara/shared").PrimaryAuth;
24
24
  userId: string;
25
25
  stage: "signup";
26
26
  isPasskeySupported: boolean;
@@ -52,7 +52,7 @@ export declare const useVerifyNewAccount: () => {
52
52
  displayName?: string | undefined;
53
53
  pfpUrl?: string | undefined;
54
54
  externalWallet?: import("@getpara/web-sdk").ExternalWalletInfo | undefined;
55
- auth: import("@getpara/user-management-client").PrimaryAuth;
55
+ auth: import("@getpara/shared").PrimaryAuth;
56
56
  userId: string;
57
57
  stage: "signup";
58
58
  isPasskeySupported: boolean;
@@ -72,7 +72,7 @@ export declare const useVerifyNewAccount: () => {
72
72
  displayName?: string | undefined;
73
73
  pfpUrl?: string | undefined;
74
74
  externalWallet?: import("@getpara/web-sdk").ExternalWalletInfo | undefined;
75
- auth: import("@getpara/user-management-client").PrimaryAuth;
75
+ auth: import("@getpara/shared").PrimaryAuth;
76
76
  userId: string;
77
77
  stage: "signup";
78
78
  isPasskeySupported: boolean;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@getpara/react-sdk-lite",
3
- "version": "2.0.0-alpha.52",
3
+ "version": "2.0.0-alpha.53",
4
4
  "bin": {
5
5
  "setup-para": "dist/cli/cli.mjs"
6
6
  },
7
7
  "dependencies": {
8
- "@getpara/react-common": "2.0.0-alpha.52",
9
- "@getpara/react-components": "2.0.0-alpha.52",
10
- "@getpara/web-sdk": "2.0.0-alpha.52",
8
+ "@getpara/react-common": "2.0.0-alpha.53",
9
+ "@getpara/react-components": "2.0.0-alpha.53",
10
+ "@getpara/web-sdk": "2.0.0-alpha.53",
11
11
  "date-fns": "^3.6.0",
12
12
  "framer-motion": "^11.3.31",
13
13
  "libphonenumber-js": "^1.11.7",
@@ -16,9 +16,9 @@
16
16
  "zustand-sync-tabs": "^0.2.2"
17
17
  },
18
18
  "devDependencies": {
19
- "@getpara/cosmos-wallet-connectors": "2.0.0-alpha.52",
20
- "@getpara/evm-wallet-connectors": "2.0.0-alpha.52",
21
- "@getpara/solana-wallet-connectors": "2.0.0-alpha.52",
19
+ "@getpara/cosmos-wallet-connectors": "2.0.0-alpha.53",
20
+ "@getpara/evm-wallet-connectors": "2.0.0-alpha.53",
21
+ "@getpara/solana-wallet-connectors": "2.0.0-alpha.53",
22
22
  "@tanstack/react-query": "^5.74.0",
23
23
  "@testing-library/dom": "^10.4.0",
24
24
  "@testing-library/react": "^16.3.0",
@@ -38,7 +38,7 @@
38
38
  "package.json",
39
39
  "styles.css"
40
40
  ],
41
- "gitHead": "a63dba8c230e9ff2d73b275d3e40091b93aecf1c",
41
+ "gitHead": "ad18fa268a41b0e4c080fa8349553fb546983513",
42
42
  "main": "dist/index.js",
43
43
  "peerDependencies": {
44
44
  "@tanstack/react-query": ">=5.0.0",