@tesouro/embedded-components-react 0.11.141 → 0.11.168

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 (157) hide show
  1. package/NOTICE +24 -0
  2. package/README.md +15 -37
  3. package/dist/experimental/BalanceHistoryWidget.d.ts +0 -11
  4. package/dist/experimental/QuickViewWidget.d.ts +0 -11
  5. package/dist/experimental/RemoteCheckCapture.d.ts +0 -11
  6. package/dist/experimental/index.d.ts +0 -11
  7. package/dist/fixtures/index.d.ts +27 -1
  8. package/dist/index.css +6976 -6246
  9. package/dist/index.d.ts +67 -173
  10. package/dist/index.js +9 -10
  11. package/dist/lib/AcceptDisclosuresWidget.d.ts +0 -11
  12. package/dist/lib/BalancesWidget.d.ts +0 -11
  13. package/dist/lib/BankAccountOnboardingWidget.d.ts +0 -11
  14. package/dist/lib/BankAccountsWidget.d.ts +3 -11
  15. package/dist/lib/BankingComplianceBannerWidget.d.ts +0 -11
  16. package/dist/lib/BillPayWidget.d.ts +0 -11
  17. package/dist/lib/CardDetailsWidget.d.ts +0 -11
  18. package/dist/lib/CounterpartsWidget.d.ts +1 -12
  19. package/dist/lib/CounterpartsWidgetPublic.d.ts +1 -12
  20. package/dist/lib/CreditCardsWidget.d.ts +1 -11
  21. package/dist/lib/DebitCardsWidget.d.ts +1 -11
  22. package/dist/lib/ExpenseManagementWidget.d.ts +1 -12
  23. package/dist/lib/InsightsWidget.d.ts +0 -11
  24. package/dist/lib/LinkedAccountsWidget.d.ts +1 -11
  25. package/dist/lib/OfferWidget.d.ts +0 -11
  26. package/dist/lib/ReceivablesWidget.d.ts +60 -17
  27. package/dist/lib/ReceivablesWidget.js +3 -2
  28. package/dist/lib/SettingsWidget.d.ts +0 -11
  29. package/dist/lib/TransfersWidget.d.ts +0 -11
  30. package/dist/lib/WidgetProvider.d.ts +0 -11
  31. package/dist/lib/WidgetProviderPublic.d.ts +0 -11
  32. package/dist/lib/WidgetSuite.d.ts +63 -15
  33. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +20 -19
  35. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +8 -8
  36. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index4.js +2 -3
  37. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +83 -82
  38. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +84 -79
  39. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +2 -1
  40. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -0
  41. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/formatters.js +2 -3
  42. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +122 -121
  43. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +51 -46
  44. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +63 -59
  45. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +3 -1
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +1 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +1 -1
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +1 -1
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +1 -1
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +1 -1
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +1 -1
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +1 -1
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +1 -1
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +1 -1
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +1 -1
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +1 -1
  57. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useActivateCard.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useCardLock.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useEditCardNickname.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +1 -1
  61. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js +2 -0
  62. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/useCardsWidget.js +161 -160
  63. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +126 -122
  64. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/labels.js +1 -0
  65. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsActions.js +1 -1
  66. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index7.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js +10 -9
  68. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsFeature.js +1 -1
  69. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +1 -1
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +66 -74
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -2
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +351 -318
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +126 -133
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +63 -56
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +78 -72
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +2 -1
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -1
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +138 -129
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +119 -0
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js +37 -28
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +1 -2
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useInvoicesFilter.js +131 -81
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useLocalDayStart.js +15 -0
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +46 -46
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +1 -1
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +440 -438
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +7 -7
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +62 -56
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -1
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +47 -16
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +78 -86
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +180 -158
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useRecurringSeriesTable.js +132 -0
  98. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/invoicing.js +4 -0
  99. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/receivables.js +153 -137
  100. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -19
  101. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +6 -4
  102. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +1 -1
  103. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -3
  104. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +137 -129
  105. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +21 -46
  106. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +143 -0
  107. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +2 -0
  108. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +47 -0
  109. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +25 -25
  110. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +193 -192
  111. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +2 -1
  112. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +100 -96
  113. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +1 -0
  114. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductDelete.js +1 -1
  115. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/mocks/products.js +3 -11
  116. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/scenarios.js +1 -1
  117. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index2.js +36 -77
  118. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/summarizeCardSpend.js +11 -13
  119. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/useCardSpendSummary.js +20 -17
  120. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +1 -1
  121. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +1 -1
  122. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js +7 -0
  123. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -1
  124. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +1 -1
  125. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +4 -9
  126. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js +1 -1
  127. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js +2 -3
  128. package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +2 -2
  129. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +1 -1
  130. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +2 -2
  131. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +1 -1
  132. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useDeleteController.js +1 -1
  133. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
  134. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +233 -211
  135. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -42
  136. package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +1 -1
  137. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js +5 -4
  138. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  139. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
  140. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/toasts.js +1 -1
  141. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +28 -28
  142. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmbeddedToaster.js +33 -32
  143. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +9 -8
  144. package/dist/node_modules/sonner/dist/index.js +620 -0
  145. package/dist/packages/shared-ui-shadcn/dist/index.js +6072 -6062
  146. package/dist/scenarios/index.d.ts +1 -3
  147. package/dist/scenarios/index.js +17 -20
  148. package/package.json +17 -4
  149. package/dist/lib/CustomersWidget.d.ts +0 -993
  150. package/dist/lib/CustomersWidget.js +0 -2
  151. package/dist/lib/ProductsWidget.d.ts +0 -893
  152. package/dist/lib/ProductsWidget.js +0 -2
  153. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index.js +0 -1
  154. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js +0 -41
  155. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/analytics/events.js +0 -3
  156. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/scenarios.js +0 -2
  157. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useUtcDayStart.js +0 -15
