@tesouro/embedded-components-react 0.10.6 → 0.10.10

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 (56) hide show
  1. package/dist/index.css +9 -0
  2. package/dist/index.d.ts +46 -7
  3. package/dist/index.js +4 -4
  4. package/dist/lib/BankAccountOnboardingWidget.d.ts +46 -7
  5. package/dist/lib/BankAccountOnboardingWidget.js +4 -4
  6. package/dist/lib/WidgetSuite.d.ts +46 -7
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +175 -98
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +365 -343
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +3 -9
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/ReviewStep.js +24 -23
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/TermsStep.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/apiMapping.js +15 -10
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicantOwnerSummary.js +11 -0
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -2
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +3 -26
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +2 -6
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +3 -1
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +20 -20
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +5 -340
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +422 -58
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +50 -30
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +39 -6
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +6 -58
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +62 -31
  30. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +31 -38
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +27 -26
  32. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +34 -91
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +96 -12
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +12 -276
  35. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +294 -25
  36. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +28 -23
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +23 -53
  38. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +46 -343
  39. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +268 -26
  40. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +29 -29
  41. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +29 -59
  42. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +53 -118
  43. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +123 -5
  44. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +5 -80
  45. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +80 -10
  46. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js +10 -64
  47. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index33.js +64 -6
  48. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index34.js +6 -44
  49. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index35.js +45 -0
  50. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +110 -2
  51. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +2 -77
  52. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +89 -5
  53. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  54. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +67 -61
  55. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellStepper.js +16 -19
  56. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -2881,6 +2881,9 @@
2881
2881
  .ttw\:bg-stone-200 {
2882
2882
  background-color: var(--ttw-color-stone-200);
2883
2883
  }
2884
+ .ttw\:bg-success {
2885
+ background-color: var(--ttw-success);
2886
+ }
2884
2887
  .ttw\:bg-success-subtle {
2885
2888
  background-color: var(
2886
2889
  --ttw-success-subtle,
@@ -3709,6 +3712,9 @@
3709
3712
  .ttw\:text-right {
3710
3713
  text-align: right;
3711
3714
  }
3715
+ .ttw\:align-baseline {
3716
+ vertical-align: baseline;
3717
+ }
3712
3718
  .ttw\:align-middle {
3713
3719
  vertical-align: middle;
3714
3720
  }
@@ -6131,6 +6137,9 @@
6131
6137
  }
6132
6138
  }
