@tesouro/embedded-components-react 0.7.74 → 0.8.0

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 (65) hide show
  1. package/README.md +14 -17
  2. package/dist/index.css +18 -17
  3. package/dist/index.d.ts +178 -49
  4. package/dist/index.js +51 -50
  5. package/dist/lib/BankAccountOnboardingWidget.d.ts +178 -49
  6. package/dist/lib/BankAccountOnboardingWidget.js +8 -7
  7. package/dist/lib/WidgetSuite.d.ts +177 -48
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +5 -4
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +131 -96
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +509 -496
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +47 -78
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +47 -49
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/ReviewStep.js +103 -0
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/TermsStep.js +35 -0
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +49 -28
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/apiMapping.js +35 -42
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -3
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/buildOnboardingPrefill.js +4 -10
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +4 -2
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/formatPhoneNumberInput.js +6 -2
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/maxBirthDate.js +4 -1
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +22 -9
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +8 -5
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +59 -60
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +17 -9
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +19 -18
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +344 -6
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +59 -58
  30. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +40 -33
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +7 -40
  32. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +57 -37
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +30 -93
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +40 -12
  35. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +36 -269
  36. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +93 -25
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +10 -19
  38. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js +61 -78
  39. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +270 -61
  40. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +25 -338
  41. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +23 -29
  42. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +53 -26
  43. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +342 -66
  44. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +26 -82
  45. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +27 -6
  46. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +56 -54
  47. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +123 -9
  48. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +5 -62
  49. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +82 -0
  50. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +11 -0
  51. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js +64 -0
  52. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +256 -311
  53. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +81 -2
  54. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +83 -53
  55. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +2 -147
  56. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +69 -46
  57. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +5 -35
  58. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +4 -4
  60. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +122 -165
  61. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +12 -27
  62. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +0 -1
  63. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js +0 -1
  64. package/dist/packages/shared-ui-shadcn/dist/index.js +81 -23
  65. package/package.json +1 -1
package/README.md CHANGED
@@ -530,28 +530,25 @@ Walks an applicant through bank-account onboarding: business details, personal d
530
530
 
531
531
  #### Props
532
532
 
