@tesouro/embedded-components-react 0.7.16 → 0.7.18

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 (46) hide show
  1. package/README.md +14 -14
  2. package/dist/index.css +9 -12
  3. package/dist/index.d.ts +70 -19
  4. package/dist/lib/CounterpartsWidget.d.ts +49 -6
  5. package/dist/lib/CounterpartsWidgetPublic.d.ts +49 -6
  6. package/dist/lib/CustomersWidget.d.ts +49 -6
  7. package/dist/lib/LinkedAccountsWidget.d.ts +20 -12
  8. package/dist/lib/WidgetSuite.d.ts +20 -12
  9. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +2 -1
  10. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js +18 -13
  11. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +146 -137
  12. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsSheetView.js +56 -55
  13. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +108 -77
  14. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +181 -25
  15. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +50 -7
  17. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +127 -596
  18. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index5.js +66 -0
  19. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index6.js +210 -0
  20. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +520 -0
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +2 -1
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useInvoicesFilter.js +10 -7
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +1 -0
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +141 -125
  26. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/forms.js +2 -1
  27. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/labels.js +11 -1
  28. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/summary.js +22 -0
  29. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +182 -162
  30. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/linkedAccounts.js +1 -0
  31. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index10.js +36 -86
  32. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js +1 -1
  33. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index12.js +17 -23
  34. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +6 -6
  35. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +14 -17
  36. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js +3 -6
  37. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +168 -35
  38. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +70 -83
  39. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index7.js +11 -112
  40. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index8.js +6 -12
  41. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js +82 -7
  42. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +11 -11
  43. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +7 -7
  44. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +1 -8
  45. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  46. package/package.json +1 -1
package/README.md CHANGED
@@ -325,19 +325,19 @@ Manages an organization's customers or vendors: a searchable list with money col
325
325
 
326
326
  #### Props
327
327
 
328
- | Prop | Type | Default | Description |
329
- | -------------------- | ------------------------------------------------ | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
330
- | `counterpartType` | `'customer' \| 'vendor'` | **Required** | Selects the customer or vendor surface. |
331
- | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Page-size choices shown by the table. |
332
- | `onViewAllDocuments` | `(counterpart: CounterpartActionTarget) => void` | `undefined` | Shows a "View all" action by the details sheet's recent bills/invoices and passes the counterpart's `id` and `name`. Hidden when omitted. |
333
- | `onCreateDocument` | `(counterpart: CounterpartActionTarget) => void` | `undefined` | Runs the details sheet's "Send a payment" (vendor) or "Issue an invoice" (customer) button. Disabled when omitted; you check the scopes it needs. |
334
- | `screenLabels` | `Partial<CounterpartsScreenLabels>` | English labels | Table, search/filter, empty, error and access-restricted copy. |
335
- | `formLabels` | `PartialDeep<CounterpartFormSheetLabels>` | English labels | Create/edit form copy. |
336
- | `detailsLabels` | `Partial<CounterpartDetailsSheetLabels>` | English labels | Details sheet copy. |
337
- | `bankAccountLabels` | `PartialDeep<BankAccountFormSheetLabels>` | English labels | Vendor payment-method form copy. |
338
- | `addressLabels` | `PartialDeep<AddressFormSheetLabels>` | English labels | Address form copy. |
339
- | `deleteLabels` | `Partial<ConfirmDeleteDialogLabels>` | English labels | Delete-dialog copy. |
340
- | `messageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Validation, API failure and delete-prompt messages. |
328
+ | Prop | Type | Default | Description |
329
+ | -------------------- | ------------------------------------------------ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
330
+ | `counterpartType` | `'customer' \| 'vendor'` | **Required** | Selects the customer or vendor surface. |
331
+ | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Page-size choices shown by the table. |
332
+ | `onViewAllDocuments` | `(counterpart: CounterpartActionTarget) => void` | `undefined` | Shows a "View all" action by the details sheet's recent bills/invoices and passes the counterpart's `id` and `name`. Hidden when omitted. |
333
+ | `onCreateDocument` | `(counterpart: CounterpartActionTarget) => void` | `undefined` | Runs the details sheet's "Send a payment" (vendor) or "Issue an invoice" (customer) button. Hidden when omitted; you check the scopes it needs. |
334
+ | `screenLabels` | `Partial<CounterpartsScreenLabels>` | English labels | Table, search/filter, empty, error and access-restricted copy. |
335
+ | `formLabels` | `PartialDeep<CounterpartFormSheetLabels>` | English labels | Create/edit form copy. |
336
+ | `detailsLabels` | `Partial<CounterpartDetailsSheetLabels>` | English labels | Details sheet copy. |
337
+ | `bankAccountLabels` | `PartialDeep<BankAccountFormSheetLabels>` | English labels | Vendor payment-method form copy. |
338
+ | `addressLabels` | `PartialDeep<AddressFormSheetLabels>` | English labels | Address form copy. |
339
+ | `deleteLabels` | `Partial<ConfirmDeleteDialogLabels>` | English labels | Delete-dialog copy. |
340
+ | `messageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Validation, API failure and delete-prompt messages. |
341
341
 
