@heliofi/checkout-react 1.0.4 → 1.0.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.
@@ -9,6 +9,16 @@ declare enum DisplayTypeEnum {
9
9
  INLINE = "hel-inline"
10
10
  }
11
11
 
12
+ declare enum EmbedPaymentType {
13
+ PAYLINK = "paylink",
14
+ PAYSTREAM = "paystream"
15
+ }
16
+
17
+ declare enum EmbedThemeMode {
18
+ LIGHT = "light",
19
+ DARK = "dark"
20
+ }
21
+
12
22
  export declare const HelioCheckout: (props: HelioCheckoutReactProps) => JSX.Element;
13
23
 
14
24
  declare interface HelioCheckoutReactProps {
@@ -22,7 +32,7 @@ declare interface HelioEmbedConfig {
22
32
  customTexts?: CustomTextsInterface;
23
33
  primaryPaymentMethod?: PrimaryPaymentMethod;
24
34
  theme?: HelioEmbedTheme;
25
- paymentType?: 'PAYLINK' | 'PAYSTREAM';
35
+ paymentType?: EmbedPaymentType;
26
36
  display?: DisplayType;
27
37
  amount?: string;
28
38
  additionalJSON?: Json;
@@ -46,7 +56,7 @@ declare interface HelioEmbedConfig {
46
56
  }
47
57
 
48
58
  declare interface HelioEmbedTheme {
49
- themeMode: ThemeMode;
59
+ themeMode: EmbedThemeMode;
50
60
  colors: {
51
61
  primaryButtonBackground: string;
52
62
  primaryButtonText: string;
@@ -61,9 +71,4 @@ declare type NetworkType = 'test' | 'main';
61
71
 
62
72
  declare type PrimaryPaymentMethod = 'fiat' | 'crypto';
63
73
 
64
- declare enum ThemeMode {
65
- LIGHT = "LightMode",
66
- DARK = "DarkMode"
67
- }
68
-
69
74
  export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@heliofi/checkout-react",
3
3
  "private": false,
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",