@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.
- package/README.md +10 -8
- package/dist/assets/Banner.css +1 -0
- package/dist/assets/CopyAddress.css +1 -0
- package/dist/assets/ExportWallet.css +1 -0
- package/dist/assets/ExportWalletModal.css +1 -0
- package/dist/assets/IframeButton.css +1 -0
- package/dist/assets/Input.css +1 -1
- package/dist/assets/LinkAuth.css +1 -0
- package/dist/assets/LinkAuthFlow.css +1 -0
- package/dist/assets/LinkAuthFlowBackButton.css +1 -0
- package/dist/assets/LinkAuthItem.css +1 -0
- package/dist/assets/LinkAuthItems.css +1 -0
- package/dist/assets/LinkAuthModal.css +1 -0
- package/dist/assets/LinkAuthTitle.css +1 -0
- package/dist/assets/SwitchSlideTransition.css +1 -1
- package/dist/chunks/LinkAuthFlow.CxSnHF2p.js +111 -0
- package/dist/components/CDPReactProvider/index.js +71 -55
- package/dist/components/CopyAddress/index.d.ts +8 -0
- package/dist/components/CopyAddress/index.js +61 -0
- package/dist/components/CopyEvmKeyButton/index.d.ts +13 -0
- package/dist/components/CopyEvmKeyButton/index.js +61 -0
- package/dist/components/CopySolanaKeyButton/index.d.ts +13 -0
- package/dist/components/CopySolanaKeyButton/index.js +61 -0
- package/dist/components/ExportWallet/index.d.ts +21 -0
- package/dist/components/ExportWallet/index.js +110 -0
- package/dist/components/ExportWalletModal/index.d.ts +18 -0
- package/dist/components/ExportWalletModal/index.js +96 -0
- package/dist/components/LinkAuth/LinkAuthFlow.d.ts +13 -0
- package/dist/components/LinkAuth/LinkAuthFlow.js +19 -0
- package/dist/components/LinkAuth/LinkAuthFlowBackButton.d.ts +9 -0
- package/dist/components/LinkAuth/LinkAuthFlowBackButton.js +40 -0
- package/dist/components/LinkAuth/LinkAuthFlowProvider.d.ts +33 -0
- package/dist/components/LinkAuth/LinkAuthFlowProvider.js +9 -0
- package/dist/components/LinkAuth/LinkAuthItem.d.ts +13 -0
- package/dist/components/LinkAuth/LinkAuthItem.js +48 -0
- package/dist/components/LinkAuth/LinkAuthItems.d.ts +9 -0
- package/dist/components/LinkAuth/LinkAuthItems.js +47 -0
- package/dist/components/LinkAuth/LinkAuthProvider.d.ts +12 -0
- package/dist/components/LinkAuth/LinkAuthProvider.js +108 -0
- package/dist/components/LinkAuth/LinkAuthTitle.d.ts +6 -0
- package/dist/components/LinkAuth/LinkAuthTitle.js +19 -0
- package/dist/components/LinkAuth/index.d.ts +17 -0
- package/dist/components/LinkAuth/index.js +93 -0
- package/dist/components/LinkAuth/types.d.ts +32 -0
- package/dist/components/LinkAuth/types.js +5 -0
- package/dist/components/LinkAuth/utils.d.ts +4 -0
- package/dist/components/LinkAuth/utils.js +7 -0
- package/dist/components/LinkAuthModal/index.d.ts +21 -0
- package/dist/components/LinkAuthModal/index.js +69 -0
- package/dist/components/OAuthStatusModal/index.d.ts +7 -1
- package/dist/components/OAuthStatusModal/index.js +115 -93
- package/dist/components/SignIn/SignInAuthMethodButtons.js +36 -34
- package/dist/components/SignIn/SignInForm.d.ts +2 -1
- package/dist/components/SignIn/SignInForm.js +19 -18
- package/dist/components/SignIn/SignInProvider.d.ts +2 -1
- package/dist/components/SignIn/SignInProvider.js +22 -17
- package/dist/components/SignIn/flows/SignInWithEmail.d.ts +1 -1
- package/dist/components/SignIn/flows/SignInWithEmail.js +66 -61
- package/dist/components/SignIn/flows/SignInWithSms.d.ts +1 -1
- package/dist/components/SignIn/flows/SignInWithSms.js +90 -2987
- package/dist/components/SignIn/hooks/useSignInWithOAuth.d.ts +0 -1
- package/dist/components/SignIn/hooks/useSignInWithOAuth.js +19 -20
- package/dist/components/SignIn/index.d.ts +3 -1
- package/dist/components/SignIn/index.js +16 -11
- package/dist/components/SignIn/types.d.ts +2 -0
- package/dist/components/SignIn/useSignInReducer.js +1 -0
- package/dist/components/SignInModal/index.d.ts +3 -1
- package/dist/components/SignInModal/index.js +72 -65
- package/dist/components/forms/Label/index.d.ts +2 -2
- package/dist/components/forms/PhoneNumberInput/index.js +24 -22
- package/dist/components/ui/Banner/index.d.ts +7 -0
- package/dist/components/ui/Banner/index.js +27 -0
- package/dist/components/ui/IframeButton/index.d.ts +11 -0
- package/dist/components/ui/IframeButton/index.js +50 -0
- package/dist/components/ui/Modal/index.js +22 -22
- package/dist/components/ui/SwitchTransition/index.d.ts +3 -1
- package/dist/components/ui/SwitchTransition/index.js +1 -1
- package/dist/hooks/useKeyExportPostMessage.d.ts +38 -0
- package/dist/hooks/useKeyExportPostMessage.js +83 -0
- package/dist/hooks/useTransitionMap.d.ts +50 -0
- package/dist/hooks/useTransitionMap.js +92 -0
- package/dist/icons/IconCopy.d.ts +2 -0
- package/dist/icons/IconCopy.js +10 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +20 -18
- package/dist/index.d.ts +2 -2
- package/dist/index.js +122 -107
- package/dist/theme/theme.d.ts +33 -4
- package/dist/theme/tokens.d.ts +99 -12
- package/dist/theme/tokens.js +29 -12
- package/dist/types/secureIframe.d.ts +30 -0
- package/dist/types/secureIframe.js +13 -0
- package/dist/utils/childrenHasComponent.d.ts +1 -1
- package/dist/utils/formatPhoneNumber.d.ts +1 -0
- package/dist/utils/formatPhoneNumber.js +2910 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +8 -6
- package/dist/utils/sendIframeMessage.d.ts +1 -0
- package/dist/utils/sendIframeMessage.js +13 -0
- package/dist/utils/transition.d.ts +30 -0
- package/dist/utils/transition.js +43 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +8 -9
- package/dist/assets/ManageAuth.css +0 -1
- package/dist/assets/ManageAuthItem.css +0 -1
- package/dist/assets/ManageAuthModal.css +0 -1
- package/dist/components/ManageAuth/ManageAuthItem.d.ts +0 -9
- package/dist/components/ManageAuth/ManageAuthItem.js +0 -77
- package/dist/components/ManageAuth/ManageAuthProvider.d.ts +0 -8
- package/dist/components/ManageAuth/ManageAuthProvider.js +0 -64
- package/dist/components/ManageAuth/index.d.ts +0 -9
- package/dist/components/ManageAuth/index.js +0 -51
- package/dist/components/ManageAuth/types.d.ts +0 -13
- package/dist/components/ManageAuth/types.js +0 -1
- package/dist/components/ManageAuthModal/index.d.ts +0 -20
- 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
|
|
3
|
-
import
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
autoFocus: l = !0,
|
|
12
|
+
onSuccess: f,
|
|
13
|
+
step: M,
|
|
14
|
+
children: g,
|
|
15
|
+
...S
|
|
15
16
|
}) => {
|
|
16
|
-
const { state:
|
|
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 =
|
|
19
|
-
const
|
|
20
|
-
if ((
|
|
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,
|
|
29
|
+
}, [e, c, r.authMethod]), p(() => {
|
|
29
30
|
i.current = e, A((t) => {
|
|
30
|
-
const
|
|
31
|
-
return
|
|
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:
|
|
39
|
+
items: _,
|
|
39
40
|
initialEntered: !0,
|
|
40
41
|
transitionRef: u,
|
|
41
|
-
...
|
|
42
|
-
children: ({ itemKey: t, ...
|
|
43
|
-
const
|
|
44
|
-
return /* @__PURE__ */ a("div", { ...
|
|
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
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { useAppConfig as
|
|
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
|
|
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
|
-
},
|
|
18
|
-
state:
|
|
18
|
+
}, i = h({
|
|
19
|
+
state: r,
|
|
19
20
|
dispatch: () => {
|
|
20
21
|
}
|
|
21
|
-
}),
|
|
22
|
-
const t =
|
|
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
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}),
|
|
31
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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 {
|
|
2
|
-
import { useSignInWithEmail as
|
|
3
|
-
import { useRef as g, useLayoutEffect as
|
|
4
|
-
import { EmailForm as
|
|
5
|
-
import { OTPForm as
|
|
6
|
-
import { SwitchSlideTransition as
|
|
7
|
-
import { useEmailForm as
|
|
8
|
-
import { useOTPForm as
|
|
9
|
-
import { SignInCredentials as
|
|
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
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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: (
|
|
22
|
+
submit: (e) => I({ flowId: i.flowId, otp: e })
|
|
18
23
|
}), p = () => {
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
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
|
|
28
|
-
d.current !==
|
|
29
|
-
}, [
|
|
30
|
-
|
|
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:
|
|
37
|
+
autoFocus: r,
|
|
33
38
|
animateHeight: !1,
|
|
34
|
-
items:
|
|
39
|
+
items: J,
|
|
35
40
|
initialEntered: !0,
|
|
36
|
-
direction:
|
|
41
|
+
direction: t === "otp" ? "left" : "right",
|
|
37
42
|
transitionRef: l,
|
|
38
|
-
children: ({ itemKey:
|
|
39
|
-
let
|
|
40
|
-
return
|
|
41
|
-
|
|
43
|
+
children: ({ itemKey: e, ...D }) => {
|
|
44
|
+
let s = null;
|
|
45
|
+
return e === "email" && (s = /* @__PURE__ */ o(
|
|
46
|
+
V,
|
|
42
47
|
{
|
|
43
|
-
email:
|
|
44
|
-
error:
|
|
45
|
-
isPending:
|
|
46
|
-
onEmailChange:
|
|
47
|
-
onSubmit:
|
|
48
|
+
email: i.email,
|
|
49
|
+
error: t === "email" && i.error || "",
|
|
50
|
+
isPending: i.isPending,
|
|
51
|
+
onEmailChange: v,
|
|
52
|
+
onSubmit: x
|
|
48
53
|
}
|
|
49
|
-
)),
|
|
50
|
-
|
|
54
|
+
)), e === "otp" && (s = /* @__PURE__ */ o(
|
|
55
|
+
q,
|
|
51
56
|
{
|
|
52
|
-
canResetOTP:
|
|
53
|
-
error:
|
|
54
|
-
isPending:
|
|
55
|
-
onOTPChange:
|
|
56
|
-
onResendOTP:
|
|
57
|
-
onSubmit:
|
|
58
|
-
otp:
|
|
59
|
-
resendCountdown:
|
|
60
|
-
successMessage:
|
|
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", { ...
|
|
67
|
+
)), /* @__PURE__ */ o("div", { ...D, children: c ? c({ step: u, Form: s }) : s });
|
|
63
68
|
}
|
|
64
69
|
}
|
|
65
70
|
);
|
|
66
|
-
},
|
|
71
|
+
}, Q = ({ step: n }) => /* @__PURE__ */ m(a, { children: [
|
|
67
72
|
n === "credentials" && "Sign in",
|
|
68
73
|
n === "verification" && "Enter verification code"
|
|
69
|
-
] }),
|
|
70
|
-
const { state:
|
|
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(
|
|
80
|
+
/* @__PURE__ */ o(G, { children: r.email })
|
|
76
81
|
] })
|
|
77
82
|
] });
|
|
78
|
-
},
|
|
79
|
-
description:
|
|
80
|
-
forms:
|
|
81
|
-
title:
|
|
83
|
+
}, si = {
|
|
84
|
+
description: U,
|
|
85
|
+
forms: N,
|
|
86
|
+
title: Q
|
|
82
87
|
};
|
|
83
88
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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;
|