@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 +1 -1
- package/dist/helio-deposit-react.es.d.ts +13 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
17
|
-
network?:
|
|
18
|
-
|
|
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;
|