@coinflowlabs/angular 2.0.0 → 2.0.1-0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinflowlabs/angular",
3
- "version": "2.0.0",
3
+ "version": "2.0.1-0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.17",
6
6
  "@angular/core": "^19.2.17",
@@ -1360,7 +1360,7 @@ interface SplitNameCustomerInfo extends BaseCustomerInfo {
1360
1360
  }
1361
1361
  type CustomerInfo = SplitNameCustomerInfo | NameCustomerInfo;
1362
1362
  /** Coinflow Types **/
1363
- type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'stellar' | 'monad' | 'tempo' | 'user';
1363
+ type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo' | 'user';
1364
1364
  type CoinflowEnvs = 'prod' | 'staging' | 'sandbox' | 'local';
1365
1365
  interface CoinflowTypes {
1366
1366
  merchantId: string;
@@ -1459,12 +1459,6 @@ type EthWallet = {
1459
1459
  }>;
1460
1460
  signMessage: (message: string) => Promise<string>;
1461
1461
  };
1462
- interface StellarWallet {
1463
- address: string | null;
1464
- sendTransaction: (base64Xdr: string) => Promise<string>;
1465
- signTransaction: (base64Xdr: string) => Promise<string>;
1466
- signMessage: (message: string) => Promise<string>;
1467
- }
1468
1462
  /** History **/
