@tesouro/embedded-components-react 0.7.70 → 0.7.73

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 (46) hide show
  1. package/README.md +15 -12
  2. package/dist/index.css +24 -6
  3. package/dist/index.d.ts +76 -8
  4. package/dist/lib/LinkedAccountsWidget.d.ts +9 -0
  5. package/dist/lib/ProductsWidget.d.ts +12 -6
  6. package/dist/lib/ReceivablesWidget.d.ts +1 -5
  7. package/dist/lib/TransfersWidget.d.ts +55 -2
  8. package/dist/lib/WidgetSuite.d.ts +63 -1
  9. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +6 -4
  10. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +199 -182
  11. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js +23 -24
  12. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/constants.js +6 -2
  13. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductsTable.js +112 -51
  14. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductsWidget.js +80 -56
  15. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index.js +6 -5
  16. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index2.js +15 -6
  17. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index4.js +170 -135
  18. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index5.js +49 -150
  19. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index6.js +152 -24
  20. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index7.js +28 -0
  21. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/index.js +13 -12
  23. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +2 -2
  24. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/ProductSelector.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/helpers.js +41 -27
  26. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/useProductForm.js +70 -52
  27. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index.js +7 -6
  28. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index2.js +19 -8
  29. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index3.js +171 -218
  30. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index4.js +52 -180
  31. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index5.js +188 -46
  32. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +47 -124
  33. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index7.js +128 -0
  34. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js +4 -3
  35. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +99 -108
  36. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/testIds.js +2 -0
  37. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +135 -0
  38. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +140 -153
  39. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountTile.js +15 -0
  40. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferDetailSheet.js +111 -0
  41. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferStatusBadge.js +18 -0
  42. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +181 -126
  43. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +33 -0
  44. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/TransfersSection.js +16 -8
  45. package/dist/packages/shared-ui-shadcn/dist/index.js +328 -327
  46. package/package.json +1 -1
package/README.md CHANGED
@@ -517,10 +517,12 @@ Lists the organization's external bank accounts and lets the user connect, edit,
517
517
 
518
518
  #### Props
519
519
 
520
- | Prop | Type | Default | Description |
521
- | --------------- | -------------------------------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
522
- | `labels` | `Partial<LinkedAccountsWidgetLabels>` | English labels | Override UI copy. `stepIndicator` takes `{current}` and `{total}`; `verifySuccessDescription` and `unlinkDescription` take `{account}`. |
523
- | `featureLabels` | `Partial<LinkedAccountsWidgetFeatureLabels>` | English labels | Override row fallback text, the account-number prefix, and the edit/unlink success toasts. |
520
+ | Prop | Type | Default | Description |
521
+ | ------------------------- | -------------------------------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
522
+ | `labels` | `Partial<LinkedAccountsWidgetLabels>` | English labels | Override UI copy. `stepIndicator` takes `{current}` and `{total}`; `verifySuccessDescription` and `unlinkDescription` take `{account}`. |
523
+ | `featureLabels` | `Partial<LinkedAccountsWidgetFeatureLabels>` | English labels | Override row fallback text, the account-number prefix, and the edit/unlink success toasts. |
524
+ | `isLinkAccountOpen` | `boolean` | Uncontrolled | Controls the **Add external account** wizard. When set, the widget only reports open/close requests and waits for you. |
525
+ | `onLinkAccountOpenChange` | `(open: boolean) => void` | `undefined` | Called on every open and close of the wizard, whether or not it is controlled. |
524
526
 
525
527
  ### BankAccountOnboardingWidget
526
528
 
@@ -570,7 +572,7 @@ Manages an organization's products and services: a filterable, sortable table wi
570
572
  | ------------------------- | ---------------------------------------- | ------------------- | ------------------------------------------------------------ |
571
573
  | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. |
572
574
  | `screenLabels` | `PartialDeep<ProductsScreenLabels>` | English labels | Table/header/filter/empty/error copy. |
573
- | `formLabels` | `PartialDeep<ProductFormSheetLabels>` | English labels | Create/edit form copy. |
575
+ | `formLabels` | `PartialDeep<ProductFormSheetLabels>` | English labels | Create sheet and inline edit form copy. |
574
576
  | `detailsLabels` | `PartialDeep<ProductDetailsSheetLabels>` | English labels | Details sheet copy. |
575
577
  | `deleteLabels` | `Partial<ProductDeleteDialogLabels>` | English labels | Product delete confirmation copy. |
576
578
  | `measureUnitsLabels` | `Partial<MeasureUnitsManagerLabels>` | English labels | Measure-units manager copy. |
