@tesouro/embedded-components-react 0.11.188 → 0.11.190

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 (55) hide show
  1. package/README.md +12 -8
  2. package/dist/fixtures/index.d.ts +13 -46
  3. package/dist/index.css +3 -0
  4. package/dist/index.d.ts +18 -1
  5. package/dist/index.js +40 -39
  6. package/dist/lib/BankAccountsWidget.d.ts +2 -0
  7. package/dist/lib/BillPayWidget.d.ts +16 -1
  8. package/dist/lib/BillPayWidget.js +3 -1
  9. package/dist/lib/WidgetSuite.d.ts +2 -0
  10. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetContext.js +2 -2
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js +17 -14
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/formatters.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/labels.js +2 -0
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +9 -3
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +76 -58
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +4 -4
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +8 -8
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +180 -180
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +62 -62
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +32 -32
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +7 -7
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +20 -20
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +5 -5
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +16 -16
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +7 -7
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +3 -1
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +101 -58
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +19 -17
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +2 -0
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +169 -138
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +227 -204
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +208 -204
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +1 -0
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +10 -10
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +212 -212
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index9.js +9 -5
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +3 -1
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +43 -39
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +66 -64
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/index.js +1 -0
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index8.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +9 -9
  45. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +5 -5
  46. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +21 -21
  47. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +20 -20
  48. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +17 -17
  49. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +4 -4
  50. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  51. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +77 -77
  52. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +2 -2
  53. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +129 -122
  54. package/dist/packages/shared-ui-shadcn/dist/index.js +1 -1
  55. package/package.json +1 -1
package/README.md CHANGED
@@ -498,16 +498,20 @@ A bill pay widget with Tesouro widget auth and theming: a Bills tab for uploadin
498
498
 
499
499
  The right end of the tab row holds the active tab's main action: Add bill on Bills and Add vendor on Vendors. While the vendor list is empty, Add vendor shows only in its empty state.
500
500
 
501
+ Above the bills list, the Total unpaid, Overdue, Scheduled and Not submitted cards act as quick filters. Clicking one switches to All bills, narrows the list to the bills that card totals, shows that as a filter chip and selects the card. Clicking it again, removing the chip or Clear all deselects it, and only one card is selected at a time. Picking another view, such as Assigned to me, also deselects it. Pass `selectedSummaryCard` and `onSummaryCardChange` to keep the card in your URL, for example to link straight to overdue bills.
502
+
501
503
  #### Props
502
504
 
503
- | Prop | Type | Default | Description |
504
- | ------------------- | ----------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
505
- | `initialTab` | `'bills' \| 'vendors'` | `'bills'` | Tab to open on initial mount when `selectedTab` is omitted. |
506
- | `selectedTab` | `BillPayWidgetTabId` | `undefined` | The active tab: `'bills'` or `'vendors'`. Omit to let the widget track it, starting on `initialTab`. |
507
- | `onTabChange` | `(tab: BillPayWidgetTabId) => void` | `undefined` | Called when the active tab changes, from a tab click or a vendor's "View all" or "Add a bill" opening the Bills tab, so you can keep it in the URL. |
508
- | `initialView` | `'create'` | `undefined` | Opens the Bills tab's "Add a bill" dialog once on arrival, when the user can create bills. Closing it does not reopen it. Ignored when the widget opens on Vendors. |
509
- | `poweredByBankName` | `string` | `undefined` | Bank shown as "Powered by {bank}" next to the source account when paying a bill. Omit it to hide the badge. |
510
- | `onSettingsClick` | `() => void` | `undefined` | Opens your bill pay settings surface from a cog on the tab row, beside the active tab's add button. The cog renders only when this is supplied and the user's scopes reach that surface. |
505
+ | Prop | Type | Default | Description |
506
+ | --------------------- | ----------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
507
+ | `initialTab` | `'bills' \| 'vendors'` | `'bills'` | Tab to open on initial mount when `selectedTab` is omitted. |
508
+ | `selectedTab` | `BillPayWidgetTabId` | `undefined` | The active tab: `'bills'` or `'vendors'`. Omit to let the widget track it, starting on `initialTab`. |
509
+ | `onTabChange` | `(tab: BillPayWidgetTabId) => void` | `undefined` | Called when the active tab changes, from a tab click or a vendor's "View all" or "Add a bill" opening the Bills tab, so you can keep it in the URL. |
510
+ | `initialView` | `'create'` | `undefined` | Opens the Bills tab's "Add a bill" dialog once on arrival, when the user can create bills. Closing it does not reopen it. Ignored when the widget opens on Vendors. |
511
+ | `poweredByBankName` | `string` | `undefined` | Bank shown as "Powered by {bank}" next to the source account when paying a bill. Omit it to hide the badge. |
512
+ | `onSettingsClick` | `() => void` | `undefined` | Opens your bill pay settings surface from a cog on the tab row, beside the active tab's add button. The cog renders only when this is supplied and the user's scopes reach that surface. |
513
+ | `selectedSummaryCard` | `BillSummaryCard \| null` | `undefined` | The active summary card on the Bills tab: `'total_unpaid'`, `'overdue'`, `'scheduled'` or `'not_submitted'`, or `null` for none. Applied on mount and whenever it changes. Omit to let the widget track it, starting with none. |
514
+ | `onSummaryCardChange` | `(card: BillSummaryCard \| null) => void` | `undefined` | Called when the reader selects or deselects a summary card, so you can keep it in the URL. |
511
515
 
