@heliofi/deposit-react 0.2.2 → 0.3.0

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.
@@ -1,22 +1,48 @@
1
1
  /// <reference types="react" />
2
+
3
+ readonly SOL: true;
4
+ readonly ETH: true;
5
+ readonly BASE: true;
6
+ readonly POLYGON: true;
7
+ readonly ARBITRUM: true;
8
+ readonly BSC: true;
9
+ readonly ABSTRACT: true;
10
+ readonly HYPERLIQUID: true;
11
+ readonly PLASMA: false;
12
+ };
13
+
14
+ wallet: `${DepositConnectWallet}`;
15
+ blockchain: `${SupportedBlockchain}`;
16
+ address: string;
17
+ };
18
+
19
+ METAMASK = "METAMASK",
20
+ PHANTOM = "PHANTOM",
21
+ TRUST_WALLET = "TRUST_WALLET",
22
+ WALLET_CONNECT = "WALLET_CONNECT"
23
+ }
2
24
 
25
+
3
26
 
4
27
 
5
28
 
6
29
 
7
30
  export declare const MoonpayCommerceDeposit: (props: MoonpayCommerceDepositReactProps) => JSX.Element | null;
8
31
 
32
+ currentlyConnectedWallet?: ConnectWalletSelection;
33
+ debug?: boolean;
9
34
  depositCustomerToken: string;
10
- onSuccess?: () => void;
35
+ display?: DepositDisplay;
36
+ forcedStep?: DepositForcedStep;
37
+ loadingText?: React.ReactNode;
38
+ network?: DepositNetwork;
11
39
  onError?: (error: {
12
40
  message: string;
13
41
  }) => void;
14
- display?: DepositDisplay;
15
- network?: DepositNetwork;
42
+ onSuccess?: () => void;
43
+ openWalletConnectInNewTab?: boolean;
16
44
  themeMode?: DepositThemeMode;
17
45
  variant?: DepositVariant;
18
- loadingText?: React.ReactNode;
19
- debug?: boolean;
20
46
  }
21
47
 
22
48
  config: MoonpayCommerceDepositConfig;
@@ -24,5 +50,6 @@ export declare const MoonpayCommerceDeposit: (props: MoonpayCommerceDepositReact
24
50
  onClick: () => void;
25
51
  }>;
26
52
  }
53
+
27
54
 
28
55
  export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@heliofi/deposit-react",
3
3
  "private": false,
4
- "version": "0.2.2",
4
+ "version": "0.3.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",