@flopay/react 1.4.16 → 1.4.18

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
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { FloPay, FloPayElements } from '@flopay/js';
3
3
  import * as _flopay_shared from '@flopay/shared';
4
4
  import { FloPayAppearance, InlineSessionDraft, FloPayError, PaymentResult, DeclineEvent, CheckoutButtonMethod, BeforeButtonClickEvent, InlineSessionPatch, CheckoutMode, CheckoutSession, ElementOptions, ElementChangeEvent, TokenizedBody, AVSFieldConfig, GatewayEnvironment, CardCaptureAdapter, VaultCardThemeColors, CheckoutProduct, CheckoutItem, CheckoutSubscription, ThemeId, ButtonsLayoutTheme, ButtonsLayoutStyles } from '@flopay/shared';
5
- export { BeforeButtonClickEvent, CheckoutButtonMethod, DeclineEvent, InlineSessionDraft, InlineSessionPatch } from '@flopay/shared';
5
+ export { BeforeButtonClickEvent, CheckoutButtonMethod, DeclineEvent, InlineSessionDraft, InlineSessionPatch, SentryEventLike, SentryStackFrameLike, dropThirdPartyOnlyError } from '@flopay/shared';
6
6
 
7
7
  /** Props for the `FloPayProvider` component. */
8
8
  interface FloPayProviderProps {
@@ -289,6 +289,8 @@ interface CheckoutState {
289
289
  session: CheckoutSession | null;
290
290
  loading: boolean;
291
291
  error: FloPayError | null;
292
+ /** True while a detached session shell is not yet safe to charge. */
293
+ claimPending?: boolean;
292
294
  }
293
295
  /**
294
296
  * Returns the current checkout session state.
@@ -340,7 +342,6 @@ declare const PaymentElement: React.FC<PaymentElementProps>;
340
342
  declare const AddressElement: React.FC<ElementComponentProps>;
341
343
 
342
344
  type MaybePromise<T> = T | Promise<T>;
343
- /** Props for the `SplitCardForm` component. */
344
345
  interface SplitCardFormProps {
345
346
  /** The checkout session ID (UUID from billing API). */
346
347
  sessionId: string;
@@ -549,6 +550,19 @@ interface SplitCardFormProps {
549
550
  isSubscription?: boolean;
550
551
  /** Backing session — forwarded to direct-PayPal so it can populate accountData. */
551
552
  session?: CheckoutSession | null;
553
+ /**
554
+ * True while a **detached** session's background claim is still in flight
555
+ * (TeamFloPay/backend#1099).
556
+ *
557
+ * The hosted card widget is already mounted and the buyer can fill it in, but
558
+ * the session has no cart attached yet, so nothing may be submitted: the
559
+ * billing API rejects process / intent calls on an unclaimed session with
560
+ * `409 checkout_session_data_attachment_required`, and holds an unclaimed
561
+ * vault charge with a retryable `503`. While true, the card submit is gated
562
+ * and the non-card surfaces stay hidden; all of them enable together the
563
+ * moment the claim lands. `FloPayCheckout` plumbs this prop automatically.
564
+ */
565
+ dataAttachmentPending?: boolean;
552
566
  /**
553
567
  * Enables on-screen diagnostic panels for the PayPal/wallet gating decision
554
568
  * and the `DirectPayPalButton` lifecycle. Intended for debugging in-app
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { FloPay, FloPayElements } from '@flopay/js';
3
3
  import * as _flopay_shared from '@flopay/shared';
4
4
  import { FloPayAppearance, InlineSessionDraft, FloPayError, PaymentResult, DeclineEvent, CheckoutButtonMethod, BeforeButtonClickEvent, InlineSessionPatch, CheckoutMode, CheckoutSession, ElementOptions, ElementChangeEvent, TokenizedBody, AVSFieldConfig, GatewayEnvironment, CardCaptureAdapter, VaultCardThemeColors, CheckoutProduct, CheckoutItem, CheckoutSubscription, ThemeId, ButtonsLayoutTheme, ButtonsLayoutStyles } from '@flopay/shared';
5
- export { BeforeButtonClickEvent, CheckoutButtonMethod, DeclineEvent, InlineSessionDraft, InlineSessionPatch } from '@flopay/shared';
5
+ export { BeforeButtonClickEvent, CheckoutButtonMethod, DeclineEvent, InlineSessionDraft, InlineSessionPatch, SentryEventLike, SentryStackFrameLike, dropThirdPartyOnlyError } from '@flopay/shared';
6
6
 
7
7
  /** Props for the `FloPayProvider` component. */
8
8
  interface FloPayProviderProps {
@@ -289,6 +289,8 @@ interface CheckoutState {
289
289
  session: CheckoutSession | null;
290
290
  loading: boolean;
291
291
  error: FloPayError | null;
292
+ /** True while a detached session shell is not yet safe to charge. */
293
+ claimPending?: boolean;
292
294
  }
293
295
  /**
294
296
  * Returns the current checkout session state.
@@ -340,7 +342,6 @@ declare const PaymentElement: React.FC<PaymentElementProps>;
340
342
  declare const AddressElement: React.FC<ElementComponentProps>;
341
343
 
342
344
  type MaybePromise<T> = T | Promise<T>;
343
- /** Props for the `SplitCardForm` component. */
344
345
  interface SplitCardFormProps {
345
346
  /** The checkout session ID (UUID from billing API). */
346
347
  sessionId: string;
@@ -549,6 +550,19 @@ interface SplitCardFormProps {
549
550
  isSubscription?: boolean;
550
551
  /** Backing session — forwarded to direct-PayPal so it can populate accountData. */
551
552
  session?: CheckoutSession | null;
553
+ /**
554
+ * True while a **detached** session's background claim is still in flight
555
+ * (TeamFloPay/backend#1099).
556
+ *
557
+ * The hosted card widget is already mounted and the buyer can fill it in, but
558
+ * the session has no cart attached yet, so nothing may be submitted: the
559
+ * billing API rejects process / intent calls on an unclaimed session with
560
+ * `409 checkout_session_data_attachment_required`, and holds an unclaimed
561
+ * vault charge with a retryable `503`. While true, the card submit is gated
562
+ * and the non-card surfaces stay hidden; all of them enable together the
563
+ * moment the claim lands. `FloPayCheckout` plumbs this prop automatically.
564
+ */
565
+ dataAttachmentPending?: boolean;
552
566
  /**
553
567
  * Enables on-screen diagnostic panels for the PayPal/wallet gating decision
554
568
  * and the `DirectPayPalButton` lifecycle. Intended for debugging in-app