@@ -644,13 +646,14 @@ Lists recent transfers across the organization's embedded bank accounts and lets
644
646
 
645
647
  #### Props
646
648
 
647
- | Prop | Type | Default | Description |
648
- | ---------------------------- | --------------------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------- |
649
- | `labels` | `Partial<TransfersWidgetLabels>` | English labels | Override list and modal copy. |
650
- | `featureLabels` | `Partial<TransfersWidgetFeatureLabels>` | English defaults | Override route separator, fallback text, default currency and ACH SEC code. |
651
- | `isTransferMoneyOpen` | `boolean` | Uncontrolled | Controls the transfer modal. When set, the widget only reports open/close requests and waits for you. |
652
- | `defaultIsTransferMoneyOpen` | `boolean` | `false` | Initial modal state when uncontrolled. Ignored when `isTransferMoneyOpen` is set. |
653
- | `onTransferMoneyOpenChange` | `(open: boolean) => void` | `undefined` | Called on every open and close: the button, the modal's own dismissals, and the close after a transfer. |
649
+ | Prop | Type | Default | Description |
650
+ | ---------------------------- | --------------------------------------- | ---------------- | -------------------------------------------------------------------------------------------------------- |
651
+ | `labels` | `Partial<TransfersWidgetLabels>` | English labels | Override list and modal copy. |
652
+ | `featureLabels` | `Partial<TransfersWidgetFeatureLabels>` | English defaults | Override fallback text, the viewing range prefix, default currency and ACH SEC code. |
653
+ | `isTransferMoneyOpen` | `boolean` | Uncontrolled | Controls the transfer modal. When set, the widget only reports open/close requests and waits for you. |
654
+ | `defaultIsTransferMoneyOpen` | `boolean` | `false` | Initial modal state when uncontrolled. Ignored when `isTransferMoneyOpen` is set. |
655
+ | `onTransferMoneyOpenChange` | `(open: boolean) => void` | `undefined` | Called on every open and close: the button, the modal's own dismissals, and the close after a transfer. |
656
+ | `onLinkAccountClick` | `() => void` | `undefined` | Called from a returned transfer's **Link a new account** button. The button shows only when this is set. |
654
657
 
655
658
  <!-- END GENERATED REFERENCE -->
656
659
 
package/dist/index.css CHANGED
@@ -80,7 +80,9 @@
80
80
  --ttw-color-pink-100: oklch(94.8% 0.028 342.258);
81
81
  --ttw-color-pink-200: oklch(89.9% 0.061 343.231);
82
82
  --ttw-color-pink-700: oklch(52.5% 0.223 3.958);
83
+ --ttw-color-rose-100: oklch(94.1% 0.03 12.58);
83
84
  --ttw-color-rose-300: oklch(81% 0.117 11.638);
85
+ --ttw-color-rose-700: oklch(51.4% 0.222 16.935);
84
86
  --ttw-color-gray-100: oklch(96.7% 0.003 264.542);
85
87
  --ttw-color-gray-200: oklch(92.8% 0.006 264.531);
86
88
  --ttw-color-gray-500: oklch(55.1% 0.027 264.364);
@@ -1195,6 +1197,9 @@
1195
1197
  .ttw\:w-72 {
1196
1198
  width: calc(var(--ttw-spacing) * 72);
1197
1199
  }
1200
+ .ttw\:w-74 {
1201
+ width: calc(var(--ttw-spacing) * 74);
1202
+ }
1198
1203
  .ttw\:w-80 {
1199
1204
  width: calc(var(--ttw-spacing) * 80);
1200
1205
  }
@@ -1555,6 +1560,9 @@
1555
1560
  .ttw\:min-w-35 {
1556
1561
  min-width: calc(var(--ttw-spacing) * 35);
1557
1562
  }
1563
+ .ttw\:min-w-40 {
1564
+ min-width: calc(var(--ttw-spacing) * 40);
1565
+ }
1558
1566
  .ttw\:min-w-44 {
1559
1567
  min-width: calc(var(--ttw-spacing) * 44);
1560
1568
  }
@@ -1588,9 +1596,6 @@
1588
1596
  .ttw\:min-w-\[21cm\] {
1589
1597
  min-width: 21cm;
1590
1598
  }
1591
- .ttw\:min-w-\[24rem\] {
1592
- min-width: 24rem;
1593
- }
1594
1599
  .ttw\:min-w-\[816px\] {
1595
1600
  min-width: 816px;
1596
1601
  }
