@flopay/shared 1.16.6 → 1.17.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/README.md CHANGED
@@ -186,7 +186,7 @@ try {
186
186
  | `ExternalMethodFailureDetails` | Optional bounded diagnostics for an external-method failure: sanitized provider code, popup-block status, normalized browser family, mount-lifetime popup capability, and presentation mode |
187
187
  | `VaultSubmitButtonTheme` | Complete, bounded snapshot for the hosted submit control (billing API v1.9.6+): `foregroundColor`, `background` / `hoverBackground` / `disabledBackground` (`VaultSubmitBackground`), `typography` (`VaultSubmitTypography`), `spacing` (`VaultSubmitSpacing`), `shadow` (zero to four `VaultShadowLayer` values), `borderRadius`, `disabledOpacity`, `backdropBlur`. Structured values only, never raw CSS: the hosted form ignores an invalid or out-of-range member, and theme input never blocks capture. |
188
188
  | `VaultSubmitBackground` | `VaultSolidBackground` (`{ type: 'solid', color }`) or `VaultLinearGradientBackground` (`{ type: 'linearGradient', angle, stops }` with two to five `VaultGradientStop` values in non-decreasing order). Colors are `VaultThemeColor`: `#RRGGBB`, integer-channel `rgb()`, or `rgba()` with alpha `0..1`. |
189
- | `CardCaptureAdapter` | Hosted card-capture abstraction the React card surfaces depend on: `mount()`, `on()`, `unmount()`, plus the optional live controls `applyTheme(theme \| null)` (`null` is the explicit classic reset), `setSubmitGate()`, `setCardFieldOrder()`, and `setSubmitLabel(label \| null)` (hosted submit wording, billing API v1.9.35+; `null` resets to the session default, `CONFIRM PAYMENT` or `ADD CARD`; retained and replayed on every `'ready'` event, and posted only to the exact `VaultCaptureBlock.expectedOrigin` with its `VaultCaptureBlock.messageToken`). `CardCaptureMountOptions.submitLabel` sets the initial wording. |
189
+ | `CardCaptureAdapter` | Hosted card-capture abstraction the React card surfaces depend on: `mount()`, `on()`, `unmount()`, plus the optional live controls `applyTheme(theme \| null)` (`null` is the explicit classic reset), `setSubmitGate()`, `setCardFieldOrder()`, `setCardBrandIcons(show)` (shows the Visa, Mastercard, Amex and Discover icons in the hosted card number field; off by default, retained and replayed on every `'ready'` event), and `setSubmitLabel(label \| null)` (hosted submit wording, billing API v1.9.35+; `null` resets to the session default, `CONFIRM PAYMENT` or `ADD CARD`; retained and replayed on every `'ready'` event, and posted only to the exact `VaultCaptureBlock.expectedOrigin` with its `VaultCaptureBlock.messageToken`). `CardCaptureMountOptions.submitLabel` sets the initial wording. |
190
190
  | `CheckoutMode` | Checkout mode: `'full'` / `'auto'` / `'confirm'` |
191
191
  | `CheckoutSessionMode` | Mode accepted on session reads: any `CheckoutMode` plus `'setup'`. Browser session-creation types deliberately reject `'setup'`. |
192
192
  | `CheckoutMetadata` | Caller-owned checkout snapshot: `Record<string, string>`. Creation accepts this shape or `null`; session reads contain the map only when the billing API returns it. |
@@ -1,6 +1,6 @@
1
1
  import type { AVSFieldConfig, ButtonsLayoutStyles, ButtonsLayoutTheme, CountryOption, CurrencyInfo, FloPayAppearance, ThemeBundle, ThemeBundleId, ThemeId } from './types.js';
2
2
  /** Current SDK version. */
3
- export declare const SDK_VERSION = "1.16.6";
3
+ export declare const SDK_VERSION = "1.17.0";
4
4
  /**
5
5
  * HTTP header the SDK sends on checkout-session create/read requests so the
6
6
  * backend can observe compatibility. Version 1.4.9 is the first release that