6133
6139
  @media (width >= 40rem) {
6140
+ .ttw\:sm\:col-span-2 {
6141
+ grid-column: span 2 / span 2;
6142
+ }
6134
6143
  .ttw\:sm\:mr-auto {
6135
6144
  margin-right: auto;
6136
6145
  }
package/dist/index.d.ts CHANGED
@@ -1815,14 +1815,41 @@ interface DisclosureLinks {
1815
1815
 
1816
1816
  interface AdditionalOwnersLabels {
1817
1817
  heading: string;
1818
+ /** Why owners are asked for, under the heading. */
1818
1819
  subheading: string;
1819
- /** Replaces `subheading` while nobody is listed, beside the empty state. */
1820
+ /**
1821
+ * @deprecated Unused since the section always shows `subheading`, and the
1822
+ * empty state carries its own body. Kept so existing overrides still
1823
+ * type-check.
1824
+ */
1820
1825
  emptySubheading: string;
1826
+ /** Asks whether the applicant is a beneficial owner, given the business name. */
1827
+ applicantOwnsQuestionTemplate: (businessName: string) => string;
1828
+ /** Stands in for the business name in the copy above until one is entered. */
1829
+ businessNameFallback: string;
1830
+ applicantOwnsYes: string;
1831
+ applicantOwnsNo: string;
1832
+ /** Badge beside the applicant's name in their own editor. */
1833
+ applicantBadge: string;
1834
+ /** The applicant's share field in their editor. */
1835
+ applicantOwnershipPercentage: string;
1836
+ /** Says where the read-only summary in the applicant's editor comes from. */
1837
+ applicantDetailsSourceNote: string;
1838
+ /** Summary parts in the applicant's editor, joined by `applicantSummarySeparator`. */
1839
+ applicantBornTemplate: (dateOfBirth: string) => string;
1840
+ applicantSsnEndingTemplate: (last4: string) => string;
1841
+ applicantSummarySeparator: string;
1842
+ /** Link from the applicant's editor back to the Personal details step. */
1843
+ editPersonalDetails: string;
1844
+ /** Accessible name of the pencil on the applicant's own row. */
1845
+ editApplicantOwnership: string;
1821
1846
  /** The owners section title on the Review step. */
1822
1847
  reviewSectionTitle: string;
1823
1848
  primaryOwnerShareLabel: string;
1824
1849
  /** Empty-state title, shown while nobody is listed. */
1825
1850
  emptyOwnersText: string;
1851
+ /** Empty-state body, given the business name. */
1852
+ emptyOwnersBodyTemplate: (businessName: string) => string;
1826
1853
  /** The empty state's own add button, which stands in for `addOwner`. */
1827
1854
  emptyOwnersAddOwner: string;
1828
1855
  addOwner: string;
@@ -1832,9 +1859,15 @@ interface AdditionalOwnersLabels {
1832
1859
  remove: string;
1833
1860
  /** The applicant's own row: they are removed from the Personal step instead. */
1834
1861
  removePrimaryOwnerDisabled: string;
1835
- /** The applicant's own row: their details are edited on the Personal step. */
1862
+ /**
1863
+ * @deprecated Unused since the applicant edits their share in their own row.
1864
+ * Kept so existing overrides still type-check.
1865
+ */
1836
1866
  editPrimaryOwnerDisabled: string;
1837
- /** Hover/focus tooltip on the applicant's disabled pencil: where to edit. */
1867
+ /**
1868
+ * @deprecated Unused since the applicant edits their share in their own row.
1869
+ * Kept so existing overrides still type-check.
1870
+ */
1838
1871
  editPrimaryOwnerTooltip: string;
1839
1872
  /** Hover/focus tooltip on the applicant's disabled trash: why it is locked. */
1840
1873
  removePrimaryOwnerTooltip: string;
@@ -2290,11 +2323,17 @@ interface BankAccountOnboardingWidgetInnerProps {
2290
2323
  */
2291
2324
  onNoticeReplacedByForm?: () => void;
2292
2325
  /**
2293
- * Moves focus to the form's title when it mounts. Set by the session scope
2294
- * after "Start a new application", whose button unmounts with the deleted
2295
- * screen. Not set by hosts.
2326
+ * Moves focus to the form's title, or to the status card's when the restart
2327
+ * lands on one, when it mounts. Set by the session scope after "Start a new
2328
+ * application", whose button unmounts with the deleted screen. Not set by
2329
+ * hosts.
2296
2330
  */
2297
2331
  focusFormOnMount?: boolean;
2332
+ /**
2333
+ * Called once whatever `focusFormOnMount` focused has mounted, so the
2334
+ * session scope can drop the flag. Set by the session scope, not by hosts.
2335
+ */
2336
+ onFocusFormOnMountDone?: () => void;
2298
2337
  bankLogoSrc?: string;
2299
2338
  /**
2300
2339
  * Host-resolved disclosure URLs for the business-details agreement step.
@@ -2323,7 +2362,7 @@ interface BankAccountOnboardingWidgetInnerProps {
2323
2362
  */
2324
2363
  onResultPhaseChange?: (isInResultPhase: boolean) => void;
2325
2364
  }
2326
- type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm' | 'focusFormOnMount'> & {
2365
+ type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm' | 'focusFormOnMount' | 'onFocusFormOnMountDone'> & {
2327
2366
  initialBusinessDetails?: Partial<HostSupplied<BusinessDetailsValues>>;
2328
2367
  initialPersonalDetails?: Partial<HostSupplied<PersonalDetailsValues>>;
2329
2368
  initialAdditionalOwners?: HostSuppliedOwner[];
package/dist/index.js CHANGED
@@ -37,10 +37,10 @@ import { TRANSFERS_WIDGET_LABELS_EN as Y } from "./libs/tesouro-embedded-compone
37
37
  import { TransfersWidget as X } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js";
38
38
  import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as Z } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
39
39
  import { AcceptDisclosuresWidget as Q } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js";
40
- import { ADDITIONAL_OWNERS_LABELS_EN as $ } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js";
41
- import { BUSINESS_DETAILS_LABELS_EN as ee } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js";
42
- import { PERSONAL_DETAILS_LABELS_EN as te } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
43
- import { RESULT_LABELS_EN as ne } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js";
40
+ import { ADDITIONAL_OWNERS_LABELS_EN as $ } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js";
41
+ import { BUSINESS_DETAILS_LABELS_EN as ee } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
42
+ import { PERSONAL_DETAILS_LABELS_EN as te } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js";
43
+ import { RESULT_LABELS_EN as ne } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js";
44
44
  import { APPLICATION_STATUS_LABELS_EN as re } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js";
45
45
  import { BankAccountOnboardingWidget as ie } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
46
46
  import { WidgetSuite as ae } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js";
@@ -793,14 +793,41 @@ interface DisclosureLinks {
793
793
 
794
794
  interface AdditionalOwnersLabels {
795
795
  heading: string;
796
+ /** Why owners are asked for, under the heading. */
796
797
  subheading: string;
797
- /** Replaces `subheading` while nobody is listed, beside the empty state. */
798
+ /**
799
+ * @deprecated Unused since the section always shows `subheading`, and the
800
+ * empty state carries its own body. Kept so existing overrides still
801
+ * type-check.
802
+ */
798
803
  emptySubheading: string;
804
+ /** Asks whether the applicant is a beneficial owner, given the business name. */
805
+ applicantOwnsQuestionTemplate: (businessName: string) => string;
806
+ /** Stands in for the business name in the copy above until one is entered. */
807
+ businessNameFallback: string;
808
+ applicantOwnsYes: string;
809
+ applicantOwnsNo: string;
810
+ /** Badge beside the applicant's name in their own editor. */
811
+ applicantBadge: string;
812
+ /** The applicant's share field in their editor. */
813
+ applicantOwnershipPercentage: string;
814
+ /** Says where the read-only summary in the applicant's editor comes from. */
815
+ applicantDetailsSourceNote: string;
816
+ /** Summary parts in the applicant's editor, joined by `applicantSummarySeparator`. */
817
+ applicantBornTemplate: (dateOfBirth: string) => string;
818
+ applicantSsnEndingTemplate: (last4: string) => string;
819
+ applicantSummarySeparator: string;
820
+ /** Link from the applicant's editor back to the Personal details step. */
821
+ editPersonalDetails: string;
822
+ /** Accessible name of the pencil on the applicant's own row. */
823
+ editApplicantOwnership: string;
799
824
  /** The owners section title on the Review step. */
800
825
  reviewSectionTitle: string;
801
826
  primaryOwnerShareLabel: string;
802
827
  /** Empty-state title, shown while nobody is listed. */
803
828
  emptyOwnersText: string;
829
+ /** Empty-state body, given the business name. */
830
+ emptyOwnersBodyTemplate: (businessName: string) => string;
804
831
  /** The empty state's own add button, which stands in for `addOwner`. */
805
832
  emptyOwnersAddOwner: string;
806
833
  addOwner: string;
@@ -810,9 +837,15 @@ interface AdditionalOwnersLabels {
810
837
  remove: string;
811
838
  /** The applicant's own row: they are removed from the Personal step instead. */
812
839
  removePrimaryOwnerDisabled: string;
813
- /** The applicant's own row: their details are edited on the Personal step. */
840
+ /**
841
+ * @deprecated Unused since the applicant edits their share in their own row.
842
+ * Kept so existing overrides still type-check.
843
+ */
814
844
  editPrimaryOwnerDisabled: string;
815
- /** Hover/focus tooltip on the applicant's disabled pencil: where to edit. */
845
+ /**
846
+ * @deprecated Unused since the applicant edits their share in their own row.
847
+ * Kept so existing overrides still type-check.
848
+ */
816
849
  editPrimaryOwnerTooltip: string;
817
850
  /** Hover/focus tooltip on the applicant's disabled trash: why it is locked. */
818
851
  removePrimaryOwnerTooltip: string;
@@ -1268,11 +1301,17 @@ interface BankAccountOnboardingWidgetInnerProps {
1268
1301
  */
1269
1302
  onNoticeReplacedByForm?: () => void;
1270
1303
  /**
1271
- * Moves focus to the form's title when it mounts. Set by the session scope
1272
- * after "Start a new application", whose button unmounts with the deleted
1273
- * screen. Not set by hosts.
1304
+ * Moves focus to the form's title, or to the status card's when the restart
1305
+ * lands on one, when it mounts. Set by the session scope after "Start a new
1306
+ * application", whose button unmounts with the deleted screen. Not set by
1307
+ * hosts.
1274
1308
  */
1275
1309
  focusFormOnMount?: boolean;
1310
+ /**
1311
+ * Called once whatever `focusFormOnMount` focused has mounted, so the
1312
+ * session scope can drop the flag. Set by the session scope, not by hosts.
1313
+ */
1314
+ onFocusFormOnMountDone?: () => void;
1276
1315
  bankLogoSrc?: string;
1277
1316
  /**
1278
1317
  * Host-resolved disclosure URLs for the business-details agreement step.
@@ -1301,7 +1340,7 @@ interface BankAccountOnboardingWidgetInnerProps {
1301
1340
  */
1302
1341
  onResultPhaseChange?: (isInResultPhase: boolean) => void;
1303
1342
  }
1304
- type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm' | 'focusFormOnMount'> & {
1343
+ type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm' | 'focusFormOnMount' | 'onFocusFormOnMountDone'> & {
1305
1344
  initialBusinessDetails?: Partial<HostSupplied<BusinessDetailsValues>>;
1306
1345
  initialPersonalDetails?: Partial<HostSupplied<PersonalDetailsValues>>;
1307
1346
  initialAdditionalOwners?: HostSuppliedOwner[];
@@ -1,8 +1,8 @@
1
1
  import { OnboardingSuppressionReason as e } from "../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/onboardingSuppressionReason.js";
2
- import { ADDITIONAL_OWNERS_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js";
3
- import { BUSINESS_DETAILS_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js";
4
- import { PERSONAL_DETAILS_LABELS_EN as r } from "../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
5
- import { RESULT_LABELS_EN as i } from "../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js";
2
+ import { ADDITIONAL_OWNERS_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js";
3
+ import { BUSINESS_DETAILS_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
4
+ import { PERSONAL_DETAILS_LABELS_EN as r } from "../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js";
5
+ import { RESULT_LABELS_EN as i } from "../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js";
6
6
  import "../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js";
7
7
  import { APPLICATION_STATUS_LABELS_EN as a } from "../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js";
8
8
  import { BankAccountOnboardingWidget as o } from "../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
@@ -847,14 +847,41 @@ interface DisclosureLinks {
847
847
 
848
848
  interface AdditionalOwnersLabels {
849
849
  heading: string;
850
+ /** Why owners are asked for, under the heading. */
850
851
  subheading: string;
851
- /** Replaces `subheading` while nobody is listed, beside the empty state. */
852
+ /**
853
+ * @deprecated Unused since the section always shows `subheading`, and the
854
+ * empty state carries its own body. Kept so existing overrides still
855
+ * type-check.
856
+ */
852
857
  emptySubheading: string;
858
+ /** Asks whether the applicant is a beneficial owner, given the business name. */
859
+ applicantOwnsQuestionTemplate: (businessName: string) => string;
860
+ /** Stands in for the business name in the copy above until one is entered. */
861
+ businessNameFallback: string;
862
+ applicantOwnsYes: string;
863
+ applicantOwnsNo: string;
864
+ /** Badge beside the applicant's name in their own editor. */
865
+ applicantBadge: string;
866
+ /** The applicant's share field in their editor. */
867
+ applicantOwnershipPercentage: string;
868
+ /** Says where the read-only summary in the applicant's editor comes from. */
869
+ applicantDetailsSourceNote: string;
870
+ /** Summary parts in the applicant's editor, joined by `applicantSummarySeparator`. */
871
+ applicantBornTemplate: (dateOfBirth: string) => string;
872
+ applicantSsnEndingTemplate: (last4: string) => string;
873
+ applicantSummarySeparator: string;
874
+ /** Link from the applicant's editor back to the Personal details step. */
875
+ editPersonalDetails: string;
876
+ /** Accessible name of the pencil on the applicant's own row. */
877
+ editApplicantOwnership: string;
853
878
  /** The owners section title on the Review step. */
854
879
  reviewSectionTitle: string;
855
880
  primaryOwnerShareLabel: string;
856
881
  /** Empty-state title, shown while nobody is listed. */
857
882
  emptyOwnersText: string;
883
+ /** Empty-state body, given the business name. */
884
+ emptyOwnersBodyTemplate: (businessName: string) => string;
858
885
  /** The empty state's own add button, which stands in for `addOwner`. */
859
886
  emptyOwnersAddOwner: string;
860
887
  addOwner: string;
@@ -864,9 +891,15 @@ interface AdditionalOwnersLabels {
864
891
  remove: string;
865
892
  /** The applicant's own row: they are removed from the Personal step instead. */
866
893
  removePrimaryOwnerDisabled: string;
867
- /** The applicant's own row: their details are edited on the Personal step. */
894
+ /**
895
+ * @deprecated Unused since the applicant edits their share in their own row.
896
+ * Kept so existing overrides still type-check.
897
+ */
868
898
  editPrimaryOwnerDisabled: string;
869
- /** Hover/focus tooltip on the applicant's disabled pencil: where to edit. */
899
+ /**
900
+ * @deprecated Unused since the applicant edits their share in their own row.
901
+ * Kept so existing overrides still type-check.
902
+ */
870
903
  editPrimaryOwnerTooltip: string;
871
904
  /** Hover/focus tooltip on the applicant's disabled trash: why it is locked. */
872
905
  removePrimaryOwnerTooltip: string;
@@ -1317,11 +1350,17 @@ interface BankAccountOnboardingWidgetInnerProps {
1317
1350
  */
1318
1351
  onNoticeReplacedByForm?: () => void;
1319
1352
  /**
1320
- * Moves focus to the form's title when it mounts. Set by the session scope
1321
- * after "Start a new application", whose button unmounts with the deleted
1322
- * screen. Not set by hosts.
1353
+ * Moves focus to the form's title, or to the status card's when the restart
1354
+ * lands on one, when it mounts. Set by the session scope after "Start a new
1355
+ * application", whose button unmounts with the deleted screen. Not set by
1356
+ * hosts.
1323
1357
  */
1324
1358
  focusFormOnMount?: boolean;
1359
+ /**
1360
+ * Called once whatever `focusFormOnMount` focused has mounted, so the
1361
+ * session scope can drop the flag. Set by the session scope, not by hosts.
1362
+ */
1363
+ onFocusFormOnMountDone?: () => void;
1325
1364
  bankLogoSrc?: string;
1326
1365
  /**
1327
1366
  * Host-resolved disclosure URLs for the business-details agreement step.
@@ -1350,7 +1389,7 @@ interface BankAccountOnboardingWidgetInnerProps {
1350
1389
  */
1351
1390
  onResultPhaseChange?: (isInResultPhase: boolean) => void;
1352
1391
  }
1353
- type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm' | 'focusFormOnMount'> & {
1392
+ type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm' | 'focusFormOnMount' | 'onFocusFormOnMountDone'> & {
1354
1393
  initialBusinessDetails?: Partial<HostSupplied<BusinessDetailsValues>>;
1355
1394
  initialPersonalDetails?: Partial<HostSupplied<PersonalDetailsValues>>;
1356
1395
  initialAdditionalOwners?: HostSuppliedOwner[];