@fractalpay/fractalpay-next-dev 0.0.296 → 0.0.298

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.ts CHANGED
@@ -51,6 +51,10 @@ type Props$6 = {
51
51
  isReader?: boolean;
52
52
  sessionToken?: string;
53
53
  bankFeeAmount?: string;
54
+ isPreAuth?: boolean;
55
+ preauthId?: string;
56
+ onTriggerPay?: (fn: () => void) => void;
57
+ showButton?: boolean;
54
58
  };
55
59
  declare function GetPaymentPage(props: Props$6): React.JSX.Element;
56
60
 
@@ -70,7 +74,14 @@ type Props$5 = {
70
74
  showButton?: boolean;
71
75
  sessionToken?: string;
72
76
  };
73
- declare function PreAuthPayment({ showButton, ...props }: Props$5): React.JSX.Element;
77
+ /**
78
+ * PreAuthPayment is now a thin alias over the unified GetPaymentPage widget:
79
+ * passing `isPreAuth` runs the authorize/hold flow (authorize-by-card /
80
+ * fractal-charge-preauth / charge-preauth) instead of a charge, hides the bank
81
+ * tab, and switches the copy to "Authorize". Kept as a separate export so existing
82
+ * host integrations that import PreAuthPayment keep working unchanged.
83
+ */
84
+ declare function PreAuthPayment(props: Props$5): React.JSX.Element;
74
85
 
75
86
  type Props$4 = {
76
87
  merchantPublicKey: string;