@flopay/react 1.14.4 → 1.14.6

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.
Files changed (46) hide show
  1. package/README.md +50 -2
  2. package/dist/automatic-payment-button.d.ts +81 -0
  3. package/dist/buyer-identity-fallback.d.ts +43 -0
  4. package/dist/card-button-content.d.ts +11 -0
  5. package/dist/card-setup-entry.d.ts +10 -104
  6. package/dist/card-setup-surface.d.ts +12 -0
  7. package/dist/card-setup-theme.d.ts +32 -0
  8. package/dist/checkout-utils.d.ts +163 -0
  9. package/dist/context.d.ts +46 -0
  10. package/dist/direct-paypal-button.d.ts +155 -0
  11. package/dist/error-banner.d.ts +21 -0
  12. package/dist/external-method-recovery.d.ts +1 -0
  13. package/dist/external-method-telemetry.d.ts +17 -0
  14. package/dist/{card-setup-entry.d.cts → flopay-card-setup.d.ts} +19 -11
  15. package/dist/flopay-checkout.d.ts +239 -0
  16. package/dist/flopay-payment-method-setup-main.d.ts +10 -0
  17. package/dist/flopay-payment-method-setup.d.ts +11 -0
  18. package/dist/hooks.d.ts +36 -0
  19. package/dist/in-app-browser.d.ts +5 -0
  20. package/dist/index.d.ts +20 -921
  21. package/dist/inline-session-cache.d.ts +1 -0
  22. package/dist/instruments.d.ts +5 -0
  23. package/dist/merchant-callback.d.ts +1 -0
  24. package/dist/payment-logos.generated.d.ts +1 -0
  25. package/dist/payment-method-setup-advertisement.d.ts +36 -0
  26. package/dist/payment-method-setup-entry.d.ts +12 -14
  27. package/dist/payment-method-setup-paypal.d.ts +25 -0
  28. package/dist/payment-method-setup-stripe.d.ts +31 -0
  29. package/dist/{payment-method-setup-surface-DWGNLM0I.d.cts → payment-method-setup-surface.d.ts} +27 -9
  30. package/dist/popup-capability.d.ts +12 -0
  31. package/dist/processing-overlay.d.ts +33 -0
  32. package/dist/provider.d.ts +40 -0
  33. package/dist/recent-completion.d.ts +1 -0
  34. package/dist/run-latest-abortable-action.d.ts +5 -0
  35. package/dist/saved-payment-flow.d.ts +124 -0
  36. package/dist/split-card-form.d.ts +319 -0
  37. package/dist/stripe-method-presentation.d.ts +115 -0
  38. package/dist/telemetry-bridge.d.ts +41 -0
  39. package/dist/use-external-attempt-reconciliation.d.ts +27 -0
  40. package/dist/use-isomorphic-layout-effect.d.ts +3 -0
  41. package/dist/vault-card-fields.d.ts +95 -0
  42. package/dist/vault-theme.d.ts +1 -0
  43. package/package.json +6 -6
  44. package/dist/index.d.cts +0 -921
  45. package/dist/payment-method-setup-entry.d.cts +0 -16
  46. package/dist/payment-method-setup-surface-B9TI-00C.d.ts +0 -72
