@tesouro/embedded-components-react 0.7.68 → 0.7.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -11
- package/dist/index.css +15 -6
- package/dist/index.d.ts +64 -2
- package/dist/lib/LinkedAccountsWidget.d.ts +9 -0
- package/dist/lib/TransfersWidget.d.ts +55 -2
- package/dist/lib/WidgetSuite.d.ts +63 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +199 -182
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +99 -108
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/testIds.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +135 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +140 -153
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountTile.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferDetailSheet.js +111 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferStatusBadge.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +181 -126
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/TransfersSection.js +16 -8
- package/dist/packages/shared-ui-shadcn/dist/index.js +328 -327
- 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
|
|
521
|
-
|
|
|
522
|
-
| `labels`
|
|
523
|
-
| `featureLabels`
|
|
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
|
|
|
@@ -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
|
|
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);
|
|
@@ -1588,9 +1590,6 @@
|
|
|
1588
1590
|
.ttw\:min-w-\[21cm\] {
|
|
1589
1591
|
min-width: 21cm;
|
|
1590
1592
|
}
|
|
1591
|
-
.ttw\:min-w-\[24rem\] {
|
|
1592
|
-
min-width: 24rem;
|
|
1593
|
-
}
|
|
1594
1593
|
.ttw\:min-w-\[816px\] {
|
|
1595
1594
|
min-width: 816px;
|
|
1596
1595
|
}
|
|
@@ -1846,9 +1845,6 @@
|
|
|
1846
1845
|
.ttw\:grid-cols-\[minmax\(0\,1fr\)_auto\] {
|
|
1847
1846
|
grid-template-columns: minmax(0,1fr) auto;
|
|
1848
1847
|
}
|
|
1849
|
-
.ttw\:grid-cols-\[minmax\(0\,1fr\)_auto_minmax\(0\,1fr\)\] {
|
|
1850
|
-
grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
|
|
1851
|
-
}
|
|
1852
1848
|
.ttw\:grid-cols-\[minmax\(220px\,1\.5fr\)_minmax\(110px\,1fr\)_minmax\(88px\,1fr\)_minmax\(96px\,1fr\)_minmax\(96px\,1fr\)_minmax\(112px\,1fr\)\] {
|
|
1853
1849
|
grid-template-columns: minmax(220px,1.5fr) minmax(110px,1fr) minmax(88px,1fr) minmax(96px,1fr) minmax(96px,1fr) minmax(112px,1fr);
|
|
1854
1850
|
}
|
|
@@ -2822,6 +2818,9 @@
|
|
|
2822
2818
|
.ttw\:bg-red-700 {
|
|
2823
2819
|
background-color: var(--ttw-color-red-700);
|
|
2824
2820
|
}
|
|
2821
|
+
.ttw\:bg-rose-100 {
|
|
2822
|
+
background-color: var(--ttw-color-rose-100);
|
|
2823
|
+
}
|
|
2825
2824
|
.ttw\:bg-secondary {
|
|
2826
2825
|
background-color: var(--ttw-secondary);
|
|
2827
2826
|
}
|
|
@@ -3806,6 +3805,9 @@
|
|
|
3806
3805
|
.ttw\:text-red-700 {
|
|
3807
3806
|
color: var(--ttw-color-red-700);
|
|
3808
3807
|
}
|
|
3808
|
+
.ttw\:text-rose-700 {
|
|
3809
|
+
color: var(--ttw-color-rose-700);
|
|
3810
|
+
}
|
|
3809
3811
|
.ttw\:text-secondary-foreground {
|
|
3810
3812
|
color: var(--ttw-secondary-foreground);
|
|
3811
3813
|
}
|
|
@@ -3885,6 +3887,9 @@
|
|
|
3885
3887
|
--tw-numeric-spacing: tabular-nums;
|
|
3886
3888
|
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
3887
3889
|
}
|
|
3890
|
+
.ttw\:line-through {
|
|
3891
|
+
text-decoration-line: line-through;
|
|
3892
|
+
}
|
|
3888
3893
|
.ttw\:underline {
|
|
3889
3894
|
text-decoration-line: underline;
|
|
3890
3895
|
}
|
|
@@ -3949,6 +3954,10 @@
|
|
|
3949
3954
|
--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
3955
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
3951
3956
|
}
|
|
3957
|
+
.ttw\:shadow-\[inset_3px_0_0_var\(--color-primary\)\] {
|
|
3958
|
+
--tw-shadow: inset 3px 0 0 var(--tw-shadow-color, var(--color-primary));
|
|
3959
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
3960
|
+
}
|
|
3952
3961
|
.ttw\:shadow-lg {
|
|
3953
3962
|
--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
3963
|
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
|
-
/**
|
|
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
|
|
@@ -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
|
|
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
...
|
|
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 }) {
|