@getpara/react-sdk 0.2.0 → 0.2.2

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.
@@ -36,7 +36,7 @@ import { useModal, useWalletState } from '../provider/index.js';
36
36
  import { useStore } from '../provider/stores/useStore.js';
37
37
  import { useInternalClient } from '../provider/hooks/utils/useInternalClient.js';
38
38
  defineCustomElements();
39
- export const ParaModal = forwardRef((_a) => {
39
+ export const ParaModal = forwardRef((_a, ref) => {
40
40
  var { para, isOpen } = _a, rest = __rest(_a, ["para", "isOpen"]);
41
41
  const [isInitialized, setIsInitialized] = useState(false);
42
42
  const setClient = useStore(state => state.setClient);
@@ -59,7 +59,7 @@ export const ParaModal = forwardRef((_a) => {
59
59
  if (!isInitialized) {
60
60
  return null;
61
61
  }
62
- return _jsx(ParaModalInner, Object.assign({ para: para }, rest));
62
+ return _jsx(ParaModalInner, Object.assign({ ref: ref, para: para }, rest));
63
63
  });
64
64
  const ParaModalInner = forwardRef((_a, ref) => {
65
65
  var { theme, appName, logo, disableEmailLogin = false, disablePhoneLogin = false, oAuthMethods, bareModal = false, className, currentStepOverride, externalWallets, authLayout = [AuthLayout.AUTH_FULL, AuthLayout.EXTERNAL_FULL], embeddedModal, onModalStepChange, hideWallets = false, onClose } = _a, rest = __rest(_a, ["theme", "appName", "logo", "disableEmailLogin", "disablePhoneLogin", "oAuthMethods", "bareModal", "className", "currentStepOverride", "externalWallets", "authLayout", "embeddedModal", "onModalStepChange", "hideWallets", "onClose"]);
@@ -2,7 +2,7 @@ import { Network, OnRampAsset, OnRampMethod, OnRampProvider } from '@getpara/cor
2
2
  import { IconType } from '@getpara/react-components';
3
3
  import { Transition, Variants } from 'framer-motion';
4
4
  export declare const PARA_CONNECT = "https://connect.getpara.com/";
5
- export declare const PARA_TERMS_AND_CONDITIONS = "https://capsule-org.notion.site/Terms-and-Conditions-d4a23d32c6a64acba9cec29a11cc09e9";
5
+ export declare const PARA_TERMS_AND_CONDITIONS = "https://getpara.com/terms";
6
6
  export interface OnRampProviderConfig {
7
7
  name: string;
8
8
  feeLower: number;
@@ -1,6 +1,6 @@
1
1
  import { Network, OnRampAsset, OnRampMethod, OnRampProvider } from '@getpara/core-sdk';
2
2
  export const PARA_CONNECT = 'https://connect.getpara.com/';
3
- export const PARA_TERMS_AND_CONDITIONS = 'https://capsule-org.notion.site/Terms-and-Conditions-d4a23d32c6a64acba9cec29a11cc09e9';
3
+ export const PARA_TERMS_AND_CONDITIONS = 'https://getpara.com/terms';
4
4
  export const ON_RAMP_PROVIDERS = {
5
5
  [OnRampProvider.STRIPE]: {
6
6
  name: 'Stripe',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/react-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,9 +12,10 @@
12
12
  "*.css"
13
13
  ],
14
14
  "dependencies": {
15
- "@getpara/react-common": "0.2.0",
15
+ "@getpara/react-common": "0.2.2",
16
16
  "@getpara/react-components": "0.2.0",
17
- "@getpara/web-sdk": "0.2.0",
17
+ "@getpara/web-sdk": "0.2.2",
18
+ "@tanstack/react-query": "^5.0.0",
18
19
  "date-fns": "^3.6.0",
19
20
  "detect-browser": "^5.3.0",
20
21
  "framer-motion": "11.3.28",
@@ -28,7 +29,6 @@
28
29
  "test": "vitest run --coverage"
29
30
  },
30
31
  "devDependencies": {
31
- "@tanstack/react-query": "^5.24.1",
32
32
  "@testing-library/dom": "^10.1.0",
33
33
  "@testing-library/react": "^16.0.0",
34
34
  "@types/chrome": "^0.0.237",
@@ -37,7 +37,6 @@
37
37
  "typescript": "^5.4.3"
38
38
  },
39
39
  "peerDependencies": {
40
- "@tanstack/react-query": ">=5.0.0",
41
40
  "react": "*",
42
41
  "react-dom": "*"
43
42
  },
@@ -49,5 +48,5 @@
49
48
  "resolutions": {
50
49
  "styled-components": "^6"
51
50
  },
52
- "gitHead": "9e28f35ede16f3627aeb5baebdf26dae03fa4dcf"
51
+ "gitHead": "89c777434a4854d895d96246fa2443a40b1c071d"
53
52
  }