@tesouro/embedded-components-react 0.5.233 → 0.5.236

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 (87) hide show
  1. package/README.md +19 -14
  2. package/dist/index.d.ts +175 -16
  3. package/dist/index.js +1 -1
  4. package/dist/lib/BankAccountOnboardingWidget.d.ts +39 -1
  5. package/dist/lib/ReceivablesWidget.d.ts +110 -1
  6. package/dist/lib/ReceivablesWidget.js +1 -1
  7. package/dist/lib/WidgetSuite.d.ts +65 -15
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +3 -2
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +2 -1
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -0
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index23.js +15 -11
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index26.js +441 -409
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +18 -14
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +3 -3
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +210 -208
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +98 -40
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +159 -39
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +53 -77
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +99 -132
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js +40 -341
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index37.js +43 -0
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index38.js +92 -0
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index39.js +146 -0
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index40.js +354 -0
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +1 -1
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +28 -24
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -37
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +9 -214
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +27 -159
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +233 -14
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +34 -22
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +214 -2
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +153 -87
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +16 -3
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +22 -21
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +2 -51
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +30 -15
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +90 -14
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +3 -10
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +20 -69
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +51 -33
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +16 -17
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +8 -14
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +70 -30
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +33 -14
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +17 -25
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +12 -83
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +9 -121
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +28 -401
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +16 -2
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +22 -42
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +80 -65
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +383 -473
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +2 -106
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +48 -0
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +72 -2
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +498 -4
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +106 -1
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +141 -93
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -28
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +4 -236
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +0 -2
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +90 -239
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +24 -89
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +231 -54
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -353
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +249 -0
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +93 -0
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +3 -40
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +59 -0
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +353 -0
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +18 -2
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +121 -9
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +100 -27
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +38 -233
  83. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  84. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index16.js +123 -92
  85. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js +12 -5
  86. package/package.json +1 -1
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +0 -100
package/README.md CHANGED
@@ -452,20 +452,22 @@ Walks an applicant through bank-account onboarding: business details, personal d
452
452
 
453
453
  #### Props
454
454
 
455
- | Prop | Type | Default | Description |
456
- | ------------------------------------------- | ---------------------------------------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
457
- | `onEmbeddedOnboardingCompletedSuccessfully` | `() => void` | **Required** | Called when the application is approved and the account is open. |
458
- | `onNavigateToDashboard` | `() => void` | **Required** | Called when the user clicks the dashboard CTA on the result screen. |
459
- | `initialBusinessDetails` | `Partial<HostSupplied<BusinessDetailsValues>>` | `undefined` | Prefills step 1 (business details); the user can still edit. |
460
- | `initialPersonalDetails` | `Partial<HostSupplied<PersonalDetailsValues>>` | `undefined` | Prefills step 2 (personal details); the user can still edit. |
461
- | `initialAdditionalOwners` | `HostSuppliedOwner[]` | `[]` | Prefills step 3 (additional owners). |
462
- | `open` | `boolean` | `undefined` | Controlled open state for the modal; update it from `onOpenChange`. Omit for uncontrolled mode. |
463
- | `defaultOpen` | `boolean` | `false` | Initial open state when uncontrolled. Ignored when `open` is set. |
464
- | `onOpenChange` | `(open: boolean) => void` | `undefined` | Fires whenever the modal opens or closes (overlay click, Escape, close button, Cancel, save or delete). |
465
- | `labels` | `BankAccountOnboardingWidgetLabels` | English labels | Per-step and shell copy overrides, merged with the English defaults. |
466
- | `bankLogoSrc` | `string` | `undefined` | Bank logo URL for the result screen; falls back to the bank name as text. |
467
- | `disclosureLinks` | `DisclosureLinks` | `undefined` | URLs for Terms of Use, Privacy Policy, Electronic Communication and Patriot Act on step 1. You resolve these; omit to leave unset. |
468
- | `isFullScreenInline` | `boolean` | `false` | Renders inline, filling its container, instead of in a modal. `open` / `defaultOpen` are ignored. |
455
+ | Prop | Type | Default | Description |
456
+ | ------------------------------------------- | ---------------------------------------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
457
+ | `onEmbeddedOnboardingCompletedSuccessfully` | `() => void` | **Required** | Called when the application is approved and the account is open. |
458
+ | `onNavigateToDashboard` | `() => void` | **Required** | Called when the user clicks the dashboard CTA on the result screen. |
459
+ | `initialBusinessDetails` | `Partial<HostSupplied<BusinessDetailsValues>>` | `undefined` | Prefills step 1 (business details); the user can still edit. |
460
+ | `initialPersonalDetails` | `Partial<HostSupplied<PersonalDetailsValues>>` | `undefined` | Prefills step 2 (personal details); the user can still edit. |
461
+ | `initialAdditionalOwners` | `HostSuppliedOwner[]` | `[]` | Prefills step 3 (additional owners). |
462
+ | `open` | `boolean` | `undefined` | Controlled open state for the modal; update it from `onOpenChange`. Omit for uncontrolled mode. |
463
+ | `defaultOpen` | `boolean` | `false` | Initial open state when uncontrolled. Ignored when `open` is set. |
464
+ | `onOpenChange` | `(open: boolean) => void` | `undefined` | Fires whenever the modal opens or closes (overlay click, Escape, close button, Cancel, save or delete). |
465
+ | `labels` | `BankAccountOnboardingWidgetLabels` | English labels | Per-step and shell copy overrides, merged with the English defaults. |
466
+ | `bankLogoSrc` | `string` | `undefined` | Bank logo URL for the result screen; falls back to the bank name as text. |
467
+ | `disclosureLinks` | `DisclosureLinks` | `undefined` | URLs for Terms of Use, Privacy Policy, Electronic Communication and Patriot Act on step 1. You resolve these; omit to leave unset. |
468
+ | `isFullScreenInline` | `boolean` | `false` | Renders inline, filling its container, instead of in a modal. `open` / `defaultOpen` are ignored. |
469
+ | `showApplicationStatusRefresh` | `boolean` | `false` | Adds a **Check again** button to the application status card that re-reads the organization's application. Never shown over the form or result screens. |
470
+ | `onResultPhaseChange` | `(isInResultPhase: boolean) => void` | `undefined` | Called with `true` once the widget starts processing a submitted application, and with `false` if it unmounts after that. While `true` it keeps its processing or result screen up whatever the status read says, so leave it mounted. |
469
471
 