512
516
  ### CreditCardsWidget
513
517
 
@@ -396,10 +396,6 @@ type BankAccountSnapshot = {
396
396
  bank_name?: string | null;
397
397
  routing_number?: string | null;
398
398
  };
399
- /**
400
- * The status of a bank account.
401
- */
402
- type BankAccountStatus = 'ACTIVE' | 'CLOSED';
403
399
  /**
404
400
  * Direction of a bank account transaction.
405
401
  */
@@ -512,47 +508,6 @@ type BankAccountTransferStatusDto = 'PENDING' | 'COMPLETED' | 'FAILED' | 'RETURN
512
508
  * Type of bank account transfer operation.
513
509
  */
514
510
  type BankAccountTransferTypeDto = 'INTERNAL_TO_EXTERNAL' | 'EXTERNAL_TO_INTERNAL' | 'INTERNAL_TO_INTERNAL';
515
- /**
516
- * Response model for a bank account with balance information.
517
- */
518
- type BankAccountWithBalanceResponse = {
519
- /**
520
- * Unique identifier for the bank account.
521
- */
522
- id: string;
523
- /**
524
- * Masked account number.
525
- */
526
- accountNumber: string;
527
- /**
528
- * Current balance of the bank account in minor units (e.g. cents for USD).
529
- */
530
- balance: AmountOutput;
531
- /**
532
- * Reference identifier associated with the bank account.
533
- */
534
- bankAccountReference?: null | string;
535
- /**
536
- * The UTC timestamp when the bank account was created.
537
- */
538
- createdDateTime: string;
539
- /**
540
- * Registered legal or DBA name on the bank account.
541
- */
542
- nameOnAccount: string;
543
- /**
544
- * Nickname for the bank account.
545
- */
546
- nickname?: null | string;
547
- /**
548
- * Bank routing number.
549
- */
550
- routingNumber: string;
551
- /**
552
- * The status of the bank account.
553
- */
554
- status: BankAccountStatus;
555
- };
556
511
  /**
557
512
  * In invoice history, this object contains information about a credit note created for this invoice.
558
513
  * In quote history, it contains information about an invoice created from this quote.
@@ -4593,7 +4548,19 @@ declare const A_VELOCITY_CONTROL: VelocityControlResponse;
4593
4548
  * only the id, so the Funding account column is resolved by a *second* read, and
4594
4549
  * a fixture whose id did not match would render the em-dash and look like a bug.
4595
4550
  */