533
- | Prop | Type | Default | Description |
534
- | ------------------------------------------- | ---------------------------------------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
535
- | `onEmbeddedOnboardingCompletedSuccessfully` | `() => void` | **Required** | Called when the application is approved and the account is open. |
536
- | `onNavigateToDashboard` | `() => void` | **Required** | Called when the user clicks the dashboard CTA on the result screen. |
537
- | `initialBusinessDetails` | `Partial<HostSupplied<BusinessDetailsValues>>` | `undefined` | Prefills step 1 (business details); the user can still edit. |
538
- | `initialPersonalDetails` | `Partial<HostSupplied<PersonalDetailsValues>>` | `undefined` | Prefills step 2 (personal details); the user can still edit. |
539
- | `initialAdditionalOwners` | `HostSuppliedOwner[]` | `[]` | Prefills step 3 (additional owners). |
540
- | `open` | `boolean` | `undefined` | Controlled open state for the modal; update it from `onOpenChange`. Omit for uncontrolled mode. |
541
- | `defaultOpen` | `boolean` | `false` | Initial open state when uncontrolled. Ignored when `open` is set. |
542
- | `onOpenChange` | `(open: boolean) => void` | `undefined` | Fires whenever the modal opens or closes (overlay click, Escape, close button, Cancel, save or delete). |
543
- | `labels` | `BankAccountOnboardingWidgetLabels` | English labels | Per-step and shell copy overrides, merged with the English defaults. |
544
- | `bankLogoSrc` | `string` | `undefined` | Bank logo URL for the result screen; falls back to the bank name as text. |
545
- | `disclosureLinks` | `DisclosureLinks` | `undefined` | URLs for Terms of Use, Privacy Policy, Electronic Communication and Patriot Act on step 1. You resolve these; omit to leave unset. |
546
- | `isFullScreenInline` | `boolean` | `false` | Renders inline, filling its container, instead of in a modal. `open` / `defaultOpen` are ignored. |
547
- | `showApplicationStatusRefresh` | `boolean` | `false` | Adds a **Check again** button to the application status card that re-reads the organization's application. Never shown over the form or result screens. |
548
- | `onResultPhaseChange` | `(isInResultPhase: boolean) => void` | `undefined` | Called with `true` once the widget starts processing a submitted application, and with `false` if it unmounts after that. While `true` it keeps its processing or result screen up whatever the status read says, so leave it mounted. |
533
+ | Prop | Type | Default | Description |
534
+ | ------------------------------------------- | ----------------------------------------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
535
+ | `onEmbeddedOnboardingCompletedSuccessfully` | `() => void` | **Required** | Called when the application is approved and the account is open. |
536
+ | `onNavigateToDashboard` | `() => void` | **Required** | Called when the user clicks the dashboard CTA on the result screen. |
537
+ | `initialBusinessDetails` | `Partial<HostSupplied<BusinessDetailsValues>>` | `undefined` | Prefills step 2 (business details); the user can still edit. |
538
+ | `initialPersonalDetails` | `Partial<HostSupplied<PersonalDetailsValues>>` | `undefined` | Prefills step 1 (personal details); the user can still edit. |
539
+ | `initialAdditionalOwners` | `HostSuppliedOwner[]` | `[]` | Prefills the owners list on step 2. |
540
+ | `labels` | `BankAccountOnboardingWidgetLabels` | English labels | Per-step and shell copy overrides, merged with the English defaults. |
541
+ | `bankLogoSrc` | `string` | `undefined` | Bank logo URL for the result screen; falls back to the bank name as text. |
542
+ | `disclosureLinks` | `DisclosureLinks` | `undefined` | URLs for Terms of Use, Privacy Policy, Electronic Communication and Patriot Act on the Terms step. You resolve these; omit to leave unset. |
543
+ | `onSuppressed` | `(reason: OnboardingSuppressionReason) => void` | `undefined` | Called once the widget decides to render nothing, with the reason. Use it to swap in your own content instead of leaving the empty render. |
544
+ | `showApplicationStatusRefresh` | `boolean` | `false` | Adds a **Check again** button to the application status card that re-reads the organization's application. Never shown over the form or result screens. |
545
+ | `onResultPhaseChange` | `(isInResultPhase: boolean) => void` | `undefined` | Called with `true` once the widget starts processing a submitted application, and with `false` if it unmounts after that. While `true` it keeps its processing or result screen up whatever the status read says, so leave it mounted. |
549
546
 
550
547
  ### OfferWidget
551
548
 
552
549
  An offer card and modal that invites the user to apply for a product (today, a bank account) and then shows where their application stands.
553
550
 
554
- The card and its "Learn more" modal present your product copy (logo, captions, "How it works" steps, benefits). Its Apply now and modal CTAs call `onPrimaryCtaClick`, which you typically wire to open `BankAccountOnboardingWidget`. Once an application exists, the card swaps its CTAs for the application's status (see Behaviour), and it hides itself when the user already has an account.
551
+ The card and its "Learn more" modal present your product copy (logo, captions, "How it works" steps, benefits). Its Apply now and modal CTAs call `onPrimaryCtaClick`, which you typically wire to show `BankAccountOnboardingWidget` inline. Once an application exists, the card swaps its CTAs for the application's status (see Behaviour), and it hides itself when the user already has an account.
555
552
 
556
553
  #### Props
557
554
 
package/dist/index.css CHANGED
@@ -1332,9 +1332,6 @@
1332
1332
  .ttw\:w-\[720px\] {
1333
1333
  width: 720px;
1334
1334
  }
1335
- .ttw\:w-\[840px\] {
1336
- width: 840px;
1337
- }
1338
1335
  .ttw\:w-\[880px\] {
1339
1336
  width: 880px;
1340
1337
  }
@@ -1962,6 +1959,9 @@
1962
1959
  .ttw\:gap-8 {
1963
1960
  gap: calc(var(--ttw-spacing) * 8);
1964
1961
  }
