@getpara/react-sdk 2.0.0-dev.2 → 2.0.0-dev.3

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 (265) hide show
  1. package/dist/cli/cli.mjs +22 -7
  2. package/dist/index.d.ts +0 -1
  3. package/dist/index.js +6 -7058
  4. package/dist/modal/ParaModal.js +301 -0
  5. package/dist/modal/components/Account/Account.js +148 -0
  6. package/dist/modal/components/Account/AccountProfile.d.ts +1 -0
  7. package/dist/modal/components/Account/AccountProfile.js +168 -0
  8. package/dist/modal/components/Account/AccountProfileLink.d.ts +1 -0
  9. package/dist/modal/components/Account/AccountProfileLink.js +206 -0
  10. package/dist/modal/components/Account/AccountProfileLinkOptions.d.ts +1 -0
  11. package/dist/modal/components/Account/AccountProfileLinkOptions.js +111 -0
  12. package/dist/modal/components/Account/AccountProfileUnlink.d.ts +1 -0
  13. package/dist/modal/components/Account/AccountProfileUnlink.js +47 -0
  14. package/dist/modal/components/AddFunds/AddFunds.d.ts +0 -2
  15. package/dist/modal/components/AddFunds/AddFunds.js +69 -0
  16. package/dist/modal/components/AddFunds/AddFundsAsset.d.ts +1 -0
  17. package/dist/modal/components/AddFunds/AddFundsAsset.js +125 -0
  18. package/dist/modal/components/AddFunds/AddFundsAwaiting.js +78 -0
  19. package/dist/modal/components/AddFunds/AddFundsContext.d.ts +31 -0
  20. package/dist/modal/components/AddFunds/AddFundsContext.js +160 -0
  21. package/dist/modal/components/AddFunds/AddFundsDone.js +49 -0
  22. package/dist/modal/components/AddFunds/AddFundsProvider.d.ts +1 -0
  23. package/dist/modal/components/AddFunds/AddFundsProvider.js +109 -0
  24. package/dist/modal/components/AddFunds/AddFundsReceive.d.ts +1 -0
  25. package/dist/modal/components/AddFunds/AddFundsReceive.js +83 -0
  26. package/dist/modal/components/AddFunds/AddFundsSettings.d.ts +1 -0
  27. package/dist/modal/components/AddFunds/AddFundsSettings.js +237 -0
  28. package/dist/{MoonPayEmbed-Q2HP2BFI.js → modal/components/AddFunds/MoonPayEmbed.js} +1 -3
  29. package/dist/modal/components/AddFunds/common.d.ts +19 -0
  30. package/dist/modal/components/AddFunds/common.js +24 -0
  31. package/dist/modal/components/AddFunds/index.js +4 -0
  32. package/dist/modal/components/AuthInput/AuthInput.d.ts +17 -3
  33. package/dist/modal/components/AuthInput/AuthInput.js +277 -0
  34. package/dist/modal/components/AuthInput/hooks/useDropdownPosition.js +33 -0
  35. package/dist/modal/components/AuthInput/phoneMasks.js +253 -0
  36. package/dist/modal/components/AuthMainStep/AuthMainStep.d.ts +4 -3
  37. package/dist/modal/components/AuthMainStep/AuthMainStep.js +50 -0
  38. package/dist/modal/components/AuthMainStep/AuthMainStepContent.d.ts +4 -3
  39. package/dist/modal/components/AuthMainStep/AuthMainStepContent.js +164 -0
  40. package/dist/modal/components/AuthOptions/AuthOptions.d.ts +4 -3
  41. package/dist/modal/components/AuthOptions/AuthOptions.js +85 -0
  42. package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.js +18 -0
  43. package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.js +10 -0
  44. package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.js +18 -0
  45. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.d.ts +5 -1
  46. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.js +49 -0
  47. package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.d.ts +1 -1
  48. package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.js +62 -0
  49. package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.d.ts +1 -1
  50. package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +48 -0
  51. package/dist/modal/components/Body/AnimatedHeightWrapper.js +29 -0
  52. package/dist/modal/components/Body/Body.d.ts +4 -3
  53. package/dist/modal/components/Body/Body.js +350 -0
  54. package/dist/modal/components/ChainSwitch/ChainSwitch.js +95 -0
  55. package/dist/modal/components/ChainSwitch/config.js +17 -0
  56. package/dist/modal/components/Controls/Controls.js +78 -0
  57. package/dist/modal/components/Controls/Selects.js +173 -0
  58. package/dist/modal/components/ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.d.ts +1 -0
  59. package/dist/modal/components/ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.js +75 -0
  60. package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.d.ts +7 -0
  61. package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.js +175 -0
  62. package/dist/modal/components/ExternalWalletStep/config.js +17 -0
  63. package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.js +39 -0
  64. package/dist/modal/components/ExternalWallets/ExternalWallets.js +184 -0
  65. package/dist/modal/components/Footer/Footer.js +95 -0
  66. package/dist/modal/components/Header/Header.js +43 -0
  67. package/dist/modal/components/Header/hooks/useStepTitle.js +61 -0
  68. package/dist/modal/components/Hero/Hero.js +116 -0
  69. package/dist/modal/components/IFrameStep/IFrameStep.js +59 -0
  70. package/dist/modal/components/LoginDoneStep/LoginDoneStep.d.ts +4 -0
  71. package/dist/modal/components/LoginDoneStep/LoginDoneStep.js +44 -0
  72. package/dist/modal/components/ModalContent/ModalContent.d.ts +0 -4
  73. package/dist/modal/components/ModalContent/ModalContent.js +88 -0
  74. package/dist/modal/components/OAuth/FarcasterOAuthStep.d.ts +1 -0
  75. package/dist/modal/components/OAuth/FarcasterOAuthStep.js +31 -0
  76. package/dist/modal/components/OAuth/OAuth.d.ts +2 -2
  77. package/dist/modal/components/OAuth/OAuth.js +79 -0
  78. package/dist/modal/components/OAuth/TelegramOAuthStep.d.ts +7 -0
  79. package/dist/modal/components/OAuth/TelegramOAuthStep.js +74 -0
  80. package/dist/modal/components/OnRampComponents/AddingFunds.js +23 -0
  81. package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +77 -0
  82. package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.js +107 -0
  83. package/dist/modal/components/Setup2FAStep/Setup2FAStep.js +132 -0
  84. package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.js +27 -0
  85. package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.d.ts +12 -1
  86. package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.js +160 -0
  87. package/dist/modal/components/Waiting/Waiting.js +17 -0
  88. package/dist/modal/components/WalletCard/PartnerIcon.js +34 -0
  89. package/dist/modal/components/WalletCard/WalletCard.d.ts +3 -3
  90. package/dist/modal/components/WalletCard/WalletCard.js +128 -0
  91. package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.js +83 -0
  92. package/dist/modal/components/common.d.ts +49 -13
  93. package/dist/modal/components/common.js +261 -0
  94. package/dist/modal/components/index.js +2 -0
  95. package/dist/modal/constants/constants.d.ts +10 -2
  96. package/dist/modal/constants/constants.js +142 -0
  97. package/dist/modal/constants/defaults.js +10 -0
  98. package/dist/modal/constants/oAuthLogos.d.ts +15 -6
  99. package/dist/modal/constants/oAuthLogos.js +158 -0
  100. package/dist/modal/constants/walletTypeConfig.d.ts +6 -0
  101. package/dist/modal/constants/walletTypeConfig.js +13 -0
  102. package/dist/modal/hooks/useGoBack.js +43 -0
  103. package/dist/modal/hooks/useTelegramLogin.d.ts +12 -0
  104. package/dist/modal/hooks/useTelegramLogin.js +65 -0
  105. package/dist/modal/index.d.ts +1 -1
  106. package/dist/modal/index.js +29 -0
  107. package/dist/modal/stores/index.d.ts +0 -1
  108. package/dist/modal/stores/index.js +2 -0
  109. package/dist/modal/stores/modal/actions.js +135 -0
  110. package/dist/modal/stores/modal/useModalStore.d.ts +17 -16
  111. package/dist/modal/stores/modal/useModalStore.js +73 -0
  112. package/dist/modal/types/commonTypes.js +1 -0
  113. package/dist/modal/types/modalProps.d.ts +15 -2
  114. package/dist/modal/types/modalProps.js +12 -0
  115. package/dist/modal/utils/authInputHelpers.d.ts +5 -0
  116. package/dist/modal/utils/authInputHelpers.js +41 -0
  117. package/dist/modal/utils/authLayoutHelpers.js +8 -0
  118. package/dist/modal/utils/countryCodes.js +45 -0
  119. package/dist/modal/utils/getMailtoLink.js +10 -0
  120. package/dist/modal/utils/getTileButtonFlex.js +20 -0
  121. package/dist/modal/utils/getWalletDisplayName.d.ts +5 -0
  122. package/dist/modal/utils/getWalletDisplayName.js +22 -0
  123. package/dist/modal/utils/isPasskeySupported.js +15 -0
  124. package/dist/modal/utils/openPopup.js +60 -0
  125. package/dist/modal/utils/routeMobileExternalWallet.js +31 -0
  126. package/dist/modal/utils/steps.d.ts +21 -2
  127. package/dist/modal/utils/steps.js +273 -0
  128. package/dist/modal/utils/stringFormatters.d.ts +1 -0
  129. package/dist/modal/utils/stringFormatters.js +19 -0
  130. package/dist/modal/utils/validateOnRampConfig.js +32 -0
  131. package/dist/package.json +6 -0
  132. package/dist/provider/ParaProvider.js +117 -0
  133. package/dist/provider/actions/getEmbeddedAccount.d.ts +26 -0
  134. package/dist/provider/actions/getEmbeddedAccount.js +52 -0
  135. package/dist/provider/actions/getWallet.d.ts +3 -3
  136. package/dist/provider/actions/getWallet.js +18 -0
  137. package/dist/provider/actions/index.d.ts +40 -18
  138. package/dist/provider/actions/index.js +79 -0
  139. package/dist/provider/actions/utils.d.ts +4 -3
  140. package/dist/provider/actions/utils.js +34 -0
  141. package/dist/provider/components/CosmosWalletWrapper.js +43 -0
  142. package/dist/provider/components/EvmWalletWrapper.js +43 -0
  143. package/dist/provider/components/ExternalWalletWrapper.js +140 -0
  144. package/dist/provider/components/SolanaWalletWrapper.js +44 -0
  145. package/dist/provider/external/getParaCosmosConnector.js +19 -0
  146. package/dist/provider/external/getParaCosmosLib.d.ts +4 -0
  147. package/dist/provider/external/getParaCosmosLib.js +16 -0
  148. package/dist/provider/external/getParaEvmConnector.js +19 -0
  149. package/dist/provider/external/getParaEvmLib.d.ts +4 -0
  150. package/dist/provider/external/getParaEvmLib.js +16 -0
  151. package/dist/provider/external/getParaSolanaConnector.js +19 -0
  152. package/dist/provider/external/getParaSolanaLib.d.ts +4 -0
  153. package/dist/provider/external/getParaSolanaLib.js +16 -0
  154. package/dist/provider/external/stubs/CosmosExternalWalletContextStub.d.ts +1 -11
  155. package/dist/provider/external/stubs/CosmosExternalWalletContextStub.js +8 -0
  156. package/dist/provider/external/stubs/EvmExternalWalletContextStub.d.ts +1 -2
  157. package/dist/provider/external/stubs/EvmExternalWalletContextStub.js +8 -0
  158. package/dist/provider/external/stubs/SolanaExternalWalletContextStub.d.ts +1 -7
  159. package/dist/provider/external/stubs/SolanaExternalWalletContextStub.js +8 -0
  160. package/dist/provider/hooks/index.js +4 -0
  161. package/dist/provider/hooks/mutations/core.d.ts +27 -0
  162. package/dist/provider/hooks/mutations/core.js +66 -0
  163. package/dist/provider/hooks/mutations/index.d.ts +3 -34
  164. package/dist/provider/hooks/mutations/index.js +9 -0
  165. package/dist/provider/hooks/mutations/useLinkAccount.d.ts +9 -0
  166. package/dist/provider/hooks/mutations/useLinkAccount.js +18 -0
  167. package/dist/provider/hooks/mutations/utils.d.ts +11 -3
  168. package/dist/provider/hooks/mutations/utils.js +90 -0
  169. package/dist/provider/hooks/queries/core.d.ts +4 -0
  170. package/dist/provider/hooks/queries/core.js +16 -0
  171. package/dist/provider/hooks/queries/index.d.ts +2 -0
  172. package/dist/provider/hooks/queries/index.js +11 -0
  173. package/dist/provider/hooks/queries/useAccount.d.ts +86 -7
  174. package/dist/provider/hooks/queries/useAccount.js +135 -0
  175. package/dist/provider/hooks/queries/useIsFullyLoggedIn.d.ts +5 -0
  176. package/dist/provider/hooks/queries/useIsFullyLoggedIn.js +24 -0
  177. package/dist/provider/hooks/queries/useWallet.d.ts +1 -1
  178. package/dist/provider/hooks/queries/useWallet.js +26 -0
  179. package/dist/provider/hooks/queries/useWalletBalance.d.ts +6 -0
  180. package/dist/provider/hooks/queries/useWalletBalance.js +55 -0
  181. package/dist/provider/hooks/queries/utils.d.ts +7 -0
  182. package/dist/provider/hooks/queries/utils.js +25 -0
  183. package/dist/provider/hooks/utils/index.js +10 -0
  184. package/dist/provider/hooks/utils/useAutoSessionKeepAlive.js +74 -0
  185. package/dist/provider/hooks/utils/useClient.d.ts +1 -1
  186. package/dist/provider/hooks/utils/useClient.js +10 -0
  187. package/dist/provider/hooks/utils/useEventListeners.d.ts +1 -1
  188. package/dist/provider/hooks/utils/useEventListeners.js +157 -0
  189. package/dist/provider/hooks/utils/useFormattedBiometricHints.d.ts +4 -0
  190. package/dist/provider/hooks/utils/useFormattedBiometricHints.js +27 -0
  191. package/dist/provider/hooks/utils/useInternalClient.js +10 -0
  192. package/dist/provider/hooks/utils/useModal.d.ts +4 -1
  193. package/dist/provider/hooks/utils/useModal.js +27 -0
  194. package/dist/provider/hooks/utils/useWalletState.d.ts +3 -3
  195. package/dist/provider/hooks/utils/useWalletState.js +48 -0
  196. package/dist/provider/index.d.ts +2 -0
  197. package/dist/provider/index.js +11 -0
  198. package/dist/provider/providers/AccountLinkProvider.d.ts +47 -0
  199. package/dist/provider/providers/AccountLinkProvider.js +452 -0
  200. package/dist/provider/providers/AuthProvider.d.ts +12 -6
  201. package/dist/provider/providers/AuthProvider.js +523 -0
  202. package/dist/provider/providers/CosmosExternalWalletProvider.js +66 -0
  203. package/dist/provider/providers/EvmExternalWalletProvider.js +74 -0
  204. package/dist/provider/providers/ExternalWalletProvider.d.ts +23 -43
  205. package/dist/provider/providers/ExternalWalletProvider.js +596 -0
  206. package/dist/provider/providers/SolanaExternalWalletProvider.js +66 -0
  207. package/dist/provider/stores/getters.d.ts +1 -1
  208. package/dist/provider/stores/getters.js +13 -0
  209. package/dist/provider/stores/setters.js +7 -0
  210. package/dist/provider/stores/slices/analytics.d.ts +3 -0
  211. package/dist/provider/stores/slices/analytics.js +9 -0
  212. package/dist/provider/stores/slices/client.js +9 -0
  213. package/dist/provider/stores/slices/config.js +9 -0
  214. package/dist/provider/stores/slices/externalWallets.js +46 -0
  215. package/dist/provider/stores/slices/index.d.ts +1 -0
  216. package/dist/provider/stores/slices/index.js +6 -0
  217. package/dist/provider/stores/slices/modal.js +18 -0
  218. package/dist/provider/stores/slices/wallet.js +13 -0
  219. package/dist/provider/stores/types.d.ts +19 -5
  220. package/dist/provider/stores/types.js +1 -0
  221. package/dist/provider/stores/useStore.js +34 -0
  222. package/dist/provider/types/externalWalletProviders.js +1 -0
  223. package/dist/provider/types/provider.d.ts +23 -4
  224. package/dist/provider/types/provider.js +1 -0
  225. package/dist/provider/types/query.js +1 -0
  226. package/dist/provider/types/utils.d.ts +28 -5
  227. package/dist/provider/types/utils.js +1 -0
  228. package/dist/provider/utils/constants.d.ts +5 -0
  229. package/dist/provider/utils/constants.js +10 -0
  230. package/dist/provider/utils/paraConfigTypeGuards.js +13 -0
  231. package/dist/provider/utils/renameMutations.d.ts +2 -2
  232. package/dist/provider/utils/renameMutations.js +18 -0
  233. package/package.json +40 -39
  234. package/dist/MoonPayEmbed-Q2HP2BFI.js.br +0 -0
  235. package/dist/MoonPayEmbed-Q2HP2BFI.js.gz +0 -0
  236. package/dist/chunk-MMUBH76A.js.br +0 -0
  237. package/dist/chunk-MMUBH76A.js.gz +0 -0
  238. package/dist/index.js.br +0 -0
  239. package/dist/index.js.gz +0 -0
  240. package/dist/modal/components/StripeComponents/StripeComponents.d.ts +0 -16
  241. package/dist/modal/hooks/useCreateAccount.d.ts +0 -4
  242. package/dist/modal/stores/userInfo/actions.d.ts +0 -3
  243. package/dist/modal/stores/userInfo/useUserInfoStore.d.ts +0 -19
  244. package/dist/provider/actions/checkIfUserExists.d.ts +0 -4
  245. package/dist/provider/actions/createUser.d.ts +0 -4
  246. package/dist/provider/actions/getAccount.d.ts +0 -10
  247. package/dist/provider/actions/initiateLogin.d.ts +0 -4
  248. package/dist/provider/actions/keepSessionAlive.d.ts +0 -2
  249. package/dist/provider/actions/logout.d.ts +0 -5
  250. package/dist/provider/actions/signMessage.d.ts +0 -8
  251. package/dist/provider/actions/signTransaction.d.ts +0 -8
  252. package/dist/provider/actions/waitForAccountCreation.d.ts +0 -5
  253. package/dist/provider/actions/waitForLoginAndSetup.d.ts +0 -6
  254. package/dist/provider/actions/waitForPasskeyAndCreateWallet.d.ts +0 -2
  255. package/dist/provider/hooks/mutations/useCheckIfUserExists.d.ts +0 -13
  256. package/dist/provider/hooks/mutations/useCreateUser.d.ts +0 -13
  257. package/dist/provider/hooks/mutations/useInitiateLogin.d.ts +0 -14
  258. package/dist/provider/hooks/mutations/useKeepSessionAlive.d.ts +0 -12
  259. package/dist/provider/hooks/mutations/useLogout.d.ts +0 -13
  260. package/dist/provider/hooks/mutations/useSignMessage.d.ts +0 -15
  261. package/dist/provider/hooks/mutations/useSignTransaction.d.ts +0 -15
  262. package/dist/provider/hooks/mutations/useWaitForAccountCreation.d.ts +0 -13
  263. package/dist/provider/hooks/mutations/useWaitForLoginAndSetup.d.ts +0 -14
  264. package/dist/provider/hooks/mutations/useWaitForPasskeyAndCreateWallet.d.ts +0 -13
  265. /package/dist/modal/{components/AuthInput → utils}/countryCodes.d.ts +0 -0
