@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
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": [
4
+ "*.css"
5
+ ]
6
+ }
@@ -1,4 +1,3 @@
1
- import { ParaProviderProps } from './types/provider.js';
1
+ import { ParaModalHandle, ParaProviderProps } from '@getpara/react-sdk-lite';
2
2
  import { Chain, Transport } from 'viem';
3
- import { ParaModalHandle } from '../modal/index.js';
4
3
  export declare const ParaProvider: import("react").ForwardRefExoticComponent<ParaProviderProps<readonly [Chain, ...Chain[]], Record<number, Transport>> & import("react").RefAttributes<ParaModalHandle>>;
@@ -0,0 +1,24 @@
1
+ "use client";
2
+ import {
3
+ __objRest,
4
+ __spreadProps,
5
+ __spreadValues
6
+ } from "../chunk-MMUBH76A.js";
7
+ import { jsx } from "react/jsx-runtime";
8
+ import { ParaProvider as ParaProviderMin } from "@getpara/react-sdk-lite";
9
+ import { forwardRef } from "react";
10
+ const ParaProvider = forwardRef((_a, ref) => {
11
+ var _b = _a, { children, externalWalletConfig } = _b, providerProps = __objRest(_b, ["children", "externalWalletConfig"]);
12
+ var _a2;
13
+ return /* @__PURE__ */ jsx(
14
+ ParaProviderMin,
15
+ __spreadProps(__spreadValues({}, providerProps), {
16
+ externalWalletConfig: __spreadProps(__spreadValues({}, externalWalletConfig), { wallets: (_a2 = externalWalletConfig == null ? void 0 : externalWalletConfig.wallets) != null ? _a2 : [] }),
17
+ ref,
18
+ children
19
+ })
20
+ );
21
+ });
22
+ export {
23
+ ParaProvider
24
+ };
@@ -0,0 +1,8 @@
1
+ import ParaWeb from '@getpara/react-sdk-lite';
2
+ import { SolanaRpcApi } from '@solana/rpc-api';
3
+ import { Rpc } from '@solana/rpc-spec';
4
+ export declare const getSolanaSigner: ({ para, rpc, walletId, }: {
5
+ para: ParaWeb;
6
+ walletId?: string;
7
+ rpc: Rpc<SolanaRpcApi>;
8
+ }) => Promise<import("@getpara/solana-signers-v2-integration").ParaSolanaSigner>;
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import {
3
+ __async
4
+ } from "../../chunk-MMUBH76A.js";
5
+ import { createParaSolanaSigner } from "@getpara/solana-signers-v2-integration";
6
+ const getSolanaSigner = (_0) => __async(void 0, [_0], function* ({
7
+ para,
8
+ rpc,
9
+ walletId
10
+ }) {
11
+ return createParaSolanaSigner({ para, rpc, walletId });
12
+ });
13
+ export {
14
+ getSolanaSigner
15
+ };
@@ -0,0 +1 @@
1
+ export * from './getSolanaSigner.js';
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ export * from "./getSolanaSigner.js";
@@ -0,0 +1 @@
1
+ export * from './useSolanaSigner.js';
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ export * from "./useSolanaSigner.js";
@@ -0,0 +1,12 @@
1
+ import { SolanaRpcApi } from '@solana/rpc-api';
2
+ import { Rpc } from '@solana/rpc-spec';
3
+ export declare const SOLANA_SIGNER_BASE_KEY = "PARA_SOLANA_SIGNER";
4
+ type UseSolanaSignerParameters = {
5
+ walletId?: string;
6
+ rpc: Rpc<SolanaRpcApi>;
7
+ };
8
+ export declare const useSolanaSigner: ({ walletId, rpc }: UseSolanaSignerParameters) => {
9
+ solanaSigner: import("@getpara/solana-signers-v2-integration").ParaSolanaSigner | null | undefined;
10
+ isLoading: boolean;
11
+ };
12
+ export {};
@@ -0,0 +1,32 @@
1
+ "use client";
2
+ import {
3
+ __async
4
+ } from "../../chunk-MMUBH76A.js";
5
+ import { useAccount, useClient, useWallet } from "@getpara/react-sdk-lite";
6
+ import { useQuery } from "@tanstack/react-query";
7
+ import { getSolanaSigner } from "../actions/index.js";
8
+ const SOLANA_SIGNER_BASE_KEY = "PARA_SOLANA_SIGNER";
9
+ const useSolanaSigner = ({ walletId, rpc }) => {
10
+ const para = useClient();
11
+ const {
12
+ isConnected,
13
+ embedded: { userId }
14
+ } = useAccount();
15
+ const { data: wallet } = useWallet();
16
+ const { data, isLoading } = useQuery({
17
+ queryKey: [SOLANA_SIGNER_BASE_KEY, isConnected, userId, walletId != null ? walletId : (wallet == null ? void 0 : wallet.type) === "SOLANA" ? wallet == null ? void 0 : wallet.id : null],
18
+ enabled: isConnected && !!para,
19
+ queryFn: () => __async(void 0, null, function* () {
20
+ if (!isConnected || !para) {
21
+ return null;
22
+ }
23
+ const _id = walletId != null ? walletId : (wallet == null ? void 0 : wallet.type) === "SOLANA" ? wallet == null ? void 0 : wallet.id : void 0;
24
+ return yield getSolanaSigner({ para, rpc, walletId: _id });
25
+ })
26
+ });
27
+ return { solanaSigner: data, isLoading };
28
+ };
29
+ export {
30
+ SOLANA_SIGNER_BASE_KEY,
31
+ useSolanaSigner
32
+ };
@@ -0,0 +1,2 @@
1
+ export * from './hooks/index.js';
2
+ export * from './actions/index.js';
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ export * from "./hooks/index.js";
3
+ export * from "./actions/index.js";
package/package.json CHANGED
@@ -1,65 +1,56 @@
1
1
  {
2
2
  "name": "@getpara/react-sdk",
3
- "version": "2.0.0-dev.2",
4
- "type": "module",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
3
+ "version": "2.0.0-dev.4",
7
4
  "bin": {
8
5
  "setup-para": "dist/cli/cli.mjs"
9
6
  },
10
- "exports": {
11
- ".": "./dist/index.js",
12
- "./styles.css": "./dist/css/modal.css"
13
- },
14
- "sideEffects": [
15
- "*.css"
16
- ],
17
7
  "dependencies": {
18
- "@getpara/react-common": "2.0.0-dev.1",
19
- "@getpara/react-components": "2.0.0-dev.1",
20
- "@getpara/web-sdk": "2.0.0-dev.1",
21
- "date-fns": "^3.6.0",
22
- "framer-motion": "11.3.28",
23
- "libphonenumber-js": "^1.11.1",
24
- "styled-components": "^6.1.8",
25
- "zustand": "^4.5.2",
26
- "zustand-sync-tabs": "^0.2.2"
27
- },
28
- "scripts": {
29
- "post-build": "./scripts/post-build.sh",
30
- "build": "rm -rf dist && yarn typegen && node ./scripts/build.mjs && yarn post-build",
31
- "typegen": "tsc --emitDeclarationOnly",
32
- "test": "vitest run --coverage",
33
- "cli": "node ./dist/cli/cli.mjs"
8
+ "@getpara/cosmjs-v0-integration": "2.0.0-alpha.37",
9
+ "@getpara/cosmos-wallet-connectors": "2.0.0-dev.4",
10
+ "@getpara/evm-wallet-connectors": "2.0.0-alpha.37",
11
+ "@getpara/react-sdk-lite": "2.0.0-alpha.37",
12
+ "@getpara/solana-signers-v2-integration": "2.0.0-alpha.37",
13
+ "@getpara/solana-wallet-connectors": "2.0.0-alpha.37",
14
+ "@getpara/viem-v2-integration": "2.0.0-alpha.37"
34
15
  },
35
16
  "devDependencies": {
36
- "@getpara/cosmos-wallet-connectors": "^2.0.0-dev.1",
37
- "@getpara/evm-wallet-connectors": "^2.0.0-dev.1",
38
- "@getpara/solana-wallet-connectors": "^2.0.0-dev.1",
39
- "@testing-library/dom": "^10.1.0",
40
- "@testing-library/react": "^16.0.0",
41
- "@types/chrome": "^0.0.237",
42
17
  "@types/react": "^18.0.31",
43
18
  "@types/react-dom": "^18.2.7",
44
- "typescript": "^5.4.3",
45
- "viem": "2.x",
46
- "wagmi": "2.x"
19
+ "typescript": "^5.8.3"
47
20
  },
48
- "peerDependencies": {
49
- "@getpara/cosmos-wallet-connectors": "^2.0.0-dev.1",
50
- "@getpara/evm-wallet-connectors": "^2.0.0-dev.1",
51
- "@getpara/solana-wallet-connectors": "^2.0.0-dev.1",
52
- "@tanstack/react-query": ">=5.0.0",
53
- "react": "*",
54
- "react-dom": "*"
21
+ "exports": {
22
+ ".": "./dist/index.js",
23
+ "./styles.css": "./dist/css/modal.css",
24
+ "./evm": "./dist/evm/index.js",
25
+ "./evm/hooks": "./dist/evm/hooks/index.js",
26
+ "./evm/actions": "./dist/evm/actions/index.js",
27
+ "./cosmos": "./dist/cosmos/index.js",
28
+ "./cosmos/hooks": "./dist/cosmos/hooks/index.js",
29
+ "./cosmos/actions": "./dist/cosmos/actions/index.js",
30
+ "./solana": "./dist/solana/index.js",
31
+ "./solana/hooks": "./dist/solana/hooks/index.js",
32
+ "./solana/actions": "./dist/solana/actions/index.js"
55
33
  },
56
34
  "files": [
57
35
  "dist",
58
36
  "package.json",
59
37
  "styles.css"
60
38
  ],
61
- "resolutions": {
62
- "styled-components": "^6"
39
+ "gitHead": "e6e791d4e4f9afd94f2093d6045d686b85e5a682",
40
+ "main": "dist/index.js",
41
+ "peerDependencies": {
42
+ "@tanstack/react-query": ">=5.0.0",
43
+ "react": "*",
44
+ "react-dom": "*"
63
45
  },
64
- "gitHead": "e6e791d4e4f9afd94f2093d6045d686b85e5a682"
46
+ "scripts": {
47
+ "build": "rm -rf dist && yarn typegen && node ./scripts/build.mjs && yarn post-build",
48
+ "post-build": "./scripts/post-build.sh",
49
+ "typegen": "tsc --emitDeclarationOnly"
50
+ },
51
+ "sideEffects": [
52
+ "*.css"
53
+ ],
54
+ "type": "module",
55
+ "types": "dist/index.d.ts"
65
56
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "main": "../dist/modal/css/modal.css"
2
+ "main": "../dist/css/modal.css"
3
3
  }
@@ -1,9 +0,0 @@
1
- "use client";
2
- import "./chunk-MMUBH76A.js";
3
-
4
- // src/modal/components/AddFunds/MoonPayEmbed.tsx
5
- import { MoonPayEmbed } from "@getpara/react-common";
6
- var MoonPayEmbed_default = MoonPayEmbed;
7
- export {
8
- MoonPayEmbed_default as default
9
- };
Binary file
Binary file
Binary file
Binary file
package/dist/cli/cli.mjs DELETED
@@ -1,35 +0,0 @@
1
- #!/usr/bin/env node
2
- import * as fs from 'node:fs/promises';
3
- import * as path from 'node:path';
4
- import { createRequire } from 'module';
5
- const require = createRequire(import.meta.url);
6
-
7
- const PACKAGES_TO_STUB = [
8
- '@getpara/evm-wallet-connectors',
9
- '@getpara/cosmos-wallet-connectors',
10
- '@getpara/solana-wallet-connectors',
11
- ];
12
-
13
- const checkForPackages = async () => {
14
- const pathToParaPackages = require.resolve('@getpara/react-sdk');
15
-
16
- const pathToNodeModules = path.resolve(pathToParaPackages, '../../node_modules');
17
-
18
- for (let i = 0; i < PACKAGES_TO_STUB.length; i++) {
19
- const packageName = PACKAGES_TO_STUB[i];
20
- try {
21
- await import(packageName);
22
- } catch (err) {
23
- if (err.code === 'ERR_MODULE_NOT_FOUND') {
24
- const packageJsonContent = { name: packageName, main: './index.js' };
25
- await fs.mkdir(path.join(pathToNodeModules, packageName), { recursive: true });
26
- await fs.writeFile(path.join(pathToNodeModules, packageName, 'index.js'), '//STUB');
27
- await fs.writeFile(path.join(pathToNodeModules, packageName, 'package.json'), JSON.stringify(packageJsonContent), {
28
- encoding: 'utf-8',
29
- });
30
- }
31
- }
32
- }
33
- };
34
-
35
- await checkForPackages();
package/dist/index.js.br DELETED
Binary file
package/dist/index.js.gz DELETED
Binary file
@@ -1,2 +0,0 @@
1
- import { ParaModalHandle, ParaModalProps } from './types/modalProps.js';
2
- export declare const ParaModal: import("react").ForwardRefExoticComponent<ParaModalProps & import("react").RefAttributes<ParaModalHandle>>;
@@ -1,5 +0,0 @@
1
- interface AccountProps {
2
- onClose: () => void;
3
- }
4
- export declare const Account: ({ onClose }: AccountProps) => import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,3 +0,0 @@
1
- import { EnabledFlow } from '@getpara/web-sdk';
2
- export type Tab = EnabledFlow;
3
- export declare const AddFunds: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const AddFundsAwaiting: () => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- interface AddFundsDoneProps {
2
- isSuccess?: boolean;
3
- onClose: () => void;
4
- }
5
- export declare const AddFundsDone: ({ isSuccess, onClose }: AddFundsDoneProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,2 +0,0 @@
1
- import { MoonPayEmbed } from '@getpara/react-common';
2
- export default MoonPayEmbed;
@@ -1,3 +0,0 @@
1
- export * from './AddFunds.js';
2
- export * from './AddFundsAwaiting.js';
3
- export * from './AddFundsDone.js';
@@ -1,6 +0,0 @@
1
- interface AuthInputProps {
2
- disableEmailLogin?: boolean;
3
- disablePhoneLogin?: boolean;
4
- }
5
- export declare const AuthInput: ({ disableEmailLogin, disablePhoneLogin }: AuthInputProps) => import("react/jsx-runtime").JSX.Element | null;
6
- export {};
@@ -1,8 +0,0 @@
1
- import { IconType } from '@getpara/core-components';
2
- declare const countryCodes: {
3
- label: string;
4
- value: string;
5
- selectedLabel: string;
6
- icon: IconType;
7
- }[];
8
- export default countryCodes;
@@ -1,7 +0,0 @@
1
- import { MutableRefObject } from 'react';
2
- export declare const useDropdownPosition: (inputRef: MutableRefObject<HTMLCpslInputElement | HTMLDivElement | null>) => {
3
- dropdownMaxHeight: number | undefined;
4
- dropdownWidth: number | undefined;
5
- mobileAnchor: number | undefined;
6
- resize: () => void;
7
- };
@@ -1,247 +0,0 @@
1
- export declare const defaultPhoneMask = "#################";
2
- export declare const phoneMasks: {
3
- AF: string;
4
- AX: string;
5
- AL: string;
6
- DZ: string;
7
- AS: string;
8
- AD: string;
9
- AO: string;
10
- AI: string;
11
- AG: string;
12
- AR: string;
13
- AM: string;
14
- AW: string;
15
- AU: string;
16
- AT: string;
17
- AZ: string;
18
- BS: string;
19
- BH: string;
20
- BD: string;
21
- BB: string;
22
- BY: string;
23
- BE: string;
24
- BZ: string;
25
- BJ: string;
26
- BM: string;
27
- BT: string;
28
- BO: string;
29
- BA: string;
30
- BW: string;
31
- BR: string;
32
- IO: string;
33
- BN: string;
34
- BG: string;
35
- BF: string;
36
- BI: string;
37
- KH: string;
38
- CM: string;
39
- CA: string;
40
- CV: string;
41
- KY: string;
42
- CF: string;
43
- TD: string;
44
- CL: string;
45
- CN: string;
46
- CX: string;
47
- CC: string;
48
- CO: string;
49
- KM: string;
50
- CG: string;
51
- CK: string;
52
- CR: string;
53
- HR: string;
54
- CU: string;
55
- CY: string;
56
- CZ: string;
57
- CD: string;
58
- DK: string;
59
- DJ: string;
60
- DM: string;
61
- DO: string;
62
- EC: string;
63
- EG: string;
64
- SV: string;
65
- GQ: string;
66
- ER: string;
67
- EE: string;
68
- SZ: string;
69
- ET: string;
70
- FK: string;
71
- FO: string;
72
- FJ: string;
73
- FI: string;
74
- FR: string;
75
- GF: string;
76
- PF: string;
77
- GA: string;
78
- GM: string;
79
- GE: string;
80
- DE: string;
81
- GH: string;
82
- GI: string;
83
- GR: string;
84
- GL: string;
85
- GD: string;
86
- GP: string;
87
- GU: string;
88
- GT: string;
89
- GG: string;
90
- GN: string;
91
- GW: string;
92
- GY: string;
93
- HT: string;
94
- VA: string;
95
- HN: string;
96
- HK: string;
97
- HU: string;
98
- IS: string;
99
- IN: string;
100
- ID: string;
101
- IR: string;
102
- IQ: string;
103
- IE: string;
104
- IM: string;
105
- IL: string;
106
- IT: string;
107
- CI: string;
108
- JM: string;
109
- JP: string;
110
- JE: string;
111
- JO: string;
112
- KZ: string;
113
- KE: string;
114
- KI: string;
115
- KP: string;
116
- KR: string;
117
- XK: string;
118
- KW: string;
119
- KG: string;
120
- LA: string;
121
- LV: string;
122
- LB: string;
123
- LS: string;
124
- LR: string;
125
- LY: string;
126
- LI: string;
127
- LT: string;
128
- LU: string;
129
- MO: string;
130
- MG: string;
131
- MW: string;
132
- MY: string;
133
- MV: string;
134
- ML: string;
135
- MT: string;
136
- MH: string;
137
- MQ: string;
138
- MR: string;
139
- MU: string;
140
- YT: string;
141
- MX: string;
142
- FM: string;
143
- MD: string;
144
- MC: string;
145
- MN: string;
146
- ME: string;
147
- MS: string;
148
- MA: string;
149
- MZ: string;
150
- MM: string;
151
- NA: string;
152
- NR: string;
153
- NP: string;
154
- NL: string;
155
- NC: string;
156
- NZ: string;
157
- NI: string;
158
- NE: string;
159
- NG: string;
160
- NU: string;
161
- NF: string;
162
- MK: string;
163
- MP: string;
164
- NO: string;
165
- OM: string;
166
- PK: string;
167
- PW: string;
168
- PS: string;
169
- PA: string;
170
- PG: string;
171
- PY: string;
172
- PE: string;
173
- PH: string;
174
- PN: string;
175
- PL: string;
176
- PT: string;
177
- PR: string;
178
- QA: string;
179
- RE: string;
180
- RO: string;
181
- RU: string;
182
- RW: string;
183
- BL: string;
184
- SH: string;
185
- KN: string;
186
- LC: string;
187
- MF: string;
188
- PM: string;
189
- VC: string;
190
- WS: string;
191
- SM: string;
192
- ST: string;
193
- SA: string;
194
- SN: string;
195
- RS: string;
196
- SC: string;
197
- SL: string;
198
- SG: string;
199
- SX: string;
200
- SK: string;
201
- SI: string;
202
- SB: string;
203
- SO: string;
204
- ZA: string;
205
- GS: string;
206
- SS: string;
207
- ES: string;
208
- LK: string;
209
- SD: string;
210
- SR: string;
211
- SJ: string;
212
- SE: string;
213
- CH: string;
214
- SY: string;
215
- TW: string;
216
- TJ: string;
217
- TZ: string;
218
- TH: string;
219
- TL: string;
220
- TG: string;
221
- TK: string;
222
- TO: string;
223
- TT: string;
224
- TN: string;
225
- TR: string;
226
- TM: string;
227
- TC: string;
228
- TV: string;
229
- UG: string;
230
- UA: string;
231
- AE: string;
232
- GB: string;
233
- US: string;
234
- UM: string;
235
- UY: string;
236
- UZ: string;
237
- VU: string;
238
- VE: string;
239
- VN: string;
240
- VG: string;
241
- VI: string;
242
- WF: string;
243
- EH: string;
244
- YE: string;
245
- ZM: string;
246
- ZW: string;
247
- };
@@ -1,8 +0,0 @@
1
- import { OAuthMethod } from '@getpara/web-sdk';
2
- interface AuthMainStepProps {
3
- oAuthMethods?: OAuthMethod[];
4
- disableEmailLogin: boolean;
5
- disablePhoneLogin: boolean;
6
- }
7
- export declare const AuthMainStep: ({ oAuthMethods, disableEmailLogin, disablePhoneLogin }: AuthMainStepProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,8 +0,0 @@
1
- import { OAuthMethod } from '@getpara/web-sdk';
2
- interface AuthMainStepContentProps {
3
- oAuthMethods?: OAuthMethod[];
4
- disableEmailLogin: boolean;
5
- disablePhoneLogin: boolean;
6
- }
7
- export declare const AuthMainStepContent: ({ oAuthMethods, disableEmailLogin, disablePhoneLogin }: AuthMainStepContentProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,8 +0,0 @@
1
- import { OAuthMethod } from '@getpara/web-sdk';
2
- interface AuthOptionsProps {
3
- oAuthMethods?: OAuthMethod[];
4
- disableEmailLogin: boolean;
5
- disablePhoneLogin: boolean;
6
- }
7
- export declare const AuthOptions: ({ oAuthMethods, disableEmailLogin, disablePhoneLogin }: AuthOptionsProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1 +0,0 @@
1
- export declare const AwaitingBiometricsStep: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const AwaitingOAuthStep: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const AwaitingPasswordStep: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const AwaitingWalletCreationStep: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const BiometricCreationStep: () => import("react/jsx-runtime").JSX.Element;