1962
+ .ttw\:gap-10 {
1963
+ gap: calc(var(--ttw-spacing) * 10);
1964
+ }
1965
1965
  .ttw\:gap-12 {
1966
1966
  gap: calc(var(--ttw-spacing) * 12);
1967
1967
  }
@@ -2671,6 +2671,12 @@
2671
2671
  background-color: color-mix(in oklab, var(--ttw-destructive) 10%, transparent);
2672
2672
  }
2673
2673
  }
2674
+ .ttw\:bg-destructive\/15 {
2675
+ background-color: var(--ttw-destructive);
2676
+ @supports (color: color-mix(in lab, red, red)) {
2677
+ background-color: color-mix(in oklab, var(--ttw-destructive) 15%, transparent);
2678
+ }
2679
+ }
2674
2680
  .ttw\:bg-destructive\/20 {
2675
2681
  background-color: var(--ttw-destructive);
2676
2682
  @supports (color: color-mix(in lab, red, red)) {
@@ -2716,6 +2722,9 @@
2716
2722
  .ttw\:bg-green-500 {
2717
2723
  background-color: var(--ttw-color-green-500);
2718
2724
  }
2725
+ .ttw\:bg-green-600\! {
2726
+ background-color: var(--ttw-color-green-600) !important;
2727
+ }
2719
2728
  .ttw\:bg-green-700 {
2720
2729
  background-color: var(--ttw-color-green-700);
2721
2730
  }
@@ -3277,15 +3286,9 @@
3277
3286
  .ttw\:pr-9 {
3278
3287
  padding-right: calc(var(--ttw-spacing) * 9);
3279
3288
  }
3280
- .ttw\:pr-10 {
3281
- padding-right: calc(var(--ttw-spacing) * 10);
3282
- }
3283
3289
  .ttw\:pr-12 {
3284
3290
  padding-right: calc(var(--ttw-spacing) * 12);
3285
3291
  }
3286
- .ttw\:pr-14 {
3287
- padding-right: calc(var(--ttw-spacing) * 14);
3288
- }
3289
3292
  .ttw\:pr-16 {
3290
3293
  padding-right: calc(var(--ttw-spacing) * 16);
3291
3294
  }
@@ -3841,6 +3844,9 @@
3841
3844
  .ttw\:text-white {
3842
3845
  color: var(--ttw-color-white);
3843
3846
  }
3847
+ .ttw\:text-white\! {
3848
+ color: var(--ttw-color-white) !important;
3849
+ }
3844
3850
  .ttw\:text-white\/70 {
3845
3851
  color: var(--ttw-color-white);
3846
3852
  @supports (color: color-mix(in lab, red, red)) {
@@ -4707,14 +4713,6 @@
4707
4713
  .ttw\:hover\:bg-cyan-50:hover {
4708
4714
  background-color: var(--ttw-color-cyan-50);
4709
4715
  }
4710
- .ttw\:hover\:bg-destructive\/5:hover {
4711
- background-color: var(--ttw-destructive);
4712
- }
4713
- @supports (color: color-mix(in lab, red, red)) {
4714
- .ttw\:hover\:bg-destructive\/5:hover {
4715
- background-color: color-mix(in oklab, var(--ttw-destructive) 5%, transparent);
4716
- }
4717
- }
4718
4716
  .ttw\:hover\:bg-destructive\/10:hover {
4719
4717
  background-color: var(--ttw-destructive);
4720
4718
  }
@@ -4748,6 +4746,9 @@
4748
4746
  .ttw\:hover\:bg-green-100:hover {
4749
4747
  background-color: var(--ttw-color-green-100);
4750
4748
  }
4749
+ .ttw\:hover\:bg-green-700\!:hover {
4750
+ background-color: var(--ttw-color-green-700) !important;
4751
+ }
4751
4752
  .ttw\:hover\:bg-indigo-100\/60:hover {
4752
4753
  background-color: var(--ttw-color-indigo-100);
4753
4754
  }
package/dist/index.d.ts CHANGED
@@ -491,6 +491,48 @@ declare const Scope: {
491
491
  type Scope = (typeof Scope)[keyof typeof Scope];
492
492
  declare function isScope(value: unknown): value is Scope;
493
493
 
494
+ /**
495
+ * Why the onboarding entry point is hidden from the signed-in user.
496
+ *
497
+ * Offer and bank-account onboarding both self-suppress from this, and
498
+ * "nothing rendered" is indistinguishable between the reasons from the outside
499
+ * — which makes a support question ("why doesn't this user see onboarding?")
500
+ * unanswerable without a signal. Every onboarding suppression therefore emits
501
+ * its reason (analytics event + `console.debug`), so the answer is a query
502
+ * rather than a guess.
503
+ */
504
+ declare const OnboardingSuppressionReason: {
505
+ /** This user already has an account: their own widget-init status is ACTIVE or INACTIVE. */
506
+ readonly UserAlreadyOnboarded: "user_already_onboarded";
507
+ /**
508
+ * This user was invited to an organization that already exists (widget-init
509
+ * status INVITED), so the business is not theirs to apply for. Kept separate
510
+ * from `UserAlreadyOnboarded` because it is not true that they are onboarded —
511
+ * their account is pending disclosure acceptance — and conflating the two
512
+ * would misreport why onboarding is hidden.
513
+ */
514
+ readonly UserInvitedToOrganization: "user_invited_to_organization";
515
+ /** The organization's bank-account application is COMPLETE — the business is onboarded. */
516
+ readonly OrganizationApplicationComplete: "organization_application_complete";
517
+ /**
518
+ * Another member of the organization has a bank-account application in
519
+ * progress. The backend allows one application per organization, so a
520
+ * colleague must not start a second one.
521
+ */
522
+ readonly OrganizationApplicationStartedByOther: "organization_application_started_by_other";
523
+ /**
524
+ * The organization's bank-account application was denied more than 30 days
525
+ * ago, so the denial notice has stopped showing (EMBD-6174).
526
+ */
527
+ readonly OrganizationApplicationDenialExpired: "organization_application_denial_expired";
528
+ /**
529
+ * The organization's bank-account application is in a status this widget
530
+ * has no copy for, so it hides rather than offer a second application.
531
+ */
532
+ readonly OrganizationApplicationStatusUnrecognized: "organization_application_status_unrecognized";
533
+ };
534
+ type OnboardingSuppressionReason = (typeof OnboardingSuppressionReason)[keyof typeof OnboardingSuppressionReason];
535
+
494
536
  interface LabelLabels {
495
537
  /**
496
538
  * How the field name and its requirement fragment compose. `{label}` is the
@@ -1658,6 +1700,13 @@ interface AdditionalOwner {
1658
1700
  mobilePhoneNumber: string;
1659
1701
  ownsOver25Percent: boolean | null;
1660
1702
  ownershipPercentage: number | null;
1703
+ /**
1704
+ * Client-only, never sent. False (or absent) for an owner the application
1705
+ * prefilled from what the API already holds: the applicant has to read it
1706
+ * back and confirm it before the step can continue. Entering or editing an
1707
+ * owner sets it, since the applicant has then seen every field.
1708
+ */
1709
+ reviewed?: boolean;
1661
1710
  }
1662
1711
 
1663
1712
  /**
@@ -1677,11 +1726,44 @@ interface DisclosureLinks {
1677
1726
  interface AdditionalOwnersLabels {
1678
1727
  heading: string;
1679
1728
  subheading: string;
1729
+ /** Replaces `subheading` while nobody is listed, beside the empty state. */
1730
+ emptySubheading: string;
1731
+ /** The owners section title on the Review step. */
1732
+ reviewSectionTitle: string;
1680
1733
  primaryOwnerShareLabel: string;
1734
+ /** Empty-state title, shown while nobody is listed. */
1681
1735
  emptyOwnersText: string;
1736
+ /** The empty state's own add button, which stands in for `addOwner`. */
1737
+ emptyOwnersAddOwner: string;
1682
1738
  addOwner: string;
1683
1739
  edit: string;
1740
+ /** Replaces the edit icon on an owner row whose details are incomplete. */
1741
+ completeDetails: string;
1684
1742
  remove: string;
1743
+ /** The applicant's own row: they are removed from the Personal step instead. */
1744
+ removePrimaryOwnerDisabled: string;
1745
+ /** The applicant's own row: their details are edited on the Personal step. */
1746
+ editPrimaryOwnerDisabled: string;
1747
+ /** Hover/focus tooltip on the applicant's disabled pencil: where to edit. */
1748
+ editPrimaryOwnerTooltip: string;
1749
+ /** Hover/focus tooltip on the applicant's disabled trash: why it is locked. */
1750
+ removePrimaryOwnerTooltip: string;
1751
+ /** Opens the read-only review of an owner the applicant has not confirmed. */
1752
+ startReview: string;
1753
+ deleteOwner: string;
1754
+ editOwner: string;
1755
+ confirmDetails: string;
1756
+ /** Screen-reader text for each row's status icon. */
1757
+ statusComplete: string;
1758
+ statusMissing: string;
1759
+ statusUnreviewed: string;
1760
+ inlineEditHeadingTemplate: (name: string) => string;
1761
+ missingFieldsAlert: string;
1762
+ allFieldsRequiredNote: string;
1763
+ reviewDateOfBirth: string;
1764
+ reviewSsn: string;
1765
+ reviewPhone: string;
1766
+ reviewHomeAddress: string;
1685
1767
  cancel: string;
1686
1768
  save: string;
1687
1769
  close: string;
@@ -1691,12 +1773,19 @@ interface AdditionalOwnersLabels {
1691
1773
  ownerShareColumn: string;
1692
1774
  ownerActionsColumn: string;
1693
1775
  formHeadingAdd: string;
1776
+ /**
1777
+ * @deprecated Unused since a saved owner is edited in its own row, under
1778
+ * `inlineEditHeadingTemplate`. Kept so existing overrides still type-check.
1779
+ */
1694
1780
  formHeadingEdit: string;
1695
1781
  firstName: string;
1696
1782
  lastName: string;
1697
1783
  dateOfBirth: string;
1698
1784
  dateOfBirthPlaceholder: string;
1699
- dateOfBirthMinAgeError: string;
1785
+ /** Shown under the date of birth field until it has an error. */
1786
+ dateOfBirthHint: string;
1787
+ /** A complete date that cannot be a birth date: in the future, or before 1900. */
1788
+ dateOfBirthInvalidError: string;
1700
1789
  ssn: string;
1701
1790
  /** Shown when an SSN is already stored and need not be retyped. */
1702
1791
  ssnOnFileTemplate: (last4: string) => string;
@@ -1721,6 +1810,8 @@ interface AdditionalOwnersLabels {
1721
1810
  invalidFieldError: string;
1722
1811
  /** Shown on an owners-list row whose saved details are incomplete or invalid. */
1723
1812
  ownerIncompleteError: string;
1813
+ /** Shown above the owner table when Next is pressed with the owner editor open. */
1814
+ ownerEditorOpenError: string;
1724
1815
  /** Required-field marker appended to field labels (e.g. ` *`). */
1725
1816
  requiredFieldMarker: string;
1726
1817
  /** Suffix shown after ownership percentage inputs (e.g. `%`). */
@@ -1737,6 +1828,10 @@ declare const ADDITIONAL_OWNERS_LABELS_EN: AdditionalOwnersLabels;
1737
1828
  interface BusinessDetailsLabels {
1738
1829
  heading: string;
1739
1830
  subheading: string;
1831
+ /** Shown at the top of the edit form, explaining `requiredFieldMarker`. */
1832
+ requiredFieldsNote: string;
1833
+ /** Appended to each required field's label. */
1834
+ requiredFieldMarker: string;
1740
1835
  companyLegalName: string;
1741
1836
  companyDbaName: string;
1742
1837
  businessAddress: string;
@@ -1764,6 +1859,11 @@ interface BusinessDetailsLabels {
1764
1859
  isAuthorizedQuestion: string;
1765
1860
  isAuthorizedYes: string;
1766
1861
  isAuthorizedNo: string;
1862
+ /** Heading above the attestation checkboxes on the terms step. */
1863
+ disclosuresHeading: string;
1864
+ disclosuresSubheading: string;
1865
+ /** Bold lead-in naming the disclosure checkbox, before its agreement copy. */
1866
+ disclosureAgreementLead: string;
1767
1867
  /** Use `{bankName}` for the sponsoring bank (e.g. "Zenith Bank"). */
1768
1868
  acceptDisclosuresPrefix: string;
1769
1869
  termsOfUse: string;
@@ -1773,6 +1873,8 @@ interface BusinessDetailsLabels {
1773
1873
  electronicCommunication: string;
1774
1874
  acceptDisclosuresAfterElectronic: string;
1775
1875
  patriotAct: string;
1876
+ /** Shown under an unticked attestation once Next has been pressed. */
1877
+ consentRequiredError: string;
1776
1878
  companyStructureOptions: Record<'CORPORATION_PUBLIC' | 'CORPORATION_PRIVATE' | 'CORPORATION_NOT_FOR_PROFIT' | 'LLC' | 'LLP' | 'PARTNERSHIP' | 'SOLE_PROPRIETORSHIP' | 'GOVERNMENT' | 'COOPERATIVE' | 'ASSOCIATION' | 'OTHER', string>;
1777
1879
  naicsTitles?: Record<string, string>;
1778
1880
  stateTitles?: Partial<Record<USStateAbbreviation, string>>;
@@ -1782,10 +1884,18 @@ declare const BUSINESS_DETAILS_LABELS_EN: BusinessDetailsLabels;
1782
1884
  interface PersonalDetailsLabels {
1783
1885
  heading: string;
1784
1886
  subheading: string;
1887
+ /** Shown at the top of the edit form, explaining `requiredFieldMarker`. */
1888
+ requiredFieldsNote: string;
1889
+ /** Appended to each required field's label. */
1890
+ requiredFieldMarker: string;
1785
1891
  firstName: string;
1786
1892
  lastName: string;
1787
1893
  dateOfBirth: string;
1788
1894
  dateOfBirthPlaceholder: string;
1895
+ /** Shown under the date of birth field until it has an error. */
1896
+ dateOfBirthHint: string;
1897
+ /** A complete date that cannot be a birth date: in the future, or before 1900. */
1898
+ dateOfBirthInvalidError: string;
1789
1899
  dateOfBirthMinAgeError: string;
1790
1900
  ssn: string;
1791
1901
  /** Shown when an SSN is already stored and need not be retyped. */
@@ -1835,15 +1945,11 @@ interface ResultLabels {
1835
1945
  }
1836
1946
  declare const RESULT_LABELS_EN: ResultLabels;
1837
1947
 
1838
- interface UnsavedApplicationDialogLabels {
1839
- title: string;
1840
- description: string;
1841
- /** Saves the work in progress as a draft, then closes onboarding. */
1842
- saveDraftButton: string;
1843
- /** Closes onboarding and throws the unsaved edits away. */
1844
- discardButton: string;
1845
- /** Screen-reader name for the corner close control; returns to the form. */
1846
- closeButton: string;
1948
+ interface ApplicationReviewLabels {
1949
+ /** Visible text of each section's edit button. */
1950
+ editButton: string;
1951
+ /** Shown in a section that has no rows to list (e.g. no other owners). */
1952
+ emptySection: string;
1847
1953
  }
1848
1954
 
1849
1955
  interface DeleteApplicationDialogLabels {
@@ -1899,8 +2005,6 @@ interface ApplicationStatusLabels {
1899
2005
  title: string;
1900
2006
  /** Sponsor line opposite the title. Use `{bankName}` for the bank. */
1901
2007
  bankDisclosure: string;
1902
- /** Screen-reader name of the dialog's close control, in modal mode. */
1903
- close: string;
1904
2008
  /**
1905
2009
  * The re-check control under the card, shown only when the host opts in with
1906
2010
  * `showApplicationStatusRefresh`.
@@ -1925,26 +2029,45 @@ interface ApplicationStatusLabels {
1925
2029
  }
1926
2030
  declare const APPLICATION_STATUS_LABELS_EN: ApplicationStatusLabels;
1927
2031
  interface BankAccountOnboardingWidgetLabels {
2032
+ /** In flow order (EMBD-5910): personal, business and owners, review, terms. */
1928
2033
  stepIndicator: {
1929
- business: string;
1930
2034
  personal: string;
1931
- ownership: string;
2035
+ business: string;
2036
+ review: string;
2037
+ terms: string;
1932
2038
  done: string;
1933
2039
  };
1934
2040
  businessDetails: PartialDeep<BusinessDetailsLabels>;
1935
2041
  personalDetails: Partial<PersonalDetailsLabels>;
1936
2042
  additionalOwners: Partial<AdditionalOwnersLabels>;
2043
+ /** The review step's summary cards. Section titles reuse each step's own. */
2044
+ applicationReview: Partial<ApplicationReviewLabels>;
1937
2045
  result: ResultLabels;
1938
- /** The prompt shown when closing with unsaved changes. */
1939
- unsavedApplicationDialog: Partial<UnsavedApplicationDialogLabels>;
1940
2046
  /**
1941
- * The prompt confirming "Delete". Its bold run
2047
+ * The prompt confirming "Delete application". Its bold run
1942
2048
  * defaults to `saveAndClose`, so it names the footer's save control.
1943
2049
  */
1944
2050
  deleteApplicationDialog: Partial<DeleteApplicationDialogLabels>;
2051
+ /** Visible text of the footer's Back control on every step. */
1945
2052
  back: string;
1946
- cancel: string;
1947
- next: string;
2053
+ /**
2054
+ * The footer's Next control, naming the step it leads to. Keyed by the step
2055
+ * Next lands on; the terms step shows `submit` instead.
2056
+ */
2057
+ nextToStep: {
2058
+ business: string;
2059
+ review: string;
2060
+ terms: string;
2061
+ };
2062
+ /**
2063
+ * The Back control's accessible name, naming the step it returns to. Its
2064
+ * visible text stays `back`. Keyed by the step Back lands on.
2065
+ */
2066
+ backToStepAriaLabel: {
2067
+ personal: string;
2068
+ business: string;
2069
+ review: string;
2070
+ };
1948
2071
  submit: string;
1949
2072
  saveAndClose: string;
1950
2073
  /** The destructive footer control that opens the delete prompt. */
@@ -1957,8 +2080,14 @@ interface BankAccountOnboardingWidgetLabels {
1957
2080
  businessReviewSubtitle: string;
1958
2081
  personalReviewTitle: string;
1959
2082
  personalReviewSubtitle: string;
1960
- /** Accessible title for the onboarding modal. */
1961
- modalTitle: string;
2083
+ reviewTitle: string;
2084
+ reviewSubtitle: string;
2085
+ /** Names the review step's owners edit button for assistive tech. */
2086
+ reviewOwnersEditAriaLabel: string;
2087
+ termsTitle: string;
2088
+ termsSubtitle: string;
2089
+ /** Shown when Next is pressed while an owner still needs reviewing. */
2090
+ ownersNeedReviewError: string;
1962
2091
  /** Shown when submitting the application fails. */
1963
2092
  submitFailedError: string;
1964
2093
  /** Shown when saving the application fails. */
@@ -1993,6 +2122,33 @@ type HostSuppliedOwner = Omit<AdditionalOwner, StoredIdentifierMarker | 'id'>;
1993
2122
  interface BankAccountOnboardingWidgetInnerProps {
1994
2123
  onEmbeddedOnboardingCompletedSuccessfully: () => void;
1995
2124
  onNavigateToDashboard: () => void;
2125
+ /**
2126
+ * Notified once the widget determines it will render nothing, with why. A
2127
+ * host that mounts this widget based on its own copy of the same status (to
2128
+ * avoid a network round trip per widget instance, say) can end up
2129
+ * disagreeing with the widget's own live check — its request could still be
2130
+ * in flight, retrying, or have failed independently. This is the widget's
2131
+ * own resolution of "should I show anything, and why", so a host can use it
2132
+ * to swap to its real content instead of leaving this widget's empty render
2133
+ * in place.
2134
+ *
2135
+ * Only two reasons mean an account is provisioned, which matters for a host
2136
+ * deciding whether to also unlock account-scoped navigation:
2137
+ * - `UserAlreadyOnboarded`: the signed-in user already has an account.
2138
+ * - `OrganizationApplicationComplete`: the organization's application is
2139
+ * complete.
2140
+ *
2141
+ * The rest mean no account yet:
2142
+ * - `UserInvitedToOrganization`: invited to an organization that has an
2143
+ * account, but has not yet accepted its disclosures.
2144
+ * - `OrganizationApplicationStartedByOther`: another member's application is
2145
+ * still in flight.
2146
+ * - `OrganizationApplicationDenialExpired`: the application was denied more
2147
+ * than 30 days ago.
2148
+ * - `OrganizationApplicationStatusUnrecognized`: the application has a status
2149
+ * the widget does not recognize.
2150
+ */
2151
+ onSuppressed?: (reason: OnboardingSuppressionReason) => void;
1996
2152
  labels?: PartialDeep<BankAccountOnboardingWidgetLabels>;
1997
2153
  initialBusinessDetails?: Partial<BusinessDetailsValues>;
1998
2154
  initialPersonalDetails?: Partial<PersonalDetailsValues>;
@@ -2033,33 +2189,6 @@ interface BankAccountOnboardingWidgetInnerProps {
2033
2189
  * The published widget does not look up white-label/bank maps itself.
2034
2190
  */
2035
2191
  disclosureLinks?: DisclosureLinks;
2036
- /**
2037
- * Controlled open state for the onboarding modal. When provided, the host
2038
- * application owns the open/close state and must update it via
2039
- * `onOpenChange`. Defaults to uncontrolled mode (`defaultOpen` is honoured).
2040
- */
2041
- open?: boolean;
2042
- /**
2043
- * Initial open state when uncontrolled. Defaults to `false` so the onboarding
2044
- * modal stays hidden until the host opens it.
2045
- */
2046
- defaultOpen?: boolean;
2047
- /**
2048
- * Notified whenever the modal opens or closes — both from internal gestures
2049
- * (overlay click, escape key, close button) and external state updates.
2050
- * Also fires in uncontrolled mode (`open` omitted) so hosts can run analytics
2051
- * or other side effects without owning the open state.
2052
- */
2053
- onOpenChange?: (open: boolean) => void;
2054
- /**
2055
- * Renders the widget inline — filling the width/height of its host
2056
- * container — instead of in a modal dialog. `open`/`defaultOpen` play no
2057
- * part in whether the widget's content is shown in this mode; the widget
2058
- * always renders once mounted, and the host controls mounting instead.
2059
- * `onOpenChange` still fires for gestures like Cancel, so hosts can react
2060
- * to them (e.g. by unmounting the widget).
2061
- */
2062
- isFullScreenInline?: boolean;
2063
2192
  /**
2064
2193
  * Puts a "Check again" control under the application status card, which
2065
2194
  * re-reads the organization's application.
@@ -6111,5 +6240,5 @@ interface CheckAmountAndDetailScreenProps {
6111
6240
 
6112
6241
  type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
6113
6242
 
6114
- export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BANKING_COMPLIANCE_BANNER_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BankingComplianceBannerWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
6243
+ export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BANKING_COMPLIANCE_BANNER_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BankingComplianceBannerWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, OnboardingSuppressionReason, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
6115
6244
  export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BankingComplianceBannerLabels, BankingComplianceBannerWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, OfferStatusLabelValues, OfferStatusNoticeLabels, OfferWidgetBenefit, OfferWidgetContent, OfferWidgetHowItWorksStep, OfferWidgetImage, OfferWidgetLabels, OfferWidgetProps, OfferWidgetStatusLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableBankAttribution, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };