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

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 (197) hide show
  1. package/dist/cosmos/actions/getCosmjsAminoSigner.d.ts +8 -0
  2. package/dist/cosmos/actions/getCosmjsAminoSigner.js +16 -0
  3. package/dist/cosmos/actions/getCosmjsProtoSigner.d.ts +8 -0
  4. package/dist/cosmos/actions/getCosmjsProtoSigner.js +16 -0
  5. package/dist/cosmos/actions/index.d.ts +2 -0
  6. package/dist/cosmos/actions/index.js +3 -0
  7. package/dist/cosmos/hooks/index.d.ts +2 -0
  8. package/dist/cosmos/hooks/index.js +3 -0
  9. package/dist/cosmos/hooks/useCosmjsAminoSigner.d.ts +11 -0
  10. package/dist/cosmos/hooks/useCosmjsAminoSigner.js +37 -0
  11. package/dist/cosmos/hooks/useCosmjsProtoSigner.d.ts +11 -0
  12. package/dist/cosmos/hooks/useCosmjsProtoSigner.js +37 -0
  13. package/dist/cosmos/index.d.ts +2 -0
  14. package/dist/cosmos/index.js +3 -0
  15. package/dist/evm/actions/getViemAccount.d.ts +22 -0
  16. package/dist/evm/actions/getViemAccount.js +20 -0
  17. package/dist/evm/actions/getViemClient.d.ts +7659 -0
  18. package/dist/evm/actions/getViemClient.js +25 -0
  19. package/dist/evm/actions/index.d.ts +2 -0
  20. package/dist/evm/actions/index.js +3 -0
  21. package/dist/evm/hooks/index.d.ts +2 -0
  22. package/dist/evm/hooks/index.js +3 -0
  23. package/dist/evm/hooks/useViemAccount.d.ts +26 -0
  24. package/dist/evm/hooks/useViemAccount.js +32 -0
  25. package/dist/evm/hooks/useViemClient.d.ts +7663 -0
  26. package/dist/evm/hooks/useViemClient.js +30 -0
  27. package/dist/evm/index.d.ts +2 -0
  28. package/dist/evm/index.js +3 -0
  29. package/dist/index.d.ts +3 -6
  30. package/dist/index.js +6 -7058
  31. package/dist/package.json +6 -0
  32. package/dist/provider/ParaProvider.d.ts +1 -2
  33. package/dist/provider/ParaProvider.js +24 -0
  34. package/dist/solana/actions/getSolanaSigner.d.ts +8 -0
  35. package/dist/solana/actions/getSolanaSigner.js +15 -0
  36. package/dist/solana/actions/index.d.ts +1 -0
  37. package/dist/solana/actions/index.js +2 -0
  38. package/dist/solana/hooks/index.d.ts +1 -0
  39. package/dist/solana/hooks/index.js +2 -0
  40. package/dist/solana/hooks/useSolanaSigner.d.ts +12 -0
  41. package/dist/solana/hooks/useSolanaSigner.js +32 -0
  42. package/dist/solana/index.d.ts +2 -0
  43. package/dist/solana/index.js +3 -0
  44. package/package.json +37 -46
  45. package/styles.css/package.json +1 -1
  46. package/dist/MoonPayEmbed-Q2HP2BFI.js +0 -9
  47. package/dist/MoonPayEmbed-Q2HP2BFI.js.br +0 -0
  48. package/dist/MoonPayEmbed-Q2HP2BFI.js.gz +0 -0
  49. package/dist/chunk-MMUBH76A.js.br +0 -0
  50. package/dist/chunk-MMUBH76A.js.gz +0 -0
  51. package/dist/cli/cli.mjs +0 -35
  52. package/dist/index.js.br +0 -0
  53. package/dist/index.js.gz +0 -0
  54. package/dist/modal/ParaModal.d.ts +0 -2
  55. package/dist/modal/components/Account/Account.d.ts +0 -5
  56. package/dist/modal/components/AddFunds/AddFunds.d.ts +0 -3
  57. package/dist/modal/components/AddFunds/AddFundsAwaiting.d.ts +0 -1
  58. package/dist/modal/components/AddFunds/AddFundsDone.d.ts +0 -6
  59. package/dist/modal/components/AddFunds/MoonPayEmbed.d.ts +0 -2
  60. package/dist/modal/components/AddFunds/index.d.ts +0 -3
  61. package/dist/modal/components/AuthInput/AuthInput.d.ts +0 -6
  62. package/dist/modal/components/AuthInput/countryCodes.d.ts +0 -8
  63. package/dist/modal/components/AuthInput/hooks/useDropdownPosition.d.ts +0 -7
  64. package/dist/modal/components/AuthInput/phoneMasks.d.ts +0 -247
  65. package/dist/modal/components/AuthMainStep/AuthMainStep.d.ts +0 -8
  66. package/dist/modal/components/AuthMainStep/AuthMainStepContent.d.ts +0 -8
  67. package/dist/modal/components/AuthOptions/AuthOptions.d.ts +0 -8
  68. package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.d.ts +0 -1
  69. package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.d.ts +0 -1
  70. package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.d.ts +0 -1
  71. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.d.ts +0 -1
  72. package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.d.ts +0 -1
  73. package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.d.ts +0 -1
  74. package/dist/modal/components/Body/AnimatedHeightWrapper.d.ts +0 -6
  75. package/dist/modal/components/Body/Body.d.ts +0 -10
  76. package/dist/modal/components/ChainSwitch/ChainSwitch.d.ts +0 -1
  77. package/dist/modal/components/ChainSwitch/config.d.ts +0 -7
  78. package/dist/modal/components/Controls/Controls.d.ts +0 -5
  79. package/dist/modal/components/Controls/Selects.d.ts +0 -2
  80. package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.d.ts +0 -1
  81. package/dist/modal/components/ExternalWalletStep/config.d.ts +0 -7
  82. package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.d.ts +0 -1
  83. package/dist/modal/components/ExternalWallets/ExternalWallets.d.ts +0 -1
  84. package/dist/modal/components/Footer/Footer.d.ts +0 -1
  85. package/dist/modal/components/Header/Header.d.ts +0 -1
  86. package/dist/modal/components/Header/hooks/useStepTitle.d.ts +0 -3
  87. package/dist/modal/components/Hero/Hero.d.ts +0 -1
  88. package/dist/modal/components/IFrameStep/IFrameStep.d.ts +0 -1
  89. package/dist/modal/components/LoginDoneStep/LoginDoneStep.d.ts +0 -1
  90. package/dist/modal/components/ModalContent/ModalContent.d.ts +0 -14
  91. package/dist/modal/components/OAuth/FarcasterOAuthStep.d.ts +0 -2
  92. package/dist/modal/components/OAuth/OAuth.d.ts +0 -6
  93. package/dist/modal/components/OAuth/TelegramOAuthStep.d.ts +0 -1
  94. package/dist/modal/components/OnRampComponents/AddingFunds.d.ts +0 -1
  95. package/dist/modal/components/OnRampComponents/OnRampProviderButton.d.ts +0 -9
  96. package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.d.ts +0 -6
  97. package/dist/modal/components/Setup2FAStep/Setup2FAStep.d.ts +0 -5
  98. package/dist/modal/components/StripeComponents/StripeComponents.d.ts +0 -16
  99. package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.d.ts +0 -5
  100. package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.d.ts +0 -1
  101. package/dist/modal/components/Waiting/Waiting.d.ts +0 -6
  102. package/dist/modal/components/WalletCard/PartnerIcon.d.ts +0 -6
  103. package/dist/modal/components/WalletCard/WalletCard.d.ts +0 -18
  104. package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.d.ts +0 -6
  105. package/dist/modal/components/common.d.ts +0 -23
  106. package/dist/modal/components/index.d.ts +0 -1
  107. package/dist/modal/constants/constants.d.ts +0 -32
  108. package/dist/modal/constants/defaults.d.ts +0 -5
  109. package/dist/modal/constants/oAuthLogos.d.ts +0 -8
  110. package/dist/modal/hooks/useCreateAccount.d.ts +0 -4
  111. package/dist/modal/hooks/useGoBack.d.ts +0 -1
  112. package/dist/modal/index.d.ts +0 -8
  113. package/dist/modal/stores/index.d.ts +0 -2
  114. package/dist/modal/stores/modal/actions.d.ts +0 -3
  115. package/dist/modal/stores/modal/useModalStore.d.ts +0 -102
  116. package/dist/modal/stores/userInfo/actions.d.ts +0 -3
  117. package/dist/modal/stores/userInfo/useUserInfoStore.d.ts +0 -19
  118. package/dist/modal/types/commonTypes.d.ts +0 -6
  119. package/dist/modal/types/modalProps.d.ts +0 -116
  120. package/dist/modal/utils/authLayoutHelpers.d.ts +0 -3
  121. package/dist/modal/utils/getMailtoLink.d.ts +0 -1
  122. package/dist/modal/utils/getTileButtonFlex.d.ts +0 -1
  123. package/dist/modal/utils/isPasskeySupported.d.ts +0 -1
  124. package/dist/modal/utils/openPopup.d.ts +0 -6
  125. package/dist/modal/utils/routeMobileExternalWallet.d.ts +0 -1
  126. package/dist/modal/utils/steps.d.ts +0 -114
  127. package/dist/modal/utils/stringFormatters.d.ts +0 -4
  128. package/dist/modal/utils/validateOnRampConfig.d.ts +0 -5
  129. package/dist/provider/actions/checkIfUserExists.d.ts +0 -4
  130. package/dist/provider/actions/createUser.d.ts +0 -4
  131. package/dist/provider/actions/getAccount.d.ts +0 -10
  132. package/dist/provider/actions/getWallet.d.ts +0 -5
  133. package/dist/provider/actions/index.d.ts +0 -25
  134. package/dist/provider/actions/initiateLogin.d.ts +0 -4
  135. package/dist/provider/actions/keepSessionAlive.d.ts +0 -2
  136. package/dist/provider/actions/logout.d.ts +0 -5
  137. package/dist/provider/actions/signMessage.d.ts +0 -8
  138. package/dist/provider/actions/signTransaction.d.ts +0 -8
  139. package/dist/provider/actions/utils.d.ts +0 -3
  140. package/dist/provider/actions/waitForAccountCreation.d.ts +0 -5
  141. package/dist/provider/actions/waitForLoginAndSetup.d.ts +0 -6
  142. package/dist/provider/actions/waitForPasskeyAndCreateWallet.d.ts +0 -2
  143. package/dist/provider/components/CosmosWalletWrapper.d.ts +0 -11
  144. package/dist/provider/components/EvmWalletWrapper.d.ts +0 -12
  145. package/dist/provider/components/ExternalWalletWrapper.d.ts +0 -8
  146. package/dist/provider/components/SolanaWalletWrapper.d.ts +0 -9
  147. package/dist/provider/external/getParaCosmosConnector.d.ts +0 -7
  148. package/dist/provider/external/getParaEvmConnector.d.ts +0 -7
  149. package/dist/provider/external/getParaSolanaConnector.d.ts +0 -7
  150. package/dist/provider/external/stubs/CosmosExternalWalletContextStub.d.ts +0 -12
  151. package/dist/provider/external/stubs/EvmExternalWalletContextStub.d.ts +0 -3
  152. package/dist/provider/external/stubs/SolanaExternalWalletContextStub.d.ts +0 -8
  153. package/dist/provider/hooks/index.d.ts +0 -3
  154. package/dist/provider/hooks/mutations/index.d.ts +0 -34
  155. package/dist/provider/hooks/mutations/useCheckIfUserExists.d.ts +0 -13
  156. package/dist/provider/hooks/mutations/useCreateUser.d.ts +0 -13
  157. package/dist/provider/hooks/mutations/useInitiateLogin.d.ts +0 -14
  158. package/dist/provider/hooks/mutations/useKeepSessionAlive.d.ts +0 -12
  159. package/dist/provider/hooks/mutations/useLogout.d.ts +0 -13
  160. package/dist/provider/hooks/mutations/useSignMessage.d.ts +0 -15
  161. package/dist/provider/hooks/mutations/useSignTransaction.d.ts +0 -15
  162. package/dist/provider/hooks/mutations/useWaitForAccountCreation.d.ts +0 -13
  163. package/dist/provider/hooks/mutations/useWaitForLoginAndSetup.d.ts +0 -14
  164. package/dist/provider/hooks/mutations/useWaitForPasskeyAndCreateWallet.d.ts +0 -13
  165. package/dist/provider/hooks/mutations/utils.d.ts +0 -4
  166. package/dist/provider/hooks/queries/index.d.ts +0 -2
  167. package/dist/provider/hooks/queries/useAccount.d.ts +0 -11
  168. package/dist/provider/hooks/queries/useWallet.d.ts +0 -5
  169. package/dist/provider/hooks/utils/index.d.ts +0 -3
  170. package/dist/provider/hooks/utils/useAutoSessionKeepAlive.d.ts +0 -3
  171. package/dist/provider/hooks/utils/useClient.d.ts +0 -5
  172. package/dist/provider/hooks/utils/useEventListeners.d.ts +0 -2
  173. package/dist/provider/hooks/utils/useInternalClient.d.ts +0 -5
  174. package/dist/provider/hooks/utils/useModal.d.ts +0 -8
  175. package/dist/provider/hooks/utils/useWalletState.d.ts +0 -15
  176. package/dist/provider/index.d.ts +0 -4
  177. package/dist/provider/providers/AuthProvider.d.ts +0 -31
  178. package/dist/provider/providers/CosmosExternalWalletProvider.d.ts +0 -7
  179. package/dist/provider/providers/EvmExternalWalletProvider.d.ts +0 -7
  180. package/dist/provider/providers/ExternalWalletProvider.d.ts +0 -79
  181. package/dist/provider/providers/SolanaExternalWalletProvider.d.ts +0 -7
  182. package/dist/provider/stores/getters.d.ts +0 -4
  183. package/dist/provider/stores/setters.d.ts +0 -1
  184. package/dist/provider/stores/slices/client.d.ts +0 -3
  185. package/dist/provider/stores/slices/config.d.ts +0 -3
  186. package/dist/provider/stores/slices/externalWallets.d.ts +0 -3
  187. package/dist/provider/stores/slices/index.d.ts +0 -4
  188. package/dist/provider/stores/slices/modal.d.ts +0 -3
  189. package/dist/provider/stores/slices/wallet.d.ts +0 -3
  190. package/dist/provider/stores/types.d.ts +0 -62
  191. package/dist/provider/stores/useStore.d.ts +0 -17
  192. package/dist/provider/types/externalWalletProviders.d.ts +0 -12
  193. package/dist/provider/types/provider.d.ts +0 -142
  194. package/dist/provider/types/query.d.ts +0 -3
  195. package/dist/provider/types/utils.d.ts +0 -22
  196. package/dist/provider/utils/paraConfigTypeGuards.d.ts +0 -7
  197. package/dist/provider/utils/renameMutations.d.ts +0 -5
