@flopay/react 1.14.10 → 1.14.12

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.
@@ -1,4 +1,4 @@
1
- import type { FloPay, SavedCardChallengeInput, SavedCardChallengeOutcome } from '@flopay/js';
1
+ import type { FloPay, SavedCardChallengeInput, SavedCardChallengeOutcome, ThreeDsChallengeAttempt } from '@flopay/js';
2
2
  import type { CheckoutButtonMethod, CheckoutProcessError, CheckoutSession, NormalizedCheckoutSession, PaymentResult, TelemetryExpectedOutcome, TelemetryFailureCategory, TelemetryRequestCategory, TokenizedBody } from '@flopay/shared';
3
3
  import { FloPayError } from '@flopay/shared';
4
4
  export declare const DEFAULT_SAVED_PAYMENT_DECLINE_METHOD: CheckoutButtonMethod;
@@ -47,6 +47,22 @@ type ProviderNeutralActionInput = {
47
47
  * telemetry for this flow (FloPayCheckout) leave it off.
48
48
  */
49
49
  telemetry?: boolean;
50
+ /**
51
+ * The challenge's lifecycle recorder (`three_ds.challenge`, #525), begun by the calling
52
+ * component on its own `PaymentAPI` with `beginSavedCardChallengeTelemetry`. Observation only.
53
+ */
54
+ challengeTelemetry?: ThreeDsChallengeAttempt;
55
+ };
56
+ /**
57
+ * Begin a component-owned saved-card challenge's lifecycle recorder (#525) on a dedicated
58
+ * `PaymentAPI` client. Pass `telemetry` to {@link completeProviderNeutralSavedPaymentAction} as
59
+ * `challengeTelemetry` and call `release` once the action settles: it destroys the client on
60
+ * the next task, after the runner's teardown record, so the reporter drains what it queued. With
61
+ * the merchant's telemetry off, or when recording cannot start, nothing is created or released.
62
+ */
63
+ export declare function beginComponentChallengeTelemetry(billingApiUrl: string, sessionId: string, session: CheckoutSession, enabled?: boolean): {
64
+ telemetry?: ThreeDsChallengeAttempt;
65
+ release: () => void;
50
66
  };
51
67
  /** Complete a backend-owned saved-card challenge without loading a browser payment provider. */
52
68
  export declare function completeProviderNeutralSavedPaymentAction(action: ProviderNeutralNextAction, input: ProviderNeutralActionInput): Promise<PaymentResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flopay/react",
3
- "version": "1.14.10",
3
+ "version": "1.14.12",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "publishConfig": {
@@ -36,11 +36,11 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@flopay/js": "1.14.10",
40
- "@flopay/shared": "1.14.10",
39
+ "@flopay/js": "1.14.12",
40
+ "@flopay/shared": "1.14.12",
41
41
  "@paypal/paypal-js": "^10.1.0",
42
42
  "@stripe/react-stripe-js": "^7.0.1",
43
- "@stripe/stripe-js": "^10.2.1"
43
+ "@stripe/stripe-js": "^10.3.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=18.0.0",