@tender-cash/agent-sdk-react 0.3.0 → 0.3.2

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.
@@ -19,5 +19,6 @@ declare const fetchPaymentDetailAction: ({ nextScreen, setPageLoading }: {
19
19
  } | undefined;
20
20
  confirmPayment: () => void | Promise<void>;
21
21
  cancelPayment: () => void | Promise<void>;
22
+ expirePayment: () => void | Promise<void>;
22
23
  };
23
24
  export default fetchPaymentDetailAction;
@@ -15,6 +15,7 @@ declare const useAgentSdkAction: () => {
15
15
  paymentData: IPaymentData & {
16
16
  cancelPayment: () => void;
17
17
  confirmPayment: () => void;
18
+ expirePayment: () => void;
18
19
  disabled: boolean;
19
20
  loading: boolean;
20
21
  };
@@ -1,4 +1,8 @@
1
+ import { ReactNode } from 'react';
1
2
  import { FormFooterProps, FormHeaderProps } from '../types';
2
3
  declare const FormFooter: ({ children }: FormFooterProps) => import("react/jsx-runtime").JSX.Element;
3
4
  declare const FormHeader: ({ title, description, icon }: FormHeaderProps) => import("react/jsx-runtime").JSX.Element;
4
- export { FormFooter, FormHeader };
5
+ declare const FormBody: ({ children }: {
6
+ children: ReactNode;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export { FormFooter, FormHeader, FormBody };
@@ -1,3 +1,3 @@
1
1
  import { TenderAgentProps } from './types';
2
- declare const TenderAgentSdk: ({ referenceId, amount, accessId, accessSecret, env, fiatCurrency, onEventResponse }: TenderAgentProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const TenderAgentSdk: ({ referenceId, amount, accessId, accessSecret, env, fiatCurrency, paymentExpirySeconds, onEventResponse }: TenderAgentProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default TenderAgentSdk;
@@ -1,3 +1,3 @@
1
1
  import { paymentResponseProps, paymentDetailsProps } from '../types';
2
- declare const PaymentDetails: ({ address, amount, amountPaid, coin, loading, status, balance, excess, cancelPayment, confirmPayment, }: paymentResponseProps & paymentDetailsProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const PaymentDetails: ({ address, amount, amountPaid, coin, chain, loading, status, balance, excess, cancelPayment, confirmPayment, expirePayment, }: paymentResponseProps & paymentDetailsProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default PaymentDetails;
@@ -12,5 +12,5 @@ interface paymentFormProps {
12
12
  selectNetwork: (value: Option) => void;
13
13
  submitForm: () => void;
14
14
  }
15
- declare const PaymentForm: ({ amount, fiatCurrency, networks, selectedNetwork, selectedCoin, coins, formDisabled, formLoading, selectCoin, selectNetwork, submitForm }: paymentFormProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const PaymentForm: ({ amount, fiatCurrency, networks, selectedNetwork, selectedCoin, coins, formDisabled, formLoading, selectCoin, selectNetwork, submitForm, }: paymentFormProps) => import("react/jsx-runtime").JSX.Element;
16
16
  export default PaymentForm;
@@ -65,6 +65,7 @@ interface paymentResponseProps {
65
65
  amount: number;
66
66
  amountPaid: number;
67
67
  coin: string;
68
+ chain: string;
68
69
  loading: boolean;
69
70
  status?: PaymentStatusProps;
70
71
  balance?: string;
@@ -89,6 +90,7 @@ declare const PAYMENT_ICONS: {
89
90
  interface paymentDetailsProps {
90
91
  cancelPayment: () => void;
91
92
  confirmPayment: () => void;
93
+ expirePayment: () => void;
92
94
  }
93
95
  declare enum PAYMENT_STAGE {
94
96
  FORM = 1,
@@ -158,6 +160,7 @@ interface ConfigContextType {
158
160
  fiatCurrency: string;
159
161
  env: TenderEnvironments;
160
162
  confirmationInterval?: number;
163
+ paymentExpirySeconds?: number;
161
164
  theme?: "light" | "dark";
162
165
  onEventResponse?: (data: onFinishResponse) => void;
163
166
  }
@@ -168,6 +171,7 @@ interface TenderAgentProps {
168
171
  accessId: string;
169
172
  accessSecret: string;
170
173
  env: TenderEnvironments;
174
+ paymentExpirySeconds?: number;
171
175
  onEventResponse?: (data: onFinishResponse) => void;
172
176
  }
173
177
  interface PaymentChain {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tender-cash/agent-sdk-react",
3
3
  "license": "MIT",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "repository": "git://github.com/tender-cash/agent-sdk-react.git",
6
6
  "description": "",
7
7
  "author": "Tender",