342
342
  ### CustomersWidget
343
343
 
@@ -349,7 +349,7 @@ Manages an organization's customers: a searchable list with money columns, a det
349
349
  | -------------------- | --------------------------------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
350
350
  | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Page-size choices shown by the table. |
351
351
  | `onViewAllDocuments` | `(customer: CounterpartActionTarget) => void` | `undefined` | Shows a "View all" action on the details sheet's recent invoices and passes the customer's `id` and `name`; omit to hide it. |
352
- | `onCreateDocument` | `(customer: CounterpartActionTarget) => void` | `undefined` | Handles "Issue an invoice" with the customer's `id` and `name`; omit and the button is disabled. You check invoice scopes. |
352
+ | `onCreateDocument` | `(customer: CounterpartActionTarget) => void` | `undefined` | Handles "Issue an invoice" with the customer's `id` and `name`; omit to hide the button. You check invoice scopes. |
353
353
  | `screenLabels` | `Partial<CounterpartsScreenLabels>` | English labels | Table, search, filter, empty and error copy. |
354
354
  | `formLabels` | `Partial<CounterpartFormSheetLabels>` | English labels | Create/edit customer form copy. |
355
355
  | `detailsLabels` | `Partial<CounterpartDetailsSheetLabels>` | English labels | Details sheet copy. |
package/dist/index.css CHANGED
@@ -948,6 +948,9 @@
948
948
  .ttw\:max-h-\[80vh\] {
949
949
  max-height: 80vh;
950
950
  }
951
+ .ttw\:max-h-\[90dvh\] {
952
+ max-height: 90dvh;
953
+ }
951
954
  .ttw\:max-h-\[90vh\] {
952
955
  max-height: 90vh;
953
956
  }
@@ -960,9 +963,6 @@
960
963
  .ttw\:max-h-\[300px\] {
961
964
  max-height: 300px;
962
965
  }
