@monei-js/components 1.7.7 → 1.7.8

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,4 +1,4 @@
1
- import { PaymentRequestProps } from './types';
2
1
  import { MoneiComponent } from '../../types/component';
2
+ import { PaymentRequestProps } from './types';
3
3
  export * from './types';
4
4
  export declare const PaymentRequest: MoneiComponent<PaymentRequestProps>;
@@ -15,7 +15,7 @@ export interface PaymentRequestProps {
15
15
  onBeforeSubmit?: () => void;
16
16
  onLoad?: (isSupported: boolean) => void;
17
17
  style?: {
18
- height?: number;
18
+ height?: string | number;
19
19
  color?: 'default' | 'black' | 'white';
20
20
  type?: 'buy' | 'plain' | 'donate';
21
21
  };
@@ -17,7 +17,7 @@ export interface PayPalProps {
17
17
  onBeforeOpen?: () => boolean;
18
18
  onLoad?: (isSupported: boolean) => void;
19
19
  style?: {
20
- height?: number;
20
+ height?: number | string;
21
21
  color?: 'gold' | 'blue' | 'silver' | 'white' | 'black';
22
22
  layout?: 'horizontal' | 'vertical';
23
23
  size?: 'small' | 'medium' | 'large' | 'responsive';
package/dist/types.d.ts CHANGED
@@ -117,6 +117,7 @@ export declare type CreateTokenRequest = {
117
117
  sessionId?: string;
118
118
  amount?: number;
119
119
  currency?: string;
120
+ transactionType?: TransactionType;
120
121
  paymentMethod: {
121
122
  card?: {
122
123
  number: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monei-js/components",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "author": "MONEI <support@monei.com> (https://monei.com)",
5
5
  "description": "MONEI UI Components enable you to collect sensitive payment information using customizable UI components.",
6
6
  "homepage": "https://monei.com",