@tesouro/embedded-components-react 0.2.260 → 0.2.262

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 (62) hide show
  1. package/README.md +24 -19
  2. package/dist/experimental/WidgetSuite.d.ts +77 -5
  3. package/dist/experimental/WidgetSuite.js +5 -5
  4. package/dist/experimental/index.d.ts +77 -5
  5. package/dist/experimental/index.js +5 -5
  6. package/dist/index.d.ts +80 -2
  7. package/dist/index.js +12 -11
  8. package/dist/lib/BalancesWidget.js +1 -1
  9. package/dist/lib/InsightsWidget.js +2 -2
  10. package/dist/lib/ProfileWidget.d.ts +16 -0
  11. package/dist/lib/SettingsWidget.d.ts +65 -3
  12. package/dist/lib/SettingsWidget.js +3 -2
  13. package/dist/lib/TransfersWidget.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index4.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index5.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/index.js +3 -3
  17. package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/{index3.js → lib/BalancesWidget/BalancesWidget.js} +5 -5
  18. package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/{index4.js → lib/BalancesWidget/SingleBalance/SingleBalance.js} +2 -2
  19. package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/{index2.js → lib/BalancesWidget/labels.js} +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index.js +3 -3
  22. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/{index3.js → lib/ExpenseManagementWidgetUi/ExpenseManagementWidgetUi.js} +3 -3
  23. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/index.js +2 -0
  24. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/{index2.js → lib/ExpenseManagementWidgetUi/labels.js} +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/index.js +4 -4
  28. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/{index3.js → lib/InsightsWidget/InsightsWidget.js} +5 -5
  29. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/{index5.js → lib/InsightsWidget/SingleInsight/SingleInsight.js} +3 -3
  30. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/{index4.js → lib/InsightsWidget/SingleInsight/labels.js} +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/{index2.js → lib/InsightsWidget/labels.js} +1 -1
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +59 -56
  36. package/dist/libs/tesouro-embedded-components-react/profile-widget/ui/dist/index2.js +3 -1
  37. package/dist/libs/tesouro-embedded-components-react/profile-widget/ui/dist/index3.js +25 -9
  38. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index.js +4 -3
  39. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js +20 -41
  40. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +37 -122
  41. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +133 -2
  42. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index7.js +3 -0
  43. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index5.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index.js +2 -2
  46. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index4.js → lib/TransferMoneyModal/ReviewTransferStep.js} +4 -4
  47. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index8.js → lib/TransferMoneyModal/TransferMoneyModal.js} +5 -5
  48. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index5.js → lib/TransferMoneyModal/TransferMoneyModalHeader.js} +2 -2
  49. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index7.js → lib/TransferMoneyModal/TransferResultStep.js} +3 -3
  50. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index2.js → lib/TransferMoneyModal/TransferReviewAccountCard.js} +2 -2
  51. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index3.js → lib/TransferMoneyModal/reviewTransferStepLabels.js} +1 -1
  52. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index6.js → lib/TransferMoneyModal/transferResultStepLabels.js} +1 -1
  53. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index10.js → lib/TransfersWidget/TransfersWidget.js} +6 -6
  54. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index9.js → lib/TransfersWidget/labels.js} +1 -1
  55. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index.js +5 -5
  56. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js +10 -1
  57. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js +74 -11
  58. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js +58 -33
  59. package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index.js +2 -1
  60. package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index4.js +29 -0
  61. package/package.json +1 -1
  62. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index4.js +0 -2
package/README.md CHANGED
@@ -481,10 +481,11 @@ A self-contained, read-only profile card for the current entity user. It shows a
481
481
 
482
482
  #### Props
483
483
 
484
- | Prop | Type | Description |
485
- | --------------- | ------------------------ | ----------------------------------------------------- |
486
- | `labels` | `Partial<Labels>` | Overrides the card's own copy (loading announcement). |
487
- | `featureLabels` | `Partial<FeatureLabels>` | Overrides tab labels, field labels, and the subtitle. |
484
+ | Prop | Type | Description |
485
+ | --------------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
486
+ | `labels` | `Partial<Labels>` | Overrides the card's own copy (loading announcement, contact line). |
487
+ | `featureLabels` | `Partial<FeatureLabels>` | Overrides tab labels, field labels, and the subtitle. |
488
+ | `contactUrl` | `string` | Where the "to change this information, contact your bank" line links (a support page URL or a `mailto:`). Left unset, the card shows the plain unlinked subtitle instead. The bank name in that line comes from widget init, so no other value is needed. |
488
489
 
489
490
  ### ReceivablesWidget
490
491
 
@@ -537,21 +538,25 @@ A composite settings widget that combines Monite document settings, tags, GL cod
537
538
 
538
539
  #### Props
539
540
 