963
- .ttw\:max-h-\[min\(90vh\,48rem\)\] {
964
- max-height: min(90vh, 48rem);
965
- }
966
966
  .ttw\:max-h-\[min\(calc\(--spacing\(96\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\] {
967
967
  max-height: min(calc(calc(var(--ttw-spacing) * 96) - calc(var(--ttw-spacing) * 9)), calc(var(--available-height) - calc(var(--ttw-spacing) * 9)));
968
968
  }
@@ -3230,6 +3230,9 @@
3230
3230
  .ttw\:pt-0 {
3231
3231
  padding-top: 0px;
3232
3232
  }
3233
+ .ttw\:pt-0\.5 {
3234
+ padding-top: calc(var(--ttw-spacing) * 0.5);
3235
+ }
3233
3236
  .ttw\:pt-1 {
3234
3237
  padding-top: var(--ttw-spacing);
3235
3238
  }
@@ -3470,6 +3473,9 @@
3470
3473
  .ttw\:text-\[2\.25rem\] {
3471
3474
  font-size: 2.25rem;
3472
3475
  }
3476
+ .ttw\:text-\[2rem\] {
3477
+ font-size: 2rem;
3478
+ }
3473
3479
  .ttw\:text-\[9px\] {
3474
3480
  font-size: 9px;
3475
3481
  }
@@ -4754,9 +4760,6 @@
4754
4760
  .ttw\:hover\:bg-emerald-50:hover {
4755
4761
  background-color: var(--ttw-color-emerald-50);
4756
4762
  }
4757
- .ttw\:hover\:bg-emerald-100:hover {
4758
- background-color: var(--ttw-color-emerald-100);
4759
- }
4760
4763
  .ttw\:hover\:bg-emerald-700:hover {
4761
4764
  background-color: var(--ttw-color-emerald-700);
4762
4765
  }
@@ -4908,9 +4911,6 @@
4908
4911
  .ttw\:hover\:text-destructive:hover {
4909
4912
  color: var(--ttw-destructive);
4910
4913
  }
4911
- .ttw\:hover\:text-emerald-700:hover {
4912
- color: var(--ttw-color-emerald-700);
4913
- }
4914
4914
  .ttw\:hover\:text-foreground:hover {
4915
4915
  color: var(--ttw-foreground);
4916
4916
  }
@@ -5610,9 +5610,6 @@
5610
5610
  .ttw\:data-\[size\=default\]\:h-14[data-size="default"] {
5611
5611
  height: calc(var(--ttw-spacing) * 14);
5612
5612
  }
5613
- .ttw\:data-\[size\=default\]\:h-auto[data-size="default"] {
5614
- height: auto;
5615
- }
5616
5613
  .ttw\:data-\[size\=lg\]\:size-10[data-size="lg"] {
5617
5614
  width: calc(var(--ttw-spacing) * 10);
5618
5615
  height: calc(var(--ttw-spacing) * 10);
package/dist/index.d.ts CHANGED
@@ -3442,8 +3442,13 @@ interface Labels$1 {
3442
3442
  accountNumberLabel: string;
3443
3443
  routingNumberLabel: string;
3444
3444
  routingNumberError: string;
3445
+ nicknamePlaceholder: string;
3446
+ holderTypeLabel: string;
3447
+ personalOption: string;
3448
+ personalOptionDescription: string;
3449
+ businessOption: string;
3450
+ businessOptionDescription: string;
3445
3451
  typeLabel: string;
3446
- accountTypePlaceholder: string;
3447
3452
  checkingOption: string;
3448
3453
  savingsOption: string;
3449
3454
  cancelButton: string;
@@ -3459,20 +3464,12 @@ interface Labels$1 {
3459
3464
  teamMembersLoadingLabel: string;
3460
3465
  teamMembersErrorTitle: string;
3461
3466
  teamMembersEmptyLabel: string;
3462
- summaryCompletedHeading: string;
3467
+ summaryTitle: string;
3468
+ summaryAccountAddedTitle: string;
3463
3469
  summaryNextStepsHeading: string;
3464
3470
  summaryAccountPrefix: string;
3465
- summaryStep1Title: string;
3466
- summaryStep1Description: string;
3467
- summaryStep2Title: string;
3468
- summaryStep2Description: string;
3469
- summaryStep3Title: string;
3470
- summaryStep3Description: string;
3471
- summaryStep4Title: string;
3472
- summaryStep4Description: string;
3473
- statusComplete: string;
3474
- statusTodo: string;
3475
3471
  backToTransfersButton: string;
3472
+ doneButton: string;
3476
3473
  saveButton: string;
3477
3474
  editButton: string;
3478
3475
  verifyButton: string;
@@ -3506,6 +3503,17 @@ interface FeatureLabels$2 {
3506
3503
  pendingStatus: string;
3507
3504
  editSuccessToast: string;
3508
3505
  unlinkSuccessToast: string;
3506
+ personalCheckingType: string;
3507
+ personalSavingsType: string;
3508
+ businessCheckingType: string;
3509
+ businessSavingsType: string;
3510
+ /** `{type}` and `{last4}` are placeholders in the summary copy. */
3511
+ summaryDescription: string;
3512
+ summaryAccountAddedDescription: string;
3513
+ summaryCheckBankTitle: string;
3514
+ summaryCheckBankDescription: string;
3515
+ summaryVerifyTitle: string;
3516
+ summaryVerifyDescription: string;
3509
3517
  }
3510
3518
 
3511
3519
  interface LinkedAccountsWidgetProps extends WidgetProviderProps {
@@ -4572,8 +4580,10 @@ interface CounterpartsScreenLabels {
4572
4580
  interface CounterpartDetailsSheetLabels {
4573
4581
  hiddenDescription: string;
4574
4582
  loadingTitle: string;
4575
- errorTitle: string;
4576
- errorDescription: string;
4583
+ notFoundCustomerTitle: string;
4584
+ notFoundVendorTitle: string;
4585
+ notFoundCustomerDescription: string;
4586
+ notFoundVendorDescription: string;
4577
4587
  openActionsMenu: string;
4578
4588
  closeAction: string;
4579
4589
  deleteCustomerAction: string;
@@ -4603,8 +4613,6 @@ interface CounterpartDetailsSheetLabels {
4603
4613
  paymentMethodTitle: string;
4604
4614
  customerDetailsHeading: string;
4605
4615
  vendorDetailsHeading: string;
4606
- customerDetailsDescription: string;
4607
- vendorDetailsDescription: string;
4608
4616
  rowType: string;
4609
4617
  rowName: string;
4610
4618
  rowEmail: string;
@@ -4619,7 +4627,6 @@ interface CounterpartDetailsSheetLabels {
4619
4627
  addressHeading: string;
4620
4628
  /** Customer mode's own section heading — vendor mode uses `addressHeading` as a `DetailLine` row label instead. */
4621
4629
  customerAddressHeading: string;
4622
- customerAddressDescription: string;
4623
4630
  addAddressAction: string;
4624
4631
  editAddressAction: string;
4625
4632
  noAddress: string;
@@ -4634,6 +4641,50 @@ interface CounterpartDetailsSheetLabels {
4634
4641
  routingNumberLabel: string;
4635
4642
  noPaymentMethods: string;
4636
4643
  editButton: string;
4644
+ billStatusDraft: string;
4645
+ billStatusReadyToSubmit: string;
4646
+ billStatusPendingApproval: string;
4647
+ billStatusReadyToPay: string;
4648
+ billStatusPaid: string;
4649
+ billStatusCanceled: string;
4650
+ billStatusRejected: string;
4651
+ receivableStatusDraft: string;
4652
+ receivableStatusIssuing: string;
4653
+ receivableStatusIssued: string;
4654
+ receivableStatusFailed: string;
4655
+ receivableStatusAccepted: string;
4656
+ receivableStatusExpired: string;
4657
+ receivableStatusDeclined: string;
4658
+ receivableStatusRecurring: string;
4659
+ receivableStatusPartiallyPaid: string;
4660
+ receivableStatusPaid: string;
4661
+ receivableStatusOverdue: string;
4662
+ receivableStatusUncollectible: string;
4663
+ receivableStatusCanceled: string;
4664
+ receivableStatusDeleted: string;
4665
+ receivableStatusUnknown: string;
4666
+ optionalSuffix: string;
4667
+ editingCustomerDetailsHeading: string;
4668
+ editingVendorDetailsHeading: string;
4669
+ firstNameLabel: string;
4670
+ lastNameLabel: string;
4671
+ businessNameLabel: string;
4672
+ remindersCheckboxLabel: string;
4673
+ remindersCheckboxDescription: string;
4674
+ taxIdSsnPlaceholder: string;
4675
+ taxIdEinPlaceholder: string;
4676
+ editingAddressHeading: string;
4677
+ addingAddressHeading: string;
4678
+ streetAddressLabel: string;
4679
+ addressLine2Label: string;
4680
+ cityLabel: string;
4681
+ stateLabel: string;
4682
+ statePlaceholder: string;
4683
+ postalCodeLabel: string;
4684
+ countryLabel: string;
4685
+ countryUnitedStates: string;
4686
+ cancelButton: string;
4687
+ saveButton: string;
4637
4688
  }
4638
4689
 
4639
4690
  /** Whether this widget is showing customers (receivables) or vendors (payables). */
@@ -4659,7 +4710,7 @@ interface CounterpartsWidgetOwnProps {
4659
4710
  onViewAllDocuments?: (counterpart: CounterpartActionTarget) => void;
4660
4711
  /**
4661
4712
  * Opens the host's create flow for this counterpart, behind the "Send a
4662
- * payment" / "Issue an invoice" button, which stays disabled while unwired.
4713
+ * payment" / "Issue an invoice" button, which is hidden while unwired.
4663
4714
  * The destination's own scope is the host's to check.
4664
4715
  */
4665
4716
  onCreateDocument?: (counterpart: CounterpartActionTarget) => void;
@@ -4727,7 +4778,7 @@ interface CustomersWidgetOwnProps {
4727
4778
  onViewAllDocuments?: (counterpart: CounterpartActionTarget) => void;
4728
4779
  /**
4729
4780
  * Opens the host's create-invoice flow for this customer, behind the
4730
- * "Issue an invoice" button, which stays disabled while unwired.
4781
+ * "Issue an invoice" button, which is hidden while unwired.
4731
4782
  */
4732
4783
  onCreateDocument?: (counterpart: CounterpartActionTarget) => void;
4733
4784
  screenLabels?: Partial<CounterpartsScreenLabels>;
@@ -853,8 +853,10 @@ interface CounterpartsScreenLabels {
853
853
  interface CounterpartDetailsSheetLabels {
854
854
  hiddenDescription: string;
855
855
  loadingTitle: string;
856
- errorTitle: string;
857
- errorDescription: string;
856
+ notFoundCustomerTitle: string;
857
+ notFoundVendorTitle: string;
858
+ notFoundCustomerDescription: string;
859
+ notFoundVendorDescription: string;
858
860
  openActionsMenu: string;
859
861
  closeAction: string;
860
862
  deleteCustomerAction: string;
@@ -884,8 +886,6 @@ interface CounterpartDetailsSheetLabels {
884
886
  paymentMethodTitle: string;
885
887
  customerDetailsHeading: string;
886
888
  vendorDetailsHeading: string;
887
- customerDetailsDescription: string;
888
- vendorDetailsDescription: string;
889
889
  rowType: string;
890
890
  rowName: string;
891
891
  rowEmail: string;
@@ -900,7 +900,6 @@ interface CounterpartDetailsSheetLabels {
900
900
  addressHeading: string;
901
901
  /** Customer mode's own section heading — vendor mode uses `addressHeading` as a `DetailLine` row label instead. */
902
902
  customerAddressHeading: string;
903
- customerAddressDescription: string;
904
903
  addAddressAction: string;
905
904
  editAddressAction: string;
906
905
  noAddress: string;
@@ -915,6 +914,50 @@ interface CounterpartDetailsSheetLabels {
915
914
  routingNumberLabel: string;
916
915
  noPaymentMethods: string;
917
916
  editButton: string;
917
+ billStatusDraft: string;
918
+ billStatusReadyToSubmit: string;
919
+ billStatusPendingApproval: string;
920
+ billStatusReadyToPay: string;
921
+ billStatusPaid: string;
922
+ billStatusCanceled: string;
923
+ billStatusRejected: string;
924
+ receivableStatusDraft: string;
925
+ receivableStatusIssuing: string;
926
+ receivableStatusIssued: string;
927
+ receivableStatusFailed: string;
928
+ receivableStatusAccepted: string;
929
+ receivableStatusExpired: string;
930
+ receivableStatusDeclined: string;
931
+ receivableStatusRecurring: string;
932
+ receivableStatusPartiallyPaid: string;
933
+ receivableStatusPaid: string;
934
+ receivableStatusOverdue: string;
935
+ receivableStatusUncollectible: string;
936
+ receivableStatusCanceled: string;
937
+ receivableStatusDeleted: string;
938
+ receivableStatusUnknown: string;
939
+ optionalSuffix: string;
940
+ editingCustomerDetailsHeading: string;
941
+ editingVendorDetailsHeading: string;
942
+ firstNameLabel: string;
943
+ lastNameLabel: string;
944
+ businessNameLabel: string;
945
+ remindersCheckboxLabel: string;
946
+ remindersCheckboxDescription: string;
947
+ taxIdSsnPlaceholder: string;
948
+ taxIdEinPlaceholder: string;
949
+ editingAddressHeading: string;
950
+ addingAddressHeading: string;
951
+ streetAddressLabel: string;
952
+ addressLine2Label: string;
953
+ cityLabel: string;
954
+ stateLabel: string;
955
+ statePlaceholder: string;
956
+ postalCodeLabel: string;
957
+ countryLabel: string;
958
+ countryUnitedStates: string;
959
+ cancelButton: string;
960
+ saveButton: string;
918
961
  }
919
962
 
920
963
  /** Whether this widget is showing customers (receivables) or vendors (payables). */
@@ -940,7 +983,7 @@ interface CounterpartsWidgetOwnProps {
940
983
  onViewAllDocuments?: (counterpart: CounterpartActionTarget) => void;
941
984
  /**
942
985
  * Opens the host's create flow for this counterpart, behind the "Send a
943
- * payment" / "Issue an invoice" button, which stays disabled while unwired.
986
+ * payment" / "Issue an invoice" button, which is hidden while unwired.
944
987
  * The destination's own scope is the host's to check.
945
988
  */
946
989
  onCreateDocument?: (counterpart: CounterpartActionTarget) => void;
@@ -853,8 +853,10 @@ interface CounterpartsScreenLabels {
853
853
  interface CounterpartDetailsSheetLabels {
854
854
  hiddenDescription: string;
855
855
  loadingTitle: string;
856
- errorTitle: string;
857
- errorDescription: string;
856
+ notFoundCustomerTitle: string;
857
+ notFoundVendorTitle: string;
858
+ notFoundCustomerDescription: string;
859
+ notFoundVendorDescription: string;
858
860
  openActionsMenu: string;
859
861
  closeAction: string;
860
862
  deleteCustomerAction: string;
@@ -884,8 +886,6 @@ interface CounterpartDetailsSheetLabels {
884
886
  paymentMethodTitle: string;
885
887
  customerDetailsHeading: string;
886
888
  vendorDetailsHeading: string;
887
- customerDetailsDescription: string;
888
- vendorDetailsDescription: string;
889
889
  rowType: string;
890
890
  rowName: string;
891
891
  rowEmail: string;
@@ -900,7 +900,6 @@ interface CounterpartDetailsSheetLabels {
900
900
  addressHeading: string;
901
901
  /** Customer mode's own section heading — vendor mode uses `addressHeading` as a `DetailLine` row label instead. */
902
902
  customerAddressHeading: string;
903
- customerAddressDescription: string;
904
903
  addAddressAction: string;
905
904
  editAddressAction: string;
906
905
  noAddress: string;
@@ -915,6 +914,50 @@ interface CounterpartDetailsSheetLabels {
915
914
  routingNumberLabel: string;
916
915
  noPaymentMethods: string;
917
916
  editButton: string;
917
+ billStatusDraft: string;
918
+ billStatusReadyToSubmit: string;
919
+ billStatusPendingApproval: string;
920
+ billStatusReadyToPay: string;
921
+ billStatusPaid: string;
922
+ billStatusCanceled: string;
923
+ billStatusRejected: string;
924
+ receivableStatusDraft: string;
925
+ receivableStatusIssuing: string;
926
+ receivableStatusIssued: string;
927
+ receivableStatusFailed: string;
928
+ receivableStatusAccepted: string;
929
+ receivableStatusExpired: string;
930
+ receivableStatusDeclined: string;
931
+ receivableStatusRecurring: string;
932
+ receivableStatusPartiallyPaid: string;
933
+ receivableStatusPaid: string;
934
+ receivableStatusOverdue: string;
935
+ receivableStatusUncollectible: string;
936
+ receivableStatusCanceled: string;
937
+ receivableStatusDeleted: string;
938
+ receivableStatusUnknown: string;
939
+ optionalSuffix: string;
940
+ editingCustomerDetailsHeading: string;
941
+ editingVendorDetailsHeading: string;
942
+ firstNameLabel: string;
943
+ lastNameLabel: string;
944
+ businessNameLabel: string;
945
+ remindersCheckboxLabel: string;
946
+ remindersCheckboxDescription: string;
947
+ taxIdSsnPlaceholder: string;
948
+ taxIdEinPlaceholder: string;
949
+ editingAddressHeading: string;
950
+ addingAddressHeading: string;
951
+ streetAddressLabel: string;
952
+ addressLine2Label: string;
953
+ cityLabel: string;
954
+ stateLabel: string;
955
+ statePlaceholder: string;
956
+ postalCodeLabel: string;
957
+ countryLabel: string;
958
+ countryUnitedStates: string;
959
+ cancelButton: string;
960
+ saveButton: string;
918
961
  }
919
962
 
920
963
  /** Whether this widget is showing customers (receivables) or vendors (payables). */
@@ -940,7 +983,7 @@ interface CounterpartsWidgetOwnProps {
940
983
  onViewAllDocuments?: (counterpart: CounterpartActionTarget) => void;
941
984
  /**
942
985
  * Opens the host's create flow for this counterpart, behind the "Send a
943
- * payment" / "Issue an invoice" button, which stays disabled while unwired.
986
+ * payment" / "Issue an invoice" button, which is hidden while unwired.
944
987
  * The destination's own scope is the host's to check.
945
988
  */
946
989
  onCreateDocument?: (counterpart: CounterpartActionTarget) => void;
@@ -834,8 +834,10 @@ interface CounterpartsScreenLabels {
834
834
  interface CounterpartDetailsSheetLabels {
835
835
  hiddenDescription: string;
836
836
  loadingTitle: string;
837
- errorTitle: string;
838
- errorDescription: string;
837
+ notFoundCustomerTitle: string;
838
+ notFoundVendorTitle: string;
839
+ notFoundCustomerDescription: string;
840
+ notFoundVendorDescription: string;
839
841
  openActionsMenu: string;
840
842
  closeAction: string;
841
843
  deleteCustomerAction: string;
@@ -865,8 +867,6 @@ interface CounterpartDetailsSheetLabels {
865
867
  paymentMethodTitle: string;
866
868
  customerDetailsHeading: string;
867
869
  vendorDetailsHeading: string;
868
- customerDetailsDescription: string;
869
- vendorDetailsDescription: string;
870
870
  rowType: string;
871
871
  rowName: string;
872
872
  rowEmail: string;
@@ -881,7 +881,6 @@ interface CounterpartDetailsSheetLabels {
881
881
  addressHeading: string;
882
882
  /** Customer mode's own section heading — vendor mode uses `addressHeading` as a `DetailLine` row label instead. */
883
883
  customerAddressHeading: string;
884
- customerAddressDescription: string;
885
884
  addAddressAction: string;
886
885
  editAddressAction: string;
887
886
  noAddress: string;
@@ -896,6 +895,50 @@ interface CounterpartDetailsSheetLabels {
896
895
  routingNumberLabel: string;
897
896
  noPaymentMethods: string;
898
897
  editButton: string;
898
+ billStatusDraft: string;
899
+ billStatusReadyToSubmit: string;
900
+ billStatusPendingApproval: string;
901
+ billStatusReadyToPay: string;
902
+ billStatusPaid: string;
903
+ billStatusCanceled: string;
904
+ billStatusRejected: string;
905
+ receivableStatusDraft: string;
906
+ receivableStatusIssuing: string;
907
+ receivableStatusIssued: string;
908
+ receivableStatusFailed: string;
909
+ receivableStatusAccepted: string;
910
+ receivableStatusExpired: string;
911
+ receivableStatusDeclined: string;
912
+ receivableStatusRecurring: string;
913
+ receivableStatusPartiallyPaid: string;
914
+ receivableStatusPaid: string;
915
+ receivableStatusOverdue: string;
916
+ receivableStatusUncollectible: string;
917
+ receivableStatusCanceled: string;
918
+ receivableStatusDeleted: string;
919
+ receivableStatusUnknown: string;
920
+ optionalSuffix: string;
921
+ editingCustomerDetailsHeading: string;
922
+ editingVendorDetailsHeading: string;
923
+ firstNameLabel: string;
924
+ lastNameLabel: string;
925
+ businessNameLabel: string;
926
+ remindersCheckboxLabel: string;
927
+ remindersCheckboxDescription: string;
928
+ taxIdSsnPlaceholder: string;
929
+ taxIdEinPlaceholder: string;
930
+ editingAddressHeading: string;
931
+ addingAddressHeading: string;
932
+ streetAddressLabel: string;
933
+ addressLine2Label: string;
934
+ cityLabel: string;
935
+ stateLabel: string;
936
+ statePlaceholder: string;
937
+ postalCodeLabel: string;
938
+ countryLabel: string;
939
+ countryUnitedStates: string;
940
+ cancelButton: string;
941
+ saveButton: string;
899
942
  }
900
943
 
901
944
  /**
@@ -922,7 +965,7 @@ interface CustomersWidgetOwnProps {
922
965
  onViewAllDocuments?: (counterpart: CounterpartActionTarget) => void;
923
966
  /**
924
967
  * Opens the host's create-invoice flow for this customer, behind the
925
- * "Issue an invoice" button, which stays disabled while unwired.
968
+ * "Issue an invoice" button, which is hidden while unwired.
926
969
  */
927
970
  onCreateDocument?: (counterpart: CounterpartActionTarget) => void;
928
971
  screenLabels?: Partial<CounterpartsScreenLabels>;
@@ -12,8 +12,13 @@ interface Labels {
12
12
  accountNumberLabel: string;
13
13
  routingNumberLabel: string;
14
14
  routingNumberError: string;
15
+ nicknamePlaceholder: string;
16
+ holderTypeLabel: string;
17
+ personalOption: string;
18
+ personalOptionDescription: string;
19
+ businessOption: string;
20
+ businessOptionDescription: string;
15
21
  typeLabel: string;
16
- accountTypePlaceholder: string;
17
22
  checkingOption: string;
18
23
  savingsOption: string;
19
24
  cancelButton: string;
@@ -29,20 +34,12 @@ interface Labels {
29
34
  teamMembersLoadingLabel: string;
30
35
  teamMembersErrorTitle: string;
31
36
  teamMembersEmptyLabel: string;
32
- summaryCompletedHeading: string;
37
+ summaryTitle: string;
38
+ summaryAccountAddedTitle: string;
33
39
  summaryNextStepsHeading: string;
34
40
  summaryAccountPrefix: string;
35
- summaryStep1Title: string;
36
- summaryStep1Description: string;
37
- summaryStep2Title: string;
38
- summaryStep2Description: string;
39
- summaryStep3Title: string;
40
- summaryStep3Description: string;
41
- summaryStep4Title: string;
42
- summaryStep4Description: string;
43
- statusComplete: string;
44
- statusTodo: string;
45
41
  backToTransfersButton: string;
42
+ doneButton: string;
46
43
  saveButton: string;
47
44
  editButton: string;
48
45
  verifyButton: string;
@@ -701,6 +698,17 @@ interface FeatureLabels {
701
698
  pendingStatus: string;
702
699
  editSuccessToast: string;
703
700
  unlinkSuccessToast: string;
701
+ personalCheckingType: string;
702
+ personalSavingsType: string;
703
+ businessCheckingType: string;
704
+ businessSavingsType: string;
705
+ /** `{type}` and `{last4}` are placeholders in the summary copy. */
706
+ summaryDescription: string;
707
+ summaryAccountAddedDescription: string;
708
+ summaryCheckBankTitle: string;
709
+ summaryCheckBankDescription: string;
710
+ summaryVerifyTitle: string;
711
+ summaryVerifyDescription: string;
704
712
  }
705
713
 
706
714
  interface LinkedAccountsWidgetProps extends WidgetProviderProps {
@@ -2490,8 +2490,13 @@ interface Labels$1 {
2490
2490
  accountNumberLabel: string;
2491
2491
  routingNumberLabel: string;
2492
2492
  routingNumberError: string;
2493
+ nicknamePlaceholder: string;
2494
+ holderTypeLabel: string;
2495
+ personalOption: string;
2496
+ personalOptionDescription: string;
2497
+ businessOption: string;
2498
+ businessOptionDescription: string;
2493
2499
  typeLabel: string;
2494
- accountTypePlaceholder: string;
2495
2500
  checkingOption: string;
2496
2501
  savingsOption: string;
2497
2502
  cancelButton: string;
@@ -2507,20 +2512,12 @@ interface Labels$1 {
2507
2512
  teamMembersLoadingLabel: string;
2508
2513
  teamMembersErrorTitle: string;
2509
2514
  teamMembersEmptyLabel: string;
2510
- summaryCompletedHeading: string;
2515
+ summaryTitle: string;
2516
+ summaryAccountAddedTitle: string;
2511
2517
  summaryNextStepsHeading: string;
2512
2518
  summaryAccountPrefix: string;
2513
- summaryStep1Title: string;
2514
- summaryStep1Description: string;
2515
- summaryStep2Title: string;
2516
- summaryStep2Description: string;
2517
- summaryStep3Title: string;
2518
- summaryStep3Description: string;
2519
- summaryStep4Title: string;
2520
- summaryStep4Description: string;
2521
- statusComplete: string;
2522
- statusTodo: string;
2523
2519
  backToTransfersButton: string;
2520
+ doneButton: string;
2524
2521
  saveButton: string;
2525
2522
  editButton: string;
2526
2523
  verifyButton: string;
@@ -2554,6 +2551,17 @@ interface FeatureLabels$2 {
2554
2551
  pendingStatus: string;
2555
2552
  editSuccessToast: string;
2556
2553
  unlinkSuccessToast: string;
2554
+ personalCheckingType: string;
2555
+ personalSavingsType: string;
2556
+ businessCheckingType: string;
2557
+ businessSavingsType: string;
2558
+ /** `{type}` and `{last4}` are placeholders in the summary copy. */
2559
+ summaryDescription: string;
2560
+ summaryAccountAddedDescription: string;
2561
+ summaryCheckBankTitle: string;
2562
+ summaryCheckBankDescription: string;
2563
+ summaryVerifyTitle: string;
2564
+ summaryVerifyDescription: string;
2557
2565
  }
2558
2566
 
2559
2567
  interface LinkedAccountsWidgetProps extends WidgetProviderProps {
@@ -21,7 +21,8 @@ var o = [
21
21
  "issued",
22
22
  "overdue",
23
23
  "partially_paid",
24
- "paid"
24
+ "paid",
25
+ "uncollectible"
25
26
  ];
26
27
  function c({ counterpartId: t, enabled: s }) {
27
28
  let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = r(), p = !!(l && u && t) && (s === !0 || s === void 0), m = e({