@coinbase/cdp-react 0.0.58 → 0.0.61

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.
Files changed (117) hide show
  1. package/README.md +10 -8
  2. package/dist/assets/Banner.css +1 -0
  3. package/dist/assets/CopyAddress.css +1 -0
  4. package/dist/assets/ExportWallet.css +1 -0
  5. package/dist/assets/ExportWalletModal.css +1 -0
  6. package/dist/assets/IframeButton.css +1 -0
  7. package/dist/assets/Input.css +1 -1
  8. package/dist/assets/LinkAuth.css +1 -0
  9. package/dist/assets/LinkAuthFlow.css +1 -0
  10. package/dist/assets/LinkAuthFlowBackButton.css +1 -0
  11. package/dist/assets/LinkAuthItem.css +1 -0
  12. package/dist/assets/LinkAuthItems.css +1 -0
  13. package/dist/assets/LinkAuthModal.css +1 -0
  14. package/dist/assets/LinkAuthTitle.css +1 -0
  15. package/dist/assets/SwitchSlideTransition.css +1 -1
  16. package/dist/chunks/LinkAuthFlow.CxSnHF2p.js +111 -0
  17. package/dist/components/CDPReactProvider/index.js +71 -55
  18. package/dist/components/CopyAddress/index.d.ts +8 -0
  19. package/dist/components/CopyAddress/index.js +61 -0
  20. package/dist/components/CopyEvmKeyButton/index.d.ts +13 -0
  21. package/dist/components/CopyEvmKeyButton/index.js +61 -0
  22. package/dist/components/CopySolanaKeyButton/index.d.ts +13 -0
  23. package/dist/components/CopySolanaKeyButton/index.js +61 -0
  24. package/dist/components/ExportWallet/index.d.ts +21 -0
  25. package/dist/components/ExportWallet/index.js +110 -0
  26. package/dist/components/ExportWalletModal/index.d.ts +18 -0
  27. package/dist/components/ExportWalletModal/index.js +96 -0
  28. package/dist/components/LinkAuth/LinkAuthFlow.d.ts +13 -0
  29. package/dist/components/LinkAuth/LinkAuthFlow.js +19 -0
  30. package/dist/components/LinkAuth/LinkAuthFlowBackButton.d.ts +9 -0
  31. package/dist/components/LinkAuth/LinkAuthFlowBackButton.js +40 -0
  32. package/dist/components/LinkAuth/LinkAuthFlowProvider.d.ts +33 -0
  33. package/dist/components/LinkAuth/LinkAuthFlowProvider.js +9 -0
  34. package/dist/components/LinkAuth/LinkAuthItem.d.ts +13 -0
  35. package/dist/components/LinkAuth/LinkAuthItem.js +48 -0
  36. package/dist/components/LinkAuth/LinkAuthItems.d.ts +9 -0
  37. package/dist/components/LinkAuth/LinkAuthItems.js +47 -0
  38. package/dist/components/LinkAuth/LinkAuthProvider.d.ts +12 -0
  39. package/dist/components/LinkAuth/LinkAuthProvider.js +108 -0
  40. package/dist/components/LinkAuth/LinkAuthTitle.d.ts +6 -0
  41. package/dist/components/LinkAuth/LinkAuthTitle.js +19 -0
  42. package/dist/components/LinkAuth/index.d.ts +17 -0
  43. package/dist/components/LinkAuth/index.js +93 -0
  44. package/dist/components/LinkAuth/types.d.ts +32 -0
  45. package/dist/components/LinkAuth/types.js +5 -0
  46. package/dist/components/LinkAuth/utils.d.ts +4 -0
  47. package/dist/components/LinkAuth/utils.js +7 -0
  48. package/dist/components/LinkAuthModal/index.d.ts +21 -0
  49. package/dist/components/LinkAuthModal/index.js +69 -0
  50. package/dist/components/OAuthStatusModal/index.d.ts +7 -1
  51. package/dist/components/OAuthStatusModal/index.js +115 -93
  52. package/dist/components/SignIn/SignInAuthMethodButtons.js +36 -34
  53. package/dist/components/SignIn/SignInForm.d.ts +2 -1
  54. package/dist/components/SignIn/SignInForm.js +19 -18
  55. package/dist/components/SignIn/SignInProvider.d.ts +2 -1
  56. package/dist/components/SignIn/SignInProvider.js +22 -17
  57. package/dist/components/SignIn/flows/SignInWithEmail.d.ts +1 -1
  58. package/dist/components/SignIn/flows/SignInWithEmail.js +66 -61
  59. package/dist/components/SignIn/flows/SignInWithSms.d.ts +1 -1
  60. package/dist/components/SignIn/flows/SignInWithSms.js +90 -2987
  61. package/dist/components/SignIn/hooks/useSignInWithOAuth.d.ts +0 -1
  62. package/dist/components/SignIn/hooks/useSignInWithOAuth.js +19 -20
  63. package/dist/components/SignIn/index.d.ts +3 -1
  64. package/dist/components/SignIn/index.js +16 -11
  65. package/dist/components/SignIn/types.d.ts +2 -0
  66. package/dist/components/SignIn/useSignInReducer.js +1 -0
  67. package/dist/components/SignInModal/index.d.ts +3 -1
  68. package/dist/components/SignInModal/index.js +72 -65
  69. package/dist/components/forms/Label/index.d.ts +2 -2
  70. package/dist/components/forms/PhoneNumberInput/index.js +24 -22
  71. package/dist/components/ui/Banner/index.d.ts +7 -0
  72. package/dist/components/ui/Banner/index.js +27 -0
  73. package/dist/components/ui/IframeButton/index.d.ts +11 -0
  74. package/dist/components/ui/IframeButton/index.js +50 -0
  75. package/dist/components/ui/Modal/index.js +22 -22
  76. package/dist/components/ui/SwitchTransition/index.d.ts +3 -1
  77. package/dist/components/ui/SwitchTransition/index.js +1 -1
  78. package/dist/hooks/useKeyExportPostMessage.d.ts +38 -0
  79. package/dist/hooks/useKeyExportPostMessage.js +83 -0
  80. package/dist/hooks/useTransitionMap.d.ts +50 -0
  81. package/dist/hooks/useTransitionMap.js +92 -0
  82. package/dist/icons/IconCopy.d.ts +2 -0
  83. package/dist/icons/IconCopy.js +10 -0
  84. package/dist/icons/index.d.ts +1 -0
  85. package/dist/icons/index.js +20 -18
  86. package/dist/index.d.ts +2 -2
  87. package/dist/index.js +122 -107
  88. package/dist/theme/theme.d.ts +33 -4
  89. package/dist/theme/tokens.d.ts +99 -12
  90. package/dist/theme/tokens.js +29 -12
  91. package/dist/types/secureIframe.d.ts +30 -0
  92. package/dist/types/secureIframe.js +13 -0
  93. package/dist/utils/childrenHasComponent.d.ts +1 -1
  94. package/dist/utils/formatPhoneNumber.d.ts +1 -0
  95. package/dist/utils/formatPhoneNumber.js +2910 -0
  96. package/dist/utils/index.d.ts +1 -0
  97. package/dist/utils/index.js +8 -6
  98. package/dist/utils/sendIframeMessage.d.ts +1 -0
  99. package/dist/utils/sendIframeMessage.js +13 -0
  100. package/dist/utils/transition.d.ts +30 -0
  101. package/dist/utils/transition.js +43 -0
  102. package/dist/version.d.ts +1 -1
  103. package/dist/version.js +1 -1
  104. package/package.json +8 -9
  105. package/dist/assets/ManageAuth.css +0 -1
  106. package/dist/assets/ManageAuthItem.css +0 -1
  107. package/dist/assets/ManageAuthModal.css +0 -1
  108. package/dist/components/ManageAuth/ManageAuthItem.d.ts +0 -9
  109. package/dist/components/ManageAuth/ManageAuthItem.js +0 -77
  110. package/dist/components/ManageAuth/ManageAuthProvider.d.ts +0 -8
  111. package/dist/components/ManageAuth/ManageAuthProvider.js +0 -64
  112. package/dist/components/ManageAuth/index.d.ts +0 -9
  113. package/dist/components/ManageAuth/index.js +0 -51
  114. package/dist/components/ManageAuth/types.d.ts +0 -13
  115. package/dist/components/ManageAuth/types.js +0 -1
  116. package/dist/components/ManageAuthModal/index.d.ts +0 -20
  117. package/dist/components/ManageAuthModal/index.js +0 -53