@@ -1 +0,0 @@
1
- export declare const BiometricLoginStep: () => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- interface AnimatedHeightWrapperProps extends PropsWithChildren {
3
- className?: string;
4
- }
5
- export declare const AnimatedHeightWrapper: React.FC<AnimatedHeightWrapperProps>;
6
- export {};
@@ -1,10 +0,0 @@
1
- import { OAuthMethod } from '@getpara/web-sdk';
2
- interface BodyProps {
3
- oAuthMethods?: OAuthMethod[];
4
- twoFactorAuthEnabled?: boolean;
5
- disableEmailLogin: boolean;
6
- disablePhoneLogin: boolean;
7
- onClose: () => void;
8
- }
9
- export declare const Body: ({ oAuthMethods, twoFactorAuthEnabled, disableEmailLogin, disablePhoneLogin, onClose }: BodyProps) => import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1 +0,0 @@
1
- export declare const ChainSwitch: () => import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +0,0 @@
1
- import { Tab } from '../../types/commonTypes.js';
2
- export declare enum TabValue {
3
- extension = "extension",
4
- mobile = "mobile",
5
- web = "web"
6
- }
7
- export declare const TABS: Record<'extension' | 'mobile' | 'web', Tab<TabValue>>;
@@ -1,5 +0,0 @@
1
- interface ControlsProps {
2
- onClose: () => void;
3
- }
4
- export declare const Controls: ({ onClose }: ControlsProps) => import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,2 +0,0 @@
1
- export declare const ChainSelect: () => import("react/jsx-runtime").JSX.Element | null;
2
- export declare const AccountSelect: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const ExternalWalletStep: () => import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +0,0 @@
1
- import { Tab } from '../../types/commonTypes.js';
2
- export declare enum TabValue {
3
- extension = "extension",
4
- mobile = "mobile",
5
- web = "web"
6
- }
7
- export declare const TABS: Record<'extension' | 'mobile' | 'web', Tab<TabValue>>;
@@ -1 +0,0 @@
1
- export declare const ExternalWalletVerificationStep: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const ExternalWallets: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const Footer: () => import("react/jsx-runtime").JSX.Element | null;
@@ -1 +0,0 @@
1
- export declare const Header: () => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare const useStepTitle: () => {
2
- title: any;
3
- };
@@ -1 +0,0 @@
1
- export declare const Hero: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const IFrameStep: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const LoginDoneStep: ({ onClose }: LoginDoneStep) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +0,0 @@
1
- import { ParaModalProps } from '../../types/modalProps.js';
2
- import { useCreateAccount } from '../../hooks/useCreateAccount.js';
3
- type ModalContentProps = Omit<ParaModalProps, 'para' | 'isOpen' | 'theme' | 'branding' | 'onModalStepChange' | 'onExpandModalChange'>;
4
- export declare const ActionsContext: import("react").Context<{
5
- createAccount: ReturnType<typeof useCreateAccount>;
6
- }>;
7
- export type ModalContentHandle = {
8
- /**
9
- * Trigger the modal close handler
10
- */
11
- handleModalClose: () => void;
12
- };
13
- export declare const ModalContent: import("react").ForwardRefExoticComponent<ModalContentProps & import("react").RefAttributes<ModalContentHandle>>;
14
- export {};
@@ -1,2 +0,0 @@
1
- declare const FarcasterOAuthStep: () => import("react/jsx-runtime").JSX.Element;
2
- export default FarcasterOAuthStep;
@@ -1,6 +0,0 @@
1
- import { OAuthMethod } from '@getpara/web-sdk';
2
- interface OAuthProps {
3
- methods: OAuthMethod[];
4
- }
5
- export declare const OAuth: ({ methods }: OAuthProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1 +0,0 @@
1
- export declare function TelegramOAuthStep(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const AddingFunds: () => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { OnRampConfig } from '@getpara/web-sdk';
2
- interface OnRampButtonProps {
3
- config: OnRampConfig;
4
- index: number;
5
- isLoading?: boolean;
6
- onClick: () => Promise<void>;
7
- }
8
- export declare const OnRampProviderButton: ({ config, index, onClick: _onClick }: OnRampButtonProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,6 +0,0 @@
1
- export declare const SaveRecoverySecret: ({ email, value, onComplete, }: {
2
- email?: string;
3
- value: string;
4
- onComplete: () => void;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- export declare const RecoverySecretStep: () => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- interface Setup2FAStepProps {
2
- onClose: () => void;
3
- }
4
- export declare const Setup2FAStep: ({ onClose }: Setup2FAStepProps) => import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,16 +0,0 @@
1
- import { OnrampSessionResult } from '@stripe/crypto';
2
- export declare const STRIPE_PUBLISHABLE_KEY = "pk_live_51MvquNGrzDeP5yP9EgVSMBPQbrbg0oHDjPIIXypePd0jzOFjbadyfO7wBKLHhUtbKIUiEUVC3YYcTJyAmJ8xA7JE00T2UDfYKz";
3
- export declare const STRIPE_PUBLISHABLE_KEY_TEST = "pk_test_51MvquNGrzDeP5yP98WgPaAUgQ50I3OpfPhVfiLO47FBHepJnZRPO62IzZY2uxT5ovhSS10RwcTcnaVil1mcJOzIi00dHapODdS";
4
- export declare const CryptoElements: ({ stripeOnramp, children }: {
5
- stripeOnramp: any;
6
- children: any;
7
- }) => import("react/jsx-runtime").JSX.Element;
8
- export declare const useStripeOnramp: () => any;
9
- export declare const OnrampElement: ({ clientSecret, appearance, onReady, onSessionChange, ...props }: {
10
- clientSecret: string;
11
- appearance: "dark" | "light";
12
- onReady?: () => void;
13
- onSessionChange: (_: {
14
- session: OnrampSessionResult;
15
- }) => void;
16
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- interface TwoFactorDoneStepStep {
2
- onClose: () => void;
3
- }
4
- export declare const TwoFactorDoneStep: ({ onClose }: TwoFactorDoneStepStep) => import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1 +0,0 @@
1
- export declare const VerificationCodeStep: () => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- interface WaitingProps {
2
- heading: string;
3
- subheading: string;
4
- }
5
- export declare const Waiting: ({ heading, subheading }: WaitingProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,6 +0,0 @@
1
- import { PartnerEntity } from '@getpara/user-management-client';
2
- interface PartnerIconProps {
3
- partner: PartnerEntity;
4
- }
5
- export declare const PartnerIcon: ({ partner }: PartnerIconProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,18 +0,0 @@
1
- import { WalletType } from '@getpara/web-sdk';
2
- export declare const ExternalWalletCard: ({ address, showAddFunds }: Pick<SharedWalletCardProps, "address" | "showAddFunds">) => import("react/jsx-runtime").JSX.Element | null;
3
- interface WalletCardProps {
4
- id: string;
5
- type: WalletType;
6
- showAddFunds?: boolean;
7
- }
8
- export declare const WalletCard: ({ id, type, showAddFunds }: WalletCardProps) => import("react/jsx-runtime").JSX.Element | null;
9
- interface SharedWalletCardProps {
10
- address: string;
11
- id?: string;
12
- type?: WalletType;
13
- name?: string;
14
- identiconHash: string;
15
- showAddFunds?: boolean;
16
- }
17
- export declare const WalletCards: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
18
- export {};
@@ -1,6 +0,0 @@
1
- interface WalletCreationDoneStepProps {
2
- twoFactorAuthEnabled?: boolean;
3
- onClose: () => void;
4
- }
5
- export declare const WalletCreationDoneStep: ({ twoFactorAuthEnabled, onClose }: WalletCreationDoneStepProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,23 +0,0 @@
1
- import { CpslInput, CpslText, CpslTileButton } from '@getpara/react-components';
2
- export declare const SpinnerContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
- export declare const QRContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
- export declare const InfoBoxContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
- export declare const InfoBoxHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
- export declare const FilledDisabledInput: typeof CpslInput;
7
- export declare const FullWidthFilledDisabledInput: typeof CpslInput;
8
- export declare const CenteredText: typeof CpslText;
9
- export declare const InnerStepContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
- export declare const StepContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
11
- ref?: ((instance: HTMLDivElement | null) => 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<HTMLDivElement> | null | undefined;
12
- }, {
13
- $wide?: boolean;
14
- }>> & string;
15
- export declare const Heading: typeof CpslText;
16
- export declare const StyledCpslTileButton: typeof CpslTileButton;
17
- export declare const HeroIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@getpara/core-components").JSX.CpslIcon & Omit<import("react").HTMLAttributes<HTMLCpslIconElement>, "style"> & import("@getpara/react-components/dist/types/components/stencil-generated/react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCpslIconElement>, "ref"> & {
18
- ref?: ((instance: HTMLCpslIconElement | null) => 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<HTMLCpslIconElement> | null | undefined;
19
- }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("@getpara/core-components").JSX.CpslIcon & Omit<import("react").HTMLAttributes<HTMLCpslIconElement>, "style"> & import("@getpara/react-components/dist/types/components/stencil-generated/react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCpslIconElement>>, keyof import("react").Component<any, {}, any>>;
20
- export declare const ErrorContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
21
- export declare const ErrorIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@getpara/core-components").JSX.CpslIcon & Omit<import("react").HTMLAttributes<HTMLCpslIconElement>, "style"> & import("@getpara/react-components/dist/types/components/stencil-generated/react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCpslIconElement>, "ref"> & {
22
- ref?: ((instance: HTMLCpslIconElement | null) => 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<HTMLCpslIconElement> | null | undefined;
23
- }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("@getpara/core-components").JSX.CpslIcon & Omit<import("react").HTMLAttributes<HTMLCpslIconElement>, "style"> & import("@getpara/react-components/dist/types/components/stencil-generated/react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCpslIconElement>>, keyof import("react").Component<any, {}, any>>;
@@ -1 +0,0 @@
1
- export * from './ModalContent/ModalContent.js';
@@ -1,32 +0,0 @@
1
- import { Network, OnRampAsset, OnRampMethod, OnRampProvider } from '@getpara/core-sdk';
2
- import { IconType } from '@getpara/react-components';
3
- import { Transition, Variants } from 'framer-motion';
4
- export declare const PARA_CONNECT = "https://connect.getpara.com/";
5
- export declare const PARA_TERMS_AND_CONDITIONS = "https://getpara.com/terms";
6
- export interface OnRampProviderConfig {
7
- name: string;
8
- feeLower: number;
9
- feeUpper?: number;
10
- methods: OnRampMethod[];
11
- icon: IconType;
12
- backgroundColors: string[];
13
- }
14
- export declare const ON_RAMP_PROVIDERS: Record<OnRampProvider, OnRampProviderConfig>;
15
- export declare const NETWORKS: Record<Network, {
16
- name: string;
17
- icon: IconType;
18
- }>;
19
- export declare const ON_RAMP_ASSETS: Record<OnRampAsset, {
20
- name: string;
21
- code: string;
22
- icon: IconType;
23
- }>;
24
- export declare function getNetworkName(str: Network | string): string;
25
- export declare function getNetworkIcon(str: Network | string): IconType;
26
- export declare function getAssetName(str: OnRampAsset | string): string;
27
- export declare function getAssetIcon(str: OnRampAsset | string): "phone" | "farcaster" | "telegram" | "discord" | "x" | "code" | "menu" | "image" | "polygon" | "key" | "search" | "download" | "send" | "alertCircle" | "alertTriangle" | "alignVerticalCenter" | "angelListBrand" | "angelList" | "appleBrand" | "apple" | "arbitrumBrand" | "arrowCircleBrokenDownLeft" | "arrowCircleDownFilled" | "arrowNarrow" | "arrow" | "asterisk" | "backupKit" | "bank" | "baseBrand" | "brush" | "celoBrand" | "checkCircleFilled" | "checkCircle" | "checkSquare" | "check" | "chevronDown" | "chevronRight" | "chevronSelectorVertical" | "chevronUp" | "clock" | "close" | "clubhouseBrand" | "clubhouse" | "copy07" | "copy" | "cosmos" | "creditCard02" | "creditCard" | "cube03" | "cubeOutline" | "cube" | "currencyDollar" | "decentBrand" | "decent" | "dell" | "discordBrand" | "dot" | "dots" | "downloadCloud" | "dribbbleBrand" | "dribbble" | "earth" | "edit02" | "emptyCircle" | "ethereum" | "eyeOff" | "eye" | "facebookBrand" | "facebook" | "farcasterBrand" | "figmaBrand" | "figma" | "file" | "folder" | "githubBrand" | "github" | "globe" | "googleBrand" | "google" | "gridDots" | "helpCircle" | "heroAlertCircle" | "heroCheckmarkCapsule" | "heroCheckmark" | "heroEmail" | "heroExternalConnection" | "heroLock" | "heroPasskey" | "heroPhone" | "heroPlusCircleCapsule" | "heroPlusCircle" | "heroWallet" | "home" | "hp" | "infoCircle" | "instagramBrand" | "instagram" | "laptop" | "lenovo" | "lg" | "lightning01" | "lightning" | "linkExternal" | "linkedinBrand" | "linkedin" | "lockKeyholeCircle" | "logOut" | "mail" | "monitor" | "moonpayBrand" | "moreLoginOptions" | "motorola" | "nobleBrand" | "optimismBrand" | "paraBlackBg" | "paraBrand" | "paraIconBrand" | "paraIconQr" | "paraIcon" | "paraLogo" | "paraRingsDark" | "paraRings" | "para" | "passcode" | "pintrestBrand" | "pintrest" | "plusCircle" | "plus" | "polygonBrand" | "puzzlePiece" | "qrCode02" | "qrCode" | "rampNetworkBrand" | "rampNetwork" | "redditBrand" | "reddit" | "refresh" | "samsung" | "settings" | "share" | "shield" | "signalBrand" | "signal" | "sliders" | "snapchatBrand" | "snapchat" | "solana" | "spacingHeight" | "star04Filled" | "stars01Filled" | "stars" | "stopSquare" | "stripeBrand" | "telegramBrand" | "tetherBrand" | "tikTokBrand" | "tikTok" | "trash" | "tumblrBrand" | "tumblr" | "twitterBrand" | "twitter" | "usdcBrand" | "userCircle" | "user" | "wallet" | "youtubeBrand" | "youtube" | "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";
28
- export declare const MOBILE_SIZE = 480;
29
- export declare const NETWORK_NOT_SUPPORTED_ERROR = "network not supported";
30
- export declare const EMAIL_REGEX: RegExp;
31
- export declare const BODY_MOTION_VARIANTS: Variants;
32
- export declare const BODY_TRANSITION: Transition;
@@ -1,5 +0,0 @@
1
- export declare const DEFAULTS: {
2
- LOGGIN_POLLING_DELAY_MS: number;
3
- POLLING_INTERVAL_MS: number;
4
- ANIMATION_DURATION: number;
5
- };
@@ -1,8 +0,0 @@
1
- import { IconType } from '@getpara/react-components';
2
- import { OAuthMethod } from '@getpara/web-sdk';
3
- export declare const brandedOAuthLogos: {
4
- [key in OAuthMethod]: IconType;
5
- };
6
- export declare const oAuthLogos: {
7
- [key in OAuthMethod]: IconType;
8
- };
@@ -1,4 +0,0 @@
1
- export declare function useCreateAccount(): {
2
- withPasskey: () => void;
3
- withPassword: () => void;
4
- };
@@ -1 +0,0 @@
1
- export declare const useGoBack: () => () => void;
@@ -1,8 +0,0 @@
1
- export * from './ParaModal.js';
2
- export type { ParaModalProps, ParaModalHandle, ParaModalTheme } from './types/modalProps.js';
3
- export { ModalStep, type ModalStepProp } from './utils/steps.js';
4
- export { AuthLayout } from './types/modalProps.js';
5
- export * from './utils/openPopup.js';
6
- export { ON_RAMP_PROVIDERS, ON_RAMP_ASSETS, NETWORKS, getAssetIcon, getAssetName, getNetworkIcon, getNetworkName, } from './constants/constants.js';
7
- export { SaveRecoverySecret } from './components/RecoverySecretStep/RecoverySecretStep.js';
8
- export * from './utils/validateOnRampConfig.js';
@@ -1,2 +0,0 @@
1
- export * from './modal/useModalStore.js';
2
- export * from './userInfo/useUserInfoStore.js';
@@ -1,3 +0,0 @@
1
- import { StoreApi } from 'zustand';
2
- import { ModalActions, ModalStore } from './useModalStore.js';
3
- export declare const getActions: (set: StoreApi<ModalStore>["setState"], get: StoreApi<ModalStore>["getState"]) => ModalActions;
@@ -1,102 +0,0 @@
1
- import { ModalStep } from '../../utils/steps.js';
2
- import { OnRampConfig as OnRampConfigBase, OnRampPurchase, WalletType } from '@getpara/web-sdk';
3
- import { Tab as AddFundsTabType } from '../../components/AddFunds/AddFunds.js';
4
- import { AuthStateLogin, AuthStateSignup, AuthMethod, AuthState, AuthStateVerify } from '@getpara/core-sdk';
5
- import { TAuthLayout } from '../../types/modalProps.js';
6
- import { MutableRefObject } from 'react';
7
- import { BiometricLocationHint, Setup2faResponse } from '@getpara/user-management-client';
8
- type Flow = AuthStateSignup['stage'] | AuthStateLogin['stage'] | 'account';
9
- type ActiveWallet = [string | undefined, WalletType | undefined];
10
- export type OnRampConfig = OnRampConfigBase & {
11
- testMode?: boolean;
12
- };
13
- export interface OnModalStepChangeValue {
14
- previousStep: ModalStep;
15
- currentStep: ModalStep;
16
- canGoBack: boolean;
17
- }
18
- interface ModalState {
19
- step: ModalStep;
20
- stepDirection: 1 | -1;
21
- flow: Flow | undefined;
22
- authState: AuthState | undefined;
23
- webAuthURLForLogin: string | undefined;
24
- webAuthURLForCreate: string | undefined;
25
- passwordUrlForLogin: string | undefined;
26
- supportedAuthMethods: Set<AuthMethod>;
27
- onModalStepChange?: (value: OnModalStepChangeValue) => void | undefined;
28
- onRampConfig: OnRampConfig | undefined;
29
- onRampPurchase: Partial<OnRampPurchase> | undefined;
30
- isFullyLoggedIn: boolean;
31
- accountAddFundTab?: AddFundsTabType;
32
- selectedExternalWalletId?: string;
33
- isUsingMobileConnector?: boolean;
34
- isExternalWalletConnecting?: boolean;
35
- externalWalletError?: string[];
36
- activeWallet: ActiveWallet | undefined;
37
- farcasterConnectUri: string | undefined;
38
- twoFactorStatus: Setup2faResponse | undefined;
39
- biometricLocationHints: BiometricLocationHint[] | undefined;
40
- iFrameUrl: string | undefined;
41
- isIFrameReady: boolean | undefined;
42
- authLayout?: TAuthLayout[];
43
- authStepRoute: ModalStep | undefined;
44
- refs: {
45
- popupWindow: MutableRefObject<Window | null>;
46
- poll: MutableRefObject<{
47
- action: 'login' | 'signup';
48
- timeout: number;
49
- } | null>;
50
- currentStep: MutableRefObject<ModalStep | null>;
51
- };
52
- isPasskeySupported: boolean;
53
- }
54
- export interface ModalActions {
55
- resetState: () => void;
56
- setStep: (step: ModalStep) => void;
57
- decrementStep: () => void;
58
- hasPreviousStep: () => boolean;
59
- setFlow: (flow?: Flow) => void;
60
- setAuthState: (authState?: AuthState | undefined) => void;
61
- getVerifyState: () => AuthStateVerify | undefined;
62
- getSignupState: () => AuthStateSignup | undefined;
63
- getLoginState: () => AuthStateLogin | undefined;
64
- isLogin: () => boolean;
65
- isAccount: () => boolean;
66
- setSupportedAuthMethods: (authMethods: Set<AuthMethod>) => void;
67
- setWebAuthURLForLogin: (url?: string) => void;
68
- setWebAuthURLForCreate: (url?: string) => void;
69
- setPasswordUrlForLogin: (url?: string) => void;
70
- setOnModalStepChange: (fn?: (value: OnModalStepChangeValue) => void) => void;
71
- setOnRampConfig: (_: OnRampConfig | undefined) => void;
72
- setOnRampPurchase: (_: Partial<OnRampPurchase> | undefined) => void;
73
- setIsFullyLoggedIn: (isFullyLoggedIn: boolean) => void;
74
- setAccountAddFundTab: (accountAddFundTab?: AddFundsTabType) => void;
75
- setSelectedExternalWalletId: (id?: string) => void;
76
- setIsUsingMobileConnector: (isUsingMobileConnector?: boolean) => void;
77
- setIsExternalWalletConnecting: (isExternalWalletConnecting: boolean) => void;
78
- setExternalWalletError: (externalWalletError?: string[]) => void;
79
- setStepDirection: (stepDirection: 1 | -1) => void;
80
- setFarcasterConnectUri: (_: string | undefined) => void;
81
- setTwoFactorStatus: (twoFactorStatus?: Setup2faResponse) => void;
82
- setBiometricLocationHints: (_?: BiometricLocationHint[]) => void;
83
- setIFrameUrl: (_?: string) => void;
84
- setIsIFrameReady: (_?: boolean) => void;
85
- setAuthLayout: (authLayout: TAuthLayout[]) => void;
86
- setAuthStepRoute: (_?: ModalStep) => void;
87
- setIsPasskeySupported: (_: boolean) => void;
88
- }
89
- export type ModalStore = ModalState & ModalActions;
90
- export declare const DEFAULT_MODAL_STATE: Omit<ModalState, 'step' | 'onRampConfig'>;
91
- export declare const useModalStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<ModalStore>, "persist"> & {
92
- persist: {
93
- setOptions: (options: Partial<import("zustand/middleware").PersistOptions<ModalStore, unknown>>) => void;
94
- clearStorage: () => void;
95
- rehydrate: () => Promise<void> | void;
96
- hasHydrated: () => boolean;
97
- onHydrate: (fn: (state: ModalStore) => void) => () => void;
98
- onFinishHydration: (fn: (state: ModalStore) => void) => () => void;
99
- getOptions: () => Partial<import("zustand/middleware").PersistOptions<ModalStore, unknown>>;
100
- };
101
- }>;
102
- export {};
@@ -1,3 +0,0 @@
1
- import { StoreApi } from 'zustand';
2
- import { UserInfoActions, UserInfoStore } from './useUserInfoStore.js';
3
- export declare const getActions: (set: StoreApi<UserInfoStore>["setState"], get: StoreApi<UserInfoStore>["getState"]) => UserInfoActions;
@@ -1,19 +0,0 @@
1
- import { PrimaryAuth } from '@getpara/user-management-client';
2
- import { ModalAuthInfo } from '@getpara/react-common';
3
- type SetAuthInfo = PrimaryAuth & Partial<Pick<ModalAuthInfo, 'pfpUrl' | 'displayName'>>;
4
- type UserInfoState = {
5
- auth: PrimaryAuth | null;
6
- pfpUrl: string | null;
7
- displayName: string | null;
8
- recoveryShare: string | null;
9
- };
10
- export interface UserInfoActions {
11
- resetState: () => void;
12
- setAuthInfo: (auth: SetAuthInfo) => void;
13
- getAuthInfo: () => ModalAuthInfo | null;
14
- setRecoveryShare: (recoveryShare: string | null) => void;
15
- }
16
- export type UserInfoStore = UserInfoState & UserInfoActions;
17
- export declare const DEFAULT_USER_INFO_STATE: UserInfoState;
18
- export declare const useUserInfoStore: import("zustand").UseBoundStore<import("zustand").StoreApi<UserInfoStore>>;
19
- export {};
@@ -1,6 +0,0 @@
1
- import { IconType } from '@getpara/react-components';
2
- export type Tab<T> = {
3
- label: string;
4
- value: T;
5
- icon: IconType;
6
- };
@@ -1,116 +0,0 @@
1
- import ParaWeb, { CurrentWalletIds, OAuthMethod } from '@getpara/web-sdk';
2
- import { Theme } from '@getpara/react-components';
3
- import { OnModalStepChangeValue } from '../stores/index.js';
4
- import { ModalStep, ModalStepProp } from '../utils/steps.js';
5
- export type ParaModalHandle = {
6
- /**
7
- * Move the modal backward
8
- */
9
- goBack: () => void;
10
- /**
11
- * Returns if the modal can go back
12
- */
13
- canGoBack: () => boolean;
14
- /**
15
- * Returns if the modal is expanded
16
- */
17
- currentStep: () => ModalStep;
18
- /**
19
- * Trigger the modal close handler
20
- */
21
- handleModalClose: () => void;
22
- };
23
- export type OAuthLogoVariantType = 'dark' | 'light' | 'default';
24
- export type ParaModalTheme = Theme & {
25
- oAuthLogoVariant?: OAuthLogoVariantType;
26
- };
27
- export declare enum AuthLayout {
28
- AUTH_FULL = "AUTH:FULL",
29
- AUTH_CONDENSED = "AUTH:CONDENSED",
30
- EXTERNAL_FULL = "EXTERNAL:FULL",
31
- EXTERNAL_CONDENSED = "EXTERNAL:CONDENSED"
32
- }
33
- export type TAuthLayout = `${AuthLayout}`;
34
- export interface ParaModalProps {
35
- /**
36
- * Your ParaWeb instance.
37
- */
38
- para?: ParaWeb;
39
- /**
40
- * Whether or not the modal is open.
41
- */
42
- isOpen?: boolean;
43
- /**
44
- * Whether or not to show two-factor authentication steps to users.
45
- * Defaults to `false`.
46
- */
47
- twoFactorAuthEnabled?: boolean;
48
- /**
49
- * Whether or not to show the wallet recovery to users.
50
- * Defaults to `false`
51
- */
52
- recoverySecretStepEnabled?: boolean;
53
- /**
54
- * Which OAuth methods (if any) to show.
55
- * Defaults to `true`.
56
- */
57
- oAuthMethods?: OAuthMethod[];
58
- /**
59
- * Whether or not to allow for email login. If true, only OAuth login will be available.
60
- * Defaults to `false`.
61
- */
62
- disableEmailLogin?: boolean;
63
- /**
64
- * Whether or not to allow for phone login. If true, only OAuth login will be available.
65
- * Defaults to `false`.
66
- */
67
- disablePhoneLogin?: boolean;
68
- /**
69
- * Theming to be used throughout the modal.
70
- */
71
- theme?: ParaModalTheme;
72
- /**
73
- * Logo to be shown throughout the modal.
74
- */
75
- logo?: string;
76
- /**
77
- * Whether or not to run configured on-ramp providers in test mode.
78
- */
79
- onRampTestMode?: boolean;
80
- /**
81
- * Whether to display information about on-chain wallets and use related terminology in the Para Modal.
82
- */
83
- hideWallets?: boolean;
84
- currentStepOverride?: ModalStepProp | undefined;
85
- /**
86
- * Whether or not to display just the modal without the overlay component.
87
- * Useful for rendering the modal inside a custom component
88
- * Defaults to `false`
89
- */
90
- bareModal?: boolean;
91
- /**
92
- * Whether or not to use the embedded modal styling
93
- * This is typically only used internally by Para and may result in unwanted styling!
94
- */
95
- embeddedModal?: boolean;
96
- className?: string;
97
- /**
98
- * How the modal should order the components on the main auth screen.
99
- * Only the first method of each type (auth or external) will be used.
100
- * Default to [AuthLayout.AUTH_FULL, AuthLayout.EXTERNAL_FULL]
101
- */
102
- authLayout?: TAuthLayout[];
103
- /**
104
- * Called when the modal step changes
105
- */
106
- onModalStepChange?: (value: OnModalStepChangeValue) => void;
107
- /**
108
- * Called when the modal is closed
109
- */
110
- onClose?: () => void;
111
- loginTransitionOverride?: (para: ParaWeb) => Promise<void>;
112
- createWalletOverride?: (para: ParaWeb) => Promise<{
113
- recoverySecret?: string;
114
- walletIds: CurrentWalletIds;
115
- }>;
116
- }
@@ -1,3 +0,0 @@
1
- import { TAuthLayout } from '../types/modalProps.js';
2
- export declare const hasExternalWallet: (authLayout: TAuthLayout[]) => "AUTH:FULL" | "AUTH:CONDENSED" | "EXTERNAL:FULL" | "EXTERNAL:CONDENSED" | undefined;
3
- export declare const hasEmbeddedAuth: (authLayout: TAuthLayout[]) => "AUTH:FULL" | "AUTH:CONDENSED" | "EXTERNAL:FULL" | "EXTERNAL:CONDENSED" | undefined;
@@ -1 +0,0 @@
1
- export declare function getMailtoLink(email: any, recoveryShare: any): string;
@@ -1 +0,0 @@
1
- export declare const getTileButtonFlex: (index: number, totalItems: number) => "1 1 auto" | "0 0 calc(33.333333% - 5.336px)" | "0 0 calc(50% - 4px)" | undefined;
@@ -1 +0,0 @@
1
- export declare const isPasskeySupported: () => boolean;
@@ -1,6 +0,0 @@
1
- export declare function openPopup({ url, target, type, current, }: {
2
- url: string;
3
- target: string;
4
- type: 'OAUTH' | 'LOGIN_PASSKEY' | 'CREATE_PASSKEY' | 'TRANSACTION_REVIEW' | 'CREATE_PASSWORD' | 'LOGIN_PASSWORD';
5
- current?: Window | null;
6
- }): Window | null;