@heliofi/deposit-react 0.1.3 → 0.1.5

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.
package/README.md CHANGED
@@ -6,4 +6,4 @@ React component for Helio crypto deposits.
6
6
 
7
7
  For installation, usage, and examples, visit the official Helio documentation:
8
8
 
9
- **[docs.hel.io](https://docs.hel.io/docs/deposits)**
9
+ **[docs.hel.io/docs/deposits](https://docs.hel.io/docs/deposits)**
@@ -1,26 +1,23 @@
1
- export declare const MoonpayCommerceDeposit: (props: MoonpayCommerceDepositReactProps) => JSX.Element | null;
1
+ /// <reference types="react" />
2
+
3
+
4
+
2
5
 
3
- /**
4
- * Configuration for MoonPay Commerce Deposit
5
- * Note: This type is duplicated from deposit-embed to maintain package independence.
6
- * The deposit-embed package is a private build artifact (embed script), not a library.
7
- */
8
- /** Required: Deposit customer token */
6
+ export declare const MoonpayCommerceDeposit: (props: MoonpayCommerceDepositReactProps) => JSX.Element | null;
7
+
9
8
  depositCustomerToken: string;
10
- /** Optional: Success callback */
11
9
  onSuccess?: () => void;
12
- /** Optional: Error callback */
13
10
  onError?: (error: {
14
11
  message: string;
15
12
  }) => void;
16
- /** Optional: Network - test or main */
17
- network?: 'test' | 'main';
18
- /** Optional: Debug mode */
13
+ display?: DepositDisplay;
14
+ network?: DepositNetwork;
15
+ themeMode?: DepositThemeMode;
16
+ loadingText?: React.ReactNode;
17
+ trigger?: (props: {
18
+ onClick: () => void;
19
+ }) => React.ReactNode;
19
20
  debug?: boolean;
20
- /** Optional: Display mode - inline (default), button, or new-tab */
21
- display?: 'inline' | 'button' | 'new-tab';
22
- /** Optional: Button text for button and new-tab modes */
23
- buttonText?: string;
24
21
  }
25
22
 
26
23
  config: MoonpayCommerceDepositConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@heliofi/deposit-react",
3
3
  "private": false,
4
- "version": "0.1.3",
4
+ "version": "0.1.5",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",