@tesouro/embedded-components-react 0.5.279 → 0.5.281

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 (153) hide show
  1. package/dist/index.css +8 -0
  2. package/dist/index.d.ts +23 -8
  3. package/dist/lib/BankAccountOnboardingWidget.d.ts +2 -2
  4. package/dist/lib/ReceivablesWidget.d.ts +21 -6
  5. package/dist/lib/WidgetSuite.d.ts +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +2 -2
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +1 -0
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +8 -8
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -28
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +8 -160
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +20 -13
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +148 -27
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +21 -96
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +37 -79
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +98 -3
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +83 -54
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +3 -113
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +54 -184
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +108 -75
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +181 -29
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +74 -83
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +27 -412
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +88 -12
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +413 -77
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +13 -80
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +77 -226
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +78 -41
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +216 -234
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +44 -23
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +233 -611
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +25 -4
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +647 -39
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +4 -243
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +42 -3
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +250 -3
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +2 -66
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +5 -1
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +67 -0
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +1 -0
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +11 -11
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +47 -47
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/reconcileCancelledPaymentQueries.js +19 -19
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/BillsTab.js +1 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index4.js +15 -15
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +14 -13
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +24 -168
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +173 -44
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +42 -94
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +91 -76
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +67 -173
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +186 -17
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +27 -0
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +11 -13
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +42 -27
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +28 -132
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +137 -16
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +16 -62
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +66 -28
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +28 -34
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +38 -0
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +304 -287
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/customer.js +58 -0
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +15 -15
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -6
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/permissions.js +2 -1
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +62 -62
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +41 -35
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/totals.js +21 -13
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +124 -124
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +11 -11
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableCustomerPicker.js +109 -0
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +6 -6
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +520 -476
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +10 -10
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +6 -6
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePreview.js +1 -1
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +92 -77
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +11 -11
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +1 -1
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +4 -4
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +79 -75
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +3 -3
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -23
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +9 -25
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +26 -228
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +227 -52
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +50 -212
  98. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +193 -138
  99. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +157 -12
  100. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +10 -19
  101. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +23 -2
  102. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +2 -116
  103. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +118 -3
  104. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +3 -39
  105. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +209 -53
  106. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +2 -23
  107. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +36 -7
  108. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +53 -77
  109. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +17 -35
  110. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +8 -18
  111. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +73 -37
  112. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +36 -26
  113. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +17 -19
  114. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +39 -8
  115. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +26 -33
  116. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +20 -14
  117. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +8 -24
  118. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +34 -84
  119. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +14 -492
  120. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +28 -2
  121. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +79 -39
  122. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +490 -68
  123. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -487
  124. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +41 -217
  125. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +70 -21
  126. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +440 -5
  127. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +224 -0
  128. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +21 -263
  129. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +8 -2
  130. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +261 -24
  131. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +2 -237
  132. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +100 -3
  133. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +21 -242
  134. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +226 -82
  135. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +3 -60
  136. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +233 -178
  137. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +85 -37
  138. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +60 -0
  139. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +194 -0
  140. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +45 -0
  141. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +9 -9
  142. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +2 -23
  143. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +2 -51
  144. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +8 -8
  145. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +4 -80
  146. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +10 -22
  147. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2 -0
  148. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +1 -0
  149. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  150. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +1 -1
  151. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +2 -2
  152. package/package.json +1 -1
  153. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +0 -100
package/dist/index.css CHANGED
@@ -4957,6 +4957,14 @@
4957
4957
  .ttw\:hover\:\!text-sidebar-accent-foreground:hover {
4958
4958
  color: var(--ttw-sidebar-accent-foreground) !important;
4959
4959
  }
4960
+ .ttw\:hover\:text-\[color-mix\(in_srgb\,var\(--ttw-destructive\)\,black_10\%\)\]:hover {
4961
+ color: var(--ttw-destructive);
4962
+ }
4963
+ @supports (color: color-mix(in lab, red, red)) {
4964
+ .ttw\:hover\:text-\[color-mix\(in_srgb\,var\(--ttw-destructive\)\,black_10\%\)\]:hover {
4965
+ color: color-mix(in srgb,var(--ttw-destructive),black 10%);
4966
+ }
4967
+ }
4960
4968
  .ttw\:hover\:text-accent-foreground:hover {
4961
4969
  color: var(--ttw-accent-foreground);
4962
4970
  }
