@tesouro/embedded-components-react 0.5.228 → 0.5.231

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 (185) hide show
  1. package/README.md +22 -21
  2. package/dist/index.css +10 -0
  3. package/dist/index.d.ts +55 -21
  4. package/dist/index.js +3 -3
  5. package/dist/lib/ExpenseManagementWidget.d.ts +22 -21
  6. package/dist/lib/ExpenseManagementWidget.js +1 -1
  7. package/dist/lib/ReceivablesWidget.d.ts +34 -1
  8. package/dist/lib/ReceivablesWidget.js +1 -1
  9. package/dist/lib/UploadReceiptWidget.d.ts +2 -2
  10. package/dist/lib/UploadReceiptWidget.js +2 -2
  11. package/dist/lib/WidgetSuite.d.ts +17 -15
  12. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index.js +3 -0
  13. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index2.js +5 -0
  14. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index24.js → approval-policies/feature/dist/index3.js} +7 -7
  15. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index25.js → approval-policies/feature/dist/index4.js} +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index26.js → approval-policies/feature/dist/index5.js} +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index27.js → approval-policies/feature/dist/index6.js} +53 -53
  18. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index.js +8 -0
  19. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/types.js → approval-policies/ui/dist/index2.js} +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/labels.js → approval-policies/ui/dist/index3.js} +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/conditionLabel.js → approval-policies/ui/dist/index4.js} +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/EmptyApprovalRules.js → approval-policies/ui/dist/index5.js} +3 -3
  23. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ApprovalRuleCard.js → approval-policies/ui/dist/index6.js} +5 -5
  24. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ApprovalRuleForm.js → approval-policies/ui/dist/index7.js} +4 -4
  25. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ExpenseApprovalsPage.js → approval-policies/ui/dist/index8.js} +7 -7
  26. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index.js +18 -19
  27. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/invalidation.js +2 -0
  28. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index20.js → lib/invalidateTransactionViews.js} +4 -4
  29. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index10.js → lib/queryKeys.js} +4 -4
  30. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index5.js → lib/useEntityUsersByIdsQuery.js} +6 -6
  31. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index8.js → lib/useExpenseHistoryQuery.js} +6 -6
  32. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index7.js → lib/useExpenseLedgerAccountsQuery.js} +3 -3
  33. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index17.js → lib/useExpenseReceiptsCountQuery.js} +5 -5
  34. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index16.js → lib/useExpenseTransactionIdsQuery.js} +2 -2
  35. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index15.js → lib/useExpenseTransactionsCountQuery.js} +5 -5
  36. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index19.js → lib/useGetApprovalRequestsQuery.js} +5 -5
  37. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index9.js → lib/useGetTransactionQuery.js} +5 -5
  38. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index3.js → lib/useGetTransactionsQuery.js} +5 -5
  39. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useHasDirectReportsQuery.js +34 -0
  40. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index4.js → lib/useOrganizationDepartmentsQuery.js} +6 -6
  41. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index6.js → lib/useOrganizationLocationsQuery.js} +6 -6
  42. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index11.js → lib/usePatchReceiptMutation.js} +7 -7
  43. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index14.js → lib/useTrackReceiptMatching.js} +7 -7
  44. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index21.js → lib/useTransactionReviewMutations.js} +6 -6
  45. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index18.js → lib/useTransactionValidationsQuery.js} +5 -5
  46. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index13.js → lib/useUploadReceiptMutation.js} +7 -7
  47. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js +10 -10
  48. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index10.js +77 -160
  49. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index11.js +356 -63
  50. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index12.js +36 -71
  51. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +130 -344
  52. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index14.js +223 -36
  53. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index15.js +192 -137
  54. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index16.js +11 -227
  55. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index17.js +81 -186
  56. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index18.js +37 -11
  57. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index19.js +309 -82
  58. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js +30 -87
  59. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index20.js +1 -39
  60. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +3 -2
  61. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +23 -257
  62. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +18 -2
  63. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index7.js +160 -59
  64. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index8.js +62 -28
  65. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js +28 -18
  66. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/data-access/dist/index.js +3 -0
  67. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{data-access → receipt-match/data-access}/dist/index2.js +5 -5
  68. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/data-access/dist/index3.js +40 -0
  69. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index.js +2 -0
  70. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +256 -0
  71. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index3.js +5 -0
  72. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index4.js +65 -0
  73. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index.js +8 -0
  74. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/labels.js → receipt-match/ui/dist/index2.js} +1 -1
  75. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptInboxItem.js → receipt-match/ui/dist/index3.js} +3 -3
  76. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptInboxStep.js → receipt-match/ui/dist/index4.js} +6 -6
  77. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/TransactionsMatchStep.js → receipt-match/ui/dist/index5.js} +27 -27
  78. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/MatchConfirmationStep.js → receipt-match/ui/dist/index6.js} +3 -3
  79. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptMatchSidebar.js → receipt-match/ui/dist/index7.js} +6 -6
  80. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptMatchLauncher.js → receipt-match/ui/dist/index8.js} +1 -1
  81. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index.js +9 -28
  82. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/ExpenseStatusBadge.js +7 -12
  83. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/badgeTones.js +1 -7
  84. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/ExpensesScreen.js +61 -55
  85. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/labels.js +2 -1
  86. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/ExpensesTransactionsTable.js +42 -44
  87. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +6 -6
  88. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/TransactionDetails.js +137 -138
  89. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/TransactionDetailsActions.js +82 -80
  90. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui → util}/dist/lib/isPdf.js +1 -1
  91. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/util/dist/lib/widgetName.js +4 -0
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +1 -1
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +1 -1
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +32 -33
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +34 -32
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +1 -1
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  98. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +120 -52
  99. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +44 -100
  100. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +93 -337
  101. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +356 -211
  102. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +225 -157
  103. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +152 -21
  104. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +18 -221
  105. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +224 -56
  106. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +126 -231
  107. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +53 -298
  108. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +232 -43
  109. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +295 -118
  110. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +38 -145
  111. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +126 -46
  112. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +145 -117
  113. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +38 -91
  114. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +113 -107
  115. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +94 -27
  116. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +104 -619
  117. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +34 -41
  118. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +635 -34
  119. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +39 -77
  120. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +34 -117
  121. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +75 -318
  122. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +139 -0
  123. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +340 -0
  124. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
  125. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +55 -468
  126. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +443 -97
  127. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +24 -21
  128. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +32 -2
  129. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +205 -84
  130. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +161 -3
  131. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +12 -20
  132. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +23 -40
  133. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +2 -17
  134. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +90 -68
  135. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +3 -20
  136. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +20 -12
  137. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +40 -30
  138. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +14 -7
  139. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +15 -301
  140. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +73 -1
  141. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +17 -45
  142. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +12 -68
  143. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +26 -490
  144. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +294 -95
  145. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +1 -0
  146. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +48 -2
  147. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +72 -4
  148. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +496 -1
  149. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +121 -27
  150. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +97 -91
  151. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +2 -236
  152. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +3 -2
  153. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +1 -249
  154. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +89 -82
  155. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +23 -54
  156. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +223 -340
  157. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +3 -0
  158. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +249 -0
  159. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +100 -216
  160. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +93 -0
  161. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +59 -0
  162. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +353 -0
  163. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +35 -29
  164. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -216
  165. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +9 -159
  166. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +27 -14
  167. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +216 -23
  168. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +1 -1
  169. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  170. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/index.js +12 -12
  171. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatTimestampDate.js +13 -0
  172. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index.js +4 -0
  173. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index2.js +91 -0
  174. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index.js +4 -0
  175. package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/ui/dist/lib/UploadReceiptWidget/labels.js → upload-receipt-widget/ui/dist/index2.js} +1 -1
  176. package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/ui/dist/lib/UploadReceiptWidget/UploadReceiptButton.js → upload-receipt-widget/ui/dist/index3.js} +3 -3
  177. package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/ui/dist/lib/UploadReceiptWidget/UploadReceiptModal.js → upload-receipt-widget/ui/dist/index4.js} +3 -3
  178. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index11.js +1 -1
  179. package/package.json +1 -1
  180. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index12.js +0 -39
  181. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index21.js +0 -297
  182. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index22.js +0 -1
  183. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index23.js +0 -4
  184. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/labels.js +0 -13
  185. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +0 -28
