@tesouro/embedded-components-react 0.5.263 → 0.5.266

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.
package/README.md CHANGED
@@ -501,38 +501,38 @@ Manages an organization's products and services: a filterable, sortable table wi
501
501
 
502
502
  ### ReceivablesWidget
503
503
 
504
- Lists, creates, edits and acts on an organization's invoices, quotes and credit notes, including sending by email and recording payments. It's the in-progress native replacement for `InvoicingWidget`.
504
+ Lists, creates, edits and acts on an organization's invoices, including sending by email and recording payments. It's the in-progress native replacement for `InvoicingWidget`.
505
505
 
506
506
  #### Props
507
507
 
508
- | Prop | Type | Default | Description |
509
- | -------------------------- | ---------------------------------------------------- | ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
510
- | `defaultTab` | `ReceivablesWidgetTab` | `'invoices'` | Initial tab; if omitted or disabled, the widget starts on the first enabled tab. |
511
- | `enabledTabs` | `ReceivablesWidgetTab[]` | `['invoices', 'quotes', 'credit_notes']` | Tabs visible to the user. Duplicate or unknown values are ignored. |
512
- | `initialView` | `'create'` | `undefined` | Opens the create-invoice form once on mount, when the user can create invoices. Closing it does not reopen it. |
513
- | `initialCounterpartId` | `string` | `undefined` | With `initialView: 'create'`, preselects this customer in that first create form only. Otherwise, opens the invoice list filtered to this customer, with a chip naming them. Clear all removes it. |
514
- | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads with a page size of `10`. |
515
- | `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create or clone succeeds. |
516
- | `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row's details panel. |
517
- | `onTemplateSettingsClick` | `() => void` | `undefined` | Shows a template settings action in the header and calls this handler when clicked. |
518
- | `embeddedBankName` | `string` | `undefined` | Sponsor bank name shown as "Powered by {embeddedBankName}" next to embedded accounts in the invoice payment-account picker. Omitted when unset. |
519
- | `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Table, tab, filter, empty, error, action and status badge copy. |
520
- | `filterBarLabels` | `InvoicesFilterBarLabelOverrides` | English labels | Invoice filter bar copy: field names, search, amount bounds, the customer panel and Clear all. |
521
- | `filterLabels` | `InvoicesFilterLabelOverrides` | English labels | Invoice filter copy built from state: date presets, status descriptions and chip wording. |
522
- | `formLabels` | `Partial<ReceivableFormDialogLabels>` | English labels | Create/edit form copy, including the unsaved-changes prompt; the save and issue buttons are in `messageLabels`. |
523
- | `previewLabels` | `Partial<ReceivablePreviewLabels>` | English labels | Copy of the live invoice preview beside the create/edit form. |
524
- | `detailsLabels` | `ReceivableDetailsPanelLabelOverrides` | English labels | Details panel copy. Status badge copy comes from `screenLabels.statusBadge`. |
525
- | `auditHistoryLabels` | `Partial<ReceivableAuditHistoryLabels>` | English labels | Audit history row copy. Document and status names follow `messageLabels` and `screenLabels.statusBadge` unless overridden here. |
526
- | `sendLabels` | `Partial<ReceivableSendDialogLabels>` | English labels | Send-email dialog copy. |
527
- | `paymentLabels` | `Partial<ReceivablePaymentDialogLabels>` | English labels | Manual payment dialog copy. |
528
- | `actionLabels` | `Partial<ReceivableActionDialogLabels>` | English labels | Confirmation dialog buttons; per-action titles come from `messageLabels`. |
529
- | `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`. |
530
- | `counterpartFormLabels` | `PartialDeep<CounterpartFormSheetLabels>` | English labels | Inline customer creation copy. |
531
- | `measureUnitsLabels` | `Partial<MeasureUnitsManagerLabels>` | English labels | Measure-unit manager copy. |
532
- | `measureUnitDeleteLabels` | `Partial<MeasureUnitDeleteDialogLabels>` | English labels | Measure-unit delete confirmation copy. |
533
- | `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. |
534
- | `productMessageLabels` | `Partial<ProductMessageLabels>` | English labels | Product validation and error messages. |
535
- | `counterpartMessageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Customer validation and error messages. |
508
+ | Prop | Type | Default | Description |
509
+ | -------------------------- | ---------------------------------------------------- | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
510
+ | `initialView` | `'create'` | `undefined` | Opens the create-invoice form once on mount, when the user can create invoices. Closing it does not reopen it. |
511
+ | `initialCounterpartId` | `string` | `undefined` | With `initialView: 'create'`, preselects this customer in that first create form only. Otherwise, opens the invoice list filtered to this customer, with a chip naming them. Clear all removes it. |
512
+ | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads with a page size of `10`. |
513
+ | `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create or clone succeeds. |
514
+ | `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row's details panel. |
515
+ | `onTemplateSettingsClick` | `() => void` | `undefined` | Shows the invoice settings button in the header, for users holding `organization_settings:write:org`, and calls this when it is clicked. |
516
+ | `headerStart` | `ReactNode` | `undefined` | Rendered at the start of the header row. The widget renders no heading of its own, so pass your page title here. |
517
+ | `bankAttribution` | `ReceivableBankAttribution` | `undefined` | `{ logoSrc, logoAlt }` for the sponsor bank. Shows "Business Banking provided by" and the logo under `headerStart`. |
518
+ | `embeddedBankName` | `string` | `undefined` | Sponsor bank name shown as "Powered by {embeddedBankName}" next to embedded accounts in the invoice payment-account picker. Omitted when unset. |
519
+ | `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Header, table, empty, error and status badge copy. |
520
+ | `filterBarLabels` | `InvoicesFilterBarLabelOverrides` | English labels | Invoice filter bar copy: field names, search, amount bounds, the customer panel and Clear all. |
521
+ | `filterLabels` | `InvoicesFilterLabelOverrides` | English labels | Invoice filter copy built from state: date presets, status descriptions and chip wording. |
522
+ | `formLabels` | `Partial<ReceivableFormDialogLabels>` | English labels | Create/edit form copy, including the unsaved-changes prompt; the save and issue buttons are in `messageLabels`. |
523
+ | `previewLabels` | `Partial<ReceivablePreviewLabels>` | English labels | Copy of the live invoice preview beside the create/edit form. |
524
+ | `detailsLabels` | `ReceivableDetailsPanelLabelOverrides` | English labels | Details panel copy. Status badge copy comes from `screenLabels.statusBadge`. |
525
+ | `auditHistoryLabels` | `Partial<ReceivableAuditHistoryLabels>` | English labels | Audit history row copy. Document and status names follow `messageLabels` and `screenLabels.statusBadge` unless overridden here. |
526
+ | `sendLabels` | `Partial<ReceivableSendDialogLabels>` | English labels | Send-email dialog copy. |
527
+ | `paymentLabels` | `Partial<ReceivablePaymentDialogLabels>` | English labels | Manual payment dialog copy. |
528
+ | `actionLabels` | `Partial<ReceivableActionDialogLabels>` | English labels | Confirmation dialog buttons; per-action titles come from `messageLabels`. |
529
+ | `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`. |
530
+ | `counterpartFormLabels` | `PartialDeep<CounterpartFormSheetLabels>` | English labels | Inline customer creation copy. |
531
+ | `measureUnitsLabels` | `Partial<MeasureUnitsManagerLabels>` | English labels | Measure-unit manager copy. |
532
+ | `measureUnitDeleteLabels` | `Partial<MeasureUnitDeleteDialogLabels>` | English labels | Measure-unit delete confirmation copy. |
533
+ | `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. |
534
+ | `productMessageLabels` | `Partial<ProductMessageLabels>` | English labels | Product validation and error messages. |
535
+ | `counterpartMessageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Customer validation and error messages. |
536
536
 