4596
- declare const A_BANK_ACCOUNT: BankAccountWithBalanceResponse;
4551
+ declare const A_BANK_ACCOUNT: {
4552
+ id: string;
4553
+ accountNumber: string;
4554
+ routingNumber: string;
4555
+ balance: {
4556
+ currencyCode: string;
4557
+ value: number;
4558
+ };
4559
+ nameOnAccount: string;
4560
+ nickname: string;
4561
+ status: "ACTIVE";
4562
+ createdDateTime: string;
4563
+ };
4597
4564
  /**
4598
4565
  * One transaction on {@link A_BANK_ACCOUNT}, as
4599
4566
  * `GET /bank-accounts/{id}/transactions` returns it.
package/dist/index.css CHANGED
@@ -5441,6 +5441,9 @@
5441
5441
  .ttw\:disabled\:pointer-events-none:disabled {
5442
5442
  pointer-events: none;
5443
5443
  }
5444
+ .ttw\:disabled\:cursor-default:disabled {
5445
+ cursor: default;
5446
+ }
5444
5447
  .ttw\:disabled\:cursor-not-allowed:disabled {
5445
5448
  cursor: not-allowed;
5446
5449
  }
package/dist/index.d.ts CHANGED
@@ -2652,6 +2652,8 @@ interface Labels$3 {
2652
2652
 
2653
2653
  interface FeatureLabels$3 {
2654
2654
  accountFallback: string;
2655
+ pendingStatus: string;
2656
+ accountNumberUnavailable: string;
2655
2657
  createSuccessToast: string;
2656
2658
  editSuccessToast: string;
2657
2659
  /** Account-details export toast — forwarded to AccountDetailsWidget. */
@@ -6213,6 +6215,14 @@ type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps$1;
6213
6215
  */
6214
6216
  declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
6215
6217
 