package/README.md CHANGED
@@ -503,27 +503,28 @@ Lists, creates, edits and acts on an organization's invoices, quotes and credit
503
503
 
504
504
  #### Props
505
505
 
506
- | Prop | Type | Default | Description |
507
- | -------------------------- | ---------------------------------------------------- | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
508
- | `defaultTab` | `ReceivablesWidgetTab` | `'invoices'` | Initial tab; if omitted or disabled, the widget starts on the first enabled tab. |
509
- | `enabledTabs` | `ReceivablesWidgetTab[]` | `['invoices', 'quotes', 'credit_notes']` | Tabs visible to the user. Duplicate or unknown values are ignored. |
510
- | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads with a page size of `10`. |
511
- | `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create or clone succeeds. |
512
- | `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row's details panel. |
513
- | `onTemplateSettingsClick` | `() => void` | `undefined` | Shows a template settings action in the header and calls this handler when clicked. |
514
- | `embeddedBankName` | `string` | `undefined` | Sponsor bank name shown as "Powered by {embeddedBankName}" next to embedded accounts in the invoice payment-account picker. Omitted when unset. |
515
- | `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Table, tab, filter, empty, error, action and status badge copy. |
516
- | `formLabels` | `Partial<ReceivableFormSheetLabels>` | English labels | Create/edit form copy; the save and issue buttons are in `messageLabels`. |
517
- | `detailsLabels` | `ReceivableDetailsPanelLabelOverrides` | English labels | Details panel copy. Status badge copy comes from `screenLabels.statusBadge`. |
518
- | `sendLabels` | `Partial<ReceivableSendDialogLabels>` | English labels | Send-email dialog copy. |
519
- | `paymentLabels` | `Partial<ReceivablePaymentDialogLabels>` | English labels | Manual payment dialog copy. |
520
- | `actionLabels` | `Partial<ReceivableActionDialogLabels>` | English labels | Confirmation dialog buttons; per-action titles come from `messageLabels`. |
521
- | `counterpartFormLabels` | `PartialDeep<CounterpartFormSheetLabels>` | English labels | Inline customer creation copy. |
522
- | `measureUnitsLabels` | `Partial<MeasureUnitsManagerLabels>` | English labels | Measure-unit manager copy. |
523
- | `measureUnitDeleteLabels` | `Partial<MeasureUnitDeleteDialogLabels>` | English labels | Measure-unit delete confirmation copy. |
524
- | `messageLabels` | `Partial<ReceivableMessageLabels>` | English labels | Validation, fallback, details panel, reminder and confirmation messages, including the form's save and issue buttons and a new reminder's subject and body. |
525
- | `productMessageLabels` | `Partial<ProductMessageLabels>` | English labels | Product validation and error messages. |
526
- | `counterpartMessageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Customer validation and error messages. |
506
+ | Prop | Type | Default | Description |
507
+ | -------------------------- | ---------------------------------------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
508
+ | `defaultTab` | `ReceivablesWidgetTab` | `'invoices'` | Initial tab; if omitted or disabled, the widget starts on the first enabled tab. |
509
+ | `enabledTabs` | `ReceivablesWidgetTab[]` | `['invoices', 'quotes', 'credit_notes']` | Tabs visible to the user. Duplicate or unknown values are ignored. |
510
+ | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads with a page size of `10`. |
511
+ | `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create or clone succeeds. |
512
+ | `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row's details panel. |
513
+ | `onTemplateSettingsClick` | `() => void` | `undefined` | Shows a template settings action in the header and calls this handler when clicked. |
514
+ | `embeddedBankName` | `string` | `undefined` | Sponsor bank name shown as "Powered by {embeddedBankName}" next to embedded accounts in the invoice payment-account picker. Omitted when unset. |
515
+ | `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Table, tab, filter, empty, error, action and status badge copy. |
516
+ | `formLabels` | `Partial<ReceivableFormSheetLabels>` | English labels | Create/edit form copy; the save and issue buttons are in `messageLabels`. |
517
+ | `detailsLabels` | `ReceivableDetailsPanelLabelOverrides` | English labels | Details panel copy. Status badge copy comes from `screenLabels.statusBadge`. |
518
+ | `sendLabels` | `Partial<ReceivableSendDialogLabels>` | English labels | Send-email dialog copy. |
519
+ | `paymentLabels` | `Partial<ReceivablePaymentDialogLabels>` | English labels | Manual payment dialog copy. |
520
+ | `actionLabels` | `Partial<ReceivableActionDialogLabels>` | English labels | Confirmation dialog buttons; per-action titles come from `messageLabels`. |
521
+ | `actionsModalLabels` | `Partial<ReceivableActionsModalLabels>` | English labels | Copy of the modal shown after a create: the email step and the save-items-as-products step. Its titles, toasts and select-all toggle are in `messageLabels`. |
522
+ | `counterpartFormLabels` | `PartialDeep<CounterpartFormSheetLabels>` | English labels | Inline customer creation copy. |
523
+ | `measureUnitsLabels` | `Partial<MeasureUnitsManagerLabels>` | English labels | Measure-unit manager copy. |
524
+ | `measureUnitDeleteLabels` | `Partial<MeasureUnitDeleteDialogLabels>` | English labels | Measure-unit delete confirmation copy. |
525
+ | `messageLabels` | `Partial<ReceivableMessageLabels>` | English labels | Validation, fallback, details panel, reminder and confirmation messages, including the form's save and issue buttons and a new reminder's subject and body. |
526
+ | `productMessageLabels` | `Partial<ProductMessageLabels>` | English labels | Product validation and error messages. |
527
+ | `counterpartMessageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Customer validation and error messages. |
527
528
 