@@ -1,16 +0,0 @@
1
- export { FloPayCardSetupError } from './card-setup-entry.cjs';
2
- import React from 'react';
3
- import { F as FloPayPaymentMethodSetupProps } from './payment-method-setup-surface-DWGNLM0I.cjs';
4
- export { a as FloPayPaymentMethodSetupCancelEvent, b as FloPayPaymentMethodSetupCompleteEvent, c as FloPayPaymentMethodSetupDeclineEvent } from './payment-method-setup-surface-DWGNLM0I.cjs';
5
- import '@flopay/shared';
6
-
7
- /**
8
- * Renders every payment method a setup session advertises — the hosted card
9
- * widget, Stripe wallets/APMs in setup mode, and the PayPal vault flow — and
10
- * saves the buyer's choice without a purchase. The advertisement is the single
11
- * source of truth. A card-only session behaves exactly like `FloPayCardSetup`
12
- * and never requests Stripe.js.
13
- */
14
- declare function FloPayPaymentMethodSetup(props: FloPayPaymentMethodSetupProps): React.ReactElement;
15
-
16
- export { FloPayPaymentMethodSetup, FloPayPaymentMethodSetupProps };
@@ -1,72 +0,0 @@
1
- import { ThemeId, VaultCardThemeColors, FloPayAppearance, ButtonsLayoutStyles } from '@flopay/shared';
2
- import React from 'react';
3
- import { FloPayCardSetupCompleteEvent, FloPayCardSetupDeclineEvent, FloPayCardSetupCancelEvent, FloPayCardSetupError } from './card-setup-entry.js';
4
-
5
- /** Verified terminal result from a no-charge payment-method setup. */
6
- type FloPayPaymentMethodSetupCompleteEvent = FloPayCardSetupCompleteEvent;
7
- /** Provider-neutral terminal decline from payment-method verification. */
8
- type FloPayPaymentMethodSetupDeclineEvent = FloPayCardSetupDeclineEvent;
9
- /** Abandoned setup result emitted when the surface unmounts pre-terminally. */
10
- type FloPayPaymentMethodSetupCancelEvent = FloPayCardSetupCancelEvent;
11
- /** Props for the browser-only payment-method setup surface. */
12
- interface FloPayPaymentMethodSetupProps {
13
- /** Opaque id returned by the merchant-authenticated setup-session endpoint. */
14
- sessionId: string;
15
- /** Session-bound token returned alongside {@link FloPayPaymentMethodSetupProps.sessionId}. */
16
- nonce: string;
17
- /** Billing API base URL. Defaults to the configured FloPay environment URL. */
18
- billingApiUrl?: string;
19
- /** Flo-owned privacy-safe telemetry is enabled by default; set false to opt out. */
20
- telemetry?: boolean;
21
- /**
22
- * The same {@link ThemeId} bundle `FloPayCheckout` and `FloPayCardSetup`
23
- * resolve, or raw {@link VaultCardThemeColors} for the hosted card widget.
24
- * A preset also themes the Stripe wallets, APM tiles and the outcome
25
- * overlay. Defaults to `'modern-light'`, which an unrecognized preset id
26
- * also falls back to; pass `'classic'` for the historic FloPay look.
27
- */
28
- theme?: ThemeId | VaultCardThemeColors;
29
- /**
30
- * Inline styles for the hosted card-widget container, with the same
31
- * precedence over the preset's pane surface (and a stored
32
- * `buttonsStyles.cardFormContainer`) as `FloPayCardSetup`.
33
- */
34
- containerStyle?: React.CSSProperties;
35
- /**
36
- * Appearance override, the same prop and type as `FloPayCheckout`'s and
37
- * `FloPayCardSetup`'s (for example a client's saved embed theme
38
- * `appearance`). It replaces the preset's appearance outright, as checkout
39
- * does: its variables drive the hosted card fields and submit button, the
40
- * Stripe Elements of every wallet and APM (`appearance`), the method tiles'
41
- * radius, their save buttons, and the outcome overlay. Ignored with raw
42
- * {@link VaultCardThemeColors}; an empty `{}` is the same as omitting it.
43
- */
44
- appearance?: FloPayAppearance;
45
- /**
46
- * Buttons-layout style overrides, the same prop and type as
47
- * `FloPayCheckout`'s and `FloPayCardSetup`'s (for example a client's saved
48
- * embed theme `buttonsStyles`), merged over the preset's buttons layout the
49
- * way checkout merges them. `submitButton` and the `cardInput*` members style
50
- * the hosted card form; `cardButton`, `cardInputBorder` and `submitButton`
51
- * the APM tiles and their save buttons; `cardFormContainer` the pane around
52
- * the card form and the outcome overlay's panel. Ignored with raw
53
- * {@link VaultCardThemeColors}; an empty `{}` is the same as omitting it.
54
- */
55
- buttonsStyles?: ButtonsLayoutStyles;
56
- /** Optional content shown while the session and methods are loading. */
57
- loading?: React.ReactNode;
58
- /** Fired once the hosted card widget has mounted and can accept card input. */
59
- onReady?: () => void;
60
- /** Fired only after the backend reports that the method is verified and usable. */
61
- onComplete?: (event: FloPayPaymentMethodSetupCompleteEvent) => void;
62
- /** Fired when verification terminally declines; never paired with `onComplete`. */
63
- onDecline?: (event: FloPayPaymentMethodSetupDeclineEvent) => void;
64
- /** Fired exactly once if the surface unmounts before a terminal outcome. */
65
- onCancel?: (event: FloPayPaymentMethodSetupCancelEvent) => void;
66
- /** Live validation message, or `null` when validation clears. */
67
- onValidation?: (message: string | null) => void;
68
- /** Fired for session validation, transport, provider or widget failures. */
69
- onError?: (error: FloPayCardSetupError) => void;
70
- }
71
-
72
- export type { FloPayPaymentMethodSetupProps as F, FloPayPaymentMethodSetupCancelEvent as a, FloPayPaymentMethodSetupCompleteEvent as b, FloPayPaymentMethodSetupDeclineEvent as c };