@swype-org/react-sdk 0.1.133 → 0.1.142
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/index.cjs +1250 -991
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.js +1251 -992
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -331,6 +331,8 @@ interface CreateTransferParams {
|
|
|
331
331
|
merchantAuthorization?: MerchantAuthorization;
|
|
332
332
|
sourceType: SourceType;
|
|
333
333
|
sourceId: string;
|
|
334
|
+
/** ERC-20 contract address of the selected source token. */
|
|
335
|
+
sourceTokenAddress?: string;
|
|
334
336
|
destination: Destination;
|
|
335
337
|
amount: number;
|
|
336
338
|
currency?: string;
|
|
@@ -409,13 +411,9 @@ interface SwypePaymentProps {
|
|
|
409
411
|
useWalletConnector?: boolean;
|
|
410
412
|
idempotencyKey?: string;
|
|
411
413
|
merchantAuthorization?: CreateTransferParams['merchantAuthorization'];
|
|
412
|
-
/** Merchant display name shown in headers and summaries */
|
|
413
414
|
merchantName?: string;
|
|
414
|
-
/** Called when the user taps the back button */
|
|
415
415
|
onBack?: () => void;
|
|
416
|
-
/** Called when the user dismisses the success screen (tap Done or countdown expires). When set, overrides the default "start new payment" behavior. */
|
|
417
416
|
onDismiss?: () => void;
|
|
418
|
-
/** Seconds to count down on the success screen before auto-dismissing. */
|
|
419
417
|
autoCloseSeconds?: number;
|
|
420
418
|
}
|
|
421
419
|
declare function SwypePayment(props: SwypePaymentProps): react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -331,6 +331,8 @@ interface CreateTransferParams {
|
|
|
331
331
|
merchantAuthorization?: MerchantAuthorization;
|
|
332
332
|
sourceType: SourceType;
|
|
333
333
|
sourceId: string;
|
|
334
|
+
/** ERC-20 contract address of the selected source token. */
|
|
335
|
+
sourceTokenAddress?: string;
|
|
334
336
|
destination: Destination;
|
|
335
337
|
amount: number;
|
|
336
338
|
currency?: string;
|
|
@@ -409,13 +411,9 @@ interface SwypePaymentProps {
|
|
|
409
411
|
useWalletConnector?: boolean;
|
|
410
412
|
idempotencyKey?: string;
|
|
411
413
|
merchantAuthorization?: CreateTransferParams['merchantAuthorization'];
|
|
412
|
-
/** Merchant display name shown in headers and summaries */
|
|
413
414
|
merchantName?: string;
|
|
414
|
-
/** Called when the user taps the back button */
|
|
415
415
|
onBack?: () => void;
|
|
416
|
-
/** Called when the user dismisses the success screen (tap Done or countdown expires). When set, overrides the default "start new payment" behavior. */
|
|
417
416
|
onDismiss?: () => void;
|
|
418
|
-
/** Seconds to count down on the success screen before auto-dismissing. */
|
|
419
417
|
autoCloseSeconds?: number;
|
|
420
418
|
}
|
|
421
419
|
declare function SwypePayment(props: SwypePaymentProps): react_jsx_runtime.JSX.Element;
|