@swype-org/react-sdk 0.1.132 → 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.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;
@@ -767,9 +765,10 @@ interface SelectSourceScreenProps {
767
765
  onChainChange: (chainName: string) => void;
768
766
  onTokenChange: (tokenSymbol: string) => void;
769
767
  onConfirm: () => void;
768
+ onBack?: () => void;
770
769
  onLogout: () => void;
771
770
  }
772
- declare function SelectSourceScreen({ choices, selectedChainName, selectedTokenSymbol, recommended, onChainChange, onTokenChange, onConfirm, onLogout, }: SelectSourceScreenProps): react_jsx_runtime.JSX.Element;
771
+ declare function SelectSourceScreen({ choices, selectedChainName, selectedTokenSymbol, recommended, onChainChange, onTokenChange, onConfirm, onBack, onLogout, }: SelectSourceScreenProps): react_jsx_runtime.JSX.Element;
773
772
 
774
773
  interface ChainChoice {
775
774
  chainName: string;
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;
@@ -767,9 +765,10 @@ interface SelectSourceScreenProps {
767
765
  onChainChange: (chainName: string) => void;
768
766
  onTokenChange: (tokenSymbol: string) => void;
769
767
  onConfirm: () => void;
768
+ onBack?: () => void;
770
769
  onLogout: () => void;
771
770
  }
772
- declare function SelectSourceScreen({ choices, selectedChainName, selectedTokenSymbol, recommended, onChainChange, onTokenChange, onConfirm, onLogout, }: SelectSourceScreenProps): react_jsx_runtime.JSX.Element;
771
+ declare function SelectSourceScreen({ choices, selectedChainName, selectedTokenSymbol, recommended, onChainChange, onTokenChange, onConfirm, onBack, onLogout, }: SelectSourceScreenProps): react_jsx_runtime.JSX.Element;
773
772
 
774
773
  interface ChainChoice {
775
774
  chainName: string;