@tesouro/embedded-components-loader 0.11.305 → 0.11.308

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/dist/index.js CHANGED
@@ -57,7 +57,7 @@ function satisfiesRange(version, range) {
57
57
  }
58
58
  // src/loader.ts
59
59
  /** Baked at build time: installing loader 1.2.3 pins hosted 1.2.3. */
60
- var LOADER_VERSION = "0.11.305";
60
+ var LOADER_VERSION = "0.11.308";
61
61
  var DEFAULT_BASE_URL = "https://widgets.tesouro.com";
62
62
  /** Frozen forever: every future loader must read what every past one wrote. */
63
63
  var LOADED_VERSION_MARKER = Symbol.for("tesouro.embedded.loadedVersion");
@@ -2732,6 +2732,8 @@ interface DisclosureLinks {
2732
2732
  }
2733
2733
 
2734
2734
  interface AdditionalOwnersLabels {
2735
+ /** Accessible name of the owners table. */
2736
+ ownersTableLabel: string;
2735
2737
  heading: string;
2736
2738
  /** Why owners are asked for, under the heading. */
2737
2739
  subheading: string;
@@ -3466,6 +3468,8 @@ interface Labels$4 {
3466
3468
  bankingTaglinePrefix: string;
3467
3469
  availableBalanceLabel: string;
3468
3470
  availableBalanceTooltip: string;
3471
+ /** The available-balance help icon's accessible name. */
3472
+ availableBalanceInfoLabel: string;
3469
3473
  accountNumberLabel: string;
3470
3474
  routingNumberLabel: string;
3471
3475
  addAccountButton: string;
@@ -3494,6 +3498,8 @@ interface Labels$4 {
3494
3498
  teamMembersErrorTitle: string;
3495
3499
  teamMembersEmptyLabel: string;
3496
3500
  teamMemberAccessTooltip: string;
3501
+ /** A role's help icon's accessible name. Use `{role}` for the role name. */
3502
+ teamMemberRoleInfoLabel: string;
3497
3503
  accountNumberEndingIn: string;
3498
3504
  showAccountNumber: string;
3499
3505
  hideAccountNumber: string;
@@ -3507,10 +3513,16 @@ interface Labels$4 {
3507
3513
  }
3508
3514
 
3509
3515
  interface Labels$3 {
3516
+ /** Accessible name of the statements table. */
3517
+ statementsTableLabel: string;
3518
+ /** Accessible name of the transactions table. */
3519
+ transactionsTableLabel: string;
3510
3520
  backToAccounts: string;
3511
3521
  bankingTaglinePrefix: string;
3512
3522
  availableBalanceLabel: string;
3513
3523
  availableBalanceTooltip: string;
3524
+ /** The available-balance help icon's accessible name. */
3525
+ availableBalanceInfoLabel: string;
3514
3526
  transactionsTab: string;
3515
3527
  statementsTab: string;
3516
3528
  detailsTab: string;
@@ -3712,6 +3724,8 @@ interface CardsListDetailsSheetLabels {
3712
3724
  * wording change is not a breaking rename.
3713
3725
  */
3714
3726
  interface CardsListLabels {
3727
+ /** Accessible name of the cards table. */
3728
+ tableLabel: string;
3715
3729
  /**
3716
3730
  * Accessible name for the list region. Not a heading: the list renders none,
3717
3731
  * because whoever mounts it names it (embedded ADR 0010).
@@ -3767,6 +3781,8 @@ interface CardDetailsHeaderLabels {
3767
3781
  interface CardDetailsCardFaceLabels {
3768
3782
  /** Alt text for the bank logo when the caller supplies no `bankLogoAlt`. */
3769
3783
  bankLogoAlt: string;
3784
+ /** Spoken between the masked number's groups of four, e.g. `", "`. */
3785
+ cardNumberGroupSeparator: string;
3770
3786
  }
3771
3787
  /** Row headings and per-row copy affordance names for the details table. */
3772
3788
  interface CardDetailsFieldLabels {
@@ -3842,6 +3858,8 @@ interface CardDetailsLockLabels {
3842
3858
  */
3843
3859
  interface CardDetailsCredentialsLabels {
3844
3860
  cardNumber: string;
3861
+ /** Spoken between the revealed number's groups of four, e.g. `", "`. */
3862
+ cardNumberGroupSeparator: string;
3845
3863
  expirationDate: string;
3846
3864
  securityCode: string;
3847
3865
  copyCardNumberAriaLabel: string;
@@ -3882,6 +3900,8 @@ interface ActivateCardHeaderLabels {
3882
3900
  interface ActivateCardCardFaceLabels {
3883
3901
  /** Alt text for the bank logo when the caller supplies no `bankLogoAlt`. */
3884
3902
  bankLogoAlt: string;
3903
+ /** Spoken between the masked number's groups of four, e.g. `", "`. */
3904
+ cardNumberGroupSeparator: string;
3885
3905
  }
3886
3906
  /** Field headings, placeholders and the copy behind each affordance. */
3887
3907
  interface ActivateCardFieldLabels {
@@ -4533,6 +4553,8 @@ interface ActionItemsListLabels {
4533
4553
  }
4534
4554
 
4535
4555
  interface ExpensesTransactionsTableLabels {
4556
+ /** Accessible name of the expenses table. */
4557
+ tableLabel: string;
4536
4558
  loading: string;
4537
4559
  dateColumn: string;
4538
4560
  statusColumn: string;
@@ -4716,6 +4738,44 @@ interface UploadReceiptHandle {
4716
4738
  upload: (files: File[]) => void;
4717
4739
  }
4718
4740
 
4741
+ /**
4742
+ * Copy the container composes from API values before handing it to the UI —
4743
+ * the card line and the receipt trigger's wording. Everything the UI renders
4744
+ * on its own lives in that lib's own `labels.ts` files.
4745
+ */
4746
+ interface TransactionDetailsFeatureLabels {
4747
+ creditCard: string;
4748
+ debitCard: string;
4749
+ /** e.g. "Credit | ••••4242". */
4750
+ cardLabel: (cardType: string, last4: string) => string;
4751
+ /** Trigger label once a file is on the expense. */
4752
+ receiptAttached: string;
4753
+ /** Trigger label when the caller can attach one. */
4754
+ receiptAttach: string;
4755
+ /** Trigger label when they chose to submit with no file. */
4756
+ receiptSubmitWithout: string;
4757
+ /** Disabled trigger when the caller cannot attach one. */
4758
+ receiptMissing: string;
4759
+ /** Screen-reader announcement while a receipt uploads. */
4760
+ receiptUploading: string;
4761
+ /** Screen-reader announcement once a receipt is on the expense. */
4762
+ receiptUploaded: string;
4763
+ /** Shown as a toast and announced to screen readers. */
4764
+ receiptUploadFailed: string;
4765
+ receiptDeleteFailed: string;
4766
+ memoSaveFailed: string;
4767
+ accountingSaveFailed: string;
4768
+ /** Fixed card name. The payment method has no nickname of its own. */
4769
+ travelCard: string;
4770
+ glCategoryUncategorized: string;
4771
+ accountingNone: string;
4772
+ memoAiAssigned: string;
4773
+ /** Screen-reader announcements once the review footer changes the status. */
4774
+ expenseApproved: string;
4775
+ expenseRejected: string;
4776
+ expenseSubmitted: string;
4777
+ }
4778
+
4719
4779
  interface ExpenseManagementWidgetOwnProps {
4720
4780
  screenLabels?: Partial<Labels$2>;
4721
4781
  headerLabels?: Partial<ExpensesHeaderLabels>;
@@ -4728,6 +4788,11 @@ interface ExpenseManagementWidgetOwnProps {
4728
4788
  transactionDetailsCardLabels?: Partial<AccordionItemCardLabels>;
4729
4789
  transactionDetailsActionsLabels?: Partial<TransactionDetailsActionsLabels>;
4730
4790
  fileViewerLabels?: Partial<FileViewerLabels>;
4791
+ /**
4792
+ * Copy the review dialog composes from API values, plus the receipt upload
4793
+ * announcements and toast a row's "Add receipt" shows.
4794
+ */
4795
+ transactionDetailsFeatureLabels?: Partial<TransactionDetailsFeatureLabels>;
4731
4796
  /** Renders the "Upload receipts" entry point in the header's actions slot. */
4732
4797
  receiptUpload?: UploadReceiptWidgetProps;
4733
4798
  /**
@@ -5180,6 +5245,8 @@ interface ProductFormSheetLabels {
5180
5245
  requiredFieldsLegend: RequiredFieldsLegendLabels;
5181
5246
  }
5182
5247
  interface MeasureUnitsManagerLabels {
5248
+ /** Accessible name of the units table. */
5249
+ tableLabel: string;
5183
5250
  title: string;
5184
5251
  hiddenDescription: string;
5185
5252
  searchPlaceholder: string;
@@ -5398,6 +5465,8 @@ interface ReceivableStatusBadgeLabels {
5398
5465
  }
5399
5466
 
5400
5467
  interface ReceivablesScreenLabels {
5468
+ /** Accessible name of the invoices table. */
5469
+ tableLabel: string;
5401
5470
  createInvoiceButton: string;
5402
5471
  statusCardsGroup: string;
5403
5472
  statusCardsLoading: string;
@@ -5530,6 +5599,8 @@ interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, Rec
5530
5599
  /** @deprecated Use `ReceivableFormDialogLabels`. */
5531
5600
  type ReceivableFormSheetLabels = ReceivableFormDialogLabels;
5532
5601
  interface ReceivableDetailsPanelLabels {
5602
+ /** Accessible name of the line items table. */
5603
+ lineItemsTableLabel: string;
5533
5604
  loadingTitle: string;
5534
5605
  moreActionsLabel: string;
5535
5606
  viewPdfButton: string;
@@ -5656,6 +5727,8 @@ interface ReceivablePreviewLabels {
5656
5727
  }
5657
5728
 
5658
5729
  interface RecurringSeriesScreenLabels {
5730
+ /** Accessible name of the recurring series table. */
5731
+ tableLabel: string;
5659
5732
  createButton: string;
5660
5733
  columnCustomer: string;
5661
5734
  columnRepeats: string;
@@ -6466,6 +6539,8 @@ interface SettingsWidgetProps extends WidgetProviderProps {
6466
6539
  declare function SettingsWidget({ labels, featureLabels, acceptInviteRedirectUri, teamInitialView, helpContactUrl, helpFaq, profileContactUrl, showProfileHeader, selectedSection, defaultSelectedSection, onSelectedSectionChange, additionalSections, profileContent, teamContent, billPayContent, helpContent, expenseContent, accountingContent, invoiceContent, legalContent, ...widgetProviderProps }: SettingsWidgetProps): React.JSX.Element;
6467
6540
 
6468
6541
  interface TransfersWidgetLabels {
6542
+ /** Accessible name of the transfers table. */
6543
+ tableLabel: string;
6469
6544
  widgetTitle: string;
6470
6545
  transferMoneyCta: string;
6471
6546
  /** Tooltip when the transfer CTA is disabled for insufficient eligible accounts. */
@@ -7246,6 +7321,8 @@ declare const BillSummaryCard: {
7246
7321
  type BillSummaryCard = (typeof BillSummaryCard)[keyof typeof BillSummaryCard];
7247
7322
 
7248
7323
  interface CounterpartsScreenLabels {
7324
+ /** Accessible name of the counterparts table. */
7325
+ tableLabel: string;
7249
7326
  /** Customer-mode create action. */
7250
7327
  createButton: string;
7251
7328
  /** Vendor-mode create action. */
@@ -7713,4 +7790,4 @@ interface CheckAmountAndDetailScreenProps {
7713
7790
  type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
7714
7791
 
7715
7792
  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, BillQueue as BillsView, 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, RECENT_ACTIVITY_WIDGET_LABELS_EN, RESULT_LABELS_EN, ReceivableStatusCard, ReceivablesWidget, RecentActivityWidget, 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, useWidgetLifecycle, useWidgetLoading, useWidgetToken };
7716
- 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, RecentActivityWidgetLabels, RecentActivityWidgetProps, 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, WidgetDisplayIdentity, WidgetInitResponse, WidgetInitState, WidgetLifecycle, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteComplianceBannerLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
7793
+ 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, RecentActivityWidgetLabels, RecentActivityWidgetProps, RecurringSeriesScreenLabelOverrides, RecurringSeriesScreenLabels, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, ThemeInput, ThemeIssue, ThemeTokenKey, ThemeTokenName, ThemeTokens, TransactionDetailsActionsLabels, TransactionDetailsFeatureLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetDisplayIdentity, WidgetInitResponse, WidgetInitState, WidgetLifecycle, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteComplianceBannerLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
@@ -1696,6 +1696,8 @@ interface DisclosureLinks {
1696
1696
  }
1697
1697
 
1698
1698
  interface AdditionalOwnersLabels {
1699
+ /** Accessible name of the owners table. */
1700
+ ownersTableLabel: string;
1699
1701
  heading: string;
1700
1702
  /** Why owners are asked for, under the heading. */
1701
1703
  subheading: string;
@@ -10,6 +10,8 @@ interface Labels$1 {
10
10
  bankingTaglinePrefix: string;
11
11
  availableBalanceLabel: string;
12
12
  availableBalanceTooltip: string;
13
+ /** The available-balance help icon's accessible name. */
14
+ availableBalanceInfoLabel: string;
13
15
  accountNumberLabel: string;
14
16
  routingNumberLabel: string;
15
17
  addAccountButton: string;
@@ -38,6 +40,8 @@ interface Labels$1 {
38
40
  teamMembersErrorTitle: string;
39
41
  teamMembersEmptyLabel: string;
40
42
  teamMemberAccessTooltip: string;
43
+ /** A role's help icon's accessible name. Use `{role}` for the role name. */
44
+ teamMemberRoleInfoLabel: string;
41
45
  accountNumberEndingIn: string;
42
46
  showAccountNumber: string;
43
47
  hideAccountNumber: string;
@@ -645,10 +649,16 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
645
649
  }
646
650
 
647
651
  interface Labels {
652
+ /** Accessible name of the statements table. */
653
+ statementsTableLabel: string;
654
+ /** Accessible name of the transactions table. */
655
+ transactionsTableLabel: string;
648
656
  backToAccounts: string;
649
657
  bankingTaglinePrefix: string;
650
658
  availableBalanceLabel: string;
651
659
  availableBalanceTooltip: string;
660
+ /** The available-balance help icon's accessible name. */
661
+ availableBalanceInfoLabel: string;
652
662
  transactionsTab: string;
653
663
  statementsTab: string;
654
664
  detailsTab: string;
@@ -920,6 +920,8 @@ interface CardDetailsHeaderLabels {
920
920
  interface CardDetailsCardFaceLabels {
921
921
  /** Alt text for the bank logo when the caller supplies no `bankLogoAlt`. */
922
922
  bankLogoAlt: string;
923
+ /** Spoken between the masked number's groups of four, e.g. `", "`. */
924
+ cardNumberGroupSeparator: string;
923
925
  }
924
926
  /** Row headings and per-row copy affordance names for the details table. */
925
927
  interface CardDetailsFieldLabels {
@@ -995,6 +997,8 @@ interface CardDetailsLockLabels {
995
997
  */
996
998
  interface CardDetailsCredentialsLabels {
997
999
  cardNumber: string;
1000
+ /** Spoken between the revealed number's groups of four, e.g. `", "`. */
1001
+ cardNumberGroupSeparator: string;
998
1002
  expirationDate: string;
999
1003
  securityCode: string;
1000
1004
  copyCardNumberAriaLabel: string;
@@ -1035,6 +1039,8 @@ interface ActivateCardHeaderLabels {
1035
1039
  interface ActivateCardCardFaceLabels {
1036
1040
  /** Alt text for the bank logo when the caller supplies no `bankLogoAlt`. */
1037
1041
  bankLogoAlt: string;
1042
+ /** Spoken between the masked number's groups of four, e.g. `", "`. */
1043
+ cardNumberGroupSeparator: string;
1038
1044
  }
1039
1045
  /** Field headings, placeholders and the copy behind each affordance. */
1040
1046
  interface ActivateCardFieldLabels {
@@ -1732,6 +1732,8 @@ interface ReceivableStatusBadgeLabels {
1732
1732
  }
1733
1733
 
1734
1734
  interface CounterpartsScreenLabels {
1735
+ /** Accessible name of the counterparts table. */
1736
+ tableLabel: string;
1735
1737
  /** Customer-mode create action. */
1736
1738
  createButton: string;
1737
1739
  /** Vendor-mode create action. */
@@ -1732,6 +1732,8 @@ interface ReceivableStatusBadgeLabels {
1732
1732
  }
1733
1733
 
1734
1734
  interface CounterpartsScreenLabels {
1735
+ /** Accessible name of the counterparts table. */
1736
+ tableLabel: string;
1735
1737
  /** Customer-mode create action. */
1736
1738
  createButton: string;
1737
1739
  /** Vendor-mode create action. */
@@ -968,6 +968,8 @@ interface CardsListDetailsSheetLabels {
968
968
  * wording change is not a breaking rename.
969
969
  */
970
970
  interface CardsListLabels {
971
+ /** Accessible name of the cards table. */
972
+ tableLabel: string;
971
973
  /**
972
974
  * Accessible name for the list region. Not a heading: the list renders none,
973
975
  * because whoever mounts it names it (embedded ADR 0010).
@@ -1644,6 +1646,8 @@ interface CardDetailsHeaderLabels {
1644
1646
  interface CardDetailsCardFaceLabels {
1645
1647
  /** Alt text for the bank logo when the caller supplies no `bankLogoAlt`. */
1646
1648
  bankLogoAlt: string;
1649
+ /** Spoken between the masked number's groups of four, e.g. `", "`. */
1650
+ cardNumberGroupSeparator: string;
1647
1651
  }
1648
1652
  /** Row headings and per-row copy affordance names for the details table. */
1649
1653
  interface CardDetailsFieldLabels {
@@ -1719,6 +1723,8 @@ interface CardDetailsLockLabels {
1719
1723
  */
1720
1724
  interface CardDetailsCredentialsLabels {
1721
1725
  cardNumber: string;
1726
+ /** Spoken between the revealed number's groups of four, e.g. `", "`. */
1727
+ cardNumberGroupSeparator: string;
1722
1728
  expirationDate: string;
1723
1729
  securityCode: string;
1724
1730
  copyCardNumberAriaLabel: string;
@@ -1759,6 +1765,8 @@ interface ActivateCardHeaderLabels {
1759
1765
  interface ActivateCardCardFaceLabels {
1760
1766
  /** Alt text for the bank logo when the caller supplies no `bankLogoAlt`. */
1761
1767
  bankLogoAlt: string;
1768
+ /** Spoken between the masked number's groups of four, e.g. `", "`. */
1769
+ cardNumberGroupSeparator: string;
1762
1770
  }
1763
1771
  /** Field headings, placeholders and the copy behind each affordance. */
1764
1772
  interface ActivateCardFieldLabels {
@@ -968,6 +968,8 @@ interface CardsListDetailsSheetLabels {
968
968
  * wording change is not a breaking rename.
969
969
  */
970
970
  interface CardsListLabels {
971
+ /** Accessible name of the cards table. */
972
+ tableLabel: string;
971
973
  /**
972
974
  * Accessible name for the list region. Not a heading: the list renders none,
973
975
  * because whoever mounts it names it (embedded ADR 0010).
@@ -1644,6 +1646,8 @@ interface CardDetailsHeaderLabels {
1644
1646
  interface CardDetailsCardFaceLabels {
1645
1647
  /** Alt text for the bank logo when the caller supplies no `bankLogoAlt`. */
1646
1648
  bankLogoAlt: string;
1649
+ /** Spoken between the masked number's groups of four, e.g. `", "`. */
1650
+ cardNumberGroupSeparator: string;
1647
1651
  }
1648
1652
  /** Row headings and per-row copy affordance names for the details table. */
1649
1653
  interface CardDetailsFieldLabels {
@@ -1719,6 +1723,8 @@ interface CardDetailsLockLabels {
1719
1723
  */
1720
1724
  interface CardDetailsCredentialsLabels {
1721
1725
  cardNumber: string;
1726
+ /** Spoken between the revealed number's groups of four, e.g. `", "`. */
1727
+ cardNumberGroupSeparator: string;
1722
1728
  expirationDate: string;
1723
1729
  securityCode: string;
1724
1730
  copyCardNumberAriaLabel: string;
@@ -1759,6 +1765,8 @@ interface ActivateCardHeaderLabels {
1759
1765
  interface ActivateCardCardFaceLabels {
1760
1766
  /** Alt text for the bank logo when the caller supplies no `bankLogoAlt`. */
1761
1767
  bankLogoAlt: string;
1768
+ /** Spoken between the masked number's groups of four, e.g. `", "`. */
1769
+ cardNumberGroupSeparator: string;
1762
1770
  }
1763
1771
  /** Field headings, placeholders and the copy behind each affordance. */
1764
1772
  interface ActivateCardFieldLabels {
@@ -17,6 +17,8 @@ interface ActionItemsListLabels {
17
17
  }
18
18
 
19
19
  interface ExpensesTransactionsTableLabels {
20
+ /** Accessible name of the expenses table. */
21
+ tableLabel: string;
20
22
  loading: string;
21
23
  dateColumn: string;
22
24
  statusColumn: string;
@@ -794,6 +796,44 @@ interface UploadReceiptHandle {
794
796
  upload: (files: File[]) => void;
795
797
  }
796
798
 
799
+ /**
800
+ * Copy the container composes from API values before handing it to the UI —
801
+ * the card line and the receipt trigger's wording. Everything the UI renders
802
+ * on its own lives in that lib's own `labels.ts` files.
803
+ */
804
+ interface TransactionDetailsFeatureLabels {
805
+ creditCard: string;
806
+ debitCard: string;
807
+ /** e.g. "Credit | ••••4242". */
808
+ cardLabel: (cardType: string, last4: string) => string;
809
+ /** Trigger label once a file is on the expense. */
810
+ receiptAttached: string;
811
+ /** Trigger label when the caller can attach one. */
812
+ receiptAttach: string;
813
+ /** Trigger label when they chose to submit with no file. */
814
+ receiptSubmitWithout: string;
815
+ /** Disabled trigger when the caller cannot attach one. */
816
+ receiptMissing: string;
817
+ /** Screen-reader announcement while a receipt uploads. */
818
+ receiptUploading: string;
819
+ /** Screen-reader announcement once a receipt is on the expense. */
820
+ receiptUploaded: string;
821
+ /** Shown as a toast and announced to screen readers. */
822
+ receiptUploadFailed: string;
823
+ receiptDeleteFailed: string;
824
+ memoSaveFailed: string;
825
+ accountingSaveFailed: string;
826
+ /** Fixed card name. The payment method has no nickname of its own. */
827
+ travelCard: string;
828
+ glCategoryUncategorized: string;
829
+ accountingNone: string;
830
+ memoAiAssigned: string;
831
+ /** Screen-reader announcements once the review footer changes the status. */
832
+ expenseApproved: string;
833
+ expenseRejected: string;
834
+ expenseSubmitted: string;
835
+ }
836
+
797
837
  interface ExpenseManagementWidgetOwnProps {
798
838
  screenLabels?: Partial<Labels>;
799
839
  headerLabels?: Partial<ExpensesHeaderLabels>;
@@ -806,6 +846,11 @@ interface ExpenseManagementWidgetOwnProps {
806
846
  transactionDetailsCardLabels?: Partial<AccordionItemCardLabels>;
807
847
  transactionDetailsActionsLabels?: Partial<TransactionDetailsActionsLabels>;
808
848
  fileViewerLabels?: Partial<FileViewerLabels>;
849
+ /**
850
+ * Copy the review dialog composes from API values, plus the receipt upload
851
+ * announcements and toast a row's "Add receipt" shows.
852
+ */
853
+ transactionDetailsFeatureLabels?: Partial<TransactionDetailsFeatureLabels>;
809
854
  /** Renders the "Upload receipts" entry point in the header's actions slot. */
810
855
  receiptUpload?: UploadReceiptWidgetProps;
811
856
  /**
@@ -839,4 +884,4 @@ type ExpenseManagementWidgetProps = WidgetProviderProps & ExpenseManagementWidge
839
884
  declare function ExpenseManagementWidget({ screenLabels, headerLabels, transactionsTableLabels, filterBarLabels, actionItemsLabels, statusBadgeLabels, transactionDetailsLabels, transactionDetailsCardLabels, transactionDetailsActionsLabels, fileViewerLabels, receiptUpload, bankDisplayName, bankLogoSrc, bankLogoAlt, isBankingTaglineVisible, onSettingsClick, ...widgetProviderProps }: ExpenseManagementWidgetProps): React.JSX.Element;
840
885
 
841
886
  export { ExpenseManagementWidget };
842
- export type { AccordionItemCardLabels, Labels as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels };
887
+ export type { AccordionItemCardLabels, Labels as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, TransactionDetailsActionsLabels, TransactionDetailsFeatureLabels, TransactionDetailsLabels };
@@ -1806,6 +1806,8 @@ interface ProductFormSheetLabels {
1806
1806
  requiredFieldsLegend: RequiredFieldsLegendLabels;
1807
1807
  }
1808
1808
  interface MeasureUnitsManagerLabels {
1809
+ /** Accessible name of the units table. */
1810
+ tableLabel: string;
1809
1811
  title: string;
1810
1812
  hiddenDescription: string;
1811
1813
  searchPlaceholder: string;
@@ -2017,6 +2019,8 @@ interface ReceivableStatusBadgeLabels {
2017
2019
  }
2018
2020
 
2019
2021
  interface ReceivablesScreenLabels {
2022
+ /** Accessible name of the invoices table. */
2023
+ tableLabel: string;
2020
2024
  createInvoiceButton: string;
2021
2025
  statusCardsGroup: string;
2022
2026
  statusCardsLoading: string;
@@ -2149,6 +2153,8 @@ interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, Rec
2149
2153
  /** @deprecated Use `ReceivableFormDialogLabels`. */
2150
2154
  type ReceivableFormSheetLabels = ReceivableFormDialogLabels;
2151
2155
  interface ReceivableDetailsPanelLabels {
2156
+ /** Accessible name of the line items table. */
2157
+ lineItemsTableLabel: string;
2152
2158
  loadingTitle: string;
2153
2159
  moreActionsLabel: string;
2154
2160
  viewPdfButton: string;
@@ -2275,6 +2281,8 @@ interface ReceivablePreviewLabels {
2275
2281
  }
2276
2282
 
2277
2283
  interface RecurringSeriesScreenLabels {
2284
+ /** Accessible name of the recurring series table. */
2285
+ tableLabel: string;
2278
2286
  createButton: string;
2279
2287
  columnCustomer: string;
2280
2288
  columnRepeats: string;
@@ -601,6 +601,8 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
601
601
  }
602
602
 
603
603
  interface TransfersWidgetLabels {
604
+ /** Accessible name of the transfers table. */
605
+ tableLabel: string;
604
606
  widgetTitle: string;
605
607
  transferMoneyCta: string;
606
608
  /** Tooltip when the transfer CTA is disabled for insufficient eligible accounts. */
@@ -1867,6 +1867,8 @@ interface DisclosureLinks {
1867
1867
  }
1868
1868
 
1869
1869
  interface AdditionalOwnersLabels {
1870
+ /** Accessible name of the owners table. */
1871
+ ownersTableLabel: string;
1870
1872
  heading: string;
1871
1873
  /** Why owners are asked for, under the heading. */
1872
1874
  subheading: string;
@@ -2593,6 +2595,8 @@ interface Labels$4 {
2593
2595
  bankingTaglinePrefix: string;
2594
2596
  availableBalanceLabel: string;
2595
2597
  availableBalanceTooltip: string;
2598
+ /** The available-balance help icon's accessible name. */
2599
+ availableBalanceInfoLabel: string;
2596
2600
  accountNumberLabel: string;
2597
2601
  routingNumberLabel: string;
2598
2602
  addAccountButton: string;
@@ -2621,6 +2625,8 @@ interface Labels$4 {
2621
2625
  teamMembersErrorTitle: string;
2622
2626
  teamMembersEmptyLabel: string;
2623
2627
  teamMemberAccessTooltip: string;
2628
+ /** A role's help icon's accessible name. Use `{role}` for the role name. */
2629
+ teamMemberRoleInfoLabel: string;
2624
2630
  accountNumberEndingIn: string;
2625
2631
  showAccountNumber: string;
2626
2632
  hideAccountNumber: string;
@@ -2634,10 +2640,16 @@ interface Labels$4 {
2634
2640
  }
2635
2641
 
2636
2642
  interface Labels$3 {
2643
+ /** Accessible name of the statements table. */
2644
+ statementsTableLabel: string;
2645
+ /** Accessible name of the transactions table. */
2646
+ transactionsTableLabel: string;
2637
2647
  backToAccounts: string;
2638
2648
  bankingTaglinePrefix: string;
2639
2649
  availableBalanceLabel: string;
2640
2650
  availableBalanceTooltip: string;
2651
+ /** The available-balance help icon's accessible name. */
2652
+ availableBalanceInfoLabel: string;
2641
2653
  transactionsTab: string;
2642
2654
  statementsTab: string;
2643
2655
  detailsTab: string;
@@ -2829,6 +2841,8 @@ interface CardsListDetailsSheetLabels {
2829
2841
  * wording change is not a breaking rename.
2830
2842
  */
2831
2843
  interface CardsListLabels {
2844
+ /** Accessible name of the cards table. */
2845
+ tableLabel: string;
2832
2846
  /**
2833
2847
  * Accessible name for the list region. Not a heading: the list renders none,
2834
2848
  * because whoever mounts it names it (embedded ADR 0010).
@@ -2884,6 +2898,8 @@ interface CardDetailsHeaderLabels {
2884
2898
  interface CardDetailsCardFaceLabels {
2885
2899
  /** Alt text for the bank logo when the caller supplies no `bankLogoAlt`. */
2886
2900
  bankLogoAlt: string;
2901
+ /** Spoken between the masked number's groups of four, e.g. `", "`. */
2902
+ cardNumberGroupSeparator: string;
2887
2903
  }
2888
2904
  /** Row headings and per-row copy affordance names for the details table. */
2889
2905
  interface CardDetailsFieldLabels {
@@ -2959,6 +2975,8 @@ interface CardDetailsLockLabels {
2959
2975
  */
2960
2976
  interface CardDetailsCredentialsLabels {
2961
2977
  cardNumber: string;
2978
+ /** Spoken between the revealed number's groups of four, e.g. `", "`. */
2979
+ cardNumberGroupSeparator: string;
2962
2980
  expirationDate: string;
2963
2981
  securityCode: string;
2964
2982
  copyCardNumberAriaLabel: string;
@@ -2999,6 +3017,8 @@ interface ActivateCardHeaderLabels {
2999
3017
  interface ActivateCardCardFaceLabels {
3000
3018
  /** Alt text for the bank logo when the caller supplies no `bankLogoAlt`. */
3001
3019
  bankLogoAlt: string;
3020
+ /** Spoken between the masked number's groups of four, e.g. `", "`. */
3021
+ cardNumberGroupSeparator: string;
3002
3022
  }
3003
3023
  /** Field headings, placeholders and the copy behind each affordance. */
3004
3024
  interface ActivateCardFieldLabels {
@@ -3606,6 +3626,8 @@ interface ActionItemsListLabels {
3606
3626
  }
3607
3627
 
3608
3628
  interface ExpensesTransactionsTableLabels {
3629
+ /** Accessible name of the expenses table. */
3630
+ tableLabel: string;
3609
3631
  loading: string;
3610
3632
  dateColumn: string;
3611
3633
  statusColumn: string;
@@ -3789,6 +3811,44 @@ interface UploadReceiptHandle {
3789
3811
  upload: (files: File[]) => void;
3790
3812
  }
3791
3813
 
3814
+ /**
3815
+ * Copy the container composes from API values before handing it to the UI —
3816
+ * the card line and the receipt trigger's wording. Everything the UI renders
3817
+ * on its own lives in that lib's own `labels.ts` files.
3818
+ */
3819
+ interface TransactionDetailsFeatureLabels {
3820
+ creditCard: string;
3821
+ debitCard: string;
3822
+ /** e.g. "Credit | ••••4242". */
3823
+ cardLabel: (cardType: string, last4: string) => string;
3824
+ /** Trigger label once a file is on the expense. */
3825
+ receiptAttached: string;
3826
+ /** Trigger label when the caller can attach one. */
3827
+ receiptAttach: string;
3828
+ /** Trigger label when they chose to submit with no file. */
3829
+ receiptSubmitWithout: string;
3830
+ /** Disabled trigger when the caller cannot attach one. */
3831
+ receiptMissing: string;
3832
+ /** Screen-reader announcement while a receipt uploads. */
3833
+ receiptUploading: string;
3834
+ /** Screen-reader announcement once a receipt is on the expense. */
3835
+ receiptUploaded: string;
3836
+ /** Shown as a toast and announced to screen readers. */
3837
+ receiptUploadFailed: string;
3838
+ receiptDeleteFailed: string;
3839
+ memoSaveFailed: string;
3840
+ accountingSaveFailed: string;
3841
+ /** Fixed card name. The payment method has no nickname of its own. */
3842
+ travelCard: string;
3843
+ glCategoryUncategorized: string;
3844
+ accountingNone: string;
3845
+ memoAiAssigned: string;
3846
+ /** Screen-reader announcements once the review footer changes the status. */
3847
+ expenseApproved: string;
3848
+ expenseRejected: string;
3849
+ expenseSubmitted: string;
3850
+ }
3851
+
3792
3852
  interface ExpenseManagementWidgetOwnProps {
3793
3853
  screenLabels?: Partial<Labels$2>;
3794
3854
  headerLabels?: Partial<ExpensesHeaderLabels>;
@@ -3801,6 +3861,11 @@ interface ExpenseManagementWidgetOwnProps {
3801
3861
  transactionDetailsCardLabels?: Partial<AccordionItemCardLabels>;
3802
3862
  transactionDetailsActionsLabels?: Partial<TransactionDetailsActionsLabels>;
3803
3863
  fileViewerLabels?: Partial<FileViewerLabels>;
3864
+ /**
3865
+ * Copy the review dialog composes from API values, plus the receipt upload
3866
+ * announcements and toast a row's "Add receipt" shows.
3867
+ */
3868
+ transactionDetailsFeatureLabels?: Partial<TransactionDetailsFeatureLabels>;
3804
3869
  /** Renders the "Upload receipts" entry point in the header's actions slot. */
3805
3870
  receiptUpload?: UploadReceiptWidgetProps;
3806
3871
  /**
@@ -4082,6 +4147,8 @@ interface CounterpartMessageLabels {
4082
4147
  }
4083
4148
 
4084
4149
  interface MeasureUnitsManagerLabels {
4150
+ /** Accessible name of the units table. */
4151
+ tableLabel: string;
4085
4152
  title: string;
4086
4153
  hiddenDescription: string;
4087
4154
  searchPlaceholder: string;
@@ -4293,6 +4360,8 @@ interface ReceivableStatusBadgeLabels {
4293
4360
  }
4294
4361
 
4295
4362
  interface ReceivablesScreenLabels {
4363
+ /** Accessible name of the invoices table. */
4364
+ tableLabel: string;
4296
4365
  createInvoiceButton: string;
4297
4366
  statusCardsGroup: string;
4298
4367
  statusCardsLoading: string;
@@ -4423,6 +4492,8 @@ interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, Rec
4423
4492
  reminderSaveButton: string;
4424
4493
  }
4425
4494
  interface ReceivableDetailsPanelLabels {
4495
+ /** Accessible name of the line items table. */
4496
+ lineItemsTableLabel: string;
4426
4497
  loadingTitle: string;
4427
4498
  moreActionsLabel: string;
4428
4499
  viewPdfButton: string;
@@ -4549,6 +4620,8 @@ interface ReceivablePreviewLabels {
4549
4620
  }
4550
4621
 
4551
4622
  interface RecurringSeriesScreenLabels {
4623
+ /** Accessible name of the recurring series table. */
4624
+ tableLabel: string;
4552
4625
  createButton: string;
4553
4626
  columnCustomer: string;
4554
4627
  columnRepeats: string;
@@ -5347,6 +5420,8 @@ interface SettingsWidgetProps extends WidgetProviderProps {
5347
5420
  }
5348
5421
 
5349
5422
  interface TransfersWidgetLabels {
5423
+ /** Accessible name of the transfers table. */
5424
+ tableLabel: string;
5350
5425
  widgetTitle: string;
5351
5426
  transferMoneyCta: string;
5352
5427
  /** Tooltip when the transfer CTA is disabled for insufficient eligible accounts. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-loader",
3
- "version": "0.11.305",
3
+ "version": "0.11.308",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,