537
537
  ### SettingsWidget
538
538
 
package/dist/index.d.ts CHANGED
@@ -5113,49 +5113,31 @@ interface ReceivableStatusBadgeLabels {
5113
5113
  unknown: string;
5114
5114
  }
5115
5115
  interface ReceivablesScreenLabels {
5116
- createButton: string;
5117
- templateSettingsButton: string;
5118
- searchPlaceholder: string;
5119
- statusFilterAll: string;
5116
+ createInvoiceButton: string;
5117
+ /** The settings button's accessible name and tooltip. */
5118
+ settingsButton: string;
5119
+ bankAttributionPrefix: string;
5120
5120
  statusCardsAll: string;
5121
- tabInvoices: string;
5122
- tabQuotes: string;
5123
- tabCreditNotes: string;
5124
- columnDocument: string;
5125
- columnCustomer: string;
5121
+ columnDueDate: string;
5126
5122
  columnStatus: string;
5123
+ columnNumber: string;
5124
+ columnCustomer: string;
5127
5125
  columnIssueDate: string;
5128
- columnDueDate: string;
5129
- columnTotal: string;
5130
- columnAmountDue: string;
5131
- columnActions: string;
5126
+ columnAmount: string;
5132
5127
  /**
5133
5128
  * A focused row's accessible name. The row itself is the control that
5134
5129
  * opens it, so the name says what Enter does. A template so locales own the
5135
5130
  * wording and order.
5136
5131
  */
5137
5132
  openRow: (documentLabel: string) => string;
5138
- sortByDocument: string;
5133
+ sortByDueDate: string;
5139
5134
  sortByStatus: string;
5135
+ sortByNumber: string;
5140
5136
  sortByIssueDate: string;
5141
- sortByDueDate: string;
5142
- sortByTotal: string;
5143
- actionEdit: string;
5144
- actionIssue: string;
5145
- actionSend: string;
5146
- actionRecordPayment: string;
5147
- actionMarkPaid: string;
5148
- actionMarkUncollectible: string;
5149
- actionAccept: string;
5150
- actionDecline: string;
5151
- actionCancel: string;
5152
- actionClone: string;
5153
- actionDelete: string;
5137
+ sortByAmount: string;
5154
5138
  emptyTitle: string;
5155
5139
  emptyDescription: string;
5156
- emptyAction: string;
5157
5140
  filterEmptyTitle: string;
5158
- filterEmptyDescription: string;
5159
5141
  errorTitle: string;
5160
5142
  errorDescription: string;
5161
5143
  errorRetry: string;
@@ -5358,7 +5340,11 @@ interface ReceivableActionDialogLabels {
5358
5340
  }
5359
5341
 
5360
5342
  type ReceivableDocumentType = ReceivableDocumentKind;
5361
- type ReceivablesWidgetTab = 'invoices' | 'quotes' | 'credit_notes';
5343
+ /** The sponsor bank's logo, shown after "Business Banking provided by" under the header. */
5344
+ interface ReceivableBankAttribution {
5345
+ logoSrc: string;
5346
+ logoAlt: string;
5347
+ }
5362
5348
 
5363
5349
  interface ReceivablePreviewLabels {
5364
5350
  title: string;
@@ -5460,6 +5446,8 @@ interface ReceivableMessageLabels {
5460
5446
  bankAccountCreated: string;
5461
5447
  bankAccountCreateFailed: string;
5462
5448
  untitledDocument: string;
5449
+ /** Shown in an invoice row's number and date cells while they have no value. */
5450
+ pendingValue: string;
5463
5451
  unknownCustomer: string;
5464
5452
  notAvailable: string;
5465
5453
  invoiceType: string;
@@ -5727,16 +5715,19 @@ interface ReceivableMessageLabels {
5727
5715
  }
5728
5716
 
5729
5717
  interface ReceivablesWidgetOwnProps {
5730
- defaultTab?: ReceivablesWidgetTab;
5731
5718
  /** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
5732
5719
  embeddedBankName?: string;
5733
- enabledTabs?: ReceivablesWidgetTab[];
5720
+ /** Rendered at the start of the header row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
5721
+ headerStart?: ReactNode;
5722
+ /** Shows "Business Banking provided by" and the sponsor bank's logo under `headerStart`. */
5723
+ bankAttribution?: ReceivableBankAttribution;
5734
5724
  initialView?: 'create';
5735
5725
  /** Preselects this customer in the create form with `initialView: 'create'`; otherwise filters the invoice list to them. */
5736
5726
  initialCounterpartId?: string;
5737
5727
  pageSizeOptions?: number[];
5738
5728
  onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
5739
5729
  onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
5730
+ /** Shows an invoice settings button in the header for users holding `organization_settings:write:org`. */
5740
5731
  onTemplateSettingsClick?: () => void;
5741
5732
  screenLabels?: ReceivablesScreenLabelOverrides;
5742
5733
  filterBarLabels?: InvoicesFilterBarLabelOverrides;
@@ -6113,4 +6104,4 @@ interface CheckAmountAndDetailScreenProps {
6113
6104
  type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
6114
6105
 
6115
6106
  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 };
6116
- 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, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, 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, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, 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 };
6107
+ 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, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, 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, ReceivableAuditHistoryLabels, ReceivableBankAttribution, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, 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 };
@@ -1052,49 +1052,31 @@ interface ReceivableStatusBadgeLabels {
1052
1052
  unknown: string;
1053
1053
  }
1054
1054
  interface ReceivablesScreenLabels {
1055
- createButton: string;
1056
- templateSettingsButton: string;
1057
- searchPlaceholder: string;
1058
- statusFilterAll: string;
1055
+ createInvoiceButton: string;
1056
+ /** The settings button's accessible name and tooltip. */
1057
+ settingsButton: string;
1058
+ bankAttributionPrefix: string;
1059
1059
  statusCardsAll: string;
1060
- tabInvoices: string;
1061
- tabQuotes: string;
1062
- tabCreditNotes: string;
1063
- columnDocument: string;
1064
- columnCustomer: string;
1060
+ columnDueDate: string;
1065
1061
  columnStatus: string;
1062
+ columnNumber: string;
1063
+ columnCustomer: string;
1066
1064
  columnIssueDate: string;
1067
- columnDueDate: string;
1068
- columnTotal: string;
1069
- columnAmountDue: string;
1070
- columnActions: string;
1065
+ columnAmount: string;
1071
1066
  /**
1072
1067
  * A focused row's accessible name. The row itself is the control that
1073
1068
  * opens it, so the name says what Enter does. A template so locales own the
1074
1069
  * wording and order.
1075
1070
  */
1076
1071
  openRow: (documentLabel: string) => string;
1077
- sortByDocument: string;
1072
+ sortByDueDate: string;
1078
1073
  sortByStatus: string;
1074
+ sortByNumber: string;
1079
1075
  sortByIssueDate: string;
1080
- sortByDueDate: string;
1081
- sortByTotal: string;
1082
- actionEdit: string;
1083
- actionIssue: string;
1084
- actionSend: string;
1085
- actionRecordPayment: string;
1086
- actionMarkPaid: string;
1087
- actionMarkUncollectible: string;
1088
- actionAccept: string;
1089
- actionDecline: string;
1090
- actionCancel: string;
1091
- actionClone: string;
1092
- actionDelete: string;
1076
+ sortByAmount: string;
1093
1077
  emptyTitle: string;
1094
1078
  emptyDescription: string;
1095
- emptyAction: string;
1096
1079
  filterEmptyTitle: string;
1097
- filterEmptyDescription: string;
1098
1080
  errorTitle: string;
1099
1081
  errorDescription: string;
1100
1082
  errorRetry: string;
@@ -1297,7 +1279,11 @@ interface ReceivableActionDialogLabels {
1297
1279
  }
1298
1280
 
1299
1281
  type ReceivableDocumentType = ReceivableDocumentKind;
1300
- type ReceivablesWidgetTab = 'invoices' | 'quotes' | 'credit_notes';
1282
+ /** The sponsor bank's logo, shown after "Business Banking provided by" under the header. */
1283
+ interface ReceivableBankAttribution {
1284
+ logoSrc: string;
1285
+ logoAlt: string;
1286
+ }
1301
1287
 
1302
1288
  interface ReceivablePreviewLabels {
1303
1289
  title: string;
@@ -1399,6 +1385,8 @@ interface ReceivableMessageLabels {
1399
1385
  bankAccountCreated: string;
1400
1386
  bankAccountCreateFailed: string;
1401
1387
  untitledDocument: string;
1388
+ /** Shown in an invoice row's number and date cells while they have no value. */
1389
+ pendingValue: string;
1402
1390
  unknownCustomer: string;
1403
1391
  notAvailable: string;
1404
1392
  invoiceType: string;
@@ -1666,16 +1654,19 @@ interface ReceivableMessageLabels {
1666
1654
  }
1667
1655
 
1668
1656
  interface ReceivablesWidgetOwnProps {
1669
- defaultTab?: ReceivablesWidgetTab;
1670
1657
  /** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
1671
1658
  embeddedBankName?: string;
1672
- enabledTabs?: ReceivablesWidgetTab[];
1659
+ /** Rendered at the start of the header row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
1660
+ headerStart?: ReactNode;
1661
+ /** Shows "Business Banking provided by" and the sponsor bank's logo under `headerStart`. */
1662
+ bankAttribution?: ReceivableBankAttribution;
1673
1663
  initialView?: 'create';
1674
1664
  /** Preselects this customer in the create form with `initialView: 'create'`; otherwise filters the invoice list to them. */
1675
1665
  initialCounterpartId?: string;
1676
1666
  pageSizeOptions?: number[];
1677
1667
  onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
1678
1668
  onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
1669
+ /** Shows an invoice settings button in the header for users holding `organization_settings:write:org`. */
1679
1670
  onTemplateSettingsClick?: () => void;
1680
1671
  screenLabels?: ReceivablesScreenLabelOverrides;
1681
1672
  filterBarLabels?: InvoicesFilterBarLabelOverrides;
@@ -1701,4 +1692,4 @@ type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
1701
1692
  declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
1702
1693
 
1703
1694
  export { ReceivablesWidget };
1704
- export type { CounterpartFormSheetLabels, CounterpartMessageLabels, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab };
1695
+ export type { CounterpartFormSheetLabels, CounterpartMessageLabels, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableBankAttribution, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps };
@@ -37,18 +37,16 @@ import { useReceivablesWidget as w } from "./useReceivablesWidget.js";
37
37
  import { useEffect as T, useId as E } from "react";
38
38
  import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
39
39
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js
40
- function A({ auditHistoryLabels: i, counterpartFormLabels: c, counterpartMessageLabels: A, defaultTab: j, detailsLabels: M, embeddedBankName: N, enabledTabs: P, filterBarLabels: F, filterLabels: I, formLabels: L, initialCounterpartId: ie, initialView: R, measureUnitDeleteLabels: z, measureUnitsLabels: B, messageLabels: V, onReceivableCreated: H, onReceivableOpened: U, onTemplateSettingsClick: W, pageSizeOptions: G = l, paymentLabels: K, previewLabels: q, productMessageLabels: J, screenLabels: Y, sendLabels: ae, actionLabels: oe, actionsModalLabels: se }) {
40
+ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A, counterpartMessageLabels: j, detailsLabels: M, embeddedBankName: N, filterBarLabels: P, filterLabels: F, formLabels: I, headerStart: L, initialCounterpartId: ie, initialView: R, measureUnitDeleteLabels: z, measureUnitsLabels: B, messageLabels: V, onReceivableCreated: H, onReceivableOpened: U, onTemplateSettingsClick: W, pageSizeOptions: G = l, paymentLabels: K, previewLabels: q, productMessageLabels: J, screenLabels: Y, sendLabels: ae, actionLabels: oe, actionsModalLabels: se }) {
41
41
  let X = r();
42
42
  T(() => {
43
43
  X(s.Mounted);
44
44
  }, [X]);
45
45
  let Z = w({
46
46
  auditHistoryLabels: i,
47
- counterpartMessageLabels: A,
48
- defaultTab: j,
47
+ counterpartMessageLabels: j,
49
48
  embeddedBankName: N,
50
- enabledTabs: P,
51
- filterLabels: I,
49
+ filterLabels: F,
52
50
  initialCounterpartId: ie,
53
51
  initialView: R,
54
52
  messageLabels: V,
@@ -60,9 +58,6 @@ function A({ auditHistoryLabels: i, counterpartFormLabels: c, counterpartMessage
60
58
  /* @__PURE__ */ O(n, {}),
61
59
  /* @__PURE__ */ O(te, {
62
60
  rows: Z.table.rows,
63
- activeTab: Z.activeTab,
64
- enabledTabs: Z.enabledTabs,
65
- onTabChange: Z.setActiveTab,
66
61
  isLoading: Z.isTableLoading,
67
62
  isError: Z.isError,
68
63
  isAccessRestricted: Z.isAccessRestricted,
@@ -75,22 +70,18 @@ function A({ auditHistoryLabels: i, counterpartFormLabels: c, counterpartMessage
75
70
  hasPrevPage: Z.table.hasPrevPage,
76
71
  onNextPage: Z.table.onNextPage,
77
72
  onPrevPage: Z.table.onPrevPage,
78
- searchValue: Z.table.searchValue,
79
- onSearchChange: Z.table.onSearchChange,
80
- statusFilter: Z.table.statusFilter,
81
- statusOptions: Z.table.statusOptions,
82
- onStatusFilterChange: Z.table.onStatusFilterChange,
83
73
  statusCards: Z.table.statusCards,
84
74
  onStatusCardSelect: Z.table.onStatusCardSelect,
85
- filterBar: Z.table.invoicesFilterBar && /* @__PURE__ */ O(u, {
86
- ...Z.table.invoicesFilterBar,
87
- labels: F
75
+ filterBar: /* @__PURE__ */ O(u, {
76
+ ...Z.table.filterBar,
77
+ labels: P
88
78
  }),
89
79
  isFiltering: Z.table.isFiltering,
80
+ headerStart: L,
81
+ bankAttribution: c,
90
82
  onCreateClick: Z.canWrite ? Z.openCreate : void 0,
91
- onTemplateSettingsClick: W,
83
+ onSettingsClick: Z.canEditSettings ? W : void 0,
92
84
  onRowClick: Z.handleRowClick,
93
- onActionClick: Z.canWrite ? Z.handleActionClick : void 0,
94
85
  onRetry: Z.onRetry,
95
86
  labels: Y
96
87
  }),
@@ -166,9 +157,9 @@ function A({ auditHistoryLabels: i, counterpartFormLabels: c, counterpartMessage
166
157
  onOpenChange: Z.form.recurrence.changeEmailOpen,
167
158
  onChange: Z.form.recurrence.changeEmail,
168
159
  onSave: Z.form.recurrence.saveEmail,
169
- labels: L
160
+ labels: I
170
161
  }),
171
- labels: L
162
+ labels: I
172
163
  })),
173
164
  remindersSection: Z.form.reminders.view && /* @__PURE__ */ O(x, {
174
165
  idPrefix: le,
@@ -182,9 +173,9 @@ function A({ auditHistoryLabels: i, counterpartFormLabels: c, counterpartMessage
182
173
  onOverdueAddTerm: Z.form.reminders.addOverdueTerm,
183
174
  onOverdueClear: Z.form.reminders.clearOverdueTerms,
184
175
  onOverdueSave: Z.form.reminders.saveOverdue,
185
- labels: L
176
+ labels: I
186
177
  }),
187
- labels: L
178
+ labels: I
188
179
  }),
189
180
  bankAccountSection: /* @__PURE__ */ O(p, {
190
181
  idPrefix: ce,
@@ -196,7 +187,7 @@ function A({ auditHistoryLabels: i, counterpartFormLabels: c, counterpartMessage
196
187
  onFormChange: Z.form.bankAccount.updateAccountForm,
197
188
  onFormSave: Z.form.bankAccount.saveAccount,
198
189
  onFormCancel: Z.form.bankAccount.cancelAddAccount,
199
- labels: L
190
+ labels: I
200
191
  }),
201
192
  attachmentsSection: Z.form.attachmentsView && /* @__PURE__ */ O(re, {
202
193
  view: Z.form.attachmentsView,
@@ -204,7 +195,7 @@ function A({ auditHistoryLabels: i, counterpartFormLabels: c, counterpartMessage
204
195
  onFilesSelect: Z.form.selectAttachmentFiles,
205
196
  onIncludeInEmailChange: Z.form.setAttachmentIncludeInEmail,
206
197
  onRemove: Z.form.removeAttachment,
207
- labels: L
198
+ labels: I
208
199
  }),
209
200
  preview: /* @__PURE__ */ O(v, {
210
201
  view: Z.form.preview,
@@ -222,11 +213,11 @@ function A({ auditHistoryLabels: i, counterpartFormLabels: c, counterpartMessage
222
213
  onSubmit: Z.form.submit,
223
214
  onDraftClick: Z.form.selectDraftMode,
224
215
  onPrimaryClick: Z.form.selectPrimaryMode,
225
- labels: L
216
+ labels: I
226
217
  }),
227
218
  /* @__PURE__ */ O(ne, {
228
219
  ...Z.form.unsavedPrompt,
229
- labels: L
220
+ labels: I
230
221
  }),
231
222
  /* @__PURE__ */ O(h, {
232
223
  open: Z.detailsOpen,
@@ -336,7 +327,7 @@ function A({ auditHistoryLabels: i, counterpartFormLabels: c, counterpartMessage
336
327
  })),
337
328
  onSubmit: Z.form.counterpartForm.submit,
338
329
  onCancel: Z.form.counterpartForm.close,
339
- labels: c
330
+ labels: A
340
331
  }),
341
332
  /* @__PURE__ */ O(S, {
342
333
  open: Z.measureUnitsOpen,