@@ -1846,9 +1851,6 @@
1846
1851
  .ttw\:grid-cols-\[minmax\(0\,1fr\)_auto\] {
1847
1852
  grid-template-columns: minmax(0,1fr) auto;
1848
1853
  }
1849
- .ttw\:grid-cols-\[minmax\(0\,1fr\)_auto_minmax\(0\,1fr\)\] {
1850
- grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
1851
- }
1852
1854
  .ttw\:grid-cols-\[minmax\(220px\,1\.5fr\)_minmax\(110px\,1fr\)_minmax\(88px\,1fr\)_minmax\(96px\,1fr\)_minmax\(96px\,1fr\)_minmax\(112px\,1fr\)\] {
1853
1855
  grid-template-columns: minmax(220px,1.5fr) minmax(110px,1fr) minmax(88px,1fr) minmax(96px,1fr) minmax(96px,1fr) minmax(112px,1fr);
1854
1856
  }
@@ -2597,6 +2599,9 @@
2597
2599
  .ttw\:bg-background {
2598
2600
  background-color: var(--ttw-background);
2599
2601
  }
2602
+ .ttw\:bg-background\! {
2603
+ background-color: var(--ttw-background) !important;
2604
+ }
2600
2605
  .ttw\:bg-background\/80 {
2601
2606
  background-color: var(--ttw-background);
2602
2607
  @supports (color: color-mix(in lab, red, red)) {
@@ -2822,6 +2827,9 @@
2822
2827
  .ttw\:bg-red-700 {
2823
2828
  background-color: var(--ttw-color-red-700);
2824
2829
  }
2830
+ .ttw\:bg-rose-100 {
2831
+ background-color: var(--ttw-color-rose-100);
2832
+ }
2825
2833
  .ttw\:bg-secondary {
2826
2834
  background-color: var(--ttw-secondary);
2827
2835
  }
@@ -3806,6 +3814,9 @@
3806
3814
  .ttw\:text-red-700 {
3807
3815
  color: var(--ttw-color-red-700);
3808
3816
  }
3817
+ .ttw\:text-rose-700 {
3818
+ color: var(--ttw-color-rose-700);
3819
+ }
3809
3820
  .ttw\:text-secondary-foreground {
3810
3821
  color: var(--ttw-secondary-foreground);
3811
3822
  }
@@ -3885,6 +3896,9 @@
3885
3896
  --tw-numeric-spacing: tabular-nums;
3886
3897
  font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
3887
3898
  }
3899
+ .ttw\:line-through {
3900
+ text-decoration-line: line-through;
3901
+ }
3888
3902
  .ttw\:underline {
3889
3903
  text-decoration-line: underline;
3890
3904
  }
@@ -3949,6 +3963,10 @@
3949
3963
  --tw-shadow: 9984px 0 0 0 var(--tw-shadow-color, #9880ff), 9999px 0 0 0 var(--tw-shadow-color, #9880ff), 10014px 0 0 0 var(--tw-shadow-color, #9880ff);
3950
3964
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
3951
3965
  }
3966
+ .ttw\:shadow-\[inset_3px_0_0_var\(--color-primary\)\] {
3967
+ --tw-shadow: inset 3px 0 0 var(--tw-shadow-color, var(--color-primary));
3968
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
3969
+ }
3952
3970
  .ttw\:shadow-lg {
3953
3971
  --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
3954
3972
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
package/dist/index.d.ts CHANGED
@@ -3489,6 +3489,15 @@ interface FeatureLabels$2 {
3489
3489
  interface LinkedAccountsWidgetProps extends WidgetProviderProps {
3490
3490
  labels?: Partial<Labels$1>;
3491
3491
  featureLabels?: Partial<FeatureLabels$2>;
3492
+ /**
3493
+ * Whether the link-account dialog is showing. Supplying it makes the dialog
3494
+ * controlled: the widget reports every open and close through
3495
+ * `onLinkAccountOpenChange` and changes nothing until the host supplies a new
3496
+ * value. Omit to let the widget own it. Never opens without write access.
3497
+ */
3498
+ isLinkAccountOpen?: boolean;
3499
+ /** Called on every open and close of the link-account dialog. */
3500
+ onLinkAccountOpenChange?: (open: boolean) => void;
3492
3501
  }
3493
3502
  declare function LinkedAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: LinkedAccountsWidgetProps): React.JSX.Element;
3494
3503
 
@@ -3662,8 +3671,51 @@ interface TransfersWidgetLabels {
3662
3671
  embeddedAccountMaskPrefix: string;
3663
3672
  /** Prefix before full account number on review cards (e.g. "Account #:"). */
3664
3673
  modalReviewAccountNumberPrefix: string;
3665
- /** Separator between from and to account names in the route line. */
3674
+ /** @deprecated No longer rendered; the list shows From and To columns. */
3666
3675
  listAccountsSeparator: string;
3676
+ tableHeaderDate: string;
3677
+ tableHeaderStatus: string;
3678
+ tableHeaderAmount: string;
3679
+ /** The From column header and the panel's From label. */
3680
+ transferFromLabel: string;
3681
+ /** The To column header and the panel's To label. */
3682
+ transferToLabel: string;
3683
+ /** Row's accessible name. `{amount}`, `{from}` and `{to}` are filled in. */
3684
+ rowAriaLabel: string;
3685
+ /** Account kind, shown as the tile tooltip and in the detail panel. */
3686
+ accountKindInternal: string;
3687
+ accountKindExternal: string;
3688
+ /** Badge after an external account's name in a row. */
3689
+ externalAccountBadge: string;
3690
+ /** Name for an external account with no nickname. */
3691
+ externalAccountFallbackName: string;
3692
+ /** Suffix after an account name. `{last4}` is filled in. */
3693
+ accountMaskTemplate: string;
3694
+ detailTitle: string;
3695
+ /** Screen-reader name of the detail panel's close button. */
3696
+ detailClose: string;
3697
+ detailInitiatedByLabel: string;
3698
+ detailInitiatedOnLabel: string;
3699
+ /** Short reasons under a Returned badge. A GENERIC return shows none. */
3700
+ returnShortReasonAccountClosed: string;
3701
+ returnShortReasonInvalidAccountDetails: string;
3702
+ returnShortReasonAccountCannotReceive: string;
3703
+ returnShortReasonRefusedByReceiver: string;
3704
+ returnedTitleAccountClosed: string;
3705
+ returnedTitleInvalidAccountDetails: string;
3706
+ returnedTitleAccountCannotReceive: string;
3707
+ returnedTitleRefusedByReceiver: string;
3708
+ returnedTitleGeneric: string;
3709
+ returnedExplanationAccountClosed: string;
3710
+ returnedExplanationInvalidAccountDetails: string;
3711
+ returnedExplanationAccountCannotReceive: string;
3712
+ returnedExplanationRefusedByReceiver: string;
3713
+ returnedExplanationGeneric: string;
3714
+ /** `{amount}` and `{account}` are filled in. */
3715
+ returnedRefundSentence: string;
3716
+ /** `{account}` is filled in. */
3717
+ returnedPausedSentence: string;
3718
+ returnedLinkAccountCta: string;
3667
3719
  loadErrorTitle: string;
3668
3720
  loadErrorDescription: string;
3669
3721
  loadErrorRetry: string;
@@ -3712,8 +3764,12 @@ interface TransfersWidgetLabels {
3712
3764
  rowStatusCompleted: string;
3713
3765
  rowStatusPending: string;
3714
3766
  rowStatusFailed: string;
3767
+ rowStatusReturned: string;
3768
+ /** @deprecated No longer rendered. */
3715
3769
  rowTypeInternal: string;
3770
+ /** @deprecated No longer rendered. */
3716
3771
  rowTypeToExternal: string;
3772
+ /** @deprecated No longer rendered. */
3717
3773
  rowTypeFromExternal: string;
3718
3774
  modalAmountInvalidError: string;
3719
3775
  /** Shown under the amount field when the from (embedded) balance is too low. */
@@ -3727,6 +3783,7 @@ declare const TRANSFERS_WIDGET_LABELS_EN: TransfersWidgetLabels;
3727
3783
 
3728
3784
  interface FeatureLabels {
3729
3785
  unavailableLabel: string;
3786
+ /** @deprecated No longer rendered; the list shows From and To columns. */
3730
3787
  routeSeparator: string;
3731
3788
  defaultCurrencyCode: string;
3732
3789
  defaultSecCode: string;
@@ -3753,10 +3810,15 @@ interface TransfersWidgetPassthroughProps {
3753
3810
  * controlled.
3754
3811
  */
3755
3812
  onTransferMoneyOpenChange?: (open: boolean) => void;
3813
+ /**
3814
+ * Called from a returned transfer's "Link a new account" button. The button
3815
+ * shows only when this is passed; wire it to the host's link-account flow.
3816
+ */
3817
+ onLinkAccountClick?: () => void;
3756
3818
  }
3757
3819
  interface TransfersWidgetProps extends WidgetProviderProps, TransfersWidgetPassthroughProps {
3758
3820
  }
3759
- declare function TransfersWidget({ labels, featureLabels, isTransferMoneyOpen, defaultIsTransferMoneyOpen, onTransferMoneyOpenChange, ...widgetProviderProps }: TransfersWidgetProps): React.JSX.Element;
3821
+ declare function TransfersWidget({ labels, featureLabels, isTransferMoneyOpen, defaultIsTransferMoneyOpen, onTransferMoneyOpenChange, onLinkAccountClick, ...widgetProviderProps }: TransfersWidgetProps): React.JSX.Element;
3760
3822
 
3761
3823
  /**
3762
3824
  * Copy the shell owns. The section names are deliberately absent: they arrive on
@@ -4973,9 +5035,7 @@ interface ProductFormSheetLabels {
4973
5035
  createTitle: string;
4974
5036
  /** Shown in the sheet description for the create form. */
4975
5037
  headerDescription: string;
4976
- /** `{type}` is replaced with the product/service word. */
4977
- editTitle: string;
4978
- /** `{type}` is replaced with the product/service word. */
5038
+ /** Heading of the inline edit form. `{type}` is replaced with the product/service word. */
4979
5039
  editingBanner: string;
4980
5040
  nameLabel: string;
4981
5041
  namePlaceholder: string;
@@ -4993,8 +5053,6 @@ interface ProductFormSheetLabels {
4993
5053
  unitEmpty: string;
4994
5054
  unitClearAriaLabel: string;
4995
5055
  priceLabel: string;
4996
- /** Shown before the price input; products are priced in USD only. */
4997
- pricePrefix: string;
4998
5056
  pricePlaceholder: string;
4999
5057
  cancelButton: string;
5000
5058
  /** `{type}` is replaced with the product/service word. */
@@ -5089,9 +5147,19 @@ interface ProductsScreenLabels {
5089
5147
  columnUnit: string;
5090
5148
  columnPrice: string;
5091
5149
  searchPlaceholder: string;
5092
- typeFilterAll: string;
5150
+ searchLabel: string;
5151
+ filtersButton: string;
5152
+ filterFieldType: string;
5153
+ filterFieldUnit: string;
5154
+ /** Accessible name of a chip's dismiss button. `{label}` is the chip's text. */
5155
+ filterChipRemove: string;
5156
+ typeChip: (value: string) => string;
5157
+ unitChip: (value: string) => string;
5158
+ searchChip: (value: string) => string;
5159
+ clearAllFilters: string;
5093
5160
  typeFilterProduct: string;
5094
5161
  typeFilterService: string;
5162
+ /** First choice in the unit panel; choosing it removes the unit filter. */
5095
5163
  unitFilterAll: string;
5096
5164
  emptyTitle: string;
5097
5165
  emptyDescription: string;
@@ -684,6 +684,15 @@ interface FeatureLabels {
684
684
  interface LinkedAccountsWidgetProps extends WidgetProviderProps {
685
685
  labels?: Partial<Labels>;
686
686
  featureLabels?: Partial<FeatureLabels>;
687
+ /**
688
+ * Whether the link-account dialog is showing. Supplying it makes the dialog
689
+ * controlled: the widget reports every open and close through
690
+ * `onLinkAccountOpenChange` and changes nothing until the host supplies a new
691
+ * value. Omit to let the widget own it. Never opens without write access.
692
+ */
693
+ isLinkAccountOpen?: boolean;
694
+ /** Called on every open and close of the link-account dialog. */
695
+ onLinkAccountOpenChange?: (open: boolean) => void;
687
696
  }
688
697
  declare function LinkedAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: LinkedAccountsWidgetProps): React.JSX.Element;
689
698
 
@@ -631,9 +631,7 @@ interface ProductFormSheetLabels {
631
631
  createTitle: string;
632
632
  /** Shown in the sheet description for the create form. */
633
633
  headerDescription: string;
634
- /** `{type}` is replaced with the product/service word. */
635
- editTitle: string;
636
- /** `{type}` is replaced with the product/service word. */
634
+ /** Heading of the inline edit form. `{type}` is replaced with the product/service word. */
637
635
  editingBanner: string;
638
636
  nameLabel: string;
639
637
  namePlaceholder: string;
@@ -651,8 +649,6 @@ interface ProductFormSheetLabels {
651
649
  unitEmpty: string;
652
650
  unitClearAriaLabel: string;
653
651
  priceLabel: string;
654
- /** Shown before the price input; products are priced in USD only. */
655
- pricePrefix: string;
656
652
  pricePlaceholder: string;
657
653
  cancelButton: string;
658
654
  /** `{type}` is replaced with the product/service word. */
@@ -747,9 +743,19 @@ interface ProductsScreenLabels {
747
743
  columnUnit: string;
748
744
  columnPrice: string;
749
745
  searchPlaceholder: string;
750
- typeFilterAll: string;
746
+ searchLabel: string;
747
+ filtersButton: string;
748
+ filterFieldType: string;
749
+ filterFieldUnit: string;
750
+ /** Accessible name of a chip's dismiss button. `{label}` is the chip's text. */
751
+ filterChipRemove: string;
752
+ typeChip: (value: string) => string;
753
+ unitChip: (value: string) => string;
754
+ searchChip: (value: string) => string;
755
+ clearAllFilters: string;
751
756
  typeFilterProduct: string;
752
757
  typeFilterService: string;
758
+ /** First choice in the unit panel; choosing it removes the unit filter. */
753
759
  unitFilterAll: string;
754
760
  emptyTitle: string;
755
761
  emptyDescription: string;
@@ -853,9 +853,7 @@ interface ProductFormSheetLabels {
853
853
  createTitle: string;
854
854
  /** Shown in the sheet description for the create form. */
855
855
  headerDescription: string;
856
- /** `{type}` is replaced with the product/service word. */
857
- editTitle: string;
858
- /** `{type}` is replaced with the product/service word. */
856
+ /** Heading of the inline edit form. `{type}` is replaced with the product/service word. */
859
857
  editingBanner: string;
860
858
  nameLabel: string;
861
859
  namePlaceholder: string;
@@ -873,8 +871,6 @@ interface ProductFormSheetLabels {
873
871
  unitEmpty: string;
874
872
  unitClearAriaLabel: string;
875
873
  priceLabel: string;
876
- /** Shown before the price input; products are priced in USD only. */
877
- pricePrefix: string;
878
874
  pricePlaceholder: string;
879
875
  cancelButton: string;
880
876
  /** `{type}` is replaced with the product/service word. */
@@ -607,8 +607,51 @@ interface TransfersWidgetLabels {
607
607
  embeddedAccountMaskPrefix: string;
608
608
  /** Prefix before full account number on review cards (e.g. "Account #:"). */
609
609
  modalReviewAccountNumberPrefix: string;
610
- /** Separator between from and to account names in the route line. */
610
+ /** @deprecated No longer rendered; the list shows From and To columns. */
611
611
  listAccountsSeparator: string;
612
+ tableHeaderDate: string;
613
+ tableHeaderStatus: string;
614
+ tableHeaderAmount: string;
615
+ /** The From column header and the panel's From label. */
616
+ transferFromLabel: string;
617
+ /** The To column header and the panel's To label. */
618
+ transferToLabel: string;
619
+ /** Row's accessible name. `{amount}`, `{from}` and `{to}` are filled in. */
620
+ rowAriaLabel: string;
621
+ /** Account kind, shown as the tile tooltip and in the detail panel. */
622
+ accountKindInternal: string;
623
+ accountKindExternal: string;
624
+ /** Badge after an external account's name in a row. */
625
+ externalAccountBadge: string;
626
+ /** Name for an external account with no nickname. */
627
+ externalAccountFallbackName: string;
628
+ /** Suffix after an account name. `{last4}` is filled in. */
629
+ accountMaskTemplate: string;
630
+ detailTitle: string;
631
+ /** Screen-reader name of the detail panel's close button. */
632
+ detailClose: string;
633
+ detailInitiatedByLabel: string;
634
+ detailInitiatedOnLabel: string;
635
+ /** Short reasons under a Returned badge. A GENERIC return shows none. */
636
+ returnShortReasonAccountClosed: string;
637
+ returnShortReasonInvalidAccountDetails: string;
638
+ returnShortReasonAccountCannotReceive: string;
639
+ returnShortReasonRefusedByReceiver: string;
640
+ returnedTitleAccountClosed: string;
641
+ returnedTitleInvalidAccountDetails: string;
642
+ returnedTitleAccountCannotReceive: string;
643
+ returnedTitleRefusedByReceiver: string;
644
+ returnedTitleGeneric: string;
645
+ returnedExplanationAccountClosed: string;
646
+ returnedExplanationInvalidAccountDetails: string;
647
+ returnedExplanationAccountCannotReceive: string;
648
+ returnedExplanationRefusedByReceiver: string;
649
+ returnedExplanationGeneric: string;
650
+ /** `{amount}` and `{account}` are filled in. */
651
+ returnedRefundSentence: string;
652
+ /** `{account}` is filled in. */
653
+ returnedPausedSentence: string;
654
+ returnedLinkAccountCta: string;
612
655
  loadErrorTitle: string;
613
656
  loadErrorDescription: string;
614
657
  loadErrorRetry: string;
@@ -657,8 +700,12 @@ interface TransfersWidgetLabels {
657
700
  rowStatusCompleted: string;
658
701
  rowStatusPending: string;
659
702
  rowStatusFailed: string;
703
+ rowStatusReturned: string;
704
+ /** @deprecated No longer rendered. */
660
705
  rowTypeInternal: string;
706
+ /** @deprecated No longer rendered. */
661
707
  rowTypeToExternal: string;
708
+ /** @deprecated No longer rendered. */
662
709
  rowTypeFromExternal: string;
663
710
  modalAmountInvalidError: string;
664
711
  /** Shown under the amount field when the from (embedded) balance is too low. */
@@ -672,6 +719,7 @@ declare const TRANSFERS_WIDGET_LABELS_EN: TransfersWidgetLabels;
672
719
 
673
720
  interface FeatureLabels {
674
721
  unavailableLabel: string;
722
+ /** @deprecated No longer rendered; the list shows From and To columns. */
675
723
  routeSeparator: string;
676
724
  defaultCurrencyCode: string;
677
725
  defaultSecCode: string;
@@ -698,10 +746,15 @@ interface TransfersWidgetPassthroughProps {
698
746
  * controlled.
699
747
  */
700
748
  onTransferMoneyOpenChange?: (open: boolean) => void;
749
+ /**
750
+ * Called from a returned transfer's "Link a new account" button. The button
751
+ * shows only when this is passed; wire it to the host's link-account flow.
752
+ */
753
+ onLinkAccountClick?: () => void;
701
754
  }
702
755
  interface TransfersWidgetProps extends WidgetProviderProps, TransfersWidgetPassthroughProps {
703
756
  }
704
- declare function TransfersWidget({ labels, featureLabels, isTransferMoneyOpen, defaultIsTransferMoneyOpen, onTransferMoneyOpenChange, ...widgetProviderProps }: TransfersWidgetProps): React.JSX.Element;
757
+ declare function TransfersWidget({ labels, featureLabels, isTransferMoneyOpen, defaultIsTransferMoneyOpen, onTransferMoneyOpenChange, onLinkAccountClick, ...widgetProviderProps }: TransfersWidgetProps): React.JSX.Element;
705
758
 
706
759
  export { DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget };
707
760
  export type { FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps };
@@ -2537,6 +2537,15 @@ interface FeatureLabels$2 {
2537
2537
  interface LinkedAccountsWidgetProps extends WidgetProviderProps {
2538
2538
  labels?: Partial<Labels$1>;
2539
2539
  featureLabels?: Partial<FeatureLabels$2>;
2540
+ /**
2541
+ * Whether the link-account dialog is showing. Supplying it makes the dialog
2542
+ * controlled: the widget reports every open and close through
2543
+ * `onLinkAccountOpenChange` and changes nothing until the host supplies a new
2544
+ * value. Omit to let the widget own it. Never opens without write access.
2545
+ */
2546
+ isLinkAccountOpen?: boolean;
2547
+ /** Called on every open and close of the link-account dialog. */
2548
+ onLinkAccountOpenChange?: (open: boolean) => void;
2540
2549
  }
2541
2550
 
2542
2551
  interface Labels {
@@ -2700,8 +2709,51 @@ interface TransfersWidgetLabels {
2700
2709
  embeddedAccountMaskPrefix: string;
2701
2710
  /** Prefix before full account number on review cards (e.g. "Account #:"). */
2702
2711
  modalReviewAccountNumberPrefix: string;
2703
- /** Separator between from and to account names in the route line. */
2712
+ /** @deprecated No longer rendered; the list shows From and To columns. */
2704
2713
  listAccountsSeparator: string;
2714
+ tableHeaderDate: string;
2715
+ tableHeaderStatus: string;
2716
+ tableHeaderAmount: string;
2717
+ /** The From column header and the panel's From label. */
2718
+ transferFromLabel: string;
2719
+ /** The To column header and the panel's To label. */
2720
+ transferToLabel: string;
2721
+ /** Row's accessible name. `{amount}`, `{from}` and `{to}` are filled in. */
2722
+ rowAriaLabel: string;
2723
+ /** Account kind, shown as the tile tooltip and in the detail panel. */
2724
+ accountKindInternal: string;
2725
+ accountKindExternal: string;
2726
+ /** Badge after an external account's name in a row. */
2727
+ externalAccountBadge: string;
2728
+ /** Name for an external account with no nickname. */
2729
+ externalAccountFallbackName: string;
2730
+ /** Suffix after an account name. `{last4}` is filled in. */
2731
+ accountMaskTemplate: string;
2732
+ detailTitle: string;
2733
+ /** Screen-reader name of the detail panel's close button. */
2734
+ detailClose: string;
2735
+ detailInitiatedByLabel: string;
2736
+ detailInitiatedOnLabel: string;
2737
+ /** Short reasons under a Returned badge. A GENERIC return shows none. */
2738
+ returnShortReasonAccountClosed: string;
2739
+ returnShortReasonInvalidAccountDetails: string;
2740
+ returnShortReasonAccountCannotReceive: string;
2741
+ returnShortReasonRefusedByReceiver: string;
2742
+ returnedTitleAccountClosed: string;
2743
+ returnedTitleInvalidAccountDetails: string;
2744
+ returnedTitleAccountCannotReceive: string;
2745
+ returnedTitleRefusedByReceiver: string;
2746
+ returnedTitleGeneric: string;
2747
+ returnedExplanationAccountClosed: string;
2748
+ returnedExplanationInvalidAccountDetails: string;
2749
+ returnedExplanationAccountCannotReceive: string;
2750
+ returnedExplanationRefusedByReceiver: string;
2751
+ returnedExplanationGeneric: string;
2752
+ /** `{amount}` and `{account}` are filled in. */
2753
+ returnedRefundSentence: string;
2754
+ /** `{account}` is filled in. */
2755
+ returnedPausedSentence: string;
2756
+ returnedLinkAccountCta: string;
2705
2757
  loadErrorTitle: string;
2706
2758
  loadErrorDescription: string;
2707
2759
  loadErrorRetry: string;
@@ -2750,8 +2802,12 @@ interface TransfersWidgetLabels {
2750
2802
  rowStatusCompleted: string;
2751
2803
  rowStatusPending: string;
2752
2804
  rowStatusFailed: string;
2805
+ rowStatusReturned: string;
2806
+ /** @deprecated No longer rendered. */
2753
2807
  rowTypeInternal: string;
2808
+ /** @deprecated No longer rendered. */
2754
2809
  rowTypeToExternal: string;
2810
+ /** @deprecated No longer rendered. */
2755
2811
  rowTypeFromExternal: string;
2756
2812
  modalAmountInvalidError: string;
2757
2813
  /** Shown under the amount field when the from (embedded) balance is too low. */
@@ -2764,6 +2820,7 @@ interface TransfersWidgetLabels {
2764
2820
 
2765
2821
  interface FeatureLabels {
2766
2822
  unavailableLabel: string;
2823
+ /** @deprecated No longer rendered; the list shows From and To columns. */
2767
2824
  routeSeparator: string;
2768
2825
  defaultCurrencyCode: string;
2769
2826
  defaultSecCode: string;
@@ -2789,6 +2846,11 @@ interface TransfersWidgetPassthroughProps {
2789
2846
  * controlled.
2790
2847
  */
2791
2848
  onTransferMoneyOpenChange?: (open: boolean) => void;
2849
+ /**
2850
+ * Called from a returned transfer's "Link a new account" button. The button
2851
+ * shows only when this is passed; wire it to the host's link-account flow.
2852
+ */
2853
+ onLinkAccountClick?: () => void;
2792
2854
  }
2793
2855
  interface TransfersWidgetProps extends WidgetProviderProps, TransfersWidgetPassthroughProps {
2794
2856
  }
@@ -12,14 +12,16 @@ import "../../../ui/dist/index.js";
12
12
  import { useLinkedAccountsWidget as i } from "./useLinkedAccountsWidget.js";
13
13
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
14
14
  //#region ../../libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js
15
- function c({ labels: t, featureLabels: n }) {
16
- let c = i({
15
+ function c({ labels: t, featureLabels: n, isLinkAccountOpen: c, onLinkAccountOpenChange: l }) {
16
+ let u = i({
17
17
  labels: t,
18
- featureLabels: n
18
+ featureLabels: n,
19
+ isLinkAccountOpen: c,
20
+ onLinkAccountOpenChange: l
19
21
  });
20
22
  return /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(e, {}), /* @__PURE__ */ o(r, {
21
23
  labels: t,
22
- ...c
24
+ ...u
23
25
  })] });
24
26
  }
25
27
  function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: s, linkComponent: l, uiFramework: u, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {