@flopay/react 1.16.3 → 1.16.4

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.
@@ -264,6 +264,18 @@ export interface SplitCardFormProps {
264
264
  * the default, which never focuses the card over fields rendered above it.
265
265
  */
266
266
  cardAutoFocus?: boolean;
267
+ /**
268
+ * The hosted card fields are on screen and the buyer can type in them. Once per card
269
+ * form, with the milliseconds since the form mounted.
270
+ */
271
+ onCardFieldsReady?: (event: import('@flopay/shared').CardFieldsReadyEvent) => void;
272
+ /**
273
+ * The hosted card fields failed to load (`load_error`, `blocked`, `other`) or were not
274
+ * ready within `cardFieldsTimeoutMs` (`timeout`). Not a declined or failed payment.
275
+ */
276
+ onCardFieldsFailed?: (event: import('@flopay/shared').CardFieldsFailedEvent) => void;
277
+ /** Milliseconds the card fields may take to become ready before `timeout` (default 15 000). */
278
+ cardFieldsTimeoutMs?: number;
267
279
  /** Content rendered above the hosted vault card widget (below the wallet divider). */
268
280
  cardPreFormSlot?: React.ReactNode;
269
281
  /** Layout for AVS fields: 'row' (side-by-side, default) or 'column' (stacked). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flopay/react",
3
- "version": "1.16.3",
3
+ "version": "1.16.4",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "publishConfig": {
@@ -36,8 +36,8 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@flopay/js": "1.16.3",
40
- "@flopay/shared": "1.16.3",
39
+ "@flopay/js": "1.16.4",
40
+ "@flopay/shared": "1.16.4",
41
41
  "@paypal/paypal-js": "^11.3.0",
42
42
  "@stripe/react-stripe-js": "^7.0.1",
43
43
  "@stripe/stripe-js": "^10.3.0"