@heliofi/checkout-react 1.0.1 → 1.0.3

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
@@ -1,3 +1,4 @@
1
1
  # Helio Checkout React
2
2
 
3
- For documentation please visit https://demo.hel.io or https://docs.hel.io
3
+ - Documentation please visit https://docs.hel.io/developers/helio-checkout-widget
4
+ - Demo: https://demo.hel.io
@@ -1,5 +1,3 @@
1
- import type { ThemeOverride } from '../../infrastructure/theme/types';
2
-
3
1
  declare interface CustomTextsInterface {
4
2
  mainButtonTitle?: string;
5
3
  }
@@ -8,22 +6,21 @@ declare type DisplayType = keyof typeof DisplayTypeEnum;
8
6
 
9
7
  declare enum DisplayTypeEnum {
10
8
  BUTTON = "BUTTON",
11
- INLINE = "INLINE"
9
+ INLINE = "hel-inline"
12
10
  }
13
11
 
14
12
  export declare const HelioCheckout: (props: HelioCheckoutReactProps) => JSX.Element;
15
13
 
16
14
  declare interface HelioCheckoutReactProps {
17
- config: HelioEmbedConfig;
15
+ config: Omit<HelioEmbedConfig, 'source'>;
18
16
  }
19
17
 
20
- declare type HelioEmbedConfig = HelioEmbedConfig_2;
21
-
22
- declare interface HelioEmbedConfig_2 {
18
+ declare interface HelioEmbedConfig {
23
19
  paylinkId: string;
24
20
  network?: NetworkType;
25
21
  debug?: boolean;
26
22
  customTexts?: CustomTextsInterface;
23
+ primaryPaymentMethod?: PrimaryPaymentMethod;
27
24
  theme?: HelioEmbedTheme;
28
25
  paymentType?: 'PAYLINK' | 'PAYSTREAM';
29
26
  display?: DisplayType;
@@ -48,7 +45,13 @@ declare interface HelioEmbedConfig_2 {
48
45
  source?: string;
49
46
  }
50
47
 
51
- declare type HelioEmbedTheme = ThemeOverride;
48
+ declare interface HelioEmbedTheme {
49
+ themeMode: ThemeMode;
50
+ colors: {
51
+ primaryButtonBackground: string;
52
+ primaryButtonText: string;
53
+ };
54
+ }
52
55
 
53
56
  declare type Json = Json[] | boolean | null | number | string | {
54
57
  [key: string]: Json;
@@ -56,4 +59,11 @@ declare type Json = Json[] | boolean | null | number | string | {
56
59
 
57
60
  declare type NetworkType = 'test' | 'main';
58
61
 
62
+ declare type PrimaryPaymentMethod = 'fiat' | 'crypto';
63
+
64
+ declare enum ThemeMode {
65
+ LIGHT = "LightMode",
66
+ DARK = "DarkMode"
67
+ }
68
+
59
69
  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.1",
4
+ "version": "1.0.3",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",