@coinflowlabs/angular 1.11.0 → 1.13.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": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.17",
6
6
  "@angular/core": "^19.2.17",
@@ -1,9 +1,9 @@
1
1
  import { PublicKey, Transaction, VersionedTransaction, Signer, Connection } from '@solana/web3.js';
2
2
  import { Properties } from 'csstype';
3
+ import * as _coinflowlabs_angular from '@coinflowlabs/angular';
3
4
  import * as i0 from '@angular/core';
4
- import { EventEmitter, ElementRef, OnDestroy, SimpleChanges, OnInit } from '@angular/core';
5
+ import { EventEmitter, ElementRef, OnDestroy, SimpleChanges, OnInit, NgZone } from '@angular/core';
5
6
  import { SafeResourceUrl, DomSanitizer } from '@angular/platform-browser';
6
- import * as _coinflowlabs_angular from '@coinflowlabs/angular';
7
7
 
8
8
  declare enum Currency {
9
9
  USD = "USD",
@@ -932,7 +932,10 @@ declare enum PaymentMethods {
932
932
  crypto = "crypto",
933
933
  wire = "wire",
934
934
  cashApp = "cashApp",
935
- rain = "rain"
935
+ apa = "apa",
936
+ paypal = "paypal",
937
+ venmo = "venmo",
938
+ interac = "interac"
936
939
  }
937
940
  declare const paymentMethodLabels: Record<PaymentMethods, string>;
938
941
  interface CoinflowCommonPaymentIntentProps extends Omit<CoinflowTypes, 'blockchain'> {
@@ -947,8 +950,6 @@ interface CoinflowCommonPaymentIntentProps extends Omit<CoinflowTypes, 'blockcha
947
950
  /**
948
951
  * The DeviceID gotten from the Coinflow SDK:
949
952
  * https://docs.coinflow.cash/guides/checkout/fraud-protection/chargeback-protection/implement-chargeback-protection#how-to-add-chargeback-protection
950
- *
951
- * nSureSDK.getDeviceId()
952
953
  */
953
954
  deviceId?: string;
954
955
  /**
@@ -1009,8 +1010,6 @@ interface CoinflowCommonPurchaseProps extends CoinflowTypes {
1009
1010
  /**
1010
1011
  * The DeviceID gotten from the Coinflow SDK:
1011
1012
  * https://docs.coinflow.cash/guides/checkout/fraud-protection/chargeback-protection/implement-chargeback-protection#how-to-add-chargeback-protection
1012
- *
1013
- * nSureSDK.getDeviceId()
1014
1013
  */
1015
1014
  deviceId?: string;
1016
1015
  jwtToken?: string;
@@ -1030,6 +1029,11 @@ interface CoinflowCommonPurchaseProps extends CoinflowTypes {
1030
1029
  threeDsChallengePreference?: ThreeDsChallengePreference;
1031
1030
  destinationAuthKey?: string;
1032
1031
  accountFundingTransaction?: AccountFundingTransaction;
1032
+ /**
1033
+ * Custom preset deposit amounts (in dollars) to display in the AmountSelector.
1034
+ * Only the first 3 values are used. Defaults to [10, 25, 50] if not provided.
1035
+ */
1036
+ depositAmounts?: number[];
1033
1037
  }
1034
1038
  interface WithGeo {
1035
1039
  /**
@@ -1300,7 +1304,7 @@ interface DecentRedeem extends CommonEvmRedeem {
1300
1304
  * Gas fees for the transaction will be automatically calculated and added to the total charged to the customer. Optionally the merchant can opt to pay for these gas fees.
1301
1305
  */
1302
1306
  type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | KnownTokenIdRedeem | NormalRedeem | TokenRedeem | DecentRedeem;
1303
- interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId' | 'handleHeightChange'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'chargebackProtectionAccountType' | 'webhookInfo' | 'subtotal' | 'presentment' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'supportEmail' | 'allowedPaymentMethods' | 'accountFundingTransaction' | 'partialUsdcChecked' | 'isZeroAuthorization' | 'zeroAuthorizationConfig'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins' | 'allowedWithdrawSpeeds'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey' | 'redemptionCheck'>, WithGeo {
1307
+ interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId' | 'handleHeightChange'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'chargebackProtectionAccountType' | 'webhookInfo' | 'subtotal' | 'presentment' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'supportEmail' | 'allowedPaymentMethods' | 'accountFundingTransaction' | 'partialUsdcChecked' | 'isZeroAuthorization' | 'zeroAuthorizationConfig' | 'depositAmounts'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins' | 'allowedWithdrawSpeeds'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey' | 'redemptionCheck'>, WithGeo {
1304
1308
  walletPubkey: string | null | undefined;
1305
1309
  sessionKey?: string;
1306
1310
  route: string;
@@ -1388,7 +1392,7 @@ declare class CoinflowUtils {
1388
1392
  static getCoinflowBaseUrl(env?: CoinflowEnvs): string;
1389
1393
  static getCoinflowAppBaseUrl(env?: CoinflowEnvs): string;
1390
1394
  static getCoinflowApiUrl(env?: CoinflowEnvs): string;
1391
- static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, presentment, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, chargebackProtectionAccountType, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked, redemptionCheck, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, baseUrl, }: CoinflowIFrameProps & {
1395
+ static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, presentment, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, chargebackProtectionAccountType, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked, redemptionCheck, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, depositAmounts, baseUrl, }: CoinflowIFrameProps & {
1392
1396
  baseUrl?: string;
1393
1397
  } & WithGeo): string;
1394
1398
  static getCoinflowIntentsUrl({ baseUrl, route, color, theme, env, origins, deviceId, merchantCss, loaderBackground, handleHeightChangeId, }: CoinflowIntentsIFrameProps & {
@@ -1438,6 +1442,11 @@ interface IFrameMessageHandlers {
1438
1442
  handleHeightChange?: (height: string) => void;
1439
1443
  onSuccess: OnSuccessMethod | undefined;
1440
1444
  onAuthDeclined: OnAuthDeclinedMethod | undefined;
1445
+ /**
1446
+ * Called when the iframe opens/closes an in-page overlay (e.g. the PayPal
1447
+ * approval modal). `state` is 'open' or 'close'.
1448
+ */
1449
+ handleOverlay?: (state: string) => void;
1441
1450
  }
1442
1451
  declare enum IFrameMessageMethods {
1443
1452
  SignMessage = "signMessage",
@@ -1448,7 +1457,8 @@ declare enum IFrameMessageMethods {
1448
1457
  AuthDeclined = "authDeclined",
1449
1458
  Loaded = "loaded",
1450
1459
  AccountLinked = "accountLinked",
1451
- Redirect = "redirect"
1460
+ Redirect = "redirect",
1461
+ Overlay = "overlay"
1452
1462
  }
1453
1463
  declare function getWalletPubkey(input: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain'>): string | null | undefined;
1454
1464
  declare function handleIFrameMessage(rawMessage: string, handlers: IFrameMessageHandlers, handleHeightChangeId: string | number): Promise<string> | void;
@@ -1566,12 +1576,208 @@ declare function doInitializeCvvOnlyTokenExIframe(args: DoInitializeCvvOnlyToken
1566
1576
  declare function doInitializeTokenExIframe(args: DoInitializeTokenExIframeArgs): Promise<TokenExIframe | undefined>;
1567
1577
  declare function doInitializeTokenExCardOnlyIframe(args: DoInitializeTokenExIframeArgs): Promise<TokenExIframe | undefined>;
1568
1578
 
1579
+ /**
1580
+ * Single source of truth for the card-entry responsive layout.
1581
+ *
1582
+ * The real card-entry form (`UnifiedCardEntry` in the core-flows app) and the
1583
+ * React/Vue/Angular skeleton loaders all render the same grid. Historically the
1584
+ * form drove the inline↔two-row switch from JS (a ResizeObserver toggling React
1585
+ * state) while the skeletons hard-coded their own guesses, so the two drifted.
1586
+ *
1587
+ * This module defines the grid templates and the breakpoint ONCE, as pure data
1588
+ * plus a CSS builder, so every consumer reflows at exactly the same width via a
1589
+ * CSS container query — no JS width measurement, nothing to keep in sync.
1590
+ */
1591
+ type CardEntryInputName = 'card-number' | 'expiration' | 'cvv';
1592
+ /**
1593
+ * Minimum width (px) each field needs before the row is too cramped and the
1594
+ * layout drops to two rows. Mirrors the real form's field sizing.
1595
+ */
1596
+ declare const CARD_ENTRY_MIN_WIDTHS: Record<CardEntryInputName, number>;
1597
+ /** Notional gap (px) between fields, summed into the reflow breakpoint. */
1598
+ declare const CARD_ENTRY_SLOT_GAP_PX = 8;
1599
+ /** Field row height — matches the real form's `3rem` grid rows. */
1600
+ declare const CARD_ENTRY_ROW_HEIGHT = "3rem";
1601
+ declare const CARD_ENTRY_ROW_HEIGHT_PX = 48;
1602
+ /** 1px accent line between rows / between exp & cvv in the two-row layout. */
1603
+ declare const CARD_ENTRY_DIVIDER_PX = 1;
1604
+ /**
1605
+ * The form draws its fields inside a 1px border, so the query container (the
1606
+ * full iframe width) is 2px wider than the field row that `minRowWidth`
1607
+ * describes. The breakpoint bakes this in so form and skeleton flip together.
1608
+ */
1609
+ declare const CARD_ENTRY_BORDER_PX = 1;
1610
+ /**
1611
+ * The form insets its box by this much on every side (Tailwind `m-0.5`) so the
1612
+ * focus ring has room and isn't clipped at the iframe edge. It adds to the box's
1613
+ * rendered height, so the skeleton's height guess includes it to avoid a jump
1614
+ * when the loaded form replaces the skeleton.
1615
+ */
1616
+ declare const CARD_ENTRY_MARGIN_PX = 2;
1617
+ type CardEntryConfig = {
1618
+ /** Mounted fields, in DOM/visual order. */
1619
+ inputs: CardEntryInputName[];
1620
+ /** Whether the animated card-brand icon renders left of the PAN slot. */
1621
+ hasIcon?: boolean;
1622
+ /** Whether the layout may drop to two rows when narrow (default true). */
1623
+ allowTwoRow?: boolean;
1624
+ };
1625
+ type CardEntryDivider = {
1626
+ area: string;
1627
+ orientation: 'v' | 'h';
1628
+ };
1629
+ type CardEntryLayout = {
1630
+ /** grid-template for the wide (inline) layout. */
1631
+ inline: string;
1632
+ /** grid-template for the narrow (two-row) layout, or null if it never reflows. */
1633
+ twoRow: string | null;
1634
+ /**
1635
+ * Container width (px) below which the two-row layout applies, measured on the
1636
+ * query container (full iframe width, incl. the form's border). Null when the
1637
+ * config never reflows.
1638
+ */
1639
+ breakpointPx: number | null;
1640
+ /** grid-area names that hold a field, in DOM order (same in both layouts). */
1641
+ fieldAreas: string[];
1642
+ /** Whether an `icon` area is present (both layouts). */
1643
+ hasIconArea: boolean;
1644
+ /** Accent-line elements shown only in the two-row layout. */
1645
+ twoRowDividers: CardEntryDivider[];
1646
+ };
1647
+ /** Resolve the full layout (templates + breakpoint + areas) for a config. */
1648
+ declare function buildCardEntryLayout({ inputs, hasIcon, allowTwoRow, }: CardEntryConfig): CardEntryLayout;
1649
+ /**
1650
+ * Container-query CSS that switches `gridSelector` between the inline and
1651
+ * two-row templates at the layout's breakpoint. The element matched by
1652
+ * `gridSelector` must be a descendant of a `container-type: inline-size`
1653
+ * ancestor named `containerName`.
1654
+ *
1655
+ * `extraBaseRules` are emitted before the `@container` block (e.g. the default
1656
+ * hidden state of two-row-only dividers); `extraCompactRules` are emitted inside
1657
+ * it (e.g. revealing those dividers / hiding wide-only chrome). Keeping the base
1658
+ * state first ensures the compact rules win when the query matches.
1659
+ */
1660
+ declare function buildCardEntryGridCss({ gridSelector, layout, containerName, extraBaseRules, extraCompactRules, }: {
1661
+ gridSelector: string;
1662
+ layout: CardEntryLayout;
1663
+ containerName?: string;
1664
+ extraBaseRules?: string;
1665
+ extraCompactRules?: string;
1666
+ }): string;
1667
+
1668
+ /**
1669
+ * Framework-agnostic definitions for the V2 card-form skeleton loader.
1670
+ *
1671
+ * The React, Vue, and Angular libraries all render the same skeleton while the
1672
+ * card-form iframe loads. The grid templates and breakpoint come from the shared
1673
+ * {@link buildCardEntryLayout} — the SAME source of truth the real form uses —
1674
+ * so the skeleton reflows at exactly the width the loaded form does. Only the
1675
+ * box styling and per-framework wiring live here.
1676
+ */
1677
+ type CardFormVariant = 'card-form' | 'card-number-form' | 'cvv-form';
1678
+ declare const INLINE_SKELETON_HEIGHT_PX: number;
1679
+ /** Two-row layouts are a second field row plus the 1px divider taller. */
1680
+ declare const COMPACT_SKELETON_HEIGHT_PX: number;
1681
+ type SkeletonLayout = {
1682
+ /** Single-row grid used at the iframe's default (wide) width. */
1683
+ inline: string;
1684
+ /** Two-row grid applied below `compactMaxWidthPx`; omitted when it never reflows. */
1685
+ compact?: string;
1686
+ /** Container width (px) below which the two-row grid applies. */
1687
+ compactMaxWidthPx?: number;
1688
+ /** grid-area names to render one skeleton box for, in DOM order (same in both layouts). */
1689
+ areas: string[];
1690
+ };
1691
+ declare const SKELETON_LAYOUTS: Record<CardFormVariant, SkeletonLayout>;
1692
+ /** Name of the shared pulse keyframes; referenced by the box `animation`. */
1693
+ declare const SKELETON_PULSE_ANIMATION_NAME = "coinflow-card-form-skeleton-pulse";
1694
+ /**
1695
+ * Duration (ms) of the skeleton's opacity fade-out. Matches the `opacity 300ms`
1696
+ * transition each renderer applies. Renderers unmount the skeleton on
1697
+ * `transitionend`, but that event can be skipped (reduced-motion, an ancestor
1698
+ * `display:none`, or opacity already 0) — so they also use this as a fallback
1699
+ * timeout to force the unmount and avoid a stuck (invisible) skeleton.
1700
+ */
1701
+ declare const SKELETON_FADE_MS = 300;
1702
+ /**
1703
+ * Whether the given container width would trigger the variant's two-row layout.
1704
+ * Mirrors the real form's container query (`width < breakpoint`). Variants
1705
+ * without a two-row layout never reflow.
1706
+ */
1707
+ declare function shouldStackSkeleton({ variant, width, }: {
1708
+ variant: CardFormVariant;
1709
+ width: number;
1710
+ }): boolean;
1711
+ /**
1712
+ * Height to guess before the iframe reports its real height. The two-row layout
1713
+ * is a field row plus divider taller than the inline one.
1714
+ */
1715
+ declare function guessSkeletonHeightPx({ variant, width, }: {
1716
+ variant: CardFormVariant;
1717
+ width: number;
1718
+ }): number;
1719
+ /**
1720
+ * The `grid-template` to apply for the given container width. Frameworks that
1721
+ * drive the layout from JS (Vue, Angular) call this from their resize observer;
1722
+ * React instead injects a CSS container query via {@link buildSkeletonCss}.
1723
+ */
1724
+ declare function getSkeletonGridTemplate({ variant, width, }: {
1725
+ variant: CardFormVariant;
1726
+ width: number;
1727
+ }): string;
1728
+ /** Stable class name for a variant's skeleton grid element. */
1729
+ declare function getSkeletonGridClass(variant: CardFormVariant): string;
1730
+ /**
1731
+ * CSS (keyframes + grid + container-query breakpoint) for the container-query
1732
+ * driven renderer used by React, where the skeleton root is a query container.
1733
+ */
1734
+ declare function buildSkeletonCss(variant: CardFormVariant): string;
1735
+ /**
1736
+ * Padding (px) to inset the skeleton grid by, applied on the skeleton root. It
1737
+ * equals the form's own chrome — its `m-0.5` margin plus 1px border — so the
1738
+ * boxes land in the same area the real fields will, and the grid fills the root
1739
+ * exactly (no dead space that would make the boxes look too short).
1740
+ */
1741
+ declare const SKELETON_ROOT_PADDING_PX: number;
1742
+ /**
1743
+ * Inline style for each skeleton box, MINUS the `background` — the fill color is
1744
+ * theme-dependent (see {@link getSkeletonColors}) so each renderer merges it in.
1745
+ * A hairline margin keeps a subtle gap between boxes while letting them fill
1746
+ * nearly the full field height (the root padding handles the outer inset). Uses
1747
+ * string units so it renders identically in React, Vue, and Angular.
1748
+ */
1749
+ declare const SKELETON_BOX_STYLE: {
1750
+ readonly minWidth: "0";
1751
+ readonly margin: "1px";
1752
+ readonly borderRadius: "4px";
1753
+ readonly opacity: "1";
1754
+ readonly animation: "coinflow-card-form-skeleton-pulse 1.5s ease-in-out infinite";
1755
+ };
1756
+ type SkeletonColors = {
1757
+ /** Faint backdrop behind the boxes. */
1758
+ backdrop: string;
1759
+ /** Box fill. */
1760
+ box: string;
1761
+ };
1762
+ /**
1763
+ * Best-effort skeleton palette. The skeleton renders in the SDK (parent), so it
1764
+ * can't see the form's resolved colors — it only has the optional `theme` the
1765
+ * integrator passed. When `theme.background` is a parseable color we tint the
1766
+ * skeleton light-on-dark or dark-on-light to match; otherwise we fall back to a
1767
+ * neutral mid-grey that stays visible on any surface.
1768
+ */
1769
+ declare function getSkeletonColors(theme?: {
1770
+ background?: string;
1771
+ }): SkeletonColors;
1772
+
1569
1773
  declare const DEVICE_ID_HEADER = "x-device-id";
1570
1774
  declare const SESSION_ID_HEADER = "x-session-id";
1571
1775
  declare const REFERRER_HEADER = "x-coinflow-referrer";
1776
+ declare const FORTER_TOKEN_HEADER = "x-forter-token";
1572
1777
  type CoinflowProtectionHeadersType = {
1573
1778
  [DEVICE_ID_HEADER]: string | null;
1574
1779
  [SESSION_ID_HEADER]: string | null;
1780
+ [FORTER_TOKEN_HEADER]: string | null;
1575
1781
  };
1576
1782
  declare function getCoinflowProtectionHeaders(): CoinflowProtectionHeadersType;
1577
1783
  type CoinflowPurchaseHeadersType = CoinflowProtectionHeadersType & {
@@ -1584,6 +1790,16 @@ declare function initCoinflowProtection({ coinflowEnv, merchantId, }: {
1584
1790
  merchantId: string;
1585
1791
  }): Promise<void>;
1586
1792
 
1793
+ declare function getForterToken(): string | null;
1794
+ declare function captureForterToken({ timeoutMs, intervalMs, }?: {
1795
+ timeoutMs?: number;
1796
+ intervalMs?: number;
1797
+ }): void;
1798
+ declare function awaitForterToken({ timeoutMs, intervalMs, }?: {
1799
+ timeoutMs?: number;
1800
+ intervalMs?: number;
1801
+ }): Promise<string | null>;
1802
+
1587
1803
  declare class CoinflowIFrameComponent {
1588
1804
  private sanitizer;
1589
1805
  iframeProps: CoinflowIFrameProps;
@@ -1693,7 +1909,7 @@ interface CardFormArgs {
1693
1909
  merchantId: string;
1694
1910
  env?: CoinflowEnvs;
1695
1911
  theme?: MerchantTheme;
1696
- variant: 'card-form' | 'card-number-form' | 'cvv-form';
1912
+ variant: CardFormVariant;
1697
1913
  token?: string;
1698
1914
  onLoad?: () => void;
1699
1915
  }
@@ -1702,16 +1918,63 @@ interface CardFormTokenResponse {
1702
1918
  expMonth?: string;
1703
1919
  expYear?: string;
1704
1920
  }
1705
- declare class CoinflowCardForm implements OnInit {
1921
+ declare class CoinflowCardForm implements OnInit, OnDestroy {
1706
1922
  private sanitizer;
1923
+ private zone;
1707
1924
  args: CardFormArgs;
1708
1925
  iframeRef: ElementRef<HTMLIFrameElement>;
1926
+ wrapperRef: ElementRef<HTMLElement>;
1709
1927
  url?: SafeResourceUrl;
1710
1928
  loaded: boolean;
1711
1929
  iframeHeight: number | null;
1712
- constructor(sanitizer: DomSanitizer);
1930
+ private layout;
1931
+ areas: string[];
1932
+ private guessHeight;
1933
+ private gridTemplate;
1934
+ rendered: boolean;
1935
+ private observer;
1936
+ private unmountTimer;
1937
+ constructor(sanitizer: DomSanitizer, zone: NgZone);
1713
1938
  ngOnInit(): void;
1939
+ ngOnDestroy(): void;
1940
+ get height(): string;
1941
+ get skeletonRootStyle(): {
1942
+ position: string;
1943
+ top: number;
1944
+ left: number;
1945
+ width: string;
1946
+ height: string;
1947
+ display: string;
1948
+ pointerEvents: string;
1949
+ flexDirection: string;
1950
+ gap: string;
1951
+ padding: string;
1952
+ boxSizing: string;
1953
+ borderRadius: string;
1954
+ background: string;
1955
+ opacity: string;
1956
+ transition: string;
1957
+ };
1958
+ get gridStyle(): {
1959
+ display: string;
1960
+ gap: number;
1961
+ flex: number;
1962
+ width: string;
1963
+ gridTemplate: string;
1964
+ };
1965
+ get skeletonColors(): _coinflowlabs_angular.SkeletonColors;
1966
+ boxStyle(area: string): {
1967
+ background: string;
1968
+ gridArea: string;
1969
+ minWidth: "0";
1970
+ margin: "1px";
1971
+ borderRadius: "4px";
1972
+ opacity: "1";
1973
+ animation: "coinflow-card-form-skeleton-pulse 1.5s ease-in-out infinite";
1974
+ };
1714
1975
  onMessage(event: MessageEvent): void;
1976
+ onSkeletonTransitionEnd(e: TransitionEvent): void;
1977
+ private observeWidth;
1715
1978
  private buildUrl;
1716
1979
  private handleMessage;
1717
1980
  tokenize(): Promise<CardFormTokenResponse>;
@@ -1744,5 +2007,5 @@ type WithOnLoad = {
1744
2007
  onLoad?: () => void | Promise<void>;
1745
2008
  };
1746
2009
 
1747
- export { BankingCurrencies, CARD_TYPE_MAPPING, CardType, ChargebackProtectionAccountType, CoinflowApplePayButtonComponent, CoinflowCardForm, CoinflowCardFormV2, CoinflowCardNumberInput, CoinflowCardNumberOnlyInput, CoinflowCvvInputComponent, CoinflowCvvOnlyInputComponent, CoinflowGooglePayButtonComponent, CoinflowIFrameComponent, CoinflowPurchaseComponent, CoinflowPurchaseHistoryComponent, CoinflowPurchaseProtectionComponent, CoinflowUtils, CoinflowWithdrawComponent, CoinflowWithdrawHistoryComponent, Currency, CurrencyToISO4217, DEVICE_ID_HEADER, EventBus, IFrameMessageMethods, MerchantStyle, PaymentMethods, REFERRER_HEADER, RN_REDIRECT_MESSAGE_NAME, SESSION_ID_HEADER, SettlementType, ThreeDsChallengePreference, TokenExCardNumberIframeId, TokenExCvvContainerID, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, getCoinflowProtectionHeaders, getCoinflowPurchaseHeaders, getCurrencyDecimals, getCustomerName, getHandlers, getIframeConfig, getWalletPubkey, handleIFrameMessage, initCoinflowProtection, invertRate, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, isZeroAuthSavedPaymentMethods, isZeroAuthVerifyCard, nftCartItem, paymentMethodLabels, productType, recordFrontendError, setTokenExScriptTag };
1748
- export type { AccountFundingTransaction, AnyObject, ArbitrumWalletProps, AuthDeclinedWalletCallInfo, BankingCurrency, BaseWalletProps, CardFormArgs, CardFormInputStyles, CardFormTokenResponse, Cart, CartClassOmitted, CartItem, CartItemClassOmitted, Cents, ChargebackProtectionData, ChargebackProtectionItem, CoinflowArbitrumHistoryProps, CoinflowArbitrumPurchaseProps, CoinflowArbitrumWithdrawProps, CoinflowBaseHistoryProps, CoinflowBasePurchaseProps, CoinflowBaseWithdrawProps, CoinflowBlockchain, CoinflowCardNumberInputProps, CoinflowCardTokenResponse, CoinflowCommonPaymentIntentProps, CoinflowCommonPurchaseProps, CoinflowCommonWithdrawProps, CoinflowCvvOnlyInputProps, CoinflowEnvs, CoinflowEthHistoryProps, CoinflowEthPurchaseProps, CoinflowEthWithdrawProps, CoinflowEvmHistoryProps, CoinflowEvmPurchaseProps, 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, CommonDoInitializeTokenExIframeArgs, CommonEvmRedeem, CryptoCartItem, CurrencyCents, CustomerInfo, DecentRedeem, DoInitializeCvvOnlyTokenExIframeArgs, DoInitializeTokenExIframeArgs, EthWallet, EthWalletProps, EventBusCallback, EvmTransactionData, ExchangeRate, FullName, GetIFrameConfigArgs, GiftCardCartItem, IFrameMessageHandlers, KnownTokenIdRedeem, MerchantIdOrCheckoutJwt, MerchantTheme, MergeWithOptionalDiff, MonadWalletProps, NameCustomerInfo, NftCartItemClassOmitted, NormalRedeem, OnAuthDeclinedMethod, OnSuccessMethod, PartialBy, PolygonWalletProps, PurchaseCustomPayInFee, RecipientAftInfo, RemainingLimit, ReturnedTokenIdRedeem, SafeMintRedeem, SolanaWallet, SolanaWalletProps, SplitNameCustomerInfo, StellarWallet, StellarWalletProps, Subtotal, TempoWalletProps, TokenExIFrameConfiguration, TokenExIframe, TokenRedeem, TokenSubtotal, TokenizationResponse, TypedCurrencyCents, VersionDetail, WalletCall, WalletTypes, WithGeo, WithOnLoad, WithdrawCurrency, ZeroAuthSavedPaymentMethods, ZeroAuthVerifyCard, ZeroAuthorizationConfig };
2010
+ export { 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_TYPE_MAPPING, COMPACT_SKELETON_HEIGHT_PX, CardType, ChargebackProtectionAccountType, CoinflowApplePayButtonComponent, CoinflowCardForm, CoinflowCardFormV2, CoinflowCardNumberInput, CoinflowCardNumberOnlyInput, CoinflowCvvInputComponent, CoinflowCvvOnlyInputComponent, 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, TokenExCardNumberIframeId, TokenExCvvContainerID, WithdrawCategory, WithdrawCurrencies, WithdrawSpeed, awaitForterToken, buildCardEntryGridCss, buildCardEntryLayout, buildSkeletonCss, captureForterToken, doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, getCoinflowProtectionHeaders, getCoinflowPurchaseHeaders, getCurrencyDecimals, getCustomerName, getForterToken, getHandlers, getIframeConfig, getSkeletonColors, getSkeletonGridClass, getSkeletonGridTemplate, getWalletPubkey, guessSkeletonHeightPx, handleIFrameMessage, initCoinflowProtection, invertRate, isBankingCurrency, isTypedCurrencyCents, isWithdrawCurrency, isZeroAuthSavedPaymentMethods, isZeroAuthVerifyCard, nftCartItem, paymentMethodLabels, productType, recordFrontendError, setTokenExScriptTag, shouldStackSkeleton };
2011
+ export type { AccountFundingTransaction, AnyObject, ArbitrumWalletProps, AuthDeclinedWalletCallInfo, BankingCurrency, BaseWalletProps, CardEntryConfig, CardEntryDivider, CardEntryInputName, CardEntryLayout, CardFormArgs, CardFormInputStyles, CardFormTokenResponse, CardFormVariant, Cart, CartClassOmitted, CartItem, CartItemClassOmitted, Cents, ChargebackProtectionData, ChargebackProtectionItem, CoinflowArbitrumHistoryProps, CoinflowArbitrumPurchaseProps, CoinflowArbitrumWithdrawProps, CoinflowBaseHistoryProps, CoinflowBasePurchaseProps, CoinflowBaseWithdrawProps, CoinflowBlockchain, CoinflowCardNumberInputProps, CoinflowCardTokenResponse, CoinflowCommonPaymentIntentProps, CoinflowCommonPurchaseProps, CoinflowCommonWithdrawProps, CoinflowCvvOnlyInputProps, CoinflowEnvs, CoinflowEthHistoryProps, CoinflowEthPurchaseProps, CoinflowEthWithdrawProps, CoinflowEvmHistoryProps, CoinflowEvmPurchaseProps, 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, CommonDoInitializeTokenExIframeArgs, CommonEvmRedeem, CryptoCartItem, CurrencyCents, CustomerInfo, DecentRedeem, DoInitializeCvvOnlyTokenExIframeArgs, DoInitializeTokenExIframeArgs, EthWallet, EthWalletProps, EventBusCallback, EvmTransactionData, ExchangeRate, FullName, GetIFrameConfigArgs, GiftCardCartItem, IFrameMessageHandlers, KnownTokenIdRedeem, MerchantIdOrCheckoutJwt, MerchantTheme, MergeWithOptionalDiff, MonadWalletProps, NameCustomerInfo, NftCartItemClassOmitted, NormalRedeem, OnAuthDeclinedMethod, OnSuccessMethod, PartialBy, PolygonWalletProps, PurchaseCustomPayInFee, RecipientAftInfo, RemainingLimit, ReturnedTokenIdRedeem, SafeMintRedeem, SkeletonColors, SkeletonLayout, SolanaWallet, SolanaWalletProps, SplitNameCustomerInfo, StellarWallet, StellarWalletProps, Subtotal, TempoWalletProps, TokenExIFrameConfiguration, TokenExIframe, TokenRedeem, TokenSubtotal, TokenizationResponse, TypedCurrencyCents, VersionDetail, WalletCall, WalletTypes, WithGeo, WithOnLoad, WithdrawCurrency, ZeroAuthSavedPaymentMethods, ZeroAuthVerifyCard, ZeroAuthorizationConfig };