540
- | Prop | Type | Default | Description |
541
- | ------------------------- | ------------------------ | --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
542
- | `acceptInviteRedirectUri` | `string` | Same-origin `/accept-invite` | Forwarded to the Team section's widget — allowlisted URL invite emails link to. Defaults to `${window.location.origin}/accept-invite`; set it when the host app's registered landing route differs from the widget's same-origin default, or the origin is not on the OIDC redirect-URI allowlist (preview/localhost). |
543
- | `labels` | `Partial<Labels>` | English labels | Overrides the settings heading copy. |
544
- | `featureLabels` | `Partial<FeatureLabels>` | English labels | Overrides section labels. |
545
- | `profileContent` | `ReactNode` | Profile widget | Replaces the profile section content. |
546
- | `teamContent` | `ReactNode` | Empty | Supplies the team section content. |
547
- | `invoiceContent` | `ReactNode` | Monite template settings | Replaces invoice settings content. |
548
- | `billPayContent` | `ReactNode` | Monite approval policies | Replaces bill-pay settings content. |
549
- | `accountingContent` | `ReactNode` | GL code table widget | Replaces accounting content. |
550
- | `tagsContent` | `ReactNode` | Monite tags | Replaces tags content. |
551
- | `expenseContent` | `ReactNode` | Expense policies and requirements | Replaces expense content. |
552
- | `helpContactUrl` | `string` | `undefined` | Forwarded to the Help section's widget — where its "Contact Us" line links (a support page URL or a `mailto:`). The line is hidden while unset, since the package has no tenant-agnostic support address to fall back on; the bank name in that line comes from widget init. |
553
- | `helpContent` | `ReactNode` | Help widget | Replaces the help section content. |
554
- | `finopsThemeColors` | `FinopsThemeColors` | `undefined` | Optional Monite theme color overrides. |
541
+ | Prop | Type | Default | Description |
542
+ | ------------------------- | -------------------------------------------- | --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
543
+ | `acceptInviteRedirectUri` | `string` | Same-origin `/accept-invite` | Forwarded to the Team section's widget — allowlisted URL invite emails link to. Defaults to `${window.location.origin}/accept-invite`; set it when the host app's registered landing route differs from the widget's same-origin default, or the origin is not on the OIDC redirect-URI allowlist (preview/localhost). |
544
+ | `labels` | `Partial<Labels>` | English labels | Overrides the settings heading copy. |
545
+ | `featureLabels` | `Partial<FeatureLabels>` | English labels | Overrides section labels. |
546
+ | `profileContent` | `ReactNode` | Profile widget | Replaces the profile section content. |
547
+ | `teamContent` | `ReactNode` | Empty | Supplies the team section content. |
548
+ | `invoiceContent` | `ReactNode` | Monite template settings | Replaces invoice settings content. |
549
+ | `billPayContent` | `ReactNode` | Monite approval policies | Replaces bill-pay settings content. |
550
+ | `accountingContent` | `ReactNode` | GL code table widget | Replaces accounting content. |
551
+ | `tagsContent` | `ReactNode` | Monite tags | Replaces tags content. |
552
+ | `expenseContent` | `ReactNode` | Expense policies and requirements | Replaces expense content. |
553
+ | `profileContactUrl` | `string` | `undefined` | Forwarded to the Profile section's widget — where its "to change this information, contact your bank" line links. Left unset, the card shows the plain unlinked sentence instead; the bank name comes from widget init. |
554
+ | `selectedSection` | `SettingsWidgetSectionId` | `undefined` | The section to show. Leave unset to let the widget own the selection; supply it (with `onSelectedSectionChange`) to drive navigation from a route or search param. A section the user's scopes hide falls back to the first visible one. |
555
+ | `onSelectedSectionChange` | `(section: SettingsWidgetSectionId) => void` | `undefined` | Called with the id of the section the user selected. Fires whether or not `selectedSection` is supplied, so a host can mirror the selection into its URL without taking ownership of it. |
556
+ | `additionalSections` | `SettingsWidgetAdditionalSection[]` | `undefined` | Host-owned sections rendered alongside the built-in ones. Each is `{ id, label, content }` plus an optional `after` naming the built-in section to place it behind. Unlike the built-ins, these are not scope-gated. |
557
+ | `helpContactUrl` | `string` | `undefined` | Forwarded to the Help section's widget — where its "Contact Us" line links (a support page URL or a `mailto:`). The line is hidden while unset, since the package has no tenant-agnostic support address to fall back on; the bank name in that line comes from widget init. |
558
+ | `helpContent` | `ReactNode` | Help widget | Replaces the help section content. |
559
+ | `finopsThemeColors` | `FinopsThemeColors` | `undefined` | Optional Monite theme color overrides. |
555
560
 
556
561
  ### TagsWidget
557
562
 
@@ -591,16 +591,32 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
591
591
  }
592
592
 
593
593
  /**
594
- * The sections this pass wires. Three of a planned eight (EMBD-4873): enough to
595
- * exercise an ungated section, a scope-gated one, and a widget that gates its
596
- * own subsections, without eight widgets' worth of integration noise.
594
+ * The sections the suite can offer, declared in the default menu order
595
+ * (EMBD-4875). Order here is documentation only the suite renders whatever
596
+ * order its `sections` prop lists.
597
597
  */
598
598
  declare const WidgetSuiteSectionId: {
599
+ readonly Dashboard: "dashboard";
599
600
  readonly Accounts: "accounts";
600
601
  readonly Cards: "cards";
602
+ readonly Transfers: "transfers";
603
+ readonly BillPay: "bill-pay";
604
+ readonly Invoicing: "invoicing";
605
+ readonly Expenses: "expenses";
601
606
  readonly Settings: "settings";
602
607
  };
603
608
  type WidgetSuiteSectionId = (typeof WidgetSuiteSectionId)[keyof typeof WidgetSuiteSectionId];
609
+ /**
610
+ * The whole surface in the shipped white-label header order
611
+ * (`useDashboardLayout.tsx`): its banking group, then its finops group, then
612
+ * Settings, which white label keeps in the avatar menu rather than the header.
613
+ *
614
+ * Exported as a constant to spread rather than wired up as a default for
615
+ * `sections`, which stays required. A default would make a host's page
616
+ * composition invisible at the call site and would grow silently every time a
617
+ * section is added here. The zero-config wrapper is the intended consumer.
618
+ */
619
+ declare const WIDGET_SUITE_DEFAULT_SECTIONS: readonly ["dashboard", "accounts", "cards", "transfers", "bill-pay", "invoicing", "expenses", "settings"];
604
620
 
605
621
  /**
606
622
  * The section names in the suite menu.
@@ -615,7 +631,42 @@ type WidgetSuiteSectionId = (typeof WidgetSuiteSectionId)[keyof typeof WidgetSui
615
631
  * `BillPayWidgetNative` makes between `labels` and `tabsLabels`.
616
632
  */
617
633
  type WidgetSuiteSectionLabels = Record<WidgetSuiteSectionId, string>;
