@heliofi/checkout-react 1.1.0 → 1.2.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,15 +1,12 @@
|
|
|
1
|
-
import type { ThemeOverride } from '../../infrastructure/theme/types';
|
|
2
|
-
|
|
3
1
|
declare interface CustomTextsInterface {
|
|
4
2
|
mainButtonTitle?: string;
|
|
5
3
|
}
|
|
6
4
|
|
|
7
|
-
declare type DisplayType =
|
|
5
|
+
declare type DisplayType = 'button' | 'inline';
|
|
8
6
|
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
7
|
+
declare type EmbedPaymentType = 'paylink' | 'paystream';
|
|
8
|
+
|
|
9
|
+
declare type EmbedThemeMode = 'light' | 'dark';
|
|
13
10
|
|
|
14
11
|
export declare const HelioCheckout: (props: HelioCheckoutReactProps) => JSX.Element;
|
|
15
12
|
|
|
@@ -24,7 +21,8 @@ declare interface HelioEmbedConfig {
|
|
|
24
21
|
customTexts?: CustomTextsInterface;
|
|
25
22
|
primaryPaymentMethod?: PrimaryPaymentMethod;
|
|
26
23
|
theme?: HelioEmbedTheme;
|
|
27
|
-
paymentType?:
|
|
24
|
+
paymentType?: EmbedPaymentType;
|
|
25
|
+
platform?: WidgetPlatform;
|
|
28
26
|
display?: DisplayType;
|
|
29
27
|
amount?: string;
|
|
30
28
|
additionalJSON?: Json;
|
|
@@ -33,6 +31,7 @@ declare interface HelioEmbedConfig {
|
|
|
33
31
|
transaction: string;
|
|
34
32
|
paymentPK?: string;
|
|
35
33
|
swapTransactionSignature?: string;
|
|
34
|
+
blockchainSymbol?: string;
|
|
36
35
|
}) => void;
|
|
37
36
|
onError?: (event: {
|
|
38
37
|
transaction?: string;
|
|
@@ -47,7 +46,13 @@ declare interface HelioEmbedConfig {
|
|
|
47
46
|
source?: string;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
|
-
declare
|
|
49
|
+
declare interface HelioEmbedTheme {
|
|
50
|
+
themeMode: EmbedThemeMode;
|
|
51
|
+
colors: {
|
|
52
|
+
primaryButtonBackground: string;
|
|
53
|
+
primaryButtonText: string;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
51
56
|
|
|
52
57
|
declare type Json = Json[] | boolean | null | number | string | {
|
|
53
58
|
[key: string]: Json;
|
|
@@ -57,4 +62,6 @@ declare type NetworkType = 'test' | 'main';
|
|
|
57
62
|
|
|
58
63
|
declare type PrimaryPaymentMethod = 'fiat' | 'crypto';
|
|
59
64
|
|
|
65
|
+
declare type WidgetPlatform = 'magic_eden' | 'helio';
|
|
66
|
+
|
|
60
67
|
export { }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heliofi/checkout-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
50
50
|
"jsdom": "^23.0.1",
|
|
51
51
|
"typescript": "5.1.6",
|
|
52
|
-
"vite": "
|
|
52
|
+
"vite": "4.4.12",
|
|
53
53
|
"vite-plugin-dts": "^3.6.4",
|
|
54
54
|
"vitest": "^0.34.6"
|
|
55
55
|
}
|