@@ -1,7 +1,5 @@
1
1
  "use client";
2
- import "./chunk-MMUBH76A.js";
3
-
4
- // src/modal/components/AddFunds/MoonPayEmbed.tsx
2
+ import "../../../chunk-MMUBH76A.js";
5
3
  import { MoonPayEmbed } from "@getpara/react-common";
6
4
  var MoonPayEmbed_default = MoonPayEmbed;
7
5
  export {
@@ -0,0 +1,19 @@
1
+ export declare const contentMotionProps: {
2
+ transition: {
3
+ duration: number;
4
+ };
5
+ initial: {
6
+ opacity: number;
7
+ };
8
+ animate: {
9
+ opacity: number;
10
+ };
11
+ exit: {
12
+ opacity: number;
13
+ };
14
+ };
15
+ export declare const NoProviders: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<any, "ref"> & import("react").RefAttributes<any>, "ref"> & {
16
+ ref?: ((instance: any) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<any> | null | undefined;
17
+ }, {
18
+ isHidden?: boolean;
19
+ }>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>, keyof import("react").Component<any, {}, any>>;
@@ -0,0 +1,24 @@
1
+ "use client";
2
+ import "../../../chunk-MMUBH76A.js";
3
+ import { CpslText } from "@getpara/react-components";
4
+ import { safeStyled } from "@getpara/react-common";
5
+ const contentMotionProps = {
6
+ transition: { duration: 0.2 },
7
+ initial: { opacity: 0 },
8
+ animate: { opacity: 1 },
9
+ exit: { opacity: 0 }
10
+ };
11
+ const NoProviders = safeStyled(CpslText)`
12
+ width: 100%;
13
+ text-align: center;
14
+ visibility: ${({ isHidden }) => isHidden ? "hidden" : "visible"};
15
+ position: absolute;
16
+ top: 0;
17
+ left: 0;
18
+ right: 0;
19
+ transition: visibility 0.2s;
20
+ `;
21
+ export {
22
+ NoProviders,
23
+ contentMotionProps
24
+ };
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ export * from "./AddFunds.js";
3
+ export * from "./AddFundsAwaiting.js";
4
+ export * from "./AddFundsDone.js";
@@ -1,6 +1,20 @@
1
- interface AuthInputProps {
1
+ import { ReactNode } from 'react';
2
+ import { Auth } from '@getpara/user-management-client';
3
+ type ChildProps = {
4
+ isPending: boolean;
5
+ isSubmitting: boolean;
6
+ onSubmit: () => void;
7
+ };
8
+ type AuthInputProps = {
9
+ defaultAuth?: Auth<'email' | 'phone'>;
10
+ onSubmit: (_: Auth<'email' | 'phone'>) => void;
11
+ isSubmitting: boolean;
2
12
  disableEmailLogin?: boolean;
3
13
  disablePhoneLogin?: boolean;
4
- }
5
- export declare const AuthInput: ({ disableEmailLogin, disablePhoneLogin }: AuthInputProps) => import("react/jsx-runtime").JSX.Element | null;
14
+ disableSubmitButton?: boolean;
15
+ children?: (_: ChildProps) => ReactNode;
16
+ error?: string | null;
17
+ sticky?: boolean;
18
+ };
19
+ export declare const AuthInput: ({ defaultAuth, disableEmailLogin, disablePhoneLogin, onSubmit: _onSubmit, isSubmitting, disableSubmitButton, children: Children, error: propsError, sticky, }: AuthInputProps) => import("react/jsx-runtime").JSX.Element | null;
6
20
  export {};
@@ -0,0 +1,277 @@
1
+ "use client";
2
+ import {
3
+ __async
4
+ } from "../../../chunk-MMUBH76A.js";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import {
7
+ CpslButton,
8
+ CpslIcon,
9
+ CpslInput,
10
+ CpslSelect,
11
+ CpslSelectItem,
12
+ CpslSpinner,
13
+ CpslText
14
+ } from "@getpara/react-components";
15
+ import { useEffect, useMemo, useRef, useState } from "react";
16
+ import { safeStyled } from "@getpara/react-common";
17
+ import countryCodes from "../../utils/countryCodes.js";
18
+ import { MOBILE_SIZE } from "../../constants/constants.js";
19
+ import { useDropdownPosition } from "./hooks/useDropdownPosition.js";
20
+ import { defaultPhoneMask, phoneMasks } from "./phoneMasks.js";
21
+ import { extractAuthInfo } from "@getpara/user-management-client";
22
+ import parsePhoneNumberFromString from "libphonenumber-js";
23
+ import { isCcMatch, validateInput } from "../../utils/authInputHelpers.js";
24
+ const DEFAULT_COUNTRY = { label: "United States", value: "+1", selectedLabel: "US", icon: "US" };
25
+ const AuthInput = ({
26
+ defaultAuth,
27
+ disableEmailLogin,
28
+ disablePhoneLogin,
29
+ onSubmit: _onSubmit,
30
+ isSubmitting,
31
+ disableSubmitButton,
32
+ children: Children,
33
+ error: propsError,
34
+ sticky = false
35
+ }) => {
36
+ var _a, _b, _c;
37
+ const inputRef = useRef(null);
38
+ const { dropdownMaxHeight, dropdownWidth } = useDropdownPosition(inputRef);
39
+ const [authInfo, storedNationalNumber, storedCountryCode] = useMemo(() => {
40
+ if (!defaultAuth) {
41
+ return [void 0, void 0, void 0];
42
+ }
43
+ const authInfo2 = extractAuthInfo(defaultAuth);
44
+ if (!authInfo2 || (authInfo2 == null ? void 0 : authInfo2.authType) !== "phone") {
45
+ return [authInfo2, void 0, void 0];
46
+ }
47
+ const parsed = parsePhoneNumberFromString(authInfo2.identifier);
48
+ return [authInfo2, parsed == null ? void 0 : parsed.nationalNumber, parsed == null ? void 0 : parsed.countryCallingCode];
49
+ }, [defaultAuth]);
50
+ const [countryCode, setCountryCode] = useState(storedCountryCode != null ? storedCountryCode : "+1");
51
+ const [identifier, setIdentifier] = useState(
52
+ (() => {
53
+ if (!(authInfo == null ? void 0 : authInfo.authType) || ["telegram", "farcaster", "externalWallet"].includes(authInfo == null ? void 0 : authInfo.authType)) {
54
+ return "";
55
+ }
56
+ if (authInfo.authType !== "phone") {
57
+ return authInfo.identifier;
58
+ }
59
+ return storedNationalNumber != null ? storedNationalNumber : "";
60
+ })()
61
+ );
62
+ const [identifierType, setIdentifierType] = useState(
63
+ authInfo && (authInfo.authType === "email" || authInfo.authType === "phone") ? authInfo.authType : void 0
64
+ );
65
+ const [matchedCountryCode, setMatchedCountryCode] = useState(
66
+ (_a = countryCodes.find((option) => isCcMatch(countryCode, option))) != null ? _a : DEFAULT_COUNTRY
67
+ );
68
+ const [error, setError] = useState(propsError || void 0);
69
+ const [isPending, setIsPending] = useState(isSubmitting || false);
70
+ const [search, setSearch] = useState("");
71
+ const setCountryCodes = (countyCodeInput) => {
72
+ setCountryCode(countyCodeInput.value);
73
+ setMatchedCountryCode(countyCodeInput);
74
+ };
75
+ const isEmail = identifierType === "email";
76
+ const isPhone = identifierType === "phone";
77
+ const isUnknown = !identifierType;
78
+ const filteredCountryCodes = search ? countryCodes.filter(
79
+ (cc) => cc.selectedLabel.toLowerCase().includes(search.toLowerCase()) || cc.label.toLowerCase().includes(search.toLowerCase()) || cc.value.toLowerCase().includes(search.toLowerCase())
80
+ ) : countryCodes;
81
+ const handleSearchInput = (ev) => {
82
+ setSearch(ev.detail);
83
+ };
84
+ const handleIdentifierInput = (ev) => {
85
+ var _a2;
86
+ if (!sticky) {
87
+ setError(void 0);
88
+ }
89
+ const newIdentifier = (_a2 = ev.detail.value) != null ? _a2 : "";
90
+ let isNewPhone = false, isNewEmail = false;
91
+ if (!disablePhoneLogin) {
92
+ const countryCodeInputMatch = countryCodes.find((option) => isCcMatch(newIdentifier, option));
93
+ if (countryCodeInputMatch) {
94
+ setCountryCodes(countryCodeInputMatch);
95
+ setIdentifierType("phone");
96
+ setIdentifier("");
97
+ return;
98
+ }
99
+ isNewPhone = !isEmail && isPhone ? /\d+$/.test(newIdentifier) : /\d\d\d+$/.test(newIdentifier);
100
+ }
101
+ if (!disableEmailLogin) {
102
+ isNewEmail = /\D.*$/.test(newIdentifier);
103
+ }
104
+ setIdentifierType(isNewEmail ? "email" : isNewPhone ? "phone" : void 0);
105
+ setIdentifier(newIdentifier);
106
+ };
107
+ const handleCountryCodeInput = (ev) => {
108
+ const matchedCountryCode2 = countryCodes.find((code) => code.selectedLabel === ev.detail);
109
+ if (matchedCountryCode2) {
110
+ setCountryCodes(matchedCountryCode2);
111
+ }
112
+ };
113
+ const onSubmit = () => __async(void 0, null, function* () {
114
+ setError(void 0);
115
+ try {
116
+ const auth = validateInput(identifier, countryCode, identifierType);
117
+ _onSubmit(auth);
118
+ } catch (err) {
119
+ setError(err.message);
120
+ }
121
+ });
122
+ useEffect(() => {
123
+ setIsPending(isSubmitting);
124
+ }, [isSubmitting]);
125
+ useEffect(() => {
126
+ if (propsError === null || propsError === void 0 && !sticky) {
127
+ setError(void 0);
128
+ }
129
+ if (propsError) {
130
+ setError(propsError);
131
+ setIsPending(false);
132
+ }
133
+ }, [propsError, sticky]);
134
+ useEffect(() => {
135
+ if (!sticky || isSubmitting) {
136
+ setIsPending(isSubmitting);
137
+ }
138
+ }, [error]);
139
+ if (disableEmailLogin && disablePhoneLogin) {
140
+ return null;
141
+ }
142
+ return /* @__PURE__ */ jsxs(
143
+ "form",
144
+ {
145
+ onSubmit: (e) => __async(void 0, null, function* () {
146
+ e.preventDefault();
147
+ onSubmit();
148
+ }),
149
+ style: { width: "100%" },
150
+ children: [
151
+ /* @__PURE__ */ jsxs(
152
+ StyledInput,
153
+ {
154
+ ref: inputRef,
155
+ id: "authInput",
156
+ placeholder: isEmail || disablePhoneLogin ? "Enter email" : isPhone || disableEmailLogin ? "Enter phone" : "Enter email or phone",
157
+ onCpslInput: handleIdentifierInput,
158
+ value: identifier,
159
+ errorText: error,
160
+ autofocus: true,
161
+ inputMode: "email",
162
+ onKeyDown: (e) => __async(void 0, null, function* () {
163
+ return e.key === "Enter" && onSubmit();
164
+ }),
165
+ contrastText: true,
166
+ isPhone,
167
+ mask: identifierType === "phone" ? (_c = phoneMasks[(_b = matchedCountryCode.selectedLabel) != null ? _b : ""]) != null ? _c : defaultPhoneMask : void 0,
168
+ enterkeyhint: "go",
169
+ noAutoDisable: true,
170
+ disabled: isPending,
171
+ "data-testid": "auth-input",
172
+ children: [
173
+ /* @__PURE__ */ jsxs(IconContainer, { slot: "start", children: [
174
+ !disableEmailLogin && (isUnknown || isEmail) && /* @__PURE__ */ jsx(CpslIcon, { "aria-label": "email", icon: "mail" }),
175
+ !disablePhoneLogin && isUnknown && /* @__PURE__ */ jsx(CpslIcon, { "aria-label": "phone", icon: "phone" }),
176
+ isPhone && /* @__PURE__ */ jsxs(
177
+ CountryCodeSelect,
178
+ {
179
+ selectedValue: matchedCountryCode.selectedLabel,
180
+ onCpslSelectValueChange: handleCountryCodeInput,
181
+ showFormattedSelectedItem: true,
182
+ autoWidth: true,
183
+ dropdownMaxHeight,
184
+ anchorElId: "authInput",
185
+ $width: dropdownWidth != null ? dropdownWidth : 0,
186
+ showSearch: true,
187
+ searchPlaceholder: "Search Countries",
188
+ onCpslSearchChange: handleSearchInput,
189
+ "data-testid": "country-code-select",
190
+ children: [
191
+ matchedCountryCode && /* @__PURE__ */ jsxs(SelectedItem, { slot: "selected-item", children: [
192
+ /* @__PURE__ */ jsx(CpslText, { children: matchedCountryCode.selectedLabel }),
193
+ /* @__PURE__ */ jsx(CpslText, { children: matchedCountryCode.value })
194
+ ] }),
195
+ filteredCountryCodes.map((cc) => /* @__PURE__ */ jsxs(StyledSelectItem, { slot: "items", value: cc.selectedLabel, children: [
196
+ /* @__PURE__ */ jsx(CpslText, { children: cc.label }),
197
+ /* @__PURE__ */ jsx(CpslText, { children: cc.value })
198
+ ] }, cc.selectedLabel))
199
+ ]
200
+ }
201
+ )
202
+ ] }),
203
+ identifier && !disableSubmitButton && /* @__PURE__ */ jsx(CpslButton, { slot: "end", size: "small", fullWidth: true, disabled: isPending, onClick: onSubmit, children: isPending ? /* @__PURE__ */ jsx(CpslSpinner, { size: 16 }) : /* @__PURE__ */ jsx(CpslIcon, { icon: "arrowNarrow" }) })
204
+ ]
205
+ },
206
+ "email"
207
+ ),
208
+ Children && /* @__PURE__ */ jsx(ChildContainer, { children: /* @__PURE__ */ jsx(Children, { onSubmit, isPending, isSubmitting: isPending }) })
209
+ ]
210
+ }
211
+ );
212
+ };
213
+ const IconContainer = safeStyled.div`
214
+ height: 100%;
215
+ display: flex;
216
+ align-items: center;
217
+ gap: 8px;
218
+ padding-right: 12px;
219
+ border-right: 1px solid var(--cpsl-color-background-16);
220
+
221
+ & cpsl-icon {
222
+ --icon-color: var(--cpsl-color-contrast);
223
+ }
224
+ `;
225
+ const CountryCodeSelect = safeStyled(CpslSelect)`
226
+ --container-height: 100%;
227
+ --container-padding-start: 0px;
228
+ --container-padding-end: 0px;
229
+ --container-border-width: 0px;
230
+ --container-gap: 4px;
231
+ --container-background-color: transparent;
232
+ --container-box-shadow: none;
233
+
234
+ &::part(dropdown) {
235
+ width: ${({ $width }) => `${$width - 2}px`};
236
+ }
237
+
238
+ &::part(popover) {
239
+ @media (max-width: ${MOBILE_SIZE}px) {
240
+ top: unset !important;
241
+ bottom: 16px;
242
+ }
243
+
244
+ cpsl-auth-modal.force-mobile-media & {
245
+ top: unset !important;
246
+ bottom: 16px;
247
+ }
248
+ }
249
+ `;
250
+ const StyledSelectItem = safeStyled(CpslSelectItem)`
251
+ &::part(inner-container) {
252
+ justify-content: space-between;
253
+ }
254
+ `;
255
+ const SelectedItem = safeStyled.div`
256
+ display: flex;
257
+ gap: 4px;
258
+ align-items: center;
259
+ `;
260
+ const StyledInput = safeStyled(CpslInput)`
261
+ --container-background-color: var(--cpsl-color-background-8);
262
+ --input-background-color: var(--cpsl-color-background-8);
263
+ --container-padding-end: 8px;
264
+ width: 100%;
265
+ `;
266
+ const ChildContainer = safeStyled.div`
267
+ display: flex;
268
+ flex-direction: column;
269
+ align-items: center;
270
+ justify-content: center;
271
+ gap: 8px;
272
+ margin-top: 24px;
273
+ width: 100%;
274
+ `;
275
+ export {
276
+ AuthInput
277
+ };
@@ -0,0 +1,33 @@
1
+ "use client";
2
+ import "../../../../chunk-MMUBH76A.js";
3
+ import { useEffect, useState } from "react";
4
+ const useDropdownPosition = (inputRef) => {
5
+ const [dropdownMaxHeight, setDropdownMaxHeight] = useState();
6
+ const [dropdownWidth, setDropdownWidth] = useState();
7
+ const [mobileAnchor, setMobileAnchor] = useState();
8
+ const resize = () => {
9
+ var _a, _b, _c, _d;
10
+ if (typeof window !== "undefined") {
11
+ const newMaxHeight = Math.max(
12
+ window.innerHeight - ((_b = (_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.getBoundingClientRect().bottom) != null ? _b : 0) - 20,
13
+ window.innerHeight * 0.25
14
+ );
15
+ setDropdownMaxHeight(newMaxHeight);
16
+ setDropdownWidth((_c = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _c.getBoundingClientRect().width);
17
+ setMobileAnchor((_d = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _d.getBoundingClientRect().height);
18
+ }
19
+ };
20
+ if (inputRef.current && !dropdownMaxHeight) {
21
+ resize();
22
+ }
23
+ useEffect(() => {
24
+ typeof window !== "undefined" && window.addEventListener("resize", resize);
25
+ return () => {
26
+ typeof window !== "undefined" && window.removeEventListener("resize", resize);
27
+ };
28
+ }, []);
29
+ return { dropdownMaxHeight, dropdownWidth, mobileAnchor, resize };
30
+ };
31
+ export {
32
+ useDropdownPosition
33
+ };
@@ -0,0 +1,253 @@
1
+ "use client";
2
+ import "../../../chunk-MMUBH76A.js";
3
+ const defaultPhoneMask = "#################";
4
+ const phoneMasks = {
5
+ AF: "### ### ####",
6
+ AX: "## ### ####",
7
+ AL: "(###) ### ###",
8
+ DZ: "(###) ### ###",
9
+ AS: "(###) ###-####",
10
+ AD: "### ###",
11
+ AO: "(###) ### ###",
12
+ AI: "(###) ###-####",
13
+ AG: "(###) ###-####",
14
+ AR: "(###) ###-####",
15
+ AM: "## ### ###",
16
+ AW: "### ####",
17
+ AU: "# #### ####",
18
+ AT: "(###) ### ####",
19
+ AZ: "(###) ### ## ##",
20
+ BS: "(###) ###-####",
21
+ BH: "#### ####",
22
+ BD: "# ### ###",
23
+ BB: "(###) ###-####",
24
+ BY: "(##) ###-##-##",
25
+ BE: "(###) ### ###",
26
+ BZ: "###-####",
27
+ BJ: "##-##-####",
28
+ BM: "(###) ###-####",
29
+ BT: "# ### ###",
30
+ BO: "# ### ####",
31
+ BA: "## ###-###",
32
+ BW: "## ### ###",
33
+ BR: "(##) ####-####",
34
+ IO: "### ####",
35
+ BN: "### ####",
36
+ BG: "(###) ### ###",
37
+ BF: "## ## ####",
38
+ BI: "## ## ####",
39
+ KH: "## ### ###",
40
+ CM: "#### ####",
41
+ CA: "(###) ###-####",
42
+ CV: "(###) ## ##",
43
+ KY: "(###) ###-####",
44
+ CF: "## ## ####",
45
+ TD: "## ## ## ##",
46
+ CL: "# #### ####",
47
+ CN: "(###) #### ####",
48
+ CX: "# ## ## ##",
49
+ CC: "# ## ## ##",
50
+ CO: "(###) ### ####",
51
+ KM: "## ## ## ##",
52
+ CG: "## ### ####",
53
+ CK: "## ###",
54
+ CR: "#### ####",
55
+ HR: "## #### ###",
56
+ CU: "# ### ####",
57
+ CY: "## ### ###",
58
+ CZ: "### ### ###",
59
+ CD: "### ### ###",
60
+ DK: "## ## ## ##",
61
+ DJ: "## ## ## ##",
62
+ DM: "(###) ###-####",
63
+ DO: "(###) ###-####",
64
+ EC: "## ### ####",
65
+ EG: "# #### ####",
66
+ SV: "#### ####",
67
+ GQ: "## ### ####",
68
+ ER: "# ### ###",
69
+ EE: "#### ####",
70
+ SZ: "#### ####",
71
+ ET: "## ### ####",
72
+ FK: "#####",
73
+ FO: "######",
74
+ FJ: "### ####",
75
+ FI: "## ### ####",
76
+ FR: "## ## ## ## ##",
77
+ GF: "### ## ## ##",
78
+ PF: "## ## ##",
79
+ GA: "# ## ## ##",
80
+ GM: "### ####",
81
+ GE: "(###) ## ## ##",
82
+ DE: "###########",
83
+ GH: "## ### ####",
84
+ GI: "### #####",
85
+ GR: "(###) ### ####",
86
+ GL: "## ## ##",
87
+ GD: "(###) ###-####",
88
+ GP: "### ## ## ##",
89
+ GU: "(###) ###-####",
90
+ GT: "# ### ####",
91
+ GG: "(####) ### ###",
92
+ GN: "## ### ###",
93
+ GW: "# #######",
94
+ GY: "### ####",
95
+ HT: "## ## ####",
96
+ VA: "### ####",
97
+ HN: "####-####",
98
+ HK: "#### ####",
99
+ HU: "(##) ### ####",
100
+ IS: "### ####",
101
+ IN: "####### ###",
102
+ ID: "(###) ###-####",
103
+ IR: "(###) ### ####",
104
+ IQ: "(###) ### ####",
105
+ IE: "(###) ### ###",
106
+ IM: "(####) ### ###",
107
+ IL: "#-###-####",
108
+ IT: "(###) #### ###",
109
+ CI: "## ## ## ##",
110
+ JM: "(###) ###-####",
111
+ JP: "(###) ###-####",
112
+ JE: "(####) ### ###",
113
+ JO: "# #### ####",
114
+ KZ: "(###) ###-##-##",
115
+ KE: "### ######",
116
+ KI: "## ###",
117
+ KP: "###-###-####",
118
+ KR: "(###) ####-####",
119
+ XK: "## ### ###",
120
+ KW: "#### ####",
121
+ KG: "(###) ###-###",
122
+ LA: "## ## ####",
123
+ LV: "## ### ###",
124
+ LB: "## ### ###",
125
+ LS: "# ### ####",
126
+ LR: "## ### ###",
127
+ LY: "##-#######",
128
+ LI: "(###) ###-####",
129
+ LT: "(###) ## ###",
130
+ LU: "### ### ###",
131
+ MO: "#### ####",
132
+ MG: "## ## ### ##",
133
+ MW: "# #### ####",
134
+ MY: "(###) ###-###",
135
+ MV: "###-####",
136
+ ML: "## ## ####",
137
+ MT: "#### ####",
138
+ MH: "###-####",
139
+ MQ: "### ## ## ##",
140
+ MR: "## ## ####",
141
+ MU: "### ####",
142
+ YT: "### ## ## ##",
143
+ MX: "(###) ###-####",
144
+ FM: "### ####",
145
+ MD: "#### ####",
146
+ MC: "(###) ###-###",
147
+ MN: "## ## ####",
148
+ ME: "## ### ###",
149
+ MS: "(###) ###-####",
150
+ MA: "#-####-####",
151
+ MZ: "## ### ####",
152
+ MM: "# ### ####",
153
+ NA: "## ### ####",
154
+ NR: "### ####",
155
+ NP: "#-######",
156
+ NL: "## ### ####",
157
+ NC: "##.##.##",
158
+ NZ: "## ### ###",
159
+ NI: "#### ####",
160
+ NE: "## ## ## ##",
161
+ NG: "## #### ####",
162
+ NU: "####",
163
+ NF: "### ###",
164
+ MK: "## ### ###",
165
+ MP: "(###) ###-####",
166
+ NO: "### ## ###",
167
+ OM: "#### ####",
168
+ PK: "(###) #######",
169
+ PW: "### ####",
170
+ PS: "## ### ####",
171
+ PA: "####-####",
172
+ PG: "(###) ## ###",
173
+ PY: "## ### ####",
174
+ PE: "(###) ### ###",
175
+ PH: "(###) ###-####",
176
+ PN: "### ####",
177
+ PL: "### ### ###",
178
+ PT: "## ### ####",
179
+ PR: "(###) ###-####",
180
+ QA: "#### ####",
181
+ RE: "##### ####",
182
+ RO: "## ### ####",
183
+ RU: "(###) ###-##-##",
184
+ RW: "(###) ### ###",
185
+ BL: "### ## ## ##",
186
+ SH: "####",
187
+ KN: "(###) ###-####",
188
+ LC: "(###) ###-####",
189
+ MF: "### ## ## ##",
190
+ PM: "## ## ##",
191
+ VC: "(###) ###-####",
192
+ WS: "####",
193
+ SM: "(####) ######",
194
+ ST: "## ####",
195
+ SA: "# ### ####",
196
+ SN: "## ### ####",
197
+ RS: "## ### ####",
198
+ SC: "# ### ###",
199
+ SL: "## ######",
200
+ SG: "#### ####",
201
+ SX: "(###) ###-####",
202
+ SK: "(###) ### ###",
203
+ SI: "## ### ###",
204
+ SB: "### ####",
205
+ SO: "# ### ###",
206
+ ZA: "## ### ####",
207
+ GS: "####",
208
+ SS: "# ### ####",
209
+ ES: "### ### ###",
210
+ LK: "## ### ####",
211
+ SD: "## ### ####",
212
+ SR: "###-####",
213
+ SJ: "### ## ###",
214
+ SE: "## ### ####",
215
+ CH: "## ### ####",
216
+ SY: "## #### ###",
217
+ TW: "#### ####",
218
+ TJ: "## ### ####",
219
+ TZ: "## ### ####",
220
+ TH: "# #### ####",
221
+ TL: "#### ####",
222
+ TG: "## ## ## ##",
223
+ TK: "####",
224
+ TO: "####",
225
+ TT: "(###) ###-####",
226
+ TN: "## ### ###",
227
+ TR: "(###) ### ####",
228
+ TM: "# ### ###",
229
+ TC: "(###) ###-####",
230
+ TV: "####",
231
+ UG: "## ### ####",
232
+ UA: "## ### ####",
233
+ AE: "# ### ####",
234
+ GB: "#### ### ###",
235
+ US: "(###) ###-####",
236
+ UM: "(###) ###-####",
237
+ UY: "# ### ## ##",
238
+ UZ: "## ### ####",
239
+ VU: "## ####",
240
+ VE: "###-###-####",
241
+ VN: "## #### ###",
242
+ VG: "(###) ###-####",
243
+ VI: "(###) ###-####",
244
+ WF: "## ####",
245
+ EH: "###-###-###",
246
+ YE: "# ### ###",
247
+ ZM: "## ### ####",
248
+ ZW: "# #######"
249
+ };
250
+ export {
251
+ defaultPhoneMask,
252
+ phoneMasks
253
+ };
@@ -1,8 +1,9 @@
1
- import { OAuthMethod } from '@getpara/web-sdk';
1
+ import { TOAuthMethod } from '@getpara/web-sdk';
2
2
  interface AuthMainStepProps {
3
- oAuthMethods?: OAuthMethod[];
3
+ oAuthMethods?: TOAuthMethod[];
4
4
  disableEmailLogin: boolean;
5
5
  disablePhoneLogin: boolean;
6
+ isGuestModeEnabled?: boolean;
6
7
  }
7
- export declare const AuthMainStep: ({ oAuthMethods, disableEmailLogin, disablePhoneLogin }: AuthMainStepProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const AuthMainStep: ({ oAuthMethods, disableEmailLogin, disablePhoneLogin, isGuestModeEnabled, }: AuthMainStepProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export {};