package/NOTICE CHANGED
@@ -5,3 +5,27 @@ This product is licensed under the Apache License, Version 2.0 (see the
5
5
  accompanying LICENSE file).
6
6
 
7
7
  This product includes software developed at Tesouro.
8
+
9
+ Bundled third-party software: Sonner (https://github.com/emilkowalski/sonner)
10
+
11
+ MIT License
12
+
13
+ Copyright (c) 2023 Emil Kowalski
14
+
15
+ Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ of this software and associated documentation files (the "Software"), to deal
17
+ in the Software without restriction, including without limitation the rights
18
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ copies of the Software, and to permit persons to whom the Software is
20
+ furnished to do so, subject to the following conditions:
21
+
22
+ The above copyright notice and this permission notice shall be included in all
23
+ copies or substantial portions of the Software.
24
+
25
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ SOFTWARE.
package/README.md CHANGED
@@ -314,6 +314,16 @@ Only the variables above are supported. Tailwind's own variables share the
314
314
  the utilities are prefixed `ttw`; they are pinned inside the widgets, so
315
315
  setting one has no effect. `--ttw-chart-*` were removed.
316
316
 
317
+ The prebuilt stylesheet keeps the widget's spacing and typography on a 16px
318
+ baseline even when the host changes `html` font size. Browser zoom still scales
319
+ the widgets; the browser's default font-size preference does not change this
320
+ fixed design scale. Theme lengths you supply retain their chosen units. The
321
+ stylesheet also includes scoped notification styles, so importing the SDK does
322
+ not inject an unnonced notification stylesheet. Widget utilities and the scoped
323
+ reset take precedence over normal host element rules for the properties they
324
+ define. Host `!important` rules and selectors targeting widget classes can still
325
+ override them.
326
+
317
327
  <!-- BEGIN GENERATED REFERENCE -->
318
328
 
319
329
  ## Providers
@@ -582,24 +592,6 @@ Manages an organization's customers or vendors: a searchable list with money col
582
592
  | `deleteLabels` | `Partial<ConfirmDeleteDialogLabels>` | English labels | Delete-dialog copy. |
583
593
  | `messageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Validation, API failure and delete-prompt messages. |
584
594
 
585
- ### CustomersWidget
586
-
587
- Manages an organization's customers: a searchable list with money columns, a details sheet, and create, edit and delete flows.
588
-
589
- #### Props
590
-
591
- | Prop | Type | Default | Description |
592
- | -------------------- | --------------------------------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
593
- | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Page-size choices shown by the table. The list opens at the first one. |
594
- | `onViewAllDocuments` | `(customer: CounterpartActionTarget) => void` | `undefined` | Shows a "View all" action on the details sheet's recent invoices and passes the customer's `id` and `name`; omit to hide it. |
595
- | `onCreateDocument` | `(customer: CounterpartActionTarget) => void` | `undefined` | Handles "Issue an invoice" with the customer's `id` and `name`; omit to hide the button. You check invoice scopes. |
596
- | `screenLabels` | `Partial<CounterpartsScreenLabels>` | English labels | Table, search, filter, empty and error copy. |
597
- | `formLabels` | `Partial<CounterpartFormSheetLabels>` | English labels | Create/edit customer form copy. |
598
- | `detailsLabels` | `Partial<CounterpartDetailsSheetLabels>` | English labels | Details sheet copy. |
599
- | `addressLabels` | `PartialDeep<AddressFormSheetLabels>` | English labels | Deprecated and unused: the address is edited with the rest of the customer, so relabel it through `formLabels.address`. |
600
- | `deleteLabels` | `Partial<ConfirmDeleteDialogLabels>` | English labels | Delete-dialog copy. |
601
- | `messageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Validation, API failure and delete-prompt copy. |
602
-
603
595
  ### ExpenseManagementWidget
604
596
 
605
597
  A complete expenses surface: My and Team transactions tabs with Action Items, a searchable transactions table, receipt upload, and a full-screen transaction review dialog.
@@ -701,23 +693,6 @@ The card and its "Learn more" modal present your product copy (logo, captions, "
701
693
  | `labels` | `PartialDeep<OfferWidgetLabels>` | English labels | Override the card and modal copy. See the exported `OfferWidgetLabels` type for every key. |
702
694
  | `statusLabels` | `PartialDeep<OfferWidgetStatusLabels>` | English labels | Override the Resume application label and each status message. Heading and body are functions of `{ bankName }`. |
703
695
 
704
- ### ProductsWidget
705
-
706
- Manages an organization's products and services: a filterable, sortable table with create, edit, view and delete flows, plus measure-unit management.
707
-
708
- #### Props
709
-
710
- | Prop | Type | Default | Description |
711
- | ------------------------- | ---------------------------------------- | ------------------- | ------------------------------------------------------------ |
712
- | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. |
713
- | `screenLabels` | `PartialDeep<ProductsScreenLabels>` | English labels | Table/header/filter/empty/error copy. |
714
- | `formLabels` | `PartialDeep<ProductFormSheetLabels>` | English labels | Create sheet and inline edit form copy. |
715
- | `detailsLabels` | `PartialDeep<ProductDetailsSheetLabels>` | English labels | Details sheet copy. |
716
- | `deleteLabels` | `Partial<ProductDeleteDialogLabels>` | English labels | Product delete confirmation copy. |
717
- | `measureUnitsLabels` | `PartialDeep<MeasureUnitsManagerLabels>` | English labels | Measure-units manager and its add / edit dialog copy. |
718
- | `measureUnitDeleteLabels` | `Partial<MeasureUnitDeleteDialogLabels>` | English labels | Measure-unit delete confirmation copy. |
719
- | `messageLabels` | `Partial<ProductMessageLabels>` | English labels | Validation, error and toast messages produced by the widget. |
720
-
721
696
  ### ReceivablesWidget
722
697
 
723
698
  Lists, creates, edits and acts on an organization's invoices, including sending by email and recording payments.
@@ -731,13 +706,16 @@ Lists, creates, edits and acts on an organization's invoices, including sending
731
706
  | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads at the first choice, or `10` when the list is empty. |
732
707
  | `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create succeeds. Not called for a duplicate. |
733
708
  | `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row's details panel. |
734
- | `onTemplateSettingsClick` | `() => void` | `undefined` | Shows the invoice settings button on the tab row, for users holding `organization_settings:write:org`, and calls this when it is clicked. |
709
+ | `onTemplateSettingsClick` | `() => void` | `undefined` | Shows the invoice settings button at the top right, on the `headerStart` line, for users holding `organization_settings:write:org`, and calls this when it is clicked. |
735
710
  | `headerStart` | `ReactNode` | `undefined` | Rendered above the tab row. The widget renders no heading of its own, so pass your page title here. |
736
711
  | `selectedTab` | `InvoicingTabId` | `undefined` | The active tab: `'invoices'`, `'recurring'`, `'customers'` or `'products'`. Omit to let the widget track it, starting on Invoices. |
737
712
  | `onTabChange` | `(tab: InvoicingTabId) => void` | `undefined` | Called when the user picks a tab, so you can keep it in the URL. |
713
+ | `selectedStatusCard` | `ReceivableStatusCard \| null` | `undefined` | The active summary card on the Invoices tab: `'unpaid'`, `'overdue'`, `'paid'` (paid in the last 30 days) or `'drafts'`, or `null` for none. Applied on mount and whenever it changes. Omit to let the widget track it, starting with none. |
714
+ | `onStatusCardChange` | `(card: ReceivableStatusCard \| null) => void` | `undefined` | Called when the active summary card changes, so you can keep it in the URL. |
738
715
  | `embeddedBankName` | `string` | `undefined` | Sponsor bank name shown as "Powered by {embeddedBankName}" next to embedded accounts in the invoice payment-account picker. Omitted when unset. |
739
- | `tabLabels` | `Partial<InvoicingTabLabels>` | English labels | Tab names, the invoice settings button and Create recurring invoice. |
716
+ | `tabLabels` | `Partial<InvoicingTabLabels>` | English labels | Tab names and the invoice settings button. |
740
717
  | `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Create invoice, table, empty, error and status badge copy. |
718
+ | `seriesScreenLabels` | `RecurringSeriesScreenLabelOverrides` | English labels | Recurring tab copy: Create recurring invoice, the series table, Search series, and the empty, error and access-restricted states. |
741
719
  | `filterBarLabels` | `InvoicesFilterBarLabelOverrides` | English labels | Invoice filter bar copy: field names, search, amount bounds, the customer panel and Clear all. |
742
720
  | `filterLabels` | `InvoicesFilterLabelOverrides` | English labels | Invoice filter copy built from state: date presets, status descriptions and chip wording. |
743
721
  | `formLabels` | `Partial<ReceivableFormDialogLabels>` | English labels | Create/edit form copy, including the unsaved-changes prompt; the save and issue buttons are in `messageLabels`. |
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, CSSProperties } from 'react';
3
3
  import { PartialDeep } from 'type-fest';
4
- import { RowData } from '@tanstack/react-table';
5
4
  import { FallbackProps } from 'react-error-boundary';
6
5
 
7
6
  type AuthToken = string | undefined;
@@ -333,16 +332,6 @@ type EmbeddedClient = Client;
333
332
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
334
333
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
335
334
 
336
- declare module '@tanstack/react-table' {
337
- interface ColumnMeta<TData extends RowData, TValue> {
338
- /**
339
- * Shrinks the column to its content on one line, leaving the table's
340
- * spare width to the columns without it: dates, statuses and amounts.
341
- */
342
- fitContent?: boolean;
343
- }
344
- }
345
-
346
335
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
347
336
  children?: ReactNode;
348
337
  };
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, CSSProperties } from 'react';
3
- import { RowData } from '@tanstack/react-table';
4
3
  import { FallbackProps } from 'react-error-boundary';
5
4
 
6
5
  type AuthToken = string | undefined;
@@ -332,16 +331,6 @@ type EmbeddedClient = Client;
332
331
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
333
332
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
334
333
 
335
- declare module '@tanstack/react-table' {
336
- interface ColumnMeta<TData extends RowData, TValue> {
337
- /**
338
- * Shrinks the column to its content on one line, leaving the table's
339
- * spare width to the columns without it: dates, statuses and amounts.
340
- */
341
- fitContent?: boolean;
342
- }
343
- }
344
-
345
334
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
346
335
  children?: ReactNode;
347
336
  };
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
3
- import { RowData } from '@tanstack/react-table';
4
3
  import { FallbackProps } from 'react-error-boundary';
5
4
 
6
5
  type AuthToken = string | undefined;
@@ -332,16 +331,6 @@ type EmbeddedClient = Client;
332
331
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
333
332
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
334
333
 
335
- declare module '@tanstack/react-table' {
336
- interface ColumnMeta<TData extends RowData, TValue> {
337
- /**
338
- * Shrinks the column to its content on one line, leaving the table's
339
- * spare width to the columns without it: dates, statuses and amounts.
340
- */
341
- fitContent?: boolean;
342
- }
343
- }
344
-
345
334
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
346
335
  children?: ReactNode;
347
336
  };
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, CSSProperties } from 'react';
3
3
  import { PartialDeep } from 'type-fest';
4
- import { RowData } from '@tanstack/react-table';
5
4
  import { FallbackProps } from 'react-error-boundary';
6
5
 
7
6
  type AuthToken = string | undefined;
@@ -333,16 +332,6 @@ type EmbeddedClient = Client;
333
332
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
334
333
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
335
334
 
336
- declare module '@tanstack/react-table' {
337
- interface ColumnMeta<TData extends RowData, TValue> {
338
- /**
339
- * Shrinks the column to its content on one line, leaving the table's
340
- * spare width to the columns without it: dates, statuses and amounts.
341
- */
342
- fitContent?: boolean;
343
- }
344
- }
345
-
346
335
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
347
336
  children?: ReactNode;
348
337
  };
@@ -1220,7 +1220,33 @@ type EmbeddedBankingBankRequirementsCogentBank20260101Output = {
1220
1220
  * Answers to the questions a bank asks beyond the core application, under the version of the bank's
1221
1221
  * requirements named in `requirementsVersion`.
1222
1222
  */
1223
- type EmbeddedBankingBankRequirementsOutput = EmbeddedBankingBankRequirementsCogentBank20260101Output;
1223
+ type EmbeddedBankingBankRequirementsOutput = ({
1224
+ requirementsVersion: 'cogent-bank@2026-01-01';
1225
+ } & EmbeddedBankingBankRequirementsCogentBank20260101Output) | ({
1226
+ requirementsVersion: 'test-mt-bank@2026-01-01';
1227
+ } & EmbeddedBankingBankRequirementsTestMtBank20260101Output) | ({
1228
+ requirementsVersion: 'test-mt-bank@2026-04-01';
1229
+ } & EmbeddedBankingBankRequirementsTestMtBank20260401Output) | ({
1230
+ requirementsVersion: 'test-mt-bank@2099-01-01';
1231
+ } & EmbeddedBankingBankRequirementsTestMtBank20990101Output);
1232
+ /**
1233
+ * Application requirements of Test M&amp;T Bank, version 2026-01-01.
1234
+ */
1235
+ type EmbeddedBankingBankRequirementsTestMtBank20260101Output = {
1236
+ requirementsVersion: 'test-mt-bank@2026-01-01';
1237
+ };
1238
+ /**
1239
+ * Application requirements of Test M&amp;T Bank, version 2026-04-01.
1240
+ */
1241
+ type EmbeddedBankingBankRequirementsTestMtBank20260401Output = {
1242
+ requirementsVersion: 'test-mt-bank@2026-04-01';
1243
+ };
1244
+ /**
1245
+ * Application requirements of Test M&amp;T Bank, version 2099-01-01.
1246
+ */
1247
+ type EmbeddedBankingBankRequirementsTestMtBank20990101Output = {
1248
+ requirementsVersion: 'test-mt-bank@2099-01-01';
1249
+ };
1224
1250
  /**
1225
1251
  * Business entity details of an organization.
1226
1252
  */