634
+ /** Copy for the heading above a section, as opposed to its menu item. */
635
+ interface WidgetSuiteSectionTitleLabels {
636
+ /**
637
+ * The bank attribution beneath the heading. `{bankName}` is replaced with the
638
+ * bank `/init` names, so a translation can put it anywhere in the sentence
639
+ * rather than after a fixed lead-in. An override that drops the placeholder
640
+ * shows no name.
641
+ */
642
+ bankTagline: string;
643
+ }
644
+ /**
645
+ * Copy the suite puts *inside* a section's panel, rather than in its menu or
646
+ * heading. Each group is shaped as the props of the widget it is handed to, so
647
+ * the merged object below can be passed down by reference.
648
+ */
649
+ interface WidgetSuiteContentLabels {
650
+ /**
651
+ * `CardsList` renders its own `labels.title` as the list heading, defaulting
652
+ * to "Cards". Two instances stack in the Cards section, so each is retitled by
653
+ * program.
654
+ */
655
+ creditCards: {
656
+ title: string;
657
+ };
658
+ debitCards: {
659
+ title: string;
660
+ };
661
+ /** Expenses is only a placeholder until the suite wires a read/self surface. */
662
+ expensePlaceholders: {
663
+ expensesUnavailable: string;
664
+ };
665
+ }
666
+ /** Named as the shipped white-label header names them. */
618
667
  declare const WIDGET_SUITE_SECTION_LABELS_EN: WidgetSuiteSectionLabels;
668
+ declare const WIDGET_SUITE_SECTION_TITLE_LABELS_EN: WidgetSuiteSectionTitleLabels;
669
+ declare const WIDGET_SUITE_CONTENT_LABELS_EN: WidgetSuiteContentLabels;
619
670
 
620
671
  interface WidgetSuiteProps extends WidgetProviderProps {
621
672
  /**
@@ -635,6 +686,27 @@ interface WidgetSuiteProps extends WidgetProviderProps {
635
686
  labels?: PartialDeep<WidgetSuiteShellLabels>;
636
687
  /** Overrides for the section names in the menu. */
637
688
  sectionLabels?: Partial<WidgetSuiteSectionLabels>;
689
+ /**
690
+ * Overrides for the section heading's own copy — today the bank tagline, whose
691
+ * `{bankName}` placeholder is filled with the bank `/init` names.
692
+ */
693
+ sectionTitleLabels?: Partial<WidgetSuiteSectionTitleLabels>;
694
+ /**
695
+ * Overrides for the copy inside a section's panel: the two card-list titles
696
+ * and the Expenses placeholder.
697
+ */
698
+ contentLabels?: PartialDeep<WidgetSuiteContentLabels>;
699
+ /**
700
+ * Shows a heading above each section, named as its menu item is.
701
+ *
702
+ * Defaults to `true`: the suite owns its page, and a page with a menu but no
703
+ * heading reads as a fragment of someone else's. Set `false` when the host
704
+ * already renders a heading of its own above the suite.
705
+ *
706
+ * Sections whose widget heads itself (Accounts, Settings) never get one, at
707
+ * any setting — see `rendersOwnTitle` in `sections.tsx`.
708
+ */
709
+ showSectionTitle?: boolean;
638
710
  }
639
711
  /**
640
712
  * A suite of widgets bound together by navigation.
@@ -656,5 +728,5 @@ interface WidgetSuiteProps extends WidgetProviderProps {
656
728
  */
657
729
  declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
658
730
 
