@getpara/react-sdk-lite 2.0.0-alpha.57 → 2.0.0-alpha.59

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,7 +1,7 @@
1
1
  "use client";
2
2
  import "../../../chunk-MMUBH76A.js";
3
3
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
- import { safeStyled } from "@getpara/react-common";
4
+ import { safeStyled, WarningBanner } from "@getpara/react-common";
5
5
  import { IFrameSteps, ModalStep } from "../../utils/steps.js";
6
6
  import { CpslAlert, CpslIcon } from "@getpara/react-components";
7
7
  import { VerificationCodeStep } from "../VerificationCodeStep/VerificationCodeStep.js";
@@ -273,10 +273,7 @@ const Body = ({
273
273
  ]
274
274
  }
275
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
- ] }) })
276
+ modalError && /* @__PURE__ */ jsx(WarningBanner, { onClose: () => setModalError(void 0), children: renderTextWithLinks(modalError) })
280
277
  ]
281
278
  },
282
279
  ["ADD_FUNDS_BUY", "ADD_FUNDS_RECEIVE", "ADD_FUNDS_WITHDRAW"].includes(currentStep) ? "ADD_FUNDS" : currentStep
@@ -339,43 +336,6 @@ const TestModeAlert = safeStyled(CpslAlert)`
339
336
  right: 16px;
340
337
  z-index: 1000;
341
338
  `;
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
- `;
379
339
  const CloseButton = safeStyled.button`
380
340
  background-color: transparent;
381
341
  border: none;
@@ -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.57";
129
+ const SDK_VERSION = "2.0.0-alpha.59";
130
130
  export {
131
131
  BODY_MOTION_VARIANTS,
132
132
  BODY_TRANSITION,
@@ -30,6 +30,7 @@ export declare const useVerifyNewAccount: () => {
30
30
  passkeyId?: string | undefined;
31
31
  passwordId?: string | undefined;
32
32
  pinId?: string | undefined;
33
+ signupAuthMethods?: import("@getpara/web-sdk").AuthMethod[] | undefined;
33
34
  } | undefined;
34
35
  isSuccess: boolean;
35
36
  variables: {
@@ -62,6 +63,7 @@ export declare const useVerifyNewAccount: () => {
62
63
  passkeyId?: string | undefined;
63
64
  passwordId?: string | undefined;
64
65
  pinId?: string | undefined;
66
+ signupAuthMethods?: import("@getpara/web-sdk").AuthMethod[] | undefined;
65
67
  }, Error, {
66
68
  portalTheme?: import("@getpara/web-sdk").Theme | undefined;
67
69
  useShortUrls?: boolean | undefined;
@@ -82,6 +84,7 @@ export declare const useVerifyNewAccount: () => {
82
84
  passkeyId?: string | undefined;
83
85
  passwordId?: string | undefined;
84
86
  pinId?: string | undefined;
87
+ signupAuthMethods?: import("@getpara/web-sdk").AuthMethod[] | undefined;
85
88
  }, Error, {
86
89
  portalTheme?: import("@getpara/web-sdk").Theme | undefined;
87
90
  useShortUrls?: boolean | undefined;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@getpara/react-sdk-lite",
3
- "version": "2.0.0-alpha.57",
3
+ "version": "2.0.0-alpha.59",
4
4
  "bin": {
5
5
  "setup-para": "dist/cli/cli.mjs"
6
6
  },
7
7
  "dependencies": {
8
- "@getpara/react-common": "2.0.0-alpha.57",
9
- "@getpara/react-components": "2.0.0-alpha.57",
10
- "@getpara/web-sdk": "2.0.0-alpha.57",
8
+ "@getpara/react-common": "2.0.0-alpha.59",
9
+ "@getpara/react-components": "2.0.0-alpha.59",
10
+ "@getpara/web-sdk": "2.0.0-alpha.59",
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.57",
20
- "@getpara/evm-wallet-connectors": "2.0.0-alpha.57",
21
- "@getpara/solana-wallet-connectors": "2.0.0-alpha.57",
19
+ "@getpara/cosmos-wallet-connectors": "2.0.0-alpha.59",
20
+ "@getpara/evm-wallet-connectors": "2.0.0-alpha.59",
21
+ "@getpara/solana-wallet-connectors": "2.0.0-alpha.59",
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": "6af8b61e587b4c2f3cd0f8d8accc2f0878667552",
41
+ "gitHead": "e15908ac8eafff6f3b264fffa43742870b14b275",
42
42
  "main": "dist/index.js",
43
43
  "peerDependencies": {
44
44
  "@tanstack/react-query": ">=5.0.0",