@forgeroute/ui 0.5.17 → 0.5.19

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.
Files changed (35) hide show
  1. package/fesm2022/forgeroute-ui-boards.mjs +2 -2
  2. package/fesm2022/forgeroute-ui-boards.mjs.map +1 -1
  3. package/fesm2022/forgeroute-ui-chip.mjs +25 -6
  4. package/fesm2022/forgeroute-ui-chip.mjs.map +1 -1
  5. package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs → forgeroute-ui-core-ui-labels.es-ChTmqFlw.mjs} +216 -5
  6. package/fesm2022/forgeroute-ui-core-ui-labels.es-ChTmqFlw.mjs.map +1 -0
  7. package/fesm2022/forgeroute-ui-core.mjs +273 -14
  8. package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
  9. package/fesm2022/forgeroute-ui-data-table-core.mjs +217 -26
  10. package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -1
  11. package/fesm2022/forgeroute-ui-messaging.mjs +19 -2
  12. package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
  13. package/fesm2022/forgeroute-ui-more-menu.mjs +61 -8
  14. package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -1
  15. package/fesm2022/forgeroute-ui-multi-select.mjs +2 -1
  16. package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -1
  17. package/fesm2022/forgeroute-ui-payments.mjs +884 -56
  18. package/fesm2022/forgeroute-ui-payments.mjs.map +1 -1
  19. package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
  20. package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
  21. package/fesm2022/forgeroute-ui-stripe.mjs +6986 -1190
  22. package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
  23. package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -1
  24. package/package.json +6 -2
  25. package/types/forgeroute-ui-chip.d.ts +11 -1
  26. package/types/forgeroute-ui-core.d.ts +244 -7
  27. package/types/forgeroute-ui-data-table-core.d.ts +60 -1
  28. package/types/forgeroute-ui-messaging.d.ts +15 -5
  29. package/types/forgeroute-ui-more-menu.d.ts +7 -0
  30. package/types/forgeroute-ui-payments.d.ts +340 -8
  31. package/types/forgeroute-ui-quickbooks.d.ts +3 -3
  32. package/types/forgeroute-ui-square.d.ts +3 -3
  33. package/types/forgeroute-ui-stripe.d.ts +1726 -5
  34. package/types/forgeroute-ui-table-types.d.ts +29 -0
  35. package/fesm2022/forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { SelectOption } from "@forgeroute/ui/select";
2
2
  import { UiFieldValidity, UiLabelKey, UiLabelsService } from "@forgeroute/ui/core";
3
3
  import * as i0 from "@angular/core";
4
- import { DestroyRef, InjectionToken, Signal, TemplateRef } from "@angular/core";
4
+ import { DestroyRef, InjectionToken, OnDestroy, OnInit, Signal, TemplateRef, Type, ViewContainerRef } from "@angular/core";
5
5
  import { Observable } from "rxjs";
6
6
  import { PanelInfoSection } from "@forgeroute/ui/panel-info-list";
7
7
  import { RadioOption } from "@forgeroute/ui/radio";
@@ -249,6 +249,71 @@ type PaymentPanelOutcome = {
249
249
  stage: 'record' | 'readers' | 'terminal';
250
250
  message: string;
251
251
  };
252
+ /** Why the panel (or a plugin) let go of something that may still be open (see `PaymentLeftPending`). */
253
+ type PaymentLeftPendingReason = 'closed' | 'method-changed' | 'reset' | 'destroyed' | 'unmounted' | 'canceled' | 'timeout';
254
+ /**
255
+ * Library source 2026-11-21: what `ui-payment-side-panel (leftPending)` reports. The panel (or its plugin) went away while a payment MAY STILL EXIST at the processor, so it never tells the host "idle" for it:
256
+ * - `plugin`: a plugin flow was open (a card reader payment starting / waiting / declined / retrying / recovering / cancelling, or a manual card confirmation in flight);
257
+ * - `terminal`: a card-present terminal payment was waiting (the cancel of the reader is best effort, never confirmed);
258
+ * - `unrecorded`: a terminal payment was taken but never recorded (`paymentIntentId`);
259
+ * - `recording`: the record POST (`recordPayment`) was still in flight.
260
+ * `paymentAttemptKey` / `paymentIntentId` are set when known. The host keeps its pay actions blocked (and reads the server's own hold) until it knows better, then calls `releasePending()`.
261
+ */
262
+ interface PaymentLeftPending {
263
+ reason: PaymentLeftPendingReason;
264
+ kind: 'plugin' | 'terminal' | 'unrecorded' | 'recording';
265
+ /** The panel's method value when it let go. */
266
+ method: string;
267
+ paymentAttemptKey?: string;
268
+ paymentIntentId?: string;
269
+ }
270
+ /**
271
+ * Library source 2026-11-21 (round 4): what the panel asks a plugin to re-read when the user presses "Check again" on a held payment (`PaymentMethodPlugin.checkPending`).
272
+ * `ageMs` is how long the hold has been kept (a "never seen" answer is only believed after the plugin's own grace).
273
+ */
274
+ interface PaymentPendingCheckInfo {
275
+ method: string;
276
+ paymentAttemptKey?: string;
277
+ ageMs: number;
278
+ }
279
+ /**
280
+ * What a plugin proves about a held payment: `over` = definitively nothing is open (never charged, failed or canceled: the hold is released), `succeeded` = the payment went through (the panel reports it like any
281
+ * finished payment: `outcome` `complete` + `recorded`, with `result` when given), `open` = it is still running (the hold stays), `checking` = could not be proven either way (`unknown` is the OLD name: still accepted from a host, read as `checking`, never produced by the library) (the hold stays and the panel offers the
282
+ * explicit "I checked: nothing is open" release).
283
+ */
284
+ interface PaymentPendingCheckResult {
285
+ state: 'open' | 'over' | 'succeeded' | 'checking' | 'unknown';
286
+ result?: Partial<RecordPaymentResult>;
287
+ }
288
+ /**
289
+ * Library source 2026-11-21 (additive): what `ui-payment-side-panel [readerBanner]` needs to show the card reader banner at the top of the panel. Host-owned: the panel has no HTTP; `getReadiness` is the host's call
290
+ * (the same one as `StripeReaderConfig.getReadiness`) and is made FRESH every time the banner starts, `refreshKey` changes or "Check again" is pressed (never cached).
291
+ */
292
+ interface PaymentReaderBannerConfig {
293
+ /** The host's readiness read (`GET /v1/terminal/readiness`, through its own backend). */
294
+ getReadiness: () => HostResult<unknown>;
295
+ /** Any value that changes when the readers changed (a reader was connected, an order was placed): every change reads the readiness again. */
296
+ refreshKey?: unknown;
297
+ /** `false`: the account cannot order readers in the app; the banner's button reads "How to get a card reader" and the host opens an info card (same `readerOrder` output). Default true. */
298
+ hardwareShopAvailable?: boolean;
299
+ /** Hides the compact "Card reader connected" line (only problem states show). Default false. */
300
+ hideReady?: boolean;
301
+ /** The banner component class (`StripeReaderBannerComponent`). Optional while `ui-payment-stripe-method` is rendered in the panel (it supplies it); otherwise build the config with `stripeReaderBannerConfig()` from `@forgeroute/ui/stripe`. */
302
+ component?: Type<unknown>;
303
+ }
304
+ /**
305
+ * Library round 5 (2026-11-21, additive): the last readiness state the top card reader banner CONFIRMED, as `ui-payment-side-panel (readerState)` / `lastReaderState()` report it, so a host can pick `[defaultMethod]` without a second read.
306
+ * `state` is the service's readiness state (`reader_ready`, `no_reader`, `unsupported_only`, `reader_offline`, `reader_busy`, `merchant_not_ready`), or `checking` when the first read failed and nothing is confirmed yet. There is never an `unknown` value.
307
+ */
308
+ interface PaymentReaderState {
309
+ state: string;
310
+ /** `true` when the latest read failed or was too slow and `state` is the last confirmed one (or `checking`). */
311
+ stale: boolean;
312
+ /** When `state` was confirmed; `null` for `checking`. */
313
+ at: Date | null;
314
+ /** `state` is `reader_ready`: a reader can take a payment now. */
315
+ ready: boolean;
316
+ }
252
317
  type HostResult<T> = Observable<T> | Promise<T> | T;
