@flopay/react 1.4.21 → 1.4.23

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
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { FloPay, FloPayElements } from '@flopay/js';
3
3
  import * as _flopay_shared from '@flopay/shared';
4
- import { FloPayAppearance, InlineSessionDraft, FloPayError, PaymentResult, DeclineEvent, CheckoutButtonMethod, BeforeButtonClickEvent, InlineSessionPatch, CheckoutMode, CheckoutSession, ElementOptions, ElementChangeEvent, TokenizedBody, AVSFieldConfig, GatewayEnvironment, CardCaptureAdapter, VaultCardThemeColors, SavedCardDisplay, FloPayErrorType, CheckoutProduct, CheckoutItem, CheckoutSubscription, ThemeId, ButtonsLayoutTheme, ButtonsLayoutStyles } from '@flopay/shared';
4
+ import { FloPayAppearance, InlineSessionDraft, FloPayError, PaymentResult, DeclineEvent, CheckoutButtonMethod, BeforeButtonClickEvent, InlineSessionPatch, CheckoutMode, CheckoutSession, ElementOptions, ElementChangeEvent, TokenizedBody, AVSFieldConfig, GatewayEnvironment, CardCaptureAdapter, VaultCardThemeColors, ThemeId, SavedCardDisplay, FloPayErrorType, CheckoutProduct, CheckoutItem, CheckoutSubscription, ButtonsLayoutTheme, ButtonsLayoutStyles } from '@flopay/shared';
5
5
  export { BeforeButtonClickEvent, CheckoutButtonMethod, DeclineEvent, InlineSessionDraft, InlineSessionPatch, SentryEventLike, SentryStackFrameLike, dropThirdPartyOnlyError } from '@flopay/shared';
6
6
 
7
7
  /** Props for the `FloPayProvider` component. */
@@ -342,6 +342,7 @@ declare const PaymentElement: React.FC<PaymentElementProps>;
342
342
  declare const AddressElement: React.FC<ElementComponentProps>;
343
343
 
344
344
  type MaybePromise<T> = T | Promise<T>;
345
+
345
346
  interface SplitCardFormProps {
346
347
  /** The checkout session ID (UUID from billing API). */
347
348
  sessionId: string;
@@ -678,8 +679,14 @@ interface FloPayCardSetupProps {
678
679
  billingApiUrl?: string;
679
680
  /** Flo-owned privacy-safe telemetry is enabled by default; set false to opt out. */
680
681
  telemetry?: boolean;
681
- /** Theme colors pushed into FloPay's hosted, PCI-compliant card widget. */
682
- theme?: VaultCardThemeColors;
682
+ /**
683
+ * Theme for FloPay's hosted, PCI-compliant card widget. Accepts the same
684
+ * high-level {@link ThemeId} as `FloPayCheckout` (resolved through the same
685
+ * bundle, so one value styles both surfaces identically) or raw
686
+ * {@link VaultCardThemeColors} for full manual control. Defaults to
687
+ * `'modern-light'`; pass `'classic'` for the historic FloPay look.
688
+ */
689
+ theme?: ThemeId | VaultCardThemeColors;
683
690
  /** Inline styles for the hosted-widget container. */
684
691
  containerStyle?: React.CSSProperties;
685
692
  /** Optional content shown while the session and hosted widget are loading. */
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { FloPay, FloPayElements } from '@flopay/js';
3
3
  import * as _flopay_shared from '@flopay/shared';
4
- import { FloPayAppearance, InlineSessionDraft, FloPayError, PaymentResult, DeclineEvent, CheckoutButtonMethod, BeforeButtonClickEvent, InlineSessionPatch, CheckoutMode, CheckoutSession, ElementOptions, ElementChangeEvent, TokenizedBody, AVSFieldConfig, GatewayEnvironment, CardCaptureAdapter, VaultCardThemeColors, SavedCardDisplay, FloPayErrorType, CheckoutProduct, CheckoutItem, CheckoutSubscription, ThemeId, ButtonsLayoutTheme, ButtonsLayoutStyles } from '@flopay/shared';
4
+ import { FloPayAppearance, InlineSessionDraft, FloPayError, PaymentResult, DeclineEvent, CheckoutButtonMethod, BeforeButtonClickEvent, InlineSessionPatch, CheckoutMode, CheckoutSession, ElementOptions, ElementChangeEvent, TokenizedBody, AVSFieldConfig, GatewayEnvironment, CardCaptureAdapter, VaultCardThemeColors, ThemeId, SavedCardDisplay, FloPayErrorType, CheckoutProduct, CheckoutItem, CheckoutSubscription, ButtonsLayoutTheme, ButtonsLayoutStyles } from '@flopay/shared';
5
5
  export { BeforeButtonClickEvent, CheckoutButtonMethod, DeclineEvent, InlineSessionDraft, InlineSessionPatch, SentryEventLike, SentryStackFrameLike, dropThirdPartyOnlyError } from '@flopay/shared';
6
6
 
7
7
  /** Props for the `FloPayProvider` component. */
@@ -342,6 +342,7 @@ declare const PaymentElement: React.FC<PaymentElementProps>;
342
342
  declare const AddressElement: React.FC<ElementComponentProps>;
343
343
 
344
344
  type MaybePromise<T> = T | Promise<T>;
345
+
345
346
  interface SplitCardFormProps {
346
347
  /** The checkout session ID (UUID from billing API). */
347
348
  sessionId: string;
@@ -678,8 +679,14 @@ interface FloPayCardSetupProps {
678
679
  billingApiUrl?: string;
679
680
  /** Flo-owned privacy-safe telemetry is enabled by default; set false to opt out. */
680
681
  telemetry?: boolean;
681
- /** Theme colors pushed into FloPay's hosted, PCI-compliant card widget. */
682
- theme?: VaultCardThemeColors;
682
+ /**
683
+ * Theme for FloPay's hosted, PCI-compliant card widget. Accepts the same
684
+ * high-level {@link ThemeId} as `FloPayCheckout` (resolved through the same
685
+ * bundle, so one value styles both surfaces identically) or raw
686
+ * {@link VaultCardThemeColors} for full manual control. Defaults to
687
+ * `'modern-light'`; pass `'classic'` for the historic FloPay look.
688
+ */
689
+ theme?: ThemeId | VaultCardThemeColors;
683
690
  /** Inline styles for the hosted-widget container. */
684
691
  containerStyle?: React.CSSProperties;
685
692
  /** Optional content shown while the session and hosted widget are loading. */