@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.
- package/dist/style.css +1 -1
- package/dist/tender-cash-agent-sdk-react.cjs.js +48 -48
- package/dist/tender-cash-agent-sdk-react.cjs.js.map +1 -1
- package/dist/tender-cash-agent-sdk-react.es.js +1657 -1599
- package/dist/tender-cash-agent-sdk-react.es.js.map +1 -1
- package/dist/types/module/_actions/details.d.ts +1 -0
- package/dist/types/module/_actions/index.d.ts +1 -0
- package/dist/types/module/_components/layout.d.ts +5 -1
- package/dist/types/module/index.d.ts +1 -1
- package/dist/types/module/screens/details.d.ts +1 -1
- package/dist/types/module/screens/form.d.ts +1 -1
- package/dist/types/module/types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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
|
-
|
|
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 {
|