@openreceive/react 0.3.0 → 0.3.2

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
@@ -244,6 +244,14 @@ interface PaymentWizardProps {
244
244
  * back to posting the refund itself and carrying the staging locally.
245
245
  */
246
246
  readonly swapRefund?: SwapRefundStaging;
247
+ /**
248
+ * Whether this checkout has a URL the payer can come BACK to — `<Checkout
249
+ * syncUrl>`, or a host route of its own that carries the order. It decides
250
+ * which of the two refund-return warnings the deposit panel shows; see
251
+ * `SwapDisplayModel.refundReturnLabel`. Defaults to false, so a payer is
252
+ * never told to bookmark a page that will not bring them back.
253
+ */
254
+ readonly resumable?: boolean;
247
255
  readonly onError?: (error: unknown) => void;
248
256
  /**
249
257
  * Called when the payer enters or leaves the focused swap flow (a pay-in coin is
@@ -322,6 +330,8 @@ declare function renderSwapDepositPanel(options: {
322
330
  readonly onError?: (error: unknown) => void;
323
331
  readonly onRefund: (attemptId: string, refundAddress: string, confirm: boolean) => Promise<void>;
324
332
  readonly onBackToLightning: () => void;
333
+ /** Does this checkout have a URL to return to? See `refundReturnLabel`. */
334
+ readonly resumable?: boolean;
325
335
  }): React.ReactElement | null;
326
336
 
327
337
  declare function useTheme(options?: UseThemeOptions): UseThemeResult;