6218
+ declare const BillSummaryCard: {
6219
+ readonly TotalUnpaid: "total_unpaid";
6220
+ readonly Overdue: "overdue";
6221
+ readonly Scheduled: "scheduled";
6222
+ readonly NotSubmitted: "not_submitted";
6223
+ };
6224
+ type BillSummaryCard = (typeof BillSummaryCard)[keyof typeof BillSummaryCard];
6225
+
6216
6226
  interface CounterpartsScreenLabels {
6217
6227
  /** Customer-mode create action. */
6218
6228
  createButton: string;
@@ -6400,6 +6410,13 @@ interface BillPayWidgetProps extends WidgetProviderProps {
6400
6410
  * reach it.
6401
6411
  */
6402
6412
  onSettingsClick?: () => void;
6413
+ /**
6414
+ * The active summary card on the Bills tab, or `null` for none. Applied on
6415
+ * mount and whenever it changes. Omit to let the widget track it.
6416
+ */
6417
+ selectedSummaryCard?: BillSummaryCard | null;
6418
+ /** Called when the reader selects or deselects a summary card, so you can keep it in the URL. */
6419
+ onSummaryCardChange?: (card: BillSummaryCard | null) => void;
6403
6420
  }
6404
6421
  declare const BillPayWidget: (props: BillPayWidgetProps) => ReactElement;
6405
6422
 
@@ -6664,5 +6681,5 @@ interface CheckAmountAndDetailScreenProps {
6664
6681
 
6665
6682
  type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
6666
6683
 
6667
- export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BANKING_COMPLIANCE_BANNER_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BankingComplianceBannerWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, InvoicingTab, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, OnboardingSuppressionReason, PERSONAL_DETAILS_LABELS_EN, RESULT_LABELS_EN, ReceivableStatusCard, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, THEME_TOKEN_NAMES, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, configureCsp, createTheme, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, themeIssues, themeToCss, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
6684
+ export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BANKING_COMPLIANCE_BANNER_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BankingComplianceBannerWidget, BillPayWidget, BillSummaryCard, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, InvoicingTab, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, OnboardingSuppressionReason, PERSONAL_DETAILS_LABELS_EN, RESULT_LABELS_EN, ReceivableStatusCard, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, THEME_TOKEN_NAMES, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, configureCsp, createTheme, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, themeIssues, themeToCss, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
6668
6685
  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, BankingComplianceBannerLabels, BankingComplianceBannerWidgetProps, BillPayWidgetProps, BillPayWidgetTabId, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CspConfig, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, InvoicingTabId, InvoicingTabLabels, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, OfferStatusLabelValues, OfferStatusNoticeLabels, OfferWidgetBenefit, OfferWidgetContent, OfferWidgetHowItWorksStep, OfferWidgetImage, OfferWidgetLabels, OfferWidgetProps, OfferWidgetStatusLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RecurringSeriesScreenLabelOverrides, RecurringSeriesScreenLabels, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, ThemeInput, ThemeIssue, ThemeTokenKey, ThemeTokenName, ThemeTokens, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteComplianceBannerLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
package/dist/index.js CHANGED
@@ -17,42 +17,43 @@ import { useWidgetToken as C } from "./libs/tesouro-embedded-components-react/sh
17
17
  import { RefreshingRootWidgetProvider as w } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RefreshingRootWidgetProvider.js";
18
18
  import { useDisclosuresAcceptanceSurface as T, useOwnWidgetConfig as E, useRefetchWidget as D, useWidgetConfig as O, useWidgetError as k, useWidgetInitStaleForToken as A, useWidgetLoading as j } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
19
19
  import { BankAccountsWidget as M } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js";
20
- import { BillPayWidget as N } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js";
21
- import { CardDetailsWidget as P } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js";
22
- import { CreditCardsWidget as F } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CreditCardsWidget.js";
23
- import { DebitCardsWidget as I } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/DebitCardsWidget.js";
24
- import { INSIGHTS_FEATURE_LABELS_EN as L } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/labels.js";
25
- import { INSIGHTS_WIDGET_LABELS_EN as R } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
26
- import { SINGLE_INSIGHT_LABELS_EN as z } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
27
- import { InsightsWidget as B } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
28
- import { ExpenseManagementWidget as V } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js";
29
- import { InvoicingTab as H } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js";
30
- import { ReceivableStatusCard as U } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js";
31
- import { ReceivablesWidget as W } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js";
32
- import { SettingsSection as G } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/sections.js";
33
- import { HELP_FAQ_EN as K } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
34
- import { SettingsWidget as q } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js";
35
- import { LinkedAccountsWidget as J } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js";
36
- import { DEFAULT_FEATURE_LABELS as Y } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/featureLabels.js";
37
- import { TRANSFERS_WIDGET_LABELS_EN as X } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
38
- import { TransfersWidget as Z } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js";
39
- import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as Q } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
40
- import { AcceptDisclosuresWidget as $ } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js";
41
- import { BANKING_COMPLIANCE_BANNER_LABELS_EN as ee } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index3.js";
42
- import { BankingComplianceBannerWidget as te } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js";
43
- import { ADDITIONAL_OWNERS_LABELS_EN as ne } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js";
44
- import { BUSINESS_DETAILS_LABELS_EN as re } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
45
- import { PERSONAL_DETAILS_LABELS_EN as ie } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js";
46
- import { RESULT_LABELS_EN as ae } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js";
47
- import { APPLICATION_STATUS_LABELS_EN as oe } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js";
48
- import { BankAccountOnboardingWidget as se } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
49
- import { WidgetSuite as ce } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js";
50
- import { CounterpartsWidget as le } from "./lib/CounterpartsWidgetPublic.js";
51
- import { BALANCES_WIDGET_LABELS_EN as ue } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
52
- import { BalancesWidget as de } from "./libs/tesouro-embedded-components-react/balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetFeature.js";
53
- import { OFFER_WIDGET_STATUS_LABELS_EN as fe } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/labels.js";
54
- import { OFFER_WIDGET_LABELS_EN as pe } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index2.js";
55
- import { OfferBenefitIcon as me } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index3.js";
56
- import { OfferWidget as he } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js";
57
- import { WidgetProvider as ge } from "./lib/WidgetProviderPublic.js";
58
- export { Q as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ne as ADDITIONAL_OWNERS_LABELS_EN, oe as APPLICATION_STATUS_LABELS_EN, $ as AcceptDisclosuresWidget, ue as BALANCES_WIDGET_LABELS_EN, ee as BANKING_COMPLIANCE_BANNER_LABELS_EN, re as BUSINESS_DETAILS_LABELS_EN, de as BalancesWidget, se as BankAccountOnboardingWidget, M as BankAccountsWidget, te as BankingComplianceBannerWidget, N as BillPayWidget, P as CardDetailsWidget, le as CounterpartsWidget, F as CreditCardsWidget, I as DebitCardsWidget, h as ERROR_STATE_ID, V as ExpenseManagementWidget, K as HELP_FAQ_EN, L as INSIGHTS_FEATURE_LABELS_EN, R as INSIGHTS_WIDGET_LABELS_EN, B as InsightsWidget, H as InvoicingTab, J as LinkedAccountsWidget, pe as OFFER_WIDGET_LABELS_EN, fe as OFFER_WIDGET_STATUS_LABELS_EN, me as OfferBenefitIcon, he as OfferWidget, d as OnboardingSuppressionReason, ie as PERSONAL_DETAILS_LABELS_EN, ae as RESULT_LABELS_EN, U as ReceivableStatusCard, W as ReceivablesWidget, w as RefreshingRootWidgetProvider, x as RootWidgetProvider, z as SINGLE_INSIGHT_LABELS_EN, l as Scope, G as SettingsSection, q as SettingsWidget, e as THEME_TOKEN_NAMES, Y as TRANSFERS_FEATURE_LABELS_EN, X as TRANSFERS_WIDGET_LABELS_EN, Z as TransfersWidget, f as UIFramework, o as WIDGET_SUITE_DEFAULT_SECTIONS, a as WIDGET_SUITE_LABELS_EN, ge as WidgetProvider, ce as WidgetSuite, s as WidgetSuiteSectionId, S as WidgetTokenRefreshProvider, c as cloneEmbeddedClient, i as configureCsp, t as createTheme, g as getGlobalWidgetConfig, y as getGlobalWidgetInitState, u as isScope, p as registerDesignSystemEnsurer, m as registerUIRenderers, _ as setGlobalWidgetConfig, b as subscribeToGlobalWidgetInitState, n as themeIssues, r as themeToCss, v as updateGlobalWidgetConfig, T as useDisclosuresAcceptanceSurface, E as useOwnWidgetConfig, D as useRefetchWidget, O as useWidgetConfig, k as useWidgetError, A as useWidgetInitStaleForToken, j as useWidgetLoading, C as useWidgetToken };
20
+ import { BillSummaryCard as N } from "./libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js";
21
+ import { BillPayWidget as P } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js";
22
+ import { CardDetailsWidget as F } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js";
23
+ import { CreditCardsWidget as I } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CreditCardsWidget.js";
24
+ import { DebitCardsWidget as L } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/DebitCardsWidget.js";
25
+ import { INSIGHTS_FEATURE_LABELS_EN as R } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/labels.js";
26
+ import { INSIGHTS_WIDGET_LABELS_EN as z } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
27
+ import { SINGLE_INSIGHT_LABELS_EN as B } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
28
+ import { InsightsWidget as V } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
29
+ import { ExpenseManagementWidget as H } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js";
30
+ import { InvoicingTab as U } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js";
31
+ import { ReceivableStatusCard as W } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js";
32
+ import { ReceivablesWidget as G } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js";
33
+ import { SettingsSection as K } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/sections.js";
34
+ import { HELP_FAQ_EN as q } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
35
+ import { SettingsWidget as J } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js";
36
+ import { LinkedAccountsWidget as Y } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js";
37
+ import { DEFAULT_FEATURE_LABELS as X } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/featureLabels.js";
38
+ import { TRANSFERS_WIDGET_LABELS_EN as Z } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
39
+ import { TransfersWidget as Q } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js";
40
+ import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as $ } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
41
+ import { AcceptDisclosuresWidget as ee } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js";
42
+ import { BANKING_COMPLIANCE_BANNER_LABELS_EN as te } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index3.js";
43
+ import { BankingComplianceBannerWidget as ne } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js";
44
+ import { ADDITIONAL_OWNERS_LABELS_EN as re } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js";
45
+ import { BUSINESS_DETAILS_LABELS_EN as ie } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
46
+ import { PERSONAL_DETAILS_LABELS_EN as ae } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js";
47
+ import { RESULT_LABELS_EN as oe } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js";
48
+ import { APPLICATION_STATUS_LABELS_EN as se } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js";
49
+ import { BankAccountOnboardingWidget as ce } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
50
+ import { WidgetSuite as le } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js";
51
+ import { CounterpartsWidget as ue } from "./lib/CounterpartsWidgetPublic.js";
52
+ import { BALANCES_WIDGET_LABELS_EN as de } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
53
+ import { BalancesWidget as fe } from "./libs/tesouro-embedded-components-react/balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetFeature.js";
54
+ import { OFFER_WIDGET_STATUS_LABELS_EN as pe } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/labels.js";
55
+ import { OFFER_WIDGET_LABELS_EN as me } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index2.js";
56
+ import { OfferBenefitIcon as he } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index3.js";
57
+ import { OfferWidget as ge } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js";
58
+ import { WidgetProvider as _e } from "./lib/WidgetProviderPublic.js";
59
+ export { $ as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, re as ADDITIONAL_OWNERS_LABELS_EN, se as APPLICATION_STATUS_LABELS_EN, ee as AcceptDisclosuresWidget, de as BALANCES_WIDGET_LABELS_EN, te as BANKING_COMPLIANCE_BANNER_LABELS_EN, ie as BUSINESS_DETAILS_LABELS_EN, fe as BalancesWidget, ce as BankAccountOnboardingWidget, M as BankAccountsWidget, ne as BankingComplianceBannerWidget, P as BillPayWidget, N as BillSummaryCard, F as CardDetailsWidget, ue as CounterpartsWidget, I as CreditCardsWidget, L as DebitCardsWidget, h as ERROR_STATE_ID, H as ExpenseManagementWidget, q as HELP_FAQ_EN, R as INSIGHTS_FEATURE_LABELS_EN, z as INSIGHTS_WIDGET_LABELS_EN, V as InsightsWidget, U as InvoicingTab, Y as LinkedAccountsWidget, me as OFFER_WIDGET_LABELS_EN, pe as OFFER_WIDGET_STATUS_LABELS_EN, he as OfferBenefitIcon, ge as OfferWidget, d as OnboardingSuppressionReason, ae as PERSONAL_DETAILS_LABELS_EN, oe as RESULT_LABELS_EN, W as ReceivableStatusCard, G as ReceivablesWidget, w as RefreshingRootWidgetProvider, x as RootWidgetProvider, B as SINGLE_INSIGHT_LABELS_EN, l as Scope, K as SettingsSection, J as SettingsWidget, e as THEME_TOKEN_NAMES, X as TRANSFERS_FEATURE_LABELS_EN, Z as TRANSFERS_WIDGET_LABELS_EN, Q as TransfersWidget, f as UIFramework, o as WIDGET_SUITE_DEFAULT_SECTIONS, a as WIDGET_SUITE_LABELS_EN, _e as WidgetProvider, le as WidgetSuite, s as WidgetSuiteSectionId, S as WidgetTokenRefreshProvider, c as cloneEmbeddedClient, i as configureCsp, t as createTheme, g as getGlobalWidgetConfig, y as getGlobalWidgetInitState, u as isScope, p as registerDesignSystemEnsurer, m as registerUIRenderers, _ as setGlobalWidgetConfig, b as subscribeToGlobalWidgetInitState, n as themeIssues, r as themeToCss, v as updateGlobalWidgetConfig, T as useDisclosuresAcceptanceSurface, E as useOwnWidgetConfig, D as useRefetchWidget, O as useWidgetConfig, k as useWidgetError, A as useWidgetInitStaleForToken, j as useWidgetLoading, C as useWidgetToken };
@@ -719,6 +719,8 @@ interface Labels {
719
719
 
720
720
  interface FeatureLabels {
721
721
  accountFallback: string;
722
+ pendingStatus: string;
723
+ accountNumberUnavailable: string;
722
724
  createSuccessToast: string;
723
725
  editSuccessToast: string;
724
726
  /** Account-details export toast — forwarded to AccountDetailsWidget. */
@@ -595,6 +595,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
595
595
  providerLabels?: Partial<WidgetProviderLabels>;
596
596
  }
597
597
 
598
+ declare const BillSummaryCard: {
599
+ readonly TotalUnpaid: "total_unpaid";
600
+ readonly Overdue: "overdue";
601
+ readonly Scheduled: "scheduled";
602
+ readonly NotSubmitted: "not_submitted";
603
+ };
604
+ type BillSummaryCard = (typeof BillSummaryCard)[keyof typeof BillSummaryCard];
605
+
598
606
  declare const TabId: {
599
607
  readonly Bills: "bills";
600
608
  readonly Vendors: "vendors";
@@ -625,8 +633,15 @@ interface BillPayWidgetProps extends WidgetProviderProps {
625
633
  * reach it.
626
634
  */
627
635
  onSettingsClick?: () => void;
636
+ /**
637
+ * The active summary card on the Bills tab, or `null` for none. Applied on
638
+ * mount and whenever it changes. Omit to let the widget track it.
639
+ */
640
+ selectedSummaryCard?: BillSummaryCard | null;
641
+ /** Called when the reader selects or deselects a summary card, so you can keep it in the URL. */
642
+ onSummaryCardChange?: (card: BillSummaryCard | null) => void;
628
643
  }
629
644
  declare const BillPayWidget: (props: BillPayWidgetProps) => ReactElement;
630
645
 
631
- export { BillPayWidget };
646
+ export { BillPayWidget, BillSummaryCard };
632
647
  export type { BillPayWidgetProps, BillPayWidgetTabId };
@@ -1,2 +1,4 @@
1
- export { BillPayWidget } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js";
1
+ import { BillSummaryCard as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js";
2
+ import { BillPayWidget as t } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js";
2
3
  import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
4
+ export { t as BillPayWidget, e as BillSummaryCard };
@@ -1767,6 +1767,8 @@ interface Labels$3 {
1767
1767
 
1768
1768
  interface FeatureLabels$3 {
1769
1769
  accountFallback: string;
1770
+ pendingStatus: string;
1771
+ accountNumberUnavailable: string;
1770
1772
  createSuccessToast: string;
1771
1773
  editSuccessToast: string;
1772
1774
  /** Account-details export toast — forwarded to AccountDetailsWidget. */
@@ -50,7 +50,7 @@ function b({ labels: o, defaultRange: p = s.Days30, onTransferFromExternalClick:
50
50
  let [w, _e] = _(p), [T, ve] = _({}), { initResponse: E } = te(), ye = ie(), be = ne(), D = ee(), { organizationId: O, organizationStatus: k } = r(), A = k === t.Rotating, j = A && O == null, M = m((e) => ve((t) => ({
51
51
  organizationId: j ? t.organizationId : O,
52
52
  account: e || y
53
- })), [O, j]), xe = n(k), N = E?.scopes?.includes(i.BankAccountReadOrg) ?? !1, P = re(), F = N && !P, I = me({ enabled: F }), L = I.accounts, R = L?.length === 1 ? L[0].id : y, z = T.organizationId === O || j ? T.account ?? R : R, B = z === y ? void 0 : z, V = L?.find(({ id: e }) => e === B), H = ae() ?? u(/* @__PURE__ */ new Date()), U = g(() => {
53
+ })), [O, j]), xe = n(k), N = E?.scopes?.includes(i.BankAccountReadOrg) ?? !1, P = re(), F = N && !P, I = me({ enabled: F }), L = g(() => I.accounts?.filter((e) => e.status !== "PENDING"), [I.accounts]), R = L?.length === 1 ? L[0].id : y, z = T.organizationId === O || j ? T.account ?? R : R, B = z === y ? void 0 : z, V = L?.find(({ id: e }) => e === B), H = ae() ?? u(/* @__PURE__ */ new Date()), U = g(() => {
54
54
  let e = (V ? [V.createdDateTime] : (L ?? []).map(({ createdDateTime: e }) => e)).map((e) => u(new Date(e)));
55
55
  return e.length ? e.reduce((e, t) => e < t ? e : t) : void 0;
56
56
  }, [V, L]), W = U ? c({
@@ -79,7 +79,7 @@ function b({ labels: o, defaultRange: p = s.Days30, onTransferFromExternalClick:
79
79
  description: t(n)
80
80
  }, ...L.map((t) => ({
81
81
  value: t.id,
82
- label: S.accountOption(t.nickname || t.nameOnAccount, t.accountNumber.slice(-4)),
82
+ label: t.accountNumber ? S.accountOption(t.nickname || t.nameOnAccount, t.accountNumber.slice(-4)) : t.nickname || t.nameOnAccount,
83
83
  description: f(t.balance.currencyCode || "USD")(e(t.balance))
84
84
  }))];
85
85
  }, [L, S]), Z = g(() => K && U ? le({
@@ -41,12 +41,12 @@ var v = p({
41
41
  D,
42
42
  M
43
43
  ]), L = w?.data ?? [], R = g(() => L.map((t) => {
44
- let r = t.accountNumber.slice(-4), i = e(n(t.balance), t.balance?.currencyCode ?? "USD");
44
+ let r = t.accountNumber?.slice(-4), i = e(n(t.balance), t.balance?.currencyCode ?? "USD");
45
45
  return {
46
46
  accountId: t.id,
47
47
  view: {
48
48
  title: t.nickname ?? "",
49
- suffixLabel: `- ${r}`,
49
+ suffixLabel: r ? `- ${r}` : "",
50
50
  amountLabel: i.text
51
51
  },
52
52
  amount: i
@@ -2,21 +2,24 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { Button as e, Tooltip as t, TooltipContent as n, TooltipTrigger as r } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import { Button as e, Tooltip as t, TooltipContent as n, TooltipTrigger as r, cn as i } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
7
  // ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js
8
- function o({ label: o, onClick: s, children: c, className: l }) {
9
- return /* @__PURE__ */ a(t, { children: [/* @__PURE__ */ i(r, {
8
+ function s({ label: s, onClick: c, children: l, className: u, disabled: d, disabledDescription: f }) {
9
+ return /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ a(r, {
10
10
  asChild: !0,
11
- children: /* @__PURE__ */ i(e, {
12
- type: "button",
13
- variant: "ghost",
14
- size: "icon-sm",
15
- "aria-label": o,
16
- className: l,
17
- onClick: s,
18
- children: c
11
+ children: /* @__PURE__ */ a("span", {
12
+ className: i("ttw:inline-flex", u),
13
+ children: /* @__PURE__ */ a(e, {
14
+ type: "button",
15
+ variant: "ghost",
16
+ size: "icon-sm",
17
+ "aria-label": s,
18
+ onClick: c,
19
+ disabled: d,
20
+ children: l
21
+ })
19
22
  })
20
- }), /* @__PURE__ */ i(n, { children: o })] });
23
+ }), /* @__PURE__ */ a(n, { children: d ? f ?? s : s })] });
21
24
  }
22
- export { o as IconActionButton };
25
+ export { s as IconActionButton };
@@ -19,7 +19,7 @@ function n(e) {
19
19
  })).join(" + ");
20
20
  }
21
21
  function r(e) {
22
- return e.trim().slice(-4);
22
+ return e?.trim().slice(-4) ?? "";
23
23
  }
24
24
  async function i(e) {
25
25
  if (!e.trim()) return !1;
@@ -1,6 +1,8 @@
1
1
  // ../../libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/labels.js
2
2
  var e = {
3
3
  accountFallback: "Account",
4
+ pendingStatus: "Pending",
5
+ accountNumberUnavailable: "Not available",
4
6
  createSuccessToast: "Account created",
5
7
  editSuccessToast: "Account updated",
6
8
  exportLoadingToast: "Exporting transactions…",
@@ -110,10 +110,12 @@ function Oe({ labels: r, featureLabels: ae, isBankingTaglineVisible: a = !0, ban
110
110
  ...t,
111
111
  [e.id]: !t[e.id]
112
112
  })),
113
- onCopyAccountNumber: () => void Q(e.id, "account", e.accountNumber),
113
+ onCopyAccountNumber: () => {
114
+ e.accountNumber && Q(e.id, "account", e.accountNumber);
115
+ },
114
116
  onCopyRoutingNumber: () => void Q(e.id, "routing", e.routingNumber),
115
117
  onSelect: () => {
116
- O(e.id), f(i.AccountSelected, { accountId: e.id });
118
+ e.status !== "PENDING" && e.accountNumber && (O(e.id), f(i.AccountSelected, { accountId: e.id }));
117
119
  }
118
120
  })), [
119
121
  J,
@@ -198,7 +200,11 @@ function ke(e, t, n) {
198
200
  id: e.id,
199
201
  name: e.nickname?.trim() || t.accountFallback,
200
202
  balanceLabel: a(e.balance),
201
- accountNumberLabel: e.accountNumber,
203
+ statusLabel: e.status === "PENDING" ? t.pendingStatus : void 0,
204
+ statusTone: "warning",
205
+ isSelectionDisabled: e.status === "PENDING" || !e.accountNumber,
206
+ isAccountNumberUnavailable: !e.accountNumber,
207
+ accountNumberLabel: e.accountNumber ?? t.accountNumberUnavailable,
202
208
  accountNumberLast4: ae(e.accountNumber),
203
209
  routingNumberLabel: e.routingNumber,
204
210
  ...n