528
529
  ### SettingsWidget
529
530
 
package/dist/index.css CHANGED
@@ -114,6 +114,7 @@
114
114
  --ttw-container-sm: 24rem;
115
115
  --ttw-container-md: 28rem;
116
116
  --ttw-container-lg: 32rem;
117
+ --ttw-container-xl: 36rem;
117
118
  --ttw-container-2xl: 42rem;
118
119
  --ttw-container-3xl: 48rem;
119
120
  --ttw-container-4xl: 56rem;
@@ -857,6 +858,9 @@
857
858
  .ttw\:h-\[350px\] {
858
859
  height: 350px;
859
860
  }
861
+ .ttw\:h-\[480px\] {
862
+ height: 480px;
863
+ }
860
864
  .ttw\:h-\[600px\] {
861
865
  height: 600px;
862
866
  }
@@ -1325,6 +1329,9 @@
1325
1329
  .ttw\:w-\[300px\] {
1326
1330
  width: 300px;
1327
1331
  }
1332
+ .ttw\:w-\[360px\] {
1333
+ width: 360px;
1334
+ }
1328
1335
  .ttw\:w-\[400px\] {
1329
1336
  width: 400px;
1330
1337
  }
@@ -1523,6 +1530,9 @@
1523
1530
  .ttw\:max-w-sm {
1524
1531
  max-width: var(--ttw-container-sm);
1525
1532
  }