@@ -3,6 +3,7 @@ import { AuthMethod } from '../CDPReactProvider';
3
3
  import { SignInState } from './types';
4
4
  export interface SignInFormProps extends Omit<HTMLAttributes<HTMLElement>, "children"> {
5
5
  as?: ElementType;
6
+ autoFocus?: boolean;
6
7
  onSuccess?: () => void;
7
8
  step?: SignInState["step"];
8
9
  children?: (props: {
@@ -11,4 +12,4 @@ export interface SignInFormProps extends Omit<HTMLAttributes<HTMLElement>, "chil
11
12
  Form: ReactNode;
12
13
  }) => ReactNode;
13
14
  }
14
- export declare const SignInForm: ({ onSuccess, step: stepFromProps, children, ...props }: SignInFormProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const SignInForm: ({ autoFocus, onSuccess, step: stepFromProps, children, ...props }: SignInFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { useRef as d, useState as _, useLayoutEffect as p } from "react";
3
- import { useAppConfig as I } from "../CDPReactProvider/index.js";
2
+ import { useRef as d, useState as I, useLayoutEffect as p } from "react";
3
+ import "../CDPReactProvider/index.js";
4
4
  import { SwitchFadeTransition as T } from "../ui/SwitchFadeTransition/index.js";
5
5
  import { a as y } from "../../chunks/index.Bvudzh_y.js";
6
6
  import { useSignInContext as v } from "./SignInProvider.js";
@@ -8,16 +8,17 @@ import "@coinbase/cdp-hooks";
8
8
  import '../../assets/SignInForm.css';const E = {
9
9
  "auth-method-wrapper": "SignInForm-module__auth-method-wrapper___uIOAB"
10
10
  }, B = ({
11
- onSuccess: l,
12
- step: f,
13
- children: M,
14
- ...g
11
+ autoFocus: l = !0,
12
+ onSuccess: f,
13
+ step: M,
14
+ children: g,
15
+ ...S
15
16
  }) => {
16
- const { state: o, dispatch: c } = v(), { authMethods: e } = I(), S = f || o.step, m = d(o.authMethod), i = d(e), u = d(null), [w, A] = _(e || []);
17
+ const { state: r, dispatch: c } = v(), { authMethods: e } = r, w = M || r.step, m = d(r.authMethod), i = d(e), u = d(null), [_, A] = I(e || []);
17
18
  return p(() => {
18
- let t = o.authMethod;
19
- const r = !e?.includes(o.authMethod), n = i.current && i.current.length === e?.length && i.current.some((h, s) => h !== e?.[s]);
20
- if ((r || n) && (t = e?.[0]), t && t !== o.authMethod) {
19
+ let t = r.authMethod;
20
+ const n = !e?.includes(r.authMethod), o = i.current && i.current.length === e?.length && i.current.some((h, s) => h !== e?.[s]);
21
+ if ((n || o) && (t = e?.[0]), t && t !== r.authMethod) {
21
22
  c({
22
23
  type: "SET_AUTH_METHOD",
23
24
  payload: { authMethod: t }
@@ -25,23 +26,23 @@ import '../../assets/SignInForm.css';const E = {
25
26
  return;
26
27
  }
27
28
  u.current?.transition && t && m.current !== t && (u.current.transition.toggle(t), m.current = t);
28
- }, [e, c, o.authMethod]), p(() => {
29
+ }, [e, c, r.authMethod]), p(() => {
29
30
  i.current = e, A((t) => {
30
- const r = e?.filter((n) => !t.includes(n)) || [];
31
- return r.length ? [...t, ...r] : t;
31
+ const n = e?.filter((o) => !t.includes(o)) || [];
32
+ return n.length ? [...t, ...n] : t;
32
33
  });
33
34
  }, [e]), /* @__PURE__ */ a(
34
35
  T,
35
36
  {
36
37
  animateHeight: !0,
37
38
  timeout: 250,
38
- items: w,
39
+ items: _,
39
40
  initialEntered: !0,
40
41
  transitionRef: u,
41
- ...g,
42
- children: ({ itemKey: t, ...r }) => {
43
- const n = y[t].forms;
44
- return /* @__PURE__ */ a("div", { ...r, className: E["auth-method-wrapper"], children: /* @__PURE__ */ a(n, { step: S, onSuccess: l, children: ({ step: h, Form: s }) => M?.({ step: h, authMethod: t, Form: s }) || s }) });
42
+ ...S,
43
+ children: ({ itemKey: t, ...n }) => {
44
+ const o = y[t].forms;
45
+ return /* @__PURE__ */ a("div", { ...n, className: E["auth-method-wrapper"], children: /* @__PURE__ */ a(o, { autoFocus: l, step: w, onSuccess: f, children: ({ step: h, Form: s }) => g?.({ step: h, authMethod: t, Form: s }) || s }) });
45
46
  }
46
47
  }
47
48
  );
@@ -8,6 +8,7 @@ export declare const useSignInContext: () => {
8
8
  state: SignInState;
9
9
  dispatch: Dispatch<SignInAction>;
10
10
  };
11
- export declare const SignInProvider: ({ children }: {
11
+ export declare const SignInProvider: ({ children, authMethods: authMethodsFromProps, }: {
12
12
  children: ReactNode;
13
+ authMethods?: SignInState["authMethods"];
13
14
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,11 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { createContext as u, useContext as c, useMemo as m } from "react";
3
- import { useAppConfig as d } from "../CDPReactProvider/index.js";
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { createContext as h, useContext as m, useMemo as l } from "react";
3
+ import { useAppConfig as f } from "../CDPReactProvider/index.js";
4
4
  import "@coinbase/cdp-hooks";
5
5
  import { useSignInReducer as p } from "./useSignInReducer.js";
6
- const n = {
6
+ const r = {
7
7
  authMethod: "email",
8
+ authMethods: ["email"],
8
9
  canResetOTP: !1,
9
10
  email: "",
10
11
  error: null,
@@ -14,24 +15,28 @@ const n = {
14
15
  otp: "",
15
16
  phoneNumber: "",
16
17
  step: "credentials"
17
- }, s = u({
18
- state: n,
18
+ }, i = h({
19
+ state: r,
19
20
  dispatch: () => {
20
21
  }
21
- }), S = () => {
22
- const t = c(s);
22
+ }), I = () => {
23
+ const t = m(i);
23
24
  if (!t)
24
25
  throw new Error("useSignInContext must be used within a SignInProvider");
25
26
  return t;
26
- }, I = ({ children: t }) => {
27
- const { authMethods: r } = d(), [e, o] = p({
28
- ...n,
29
- authMethod: r?.[0] || "email"
30
- }), i = m(() => ({ state: e, dispatch: o }), [e, o]);
31
- return /* @__PURE__ */ a(s.Provider, { value: i, children: t });
27
+ }, P = ({
28
+ children: t,
29
+ authMethods: a
30
+ }) => {
31
+ const { authMethods: e } = f(), o = a?.filter((c) => e.includes(c)) ?? e, [n, s] = p({
32
+ ...r,
33
+ authMethod: o?.[0] || "email",
34
+ authMethods: o
35
+ }), u = l(() => ({ state: n, dispatch: s }), [n, s]);
36
+ return /* @__PURE__ */ d(i.Provider, { value: u, children: t });
32
37
  };
33
38
  export {
34
- s as SignInContext,
35
- I as SignInProvider,
36
- S as useSignInContext
39
+ i as SignInContext,
40
+ P as SignInProvider,
41
+ I as useSignInContext
37
42
  };
@@ -1,6 +1,6 @@
1
1
  import { SignInFlowProps, SignInTitleAndDescriptionProps, SignInFlowConfig } from '../types';
2
2
  export type Step = "email" | "otp";
3
- export declare const SignInWithEmail: ({ step: stepFromProps, onSuccess, children }: SignInFlowProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const SignInWithEmail: ({ step: stepFromProps, autoFocus, onSuccess, children, }: SignInFlowProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export declare const SignInWithEmailTitle: ({ step }: SignInTitleAndDescriptionProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export declare const SignInWithEmailDescription: ({ step }: SignInTitleAndDescriptionProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export declare const config: SignInFlowConfig;
@@ -1,88 +1,93 @@
1
- import { jsx as o, jsxs as m, Fragment as a } from "react/jsx-runtime";
2
- import { useSignInWithEmail as x, useVerifyEmailOTP as y } from "@coinbase/cdp-hooks";
3
- import { useRef as g, useLayoutEffect as D } from "react";
4
- import { EmailForm as j } from "../../forms/EmailForm/index.js";
5
- import { OTPForm as L } from "../../forms/OTPForm/index.js";
6
- import { SwitchSlideTransition as H } from "../../ui/SwitchSlideTransition/index.js";
7
- import { useEmailForm as M } from "../hooks/useEmailForm.js";
8
- import { useOTPForm as V } from "../hooks/useOTPForm.js";
9
- import { SignInCredentials as k } from "../SignInCredentials.js";
1
+ import { jsxs as m, Fragment as a, jsx as o } from "react/jsx-runtime";
2
+ import { useIsSignedIn as L, useSignInWithEmail as j, useLinkEmail as k, useVerifyEmailOTP as H } from "@coinbase/cdp-hooks";
3
+ import { useRef as g, useLayoutEffect as M } from "react";
4
+ import { EmailForm as V } from "../../forms/EmailForm/index.js";
5
+ import { OTPForm as q } from "../../forms/OTPForm/index.js";
6
+ import { SwitchSlideTransition as z } from "../../ui/SwitchSlideTransition/index.js";
7
+ import { useEmailForm as A } from "../hooks/useEmailForm.js";
8
+ import { useOTPForm as B } from "../hooks/useOTPForm.js";
9
+ import { SignInCredentials as G } from "../SignInCredentials.js";
10
10
  import { useSignInContext as S } from "../SignInProvider.js";
11
11
  import "../../CDPReactProvider/index.js";
12
- const q = ["email", "otp"], z = ({ step: n, onSuccess: s, children: c }) => {
13
- const l = g(null), h = 6, { state: e } = S(), { signInWithEmail: E } = x(), { verifyEmailOTP: P } = y(), u = n || e.step, i = u === "credentials" ? "email" : "otp", d = g(i), { setEmail: T, submitEmail: f } = M({
14
- submit: (t) => E({ email: t })
15
- }), { resendCountdown: O, resetOTP: v, setOTP: I, startResendTimer: b, submitOtp: F } = V({
12
+ const J = ["email", "otp"], N = ({
13
+ step: n,
14
+ autoFocus: r,
15
+ onSuccess: E,
16
+ children: c
17
+ }) => {
18
+ const l = g(null), h = 6, { isSignedIn: P } = L(), { state: i } = S(), { signInWithEmail: T } = j(), { linkEmail: O } = k(), { verifyEmailOTP: I } = H(), u = n || i.step, t = u === "credentials" ? "email" : "otp", d = g(t), { setEmail: v, submitEmail: f } = A({
19
+ submit: (e) => P ? O(e) : T({ email: e })
20
+ }), { resendCountdown: b, resetOTP: R, setOTP: w, startResendTimer: F, submitOtp: W } = B({
16
21
  passwordLength: h,
17
- submit: (t) => P({ flowId: e.flowId, otp: t })
22
+ submit: (e) => I({ flowId: i.flowId, otp: e })
18
23
  }), p = () => {
19
- b(60);
20
- }, R = () => {
21
- v(), f({ email: e.email, onSuccess: p });
22
- }, w = (t) => {
23
- t.preventDefault(), f({ email: e.email, onSuccess: p });
24
- }, W = (t) => {
25
- t.preventDefault(), F({ otp: e.otp, onSuccess: s });
24
+ F(60);
25
+ }, C = () => {
26
+ R(), f({ email: i.email, onSuccess: p });
27
+ }, x = (e) => {
28
+ e.preventDefault(), f({ email: i.email, onSuccess: p });
29
+ }, y = (e) => {
30
+ e.preventDefault(), W({ otp: i.otp, onSuccess: E });
26
31
  };
27
- return D(() => {
28
- d.current !== i && (l.current?.transition.toggle(i), d.current = i);
29
- }, [i]), /* @__PURE__ */ o(
30
- H,
32
+ return M(() => {
33
+ d.current !== t && (l.current?.transition.toggle(t), d.current = t);
34
+ }, [t]), /* @__PURE__ */ o(
35
+ z,
31
36
  {
32
- autoFocus: !0,
37
+ autoFocus: r,
33
38
  animateHeight: !1,
34
- items: q,
39
+ items: J,
35
40
  initialEntered: !0,
36
- direction: i === "otp" ? "left" : "right",
41
+ direction: t === "otp" ? "left" : "right",
37
42
  transitionRef: l,
38
- children: ({ itemKey: t, ...C }) => {
39
- let r = null;
40
- return t === "email" && (r = /* @__PURE__ */ o(
41
- j,
43
+ children: ({ itemKey: e, ...D }) => {
44
+ let s = null;
45
+ return e === "email" && (s = /* @__PURE__ */ o(
46
+ V,
42
47
  {
43
- email: e.email,
44
- error: i === "email" && e.error || "",
45
- isPending: e.isPending,
46
- onEmailChange: T,
47
- onSubmit: w
48
+ email: i.email,
49
+ error: t === "email" && i.error || "",
50
+ isPending: i.isPending,
51
+ onEmailChange: v,
52
+ onSubmit: x
48
53
  }
49
- )), t === "otp" && (r = /* @__PURE__ */ o(
50
- L,
54
+ )), e === "otp" && (s = /* @__PURE__ */ o(
55
+ q,
51
56
  {
52
- canResetOTP: e.canResetOTP,
53
- error: i === "otp" && e.error || "",
54
- isPending: e.isPending,
55
- onOTPChange: I,
56
- onResendOTP: R,
57
- onSubmit: W,
58
- otp: e.otp,
59
- resendCountdown: O,
60
- successMessage: e.isSuccess ? "Success!" : void 0
57
+ canResetOTP: i.canResetOTP,
58
+ error: t === "otp" && i.error || "",
59
+ isPending: i.isPending,
60
+ onOTPChange: w,
61
+ onResendOTP: C,
62
+ onSubmit: y,
63
+ otp: i.otp,
64
+ resendCountdown: b,
65
+ successMessage: i.isSuccess ? "Success!" : void 0
61
66
  }
62
- )), /* @__PURE__ */ o("div", { ...C, children: c ? c({ step: u, Form: r }) : r });
67
+ )), /* @__PURE__ */ o("div", { ...D, children: c ? c({ step: u, Form: s }) : s });
63
68
  }
64
69
  }
65
70
  );
66
- }, A = ({ step: n }) => /* @__PURE__ */ m(a, { children: [
71
+ }, Q = ({ step: n }) => /* @__PURE__ */ m(a, { children: [
67
72
  n === "credentials" && "Sign in",
68
73
  n === "verification" && "Enter verification code"
69
- ] }), B = ({ step: n }) => {
70
- const { state: s } = S();
74
+ ] }), U = ({ step: n }) => {
75
+ const { state: r } = S();
71
76
  return /* @__PURE__ */ m(a, { children: [
72
77
  n === "credentials" && "We’ll send you a verification code via email.",
73
78
  n === "verification" && /* @__PURE__ */ m(a, { children: [
74
79
  "Enter the 6 digit code sent to ",
75
- /* @__PURE__ */ o(k, { children: s.email })
80
+ /* @__PURE__ */ o(G, { children: r.email })
76
81
  ] })
77
82
  ] });
78
- }, ee = {
79
- description: B,
80
- forms: z,
81
- title: A
83
+ }, si = {
84
+ description: U,
85
+ forms: N,
86
+ title: Q
82
87
  };
83
88
  export {
84
- z as SignInWithEmail,
85
- B as SignInWithEmailDescription,
86
- A as SignInWithEmailTitle,
87
- ee as config
89
+ N as SignInWithEmail,
90
+ U as SignInWithEmailDescription,
91
+ Q as SignInWithEmailTitle,
92
+ si as config
88
93
  };
@@ -1,7 +1,7 @@
1
1
  import { SignInFlowProps, SignInTitleAndDescriptionProps, SignInFlowConfig } from '../types';
2
2
  declare const STEPS: readonly ["phoneNumber", "otp"];
3
3
  export type Step = (typeof STEPS)[number];
4
- export declare const SignInWithSms: ({ step: stepFromProps, onSuccess, children }: SignInFlowProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const SignInWithSms: ({ step: stepFromProps, autoFocus, onSuccess, children, }: SignInFlowProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export declare const SignInWithSmsTitle: ({ step }: SignInTitleAndDescriptionProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export declare const SignInWithSmsDescription: ({ step }: SignInTitleAndDescriptionProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export declare const config: SignInFlowConfig;