659
- export { WIDGET_SUITE_SECTION_LABELS_EN, WIDGET_SUITE_SHELL_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
660
- export type { PartialDeep, WidgetSuiteProps, WidgetSuiteSectionLabels, WidgetSuiteShellLabels };
731
+ export { WIDGET_SUITE_CONTENT_LABELS_EN, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_SECTION_LABELS_EN, WIDGET_SUITE_SECTION_TITLE_LABELS_EN, WIDGET_SUITE_SHELL_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
732
+ export type { PartialDeep, WidgetSuiteContentLabels, WidgetSuiteProps, WidgetSuiteSectionLabels, WidgetSuiteSectionTitleLabels, WidgetSuiteShellLabels };
@@ -1,6 +1,6 @@
1
- import { WIDGET_SUITE_SECTION_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js";
2
- import { WidgetSuiteSectionId as t } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js";
3
- import { WIDGET_SUITE_SHELL_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js";
4
- import { WidgetSuite as r } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js";
1
+ import { WIDGET_SUITE_CONTENT_LABELS_EN as e, WIDGET_SUITE_SECTION_LABELS_EN as t, WIDGET_SUITE_SECTION_TITLE_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js";
2
+ import { WIDGET_SUITE_DEFAULT_SECTIONS as r, WidgetSuiteSectionId as i } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js";
3
+ import { WIDGET_SUITE_SHELL_LABELS_EN as a } from "../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js";
4
+ import { WidgetSuite as o } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js";
5
5
  import "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index.js";
6
- export { e as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SHELL_LABELS_EN, r as WidgetSuite, t as WidgetSuiteSectionId };
6
+ export { e as WIDGET_SUITE_CONTENT_LABELS_EN, r as WIDGET_SUITE_DEFAULT_SECTIONS, t as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SECTION_TITLE_LABELS_EN, a as WIDGET_SUITE_SHELL_LABELS_EN, o as WidgetSuite, i as WidgetSuiteSectionId };
@@ -591,16 +591,32 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
591
591
  }
592
592
 
593
593
  /**
594
- * The sections this pass wires. Three of a planned eight (EMBD-4873): enough to
595
- * exercise an ungated section, a scope-gated one, and a widget that gates its
596
- * own subsections, without eight widgets' worth of integration noise.
594
+ * The sections the suite can offer, declared in the default menu order
595
+ * (EMBD-4875). Order here is documentation only the suite renders whatever
596
+ * order its `sections` prop lists.
597
597
  */
598
598
  declare const WidgetSuiteSectionId: {
599
+ readonly Dashboard: "dashboard";
599
600
  readonly Accounts: "accounts";
600
601
  readonly Cards: "cards";
602
+ readonly Transfers: "transfers";
603
+ readonly BillPay: "bill-pay";
604
+ readonly Invoicing: "invoicing";
605
+ readonly Expenses: "expenses";
601
606
  readonly Settings: "settings";
602
607
  };
603
608
  type WidgetSuiteSectionId = (typeof WidgetSuiteSectionId)[keyof typeof WidgetSuiteSectionId];
609
+ /**
610
+ * The whole surface in the shipped white-label header order
611
+ * (`useDashboardLayout.tsx`): its banking group, then its finops group, then
612
+ * Settings, which white label keeps in the avatar menu rather than the header.
613
+ *
614
+ * Exported as a constant to spread rather than wired up as a default for
615
+ * `sections`, which stays required. A default would make a host's page
616
+ * composition invisible at the call site and would grow silently every time a
617
+ * section is added here. The zero-config wrapper is the intended consumer.
618
+ */
619
+ declare const WIDGET_SUITE_DEFAULT_SECTIONS: readonly ["dashboard", "accounts", "cards", "transfers", "bill-pay", "invoicing", "expenses", "settings"];
604
620
 
605
621
  /**
606
622
  * The section names in the suite menu.
@@ -615,7 +631,42 @@ type WidgetSuiteSectionId = (typeof WidgetSuiteSectionId)[keyof typeof WidgetSui
615
631
  * `BillPayWidgetNative` makes between `labels` and `tabsLabels`.
616
632
  */
617
633
  type WidgetSuiteSectionLabels = Record<WidgetSuiteSectionId, string>;
634
+ /** Copy for the heading above a section, as opposed to its menu item. */
635
+ interface WidgetSuiteSectionTitleLabels {
636
+ /**
637
+ * The bank attribution beneath the heading. `{bankName}` is replaced with the
638
+ * bank `/init` names, so a translation can put it anywhere in the sentence
639
+ * rather than after a fixed lead-in. An override that drops the placeholder
640
+ * shows no name.
641
+ */
642
+ bankTagline: string;
643
+ }
644
+ /**
645
+ * Copy the suite puts *inside* a section's panel, rather than in its menu or
646
+ * heading. Each group is shaped as the props of the widget it is handed to, so
647
+ * the merged object below can be passed down by reference.
648
+ */
649
+ interface WidgetSuiteContentLabels {
650
+ /**
651
+ * `CardsList` renders its own `labels.title` as the list heading, defaulting
652
+ * to "Cards". Two instances stack in the Cards section, so each is retitled by
653
+ * program.
654
+ */
655
+ creditCards: {
656
+ title: string;
657
+ };
658
+ debitCards: {
659
+ title: string;
660
+ };
661
+ /** Expenses is only a placeholder until the suite wires a read/self surface. */
662
+ expensePlaceholders: {
663
+ expensesUnavailable: string;
664
+ };
665
+ }
666
+ /** Named as the shipped white-label header names them. */
618
667
  declare const WIDGET_SUITE_SECTION_LABELS_EN: WidgetSuiteSectionLabels;
668
+ declare const WIDGET_SUITE_SECTION_TITLE_LABELS_EN: WidgetSuiteSectionTitleLabels;
669
+ declare const WIDGET_SUITE_CONTENT_LABELS_EN: WidgetSuiteContentLabels;
619
670
 
620
671
  interface WidgetSuiteProps extends WidgetProviderProps {
621
672
  /**
@@ -635,6 +686,27 @@ interface WidgetSuiteProps extends WidgetProviderProps {
635
686
  labels?: PartialDeep<WidgetSuiteShellLabels>;
636
687
  /** Overrides for the section names in the menu. */
637
688
  sectionLabels?: Partial<WidgetSuiteSectionLabels>;
689
+ /**
690
+ * Overrides for the section heading's own copy — today the bank tagline, whose
691
+ * `{bankName}` placeholder is filled with the bank `/init` names.
692
+ */
693
+ sectionTitleLabels?: Partial<WidgetSuiteSectionTitleLabels>;
694
+ /**
695
+ * Overrides for the copy inside a section's panel: the two card-list titles
696
+ * and the Expenses placeholder.
697
+ */
698
+ contentLabels?: PartialDeep<WidgetSuiteContentLabels>;
699
+ /**
700
+ * Shows a heading above each section, named as its menu item is.
701
+ *
702
+ * Defaults to `true`: the suite owns its page, and a page with a menu but no
703
+ * heading reads as a fragment of someone else's. Set `false` when the host
704
+ * already renders a heading of its own above the suite.
705
+ *
706
+ * Sections whose widget heads itself (Accounts, Settings) never get one, at
707
+ * any setting — see `rendersOwnTitle` in `sections.tsx`.
708
+ */
709
+ showSectionTitle?: boolean;
638
710
  }
639
711
  /**
640
712
  * A suite of widgets bound together by navigation.
@@ -656,5 +728,5 @@ interface WidgetSuiteProps extends WidgetProviderProps {
656
728
  */
657
729
  declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
658
730
 
659
- export { WIDGET_SUITE_SECTION_LABELS_EN, WIDGET_SUITE_SHELL_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
660
- export type { PartialDeep, WidgetSuiteProps, WidgetSuiteSectionLabels, WidgetSuiteShellLabels };
731
+ export { WIDGET_SUITE_CONTENT_LABELS_EN, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_SECTION_LABELS_EN, WIDGET_SUITE_SECTION_TITLE_LABELS_EN, WIDGET_SUITE_SHELL_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
732
+ export type { PartialDeep, WidgetSuiteContentLabels, WidgetSuiteProps, WidgetSuiteSectionLabels, WidgetSuiteSectionTitleLabels, WidgetSuiteShellLabels };
@@ -1,6 +1,6 @@
1
- import { WIDGET_SUITE_SECTION_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js";
2
- import { WidgetSuiteSectionId as t } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js";
3
- import { WIDGET_SUITE_SHELL_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js";
4
- import { WidgetSuite as r } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js";
1
+ import { WIDGET_SUITE_CONTENT_LABELS_EN as e, WIDGET_SUITE_SECTION_LABELS_EN as t, WIDGET_SUITE_SECTION_TITLE_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js";
2
+ import { WIDGET_SUITE_DEFAULT_SECTIONS as r, WidgetSuiteSectionId as i } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js";
3
+ import { WIDGET_SUITE_SHELL_LABELS_EN as a } from "../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js";
4
+ import { WidgetSuite as o } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js";
5
5
  import "./WidgetSuite.js";
6
- export { e as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SHELL_LABELS_EN, r as WidgetSuite, t as WidgetSuiteSectionId };
6
+ export { e as WIDGET_SUITE_CONTENT_LABELS_EN, r as WIDGET_SUITE_DEFAULT_SECTIONS, t as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SECTION_TITLE_LABELS_EN, a as WIDGET_SUITE_SHELL_LABELS_EN, o as WidgetSuite, i as WidgetSuiteSectionId };
package/dist/index.d.ts CHANGED
@@ -3976,6 +3976,14 @@ declare function ProductsWidget({ baseUrl, widgetToken, organizationId, configCl
3976
3976
  interface Labels$2 {
3977
3977
  loadingLabel: string;
3978
3978
  errorLabel: string;
3979
+ /**
3980
+ * Lead-in for the contact line, rendered as
3981
+ * `{contactPrefix} {bankName} {link}.` when both a bank name and a contact
3982
+ * URL are available.
3983
+ */
3984
+ contactPrefix: string;
3985
+ /** Text of the contact link (wraps the contact URL). */
3986
+ contactLinkText: string;
3979
3987
  }
3980
3988
 
3981
3989
  interface FeatureLabels$3 {
@@ -3995,6 +4003,14 @@ interface FeatureLabels$3 {
3995
4003
  interface ProfileWidgetProps extends WidgetProviderProps {
3996
4004
  labels?: Partial<Labels$2>;
3997
4005
  featureLabels?: Partial<FeatureLabels$3>;
4006
+ /**
4007
+ * Where the "to change this information, contact your bank" line links (a
4008
+ * support page URL or a `mailto:`). Left unset, the card shows the plain
4009
+ * unlinked sentence instead — the package has no tenant-agnostic support
4010
+ * address to fall back on. The bank name in that line comes from widget init,
4011
+ * so this is the only value a host needs to supply.
4012
+ */
4013
+ contactUrl?: string;
3998
4014
  }
3999
4015
  declare function ProfileWidget({ baseUrl, widgetToken, organizationId, configClient, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: ProfileWidgetProps): React.JSX.Element;
4000
4016
 
@@ -4012,6 +4028,12 @@ interface Labels$1 {
4012
4028
  description?: string;
4013
4029
  }
4014
4030
 
4031
+ interface SettingsWidgetSection {
4032
+ id: string;
4033
+ label: string;
4034
+ content: ReactNode;
4035
+ }
4036
+
4015
4037
  interface FeatureLabels$2 {
4016
4038
  profileSection: string;
4017
4039
  teamSection: string;
@@ -4025,6 +4047,46 @@ interface FeatureLabels$2 {
4025
4047
  expenseRequirementsTab: string;
4026
4048
  }
4027
4049
 
4050
+ /**
4051
+ * The sections this widget renders itself. These ids are the public vocabulary
4052
+ * a host uses to deep-link into a section, so they are part of the package's
4053
+ * API surface — renaming one is a breaking change.
4054
+ */
4055
+ declare const SettingsSection: {
4056
+ readonly Profile: "profile";
4057
+ readonly Team: "team";
4058
+ readonly Invoice: "invoice";
4059
+ readonly Expense: "expense";
4060
+ readonly BillPay: "bill-pay";
4061
+ readonly Accounting: "accounting";
4062
+ readonly Tags: "tags";
4063
+ readonly Help: "help";
4064
+ };
4065
+ type SettingsSection = (typeof SettingsSection)[keyof typeof SettingsSection];
4066
+ /**
4067
+ * A selectable section id: one of the built-ins, or the id of a host-supplied
4068
+ * {@link SettingsWidgetAdditionalSection}. The `string & {}` arm keeps the
4069
+ * built-in literals visible to editor autocomplete while still accepting a
4070
+ * host's own id.
4071
+ */
4072
+ type SettingsWidgetSectionId = SettingsSection | (string & {});
4073
+ /**
4074
+ * A section contributed by the host, rendered alongside the built-in ones.
4075
+ *
4076
+ * This exists for surfaces the published package cannot own — the white-label
4077
+ * dashboard's password management, for instance, which is an app-auth concern
4078
+ * rather than an embedded one. Prefer the `*Content` props when replacing the
4079
+ * content of a section that already exists.
4080
+ */
4081
+ interface SettingsWidgetAdditionalSection extends SettingsWidgetSection {
4082
+ /**
4083
+ * Place this section immediately after the named built-in one. Sections with
4084
+ * no `after` — and those whose anchor is hidden by scope gating — are
4085
+ * appended to the end of the list.
4086
+ */
4087
+ after?: SettingsSection;
4088
+ }
4089
+
4028
4090
  interface SettingsWidgetProps extends MoniteRegionProviderProps {
4029
4091
  labels?: Partial<Labels$1>;
4030
4092
  featureLabels?: Partial<FeatureLabels$2>;
@@ -4040,6 +4102,22 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
4040
4102
  * support address to fall back on. The bank name in that line comes from
4041
4103
  * widget init, so this is the only value a host needs to supply. */
4042
4104
  helpContactUrl?: string;
4105
+ /** Forwarded to the embedded Profile section's {@link ProfileWidget} — where
4106
+ * its "to change this information, contact your bank" line links. The line
4107
+ * falls back to a plain, unlinked sentence when unset, for the same reason
4108
+ * {@link SettingsWidgetProps.helpContactUrl} does. */
4109
+ profileContactUrl?: string;
4110
+ /** The section to show. Leave unset to let the widget own the selection;
4111
+ * supply it (with {@link SettingsWidgetProps.onSelectedSectionChange}) to
4112
+ * drive navigation from a route, a search param, or host state. A section
4113
+ * hidden by the user's scopes falls back to the first visible one. */
4114
+ selectedSection?: SettingsWidgetSectionId;
4115
+ /** Called with the id of the section the user selected. Fires whether or not
4116
+ * {@link SettingsWidgetProps.selectedSection} is supplied, so a host can mirror
4117
+ * the selection into its URL without taking ownership of it. */
4118
+ onSelectedSectionChange?: (section: SettingsWidgetSectionId) => void;
4119
+ /** Host-owned sections rendered alongside the built-in ones. */
4120
+ additionalSections?: SettingsWidgetAdditionalSection[];
4043
4121
  profileContent?: ReactNode;
4044
4122
  teamContent?: ReactNode;
4045
4123
  billPayContent?: ReactNode;
@@ -4555,5 +4633,5 @@ interface GapCoverageAlertProps {
4555
4633
 
4556
4634
  type PendingFeatureStyleSources = GapCoverageAlertProps | NoPolicyBannerProps;
4557
4635
 
4558
- export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ACCOUNT_DELETE_DIALOG_LABELS_EN, ACCOUNT_FORM_SHEET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, AccountDeleteDialog, AccountFormSheet, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CHART_OF_ACCOUNTS_LABELS_EN, CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, CREATE_CARD_FEATURE_LABELS_EN, CardDetailsWidget, CardFormatValue, CardsWidget, ChartOfAccountsTable, ChartOfAccountsWidget, CounterpartsWidget, CreateCardWidget, ExpenseApprovalPoliciesWidget, ExpenseManagementWidget, ExpenseRequirementsWidget, HELP_FAQ_EN, HELP_WIDGET_LABELS_EN, HelpWidget, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, ProfileWidget, RESULT_LABELS_EN, ReceiptMatchWidget, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TagsWidget, TeamWidget, TransfersWidget, UIFramework, UploadReceiptWidget, WidgetProvider, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, resolveCreateCardFeatureLabels, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetLoading, useWidgetToken };
4559
- export type { AcceptDisclosuresLinks, AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccountDeleteDialogLabels, AccountDeleteDialogProps, Labels$5 as AccountDetailsWidgetLabels, AccountFormErrors, AccountFormMode, AccountFormSheetLabels, AccountFormSheetProps, AccountFormValues, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$5 as BankAccountsWidgetFeatureLabels, Labels$6 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels as CardsWidgetFeatureLabels, CardsListLabels as CardsWidgetLabels, CardsWidgetPagination, CardsWidgetProps, ChartOfAccountsLabels, ChartOfAccountsMessageLabels, ChartOfAccountsTableProps, ChartOfAccountsWidgetLabelProps, ChartOfAccountsWidgetProps, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreateCardFeatureLabels, CreateCardWidgetLabels, CreateCardWidgetProps, DisclosureLinks, EmbeddedClient, ExpenseApprovalPoliciesWidgetProps, Labels$4 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseRequirementsWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, HelpWidgetLabels, HelpWidgetProps, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LedgerAccountRow, LinkComponent, LinkComponentProps, FeatureLabels$4 as LinkedAccountsWidgetFeatureLabels, Labels$3 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetContent, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, FeatureLabels$3 as ProfileWidgetFeatureLabels, Labels$2 as ProfileWidgetLabels, ProfileWidgetProps, ReceiptMatchSummary, ReceiptMatchWidgetProps, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, FeatureLabels$2 as SettingsWidgetFeatureLabels, Labels$1 as SettingsWidgetLabels, SettingsWidgetProps, SingleInsightLabels, TagDeleteDialogLabels, TagFormSheetLabels, TagMessageLabels, TagsScreenLabels, TagsWidgetProps, FeatureLabels$1 as TeamWidgetFeatureLabels, Labels as TeamWidgetLabels, TeamWidgetProps, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderProps, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
4636
+ export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ACCOUNT_DELETE_DIALOG_LABELS_EN, ACCOUNT_FORM_SHEET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, AccountDeleteDialog, AccountFormSheet, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CHART_OF_ACCOUNTS_LABELS_EN, CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, CREATE_CARD_FEATURE_LABELS_EN, CardDetailsWidget, CardFormatValue, CardsWidget, ChartOfAccountsTable, ChartOfAccountsWidget, CounterpartsWidget, CreateCardWidget, ExpenseApprovalPoliciesWidget, ExpenseManagementWidget, ExpenseRequirementsWidget, HELP_FAQ_EN, HELP_WIDGET_LABELS_EN, HelpWidget, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, ProfileWidget, RESULT_LABELS_EN, ReceiptMatchWidget, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TagsWidget, TeamWidget, TransfersWidget, UIFramework, UploadReceiptWidget, WidgetProvider, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, resolveCreateCardFeatureLabels, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetLoading, useWidgetToken };
4637
+ export type { AcceptDisclosuresLinks, AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccountDeleteDialogLabels, AccountDeleteDialogProps, Labels$5 as AccountDetailsWidgetLabels, AccountFormErrors, AccountFormMode, AccountFormSheetLabels, AccountFormSheetProps, AccountFormValues, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$5 as BankAccountsWidgetFeatureLabels, Labels$6 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels as CardsWidgetFeatureLabels, CardsListLabels as CardsWidgetLabels, CardsWidgetPagination, CardsWidgetProps, ChartOfAccountsLabels, ChartOfAccountsMessageLabels, ChartOfAccountsTableProps, ChartOfAccountsWidgetLabelProps, ChartOfAccountsWidgetProps, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreateCardFeatureLabels, CreateCardWidgetLabels, CreateCardWidgetProps, DisclosureLinks, EmbeddedClient, ExpenseApprovalPoliciesWidgetProps, Labels$4 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseRequirementsWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, HelpWidgetLabels, HelpWidgetProps, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LedgerAccountRow, LinkComponent, LinkComponentProps, FeatureLabels$4 as LinkedAccountsWidgetFeatureLabels, Labels$3 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetContent, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, FeatureLabels$3 as ProfileWidgetFeatureLabels, Labels$2 as ProfileWidgetLabels, ProfileWidgetProps, ReceiptMatchSummary, ReceiptMatchWidgetProps, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$2 as SettingsWidgetFeatureLabels, Labels$1 as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TagDeleteDialogLabels, TagFormSheetLabels, TagMessageLabels, TagsScreenLabels, TagsWidgetProps, FeatureLabels$1 as TeamWidgetFeatureLabels, Labels as TeamWidgetLabels, TeamWidgetProps, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderProps, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
package/dist/index.js CHANGED
@@ -33,12 +33,12 @@ import { ExpenseManagementWidget as N } from "./libs/tesouro-embedded-components
33
33
  import "./lib/ExpenseManagementWidget.js";
34
34
  import "./lib/ExpenseApprovalPoliciesWidget.js";
35
35
  import "./lib/ExpenseRequirementsWidget.js";
36
- import { BALANCES_WIDGET_LABELS_EN as P } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/index2.js";
36
+ import { BALANCES_WIDGET_LABELS_EN as P } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
37
37
  import { BalancesWidget as F } from "./libs/tesouro-embedded-components-react/balances-widget/feature/dist/index5.js";
38
38
  import "./lib/BalancesWidget.js";
39
39
  import { INSIGHTS_FEATURE_LABELS_EN as I } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index3.js";
40
- import { INSIGHTS_WIDGET_LABELS_EN as L } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/index2.js";
41
- import { SINGLE_INSIGHT_LABELS_EN as R } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/index4.js";
40
+ import { INSIGHTS_WIDGET_LABELS_EN as L } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
41
+ import { SINGLE_INSIGHT_LABELS_EN as R } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
42
42
  import { InsightsWidget as z } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js";
43
43
  import "./lib/InsightsWidget.js";
44
44
  import { CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN as B } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index5.js";
@@ -70,17 +70,18 @@ import "./lib/ProfileWidget.js";
70
70
  import "./lib/ReceivablesWidget.js";
71
71
  import { ReceiptMatchWidget as se } from "./libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js";
72
72
  import "./lib/ReceiptMatchWidget.js";
73
- import { TagsWidget as ce } from "./libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js";
74
- import { TeamWidget as le } from "./libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js";
75
- import { SettingsWidget as ue } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js";
73
+ import { SettingsSection as ce } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js";
74
+ import { TagsWidget as le } from "./libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js";
75
+ import { TeamWidget as ue } from "./libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js";
76
+ import { SettingsWidget as de } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
76
77
  import "./lib/SettingsWidget.js";
77
78
  import "./lib/TagsWidget.js";
78
79
  import "./lib/TeamWidget.js";
79
- import { DEFAULT_FEATURE_LABELS as de } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index3.js";
80
- import { TRANSFERS_WIDGET_LABELS_EN as fe } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index9.js";
81
- import { TransfersWidget as pe } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js";
80
+ import { DEFAULT_FEATURE_LABELS as fe } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index3.js";
81
+ import { TRANSFERS_WIDGET_LABELS_EN as pe } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
82
+ import { TransfersWidget as me } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js";
82
83
  import "./lib/TransfersWidget.js";
83
84
  import "./lib/UploadReceiptWidget.js";
84
- import { WidgetProvider as me } from "./lib/WidgetProviderPublic.js";
85
+ import { WidgetProvider as he } from "./lib/WidgetProviderPublic.js";
85
86
  import "./lib/WidgetProvider.js";
86
- export { e as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, V as ACCOUNT_DELETE_DIALOG_LABELS_EN, H as ACCOUNT_FORM_SHEET_LABELS_EN, ee as ADDITIONAL_OWNERS_LABELS_EN, b as AcceptDisclosuresWidget, K as AccountDeleteDialog, G as AccountFormSheet, P as BALANCES_WIDGET_LABELS_EN, te as BUSINESS_DETAILS_LABELS_EN, F as BalancesWidget, ie as BankAccountOnboardingWidget, x as BankAccountsWidget, C as BillPayWidget, U as CHART_OF_ACCOUNTS_LABELS_EN, B as CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, E as CREATE_CARD_FEATURE_LABELS_EN, w as CardDetailsWidget, T as CardFormatValue, k as CardsWidget, W as ChartOfAccountsTable, q as ChartOfAccountsWidget, S as CounterpartsWidget, O as CreateCardWidget, A as ExpenseApprovalPoliciesWidget, N as ExpenseManagementWidget, j as ExpenseRequirementsWidget, Y as HELP_FAQ_EN, J as HELP_WIDGET_LABELS_EN, X as HelpWidget, I as INSIGHTS_FEATURE_LABELS_EN, L as INSIGHTS_WIDGET_LABELS_EN, n as Implementation, z as InsightsWidget, Z as InvoicingWidget, $ as LinkedAccountsWidget, ne as PERSONAL_DETAILS_LABELS_EN, ae as ProductsWidget, oe as ProfileWidget, re as RESULT_LABELS_EN, se as ReceiptMatchWidget, Q as ReceivablesWidget, m as RefreshingRootWidgetProvider, d as RootWidgetProvider, R as SINGLE_INSIGHT_LABELS_EN, ue as SettingsWidget, de as TRANSFERS_FEATURE_LABELS_EN, fe as TRANSFERS_WIDGET_LABELS_EN, ce as TagsWidget, le as TeamWidget, pe as TransfersWidget, c as UIFramework, M as UploadReceiptWidget, me as WidgetProvider, f as WidgetTokenRefreshProvider, t as cloneEmbeddedClient, r as getGlobalWidgetConfig, o as getGlobalWidgetInitState, l as registerDesignSystemEnsurer, u as registerUIRenderers, D as resolveCreateCardFeatureLabels, i as setGlobalWidgetConfig, s as subscribeToGlobalWidgetInitState, a as updateGlobalWidgetConfig, h as useOwnWidgetConfig, g as useRefetchWidget, _ as useWidgetConfig, v as useWidgetError, y as useWidgetLoading, p as useWidgetToken };
87
+ export { e as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, V as ACCOUNT_DELETE_DIALOG_LABELS_EN, H as ACCOUNT_FORM_SHEET_LABELS_EN, ee as ADDITIONAL_OWNERS_LABELS_EN, b as AcceptDisclosuresWidget, K as AccountDeleteDialog, G as AccountFormSheet, P as BALANCES_WIDGET_LABELS_EN, te as BUSINESS_DETAILS_LABELS_EN, F as BalancesWidget, ie as BankAccountOnboardingWidget, x as BankAccountsWidget, C as BillPayWidget, U as CHART_OF_ACCOUNTS_LABELS_EN, B as CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, E as CREATE_CARD_FEATURE_LABELS_EN, w as CardDetailsWidget, T as CardFormatValue, k as CardsWidget, W as ChartOfAccountsTable, q as ChartOfAccountsWidget, S as CounterpartsWidget, O as CreateCardWidget, A as ExpenseApprovalPoliciesWidget, N as ExpenseManagementWidget, j as ExpenseRequirementsWidget, Y as HELP_FAQ_EN, J as HELP_WIDGET_LABELS_EN, X as HelpWidget, I as INSIGHTS_FEATURE_LABELS_EN, L as INSIGHTS_WIDGET_LABELS_EN, n as Implementation, z as InsightsWidget, Z as InvoicingWidget, $ as LinkedAccountsWidget, ne as PERSONAL_DETAILS_LABELS_EN, ae as ProductsWidget, oe as ProfileWidget, re as RESULT_LABELS_EN, se as ReceiptMatchWidget, Q as ReceivablesWidget, m as RefreshingRootWidgetProvider, d as RootWidgetProvider, R as SINGLE_INSIGHT_LABELS_EN, ce as SettingsSection, de as SettingsWidget, fe as TRANSFERS_FEATURE_LABELS_EN, pe as TRANSFERS_WIDGET_LABELS_EN, le as TagsWidget, ue as TeamWidget, me as TransfersWidget, c as UIFramework, M as UploadReceiptWidget, he as WidgetProvider, f as WidgetTokenRefreshProvider, t as cloneEmbeddedClient, r as getGlobalWidgetConfig, o as getGlobalWidgetInitState, l as registerDesignSystemEnsurer, u as registerUIRenderers, D as resolveCreateCardFeatureLabels, i as setGlobalWidgetConfig, s as subscribeToGlobalWidgetInitState, a as updateGlobalWidgetConfig, h as useOwnWidgetConfig, g as useRefetchWidget, _ as useWidgetConfig, v as useWidgetError, y as useWidgetLoading, p as useWidgetToken };
@@ -1,4 +1,4 @@
1
- import { BALANCES_WIDGET_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/balances-widget/ui/dist/index2.js";
1
+ import { BALANCES_WIDGET_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
2
2
  import "../libs/tesouro-embedded-components-react/balances-widget/ui/dist/index.js";
3
3
  import { BalancesWidget as t } from "../libs/tesouro-embedded-components-react/balances-widget/feature/dist/index5.js";
4
4
  import "../libs/tesouro-embedded-components-react/balances-widget/feature/dist/index.js";
@@ -1,6 +1,6 @@
1
1
  import { INSIGHTS_FEATURE_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index3.js";
2
- import { INSIGHTS_WIDGET_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index2.js";
3
- import { SINGLE_INSIGHT_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index4.js";
2
+ import { INSIGHTS_WIDGET_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
3
+ import { SINGLE_INSIGHT_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
4
4
  import "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index.js";
5
5
  import { InsightsWidget as r } from "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js";
6
6
  import "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index.js";
@@ -5,6 +5,14 @@ import { FallbackProps } from 'react-error-boundary';
5
5
  interface Labels {
6
6
  loadingLabel: string;
7
7
  errorLabel: string;
8
+ /**
9
+ * Lead-in for the contact line, rendered as
10
+ * `{contactPrefix} {bankName} {link}.` when both a bank name and a contact
11
+ * URL are available.
12
+ */
13
+ contactPrefix: string;
14
+ /** Text of the contact link (wraps the contact URL). */
15
+ contactLinkText: string;
8
16
  }
9
17
 
10
18
  type AuthToken = string | undefined;
@@ -588,6 +596,14 @@ interface FeatureLabels {
588
596
  interface ProfileWidgetProps extends WidgetProviderProps {
589
597
  labels?: Partial<Labels>;
590
598
  featureLabels?: Partial<FeatureLabels>;
599
+ /**
600
+ * Where the "to change this information, contact your bank" line links (a
601
+ * support page URL or a `mailto:`). Left unset, the card shows the plain
602
+ * unlinked sentence instead — the package has no tenant-agnostic support
603
+ * address to fall back on. The bank name in that line comes from widget init,
604
+ * so this is the only value a host needs to supply.
605
+ */
606
+ contactUrl?: string;
591
607
  }
592
608
  declare function ProfileWidget({ baseUrl, widgetToken, organizationId, configClient, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: ProfileWidgetProps): React.JSX.Element;
593
609