253
318
  type RecordPaymentFn = (payload: RecordPaymentPayload) => HostResult<unknown>;
254
319
  interface TerminalReader {
@@ -339,14 +404,46 @@ export interface PaymentMethodContext {
339
404
  reset(): void;
340
405
  /** The payment is done: the panel reports it (`outcome` kind `'plugin'`, code `'complete'`, then `recorded`). Defaults: type `'manual'`, the selected method, the entered amount. Runs once. */
341
406
  complete(result?: Partial<RecordPaymentResult>): void;
342
- /** A flow is running: the fields are locked and the method cannot be changed. */
407
+ /** A flow is running: the fields are locked and the method cannot be changed. `setBusy(false)` means the flow is DEFINITIVELY over (never use it for a payment that may still be open: use `leavePending`). */
343
408
  setBusy(busy: boolean): void;
409
+ /**
410
+ * Optional (library source 2026-11-21; older panels do not set it: call it as `ctx.leavePending?.(...)`): the plugin lets go of a flow that MAY STILL BE OPEN at the processor (its screen was removed, e.g. the reader
411
+ * was switched off while a reader payment waited). The panel unlocks its own fields but does not tell the host "idle": it emits `(leftPending)` and keeps `(busyChange)` true until `releasePending()`.
412
+ */
413
+ leavePending?(info?: {
414
+ reason?: PaymentLeftPendingReason;
415
+ paymentAttemptKey?: string;
416
+ }): void;
344
417
  /** The plugin's own footer button (e.g. "Pay $120.00"); `null` removes it. The panel's own Save button never shows for a plugin method. */
345
418
  setPrimary(button: PaymentPluginPrimary | null): void;
346
419
  /** Hide the panel's fields and show only the plugin body (e.g. a "payment submitted" notice). */
347
420
  setExclusive(on: boolean): void;
421
+ /**
422
+ * Optional (library source 2026-11-21): asks the panel not to close while the plugin has something that must not be abandoned (a payment waiting on a card reader). The panel calls `fn` when the user
423
+ * closes it (Cancel, X, Escape); `fn` returns `true` to let it close, `false` to keep it open (the plugin shows why). Cleared by `setCloseGuard(null)`, a method change, `complete()` and a reset. A host that
424
+ * closes the panel itself (`[open]="false"`) is not asked: the cancel hook of `onCancel` runs then. Older panels do not have it: call it as `ctx.setCloseGuard?.(...)`.
425
+ */
426
+ setCloseGuard?(fn: (() => boolean) | null): void;
427
+ /**
428
+ * Optional (library source 2026-11-21; call it as `ctx.setReaderMessage?.(...)`): the plugin's own screen is showing a card reader message (a banner, a connection notice or a payment box). Round 5: DEPRECATED, no longer used by the panel: the top banner never steps aside; a plugin
429
+ * draws no reader banner of its own while `readerBanner` is true, so exactly ONE reader banner shows per state. Kept so a plugin that still calls it keeps working (the call does nothing).
430
+ */
431
+ setReaderMessage?(shown: boolean): void;
432
+ /**
433
+ * Optional (library round 4, 2026-11-21; call it as `ctx.flowOver?.()`): the plugin PROVED that nothing is open at the processor any more (a reopened body looked its attempt up and found it canceled, failed or never created; the user's own cancel was
434
+ * confirmed). The panel releases the hold it kept for this plugin's flow even when the flow never went busy again. Never call it on a guess: a payment that may still exist is `leavePending`, not over.
435
+ */
436
+ flowOver?(): void;
437
+ /** Library round 4 (optional): `true` while the panel shows its own card reader banner at the top (`[readerBanner]`), so a plugin draws NO reader banner of its own (no idle / no-reader / offline / checking / merchant message): only the interactive reader parts (reader choice, payment box, waiting, declined and success states). */
438
+ readonly readerBanner?: boolean;
439
+ /** Library round 5 (optional: call it as `ctx.refreshReaderBanner?.()`): asks the panel to read its top reader banner's readiness again now (a plugin that saw the reader's state change). Does nothing without a `[readerBanner]`. */
440
+ refreshReaderBanner?(): void;
348
441
  /** Called when the body is about to go away unfinished: the panel closes, the method changes, or the plugin is removed. Not called after `complete()`. */
349
442
  onCancel(fn: (() => void) | null): void;
443
+ /** Library source 2026-11-21 (optional: older panels do not set it): the panel is blocked (`[blocked]`, or something it let go of may still be open and the host has not released it): the plugin must not start a payment and its own footer button stays off. */
444
+ readonly blocked?: boolean;
445
+ /** Why the panel is blocked (shown by the panel itself; a plugin does not repeat it). Empty when not blocked. */
446
+ readonly blockedReason?: string;
350
447
  /** Tell the host something happened (`outcome` kind `'plugin'`) so it can word a toast. `attemptKey` names the attempt a report is about (the second payment of a `duplicate_suspected`, the payment another tab made in `paid_elsewhere`); `paid` is the amount (major units) and method that payment was made with, for a host that reconciles it. */
351
448
  report(code: string, extra?: {
352
449
  result?: RecordPaymentResult;
@@ -372,6 +469,14 @@ export declare abstract class PaymentMethodPlugin {
372
469
  abstract readonly methods: Signal<readonly PaymentPluginMethod[]>;
373
470
  /** The body shown under the form while one of the plugin's methods is selected. */
374
471
  abstract readonly template: Signal<TemplateRef<PaymentMethodBodyContext> | undefined>;
472
+ /** Optional (library source 2026-11-21): the card reader banner component class this plugin brings, used by the panel's `[readerBanner]` when the host's config names no `component`. */
473
+ readonly readerBannerComponent?: Type<unknown>;
474
+ /**
475
+ * Optional (library round 4, 2026-11-21): re-reads the truth of a payment of this plugin that the panel is holding (closed, method changed, reset, destroyed or failed to cancel while it may still exist). The panel's "Check again" in the held
476
+ * message calls it (and calls it once by itself when the plugin's method is picked again while a hold exists): `over` releases the hold, `succeeded` reports the payment, `open` / `unknown` keep it. A plugin without it
477
+ * leaves the hold to the panel's explicit "I checked: nothing is open" release. Must not throw (a throw counts as `unknown`).
478
+ */
479
+ checkPending?(info: PaymentPendingCheckInfo): HostResult<PaymentPendingCheckResult>;
375
480
  }
376
481
  export declare const PAYMENT_METHOD_PLUGIN: InjectionToken<PaymentMethodPlugin>;
377
482
  /**
@@ -389,6 +494,9 @@ export declare class PaymentCustomMethodComponent extends PaymentMethodPlugin {
389
494
  private readonly body;
390
495
  readonly methods: import("@angular/core").Signal<readonly PaymentPluginMethod[]>;
391
496
  readonly template: import("@angular/core").Signal<TemplateRef<PaymentMethodBodyContext> | undefined>;
497
+ /** Library round 4 (additive, optional): re-reads the truth of a payment of this method the panel is holding (see `PaymentMethodPlugin.checkPending`). Without it the held message offers only the explicit release. */
498
+ readonly checkPendingFn: import("@angular/core").InputSignal<((info: PaymentPendingCheckInfo) => HostResult<PaymentPendingCheckResult>) | null>;
499
+ checkPending(info: PaymentPendingCheckInfo): HostResult<PaymentPendingCheckResult>;
392
500
  static ɵfac: i0.ɵɵFactoryDeclaration<PaymentCustomMethodComponent, never>;
393
501
  static ɵcmp: i0.ɵɵComponentDeclaration<PaymentCustomMethodComponent, "ui-payment-custom-method", never, {
394
502
  "value": {
@@ -401,6 +509,11 @@ export declare class PaymentCustomMethodComponent extends PaymentMethodPlugin {
401
509
  "required": true;
402
510
  "isSignal": true;
403
511
  };
512
+ "checkPendingFn": {
513
+ "alias": "checkPending";
514
+ "required": false;
515
+ "isSignal": true;
516
+ };
404
517
  }, {}, ["body"], never, true, never>;
405
518
  }
406
519
  interface SplitEntry {
@@ -419,12 +532,30 @@ interface SplitEntry {
419
532
  *
420
533
  * See docs/payment-side-panel.md.
421
534
  */
535
+ /**
536
+ * Internal (round 5): the anchor of the top reader banner. It hands its container to the panel in `ngOnInit`, i.e. DURING the first render of the panel's body, so the banner is created in the SAME change-detection pass in which the
537
+ * panel opens (never one effect flush later, never behind a method pick, the plugin or a host read). It removes the banner when the anchor goes away (the panel closed).
538
+ */
539
+ export declare class PspBannerHostDirective implements OnInit, OnDestroy {
540
+ private readonly panel;
541
+ private readonly container;
542
+ ngOnInit(): void;
543
+ ngOnDestroy(): void;
544
+ static ɵfac: i0.ɵɵFactoryDeclaration<PspBannerHostDirective, never>;
545
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PspBannerHostDirective, "[pspBannerHost]", never, {}, {}, never, never, true, never>;
546
+ }
422
547
  export declare class PaymentSidePanelComponent {
423
548
  protected readonly labels: UiLabelsService;
424
549
  private readonly injector;
550
+ private readonly destroyRef;
425
551
  private readonly hostEl;
426
552
  protected readonly ids: string;
427
553
  protected readonly customMode = "custom";
554
+ /**
555
+ * Registered BEFORE the outputs on purpose: Angular runs destroy callbacks in registration order and an output stops accepting emits when its own callback ran, so the `(leftPending)` of a panel that is
556
+ * destroyed while something is open can still be delivered here (a host that removes the panel from the DOM must hear that a payment may still exist).
557
+ */
558
+ protected readonly destroyHook: () => void;
428
559
  readonly open: import("@angular/core").InputSignal<boolean>;
429
560
  readonly titleInput: import("@angular/core").InputSignal<string | null>;
430
561
  readonly title: import("@angular/core").Signal<string>;
@@ -452,8 +583,29 @@ export declare class PaymentSidePanelComponent {
452
583
  readonly submitLabel: import("@angular/core").Signal<string>;
453
584
  readonly splitSubmitLabelInput: import("@angular/core").InputSignal<string | null>;
454
585
  readonly splitSubmitLabel: import("@angular/core").Signal<string>;
586
+ /**
587
+ * Library source 2026-11-21 (additive; unset = nothing changes). While `true` no payment can be started from the panel: the footer button (Save / Pay / the plugin's button), "Send to the reader",
588
+ * the method select and the saved-method chips are disabled (`disabled` + `aria-disabled`; finishing the recording of a payment that was already taken, the plugin's "Done" while it is exclusive, retrying the recording, and Cancel, stay possible), the plugin body gets `ctx.blocked`, and `blockedReason` is shown in a `role="status"` message (text, never colour alone). Use it while
589
+ * another pay action runs elsewhere (a card reader payment waiting in another panel). A payment that is already running is NOT cancelled by it. See docs/payment-side-panel.md.
590
+ */
591
+ readonly blocked: import("@angular/core").InputSignal<boolean>;
592
+ /** Why the panel is blocked, shown while `blocked` is true (a sentence in the user's language). Empty = the default text of the label `paymentBlocked.default`. */
593
+ readonly blockedReason: import("@angular/core").InputSignal<string>;
455
594
  /** Records the payment. Returns an Observable / Promise; a rejection is shown in the panel and it stays open. */
456
595
  readonly recordPayment: import("@angular/core").InputSignal<RecordPaymentFn | null>;
596
+ /**
597
+ * Library source 2026-11-21 (additive; unset = nothing changes). The method that is selected when the panel opens, but only while no method is chosen yet and the value is in the method list (a plugin's
598
+ * `CARD` counts once the plugin is rendered). The user can change or clear it; it is applied once per opening.
599
+ */
600
+ readonly defaultMethod: import("@angular/core").InputSignal<string>;
601
+ /**
602
+ * Library source 2026-11-21 (additive; unset = no banner). The host-owned readiness config of the card reader banner: `getReadiness` (the same call as `StripeReaderConfig.getReadiness`, read FRESH on every opening,
603
+ * every `refreshKey` change and every "Check again", never cached), an optional `refreshKey`, `hardwareShopAvailable` and `hideReady`. While it is set the panel shows the banner as the FIRST element of its body, above the
604
+ * method select and every field, whatever the method and even with no plugin rendered (merchant not ready, collection off). It never steps aside or moves (round 5): the plugin draws no reader banner of its own while it is there, so there is exactly ONE
605
+ * banner per state. `component` is the banner component class: `ui-payment-stripe-method` supplies it by itself when it is rendered; a host without it builds the config with `stripeReaderBannerConfig()` from `@forgeroute/ui/stripe`.
606
+ * Staff panels only: never pass it for a payer-facing flow. See docs/card-readers.md.
607
+ */
608
+ readonly readerBanner: import("@angular/core").InputSignal<PaymentReaderBannerConfig | null>;
457
609
  readonly listReaders: import("@angular/core").InputSignal<(() => HostResult<readonly TerminalReader[]>) | null>;
458
610
  readonly startTerminalPayment: import("@angular/core").InputSignal<((ctx: TerminalStartContext) => HostResult<TerminalStartResult>) | null>;
459
611
  readonly terminalStatus: import("@angular/core").InputSignal<((paymentIntentId: string) => HostResult<TerminalStatusResult>) | null>;
@@ -472,8 +624,34 @@ export declare class PaymentSidePanelComponent {
472
624
  readonly recorded: import("@angular/core").OutputEmitterRef<RecordPaymentResult>;
473
625
  /** What happened, for the host to word (the panel never toasts). */
474
626
  readonly outcome: import("@angular/core").OutputEmitterRef<PaymentPanelOutcome>;
627
+ /**
628
+ * Library source 2026-11-21: `true` in EVERY state where another payment could start a second charge: a plugin flow (a card reader payment that is starting, waiting, declined, retried, recovered or cancelling; a manual card confirmation),
629
+ * a terminal payment, a taken terminal payment that is not recorded yet (or being re-recorded) and a record request in flight (`recordPayment`). `false` only when none of that is left. Emitted only when the value changes (nothing at start).
630
+ * It never goes false while a payment MAY STILL EXIST at the processor: closing, switching method, resetting or destroying the panel then emits `(leftPending)` and keeps this true until the host calls `releasePending()`.
631
+ */
632
+ readonly busyChange: import("@angular/core").OutputEmitterRef<boolean>;
633
+ /**
634
+ * Library source 2026-11-21: the panel (or its plugin) let go of something that MAY STILL EXIST at the processor (see `PaymentLeftPending`): it was closed, the method changed, the form was reset, the plugin's screen was removed or the
635
+ * panel was destroyed while a plugin flow, a terminal payment, an unrecorded terminal payment or a record request was open. Instead of reporting "idle" the panel keeps `busyChange` true until the host calls `releasePending()`.
636
+ */
637
+ readonly leftPending: import("@angular/core").OutputEmitterRef<PaymentLeftPending>;
638
+ /** "Connect a reader" of the top card reader banner: the host opens its pairing screen (`ui-stripe-readers`). */
639
+ readonly readerConnect: import("@angular/core").OutputEmitterRef<void>;
640
+ /** "Get a card reader" / "How to get a card reader" of the top banner: the host opens its order flow or an info card. */
641
+ readonly readerOrder: import("@angular/core").OutputEmitterRef<void>;
642
+ /** "Set up payments" / "Reconnect payments" of the top banner: the host opens payment setup. */
643
+ readonly readerSetup: import("@angular/core").OutputEmitterRef<void>;
644
+ /**
645
+ * Library round 5 (2026-11-21, additive): the top banner's last readiness state, emitted whenever it changes (a confirmed answer, or `checking` when the first read failed). A host that wants `[defaultMethod]` to follow the reader reads it here
646
+ * (or from `lastReaderState()`) instead of making a second readiness read. Only emitted while a banner is shown.
647
+ */
648
+ readonly readerState: import("@angular/core").OutputEmitterRef<PaymentReaderState>;
649
+ private readonly lastReaderStateSignal;
650
+ /** The top banner's last readiness state (`null` until it has one, and while no banner is mounted). Read-only signal twin of `(readerState)`. */
651
+ readonly lastReaderState: import("@angular/core").Signal<PaymentReaderState | null>;
475
652
  private readonly plugins;
476
653
  private readonly fields;
654
+ private readonly bannerHost;
477
655
  readonly method: import("@angular/core").WritableSignal<string>;
478
656
  readonly amount: import("@angular/core").WritableSignal<number | null>;
479
657
  readonly receivedDate: import("@angular/core").WritableSignal<string>;
@@ -493,11 +671,45 @@ export declare class PaymentSidePanelComponent {
493
671
  protected readonly exclusive: import("@angular/core").WritableSignal<boolean>;
494
672
  private readonly pluginPrimary;
495
673
  private cancelHook;
674
+ /** A plugin's "may the panel close?" check (see `PaymentMethodContext.setCloseGuard`). */
675
+ private closeGuard;
496
676
  /** The method value that was a live plugin method when last checked ('' = none), to notice the plugin disappearing under a selected method. */
497
677
  private liveMethodValue;
498
678
  private completed;
679
+ /** What the panel let go of while it may still be open (kinds of `PaymentLeftPending`): keeps `(busyChange)` true until `releasePending()` (a plugin flow is also released when its next body reports the flow over). */
680
+ private readonly held;
681
+ /** The held message's "Check again" is running. */
682
+ protected readonly heldChecking: import("@angular/core").WritableSignal<boolean>;
683
+ /** What the last check said (one sentence, empty = none yet). */
684
+ protected readonly heldResult: import("@angular/core").WritableSignal<string>;
685
+ /** The last check could not prove either way: the explicit "I checked: nothing is open" release is offered (never before a check). */
686
+ protected readonly heldInconclusive: import("@angular/core").WritableSignal<boolean>;
687
+ /** "Try canceling again" shows while a held terminal payment's cancel failed (or could not be sent) and the host gave a cancel call. */
688
+ protected readonly heldCanRetryCancel: import("@angular/core").Signal<boolean>;
689
+ /** Record requests (`recordPayment`) whose answer has not come back yet: a held `recording` is "still open" while one runs. */
690
+ private recordsInFlight;
691
+ /**
692
+ * The attempt key of the plugin flow that is open NOW (a reader payment's key), for `PaymentLeftPending.paymentAttemptKey`. Scoped per flow: it is only set by a report about THIS panel's own attempt (never the second payment of
693
+ * `duplicate_suspected`, never the other tab's payment of `paid_elsewhere`) and it is cleared when the form is reset, the flow is over (`setBusy(false)`, `complete()`) and the host releases the hold.
694
+ */
695
+ private lastAttemptKey;
696
+ /** The intent ids of terminal payments whose recording was in flight when the panel was closed: released when that recording answers (success). */
697
+ private readonly unrecordedInFlight;
698
+ /** The intent ids whose recording request (`confirmTerminalPayment`) is actually running right now (a check says "still open" for them instead of sending a second recording). */
699
+ private readonly recordingNow;
700
+ /** Bumped whenever a flow is abandoned (reset, method change, close): the closures of an older context (a destroyed body's) are ignored by `setBusy` / `leavePending`. Read in `buildContext`, so a bump gives the body a fresh context. */
701
+ private readonly pluginEpoch;
702
+ private bannerRef;
703
+ private bannerHostUsed;
704
+ private bannerComponentUsed;
705
+ /** The input names (template names) of the banner class in use, to set only what it has; `null` = unknown (set everything, ignore failures). */
706
+ private bannerInputs;
707
+ /** The method default was handled for this opening (applied, or the user chose / cleared a method first): it is never applied twice. */
708
+ private defaultMethodDone;
499
709
  /** The plugin's last report was `verification` (a bank payment that has NOT started): its "Done" is announced as "payment not started", never as "Payment recorded". */
500
710
  private verificationReported;
711
+ /** `reportTakenNotDone` already ran for the current exclusive state. */
712
+ private takenReported;
501
713
  readonly readers: import("@angular/core").WritableSignal<readonly TerminalReader[]>;
502
714
  readonly readersLoaded: import("@angular/core").WritableSignal<boolean>;
503
715
  readonly loadingReaders: import("@angular/core").WritableSignal<boolean>;
@@ -518,16 +730,28 @@ export declare class PaymentSidePanelComponent {
518
730
  private successTimer;
519
731
  private pendingTerminalResult;
520
732
  private terminalContext;
733
+ /**
734
+ * True in EVERY state where another payment could start a second charge: a plugin flow (reader payment, manual card confirmation), a terminal payment, a taken terminal payment that is not recorded yet (or whose recording is retried)
735
+ * and a record request in flight. Drives the locks and `aria-busy`.
736
+ */
521
737
  protected readonly busy: import("@angular/core").Signal<boolean>;
738
+ /** What `(busyChange)` follows: `busy` plus whatever the panel let go of while it may still be open (`held`), which only `releasePending()` / the flow's own end clears. */
739
+ private readonly busyOut;
522
740
  /** Fields are read-only while something runs, and while a taken terminal payment still has to be recorded (its amount must not change). */
523
741
  protected readonly locked: import("@angular/core").Signal<boolean>;
742
+ protected readonly blockedText: import("@angular/core").Signal<string>;
743
+ /** Something this panel let go of may still be open (`held`): no new payment can start from it until the host calls `releasePending()` or the flow ends. */
744
+ protected readonly holding: import("@angular/core").Signal<boolean>;
745
+ protected readonly heldText: import("@angular/core").Signal<string>;
746
+ /** A payment cannot START now: the host blocked the panel, or something it let go of may still be open. Finishing a payment that was already taken (the retry of its recording, the exclusive plugin's "Done") is never gated. */
747
+ protected readonly startBlocked: import("@angular/core").Signal<boolean>;
524
748
  protected readonly dateMax: import("@angular/core").Signal<string>;
525
749
  protected readonly money: (value: number) => string;
526
750
  protected readonly currencySymbol: import("@angular/core").Signal<string>;
527
751
  private readonly terminalAvailable;
528
752
  /** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
529
753
  private readonly liveMethods;
530
- protected readonly kind: import("@angular/core").Signal<"terminal" | "manual" | "none" | "live">;
754
+ protected readonly kind: import("@angular/core").Signal<"terminal" | "none" | "manual" | "live">;
531
755
  private kindOf;
532
756
  /** The method list as shown: record-only built-ins (a plugin takes over its own values), plugin extras, and only manual ones while a split is being built. */
533
757
  readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;
@@ -560,11 +784,40 @@ export declare class PaymentSidePanelComponent {
560
784
  protected readonly selectedReader: import("@angular/core").Signal<TerminalReader | null>;
561
785
  protected readonly canSendToReader: import("@angular/core").Signal<boolean>;
562
786
  protected readonly pluginTemplate: import("@angular/core").Signal<import("@angular/core").TemplateRef<PaymentMethodBodyContext> | undefined>;
787
+ /** The class the banner is made from: the host's `readerBanner.component`, else the one a rendered plugin supplies. */
788
+ private readonly bannerComponent;
789
+ /**
790
+ * The top card reader banner shows while the host gave `readerBanner` and the panel is open, for EVERY method and state (round 5: it never steps aside or moves down), except after a payment was taken (exclusive: only "Done" is left).
791
+ * The plugin draws no reader banner of its own meanwhile (`ctx.readerBanner`): exactly ONE banner per state.
792
+ */
793
+ protected readonly showTopBanner: import("@angular/core").Signal<boolean>;
794
+ /** The banner's container exists while the panel is open and the host gave the config: the instance is KEPT while it is hidden (a payment was taken: only "Done" is left), so it is never re-created and never re-reads the readiness for it. */
795
+ protected readonly bannerMounted: import("@angular/core").Signal<boolean>;
563
796
  protected readonly pluginContext: import("@angular/core").Signal<PaymentMethodBodyContext>;
564
797
  protected readonly primaryLabel: import("@angular/core").Signal<string>;
565
798
  protected readonly primaryLoading: import("@angular/core").Signal<boolean>;
566
799
  protected readonly primaryDisabled: import("@angular/core").Signal<boolean>;
567
800
  constructor();
801
+ /** The panel is being destroyed: whatever is open is let go with `(leftPending)` (never a silent `busyChange(false)`), then the outputs are closed for late answers. Same as a close: `cleanup` holds everything that is open. */
802
+ private onDestroyed;
803
+ /** What is open right now and MAY STILL EXIST at the processor (the kind `PaymentLeftPending` would report), or `null`. A terminal payment that is done (`success`, recorded) is not open. */
804
+ private openKind;
805
+ /**
806
+ * Records that something that may still exist was let go: `(leftPending)` is emitted once per kind and `busyChange` stays true. A second request for a kind that is already held emits nothing.
807
+ * Never throws (an output that is already closed is ignored).
808
+ */
809
+ private holdPending;
810
+ /** Clears what `holdPending` kept (all kinds, or just `kinds`). */
811
+ private clearHeld;
812
+ /**
813
+ * The host knows nothing is open any more (its server hold is gone / the payment is settled): `(busyChange)` may go false. Call it after `(leftPending)` once the host has verified with the server;
814
+ * the panel itself never assumes it.
815
+ */
816
+ releasePending(): void;
817
+ /** The panel clears a plugin's busy flag by itself (reset, another method, the plugin's screen is gone): a flow that may still be open is let go of with `(leftPending)`, not reported idle. */
818
+ private abandonPlugin;
819
+ private lastBusy;
820
+ private emitBusy;
568
821
  /** The panel is gone: a late answer of a plugin (its confirmation came after the panel closed) must not emit on outputs nobody listens to any more (Angular NG0953). */
569
822
  private destroyed;
570
823
  private init;
@@ -573,6 +826,11 @@ export declare class PaymentSidePanelComponent {
573
826
  /** A card payment the reader took but that was never recorded is being abandoned: the host must hear about it. */
574
827
  private dropPendingRetry;
575
828
  private cleanup;
829
+ /**
830
+ * A plugin said "payment taken, only Done is left" (exclusive) and the panel lets go of it (close, method change, reset, destroy) before the plugin finished it: the payment exists and nothing reported it as done, so it is held as `unrecorded` and reported
831
+ * (`outcome` kind `plugin`, code `closed-before-done`). Once per exclusive state.
832
+ */
833
+ private reportTakenNotDone;
576
834
  protected onClose(): void;
577
835
  private runCancelHook;
578
836
  protected onMethodChange(value: string | null): void;
@@ -615,8 +873,52 @@ export declare class PaymentSidePanelComponent {
615
873
  /** Repeats the recording for the payment the reader already took, with the amount that was charged (not the form's current values). */
616
874
  protected retryRecording(): Promise<void>;
617
875
  private finishTerminal;
618
- protected cancelTerminalPayment(): void;
876
+ /** The user's Cancel on a waiting terminal payment. The payment is shown as canceled only when the host's cancel call answered: until then it is held (`terminal`) and nothing new can start. */
877
+ protected cancelTerminalPayment(reason?: PaymentLeftPendingReason): void;
619
878
  private cancelTerminalIfWaiting;
879
+ /**
880
+ * The panel stays open and a waiting terminal payment is being let go of (Cancel, a method change, a timeout): it MAY still exist on the reader, so `(leftPending)` is emitted and `busyChange` stays true until the host's `cancelTerminal`
881
+ * call answers (that answer IS the confirmation: the hold is released and "Reader payment cancelled." is announced). A cancel that fails (or no `cancelTerminal` at all) keeps the hold and says so; the host calls `releasePending()` once it knows.
882
+ * (A close or a destroy keeps the hold until the host releases it: nobody is left to read the answer.)
883
+ */
884
+ private holdAndCancelReader;
885
+ private markCancelFailed;
886
+ /** One read of the payment right after the host's cancel answered: `succeeded` (the card was tapped during the cancel), `over` (anything else, or nothing to read with: the cancel answer is the confirmation), `checking` (the read failed). */
887
+ private readTerminalAfterCancel;
888
+ /**
889
+ * The reader took the payment (found by a check, or tapped during a cancel): it is recorded through the host's `confirmTerminalPayment` like any terminal payment. The hold moves from `terminal` to `unrecorded` while the recording runs and is released when it answers;
890
+ * a failure keeps it (the money was taken and is not recorded) with what "Check again" needs, and shows the retry button when the terminal screen is still up.
891
+ */
892
+ private recordTakenPayment;
893
+ /**
894
+ * The user's (or the panel's own) look at what the panel is holding: every held kind is re-read at its source (the terminal payment by the host's `terminalStatus`, a plugin payment by the plugin's `checkPending`, a taken-but-unrecorded payment by recording it
895
+ * again) and released only when the answer PROVES nothing is open. `succeeded` goes through the normal recording path. An answer that cannot prove either way keeps the hold and offers the explicit release (`releaseByUser`).
896
+ */
897
+ protected checkHeld(only?: readonly PaymentLeftPending['kind'][]): Promise<void>;
898
+ private checkHeldKind;
899
+ private checkHeldPlugin;
900
+ /** "Try canceling again" of a held terminal payment whose cancel failed: the host's cancel is called again, then the payment is read once more. */
901
+ protected retryCancelHeld(): void;
902
+ /**
903
+ * The explicit release, offered only after a check that could not prove either way: the user states that they looked at the processor and nothing is open. The panel stops holding and tells the host
904
+ * (`outcome` kind `plugin`, code `hold_released_by_user`, with the kinds that were held in `message` order) so it is never silent.
905
+ */
906
+ protected releaseByUser(): void;
907
+ /**
908
+ * Creates, updates or removes the top banner component: ONE instance while the panel is open and the host gave the config. It is never destroyed to hide it: `visible` false hides its container and sets `paused` on it (an input a banner may have), so it asks nothing
909
+ * while hidden and reads at most once when it comes back (only if something asked for a read meanwhile). A different `component` class replaces the instance; an input the class does not have is skipped (no NG0303).
910
+ */
911
+ private syncBanner;
912
+ /** @internal Called by the banner anchor during the first render of the body: the banner is created right now, synchronously. */
913
+ attachBannerHost(host: ViewContainerRef): void;
914
+ /** @internal Called when the banner anchor is destroyed (the panel closed). */
915
+ detachBannerHost(host: ViewContainerRef): void;
916
+ /**
917
+ * Library round 5 (2026-11-21, additive): reads the top banner's readiness again NOW (the same read "Check again" makes) without rebuilding the `readerBanner` config. Use it after the host changed something the banner cannot see (a reader was
918
+ * paired in another tab). Resolves when the read ended; does nothing (and resolves at once) while no banner is mounted. The read is always fresh: never cached.
919
+ */
920
+ refreshReaderBanner(): Promise<void>;
921
+ private destroyBanner;
620
922
  /** Moves focus after the next render (the control that had it was just removed from the DOM). */
621
923
  private focusLater;
622
924
  private fireCancelReader;
@@ -702,11 +1004,31 @@ export declare class PaymentSidePanelComponent {
702
1004
  "required": false;
703
1005
  "isSignal": true;
704
1006
  };
1007
+ "blocked": {
1008
+ "alias": "blocked";
1009
+ "required": false;
1010
+ "isSignal": true;
1011
+ };
1012
+ "blockedReason": {
1013
+ "alias": "blockedReason";
1014
+ "required": false;
1015
+ "isSignal": true;
1016
+ };
705
1017
  "recordPayment": {
706
1018
  "alias": "recordPayment";
707
1019
  "required": false;
708
1020
  "isSignal": true;
709
1021
  };
1022
+ "defaultMethod": {
1023
+ "alias": "defaultMethod";
1024
+ "required": false;
1025
+ "isSignal": true;
1026
+ };
1027
+ "readerBanner": {
1028
+ "alias": "readerBanner";
1029
+ "required": false;
1030
+ "isSignal": true;
1031
+ };
710
1032
  "listReaders": {
711
1033
  "alias": "listReaders";
712
1034
  "required": false;
@@ -766,6 +1088,12 @@ export declare class PaymentSidePanelComponent {
766
1088
  "closed": "closed";
767
1089
  "recorded": "recorded";
768
1090
  "outcome": "outcome";
1091
+ "busyChange": "busyChange";
1092
+ "leftPending": "leftPending";
1093
+ "readerConnect": "readerConnect";
1094
+ "readerOrder": "readerOrder";
1095
+ "readerSetup": "readerSetup";
1096
+ "readerState": "readerState";
769
1097
  }, ["plugins"], never, true, never>;
770
1098
  }
771
1099
  export declare function warnQueuedPayment(): void;
@@ -778,11 +1106,15 @@ declare function resetQueuedPaymentWarning(): void;
778
1106
  * the UNKNOWN state (timeouts, going offline mid-flight, host-reported ambiguity) with bounded status polling through the host's `checkStatus`, the OFFLINE state and the PAID lock.
779
1107
  * It never charges and never retries by itself: it only decides whether the form may start an attempt and what the screen says.
780
1108
  */
781
- export type PaymentStatusAnswer = 'succeeded' | 'failed' | 'not_found' | 'unknown' | 'in_flight' | 'awaiting_verification';
1109
+ /**
1110
+ * The answer of a host's `checkStatus`. `'checking'` = the backend cannot tell yet (a missing / failed / slow call is read as it). `'unknown'` is the OLD name of `'checking'`: still ACCEPTED from a host (read as `'checking'`),
1111
+ * never produced by the library, never displayed (the screens say "we could not confirm your payment yet ... do not pay again"). New hosts should answer `'checking'` or leave it out.
1112
+ */
1113
+ export type PaymentStatusAnswer = 'succeeded' | 'failed' | 'not_found' | 'checking' | 'unknown' | 'in_flight' | 'awaiting_verification';
782
1114
  /**
783
1115
  * The host's status check: asks ITS backend for the state of the attempt with this key (`GET /payments/attempts/{key}`). A rejection or an answer slower than `statusCheckTimeoutMs` counts as
784
- * `'unknown'`. `'awaiting_verification'` = a bank payment that has NOT started because the payer still has to verify the micro-deposits (stays locked and unknown, shows the verification text, sets `awaitingVerification`);
785
- * `'in_flight'` = the payment IS processing (after the verification, or any other running request: clears `awaitingVerification` and shows the "Checking your payment" text). **A key whose request may still be running must answer `'unknown'` / `'in_flight'`, never `'failed'`**: a `'failed'` answer unlocks the form with a NEW key, so a late-landing original
1116
+ * `'checking'`. `'awaiting_verification'` = a bank payment that has NOT started because the payer still has to verify the micro-deposits (stays locked and unknown, shows the verification text, sets `awaitingVerification`);
1117
+ * `'in_flight'` = the payment IS processing (after the verification, or any other running request: clears `awaitingVerification` and shows the "Checking your payment" text). **A key whose request may still be running must answer `'checking'` / `'in_flight'`, never `'failed'`**: a `'failed'` answer unlocks the form with a NEW key, so a late-landing original
786
1118
  * request would become a second charge. `'not_found'` means "the backend has definitively never seen this key": the library only believes it once the attempt is older than the request timeout
787
1119
  * plus the fail grace (a slow original request may still be on its way), then unlocks with a new key. While the attempt's own request is unsettled `'failed'` / `'not_found'` are ignored for a hard
788
1120
  * maximum counted from the moment it became unknown; an attempt whose host charge may still be running (`host_silent`, `host`) is given the request timeout plus the grace counted from that
@@ -1815,4 +2147,4 @@ export declare class RefundPanelComponent {
1815
2147
  "closed": "closed";
1816
2148
  }, never, never, true, never>;
1817
2149
  }
1818
- export type { AllocationModeOption, ChargeAllocation, HostResult, PayableCharge, PaymentAllocation, PaymentEntry, PaymentMethodOption, PaymentPanelOutcome, RecordPaymentFn, RecordPaymentPayload, RecordPaymentResult, SavedPaymentMethod, TerminalConfirmContext, TerminalPhase, TerminalReader, TerminalStartContext, TerminalStartResult, TerminalStatusResult };
2150
+ export type { AllocationModeOption, ChargeAllocation, HostResult, PayableCharge, PaymentAllocation, PaymentEntry, PaymentLeftPending, PaymentLeftPendingReason, PaymentMethodOption, PaymentPanelOutcome, PaymentPendingCheckInfo, PaymentPendingCheckResult, PaymentReaderBannerConfig, PaymentReaderState, RecordPaymentFn, RecordPaymentPayload, RecordPaymentResult, SavedPaymentMethod, TerminalConfirmContext, TerminalPhase, TerminalReader, TerminalStartContext, TerminalStartResult, TerminalStatusResult };
@@ -272,7 +272,7 @@ export declare class QboPaymentComponent {
272
272
  readonly payableRef: import("@angular/core").InputSignal<string | null>;
273
273
  /** A key the host supplies for the charge; empty = the component generates one per payment attempt session (see `attemptKeyChange`). */
274
274
  readonly attemptKey: import("@angular/core").InputSignal<string | null>;
275
- /** The host's status check by attempt key: resolves an UNKNOWN outcome (`'succeeded' | 'failed' | 'unknown' | 'in_flight' | 'awaiting_verification'`). */
275
+ /** The host's status check by attempt key: resolves an UNKNOWN outcome (`'succeeded' | 'failed' | 'checking' | 'in_flight' | 'awaiting_verification'` (`'unknown'` = the old name of `'checking'`, still accepted)). */
276
276
  readonly checkStatus: import("@angular/core").InputSignal<CheckPaymentStatusFn | null>;
277
277
  /** The payable is paid (host re-render, back navigation): the form shows the paid state and ignores every submit for good. */
278
278
  readonly paid: import("@angular/core").InputSignal<boolean>;
@@ -355,7 +355,7 @@ export declare class QboPaymentComponent {
355
355
  protected readonly postalFormatter: import("@angular/core").Signal<(raw: string) => string>;
356
356
  protected readonly postalPlaceholder: import("@angular/core").Signal<"A1A 1A1" | "94086">;
357
357
  protected readonly postalInputMode: import("@angular/core").Signal<"text" | "numeric">;
358
- protected readonly postalMaxLength: import("@angular/core").Signal<10 | 7>;
358
+ protected readonly postalMaxLength: import("@angular/core").Signal<7 | 10>;
359
359
  protected readonly routingFormatter: (raw: string) => string;
360
360
  protected readonly accountFormatter: (raw: string) => string;
361
361
  protected readonly tabs: import("@angular/core").Signal<PillTab[]>;
@@ -792,7 +792,7 @@ export declare class QboConnectComponent {
792
792
  readonly loading: import("@angular/core").ModelSignal<boolean>;
793
793
  protected readonly awaiting: import("@angular/core").WritableSignal<boolean>;
794
794
  protected readonly confirming: import("@angular/core").WritableSignal<boolean>;
795
- protected readonly state: import("@angular/core").Signal<"connected" | "none" | "reconnect">;
795
+ protected readonly state: import("@angular/core").Signal<"none" | "connected" | "reconnect">;
796
796
  protected readonly company: import("@angular/core").Signal<string>;
797
797
  protected readonly connectedOn: import("@angular/core").Signal<string>;
798
798
  /** What the persistent status region says: the current state, plus "Loading." while a request runs. */
@@ -362,7 +362,7 @@ export declare class SquarePaymentComponent {
362
362
  readonly applicationId: import("@angular/core").InputSignal<string | null>;
363
363
  readonly locationId: import("@angular/core").InputSignal<string | null>;
364
364
  /** `'production'` or `'sandbox'` (default: the provider's, else `'sandbox'`). Decides which Square host the SDK script comes from. */
365
- readonly environment: import("@angular/core").InputSignal<"sandbox" | "production" | null>;
365
+ readonly environment: import("@angular/core").InputSignal<"production" | "sandbox" | null>;
366
366
  /** The amount in major units (12.5 = $12.50), for buyer verification (SCA / 3-D Secure) of a card payment. */
367
367
  readonly amount: import("@angular/core").InputSignal<number | null>;
368
368
  readonly currency: import("@angular/core").InputSignal<string>;
@@ -405,7 +405,7 @@ export declare class SquarePaymentComponent {
405
405
  readonly payableRef: import("@angular/core").InputSignal<string | null>;
406
406
  /** A key the host supplies for the charge; empty = the component generates one per payment attempt session (see `attemptKeyChange`). */
407
407
  readonly attemptKey: import("@angular/core").InputSignal<string | null>;
408
- /** The host's status check by attempt key: resolves an UNKNOWN outcome (`'succeeded' | 'failed' | 'unknown' | 'in_flight' | 'awaiting_verification'`). */
408
+ /** The host's status check by attempt key: resolves an UNKNOWN outcome (`'succeeded' | 'failed' | 'checking' | 'in_flight' | 'awaiting_verification'` (`'unknown'` = the old name of `'checking'`, still accepted)). */
409
409
  readonly checkStatus: import("@angular/core").InputSignal<CheckPaymentStatusFn | null>;
410
410
  /** The payable is paid (host re-render, back navigation): the form shows the paid state and ignores every submit for good. */
411
411
  readonly paid: import("@angular/core").InputSignal<boolean>;
@@ -1232,7 +1232,7 @@ export declare class SquarePaymentMethodComponent extends PaymentMethodPlugin {
1232
1232
  readonly estimateFees: import("@angular/core").InputSignal<((ctx: SquareFeeContext) => HostResult<SquareFees>) | null>;
1233
1233
  readonly applicationId: import("@angular/core").InputSignal<string | null>;
1234
1234
  readonly locationId: import("@angular/core").InputSignal<string | null>;
1235
- readonly environment: import("@angular/core").InputSignal<"sandbox" | "production" | null>;
1235
+ readonly environment: import("@angular/core").InputSignal<"production" | "sandbox" | null>;
1236
1236
  /** The buyer's billing contact: with it the card form runs buyer verification (SCA / 3-D Secure) before the token reaches your backend. */
1237
1237
  readonly billingContact: import("@angular/core").InputSignal<SquareBillingContact | null>;
1238
1238
  /** The account holder name offered for the bank account. */