1533
+ .ttw\:max-w-xl {
1534
+ max-width: var(--ttw-container-xl);
1535
+ }
1526
1536
  .ttw\:max-w-xs {
1527
1537
  max-width: var(--ttw-container-xs);
1528
1538
  }
package/dist/index.d.ts CHANGED
@@ -2975,21 +2975,6 @@ type DebitCardsWidgetProps = Omit<CardsWidgetProps, 'cardProgram'>;
2975
2975
  */
2976
2976
  declare function DebitCardsWidget(props: DebitCardsWidgetProps): React.JSX.Element;
2977
2977
 
2978
- /**
2979
- * Mirrors the REST API's `ExpenseStatusEnum` (`new`, `approve_in_progress`,
2980
- * `approved`, `rejected`, `canceled`). Kept as a local literal union rather
2981
- * than importing the generated enum type: a `type:ui` library must not reach
2982
- * into `rest/types.gen.ts`, only the caller (a feature layer) may, and then
2983
- * pass the already-mapped display status down.
2984
- */
2985
- type ExpenseBadgeStatus = 'new' | 'approve_in_progress' | 'approved' | 'rejected' | 'canceled';
2986
-
2987
- type ExpenseStatusBadgeLabels = Record<ExpenseBadgeStatus, string> & {
2988
- unknown: string;
2989
- readyToSubmit: string;
2990
- missingInfo: string;
2991
- };
2992
-
2993
2978
  interface ExpensesHeaderLabels {
2994
2979
  bankingTaglinePrefix: string;
2995
2980
  settingsButtonAriaLabel: string;
@@ -3040,6 +3025,8 @@ interface Labels$2 {
3040
3025
  requirementsTab: string;
3041
3026
  matchingTab: string;
3042
3027
  tabCountAriaSuffix: string;
3028
+ /** Accessible name of the spinner shown while `isLoading`. */
3029
+ loading: string;
3043
3030
  }
3044
3031
 
3045
3032
  interface FileViewerLabels {
@@ -3091,6 +3078,10 @@ interface TransactionDetailsActionsLabels {
3091
3078
  returnToExpenses: string;
3092
3079
  cancel: string;
3093
3080
  reject: string;
3081
+ /**
3082
+ * The primary-button pairs below are picked by the caller, which passes the
3083
+ * finished string in `actions`; the footer never chooses between them.
3084
+ */
3094
3085
  approve: string;
3095
3086
  approveReviewNext: string;
3096
3087
  confirmRejection: string;
@@ -3126,6 +3117,17 @@ interface TransactionDetailsLabels {
3126
3117
  loadFailed: string;
3127
3118
  }
3128
3119
 
3120
+ /**
3121
+ * The statuses the widget displays: the REST `ExpenseStatusEnum` minus
3122
+ * `deleted`, which `toExpenseDisplayStatus` folds into `canceled`.
3123
+ */
3124
+ type ExpenseDisplayStatus = 'new' | 'approve_in_progress' | 'approved' | 'rejected' | 'canceled';
3125
+ type ExpenseStatusBadgeLabels = Record<ExpenseDisplayStatus, string> & {
3126
+ unknown: string;
3127
+ readyToSubmit: string;
3128
+ missingInfo: string;
3129
+ };
3130
+
3129
3131
  /**
3130
3132
  * Aggregate outcome of a receipt batch after the backend finishes OCR and
3131
3133
  * auto-matching. `stillProcessing` counts receipts that never reached a terminal
@@ -3188,11 +3190,10 @@ type ExpenseManagementWidgetProps = WidgetProviderProps & ExpenseManagementWidge
3188
3190
  * component, following the `WidgetProvider` "Feature Component Pattern" the
3189
3191
  * same way `CustomersWidgetNative` does. Uses no Monite provider.
3190
3192
  *
3191
- * One legacy behavior is deliberately not replicated: team-tab visibility is
3192
- * driven by `ExpenseReadOrg` alone rather than also probing for direct reports
3193
- * (`hasDirectReports` in the legacy widget) — the probe existed only to widen
3194
- * tab visibility for people-managers without org-wide read, a narrower cohort
3195
- * this rebuild does not yet cover.
3193
+ * Team tab visibility matches legacy: `ExpenseReadOrg`, or a direct-reports
3194
+ * probe for people-managers without org-wide read. The Team list, its count
3195
+ * and its Action Items share that one gate; the rows themselves are scoped by
3196
+ * the backend (ADR-0003), never by ids the widget collects.
3196
3197
  */
3197
3198
  declare function ExpenseManagementWidget({ screenLabels, headerLabels, transactionsTableLabels, filterBarLabels, actionItemsLabels, statusBadgeLabels, transactionDetailsLabels, transactionDetailsCardLabels, transactionDetailsActionsLabels, fileViewerLabels, receiptUpload, bankDisplayName, bankLogoSrc, bankLogoAlt, isBankingTaglineVisible, onSettingsClick, ...widgetProviderProps }: ExpenseManagementWidgetProps): React.JSX.Element;
3198
3199
 
@@ -4808,6 +4809,22 @@ interface ProductMessageLabels {
4808
4809
  updateMeasureUnitError: string;
4809
4810
  }
4810
4811
 
4812
+ interface ReceivableActionsModalLabels {
4813
+ issueDescription: string;
4814
+ toLabel: string;
4815
+ subjectLabel: string;
4816
+ messageLabel: string;
4817
+ messagePlaceholder: string;
4818
+ attachmentsLabel: string;
4819
+ attachmentsCaption: string;
4820
+ skipButton: string;
4821
+ sendButton: string;
4822
+ productsQuestion: string;
4823
+ productsCaption: string;
4824
+ productsAllLabel: string;
4825
+ saveItemsButton: string;
4826
+ }
4827
+
4811
4828
  interface ReceivableBillingSectionLabels {
4812
4829
  billingHeading: string;
4813
4830
  billingDescription: string;
@@ -5288,6 +5305,22 @@ interface ReceivableMessageLabels {
5288
5305
  unknownError: string;
5289
5306
  /** `{message}` is the first reasons, `{count}` how many more there are. */
5290
5307
  apiErrorsSummary: string;
5308
+ /** `{name}` is replaced with the customer's name. */
5309
+ actionsIssueTitle: string;
5310
+ /** `{documentId}` and `{name}` are replaced with the invoice number and customer name. */
5311
+ actionsSubjectWithNumber: string;
5312
+ /** `{name}` is replaced with the customer's name. */
5313
+ actionsSubject: string;
5314
+ actionsSendSucceeded: string;
5315
+ actionsSendFailed: string;
5316
+ actionsTitleSent: string;
5317
+ actionsTitleIssued: string;
5318
+ actionsTitleRecurrence: string;
5319
+ actionsTitleDraft: string;
5320
+ actionsSelectAll: string;
5321
+ actionsDeselectAll: string;
5322
+ actionsProductsSaved: string;
5323
+ actionsProductsSaveFailed: string;
5291
5324
  /** `{taxId}` is replaced with the party's tax ID. */
5292
5325
  previewTaxId: string;
5293
5326
  previewTaxableYes: string;
@@ -5333,6 +5366,7 @@ interface ReceivablesWidgetOwnProps {
5333
5366
  sendLabels?: Partial<ReceivableSendDialogLabels>;
5334
5367
  paymentLabels?: Partial<ReceivablePaymentDialogLabels>;
5335
5368
  actionLabels?: Partial<ReceivableActionDialogLabels>;
5369
+ actionsModalLabels?: Partial<ReceivableActionsModalLabels>;
5336
5370
  counterpartFormLabels?: PartialDeep<CounterpartFormSheetLabels>;
5337
5371
  measureUnitsLabels?: Partial<MeasureUnitsManagerLabels>;
5338
5372
  measureUnitDeleteLabels?: Partial<MeasureUnitDeleteDialogLabels>;
@@ -5771,4 +5805,4 @@ interface GapCoverageAlertProps {
5771
5805
  type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
5772
5806
 
5773
5807
  export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MARKETING_WIDGET_STATUS_LABELS_EN, MarketingBenefitIcon, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, UploadReceiptWidget, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
5774
- export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingStatusLabelValues, MarketingStatusNoticeLabels, MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MarketingWidgetStatusLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
5808
+ export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingStatusLabelValues, MarketingStatusNoticeLabels, MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MarketingWidgetStatusLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
package/dist/index.js CHANGED
@@ -24,10 +24,10 @@ import { INSIGHTS_FEATURE_LABELS_EN as P } from "./libs/tesouro-embedded-compone
24
24
  import { INSIGHTS_WIDGET_LABELS_EN as F } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
25
25
  import { SINGLE_INSIGHT_LABELS_EN as I } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
26
26
  import { InsightsWidget as L } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index12.js";
27
- import { UploadReceiptWidget as R } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js";
28
- import { ExpenseManagementWidget as z } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index21.js";
27
+ import { UploadReceiptWidget as R } from "./libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index2.js";
28
+ import { ExpenseManagementWidget as z } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index19.js";
29
29
  import { InvoicingWidget as B } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js";
30
- import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js";
30
+ import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js";
31
31
  import { SettingsSection as H } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js";
32
32
  import { HELP_FAQ_EN as U } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
33
33
  import { SettingsWidget as W } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
@@ -2,21 +2,6 @@ import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
3
3
  import { FallbackProps } from 'react-error-boundary';
4
4
 
5
- /**
6
- * Mirrors the REST API's `ExpenseStatusEnum` (`new`, `approve_in_progress`,
7
- * `approved`, `rejected`, `canceled`). Kept as a local literal union rather
8
- * than importing the generated enum type: a `type:ui` library must not reach
9
- * into `rest/types.gen.ts`, only the caller (a feature layer) may, and then
10
- * pass the already-mapped display status down.
11
- */
12
- type ExpenseBadgeStatus = 'new' | 'approve_in_progress' | 'approved' | 'rejected' | 'canceled';
13
-
14
- type ExpenseStatusBadgeLabels = Record<ExpenseBadgeStatus, string> & {
15
- unknown: string;
16
- readyToSubmit: string;
17
- missingInfo: string;
18
- };
19
-
20
5
  interface ExpensesHeaderLabels {
21
6
  bankingTaglinePrefix: string;
22
7
  settingsButtonAriaLabel: string;
@@ -67,6 +52,8 @@ interface Labels {
67
52
  requirementsTab: string;
68
53
  matchingTab: string;
69
54
  tabCountAriaSuffix: string;
55
+ /** Accessible name of the spinner shown while `isLoading`. */
56
+ loading: string;
70
57
  }
71
58
 
72
59
  interface FileViewerLabels {
@@ -118,6 +105,10 @@ interface TransactionDetailsActionsLabels {
118
105
  returnToExpenses: string;
119
106
  cancel: string;
120
107
  reject: string;
108
+ /**
109
+ * The primary-button pairs below are picked by the caller, which passes the
110
+ * finished string in `actions`; the footer never chooses between them.
111
+ */
121
112
  approve: string;
122
113
  approveReviewNext: string;
123
114
  confirmRejection: string;
@@ -482,6 +473,17 @@ type EmbeddedClient = Client;
482
473
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
483
474
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
484
475
 
476
+ /**
477
+ * The statuses the widget displays: the REST `ExpenseStatusEnum` minus
478
+ * `deleted`, which `toExpenseDisplayStatus` folds into `canceled`.
479
+ */
480
+ type ExpenseDisplayStatus = 'new' | 'approve_in_progress' | 'approved' | 'rejected' | 'canceled';
481
+ type ExpenseStatusBadgeLabels = Record<ExpenseDisplayStatus, string> & {
482
+ unknown: string;
483
+ readyToSubmit: string;
484
+ missingInfo: string;
485
+ };
486
+
485
487
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
486
488
  children?: ReactNode;
487
489
  };
@@ -839,13 +841,12 @@ type ExpenseManagementWidgetProps = WidgetProviderProps & ExpenseManagementWidge
839
841
  * component, following the `WidgetProvider` "Feature Component Pattern" the
840
842
  * same way `CustomersWidgetNative` does. Uses no Monite provider.
841
843
  *
842
- * One legacy behavior is deliberately not replicated: team-tab visibility is
843
- * driven by `ExpenseReadOrg` alone rather than also probing for direct reports
844
- * (`hasDirectReports` in the legacy widget) — the probe existed only to widen
845
- * tab visibility for people-managers without org-wide read, a narrower cohort
846
- * this rebuild does not yet cover.
844
+ * Team tab visibility matches legacy: `ExpenseReadOrg`, or a direct-reports
845
+ * probe for people-managers without org-wide read. The Team list, its count
846
+ * and its Action Items share that one gate; the rows themselves are scoped by
847
+ * the backend (ADR-0003), never by ids the widget collects.
847
848
  */
848
849
  declare function ExpenseManagementWidget({ screenLabels, headerLabels, transactionsTableLabels, filterBarLabels, actionItemsLabels, statusBadgeLabels, transactionDetailsLabels, transactionDetailsCardLabels, transactionDetailsActionsLabels, fileViewerLabels, receiptUpload, bankDisplayName, bankLogoSrc, bankLogoAlt, isBankingTaglineVisible, onSettingsClick, ...widgetProviderProps }: ExpenseManagementWidgetProps): React.JSX.Element;
849
850
 
850
851
  export { ExpenseManagementWidget };
851
- export type { AccordionItemCardLabels, Labels as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, FileViewerLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels };
852
+ export type { AccordionItemCardLabels, Labels as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels };
@@ -1,3 +1,3 @@
1
- import { ExpenseManagementWidget as e } from "../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index21.js";
1
+ import { ExpenseManagementWidget as e } from "../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index19.js";
2
2
  import "../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js";
3
3
  export { e as ExpenseManagementWidget };
@@ -868,6 +868,22 @@ interface ProductMessageLabels {
868
868
  updateMeasureUnitError: string;
869
869
  }
870
870
 
871
+ interface ReceivableActionsModalLabels {
872
+ issueDescription: string;
873
+ toLabel: string;
874
+ subjectLabel: string;
875
+ messageLabel: string;
876
+ messagePlaceholder: string;
877
+ attachmentsLabel: string;
878
+ attachmentsCaption: string;
879
+ skipButton: string;
880
+ sendButton: string;
881
+ productsQuestion: string;
882
+ productsCaption: string;
883
+ productsAllLabel: string;
884
+ saveItemsButton: string;
885
+ }
886
+
871
887
  interface ReceivableBillingSectionLabels {
872
888
  billingHeading: string;
873
889
  billingDescription: string;
@@ -1348,6 +1364,22 @@ interface ReceivableMessageLabels {
1348
1364
  unknownError: string;
1349
1365
  /** `{message}` is the first reasons, `{count}` how many more there are. */
1350
1366
  apiErrorsSummary: string;
1367
+ /** `{name}` is replaced with the customer's name. */
1368
+ actionsIssueTitle: string;
1369
+ /** `{documentId}` and `{name}` are replaced with the invoice number and customer name. */
1370
+ actionsSubjectWithNumber: string;
1371
+ /** `{name}` is replaced with the customer's name. */
1372
+ actionsSubject: string;
1373
+ actionsSendSucceeded: string;
1374
+ actionsSendFailed: string;
1375
+ actionsTitleSent: string;
1376
+ actionsTitleIssued: string;
1377
+ actionsTitleRecurrence: string;
1378
+ actionsTitleDraft: string;
1379
+ actionsSelectAll: string;
1380
+ actionsDeselectAll: string;
1381
+ actionsProductsSaved: string;
1382
+ actionsProductsSaveFailed: string;
1351
1383
  /** `{taxId}` is replaced with the party's tax ID. */
1352
1384
  previewTaxId: string;
1353
1385
  previewTaxableYes: string;
@@ -1393,6 +1425,7 @@ interface ReceivablesWidgetOwnProps {
1393
1425
  sendLabels?: Partial<ReceivableSendDialogLabels>;
1394
1426
  paymentLabels?: Partial<ReceivablePaymentDialogLabels>;
1395
1427
  actionLabels?: Partial<ReceivableActionDialogLabels>;
1428
+ actionsModalLabels?: Partial<ReceivableActionsModalLabels>;
1396
1429
  counterpartFormLabels?: PartialDeep<CounterpartFormSheetLabels>;
1397
1430
  measureUnitsLabels?: Partial<MeasureUnitsManagerLabels>;
1398
1431
  measureUnitDeleteLabels?: Partial<MeasureUnitDeleteDialogLabels>;
@@ -1405,4 +1438,4 @@ type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
1405
1438
  declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
1406
1439
 
1407
1440
  export { ReceivablesWidget };
1408
- export type { CounterpartFormSheetLabels, CounterpartMessageLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab };
1441
+ export type { CounterpartFormSheetLabels, CounterpartMessageLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab };
@@ -1,3 +1,3 @@
1
- import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js";
1
+ import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js";
2
2
  import "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js";
3
3
  export { e as ReceivablesWidget };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
 
3
3
  /**
4
4
  * Aggregate outcome of a receipt batch after the backend finishes OCR and
@@ -23,7 +23,7 @@ interface UploadReceiptWidgetProps {
23
23
  onAwaitMatching?: (uploadedCount: number) => Promise<ReceiptMatchSummary>;
24
24
  isUploading?: boolean;
25
25
  }
26
- declare function UploadReceiptWidget({ emailAddress, onFileUpload, onAwaitMatching, isUploading, }: UploadReceiptWidgetProps): React.JSX.Element;
26
+ declare function UploadReceiptWidget({ emailAddress, onFileUpload, onAwaitMatching, isUploading, }: UploadReceiptWidgetProps): react.JSX.Element;
27
27
 
28
28
  export { UploadReceiptWidget };
29
29
  export type { ReceiptMatchSummary, UploadReceiptWidgetProps };
@@ -1,3 +1,3 @@
1
- import { UploadReceiptWidget as e } from "../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js";
2
- import "../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js";
1
+ import { UploadReceiptWidget as e } from "../libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index2.js";
2
+ import "../libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index.js";
3
3
  export { e as UploadReceiptWidget };
@@ -2129,21 +2129,6 @@ type CreditCardsWidgetProps = Omit<CardsWidgetProps, 'cardProgram' | 'cardArtSrc
2129
2129
  */
2130
2130
  type DebitCardsWidgetProps = Omit<CardsWidgetProps, 'cardProgram'>;
2131
2131
 
2132
- /**
2133
- * Mirrors the REST API's `ExpenseStatusEnum` (`new`, `approve_in_progress`,
2134
- * `approved`, `rejected`, `canceled`). Kept as a local literal union rather
2135
- * than importing the generated enum type: a `type:ui` library must not reach
2136
- * into `rest/types.gen.ts`, only the caller (a feature layer) may, and then
2137
- * pass the already-mapped display status down.
2138
- */
2139
- type ExpenseBadgeStatus = 'new' | 'approve_in_progress' | 'approved' | 'rejected' | 'canceled';
2140
-
2141
- type ExpenseStatusBadgeLabels = Record<ExpenseBadgeStatus, string> & {
2142
- unknown: string;
2143
- readyToSubmit: string;
2144
- missingInfo: string;
2145
- };
2146
-
2147
2132
  interface ExpensesHeaderLabels {
2148
2133
  bankingTaglinePrefix: string;
2149
2134
  settingsButtonAriaLabel: string;
@@ -2194,6 +2179,8 @@ interface Labels$2 {
2194
2179
  requirementsTab: string;
2195
2180
  matchingTab: string;
2196
2181
  tabCountAriaSuffix: string;
2182
+ /** Accessible name of the spinner shown while `isLoading`. */
2183
+ loading: string;
2197
2184
  }
2198
2185
 
2199
2186
  interface FileViewerLabels {
@@ -2245,6 +2232,10 @@ interface TransactionDetailsActionsLabels {
2245
2232
  returnToExpenses: string;
2246
2233
  cancel: string;
2247
2234
  reject: string;
2235
+ /**
2236
+ * The primary-button pairs below are picked by the caller, which passes the
2237
+ * finished string in `actions`; the footer never chooses between them.
2238
+ */
2248
2239
  approve: string;
2249
2240
  approveReviewNext: string;
2250
2241
  confirmRejection: string;
@@ -2280,6 +2271,17 @@ interface TransactionDetailsLabels {
2280
2271
  loadFailed: string;
2281
2272
  }
2282
2273
 
2274
+ /**
2275
+ * The statuses the widget displays: the REST `ExpenseStatusEnum` minus
2276
+ * `deleted`, which `toExpenseDisplayStatus` folds into `canceled`.
2277
+ */
2278
+ type ExpenseDisplayStatus = 'new' | 'approve_in_progress' | 'approved' | 'rejected' | 'canceled';
2279
+ type ExpenseStatusBadgeLabels = Record<ExpenseDisplayStatus, string> & {
2280
+ unknown: string;
2281
+ readyToSubmit: string;
2282
+ missingInfo: string;
2283
+ };
2284
+
2283
2285
  /**
2284
2286
  * Aggregate outcome of a receipt batch after the backend finishes OCR and
2285
2287
  * auto-matching. `stillProcessing` counts receipts that never reached a terminal
@@ -0,0 +1,3 @@
1
+ import "./index4.js";
2
+ import { ExpenseApprovalPoliciesWidget as e } from "./index6.js";
3
+ export { e as ExpenseApprovalPoliciesWidget };
@@ -0,0 +1,5 @@
1
+ import { EXPENSE_MANAGEMENT_WIDGET_NAME as e } from "../../../util/dist/lib/widgetName.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index2.js
3
+ var t = `${e}.expense_approval_policies`, n = { Mounted: `${t}.mounted` };
4
+ //#endregion
5
+ export { n as ExpenseApprovalPoliciesAnalyticsEvent, t as WIDGET_NAME };
@@ -1,12 +1,12 @@
1
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
2
- import "../../../shared/data-access/dist/index.js";
3
- import { ApprovalPolicyObjectType as t } from "../../../shared/approval-policy/data-access/dist/lib/queryKeys.js";
4
- import { useDeleteApprovalPoliciesIdMutation as n, useGetApprovalPoliciesQuery as r, usePatchApprovalPoliciesIdMutation as i, usePostApprovalPoliciesMutation as a } from "../../../shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js";
5
- import "../../../shared/approval-policy/data-access/dist/index.js";
6
- import { AmountConditionType as o, ApprovalOutcomeType as s } from "../../ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/types.js";
1
+ import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
2
+ import "../../../../shared/data-access/dist/index.js";
3
+ import { ApprovalPolicyObjectType as t } from "../../../../shared/approval-policy/data-access/dist/lib/queryKeys.js";
4
+ import { useDeleteApprovalPoliciesIdMutation as n, useGetApprovalPoliciesQuery as r, usePatchApprovalPoliciesIdMutation as i, usePostApprovalPoliciesMutation as a } from "../../../../shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js";
5
+ import "../../../../shared/approval-policy/data-access/dist/index.js";
6
+ import { AmountConditionType as o, ApprovalOutcomeType as s } from "../../ui/dist/index2.js";
7
7
  import "../../ui/dist/index.js";
8
8
  import { useCallback as c, useEffect as l, useRef as u, useState as d } from "react";
9
- //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js
9
+ //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index3.js
10
10
  var f = t.Transaction, p = "{event_name == 'submitted_for_approval'}";
11
11
  function m(e, t, n) {
12
12
  switch (e) {
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index25.js
1
+ //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index4.js
2
2
  var e = {
3
3
  AdminLabel: "Company admin",
4
4
  AdminSublabel: "Any company admin can approve",
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index26.js
1
+ //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index5.js
2
2
  var e = {
3
3
  ruleCard: "expense-approval-rule-card",
4
4
  ruleForm: "expense-approval-rule-form",