1469
1463
  interface CoinflowSolanaHistoryProps extends CoinflowTypes {
1470
1464
  wallet: SolanaWallet;
@@ -1491,17 +1485,13 @@ interface CoinflowBaseHistoryProps extends CoinflowEvmHistoryProps {
1491
1485
  interface CoinflowArbitrumHistoryProps extends CoinflowEvmHistoryProps {
1492
1486
  blockchain: 'arbitrum';
1493
1487
  }
1494
- interface CoinflowStellarHistoryProps extends CoinflowTypes {
1495
- wallet: StellarWallet;
1496
- blockchain: 'stellar';
1497
- }
1498
1488
  interface CoinflowMonadHistoryProps extends CoinflowEvmHistoryProps {
1499
1489
  blockchain: 'monad';
1500
1490
  }
1501
1491
  interface CoinflowTempoHistoryProps extends CoinflowEvmHistoryProps {
1502
1492
  blockchain: 'tempo';
1503
1493
  }
1504
- type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps | CoinflowStellarHistoryProps | CoinflowMonadHistoryProps | CoinflowTempoHistoryProps | CoinflowSessionKeyHistoryProps;
1494
+ type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps | CoinflowMonadHistoryProps | CoinflowTempoHistoryProps | CoinflowSessionKeyHistoryProps;
1505
1495
  type Bytes = ArrayLike<number>;
1506
1496
  type BytesLike = Bytes | string;
1507
1497
  /**
@@ -1586,12 +1576,12 @@ interface CoinflowCommonPaymentIntentProps extends Omit<CoinflowTypes, 'blockcha
1586
1576
  * End-user wallet used for wallet-authenticated payment-intent checkout flows.
1587
1577
  *
1588
1578
  * Required when the target payment intent type depends on a customer wallet
1589
- * (for example: EVM/Solana/Stellar transaction intents or credits/USDC signing flows).
1579
+ * (for example: EVM/Solana transaction intents or credits/USDC signing flows).
1590
1580
  *
1591
1581
  * The wallet implementation must match the active blockchain.
1592
1582
  */
1593
1583
  wallet?: WalletTypes;
1594
- blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'stellar' | 'monad';
1584
+ blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad';
1595
1585
  }
1596
1586
  interface CoinflowCommonPurchaseProps extends CoinflowTypes {
1597
1587
  subtotal?: Subtotal;
@@ -1738,18 +1728,13 @@ interface CoinflowBasePurchaseProps extends CoinflowEvmPurchaseProps {
1738
1728
  interface CoinflowArbitrumPurchaseProps extends CoinflowEvmPurchaseProps {
1739
1729
  blockchain: 'arbitrum';
1740
1730
  }
1741
- interface CoinflowStellarPurchaseProps extends CoinflowCommonPurchaseProps {
1742
- wallet: StellarWallet;
1743
- transaction?: string;
1744
- blockchain: 'stellar';
1745
- }
1746
1731
  interface CoinflowMonadPurchaseProps extends CoinflowEvmPurchaseProps {
1747
1732
  blockchain: 'monad';
1748
1733
  }
1749
1734
  interface CoinflowTempoPurchaseProps extends CoinflowEvmPurchaseProps {
1750
1735
  blockchain: 'tempo';
1751
1736
  }
1752
- type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps | CoinflowStellarPurchaseProps | CoinflowMonadPurchaseProps | CoinflowTempoPurchaseProps;
1737
+ type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps | CoinflowMonadPurchaseProps | CoinflowTempoPurchaseProps;
1753
1738
  /** Withdraw **/
1754
1739
  interface CoinflowCommonWithdrawProps extends CoinflowTypes {
1755
1740
  onSuccess?: OnSuccessMethod;
@@ -1761,7 +1746,7 @@ interface CoinflowCommonWithdrawProps extends CoinflowTypes {
1761
1746
  bankAccountLinkRedirect?: string;
1762
1747
  additionalWallets?: {
1763
1748
  wallet: string;
1764
- blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo' | 'stellar';
1749
+ blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo';
1765
1750
  }[];
1766
1751
  lockAmount?: boolean;
1767
1752
  transactionSigner?: string;
@@ -1803,7 +1788,7 @@ interface CoinflowCommonWithdrawProps extends CoinflowTypes {
1803
1788
  */
1804
1789
  appReturnUrl?: string;
1805
1790
  }
1806
- type WalletTypes = SolanaWallet | EthWallet | StellarWallet;
1791
+ type WalletTypes = SolanaWallet | EthWallet;
1807
1792
  interface SolanaWalletProps {
1808
1793
  wallet: SolanaWallet;
1809
1794
  connection: Connection;
@@ -1832,11 +1817,6 @@ interface ArbitrumWalletProps {
1832
1817
  blockchain: 'arbitrum';
1833
1818
  }
1834
1819
  type CoinflowArbitrumWithdrawProps = CoinflowEvmWithdrawProps & ArbitrumWalletProps;
1835
- interface StellarWalletProps {
1836
- wallet: StellarWallet;
1837
- blockchain: 'stellar';
1838
- }
1839
- type CoinflowStellarWithdrawProps = CoinflowCommonWithdrawProps & StellarWalletProps;
1840
1820
  interface MonadWalletProps {
1841
1821
  blockchain: 'monad';
1842
1822
  }
@@ -1845,7 +1825,7 @@ interface TempoWalletProps {
1845
1825
  blockchain: 'tempo';
1846
1826
  }
1847
1827
  type CoinflowTempoWithdrawProps = CoinflowEvmWithdrawProps & TempoWalletProps;
1848
- type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps | CoinflowStellarWithdrawProps | CoinflowMonadWithdrawProps | CoinflowTempoWithdrawProps;
1828
+ type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps | CoinflowMonadWithdrawProps | CoinflowTempoWithdrawProps;
1849
1829
  interface CommonEvmRedeem {
1850
1830
  /**
1851
1831
  * Whether the UI should wait
@@ -2038,7 +2018,7 @@ interface CoinflowIntentsIFrameProps {
2038
2018
  origins?: string[];
2039
2019
  deviceId?: string;
2040
2020
  walletPubkey?: string | undefined | null;
2041
- blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'stellar' | 'monad';
2021
+ blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad';
2042
2022
  }
2043
2023
  declare enum CardType {
2044
2024
  VISA = "VISA",
@@ -2115,7 +2095,6 @@ declare class CoinflowUtils {
2115
2095
  polygon: T;
2116
2096
  base: T;
2117
2097
  arbitrum: T;
2118
- stellar: T;
2119
2098
  monad: T;
2120
2099
  tempo: T;
2121
2100
  user: T;
@@ -2634,4 +2613,4 @@ type WithOnLoad = {
2634
2613
  };
2635
2614
 
2636
2615
  export { BANK_LINK_REVEAL_DELAY_MS, BANK_LINK_STATUS_PARAM, BankingCurrencies, CARD_ENTRY_BORDER_PX, CARD_ENTRY_DIVIDER_PX, CARD_ENTRY_MARGIN_PX, CARD_ENTRY_MIN_WIDTHS, CARD_ENTRY_ROW_HEIGHT, CARD_ENTRY_ROW_HEIGHT_PX, CARD_ENTRY_SLOT_GAP_PX, CARD_FIELD_ERROR_MESSAGES, COMPACT_SKELETON_HEIGHT_PX, CardFunding, CardType, ChargebackProtectionAccountType, CoinflowApplePayButtonComponent, CoinflowCardForm, CoinflowCardFormV2, CoinflowFraudProtectionHeader, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, DEVICE_ID_HEADER, EventBus, FORTER_TOKEN_HEADER, IFrameMessageMethods, INLINE_SKELETON_HEIGHT_PX, MerchantStyle, PaymentMethods, REFERRER_HEADER, RN_REDIRECT_MESSAGE_NAME, SESSION_ID_HEADER, SKELETON_BOX_STYLE, SKELETON_FADE_MS, SKELETON_LAYOUTS, SKELETON_PULSE_ANIMATION_NAME, SKELETON_ROOT_PADDING_PX, SettlementType, ThreeDsChallengePreference, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, awaitForterToken, bankLinkCallbackParams, buildCardEntryGridCss, buildCardEntryLayout, buildSkeletonCss, canReuseLinkToken, captureForterToken, getCardFieldInputEvents, getCardFieldValidationError, getCoinflowProtectionHeaders, getCoinflowPurchaseHeaders, getCurrencyDecimals, getCustomerName, getForterToken, getHandlers, getSkeletonColors, getSkeletonGridClass, getSkeletonGridTemplate, getWalletPubkey, guessSkeletonHeightPx, handleIFrameMessage, initCoinflowProtection, invertRate, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, isZeroAuthSavedPaymentMethods, isZeroAuthVerifyCard, nftCartItem, parseCachedLinkToken, paymentMethodLabels, productType, recordFrontendError, resolveBankLinkCompletion, serializeCachedLinkToken, shouldStackSkeleton };
2637
- export type { AccountFundingTransaction, AccountLinkErrorInfo, AccountLinkedInfo, AccountLinkedType, AccountNotLinkedInfo, AccountNotLinkedReason, AnyObject, ArbitrumWalletProps, AuthDeclinedWalletCallInfo, BankLinkCompletion, BankLinkStatus, BankingCurrency, BaseWalletProps, CachedLinkToken, CardEntryConfig, CardEntryDivider, CardEntryInputName, CardEntryLayout, CardFieldInputEvent, CardFormArgs, CardFormTokenResponse, CardFormVariant, Cart, CartClassOmitted, CartItem, CartItemClassOmitted, Cents, ChargebackProtectionData, ChargebackProtectionItem, CoinflowArbitrumHistoryProps, CoinflowArbitrumPurchaseProps, CoinflowArbitrumWithdrawProps, CoinflowBankLinkProps, CoinflowBaseHistoryProps, CoinflowBasePurchaseProps, CoinflowBaseWithdrawProps, CoinflowBlockchain, CoinflowCommonPaymentIntentProps, CoinflowCommonPurchaseProps, CoinflowCommonWithdrawProps, CoinflowEnvs, CoinflowEthHistoryProps, CoinflowEthPurchaseProps, CoinflowEthWithdrawProps, CoinflowEvmHistoryProps, CoinflowEvmPurchaseProps, CoinflowFraudProtectionTokens, CoinflowHistoryProps, CoinflowIFrameProps, CoinflowIntentsIFrameProps, CoinflowMonadHistoryProps, CoinflowMonadPurchaseProps, CoinflowMonadWithdrawProps, CoinflowPolygonHistoryProps, CoinflowPolygonPurchaseProps, CoinflowPolygonWithdrawProps, CoinflowProtectionHeadersType, CoinflowPurchaseHeadersType, CoinflowPurchaseProps, CoinflowSessionKeyHistoryProps, CoinflowSessionKeyPurchaseProps, CoinflowSolanaHistoryProps, CoinflowSolanaPurchaseProps, CoinflowSolanaWithdrawProps, CoinflowStellarHistoryProps, CoinflowStellarPurchaseProps, CoinflowStellarWithdrawProps, CoinflowTempoHistoryProps, CoinflowTempoPurchaseProps, CoinflowTempoWithdrawProps, CoinflowTypes, CoinflowWithdrawProps, CommonEvmRedeem, CryptoCartItem, CurrencyCents, CustomerInfo, DecentRedeem, EthWallet, EthWalletProps, EventBusCallback, EvmTransactionData, ExchangeRate, FlightTicketCartItem, FlightUpgradeCartItem, FullName, GiftCardCartItem, IFrameMessageHandlers, InputErrorWalletCallInfo, InputValidWalletCallInfo, KnownTokenIdRedeem, L2L3Data, L2L3Item, L2L3Level2, L2L3Level3, L2L3Tax, LamportsAmount, LodgingCartItem, MerchantIdOrCheckoutJwt, MerchantTheme, MergeWithOptionalDiff, MonadWalletProps, NameCustomerInfo, NftCartItemClassOmitted, NormalRedeem, OnAccountLinkErrorMethod, OnAccountLinkedMethod, OnAccountNotLinkedMethod, OnAuthDeclinedMethod, OnInputErrorMethod, OnInputValidMethod, OnSuccessMethod, PartialBy, PolygonWalletProps, PurchaseCustomPayInFee, RecipientAftInfo, RemainingLimit, ReturnedTokenIdRedeem, SafeMintRedeem, SkeletonColors, SkeletonLayout, SolanaWallet, SolanaWalletProps, SplitNameCustomerInfo, StellarWallet, StellarWalletProps, Subtotal, TempoWalletProps, TokenRedeem, TokenSubtotal, TravelCartItem, TravelFirstFlight, TravelLodging, TravelLodgingHotel, TravelTrip, TypedCurrencyCents, WalletCall, WalletTypes, WithGeo, WithOnLoad, WithdrawCurrency, ZeroAuthSavedPaymentMethods, ZeroAuthVerifyCard, ZeroAuthorizationConfig };
2616
+ export type { AccountFundingTransaction, AccountLinkErrorInfo, AccountLinkedInfo, AccountLinkedType, AccountNotLinkedInfo, AccountNotLinkedReason, AnyObject, ArbitrumWalletProps, AuthDeclinedWalletCallInfo, BankLinkCompletion, BankLinkStatus, BankingCurrency, BaseWalletProps, CachedLinkToken, CardEntryConfig, CardEntryDivider, CardEntryInputName, CardEntryLayout, CardFieldInputEvent, CardFormArgs, CardFormTokenResponse, CardFormVariant, Cart, CartClassOmitted, CartItem, CartItemClassOmitted, Cents, ChargebackProtectionData, ChargebackProtectionItem, CoinflowArbitrumHistoryProps, CoinflowArbitrumPurchaseProps, CoinflowArbitrumWithdrawProps, CoinflowBankLinkProps, CoinflowBaseHistoryProps, CoinflowBasePurchaseProps, CoinflowBaseWithdrawProps, CoinflowBlockchain, CoinflowCommonPaymentIntentProps, CoinflowCommonPurchaseProps, CoinflowCommonWithdrawProps, CoinflowEnvs, CoinflowEthHistoryProps, CoinflowEthPurchaseProps, CoinflowEthWithdrawProps, CoinflowEvmHistoryProps, CoinflowEvmPurchaseProps, CoinflowFraudProtectionTokens, CoinflowHistoryProps, CoinflowIFrameProps, CoinflowIntentsIFrameProps, CoinflowMonadHistoryProps, CoinflowMonadPurchaseProps, CoinflowMonadWithdrawProps, CoinflowPolygonHistoryProps, CoinflowPolygonPurchaseProps, CoinflowPolygonWithdrawProps, CoinflowProtectionHeadersType, CoinflowPurchaseHeadersType, CoinflowPurchaseProps, CoinflowSessionKeyHistoryProps, CoinflowSessionKeyPurchaseProps, CoinflowSolanaHistoryProps, CoinflowSolanaPurchaseProps, CoinflowSolanaWithdrawProps, CoinflowTempoHistoryProps, CoinflowTempoPurchaseProps, CoinflowTempoWithdrawProps, CoinflowTypes, CoinflowWithdrawProps, CommonEvmRedeem, CryptoCartItem, CurrencyCents, CustomerInfo, DecentRedeem, EthWallet, EthWalletProps, EventBusCallback, EvmTransactionData, ExchangeRate, FlightTicketCartItem, FlightUpgradeCartItem, FullName, GiftCardCartItem, IFrameMessageHandlers, InputErrorWalletCallInfo, InputValidWalletCallInfo, KnownTokenIdRedeem, L2L3Data, L2L3Item, L2L3Level2, L2L3Level3, L2L3Tax, LamportsAmount, LodgingCartItem, MerchantIdOrCheckoutJwt, MerchantTheme, MergeWithOptionalDiff, MonadWalletProps, NameCustomerInfo, NftCartItemClassOmitted, NormalRedeem, OnAccountLinkErrorMethod, OnAccountLinkedMethod, OnAccountNotLinkedMethod, OnAuthDeclinedMethod, OnInputErrorMethod, OnInputValidMethod, OnSuccessMethod, PartialBy, PolygonWalletProps, PurchaseCustomPayInFee, RecipientAftInfo, RemainingLimit, ReturnedTokenIdRedeem, SafeMintRedeem, SkeletonColors, SkeletonLayout, SolanaWallet, SolanaWalletProps, SplitNameCustomerInfo, Subtotal, TempoWalletProps, TokenRedeem, TokenSubtotal, TravelCartItem, TravelFirstFlight, TravelLodging, TravelLodgingHotel, TravelTrip, TypedCurrencyCents, WalletCall, WalletTypes, WithGeo, WithOnLoad, WithdrawCurrency, ZeroAuthSavedPaymentMethods, ZeroAuthVerifyCard, ZeroAuthorizationConfig };