@tesouro/embedded-components-react 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/experimental/QuickViewWidget.d.ts +11 -0
- package/dist/experimental/RemoteCheckCapture.d.ts +11 -0
- package/dist/experimental/index.d.ts +11 -0
- package/dist/index.css +509 -61
- package/dist/index.d.ts +54 -13
- package/dist/lib/AcceptDisclosuresWidget.d.ts +11 -0
- package/dist/lib/BalancesWidget.d.ts +11 -0
- package/dist/lib/BankAccountOnboardingWidget.d.ts +11 -0
- package/dist/lib/BankAccountsWidget.d.ts +11 -0
- package/dist/lib/BankingComplianceBannerWidget.d.ts +11 -0
- package/dist/lib/BillPayWidget.d.ts +11 -0
- package/dist/lib/CardDetailsWidget.d.ts +11 -0
- package/dist/lib/CounterpartsWidget.d.ts +11 -0
- package/dist/lib/CounterpartsWidgetPublic.d.ts +11 -0
- package/dist/lib/CreditCardsWidget.d.ts +11 -0
- package/dist/lib/CustomersWidget.d.ts +11 -0
- package/dist/lib/DebitCardsWidget.d.ts +11 -0
- package/dist/lib/ExpenseManagementWidget.d.ts +11 -0
- package/dist/lib/InsightsWidget.d.ts +11 -0
- package/dist/lib/LinkedAccountsWidget.d.ts +11 -0
- package/dist/lib/OfferWidget.d.ts +11 -0
- package/dist/lib/ProductsWidget.d.ts +11 -0
- package/dist/lib/ReceivablesWidget.d.ts +11 -0
- package/dist/lib/SettingsWidget.d.ts +11 -0
- package/dist/lib/TransfersWidget.d.ts +54 -13
- package/dist/lib/WidgetProvider.d.ts +11 -0
- package/dist/lib/WidgetProviderPublic.d.ts +11 -0
- package/dist/lib/WidgetSuite.d.ts +54 -13
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AmountInput/AmountInput.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/LoadingRegion/LoadingRegion.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/labels.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/testIds.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +159 -218
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/ReviewTransferStep.js +37 -88
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModal.js +184 -245
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferResultStep.js +43 -58
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/reviewTransferStepLabels.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/transferResultStepLabels.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/useFocusFirstInvalidField.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountValue.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferDetailSheet.js +68 -101
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +155 -153
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +20 -11
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/maskLabels.js +7 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +1850 -1607
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModalHeader.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferReviewAccountCard.js +0 -64
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountTile.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferStatusBadge.js +0 -17
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
+
import { RowData } from '@tanstack/react-table';
|
|
3
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
5
|
|
|
5
6
|
type AuthToken = string | undefined;
|
|
@@ -331,6 +332,16 @@ type EmbeddedClient = Client;
|
|
|
331
332
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
332
333
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
333
334
|
|
|
335
|
+
declare module '@tanstack/react-table' {
|
|
336
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
337
|
+
/**
|
|
338
|
+
* Shrinks the column to its content on one line, leaving the table's
|
|
339
|
+
* spare width to the columns without it: dates, statuses and amounts.
|
|
340
|
+
*/
|
|
341
|
+
fitContent?: boolean;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
334
345
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
335
346
|
children?: ReactNode;
|
|
336
347
|
};
|
|
@@ -603,9 +614,9 @@ interface TransfersWidgetLabels {
|
|
|
603
614
|
transferMoneyCtaDisabledTooltip: string;
|
|
604
615
|
/** Fallback when an account has no nickname in lists or options. */
|
|
605
616
|
accountFallbackName: string;
|
|
606
|
-
/**
|
|
617
|
+
/** @deprecated No longer rendered. */
|
|
607
618
|
embeddedAccountMaskPrefix: string;
|
|
608
|
-
/**
|
|
619
|
+
/** @deprecated No longer rendered. */
|
|
609
620
|
modalReviewAccountNumberPrefix: string;
|
|
610
621
|
/** @deprecated No longer rendered; the list shows From and To columns. */
|
|
611
622
|
listAccountsSeparator: string;
|
|
@@ -618,25 +629,32 @@ interface TransfersWidgetLabels {
|
|
|
618
629
|
transferToLabel: string;
|
|
619
630
|
/** Row's accessible name. `{amount}`, `{from}` and `{to}` are filled in. */
|
|
620
631
|
rowAriaLabel: string;
|
|
621
|
-
/** Account kind,
|
|
632
|
+
/** Account kind, the muted line under an account's name. */
|
|
622
633
|
accountKindInternal: string;
|
|
623
634
|
accountKindExternal: string;
|
|
624
|
-
/**
|
|
635
|
+
/** @deprecated No longer rendered. */
|
|
625
636
|
externalAccountBadge: string;
|
|
637
|
+
/** @deprecated No longer rendered; the detail panel explains a return. */
|
|
638
|
+
returnShortReasonAccountClosed: string;
|
|
639
|
+
/** @deprecated No longer rendered; the detail panel explains a return. */
|
|
640
|
+
returnShortReasonInvalidAccountDetails: string;
|
|
641
|
+
/** @deprecated No longer rendered; the detail panel explains a return. */
|
|
642
|
+
returnShortReasonAccountCannotReceive: string;
|
|
643
|
+
/** @deprecated No longer rendered; the detail panel explains a return. */
|
|
644
|
+
returnShortReasonRefusedByReceiver: string;
|
|
626
645
|
/** Name for an external account with no nickname. */
|
|
627
646
|
externalAccountFallbackName: string;
|
|
628
|
-
/** Suffix after an account name. `{last4}` is filled in. */
|
|
647
|
+
/** Suffix after an account name in sentences. `{last4}` is filled in. */
|
|
629
648
|
accountMaskTemplate: string;
|
|
649
|
+
/** `{last4}` is filled in. */
|
|
650
|
+
accountNumberEndingIn: string;
|
|
651
|
+
showAccountNumber: string;
|
|
652
|
+
hideAccountNumber: string;
|
|
630
653
|
detailTitle: string;
|
|
631
654
|
/** Screen-reader name of the detail panel's close button. */
|
|
632
655
|
detailClose: string;
|
|
633
656
|
detailInitiatedByLabel: string;
|
|
634
657
|
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
658
|
returnedTitleAccountClosed: string;
|
|
641
659
|
returnedTitleInvalidAccountDetails: string;
|
|
642
660
|
returnedTitleAccountCannotReceive: string;
|
|
@@ -652,6 +670,7 @@ interface TransfersWidgetLabels {
|
|
|
652
670
|
/** `{account}` is filled in. */
|
|
653
671
|
returnedPausedSentence: string;
|
|
654
672
|
returnedLinkAccountCta: string;
|
|
673
|
+
loadingLabel: string;
|
|
655
674
|
loadErrorTitle: string;
|
|
656
675
|
loadErrorDescription: string;
|
|
657
676
|
loadErrorRetry: string;
|
|
@@ -663,38 +682,60 @@ interface TransfersWidgetLabels {
|
|
|
663
682
|
modalTitle: string;
|
|
664
683
|
/** Shown under the title on the accounts step (e.g. ACH timing). */
|
|
665
684
|
modalAccountsSubtitle: string;
|
|
666
|
-
/**
|
|
685
|
+
/** `{current}` and `{total}` are filled in. */
|
|
686
|
+
modalStepLabel: string;
|
|
687
|
+
/** @deprecated Use `modalFromLabel`. */
|
|
667
688
|
modalFromAccountPlaceholder: string;
|
|
668
|
-
/**
|
|
689
|
+
/** @deprecated Use `modalToLabel`. */
|
|
669
690
|
modalToAccountPlaceholder: string;
|
|
670
|
-
/**
|
|
691
|
+
/** @deprecated Use `modalContinue`. */
|
|
671
692
|
modalAccountsConfirm: string;
|
|
693
|
+
/** @deprecated No longer rendered. */
|
|
672
694
|
modalStepAccounts: string;
|
|
695
|
+
/** @deprecated No longer rendered. */
|
|
673
696
|
modalStepAmount: string;
|
|
697
|
+
/** @deprecated No longer rendered. */
|
|
674
698
|
modalStepReview: string;
|
|
699
|
+
/** @deprecated No longer rendered. */
|
|
675
700
|
modalStepResult: string;
|
|
676
701
|
modalFromLabel: string;
|
|
677
702
|
modalToLabel: string;
|
|
678
703
|
modalAmountLabel: string;
|
|
679
704
|
/** Placeholder for the amount input (e.g. "0.00"). */
|
|
680
705
|
modalAmountPlaceholder: string;
|
|
706
|
+
modalFromRequiredError: string;
|
|
707
|
+
modalToRequiredError: string;
|
|
681
708
|
modalContinue: string;
|
|
682
709
|
modalBack: string;
|
|
710
|
+
/** @deprecated Use `modalConfirmTransfer`. */
|
|
683
711
|
modalSubmit: string;
|
|
684
712
|
modalClose: string;
|
|
685
713
|
modalReviewHeading: string;
|
|
714
|
+
/** @deprecated Use `modalFromLabel`. */
|
|
686
715
|
modalReviewFromAccountLabel: string;
|
|
716
|
+
/** @deprecated Use `modalToLabel`. */
|
|
687
717
|
modalReviewToAccountLabel: string;
|
|
718
|
+
/** @deprecated No longer rendered. */
|
|
688
719
|
modalAvailableBalanceCaption: string;
|
|
689
720
|
modalConfirmTransfer: string;
|
|
721
|
+
/** @deprecated Use `modalBack`. */
|
|
690
722
|
modalGoBack: string;
|
|
723
|
+
/** @deprecated No longer rendered. */
|
|
691
724
|
modalSuccessTitle: string;
|
|
725
|
+
/** @deprecated No longer rendered. */
|
|
692
726
|
modalSuccessDescription: string;
|
|
693
727
|
modalResultSuccessTitle: string;
|
|
728
|
+
modalResultDescription: string;
|
|
729
|
+
modalDone: string;
|
|
730
|
+
/** @deprecated No longer rendered. */
|
|
694
731
|
modalResultErrorTitle: string;
|
|
732
|
+
/** @deprecated No longer rendered. */
|
|
695
733
|
modalResultTransferMessagePrefix: string;
|
|
734
|
+
/** @deprecated No longer rendered. */
|
|
696
735
|
modalResultSuccessMessageSuffix: string;
|
|
736
|
+
/** @deprecated No longer rendered. */
|
|
697
737
|
modalResultErrorMessageSuffix: string;
|
|
738
|
+
/** @deprecated Use `modalDone`. */
|
|
698
739
|
modalBackToTransfers: string;
|
|
699
740
|
modalSelectPlaceholder: string;
|
|
700
741
|
rowStatusCompleted: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RowData } from '@tanstack/react-table';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, PropsWithChildren, ErrorInfo } from 'react';
|
|
3
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
@@ -382,6 +383,16 @@ type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
|
382
383
|
*/
|
|
383
384
|
declare function cloneEmbeddedClient(source: EmbeddedClient): EmbeddedClient;
|
|
384
385
|
|
|
386
|
+
declare module '@tanstack/react-table' {
|
|
387
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
388
|
+
/**
|
|
389
|
+
* Shrinks the column to its content on one line, leaving the table's
|
|
390
|
+
* spare width to the columns without it: dates, statuses and amounts.
|
|
391
|
+
*/
|
|
392
|
+
fitContent?: boolean;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
385
396
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
386
397
|
children?: ReactNode;
|
|
387
398
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, PropsWithChildren } from 'react';
|
|
2
|
+
import { RowData } from '@tanstack/react-table';
|
|
2
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
3
4
|
|
|
4
5
|
type AuthToken = string | undefined;
|
|
@@ -330,6 +331,16 @@ type EmbeddedClient = Client;
|
|
|
330
331
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
331
332
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
332
333
|
|
|
334
|
+
declare module '@tanstack/react-table' {
|
|
335
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
336
|
+
/**
|
|
337
|
+
* Shrinks the column to its content on one line, leaving the table's
|
|
338
|
+
* spare width to the columns without it: dates, statuses and amounts.
|
|
339
|
+
*/
|
|
340
|
+
fitContent?: boolean;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
333
344
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
334
345
|
children?: ReactNode;
|
|
335
346
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, ReactElement } from 'react';
|
|
3
|
+
import { RowData } from '@tanstack/react-table';
|
|
3
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
5
|
import { PartialDeep } from 'type-fest';
|
|
5
6
|
|
|
@@ -381,6 +382,16 @@ declare const OnboardingSuppressionReason: {
|
|
|
381
382
|
};
|
|
382
383
|
type OnboardingSuppressionReason = (typeof OnboardingSuppressionReason)[keyof typeof OnboardingSuppressionReason];
|
|
383
384
|
|
|
385
|
+
declare module '@tanstack/react-table' {
|
|
386
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
387
|
+
/**
|
|
388
|
+
* Shrinks the column to its content on one line, leaving the table's
|
|
389
|
+
* spare width to the columns without it: dates, statuses and amounts.
|
|
390
|
+
*/
|
|
391
|
+
fitContent?: boolean;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
384
395
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
385
396
|
children?: ReactNode;
|
|
386
397
|
};
|
|
@@ -2899,9 +2910,9 @@ interface TransfersWidgetLabels {
|
|
|
2899
2910
|
transferMoneyCtaDisabledTooltip: string;
|
|
2900
2911
|
/** Fallback when an account has no nickname in lists or options. */
|
|
2901
2912
|
accountFallbackName: string;
|
|
2902
|
-
/**
|
|
2913
|
+
/** @deprecated No longer rendered. */
|
|
2903
2914
|
embeddedAccountMaskPrefix: string;
|
|
2904
|
-
/**
|
|
2915
|
+
/** @deprecated No longer rendered. */
|
|
2905
2916
|
modalReviewAccountNumberPrefix: string;
|
|
2906
2917
|
/** @deprecated No longer rendered; the list shows From and To columns. */
|
|
2907
2918
|
listAccountsSeparator: string;
|
|
@@ -2914,25 +2925,32 @@ interface TransfersWidgetLabels {
|
|
|
2914
2925
|
transferToLabel: string;
|
|
2915
2926
|
/** Row's accessible name. `{amount}`, `{from}` and `{to}` are filled in. */
|
|
2916
2927
|
rowAriaLabel: string;
|
|
2917
|
-
/** Account kind,
|
|
2928
|
+
/** Account kind, the muted line under an account's name. */
|
|
2918
2929
|
accountKindInternal: string;
|
|
2919
2930
|
accountKindExternal: string;
|
|
2920
|
-
/**
|
|
2931
|
+
/** @deprecated No longer rendered. */
|
|
2921
2932
|
externalAccountBadge: string;
|
|
2933
|
+
/** @deprecated No longer rendered; the detail panel explains a return. */
|
|
2934
|
+
returnShortReasonAccountClosed: string;
|
|
2935
|
+
/** @deprecated No longer rendered; the detail panel explains a return. */
|
|
2936
|
+
returnShortReasonInvalidAccountDetails: string;
|
|
2937
|
+
/** @deprecated No longer rendered; the detail panel explains a return. */
|
|
2938
|
+
returnShortReasonAccountCannotReceive: string;
|
|
2939
|
+
/** @deprecated No longer rendered; the detail panel explains a return. */
|
|
2940
|
+
returnShortReasonRefusedByReceiver: string;
|
|
2922
2941
|
/** Name for an external account with no nickname. */
|
|
2923
2942
|
externalAccountFallbackName: string;
|
|
2924
|
-
/** Suffix after an account name. `{last4}` is filled in. */
|
|
2943
|
+
/** Suffix after an account name in sentences. `{last4}` is filled in. */
|
|
2925
2944
|
accountMaskTemplate: string;
|
|
2945
|
+
/** `{last4}` is filled in. */
|
|
2946
|
+
accountNumberEndingIn: string;
|
|
2947
|
+
showAccountNumber: string;
|
|
2948
|
+
hideAccountNumber: string;
|
|
2926
2949
|
detailTitle: string;
|
|
2927
2950
|
/** Screen-reader name of the detail panel's close button. */
|
|
2928
2951
|
detailClose: string;
|
|
2929
2952
|
detailInitiatedByLabel: string;
|
|
2930
2953
|
detailInitiatedOnLabel: string;
|
|
2931
|
-
/** Short reasons under a Returned badge. A GENERIC return shows none. */
|
|
2932
|
-
returnShortReasonAccountClosed: string;
|
|
2933
|
-
returnShortReasonInvalidAccountDetails: string;
|
|
2934
|
-
returnShortReasonAccountCannotReceive: string;
|
|
2935
|
-
returnShortReasonRefusedByReceiver: string;
|
|
2936
2954
|
returnedTitleAccountClosed: string;
|
|
2937
2955
|
returnedTitleInvalidAccountDetails: string;
|
|
2938
2956
|
returnedTitleAccountCannotReceive: string;
|
|
@@ -2948,6 +2966,7 @@ interface TransfersWidgetLabels {
|
|
|
2948
2966
|
/** `{account}` is filled in. */
|
|
2949
2967
|
returnedPausedSentence: string;
|
|
2950
2968
|
returnedLinkAccountCta: string;
|
|
2969
|
+
loadingLabel: string;
|
|
2951
2970
|
loadErrorTitle: string;
|
|
2952
2971
|
loadErrorDescription: string;
|
|
2953
2972
|
loadErrorRetry: string;
|
|
@@ -2959,38 +2978,60 @@ interface TransfersWidgetLabels {
|
|
|
2959
2978
|
modalTitle: string;
|
|
2960
2979
|
/** Shown under the title on the accounts step (e.g. ACH timing). */
|
|
2961
2980
|
modalAccountsSubtitle: string;
|
|
2962
|
-
/**
|
|
2981
|
+
/** `{current}` and `{total}` are filled in. */
|
|
2982
|
+
modalStepLabel: string;
|
|
2983
|
+
/** @deprecated Use `modalFromLabel`. */
|
|
2963
2984
|
modalFromAccountPlaceholder: string;
|
|
2964
|
-
/**
|
|
2985
|
+
/** @deprecated Use `modalToLabel`. */
|
|
2965
2986
|
modalToAccountPlaceholder: string;
|
|
2966
|
-
/**
|
|
2987
|
+
/** @deprecated Use `modalContinue`. */
|
|
2967
2988
|
modalAccountsConfirm: string;
|
|
2989
|
+
/** @deprecated No longer rendered. */
|
|
2968
2990
|
modalStepAccounts: string;
|
|
2991
|
+
/** @deprecated No longer rendered. */
|
|
2969
2992
|
modalStepAmount: string;
|
|
2993
|
+
/** @deprecated No longer rendered. */
|
|
2970
2994
|
modalStepReview: string;
|
|
2995
|
+
/** @deprecated No longer rendered. */
|
|
2971
2996
|
modalStepResult: string;
|
|
2972
2997
|
modalFromLabel: string;
|
|
2973
2998
|
modalToLabel: string;
|
|
2974
2999
|
modalAmountLabel: string;
|
|
2975
3000
|
/** Placeholder for the amount input (e.g. "0.00"). */
|
|
2976
3001
|
modalAmountPlaceholder: string;
|
|
3002
|
+
modalFromRequiredError: string;
|
|
3003
|
+
modalToRequiredError: string;
|
|
2977
3004
|
modalContinue: string;
|
|
2978
3005
|
modalBack: string;
|
|
3006
|
+
/** @deprecated Use `modalConfirmTransfer`. */
|
|
2979
3007
|
modalSubmit: string;
|
|
2980
3008
|
modalClose: string;
|
|
2981
3009
|
modalReviewHeading: string;
|
|
3010
|
+
/** @deprecated Use `modalFromLabel`. */
|
|
2982
3011
|
modalReviewFromAccountLabel: string;
|
|
3012
|
+
/** @deprecated Use `modalToLabel`. */
|
|
2983
3013
|
modalReviewToAccountLabel: string;
|
|
3014
|
+
/** @deprecated No longer rendered. */
|
|
2984
3015
|
modalAvailableBalanceCaption: string;
|
|
2985
3016
|
modalConfirmTransfer: string;
|
|
3017
|
+
/** @deprecated Use `modalBack`. */
|
|
2986
3018
|
modalGoBack: string;
|
|
3019
|
+
/** @deprecated No longer rendered. */
|
|
2987
3020
|
modalSuccessTitle: string;
|
|
3021
|
+
/** @deprecated No longer rendered. */
|
|
2988
3022
|
modalSuccessDescription: string;
|
|
2989
3023
|
modalResultSuccessTitle: string;
|
|
3024
|
+
modalResultDescription: string;
|
|
3025
|
+
modalDone: string;
|
|
3026
|
+
/** @deprecated No longer rendered. */
|
|
2990
3027
|
modalResultErrorTitle: string;
|
|
3028
|
+
/** @deprecated No longer rendered. */
|
|
2991
3029
|
modalResultTransferMessagePrefix: string;
|
|
3030
|
+
/** @deprecated No longer rendered. */
|
|
2992
3031
|
modalResultSuccessMessageSuffix: string;
|
|
3032
|
+
/** @deprecated No longer rendered. */
|
|
2993
3033
|
modalResultErrorMessageSuffix: string;
|
|
3034
|
+
/** @deprecated Use `modalDone`. */
|
|
2994
3035
|
modalBackToTransfers: string;
|
|
2995
3036
|
modalSelectPlaceholder: string;
|
|
2996
3037
|
rowStatusCompleted: string;
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.2", n = "91a4d622162dc41f3cf8f084f0f03d3715fa0d6c", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -11,21 +11,24 @@ import { registerDesignSystemEnsurer as o, registerUIRenderers as s, useDesignSy
|
|
|
11
11
|
import "./lib/UIContext/index.js";
|
|
12
12
|
import { HostIsolationScope as u } from "./lib/HostIsolationScope/HostIsolationScope.js";
|
|
13
13
|
import { Link as d } from "./lib/Link/Link.js";
|
|
14
|
-
import "./lib/WidgetFrame/WidgetFrame.js";
|
|
15
|
-
import { WidgetContainer as
|
|
14
|
+
import { WidgetFrame as f } from "./lib/WidgetFrame/WidgetFrame.js";
|
|
15
|
+
import { WidgetContainer as p } from "./lib/WidgetContainer/WidgetContainer.js";
|
|
16
16
|
import "./lib/StatePanel/labels.js";
|
|
17
17
|
import "./lib/StatePanel/StatePanel.js";
|
|
18
|
-
import { EmptyState as
|
|
19
|
-
import { ERROR_STATE_ID as
|
|
18
|
+
import { EmptyState as m } from "./lib/EmptyState/EmptyState.js";
|
|
19
|
+
import { ERROR_STATE_ID as h, ErrorState as g } from "./lib/ErrorState/ErrorState.js";
|
|
20
20
|
import "./lib/StatePanel/NoAccessState.js";
|
|
21
|
-
import "./lib/
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
21
|
+
import { AmountInput as _ } from "./lib/AmountInput/AmountInput.js";
|
|
22
|
+
import { LoadingRegion as v } from "./lib/LoadingRegion/LoadingRegion.js";
|
|
23
|
+
import "./lib/MaskedAccountNumber/labels.js";
|
|
24
|
+
import { MaskedAccountNumber as y } from "./lib/MaskedAccountNumber/MaskedAccountNumber.js";
|
|
25
|
+
import { InlineErrorAlert as b } from "./lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
26
|
+
import { PAGINATION_FOOTER_LABELS_EN as x } from "./lib/PaginationFooter/labels.js";
|
|
27
|
+
import { PaginationFooter as S } from "./lib/PaginationFooter/PaginationFooter.js";
|
|
28
|
+
import { WidgetTitleWithIconAndChildren as C } from "./lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
|
|
26
29
|
import "./lib/OnboardingShell/labels.js";
|
|
27
30
|
import "./lib/OnboardingShell/OnboardingShellStepper.js";
|
|
28
31
|
import "./lib/OnboardingShell/OnboardingShellOverlayPortal.js";
|
|
29
|
-
import { OnboardingShell as
|
|
30
|
-
import { SectionHeading as
|
|
31
|
-
export {
|
|
32
|
+
import { OnboardingShell as w } from "./lib/OnboardingShell/OnboardingShell.js";
|
|
33
|
+
import { SectionHeading as T } from "./lib/SectionHeading/SectionHeading.js";
|
|
34
|
+
export { _ as AmountInput, h as ERROR_STATE_ID, t as EmbeddedToaster, m as EmptyState, g as ErrorState, u as HostIsolationScope, b as InlineErrorAlert, d as Link, v as LoadingRegion, y as MaskedAccountNumber, w as OnboardingShell, x as PAGINATION_FOOTER_LABELS_EN, S as PaginationFooter, T as SectionHeading, n as ToastNameMessage, r as UIFramework, a as UIProvider, p as WidgetContainer, f as WidgetFrame, C as WidgetTitleWithIconAndChildren, e as avatarSwatchFor, o as registerDesignSystemEnsurer, s as registerUIRenderers, i as resolveUIFramework, c as useDesignSystemEnsurer, l as useFrameworkRenderer };
|
package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AmountInput/AmountInput.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { InputGroup as e, InputGroupAddon as t, InputGroupInput as n, cn as r } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
3
|
+
// ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/AmountInput/AmountInput.js
|
|
4
|
+
var o = /^(\d*)(?:\.(\d{0,2}))?$/;
|
|
5
|
+
function s(e) {
|
|
6
|
+
let t = o.exec(e.trim());
|
|
7
|
+
return !t || !t[1] && !t[2] ? e : `${t[1].replace(/^0+(?=\d)/, "") || "0"}.${(t[2] ?? "").padEnd(2, "0")}`;
|
|
8
|
+
}
|
|
9
|
+
function c({ value: o, onValueChange: c, currencySymbol: l, onBlur: u, className: d, ...f }) {
|
|
10
|
+
let p = (e) => {
|
|
11
|
+
u?.(e);
|
|
12
|
+
let t = s(o);
|
|
13
|
+
t !== o && c(t);
|
|
14
|
+
};
|
|
15
|
+
return /* @__PURE__ */ a(e, { children: [/* @__PURE__ */ i(t, {
|
|
16
|
+
"aria-hidden": !0,
|
|
17
|
+
children: l
|
|
18
|
+
}), /* @__PURE__ */ i(n, {
|
|
19
|
+
...f,
|
|
20
|
+
type: "text",
|
|
21
|
+
inputMode: "decimal",
|
|
22
|
+
autoComplete: "off",
|
|
23
|
+
"data-has-start-addon": !0,
|
|
24
|
+
className: r("ttw:text-right ttw:tabular-nums", d),
|
|
25
|
+
value: o,
|
|
26
|
+
onChange: (e) => c(e.target.value),
|
|
27
|
+
onBlur: p
|
|
28
|
+
})] });
|
|
29
|
+
}
|
|
30
|
+
export { c as AmountInput, s as formatAmountInputValue };
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
1
|
+
import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
// ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/LoadingRegion/LoadingRegion.js
|
|
3
|
+
function r({ isLoading: r, loadingLabel: i, children: a, ...o }) {
|
|
4
|
+
return /* @__PURE__ */ n(e, { children: [r ? /* @__PURE__ */ t("span", {
|
|
5
|
+
role: "status",
|
|
6
|
+
className: "ttw:sr-only",
|
|
7
|
+
children: i
|
|
8
|
+
}) : null, /* @__PURE__ */ t("div", {
|
|
9
|
+
"aria-busy": r || void 0,
|
|
10
|
+
...o,
|
|
11
|
+
children: a
|
|
12
|
+
})] });
|
|
13
|
+
}
|
|
14
|
+
export { r as LoadingRegion, r as default };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Button as e, Tooltip as t, TooltipContent as n, TooltipProvider as r, TooltipTrigger as i, formatLabel as a } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { MASKED_ACCOUNT_NUMBER_LABELS_EN as o } from "./labels.js";
|
|
3
|
+
import { useState as s } from "react";
|
|
4
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
|
+
import { Asterisk as u, Eye as d, EyeOff as f } from "lucide-react";
|
|
6
|
+
// ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js
|
|
7
|
+
function p({ last4: p, fullNumber: m, labels: h }) {
|
|
8
|
+
let g = {
|
|
9
|
+
...o,
|
|
10
|
+
...h
|
|
11
|
+
}, [_, v] = s(!1), y = /* @__PURE__ */ l("span", {
|
|
12
|
+
className: "ttw:whitespace-nowrap ttw:tabular-nums",
|
|
13
|
+
children: [/* @__PURE__ */ l("span", {
|
|
14
|
+
"aria-hidden": "true",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ c("span", {
|
|
17
|
+
className: "ttw:inline-flex",
|
|
18
|
+
children: [
|
|
19
|
+
0,
|
|
20
|
+
1,
|
|
21
|
+
2,
|
|
22
|
+
3
|
|
23
|
+
].map((e) => /* @__PURE__ */ c(u, {
|
|
24
|
+
strokeWidth: 3,
|
|
25
|
+
className: "ttw:-mx-[0.1em] ttw:size-[0.75em]"
|
|
26
|
+
}, e))
|
|
27
|
+
}),
|
|
28
|
+
" ",
|
|
29
|
+
p
|
|
30
|
+
]
|
|
31
|
+
}), /* @__PURE__ */ c("span", {
|
|
32
|
+
className: "ttw:sr-only",
|
|
33
|
+
children: a(g.endingIn, { last4: p })
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
36
|
+
if (!m) return y;
|
|
37
|
+
let b = _ ? g.hideNumber : g.showNumber;
|
|
38
|
+
return /* @__PURE__ */ l("span", {
|
|
39
|
+
className: "ttw:inline-flex ttw:items-center ttw:gap-1",
|
|
40
|
+
children: [_ ? /* @__PURE__ */ c("span", {
|
|
41
|
+
className: "ttw:tabular-nums",
|
|
42
|
+
children: m
|
|
43
|
+
}) : y, /* @__PURE__ */ c(r, { children: /* @__PURE__ */ l(t, { children: [/* @__PURE__ */ c(i, {
|
|
44
|
+
asChild: !0,
|
|
45
|
+
children: /* @__PURE__ */ c(e, {
|
|
46
|
+
type: "button",
|
|
47
|
+
variant: "ghost",
|
|
48
|
+
size: "icon-sm",
|
|
49
|
+
className: "ttw:-my-1.5",
|
|
50
|
+
"aria-label": b,
|
|
51
|
+
onClick: () => v((e) => !e),
|
|
52
|
+
children: c(_ ? f : d, { "aria-hidden": !0 })
|
|
53
|
+
})
|
|
54
|
+
}), /* @__PURE__ */ c(n, { children: b })] }) })]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
export { p as MaskedAccountNumber };
|
|
@@ -121,7 +121,10 @@ function h({ labels: e, featureLabels: t, isTransferMoneyOpen: h, defaultIsTrans
|
|
|
121
121
|
confirm: c.modalConfirmTransferButton,
|
|
122
122
|
goBack: c.modalGoBackButton
|
|
123
123
|
},
|
|
124
|
-
resultStep: {
|
|
124
|
+
resultStep: {
|
|
125
|
+
title: c.modalResultTitle,
|
|
126
|
+
done: c.modalDoneButton
|
|
127
|
+
}
|
|
125
128
|
}
|
|
126
129
|
},
|
|
127
130
|
labels: e,
|
|
@@ -129,7 +132,6 @@ function h({ labels: e, featureLabels: t, isTransferMoneyOpen: h, defaultIsTrans
|
|
|
129
132
|
transferMoneyButton: c.transferMoneyButton,
|
|
130
133
|
skeleton: c.skeleton,
|
|
131
134
|
error: c.error,
|
|
132
|
-
retry: c.retry,
|
|
133
135
|
empty: c.empty,
|
|
134
136
|
transferRow: c.transferRow,
|
|
135
137
|
transferDetail: {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
var e = {
|
|
3
3
|
skeleton: "transfers-widget-skeleton",
|
|
4
4
|
error: "transfers-widget-error",
|
|
5
|
-
retry: "transfers-widget-retry",
|
|
6
5
|
empty: "transfers-widget-empty",
|
|
7
6
|
transferRow: "embedded-banking-transfer-row",
|
|
8
7
|
transferDetail: "transfers-widget-transfer-detail",
|
|
@@ -16,6 +15,7 @@ var e = {
|
|
|
16
15
|
modalAmountInput: "embedded-banking-transfer-money-amount-input",
|
|
17
16
|
modalConfirmTransferButton: "embedded-banking-transfer-money-confirm-transfer-button",
|
|
18
17
|
modalGoBackButton: "embedded-banking-transfer-money-go-back-button",
|
|
19
|
-
|
|
18
|
+
modalResultTitle: "embedded-banking-transfer-money-result-success-title",
|
|
19
|
+
modalDoneButton: "embedded-banking-transfer-money-back-to-transfers-button"
|
|
20
20
|
};
|
|
21
21
|
export { e as transfersWidgetTestIds };
|
|
@@ -17,21 +17,20 @@ function r(e, t, n) {
|
|
|
17
17
|
});
|
|
18
18
|
return r;
|
|
19
19
|
}
|
|
20
|
-
function i(t, n
|
|
21
|
-
let
|
|
20
|
+
function i(e, t, n) {
|
|
21
|
+
let r = t.get(e.id), i = r?.kind ?? "external";
|
|
22
22
|
return {
|
|
23
|
-
kind:
|
|
24
|
-
kindLabel:
|
|
25
|
-
name:
|
|
26
|
-
...
|
|
27
|
-
...a === "external" && { badgeLabel: r.externalAccountBadge }
|
|
23
|
+
kind: i,
|
|
24
|
+
kindLabel: i === "internal" ? n.accountKindInternal : n.accountKindExternal,
|
|
25
|
+
name: r?.name ?? (e.nickname?.trim() || n.externalAccountFallbackName),
|
|
26
|
+
...r && { number: { last4: r.last4 } }
|
|
28
27
|
};
|
|
29
28
|
}
|
|
30
|
-
var a = (
|
|
29
|
+
var a = (t, n) => t.number ? `${t.name} ${e(n.accountMaskTemplate, { last4: t.number.last4 })}` : t.name, o = {
|
|
31
30
|
COMPLETED: "success",
|
|
32
31
|
PENDING: "warning",
|
|
33
32
|
FAILED: "destructive",
|
|
34
|
-
RETURNED: "
|
|
33
|
+
RETURNED: "destructive"
|
|
35
34
|
};
|
|
36
35
|
function s(e, t) {
|
|
37
36
|
return {
|
|
@@ -44,27 +43,22 @@ function s(e, t) {
|
|
|
44
43
|
function c(e, t) {
|
|
45
44
|
switch (e) {
|
|
46
45
|
case "ACCOUNT_CLOSED": return {
|
|
47
|
-
short: t.returnShortReasonAccountClosed,
|
|
48
46
|
title: t.returnedTitleAccountClosed,
|
|
49
47
|
explanation: t.returnedExplanationAccountClosed
|
|
50
48
|
};
|
|
51
49
|
case "INVALID_ACCOUNT_DETAILS": return {
|
|
52
|
-
short: t.returnShortReasonInvalidAccountDetails,
|
|
53
50
|
title: t.returnedTitleInvalidAccountDetails,
|
|
54
51
|
explanation: t.returnedExplanationInvalidAccountDetails
|
|
55
52
|
};
|
|
56
53
|
case "ACCOUNT_CANNOT_RECEIVE": return {
|
|
57
|
-
short: t.returnShortReasonAccountCannotReceive,
|
|
58
54
|
title: t.returnedTitleAccountCannotReceive,
|
|
59
55
|
explanation: t.returnedExplanationAccountCannotReceive
|
|
60
56
|
};
|
|
61
57
|
case "REFUSED_BY_RECEIVER": return {
|
|
62
|
-
short: t.returnShortReasonRefusedByReceiver,
|
|
63
58
|
title: t.returnedTitleRefusedByReceiver,
|
|
64
59
|
explanation: t.returnedExplanationRefusedByReceiver
|
|
65
60
|
};
|
|
66
61
|
default: return {
|
|
67
|
-
short: void 0,
|
|
68
62
|
title: t.returnedTitleGeneric,
|
|
69
63
|
explanation: t.returnedExplanationGeneric
|
|
70
64
|
};
|
|
@@ -97,7 +91,6 @@ function f(t, n, r, i) {
|
|
|
97
91
|
...a,
|
|
98
92
|
rowKey: t.id,
|
|
99
93
|
dateLabel: l(t.createdDateTime, { dateStyle: "medium" }, i.unavailableLabel),
|
|
100
|
-
statusReasonLabel: t.status === "RETURNED" ? c(t.returnCategory, r).short : void 0,
|
|
101
94
|
ariaLabel: e(r.rowAriaLabel, {
|
|
102
95
|
amount: a.amountLabel,
|
|
103
96
|
from: a.from.name,
|
|
@@ -121,14 +114,14 @@ function p(t, n, r, i) {
|
|
|
121
114
|
if (t.status !== "RETURNED") return s;
|
|
122
115
|
let u = c(t.returnCategory, r), f = o.from.kind === "external" ? o.from : o.to, p = o.from.kind === "internal" ? ` ${e(r.returnedRefundSentence, {
|
|
123
116
|
amount: o.amountLabel,
|
|
124
|
-
account: a(o.from)
|
|
117
|
+
account: a(o.from, r)
|
|
125
118
|
})}` : "";
|
|
126
119
|
return {
|
|
127
120
|
...s,
|
|
128
121
|
returnedBanner: {
|
|
129
122
|
title: u.title,
|
|
130
123
|
description: `${u.explanation}${p}`,
|
|
131
|
-
nextStep: e(r.returnedPausedSentence, { account: a(f) })
|
|
124
|
+
nextStep: e(r.returnedPausedSentence, { account: a(f, r) })
|
|
132
125
|
}
|
|
133
126
|
};
|
|
134
127
|
}
|