@forgeroute/ui 0.5.12 → 0.5.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgeroute/ui",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -401,6 +401,8 @@ export declare class ConnectionStateService {
401
401
  readonly recovered$: Subject<RecoveryTrigger>;
402
402
  private failures;
403
403
  private slowTimes;
404
+ /** Consecutive fast answers since the last slow one (see {@link SLOW_RECOVERY_FAST_COUNT}). */
405
+ private fastStreak;
404
406
  private quietTimer;
405
407
  private onlineTimer;
406
408
  private probeTimer;
@@ -432,6 +434,8 @@ export declare class ConnectionStateService {
432
434
  private setUnreachable;
433
435
  private clearUnreachable;
434
436
  private stopRecoveryTimers;
437
+ /** The slow verdict is over (recovery): flag, quiet timer, remembered slow answers and the fast streak are all cleared. */
438
+ private resetSlow;
435
439
  private markSlow;
436
440
  private scheduleOnline;
437
441
  private cancelOnlineTimer;
@@ -260,6 +260,8 @@ export declare class QboPaymentComponent {
260
260
  readonly achConsent: import("@angular/core").Signal<string>;
261
261
  /** Show the built-in attempt / readiness status block (a payment plugin that embeds this form shows its own and turns this off). */
262
262
  readonly showStatus: import("@angular/core").InputSignal<boolean>;
263
+ /** Show the paid state of the attempt status (default true). A form whose host shows its own success notice sets it off while that notice is up. */
264
+ readonly showPaid: import("@angular/core").InputSignal<boolean>;
263
265
  /**
264
266
  * The payable this is for (an invoice, a balance, a payment link). While an attempt is undecided its opaque marker (key, amount, method) is stored under it in `localStorage`, so a RELOAD or a
265
267
  * SECOND TAB of the same payable starts locked (unknown) with the same attempt key. Without it the protection covers this page instance only. Nothing else is stored.
@@ -313,6 +315,11 @@ export declare class QboPaymentComponent {
313
315
  readonly tokenized: import("@angular/core").OutputEmitterRef<QboTokenizedEvent>;
314
316
  /** A step failed (validation, or Intuit refused the details). `message` is ready to show. */
315
317
  readonly failed: import("@angular/core").OutputEmitterRef<QboFailure>;
318
+ /**
319
+ * The payer edited a field (typing, picking the account type, ticking the authorization). The built-in error alert clears itself at the same moment; a host that shows its own decline banner from `(failed)` or from its
320
+ * charge result clears it here, so a stale "card declined" never stays next to details the payer is already correcting. Never emitted for changes the form makes itself (clearing after a token, a method switch).
321
+ */
322
+ readonly detailsChange: import("@angular/core").OutputEmitterRef<void>;
316
323
  /** A step of an attempt started / ended (the synchronous lock). */
317
324
  readonly inFlightChange: import("@angular/core").OutputEmitterRef<boolean>;
318
325
  /** Unified outcome of a payment attempt: `succeeded`, `failed`, `unknown`, `refused` (with `reason`), `pending`. */
@@ -368,6 +375,8 @@ export declare class QboPaymentComponent {
368
375
  protected readonly routingError: import("@angular/core").Signal<string>;
369
376
  protected readonly accountError: import("@angular/core").Signal<string>;
370
377
  protected readonly confirmError: import("@angular/core").Signal<string>;
378
+ /** Called by every field's edit handler: clears the form's own error alert and tells the host. */
379
+ protected edited(): void;
371
380
  /** The duplicate-payment protection of this form: the synchronous lock, the attempt key, the unknown state. */
372
381
  readonly attempt: PaymentAttempt;
373
382
  /** The readiness gate: `readiness.ready()` / `readiness.reasons()`. */
@@ -477,6 +486,11 @@ export declare class QboPaymentComponent {
477
486
  "required": false;
478
487
  "isSignal": true;
479
488
  };
489
+ "showPaid": {
490
+ "alias": "showPaid";
491
+ "required": false;
492
+ "isSignal": true;
493
+ };
480
494
  "payableRef": {
481
495
  "alias": "payableRef";
482
496
  "required": false;
@@ -611,6 +625,7 @@ export declare class QboPaymentComponent {
611
625
  "method": "methodChange";
612
626
  "tokenized": "tokenized";
613
627
  "failed": "failed";
628
+ "detailsChange": "detailsChange";
614
629
  "inFlightChange": "inFlightChange";
615
630
  "outcome": "outcome";
616
631
  "attemptKeyChange": "attemptKeyChange";
@@ -53,6 +53,11 @@ interface SquareTokenResultLike {
53
53
  }
54
54
  interface SquareCardLike {
55
55
  attach(target: HTMLElement | string): Promise<void>;
56
+ /**
57
+ * `card.addEventListener(event, handler)` of the SDK (`'cardBrandChanged'`, `'postalCodeChanged'`, `'errorClassRemoved'`, `'focusClassAdded'`, ...). Optional here so a hand-written fake without events still satisfies the type;
58
+ * the form listens only when it is there.
59
+ */
60
+ addEventListener?(event: string, handler: (event: unknown) => void): unknown;
56
61
  tokenize(): Promise<SquareTokenResultLike>;
57
62
  destroy(): Promise<void> | void;
58
63
  }
@@ -87,6 +92,8 @@ interface SquareBillingContact {
87
92
  countryCode?: string;
88
93
  }
89
94
  interface SquarePaymentsLike {
95
+ /** `payments.setLocale('es-ES')`: the language of the SDK's own texts (placeholders, validation messages). Optional (older SDKs / fakes). */
96
+ setLocale?(locale: string): Promise<void> | void;
90
97
  card(options?: Record<string, unknown>): Promise<SquareCardLike>;
91
98
  ach(options?: Record<string, unknown>): Promise<SquareAchLike>;
92
99
  /** Resolves `{ token }` (the verification token), or `null` / `undefined` when the buyer could not be verified. */
@@ -272,6 +279,25 @@ export declare function newIdempotencyKey(): string;
272
279
  type SquareCardStyle = Record<string, Record<string, string>>;
273
280
  /** Builds the card style from the tokens in effect on `element` (default: the document root). */
274
281
  export declare function readSquareCardStyle(doc: Document, element?: Element): SquareCardStyle;
282
+ /** The app's theme tokens for {@link squareCardStyleFromTheme}. Every field is optional: a missing one is left out so the SDK's default stays. */
283
+ interface SquareThemeTokens {
284
+ /** The focused field's border. */
285
+ primary?: string;
286
+ background?: string;
287
+ text?: string;
288
+ danger?: string;
289
+ border?: string;
290
+ fontFamily?: string;
291
+ radius?: string;
292
+ fontSize?: string;
293
+ /** The page is dark: text / background / border fall back to a readable light-on-dark pair when not given. Default false. */
294
+ dark?: boolean;
295
+ }
296
+ /**
297
+ * Neutral card-style helper for apps: turns the app's own theme tokens into the `style` option of the card form (pass it to `[cardStyle]`), so the form matches the page in light and dark
298
+ * without the app knowing the SDK's selectors. Pure (no DOM). Same result as {@link readSquareCardStyle} would give for the same values.
299
+ */
300
+ export declare function squareCardStyleFromTheme(tokens: SquareThemeTokens): SquareCardStyle;
275
301
  /** The texts of the screen-reader status region. */
276
302
  interface SquareA11yMessages {
277
303
  loading: string;
@@ -358,8 +384,18 @@ export declare class SquarePaymentComponent {
358
384
  readonly cardStyle: import("@angular/core").InputSignal<SquareCardStyle | null>;
359
385
  /** Build the card `style` from the `--ui-square-*` CSS tokens (light / dark) when no `cardStyle` is given. */
360
386
  readonly styleFromTokens: import("@angular/core").InputSignal<boolean>;
387
+ /** The language of the SDK's own texts (`payments.setLocale`): `'es-ES'`, `'en-US'`, ... Default: the app's active language (`UiLabelsService`: Spanish -> `es-ES`, English -> `en-US`). `false` = never call `setLocale` (the SDK picks from the browser). */
388
+ readonly sdkLocale: import("@angular/core").InputSignal<string | false | null>;
389
+ /** Show the SDK's visible field labels (`includeInputLabels`, helps screen readers and the 320px layout). Default false = unchanged. */
390
+ readonly includeInputLabels: import("@angular/core").InputSignal<boolean>;
391
+ /** The card form's postal code field: `null` (default) = the SDK decides, a string pre-fills it, `false` hides it (only when your backend does not need AVS). */
392
+ readonly postalCode: import("@angular/core").InputSignal<string | false | null>;
393
+ /** Hide the SDK's inline validation message and icon under the fields (`.message-text` / `.message-icon`): the form's own alert (`role="alert"`) is then the only place a failure is shown. Best effort: applied only where the SDK accepts the style. Default false. */
394
+ readonly hideInlineMessages: import("@angular/core").InputSignal<boolean>;
361
395
  /** Show the built-in attempt / readiness status block (a payment plugin that embeds this form shows its own and turns this off). */
362
396
  readonly showStatus: import("@angular/core").InputSignal<boolean>;
397
+ /** Show the paid state of the attempt status (default true). A form whose host shows its own success notice sets it off while that notice is up. */
398
+ readonly showPaid: import("@angular/core").InputSignal<boolean>;
363
399
  /**
364
400
  * The payable this is for (an invoice, a balance, a payment link). While an attempt is undecided its opaque marker (key, amount, method) is stored under it in `localStorage`, so a RELOAD or a
365
401
  * SECOND TAB of the same payable starts locked (unknown) with the same attempt key. Without it the protection covers this page instance only. Nothing else is stored.
@@ -439,6 +475,12 @@ export declare class SquarePaymentComponent {
439
475
  readonly tokenized: import("@angular/core").OutputEmitterRef<SquareTokenizedEvent>;
440
476
  /** A step failed (validation, tokenization, buyer verification). `message` is ready to show. */
441
477
  readonly failed: import("@angular/core").OutputEmitterRef<SquareFailure>;
478
+ /**
479
+ * The payer edited the details: the card number / postal code changed or a field error cleared (the SDK's `cardBrandChanged` / `postalCodeChanged` / `errorClassRemoved`), or the bank form's holder name / authorization changed.
480
+ * The built-in error alert clears itself at the same moment; a host that shows its own decline banner clears it here, so a stale "card declined" never stays next to details the payer is already correcting.
481
+ * Not emitted for changes the form makes itself (building the form, a tab switch).
482
+ */
483
+ readonly detailsChange: import("@angular/core").OutputEmitterRef<void>;
442
484
  /** The SDK could not be loaded or the form could not be created. */
443
485
  readonly loadError: import("@angular/core").OutputEmitterRef<SquareFailure>;
444
486
  readonly loading: import("@angular/core").WritableSignal<boolean>;
@@ -514,6 +556,10 @@ export declare class SquarePaymentComponent {
514
556
  private disposeInstances;
515
557
  private loadFailed;
516
558
  private init;
559
+ /** The payer edited something: clears the form's own error alert and tells the host. */
560
+ protected edited(): void;
561
+ /** The language the SDK should speak: the host's `sdkLocale`, else the app's active language. `null` = do not call `setLocale`. */
562
+ private readonly sdkLocaleCode;
517
563
  protected onTab(key: string): void;
518
564
  static ɵfac: i0.ɵɵFactoryDeclaration<SquarePaymentComponent, never>;
519
565
  static ɵcmp: i0.ɵɵComponentDeclaration<SquarePaymentComponent, "ui-square-payment", never, {
@@ -612,11 +658,36 @@ export declare class SquarePaymentComponent {
612
658
  "required": false;
613
659
  "isSignal": true;
614
660
  };
661
+ "sdkLocale": {
662
+ "alias": "sdkLocale";
663
+ "required": false;
664
+ "isSignal": true;
665
+ };
666
+ "includeInputLabels": {
667
+ "alias": "includeInputLabels";
668
+ "required": false;
669
+ "isSignal": true;
670
+ };
671
+ "postalCode": {
672
+ "alias": "postalCode";
673
+ "required": false;
674
+ "isSignal": true;
675
+ };
676
+ "hideInlineMessages": {
677
+ "alias": "hideInlineMessages";
678
+ "required": false;
679
+ "isSignal": true;
680
+ };
615
681
  "showStatus": {
616
682
  "alias": "showStatus";
617
683
  "required": false;
618
684
  "isSignal": true;
619
685
  };
686
+ "showPaid": {
687
+ "alias": "showPaid";
688
+ "required": false;
689
+ "isSignal": true;
690
+ };
620
691
  "payableRef": {
621
692
  "alias": "payableRef";
622
693
  "required": false;
@@ -787,6 +858,7 @@ export declare class SquarePaymentComponent {
787
858
  "readinessChange": "readinessChange";
788
859
  "tokenized": "tokenized";
789
860
  "failed": "failed";
861
+ "detailsChange": "detailsChange";
790
862
  "loadError": "loadError";
791
863
  }, never, never, true, never>;
792
864
  }
@@ -1373,4 +1445,4 @@ export declare class SquarePaymentMethodComponent extends PaymentMethodPlugin {
1373
1445
  };
1374
1446
  }, {}, never, never, true, never>;
1375
1447
  }
1376
- export type { ProvideSquarePaymentOptions, SquareA11yMessages, SquareAchLike, SquareBillingContact, SquareCardLike, SquareCardStyle, SquareCardType, SquareConnectFlowOptions, SquareConnectOutcome, SquareConnectStart, SquareConnectState, SquareConnectStatus, SquareConnectionConfig, SquareEnvironment, SquareErrorDisplay, SquareErrorMessageOptions, SquareFailure, SquareFailureStage, SquareFeeContext, SquareFees, SquareIntentKind, SquareLoaderFn, SquareMethod, SquareOutcomeKind, SquarePaymentContext, SquarePaymentDefaults, SquarePaymentResult, SquarePaymentsLike, SquarePrepaidType, SquareReadyEvent, SquareTokenDetails, SquareTokenDetailsLike, SquareTokenError, SquareTokenResultLike, SquareTokenizedEvent, SquareVerifyBuyerDetails };
1448
+ export type { ProvideSquarePaymentOptions, SquareA11yMessages, SquareAchLike, SquareBillingContact, SquareCardLike, SquareCardStyle, SquareCardType, SquareConnectFlowOptions, SquareConnectOutcome, SquareConnectStart, SquareConnectState, SquareConnectStatus, SquareConnectionConfig, SquareEnvironment, SquareErrorDisplay, SquareErrorMessageOptions, SquareFailure, SquareFailureStage, SquareFeeContext, SquareFees, SquareIntentKind, SquareLoaderFn, SquareMethod, SquareOutcomeKind, SquarePaymentContext, SquarePaymentDefaults, SquarePaymentResult, SquarePaymentsLike, SquarePrepaidType, SquareReadyEvent, SquareThemeTokens, SquareTokenDetails, SquareTokenDetailsLike, SquareTokenError, SquareTokenResultLike, SquareTokenizedEvent, SquareVerifyBuyerDetails };
@@ -254,11 +254,11 @@ declare const MSG_NOT_INITIALIZED = "Payment system not initialized";
254
254
  declare const MSG_INTENT_FAILED = "Failed to create payment intent";
255
255
  declare const MSG_NOT_COMPLETED = "Payment was not completed";
256
256
  declare const MSG_REQUIRES_PAYMENT_METHOD = "Payment failed. Please try a different payment method.";
257
- declare const MSG_NO_PAYMENT_METHOD = "No payment method returned from Stripe";
257
+ declare const MSG_NO_PAYMENT_METHOD = "No payment method was returned";
258
258
  declare const MSG_AUTH_FAILED = "Payment authentication failed";
259
259
  declare const MSG_AUTH_NOT_COMPLETED = "Payment authentication was not completed";
260
- declare const MSG_KEY_MISSING = "A Stripe publishable key is required";
261
- declare const MSG_LOAD_FAILED = "Failed to load Stripe";
260
+ declare const MSG_KEY_MISSING = "The payment form is not set up yet";
261
+ declare const MSG_LOAD_FAILED = "Failed to load the payment service";
262
262
  declare const MSG_TOKEN_FAILED = "The card details could not be checked. Please try again.";
263
263
  export declare function paymentMethodIdOf(intent: StripeIntentLike | null | undefined): string | null;
264
264
  /** The micro-deposit verification of an intent whose `next_action` is `verify_with_microdeposits`, else `null`. */
@@ -365,6 +365,34 @@ interface StripeAppearance {
365
365
  }
366
366
  /** Builds the appearance from the tokens in effect on `element` (default: the document root). */
367
367
  export declare function readStripeAppearance(doc: Document, element?: Element): StripeAppearance;
368
+ /**
369
+ * The app's theme tokens for {@link stripeAppearanceFromTheme}. Every field is optional: a missing one is left out so the processor's default stays.
370
+ * Colours are any CSS colour string; `radius` / `fontSize` are CSS lengths (`'8px'`, `'16px'`).
371
+ */
372
+ interface StripeThemeTokens {
373
+ /** Focus ring / selected tab / links. */
374
+ primary?: string;
375
+ background?: string;
376
+ text?: string;
377
+ /** Secondary text (placeholders, labels' helper text). */
378
+ textMuted?: string;
379
+ danger?: string;
380
+ /** The border of inputs and tabs. */
381
+ border?: string;
382
+ fontFamily?: string;
383
+ radius?: string;
384
+ fontSize?: string;
385
+ /** The page is dark: the `night` base theme instead of `stripe`. Default false. */
386
+ dark?: boolean;
387
+ /** `'floating'` labels inside the input; default `'above'` (labels above the input read better at 320px and for screen magnifiers). */
388
+ labels?: 'above' | 'floating';
389
+ }
390
+ /**
391
+ * Neutral appearance helper for apps: turns the app's own theme tokens into a Payment Element `appearance` object (pass it to `[appearance]`), so the payment form matches the page in light and dark
392
+ * without the app knowing the processor's variable names. Pure (no DOM): call it with the values you already have (a design-token object, a signal, `getComputedStyle` results).
393
+ * Colours go to the base variables; input and tab borders and the label colour are set through rules so the 3:1 non-text contrast of the page's border token carries over.
394
+ */
395
+ export declare function stripeAppearanceFromTheme(tokens: StripeThemeTokens): StripeAppearance;
368
396
  /** The texts of the screen-reader status region. */
369
397
  interface StripeA11yMessages {
370
398
  loading: string;
@@ -421,6 +449,8 @@ interface StripeReadyEvent {
421
449
  elements: StripeElementsLike;
422
450
  paymentElement: StripePaymentElementLike;
423
451
  }
452
+ /** The failure code of an instant-only form whose intent came back needing micro-deposit verification. */
453
+ export declare const INSTANT_ONLY_CODE = "instant_only_unsupported";
424
454
  /**
425
455
  * Stripe Payment Element: saves a payment method (`mode="setup"`, a SetupIntent) or takes a payment (`mode="payment"`, a PaymentIntent).
426
456
  *
@@ -439,6 +469,7 @@ export declare class StripePaymentComponent {
439
469
  private readonly doc;
440
470
  private readonly isBrowser;
441
471
  private readonly host;
472
+ private readonly injector;
442
473
  /**
443
474
  * Mount-only mode: the component only mounts the Payment Element. No submit button, skeleton, status text (unless `a11yMessages` is set), bank notice or error
444
475
  * alert; it never submits, confirms or updates by itself; load failures go to `(loadError)` only. The host keeps its own confirm code and calls Stripe.js with the
@@ -484,6 +515,23 @@ export declare class StripePaymentComponent {
484
515
  readonly appearance: import("@angular/core").InputSignal<StripeAppearance | null>;
485
516
  /** Derive the appearance from the `--ui-stripe-*` CSS tokens (light / dark) when no `appearance` is set. */
486
517
  readonly appearanceFromTokens: import("@angular/core").InputSignal<boolean>;
518
+ /**
519
+ * INSTANT-ONLY bank accounts (a subscription / recurring billing setup that must not wait days for micro-deposits). Default false = unchanged.
520
+ * When true the component never OFFERS manual bank entry: for a CLIENT-SECRET intent the form shows whatever the intent allows, so your backend must create the PaymentIntent / SetupIntent with
521
+ * `payment_method_options.us_bank_account.verification_method = 'instant'` (that is what removes the routing / account number entry in the Payment Element); for a DEFERRED intent the component passes
522
+ * `paymentMethodOptions: { us_bank_account: { verification_method: 'instant' } }` to `stripe.elements()` itself (your `elementsOptions` still win). The bank notice then says "sign in to your bank" only.
523
+ * Defensive check: if a SetupIntent / PaymentIntent nevertheless comes back needing micro-deposit verification, nothing is reported as confirmed, no verification UI or status is shown, and the payer reads
524
+ * `stripePayment.msg.instantOnlyUnavailable` ("use a card or a bank that supports bank login"); `(failed)` carries the code `instant_only_unsupported` and the protected attempt FAILS (new key, nothing was charged or saved).
525
+ */
526
+ readonly instantOnly: import("@angular/core").InputSignal<boolean>;
527
+ /**
528
+ * Keep Stripe Link and the wallets OFF (default false = unchanged, so no existing form changes). When true: `wallets` is forced to `{ applePay: 'never', googlePay: 'never', link: 'never' }`
529
+ * (merged OVER your `wallets` input) and a DEFERRED intent without your own `paymentMethodTypes` is created with `payment_method_types: ['card', 'us_bank_account']`; a `link` entry in your own
530
+ * `paymentMethodTypes` is dropped. With a client secret the intent decides the types: create it with `payment_method_types: ['card', 'us_bank_account']` on your backend.
531
+ */
532
+ readonly linkOff: import("@angular/core").InputSignal<boolean>;
533
+ /** Show the paid state of the attempt status (default true). A form whose host shows its own success notice sets it off while that notice is up. */
534
+ readonly showPaid: import("@angular/core").InputSignal<boolean>;
487
535
  /** Where Stripe sends the customer back after a redirect. Unset = the current page (`window.location.href`); `null` = pass no `return_url`. */
488
536
  readonly returnUrl: import("@angular/core").InputSignal<string | null | undefined>;
489
537
  /** Billing details sent on confirm (`confirmParams.payment_method_data.billing_details`), needed for fields hidden with `'never'`. */
@@ -647,8 +695,11 @@ export declare class StripePaymentComponent {
647
695
  private readonly announcement;
648
696
  protected readonly errorId: string;
649
697
  private readonly mountRef;
698
+ private readonly errorBox;
650
699
  protected readonly mountHidden: import("@angular/core").Signal<boolean>;
651
700
  protected readonly achNoticeVisible: import("@angular/core").Signal<boolean>;
701
+ /** The bank notice text: the instant-only wording never mentions the two small deposits (they are not offered). */
702
+ protected readonly achNoticeText: import("@angular/core").Signal<string>;
652
703
  protected readonly effectiveSubmitLabel: import("@angular/core").Signal<string>;
653
704
  protected readonly submitDisabled: import("@angular/core").Signal<boolean>;
654
705
  private readonly messages;
@@ -657,6 +708,8 @@ export declare class StripePaymentComponent {
657
708
  private readonly connection;
658
709
  /** The `stripe.elements()` options without the deferred amount (that one is updated in place); `null` while there is no intent to show. */
659
710
  private readonly elementsConfig;
711
+ /** The `payment_method_types` of a deferred intent: the host's list (Link removed with `linkOff`), else `['card', 'us_bank_account']` with `linkOff`, else none (Stripe decides). */
712
+ private readonly deferredTypes;
660
713
  /** The Payment Element options that need a new element when they change (default values and read-only are updated in place). */
661
714
  private readonly elementConfig;
662
715
  private stripe;
@@ -771,6 +824,12 @@ export declare class StripePaymentComponent {
771
824
  private fail;
772
825
  /** Shows and emits a failure (what `fail()` always did). */
773
826
  private publishFailure;
827
+ /**
828
+ * A blocked submit (incomplete / invalid Element, a refused intent, a declined confirm) must not look like "nothing happened": once the alert is rendered it is scrolled into view
829
+ * (instant under `prefers-reduced-motion`, smooth otherwise) and focused, and its `role="alert"` makes a screen reader read the message. Not for load / return failures (nothing was submitted),
830
+ * and never in `mountOnly` (no alert is drawn).
831
+ */
832
+ private revealError;
774
833
  private finish;
775
834
  private announce;
776
835
  private runCardAction;
@@ -889,6 +948,21 @@ export declare class StripePaymentComponent {
889
948
  "required": false;
890
949
  "isSignal": true;
891
950
  };
951
+ "instantOnly": {
952
+ "alias": "instantOnly";
953
+ "required": false;
954
+ "isSignal": true;
955
+ };
956
+ "linkOff": {
957
+ "alias": "linkOff";
958
+ "required": false;
959
+ "isSignal": true;
960
+ };
961
+ "showPaid": {
962
+ "alias": "showPaid";
963
+ "required": false;
964
+ "isSignal": true;
965
+ };
892
966
  "returnUrl": {
893
967
  "alias": "returnUrl";
894
968
  "required": false;
@@ -1247,8 +1321,19 @@ export declare class MicrodepositVerifyComponent {
1247
1321
  readonly stepsText: import("@angular/core").InputSignal<string>;
1248
1322
  /** Read-only / status-only: replaces ONLY the middle sentence of the steps text (the deposits clause before it and "Until then this account can't be used ..." after it stay). */
1249
1323
  readonly readOnlyText: import("@angular/core").InputSignal<string>;
1250
- /** Hide Stripe's hosted-page link even for users who could use it. */
1324
+ /**
1325
+ * Show the processor's hosted verification page link (only an https `hostedVerificationUrl`, never to a read-only / status-only card). Default FALSE (own-UI policy: the payer verifies on this card, not on the
1326
+ * processor's page). Set it true only for a page that deliberately offers the hosted page.
1327
+ */
1328
+ readonly showHostedLink: import("@angular/core").InputSignal<boolean>;
1329
+ /** Hide the hosted-page link even when `showHostedLink` is on (kept for hosts that already pass it). */
1251
1330
  readonly hideHostedLink: import("@angular/core").InputSignal<boolean>;
1331
+ /** Host mode: how many verification attempts the payer has left (from your API). Shown as "N attempts remaining" under the button; `null` (default) shows nothing. In Stripe.js mode the component counts by itself (`maxAttempts`). */
1332
+ readonly attemptsRemaining: import("@angular/core").InputSignal<number | null>;
1333
+ /** Replaces the built-in "N attempts remaining" sentence (you translate it). Empty = the library text in the app's language. */
1334
+ readonly attemptsRemainingText: import("@angular/core").InputSignal<string>;
1335
+ /** Replaces the hint under the code field / the deposit amounts (default: "6 letters or numbers (SM plus 4) from the deposit description" / "Amounts are between 1 and 99 cents ..."). */
1336
+ readonly hint: import("@angular/core").InputSignal<string>;
1252
1337
  readonly cancelLabel: import("@angular/core").InputSignal<string>;
1253
1338
  readonly verifyLabel: import("@angular/core").InputSignal<string>;
1254
1339
  /** Replaces "Your current payment method stays active until the new bank account is verified." */
@@ -1297,6 +1382,14 @@ export declare class MicrodepositVerifyComponent {
1297
1382
  readonly tooManyAttempts: string;
1298
1383
  readonly codeRequired: string;
1299
1384
  };
1385
+ protected readonly hintText: import("@angular/core").Signal<string>;
1386
+ protected readonly errorId: string;
1387
+ protected readonly amountsHintId: string;
1388
+ /** The error alert (when shown) and the amounts hint describe each deposit field. */
1389
+ protected readonly describedBy: import("@angular/core").Signal<string>;
1390
+ private readonly codeField;
1391
+ private readonly firstField;
1392
+ private readonly secondField;
1300
1393
  readonly first: import("@angular/core").WritableSignal<string | number>;
1301
1394
  readonly second: import("@angular/core").WritableSignal<string | number>;
1302
1395
  readonly code: import("@angular/core").WritableSignal<string>;
@@ -1316,6 +1409,8 @@ export declare class MicrodepositVerifyComponent {
1316
1409
  readonly bankLine: import("@angular/core").Signal<string>;
1317
1410
  readonly busy: import("@angular/core").Signal<boolean>;
1318
1411
  readonly shownError: import("@angular/core").Signal<string>;
1412
+ /** Host mode: "N attempts remaining" (the host's `attemptsRemaining`, or its own `attemptsRemainingText`). Empty when the host says nothing. */
1413
+ readonly attemptsText: import("@angular/core").Signal<string>;
1319
1414
  readonly isProcessing: import("@angular/core").Signal<boolean>;
1320
1415
  readonly safeUrl: import("@angular/core").Signal<string | null>;
1321
1416
  /** The built-in steps text: deposits clause + what to do, or with no form the `readOnlyText` sentence, + "Until then this account can't be used to pay invoices." */
@@ -1325,6 +1420,9 @@ export declare class MicrodepositVerifyComponent {
1325
1420
  readonly hasInvalid: import("@angular/core").Signal<boolean>;
1326
1421
  /** The cancel confirm tells the truth: the saved method stays active only when one is saved. */
1327
1422
  readonly cancelMessage: import("@angular/core").Signal<string>;
1423
+ constructor();
1424
+ /** Puts the focus on the first deposit field / the code field (the first INVALID one when a local rule failed). */
1425
+ private focusFirstField;
1328
1426
  verify(): Promise<void>;
1329
1427
  confirmCancel(): void;
1330
1428
  static ɵfac: i0.ɵɵFactoryDeclaration<MicrodepositVerifyComponent, never>;
@@ -1379,11 +1477,31 @@ export declare class MicrodepositVerifyComponent {
1379
1477
  "required": false;
1380
1478
  "isSignal": true;
1381
1479
  };
1480
+ "showHostedLink": {
1481
+ "alias": "showHostedLink";
1482
+ "required": false;
1483
+ "isSignal": true;
1484
+ };
1382
1485
  "hideHostedLink": {
1383
1486
  "alias": "hideHostedLink";
1384
1487
  "required": false;
1385
1488
  "isSignal": true;
1386
1489
  };
1490
+ "attemptsRemaining": {
1491
+ "alias": "attemptsRemaining";
1492
+ "required": false;
1493
+ "isSignal": true;
1494
+ };
1495
+ "attemptsRemainingText": {
1496
+ "alias": "attemptsRemainingText";
1497
+ "required": false;
1498
+ "isSignal": true;
1499
+ };
1500
+ "hint": {
1501
+ "alias": "hint";
1502
+ "required": false;
1503
+ "isSignal": true;
1504
+ };
1387
1505
  "cancelLabel": {
1388
1506
  "alias": "cancelLabel";
1389
1507
  "required": false;
@@ -2056,4 +2174,4 @@ export declare class StripePaymentMethodComponent extends PaymentMethodPlugin {
2056
2174
  };
2057
2175
  }, {}, never, never, true, never>;
2058
2176
  }
2059
- export { type HandleReturnOptions, type MicrodepositStartedBy, type MicrodepositStepsContext, type MicrodepositType, type MicrodepositVerifyData, type MicrodepositVerifyEvent, type ProvideStripePaymentOptions, type StripeA11yMessages, type StripeAppearance, type StripeBillingDetails, type StripeCardFunding, type StripeConfirmResult, type StripeConfirmationTokenEvent, type StripeConfirmationTokenLike, type StripeConfirmedEvent, type StripeConnectAccount, type StripeConnectFlowOptions, type StripeConnectOutcome, type StripeConnectState, type StripeConnectStatus, type StripeConnection, type StripeCreateIntentFn, type StripeDeferredIntent, type StripeElementChange, type StripeElementsLike, type StripeErrorDisplay, type StripeErrorLike, type StripeErrorMessageOptions, type StripeFailure, type StripeFailureStage, type StripeFeeContext, type StripeFees, type StripeIntentContext, type StripeIntentInfo, type StripeIntentKind, type StripeIntentLike, type StripeLike, type StripeLikeWithBankSetup, type StripeLoadOptions, type StripeLoaderFn, type StripeMicrodepositNextAction, type StripeMicrodepositResult, type StripeOutcome, type StripePaymentDefaults, type StripePaymentElementLike, type StripeReadyEvent, type StripeReturnParams, type StripeReturnResult, type StripeVerification, isDarkPage };
2177
+ export { type HandleReturnOptions, type MicrodepositStartedBy, type MicrodepositStepsContext, type MicrodepositType, type MicrodepositVerifyData, type MicrodepositVerifyEvent, type ProvideStripePaymentOptions, type StripeA11yMessages, type StripeAppearance, type StripeBillingDetails, type StripeCardFunding, type StripeConfirmResult, type StripeConfirmationTokenEvent, type StripeConfirmationTokenLike, type StripeConfirmedEvent, type StripeConnectAccount, type StripeConnectFlowOptions, type StripeConnectOutcome, type StripeConnectState, type StripeConnectStatus, type StripeConnection, type StripeCreateIntentFn, type StripeDeferredIntent, type StripeElementChange, type StripeElementsLike, type StripeErrorDisplay, type StripeErrorLike, type StripeErrorMessageOptions, type StripeFailure, type StripeFailureStage, type StripeFeeContext, type StripeFees, type StripeIntentContext, type StripeIntentInfo, type StripeIntentKind, type StripeIntentLike, type StripeLike, type StripeLikeWithBankSetup, type StripeLoadOptions, type StripeLoaderFn, type StripeMicrodepositNextAction, type StripeMicrodepositResult, type StripeOutcome, type StripePaymentDefaults, type StripePaymentElementLike, type StripeReadyEvent, type StripeReturnParams, type StripeReturnResult, type StripeThemeTokens, type StripeVerification, isDarkPage };