package/dist/index.d.ts CHANGED
@@ -1969,7 +1969,7 @@ interface BankAccountOnboardingWidgetLabels {
1969
1969
  /** The prompt shown when closing with unsaved changes. */
1970
1970
  unsavedApplicationDialog: Partial<UnsavedApplicationDialogLabels>;
1971
1971
  /**
1972
- * The prompt confirming "Cancel and delete application". Its bold run
1972
+ * The prompt confirming "Delete". Its bold run
1973
1973
  * defaults to `saveAndClose`, so it names the footer's save control.
1974
1974
  */
1975
1975
  deleteApplicationDialog: Partial<DeleteApplicationDialogLabels>;
@@ -1982,7 +1982,7 @@ interface BankAccountOnboardingWidgetLabels {
1982
1982
  deleteApplication: string;
1983
1983
  /** Shown once the application has been deleted. */
1984
1984
  applicationDeletedToast: string;
1985
- /** Shown after "Save and close" or the close prompt's "Save changes" writes the application. */
1985
+ /** Shown after "Save and continue later" or the close prompt's "Save changes" writes the application. */
1986
1986
  applicationSavedToast: string;
1987
1987
  businessReviewTitle: string;
1988
1988
  businessReviewSubtitle: string;
@@ -5088,6 +5088,17 @@ interface ReceivableBillingSectionLabels {
5088
5088
  purchaseOrderOptional: string;
5089
5089
  }
5090
5090
 
5091
+ interface ReceivableCustomerSectionLabels {
5092
+ customerHeading: string;
5093
+ customerDescription: string;
5094
+ customerNameLabel: string;
5095
+ customerListToggleButton: string;
5096
+ customerEmailLabel: string;
5097
+ addCustomerDetailsButton: string;
5098
+ viewCustomerDetailsButton: string;
5099
+ clearCustomerButton: string;
5100
+ }
5101
+
5091
5102
  interface ReceivableRecurrenceSectionLabels {
5092
5103
  recurrenceRepeatLabel: string;
5093
5104
  recurrenceMonthDayLead: string;
@@ -5176,16 +5187,12 @@ interface UnsavedInvoiceDialogLabels {
5176
5187
  unsavedSaveDraftButton: string;
5177
5188
  unsavedCloseButton: string;
5178
5189
  }
5179
- interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
5190
+ interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableCustomerSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
5180
5191
  createTitle: string;
5181
5192
  createDescription: string;
5182
5193
  editTitle: string;
5183
5194
  editDescription: string;
5184
5195
  closeButton: string;
5185
- customerHeading: string;
5186
- customerDescription: string;
5187
- customerEmailLabel: string;
5188
- addCustomerDetailsButton: string;
5189
5196
  dueDateLabel: string;
5190
5197
  lineItemsHeading: string;
5191
5198
  lineItemsDescription: string;
@@ -5421,8 +5428,16 @@ type InvoicesFilterLabelOverrides = PartialDeep<InvoicesFilterLabels>;
5421
5428
 
5422
5429
  interface ReceivableMessageLabels {
5423
5430
  customerRequired: string;
5424
- customerAddressRequired: string;
5425
5431
  customerEmailInvalid: string;
5432
+ customerPickerPlaceholder: string;
5433
+ customerPickerSearchOnlyPlaceholder: string;
5434
+ customerPickerEmpty: string;
5435
+ customerPickerSearchOnlyEmpty: string;
5436
+ customerPickerLoading: string;
5437
+ customerPickerLoadFailed: string;
5438
+ customerPickerMoreMatches: string;
5439
+ customerPickerDescription: string;
5440
+ customerPickerSearchOnlyDescription: string;
5426
5441
  currencyRequired: string;
5427
5442
  lineItemNameTooLong: string;
5428
5443
  /** `{maxAmount}` is replaced with the formatted cap. */
@@ -1037,7 +1037,7 @@ interface BankAccountOnboardingWidgetLabels {
1037
1037
  /** The prompt shown when closing with unsaved changes. */
1038
1038
  unsavedApplicationDialog: Partial<UnsavedApplicationDialogLabels>;
1039
1039
  /**
1040
- * The prompt confirming "Cancel and delete application". Its bold run
1040
+ * The prompt confirming "Delete". Its bold run
1041
1041
  * defaults to `saveAndClose`, so it names the footer's save control.
1042
1042
  */
1043
1043
  deleteApplicationDialog: Partial<DeleteApplicationDialogLabels>;
@@ -1050,7 +1050,7 @@ interface BankAccountOnboardingWidgetLabels {
1050
1050
  deleteApplication: string;
1051
1051
  /** Shown once the application has been deleted. */
1052
1052
  applicationDeletedToast: string;
1053
- /** Shown after "Save and close" or the close prompt's "Save changes" writes the application. */
1053
+ /** Shown after "Save and continue later" or the close prompt's "Save changes" writes the application. */
1054
1054
  applicationSavedToast: string;
1055
1055
  businessReviewTitle: string;
1056
1056
  businessReviewSubtitle: string;
@@ -1008,6 +1008,17 @@ interface ReceivableBillingSectionLabels {
1008
1008
  purchaseOrderOptional: string;
1009
1009
  }
1010
1010
 
1011
+ interface ReceivableCustomerSectionLabels {
1012
+ customerHeading: string;
1013
+ customerDescription: string;
1014
+ customerNameLabel: string;
1015
+ customerListToggleButton: string;
1016
+ customerEmailLabel: string;
1017
+ addCustomerDetailsButton: string;
1018
+ viewCustomerDetailsButton: string;
1019
+ clearCustomerButton: string;
1020
+ }
1021
+
1011
1022
  interface ReceivableRecurrenceSectionLabels {
1012
1023
  recurrenceRepeatLabel: string;
1013
1024
  recurrenceMonthDayLead: string;
@@ -1096,16 +1107,12 @@ interface UnsavedInvoiceDialogLabels {
1096
1107
  unsavedSaveDraftButton: string;
1097
1108
  unsavedCloseButton: string;
1098
1109
  }
1099
- interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
1110
+ interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableCustomerSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
1100
1111
  createTitle: string;
1101
1112
  createDescription: string;
1102
1113
  editTitle: string;
1103
1114
  editDescription: string;
1104
1115
  closeButton: string;
1105
- customerHeading: string;
1106
- customerDescription: string;
1107
- customerEmailLabel: string;
1108
- addCustomerDetailsButton: string;
1109
1116
  dueDateLabel: string;
1110
1117
  lineItemsHeading: string;
1111
1118
  lineItemsDescription: string;
@@ -1341,8 +1348,16 @@ type InvoicesFilterLabelOverrides = PartialDeep<InvoicesFilterLabels>;
1341
1348
 
1342
1349
  interface ReceivableMessageLabels {
1343
1350
  customerRequired: string;
1344
- customerAddressRequired: string;
1345
1351
  customerEmailInvalid: string;
1352
+ customerPickerPlaceholder: string;
1353
+ customerPickerSearchOnlyPlaceholder: string;
1354
+ customerPickerEmpty: string;
1355
+ customerPickerSearchOnlyEmpty: string;
1356
+ customerPickerLoading: string;
1357
+ customerPickerLoadFailed: string;
1358
+ customerPickerMoreMatches: string;
1359
+ customerPickerDescription: string;
1360
+ customerPickerSearchOnlyDescription: string;
1346
1361
  currencyRequired: string;
1347
1362
  lineItemNameTooLong: string;
1348
1363
  /** `{maxAmount}` is replaced with the formatted cap. */
@@ -1086,7 +1086,7 @@ interface BankAccountOnboardingWidgetLabels {
1086
1086
  /** The prompt shown when closing with unsaved changes. */
1087
1087
  unsavedApplicationDialog: Partial<UnsavedApplicationDialogLabels>;
1088
1088
  /**
1089
- * The prompt confirming "Cancel and delete application". Its bold run
1089
+ * The prompt confirming "Delete". Its bold run
1090
1090
  * defaults to `saveAndClose`, so it names the footer's save control.
1091
1091
  */
1092
1092
  deleteApplicationDialog: Partial<DeleteApplicationDialogLabels>;
@@ -1099,7 +1099,7 @@ interface BankAccountOnboardingWidgetLabels {
1099
1099
  deleteApplication: string;
1100
1100
  /** Shown once the application has been deleted. */
1101
1101
  applicationDeletedToast: string;
1102
- /** Shown after "Save and close" or the close prompt's "Save changes" writes the application. */
1102
+ /** Shown after "Save and continue later" or the close prompt's "Save changes" writes the application. */
1103
1103
  applicationSavedToast: string;
1104
1104
  businessReviewTitle: string;
1105
1105
  businessReviewSubtitle: string;
@@ -59,8 +59,8 @@ var n = {
59
59
  cancel: "Cancel",
60
60
  next: "Next",
61
61
  submit: "Submit application",
62
- saveAndClose: "Save and close",
63
- deleteApplication: "Cancel and delete application",
62
+ saveAndClose: "Save and continue later",
63
+ deleteApplication: "Delete",
64
64
  applicationDeletedToast: "Application deleted.",
65
65
  applicationSavedToast: "Application saved. You can continue later.",
66
66
  businessReviewTitle: "Review your business details",
@@ -2,7 +2,7 @@
2
2
  var e = {
3
3
  title: "Delete this application?",
4
4
  descriptionBeforeEmphasis: "Everything you've entered so far will be permanently removed. If you'd rather come back later, use ",
5
- descriptionEmphasis: "Save and close",
5
+ descriptionEmphasis: "Save and continue later",
6
6
  descriptionAfterEmphasis: " instead.",
7
7
  keepEditingButton: "Keep editing",
8
8
  deleteButton: "Delete application"
@@ -29,6 +29,7 @@ function d(d, { enabled: f } = {}) {
29
29
  organizationStatus: _
30
30
  }, { suffix: ["all"] }),
31
31
  enabled: y,
32
+ staleTime: 3e4,
32
33
  initialPageParam: void 0,
33
34
  queryFn: async ({ signal: t, pageParam: n }) => {
34
35
  let { data: r } = await e({
@@ -1,12 +1,12 @@
1
- import "./index18.js";
2
- import "./index23.js";
3
- import "./index31.js";
1
+ import "./index20.js";
2
+ import "./index25.js";
4
3
  import "./index33.js";
5
4
  import "./index35.js";
6
- import "./index36.js";
7
5
  import "./index37.js";
8
6
  import "./index38.js";
9
7
  import "./index39.js";
10
- import { BillCreateWidget as e, BillDetailsWidget as t } from "./index41.js";
11
- import "./index42.js";
8
+ import "./index40.js";
9
+ import "./index41.js";
10
+ import { BillCreateWidget as e, BillDetailsWidget as t } from "./index43.js";
11
+ import "./index44.js";
12
12
  export { e as BillCreateWidget, t as BillDetailsWidget };
@@ -1,13 +1,13 @@
1
- import { formatRejectionDate as e } from "../../../../shared/util/dist/lib/formatRejectionDate.js";
2
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js
3
- function t({ payableStatus: t, approvalRequests: n, userNames: r, payableUpdatedAt: i, labels: a, now: o }) {
4
- let s = n.find((e) => e.status === "rejected");
5
- if (!s) return t !== "rejected" || !i ? void 0 : { actorLabel: a.rejectedOn(e(i, o)) };
6
- let c = s.rejected_by ? r.get(s.rejected_by) : void 0, l = e(s.updated_at, o);
2
+ function e({ isCapabilityUnknown: e, canApproveNow: t, canOverridePolicy: n, status: r, hasApprovalPolicy: i, pendingApproverNames: a, labels: o }) {
3
+ if (e) return { showApprovalOverrideNotice: !1 };
4
+ if (n) return { showApprovalOverrideNotice: !t };
5
+ if (t || r !== "approve_in_progress" || !i) return { showApprovalOverrideNotice: !1 };
6
+ let s = [...new Set(a)];
7
7
  return {
8
- actorLabel: c ? a.rejectedByOn(c, l) : a.rejectedOn(l),
9
- message: s.reject_reason ? a.rejectionMessage(s.reject_reason) : void 0
8
+ showApprovalOverrideNotice: !1,
9
+ awaitingApprovalNotice: s.length ? o.awaitingApprovalNotice(s) : o.awaitingApprovalUnknownNotice
10
10
  };
11
11
  }
12
12
  //#endregion
13
- export { t as resolveBillRejectionNotice };
13
+ export { e as resolveApprovalNotices };
@@ -1,33 +1,12 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { hasAnyScope as e } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
6
- import { useCurrentUserQuery as t } from "../../../../shared/data-access/dist/lib/useCurrentUserQuery.js";
7
- import { Scope as n } from "../../../../shared/data-access/dist/lib/scopes.js";
8
- import "../../../../shared/data-access/dist/index.js";
9
- import { useWidgetConfig as r } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
- import "../../../../shared/feature/dist/index.js";
11
- import { usePayableApprovalRequestsQuery as i } from "../../data-access/dist/index2.js";
12
- import "../../data-access/dist/index.js";
13
- import { currentApprovalRound as a } from "./index3.js";
14
- import { usePayableApprovalRoundStart as o } from "./index11.js";
15
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js
16
- function s({ payableId: s, status: c }) {
17
- let { initResponse: l } = r(), u = e(l?.scopes, [n.ApprovalRequestReadOrg]), d = c === "approve_in_progress" && u, { roundStartedAt: f } = o({
18
- payableId: s,
19
- enabled: d
20
- }), p = t({ enabled: d }), m = p.data?.id, h = (e) => e.caller_is_policy_approver ?? !!(m && e.user_ids.includes(m)), g = i(s, {
21
- enabled: d,
22
- hasAwaitedRequest: d ? (e) => a(e, f).some(h) : void 0,
23
- currentRoundStartedAt: f
24
- }), _ = d ? a(g.data?.data, f) : [], v = _.some(h), y = _.filter((e) => e.status === "waiting");
2
+ function e(e, t) {
3
+ if (!e) return;
4
+ let { onOpen: n, canEditExisting: r, ...i } = e;
25
5
  return {
26
- id: y.filter(h).find((e) => !(m && (e.approved_by ?? []).includes(m)))?.id,
27
- isPolicyApprover: v,
28
- hasWaitingRequest: y.length > 0,
29
- isLoading: g.isLoading || p.isLoading
6
+ ...i,
7
+ onEditExisting: t && r ? n : void 0,
8
+ onAdd: t ? void 0 : n
30
9
  };
31
10
  }
32
11
  //#endregion
33
- export { s as useCurrentApprovalRequestId };
12
+ export { e as resolvePaymentInstructionsGestures };
@@ -1,165 +1,13 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import "../../../../shared/ui/dist/index.js";
7
- import { useWidgetConfig as t } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
8
- import "../../../../shared/feature/dist/index.js";
9
- import { useApprovePayableApprovalRequestMutation as n, useRejectPayableApprovalRequestMutation as r } from "../../data-access/dist/index2.js";
10
- import { useCancelPayableMutation as i } from "../../data-access/dist/index6.js";
11
- import { useCancelScheduledPaymentMutation as a } from "../../data-access/dist/index7.js";
12
- import { useForceApprovePayableMutation as o } from "../../data-access/dist/index11.js";
13
- import { useForceRejectPayableMutation as s } from "../../data-access/dist/index12.js";
14
- import { useReopenPayableMutation as c } from "../../data-access/dist/index13.js";
15
- import "../../data-access/dist/index.js";
16
- import { getBillDetailActions as l } from "./index7.js";
17
- import { useState as u } from "react";
18
- import { BanIcon as d, HandIcon as f } from "lucide-react";
1
+ import { formatRejectionDate as e } from "../../../../shared/util/dist/lib/formatRejectionDate.js";
19
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js
20
- function p({ payableId: d, status: f, currentApprovalRequestId: p, arePendingApproversUnknown: m, hasScheduledPayment: h, scheduledPaymentIntentId: g, isScheduledPaymentUnknown: v, isPayabilityUnknown: x, labels: S, isMarkAsPaidPending: C, hasApprovalPolicy: w = !0, hasWaitingRequest: T, pendingApprovers: E, onPayBillSelect: D, onMarkAsPaidSelect: O, onEditSelect: k, onActionSucceeded: A }) {
21
- let { initResponse: j } = t(), M = r(), N = n(), P = i(), F = a(), I = c(), L = o(), R = s(), z = C || M.isPending || N.isPending || P.isPending || F.isPending || I.isPending || L.isPending || R.isPending, [B, V] = u(), H = B && (B.id !== "cancelScheduledPayment" || B.scheduledPaymentIntentId === g) ? B : void 0, U = d && f ? l({
22
- status: f,
23
- scopes: j?.scopes,
24
- canDecideApprovalRequest: !!p,
25
- arePendingApproversUnknown: m,
26
- hasApprovalPolicy: w,
27
- hasWaitingRequest: T,
28
- hasScheduledPayment: h || v,
29
- scheduledPaymentIntentId: g,
30
- isPayabilityUnknown: x,
31
- canEdit: !!k,
32
- labels: S
33
- }) : [], W = (t) => ({
34
- onError: () => e.error(S.actionError),
35
- onSuccess: () => {
36
- let n = b(t) && !w ? `${t}NoApprovalPolicy` : t;
37
- e.success(S.actionSuccess[n]), A?.(t);
38
- }
39
- }), G = {
40
- reject: {
41
- isPending: M.isPending,
42
- run: (e) => p && M.mutate({
43
- path: { approval_request_id: p },
44
- body: e ? { reject_reason: e } : void 0
45
- }, W("reject"))
46
- },
47
- approve: {
48
- isPending: N.isPending,
49
- run: () => p && N.mutate({ path: { approval_request_id: p } }, W("approve"))
50
- },
51
- cancel: {
52
- isPending: P.isPending,
53
- run: () => d && P.mutate({ path: { payable_id: d } }, W("cancel"))
54
- },
55
- cancelScheduledPayment: {
56
- isPending: F.isPending,
57
- run: () => {
58
- let e = H?.scheduledPaymentIntentId;
59
- d && e && F.mutate({
60
- path: { payment_intent_id: e },
61
- payableId: d
62
- }, W("cancelScheduledPayment"));
63
- }
64
- },
65
- reopen: {
66
- isPending: I.isPending,
67
- run: () => d && I.mutate({ path: { payable_id: d } }, W("reopen"))
68
- },
69
- forceApprove: {
70
- isPending: L.isPending,
71
- run: () => d && L.mutate({ path: { payable_id: d } }, W("forceApprove"))
72
- },
73
- forceReject: {
74
- isPending: R.isPending,
75
- run: () => d && R.mutate({ path: { payable_id: d } }, W("forceReject"))
76
- }
77
- }, K = U.map((e) => ({
78
- ...e,
79
- disabled: z,
80
- loading: e.id === "markAsPaid" ? C : G[e.id]?.isPending ?? !1,
81
- onSelect: () => {
82
- if (!z && d) {
83
- if (e.id === "payBill") {
84
- D();
85
- return;
86
- }
87
- if (e.id === "markAsPaid") {
88
- O();
89
- return;
90
- }
91
- if (e.id === "edit") {
92
- k?.();
93
- return;
94
- }
95
- if (y(e.id)) {
96
- V({
97
- id: e.id,
98
- scheduledPaymentIntentId: g
99
- });
100
- return;
101
- }
102
- G[e.id]?.run();
103
- }
104
- }
105
- }));
3
+ function t({ payableStatus: t, approvalRequests: n, userNames: r, payableUpdatedAt: i, labels: a, now: o }) {
4
+ let s = n.find((e) => e.status === "rejected");
5
+ if (!s) return t !== "rejected" || !i ? void 0 : { actorLabel: a.rejectedOn(e(i, o)) };
6
+ let c = s.rejected_by ? r.get(s.rejected_by) : void 0, l = e(s.updated_at, o);
106
7
  return {
107
- isActionPending: z,
108
- actions: {
109
- row: K.filter((e) => e.surface === "row"),
110
- menu: K.filter((e) => e.surface === "menu")
111
- },
112
- decisionDialog: {
113
- open: !!H,
114
- copy: H ? {
115
- ...S.decisionDialog[H.id],
116
- ...b(H.id) && !w ? S.decisionDialog[H.id].noApprovalPolicy : void 0,
117
- presentation: _(H.id),
118
- pendingApprovers: b(H.id) ? E ?? [] : void 0
119
- } : void 0,
120
- isPending: H ? G[H.id]?.isPending ?? !1 : !1,
121
- onCancel: () => {
122
- z || V(void 0);
123
- },
124
- onConfirm: (e) => {
125
- H && !z && (G[H.id]?.run(e), V(void 0));
126
- }
127
- }
8
+ actorLabel: c ? a.rejectedByOn(c, l) : a.rejectedOn(l),
9
+ message: s.reject_reason ? a.rejectionMessage(s.reject_reason) : void 0
128
10
  };
129
11
  }
130
- var m = {
131
- alignment: "center",
132
- icon: f,
133
- tone: "destructive",
134
- actionWidth: "equal"
135
- }, h = {
136
- alignment: "center",
137
- icon: d,
138
- tone: "destructive",
139
- actionWidth: "equal"
140
- }, g = {
141
- alignment: "center",
142
- icon: d,
143
- tone: "destructive",
144
- actionWidth: "equal"
145
- };
146
- function _(e) {
147
- if (b(e)) return m;
148
- if (e === "reject") return h;
149
- if (e === "cancel") return g;
150
- }
151
- var v = [
152
- "reject",
153
- "cancel",
154
- "cancelScheduledPayment",
155
- "forceApprove",
156
- "forceReject"
157
- ];
158
- function y(e) {
159
- return v.includes(e);
160
- }
161
- function b(e) {
162
- return e === "forceApprove" || e === "forceReject";
163
- }
164
12
  //#endregion
165
- export { p as usePayableDetailActions };
13
+ export { t as resolveBillRejectionNotice };
@@ -3,24 +3,31 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { hasAnyScope as e } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
6
- import { Scope as t } from "../../../../shared/data-access/dist/lib/scopes.js";
6
+ import { useCurrentUserQuery as t } from "../../../../shared/data-access/dist/lib/useCurrentUserQuery.js";
7
+ import { Scope as n } from "../../../../shared/data-access/dist/lib/scopes.js";
7
8
  import "../../../../shared/data-access/dist/index.js";
8
- import { useWidgetConfig as n } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
9
+ import { useWidgetConfig as r } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
9
10
  import "../../../../shared/feature/dist/index.js";
10
- import { isLiveScheduledPaymentRecord as r } from "../../../util/dist/lib/isLiveScheduledPaymentRecord.js";
11
- import { usePayablePaymentRecordsQuery as i } from "../../data-access/dist/index18.js";
11
+ import { usePayableApprovalRequestsQuery as i } from "../../data-access/dist/index2.js";
12
12
  import "../../data-access/dist/index.js";
13
+ import { currentApprovalRound as a } from "./index3.js";
14
+ import { usePayableApprovalRoundStart as o } from "./index11.js";
13
15
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js
14
- function a({ payableId: a, scheduledPaymentDate: o, enabled: s = !0 }) {
15
- let { initResponse: c } = n(), l = e(c?.scopes, [t.PaymentRecordReadOrg]), u = i(s ? a : void 0, { enabled: s && l }), d = u.paymentRecords.find(r), f = !!d || !!o, p = d?.planned_payment_date ?? (f ? o : void 0);
16
+ function s({ payableId: s, status: c }) {
17
+ let { initResponse: l } = r(), u = e(l?.scopes, [n.ApprovalRequestReadOrg]), d = c === "approve_in_progress" && u, { roundStartedAt: f } = o({
18
+ payableId: s,
19
+ enabled: d
20
+ }), p = t({ enabled: d }), m = p.data?.id, h = (e) => e.caller_is_policy_approver ?? !!(m && e.user_ids.includes(m)), g = i(s, {
21
+ enabled: d,
22
+ hasAwaitedRequest: d ? (e) => a(e, f).some(h) : void 0,
23
+ currentRoundStartedAt: f
24
+ }), _ = d ? a(g.data?.data, f) : [], v = _.some(h), y = _.filter((e) => e.status === "waiting");
16
25
  return {
17
- hasScheduledPayment: f,
18
- paymentRecords: u.paymentRecords,
19
- isError: u.isError,
20
- isResolving: u.isResolving,
21
- scheduledDate: p ?? void 0,
22
- scheduledPaymentIntentId: d?.payment_intent_id ?? void 0
26
+ id: y.filter(h).find((e) => !(m && (e.approved_by ?? []).includes(m)))?.id,
27
+ isPolicyApprover: v,
28
+ hasWaitingRequest: y.length > 0,
29
+ isLoading: g.isLoading || p.isLoading
23
30
  };
24
31
  }
25
32
  //#endregion
26
- export { a as useScheduledPayment };
33
+ export { s as useCurrentApprovalRequestId };