470
472
  ### MarketingWidget
471
473
 
@@ -507,12 +509,15 @@ Lists, creates, edits and acts on an organization's invoices, quotes and credit
507
509
  | -------------------------- | ---------------------------------------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
508
510
  | `defaultTab` | `ReceivablesWidgetTab` | `'invoices'` | Initial tab; if omitted or disabled, the widget starts on the first enabled tab. |
509
511
  | `enabledTabs` | `ReceivablesWidgetTab[]` | `['invoices', 'quotes', 'credit_notes']` | Tabs visible to the user. Duplicate or unknown values are ignored. |
512
+ | `initialCounterpartId` | `string` | `undefined` | Opens the invoice list filtered to this customer, with a chip naming them. Clear all removes it. |
510
513
  | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads with a page size of `10`. |
511
514
  | `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create or clone succeeds. |
512
515
  | `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row's details panel. |
513
516
  | `onTemplateSettingsClick` | `() => void` | `undefined` | Shows a template settings action in the header and calls this handler when clicked. |
514
517
  | `embeddedBankName` | `string` | `undefined` | Sponsor bank name shown as "Powered by {embeddedBankName}" next to embedded accounts in the invoice payment-account picker. Omitted when unset. |
515
518
  | `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Table, tab, filter, empty, error, action and status badge copy. |
519
+ | `filterBarLabels` | `InvoicesFilterBarLabelOverrides` | English labels | Invoice filter bar copy: field names, search, amount bounds, the customer panel and Clear all. |
520
+ | `filterLabels` | `InvoicesFilterLabelOverrides` | English labels | Invoice filter copy built from state: date presets, status descriptions and chip wording. |
516
521
  | `formLabels` | `Partial<ReceivableFormSheetLabels>` | English labels | Create/edit form copy; the save and issue buttons are in `messageLabels`. |
517
522
  | `detailsLabels` | `ReceivableDetailsPanelLabelOverrides` | English labels | Details panel copy. Status badge copy comes from `screenLabels.statusBadge`. |
518
523
  | `auditHistoryLabels` | `Partial<ReceivableAuditHistoryLabels>` | English labels | Audit history row copy. Document and status names follow `messageLabels` and `screenLabels.statusBadge` unless overridden here. |
package/dist/index.d.ts CHANGED
@@ -521,6 +521,50 @@ interface RequiredFieldsLegendLabels {
521
521
  marker: string;
522
522
  }
523
523
 
524
+ interface FilterMenuButtonLabels {
525
+ /** Button text, followed by "(N)" when `activeCount` is set. */
526
+ filters: string;
527
+ }
528
+
529
+ interface FilterTagLabels {
530
+ /**
531
+ * Accessible name for the editable tag body. `{label}` is substituted with
532
+ * the tag's own text; keep the placeholder when overriding.
533
+ */
534
+ edit: string;
535
+ /** Accessible name for the × dismiss button. `{label}` is substituted. */
536
+ remove: string;
537
+ }
538
+
539
+ interface DateRangePickerLabels {
540
+ /**
541
+ * Name of the preset field, rendered before the select (a `:` is appended by
542
+ * the component). Owners showing more than one date field pass the one that
543
+ * names theirs, e.g. "Due date range".
544
+ */
545
+ fieldLabel: string;
546
+ /** Select placeholder shown while the range matches no preset. */
547
+ presetPlaceholder: string;
548
+ }
549
+
550
+ interface AmountFilterLabels {
551
+ /**
552
+ * Rendered next to the min input. Owners pass the wording that matches their
553
+ * bound semantics — "No less than" for inclusive, "Greater than" for not.
554
+ */
555
+ min: string;
556
+ /** Rendered next to the max input. See {@link min}. */
557
+ max: string;
558
+ /** Amount-mode radio options. */
559
+ modeAny: string;
560
+ modeExact: string;
561
+ modeRange: string;
562
+ /** Flow-direction radio options, shown only when `showFlowDirection`. */
563
+ flowAny: string;
564
+ flowIn: string;
565
+ flowOut: string;
566
+ }
567
+
524
568
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
525
569
  children?: ReactNode;
526
570
  };
@@ -1869,6 +1913,11 @@ interface ApplicationStatusLabels {
1869
1913
  bankDisclosure: string;
1870
1914
  /** Screen-reader name of the dialog's close control, in modal mode. */
1871
1915
  close: string;
1916
+ /**
1917
+ * The re-check control under the card, shown only when the host opts in with
1918
+ * `showApplicationStatusRefresh`.
1919
+ */
1920
+ checkAgain: string;
1872
1921
  /**
1873
1922
  * Formats an application date (an ISO date-time from the status read). A
1874
1923
  * label, not a hardcoded formatter, so a host can localize it with the copy.
@@ -1879,6 +1928,12 @@ interface ApplicationStatusLabels {
1879
1928
  submittedByOther: ApplicationStatusNoticeLabels;
1880
1929
  deniedByYou: ApplicationStatusNoticeLabels;
1881
1930
  deniedByOther: ApplicationStatusNoticeLabels;
1931
+ /**
1932
+ * Shown when a re-check moves a card to a status this widget has nothing to
1933
+ * say about (one added after it shipped, say), so the
1934
+ * re-check control still has somewhere to live.
1935
+ */
1936
+ unavailable: ApplicationStatusNoticeLabels;
1882
1937
  }
1883
1938
  declare const APPLICATION_STATUS_LABELS_EN: ApplicationStatusLabels;
1884
1939
  interface BankAccountOnboardingWidgetLabels {
@@ -1976,6 +2031,12 @@ interface BankAccountOnboardingWidgetInnerProps {
1976
2031
  * scope can start a fresh one. Set by the session scope, not by hosts.
1977
2032
  */
1978
2033
  onApplicationDeleted?: () => void;
2034
+ /**
2035
+ * Called when a re-read of the status replaces a status card with the
2036
+ * form, so the session scope can re-take the resume decision it froze while
2037
+ * the card was showing. Set by the session scope, not by hosts.
2038
+ */
2039
+ onNoticeReplacedByForm?: () => void;
1979
2040
  bankLogoSrc?: string;
1980
2041
  /**
1981
2042
  * Host-resolved disclosure URLs for the business-details agreement step.
@@ -2009,8 +2070,29 @@ interface BankAccountOnboardingWidgetInnerProps {
2009
2070
  * to them (e.g. by unmounting the widget).
2010
2071
  */
2011
2072
  isFullScreenInline?: boolean;
2073
+ /**
2074
+ * Puts a "Check again" control under the application status card, which
2075
+ * re-reads the organization's application.
2076
+ *
2077
+ * The widget providers disable `refetchOnWindowFocus`, so without it a
2078
+ * session looking at a colleague's application has no way to see that
2079
+ * colleague finish short of a reload. Opt-in because a host with its own
2080
+ * refresh affordance (or one that remounts the widget) would get two. The
2081
+ * control renders only with the card, never over the form or the widget's
2082
+ * own processing and result screens.
2083
+ */
2084
+ showApplicationStatusRefresh?: boolean;
2085
+ /**
2086
+ * Called with `true` when the widget starts processing a submitted
2087
+ * application, and with `false` if it unmounts after that. In between, the
2088
+ * widget keeps its processing or result screen up whatever the status read
2089
+ * says, so a host that would otherwise replace the widget on a status change
2090
+ * (as `WidgetSuite` does when the widget would render nothing) should leave
2091
+ * it mounted while this is `true`.
2092
+ */
2093
+ onResultPhaseChange?: (isInResultPhase: boolean) => void;
2012
2094
  }
2013
- type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted'> & {
2095
+ type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm'> & {
2014
2096
  initialBusinessDetails?: Partial<HostSupplied<BusinessDetailsValues>>;
2015
2097
  initialPersonalDetails?: Partial<HostSupplied<PersonalDetailsValues>>;
2016
2098
  initialAdditionalOwners?: HostSuppliedOwner[];
@@ -3790,30 +3872,41 @@ interface WidgetSuiteDisclosureLabels {
3790
3872
  };
3791
3873
  }
3792
3874
  /**
3793
- * Copy for the suite's entry-point gate — which of onboarding, the "ask your
3794
- * admin" message, or the normal suite a fresh (non-invited) session sees
3875
+ * Copy for the suite's entry-point gate — which of onboarding, the
3876
+ * unavailable state, or the normal suite a fresh (non-invited) session sees
3795
3877
  * before the menu ever renders. Sibling to `disclosure`, which covers the
3796
- * acceptance half of that same gate; only the admin-message state needs copy
3797
- * here, since the onboarding widget and the normal shell carry their own.
3878
+ * acceptance half of that same gate; only the unavailable state needs copy
3879
+ * here, since the onboarding widget (form and status card alike) and the
3880
+ * normal shell carry their own.
3798
3881
  */
3799
3882
  interface WidgetSuiteOnboardingGateLabels {
3800
3883
  /**
3801
3884
  * Shown instead of the onboarding widget when the organization's
3802
- * bank-account application is already in progress under a different
3803
- * member. The backend allows one application per organization, so this
3804
- * session can neither start nor resume one — only that colleague, or an
3805
- * org admin, can move it forward.
3885
+ * bank-account application is one the widget renders nothing for: denied
3886
+ * more than 30 days ago, or in a status it has no copy for. Without it the
3887
+ * page would be blank.
3806
3888
  */
3807
- applicationInFlightState: {
3889
+ applicationUnavailableState: {
3808
3890
  title: string;
3809
3891
  body: string;
3810
3892
  /**
3811
3893
  * The widget providers disable `refetchOnWindowFocus`, so nothing else
3812
- * re-checks whether that colleague has since finished — this button is
3813
- * the only way forward short of a reload.
3894
+ * re-reads the status — this button is the only way forward short of a
3895
+ * reload.
3814
3896
  */
3815
3897
  retryButton: string;
3816
3898
  };
3899
+ /**
3900
+ * @deprecated Ignored since EMBD-6416. A colleague's application now shows
3901
+ * the onboarding widget's status card, whose copy is under
3902
+ * `onboarding.labels.applicationStatus`. Kept so an existing override still
3903
+ * compiles; it will be removed in a future major version.
3904
+ */
3905
+ applicationInFlightState: {
3906
+ title: string;
3907
+ body: string;
3908
+ retryButton: string;
3909
+ };
3817
3910
  }
3818
3911
  /**
3819
3912
  * A widget's whole copy surface: every label prop it accepts, spread onto it so
@@ -4020,9 +4113,10 @@ interface WidgetSuiteProps extends WidgetProviderProps {
4020
4113
  * before the shell renders: placeholders while either has not settled, a
4021
4114
  * closed retry state when init fails before answering the disclosure flags,
4022
4115
  * the acceptance surface alone when the session owes the bank's disclosures,
4023
- * full-screen onboarding for a session whose organization has no application
4024
- * yet, an "ask your admin" message when a teammate's is already in flight, or
4025
- * the nav over its sections. An invited session, or one this init already
4116
+ * full-screen onboarding for a prospect session (the form, or the widget's
4117
+ * status card for an application already under way), a closed "check again"
4118
+ * state for an application the widget has nothing to show for, or the nav
4119
+ * over its sections. An invited session, or one this init already
4026
4120
  * reports ACTIVE/INACTIVE, skips the application question entirely and goes
4027
4121
  * straight to the disclosure gate — which also means neither a failed
4028
4122
  * status read nor a teammate's in-flight application can blank the suite for
@@ -4850,6 +4944,34 @@ interface ProductMessageLabels {
4850
4944
  updateMeasureUnitError: string;
4851
4945
  }
4852
4946
 
4947
+ declare const InvoicesFilterField: {
4948
+ readonly DueDate: "dueDate";
4949
+ readonly CreatedAt: "createdAt";
4950
+ readonly IssueDate: "issueDate";
4951
+ readonly Status: "status";
4952
+ readonly Amount: "amount";
4953
+ readonly Customer: "customer";
4954
+ };
4955
+ type InvoicesFilterField = (typeof InvoicesFilterField)[keyof typeof InvoicesFilterField];
4956
+ type InvoicesDateFilterField = typeof InvoicesFilterField.DueDate | typeof InvoicesFilterField.CreatedAt | typeof InvoicesFilterField.IssueDate;
4957
+
4958
+ interface InvoicesFilterBarLabels {
4959
+ fields: Record<InvoicesFilterField, string>;
4960
+ searchPlaceholder: string;
4961
+ searchLabel: string;
4962
+ amountMin: string;
4963
+ amountMax: string;
4964
+ customerNameHeading: string;
4965
+ customerSearchPlaceholder: string;
4966
+ customerSearchHint: string;
4967
+ clearAll: string;
4968
+ filterMenuButton: FilterMenuButtonLabels;
4969
+ filterTag: FilterTagLabels;
4970
+ amountFilter: Omit<AmountFilterLabels, 'min' | 'max'>;
4971
+ dateRangePicker: Omit<DateRangePickerLabels, 'fieldLabel'>;
4972
+ }
4973
+ type InvoicesFilterBarLabelOverrides = PartialDeep<InvoicesFilterBarLabels>;
4974
+
4853
4975
  interface ReceivableActionsModalLabels {
4854
4976
  issueDescription: string;
4855
4977
  toLabel: string;
@@ -5149,6 +5271,39 @@ interface ReceivableActionDialogLabels {
5149
5271
  type ReceivableDocumentType = ReceivableDocumentKind;
5150
5272
  type ReceivablesWidgetTab = 'invoices' | 'quotes' | 'credit_notes';
5151
5273
 
5274
+ declare const InvoicesDatePreset: {
5275
+ readonly Today: "today";
5276
+ readonly ThisWeek: "this_week";
5277
+ readonly ThisMonth: "this_month";
5278
+ readonly ThisQuarter: "this_quarter";
5279
+ readonly ThisYear: "this_year";
5280
+ readonly Yesterday: "yesterday";
5281
+ readonly LastWeek: "last_week";
5282
+ readonly LastMonth: "last_month";
5283
+ readonly Last30Days: "last_30_days";
5284
+ readonly Last90Days: "last_90_days";
5285
+ readonly LastQuarter: "last_quarter";
5286
+ readonly LastYear: "last_year";
5287
+ };
5288
+ type InvoicesDatePreset = (typeof InvoicesDatePreset)[keyof typeof InvoicesDatePreset];
5289
+
5290
+ interface InvoicesFilterLabels {
5291
+ presets: Record<InvoicesDatePreset, string>;
5292
+ presetGroupCurrent: string;
5293
+ presetGroupPast: string;
5294
+ dateFieldNames: Record<InvoicesDateFilterField, string>;
5295
+ customRange: string;
5296
+ /** Shown under a status option; a status with no entry shows none. */
5297
+ statusDescriptions: Partial<Record<string, string>>;
5298
+ dateChip: (fieldLabel: string, range: string) => string;
5299
+ statusChip: (value: string) => string;
5300
+ moreSelected: (first: string, count: number) => string;
5301
+ customerChip: (name: string) => string;
5302
+ amountChip: string;
5303
+ searchChip: (value: string) => string;
5304
+ }
5305
+ type InvoicesFilterLabelOverrides = PartialDeep<InvoicesFilterLabels>;
5306
+
5152
5307
  interface ReceivableMessageLabels {
5153
5308
  customerRequired: string;
5154
5309
  customerAddressRequired: string;
@@ -5457,11 +5612,15 @@ interface ReceivablesWidgetOwnProps {
5457
5612
  /** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
5458
5613
  embeddedBankName?: string;
5459
5614
  enabledTabs?: ReceivablesWidgetTab[];
5615
+ /** Opens the invoice list filtered to this customer. */
5616
+ initialCounterpartId?: string;
5460
5617
  pageSizeOptions?: number[];
5461
5618
  onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
5462
5619
  onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
5463
5620
  onTemplateSettingsClick?: () => void;
5464
5621
  screenLabels?: ReceivablesScreenLabelOverrides;
5622
+ filterBarLabels?: InvoicesFilterBarLabelOverrides;
5623
+ filterLabels?: InvoicesFilterLabelOverrides;
5465
5624
  formLabels?: Partial<ReceivableFormSheetLabels>;
5466
5625
  detailsLabels?: ReceivableDetailsPanelLabelOverrides;
5467
5626
  auditHistoryLabels?: Partial<ReceivableAuditHistoryLabels>;
@@ -5908,4 +6067,4 @@ interface GapCoverageAlertProps {
5908
6067
  type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
5909
6068
 
5910
6069
  export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MARKETING_WIDGET_STATUS_LABELS_EN, MarketingBenefitIcon, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, UploadReceiptWidget, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
5911
- export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingStatusLabelValues, MarketingStatusNoticeLabels, MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MarketingWidgetStatusLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
6070
+ export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingStatusLabelValues, MarketingStatusNoticeLabels, MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MarketingWidgetStatusLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import { InsightsWidget as L } from "./libs/tesouro-embedded-components-react/in
27
27
  import { UploadReceiptWidget as R } from "./libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index2.js";
28
28
  import { ExpenseManagementWidget as z } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index19.js";
29
29
  import { InvoicingWidget as B } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js";
30
- import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js";
30
+ import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index40.js";
31
31
  import { SettingsSection as H } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js";
32
32
  import { HELP_FAQ_EN as U } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
33
33
  import { SettingsWidget as W } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
@@ -981,6 +981,11 @@ interface ApplicationStatusLabels {
981
981
  bankDisclosure: string;
982
982
  /** Screen-reader name of the dialog's close control, in modal mode. */
983
983
  close: string;
984
+ /**
985
+ * The re-check control under the card, shown only when the host opts in with
986
+ * `showApplicationStatusRefresh`.
987
+ */
988
+ checkAgain: string;
984
989
  /**
985
990
  * Formats an application date (an ISO date-time from the status read). A
986
991
  * label, not a hardcoded formatter, so a host can localize it with the copy.
@@ -991,6 +996,12 @@ interface ApplicationStatusLabels {
991
996
  submittedByOther: ApplicationStatusNoticeLabels;
992
997
  deniedByYou: ApplicationStatusNoticeLabels;
993
998
  deniedByOther: ApplicationStatusNoticeLabels;
999
+ /**
1000
+ * Shown when a re-check moves a card to a status this widget has nothing to
1001
+ * say about (one added after it shipped, say), so the
1002
+ * re-check control still has somewhere to live.
1003
+ */
1004
+ unavailable: ApplicationStatusNoticeLabels;
994
1005
  }
995
1006
  declare const APPLICATION_STATUS_LABELS_EN: ApplicationStatusLabels;
996
1007
  interface BankAccountOnboardingWidgetLabels {
@@ -1088,6 +1099,12 @@ interface BankAccountOnboardingWidgetInnerProps {
1088
1099
  * scope can start a fresh one. Set by the session scope, not by hosts.
1089
1100
  */
1090
1101
  onApplicationDeleted?: () => void;
1102
+ /**
1103
+ * Called when a re-read of the status replaces a status card with the
1104
+ * form, so the session scope can re-take the resume decision it froze while
1105
+ * the card was showing. Set by the session scope, not by hosts.
1106
+ */
1107
+ onNoticeReplacedByForm?: () => void;
1091
1108
  bankLogoSrc?: string;
1092
1109
  /**
1093
1110
  * Host-resolved disclosure URLs for the business-details agreement step.
@@ -1121,8 +1138,29 @@ interface BankAccountOnboardingWidgetInnerProps {
1121
1138
  * to them (e.g. by unmounting the widget).
1122
1139
  */
1123
1140
  isFullScreenInline?: boolean;
1141
+ /**
1142
+ * Puts a "Check again" control under the application status card, which
1143
+ * re-reads the organization's application.
1144
+ *
1145
+ * The widget providers disable `refetchOnWindowFocus`, so without it a
1146
+ * session looking at a colleague's application has no way to see that
1147
+ * colleague finish short of a reload. Opt-in because a host with its own
1148
+ * refresh affordance (or one that remounts the widget) would get two. The
1149
+ * control renders only with the card, never over the form or the widget's
1150
+ * own processing and result screens.
1151
+ */
1152
+ showApplicationStatusRefresh?: boolean;
1153
+ /**
1154
+ * Called with `true` when the widget starts processing a submitted
1155
+ * application, and with `false` if it unmounts after that. In between, the
1156
+ * widget keeps its processing or result screen up whatever the status read
1157
+ * says, so a host that would otherwise replace the widget on a status change
1158
+ * (as `WidgetSuite` does when the widget would render nothing) should leave
1159
+ * it mounted while this is `true`.
1160
+ */
1161
+ onResultPhaseChange?: (isInResultPhase: boolean) => void;
1124
1162
  }
1125
- type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted'> & {
1163
+ type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm'> & {
1126
1164
  initialBusinessDetails?: Partial<HostSupplied<BusinessDetailsValues>>;
1127
1165
  initialPersonalDetails?: Partial<HostSupplied<PersonalDetailsValues>>;
1128
1166
  initialAdditionalOwners?: HostSuppliedOwner[];
@@ -369,6 +369,50 @@ interface RequiredFieldsLegendLabels {
369
369
  marker: string;
370
370
  }
371
371
 
372
+ interface FilterMenuButtonLabels {
373
+ /** Button text, followed by "(N)" when `activeCount` is set. */
374
+ filters: string;
375
+ }
376
+
377
+ interface FilterTagLabels {
378
+ /**
379
+ * Accessible name for the editable tag body. `{label}` is substituted with
380
+ * the tag's own text; keep the placeholder when overriding.
381
+ */
382
+ edit: string;
383
+ /** Accessible name for the × dismiss button. `{label}` is substituted. */
384
+ remove: string;
385
+ }
386
+
387
+ interface DateRangePickerLabels {
388
+ /**
389
+ * Name of the preset field, rendered before the select (a `:` is appended by
390
+ * the component). Owners showing more than one date field pass the one that
391
+ * names theirs, e.g. "Due date range".
392
+ */
393
+ fieldLabel: string;
394
+ /** Select placeholder shown while the range matches no preset. */
395
+ presetPlaceholder: string;
396
+ }
397
+
398
+ interface AmountFilterLabels {
399
+ /**
400
+ * Rendered next to the min input. Owners pass the wording that matches their
401
+ * bound semantics — "No less than" for inclusive, "Greater than" for not.
402
+ */
403
+ min: string;
404
+ /** Rendered next to the max input. See {@link min}. */
405
+ max: string;
406
+ /** Amount-mode radio options. */
407
+ modeAny: string;
408
+ modeExact: string;
409
+ modeRange: string;
410
+ /** Flow-direction radio options, shown only when `showFlowDirection`. */
411
+ flowAny: string;
412
+ flowIn: string;
413
+ flowOut: string;
414
+ }
415
+
372
416
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
373
417
  children?: ReactNode;
374
418
  };
@@ -909,6 +953,34 @@ interface ProductMessageLabels {
909
953
  updateMeasureUnitError: string;
910
954
  }
911
955
 
956
+ declare const InvoicesFilterField: {
957
+ readonly DueDate: "dueDate";
958
+ readonly CreatedAt: "createdAt";
959
+ readonly IssueDate: "issueDate";
960
+ readonly Status: "status";
961
+ readonly Amount: "amount";
962
+ readonly Customer: "customer";
963
+ };
964
+ type InvoicesFilterField = (typeof InvoicesFilterField)[keyof typeof InvoicesFilterField];
965
+ type InvoicesDateFilterField = typeof InvoicesFilterField.DueDate | typeof InvoicesFilterField.CreatedAt | typeof InvoicesFilterField.IssueDate;
966
+
967
+ interface InvoicesFilterBarLabels {
968
+ fields: Record<InvoicesFilterField, string>;
969
+ searchPlaceholder: string;
970
+ searchLabel: string;
971
+ amountMin: string;
972
+ amountMax: string;
973
+ customerNameHeading: string;
974
+ customerSearchPlaceholder: string;
975
+ customerSearchHint: string;
976
+ clearAll: string;
977
+ filterMenuButton: FilterMenuButtonLabels;
978
+ filterTag: FilterTagLabels;
979
+ amountFilter: Omit<AmountFilterLabels, 'min' | 'max'>;
980
+ dateRangePicker: Omit<DateRangePickerLabels, 'fieldLabel'>;
981
+ }
982
+ type InvoicesFilterBarLabelOverrides = PartialDeep<InvoicesFilterBarLabels>;
983
+
912
984
  interface ReceivableActionsModalLabels {
913
985
  issueDescription: string;
914
986
  toLabel: string;
@@ -1208,6 +1280,39 @@ interface ReceivableActionDialogLabels {
1208
1280
  type ReceivableDocumentType = ReceivableDocumentKind;
1209
1281
  type ReceivablesWidgetTab = 'invoices' | 'quotes' | 'credit_notes';
1210
1282
 
1283
+ declare const InvoicesDatePreset: {
1284
+ readonly Today: "today";
1285
+ readonly ThisWeek: "this_week";
1286
+ readonly ThisMonth: "this_month";
1287
+ readonly ThisQuarter: "this_quarter";
1288
+ readonly ThisYear: "this_year";
1289
+ readonly Yesterday: "yesterday";
1290
+ readonly LastWeek: "last_week";
1291
+ readonly LastMonth: "last_month";
1292
+ readonly Last30Days: "last_30_days";
1293
+ readonly Last90Days: "last_90_days";
1294
+ readonly LastQuarter: "last_quarter";
1295
+ readonly LastYear: "last_year";
1296
+ };
1297
+ type InvoicesDatePreset = (typeof InvoicesDatePreset)[keyof typeof InvoicesDatePreset];
1298
+
1299
+ interface InvoicesFilterLabels {
1300
+ presets: Record<InvoicesDatePreset, string>;
1301
+ presetGroupCurrent: string;
1302
+ presetGroupPast: string;
1303
+ dateFieldNames: Record<InvoicesDateFilterField, string>;
1304
+ customRange: string;
1305
+ /** Shown under a status option; a status with no entry shows none. */
1306
+ statusDescriptions: Partial<Record<string, string>>;
1307
+ dateChip: (fieldLabel: string, range: string) => string;
1308
+ statusChip: (value: string) => string;
1309
+ moreSelected: (first: string, count: number) => string;
1310
+ customerChip: (name: string) => string;
1311
+ amountChip: string;
1312
+ searchChip: (value: string) => string;
1313
+ }
1314
+ type InvoicesFilterLabelOverrides = PartialDeep<InvoicesFilterLabels>;
1315
+
1211
1316
  interface ReceivableMessageLabels {
1212
1317
  customerRequired: string;
1213
1318
  customerAddressRequired: string;
@@ -1516,11 +1621,15 @@ interface ReceivablesWidgetOwnProps {
1516
1621
  /** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
1517
1622
  embeddedBankName?: string;
1518
1623
  enabledTabs?: ReceivablesWidgetTab[];
1624
+ /** Opens the invoice list filtered to this customer. */
1625
+ initialCounterpartId?: string;
1519
1626
  pageSizeOptions?: number[];
1520
1627
  onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
1521
1628
  onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
1522
1629
  onTemplateSettingsClick?: () => void;
1523
1630
  screenLabels?: ReceivablesScreenLabelOverrides;
1631
+ filterBarLabels?: InvoicesFilterBarLabelOverrides;
1632
+ filterLabels?: InvoicesFilterLabelOverrides;
1524
1633
  formLabels?: Partial<ReceivableFormSheetLabels>;
1525
1634
  detailsLabels?: ReceivableDetailsPanelLabelOverrides;
1526
1635
  auditHistoryLabels?: Partial<ReceivableAuditHistoryLabels>;
@@ -1541,4 +1650,4 @@ type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
1541
1650
  declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
1542
1651
 
1543
1652
  export { ReceivablesWidget };
1544
- export type { CounterpartFormSheetLabels, CounterpartMessageLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab };
1653
+ export type { CounterpartFormSheetLabels, CounterpartMessageLabels, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab };
@@ -1,3 +1,3 @@
1
- import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js";
1
+ import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index40.js";
2
2
  import "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js";
3
3
  export { e as ReceivablesWidget };